@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
|
@@ -9,6 +9,7 @@ import { AreaDocumentation } from "./areas/SDKAreaDocumentation";
|
|
|
9
9
|
import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
|
|
10
10
|
import { AreaMe } from "./areas/SDKAreaMe";
|
|
11
11
|
import { AreaNetwork } from "./areas/SDKAreaNetwork";
|
|
12
|
+
import { AreaStorage } from "./areas/SDKAreaStorage";
|
|
12
13
|
import { AreaTokens } from "./areas/SDKAreaTokens";
|
|
13
14
|
import { AreaUsers } from "./areas/SDKAreaUsers";
|
|
14
15
|
import { AreaVersions } from "./areas/SDKAreaVersions";
|
|
@@ -49,6 +50,8 @@ export declare class Supernova {
|
|
|
49
50
|
dataSources: AreaDataSources;
|
|
50
51
|
/** Get, create, update, manipulate or delete data from Supernova en masse */
|
|
51
52
|
bulkOperations: AreaBulkOperations;
|
|
53
|
+
/** Read and write data using Supernova key-value storage */
|
|
54
|
+
storage: AreaStorage;
|
|
52
55
|
/** Get access to network in exporter packages */
|
|
53
56
|
network: AreaNetwork;
|
|
54
57
|
/**
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
|
|
2
|
+
import { CodegenAccount } from "../../model/exporters/CodegenAccount";
|
|
3
|
+
import { CodegenAzureOrganization } from "../../model/exporters/CodegenAzureOrganization";
|
|
4
|
+
import { CodegenAzureProject } from "../../model/exporters/CodegenAzureProject";
|
|
5
|
+
import { CodegenAzureRepository } from "../../model/exporters/CodegenAzureRepository";
|
|
6
|
+
import { CodegenBitbucketBranch } from "../../model/exporters/CodegenBitbucketBranch";
|
|
7
|
+
import { CodegenBitbucketProject } from "../../model/exporters/CodegenBitbucketProject";
|
|
8
|
+
import { CodegenBitbucketRepository } from "../../model/exporters/CodegenBitbucketRepository";
|
|
9
|
+
import { CodegenBitbucketWorkspace } from "../../model/exporters/CodegenBitbucketWorkspace";
|
|
10
|
+
import { CodegenBranch } from "../../model/exporters/CodegenBranch";
|
|
11
|
+
import { CodegenConnection } from "../../model/exporters/CodegenConnection";
|
|
12
|
+
import { CodegenGitlabBranch } from "../../model/exporters/CodegenGitlabBranch";
|
|
13
|
+
import { CodegenGitlabGroup } from "../../model/exporters/CodegenGitlabGroup";
|
|
14
|
+
import { CodegenGitlabRepository } from "../../model/exporters/CodegenGitlabRepository";
|
|
15
|
+
import { CodegenRepository } from "../../model/exporters/CodegenRepository";
|
|
2
16
|
import { ExporterCustomBlockVariant } from "../../model/exporters/custom_blocks/SDKExporterCustomBlockVariant";
|
|
3
17
|
import { ExporterConfigurationProperty } from "../../model/exporters/custom_properties/SDKExporterConfigurationProperty";
|
|
4
18
|
import { ExportBuild } from "../../model/exporters/exporter_builds/SDKExportBuild";
|
|
5
|
-
import {
|
|
19
|
+
import { ExportBuildResultLog } from "../../model/exporters/exporter_builds/SDKExportBuildResults";
|
|
6
20
|
import { Exporter } from "../../model/exporters/SDKExporter";
|
|
7
|
-
import { NewPipelinePayload, Pipeline } from "../../model/exporters/SDKPipeline";
|
|
21
|
+
import { NewPipelinePayload, Pipeline, PipelineUpdateModel } from "../../model/exporters/SDKPipeline";
|
|
8
22
|
import { ImportJob } from "../../model/jobs/SDKImportJob";
|
|
9
23
|
import { DataCore } from "../data/SDKDataCore";
|
|
10
24
|
import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "./SDKRemoteIdentifiers";
|
|
@@ -12,13 +26,133 @@ export declare class AreaAutomation {
|
|
|
12
26
|
/** Internal: Engine */
|
|
13
27
|
private dataCore;
|
|
14
28
|
constructor(dataCore: DataCore);
|
|
15
|
-
/** Fetches all pipelines that are available
|
|
16
|
-
getPipelines(workspaceId: string): Promise<Array<Pipeline>>;
|
|
29
|
+
/** Fetches all pipelines that are available by workspace id and design system id */
|
|
30
|
+
getPipelines(workspaceId: string, designSystemId: string): Promise<Array<Pipeline>>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetches all github connections for user
|
|
33
|
+
* @returns Github Connections
|
|
34
|
+
*/
|
|
35
|
+
getGithubConnections(): Promise<CodegenConnection[]>;
|
|
36
|
+
/**
|
|
37
|
+
* Fetches github accounts
|
|
38
|
+
* @returns Github accounts
|
|
39
|
+
*/
|
|
40
|
+
getGithubAccounts(githubConnectionId: string): Promise<CodegenAccount[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Fetches github repositories
|
|
43
|
+
* @returns Github repositories
|
|
44
|
+
*/
|
|
45
|
+
getGithubRepositories(githubConnectionId: string, handle: string): Promise<CodegenRepository[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Fetches github
|
|
48
|
+
* @returns Github branches
|
|
49
|
+
*/
|
|
50
|
+
getGithubBranches(githubConnectionId: string, handle: string, repoName: string): Promise<CodegenBranch[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Fetches all Gitlab connections for user
|
|
53
|
+
* @returns Gitlab Connections
|
|
54
|
+
*/
|
|
55
|
+
getGitlabConnections(): Promise<CodegenConnection[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Fetches Gitlab groups
|
|
58
|
+
* @param connectionId
|
|
59
|
+
* @returns Gitlab groups
|
|
60
|
+
*/
|
|
61
|
+
getGitlabGroups(connectionId: string): Promise<CodegenGitlabGroup[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Fetches Gitlab repositories
|
|
64
|
+
* @param connectionId
|
|
65
|
+
* @param groupId
|
|
66
|
+
* @returns Gitlab repositories
|
|
67
|
+
*/
|
|
68
|
+
getGitlabRepositories(connectionId: string, groupId: string): Promise<CodegenGitlabRepository[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Fetches Gitlab
|
|
71
|
+
* @param connectionId
|
|
72
|
+
* @param repoId
|
|
73
|
+
* @returns Gitlab branches
|
|
74
|
+
*/
|
|
75
|
+
getGitlabBranches(connectionId: string, repoId: string): Promise<CodegenGitlabBranch[]>;
|
|
76
|
+
/**
|
|
77
|
+
* Fetches all Azure connections for user
|
|
78
|
+
* @returns Azure Connections
|
|
79
|
+
*/
|
|
80
|
+
getAzureConnections(): Promise<CodegenConnection[]>;
|
|
81
|
+
/**
|
|
82
|
+
* Fetches Azure organizations
|
|
83
|
+
* @param connectionId
|
|
84
|
+
* @returns Azure organizations
|
|
85
|
+
*/
|
|
86
|
+
getAzureOrganizations(connectionId: string): Promise<CodegenAzureOrganization[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Fetches Azure projects
|
|
89
|
+
* @param connectionId
|
|
90
|
+
* @param organizationId
|
|
91
|
+
* @returns Azure projects
|
|
92
|
+
*/
|
|
93
|
+
getAzureProjects(connectionId: string, organizationId: string): Promise<CodegenAzureProject[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Fetches Azure repositories
|
|
96
|
+
* @param connectionId
|
|
97
|
+
* @param organizationId
|
|
98
|
+
* @param projectId
|
|
99
|
+
* @returns Azure repositories
|
|
100
|
+
*/
|
|
101
|
+
getAzureRepositories(connectionId: string, organizationId: string, projectId: string): Promise<CodegenAzureRepository[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Fetches Azure branches
|
|
104
|
+
* @param connectionId
|
|
105
|
+
* @param organizationId
|
|
106
|
+
* @param projectId
|
|
107
|
+
* @param repositoryId
|
|
108
|
+
* @returns Azure branches
|
|
109
|
+
*/
|
|
110
|
+
getAzureBranches(connectionId: string, organizationId: string, projectId: string, repositoryId: string): Promise<CodegenGitlabBranch[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Fetches all Bitbucket connections for user
|
|
113
|
+
* @returns Bitbucket Connections
|
|
114
|
+
*/
|
|
115
|
+
getBitbucketConnections(): Promise<CodegenConnection[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Fetches Bitbucket workspaces
|
|
118
|
+
* @param connectionId
|
|
119
|
+
* @returns Bitbucket workspaces
|
|
120
|
+
*/
|
|
121
|
+
getBitbucketWorkspaces(connectionId: string): Promise<CodegenBitbucketWorkspace[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Fetches Bitbucket projects
|
|
124
|
+
* @param connectionId
|
|
125
|
+
* @param workspaceId
|
|
126
|
+
* @returns Bitbucket projects
|
|
127
|
+
*/
|
|
128
|
+
getBitbucketProjects(connectionId: string, workspaceId: string): Promise<CodegenBitbucketProject[]>;
|
|
129
|
+
/**
|
|
130
|
+
* Fetches Bitbucket repositories
|
|
131
|
+
* @param connectionId
|
|
132
|
+
* @param workspaceId
|
|
133
|
+
* @param projectId
|
|
134
|
+
* @returns Bitbucket repositories
|
|
135
|
+
*/
|
|
136
|
+
getBitbucketRepositories(connectionId: string, workspaceId: string, projectId?: string): Promise<CodegenBitbucketRepository[]>;
|
|
137
|
+
/**
|
|
138
|
+
* Fetches Bitbucket branches
|
|
139
|
+
* @param connectionId
|
|
140
|
+
* @param workspaceId
|
|
141
|
+
* @param projectId
|
|
142
|
+
* @param repositoryId
|
|
143
|
+
* @returns Bitbucket branches
|
|
144
|
+
*/
|
|
145
|
+
getBitbucketBranches(connectionId: string, workspaceId: string, projectId: string, repositoryId: string): Promise<CodegenBitbucketBranch[]>;
|
|
17
146
|
/** Fetches all builds of pipelines
|
|
18
147
|
* @param workspaceId - Identifier of the workspace where the pipeline is installed
|
|
19
148
|
* @param versionId - Identifier of the version where the pipeline is installed
|
|
20
149
|
*/
|
|
21
150
|
getExportBuilds(workspaceId: string, versionId: string): Promise<Array<ExportBuild>>;
|
|
151
|
+
/** Fetches build logs of a specific build
|
|
152
|
+
* @param workspaceId - Identifier of the workspace where the pipeline is installed
|
|
153
|
+
* @param buildId - Identifier of the build to fetch logs for
|
|
154
|
+
*/
|
|
155
|
+
getExportBuildLogs(workspaceId: string, buildId: string): Promise<Array<ExportBuildResultLog>>;
|
|
22
156
|
/** Fetches exporters belonging to workspace by id */
|
|
23
157
|
getExporters(workspaceId: string, filter?: {
|
|
24
158
|
installedOnly?: boolean;
|
|
@@ -65,7 +199,7 @@ export declare class AreaAutomation {
|
|
|
65
199
|
* @param pipeline Pipeline
|
|
66
200
|
* @returns Pipeline
|
|
67
201
|
*/
|
|
68
|
-
updatePipeline(workspaceId: string,
|
|
202
|
+
updatePipeline(workspaceId: string, pipelineUpdateModel: PipelineUpdateModel): Promise<Pipeline>;
|
|
69
203
|
/**
|
|
70
204
|
* Run pipeline
|
|
71
205
|
* @param workspaceId string
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from "../../model/components/SDKComponent";
|
|
2
2
|
import { ElementProperty } from "../../model/elements/SDKElementProperty";
|
|
3
3
|
import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
4
|
+
import { ImportJob } from "../../model/jobs/SDKImportJob";
|
|
4
5
|
import { TokenTheme } from "../../model/themes/SDKTokenTheme";
|
|
5
6
|
import { AnyToken } from "../../model/tokens/SDKTokenValue";
|
|
6
7
|
import { DataCore } from "../data/SDKDataCore";
|
|
@@ -39,7 +40,7 @@ export declare class AreaBulkOperations {
|
|
|
39
40
|
* @param payload - Payload to import. Types to come
|
|
40
41
|
* @returns Nothing
|
|
41
42
|
*/
|
|
42
|
-
importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<
|
|
43
|
+
importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<ImportJob>;
|
|
43
44
|
/** Batch updates, creates or deletes token data from Supernova at once. Use this method to perform multiple operations at once instead of chaining single update operations. Batch routine runs everything in a single transaction, so either all operations succeed or all fail.
|
|
44
45
|
*
|
|
45
46
|
* WARNING: This method is not yet complete and only supports limited set of operations. Also, doesn't work as transation just yet.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
|
|
2
|
+
import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
|
|
1
3
|
import { Source, SourceRemoteModelCloud } from "../../model/support/SDKSource";
|
|
2
4
|
import { DataCore } from "../data/SDKDataCore";
|
|
3
5
|
import { RemoteBrandIdentifier, RemoteVersionIdentifier } from "./SDKRemoteIdentifiers";
|
|
@@ -15,6 +17,18 @@ export declare class AreaDataSources {
|
|
|
15
17
|
* @returns All data sources in the specified version
|
|
16
18
|
*/
|
|
17
19
|
getDataSources(from: RemoteVersionIdentifier): Promise<Array<Source>>;
|
|
20
|
+
/** Retrieves all figma frames structures
|
|
21
|
+
* @param from - Remote version to fetch from
|
|
22
|
+
* @returns All data sources in the specified version
|
|
23
|
+
*/
|
|
24
|
+
getFigmaNodeStructures(from: RemoteVersionIdentifier): Promise<Array<FigmaStructure>>;
|
|
25
|
+
/** Retrieves figma frame structure detail
|
|
26
|
+
* @param from - Remote version to fetch from
|
|
27
|
+
* @returns All data sources in the specified version
|
|
28
|
+
*/
|
|
29
|
+
getFigmaNodeStructureDetail(from: RemoteVersionIdentifier & {
|
|
30
|
+
figmaStructureId: string;
|
|
31
|
+
}): Promise<FigmaStructureDetail>;
|
|
18
32
|
linkFigmaSource(from: RemoteBrandIdentifier, url: string, options: {
|
|
19
33
|
scopes: {
|
|
20
34
|
tokens: boolean;
|
|
@@ -5,7 +5,7 @@ import { DocsEntity } from "../../model/docs/entities/SDKDocsEntity";
|
|
|
5
5
|
import { DocsSection } from "../../model/docs/sections/SDKDocsSection";
|
|
6
6
|
import { DocumentationLegacyGroup, DocumentationLegacyGroupModel } from "../../model/documentation/SDKDocumentationLegacyGroup";
|
|
7
7
|
import { DocumentationLegacyPage, DocumentationLegacyPageModel } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
8
|
-
import { DataCore } from "../data/SDKDataCore";
|
|
8
|
+
import { DataCore, DeepPartial } from "../data/SDKDataCore";
|
|
9
9
|
import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "./SDKRemoteIdentifiers";
|
|
10
10
|
export declare class AreaDocumentation {
|
|
11
11
|
/** Internal: Engine */
|
|
@@ -75,9 +75,16 @@ export declare class AreaDocumentation {
|
|
|
75
75
|
* @param from - Remote version to fetch from
|
|
76
76
|
* @param page - page to update
|
|
77
77
|
* @param updateModel - data to update page with
|
|
78
|
-
* @returns
|
|
78
|
+
* @returns page
|
|
79
|
+
*/
|
|
80
|
+
updateDocumentationPageOrTab(from: RemoteWorkspaceVersionIdentifier, page: DocumentationLegacyPage, updateModel: DeepPartial<DocumentationLegacyPageModel>): Promise<void>;
|
|
81
|
+
/** Updates a documentation page header image
|
|
82
|
+
* @param from - Remote version to fetch from
|
|
83
|
+
* @param page - page to update
|
|
84
|
+
* @param file - file to update a page header with
|
|
85
|
+
* @returns page
|
|
79
86
|
*/
|
|
80
|
-
|
|
87
|
+
updateDocumentationHeaderImage(from: RemoteWorkspaceVersionIdentifier, page: DocumentationLegacyPage | DocumentationLegacyGroup, file: File | null): Promise<DocumentationLegacyPage | DocumentationLegacyGroup>;
|
|
81
88
|
/** Duplicates a documentation tab or page
|
|
82
89
|
* @param from - Remote version to fetch from
|
|
83
90
|
* @param idInVersion - id of page or tab to be duplicated
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ConnectionRemoteModel } from "../../model/exporters/remote/SDKRemoteConnectionsModel";
|
|
2
|
+
import { AzurePersonalAccessTokenConnectionPayload, PersonalAccessTokenConnectionPayload } from "../../model/exporters/SDKConnections";
|
|
1
3
|
import { DataCore } from "../data/SDKDataCore";
|
|
2
4
|
export declare class AreaIntegrations {
|
|
3
5
|
/** Internal: Engine */
|
|
@@ -23,6 +25,31 @@ export declare class AreaIntegrations {
|
|
|
23
25
|
* @returns Azure OAuth URL
|
|
24
26
|
*/
|
|
25
27
|
getAzureOAuthURL(): Promise<string>;
|
|
28
|
+
/** Creates user GitHub personal access token integration.
|
|
29
|
+
* @param customUrl - Custom GitHub URL. If not provided, default GitHub URL will be used.
|
|
30
|
+
* @param token - GitHub access token.
|
|
31
|
+
* @param name - Name of the integration.
|
|
32
|
+
*/
|
|
33
|
+
createGitHubPersonalAccessTokenConnection(connection: PersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
34
|
+
/** Creates user GitLab personal access token integration.
|
|
35
|
+
* @param customUrl - Custom GitLab URL. If not provided, default GitLab URL will be used.
|
|
36
|
+
* @param token - GitLab access token.
|
|
37
|
+
* @param name - Name of the integration.
|
|
38
|
+
*/
|
|
39
|
+
createGitLabPersonalAccessTokenConnection(connection: PersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
40
|
+
/** Creates user Bitbucket personal access token integration.
|
|
41
|
+
* @param customUrl - Custom Bitbucket URL. If not provided, default Bitbucket URL will be used.
|
|
42
|
+
* @param token - Bitbucket access token.
|
|
43
|
+
* @param name - Name of the integration.
|
|
44
|
+
* @param organization - Organization name.
|
|
45
|
+
*/
|
|
46
|
+
createBitbucketPersonalAccessTokenConnection(connection: PersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
47
|
+
/** Creates user Azure personal access token integration.
|
|
48
|
+
* @param customUrl - Custom Azure URL. If not provided, default Azure URL will be used.
|
|
49
|
+
* @param token - Azure access token.
|
|
50
|
+
* @param name - Name of the integration.
|
|
51
|
+
*/
|
|
52
|
+
createAzurePersonalAccessTokenConnection(connection: AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
26
53
|
/** Deletes user Figma OAuth integration.
|
|
27
54
|
* @param userId - User id to delete integration for. Can only be invoked on user id that is currently authenticated.
|
|
28
55
|
* @returns Nothing
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataCore } from "../data/SDKDataCore";
|
|
2
|
+
export declare class AreaStorage {
|
|
3
|
+
/** Internal: Engine */
|
|
4
|
+
private dataCore;
|
|
5
|
+
constructor(dataCore: DataCore);
|
|
6
|
+
/** Read data from key-value storage
|
|
7
|
+
* @param designSystemId - Design system ID to read the data from
|
|
8
|
+
* @param key - Unique data key to read
|
|
9
|
+
*/
|
|
10
|
+
readKeyValueStorageData(designSystemId: string, key: string): Promise<string | object | null>;
|
|
11
|
+
/** Set data to key-value storage. Limit of 20mb per a design system.
|
|
12
|
+
* @param designSystemId - Design system ID to store data for
|
|
13
|
+
* @param key - Unique data key under which the data will be stored
|
|
14
|
+
* @param value - String or object to be stored. Anything else must be converted to JSON string first
|
|
15
|
+
* @returns Nothing
|
|
16
|
+
*/
|
|
17
|
+
setKeyValueStorageData(designSystemId: string, key: string, value: string | object): Promise<void>;
|
|
18
|
+
/** Unsets the data from key-value storage based on the key name
|
|
19
|
+
* @param designSystemId - Design system ID to remove the data from
|
|
20
|
+
* @param key - Unique data key to delete
|
|
21
|
+
*/
|
|
22
|
+
unsetKeyValueStorageData(designSystemId: string, key: string): Promise<void>;
|
|
23
|
+
}
|
|
@@ -31,5 +31,5 @@ export declare class AreaVersions {
|
|
|
31
31
|
/** Fetches design system version by id */
|
|
32
32
|
getVersion(from: RemoteVersionIdentifier): Promise<DesignSystemVersion>;
|
|
33
33
|
getTokenStudioData(from: RemoteVersionIdentifier): Promise<object>;
|
|
34
|
-
writeTokenStudioData(from: RemoteVersionIdentifier, data: object): Promise<
|
|
34
|
+
writeTokenStudioData(from: RemoteVersionIdentifier, data: object): Promise<object>;
|
|
35
35
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Acl } from "../../model/acl/SDKAcl";
|
|
2
|
+
import { UserRoleWithoutOwner } from "../../model/enums/SDKUserRole";
|
|
2
3
|
import { Membership } from "../../model/membership/SDKMembership";
|
|
3
4
|
import { UserMembership } from "../../model/users/SDKUserMembership";
|
|
4
5
|
import { Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
5
|
-
import { WorkspaceInvitation } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
6
|
+
import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
6
7
|
import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
|
|
7
8
|
import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
8
9
|
import { WorkspaceNPMRegistrySettings, WorkspaceNPMRegistrySettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
9
10
|
import { WorkspaceOnboarding, WorkspaceOnboardingUpdateModel } from "../../model/workspaces/SDKWorkspaceOnboarding";
|
|
11
|
+
import { WorkspaceProduct } from "../../model/workspaces/SDKWorkspaceProduct";
|
|
10
12
|
import { SubscriptionProductFeatures } from "../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
11
13
|
import { WorkspaceProfileUpdateModel } from "../../model/workspaces/SDKWorkspaceProfile";
|
|
12
14
|
import { WorkspaceSSOSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
@@ -36,7 +38,11 @@ export declare class AreaWorkspaces {
|
|
|
36
38
|
* @returns All users that are members of the provided workspace
|
|
37
39
|
*/
|
|
38
40
|
userMemberships(workspaceId: string): Promise<Array<UserMembership>>;
|
|
39
|
-
|
|
41
|
+
/** Fetches product features grouped by product code
|
|
42
|
+
* @param workspaceId - ID of the workspace
|
|
43
|
+
* @returns Product features
|
|
44
|
+
*/
|
|
45
|
+
workspaceProductFeatures(workspaceId: string): Promise<SubscriptionProductFeatures>;
|
|
40
46
|
acls(): Promise<Acl>;
|
|
41
47
|
/** Validates if the handle is available for use
|
|
42
48
|
* @param handle - Handle to validate
|
|
@@ -78,6 +84,11 @@ export declare class AreaWorkspaces {
|
|
|
78
84
|
* @returns A subscription of the provided workspace
|
|
79
85
|
*/
|
|
80
86
|
workspaceSubscription(workspaceId: string): Promise<WorkspaceSubscription>;
|
|
87
|
+
/** Fetches all products that are available to the workspace.
|
|
88
|
+
* @param workspaceId - ID of the workspace
|
|
89
|
+
* @returns All available products
|
|
90
|
+
*/
|
|
91
|
+
workspaceAvailableProducts(workspaceId: string): Promise<Array<WorkspaceProduct>>;
|
|
81
92
|
/** Creates new workspace and retrieves the newly created workspace object. The user who creates the workspace becomes its owner
|
|
82
93
|
* @param name - Name of the workspace
|
|
83
94
|
* @param handle - Handle of the workspace to create. Use `validateIsWorkspaceHandleAvailable` to check if the handle is available
|
|
@@ -128,6 +139,33 @@ export declare class AreaWorkspaces {
|
|
|
128
139
|
* @returns Nothing
|
|
129
140
|
*/
|
|
130
141
|
updateWorkspaceNPMRegistrySettings(workspaceId: string, npmRegistrySettings: WorkspaceNPMRegistrySettingsUpdateModel): Promise<void>;
|
|
142
|
+
/** Transfers an ownership of the workspace.
|
|
143
|
+
* Old owner receives new owner's previous role.
|
|
144
|
+
* @param workspaceId - ID of the workspace
|
|
145
|
+
* @param newOwnerUserId - ID of the user to transfer the ownership to
|
|
146
|
+
* @returns Nothing
|
|
147
|
+
*/
|
|
148
|
+
updateWorkspaceOwnership(workspaceId: string, newOwnerUserId: string): Promise<void>;
|
|
149
|
+
/** Updates a role of a member.
|
|
150
|
+
* @param workspaceId - ID of the workspace
|
|
151
|
+
* @param userId - ID of the user
|
|
152
|
+
* @param newRole - New role of the user
|
|
153
|
+
* @returns Nothing
|
|
154
|
+
*/
|
|
155
|
+
updateWorkspaceMemberRole(workspaceId: string, userId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
156
|
+
/** Updates a role of an invitation.
|
|
157
|
+
* @param workspaceId - ID of the workspace
|
|
158
|
+
* @param invitationId - ID of the invitation
|
|
159
|
+
* @param newRole - New role
|
|
160
|
+
* @returns Nothing
|
|
161
|
+
*/
|
|
162
|
+
updateWorkspaceInvitationRole(workspaceId: string, invitationId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
163
|
+
/** Invites new members to the workspace
|
|
164
|
+
* @param workspaceId - ID of the workspace
|
|
165
|
+
* @param invitations - array of invitations
|
|
166
|
+
* @returns Nothing
|
|
167
|
+
*/
|
|
168
|
+
addWorkspaceInvitations(workspaceId: string, invitations: Array<WorkspaceInvitationUpdateModel>): Promise<void>;
|
|
131
169
|
/** Deletes a single workspace. This action is irreversible, all data will be lost, and can only be performed by the workspace owner
|
|
132
170
|
* @param workspaceId - ID of the workspace
|
|
133
171
|
* @returns Nothing
|
|
@@ -36,7 +36,7 @@ export declare class DataBridge {
|
|
|
36
36
|
get(endpoint: string): Promise<any>;
|
|
37
37
|
put(endpoint: string, payload: any | null): Promise<any>;
|
|
38
38
|
post(endpoint: string, payload: any | null): Promise<any>;
|
|
39
|
-
upload(endpoint: string, fileKey: string, file: File): Promise<any>;
|
|
39
|
+
upload(endpoint: string, fileKey: string, file: File, method?: "PUT" | "POST"): Promise<any>;
|
|
40
40
|
private request;
|
|
41
41
|
private handleResponse;
|
|
42
42
|
private buildRequestConfig;
|
|
@@ -14,15 +14,34 @@ import { ElementDataView } from "../../model/elements/SDKElementDataView";
|
|
|
14
14
|
import { ElementDataViewColumn } from "../../model/elements/SDKElementDataViewColumn";
|
|
15
15
|
import { ElementProperty, ElementPropertyCreationModel, ElementPropertyTargetElementType, ElementPropertyUpdateModel } from "../../model/elements/SDKElementProperty";
|
|
16
16
|
import { ElementPropertyValue } from "../../model/elements/values/SDKElementPropertyValue";
|
|
17
|
+
import { ConnectionProviders } from "../../model/enums/SDKConnectionProviders";
|
|
17
18
|
import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
|
|
18
19
|
import { TokenType } from "../../model/enums/SDKTokenType";
|
|
20
|
+
import { UserRoleWithoutOwner } from "../../model/enums/SDKUserRole";
|
|
21
|
+
import { CodegenAccount } from "../../model/exporters/CodegenAccount";
|
|
22
|
+
import { CodegenAzureBranch } from "../../model/exporters/CodegenAzureBranch";
|
|
23
|
+
import { CodegenAzureOrganization } from "../../model/exporters/CodegenAzureOrganization";
|
|
24
|
+
import { CodegenAzureProject } from "../../model/exporters/CodegenAzureProject";
|
|
25
|
+
import { CodegenAzureRepository } from "../../model/exporters/CodegenAzureRepository";
|
|
26
|
+
import { CodegenBitbucketBranch } from "../../model/exporters/CodegenBitbucketBranch";
|
|
27
|
+
import { CodegenBitbucketProject } from "../../model/exporters/CodegenBitbucketProject";
|
|
28
|
+
import { CodegenBitbucketRepository } from "../../model/exporters/CodegenBitbucketRepository";
|
|
29
|
+
import { CodegenBitbucketWorkspace } from "../../model/exporters/CodegenBitbucketWorkspace";
|
|
30
|
+
import { CodegenBranch } from "../../model/exporters/CodegenBranch";
|
|
31
|
+
import { CodegenConnection } from "../../model/exporters/CodegenConnection";
|
|
32
|
+
import { CodegenGitlabBranch } from "../../model/exporters/CodegenGitlabBranch";
|
|
33
|
+
import { CodegenGitlabGroup } from "../../model/exporters/CodegenGitlabGroup";
|
|
34
|
+
import { CodegenGitlabRepository } from "../../model/exporters/CodegenGitlabRepository";
|
|
35
|
+
import { CodegenRepository } from "../../model/exporters/CodegenRepository";
|
|
19
36
|
import { ExporterCustomBlock } from "../../model/exporters/custom_blocks/SDKExporterCustomBlock";
|
|
20
37
|
import { ExporterCustomBlockVariant } from "../../model/exporters/custom_blocks/SDKExporterCustomBlockVariant";
|
|
21
38
|
import { ExporterConfigurationProperty } from "../../model/exporters/custom_properties/SDKExporterConfigurationProperty";
|
|
22
39
|
import { ExportBuild } from "../../model/exporters/exporter_builds/SDKExportBuild";
|
|
23
|
-
import {
|
|
40
|
+
import { ExportBuildResultLog } from "../../model/exporters/exporter_builds/SDKExportBuildResults";
|
|
41
|
+
import { ConnectionRemoteModel } from "../../model/exporters/remote/SDKRemoteConnectionsModel";
|
|
42
|
+
import { AzurePersonalAccessTokenConnectionPayload, PersonalAccessTokenConnectionPayload } from "../../model/exporters/SDKConnections";
|
|
24
43
|
import { Exporter } from "../../model/exporters/SDKExporter";
|
|
25
|
-
import { NewPipelinePayload, Pipeline } from "../../model/exporters/SDKPipeline";
|
|
44
|
+
import { NewPipelinePayload, Pipeline, PipelineUpdateModel } from "../../model/exporters/SDKPipeline";
|
|
26
45
|
import { AssetGroup } from "../../model/groups/SDKAssetGroup";
|
|
27
46
|
import { ComponentGroup } from "../../model/groups/SDKComponentGroup";
|
|
28
47
|
import { DesignComponentGroup } from "../../model/groups/SDKDesignComponentGroup";
|
|
@@ -30,6 +49,8 @@ import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
|
30
49
|
import { ImportJob } from "../../model/jobs/SDKImportJob";
|
|
31
50
|
import { Membership } from "../../model/membership/SDKMembership";
|
|
32
51
|
import { CustomDomain } from "../../model/support/SDKCustomDomain";
|
|
52
|
+
import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
|
|
53
|
+
import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
|
|
33
54
|
import { Source, SourceRemoteModelCloud } from "../../model/support/SDKSource";
|
|
34
55
|
import { TokenTheme } from "../../model/themes/SDKTokenTheme";
|
|
35
56
|
import { Token } from "../../model/tokens/SDKToken";
|
|
@@ -37,11 +58,12 @@ import { User } from "../../model/users/SDKUser";
|
|
|
37
58
|
import { UserMembership } from "../../model/users/SDKUserMembership";
|
|
38
59
|
import { UserProfileUpdateModel } from "../../model/users/SDKUserProfile";
|
|
39
60
|
import { Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
40
|
-
import { WorkspaceInvitation } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
61
|
+
import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
41
62
|
import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
|
|
42
63
|
import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
43
64
|
import { WorkspaceNPMRegistrySettings, WorkspaceNPMRegistrySettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
44
65
|
import { WorkspaceOnboarding, WorkspaceOnboardingUpdateModel } from "../../model/workspaces/SDKWorkspaceOnboarding";
|
|
66
|
+
import { WorkspaceProduct } from "../../model/workspaces/SDKWorkspaceProduct";
|
|
45
67
|
import { SubscriptionProductFeatures } from "../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
46
68
|
import { WorkspaceProfileUpdateModel } from "../../model/workspaces/SDKWorkspaceProfile";
|
|
47
69
|
import { WorkspaceSSOSettings, WorkspaceSSOSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
@@ -50,6 +72,9 @@ import { ComponentUpdateTransactionData, TokenUpdateTransactionData } from "../a
|
|
|
50
72
|
import { RenderedAssetRequestSettings } from "./requests/SDKDataCoreRenderRequests";
|
|
51
73
|
import { DataBridge } from "./SDKDataBridge";
|
|
52
74
|
import { RequestInfo, RequestInit, Response } from "node-fetch";
|
|
75
|
+
export type DeepPartial<T> = T extends object ? {
|
|
76
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
77
|
+
} : T;
|
|
53
78
|
export declare class DataCore {
|
|
54
79
|
/** Read part of the network calls */
|
|
55
80
|
private read;
|
|
@@ -69,7 +94,6 @@ export declare class DataCore {
|
|
|
69
94
|
memberships(userId: string): Promise<Array<Membership>>;
|
|
70
95
|
/** Remote: Get information about all workspaces user has access to, including which role they play */
|
|
71
96
|
userMemberships(workspaceId: string): Promise<Array<UserMembership>>;
|
|
72
|
-
subscriptionProductFeatures(): Promise<SubscriptionProductFeatures>;
|
|
73
97
|
acls(): Promise<Acl>;
|
|
74
98
|
/** Deletes the user by id. Can only really delete its own user */
|
|
75
99
|
deleteUser(userId: string): Promise<void>;
|
|
@@ -156,7 +180,9 @@ export declare class DataCore {
|
|
|
156
180
|
/** Updates a documentation group */
|
|
157
181
|
updateDocumentationGroup(designSystemId: string, versionId: string, group: DocumentationLegacyGroup, updateModel: Partial<DocumentationLegacyGroupModel>): Promise<DocumentationLegacyGroup>;
|
|
158
182
|
/** Updates a documentation page or tab */
|
|
159
|
-
updateDocumentationPageOrTab(designSystemId: string, versionId: string, page: DocumentationLegacyPage, updateModel:
|
|
183
|
+
updateDocumentationPageOrTab(designSystemId: string, versionId: string, page: DocumentationLegacyPage, updateModel: DeepPartial<DocumentationLegacyPageModel>): Promise<void>;
|
|
184
|
+
/** Updates a documentation page header image */
|
|
185
|
+
updateDocumentationHeaderImage(designSystemId: string, versionId: string, page: DocumentationLegacyPage | DocumentationLegacyGroup, image: File | null): Promise<DocumentationLegacyPage | DocumentationLegacyGroup>;
|
|
160
186
|
/** Duplicate a documentation page or tab */
|
|
161
187
|
duplicateDocumentationPageOrTab(designSystemId: string, versionId: string, idInVersion: string, newPersistentId?: string): Promise<DocumentationLegacyPage>;
|
|
162
188
|
/** Duplicate a documentation group or tabbed page */
|
|
@@ -241,9 +267,27 @@ export declare class DataCore {
|
|
|
241
267
|
jobId: string;
|
|
242
268
|
exporterId: string;
|
|
243
269
|
}>;
|
|
244
|
-
pipelines(workspaceId: string): Promise<Array<Pipeline>>;
|
|
270
|
+
pipelines(workspaceId: string, designSystemId: string): Promise<Array<Pipeline>>;
|
|
271
|
+
githubConnections(): Promise<Array<CodegenConnection>>;
|
|
272
|
+
githubAccounts(githubConnectionId: string): Promise<Array<CodegenAccount>>;
|
|
273
|
+
githubRepositories(githubConnectionId: string, handle: string): Promise<Array<CodegenRepository>>;
|
|
274
|
+
githubBranches(githubConnectionId: string, handle: string, repoName: string): Promise<Array<CodegenBranch>>;
|
|
275
|
+
gitlabConnections(): Promise<Array<CodegenConnection>>;
|
|
276
|
+
gitlabGroups(connectionId: string): Promise<Array<CodegenGitlabGroup>>;
|
|
277
|
+
gitlabRepositories(connectionId: string, groupId: string): Promise<Array<CodegenGitlabRepository>>;
|
|
278
|
+
gitlabBranches(connectionId: string, repoId: string): Promise<Array<CodegenGitlabBranch>>;
|
|
279
|
+
azureConnections(): Promise<Array<CodegenConnection>>;
|
|
280
|
+
azureOrganizations(connectionId: string): Promise<Array<CodegenAzureOrganization>>;
|
|
281
|
+
azureProjects(connectionId: string, organizationId: string): Promise<Array<CodegenAzureProject>>;
|
|
282
|
+
azureRepositories(connectionId: string, organizationId: string, projectId: string): Promise<Array<CodegenAzureRepository>>;
|
|
283
|
+
azureBranches(connectionId: string, organizationId: string, projectId: string, repositoryId: string): Promise<Array<CodegenAzureBranch>>;
|
|
284
|
+
bitbucketConnections(): Promise<Array<CodegenConnection>>;
|
|
285
|
+
bitbucketWorkspaces(connectionId: string): Promise<Array<CodegenBitbucketWorkspace>>;
|
|
286
|
+
bitbucketProjects(connectionId: string, workspaceId: string): Promise<Array<CodegenBitbucketProject>>;
|
|
287
|
+
bitbucketRepositories(connectionId: string, workspaceId: string, projectKey?: string): Promise<Array<CodegenBitbucketRepository>>;
|
|
288
|
+
bitbucketBranches(connectionId: string, workspaceId: string, projectId: string, repositoryId: string): Promise<Array<CodegenBitbucketBranch>>;
|
|
245
289
|
createPipeline(workspaceId: string, pipeline: NewPipelinePayload): Promise<Pipeline>;
|
|
246
|
-
updatePipeline(workspaceId: string,
|
|
290
|
+
updatePipeline(workspaceId: string, pipelineUpdateModel: PipelineUpdateModel): Promise<Pipeline>;
|
|
247
291
|
runPipeline(workspaceId: string, designSystemVersionId: string, pipelineId: string): Promise<Pipeline>;
|
|
248
292
|
deletePipeline(workspaceId: string, pipelineId: string): Promise<void>;
|
|
249
293
|
/** Download information about current exporter custom blocks and retrieve them resolved */
|
|
@@ -270,6 +314,8 @@ export declare class DataCore {
|
|
|
270
314
|
id: string | null;
|
|
271
315
|
exporterId: string | null;
|
|
272
316
|
}>>;
|
|
317
|
+
buildLogs(workspaceId: string, buildId: string): Promise<Array<ExportBuildResultLog>>;
|
|
318
|
+
workspaceProductFeatures(workspaceId: string): Promise<SubscriptionProductFeatures>;
|
|
273
319
|
/** Download information about a single workspace and retrieve it resolved */
|
|
274
320
|
workspace(workspaceId: string): Promise<Workspace>;
|
|
275
321
|
createWorkspace(name: string, handle?: string): Promise<Workspace>;
|
|
@@ -290,6 +336,7 @@ export declare class DataCore {
|
|
|
290
336
|
workspaceInvitations(workspaceId: string): Promise<Array<WorkspaceInvitation>>;
|
|
291
337
|
workspaceInvoices(workspaceId: string): Promise<Array<WorkspaceInvoice>>;
|
|
292
338
|
workspaceSubscription(workspaceId: string): Promise<WorkspaceSubscription>;
|
|
339
|
+
workspaceAvailableProducts(workspaceId: string): Promise<Array<WorkspaceProduct>>;
|
|
293
340
|
updateWorkspaceProfile(workspaceId: string, profile: WorkspaceProfileUpdateModel): Promise<void>;
|
|
294
341
|
testIpWhitelistSettings(workspaceId: string, ipWhitelistSettings: WorkspaceIPWhitelistSettingsUpdateModel): Promise<{
|
|
295
342
|
accessible: boolean;
|
|
@@ -299,6 +346,10 @@ export declare class DataCore {
|
|
|
299
346
|
updateWorkspaceSSOSettings(workspaceId: string, ssoSettings: WorkspaceSSOSettingsUpdateModel): Promise<void>;
|
|
300
347
|
updateWorkspaceIPWhitelistSettings(workspaceId: string, ipWhitelistSettings: WorkspaceIPWhitelistSettingsUpdateModel): Promise<void>;
|
|
301
348
|
updateWorkspaceNPMRegistrySettings(workspaceId: string, npmRegistrySettings: WorkspaceNPMRegistrySettingsUpdateModel): Promise<void>;
|
|
349
|
+
updateWorkspaceOwnership(workspaceId: string, newOwnerUserId: string): Promise<void>;
|
|
350
|
+
updateWorkspaceMemberRole(workspaceId: string, userId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
351
|
+
updateWorkspaceInvitationRole(workspaceId: string, invitationId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
352
|
+
addWorkspaceInvitations(workspaceId: string, invitations: Array<WorkspaceInvitationUpdateModel>): Promise<void>;
|
|
302
353
|
deleteWorkspace(workspaceId: string): Promise<void>;
|
|
303
354
|
deleteWorkspaceAvatar(workspaceId: string): Promise<void>;
|
|
304
355
|
deleteWorkspaceNPMRegistrySettings(workspaceId: string): Promise<void>;
|
|
@@ -328,6 +379,8 @@ export declare class DataCore {
|
|
|
328
379
|
designSystemSource(designSystemId: string, sourceId: string): Promise<Source>;
|
|
329
380
|
/** Download information about all desing system sources within a design system design and retrieve it resolved */
|
|
330
381
|
designSystemSources(designSystemId: string): Promise<Array<Source>>;
|
|
382
|
+
getFigmaNodeStructures(designSystemId: string, versionId: string): Promise<Array<FigmaStructure>>;
|
|
383
|
+
getFigmaNodeStructureDetail(designSystemId: string, versionId: string, figmaStructureId: string): Promise<FigmaStructureDetail>;
|
|
331
384
|
deleteFigmaSource(designSystemId: string, sourceId: string): Promise<void>;
|
|
332
385
|
linkFigmaSource(designSystemId: string, brandId: string, url: string, options: {
|
|
333
386
|
scopes: {
|
|
@@ -356,6 +409,7 @@ export declare class DataCore {
|
|
|
356
409
|
getBrand(designSystemId: string, versionId: string, brandId: string): Promise<Brand>;
|
|
357
410
|
getOAuthURL(service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<string>;
|
|
358
411
|
deleteOAuthIntegration(userId: string, service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<void>;
|
|
412
|
+
createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
359
413
|
bulkUpdateTokenData(designSystemId: string, versionId: string, data: TokenUpdateTransactionData): Promise<any>;
|
|
360
414
|
bulkUpdateComponentData(designSystemId: string, versionId: string, data: ComponentUpdateTransactionData): Promise<any>;
|
|
361
415
|
importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<ImportJob>;
|
|
@@ -363,5 +417,8 @@ export declare class DataCore {
|
|
|
363
417
|
getImportJobs(designSystemId: string, versionId: string): Promise<Array<ImportJob>>;
|
|
364
418
|
scheduleImportJobForFigmaSources(designSystemId: string, versionId: string, sourceIds: Array<string>, dryRun: boolean): Promise<ImportJob>;
|
|
365
419
|
getTokenStudioData(designSystemId: string, versionId: string): Promise<object>;
|
|
366
|
-
writeTokenStudioData(designSystemId: string, versionId: string, data: object): Promise<
|
|
420
|
+
writeTokenStudioData(designSystemId: string, versionId: string, data: object): Promise<object>;
|
|
421
|
+
readKeyValueStorageData(designSystemId: string, key: string): Promise<string | object | undefined>;
|
|
422
|
+
setKeyValueStorageData(designSystemId: string, key: string, value: string | object): Promise<void>;
|
|
423
|
+
unsetKeyValueStorageData(designSystemId: string, key: string): Promise<void>;
|
|
367
424
|
}
|