Skip to content
Merged
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.4.22"
"version": "5.5.0-alpha.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1098,42 +1098,25 @@ exports[`TypeScript Compiler API - Unit Tests extractTypeDependencies uploads.cr
*/
notes?: string | null;
/**
* For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
* Patch the asset's default metadata. Send any subset of \`alt\`/\`title\`/\`custom_data\`/\`focal_point\` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
*/
default_field_metadata?: {
alt?: LocalizedAlt;
title?: LocalizedTitle;
custom_data?: LocalizedCustomData;
/**
* This interface was referenced by \`undefined\`'s JSON-Schema definition
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
* Focal point (only for image assets)
*/
[k: string]: {
focal_point?: {
/**
* Alternate text for the asset
* Horizontal position expressed as float between 0 and 1
*/
alt?: string | null;
x: number;
/**
* Title for the asset
* Vertical position expressed as float between 0 and 1
*/
title?: string | null;
/**
* Object with arbitrary metadata
*/
custom_data?: {
[k: string]: unknown;
};
/**
* Focal point (only for image assets)
*/
focal_point?: {
/**
* Horizontal position expressed as float between 0 and 1
*/
x: number;
/**
* Vertical position expressed as float between 0 and 1
*/
y: number;
} | null;
};
y: number;
} | null;
};
/**
* Tags
Expand All @@ -1146,6 +1129,38 @@ export type UploadIdentity = string;

export type UploadType = 'upload';

export type LocalizedAlt = {
/**
* Alternate text for the asset in this locale
*
* This interface was referenced by \`LocalizedAlt\`'s JSON-Schema definition
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
*/
[k: string]: string | null;
};

export type LocalizedTitle = {
/**
* Title for the asset in this locale
*
* This interface was referenced by \`LocalizedTitle\`'s JSON-Schema definition
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
*/
[k: string]: string | null;
};

export type LocalizedCustomData = {
/**
* Arbitrary metadata for the asset in this locale
*
* This interface was referenced by \`LocalizedCustomData\`'s JSON-Schema definition
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
*/
[k: string]: {
[k: string]: unknown;
};
};

export type UploadCollectionData = {
type: UploadCollectionType;
id: UploadCollectionIdentity;
Expand Down Expand Up @@ -1227,42 +1242,25 @@ export type Upload = {
*/
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
/**
* For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
* Per-asset default metadata applied when no record-level overrides are present. \`alt\`, \`title\`, and \`custom_data\` are objects keyed by locale; \`focal_point\` is a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
*/
default_field_metadata: {
alt: LocalizedAlt;
title: LocalizedTitle;
custom_data: LocalizedCustomData;
/**
* This interface was referenced by \`undefined\`'s JSON-Schema definition
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
* Focal point (only for image assets)
*/
[k: string]: {
/**
* Alternate text for the asset
*/
alt: string | null;
/**
* Title for the asset
*/
title: string | null;
focal_point: {
/**
* Object with arbitrary metadata
* Horizontal position expressed as float between 0 and 1
*/
custom_data: {
[k: string]: unknown;
};
x: number;
/**
* Focal point (only for image assets)
* Vertical position expressed as float between 0 and 1
*/
focal_point: {
/**
* Horizontal position expressed as float between 0 and 1
*/
x: number;
/**
* Vertical position expressed as float between 0 and 1
*/
y: number;
} | null;
};
y: number;
} | null;
};
/**
* Is this upload an image?
Expand Down
4 changes: 2 additions & 2 deletions packages/cma-client-analysis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datocms/cma-client-analysis",
"version": "5.4.22",
"version": "5.5.0-alpha.2",
"description": "TypeScript-based static analysis utilities for the @datocms/cma-client-node Client class. Extracts method signatures, referenced types, and endpoint mappings.",
"keywords": [
"datocms",
Expand Down Expand Up @@ -49,7 +49,7 @@
"typescript": ">=5.0.0"
},
"devDependencies": {
"@datocms/cma-client-node": "^5.4.22",
"@datocms/cma-client-node": "^5.5.0-alpha.2",
"@datocms/rest-api-reference": "^5.4.19",
"typescript": "^5.0.0"
}
Expand Down
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.4.22",
"version": "5.5.0-alpha.2",
"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.4.22",
"@datocms/cma-client": "^5.5.0-alpha.2",
"@datocms/rest-client-utils": "^5.4.9"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/cma-client-browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export type {
UnchangedBlockInRequest,
UniqueValidator,
UpdatedBlockInRequest,
UploadLocaleKeyedDefaultFieldMetadata,
UploadLocaleKeyedDefaultFieldMetadataInRequest,
VideoEditorConfiguration,
VideoFieldAppearance,
VideoFieldValidators,
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.4.22",
"version": "5.5.0-alpha.2",
"description": "NodeJS client for DatoCMS REST Content Management API",
"keywords": [
"datocms",
Expand Down Expand Up @@ -37,7 +37,7 @@
"url": "git+https://github.com/datocms/js-rest-api-clients.git"
},
"dependencies": {
"@datocms/cma-client": "^5.4.22",
"@datocms/cma-client": "^5.5.0-alpha.2",
"@datocms/rest-client-utils": "^5.4.9",
"mime-types": "^2.1.35",
"tmp-promise": "^3.0.3"
Expand Down
2 changes: 2 additions & 0 deletions packages/cma-client-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export type {
UnchangedBlockInRequest,
UniqueValidator,
UpdatedBlockInRequest,
UploadLocaleKeyedDefaultFieldMetadata,
UploadLocaleKeyedDefaultFieldMetadataInRequest,
VideoEditorConfiguration,
VideoFieldAppearance,
VideoFieldValidators,
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.4.22",
"version": "5.5.0-alpha.2",
"description": "JS client for DatoCMS REST Content Management API",
"keywords": [
"datocms",
Expand Down
17 changes: 17 additions & 0 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5352,6 +5352,23 @@
"name": "activateMillisecondsInDatetime",
"rawName": "rawActivateMillisecondsInDatetime"
},
{
"returnsItem": false,
"requestBodyRequiresItem": false,
"offersNestedItemsOptionInQueryParams": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_non_localized_focal_points",
"rel": "activate_non_localized_focal_points",
"urlTemplate": "/site/activate-non-localized-focal-points",
"method": "PUT",
"comment": "Activate non-localized focal points",
"urlPlaceholders": [],
"optionalRequestBody": false,
"queryParamsRequired": false,
"responseType": "SiteActivateNonLocalizedFocalPointsTargetSchema",
"deprecated": "This API call is to be considered private and might change without notice",
"name": "activateNonLocalizedFocalPoints",
"rawName": "rawActivateNonLocalizedFocalPoints"
},
{
"returnsItem": false,
"requestBodyRequiresItem": false,
Expand Down
Loading