@supernova-studio/model 0.46.0 → 0.46.1

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.46.0",
3
+ "version": "0.46.1",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -143,6 +143,7 @@ export const PageBlockShortcut = z.object({
143
143
  description: nullishToOptional(z.string()),
144
144
  asset: nullishToOptional(PageBlockAsset),
145
145
  documentationItemId: nullishToOptional(z.string()),
146
+ pageHeadingId: nullishToOptional(z.string()),
146
147
  url: nullishToOptional(z.string()),
147
148
  openInNewTab: nullishToOptional(z.boolean()),
148
149
  urlPreview: nullishToOptional(PageBlockUrlPreview),
@@ -1,11 +1,12 @@
1
1
  import { z } from "zod";
2
- import { DesignElementBase } from "./base";
3
- import { FigmaNodeReferenceData } from "./data/figma-node-reference";
4
2
  import { DbCreateInputOmit, DbUpdate } from "../../helpers";
5
3
  import { OmitStrict } from "../../utils";
4
+ import { DesignElementBase } from "./base";
5
+ import { FigmaNodeReferenceData } from "./data/figma-node-reference";
6
6
 
7
7
  export const FigmaNodeReferenceOrigin = z.object({
8
8
  sourceId: z.string(),
9
+ parentName: z.string().optional(),
9
10
  });
10
11
 
11
12
  export const FigmaNodeReference = DesignElementBase.extend({
@@ -18,7 +18,6 @@ export const PublishedDocPage = z.object({
18
18
  pathV1: z.string(),
19
19
  pathV2: z.string(),
20
20
  storagePath: z.string(),
21
- fallbackPublicPath: z.string().optional(),
22
21
  locale: z.string().optional(),
23
22
 
24
23
  isPrivate: z.boolean(),
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { OmitStrict } from "../utils";
3
- import { DbCreateInputOmit, DbUpdate } from "../helpers";
3
+ import { DbCreateInputOmit, DbUpdate, nullishToOptional } from "../helpers";
4
4
 
5
5
  export const DesignSystemVersion = z.object({
6
6
  id: z.string(),
@@ -22,3 +22,21 @@ export type UpdateDesignSystemVersion = OmitStrict<
22
22
  DbUpdate<DesignSystemVersion>,
23
23
  "designSystemId" | "isReadonly" | "version" | "parentId"
24
24
  >;
25
+
26
+
27
+ // Jobs
28
+ export const VersionCreationJobStatus = z.enum(["Success", "InProgress", "Error"]);
29
+
30
+ export type VersionCreationJobStatus = z.infer<typeof VersionCreationJobStatus>;
31
+
32
+ export const VersionCreationJob = z.object({
33
+ _id: z.string().optional(),
34
+ version: z.string(),
35
+ designSystemId: z.string(),
36
+ designSystemVersionId: nullishToOptional(z.string()),
37
+ status: VersionCreationJobStatus,
38
+ errorMessage: nullishToOptional(z.string()),
39
+ });
40
+
41
+ export type VersionCreationJob = z.infer<typeof VersionCreationJob>;
42
+