@datocms/cma-client 1.3.1 → 1.3.2
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/Client.js +1 -1
- package/dist/cjs/generated/resources/Item.js +2 -2
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js +27 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +51 -1
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +43 -1
- package/dist/esm/generated/resources/Item.js +2 -2
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +18 -0
- package/dist/esm/generated/resources/Site.js +27 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +51 -1
- package/dist/types/generated/SimpleSchemaTypes.d.ts +43 -1
- package/dist/types/generated/resources/Site.d.ts +18 -0
- package/package.json +4 -4
- package/resources.json +16 -2
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +62 -1
- package/src/generated/SimpleSchemaTypes.ts +53 -1
- package/src/generated/resources/Item.ts +2 -2
- package/src/generated/resources/Site.ts +33 -0
|
@@ -127,7 +127,7 @@ var Client = /** @class */ (function () {
|
|
|
127
127
|
});
|
|
128
128
|
Client.prototype.request = function (options) {
|
|
129
129
|
var _this = this;
|
|
130
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
131
131
|
? { 'X-Environment': this.config.environment }
|
|
132
132
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
133
133
|
return _this.jobResultsFetcher
|
|
@@ -249,7 +249,7 @@ var Item = /** @class */ (function (_super) {
|
|
|
249
249
|
return this.rawValidateNew(Utils.serializeRequestBody(body, {
|
|
250
250
|
type: 'item',
|
|
251
251
|
attributes: '*',
|
|
252
|
-
relationships: ['item_type'],
|
|
252
|
+
relationships: ['item_type', 'creator'],
|
|
253
253
|
}));
|
|
254
254
|
};
|
|
255
255
|
/**
|
|
@@ -281,7 +281,7 @@ var Item = /** @class */ (function (_super) {
|
|
|
281
281
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
282
282
|
type: 'item',
|
|
283
283
|
attributes: '*',
|
|
284
|
-
relationships: ['item_type'],
|
|
284
|
+
relationships: ['item_type', 'creator'],
|
|
285
285
|
})).then(function (body) {
|
|
286
286
|
return Utils.deserializeResponseBody(body);
|
|
287
287
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AAGpD,oEAA8C;AAE9C;IAAkC,wBAAY;IAA9C;;IAquBA,CAAC;IAluBC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAuD;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,sBAAO,GAAP,UACE,WAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,KAAK;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E,IAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA2C;YACnE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAnuBe,SAAI,GAAW,MAAM,CAAC;IAouBxC,WAAC;CAAA,AAruBD,CAAkC,sBAAY,GAquB7C;kBAruBoB,IAAI"}
|
|
@@ -145,6 +145,33 @@ var Site = /** @class */ (function (_super) {
|
|
|
145
145
|
url: '/site/activate-improved-timezone-management',
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
+
/**
|
|
149
|
+
* Activate improved hex management
|
|
150
|
+
*
|
|
151
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
152
|
+
*
|
|
153
|
+
* @throws {ApiError}
|
|
154
|
+
* @throws {TimeoutError}
|
|
155
|
+
*/
|
|
156
|
+
Site.prototype.activateImprovedHexManagement = function () {
|
|
157
|
+
return this.rawActivateImprovedHexManagement().then(function (body) {
|
|
158
|
+
return Utils.deserializeResponseBody(body);
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Activate improved hex management
|
|
163
|
+
*
|
|
164
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
165
|
+
*
|
|
166
|
+
* @throws {ApiError}
|
|
167
|
+
* @throws {TimeoutError}
|
|
168
|
+
*/
|
|
169
|
+
Site.prototype.rawActivateImprovedHexManagement = function () {
|
|
170
|
+
return this.client.request({
|
|
171
|
+
method: 'PUT',
|
|
172
|
+
url: '/site/activate-improved-hex-management',
|
|
173
|
+
});
|
|
174
|
+
};
|
|
148
175
|
Site.TYPE = 'site';
|
|
149
176
|
return Site;
|
|
150
177
|
}(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;;IAwJA,CAAC;IArJC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAkD;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,sBAAO,GAAP,UACE,WAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmC;YAC3D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,OAAO;YACZ,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;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;;;;;;;OAOG;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;;;;;;;OAOG;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;;;;;;;OAOG;IACH,oDAAqC,GAArC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4CAA6B,GAA7B;QACE,OAAO,IAAI,CAAC,gCAAgC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YACvD,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,+CAAgC,GAAhC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;SAC9C,CACF,CAAC;IACJ,CAAC;IAtJe,SAAI,GAAW,MAAM,CAAC;IAuJxC,WAAC;CAAA,AAxJD,CAAkC,sBAAY,GAwJ7C;kBAxJoB,IAAI"}
|
|
@@ -101,7 +101,7 @@ var Client = /** @class */ (function () {
|
|
|
101
101
|
});
|
|
102
102
|
Client.prototype.request = function (options) {
|
|
103
103
|
var _this = this;
|
|
104
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
105
105
|
? { 'X-Environment': this.config.environment }
|
|
106
106
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
107
107
|
return _this.jobResultsFetcher
|
|
@@ -551,6 +551,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
551
551
|
fields?: {
|
|
552
552
|
[k: string]: unknown;
|
|
553
553
|
};
|
|
554
|
+
/**
|
|
555
|
+
* When set, only valid records are included in the results.
|
|
556
|
+
*/
|
|
557
|
+
only_valid?: string;
|
|
554
558
|
[k: string]: unknown;
|
|
555
559
|
};
|
|
556
560
|
/**
|
|
@@ -3057,6 +3061,10 @@ export declare type SitePlanAttributes = {
|
|
|
3057
3061
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3058
3062
|
*/
|
|
3059
3063
|
concurrent_realtime_connections: number;
|
|
3064
|
+
/**
|
|
3065
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3066
|
+
*/
|
|
3067
|
+
gql_complexity: number;
|
|
3060
3068
|
/**
|
|
3061
3069
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3062
3070
|
*/
|
|
@@ -3868,7 +3876,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3868
3876
|
data: ItemType;
|
|
3869
3877
|
};
|
|
3870
3878
|
/**
|
|
3871
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
3879
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
3872
3880
|
*
|
|
3873
3881
|
* ### Different field types require different settings
|
|
3874
3882
|
*
|
|
@@ -4465,6 +4473,17 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4465
4473
|
* </details>
|
|
4466
4474
|
*
|
|
4467
4475
|
* <details>
|
|
4476
|
+
* <summary><code>sanitization</code></summary>
|
|
4477
|
+
*
|
|
4478
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
4479
|
+
*
|
|
4480
|
+
* | Parameter | Type | Required | Description |
|
|
4481
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
4482
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
4483
|
+
*
|
|
4484
|
+
* </details>
|
|
4485
|
+
*
|
|
4486
|
+
* <details>
|
|
4468
4487
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4469
4488
|
*
|
|
4470
4489
|
* Only accept references to block records of the specified block models.
|
|
@@ -5958,6 +5977,12 @@ export declare type ItemValidateNewSchema = {
|
|
|
5958
5977
|
item_type: {
|
|
5959
5978
|
data: ItemTypeData;
|
|
5960
5979
|
};
|
|
5980
|
+
/**
|
|
5981
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
5982
|
+
*/
|
|
5983
|
+
creator?: {
|
|
5984
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
5985
|
+
};
|
|
5961
5986
|
};
|
|
5962
5987
|
};
|
|
5963
5988
|
};
|
|
@@ -6026,6 +6051,12 @@ export declare type ItemCreateSchema = {
|
|
|
6026
6051
|
item_type: {
|
|
6027
6052
|
data: ItemTypeData;
|
|
6028
6053
|
};
|
|
6054
|
+
/**
|
|
6055
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6056
|
+
*/
|
|
6057
|
+
creator?: {
|
|
6058
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6059
|
+
};
|
|
6029
6060
|
};
|
|
6030
6061
|
};
|
|
6031
6062
|
};
|
|
@@ -6595,6 +6626,10 @@ export declare type UploadAttributes = {
|
|
|
6595
6626
|
* Blurhash for the asset
|
|
6596
6627
|
*/
|
|
6597
6628
|
blurhash: string | null;
|
|
6629
|
+
/**
|
|
6630
|
+
* Base64 encoded ThumbHash for the asset
|
|
6631
|
+
*/
|
|
6632
|
+
thumbhash: string | null;
|
|
6598
6633
|
/**
|
|
6599
6634
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6600
6635
|
*/
|
|
@@ -9476,6 +9511,10 @@ export declare type SiteMeta = {
|
|
|
9476
9511
|
* Whether the Improved API Timezone Management option is active or not
|
|
9477
9512
|
*/
|
|
9478
9513
|
improved_timezone_management: boolean;
|
|
9514
|
+
/**
|
|
9515
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9516
|
+
*/
|
|
9517
|
+
improved_hex_management: boolean;
|
|
9479
9518
|
};
|
|
9480
9519
|
/**
|
|
9481
9520
|
* JSON API data
|
|
@@ -9611,6 +9650,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9611
9650
|
* Whether the Improved API Timezone Management option is active or not
|
|
9612
9651
|
*/
|
|
9613
9652
|
improved_timezone_management?: boolean;
|
|
9653
|
+
/**
|
|
9654
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9655
|
+
*/
|
|
9656
|
+
improved_hex_management?: boolean;
|
|
9614
9657
|
};
|
|
9615
9658
|
relationships?: {
|
|
9616
9659
|
sso_default_role?: {
|
|
@@ -9647,6 +9690,13 @@ export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
|
9647
9690
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
9648
9691
|
data: Site;
|
|
9649
9692
|
};
|
|
9693
|
+
/**
|
|
9694
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9695
|
+
* via the `activate_improved_hex_management.targetSchema` link.
|
|
9696
|
+
*/
|
|
9697
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = {
|
|
9698
|
+
data: Site;
|
|
9699
|
+
};
|
|
9650
9700
|
/**
|
|
9651
9701
|
* 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.
|
|
9652
9702
|
*
|
|
@@ -646,6 +646,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
646
646
|
fields?: {
|
|
647
647
|
[k: string]: unknown;
|
|
648
648
|
};
|
|
649
|
+
/**
|
|
650
|
+
* When set, only valid records are included in the results.
|
|
651
|
+
*/
|
|
652
|
+
only_valid?: string;
|
|
649
653
|
[k: string]: unknown;
|
|
650
654
|
};
|
|
651
655
|
/**
|
|
@@ -3443,6 +3447,10 @@ export declare type SitePlan = {
|
|
|
3443
3447
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3444
3448
|
*/
|
|
3445
3449
|
concurrent_realtime_connections: number;
|
|
3450
|
+
/**
|
|
3451
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3452
|
+
*/
|
|
3453
|
+
gql_complexity: number;
|
|
3446
3454
|
/**
|
|
3447
3455
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3448
3456
|
*/
|
|
@@ -3667,6 +3675,10 @@ export declare type SitePlanAttributes = {
|
|
|
3667
3675
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3668
3676
|
*/
|
|
3669
3677
|
concurrent_realtime_connections: number;
|
|
3678
|
+
/**
|
|
3679
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3680
|
+
*/
|
|
3681
|
+
gql_complexity: number;
|
|
3670
3682
|
/**
|
|
3671
3683
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3672
3684
|
*/
|
|
@@ -4389,7 +4401,7 @@ export declare type JobData = {
|
|
|
4389
4401
|
id: JobIdentity;
|
|
4390
4402
|
};
|
|
4391
4403
|
/**
|
|
4392
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4404
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4393
4405
|
*
|
|
4394
4406
|
* ### Different field types require different settings
|
|
4395
4407
|
*
|
|
@@ -4986,6 +4998,17 @@ export declare type JobData = {
|
|
|
4986
4998
|
* </details>
|
|
4987
4999
|
*
|
|
4988
5000
|
* <details>
|
|
5001
|
+
* <summary><code>sanitization</code></summary>
|
|
5002
|
+
*
|
|
5003
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
5004
|
+
*
|
|
5005
|
+
* | Parameter | Type | Required | Description |
|
|
5006
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
5007
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
5008
|
+
*
|
|
5009
|
+
* </details>
|
|
5010
|
+
*
|
|
5011
|
+
* <details>
|
|
4989
5012
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4990
5013
|
*
|
|
4991
5014
|
* Only accept references to block records of the specified block models.
|
|
@@ -6352,6 +6375,7 @@ export declare type ItemValidateExistingSchema = {
|
|
|
6352
6375
|
export declare type ItemValidateNewSchema = {
|
|
6353
6376
|
type?: ItemType1;
|
|
6354
6377
|
item_type: ItemTypeData;
|
|
6378
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6355
6379
|
[k: string]: unknown;
|
|
6356
6380
|
};
|
|
6357
6381
|
/**
|
|
@@ -6361,6 +6385,7 @@ export declare type ItemValidateNewSchema = {
|
|
|
6361
6385
|
export declare type ItemCreateSchema = {
|
|
6362
6386
|
type?: ItemType1;
|
|
6363
6387
|
item_type: ItemTypeData;
|
|
6388
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6364
6389
|
/**
|
|
6365
6390
|
* Meta information regarding the record
|
|
6366
6391
|
*/
|
|
@@ -6666,6 +6691,10 @@ export declare type Upload = {
|
|
|
6666
6691
|
* Blurhash for the asset
|
|
6667
6692
|
*/
|
|
6668
6693
|
blurhash: string | null;
|
|
6694
|
+
/**
|
|
6695
|
+
* Base64 encoded ThumbHash for the asset
|
|
6696
|
+
*/
|
|
6697
|
+
thumbhash: string | null;
|
|
6669
6698
|
/**
|
|
6670
6699
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6671
6700
|
*/
|
|
@@ -6846,6 +6875,10 @@ export declare type UploadAttributes = {
|
|
|
6846
6875
|
* Blurhash for the asset
|
|
6847
6876
|
*/
|
|
6848
6877
|
blurhash: string | null;
|
|
6878
|
+
/**
|
|
6879
|
+
* Base64 encoded ThumbHash for the asset
|
|
6880
|
+
*/
|
|
6881
|
+
thumbhash: string | null;
|
|
6849
6882
|
/**
|
|
6850
6883
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6851
6884
|
*/
|
|
@@ -9252,6 +9285,7 @@ export declare type Site = {
|
|
|
9252
9285
|
export declare type SiteSelfTargetSchema = Site;
|
|
9253
9286
|
export declare type SiteUpdateJobSchema = Site;
|
|
9254
9287
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9288
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9255
9289
|
/**
|
|
9256
9290
|
* Meta attributes
|
|
9257
9291
|
*
|
|
@@ -9263,6 +9297,10 @@ export declare type SiteMeta = {
|
|
|
9263
9297
|
* Whether the Improved API Timezone Management option is active or not
|
|
9264
9298
|
*/
|
|
9265
9299
|
improved_timezone_management: boolean;
|
|
9300
|
+
/**
|
|
9301
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9302
|
+
*/
|
|
9303
|
+
improved_hex_management: boolean;
|
|
9266
9304
|
};
|
|
9267
9305
|
/**
|
|
9268
9306
|
* JSON API data
|
|
@@ -9531,6 +9569,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9531
9569
|
* Whether the Improved API Timezone Management option is active or not
|
|
9532
9570
|
*/
|
|
9533
9571
|
improved_timezone_management?: boolean;
|
|
9572
|
+
/**
|
|
9573
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9574
|
+
*/
|
|
9575
|
+
improved_hex_management?: boolean;
|
|
9534
9576
|
};
|
|
9535
9577
|
};
|
|
9536
9578
|
/**
|
|
@@ -221,7 +221,7 @@ var Item = /** @class */ (function (_super) {
|
|
|
221
221
|
return this.rawValidateNew(Utils.serializeRequestBody(body, {
|
|
222
222
|
type: 'item',
|
|
223
223
|
attributes: '*',
|
|
224
|
-
relationships: ['item_type'],
|
|
224
|
+
relationships: ['item_type', 'creator'],
|
|
225
225
|
}));
|
|
226
226
|
};
|
|
227
227
|
/**
|
|
@@ -253,7 +253,7 @@ var Item = /** @class */ (function (_super) {
|
|
|
253
253
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
254
254
|
type: 'item',
|
|
255
255
|
attributes: '*',
|
|
256
|
-
relationships: ['item_type'],
|
|
256
|
+
relationships: ['item_type', 'creator'],
|
|
257
257
|
})).then(function (body) {
|
|
258
258
|
return Utils.deserializeResponseBody(body);
|
|
259
259
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;IAquBA,CAAC;IAluBC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAuD;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,C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AO,CAAC;SACzB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,iCAAkB,GAAlB,UACE,IAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA2C;YACnE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAnuBe,SAAI,GAAW,MAAM,CAAC;IAouBxC,WAAC;CAAA,AAruBD,CAAkC,YAAY,GAquB7C;eAruBoB,IAAI"}
|
|
@@ -57,4 +57,22 @@ export default class Site extends BaseResource {
|
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
59
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* Activate improved hex management
|
|
62
|
+
*
|
|
63
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
67
|
+
*/
|
|
68
|
+
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
|
+
/**
|
|
70
|
+
* Activate improved hex management
|
|
71
|
+
*
|
|
72
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
73
|
+
*
|
|
74
|
+
* @throws {ApiError}
|
|
75
|
+
* @throws {TimeoutError}
|
|
76
|
+
*/
|
|
77
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
60
78
|
}
|
|
@@ -117,6 +117,33 @@ var Site = /** @class */ (function (_super) {
|
|
|
117
117
|
url: '/site/activate-improved-timezone-management',
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* Activate improved hex management
|
|
122
|
+
*
|
|
123
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
124
|
+
*
|
|
125
|
+
* @throws {ApiError}
|
|
126
|
+
* @throws {TimeoutError}
|
|
127
|
+
*/
|
|
128
|
+
Site.prototype.activateImprovedHexManagement = function () {
|
|
129
|
+
return this.rawActivateImprovedHexManagement().then(function (body) {
|
|
130
|
+
return Utils.deserializeResponseBody(body);
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Activate improved hex management
|
|
135
|
+
*
|
|
136
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
137
|
+
*
|
|
138
|
+
* @throws {ApiError}
|
|
139
|
+
* @throws {TimeoutError}
|
|
140
|
+
*/
|
|
141
|
+
Site.prototype.rawActivateImprovedHexManagement = function () {
|
|
142
|
+
return this.client.request({
|
|
143
|
+
method: 'PUT',
|
|
144
|
+
url: '/site/activate-improved-hex-management',
|
|
145
|
+
});
|
|
146
|
+
};
|
|
120
147
|
Site.TYPE = 'site';
|
|
121
148
|
return Site;
|
|
122
149
|
}(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;;IAwJ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C,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,oDAAqC,GAArC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4CAA6B,GAA7B;QACE,OAAO,IAAI,CAAC,gCAAgC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YACvD,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,+CAAgC,GAAhC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;SAC9C,CACF,CAAC;IACJ,CAAC;IAtJe,SAAI,GAAW,MAAM,CAAC;IAuJxC,WAAC;CAAA,AAxJD,CAAkC,YAAY,GAwJ7C;eAxJoB,IAAI"}
|
|
@@ -551,6 +551,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
551
551
|
fields?: {
|
|
552
552
|
[k: string]: unknown;
|
|
553
553
|
};
|
|
554
|
+
/**
|
|
555
|
+
* When set, only valid records are included in the results.
|
|
556
|
+
*/
|
|
557
|
+
only_valid?: string;
|
|
554
558
|
[k: string]: unknown;
|
|
555
559
|
};
|
|
556
560
|
/**
|
|
@@ -3057,6 +3061,10 @@ export declare type SitePlanAttributes = {
|
|
|
3057
3061
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3058
3062
|
*/
|
|
3059
3063
|
concurrent_realtime_connections: number;
|
|
3064
|
+
/**
|
|
3065
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3066
|
+
*/
|
|
3067
|
+
gql_complexity: number;
|
|
3060
3068
|
/**
|
|
3061
3069
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3062
3070
|
*/
|
|
@@ -3868,7 +3876,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3868
3876
|
data: ItemType;
|
|
3869
3877
|
};
|
|
3870
3878
|
/**
|
|
3871
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
3879
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
3872
3880
|
*
|
|
3873
3881
|
* ### Different field types require different settings
|
|
3874
3882
|
*
|
|
@@ -4465,6 +4473,17 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4465
4473
|
* </details>
|
|
4466
4474
|
*
|
|
4467
4475
|
* <details>
|
|
4476
|
+
* <summary><code>sanitization</code></summary>
|
|
4477
|
+
*
|
|
4478
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
4479
|
+
*
|
|
4480
|
+
* | Parameter | Type | Required | Description |
|
|
4481
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
4482
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
4483
|
+
*
|
|
4484
|
+
* </details>
|
|
4485
|
+
*
|
|
4486
|
+
* <details>
|
|
4468
4487
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4469
4488
|
*
|
|
4470
4489
|
* Only accept references to block records of the specified block models.
|
|
@@ -5958,6 +5977,12 @@ export declare type ItemValidateNewSchema = {
|
|
|
5958
5977
|
item_type: {
|
|
5959
5978
|
data: ItemTypeData;
|
|
5960
5979
|
};
|
|
5980
|
+
/**
|
|
5981
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
5982
|
+
*/
|
|
5983
|
+
creator?: {
|
|
5984
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
5985
|
+
};
|
|
5961
5986
|
};
|
|
5962
5987
|
};
|
|
5963
5988
|
};
|
|
@@ -6026,6 +6051,12 @@ export declare type ItemCreateSchema = {
|
|
|
6026
6051
|
item_type: {
|
|
6027
6052
|
data: ItemTypeData;
|
|
6028
6053
|
};
|
|
6054
|
+
/**
|
|
6055
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6056
|
+
*/
|
|
6057
|
+
creator?: {
|
|
6058
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6059
|
+
};
|
|
6029
6060
|
};
|
|
6030
6061
|
};
|
|
6031
6062
|
};
|
|
@@ -6595,6 +6626,10 @@ export declare type UploadAttributes = {
|
|
|
6595
6626
|
* Blurhash for the asset
|
|
6596
6627
|
*/
|
|
6597
6628
|
blurhash: string | null;
|
|
6629
|
+
/**
|
|
6630
|
+
* Base64 encoded ThumbHash for the asset
|
|
6631
|
+
*/
|
|
6632
|
+
thumbhash: string | null;
|
|
6598
6633
|
/**
|
|
6599
6634
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6600
6635
|
*/
|
|
@@ -9476,6 +9511,10 @@ export declare type SiteMeta = {
|
|
|
9476
9511
|
* Whether the Improved API Timezone Management option is active or not
|
|
9477
9512
|
*/
|
|
9478
9513
|
improved_timezone_management: boolean;
|
|
9514
|
+
/**
|
|
9515
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9516
|
+
*/
|
|
9517
|
+
improved_hex_management: boolean;
|
|
9479
9518
|
};
|
|
9480
9519
|
/**
|
|
9481
9520
|
* JSON API data
|
|
@@ -9611,6 +9650,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9611
9650
|
* Whether the Improved API Timezone Management option is active or not
|
|
9612
9651
|
*/
|
|
9613
9652
|
improved_timezone_management?: boolean;
|
|
9653
|
+
/**
|
|
9654
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9655
|
+
*/
|
|
9656
|
+
improved_hex_management?: boolean;
|
|
9614
9657
|
};
|
|
9615
9658
|
relationships?: {
|
|
9616
9659
|
sso_default_role?: {
|
|
@@ -9647,6 +9690,13 @@ export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
|
9647
9690
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
9648
9691
|
data: Site;
|
|
9649
9692
|
};
|
|
9693
|
+
/**
|
|
9694
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9695
|
+
* via the `activate_improved_hex_management.targetSchema` link.
|
|
9696
|
+
*/
|
|
9697
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = {
|
|
9698
|
+
data: Site;
|
|
9699
|
+
};
|
|
9650
9700
|
/**
|
|
9651
9701
|
* 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.
|
|
9652
9702
|
*
|
|
@@ -646,6 +646,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
646
646
|
fields?: {
|
|
647
647
|
[k: string]: unknown;
|
|
648
648
|
};
|
|
649
|
+
/**
|
|
650
|
+
* When set, only valid records are included in the results.
|
|
651
|
+
*/
|
|
652
|
+
only_valid?: string;
|
|
649
653
|
[k: string]: unknown;
|
|
650
654
|
};
|
|
651
655
|
/**
|
|
@@ -3443,6 +3447,10 @@ export declare type SitePlan = {
|
|
|
3443
3447
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3444
3448
|
*/
|
|
3445
3449
|
concurrent_realtime_connections: number;
|
|
3450
|
+
/**
|
|
3451
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3452
|
+
*/
|
|
3453
|
+
gql_complexity: number;
|
|
3446
3454
|
/**
|
|
3447
3455
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3448
3456
|
*/
|
|
@@ -3667,6 +3675,10 @@ export declare type SitePlanAttributes = {
|
|
|
3667
3675
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3668
3676
|
*/
|
|
3669
3677
|
concurrent_realtime_connections: number;
|
|
3678
|
+
/**
|
|
3679
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3680
|
+
*/
|
|
3681
|
+
gql_complexity: number;
|
|
3670
3682
|
/**
|
|
3671
3683
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3672
3684
|
*/
|
|
@@ -4389,7 +4401,7 @@ export declare type JobData = {
|
|
|
4389
4401
|
id: JobIdentity;
|
|
4390
4402
|
};
|
|
4391
4403
|
/**
|
|
4392
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4404
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4393
4405
|
*
|
|
4394
4406
|
* ### Different field types require different settings
|
|
4395
4407
|
*
|
|
@@ -4986,6 +4998,17 @@ export declare type JobData = {
|
|
|
4986
4998
|
* </details>
|
|
4987
4999
|
*
|
|
4988
5000
|
* <details>
|
|
5001
|
+
* <summary><code>sanitization</code></summary>
|
|
5002
|
+
*
|
|
5003
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
5004
|
+
*
|
|
5005
|
+
* | Parameter | Type | Required | Description |
|
|
5006
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
5007
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
5008
|
+
*
|
|
5009
|
+
* </details>
|
|
5010
|
+
*
|
|
5011
|
+
* <details>
|
|
4989
5012
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4990
5013
|
*
|
|
4991
5014
|
* Only accept references to block records of the specified block models.
|
|
@@ -6352,6 +6375,7 @@ export declare type ItemValidateExistingSchema = {
|
|
|
6352
6375
|
export declare type ItemValidateNewSchema = {
|
|
6353
6376
|
type?: ItemType1;
|
|
6354
6377
|
item_type: ItemTypeData;
|
|
6378
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6355
6379
|
[k: string]: unknown;
|
|
6356
6380
|
};
|
|
6357
6381
|
/**
|
|
@@ -6361,6 +6385,7 @@ export declare type ItemValidateNewSchema = {
|
|
|
6361
6385
|
export declare type ItemCreateSchema = {
|
|
6362
6386
|
type?: ItemType1;
|
|
6363
6387
|
item_type: ItemTypeData;
|
|
6388
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6364
6389
|
/**
|
|
6365
6390
|
* Meta information regarding the record
|
|
6366
6391
|
*/
|
|
@@ -6666,6 +6691,10 @@ export declare type Upload = {
|
|
|
6666
6691
|
* Blurhash for the asset
|
|
6667
6692
|
*/
|
|
6668
6693
|
blurhash: string | null;
|
|
6694
|
+
/**
|
|
6695
|
+
* Base64 encoded ThumbHash for the asset
|
|
6696
|
+
*/
|
|
6697
|
+
thumbhash: string | null;
|
|
6669
6698
|
/**
|
|
6670
6699
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6671
6700
|
*/
|
|
@@ -6846,6 +6875,10 @@ export declare type UploadAttributes = {
|
|
|
6846
6875
|
* Blurhash for the asset
|
|
6847
6876
|
*/
|
|
6848
6877
|
blurhash: string | null;
|
|
6878
|
+
/**
|
|
6879
|
+
* Base64 encoded ThumbHash for the asset
|
|
6880
|
+
*/
|
|
6881
|
+
thumbhash: string | null;
|
|
6849
6882
|
/**
|
|
6850
6883
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6851
6884
|
*/
|
|
@@ -9252,6 +9285,7 @@ export declare type Site = {
|
|
|
9252
9285
|
export declare type SiteSelfTargetSchema = Site;
|
|
9253
9286
|
export declare type SiteUpdateJobSchema = Site;
|
|
9254
9287
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9288
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9255
9289
|
/**
|
|
9256
9290
|
* Meta attributes
|
|
9257
9291
|
*
|
|
@@ -9263,6 +9297,10 @@ export declare type SiteMeta = {
|
|
|
9263
9297
|
* Whether the Improved API Timezone Management option is active or not
|
|
9264
9298
|
*/
|
|
9265
9299
|
improved_timezone_management: boolean;
|
|
9300
|
+
/**
|
|
9301
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9302
|
+
*/
|
|
9303
|
+
improved_hex_management: boolean;
|
|
9266
9304
|
};
|
|
9267
9305
|
/**
|
|
9268
9306
|
* JSON API data
|
|
@@ -9531,6 +9569,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9531
9569
|
* Whether the Improved API Timezone Management option is active or not
|
|
9532
9570
|
*/
|
|
9533
9571
|
improved_timezone_management?: boolean;
|
|
9572
|
+
/**
|
|
9573
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9574
|
+
*/
|
|
9575
|
+
improved_hex_management?: boolean;
|
|
9534
9576
|
};
|
|
9535
9577
|
};
|
|
9536
9578
|
/**
|
|
@@ -57,4 +57,22 @@ export default class Site extends BaseResource {
|
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
59
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* Activate improved hex management
|
|
62
|
+
*
|
|
63
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
67
|
+
*/
|
|
68
|
+
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
|
+
/**
|
|
70
|
+
* Activate improved hex management
|
|
71
|
+
*
|
|
72
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
73
|
+
*
|
|
74
|
+
* @throws {ApiError}
|
|
75
|
+
* @throws {TimeoutError}
|
|
76
|
+
*/
|
|
77
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
60
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@datocms/rest-client-utils": "^1.
|
|
40
|
+
"@datocms/rest-client-utils": "^1.3.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.3.
|
|
43
|
+
"@datocms/dashboard-client": "^1.3.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "730ffda4ff97fcec93c0a0842b2eee182a31bf08"
|
|
46
46
|
}
|
package/resources.json
CHANGED
|
@@ -1364,7 +1364,8 @@
|
|
|
1364
1364
|
"type": "item",
|
|
1365
1365
|
"attributes": "*",
|
|
1366
1366
|
"relationships": [
|
|
1367
|
-
"item_type"
|
|
1367
|
+
"item_type",
|
|
1368
|
+
"creator"
|
|
1368
1369
|
]
|
|
1369
1370
|
},
|
|
1370
1371
|
"queryParamsRequired": false,
|
|
@@ -1384,7 +1385,8 @@
|
|
|
1384
1385
|
"type": "item",
|
|
1385
1386
|
"attributes": "*",
|
|
1386
1387
|
"relationships": [
|
|
1387
|
-
"item_type"
|
|
1388
|
+
"item_type",
|
|
1389
|
+
"creator"
|
|
1388
1390
|
]
|
|
1389
1391
|
},
|
|
1390
1392
|
"queryParamsRequired": false,
|
|
@@ -3297,6 +3299,18 @@
|
|
|
3297
3299
|
"responseType": "SiteActivateImprovedTimezoneManagementJobSchema",
|
|
3298
3300
|
"name": "activateImprovedTimezoneManagement",
|
|
3299
3301
|
"rawName": "rawActivateImprovedTimezoneManagement"
|
|
3302
|
+
},
|
|
3303
|
+
{
|
|
3304
|
+
"returnsCollection": false,
|
|
3305
|
+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management",
|
|
3306
|
+
"rel": "activate_improved_hex_management",
|
|
3307
|
+
"urlTemplate": "/site/activate-improved-hex-management",
|
|
3308
|
+
"method": "PUT",
|
|
3309
|
+
"comment": "Activate improved hex management",
|
|
3310
|
+
"queryParamsRequired": false,
|
|
3311
|
+
"responseType": "SiteActivateImprovedHexManagementTargetSchema",
|
|
3312
|
+
"name": "activateImprovedHexManagement",
|
|
3313
|
+
"rawName": "rawActivateImprovedHexManagement"
|
|
3300
3314
|
}
|
|
3301
3315
|
],
|
|
3302
3316
|
"namespace": "site",
|
package/src/generated/Client.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class Client {
|
|
|
133
133
|
...this.config,
|
|
134
134
|
...options,
|
|
135
135
|
logFn: this.config.logFn || console.log,
|
|
136
|
-
userAgent: '@datocms/cma-client v1.3.
|
|
136
|
+
userAgent: '@datocms/cma-client v1.3.2',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|
|
@@ -553,6 +553,10 @@ export type ItemInstancesHrefSchema = {
|
|
|
553
553
|
fields?: {
|
|
554
554
|
[k: string]: unknown;
|
|
555
555
|
};
|
|
556
|
+
/**
|
|
557
|
+
* When set, only valid records are included in the results.
|
|
558
|
+
*/
|
|
559
|
+
only_valid?: string;
|
|
556
560
|
[k: string]: unknown;
|
|
557
561
|
};
|
|
558
562
|
/**
|
|
@@ -3274,6 +3278,10 @@ export type SitePlanAttributes = {
|
|
|
3274
3278
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3275
3279
|
*/
|
|
3276
3280
|
concurrent_realtime_connections: number;
|
|
3281
|
+
/**
|
|
3282
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3283
|
+
*/
|
|
3284
|
+
gql_complexity: number;
|
|
3277
3285
|
/**
|
|
3278
3286
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3279
3287
|
*/
|
|
@@ -4135,7 +4143,7 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4135
4143
|
};
|
|
4136
4144
|
|
|
4137
4145
|
/**
|
|
4138
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4146
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4139
4147
|
*
|
|
4140
4148
|
* ### Different field types require different settings
|
|
4141
4149
|
*
|
|
@@ -4732,6 +4740,17 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4732
4740
|
* </details>
|
|
4733
4741
|
*
|
|
4734
4742
|
* <details>
|
|
4743
|
+
* <summary><code>sanitization</code></summary>
|
|
4744
|
+
*
|
|
4745
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
4746
|
+
*
|
|
4747
|
+
* | Parameter | Type | Required | Description |
|
|
4748
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
4749
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
4750
|
+
*
|
|
4751
|
+
* </details>
|
|
4752
|
+
*
|
|
4753
|
+
* <details>
|
|
4735
4754
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4736
4755
|
*
|
|
4737
4756
|
* Only accept references to block records of the specified block models.
|
|
@@ -6426,6 +6445,17 @@ export type ItemValidateNewSchema = {
|
|
|
6426
6445
|
item_type: {
|
|
6427
6446
|
data: ItemTypeData;
|
|
6428
6447
|
};
|
|
6448
|
+
/**
|
|
6449
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6450
|
+
*/
|
|
6451
|
+
creator?: {
|
|
6452
|
+
data:
|
|
6453
|
+
| AccountData
|
|
6454
|
+
| AccessTokenData
|
|
6455
|
+
| UserData
|
|
6456
|
+
| SsoUserData
|
|
6457
|
+
| OrganizationData;
|
|
6458
|
+
};
|
|
6429
6459
|
};
|
|
6430
6460
|
};
|
|
6431
6461
|
};
|
|
@@ -6495,6 +6525,17 @@ export type ItemCreateSchema = {
|
|
|
6495
6525
|
item_type: {
|
|
6496
6526
|
data: ItemTypeData;
|
|
6497
6527
|
};
|
|
6528
|
+
/**
|
|
6529
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6530
|
+
*/
|
|
6531
|
+
creator?: {
|
|
6532
|
+
data:
|
|
6533
|
+
| AccountData
|
|
6534
|
+
| AccessTokenData
|
|
6535
|
+
| UserData
|
|
6536
|
+
| SsoUserData
|
|
6537
|
+
| OrganizationData;
|
|
6538
|
+
};
|
|
6498
6539
|
};
|
|
6499
6540
|
};
|
|
6500
6541
|
};
|
|
@@ -7114,6 +7155,10 @@ export type UploadAttributes = {
|
|
|
7114
7155
|
* Blurhash for the asset
|
|
7115
7156
|
*/
|
|
7116
7157
|
blurhash: string | null;
|
|
7158
|
+
/**
|
|
7159
|
+
* Base64 encoded ThumbHash for the asset
|
|
7160
|
+
*/
|
|
7161
|
+
thumbhash: string | null;
|
|
7117
7162
|
/**
|
|
7118
7163
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7119
7164
|
*/
|
|
@@ -10192,6 +10237,10 @@ export type SiteMeta = {
|
|
|
10192
10237
|
* Whether the Improved API Timezone Management option is active or not
|
|
10193
10238
|
*/
|
|
10194
10239
|
improved_timezone_management: boolean;
|
|
10240
|
+
/**
|
|
10241
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10242
|
+
*/
|
|
10243
|
+
improved_hex_management: boolean;
|
|
10195
10244
|
};
|
|
10196
10245
|
|
|
10197
10246
|
/**
|
|
@@ -10330,6 +10379,10 @@ export type SiteUpdateSchema = {
|
|
|
10330
10379
|
* Whether the Improved API Timezone Management option is active or not
|
|
10331
10380
|
*/
|
|
10332
10381
|
improved_timezone_management?: boolean;
|
|
10382
|
+
/**
|
|
10383
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10384
|
+
*/
|
|
10385
|
+
improved_hex_management?: boolean;
|
|
10333
10386
|
};
|
|
10334
10387
|
relationships?: {
|
|
10335
10388
|
sso_default_role?: {
|
|
@@ -10371,6 +10424,14 @@ export type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
|
10371
10424
|
data: Site;
|
|
10372
10425
|
};
|
|
10373
10426
|
|
|
10427
|
+
/**
|
|
10428
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10429
|
+
* via the `activate_improved_hex_management.targetSchema` link.
|
|
10430
|
+
*/
|
|
10431
|
+
export type SiteActivateImprovedHexManagementTargetSchema = {
|
|
10432
|
+
data: Site;
|
|
10433
|
+
};
|
|
10434
|
+
|
|
10374
10435
|
/**
|
|
10375
10436
|
* 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.
|
|
10376
10437
|
*
|
|
@@ -648,6 +648,10 @@ export type ItemInstancesHrefSchema = {
|
|
|
648
648
|
fields?: {
|
|
649
649
|
[k: string]: unknown;
|
|
650
650
|
};
|
|
651
|
+
/**
|
|
652
|
+
* When set, only valid records are included in the results.
|
|
653
|
+
*/
|
|
654
|
+
only_valid?: string;
|
|
651
655
|
[k: string]: unknown;
|
|
652
656
|
};
|
|
653
657
|
/**
|
|
@@ -3674,6 +3678,10 @@ export type SitePlan = {
|
|
|
3674
3678
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3675
3679
|
*/
|
|
3676
3680
|
concurrent_realtime_connections: number;
|
|
3681
|
+
/**
|
|
3682
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3683
|
+
*/
|
|
3684
|
+
gql_complexity: number;
|
|
3677
3685
|
/**
|
|
3678
3686
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3679
3687
|
*/
|
|
@@ -3900,6 +3908,10 @@ export type SitePlanAttributes = {
|
|
|
3900
3908
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3901
3909
|
*/
|
|
3902
3910
|
concurrent_realtime_connections: number;
|
|
3911
|
+
/**
|
|
3912
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3913
|
+
*/
|
|
3914
|
+
gql_complexity: number;
|
|
3903
3915
|
/**
|
|
3904
3916
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3905
3917
|
*/
|
|
@@ -4660,7 +4672,7 @@ export type JobData = {
|
|
|
4660
4672
|
};
|
|
4661
4673
|
|
|
4662
4674
|
/**
|
|
4663
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4675
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4664
4676
|
*
|
|
4665
4677
|
* ### Different field types require different settings
|
|
4666
4678
|
*
|
|
@@ -5257,6 +5269,17 @@ export type JobData = {
|
|
|
5257
5269
|
* </details>
|
|
5258
5270
|
*
|
|
5259
5271
|
* <details>
|
|
5272
|
+
* <summary><code>sanitization</code></summary>
|
|
5273
|
+
*
|
|
5274
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
5275
|
+
*
|
|
5276
|
+
* | Parameter | Type | Required | Description |
|
|
5277
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
5278
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
5279
|
+
*
|
|
5280
|
+
* </details>
|
|
5281
|
+
*
|
|
5282
|
+
* <details>
|
|
5260
5283
|
* <summary><code>structured_text_blocks</code></summary>
|
|
5261
5284
|
*
|
|
5262
5285
|
* Only accept references to block records of the specified block models.
|
|
@@ -6844,6 +6867,12 @@ export type ItemValidateExistingSchema = {
|
|
|
6844
6867
|
export type ItemValidateNewSchema = {
|
|
6845
6868
|
type?: ItemType1;
|
|
6846
6869
|
item_type: ItemTypeData;
|
|
6870
|
+
creator?:
|
|
6871
|
+
| AccountData
|
|
6872
|
+
| AccessTokenData
|
|
6873
|
+
| UserData
|
|
6874
|
+
| SsoUserData
|
|
6875
|
+
| OrganizationData;
|
|
6847
6876
|
[k: string]: unknown;
|
|
6848
6877
|
};
|
|
6849
6878
|
|
|
@@ -6854,6 +6883,12 @@ export type ItemValidateNewSchema = {
|
|
|
6854
6883
|
export type ItemCreateSchema = {
|
|
6855
6884
|
type?: ItemType1;
|
|
6856
6885
|
item_type: ItemTypeData;
|
|
6886
|
+
creator?:
|
|
6887
|
+
| AccountData
|
|
6888
|
+
| AccessTokenData
|
|
6889
|
+
| UserData
|
|
6890
|
+
| SsoUserData
|
|
6891
|
+
| OrganizationData;
|
|
6857
6892
|
/**
|
|
6858
6893
|
* Meta information regarding the record
|
|
6859
6894
|
*/
|
|
@@ -7184,6 +7219,10 @@ export type Upload = {
|
|
|
7184
7219
|
* Blurhash for the asset
|
|
7185
7220
|
*/
|
|
7186
7221
|
blurhash: string | null;
|
|
7222
|
+
/**
|
|
7223
|
+
* Base64 encoded ThumbHash for the asset
|
|
7224
|
+
*/
|
|
7225
|
+
thumbhash: string | null;
|
|
7187
7226
|
/**
|
|
7188
7227
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7189
7228
|
*/
|
|
@@ -7370,6 +7409,10 @@ export type UploadAttributes = {
|
|
|
7370
7409
|
* Blurhash for the asset
|
|
7371
7410
|
*/
|
|
7372
7411
|
blurhash: string | null;
|
|
7412
|
+
/**
|
|
7413
|
+
* Base64 encoded ThumbHash for the asset
|
|
7414
|
+
*/
|
|
7415
|
+
thumbhash: string | null;
|
|
7373
7416
|
/**
|
|
7374
7417
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7375
7418
|
*/
|
|
@@ -9874,6 +9917,7 @@ export type Site = {
|
|
|
9874
9917
|
export type SiteSelfTargetSchema = Site;
|
|
9875
9918
|
export type SiteUpdateJobSchema = Site;
|
|
9876
9919
|
export type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9920
|
+
export type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9877
9921
|
/**
|
|
9878
9922
|
* Meta attributes
|
|
9879
9923
|
*
|
|
@@ -9885,6 +9929,10 @@ export type SiteMeta = {
|
|
|
9885
9929
|
* Whether the Improved API Timezone Management option is active or not
|
|
9886
9930
|
*/
|
|
9887
9931
|
improved_timezone_management: boolean;
|
|
9932
|
+
/**
|
|
9933
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9934
|
+
*/
|
|
9935
|
+
improved_hex_management: boolean;
|
|
9888
9936
|
};
|
|
9889
9937
|
|
|
9890
9938
|
/**
|
|
@@ -10157,6 +10205,10 @@ export type SiteUpdateSchema = {
|
|
|
10157
10205
|
* Whether the Improved API Timezone Management option is active or not
|
|
10158
10206
|
*/
|
|
10159
10207
|
improved_timezone_management?: boolean;
|
|
10208
|
+
/**
|
|
10209
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10210
|
+
*/
|
|
10211
|
+
improved_hex_management?: boolean;
|
|
10160
10212
|
};
|
|
10161
10213
|
};
|
|
10162
10214
|
|
|
@@ -148,7 +148,7 @@ export default class Item extends BaseResource {
|
|
|
148
148
|
Utils.serializeRequestBody<SchemaTypes.ItemValidateNewSchema>(body, {
|
|
149
149
|
type: 'item',
|
|
150
150
|
attributes: '*',
|
|
151
|
-
relationships: ['item_type'],
|
|
151
|
+
relationships: ['item_type', 'creator'],
|
|
152
152
|
}),
|
|
153
153
|
);
|
|
154
154
|
}
|
|
@@ -184,7 +184,7 @@ export default class Item extends BaseResource {
|
|
|
184
184
|
Utils.serializeRequestBody<SchemaTypes.ItemCreateSchema>(body, {
|
|
185
185
|
type: 'item',
|
|
186
186
|
attributes: '*',
|
|
187
|
-
relationships: ['item_type'],
|
|
187
|
+
relationships: ['item_type', 'creator'],
|
|
188
188
|
}),
|
|
189
189
|
).then((body) =>
|
|
190
190
|
Utils.deserializeResponseBody<SimpleSchemaTypes.ItemCreateTargetSchema>(
|
|
@@ -122,4 +122,37 @@ export default class Site extends BaseResource {
|
|
|
122
122
|
},
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Activate improved hex management
|
|
128
|
+
*
|
|
129
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
130
|
+
*
|
|
131
|
+
* @throws {ApiError}
|
|
132
|
+
* @throws {TimeoutError}
|
|
133
|
+
*/
|
|
134
|
+
activateImprovedHexManagement() {
|
|
135
|
+
return this.rawActivateImprovedHexManagement().then((body) =>
|
|
136
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
|
|
137
|
+
body,
|
|
138
|
+
),
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Activate improved hex management
|
|
144
|
+
*
|
|
145
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
146
|
+
*
|
|
147
|
+
* @throws {ApiError}
|
|
148
|
+
* @throws {TimeoutError}
|
|
149
|
+
*/
|
|
150
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema> {
|
|
151
|
+
return this.client.request<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
|
|
152
|
+
{
|
|
153
|
+
method: 'PUT',
|
|
154
|
+
url: '/site/activate-improved-hex-management',
|
|
155
|
+
},
|
|
156
|
+
);
|
|
157
|
+
}
|
|
125
158
|
}
|