Skip to content

Commit 428d895

Browse files
committed
Add support for published_from and published_until item version meta
1 parent ef0bfe2 commit 428d895

2 files changed

Lines changed: 51 additions & 7 deletions

File tree

packages/cma-client/src/generated/ApiTypes.ts

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8229,6 +8229,14 @@ export type ItemVersionMeta = {
82298229
* Whether the record version is the published version or not
82308230
*/
82318231
is_published: boolean;
8232+
/**
8233+
* Date this version became the published version of the record, or `null` if it has never been published. May also be `null` for versions that were published before publication-history tracking was introduced; in that case, fall back to `is_published` to determine the live status.
8234+
*/
8235+
published_from: string | null;
8236+
/**
8237+
* Date this version stopped being the published version of the record (either replaced by a newer published version, or explicitly unpublished). `null` when the version is currently published or has never been published.
8238+
*/
8239+
published_until: string | null;
82328240
/**
82338241
* Whether the record version is the most recent version or not
82348242
*/
@@ -8341,7 +8349,7 @@ export type Upload = {
83418349
*/
83428350
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
83438351
/**
8344-
* 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.
8352+
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
83458353
*/
83468354
default_field_metadata: {
83478355
alt: LocalizedAlt;
@@ -8360,6 +8368,10 @@ export type Upload = {
83608368
*/
83618369
y: number;
83628370
} | null;
8371+
/**
8372+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8373+
*/
8374+
poster_time: number | null;
83638375
};
83648376
/**
83658377
* Is this upload an image?
@@ -8578,7 +8590,7 @@ export type UploadAttributes = {
85788590
*/
85798591
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
85808592
/**
8581-
* 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.
8593+
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
85828594
*/
85838595
default_field_metadata: {
85848596
alt: LocalizedAlt;
@@ -8597,6 +8609,10 @@ export type UploadAttributes = {
85978609
*/
85988610
y: number;
85998611
} | null;
8612+
/**
8613+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8614+
*/
8615+
poster_time: number | null;
86008616
};
86018617
/**
86028618
* Is this upload an image?
@@ -8689,7 +8705,7 @@ export type UploadCreateSchema = {
86898705
*/
86908706
notes?: string | null;
86918707
/**
8692-
* 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.
8708+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
86938709
*/
86948710
default_field_metadata?: {
86958711
alt?: LocalizedAlt;
@@ -8708,6 +8724,10 @@ export type UploadCreateSchema = {
87088724
*/
87098725
y: number;
87108726
} | null;
8727+
/**
8728+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8729+
*/
8730+
poster_time?: number | null;
87118731
};
87128732
/**
87138733
* Tags
@@ -8747,7 +8767,7 @@ export type UploadUpdateSchema = {
87478767
*/
87488768
tags?: string[];
87498769
/**
8750-
* 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.
8770+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
87518771
*/
87528772
default_field_metadata?: {
87538773
alt?: LocalizedAlt;
@@ -8766,6 +8786,10 @@ export type UploadUpdateSchema = {
87668786
*/
87678787
y: number;
87688788
} | null;
8789+
/**
8790+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8791+
*/
8792+
poster_time?: number | null;
87698793
};
87708794
creator?:
87718795
| AccountData

packages/cma-client/src/generated/RawApiTypes.ts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8277,6 +8277,14 @@ export type ItemVersionMeta = {
82778277
* Whether the record version is the published version or not
82788278
*/
82798279
is_published: boolean;
8280+
/**
8281+
* Date this version became the published version of the record, or `null` if it has never been published. May also be `null` for versions that were published before publication-history tracking was introduced; in that case, fall back to `is_published` to determine the live status.
8282+
*/
8283+
published_from: string | null;
8284+
/**
8285+
* Date this version stopped being the published version of the record (either replaced by a newer published version, or explicitly unpublished). `null` when the version is currently published or has never been published.
8286+
*/
8287+
published_until: string | null;
82808288
/**
82818289
* Whether the record version is the most recent version or not
82828290
*/
@@ -8616,7 +8624,7 @@ export type UploadAttributes = {
86168624
*/
86178625
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
86188626
/**
8619-
* 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.
8627+
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` (image assets) and `poster_time` (video assets) are a single value per asset. See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
86208628
*/
86218629
default_field_metadata: {
86228630
alt: LocalizedAlt;
@@ -8635,6 +8643,10 @@ export type UploadAttributes = {
86358643
*/
86368644
y: number;
86378645
} | null;
8646+
/**
8647+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8648+
*/
8649+
poster_time: number | null;
86388650
};
86398651
/**
86408652
* Is this upload an image?
@@ -8812,7 +8824,7 @@ export type UploadCreateSchema = {
88128824
*/
88138825
notes?: string | null;
88148826
/**
8815-
* 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.
8827+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
88168828
*/
88178829
default_field_metadata?: {
88188830
alt?: LocalizedAlt;
@@ -8831,6 +8843,10 @@ export type UploadCreateSchema = {
88318843
*/
88328844
y: number;
88338845
} | null;
8846+
/**
8847+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8848+
*/
8849+
poster_time?: number | null;
88348850
};
88358851
/**
88368852
* Tags
@@ -8920,7 +8936,7 @@ export type UploadUpdateSchema = {
89208936
*/
89218937
tags?: string[];
89228938
/**
8923-
* 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.
8939+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point`/`poster_time` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
89248940
*/
89258941
default_field_metadata?: {
89268942
alt?: LocalizedAlt;
@@ -8939,6 +8955,10 @@ export type UploadUpdateSchema = {
89398955
*/
89408956
y: number;
89418957
} | null;
8958+
/**
8959+
* Poster time in seconds (only for video assets). Float seconds into the video used to generate the thumbnail; null uses Mux's default (middle of the video)
8960+
*/
8961+
poster_time?: number | null;
89428962
};
89438963
[k: string]: unknown;
89448964
};

0 commit comments

Comments
 (0)