@supernova-studio/client 0.55.33 → 0.55.35
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 +6863 -308
- package/dist/index.d.ts +6863 -308
- package/dist/index.js +235 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +906 -715
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/data-source.ts +11 -18
- package/src/api/dto/design-systems/figma-variables.ts +107 -0
- package/src/api/dto/design-systems/import-job.ts +61 -0
- package/src/api/dto/design-systems/index.ts +2 -0
- package/src/api/dto/design-tokens/design-token.ts +21 -0
- package/src/api/dto/design-tokens/index.ts +1 -0
- package/src/api/dto/index.ts +1 -0
- package/src/api/endpoints/design-system/bff.ts +13 -0
- package/src/api/endpoints/design-system/design-systems.ts +8 -3
- package/src/api/endpoints/design-system/index.ts +4 -2
- package/src/api/endpoints/design-system/sources.ts +10 -0
- package/src/api/endpoints/design-system/versions/brands.ts +6 -3
- package/src/api/endpoints/design-system/versions/import-jobs.ts +13 -0
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/tokens.ts +8 -0
- package/src/api/endpoints/design-system/{design-system-versions.ts → versions.ts} +5 -1
- /package/src/api/endpoints/design-system/{design-system-members.ts → members.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import {
|
|
2
|
+
DataSourceAutoImportMode,
|
|
3
|
+
DataSourceFigmaScope,
|
|
3
4
|
DataSourceFigmaState,
|
|
4
5
|
DataSourceRemoteType,
|
|
5
|
-
DataSourceAutoImportMode,
|
|
6
6
|
DataSourceStats,
|
|
7
|
-
SourceImportSummary,
|
|
8
|
-
DataSourceUploadRemoteSource,
|
|
9
7
|
DataSourceUploadImportMetadata,
|
|
10
|
-
|
|
8
|
+
DataSourceUploadRemoteSource,
|
|
9
|
+
SourceImportSummary,
|
|
11
10
|
} from "@supernova-studio/model";
|
|
11
|
+
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
const DTODataSourceFigmaFileVersion = z.object({
|
|
14
14
|
id: z.string(),
|
|
@@ -23,7 +23,7 @@ export const DTODataSourceFigmaCloud = z.object({
|
|
|
23
23
|
autoImportMode: DataSourceAutoImportMode,
|
|
24
24
|
fileThumbnailUrl: z.string().optional(),
|
|
25
25
|
lastImportResult: SourceImportSummary.nullish(),
|
|
26
|
-
lastImportedAt: z.date().nullish(),
|
|
26
|
+
lastImportedAt: z.coerce.date().nullish(),
|
|
27
27
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
28
28
|
lastUpdatesCheckedAt: z.date().nullish(),
|
|
29
29
|
ownerId: z.string(),
|
|
@@ -40,9 +40,6 @@ export const DTODataSourceFigma = z.object({
|
|
|
40
40
|
brandId: z.string(),
|
|
41
41
|
themeId: z.string().nullish(),
|
|
42
42
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
43
|
-
tokenStudio: z.literal(null),
|
|
44
|
-
upload: z.literal(null),
|
|
45
|
-
figmaVariablesPlugin: z.literal(null),
|
|
46
43
|
});
|
|
47
44
|
|
|
48
45
|
// TS is not yet implemented in new BE
|
|
@@ -52,7 +49,6 @@ export const DTODataSourceTokenStudio = z.object({
|
|
|
52
49
|
fileName: z.string(),
|
|
53
50
|
brandId: z.string(),
|
|
54
51
|
themeId: z.string().nullish(),
|
|
55
|
-
cloud: z.literal(null),
|
|
56
52
|
tokenStudio: z.object({
|
|
57
53
|
settings: z.object({
|
|
58
54
|
dryRun: z.boolean(),
|
|
@@ -60,7 +56,7 @@ export const DTODataSourceTokenStudio = z.object({
|
|
|
60
56
|
preciseCopy: z.boolean(),
|
|
61
57
|
}),
|
|
62
58
|
connectionName: z.string(),
|
|
63
|
-
lastImportedAt: z.date(),
|
|
59
|
+
lastImportedAt: z.coerce.date(),
|
|
64
60
|
lastImportedResults: z.array(
|
|
65
61
|
z.object({
|
|
66
62
|
mapping: z.object({
|
|
@@ -75,8 +71,6 @@ export const DTODataSourceTokenStudio = z.object({
|
|
|
75
71
|
})
|
|
76
72
|
),
|
|
77
73
|
}),
|
|
78
|
-
upload: z.literal(null),
|
|
79
|
-
figmaVariablesPlugin: z.literal(null),
|
|
80
74
|
});
|
|
81
75
|
|
|
82
76
|
export const DTODataSourceFigmaVariablesPlugin = z.object({
|
|
@@ -84,19 +78,18 @@ export const DTODataSourceFigmaVariablesPlugin = z.object({
|
|
|
84
78
|
type: z.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
85
79
|
fileName: z.string(),
|
|
86
80
|
brandId: z.string(),
|
|
87
|
-
themeId: z.literal(null),
|
|
88
|
-
cloud: z.literal(null),
|
|
89
|
-
tokenStudio: z.literal(null),
|
|
90
81
|
upload: z.object({
|
|
91
82
|
remoteId: z.string(),
|
|
92
83
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
93
|
-
lastImportedAt: z.date().optional(),
|
|
84
|
+
lastImportedAt: z.coerce.date().optional(),
|
|
94
85
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
86
|
+
isTokenTypeSplitEnabled: z.boolean(),
|
|
95
87
|
}),
|
|
96
88
|
figmaVariablesPlugin: z.object({
|
|
97
89
|
fileId: z.string(),
|
|
98
|
-
lastImportedAt: z.date().optional(),
|
|
90
|
+
lastImportedAt: z.coerce.date().optional(),
|
|
99
91
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
92
|
+
isTokenTypeSplitEnabled: z.boolean(),
|
|
100
93
|
}),
|
|
101
94
|
});
|
|
102
95
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
const DimensionsVariableScopeSchema = z.enum([
|
|
4
|
+
"CORNER_RADIUS",
|
|
5
|
+
"WIDTH_HEIGHT",
|
|
6
|
+
"GAP",
|
|
7
|
+
"STROKE_FLOAT",
|
|
8
|
+
"EFFECT_FLOAT",
|
|
9
|
+
"OPACITY",
|
|
10
|
+
"FONT_SIZE",
|
|
11
|
+
"LINE_HEIGHT",
|
|
12
|
+
"LETTER_SPACING",
|
|
13
|
+
"PARAGRAPH_SPACING",
|
|
14
|
+
"PARAGRAPH_INDENT",
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
const StringVariableScopeSchema = z.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE", "FONT_WEIGHT"]);
|
|
18
|
+
|
|
19
|
+
export type DimensionsVariableScopeType = z.infer<typeof DimensionsVariableScopeSchema>;
|
|
20
|
+
export const DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
21
|
+
|
|
22
|
+
export type StringVariableScopeType = z.infer<typeof StringVariableScopeSchema>;
|
|
23
|
+
export const StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
24
|
+
|
|
25
|
+
const VariableScope = z.string();
|
|
26
|
+
|
|
27
|
+
const ReferencedVariableOrigin = z.object({
|
|
28
|
+
name: z.string(),
|
|
29
|
+
remote: z.boolean(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const RGB = z.object({
|
|
33
|
+
r: z.number(),
|
|
34
|
+
g: z.number(),
|
|
35
|
+
b: z.number(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const RGBA = RGB.extend({
|
|
39
|
+
a: z.number(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const VariableAlias = z.object({
|
|
43
|
+
type: z.literal("VARIABLE_ALIAS"),
|
|
44
|
+
id: z.string(),
|
|
45
|
+
resolvedValue: z.boolean().or(z.number()).or(z.string()).or(RGBA).or(RGB).optional(),
|
|
46
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z.null()),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const VariableValue = z.boolean().or(z.number()).or(z.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
50
|
+
export const ResolvedVariableType = z.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
51
|
+
|
|
52
|
+
export const Variable = z.object({
|
|
53
|
+
id: z.string(),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
key: z.string(),
|
|
56
|
+
variableCollectionId: z.string(),
|
|
57
|
+
resolvedType: ResolvedVariableType,
|
|
58
|
+
valuesByMode: z.record(VariableValue),
|
|
59
|
+
remote: z.boolean(),
|
|
60
|
+
description: z.string(),
|
|
61
|
+
hiddenFromPublishing: z.boolean(),
|
|
62
|
+
scopes: z.array(VariableScope),
|
|
63
|
+
codeSyntax: z.record(z.any()).optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export const VariableMode = z.object({
|
|
67
|
+
modeId: z.string(),
|
|
68
|
+
name: z.string(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const Collection = z.object({
|
|
72
|
+
id: z.string(),
|
|
73
|
+
name: z.string(),
|
|
74
|
+
modes: z.array(VariableMode),
|
|
75
|
+
defaultModeId: z.string(),
|
|
76
|
+
remote: z.boolean(),
|
|
77
|
+
hiddenFromPublishing: z.boolean(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export const VariablesMapping = z.object({
|
|
81
|
+
variableCollections: z.array(z.string()).min(1),
|
|
82
|
+
variableMode: z.string().min(1),
|
|
83
|
+
supernovaBrand: z.string().min(1),
|
|
84
|
+
supernovaTheme: z.string().min(1).optional().or(z.null()),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const FormattedCollections = z.object({
|
|
88
|
+
variables: z.record(z.string(), Variable),
|
|
89
|
+
variableCollections: z.record(z.string(), Collection),
|
|
90
|
+
mappings: z.array(VariablesMapping).optional(),
|
|
91
|
+
variablesOrder: z.string().array().optional(),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
//
|
|
95
|
+
// Types
|
|
96
|
+
//
|
|
97
|
+
|
|
98
|
+
export type RGB = z.infer<typeof RGB>;
|
|
99
|
+
export type RGBA = z.infer<typeof RGBA>;
|
|
100
|
+
export type ResolvedVariableType = z.infer<typeof ResolvedVariableType>;
|
|
101
|
+
export type Variable = z.infer<typeof Variable>;
|
|
102
|
+
export type VariableAlias = z.infer<typeof VariableAlias>;
|
|
103
|
+
export type VariableValue = z.infer<typeof VariableValue>;
|
|
104
|
+
export type VariableMode = z.infer<typeof VariableMode>;
|
|
105
|
+
export type Collection = z.infer<typeof Collection>;
|
|
106
|
+
export type VariablesMapping = z.infer<typeof VariablesMapping>;
|
|
107
|
+
export type FormattedCollections = z.infer<typeof FormattedCollections>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DataSourceAutoImportMode,
|
|
3
|
+
DataSourceFigmaScope,
|
|
4
|
+
DataSourceRemoteType,
|
|
5
|
+
ImportJobState,
|
|
6
|
+
} from "@supernova-studio/model";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//
|
|
10
|
+
// Read
|
|
11
|
+
//
|
|
12
|
+
|
|
13
|
+
export const DTOImportJob = z.object({
|
|
14
|
+
id: z.string(),
|
|
15
|
+
designSystemId: z.string(),
|
|
16
|
+
designSystemVersionId: z.string(),
|
|
17
|
+
operation: z.literal("Import"),
|
|
18
|
+
createdAt: z.coerce.date(),
|
|
19
|
+
stateChangedAt: z.coerce.date(),
|
|
20
|
+
state: ImportJobState,
|
|
21
|
+
sourceIds: z.string().array(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const DTOImportJobResponse = z.object({
|
|
25
|
+
job: DTOImportJob,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type DTOImportJob = z.infer<typeof DTOImportJob>;
|
|
29
|
+
export type DTOImportJobResponse = z.infer<typeof DTOImportJobResponse>;
|
|
30
|
+
|
|
31
|
+
//
|
|
32
|
+
// Write
|
|
33
|
+
//
|
|
34
|
+
|
|
35
|
+
export const DTOBffFigmaImportRequestBody = z.object({
|
|
36
|
+
type: z.literal(DataSourceRemoteType.Enum.Figma),
|
|
37
|
+
brandPersistentId: z.string().optional(),
|
|
38
|
+
fileId: z.string(),
|
|
39
|
+
scope: DataSourceFigmaScope,
|
|
40
|
+
autoImportMode: DataSourceAutoImportMode,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const DTOBffUploadImportRequestBody = z.object({
|
|
44
|
+
type: z
|
|
45
|
+
.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"])
|
|
46
|
+
.transform(v => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
47
|
+
brandPersistentId: z.string().optional(),
|
|
48
|
+
sourceName: z.string().optional(),
|
|
49
|
+
remoteId: z.string(),
|
|
50
|
+
isTokenTypeSplitEnabled: z.boolean().optional(),
|
|
51
|
+
payload: z.any(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const DTOBffImportRequestBody = z.discriminatedUnion("type", [
|
|
55
|
+
DTOBffFigmaImportRequestBody,
|
|
56
|
+
DTOBffUploadImportRequestBody,
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
export type DTOBffFigmaImportRequestBody = z.infer<typeof DTOBffFigmaImportRequestBody>;
|
|
60
|
+
export type DTOBffUploadImportRequestBody = z.infer<typeof DTOBffUploadImportRequestBody>;
|
|
61
|
+
export type DTOBffImportRequestBody = z.infer<typeof DTOBffImportRequestBody>;
|
|
@@ -3,6 +3,8 @@ export * from "./data-source";
|
|
|
3
3
|
export * from "./design-system";
|
|
4
4
|
export * from "./elements-diff";
|
|
5
5
|
export * from "./exporter-property";
|
|
6
|
+
export * from "./figma-variables";
|
|
7
|
+
export * from "./import-job";
|
|
6
8
|
export * from "./members";
|
|
7
9
|
export * from "./role";
|
|
8
10
|
export * from "./stats";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DesignTokenOrigin, DesignTokenTypedData, ObjectMeta } from "@supernova-studio/model";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
export const DTODesignToken = DesignTokenTypedData.and(
|
|
5
|
+
z.object({
|
|
6
|
+
id: z.string(),
|
|
7
|
+
persistentId: z.string(),
|
|
8
|
+
designSystemVersionId: z.string(),
|
|
9
|
+
meta: ObjectMeta,
|
|
10
|
+
origin: DesignTokenOrigin.optional(),
|
|
11
|
+
brandId: z.string(),
|
|
12
|
+
updatedAt: z.coerce.date(),
|
|
13
|
+
})
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export const DTODesignTokenListResponse = z.object({
|
|
17
|
+
tokens: DTODesignToken.array(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type DTODesignToken = z.infer<typeof DTODesignToken>;
|
|
21
|
+
export type DTODesignTokenListResponse = z.infer<typeof DTODesignTokenListResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./design-token";
|
package/src/api/dto/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOBffImportRequestBody, DTOImportJobResponse } from "../../dto";
|
|
2
|
+
import { RequestExecutor } from "../../transport/request-executor";
|
|
3
|
+
|
|
4
|
+
export class DesignSystemBffEndpoint {
|
|
5
|
+
constructor(private readonly requestExecutor: RequestExecutor) {}
|
|
6
|
+
|
|
7
|
+
import(dsId: string, payload: DTOBffImportRequestBody) {
|
|
8
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
|
|
9
|
+
method: "POST",
|
|
10
|
+
body: payload,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -2,17 +2,22 @@ import { z } from "zod";
|
|
|
2
2
|
import { DTODesignSystemCreateInput, DTODesignSystemResponse, DTODesignSystemsListResponse } from "../../dto";
|
|
3
3
|
import { DTODesignSystemUpdateAccessModeInput, DTODesignSystemUpdateInput } from "../../payloads";
|
|
4
4
|
import { RequestExecutor } from "../../transport/request-executor";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { DesignSystemBffEndpoint } from "./bff";
|
|
6
|
+
import { DesignSystemMembersEndpoint } from "./members";
|
|
7
|
+
import { DesignSystemSourcesEndpoint } from "./sources";
|
|
8
|
+
import { DesignSystemVersionsEndpoint } from "./versions";
|
|
8
9
|
|
|
9
10
|
export class DesignSystemsEndpoint {
|
|
10
11
|
readonly members: DesignSystemMembersEndpoint;
|
|
11
12
|
readonly versions: DesignSystemVersionsEndpoint;
|
|
13
|
+
readonly bff: DesignSystemBffEndpoint;
|
|
14
|
+
readonly sources: DesignSystemSourcesEndpoint;
|
|
12
15
|
|
|
13
16
|
constructor(private readonly requestExecutor: RequestExecutor) {
|
|
14
17
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
15
18
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
19
|
+
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
20
|
+
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
create(body: DTODesignSystemCreateInput) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DTODataSourcesListResponse } from "../../dto";
|
|
2
|
+
import { RequestExecutor } from "../../transport/request-executor";
|
|
3
|
+
|
|
4
|
+
export class DesignSystemSourcesEndpoint {
|
|
5
|
+
constructor(private readonly requestExecutor: RequestExecutor) {}
|
|
6
|
+
|
|
7
|
+
list(dsId: string) {
|
|
8
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DTOBrandGetResponse, DTOBrandsListResponse } from "../../../dto";
|
|
2
2
|
import { RequestExecutor } from "../../../transport/request-executor";
|
|
3
3
|
|
|
4
4
|
export class BrandsEndpoint {
|
|
@@ -7,11 +7,14 @@ export class BrandsEndpoint {
|
|
|
7
7
|
get(designSystemId: string, versionId: string, brandId: string) {
|
|
8
8
|
return this.requestExecutor.json(
|
|
9
9
|
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
10
|
-
|
|
10
|
+
DTOBrandGetResponse
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
list(designSystemId: string, versionId: string) {
|
|
15
|
-
return this.requestExecutor.json(
|
|
15
|
+
return this.requestExecutor.json(
|
|
16
|
+
`/design-systems/${designSystemId}/versions/${versionId}/brands`,
|
|
17
|
+
DTOBrandsListResponse
|
|
18
|
+
);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOImportJobResponse } from "../../../dto";
|
|
2
|
+
import { RequestExecutor } from "../../../transport/request-executor";
|
|
3
|
+
|
|
4
|
+
export class ImportJobsEndpoint {
|
|
5
|
+
constructor(private readonly requestExecutor: RequestExecutor) {}
|
|
6
|
+
|
|
7
|
+
get(designSystemId: string, versionId: string, jobId: string) {
|
|
8
|
+
return this.requestExecutor.json(
|
|
9
|
+
`/design-systems/${designSystemId}/versions/${versionId}/import-jobs/${jobId}`,
|
|
10
|
+
DTOImportJobResponse
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { DTODesignTokenListResponse } from "../../../dto";
|
|
2
3
|
import { RequestExecutor } from "../../../transport/request-executor";
|
|
3
4
|
|
|
4
5
|
export class TokensEndpoint {
|
|
@@ -10,4 +11,11 @@ export class TokensEndpoint {
|
|
|
10
11
|
body,
|
|
11
12
|
});
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
list(dsId: string, versionId: string): Promise<DTODesignTokenListResponse> {
|
|
16
|
+
return this.requestExecutor.json(
|
|
17
|
+
`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
18
|
+
DTODesignTokenListResponse
|
|
19
|
+
);
|
|
20
|
+
}
|
|
13
21
|
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { DTODesignSystemVersionsListResponse } from "../../dto";
|
|
2
2
|
import { RequestExecutor } from "../../transport/request-executor";
|
|
3
|
-
import { TokensEndpoint, VersionStatsEndpoint } from "./versions";
|
|
4
3
|
import { BrandsEndpoint } from "./versions/brands";
|
|
4
|
+
import { ImportJobsEndpoint } from "./versions/import-jobs";
|
|
5
|
+
import { VersionStatsEndpoint } from "./versions/stats";
|
|
5
6
|
import { ThemesEndpoint } from "./versions/themes";
|
|
7
|
+
import { TokensEndpoint } from "./versions/tokens";
|
|
6
8
|
|
|
7
9
|
export class DesignSystemVersionsEndpoint {
|
|
8
10
|
readonly themes: ThemesEndpoint;
|
|
9
11
|
readonly brands: BrandsEndpoint;
|
|
12
|
+
readonly importJobs: ImportJobsEndpoint;
|
|
10
13
|
readonly tokens: TokensEndpoint;
|
|
11
14
|
readonly stats: VersionStatsEndpoint;
|
|
12
15
|
|
|
13
16
|
constructor(private readonly requestExecutor: RequestExecutor) {
|
|
14
17
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
15
18
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
19
|
+
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
16
20
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
17
21
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
18
22
|
}
|
|
File without changes
|