@supernova-studio/model 0.47.55 → 0.47.56

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.47.55",
3
+ "version": "0.47.56",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -111,14 +111,14 @@ export const ShallowDesignElement = z.object({
111
111
  childType: DesignElementType.optional(),
112
112
  sortOrder: z.number(),
113
113
  origin: z.record(z.any()).optional(),
114
+ createdAt: z.coerce.date(),
115
+ updatedAt: z.coerce.date(),
114
116
  });
115
117
 
116
118
  export const DesignElement = ShallowDesignElement.extend({
117
119
  meta: ObjectMeta,
118
120
  slug: z.string().optional(),
119
121
  userSlug: z.string().optional(),
120
- createdAt: z.coerce.date(),
121
- updatedAt: z.coerce.date(),
122
122
  exportProperties: DesignSystemElementExportProps.optional(),
123
123
  data: z.record(z.any()),
124
124
  origin: z.record(z.any()).optional(),
@@ -22,6 +22,8 @@ export const PublishedDoc = z.object({
22
22
  routingVersion: PublishedDocRoutingVersion,
23
23
  usesLocalizations: z.boolean(),
24
24
  wasPublishedWithLocalizations: z.boolean(),
25
+ tokenCount: z.number(),
26
+ assetCount: z.number(),
25
27
  });
26
28
 
27
29
  export type PublishedDocEnvironment = z.infer<typeof PublishedDocEnvironment>;