@datocms/cma-client 5.1.25 → 5.1.26
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/Field.js +2 -6
- package/dist/cjs/generated/resources/Field.js.map +1 -1
- package/dist/cjs/generated/resources/ItemType.js +2 -2
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/resources/Field.d.ts +2 -6
- package/dist/esm/generated/resources/Field.js +2 -6
- package/dist/esm/generated/resources/Field.js.map +1 -1
- package/dist/esm/generated/resources/ItemType.d.ts +2 -2
- package/dist/esm/generated/resources/ItemType.js +2 -2
- package/dist/types/generated/resources/Field.d.ts +2 -6
- package/dist/types/generated/resources/ItemType.d.ts +2 -2
- package/package.json +3 -3
- package/resources.json +2 -192
- package/src/generated/Client.ts +1 -1
- package/src/generated/resources/Field.ts +2 -6
- package/src/generated/resources/ItemType.ts +2 -2
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.26',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -147,14 +147,12 @@ export default class Field extends BaseResource {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* List
|
|
150
|
+
* List fields referencing a model/block
|
|
151
151
|
*
|
|
152
152
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/field/referencing
|
|
153
153
|
*
|
|
154
154
|
* @throws {ApiError}
|
|
155
155
|
* @throws {TimeoutError}
|
|
156
|
-
*
|
|
157
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
158
156
|
*/
|
|
159
157
|
referencing(itemTypeId: string | ApiTypes.ItemTypeData) {
|
|
160
158
|
return this.rawReferencing(Utils.toId(itemTypeId)).then((body) =>
|
|
@@ -165,14 +163,12 @@ export default class Field extends BaseResource {
|
|
|
165
163
|
}
|
|
166
164
|
|
|
167
165
|
/**
|
|
168
|
-
* List
|
|
166
|
+
* List fields referencing a model/block
|
|
169
167
|
*
|
|
170
168
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/field/referencing
|
|
171
169
|
*
|
|
172
170
|
* @throws {ApiError}
|
|
173
171
|
* @throws {TimeoutError}
|
|
174
|
-
*
|
|
175
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
176
172
|
*/
|
|
177
173
|
rawReferencing(
|
|
178
174
|
itemTypeId: string,
|
|
@@ -273,7 +273,7 @@ export default class ItemType extends BaseResource {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
|
-
* List models referencing
|
|
276
|
+
* List models referencing another model/block
|
|
277
277
|
*
|
|
278
278
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item-type/referencing
|
|
279
279
|
*
|
|
@@ -289,7 +289,7 @@ export default class ItemType extends BaseResource {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* List models referencing
|
|
292
|
+
* List models referencing another model/block
|
|
293
293
|
*
|
|
294
294
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item-type/referencing
|
|
295
295
|
*
|