@datocms/cma-client 5.1.19 → 5.2.0-5.2.0-alpha.1.0
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/Client.js.map +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +41 -20
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +42 -18
- package/dist/esm/generated/resources/UploadRequest.js +1 -1
- package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/types/generated/ApiTypes.d.ts +41 -20
- package/dist/types/generated/RawApiTypes.d.ts +42 -18
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/resources.json +1 -1
- package/src/generated/ApiTypes.ts +51 -20
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +50 -18
- package/src/generated/resources/UploadRequest.ts +1 -1
- package/src/index.ts +1 -1
|
@@ -108,6 +108,16 @@ export type WorkflowIdentity = string;
|
|
|
108
108
|
* via the `definition` "id".
|
|
109
109
|
*/
|
|
110
110
|
export type EnvironmentIdentity = string;
|
|
111
|
+
/**
|
|
112
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
113
|
+
*
|
|
114
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
115
|
+
* via the `definition` "identity".
|
|
116
|
+
*
|
|
117
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
118
|
+
* via the `definition` "id".
|
|
119
|
+
*/
|
|
120
|
+
export type UploadCollectionIdentity = string;
|
|
111
121
|
/**
|
|
112
122
|
* ID of build_trigger
|
|
113
123
|
*
|
|
@@ -403,16 +413,6 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
403
413
|
* via the `definition` "type".
|
|
404
414
|
*/
|
|
405
415
|
export type UploadCollectionType = 'upload_collection';
|
|
406
|
-
/**
|
|
407
|
-
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
408
|
-
*
|
|
409
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
410
|
-
* via the `definition` "identity".
|
|
411
|
-
*
|
|
412
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
413
|
-
* via the `definition` "id".
|
|
414
|
-
*/
|
|
415
|
-
export type UploadCollectionIdentity = string;
|
|
416
416
|
/**
|
|
417
417
|
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
418
418
|
* via the `instances.hrefSchema` link.
|
|
@@ -1733,7 +1733,8 @@ export type RoleAttributes = {
|
|
|
1733
1733
|
| 'create'
|
|
1734
1734
|
| 'delete'
|
|
1735
1735
|
| 'edit_creator'
|
|
1736
|
-
| 'replace_asset'
|
|
1736
|
+
| 'replace_asset'
|
|
1737
|
+
| 'move';
|
|
1737
1738
|
/**
|
|
1738
1739
|
* Permitted creator
|
|
1739
1740
|
*/
|
|
@@ -1746,6 +1747,8 @@ export type RoleAttributes = {
|
|
|
1746
1747
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1747
1748
|
*/
|
|
1748
1749
|
locale?: string | null;
|
|
1750
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
1751
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
1749
1752
|
}[];
|
|
1750
1753
|
/**
|
|
1751
1754
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -1762,7 +1765,8 @@ export type RoleAttributes = {
|
|
|
1762
1765
|
| 'create'
|
|
1763
1766
|
| 'delete'
|
|
1764
1767
|
| 'edit_creator'
|
|
1765
|
-
| 'replace_asset'
|
|
1768
|
+
| 'replace_asset'
|
|
1769
|
+
| 'move';
|
|
1766
1770
|
/**
|
|
1767
1771
|
* Permitted creator
|
|
1768
1772
|
*/
|
|
@@ -1775,6 +1779,8 @@ export type RoleAttributes = {
|
|
|
1775
1779
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1776
1780
|
*/
|
|
1777
1781
|
locale?: string | null;
|
|
1782
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
1783
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
1778
1784
|
}[];
|
|
1779
1785
|
/**
|
|
1780
1786
|
* Allowed build triggers for a role
|
|
@@ -1987,7 +1993,8 @@ export type RoleMeta = {
|
|
|
1987
1993
|
| 'create'
|
|
1988
1994
|
| 'delete'
|
|
1989
1995
|
| 'edit_creator'
|
|
1990
|
-
| 'replace_asset'
|
|
1996
|
+
| 'replace_asset'
|
|
1997
|
+
| 'move';
|
|
1991
1998
|
/**
|
|
1992
1999
|
* Permitted creator
|
|
1993
2000
|
*/
|
|
@@ -2000,6 +2007,8 @@ export type RoleMeta = {
|
|
|
2000
2007
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2001
2008
|
*/
|
|
2002
2009
|
locale?: string | null;
|
|
2010
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2011
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2003
2012
|
}[];
|
|
2004
2013
|
/**
|
|
2005
2014
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2016,7 +2025,8 @@ export type RoleMeta = {
|
|
|
2016
2025
|
| 'create'
|
|
2017
2026
|
| 'delete'
|
|
2018
2027
|
| 'edit_creator'
|
|
2019
|
-
| 'replace_asset'
|
|
2028
|
+
| 'replace_asset'
|
|
2029
|
+
| 'move';
|
|
2020
2030
|
/**
|
|
2021
2031
|
* Permitted creator
|
|
2022
2032
|
*/
|
|
@@ -2029,6 +2039,8 @@ export type RoleMeta = {
|
|
|
2029
2039
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2030
2040
|
*/
|
|
2031
2041
|
locale?: string | null;
|
|
2042
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2043
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2032
2044
|
}[];
|
|
2033
2045
|
/**
|
|
2034
2046
|
* Allowed build triggers for a role
|
|
@@ -2222,7 +2234,8 @@ export type RoleCreateSchema = {
|
|
|
2222
2234
|
| 'create'
|
|
2223
2235
|
| 'delete'
|
|
2224
2236
|
| 'edit_creator'
|
|
2225
|
-
| 'replace_asset'
|
|
2237
|
+
| 'replace_asset'
|
|
2238
|
+
| 'move';
|
|
2226
2239
|
/**
|
|
2227
2240
|
* Permitted creator
|
|
2228
2241
|
*/
|
|
@@ -2235,6 +2248,8 @@ export type RoleCreateSchema = {
|
|
|
2235
2248
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2236
2249
|
*/
|
|
2237
2250
|
locale?: string | null;
|
|
2251
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2252
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2238
2253
|
}[];
|
|
2239
2254
|
/**
|
|
2240
2255
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2251,7 +2266,8 @@ export type RoleCreateSchema = {
|
|
|
2251
2266
|
| 'create'
|
|
2252
2267
|
| 'delete'
|
|
2253
2268
|
| 'edit_creator'
|
|
2254
|
-
| 'replace_asset'
|
|
2269
|
+
| 'replace_asset'
|
|
2270
|
+
| 'move';
|
|
2255
2271
|
/**
|
|
2256
2272
|
* Permitted creator
|
|
2257
2273
|
*/
|
|
@@ -2264,6 +2280,8 @@ export type RoleCreateSchema = {
|
|
|
2264
2280
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2265
2281
|
*/
|
|
2266
2282
|
locale?: string | null;
|
|
2283
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2284
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2267
2285
|
}[];
|
|
2268
2286
|
/**
|
|
2269
2287
|
* Allowed build triggers for a role
|
|
@@ -2478,7 +2496,8 @@ export type RoleUpdateSchema = {
|
|
|
2478
2496
|
| 'create'
|
|
2479
2497
|
| 'delete'
|
|
2480
2498
|
| 'edit_creator'
|
|
2481
|
-
| 'replace_asset'
|
|
2499
|
+
| 'replace_asset'
|
|
2500
|
+
| 'move';
|
|
2482
2501
|
/**
|
|
2483
2502
|
* Permitted creator
|
|
2484
2503
|
*/
|
|
@@ -2491,6 +2510,8 @@ export type RoleUpdateSchema = {
|
|
|
2491
2510
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2492
2511
|
*/
|
|
2493
2512
|
locale?: string | null;
|
|
2513
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2514
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2494
2515
|
}[];
|
|
2495
2516
|
/**
|
|
2496
2517
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2507,7 +2528,8 @@ export type RoleUpdateSchema = {
|
|
|
2507
2528
|
| 'create'
|
|
2508
2529
|
| 'delete'
|
|
2509
2530
|
| 'edit_creator'
|
|
2510
|
-
| 'replace_asset'
|
|
2531
|
+
| 'replace_asset'
|
|
2532
|
+
| 'move';
|
|
2511
2533
|
/**
|
|
2512
2534
|
* Permitted creator
|
|
2513
2535
|
*/
|
|
@@ -2520,6 +2542,8 @@ export type RoleUpdateSchema = {
|
|
|
2520
2542
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2521
2543
|
*/
|
|
2522
2544
|
locale?: string | null;
|
|
2545
|
+
upload_collection?: UploadCollectionIdentity | null;
|
|
2546
|
+
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2523
2547
|
}[];
|
|
2524
2548
|
/**
|
|
2525
2549
|
* Allowed build triggers for a role
|
|
@@ -8662,6 +8686,14 @@ export type UploadRequestCreateSchema = {
|
|
|
8662
8686
|
filename?: string;
|
|
8663
8687
|
[k: string]: unknown;
|
|
8664
8688
|
};
|
|
8689
|
+
relationships?: {
|
|
8690
|
+
/**
|
|
8691
|
+
* Upload collection to which the asset belongs
|
|
8692
|
+
*/
|
|
8693
|
+
upload_collection?: {
|
|
8694
|
+
data: UploadCollectionData | null;
|
|
8695
|
+
};
|
|
8696
|
+
};
|
|
8665
8697
|
};
|
|
8666
8698
|
};
|
|
8667
8699
|
/**
|
|
@@ -19,7 +19,7 @@ export default class UploadRequest extends BaseResource {
|
|
|
19
19
|
Utils.serializeRequestBody<RawApiTypes.UploadRequestCreateSchema>(body, {
|
|
20
20
|
type: 'upload_request',
|
|
21
21
|
attributes: ['filename'],
|
|
22
|
-
relationships: [],
|
|
22
|
+
relationships: ['upload_collection'],
|
|
23
23
|
}),
|
|
24
24
|
).then((body) =>
|
|
25
25
|
Utils.deserializeResponseBody<ApiTypes.UploadRequestCreateTargetSchema>(
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './utilities/recursiveBlocks';
|
|
|
15
15
|
export * from './utilities/schemaRepository';
|
|
16
16
|
export type { ApiTypes, RawApiTypes };
|
|
17
17
|
// Legacy names
|
|
18
|
-
export type { ApiTypes as
|
|
18
|
+
export type { ApiTypes as SimpleSchemaTypes, RawApiTypes as SchemaTypes };
|
|
19
19
|
|
|
20
20
|
import type * as ApiTypes from './generated/ApiTypes';
|
|
21
21
|
import type * as RawApiTypes from './generated/RawApiTypes';
|