@supernova-studio/supernova-sdk-beta 1.6.25 → 1.6.26
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/README.md +3 -3
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +16 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +33 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +11 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +37 -2
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +86 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaNetwork.d.ts +9 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +30 -0
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +2 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +61 -3
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +16 -1
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +75 -4
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +2 -1
- package/build/sdk-typescript/src/exports-pulsar.d.ts +228 -0
- package/build/sdk-typescript/src/exports.d.ts +53 -24
- package/build/sdk-typescript/src/index.d.ts +4 -0
- package/build/sdk-typescript/src/model/assets/SDKAsset.d.ts +1 -0
- package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +6 -8
- package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockLayout.d.ts +13 -5
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{h1/SDKDocsBlockActualH1.d.ts → embed/SDKDocsBlockActualEmbed.d.ts} +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-lottie/SDKDocsBlockActualEmbedLottie.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/markdown/SDKDocsBlockActualMarkdown.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{links/SDKDocsBlockActualLinks.d.ts → shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts} +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/storybook/SDKDocsBlockActualStorybook.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{h2/SDKDocsBlockActualH2.d.ts → table/SDKDocsBlockActualTable.d.ts} +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{h3/SDKDocsBlockActualH3.d.ts → title1/SDKDocsBlockActualTitle1.d.ts} +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{h4/SDKDocsBlockActualH4.d.ts → title2/SDKDocsBlockActualTitle2.d.ts} +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title3/SDKDocsBlockActualTitle3.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title4/SDKDocsBlockActualTitle4.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title5/SDKDocsBlockActualTitle5.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityGroup.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyConfiguration.d.ts +9 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +2 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPage.d.ts +3 -1
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemConfiguration.d.ts +1 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +3 -0
- package/build/sdk-typescript/src/model/enums/SDKBorderPosition.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKBorderStyle.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKCloudWarningType.d.ts +14 -0
- package/build/sdk-typescript/src/model/enums/SDKCustomDomainErrorCode.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKCustomDomainState.d.ts +9 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockCategory.d.ts +15 -9
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyWidth.d.ts +12 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +4 -2
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutAlign.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutColumnResizing.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutGap.d.ts +10 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyColor.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyStyle.d.ts +20 -4
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +3 -3
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +6 -14
- package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +16 -12
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +131 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuild.d.ts +104 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +73 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +111 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +55 -0
- package/build/sdk-typescript/src/model/jobs/SDKImportJob.d.ts +2 -7
- package/build/sdk-typescript/src/model/support/SDKCustomDomain.d.ts +21 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +20 -8
- package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +3 -0
- package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +0 -5
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +31 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvoice.d.ts +38 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +3 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +8 -31
- package/build/sdk-typescript/src/pulsar-interfaces.d.ts +40 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +1 -1
- package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +25 -4
- package/build/supernova-sdk-typescript.js +2 -70428
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +17 -15
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/h5/SDKDocsBlockActualH5.d.ts +0 -6
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatusInternal.d.ts +0 -8
- package/build/sdk-typescript/src/tests/Areas/AreaTokenValues.d.ts +0 -0
- package/build/sdk-typescript/src/tests/Enterprise/PluginFigmaTokens.spec.d.ts +0 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { PipelineRemoteModel } from "./remote/SDKRemotePipelineModel";
|
|
2
|
+
export type NewPipelinePayload = {
|
|
3
|
+
brandId?: string;
|
|
4
|
+
designSystemId: string;
|
|
5
|
+
destinations: {
|
|
6
|
+
azure: null;
|
|
7
|
+
bitbucket: null;
|
|
8
|
+
documentation: null;
|
|
9
|
+
github: null;
|
|
10
|
+
gitlab: null;
|
|
11
|
+
s3: Record<string, any>;
|
|
12
|
+
webhookUrl: null;
|
|
13
|
+
};
|
|
14
|
+
eventType: "OnHeadChanged" | "OnSourceUpdated" | "OnVersionReleased";
|
|
15
|
+
exporterId: string;
|
|
16
|
+
isEnabled: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
export type PipelineModel = {
|
|
20
|
+
id: string;
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
designSystem: {
|
|
23
|
+
id: string;
|
|
24
|
+
meta: {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
name: string;
|
|
30
|
+
isEnabled: boolean;
|
|
31
|
+
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated";
|
|
32
|
+
exporterId: string;
|
|
33
|
+
destinations: {
|
|
34
|
+
webhookUrl: string | null;
|
|
35
|
+
documentation: {
|
|
36
|
+
environment: "Live" | "Preview";
|
|
37
|
+
} | null;
|
|
38
|
+
s3: Record<any, any> | null;
|
|
39
|
+
github: {
|
|
40
|
+
connectionId: string;
|
|
41
|
+
url: string;
|
|
42
|
+
branch: string;
|
|
43
|
+
relativePath: string;
|
|
44
|
+
} | null;
|
|
45
|
+
azure: {
|
|
46
|
+
connectionId: string;
|
|
47
|
+
organizationId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
repositoryId: string;
|
|
50
|
+
branch: string;
|
|
51
|
+
relativePath: string;
|
|
52
|
+
url: string;
|
|
53
|
+
} | null;
|
|
54
|
+
gitlab: {
|
|
55
|
+
connectionId: string;
|
|
56
|
+
projectId: string;
|
|
57
|
+
branch: string;
|
|
58
|
+
relativePath: string;
|
|
59
|
+
url: string;
|
|
60
|
+
} | null;
|
|
61
|
+
bitbucket: {
|
|
62
|
+
connectionId: string;
|
|
63
|
+
workspaceSlug: string;
|
|
64
|
+
projectKey: string;
|
|
65
|
+
repoSlug: string;
|
|
66
|
+
branch: string;
|
|
67
|
+
relativePath: string;
|
|
68
|
+
url: string;
|
|
69
|
+
} | null;
|
|
70
|
+
};
|
|
71
|
+
brandId: string | null;
|
|
72
|
+
themeId: string | null;
|
|
73
|
+
};
|
|
74
|
+
export declare class Pipeline {
|
|
75
|
+
id: string;
|
|
76
|
+
workspaceId: string;
|
|
77
|
+
designSystem: {
|
|
78
|
+
id: string;
|
|
79
|
+
meta: {
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
name: string;
|
|
85
|
+
isEnabled: boolean;
|
|
86
|
+
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated";
|
|
87
|
+
exporterId: string;
|
|
88
|
+
destinations: {
|
|
89
|
+
webhookUrl: string | null;
|
|
90
|
+
documentation: {
|
|
91
|
+
environment: "Live" | "Preview";
|
|
92
|
+
} | null;
|
|
93
|
+
s3: Record<any, any> | null;
|
|
94
|
+
github: {
|
|
95
|
+
connectionId: string;
|
|
96
|
+
url: string;
|
|
97
|
+
branch: string;
|
|
98
|
+
relativePath: string;
|
|
99
|
+
} | null;
|
|
100
|
+
azure: {
|
|
101
|
+
connectionId: string;
|
|
102
|
+
organizationId: string;
|
|
103
|
+
projectId: string;
|
|
104
|
+
repositoryId: string;
|
|
105
|
+
branch: string;
|
|
106
|
+
relativePath: string;
|
|
107
|
+
url: string;
|
|
108
|
+
} | null;
|
|
109
|
+
gitlab: {
|
|
110
|
+
connectionId: string;
|
|
111
|
+
projectId: string;
|
|
112
|
+
branch: string;
|
|
113
|
+
relativePath: string;
|
|
114
|
+
url: string;
|
|
115
|
+
} | null;
|
|
116
|
+
bitbucket: {
|
|
117
|
+
connectionId: string;
|
|
118
|
+
workspaceSlug: string;
|
|
119
|
+
projectKey: string;
|
|
120
|
+
repoSlug: string;
|
|
121
|
+
branch: string;
|
|
122
|
+
relativePath: string;
|
|
123
|
+
url: string;
|
|
124
|
+
} | null;
|
|
125
|
+
};
|
|
126
|
+
brandId: string | null;
|
|
127
|
+
themeId: string | null;
|
|
128
|
+
constructor(data: PipelineRemoteModel);
|
|
129
|
+
get isBuildOnly(): boolean;
|
|
130
|
+
get gitProviderType(): "github" | "bitbucket" | "gitlab" | "azure" | null;
|
|
131
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ExportBuildResult } from "./SDKExportBuildResults";
|
|
2
|
+
import { ExportDestinations } from "./SDKExportDestinations";
|
|
3
|
+
export type ExportBuildCreatedByModel = {
|
|
4
|
+
userId: string;
|
|
5
|
+
userName: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare class ExportBuildCreatedBy {
|
|
8
|
+
userId: string;
|
|
9
|
+
userName: string | null;
|
|
10
|
+
constructor(data: ExportBuildCreatedByModel);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The enum representing possible statuses of an export build.
|
|
14
|
+
* @enum {string}
|
|
15
|
+
*/
|
|
16
|
+
export declare enum ExportBuildStatus {
|
|
17
|
+
InProgress = "InProgress",
|
|
18
|
+
Success = "Success",
|
|
19
|
+
Failed = "Failed",
|
|
20
|
+
Timeout = "Timeout"
|
|
21
|
+
}
|
|
22
|
+
export type ExportBuildModel = {
|
|
23
|
+
index: number | null;
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
finishedAt: string | null;
|
|
27
|
+
designSystem: {
|
|
28
|
+
id: string;
|
|
29
|
+
meta: {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
designSystemVersion: {
|
|
35
|
+
id: string;
|
|
36
|
+
meta: {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
version: string;
|
|
41
|
+
isReadonly: boolean;
|
|
42
|
+
};
|
|
43
|
+
result: ExportBuildResult | null;
|
|
44
|
+
status: ExportBuildStatus;
|
|
45
|
+
estimatedExecutionTime: number | null;
|
|
46
|
+
createdBy: ExportBuildCreatedBy | null;
|
|
47
|
+
destinations: ExportDestinations;
|
|
48
|
+
scheduleId: string | null;
|
|
49
|
+
exporterId: string;
|
|
50
|
+
};
|
|
51
|
+
/** Build run entry */
|
|
52
|
+
export declare class ExportBuild {
|
|
53
|
+
/** The index of the export build, or null if not provided */
|
|
54
|
+
index: number | null;
|
|
55
|
+
/** The unique identifier for the export build */
|
|
56
|
+
id: string;
|
|
57
|
+
/** The date and time when the export build was created */
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
/** The date and time when the export build was finished, or null if not finished yet */
|
|
60
|
+
finishedAt: Date | null;
|
|
61
|
+
/** The design system associated with the export build */
|
|
62
|
+
designSystem: {
|
|
63
|
+
id: string;
|
|
64
|
+
meta: {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/** The version of the design system used in the export build */
|
|
70
|
+
designSystemVersion: {
|
|
71
|
+
id: string;
|
|
72
|
+
meta: {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
version: string;
|
|
77
|
+
isReadonly: boolean;
|
|
78
|
+
};
|
|
79
|
+
/** The result of the export build, or null if not available */
|
|
80
|
+
result: ExportBuildResult | null;
|
|
81
|
+
/** The status of the export build */
|
|
82
|
+
status: ExportBuildStatus;
|
|
83
|
+
/** The estimated execution time for the export build, or null if not available */
|
|
84
|
+
estimatedExecutionTime: number | null;
|
|
85
|
+
/** The user who created the export build, or null if not available */
|
|
86
|
+
createdBy: ExportBuildCreatedBy | null;
|
|
87
|
+
/** The destinations associated with the export build */
|
|
88
|
+
destinations: ExportDestinations;
|
|
89
|
+
/** The identifier of the hook associated with the export build, or null if not available */
|
|
90
|
+
scheduleId: string | null;
|
|
91
|
+
/** The identifier of the exporter associated with the export build */
|
|
92
|
+
exporterId: string;
|
|
93
|
+
constructor(data: ExportBuildModel);
|
|
94
|
+
/**
|
|
95
|
+
* Gets the URL for downloading the code generated by the export build.
|
|
96
|
+
* @returns {string|null} - The URL for downloading the code, or null if not available.
|
|
97
|
+
*/
|
|
98
|
+
get downloadCodeUrl(): string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Gets the URL for the pull request associated with the export build.
|
|
101
|
+
* @returns {string|null} - The URL for the pull request, or null if not available.
|
|
102
|
+
*/
|
|
103
|
+
get pullRequestUrl(): string | null;
|
|
104
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type S3ExportBuildResultModel = {
|
|
2
|
+
urls: Array<string>;
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
/** The type definition for the data model of an S3 export build result. */
|
|
6
|
+
export declare class S3ExportBuildResult {
|
|
7
|
+
/** An array of URLs associated with the export build result */
|
|
8
|
+
urls: Array<string>;
|
|
9
|
+
/** A URL associated with the export build result */
|
|
10
|
+
url: string;
|
|
11
|
+
constructor(data: S3ExportBuildResultModel);
|
|
12
|
+
}
|
|
13
|
+
export type ExportBuildPullRequestResultModel = {
|
|
14
|
+
pullRequestUrl: string;
|
|
15
|
+
};
|
|
16
|
+
/** The type definition for the data model of an export build pull request result. */
|
|
17
|
+
export declare class ExportBuildPullRequestResult {
|
|
18
|
+
/** The URL of the pull request associated with the export build result. */
|
|
19
|
+
pullRequestUrl: string;
|
|
20
|
+
constructor(data: ExportBuildPullRequestResultModel);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The enum representing possible types of export build result logs.
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
export declare enum ExportBuildResultLogType {
|
|
27
|
+
success = "success",
|
|
28
|
+
info = "info",
|
|
29
|
+
warning = "warning",
|
|
30
|
+
user = "user",
|
|
31
|
+
error = "error"
|
|
32
|
+
}
|
|
33
|
+
type ExportBuildResultLogModel = {
|
|
34
|
+
time: string;
|
|
35
|
+
type: ExportBuildResultLogType;
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
export declare class ExportBuildResultLog {
|
|
39
|
+
/** The time when the log entry was created */
|
|
40
|
+
time: Date;
|
|
41
|
+
/** The type of the log entry */
|
|
42
|
+
type: ExportBuildResultLogType;
|
|
43
|
+
/** The message of the log entry */
|
|
44
|
+
message: string;
|
|
45
|
+
constructor(data: ExportBuildResultLogModel);
|
|
46
|
+
}
|
|
47
|
+
export type ExportBuildResultModel = {
|
|
48
|
+
logs: Array<ExportBuildResultLog>;
|
|
49
|
+
s3: S3ExportBuildResult | null;
|
|
50
|
+
azure: ExportBuildPullRequestResult | null;
|
|
51
|
+
bitbucket: ExportBuildPullRequestResult | null;
|
|
52
|
+
github: ExportBuildPullRequestResult | null;
|
|
53
|
+
gitlab: ExportBuildPullRequestResult | null;
|
|
54
|
+
error: string | null;
|
|
55
|
+
};
|
|
56
|
+
export declare class ExportBuildResult {
|
|
57
|
+
/** An array of log entries associated with the export build result */
|
|
58
|
+
logs: Array<ExportBuildResultLog>;
|
|
59
|
+
/** The S3 export build result, or null if not available */
|
|
60
|
+
s3: S3ExportBuildResult | null;
|
|
61
|
+
/** The Azure export build pull request result, or null if not available */
|
|
62
|
+
azure: ExportBuildPullRequestResult | null;
|
|
63
|
+
/** The Bitbucket export build pull request result, or null if not available */
|
|
64
|
+
bitbucket: ExportBuildPullRequestResult | null;
|
|
65
|
+
/** The GitHub export build pull request result, or null if not available */
|
|
66
|
+
github: ExportBuildPullRequestResult | null;
|
|
67
|
+
/** The GitLab export build pull request result, or null if not available */
|
|
68
|
+
gitlab: ExportBuildPullRequestResult | null;
|
|
69
|
+
/** The error message, or null if not available */
|
|
70
|
+
error: string | null;
|
|
71
|
+
constructor(data: ExportBuildResultModel);
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export type S3ExportDestinationModel = {
|
|
2
|
+
url: string | null;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Type definition for the data model of an S3 export destination.
|
|
6
|
+
* @typedef {Object} S3ExportDestinationModel
|
|
7
|
+
* @property {string|null} url - The URL of the S3 export destination or null.
|
|
8
|
+
*/
|
|
9
|
+
export declare class S3ExportDestination {
|
|
10
|
+
url: string | null;
|
|
11
|
+
constructor(data: S3ExportDestinationModel);
|
|
12
|
+
}
|
|
13
|
+
export type AzureExportDestinationModel = {
|
|
14
|
+
connectionId: string | null;
|
|
15
|
+
organizationId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
repositoryId: string;
|
|
18
|
+
branch: string;
|
|
19
|
+
relativePath: string;
|
|
20
|
+
url: string | null;
|
|
21
|
+
};
|
|
22
|
+
export declare class AzureExportDestination {
|
|
23
|
+
connectionId: string | null;
|
|
24
|
+
organizationId: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
repositoryId: string;
|
|
27
|
+
branch: string;
|
|
28
|
+
relativePath: string;
|
|
29
|
+
url: string | null;
|
|
30
|
+
constructor(data: AzureExportDestinationModel);
|
|
31
|
+
}
|
|
32
|
+
export type BitbucketExportDestinationModel = {
|
|
33
|
+
connectionId: string | null;
|
|
34
|
+
workspaceSlug: string;
|
|
35
|
+
projectKey: string;
|
|
36
|
+
repoSlug: string;
|
|
37
|
+
branch: string;
|
|
38
|
+
relativePath: string;
|
|
39
|
+
url: string | null;
|
|
40
|
+
};
|
|
41
|
+
export declare class BitbucketExportDestination {
|
|
42
|
+
connectionId: string | null;
|
|
43
|
+
workspaceSlug: string;
|
|
44
|
+
projectKey: string;
|
|
45
|
+
repoSlug: string;
|
|
46
|
+
branch: string;
|
|
47
|
+
relativePath: string;
|
|
48
|
+
url: string | null;
|
|
49
|
+
constructor(data: BitbucketExportDestinationModel);
|
|
50
|
+
}
|
|
51
|
+
export type GithubExportDestinationModel = {
|
|
52
|
+
connectionId: string | null;
|
|
53
|
+
url: string;
|
|
54
|
+
branch: string;
|
|
55
|
+
relativePath: string;
|
|
56
|
+
};
|
|
57
|
+
export declare class GithubExportDestination {
|
|
58
|
+
connectionId: string | null;
|
|
59
|
+
url: string;
|
|
60
|
+
branch: string;
|
|
61
|
+
relativePath: string;
|
|
62
|
+
constructor(data: GithubExportDestinationModel);
|
|
63
|
+
}
|
|
64
|
+
export type GitlabExportDestinationModel = {
|
|
65
|
+
connectionId: string | null;
|
|
66
|
+
repositoryId: string;
|
|
67
|
+
branch: string;
|
|
68
|
+
relativePath: string;
|
|
69
|
+
url: string | null;
|
|
70
|
+
};
|
|
71
|
+
export declare class GitlabExportDestination {
|
|
72
|
+
connectionId: string | null;
|
|
73
|
+
repositoryId: string;
|
|
74
|
+
branch: string;
|
|
75
|
+
relativePath: string;
|
|
76
|
+
url: string | null;
|
|
77
|
+
constructor(data: GitlabExportDestinationModel);
|
|
78
|
+
}
|
|
79
|
+
export type ExportDestinationsModel = {
|
|
80
|
+
s3: S3ExportDestination | null;
|
|
81
|
+
azure: AzureExportDestination | null;
|
|
82
|
+
bitbucket: BitbucketExportDestination | null;
|
|
83
|
+
github: GithubExportDestination | null;
|
|
84
|
+
gitlab: GitlabExportDestination | null;
|
|
85
|
+
webhookUrl: string | null;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Type definition for the data model of export destinations.
|
|
89
|
+
* @typedef {Object} ExportDestinationsModel
|
|
90
|
+
* @property {S3ExportDestination|null} s3 - The S3 export destination, or null if not available.
|
|
91
|
+
* @property {AzureExportDestination|null} azure - The Azure export destination, or null if not available.
|
|
92
|
+
* @property {BitbucketExportDestination|null} bitbucket - The Bitbucket export destination, or null if not available.
|
|
93
|
+
* @property {GithubExportDestination|null} github - The Github export destination, or null if not available.
|
|
94
|
+
* @property {GitlabExportDestination|null} gitlab - The Gitlab export destination, or null if not available.
|
|
95
|
+
* // @property {any|null} documentation - The documentation associated with the export destinations, or null if not available. Uncomment if documentation model is provided.
|
|
96
|
+
* @property {string|null} webhookUrl - The webhook URL associated with the export destinations, or null if not available.
|
|
97
|
+
*/
|
|
98
|
+
export declare class ExportDestinations {
|
|
99
|
+
s3: S3ExportDestination | null;
|
|
100
|
+
azure: AzureExportDestination | null;
|
|
101
|
+
bitbucket: BitbucketExportDestination | null;
|
|
102
|
+
github: GithubExportDestination | null;
|
|
103
|
+
gitlab: GitlabExportDestination | null;
|
|
104
|
+
webhookUrl: string | null;
|
|
105
|
+
constructor(data: ExportDestinationsModel);
|
|
106
|
+
/**
|
|
107
|
+
* Determines whether there is a pull request (PR) destination available.
|
|
108
|
+
* @returns {boolean} - Returns true if any of the export destinations (azure, bitbucket, github, gitlab) is available.
|
|
109
|
+
*/
|
|
110
|
+
get hasPRDestination(): boolean;
|
|
111
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type PipelineRemoteModel = {
|
|
2
|
+
id: string;
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
designSystem: {
|
|
5
|
+
id: string;
|
|
6
|
+
meta: {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
name: string;
|
|
12
|
+
isEnabled: boolean;
|
|
13
|
+
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated";
|
|
14
|
+
exporterId: string;
|
|
15
|
+
destinations: {
|
|
16
|
+
webhookUrl: string | null;
|
|
17
|
+
documentation: {
|
|
18
|
+
environment: "Live" | "Preview";
|
|
19
|
+
} | null;
|
|
20
|
+
s3: Record<any, any> | null;
|
|
21
|
+
github: {
|
|
22
|
+
connectionId: string;
|
|
23
|
+
url: string;
|
|
24
|
+
branch: string;
|
|
25
|
+
relativePath: string;
|
|
26
|
+
} | null;
|
|
27
|
+
azure: {
|
|
28
|
+
connectionId: string;
|
|
29
|
+
organizationId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
repositoryId: string;
|
|
32
|
+
branch: string;
|
|
33
|
+
relativePath: string;
|
|
34
|
+
url: string;
|
|
35
|
+
} | null;
|
|
36
|
+
gitlab: {
|
|
37
|
+
connectionId: string;
|
|
38
|
+
projectId: string;
|
|
39
|
+
branch: string;
|
|
40
|
+
relativePath: string;
|
|
41
|
+
url: string;
|
|
42
|
+
} | null;
|
|
43
|
+
bitbucket: {
|
|
44
|
+
connectionId: string;
|
|
45
|
+
workspaceSlug: string;
|
|
46
|
+
projectKey: string;
|
|
47
|
+
repoSlug: string;
|
|
48
|
+
branch: string;
|
|
49
|
+
relativePath: string;
|
|
50
|
+
url: string;
|
|
51
|
+
} | null;
|
|
52
|
+
};
|
|
53
|
+
brandId: string | null;
|
|
54
|
+
themeId: string | null;
|
|
55
|
+
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ImportJobOperation } from "../enums/SDKImportJobOperation";
|
|
2
2
|
import { ImportJobState } from "../enums/SDKImportJobState";
|
|
3
|
-
import { Source, SourceRemoteModel } from "../support/SDKSource";
|
|
4
|
-
type SourceRemoteModelWithSourceId = Omit<SourceRemoteModel, "id"> & {
|
|
5
|
-
sourceId: string;
|
|
6
|
-
};
|
|
7
3
|
export type ImportJobRemoteModel = {
|
|
8
4
|
id: string;
|
|
9
5
|
designSystemId: string;
|
|
@@ -13,7 +9,7 @@ export type ImportJobRemoteModel = {
|
|
|
13
9
|
state: ImportJobState;
|
|
14
10
|
error?: string;
|
|
15
11
|
operation: ImportJobOperation;
|
|
16
|
-
|
|
12
|
+
sourceIds: Array<string>;
|
|
17
13
|
};
|
|
18
14
|
export declare class ImportJob {
|
|
19
15
|
/** Unique identifier of the job */
|
|
@@ -33,7 +29,6 @@ export declare class ImportJob {
|
|
|
33
29
|
/** Job operation - Check or Import */
|
|
34
30
|
operation: ImportJobOperation;
|
|
35
31
|
/** All sources participating in this import job */
|
|
36
|
-
|
|
32
|
+
sourceIds: Array<string>;
|
|
37
33
|
constructor(model: ImportJobRemoteModel);
|
|
38
34
|
}
|
|
39
|
-
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomDomainErrorCode } from "../enums/SDKCustomDomainErrorCode";
|
|
2
|
+
import { CustomDomainState } from "../enums/SDKCustomDomainState";
|
|
3
|
+
export type CustomDomainRemoteModel = {
|
|
4
|
+
id: string;
|
|
5
|
+
designSystemId: string;
|
|
6
|
+
supernovaDomain: string;
|
|
7
|
+
customerDomain: string;
|
|
8
|
+
state: CustomDomainState;
|
|
9
|
+
error: string | null;
|
|
10
|
+
errorCode: CustomDomainErrorCode;
|
|
11
|
+
};
|
|
12
|
+
export declare class CustomDomain {
|
|
13
|
+
id: string;
|
|
14
|
+
designSystemId: string;
|
|
15
|
+
supernovaDomain: string;
|
|
16
|
+
customerDomain: string;
|
|
17
|
+
state: CustomDomainState;
|
|
18
|
+
error: string | null;
|
|
19
|
+
errorCode: CustomDomainErrorCode | null;
|
|
20
|
+
constructor(model: CustomDomainRemoteModel);
|
|
21
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ImportWarningType } from "../enums/SDKCloudWarningType";
|
|
1
2
|
import { SourceType } from "../enums/SDKSourceType";
|
|
2
3
|
export type SourceRemoteModel = {
|
|
3
4
|
type: SourceType;
|
|
@@ -46,14 +47,8 @@ export type SourceRemoteModelCloud = {
|
|
|
46
47
|
isFailed: boolean;
|
|
47
48
|
versionId: string;
|
|
48
49
|
fileSize?: number;
|
|
49
|
-
warnings?: Array<
|
|
50
|
-
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
53
|
-
lastImportFramesResult?: {
|
|
54
|
-
sourceId: string;
|
|
55
|
-
isFailed: string;
|
|
56
|
-
error?: string;
|
|
50
|
+
warnings?: Array<SourceImportResultWarning>;
|
|
51
|
+
isFramesFailed: boolean;
|
|
57
52
|
assetsInFile?: {
|
|
58
53
|
frames: number;
|
|
59
54
|
components: number;
|
|
@@ -63,6 +58,20 @@ export type SourceRemoteModelCloud = {
|
|
|
63
58
|
ownerId: string;
|
|
64
59
|
ownerUserName: string;
|
|
65
60
|
state: string;
|
|
61
|
+
stats: {
|
|
62
|
+
tokens: number;
|
|
63
|
+
components: number;
|
|
64
|
+
assets: number;
|
|
65
|
+
frames: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type SourceImportResultWarning = {
|
|
69
|
+
warningType: ImportWarningType;
|
|
70
|
+
componentId: string;
|
|
71
|
+
componentName: string;
|
|
72
|
+
styleId: string;
|
|
73
|
+
styleName: string;
|
|
74
|
+
unsupportedStyleValueType: string;
|
|
66
75
|
};
|
|
67
76
|
export type SourceRemoteModelTokensStudio = {
|
|
68
77
|
connectionName: string;
|
|
@@ -109,6 +118,9 @@ export declare class Source {
|
|
|
109
118
|
scope: SourceScope;
|
|
110
119
|
get hasError(): boolean;
|
|
111
120
|
get hasWarning(): boolean;
|
|
121
|
+
get isCloudAvailable(): boolean;
|
|
122
|
+
get isTokensStudioAvailable(): boolean;
|
|
123
|
+
get tokensStudioHasError(): boolean;
|
|
112
124
|
constructor(model: SourceRemoteModel);
|
|
113
125
|
/** Constructs representation that can be used to write full object to remote */
|
|
114
126
|
toRemote(): SourceRemoteModel;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { SourceType } from "../../model/enums/SDKSourceType";
|
|
1
2
|
export type TokenOriginModel = {
|
|
2
3
|
id?: string;
|
|
3
4
|
name?: string;
|
|
4
5
|
sourceId?: string;
|
|
6
|
+
sourceType?: SourceType;
|
|
5
7
|
referenceOriginId?: string;
|
|
6
8
|
referencePersistentId?: string;
|
|
7
9
|
};
|
|
@@ -9,6 +11,7 @@ export declare class TokenOrigin {
|
|
|
9
11
|
id: string | null;
|
|
10
12
|
name: string | null;
|
|
11
13
|
sourceId: string | null;
|
|
14
|
+
sourceType?: SourceType | null;
|
|
12
15
|
referenceOriginId?: string | null;
|
|
13
16
|
referencePersistentId?: string | null;
|
|
14
17
|
constructor(model: TokenOriginModel);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
2
3
|
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
4
|
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
5
|
import { DimensionTokenType, TokenType } from "../enums/SDKTokenType";
|
|
@@ -7,7 +8,6 @@ import { DimensionTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteT
|
|
|
7
8
|
import { AnyDimensionTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
9
|
import { Token } from "./SDKToken";
|
|
9
10
|
import { AnyDimensionTokenValue, BorderWidthTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, SizeTokenValue, SpaceTokenValue, ZIndexTokenValue } from "./SDKTokenValue";
|
|
10
|
-
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
11
11
|
export declare class DimensionCategoryToken<T extends AnyDimensionTokenValue> extends Token {
|
|
12
12
|
value: T;
|
|
13
13
|
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: DimensionCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { WorkspaceProfile, WorkspaceProfileRemoteModel, WorkspaceProfileTransportModel } from "./SDKWorkspaceProfile";
|
|
2
|
-
import { WorkspaceSubscription, WorkspaceSubscriptionRemoteModel, WorkspaceSubscriptionTransportModel } from "./SDKWorkspaceSubscription";
|
|
3
2
|
export type WorkspaceRemoteModel = {
|
|
4
3
|
id: string;
|
|
5
|
-
subscription: WorkspaceSubscriptionRemoteModel;
|
|
6
4
|
profile: WorkspaceProfileRemoteModel;
|
|
7
5
|
};
|
|
8
6
|
export type WorkspaceTransportModel = {
|
|
9
7
|
id: string;
|
|
10
|
-
subscription: WorkspaceSubscriptionTransportModel;
|
|
11
8
|
profile: WorkspaceProfileTransportModel;
|
|
12
9
|
};
|
|
13
10
|
export declare class Workspace {
|
|
@@ -15,8 +12,6 @@ export declare class Workspace {
|
|
|
15
12
|
id: string;
|
|
16
13
|
/** Workspace profile with all information about billing, workspace, avatars etc. */
|
|
17
14
|
profile: WorkspaceProfile;
|
|
18
|
-
/** Workspace subscription configuration */
|
|
19
|
-
subscription: WorkspaceSubscription;
|
|
20
15
|
constructor(model: WorkspaceRemoteModel);
|
|
21
16
|
/** Constructs representation that can be used to write full object to remote */
|
|
22
17
|
toRemote(): WorkspaceRemoteModel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UserRole } from "../enums/SDKUserRole";
|
|
2
|
+
export type WorkspaceInvitationRemoteModel = {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
resentAt?: string;
|
|
7
|
+
role: UserRole;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
invitedBy: string;
|
|
10
|
+
};
|
|
11
|
+
export type WorkspaceInvitationTransportModel = WorkspaceInvitationRemoteModel;
|
|
12
|
+
export declare class WorkspaceInvitation {
|
|
13
|
+
/** Unique identifier of the invitation */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Email address associated with the invitation */
|
|
16
|
+
email: string;
|
|
17
|
+
/** Date and time when the invitation was created */
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
/** Date and time when the invitation was last resent, or null if never resent */
|
|
20
|
+
resentAt: Date | null;
|
|
21
|
+
/** Role assigned to the user being invited */
|
|
22
|
+
role: UserRole;
|
|
23
|
+
/** ID of the workspace associated with the invitation */
|
|
24
|
+
workspaceId: string;
|
|
25
|
+
/** User who sent the invitation */
|
|
26
|
+
invitedBy: string;
|
|
27
|
+
constructor(model: WorkspaceInvitationRemoteModel);
|
|
28
|
+
toRemote(): WorkspaceInvitationTransportModel;
|
|
29
|
+
toTransport(): WorkspaceInvitationTransportModel;
|
|
30
|
+
static fromTransport(model: WorkspaceInvitationTransportModel): WorkspaceInvitation;
|
|
31
|
+
}
|