@datocms/cma-client 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/resources/Site.js +21 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +37 -0
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +28 -0
- package/dist/esm/generated/resources/Site.d.ts +12 -0
- package/dist/esm/generated/resources/Site.js +21 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +37 -0
- package/dist/types/generated/SimpleSchemaTypes.d.ts +28 -0
- package/dist/types/generated/resources/Site.d.ts +12 -0
- package/package.json +6 -5
- package/resources.json +1272 -0
- package/src/generated/SchemaTypes.ts +40 -0
- package/src/generated/SimpleSchemaTypes.ts +29 -0
- package/src/generated/resources/Site.ts +27 -0
- package/dist/cjs/generated/schemaInfo.js +0 -3093
- package/dist/cjs/generated/schemaInfo.js.map +0 -1
- package/dist/esm/generated/schemaInfo.d.ts +0 -940
- package/dist/esm/generated/schemaInfo.js +0 -3091
- package/dist/esm/generated/schemaInfo.js.map +0 -1
- package/dist/types/generated/schemaInfo.d.ts +0 -940
- package/src/generated/schemaInfo.ts +0 -3263
|
@@ -105,6 +105,27 @@ var Site = /** @class */ (function (_super) {
|
|
|
105
105
|
body: body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Activate improved timezone management
|
|
110
|
+
*
|
|
111
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
112
|
+
*/
|
|
113
|
+
Site.prototype.activateImprovedTimezoneManagement = function () {
|
|
114
|
+
return this.rawActivateImprovedTimezoneManagement().then(function (body) {
|
|
115
|
+
return Utils.deserializeResponseBody(body);
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Activate improved timezone management
|
|
120
|
+
*
|
|
121
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
122
|
+
*/
|
|
123
|
+
Site.prototype.rawActivateImprovedTimezoneManagement = function () {
|
|
124
|
+
return this.client.request({
|
|
125
|
+
method: 'PUT',
|
|
126
|
+
url: "/site/activate-improved-timezone-management",
|
|
127
|
+
});
|
|
128
|
+
};
|
|
108
129
|
Site.TYPE = 'site';
|
|
109
130
|
return Site;
|
|
110
131
|
}(BaseResource_1.default));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AAGpD,oEAA8C;AAE9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AAGpD,oEAA8C;AAE9C;IAAkC,wBAAY;IAA9C;;IAkGA,CAAC;IA/FC;;;;OAIG;IACH,mBAAI,GAAJ;QACE,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC9B,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,sBAAO,GAAP;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmC;YAC3D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,qBAAM,GAAN,UAAO,IAAwC;QAC7C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAA+B,IAAI,EAAE;YAC7D,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE;gBACV,UAAU;gBACV,SAAS;gBACT,YAAY;gBACZ,MAAM;gBACN,OAAO;gBACP,SAAS;gBACT,UAAU;gBACV,aAAa;gBACb,qBAAqB;aACtB;YACD,aAAa,EAAE,CAAC,kBAAkB,CAAC;SACpC,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,wBAAS,GAAT,UACE,IAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAkC;YAC1D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;YACZ,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,iDAAkC,GAAlC;QACE,OAAO,IAAI,CAAC,qCAAqC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC5D,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,oDAAqC,GAArC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAhGe,SAAI,GAAW,MAAM,CAAC;IAiGxC,WAAC;CAAA,AAlGD,CAAkC,sBAAY,GAkG7C;kBAlGoB,IAAI"}
|
|
@@ -6276,6 +6276,10 @@ export declare type EnvironmentMeta = {
|
|
|
6276
6276
|
* Is this environment the primary for the project?
|
|
6277
6277
|
*/
|
|
6278
6278
|
primary: boolean;
|
|
6279
|
+
/**
|
|
6280
|
+
* ID of the environment that's been forked to generate this one
|
|
6281
|
+
*/
|
|
6282
|
+
forked_from?: string | null;
|
|
6279
6283
|
};
|
|
6280
6284
|
/**
|
|
6281
6285
|
* JSON API data
|
|
@@ -8062,6 +8066,7 @@ export declare type Site = {
|
|
|
8062
8066
|
id: SiteIdentity;
|
|
8063
8067
|
attributes: SiteAttributes;
|
|
8064
8068
|
relationships: SiteRelationships;
|
|
8069
|
+
meta: SiteMeta;
|
|
8065
8070
|
};
|
|
8066
8071
|
/**
|
|
8067
8072
|
* JSON API attributes
|
|
@@ -8249,6 +8254,18 @@ export declare type SiteRelationships = {
|
|
|
8249
8254
|
data: RoleData[];
|
|
8250
8255
|
};
|
|
8251
8256
|
};
|
|
8257
|
+
/**
|
|
8258
|
+
* Meta attributes
|
|
8259
|
+
*
|
|
8260
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8261
|
+
* via the `definition` "meta".
|
|
8262
|
+
*/
|
|
8263
|
+
export declare type SiteMeta = {
|
|
8264
|
+
/**
|
|
8265
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8266
|
+
*/
|
|
8267
|
+
improved_timezone_management: boolean;
|
|
8268
|
+
};
|
|
8252
8269
|
/**
|
|
8253
8270
|
* JSON API data
|
|
8254
8271
|
*
|
|
@@ -8378,6 +8395,12 @@ export declare type SiteUpdateSchema = {
|
|
|
8378
8395
|
*/
|
|
8379
8396
|
ip_tracking_enabled?: boolean;
|
|
8380
8397
|
};
|
|
8398
|
+
meta?: {
|
|
8399
|
+
/**
|
|
8400
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8401
|
+
*/
|
|
8402
|
+
improved_timezone_management?: boolean;
|
|
8403
|
+
};
|
|
8381
8404
|
relationships?: {
|
|
8382
8405
|
sso_default_role?: {
|
|
8383
8406
|
data: RoleData;
|
|
@@ -8399,6 +8422,20 @@ export declare type SiteUpdateTargetSchema = {
|
|
|
8399
8422
|
export declare type SiteUpdateJobSchema = {
|
|
8400
8423
|
data: Site;
|
|
8401
8424
|
};
|
|
8425
|
+
/**
|
|
8426
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8427
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
8428
|
+
*/
|
|
8429
|
+
export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
8430
|
+
data: Job;
|
|
8431
|
+
};
|
|
8432
|
+
/**
|
|
8433
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8434
|
+
* via the `activate_improved_timezone_management.jobSchema` link.
|
|
8435
|
+
*/
|
|
8436
|
+
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
8437
|
+
data: Site;
|
|
8438
|
+
};
|
|
8402
8439
|
/**
|
|
8403
8440
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
8404
8441
|
*
|
|
@@ -3964,6 +3964,9 @@ export declare type ItemTypeUpdateSchema = {
|
|
|
3964
3964
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
3965
3965
|
* via the `update.targetSchema` link.
|
|
3966
3966
|
*
|
|
3967
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
3968
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
3969
|
+
*
|
|
3967
3970
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3968
3971
|
* via the `definition` "job".
|
|
3969
3972
|
*/
|
|
@@ -3994,6 +3997,7 @@ export declare type UploadBatchDestroyTargetSchema = Job;
|
|
|
3994
3997
|
export declare type UploadBulkTagTargetSchema = Job;
|
|
3995
3998
|
export declare type UploadBulkDestroyTargetSchema = Job;
|
|
3996
3999
|
export declare type SiteUpdateTargetSchema = Job;
|
|
4000
|
+
export declare type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
3997
4001
|
/**
|
|
3998
4002
|
* JSON API data
|
|
3999
4003
|
*
|
|
@@ -6302,6 +6306,10 @@ export declare type EnvironmentMeta = {
|
|
|
6302
6306
|
* Is this environment the primary for the project?
|
|
6303
6307
|
*/
|
|
6304
6308
|
primary: boolean;
|
|
6309
|
+
/**
|
|
6310
|
+
* ID of the environment that's been forked to generate this one
|
|
6311
|
+
*/
|
|
6312
|
+
forked_from?: string | null;
|
|
6305
6313
|
};
|
|
6306
6314
|
/**
|
|
6307
6315
|
* JSON API data
|
|
@@ -7994,9 +8002,23 @@ export declare type Site = {
|
|
|
7994
8002
|
* The list of site roles
|
|
7995
8003
|
*/
|
|
7996
8004
|
roles: RoleData[];
|
|
8005
|
+
meta: SiteMeta;
|
|
7997
8006
|
};
|
|
7998
8007
|
export declare type SiteSelfTargetSchema = Site;
|
|
7999
8008
|
export declare type SiteUpdateJobSchema = Site;
|
|
8009
|
+
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
8010
|
+
/**
|
|
8011
|
+
* Meta attributes
|
|
8012
|
+
*
|
|
8013
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8014
|
+
* via the `definition` "meta".
|
|
8015
|
+
*/
|
|
8016
|
+
export declare type SiteMeta = {
|
|
8017
|
+
/**
|
|
8018
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8019
|
+
*/
|
|
8020
|
+
improved_timezone_management: boolean;
|
|
8021
|
+
};
|
|
8000
8022
|
/**
|
|
8001
8023
|
* JSON API data
|
|
8002
8024
|
*
|
|
@@ -8286,6 +8308,12 @@ export declare type SiteUpdateSchema = {
|
|
|
8286
8308
|
*/
|
|
8287
8309
|
ip_tracking_enabled?: boolean;
|
|
8288
8310
|
sso_default_role?: RoleData;
|
|
8311
|
+
meta?: {
|
|
8312
|
+
/**
|
|
8313
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8314
|
+
*/
|
|
8315
|
+
improved_timezone_management?: boolean;
|
|
8316
|
+
};
|
|
8289
8317
|
};
|
|
8290
8318
|
/**
|
|
8291
8319
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
@@ -27,4 +27,16 @@ export default class Site extends BaseResource {
|
|
|
27
27
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update
|
|
28
28
|
*/
|
|
29
29
|
rawUpdate(body: SchemaTypes.SiteUpdateSchema): Promise<SchemaTypes.SiteUpdateJobSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* Activate improved timezone management
|
|
32
|
+
*
|
|
33
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
34
|
+
*/
|
|
35
|
+
activateImprovedTimezoneManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
36
|
+
/**
|
|
37
|
+
* Activate improved timezone management
|
|
38
|
+
*
|
|
39
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
40
|
+
*/
|
|
41
|
+
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
30
42
|
}
|
|
@@ -77,6 +77,27 @@ var Site = /** @class */ (function (_super) {
|
|
|
77
77
|
body: body,
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Activate improved timezone management
|
|
82
|
+
*
|
|
83
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
84
|
+
*/
|
|
85
|
+
Site.prototype.activateImprovedTimezoneManagement = function () {
|
|
86
|
+
return this.rawActivateImprovedTimezoneManagement().then(function (body) {
|
|
87
|
+
return Utils.deserializeResponseBody(body);
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Activate improved timezone management
|
|
92
|
+
*
|
|
93
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
94
|
+
*/
|
|
95
|
+
Site.prototype.rawActivateImprovedTimezoneManagement = function () {
|
|
96
|
+
return this.client.request({
|
|
97
|
+
method: 'PUT',
|
|
98
|
+
url: "/site/activate-improved-timezone-management",
|
|
99
|
+
});
|
|
100
|
+
};
|
|
80
101
|
Site.TYPE = 'site';
|
|
81
102
|
return Site;
|
|
82
103
|
}(BaseResource));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;IAkGA,CAAC;IA/FC;;;;OAIG;IACH,mBAAI,GAAJ;QACE,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC9B,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,sBAAO,GAAP;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmC;YAC3D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,qBAAM,GAAN,UAAO,IAAwC;QAC7C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAA+B,IAAI,EAAE;YAC7D,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE;gBACV,UAAU;gBACV,SAAS;gBACT,YAAY;gBACZ,MAAM;gBACN,OAAO;gBACP,SAAS;gBACT,UAAU;gBACV,aAAa;gBACb,qBAAqB;aACtB;YACD,aAAa,EAAE,CAAC,kBAAkB,CAAC;SACpC,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,wBAAS,GAAT,UACE,IAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAkC;YAC1D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;YACZ,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,iDAAkC,GAAlC;QACE,OAAO,IAAI,CAAC,qCAAqC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC5D,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,oDAAqC,GAArC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAhGe,SAAI,GAAW,MAAM,CAAC;IAiGxC,WAAC;CAAA,AAlGD,CAAkC,YAAY,GAkG7C;eAlGoB,IAAI"}
|
|
@@ -6276,6 +6276,10 @@ export declare type EnvironmentMeta = {
|
|
|
6276
6276
|
* Is this environment the primary for the project?
|
|
6277
6277
|
*/
|
|
6278
6278
|
primary: boolean;
|
|
6279
|
+
/**
|
|
6280
|
+
* ID of the environment that's been forked to generate this one
|
|
6281
|
+
*/
|
|
6282
|
+
forked_from?: string | null;
|
|
6279
6283
|
};
|
|
6280
6284
|
/**
|
|
6281
6285
|
* JSON API data
|
|
@@ -8062,6 +8066,7 @@ export declare type Site = {
|
|
|
8062
8066
|
id: SiteIdentity;
|
|
8063
8067
|
attributes: SiteAttributes;
|
|
8064
8068
|
relationships: SiteRelationships;
|
|
8069
|
+
meta: SiteMeta;
|
|
8065
8070
|
};
|
|
8066
8071
|
/**
|
|
8067
8072
|
* JSON API attributes
|
|
@@ -8249,6 +8254,18 @@ export declare type SiteRelationships = {
|
|
|
8249
8254
|
data: RoleData[];
|
|
8250
8255
|
};
|
|
8251
8256
|
};
|
|
8257
|
+
/**
|
|
8258
|
+
* Meta attributes
|
|
8259
|
+
*
|
|
8260
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8261
|
+
* via the `definition` "meta".
|
|
8262
|
+
*/
|
|
8263
|
+
export declare type SiteMeta = {
|
|
8264
|
+
/**
|
|
8265
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8266
|
+
*/
|
|
8267
|
+
improved_timezone_management: boolean;
|
|
8268
|
+
};
|
|
8252
8269
|
/**
|
|
8253
8270
|
* JSON API data
|
|
8254
8271
|
*
|
|
@@ -8378,6 +8395,12 @@ export declare type SiteUpdateSchema = {
|
|
|
8378
8395
|
*/
|
|
8379
8396
|
ip_tracking_enabled?: boolean;
|
|
8380
8397
|
};
|
|
8398
|
+
meta?: {
|
|
8399
|
+
/**
|
|
8400
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8401
|
+
*/
|
|
8402
|
+
improved_timezone_management?: boolean;
|
|
8403
|
+
};
|
|
8381
8404
|
relationships?: {
|
|
8382
8405
|
sso_default_role?: {
|
|
8383
8406
|
data: RoleData;
|
|
@@ -8399,6 +8422,20 @@ export declare type SiteUpdateTargetSchema = {
|
|
|
8399
8422
|
export declare type SiteUpdateJobSchema = {
|
|
8400
8423
|
data: Site;
|
|
8401
8424
|
};
|
|
8425
|
+
/**
|
|
8426
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8427
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
8428
|
+
*/
|
|
8429
|
+
export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
8430
|
+
data: Job;
|
|
8431
|
+
};
|
|
8432
|
+
/**
|
|
8433
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8434
|
+
* via the `activate_improved_timezone_management.jobSchema` link.
|
|
8435
|
+
*/
|
|
8436
|
+
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
8437
|
+
data: Site;
|
|
8438
|
+
};
|
|
8402
8439
|
/**
|
|
8403
8440
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
8404
8441
|
*
|
|
@@ -3964,6 +3964,9 @@ export declare type ItemTypeUpdateSchema = {
|
|
|
3964
3964
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
3965
3965
|
* via the `update.targetSchema` link.
|
|
3966
3966
|
*
|
|
3967
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
3968
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
3969
|
+
*
|
|
3967
3970
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3968
3971
|
* via the `definition` "job".
|
|
3969
3972
|
*/
|
|
@@ -3994,6 +3997,7 @@ export declare type UploadBatchDestroyTargetSchema = Job;
|
|
|
3994
3997
|
export declare type UploadBulkTagTargetSchema = Job;
|
|
3995
3998
|
export declare type UploadBulkDestroyTargetSchema = Job;
|
|
3996
3999
|
export declare type SiteUpdateTargetSchema = Job;
|
|
4000
|
+
export declare type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
3997
4001
|
/**
|
|
3998
4002
|
* JSON API data
|
|
3999
4003
|
*
|
|
@@ -6302,6 +6306,10 @@ export declare type EnvironmentMeta = {
|
|
|
6302
6306
|
* Is this environment the primary for the project?
|
|
6303
6307
|
*/
|
|
6304
6308
|
primary: boolean;
|
|
6309
|
+
/**
|
|
6310
|
+
* ID of the environment that's been forked to generate this one
|
|
6311
|
+
*/
|
|
6312
|
+
forked_from?: string | null;
|
|
6305
6313
|
};
|
|
6306
6314
|
/**
|
|
6307
6315
|
* JSON API data
|
|
@@ -7994,9 +8002,23 @@ export declare type Site = {
|
|
|
7994
8002
|
* The list of site roles
|
|
7995
8003
|
*/
|
|
7996
8004
|
roles: RoleData[];
|
|
8005
|
+
meta: SiteMeta;
|
|
7997
8006
|
};
|
|
7998
8007
|
export declare type SiteSelfTargetSchema = Site;
|
|
7999
8008
|
export declare type SiteUpdateJobSchema = Site;
|
|
8009
|
+
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
8010
|
+
/**
|
|
8011
|
+
* Meta attributes
|
|
8012
|
+
*
|
|
8013
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
8014
|
+
* via the `definition` "meta".
|
|
8015
|
+
*/
|
|
8016
|
+
export declare type SiteMeta = {
|
|
8017
|
+
/**
|
|
8018
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8019
|
+
*/
|
|
8020
|
+
improved_timezone_management: boolean;
|
|
8021
|
+
};
|
|
8000
8022
|
/**
|
|
8001
8023
|
* JSON API data
|
|
8002
8024
|
*
|
|
@@ -8286,6 +8308,12 @@ export declare type SiteUpdateSchema = {
|
|
|
8286
8308
|
*/
|
|
8287
8309
|
ip_tracking_enabled?: boolean;
|
|
8288
8310
|
sso_default_role?: RoleData;
|
|
8311
|
+
meta?: {
|
|
8312
|
+
/**
|
|
8313
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
8314
|
+
*/
|
|
8315
|
+
improved_timezone_management?: boolean;
|
|
8316
|
+
};
|
|
8289
8317
|
};
|
|
8290
8318
|
/**
|
|
8291
8319
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
@@ -27,4 +27,16 @@ export default class Site extends BaseResource {
|
|
|
27
27
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update
|
|
28
28
|
*/
|
|
29
29
|
rawUpdate(body: SchemaTypes.SiteUpdateSchema): Promise<SchemaTypes.SiteUpdateJobSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* Activate improved timezone management
|
|
32
|
+
*
|
|
33
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
34
|
+
*/
|
|
35
|
+
activateImprovedTimezoneManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
36
|
+
/**
|
|
37
|
+
* Activate improved timezone management
|
|
38
|
+
*
|
|
39
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_timezone_management
|
|
40
|
+
*/
|
|
41
|
+
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
30
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
|
-
"src"
|
|
22
|
+
"src",
|
|
23
|
+
"resources.json"
|
|
23
24
|
],
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
|
@@ -36,10 +37,10 @@
|
|
|
36
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@datocms/rest-client-utils": "^0.1.
|
|
40
|
+
"@datocms/rest-client-utils": "^0.1.8"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@datocms/dashboard-client": "^0.1.
|
|
43
|
+
"@datocms/dashboard-client": "^0.1.8"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ffb2f67a843f695e97dd14e2ca493f9dc9c87823"
|
|
45
46
|
}
|