@supernova-studio/model 0.47.67 → 0.47.69
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/dist/index.d.mts +35 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/version.ts +8 -9
package/package.json
CHANGED
package/src/dsm/version.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { OmitStrict } from "../utils";
|
|
3
2
|
import { DbCreateInputOmit, DbUpdate, nullishToOptional } from "../helpers";
|
|
3
|
+
import { OmitStrict } from "../utils";
|
|
4
4
|
|
|
5
5
|
export const DesignSystemVersion = z.object({
|
|
6
6
|
id: z.string(),
|
|
@@ -12,6 +12,7 @@ export const DesignSystemVersion = z.object({
|
|
|
12
12
|
isReadonly: z.boolean(),
|
|
13
13
|
changeLog: z.string(),
|
|
14
14
|
parentId: z.string().optional(),
|
|
15
|
+
isDraftsFeatureAdopted: z.boolean(),
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
export type DesignSystemVersion = z.infer<typeof DesignSystemVersion>;
|
|
@@ -23,20 +24,18 @@ export type UpdateDesignSystemVersion = OmitStrict<
|
|
|
23
24
|
"designSystemId" | "isReadonly" | "version" | "parentId"
|
|
24
25
|
>;
|
|
25
26
|
|
|
26
|
-
|
|
27
27
|
// Jobs
|
|
28
28
|
export const VersionCreationJobStatus = z.enum(["Success", "InProgress", "Error"]);
|
|
29
29
|
|
|
30
30
|
export type VersionCreationJobStatus = z.infer<typeof VersionCreationJobStatus>;
|
|
31
31
|
|
|
32
32
|
export const VersionCreationJob = z.object({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
id: z.string(),
|
|
34
|
+
version: z.string(),
|
|
35
|
+
designSystemId: z.string(),
|
|
36
|
+
designSystemVersionId: nullishToOptional(z.string()),
|
|
37
|
+
status: VersionCreationJobStatus,
|
|
38
|
+
errorMessage: nullishToOptional(z.string()),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
export type VersionCreationJob = z.infer<typeof VersionCreationJob>;
|
|
42
|
-
|