@supernova-studio/model 0.55.27 → 0.55.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.55.27",
3
+ "version": "0.55.29",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,6 +36,7 @@ export const Asset = z.object({
36
36
  state: AssetProcessStatus.optional(),
37
37
  origin: AssetOrigin.optional(),
38
38
  originKey: z.string().optional(),
39
+ createdByImportJobId: z.string().optional(),
39
40
  });
40
41
 
41
42
  export const ResolvedAsset = Asset.extend({
@@ -106,6 +106,7 @@ export const DataSourceUploadRemote = z.object({
106
106
  remoteSourceType: DataSourceUploadRemoteSource,
107
107
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
108
108
  warnings: nullishToOptional(ImportWarning.array()),
109
+ isTokenTypeSplitEnabled: z.boolean(),
109
110
  });
110
111
 
111
112
  export type DataSourceUploadImportMetadata = z.infer<typeof DataSourceUploadImportMetadata>;
@@ -293,7 +293,9 @@ export const PageBlockBaseV1 = z.object({
293
293
  persistentId: z.string(),
294
294
  type: PageBlockTypeV1,
295
295
 
296
+ // V2 generic attributes
296
297
  numberOfColumns: nullishToOptional(z.number()),
298
+ itemBackgroundColor: nullishToOptional(ColorTokenInlineData),
297
299
 
298
300
  // Element linking
299
301
  designObjectId: nullishToOptional(z.string()),
@@ -150,6 +150,14 @@ export function areShallowObjectsEqual<T extends object>(lhs: T | undefined, rhs
150
150
  return true;
151
151
  }
152
152
 
153
+ export function isNotNullish<T>(value: T | null | undefined): value is T {
154
+ return !isNullish(value);
155
+ }
156
+
157
+ export function isNullish<T>(value: T | null | undefined): value is null | undefined {
158
+ return value === null || value === undefined;
159
+ }
160
+
153
161
  export type Pagination = {
154
162
  skip?: number;
155
163
  take?: number;