@supernova-studio/model 0.57.13 → 0.57.15

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.57.13",
3
+ "version": "0.57.15",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,6 +34,8 @@ export const Collection = z.object({
34
34
  createdAt: z.coerce.date(),
35
35
  updatedAt: z.coerce.date(),
36
36
 
37
+ sortOrder: z.string(),
38
+
37
39
  origin: CollectionOrigin.optional(),
38
40
  });
39
41
 
@@ -135,6 +135,7 @@ export const ShallowDesignElement = z.object({
135
135
  designSystemVersionId: z.string(),
136
136
  type: DesignElementType,
137
137
  brandPersistentId: z.string().optional(),
138
+ collectionPersistentId: z.string().optional(),
138
139
  parentPersistentId: z.string().optional(),
139
140
  shortPersistentId: z.string().optional(),
140
141
  childType: DesignElementType.optional(),
@@ -57,6 +57,7 @@ const DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredP
57
57
  .extend(DesignElementBrandedPart.shape)
58
58
  .extend({
59
59
  origin: DesignTokenOrigin.optional(),
60
+ collectionPersistentId: z.string().optional(),
60
61
  });
61
62
 
62
63
  const CreateDesignTokenBase = DesignTokenBase.omit(zodCreateInputOmit());
@@ -7,7 +7,7 @@ import { ImportModelBase, ImportModelInputBase } from "./base";
7
7
  //
8
8
 
9
9
  const DesignTokenImportModelPart = z.object({
10
- collection: z.string().optional(),
10
+ collectionId: z.string().optional(),
11
11
  codeSyntax: z.record(z.coerce.string()).optional(),
12
12
  scopes: z.array(z.string()).optional(),
13
13
  });