@supernova-studio/client 0.46.7 → 0.46.8
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 +777 -55
- package/dist/index.d.ts +777 -55
- package/dist/index.js +251 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2027 -1964
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/export/index.ts +1 -0
- package/src/api/dto/export/job.ts +67 -0
- package/src/api/dto/index.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./job";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ExportJobResult,
|
|
3
|
+
ExportJobStatus,
|
|
4
|
+
ExporterDestinationAzure,
|
|
5
|
+
ExporterDestinationBitbucket,
|
|
6
|
+
ExporterDestinationDocs,
|
|
7
|
+
ExporterDestinationGithub,
|
|
8
|
+
ExporterDestinationGitlab,
|
|
9
|
+
ExporterDestinationS3,
|
|
10
|
+
ObjectMeta,
|
|
11
|
+
} from "@supernova-studio/model";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
|
|
14
|
+
export const DTOExportJobCreatedBy = z.object({
|
|
15
|
+
userId: z.string(),
|
|
16
|
+
userName: z.string(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const DTOExportJobDesignSystemPreview = z.object({
|
|
20
|
+
id: z.string(),
|
|
21
|
+
meta: ObjectMeta,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const DTOExportJobDesignSystemVersionPreview = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
meta: ObjectMeta,
|
|
27
|
+
version: z.string(),
|
|
28
|
+
isReadonly: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export const DTOExportJobDestinations = z.object({
|
|
32
|
+
s3: ExporterDestinationS3.optional(),
|
|
33
|
+
azure: ExporterDestinationAzure.optional(),
|
|
34
|
+
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
35
|
+
github: ExporterDestinationGithub.optional(),
|
|
36
|
+
gitlab: ExporterDestinationGitlab.optional(),
|
|
37
|
+
documentation: ExporterDestinationDocs.optional(),
|
|
38
|
+
webhookUrl: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const DTOExportJob = z.object({
|
|
42
|
+
id: z.string(),
|
|
43
|
+
|
|
44
|
+
createdAt: z.date(),
|
|
45
|
+
finishedAt: z.date().optional(),
|
|
46
|
+
|
|
47
|
+
index: z.number().optional(),
|
|
48
|
+
status: ExportJobStatus,
|
|
49
|
+
estimatedExecutionTime: z.number().optional(),
|
|
50
|
+
|
|
51
|
+
createdBy: DTOExportJobCreatedBy,
|
|
52
|
+
designSystem: DTOExportJobDesignSystemPreview,
|
|
53
|
+
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
54
|
+
|
|
55
|
+
destinations: DTOExportJobDestinations,
|
|
56
|
+
|
|
57
|
+
exporterId: z.string(),
|
|
58
|
+
scheduleId: z.string(),
|
|
59
|
+
|
|
60
|
+
result: ExportJobResult.optional(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export type DTOExportJobCreatedBy = z.infer<typeof DTOExportJobCreatedBy>;
|
|
64
|
+
export type DTOExportJobDesignSystemPreview = z.infer<typeof DTOExportJobDesignSystemPreview>;
|
|
65
|
+
export type DTOExportJobDesignSystemVersionPreview = z.infer<typeof DTOExportJobDesignSystemVersionPreview>;
|
|
66
|
+
export type DTOExportJobDestinations = z.infer<typeof DTOExportJobDestinations>;
|
|
67
|
+
export type DTOExportJob = z.infer<typeof DTOExportJob>;
|