@supernova-studio/supernova-sdk-beta 1.6.25 → 1.6.27
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 +19 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +167 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +12 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +14 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +37 -2
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +94 -4
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +27 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaNetwork.d.ts +9 -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 +69 -1
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +3 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +120 -5
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +61 -2
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +99 -5
- 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 +63 -25
- 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/docs/entities/SDKDocsEntityHeader.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/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/SDKDocumentationLegacyItemConfiguration.d.ts +1 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +8 -2
- 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/SDKConnectionProviders.d.ts +6 -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/SDKUserRole.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +6 -14
- 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/SDKExporter.d.ts +16 -12
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +113 -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 +72 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +111 -0
- 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 +57 -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/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/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/users/SDKUser.d.ts +6 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +0 -5
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +35 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvoice.d.ts +38 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProduct.d.ts +21 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +3 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +40 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +34 -35
- package/build/sdk-typescript/src/pulsar-interfaces.d.ts +40 -0
- package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +7 -3
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +3 -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
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ExportBuildModel } from "../exporter_builds/SDKExportBuild";
|
|
2
|
+
export type PipelineRemoteModel = {
|
|
3
|
+
id: string;
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
designSystem: {
|
|
6
|
+
id: string;
|
|
7
|
+
meta: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
name: string;
|
|
13
|
+
isEnabled: boolean;
|
|
14
|
+
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated";
|
|
15
|
+
exporterId: string;
|
|
16
|
+
destinations: {
|
|
17
|
+
webhookUrl: string | null;
|
|
18
|
+
documentation: {
|
|
19
|
+
environment: "Live" | "Preview";
|
|
20
|
+
} | null;
|
|
21
|
+
s3: Record<any, any> | null;
|
|
22
|
+
github: {
|
|
23
|
+
connectionId: string;
|
|
24
|
+
url: string;
|
|
25
|
+
branch: string;
|
|
26
|
+
relativePath: string;
|
|
27
|
+
} | null;
|
|
28
|
+
azure: {
|
|
29
|
+
connectionId: string;
|
|
30
|
+
organizationId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
repositoryId: string;
|
|
33
|
+
branch: string;
|
|
34
|
+
relativePath: string;
|
|
35
|
+
url: string;
|
|
36
|
+
} | null;
|
|
37
|
+
gitlab: {
|
|
38
|
+
connectionId: string;
|
|
39
|
+
projectId: string;
|
|
40
|
+
branch: string;
|
|
41
|
+
relativePath: string;
|
|
42
|
+
url: string;
|
|
43
|
+
} | null;
|
|
44
|
+
bitbucket: {
|
|
45
|
+
connectionId: string;
|
|
46
|
+
workspaceSlug: string;
|
|
47
|
+
projectKey: string;
|
|
48
|
+
repoSlug: string;
|
|
49
|
+
branch: string;
|
|
50
|
+
relativePath: string;
|
|
51
|
+
url: string;
|
|
52
|
+
} | null;
|
|
53
|
+
};
|
|
54
|
+
brandId: string | null;
|
|
55
|
+
themeId: string | null;
|
|
56
|
+
latestJobs: Array<ExportBuildModel> | null;
|
|
57
|
+
};
|
|
@@ -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
|
+
}
|
|
@@ -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,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>);
|
|
@@ -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;
|
|
@@ -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,35 @@
|
|
|
1
|
+
import { UserRole, UserRoleWithoutOwner } 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 type WorkspaceInvitationUpdateModel = {
|
|
13
|
+
email: string;
|
|
14
|
+
role: UserRoleWithoutOwner;
|
|
15
|
+
};
|
|
16
|
+
export declare class WorkspaceInvitation {
|
|
17
|
+
/** Unique identifier of the invitation */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Email address associated with the invitation */
|
|
20
|
+
email: string;
|
|
21
|
+
/** Date and time when the invitation was created */
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
/** Date and time when the invitation was last resent, or null if never resent */
|
|
24
|
+
resentAt: Date | null;
|
|
25
|
+
/** Role assigned to the user being invited */
|
|
26
|
+
role: UserRole;
|
|
27
|
+
/** ID of the workspace associated with the invitation */
|
|
28
|
+
workspaceId: string;
|
|
29
|
+
/** User who sent the invitation */
|
|
30
|
+
invitedBy: string;
|
|
31
|
+
constructor(model: WorkspaceInvitationRemoteModel);
|
|
32
|
+
toRemote(): WorkspaceInvitationTransportModel;
|
|
33
|
+
toTransport(): WorkspaceInvitationTransportModel;
|
|
34
|
+
static fromTransport(model: WorkspaceInvitationTransportModel): WorkspaceInvitation;
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type WorkspaceInvoiceRemoteModel = {
|
|
2
|
+
id: string;
|
|
3
|
+
number: string;
|
|
4
|
+
amount_due: number;
|
|
5
|
+
date: string;
|
|
6
|
+
hostedUrl: string;
|
|
7
|
+
card?: WorkspaceInvoiceCardRemoteModel;
|
|
8
|
+
};
|
|
9
|
+
export type WorkspaceInvoiceCardRemoteModel = {
|
|
10
|
+
last4?: string;
|
|
11
|
+
expiryMonth?: string;
|
|
12
|
+
expiryYear?: string;
|
|
13
|
+
brand?: string;
|
|
14
|
+
};
|
|
15
|
+
export type WorkspaceInvoiceTransportModel = WorkspaceInvoiceRemoteModel;
|
|
16
|
+
export declare class WorkspaceInvoice {
|
|
17
|
+
/** Unique identifier of the invoice */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Invoice number */
|
|
20
|
+
number: string;
|
|
21
|
+
/** Amount due on the invoice */
|
|
22
|
+
amount_due: number;
|
|
23
|
+
/** Date of the invoice */
|
|
24
|
+
date: Date;
|
|
25
|
+
/** Hosted URL for the invoice */
|
|
26
|
+
hostedUrl: string;
|
|
27
|
+
/** Card information associated with the invoice */
|
|
28
|
+
card: {
|
|
29
|
+
last4: string | null;
|
|
30
|
+
expiryMonth: string | null;
|
|
31
|
+
expiryYear: string | null;
|
|
32
|
+
brand: string | null;
|
|
33
|
+
} | null;
|
|
34
|
+
constructor(model: WorkspaceInvoiceRemoteModel);
|
|
35
|
+
toRemote(): WorkspaceInvoiceTransportModel;
|
|
36
|
+
toTransport(): WorkspaceInvoiceTransportModel;
|
|
37
|
+
static fromTransport(model: WorkspaceInvoiceTransportModel): WorkspaceInvoice;
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UserRole } from "../enums/SDKUserRole";
|
|
2
|
+
import { WorkspaceSubscriptionProductCode } from "../enums/SDKWorkspaceSubscriptionProduct";
|
|
3
|
+
import { WorkspaceProductPrice, WorkspaceProductPriceRemoteModel } from "./SDKWorkspaceProductPrice";
|
|
4
|
+
export type WorkspaceProductRemoteModel = {
|
|
5
|
+
code: WorkspaceSubscriptionProductCode;
|
|
6
|
+
allowedInviteRoles: Array<UserRole>;
|
|
7
|
+
prices: Array<WorkspaceProductPriceRemoteModel>;
|
|
8
|
+
};
|
|
9
|
+
export type WorkspaceProductTransportModel = WorkspaceProductRemoteModel;
|
|
10
|
+
export declare class WorkspaceProduct {
|
|
11
|
+
/** The code corresponding to this product */
|
|
12
|
+
code: WorkspaceSubscriptionProductCode;
|
|
13
|
+
/** The roles that are allowed to be invited to the workspace under this product */
|
|
14
|
+
allowedInviteRoles: Array<UserRole>;
|
|
15
|
+
/** The list of prices associated with the product */
|
|
16
|
+
prices: Array<WorkspaceProductPrice>;
|
|
17
|
+
constructor(model: WorkspaceProductTransportModel);
|
|
18
|
+
toRemote(): WorkspaceProductRemoteModel;
|
|
19
|
+
toTransport(): WorkspaceProductTransportModel;
|
|
20
|
+
static fromTransport(model: WorkspaceProductTransportModel): WorkspaceProduct;
|
|
21
|
+
}
|
|
@@ -14,12 +14,14 @@ export type SubscriptionProductFeaturesRemoteModel = {
|
|
|
14
14
|
enterprise: ProductFeature;
|
|
15
15
|
};
|
|
16
16
|
export type FeaturePermissionResolution = {
|
|
17
|
+
max?: number;
|
|
18
|
+
} & ({
|
|
17
19
|
hasPermission: false;
|
|
18
20
|
reason: string;
|
|
19
21
|
} | {
|
|
20
22
|
hasPermission: true;
|
|
21
23
|
reason?: never;
|
|
22
|
-
};
|
|
24
|
+
});
|
|
23
25
|
export declare class SubscriptionProductFeatures {
|
|
24
26
|
free: ProductFeature;
|
|
25
27
|
team: ProductFeature;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { WorkspaceSubscriptionPlanInterval } from "../enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
2
|
+
export type WorkspaceProductPriceRemoteModel = {
|
|
3
|
+
stripePriceId: string;
|
|
4
|
+
stripeProductId: string;
|
|
5
|
+
stripeProductDescription: string;
|
|
6
|
+
stripeProductFeatures: Array<string>;
|
|
7
|
+
stripeProductAdditionalFeatures: Array<string>;
|
|
8
|
+
active: boolean;
|
|
9
|
+
amount: number;
|
|
10
|
+
interval: WorkspaceSubscriptionPlanInterval;
|
|
11
|
+
isPricePerCreator: boolean;
|
|
12
|
+
legacyVersion?: string;
|
|
13
|
+
};
|
|
14
|
+
export type WorkspaceProductPriceTransportModel = WorkspaceProductPriceRemoteModel;
|
|
15
|
+
export declare class WorkspaceProductPrice {
|
|
16
|
+
/** The unique identifier for the Stripe price */
|
|
17
|
+
stripePriceId: string;
|
|
18
|
+
/** The unique identifier for the Stripe product associated with the price */
|
|
19
|
+
stripeProductId: string;
|
|
20
|
+
/** Product description */
|
|
21
|
+
stripeProductDescription: string;
|
|
22
|
+
/** List of features available to this product price */
|
|
23
|
+
stripeProductFeatures: Array<string>;
|
|
24
|
+
/** List of additional features available to this product price */
|
|
25
|
+
stripeProductAdditionalFeatures: Array<string>;
|
|
26
|
+
/** Indicates whether the price is currently active */
|
|
27
|
+
active: boolean;
|
|
28
|
+
/** The amount to be charged for the product, in the smallest currency unit (e.g., cents) */
|
|
29
|
+
amount: number;
|
|
30
|
+
/** The billing interval (e.g., monthly, yearly) */
|
|
31
|
+
interval: WorkspaceSubscriptionPlanInterval;
|
|
32
|
+
/** Indicates whether the price is per creator (self-serve) or not */
|
|
33
|
+
isPricePerCreator: boolean;
|
|
34
|
+
/** An optional legacy version identifier, if applicable */
|
|
35
|
+
legacyVersion?: string | null;
|
|
36
|
+
constructor(model: WorkspaceProductPriceRemoteModel);
|
|
37
|
+
toRemote(): WorkspaceProductPriceRemoteModel;
|
|
38
|
+
toTransport(): WorkspaceProductPriceTransportModel;
|
|
39
|
+
static fromTransport(model: WorkspaceProductPriceTransportModel): WorkspaceProductPrice;
|
|
40
|
+
}
|