@datocms/cma-client 5.1.20 → 5.1.22
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/fieldTypes/slug.js.map +1 -1
- package/dist/cjs/fieldTypes/structured_text.js.map +1 -1
- package/dist/cjs/fieldTypes/validators/index.js +2 -2
- package/dist/cjs/fieldTypes/validators/index.js.map +1 -1
- package/dist/cjs/fieldTypes/validators/{sanitization.js → sanitized_html.js} +1 -1
- package/dist/cjs/fieldTypes/validators/sanitized_html.js.map +1 -0
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/ItemVersion.js +4 -3
- package/dist/cjs/generated/resources/ItemVersion.js.map +1 -1
- package/dist/esm/fieldTypes/slug.d.ts +3 -0
- package/dist/esm/fieldTypes/slug.js.map +1 -1
- package/dist/esm/fieldTypes/structured_text.d.ts +3 -0
- package/dist/esm/fieldTypes/structured_text.js.map +1 -1
- package/dist/esm/fieldTypes/text.d.ts +2 -2
- package/dist/esm/fieldTypes/validators/index.d.ts +2 -2
- package/dist/esm/fieldTypes/validators/index.js +2 -2
- package/dist/esm/fieldTypes/validators/index.js.map +1 -1
- package/dist/{types/fieldTypes/validators/sanitization.d.ts → esm/fieldTypes/validators/sanitized_html.d.ts} +1 -1
- package/dist/esm/fieldTypes/validators/sanitized_html.js +2 -0
- package/dist/esm/fieldTypes/validators/sanitized_html.js.map +1 -0
- package/dist/esm/generated/ApiTypes.d.ts +11 -0
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +11 -0
- package/dist/esm/generated/resources/ItemVersion.d.ts +2 -2
- package/dist/esm/generated/resources/ItemVersion.js +4 -3
- package/dist/esm/generated/resources/ItemVersion.js.map +1 -1
- package/dist/types/fieldTypes/slug.d.ts +3 -0
- package/dist/types/fieldTypes/structured_text.d.ts +3 -0
- package/dist/types/fieldTypes/text.d.ts +2 -2
- package/dist/types/fieldTypes/validators/index.d.ts +2 -2
- package/dist/{esm/fieldTypes/validators/sanitization.d.ts → types/fieldTypes/validators/sanitized_html.d.ts} +1 -1
- package/dist/types/generated/ApiTypes.d.ts +11 -0
- package/dist/types/generated/RawApiTypes.d.ts +11 -0
- package/dist/types/generated/resources/ItemVersion.d.ts +2 -2
- package/package.json +2 -2
- package/resources.json +1 -0
- package/src/fieldTypes/slug.ts +3 -0
- package/src/fieldTypes/structured_text.ts +3 -0
- package/src/fieldTypes/text.ts +2 -2
- package/src/fieldTypes/validators/index.ts +2 -2
- package/src/fieldTypes/validators/{sanitization.ts → sanitized_html.ts} +1 -1
- package/src/generated/ApiTypes.ts +11 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +11 -0
- package/src/generated/resources/ItemVersion.ts +7 -2
- package/dist/cjs/fieldTypes/validators/sanitization.js.map +0 -1
- package/dist/esm/fieldTypes/validators/sanitization.js +0 -2
- package/dist/esm/fieldTypes/validators/sanitization.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../../src/fieldTypes/slug.ts"],"names":[],"mappings":";;;AAAA,8EAG4C;
|
|
1
|
+
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../../src/fieldTypes/slug.ts"],"names":[],"mappings":";;;AAAA,8EAG4C;AAU5C,SAAgB,gBAAgB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC;AAHD,4CAGC;AAED,SAAgB,yBAAyB,CACvC,KAAc;IAEd,OAAO,CACL,IAAA,6CAAqB,EAAC,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC7E,CAAC;AACJ,CAAC;AAND,8DAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured_text.js","sourceRoot":"","sources":["../../../src/fieldTypes/structured_text.ts"],"names":[],"mappings":";;;AAAA,iFASuC;AACvC,wCAA4C;AAE5C,8EAG4C;AAE5C,iDAMwB;
|
|
1
|
+
{"version":3,"file":"structured_text.js","sourceRoot":"","sources":["../../../src/fieldTypes/structured_text.ts"],"names":[],"mappings":";;;AAAA,iFASuC;AACvC,wCAA4C;AAE5C,8EAG4C;AAE5C,iDAMwB;AA4HxB;;;GAGG;AACH,SAAS,qBAAqB,CAC5B,IAAgB,EAChB,QAAsD;IAEtD,OAAO,IAAA,yCAAS,EAAC,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE;QACrC,wEAAwE;QACxE,IAAI,IAAA,uCAAO,EAAC,WAAW,CAAC,IAAI,IAAA,6CAAa,EAAC,WAAW,CAAC,EAAE;YACtD,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;SAC9B;QACD,qDAAqD;QACrD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAgB,0BAA0B,CACxC,KAAc;IAEd,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAEhC,IAAI,CAAC,IAAA,0CAAU,EAAmB,KAAK,CAAC,EAAE;QACxC,OAAO,KAAK,CAAC;KACd;IAED,8DAA8D;IAC9D,OAAO,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACpD,OAAO,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAA,cAAS,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC;AAbD,gEAaC;AAED,SAAgB,mCAAmC,CACjD,KAAc;IAEd,OAAO,CACL,IAAA,6CAAqB,EAAC,KAAK,CAAC;QAC5B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CACvD,CAAC;AACJ,CAAC;AA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B,EAAC,KAAK,CAAC;QAC5B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,0CAA0C,CAAC,CACvE,CAAC;AACJ,CAAC;AATD,kHASC"}
|
|
@@ -23,15 +23,15 @@ __exportStar(require("./file_size"), exports);
|
|
|
23
23
|
__exportStar(require("./format"), exports);
|
|
24
24
|
__exportStar(require("./image_aspect_ratio"), exports);
|
|
25
25
|
__exportStar(require("./image_dimensions"), exports);
|
|
26
|
-
__exportStar(require("./item_item_type"), exports);
|
|
27
26
|
__exportStar(require("./items_item_type"), exports);
|
|
27
|
+
__exportStar(require("./item_item_type"), exports);
|
|
28
28
|
__exportStar(require("./length"), exports);
|
|
29
29
|
__exportStar(require("./number_range"), exports);
|
|
30
30
|
__exportStar(require("./required"), exports);
|
|
31
31
|
__exportStar(require("./required_alt_title"), exports);
|
|
32
32
|
__exportStar(require("./required_seo_fields"), exports);
|
|
33
33
|
__exportStar(require("./rich_text_blocks"), exports);
|
|
34
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./sanitized_html"), exports);
|
|
35
35
|
__exportStar(require("./single_block_blocks"), exports);
|
|
36
36
|
__exportStar(require("./size"), exports);
|
|
37
37
|
__exportStar(require("./slug_format"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,uDAAqC;AACrC,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,uDAAqC;AACrC,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,mDAAiC;AACjC,2CAAyB;AACzB,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,yCAAuB;AACvB,gDAA8B;AAC9B,qDAAmC;AACnC,2DAAyC;AACzC,kEAAgD;AAChD,0DAAwC;AACxC,iDAA+B;AAC/B,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitized_html.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/sanitized_html.ts"],"names":[],"mappings":""}
|
|
@@ -88,7 +88,7 @@ class Client {
|
|
|
88
88
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
89
89
|
}
|
|
90
90
|
request(options) {
|
|
91
|
-
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.
|
|
91
|
+
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.22', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
92
92
|
? { 'X-Environment': this.config.environment }
|
|
93
93
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
94
94
|
return this.jobResultsFetcher
|
|
@@ -155,8 +155,8 @@ class ItemVersion extends BaseResource_1.default {
|
|
|
155
155
|
* @throws {ApiError}
|
|
156
156
|
* @throws {TimeoutError}
|
|
157
157
|
*/
|
|
158
|
-
find(itemVersionId) {
|
|
159
|
-
return this.rawFind(Utils.toId(itemVersionId)).then((body) => Utils.deserializeResponseBody(body));
|
|
158
|
+
find(itemVersionId, queryParams) {
|
|
159
|
+
return this.rawFind(Utils.toId(itemVersionId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* Retrieve a record version
|
|
@@ -166,10 +166,11 @@ class ItemVersion extends BaseResource_1.default {
|
|
|
166
166
|
* @throws {ApiError}
|
|
167
167
|
* @throws {TimeoutError}
|
|
168
168
|
*/
|
|
169
|
-
rawFind(itemVersionId) {
|
|
169
|
+
rawFind(itemVersionId, queryParams) {
|
|
170
170
|
return this.client.request({
|
|
171
171
|
method: 'GET',
|
|
172
172
|
url: `/versions/${itemVersionId}`,
|
|
173
|
+
queryParams,
|
|
173
174
|
});
|
|
174
175
|
}
|
|
175
176
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemVersion.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AACpD,sEAA8C;AAI9C,MAAqB,WAAY,SAAQ,sBAAY;IAGnD;;;;;;;OAOG;IACH,OAAO,CAAC,aAAgD;QACtD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC9D,KAAK,CAAC,uBAAuB,CAAuC,IAAI,CAAC,CAC1E,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,aAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA0C;YAClE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,aAAa,aAAa,UAAU;SAC1C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,MAAkC,EAClC,WAAqD;QAErD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACjE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,MAAc,EACd,WAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+C;YACvE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,UAAU,MAAM,WAAW;YAChC,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,iBAAiB,CACtB,MAAkC,EAClC,WAGC,EACD,eAAuC;;;;gBAEvC,KAA4B,eAAA,KAAA,cAAA,IAAI,CAAC,oBAAoB,CACnD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAClB,WAAW,EACX,eAAe,CAChB,CAAA,IAAA;oBAJ2B,cAI3B;oBAJ2B,WAI3B;;wBAJU,MAAM,OAAO,KAAA,CAAA;wBAKtB,oBAAM,KAAK,CAAC,qBAAqB,CAE/B,OAAO,CAAC,CAAA,CAAC;;;;;iBACZ;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,MAAc,EACd,WAGC,EACD,eAAuC;QAEvC,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAExC,OAAO,KAAK,CAAC,eAAe,CAG1B;YACE,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,EAAE;SACb,EACD,CAAC,IAAwD,EAAE,EAAE,CAC3D,IAAI,CAAC,OAAO,CAAC,MAAM,kCAAO,WAAW,KAAE,IAAI,IAAG,EAChD,eAAe,CAChB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"ItemVersion.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;A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AE/B,OAAO,CAAC,CAAA,CAAC;;;;;iBACZ;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,MAAc,EACd,WAGC,EACD,eAAuC;QAEvC,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAExC,OAAO,KAAK,CAAC,eAAe,CAG1B;YACE,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,EAAE;SACb,EACD,CAAC,IAAwD,EAAE,EAAE,CAC3D,IAAI,CAAC,OAAO,CAAC,MAAM,kCAAO,WAAW,KAAE,IAAI,IAAG,EAChD,eAAe,CAChB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,aAAgD,EAChD,WAAgD;QAEhD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACxE,KAAK,CAAC,uBAAuB,CAAuC,IAAI,CAAC,CAC1E,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,aAAqB,EACrB,WAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA0C;YAClE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,aAAa,aAAa,EAAE;YACjC,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;;AApKH,8BAqKC;AApKiB,gBAAI,GAAG,cAAuB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
2
2
|
import type { SlugEditorConfiguration } from './appearance/slug';
|
|
3
|
+
import type { UniqueValidator } from './validators';
|
|
3
4
|
import type { LengthValidator } from './validators/length';
|
|
4
5
|
import type { RequiredValidator } from './validators/required';
|
|
5
6
|
import type { SlugFormatValidator } from './validators/slug_format';
|
|
@@ -10,6 +11,8 @@ export declare function isLocalizedSlugFieldValue(value: unknown): value is Loca
|
|
|
10
11
|
export type SlugFieldValidators = {
|
|
11
12
|
/** Value must be specified or it won't be valid */
|
|
12
13
|
required?: RequiredValidator;
|
|
14
|
+
/** The value must be unique across the whole collection of records */
|
|
15
|
+
unique?: UniqueValidator;
|
|
13
16
|
/** Accept strings only with a specified number of characters */
|
|
14
17
|
length?: LengthValidator;
|
|
15
18
|
/** Only accept slugs having a specific format */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../../src/fieldTypes/slug.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"slug.js","sourceRoot":"","sources":["../../../src/fieldTypes/slug.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAU5C,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAc;IAEd,OAAO,CACL,qBAAqB,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC7E,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { ItemTypeDefinition } from '../utilities/itemDefinition';
|
|
|
3
3
|
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
4
4
|
import type { StructuredTextEditorConfiguration } from './appearance/structured_text';
|
|
5
5
|
import { type BlockInNestedResponse, type BlockInRequest } from './single_block';
|
|
6
|
+
import type { RequiredValidator } from './validators';
|
|
6
7
|
import type { LengthValidator } from './validators/length';
|
|
7
8
|
import type { StructuredTextBlocksValidator } from './validators/structured_text_blocks';
|
|
8
9
|
import type { StructuredTextInlineBlocksValidator } from './validators/structured_text_inline_blocks';
|
|
@@ -100,6 +101,8 @@ export declare function isLocalizedStructuredTextFieldValueInRequest<D extends I
|
|
|
100
101
|
export declare function isStructuredTextFieldValueInNestedResponse<D extends ItemTypeDefinition = ItemTypeDefinition>(value: unknown): value is StructuredTextFieldValueInNestedResponse<D>;
|
|
101
102
|
export declare function isLocalizedStructuredTextFieldValueInNestedResponse<D extends ItemTypeDefinition = ItemTypeDefinition>(value: unknown): value is LocalizedFieldValue<StructuredTextFieldValueInNestedResponse<D>>;
|
|
102
103
|
export type StructuredTextFieldValidators = {
|
|
104
|
+
/** Value must be specified or it won't be valid */
|
|
105
|
+
required?: RequiredValidator;
|
|
103
106
|
/** Only accept references to block records of the specified block models */
|
|
104
107
|
structured_text_blocks: StructuredTextBlocksValidator;
|
|
105
108
|
/** Only accept itemLink to inlineItem nodes for records of the specified models */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured_text.js","sourceRoot":"","sources":["../../../src/fieldTypes/structured_text.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,SAAS,EACT,OAAO,EACP,UAAU,EACV,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAEL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAGL,QAAQ,EACR,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"structured_text.js","sourceRoot":"","sources":["../../../src/fieldTypes/structured_text.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,SAAS,EACT,OAAO,EACP,UAAU,EACV,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAEL,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAGL,QAAQ,EACR,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I,EAAE,EAAE;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAEvB,YAAY;QACZ,IAAI,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QAEhC,qCAAqC;QACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,4CAA4C,CAG1D,KAAc;IAEd,OAAO,CACL,qBAAqB,CAAC,KAAK,CAAC;QAC5B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAChE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0CAA0C,CAExD,KAAc;IACd,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAEhC,IAAI,CAAC,UAAU,CAAU,KAAK,CAAC,EAAE;QAC/B,OAAO,KAAK,CAAC;KACd;IAED,gEAAgE;IAChE,OAAO,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAEvB,2EAA2E;QAC3E,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mDAAmD,CAGjE,KAAc;IAEd,OAAO,CACL,qBAAqB,CAAC,KAAK,CAAC;QAC5B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,0CAA0C,CAAC,CACvE,CAAC;AACJ,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
|
2
2
|
import type { MarkdownEditorConfiguration } from './appearance/markdown';
|
|
3
3
|
import type { TextareaEditorConfiguration } from './appearance/textarea';
|
|
4
4
|
import type { WysiwygEditorConfiguration } from './appearance/wysiwyg';
|
|
5
|
+
import type { SanitizedHtmlValidator } from './validators';
|
|
5
6
|
import type { FormatValidator } from './validators/format';
|
|
6
7
|
import type { LengthValidator } from './validators/length';
|
|
7
8
|
import type { RequiredValidator } from './validators/required';
|
|
8
|
-
import type { SanitizationValidator } from './validators/sanitization';
|
|
9
9
|
export type TextFieldValue = string | null;
|
|
10
10
|
export declare function isTextFieldValue(value: unknown): value is TextFieldValue;
|
|
11
11
|
export declare function isLocalizedTextFieldValue(value: unknown): value is LocalizedFieldValue<TextFieldValue>;
|
|
@@ -17,7 +17,7 @@ export type TextFieldValidators = {
|
|
|
17
17
|
/** Accepts only strings that match a specified format */
|
|
18
18
|
format?: FormatValidator;
|
|
19
19
|
/** Checks for the presence of malicious code in HTML fields */
|
|
20
|
-
|
|
20
|
+
sanitized_html?: SanitizedHtmlValidator;
|
|
21
21
|
};
|
|
22
22
|
export type TextFieldAppearance = {
|
|
23
23
|
editor: 'markdown';
|
|
@@ -7,15 +7,15 @@ export * from './file_size';
|
|
|
7
7
|
export * from './format';
|
|
8
8
|
export * from './image_aspect_ratio';
|
|
9
9
|
export * from './image_dimensions';
|
|
10
|
-
export * from './item_item_type';
|
|
11
10
|
export * from './items_item_type';
|
|
11
|
+
export * from './item_item_type';
|
|
12
12
|
export * from './length';
|
|
13
13
|
export * from './number_range';
|
|
14
14
|
export * from './required';
|
|
15
15
|
export * from './required_alt_title';
|
|
16
16
|
export * from './required_seo_fields';
|
|
17
17
|
export * from './rich_text_blocks';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './sanitized_html';
|
|
19
19
|
export * from './single_block_blocks';
|
|
20
20
|
export * from './size';
|
|
21
21
|
export * from './slug_format';
|
|
@@ -7,15 +7,15 @@ export * from './file_size';
|
|
|
7
7
|
export * from './format';
|
|
8
8
|
export * from './image_aspect_ratio';
|
|
9
9
|
export * from './image_dimensions';
|
|
10
|
-
export * from './item_item_type';
|
|
11
10
|
export * from './items_item_type';
|
|
11
|
+
export * from './item_item_type';
|
|
12
12
|
export * from './length';
|
|
13
13
|
export * from './number_range';
|
|
14
14
|
export * from './required';
|
|
15
15
|
export * from './required_alt_title';
|
|
16
16
|
export * from './required_seo_fields';
|
|
17
17
|
export * from './rich_text_blocks';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './sanitized_html';
|
|
19
19
|
export * from './single_block_blocks';
|
|
20
20
|
export * from './size';
|
|
21
21
|
export * from './slug_format';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for the presence of malicious code in HTML fields: content is valid if no dangerous code is present.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type SanitizedHtmlValidator = {
|
|
5
5
|
/** Content is actively sanitized before applying the validation */
|
|
6
6
|
sanitize_before_validation: boolean;
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitized_html.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/sanitized_html.ts"],"names":[],"mappings":""}
|
|
@@ -1058,6 +1058,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
[k: string]: unknown;
|
|
1060
1060
|
};
|
|
1061
|
+
/**
|
|
1062
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
1063
|
+
* via the `self.hrefSchema` link.
|
|
1064
|
+
*/
|
|
1065
|
+
export type ItemVersionSelfHrefSchema = {
|
|
1066
|
+
/**
|
|
1067
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
1068
|
+
*/
|
|
1069
|
+
nested?: boolean;
|
|
1070
|
+
[k: string]: unknown;
|
|
1071
|
+
};
|
|
1061
1072
|
/**
|
|
1062
1073
|
* RFC 4122 UUID of upload expressed in URL-safe base64 format
|
|
1063
1074
|
*
|
|
@@ -62,7 +62,7 @@ export class Client {
|
|
|
62
62
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
63
63
|
}
|
|
64
64
|
request(options) {
|
|
65
|
-
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.
|
|
65
|
+
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.22', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
66
66
|
? { 'X-Environment': this.config.environment }
|
|
67
67
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
68
68
|
return this.jobResultsFetcher
|
|
@@ -796,6 +796,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
796
796
|
};
|
|
797
797
|
[k: string]: unknown;
|
|
798
798
|
};
|
|
799
|
+
/**
|
|
800
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
801
|
+
* via the `self.hrefSchema` link.
|
|
802
|
+
*/
|
|
803
|
+
export type ItemVersionSelfHrefSchema = {
|
|
804
|
+
/**
|
|
805
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
806
|
+
*/
|
|
807
|
+
nested?: boolean;
|
|
808
|
+
[k: string]: unknown;
|
|
809
|
+
};
|
|
799
810
|
/**
|
|
800
811
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
801
812
|
* via the `publish.schema` link.
|
|
@@ -68,7 +68,7 @@ export default class ItemVersion extends BaseResource {
|
|
|
68
68
|
* @throws {ApiError}
|
|
69
69
|
* @throws {TimeoutError}
|
|
70
70
|
*/
|
|
71
|
-
find(itemVersionId: string | ApiTypes.ItemVersionData): Promise<ApiTypes.ItemVersion>;
|
|
71
|
+
find(itemVersionId: string | ApiTypes.ItemVersionData, queryParams?: ApiTypes.ItemVersionSelfHrefSchema): Promise<ApiTypes.ItemVersion>;
|
|
72
72
|
/**
|
|
73
73
|
* Retrieve a record version
|
|
74
74
|
*
|
|
@@ -77,5 +77,5 @@ export default class ItemVersion extends BaseResource {
|
|
|
77
77
|
* @throws {ApiError}
|
|
78
78
|
* @throws {TimeoutError}
|
|
79
79
|
*/
|
|
80
|
-
rawFind(itemVersionId: string): Promise<RawApiTypes.ItemVersionSelfTargetSchema>;
|
|
80
|
+
rawFind(itemVersionId: string, queryParams?: RawApiTypes.ItemVersionSelfHrefSchema): Promise<RawApiTypes.ItemVersionSelfTargetSchema>;
|
|
81
81
|
}
|
|
@@ -127,8 +127,8 @@ export default class ItemVersion extends BaseResource {
|
|
|
127
127
|
* @throws {ApiError}
|
|
128
128
|
* @throws {TimeoutError}
|
|
129
129
|
*/
|
|
130
|
-
find(itemVersionId) {
|
|
131
|
-
return this.rawFind(Utils.toId(itemVersionId)).then((body) => Utils.deserializeResponseBody(body));
|
|
130
|
+
find(itemVersionId, queryParams) {
|
|
131
|
+
return this.rawFind(Utils.toId(itemVersionId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* Retrieve a record version
|
|
@@ -138,10 +138,11 @@ export default class ItemVersion extends BaseResource {
|
|
|
138
138
|
* @throws {ApiError}
|
|
139
139
|
* @throws {TimeoutError}
|
|
140
140
|
*/
|
|
141
|
-
rawFind(itemVersionId) {
|
|
141
|
+
rawFind(itemVersionId, queryParams) {
|
|
142
142
|
return this.client.request({
|
|
143
143
|
method: 'GET',
|
|
144
144
|
url: `/versions/${itemVersionId}`,
|
|
145
|
+
queryParams,
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemVersion.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IAGnD;;;;;;;OAOG;IACH,OAAO,CAAC,aAAgD;QACtD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAA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,IAAI,CAAC,MAAM,CAAC,OAAO,CAA0C;YAClE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,aAAa,aAAa,EAAE;YACjC,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;;AAnKe,gBAAI,GAAG,cAAuB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
2
2
|
import type { SlugEditorConfiguration } from './appearance/slug';
|
|
3
|
+
import type { UniqueValidator } from './validators';
|
|
3
4
|
import type { LengthValidator } from './validators/length';
|
|
4
5
|
import type { RequiredValidator } from './validators/required';
|
|
5
6
|
import type { SlugFormatValidator } from './validators/slug_format';
|
|
@@ -10,6 +11,8 @@ export declare function isLocalizedSlugFieldValue(value: unknown): value is Loca
|
|
|
10
11
|
export type SlugFieldValidators = {
|
|
11
12
|
/** Value must be specified or it won't be valid */
|
|
12
13
|
required?: RequiredValidator;
|
|
14
|
+
/** The value must be unique across the whole collection of records */
|
|
15
|
+
unique?: UniqueValidator;
|
|
13
16
|
/** Accept strings only with a specified number of characters */
|
|
14
17
|
length?: LengthValidator;
|
|
15
18
|
/** Only accept slugs having a specific format */
|
|
@@ -3,6 +3,7 @@ import type { ItemTypeDefinition } from '../utilities/itemDefinition';
|
|
|
3
3
|
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
4
4
|
import type { StructuredTextEditorConfiguration } from './appearance/structured_text';
|
|
5
5
|
import { type BlockInNestedResponse, type BlockInRequest } from './single_block';
|
|
6
|
+
import type { RequiredValidator } from './validators';
|
|
6
7
|
import type { LengthValidator } from './validators/length';
|
|
7
8
|
import type { StructuredTextBlocksValidator } from './validators/structured_text_blocks';
|
|
8
9
|
import type { StructuredTextInlineBlocksValidator } from './validators/structured_text_inline_blocks';
|
|
@@ -100,6 +101,8 @@ export declare function isLocalizedStructuredTextFieldValueInRequest<D extends I
|
|
|
100
101
|
export declare function isStructuredTextFieldValueInNestedResponse<D extends ItemTypeDefinition = ItemTypeDefinition>(value: unknown): value is StructuredTextFieldValueInNestedResponse<D>;
|
|
101
102
|
export declare function isLocalizedStructuredTextFieldValueInNestedResponse<D extends ItemTypeDefinition = ItemTypeDefinition>(value: unknown): value is LocalizedFieldValue<StructuredTextFieldValueInNestedResponse<D>>;
|
|
102
103
|
export type StructuredTextFieldValidators = {
|
|
104
|
+
/** Value must be specified or it won't be valid */
|
|
105
|
+
required?: RequiredValidator;
|
|
103
106
|
/** Only accept references to block records of the specified block models */
|
|
104
107
|
structured_text_blocks: StructuredTextBlocksValidator;
|
|
105
108
|
/** Only accept itemLink to inlineItem nodes for records of the specified models */
|
|
@@ -2,10 +2,10 @@ import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
|
|
|
2
2
|
import type { MarkdownEditorConfiguration } from './appearance/markdown';
|
|
3
3
|
import type { TextareaEditorConfiguration } from './appearance/textarea';
|
|
4
4
|
import type { WysiwygEditorConfiguration } from './appearance/wysiwyg';
|
|
5
|
+
import type { SanitizedHtmlValidator } from './validators';
|
|
5
6
|
import type { FormatValidator } from './validators/format';
|
|
6
7
|
import type { LengthValidator } from './validators/length';
|
|
7
8
|
import type { RequiredValidator } from './validators/required';
|
|
8
|
-
import type { SanitizationValidator } from './validators/sanitization';
|
|
9
9
|
export type TextFieldValue = string | null;
|
|
10
10
|
export declare function isTextFieldValue(value: unknown): value is TextFieldValue;
|
|
11
11
|
export declare function isLocalizedTextFieldValue(value: unknown): value is LocalizedFieldValue<TextFieldValue>;
|
|
@@ -17,7 +17,7 @@ export type TextFieldValidators = {
|
|
|
17
17
|
/** Accepts only strings that match a specified format */
|
|
18
18
|
format?: FormatValidator;
|
|
19
19
|
/** Checks for the presence of malicious code in HTML fields */
|
|
20
|
-
|
|
20
|
+
sanitized_html?: SanitizedHtmlValidator;
|
|
21
21
|
};
|
|
22
22
|
export type TextFieldAppearance = {
|
|
23
23
|
editor: 'markdown';
|
|
@@ -7,15 +7,15 @@ export * from './file_size';
|
|
|
7
7
|
export * from './format';
|
|
8
8
|
export * from './image_aspect_ratio';
|
|
9
9
|
export * from './image_dimensions';
|
|
10
|
-
export * from './item_item_type';
|
|
11
10
|
export * from './items_item_type';
|
|
11
|
+
export * from './item_item_type';
|
|
12
12
|
export * from './length';
|
|
13
13
|
export * from './number_range';
|
|
14
14
|
export * from './required';
|
|
15
15
|
export * from './required_alt_title';
|
|
16
16
|
export * from './required_seo_fields';
|
|
17
17
|
export * from './rich_text_blocks';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './sanitized_html';
|
|
19
19
|
export * from './single_block_blocks';
|
|
20
20
|
export * from './size';
|
|
21
21
|
export * from './slug_format';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for the presence of malicious code in HTML fields: content is valid if no dangerous code is present.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type SanitizedHtmlValidator = {
|
|
5
5
|
/** Content is actively sanitized before applying the validation */
|
|
6
6
|
sanitize_before_validation: boolean;
|
|
7
7
|
};
|
|
@@ -1058,6 +1058,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
[k: string]: unknown;
|
|
1060
1060
|
};
|
|
1061
|
+
/**
|
|
1062
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
1063
|
+
* via the `self.hrefSchema` link.
|
|
1064
|
+
*/
|
|
1065
|
+
export type ItemVersionSelfHrefSchema = {
|
|
1066
|
+
/**
|
|
1067
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
1068
|
+
*/
|
|
1069
|
+
nested?: boolean;
|
|
1070
|
+
[k: string]: unknown;
|
|
1071
|
+
};
|
|
1061
1072
|
/**
|
|
1062
1073
|
* RFC 4122 UUID of upload expressed in URL-safe base64 format
|
|
1063
1074
|
*
|
|
@@ -796,6 +796,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
796
796
|
};
|
|
797
797
|
[k: string]: unknown;
|
|
798
798
|
};
|
|
799
|
+
/**
|
|
800
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
801
|
+
* via the `self.hrefSchema` link.
|
|
802
|
+
*/
|
|
803
|
+
export type ItemVersionSelfHrefSchema = {
|
|
804
|
+
/**
|
|
805
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
806
|
+
*/
|
|
807
|
+
nested?: boolean;
|
|
808
|
+
[k: string]: unknown;
|
|
809
|
+
};
|
|
799
810
|
/**
|
|
800
811
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
801
812
|
* via the `publish.schema` link.
|
|
@@ -68,7 +68,7 @@ export default class ItemVersion extends BaseResource {
|
|
|
68
68
|
* @throws {ApiError}
|
|
69
69
|
* @throws {TimeoutError}
|
|
70
70
|
*/
|
|
71
|
-
find(itemVersionId: string | ApiTypes.ItemVersionData): Promise<ApiTypes.ItemVersion>;
|
|
71
|
+
find(itemVersionId: string | ApiTypes.ItemVersionData, queryParams?: ApiTypes.ItemVersionSelfHrefSchema): Promise<ApiTypes.ItemVersion>;
|
|
72
72
|
/**
|
|
73
73
|
* Retrieve a record version
|
|
74
74
|
*
|
|
@@ -77,5 +77,5 @@ export default class ItemVersion extends BaseResource {
|
|
|
77
77
|
* @throws {ApiError}
|
|
78
78
|
* @throws {TimeoutError}
|
|
79
79
|
*/
|
|
80
|
-
rawFind(itemVersionId: string): Promise<RawApiTypes.ItemVersionSelfTargetSchema>;
|
|
80
|
+
rawFind(itemVersionId: string, queryParams?: RawApiTypes.ItemVersionSelfHrefSchema): Promise<RawApiTypes.ItemVersionSelfTargetSchema>;
|
|
81
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.22",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.1.13",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "387e7aa20686100b6bf1e5d3d69d61db0dfa4e46"
|
|
49
49
|
}
|
package/resources.json
CHANGED
package/src/fieldTypes/slug.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
isLocalizedFieldValue,
|
|
4
4
|
} from '../utilities/normalizedFieldValues';
|
|
5
5
|
import type { SlugEditorConfiguration } from './appearance/slug';
|
|
6
|
+
import type { UniqueValidator } from './validators';
|
|
6
7
|
import type { LengthValidator } from './validators/length';
|
|
7
8
|
import type { RequiredValidator } from './validators/required';
|
|
8
9
|
import type { SlugFormatValidator } from './validators/slug_format';
|
|
@@ -26,6 +27,8 @@ export function isLocalizedSlugFieldValue(
|
|
|
26
27
|
export type SlugFieldValidators = {
|
|
27
28
|
/** Value must be specified or it won't be valid */
|
|
28
29
|
required?: RequiredValidator;
|
|
30
|
+
/** The value must be unique across the whole collection of records */
|
|
31
|
+
unique?: UniqueValidator;
|
|
29
32
|
/** Accept strings only with a specified number of characters */
|
|
30
33
|
length?: LengthValidator;
|
|
31
34
|
/** Only accept slugs having a specific format */
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
isItemWithOptionalIdAndMeta,
|
|
23
23
|
isItemWithOptionalMeta,
|
|
24
24
|
} from './single_block';
|
|
25
|
+
import type { RequiredValidator } from './validators';
|
|
25
26
|
import type { LengthValidator } from './validators/length';
|
|
26
27
|
import type { StructuredTextBlocksValidator } from './validators/structured_text_blocks';
|
|
27
28
|
import type { StructuredTextInlineBlocksValidator } from './validators/structured_text_inline_blocks';
|
|
@@ -266,6 +267,8 @@ export function isLocalizedStructuredTextFieldValueInNestedResponse<
|
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
export type StructuredTextFieldValidators = {
|
|
270
|
+
/** Value must be specified or it won't be valid */
|
|
271
|
+
required?: RequiredValidator;
|
|
269
272
|
/** Only accept references to block records of the specified block models */
|
|
270
273
|
structured_text_blocks: StructuredTextBlocksValidator;
|
|
271
274
|
/** Only accept itemLink to inlineItem nodes for records of the specified models */
|
package/src/fieldTypes/text.ts
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import type { MarkdownEditorConfiguration } from './appearance/markdown';
|
|
6
6
|
import type { TextareaEditorConfiguration } from './appearance/textarea';
|
|
7
7
|
import type { WysiwygEditorConfiguration } from './appearance/wysiwyg';
|
|
8
|
+
import type { SanitizedHtmlValidator } from './validators';
|
|
8
9
|
import type { FormatValidator } from './validators/format';
|
|
9
10
|
import type { LengthValidator } from './validators/length';
|
|
10
11
|
import type { RequiredValidator } from './validators/required';
|
|
11
|
-
import type { SanitizationValidator } from './validators/sanitization';
|
|
12
12
|
|
|
13
13
|
export type TextFieldValue = string | null;
|
|
14
14
|
|
|
@@ -32,7 +32,7 @@ export type TextFieldValidators = {
|
|
|
32
32
|
/** Accepts only strings that match a specified format */
|
|
33
33
|
format?: FormatValidator;
|
|
34
34
|
/** Checks for the presence of malicious code in HTML fields */
|
|
35
|
-
|
|
35
|
+
sanitized_html?: SanitizedHtmlValidator;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export type TextFieldAppearance =
|
|
@@ -7,15 +7,15 @@ export * from './file_size';
|
|
|
7
7
|
export * from './format';
|
|
8
8
|
export * from './image_aspect_ratio';
|
|
9
9
|
export * from './image_dimensions';
|
|
10
|
-
export * from './item_item_type';
|
|
11
10
|
export * from './items_item_type';
|
|
11
|
+
export * from './item_item_type';
|
|
12
12
|
export * from './length';
|
|
13
13
|
export * from './number_range';
|
|
14
14
|
export * from './required';
|
|
15
15
|
export * from './required_alt_title';
|
|
16
16
|
export * from './required_seo_fields';
|
|
17
17
|
export * from './rich_text_blocks';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './sanitized_html';
|
|
19
19
|
export * from './single_block_blocks';
|
|
20
20
|
export * from './size';
|
|
21
21
|
export * from './slug_format';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for the presence of malicious code in HTML fields: content is valid if no dangerous code is present.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type SanitizedHtmlValidator = {
|
|
5
5
|
/** Content is actively sanitized before applying the validation */
|
|
6
6
|
sanitize_before_validation: boolean;
|
|
7
7
|
};
|
|
@@ -1123,6 +1123,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
1123
1123
|
};
|
|
1124
1124
|
[k: string]: unknown;
|
|
1125
1125
|
};
|
|
1126
|
+
/**
|
|
1127
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
1128
|
+
* via the `self.hrefSchema` link.
|
|
1129
|
+
*/
|
|
1130
|
+
export type ItemVersionSelfHrefSchema = {
|
|
1131
|
+
/**
|
|
1132
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
1133
|
+
*/
|
|
1134
|
+
nested?: boolean;
|
|
1135
|
+
[k: string]: unknown;
|
|
1136
|
+
};
|
|
1126
1137
|
/**
|
|
1127
1138
|
* RFC 4122 UUID of upload expressed in URL-safe base64 format
|
|
1128
1139
|
*
|
package/src/generated/Client.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Client {
|
|
|
147
147
|
...this.config,
|
|
148
148
|
...options,
|
|
149
149
|
logFn: this.config.logFn || console.log,
|
|
150
|
-
userAgent: '@datocms/cma-client v5.1.
|
|
150
|
+
userAgent: '@datocms/cma-client v5.1.22',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -841,6 +841,17 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
841
841
|
};
|
|
842
842
|
[k: string]: unknown;
|
|
843
843
|
};
|
|
844
|
+
/**
|
|
845
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
846
|
+
* via the `self.hrefSchema` link.
|
|
847
|
+
*/
|
|
848
|
+
export type ItemVersionSelfHrefSchema = {
|
|
849
|
+
/**
|
|
850
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
851
|
+
*/
|
|
852
|
+
nested?: boolean;
|
|
853
|
+
[k: string]: unknown;
|
|
854
|
+
};
|
|
844
855
|
/**
|
|
845
856
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
846
857
|
* via the `publish.schema` link.
|
|
@@ -141,8 +141,11 @@ export default class ItemVersion extends BaseResource {
|
|
|
141
141
|
* @throws {ApiError}
|
|
142
142
|
* @throws {TimeoutError}
|
|
143
143
|
*/
|
|
144
|
-
find(
|
|
145
|
-
|
|
144
|
+
find(
|
|
145
|
+
itemVersionId: string | ApiTypes.ItemVersionData,
|
|
146
|
+
queryParams?: ApiTypes.ItemVersionSelfHrefSchema,
|
|
147
|
+
) {
|
|
148
|
+
return this.rawFind(Utils.toId(itemVersionId), queryParams).then((body) =>
|
|
146
149
|
Utils.deserializeResponseBody<ApiTypes.ItemVersionSelfTargetSchema>(body),
|
|
147
150
|
);
|
|
148
151
|
}
|
|
@@ -157,10 +160,12 @@ export default class ItemVersion extends BaseResource {
|
|
|
157
160
|
*/
|
|
158
161
|
rawFind(
|
|
159
162
|
itemVersionId: string,
|
|
163
|
+
queryParams?: RawApiTypes.ItemVersionSelfHrefSchema,
|
|
160
164
|
): Promise<RawApiTypes.ItemVersionSelfTargetSchema> {
|
|
161
165
|
return this.client.request<RawApiTypes.ItemVersionSelfTargetSchema>({
|
|
162
166
|
method: 'GET',
|
|
163
167
|
url: `/versions/${itemVersionId}`,
|
|
168
|
+
queryParams,
|
|
164
169
|
});
|
|
165
170
|
}
|
|
166
171
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sanitization.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/sanitization.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sanitization.js","sourceRoot":"","sources":["../../../../src/fieldTypes/validators/sanitization.ts"],"names":[],"mappings":""}
|