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 jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testTimeout: 240000,
testTimeout: 480000,
testMatch: ["**/*.test.ts"],
transformIgnorePatterns: [
"/packages/cma-client-node/node_modules/(?!(got|p-cancelable|@szmarczak|lowercase-keys)/)",
Expand Down
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.1.20"
"version": "5.2.0-alpha.1"
}
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.1.20",
"version": "5.2.0-alpha.1",
"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.1.20",
"@datocms/cma-client": "^5.2.0-alpha.1",
"@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.1.20",
"version": "5.2.0-alpha.1",
"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.1.20",
"@datocms/cma-client": "^5.2.0-alpha.1",
"@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.1.20",
"version": "5.2.0-alpha.1",
"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 @@ -3013,7 +3013,7 @@
"requestStructure": {
"type": "upload_request",
"attributes": ["filename"],
"relationships": []
"relationships": ["upload_collection"]
},
"queryParamsRequired": false,
"responseType": "UploadRequestCreateTargetSchema",
Expand Down
71 changes: 51 additions & 20 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 @@ -475,16 +485,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 @@ -2097,7 +2097,8 @@ export type Role = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2110,6 +2111,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 @@ -2126,7 +2129,8 @@ export type Role = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2139,6 +2143,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 @@ -2344,7 +2350,8 @@ export type RoleMeta = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2357,6 +2364,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 @@ -2373,7 +2382,8 @@ export type RoleMeta = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2386,6 +2396,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 @@ -2575,7 +2587,8 @@ export type RoleAttributes = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2588,6 +2601,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 @@ -2604,7 +2619,8 @@ export type RoleAttributes = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2617,6 +2633,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 @@ -2813,7 +2831,8 @@ export type RoleCreateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2826,6 +2845,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 @@ -2842,7 +2863,8 @@ export type RoleCreateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -2855,6 +2877,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 @@ -3045,7 +3069,8 @@ export type RoleUpdateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3058,6 +3083,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 @@ -3074,7 +3101,8 @@ export type RoleUpdateSchema = {
| 'create'
| 'delete'
| 'edit_creator'
| 'replace_asset';
| 'replace_asset'
| 'move';
/**
* Permitted creator
*/
Expand All @@ -3087,6 +3115,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 @@ -8373,6 +8403,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
Loading