Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "5.2.0"
"version": "5.2.1-alpha.0"
}
4 changes: 2 additions & 2 deletions packages/cma-client-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datocms/cma-client-browser",
"version": "5.2.0",
"version": "5.2.1-alpha.0",
"description": "Browser client for DatoCMS REST Content Management API",
"keywords": [
"datocms",
Expand Down Expand Up @@ -28,7 +28,7 @@
"url": "git+https://github.com/datocms/js-rest-api-clients.git"
},
"dependencies": {
"@datocms/cma-client": "^5.2.0",
"@datocms/cma-client": "^5.2.1-alpha.0",
"@datocms/rest-client-utils": "^5.1.13"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cma-client-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cma-client-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datocms/cma-client-node",
"version": "5.2.0",
"version": "5.2.1-alpha.0",
"description": "NodeJS client for DatoCMS REST Content Management API",
"keywords": [
"datocms",
Expand Down Expand Up @@ -28,7 +28,7 @@
"url": "git+https://github.com/datocms/js-rest-api-clients.git"
},
"dependencies": {
"@datocms/cma-client": "^5.2.0",
"@datocms/cma-client": "^5.2.1-alpha.0",
"@datocms/rest-client-utils": "^5.1.13",
"mime-types": "^2.1.35",
"tmp-promise": "^3.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/cma-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cma-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datocms/cma-client",
"version": "5.2.0",
"version": "5.2.1-alpha.0",
"description": "JS client for DatoCMS REST Content Management API",
"keywords": [
"datocms",
Expand Down
2 changes: 1 addition & 1 deletion packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3001,7 +3001,7 @@
"requestStructure": {
"type": "upload_request",
"attributes": ["filename"],
"relationships": []
"relationships": ["upload_collection"]
},
"queryParamsRequired": false,
"responseType": "UploadRequestCreateTargetSchema",
Expand Down
85 changes: 58 additions & 27 deletions packages/cma-client/src/generated/ApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ export type WorkflowIdentity = string;
* via the `definition` "id".
*/
export type EnvironmentIdentity = string;
/**
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
*
* This interface was referenced by `UploadCollection`'s JSON-Schema
* via the `definition` "identity".
*
* This interface was referenced by `UploadCollection`'s JSON-Schema
* via the `definition` "id".
*/
export type UploadCollectionIdentity = string;
/**
* ID of build_trigger
*
Expand Down Expand Up @@ -485,16 +495,6 @@ export type SchemaMenuItemReorderSchema = {
* via the `reorder.jobSchema` link.
*/
export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
/**
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
*
* This interface was referenced by `UploadCollection`'s JSON-Schema
* via the `definition` "identity".
*
* This interface was referenced by `UploadCollection`'s JSON-Schema
* via the `definition` "id".
*/
export type UploadCollectionIdentity = string;
/**
* JSON API type field
*
Expand Down Expand Up @@ -2220,7 +2220,8 @@ export type Role = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2233,6 +2234,8 @@ export type Role = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Prohibited actions on a model (or all) for a role
Expand All @@ -2249,7 +2252,8 @@ export type Role = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2262,6 +2266,8 @@ export type Role = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Allowed build triggers for a role
Expand Down Expand Up @@ -2487,7 +2493,8 @@ export type RoleMeta = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2500,6 +2507,8 @@ export type RoleMeta = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Prohibited actions on a model (or all) for a role
Expand All @@ -2516,7 +2525,8 @@ export type RoleMeta = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2529,6 +2539,8 @@ export type RoleMeta = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Allowed build triggers for a role
Expand Down Expand Up @@ -2738,7 +2750,8 @@ export type RoleAttributes = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2751,6 +2764,8 @@ export type RoleAttributes = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Prohibited actions on a model (or all) for a role
Expand All @@ -2767,7 +2782,8 @@ export type RoleAttributes = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2780,6 +2796,8 @@ export type RoleAttributes = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Allowed build triggers for a role
Expand Down Expand Up @@ -2996,7 +3014,8 @@ export type RoleCreateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3009,6 +3028,8 @@ export type RoleCreateSchema = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Prohibited actions on a model (or all) for a role
Expand All @@ -3025,7 +3046,8 @@ export type RoleCreateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3038,6 +3060,8 @@ export type RoleCreateSchema = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Allowed build triggers for a role
Expand Down Expand Up @@ -3248,7 +3272,8 @@ export type RoleUpdateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3261,6 +3286,8 @@ export type RoleUpdateSchema = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Prohibited actions on a model (or all) for a role
Expand All @@ -3277,7 +3304,8 @@ export type RoleUpdateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3290,6 +3318,8 @@ export type RoleUpdateSchema = {
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
*/
locale?: string | null;
upload_collection?: UploadCollectionIdentity | null;
move_to_upload_collection?: UploadCollectionIdentity | null;
}[];
/**
* Allowed build triggers for a role
Expand Down Expand Up @@ -7044,7 +7074,7 @@ export type Plugin = {
*/
url: string;
/**
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
*/
parameters: {
[k: string]: unknown;
Expand Down Expand Up @@ -7145,7 +7175,7 @@ export type PluginAttributes = {
*/
url: string;
/**
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
*/
parameters: {
[k: string]: unknown;
Expand Down Expand Up @@ -7277,7 +7307,7 @@ export type PluginUpdateSchema = {
*/
url?: string;
/**
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
*/
parameters?: {
[k: string]: unknown;
Expand Down Expand Up @@ -8706,6 +8736,7 @@ export type UploadRequestCreateSchema = {
* The original file name
*/
filename?: string;
upload_collection?: UploadCollectionData | null;
};
/**
* If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
Expand Down Expand Up @@ -9768,7 +9799,7 @@ export type BuildTrigger = {
/**
* The type of build trigger
*/
adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
/**
* Additional settings for the build trigger. The value depends on the `adapter`.
*/
Expand Down Expand Up @@ -9830,7 +9861,7 @@ export type BuildTriggerAttributes = {
/**
* The type of build trigger
*/
adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
/**
* Additional settings for the build trigger. The value depends on the `adapter`.
*/
Expand Down Expand Up @@ -9887,7 +9918,7 @@ export type BuildTriggerCreateSchema = {
/**
* The type of build trigger
*/
adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
/**
* Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
*/
Expand Down Expand Up @@ -9925,7 +9956,7 @@ export type BuildTriggerUpdateSchema = {
/**
* The type of build trigger
*/
adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
/**
* Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
*/
Expand Down
Loading