Skip to content

Commit

Permalink
Merge pull request #14 from datocms/2/immutable-primary-environment
Browse files Browse the repository at this point in the history
2/immutable primary environment
  • Loading branch information
souljuse authored Nov 28, 2023
2 parents c5a2520 + 9775b4c commit 7d5ff92
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3491,7 +3491,8 @@
"locales",
"timezone",
"require_2fa",
"ip_tracking_enabled"
"ip_tracking_enabled",
"force_use_of_sandbox_environments"
],
"relationships": [
"sso_default_role"
Expand Down
16 changes: 12 additions & 4 deletions packages/cma-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ export type RoleAttributes = {
*/
can_edit_favicon: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site: boolean;
/**
Expand Down Expand Up @@ -1732,7 +1732,7 @@ export type RoleMeta = {
*/
can_edit_favicon: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site: boolean;
/**
Expand Down Expand Up @@ -1964,7 +1964,7 @@ export type RoleCreateSchema = {
*/
can_edit_favicon?: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site?: boolean;
/**
Expand Down Expand Up @@ -2218,7 +2218,7 @@ export type RoleUpdateSchema = {
*/
can_edit_favicon?: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site?: boolean;
/**
Expand Down Expand Up @@ -10380,6 +10380,10 @@ export type SiteAttributes = {
* Specifies whether you want IPs to be tracked in the Project usages section
*/
ip_tracking_enabled: boolean;
/**
* If enabled, blocks schema changes of primary environment
*/
force_use_of_sandbox_environments: boolean;
/**
* Specifies the theme to use in administrative area
*/
Expand Down Expand Up @@ -10627,6 +10631,10 @@ export type SiteUpdateSchema = {
* Specifies whether you want IPs to be tracked in the Project usages section
*/
ip_tracking_enabled?: boolean;
/**
* If enabled, blocks schema changes of primary environment
*/
force_use_of_sandbox_environments?: boolean;
};
meta?: {
/**
Expand Down
22 changes: 17 additions & 5 deletions packages/cma-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ export type Role = {
*/
can_edit_favicon: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site: boolean;
/**
Expand Down Expand Up @@ -2000,7 +2000,7 @@ export type RoleMeta = {
*/
can_edit_favicon: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site: boolean;
/**
Expand Down Expand Up @@ -2228,7 +2228,7 @@ export type RoleAttributes = {
*/
can_edit_favicon: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site: boolean;
/**
Expand Down Expand Up @@ -2464,7 +2464,7 @@ export type RoleCreateSchema = {
*/
can_edit_favicon?: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site?: boolean;
/**
Expand Down Expand Up @@ -2693,7 +2693,7 @@ export type RoleUpdateSchema = {
*/
can_edit_favicon?: boolean;
/**
* Can change project name and 2FA settings
* Can change project global properties
*/
can_edit_site?: boolean;
/**
Expand Down Expand Up @@ -10080,6 +10080,10 @@ export type Site = {
* Specifies whether you want IPs to be tracked in the Project usages section
*/
ip_tracking_enabled: boolean;
/**
* If enabled, blocks schema changes of primary environment
*/
force_use_of_sandbox_environments: boolean;
/**
* Specifies the theme to use in administrative area
*/
Expand Down Expand Up @@ -10253,6 +10257,10 @@ export type SiteAttributes = {
* Specifies whether you want IPs to be tracked in the Project usages section
*/
ip_tracking_enabled: boolean;
/**
* If enabled, blocks schema changes of primary environment
*/
force_use_of_sandbox_environments: boolean;
/**
* Specifies the theme to use in administrative area
*/
Expand Down Expand Up @@ -10451,6 +10459,10 @@ export type SiteUpdateSchema = {
* Specifies whether you want IPs to be tracked in the Project usages section
*/
ip_tracking_enabled?: boolean;
/**
* If enabled, blocks schema changes of primary environment
*/
force_use_of_sandbox_environments?: boolean;
sso_default_role?: RoleData;
meta?: {
/**
Expand Down
1 change: 1 addition & 0 deletions packages/cma-client/src/generated/resources/Site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class Site extends BaseResource {
'timezone',
'require_2fa',
'ip_tracking_enabled',
'force_use_of_sandbox_environments',
],
relationships: ['sso_default_role'],
}),
Expand Down

0 comments on commit 7d5ff92

Please sign in to comment.