@supernova-studio/supernova-sdk-beta 1.6.26 → 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/build/sdk-typescript/src/core/SDKSupernova.d.ts +3 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +139 -5
- 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 +40 -2
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +65 -8
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +48 -4
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +30 -7
- 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/entities/SDKDocsEntityHeader.d.ts +2 -2
- 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/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/SDKWorkspaceSubscription.d.ts +29 -7
- package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Enterprise/PluginFigmaTokens.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -2
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +3 -1
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
+
}
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { UserRole } from "../enums/SDKUserRole";
|
|
1
|
+
import { UserRole, UserRoleWithoutOwner } from "../enums/SDKUserRole";
|
|
2
2
|
export type WorkspaceInvitationRemoteModel = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -9,6 +9,10 @@ export type WorkspaceInvitationRemoteModel = {
|
|
|
9
9
|
invitedBy: string;
|
|
10
10
|
};
|
|
11
11
|
export type WorkspaceInvitationTransportModel = WorkspaceInvitationRemoteModel;
|
|
12
|
+
export type WorkspaceInvitationUpdateModel = {
|
|
13
|
+
email: string;
|
|
14
|
+
role: UserRoleWithoutOwner;
|
|
15
|
+
};
|
|
12
16
|
export declare class WorkspaceInvitation {
|
|
13
17
|
/** Unique identifier of the invitation */
|
|
14
18
|
id: string;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { WorkspaceSubscriptionPlanInterval } from "../enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspaceSubscriptionProductCode } from "../enums/SDKWorkspaceSubscriptionProduct";
|
|
3
3
|
import { WorkspaceSubscriptionStatus } from "../enums/SDKWorkspaceSubscriptionStatus";
|
|
4
|
+
import { ProductFeature } from "./SDKWorkspaceProductFeatures";
|
|
4
5
|
export type WorkspaceSubscriptionRemoteModel = {
|
|
5
6
|
status: WorkspaceSubscriptionStatus;
|
|
6
7
|
seatLimit: number;
|
|
7
8
|
seats: number;
|
|
8
|
-
product:
|
|
9
|
+
product: WorkspaceSubscriptionProductCode;
|
|
9
10
|
planInterval: WorkspaceSubscriptionPlanInterval;
|
|
10
11
|
planPriceId: string;
|
|
11
12
|
stripeCustomerId?: string;
|
|
@@ -13,7 +14,14 @@ export type WorkspaceSubscriptionRemoteModel = {
|
|
|
13
14
|
card?: WorkspaceSubscriptionCardRemoteModel;
|
|
14
15
|
currentPeriodStart?: string;
|
|
15
16
|
currentPeriodEnd?: string;
|
|
16
|
-
|
|
17
|
+
amount: number;
|
|
18
|
+
stripeProductDescription: string;
|
|
19
|
+
subscriptionStatusUpdatedAt?: string;
|
|
20
|
+
legacyVersion?: number;
|
|
21
|
+
isPricePerCreator: boolean;
|
|
22
|
+
stripeProductFeatures: Array<string>;
|
|
23
|
+
stripeProductAdditionalFeatures: Array<string>;
|
|
24
|
+
featuresSummary: ProductFeature;
|
|
17
25
|
};
|
|
18
26
|
export type WorkspaceSubscriptionCardRemoteModel = {
|
|
19
27
|
last4?: string;
|
|
@@ -30,7 +38,7 @@ export declare class WorkspaceSubscription {
|
|
|
30
38
|
/** Current amount of seats workspace uses */
|
|
31
39
|
seats: number;
|
|
32
40
|
/** Subscription tier */
|
|
33
|
-
product:
|
|
41
|
+
product: WorkspaceSubscriptionProductCode;
|
|
34
42
|
/** Subscription cycle interval */
|
|
35
43
|
planInterval: WorkspaceSubscriptionPlanInterval;
|
|
36
44
|
/** Subscription price id */
|
|
@@ -50,10 +58,24 @@ export declare class WorkspaceSubscription {
|
|
|
50
58
|
expiryYear: string | null;
|
|
51
59
|
brand: string | null;
|
|
52
60
|
} | null;
|
|
53
|
-
/** Price of the subscription */
|
|
54
|
-
|
|
61
|
+
/** Price of the subscription, in the smallest currency unit (e.g., cents) */
|
|
62
|
+
amount: number;
|
|
63
|
+
/** Product description */
|
|
64
|
+
stripeProductDescription: string;
|
|
65
|
+
/** Date when subscription status was updated */
|
|
66
|
+
subscriptionStatusUpdatedAt: Date | null;
|
|
67
|
+
/** Product version when it is legacy */
|
|
68
|
+
legacyVersion: number | null;
|
|
69
|
+
/** Indicates whether the price is per creator (self-serve) or not */
|
|
70
|
+
isPricePerCreator: boolean;
|
|
71
|
+
/** List of features available to this product price */
|
|
72
|
+
stripeProductFeatures: Array<string>;
|
|
73
|
+
/** List of additional features available to this product price */
|
|
74
|
+
stripeProductAdditionalFeatures: Array<string>;
|
|
75
|
+
/** List of features defined in a machine-readable way */
|
|
76
|
+
featuresSummary: ProductFeature;
|
|
55
77
|
constructor(model: WorkspaceSubscriptionRemoteModel);
|
|
56
|
-
toRemote():
|
|
78
|
+
toRemote(): WorkspaceSubscriptionRemoteModel;
|
|
57
79
|
toTransport(): WorkspaceSubscriptionTransportModel;
|
|
58
80
|
static fromTransport(model: WorkspaceSubscriptionTransportModel): WorkspaceSubscription;
|
|
59
81
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,9 +24,13 @@ export declare class SupernovaToolsDesignTokensPlugin {
|
|
|
24
24
|
private designSystemId;
|
|
25
25
|
private versionId;
|
|
26
26
|
private sortMultiplier;
|
|
27
|
+
private logger;
|
|
27
28
|
constructor(designSystemId: string, versionId: string, instance: Supernova);
|
|
28
|
-
synchronizeTokensFromData(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<
|
|
29
|
-
synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<
|
|
29
|
+
synchronizeTokensFromData(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<object>;
|
|
30
|
+
synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<{
|
|
31
|
+
results: SupernovaToolsDesignTokensResult[];
|
|
32
|
+
logs: string[];
|
|
33
|
+
}>;
|
|
30
34
|
private processTokenNodes;
|
|
31
35
|
private setTokensOrigin;
|
|
32
36
|
/** Creates pure tree for validation purposes, ignoring any existing token state in workspaces. This method works offline. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Logger } from "../../../model/support/SDKLogger";
|
|
1
2
|
import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
|
|
2
3
|
export type DTParsedNode = {
|
|
3
4
|
rootKey: string;
|
|
@@ -29,7 +30,8 @@ export declare enum DTParsedThemeSetPriority {
|
|
|
29
30
|
/** Design Tokens Plugin Manipulation Tool */
|
|
30
31
|
export declare class DTJSONParser {
|
|
31
32
|
themeBuffer: Array<DTParsedTheme>;
|
|
32
|
-
|
|
33
|
+
logger: Logger;
|
|
34
|
+
constructor(logger: Logger);
|
|
33
35
|
processPluginDataRepresentation(definition: object): {
|
|
34
36
|
nodes: Array<DTParsedNode>;
|
|
35
37
|
themes: Array<DTParsedTheme>;
|