@supernova-studio/supernova-sdk-beta 1.6.26 → 1.6.28
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/build/sdk-typescript/src/core/SDKSupernova.d.ts +3 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +140 -6
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +2 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +14 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +10 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +27 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaStorage.d.ts +23 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +1 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +65 -6
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +71 -11
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +50 -6
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +38 -8
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +3 -3
- package/build/sdk-typescript/src/exports-pulsar.d.ts +1 -1
- package/build/sdk-typescript/src/exports.d.ts +11 -2
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-detail/SDKDocsBlockActualTokenDetail.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-group/SDKDocsBlockActualTokenGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-list/SDKDocsBlockActualTokenList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +4 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame.d.ts +4 -1
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +5 -2
- package/build/sdk-typescript/src/model/enums/SDKConnectionProviders.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/CodegenAccount.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureOrganization.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureProject.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureRepository.d.ts +11 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketProject.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketRepository.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketWorkspace.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBranch.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenConnection.d.ts +10 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabRepository.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenRepository.d.ts +15 -0
- package/build/sdk-typescript/src/model/exporters/SDKConnections.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +43 -61
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +1 -2
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenOrganizationModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenProjectModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenRepositoryModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenProjectModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenRepositoryModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenWorkspaceModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenAccountModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenBranchModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenConnectionModel.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenRepositoryModel.d.ts +17 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenGroupModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenRepositoryModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +2 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +20 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructure.d.ts +27 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructureDetail.d.ts +30 -0
- package/build/sdk-typescript/src/model/support/SDKLogger.d.ts +4 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +2 -2
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +6 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +5 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProduct.d.ts +21 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +40 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +2 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +34 -7
- package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -1
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -2
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +1 -1
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +3 -1
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +2 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +1 -1
- package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +1 -1
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +6 -6
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { FrameOrigin, FrameOriginModel } from "../../support/SDKFrameOrigin";
|
|
2
2
|
import { ColorTokenRemoteData } from "../../tokens/remote/SDKRemoteTokenData";
|
|
3
3
|
export type DocumentationLegacyPageBlockFrameModel = {
|
|
4
|
+
id: string;
|
|
4
5
|
sourceId: string;
|
|
5
6
|
sourceFrameId: string;
|
|
6
7
|
title?: string;
|
|
7
8
|
description?: string;
|
|
9
|
+
persistentId?: string;
|
|
8
10
|
backgroundColor?: ColorTokenRemoteData;
|
|
9
|
-
origin
|
|
11
|
+
origin?: FrameOriginModel;
|
|
10
12
|
};
|
|
11
13
|
export declare class DocumentationLegacyPageBlockFrame {
|
|
12
14
|
title: string | null;
|
|
13
15
|
description: string | null;
|
|
14
16
|
previewUrl: string;
|
|
17
|
+
persistentId: string | null;
|
|
15
18
|
backgroundColor: ColorTokenRemoteData | null;
|
|
16
19
|
origin: FrameOrigin | null;
|
|
17
20
|
constructor(model: DocumentationLegacyPageBlockFrameModel, blockBackgroundColor: ColorTokenRemoteData | null);
|
|
@@ -14,12 +14,15 @@ export type DocumentationLegacyItemHeaderModel = {
|
|
|
14
14
|
backgroundImageScaleType: AssetScaleType;
|
|
15
15
|
showBackgroundOverlay: boolean;
|
|
16
16
|
showCoverText: boolean;
|
|
17
|
-
minHeight: number;
|
|
17
|
+
minHeight: number | null;
|
|
18
18
|
};
|
|
19
19
|
export declare class DocumentationLegacyItemHeader {
|
|
20
20
|
backgroundImageAssetUrl: string | null;
|
|
21
21
|
backgroundImageAssetId: string | null;
|
|
22
22
|
backgroundImageAssetType: DocumentationLegacyPageAssetType | null;
|
|
23
|
+
backgroundImageSourceId: string | null;
|
|
24
|
+
backgroundImagePersistentId: string | null;
|
|
25
|
+
backgroundImageSourceFrameId: string | null;
|
|
23
26
|
backgroundImageScaleType: AssetScaleType;
|
|
24
27
|
description: string;
|
|
25
28
|
alignment: Alignment;
|
|
@@ -27,7 +30,7 @@ export declare class DocumentationLegacyItemHeader {
|
|
|
27
30
|
backgroundColor: ColorTokenRemoteData | null;
|
|
28
31
|
showBackgroundOverlay: boolean;
|
|
29
32
|
showCoverText: boolean;
|
|
30
|
-
minHeight: number;
|
|
33
|
+
minHeight: number | null;
|
|
31
34
|
constructor(model: DocumentationLegacyItemHeaderModel);
|
|
32
35
|
toWriteModel(): DocumentationLegacyItemHeaderModel;
|
|
33
36
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CodegenAccountRemoteModel } from "./remote/SDKRemoteCodegenAccountModel";
|
|
2
|
+
export declare class CodegenAccount {
|
|
3
|
+
id: string;
|
|
4
|
+
accountType: "User" | "Organization";
|
|
5
|
+
handle: string;
|
|
6
|
+
installationUrl: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
constructor(data: CodegenAccountRemoteModel);
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CodegenAzureRepositoryRemoteModel } from "./remote/SDKRemoteAzureCodegenRepositoryModel";
|
|
2
|
+
export declare class CodegenAzureRepository {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
forked: boolean;
|
|
7
|
+
defaultBranch?: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
url: string;
|
|
10
|
+
constructor(data: CodegenAzureRepositoryRemoteModel);
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CodegenBitbucketRepositoryRemoteModel } from "./remote/SDKRemoteBitbucketCodegenRepositoryModel";
|
|
2
|
+
export declare class CodegenBitbucketRepository {
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
projectKey: string;
|
|
6
|
+
url: string;
|
|
7
|
+
constructor(data: CodegenBitbucketRepositoryRemoteModel);
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CodegenConnectionRemoteModel } from "./remote/SDKRemoteCodegenConnectionModel";
|
|
2
|
+
export declare class CodegenConnection {
|
|
3
|
+
id: string;
|
|
4
|
+
ownerId: string;
|
|
5
|
+
customUrl: string;
|
|
6
|
+
name: string;
|
|
7
|
+
authType: string;
|
|
8
|
+
service: string;
|
|
9
|
+
constructor(data: CodegenConnectionRemoteModel);
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CodegenGitlabRepositoryRemoteModel } from "./remote/SDKRemoteGitlabCodegenRepositoryModel";
|
|
2
|
+
export declare class CodegenGitlabRepository {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
defaultBranch: string;
|
|
6
|
+
url: string;
|
|
7
|
+
cloneUrl: string;
|
|
8
|
+
constructor(data: CodegenGitlabRepositoryRemoteModel);
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CodegenRepositoryRemoteModel } from "./remote/SDKRemoteCodegenRepositoryModel";
|
|
2
|
+
export declare class CodegenRepository {
|
|
3
|
+
id: number;
|
|
4
|
+
owner: string;
|
|
5
|
+
name: string;
|
|
6
|
+
fullName: string;
|
|
7
|
+
url: string;
|
|
8
|
+
description: string;
|
|
9
|
+
archived: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
forked: boolean;
|
|
12
|
+
private: boolean;
|
|
13
|
+
defaultBranch: string;
|
|
14
|
+
constructor(data: CodegenRepositoryRemoteModel);
|
|
15
|
+
}
|
|
@@ -1,76 +1,55 @@
|
|
|
1
|
+
import { ExportBuild } from "./exporter_builds/SDKExportBuild";
|
|
1
2
|
import { PipelineRemoteModel } from "./remote/SDKRemotePipelineModel";
|
|
3
|
+
export type GithubDestinationPayload = {
|
|
4
|
+
connectionId: string;
|
|
5
|
+
branch: string;
|
|
6
|
+
relativePath: string;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
export type AzureDestinationPayload = {
|
|
10
|
+
connectionId: string;
|
|
11
|
+
organizationId: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
repositoryId: string;
|
|
14
|
+
branch: string;
|
|
15
|
+
relativePath: string;
|
|
16
|
+
};
|
|
17
|
+
export type BitbucketDestinationPayload = {
|
|
18
|
+
connectionId: string;
|
|
19
|
+
workspaceSlug: string;
|
|
20
|
+
projectKey: string;
|
|
21
|
+
repoSlug: string;
|
|
22
|
+
branch: string;
|
|
23
|
+
relativePath: string;
|
|
24
|
+
};
|
|
25
|
+
export type GitlabDestinationPayload = {
|
|
26
|
+
connectionId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
branch: string;
|
|
29
|
+
relativePath: string;
|
|
30
|
+
};
|
|
31
|
+
export type DocumentationDestinationPayload = {
|
|
32
|
+
environment: "Live" | "Preview";
|
|
33
|
+
};
|
|
2
34
|
export type NewPipelinePayload = {
|
|
3
35
|
brandId?: string;
|
|
36
|
+
themeId?: string;
|
|
4
37
|
designSystemId: string;
|
|
5
38
|
destinations: {
|
|
6
|
-
azure: null;
|
|
7
|
-
bitbucket: null;
|
|
8
|
-
documentation: null;
|
|
9
|
-
github: null;
|
|
10
|
-
gitlab: null;
|
|
39
|
+
azure: AzureDestinationPayload | null;
|
|
40
|
+
bitbucket: BitbucketDestinationPayload | null;
|
|
41
|
+
documentation: DocumentationDestinationPayload | null;
|
|
42
|
+
github: GithubDestinationPayload | null;
|
|
43
|
+
gitlab: GitlabDestinationPayload | null;
|
|
11
44
|
s3: Record<string, any>;
|
|
12
45
|
webhookUrl: null;
|
|
13
46
|
};
|
|
14
|
-
eventType: "OnHeadChanged" | "OnSourceUpdated" | "OnVersionReleased";
|
|
47
|
+
eventType: "OnHeadChanged" | "OnSourceUpdated" | "OnVersionReleased" | "None";
|
|
15
48
|
exporterId: string;
|
|
16
49
|
isEnabled: boolean;
|
|
17
50
|
name: string;
|
|
18
51
|
};
|
|
19
|
-
export type
|
|
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
|
-
};
|
|
52
|
+
export type PipelineUpdateModel = Omit<PipelineRemoteModel, "latestJobs" | "workspaceId" | "designSystem">;
|
|
74
53
|
export declare class Pipeline {
|
|
75
54
|
id: string;
|
|
76
55
|
workspaceId: string;
|
|
@@ -125,7 +104,10 @@ export declare class Pipeline {
|
|
|
125
104
|
};
|
|
126
105
|
brandId: string | null;
|
|
127
106
|
themeId: string | null;
|
|
107
|
+
latestJobs: Array<ExportBuild>;
|
|
128
108
|
constructor(data: PipelineRemoteModel);
|
|
129
109
|
get isBuildOnly(): boolean;
|
|
130
110
|
get gitProviderType(): "github" | "bitbucket" | "gitlab" | "azure" | null;
|
|
111
|
+
get toRemoteModel(): PipelineRemoteModel;
|
|
112
|
+
get isRunning(): boolean;
|
|
131
113
|
}
|
|
@@ -30,7 +30,7 @@ export declare enum ExportBuildResultLogType {
|
|
|
30
30
|
user = "user",
|
|
31
31
|
error = "error"
|
|
32
32
|
}
|
|
33
|
-
type ExportBuildResultLogModel = {
|
|
33
|
+
export type ExportBuildResultLogModel = {
|
|
34
34
|
time: string;
|
|
35
35
|
type: ExportBuildResultLogType;
|
|
36
36
|
message: string;
|
|
@@ -70,4 +70,3 @@ export declare class ExportBuildResult {
|
|
|
70
70
|
error: string | null;
|
|
71
71
|
constructor(data: ExportBuildResultModel);
|
|
72
72
|
}
|
|
73
|
-
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type CodegenRepositoryRemoteModel = {
|
|
2
|
+
id: number;
|
|
3
|
+
/** @deprecated use owner instead */
|
|
4
|
+
installationHandle: string;
|
|
5
|
+
/** @deprecated use name instead */
|
|
6
|
+
handle: string;
|
|
7
|
+
owner: string;
|
|
8
|
+
name: string;
|
|
9
|
+
fullName: string;
|
|
10
|
+
url: string;
|
|
11
|
+
description: string;
|
|
12
|
+
archived: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
forked: boolean;
|
|
15
|
+
private: boolean;
|
|
16
|
+
defaultBranch: string;
|
|
17
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExportBuildModel } from "../exporter_builds/SDKExportBuild";
|
|
1
2
|
export type PipelineRemoteModel = {
|
|
2
3
|
id: string;
|
|
3
4
|
workspaceId: string;
|
|
@@ -52,4 +53,5 @@ export type PipelineRemoteModel = {
|
|
|
52
53
|
};
|
|
53
54
|
brandId: string | null;
|
|
54
55
|
themeId: string | null;
|
|
56
|
+
latestJobs: Array<ExportBuildModel> | null;
|
|
55
57
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum FrameType {
|
|
2
|
+
DOCUMENT = "DOCUMENT",
|
|
3
|
+
CANVAS = "CANVAS",
|
|
4
|
+
COMPONENT_SET = "COMPONENT_SET",
|
|
5
|
+
COMPONENT = "COMPONENT",
|
|
6
|
+
FRAME = "FRAME"
|
|
7
|
+
}
|
|
8
|
+
export type FigmaFrameModel = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: FrameType;
|
|
12
|
+
children: Array<FigmaFrameModel>;
|
|
13
|
+
};
|
|
14
|
+
export declare class FigmaFrame {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: FrameType;
|
|
18
|
+
children: Array<FigmaFrame>;
|
|
19
|
+
constructor(model: FigmaFrameModel);
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type FigmaStructureModel = {
|
|
2
|
+
assetsInFile: {
|
|
3
|
+
componentSets: number;
|
|
4
|
+
components: number;
|
|
5
|
+
frames: number;
|
|
6
|
+
};
|
|
7
|
+
designSystemVersionId: string;
|
|
8
|
+
id: string;
|
|
9
|
+
origin: {
|
|
10
|
+
sourceId: string;
|
|
11
|
+
};
|
|
12
|
+
persistentId: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class FigmaStructure {
|
|
15
|
+
assetsInFile: {
|
|
16
|
+
componentSets: number;
|
|
17
|
+
components: number;
|
|
18
|
+
frames: number;
|
|
19
|
+
};
|
|
20
|
+
designSystemVersionId: string;
|
|
21
|
+
id: string;
|
|
22
|
+
origin: {
|
|
23
|
+
sourceId: string;
|
|
24
|
+
};
|
|
25
|
+
persistentId: string;
|
|
26
|
+
constructor(model: FigmaStructureModel);
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FigmaFrameModel } from "./SDKFigmaFrame";
|
|
2
|
+
export type FigmaStructureDetailModel = {
|
|
3
|
+
assetsInFile: {
|
|
4
|
+
componentSets: number;
|
|
5
|
+
components: number;
|
|
6
|
+
frames: number;
|
|
7
|
+
};
|
|
8
|
+
designSystemVersionId: string;
|
|
9
|
+
id: string;
|
|
10
|
+
origin: {
|
|
11
|
+
sourceId: string;
|
|
12
|
+
};
|
|
13
|
+
persistentId: string;
|
|
14
|
+
rootNode: FigmaFrameModel;
|
|
15
|
+
};
|
|
16
|
+
export declare class FigmaStructureDetail {
|
|
17
|
+
assetsInFile: {
|
|
18
|
+
componentSets: number;
|
|
19
|
+
components: number;
|
|
20
|
+
frames: number;
|
|
21
|
+
};
|
|
22
|
+
designSystemVersionId: string;
|
|
23
|
+
id: string;
|
|
24
|
+
origin: {
|
|
25
|
+
sourceId: string;
|
|
26
|
+
};
|
|
27
|
+
persistentId: string;
|
|
28
|
+
rootNode: FigmaFrameModel;
|
|
29
|
+
constructor(model: FigmaStructureDetailModel);
|
|
30
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TokenType } from "../enums/SDKTokenType";
|
|
2
2
|
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
3
|
-
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyStringTokenRemoteData, BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData, TypographyTokenRemoteData } from "../tokens/remote/SDKRemoteTokenData";
|
|
4
3
|
import { AnyTokenValue } from "../tokens/SDKTokenValue";
|
|
4
|
+
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyStringTokenRemoteData, BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData, TypographyTokenRemoteData } from "../tokens/remote/SDKRemoteTokenData";
|
|
5
5
|
export type TokenThemeOverrideRemoteModel = {
|
|
6
6
|
data: ColorTokenRemoteData | AnyStringTokenRemoteData | TypographyTokenRemoteData | ShadowTokenRemoteData | AnyDimensionTokenRemoteData | BorderTokenRemoteData | GradientTokenRemoteData | BlurTokenRemoteData | AnyOptionTokenRemoteData;
|
|
7
7
|
tokenPersistentId: string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
1
3
|
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
2
4
|
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
3
5
|
import { StringTokenType, TokenType } from "../enums/SDKTokenType";
|
|
@@ -5,8 +7,6 @@ import { StringTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteToke
|
|
|
5
7
|
import { StringTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
6
8
|
import { Token } from "./SDKToken";
|
|
7
9
|
import { AnyStringTokenValue, FontFamilyTokenValue, FontWeightTokenValue, ProductCopyTokenValue, StringTokenValue } from "./SDKTokenValue";
|
|
8
|
-
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
9
|
-
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
10
10
|
export declare class StringCategoryToken<T extends AnyStringTokenValue> extends Token {
|
|
11
11
|
value: T;
|
|
12
12
|
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: StringCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
@@ -8,12 +8,18 @@ export type UserRemoteModel = {
|
|
|
8
8
|
};
|
|
9
9
|
export type LinkedIntegrations = {
|
|
10
10
|
figma?: UserLinkedIntegration;
|
|
11
|
+
github?: UserLinkedIntegration[];
|
|
12
|
+
azure?: UserLinkedIntegration[];
|
|
13
|
+
gitlab?: UserLinkedIntegration[];
|
|
14
|
+
bitbucket?: UserLinkedIntegration[];
|
|
11
15
|
};
|
|
12
16
|
type UserLinkedIntegration = {
|
|
13
17
|
id: string;
|
|
14
18
|
email?: string;
|
|
15
19
|
handle?: string;
|
|
20
|
+
authType?: "OAuth2" | "PAT";
|
|
16
21
|
avatarUrl?: string;
|
|
22
|
+
customUrl?: string;
|
|
17
23
|
};
|
|
18
24
|
export type UserTransportModel = Pick<User, "id" | "email"> & {
|
|
19
25
|
createdAt: string;
|