@supernova-studio/supernova-sdk-beta 1.6.26 → 1.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +3 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +140 -6
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +2 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +14 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +10 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +27 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaStorage.d.ts +23 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +1 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +65 -6
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +71 -11
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +50 -6
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +38 -8
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +3 -3
- package/build/sdk-typescript/src/exports-pulsar.d.ts +1 -1
- package/build/sdk-typescript/src/exports.d.ts +11 -2
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-detail/SDKDocsBlockActualTokenDetail.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-group/SDKDocsBlockActualTokenGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-list/SDKDocsBlockActualTokenList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +4 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame.d.ts +4 -1
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +5 -2
- package/build/sdk-typescript/src/model/enums/SDKConnectionProviders.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/CodegenAccount.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureOrganization.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureProject.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureRepository.d.ts +11 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketProject.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketRepository.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketWorkspace.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBranch.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenConnection.d.ts +10 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabRepository.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenRepository.d.ts +15 -0
- package/build/sdk-typescript/src/model/exporters/SDKConnections.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +43 -61
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +1 -2
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenOrganizationModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenProjectModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenRepositoryModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenProjectModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenRepositoryModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenWorkspaceModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenAccountModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenBranchModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenConnectionModel.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenRepositoryModel.d.ts +17 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenGroupModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenRepositoryModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +2 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +20 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructure.d.ts +27 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructureDetail.d.ts +30 -0
- package/build/sdk-typescript/src/model/support/SDKLogger.d.ts +4 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +2 -2
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +6 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +5 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProduct.d.ts +21 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +40 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +2 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +34 -7
- package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -1
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -2
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +1 -1
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +3 -1
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +2 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +1 -1
- package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +1 -1
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +6 -6
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +2 -2
|
@@ -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";
|
|
36
|
+
import { AzurePersonalAccessTokenConnectionPayload, PersonalAccessTokenConnectionPayload } from "../../model/exporters/SDKConnections";
|
|
37
|
+
import { Exporter } from "../../model/exporters/SDKExporter";
|
|
38
|
+
import { NewPipelinePayload, Pipeline, PipelineUpdateModel } from "../../model/exporters/SDKPipeline";
|
|
19
39
|
import { ExporterCustomBlock } from "../../model/exporters/custom_blocks/SDKExporterCustomBlock";
|
|
20
40
|
import { ExporterCustomBlockVariant } from "../../model/exporters/custom_blocks/SDKExporterCustomBlockVariant";
|
|
21
41
|
import { ExporterConfigurationProperty } from "../../model/exporters/custom_properties/SDKExporterConfigurationProperty";
|
|
22
42
|
import { ExportBuild } from "../../model/exporters/exporter_builds/SDKExportBuild";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { NewPipelinePayload, Pipeline } from "../../model/exporters/SDKPipeline";
|
|
43
|
+
import { ExportBuildResultLog } from "../../model/exporters/exporter_builds/SDKExportBuildResults";
|
|
44
|
+
import { ConnectionRemoteModel } from "../../model/exporters/remote/SDKRemoteConnectionsModel";
|
|
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,19 +58,23 @@ 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";
|
|
41
|
-
import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
|
|
42
61
|
import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
62
|
+
import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
63
|
+
import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
|
|
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";
|
|
48
|
-
import { WorkspaceSubscription } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
70
|
+
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
49
71
|
import { ComponentUpdateTransactionData, TokenUpdateTransactionData } from "../areas/SDKAreaBulkOperations";
|
|
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,11 +346,18 @@ 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>;
|
|
305
356
|
deleteWorkspaceMember(workspaceId: string, userId: string): Promise<void>;
|
|
306
357
|
deleteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
358
|
+
createCheckoutSession(workspaceId: string, priceId: string, successUrl: string, cancelUrl: string): Promise<string>;
|
|
359
|
+
createPortalSession(workspaceId: string, returnUrl: string, update: WorkspaceSubscriptionUpdateModel | null): Promise<string>;
|
|
360
|
+
resendWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
307
361
|
/** Download information about a single design system and retrieve it resolved */
|
|
308
362
|
designSystem(designSystemId: string): Promise<DesignSystem>;
|
|
309
363
|
/** Download information about design systems that user has access to under a single workspace and retrieve it resolved */
|
|
@@ -328,6 +382,8 @@ export declare class DataCore {
|
|
|
328
382
|
designSystemSource(designSystemId: string, sourceId: string): Promise<Source>;
|
|
329
383
|
/** Download information about all desing system sources within a design system design and retrieve it resolved */
|
|
330
384
|
designSystemSources(designSystemId: string): Promise<Array<Source>>;
|
|
385
|
+
getFigmaNodeStructures(designSystemId: string, versionId: string): Promise<Array<FigmaStructure>>;
|
|
386
|
+
getFigmaNodeStructureDetail(designSystemId: string, versionId: string, figmaStructureId: string): Promise<FigmaStructureDetail>;
|
|
331
387
|
deleteFigmaSource(designSystemId: string, sourceId: string): Promise<void>;
|
|
332
388
|
linkFigmaSource(designSystemId: string, brandId: string, url: string, options: {
|
|
333
389
|
scopes: {
|
|
@@ -356,6 +412,7 @@ export declare class DataCore {
|
|
|
356
412
|
getBrand(designSystemId: string, versionId: string, brandId: string): Promise<Brand>;
|
|
357
413
|
getOAuthURL(service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<string>;
|
|
358
414
|
deleteOAuthIntegration(userId: string, service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<void>;
|
|
415
|
+
createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
359
416
|
bulkUpdateTokenData(designSystemId: string, versionId: string, data: TokenUpdateTransactionData): Promise<any>;
|
|
360
417
|
bulkUpdateComponentData(designSystemId: string, versionId: string, data: ComponentUpdateTransactionData): Promise<any>;
|
|
361
418
|
importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<ImportJob>;
|
|
@@ -363,5 +420,8 @@ export declare class DataCore {
|
|
|
363
420
|
getImportJobs(designSystemId: string, versionId: string): Promise<Array<ImportJob>>;
|
|
364
421
|
scheduleImportJobForFigmaSources(designSystemId: string, versionId: string, sourceIds: Array<string>, dryRun: boolean): Promise<ImportJob>;
|
|
365
422
|
getTokenStudioData(designSystemId: string, versionId: string): Promise<object>;
|
|
366
|
-
writeTokenStudioData(designSystemId: string, versionId: string, data: object): Promise<
|
|
423
|
+
writeTokenStudioData(designSystemId: string, versionId: string, data: object): Promise<object>;
|
|
424
|
+
readKeyValueStorageData(designSystemId: string, key: string): Promise<string | object | undefined>;
|
|
425
|
+
setKeyValueStorageData(designSystemId: string, key: string, value: string | object): Promise<void>;
|
|
426
|
+
unsetKeyValueStorageData(designSystemId: string, key: string): Promise<void>;
|
|
367
427
|
}
|
|
@@ -12,31 +12,50 @@ import { ElementPropertyRemoteModel } from "../../../model/elements/SDKElementPr
|
|
|
12
12
|
import { ElementPropertyValueRemoteModel } from "../../../model/elements/values/SDKElementPropertyValue";
|
|
13
13
|
import { DocumentationEnvironment } from "../../../model/enums/SDKDocumentationEnvironment";
|
|
14
14
|
import { TokenType } from "../../../model/enums/SDKTokenType";
|
|
15
|
+
import { CodegenBitbucketProject } from "../../../model/exporters/CodegenBitbucketProject";
|
|
16
|
+
import { ExporterModel } from "../../../model/exporters/SDKExporter";
|
|
15
17
|
import { ExporterCustomBlockModel } from "../../../model/exporters/custom_blocks/SDKExporterCustomBlock";
|
|
16
18
|
import { ExportBuildModel } from "../../../model/exporters/exporter_builds/SDKExportBuild";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
+
import { ExportBuildResultLogModel } from "../../../model/exporters/exporter_builds/SDKExportBuildResults";
|
|
20
|
+
import { CodegenAzureBranchRemoteModel } from "../../../model/exporters/remote/SDKRemoteAzureCodegenBranchModel";
|
|
21
|
+
import { CodegenAzureOrganizationRemoteModel } from "../../../model/exporters/remote/SDKRemoteAzureCodegenOrganizationModel";
|
|
22
|
+
import { CodegenAzureProjectRemoteModel } from "../../../model/exporters/remote/SDKRemoteAzureCodegenProjectModel";
|
|
23
|
+
import { CodegenAzureRepositoryRemoteModel } from "../../../model/exporters/remote/SDKRemoteAzureCodegenRepositoryModel";
|
|
24
|
+
import { CodegenBitbucketBranchRemoteModel } from "../../../model/exporters/remote/SDKRemoteBitbucketCodegenBranchModel";
|
|
25
|
+
import { CodegenBitbucketRepositoryRemoteModel } from "../../../model/exporters/remote/SDKRemoteBitbucketCodegenRepositoryModel";
|
|
26
|
+
import { CodegenBitbucketWorkspaceRemoteModel } from "../../../model/exporters/remote/SDKRemoteBitbucketCodegenWorkspaceModel";
|
|
27
|
+
import { CodegenAccountRemoteModel } from "../../../model/exporters/remote/SDKRemoteCodegenAccountModel";
|
|
28
|
+
import { CodegenBranchRemoteModel } from "../../../model/exporters/remote/SDKRemoteCodegenBranchModel";
|
|
29
|
+
import { CodegenConnectionRemoteModel } from "../../../model/exporters/remote/SDKRemoteCodegenConnectionModel";
|
|
30
|
+
import { CodegenRepositoryRemoteModel } from "../../../model/exporters/remote/SDKRemoteCodegenRepositoryModel";
|
|
31
|
+
import { CodegenGitlabBranchRemoteModel } from "../../../model/exporters/remote/SDKRemoteGitlabCodegenBranchModel";
|
|
32
|
+
import { CodegenGitlabGroupRemoteModel } from "../../../model/exporters/remote/SDKRemoteGitlabCodegenGroupModel";
|
|
33
|
+
import { CodegenGitlabRepositoryRemoteModel } from "../../../model/exporters/remote/SDKRemoteGitlabCodegenRepositoryModel";
|
|
34
|
+
import { PipelineRemoteModel } from "../../../model/exporters/remote/SDKRemotePipelineModel";
|
|
19
35
|
import { ComponentGroupRemoteModel } from "../../../model/groups/SDKComponentGroup";
|
|
20
36
|
import { DesignComponentGroupRemoteModel } from "../../../model/groups/SDKDesignComponentGroup";
|
|
21
37
|
import { TokenGroupRemoteModel } from "../../../model/groups/SDKTokenGroup";
|
|
22
38
|
import { ImportJobRemoteModel } from "../../../model/jobs/SDKImportJob";
|
|
23
39
|
import { MembershipRemoteModel } from "../../../model/membership/SDKMembership";
|
|
24
40
|
import { CustomDomainRemoteModel } from "../../../model/support/SDKCustomDomain";
|
|
41
|
+
import { FigmaStructureModel } from "../../../model/support/SDKFigmaStructure";
|
|
42
|
+
import { FigmaStructureDetailModel } from "../../../model/support/SDKFigmaStructureDetail";
|
|
25
43
|
import { SourceRemoteModel } from "../../../model/support/SDKSource";
|
|
26
44
|
import { TokenThemeRemoteModel } from "../../../model/themes/SDKTokenTheme";
|
|
27
45
|
import { TokenRemoteModel } from "../../../model/tokens/remote/SDKRemoteTokenModel";
|
|
28
46
|
import { UserRemoteModel } from "../../../model/users/SDKUser";
|
|
29
47
|
import { UserMembershipRemoteModel } from "../../../model/users/SDKUserMembership";
|
|
30
48
|
import { WorkspaceRemoteModel } from "../../../model/workspaces/SDKWorkspace";
|
|
49
|
+
import { WorkspaceIPWhitelistSettingsRemoteModel } from "../../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
31
50
|
import { WorkspaceInvitationRemoteModel } from "../../../model/workspaces/SDKWorkspaceInvitation";
|
|
32
51
|
import { WorkspaceInvoiceRemoteModel } from "../../../model/workspaces/SDKWorkspaceInvoice";
|
|
33
|
-
import { WorkspaceIPWhitelistSettingsRemoteModel } from "../../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
34
52
|
import { WorkspaceNPMRegistrySettingsRemoteModel } from "../../../model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
35
53
|
import { WorkspaceOnboardingRemoteModel } from "../../../model/workspaces/SDKWorkspaceOnboarding";
|
|
54
|
+
import { WorkspaceProductRemoteModel } from "../../../model/workspaces/SDKWorkspaceProduct";
|
|
36
55
|
import { SubscriptionProductFeaturesRemoteModel } from "../../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
37
56
|
import { WorkspaceSSOSettingsRemoteModel } from "../../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
38
|
-
import { DataBridge } from "../SDKDataBridge";
|
|
39
57
|
import { WorkspaceSubscriptionRemoteModel } from "../../../model/workspaces/SDKWorkspaceSubscription";
|
|
58
|
+
import { DataBridge } from "../SDKDataBridge";
|
|
40
59
|
export declare class DataCoreReadRequests {
|
|
41
60
|
private bridge;
|
|
42
61
|
constructor(bridge: DataBridge);
|
|
@@ -46,8 +65,8 @@ export declare class DataCoreReadRequests {
|
|
|
46
65
|
getRemoteUser(userId: any): Promise<UserRemoteModel>;
|
|
47
66
|
/** Remote: Get information about all workspaces user can access */
|
|
48
67
|
getRemoteMemberships(userId: string): Promise<Array<MembershipRemoteModel>>;
|
|
49
|
-
getRemoteSubscriptionProductFeatures(): Promise<SubscriptionProductFeaturesRemoteModel>;
|
|
50
68
|
getRemoteAcls(): Promise<AclRemoteModel>;
|
|
69
|
+
getRemoteWorkspaceProductFeatures(workspaceId: string): Promise<SubscriptionProductFeaturesRemoteModel>;
|
|
51
70
|
/** Remote: Get information about a specific workspace */
|
|
52
71
|
getRemoteWorkspaceDetail(workspaceId: string): Promise<WorkspaceRemoteModel>;
|
|
53
72
|
/** Remote: Validate can use workspace handle */
|
|
@@ -63,6 +82,7 @@ export declare class DataCoreReadRequests {
|
|
|
63
82
|
getRemoteWorkspaceInvitations(workspaceId: string): Promise<Array<WorkspaceInvitationRemoteModel>>;
|
|
64
83
|
getRemoteWorkspaceInvoices(workspaceId: string): Promise<Array<WorkspaceInvoiceRemoteModel>>;
|
|
65
84
|
getRemoteWorkspaceSubscription(workspaceId: string): Promise<WorkspaceSubscriptionRemoteModel>;
|
|
85
|
+
getRemoteWorkspaceAvailableProducts(workspaceId: string): Promise<Array<WorkspaceProductRemoteModel>>;
|
|
66
86
|
/** Remote: Get information about one specific design system */
|
|
67
87
|
getRemoteDesignSystem(designSystemId: string): Promise<DesignSystemRemoteModel>;
|
|
68
88
|
/** Remote: Get information about all design systems under specific workspace */
|
|
@@ -73,6 +93,10 @@ export declare class DataCoreReadRequests {
|
|
|
73
93
|
getRemoteSource(designSystemId: string, sourceId: string): Promise<SourceRemoteModel>;
|
|
74
94
|
/** Remote: Get all design sources of a single design system */
|
|
75
95
|
getRemoteSources(designSystemId: string): Promise<Array<SourceRemoteModel>>;
|
|
96
|
+
/** Remote: Get all figma node structures */
|
|
97
|
+
getFigmaNodeStructures(designSystemId: string, versionId: string): Promise<Array<FigmaStructureModel>>;
|
|
98
|
+
/** Remote: Get figma node detail */
|
|
99
|
+
getFigmaNodeStructureDetail(designSystemId: string, versionId: string, figmaStructureId: string): Promise<FigmaStructureDetailModel>;
|
|
76
100
|
/** Remote: Get design system documentation url */
|
|
77
101
|
getRemoteDocumentationUrl(designSystemId: string, versionId: string): Promise<string | null>;
|
|
78
102
|
/** Remote: Get documentation metadata */
|
|
@@ -129,13 +153,32 @@ export declare class DataCoreReadRequests {
|
|
|
129
153
|
getRemoteElementDataViewDefinitions(designSystemId: string, versionId: string): Promise<Array<ElementDataViewRemoteModel>>;
|
|
130
154
|
/** Remote: Get all property values that were set by the user for each elemen */
|
|
131
155
|
getRemoteElementPropertyValues(designSystemId: string, versionId: string): Promise<ElementPropertyValueRemoteModel[]>;
|
|
132
|
-
getRemotePipelines(workspaceId: string): Promise<
|
|
156
|
+
getRemotePipelines(workspaceId: string, designSystemId?: string): Promise<PipelineRemoteModel[]>;
|
|
157
|
+
getRemoteGithubConnections(): Promise<CodegenConnectionRemoteModel[]>;
|
|
158
|
+
getRemoteGithubAccounts(githubConnectId: string): Promise<CodegenAccountRemoteModel[]>;
|
|
159
|
+
getRemoteGithubRepositories(githubConnectId: string, handle: string): Promise<CodegenRepositoryRemoteModel[]>;
|
|
160
|
+
getRemoteGithubBranches(githubConnectId: string, handle: string, repoName: string): Promise<CodegenBranchRemoteModel[]>;
|
|
161
|
+
getRemoteGitlabConnections(): Promise<CodegenConnectionRemoteModel[]>;
|
|
162
|
+
getRemoteGitlabGroups(connectionId: string): Promise<CodegenGitlabGroupRemoteModel[]>;
|
|
163
|
+
getRemoteGitlabRepositories(connectionId: string, groupId: string): Promise<CodegenGitlabRepositoryRemoteModel[]>;
|
|
164
|
+
getRemoteGitlabBranches(connectionId: string, repoId: string): Promise<CodegenGitlabBranchRemoteModel[]>;
|
|
165
|
+
getRemoteAzureConnections(): Promise<CodegenConnectionRemoteModel[]>;
|
|
166
|
+
getRemoteAzureOrganizations(connectionId: string): Promise<CodegenAzureOrganizationRemoteModel[]>;
|
|
167
|
+
getRemoteAzureProjects(connectionId: string, organizationId: string): Promise<CodegenAzureProjectRemoteModel[]>;
|
|
168
|
+
getRemoteAzureRepositories(connectionId: string, organizationId: string, projectId: string): Promise<CodegenAzureRepositoryRemoteModel[]>;
|
|
169
|
+
getRemoteAzureBranches(connectionId: string, organizationId: string, projectId: string, repositoryId: string): Promise<CodegenAzureBranchRemoteModel[]>;
|
|
170
|
+
getRemoteBitbucketConnections(): Promise<CodegenConnectionRemoteModel[]>;
|
|
171
|
+
getRemoteBitbucketWorkspaces(connectionId: string): Promise<CodegenBitbucketWorkspaceRemoteModel[]>;
|
|
172
|
+
getRemoteBitbucketProjects(connectionId: string, worksapceId: string): Promise<CodegenBitbucketProject[]>;
|
|
173
|
+
getRemoteBitbucketRepositories(connectionId: string, workspaceId: string, projectKey?: string): Promise<CodegenBitbucketRepositoryRemoteModel[]>;
|
|
174
|
+
getRemoteBitbucketBranches(connectionId: string, workspaceId: string, projectId: string, repositoryId: string): Promise<CodegenBitbucketBranchRemoteModel[]>;
|
|
133
175
|
getRemoteBuilds(workspaceId: string, versionId: string): Promise<Array<ExportBuildModel>>;
|
|
134
176
|
getRemoteDocumentationBuilds(workspaceId: string, designSystemId: string, versionId: string, environment: DocumentationEnvironment, limit?: number): Promise<Array<{
|
|
135
177
|
status: "InProgress" | "Success" | "Failed";
|
|
136
178
|
id: string | null;
|
|
137
179
|
exporterId: string | null;
|
|
138
180
|
}>>;
|
|
181
|
+
getRemoteBuildLogs(workspaceId: string, buildId: string): Promise<Array<ExportBuildResultLogModel>>;
|
|
139
182
|
getBrands(designSystemId: string, versionId: string): Promise<Array<BrandRemoteModel>>;
|
|
140
183
|
getBrand(designSystemId: string, versionId: string, brandId: string): Promise<BrandRemoteModel>;
|
|
141
184
|
getOAuthURL(service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<string>;
|
|
@@ -143,5 +186,6 @@ export declare class DataCoreReadRequests {
|
|
|
143
186
|
getVersions(designSystemId: string): Promise<Array<DesignSystemVersionRemoteModel>>;
|
|
144
187
|
getImportJobs(designSystemId: string, versionId: string): Promise<Array<ImportJobRemoteModel>>;
|
|
145
188
|
getImportJob(designSystemId: string, versionId: string, jobId: string): Promise<ImportJobRemoteModel>;
|
|
189
|
+
getKeyValueStorageData(designSystemId: string, keys: Array<string>): Promise<Record<string, string>>;
|
|
146
190
|
getTokenStudioData(designSystemId: string, versionId: string): Promise<object>;
|
|
147
191
|
}
|
|
@@ -4,27 +4,32 @@ import { DesignSystemVersionRemoteModel, DesignSystemVersionUpdateModel } from "
|
|
|
4
4
|
import { DocumentationLegacyModel } from "../../../model/base/SDKDocumentationLegacy";
|
|
5
5
|
import { Component, ComponentRemoteModel, ComponentUpdateRemoteModel } from "../../../model/components/SDKComponent";
|
|
6
6
|
import { DocumentationLegacyGroup, DocumentationLegacyGroupModel } from "../../../model/documentation/SDKDocumentationLegacyGroup";
|
|
7
|
-
import { DocumentationLegacyPageModel } from "../../../model/documentation/SDKDocumentationLegacyPage";
|
|
7
|
+
import { DocumentationLegacyPage, DocumentationLegacyPageModel } from "../../../model/documentation/SDKDocumentationLegacyPage";
|
|
8
8
|
import { ElementDataViewColumnType } from "../../../model/elements/SDKElementDataViewColumn";
|
|
9
9
|
import { ElementPropertyRemoteModel } from "../../../model/elements/SDKElementProperty";
|
|
10
|
+
import { ConnectionProviders } from "../../../model/enums/SDKConnectionProviders";
|
|
10
11
|
import { DocumentationEnvironment } from "../../../model/enums/SDKDocumentationEnvironment";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { UserRoleWithoutOwner } from "../../../model/enums/SDKUserRole";
|
|
13
|
+
import { AzurePersonalAccessTokenConnectionPayload, PersonalAccessTokenConnectionPayload } from "../../../model/exporters/SDKConnections";
|
|
14
|
+
import { NewPipelinePayload, PipelineUpdateModel } from "../../../model/exporters/SDKPipeline";
|
|
15
|
+
import { ConnectionRemoteModel } from "../../../model/exporters/remote/SDKRemoteConnectionsModel";
|
|
13
16
|
import { ComponentGroup, ComponentGroupRemoteModel } from "../../../model/groups/SDKComponentGroup";
|
|
14
17
|
import { TokenGroup, TokenGroupRemoteModel } from "../../../model/groups/SDKTokenGroup";
|
|
15
18
|
import { ImportJobRemoteModel } from "../../../model/jobs/SDKImportJob";
|
|
16
19
|
import { CustomDomainRemoteModel } from "../../../model/support/SDKCustomDomain";
|
|
17
20
|
import { SourceRemoteModel } from "../../../model/support/SDKSource";
|
|
18
21
|
import { TokenThemeRemoteModel } from "../../../model/themes/SDKTokenTheme";
|
|
19
|
-
import { TokenRemoteModel } from "../../../model/tokens/remote/SDKRemoteTokenModel";
|
|
20
22
|
import { Token } from "../../../model/tokens/SDKToken";
|
|
23
|
+
import { TokenRemoteModel } from "../../../model/tokens/remote/SDKRemoteTokenModel";
|
|
21
24
|
import { UserProfileUpdateModel } from "../../../model/users/SDKUserProfile";
|
|
22
25
|
import { WorkspaceRemoteModel } from "../../../model/workspaces/SDKWorkspace";
|
|
23
26
|
import { WorkspaceIPWhitelistSettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
27
|
+
import { WorkspaceInvitationUpdateModel } from "../../../model/workspaces/SDKWorkspaceInvitation";
|
|
24
28
|
import { WorkspaceNPMRegistrySettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
25
29
|
import { WorkspaceOnboardingUpdateModel } from "../../../model/workspaces/SDKWorkspaceOnboarding";
|
|
26
30
|
import { WorkspaceProfileUpdateModel } from "../../../model/workspaces/SDKWorkspaceProfile";
|
|
27
31
|
import { WorkspaceSSOSettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
32
|
+
import { WorkspaceSubscriptionUpdateModel } from "../../../model/workspaces/SDKWorkspaceSubscription";
|
|
28
33
|
import { DataBridge } from "../SDKDataBridge";
|
|
29
34
|
export declare class DataCoreWriteRequests {
|
|
30
35
|
private bridge;
|
|
@@ -74,6 +79,14 @@ export declare class DataCoreWriteRequests {
|
|
|
74
79
|
updateRemoteWorkspaceIPWhitelistSettings(workspaceId: string, ipWhitelistSettings: WorkspaceIPWhitelistSettingsUpdateModel): Promise<void>;
|
|
75
80
|
/** Remote: Updates a workspace NPM registry settings */
|
|
76
81
|
updateRemoteWorkspaceNPMRegistrySettings(workspaceId: string, npmRegistrySettings: WorkspaceNPMRegistrySettingsUpdateModel): Promise<void>;
|
|
82
|
+
/** Remote: Updates a workspace ownership */
|
|
83
|
+
updateRemoteWorkspaceOwnership(workspaceId: string, newOwnerUserId: string): Promise<void>;
|
|
84
|
+
/** Remote: Updates a member role */
|
|
85
|
+
updateRemoteWorkspaceMemberRole(workspaceId: string, userId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
86
|
+
/** Remote: Updates an invitation role */
|
|
87
|
+
updateRemoteWorkspaceInvitationRole(workspaceId: string, invitationId: string, newRole: UserRoleWithoutOwner): Promise<void>;
|
|
88
|
+
/** Remote: Add new invitations */
|
|
89
|
+
addRemoteWorkspaceInvitations(workspaceId: string, invitations: Array<WorkspaceInvitationUpdateModel>): Promise<void>;
|
|
77
90
|
/** Remote: Deletes a workspace */
|
|
78
91
|
deleteRemoteWorkspace(workspaceId: string): Promise<void>;
|
|
79
92
|
/** Remote: Deletes a workspace avatar */
|
|
@@ -84,6 +97,12 @@ export declare class DataCoreWriteRequests {
|
|
|
84
97
|
deleteRemoteWorkspaceMember(workspaceId: string, userId: string): Promise<void>;
|
|
85
98
|
/** Remote: Deletes an invitation */
|
|
86
99
|
deleteRemoteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
100
|
+
/** Remote: create Checkout session */
|
|
101
|
+
createRemoteCheckoutSession(workspaceId: string, priceId: string, successUrl: string, cancelUrl: string): Promise<string>;
|
|
102
|
+
/** Remote: create Customer portal session */
|
|
103
|
+
createRemotePortalSession(workspaceId: string, returnUrl: string, update: WorkspaceSubscriptionUpdateModel | null): Promise<string>;
|
|
104
|
+
/** Remote: Resend the invitation */
|
|
105
|
+
resendRemoteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
87
106
|
/** Remote: Creates a new design system */
|
|
88
107
|
createRemoteDesignSystem(workspaceId: string, name: string, description?: string): Promise<DesignSystemRemoteModel>;
|
|
89
108
|
/** Remote: Updates a design system metadata */
|
|
@@ -109,13 +128,21 @@ export declare class DataCoreWriteRequests {
|
|
|
109
128
|
group: DocumentationLegacyGroupModel;
|
|
110
129
|
}>;
|
|
111
130
|
/** Remote: update a documentation page */
|
|
112
|
-
updateRemoteDocumentationPageOrTab(designSystemId: string, versionId: string, pageModel: any): Promise<{
|
|
131
|
+
updateRemoteDocumentationPageOrTab(designSystemId: string, versionId: string, id: string, pageModel: any): Promise<{
|
|
113
132
|
result: {
|
|
114
133
|
page: DocumentationLegacyPageModel;
|
|
115
134
|
};
|
|
116
135
|
}>;
|
|
136
|
+
/** Remote: update a documentation page header image */
|
|
137
|
+
updateRemoteDocumentationHeaderImage(designSystemId: string, versionId: string, page: DocumentationLegacyPage | DocumentationLegacyGroup, image: File | null): Promise<{
|
|
138
|
+
result: {
|
|
139
|
+
page: DocumentationLegacyPageModel;
|
|
140
|
+
} | {
|
|
141
|
+
group: DocumentationLegacyGroupModel;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
117
144
|
/** Remote: updates a documentation group */
|
|
118
|
-
updateRemoteDocumentationGroup(designSystemId: string, versionId: string, groupModel: any): Promise<{
|
|
145
|
+
updateRemoteDocumentationGroup(designSystemId: string, versionId: string, id: string, groupModel: any): Promise<{
|
|
119
146
|
result: {
|
|
120
147
|
group: DocumentationLegacyGroupModel;
|
|
121
148
|
};
|
|
@@ -179,10 +206,12 @@ export declare class DataCoreWriteRequests {
|
|
|
179
206
|
updateResizeComponentColumn(designSystemId: string, versionId: string, viewId: string, columnType: ElementDataViewColumnType, columnId: string, columnThemeId: string | undefined, columnBasePropertyType: string | undefined, columnPropertyDefinitionId: string | undefined, newWidth: number): Promise<void>;
|
|
180
207
|
/** Remote: Deletes a OAuth integration */
|
|
181
208
|
deleteOAuthIntegration(userId: string, service: "figma" | "bitbucket" | "github" | "gitlab" | "azure"): Promise<void>;
|
|
209
|
+
/** Remote: Create Personal Access token connection */
|
|
210
|
+
createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
|
|
182
211
|
/** Remote: Create pipeline */
|
|
183
212
|
createRemotePipeline(workspaceId: string, pipeline: NewPipelinePayload): Promise<any>;
|
|
184
213
|
/** Remote: Create pipeline */
|
|
185
|
-
updateRemotePipeline(workspaceId: string, pipeline:
|
|
214
|
+
updateRemotePipeline(workspaceId: string, pipeline: PipelineUpdateModel): Promise<any>;
|
|
186
215
|
/** Remote: Run pipeline */
|
|
187
216
|
runRemotePipeline(workspaceId: string, designSystemVersionId: string, pipelineId: string): Promise<any>;
|
|
188
217
|
/** Remote: Delete pipeline */
|
|
@@ -194,6 +223,7 @@ export declare class DataCoreWriteRequests {
|
|
|
194
223
|
linkFigmaSource(designSystemId: string, data: object): Promise<SourceRemoteModel>;
|
|
195
224
|
updateFigmaSource(designSystemId: string, sourceId: string, data: object): Promise<SourceRemoteModel>;
|
|
196
225
|
updateFigmaSourceClaimOwnership(designSystemId: string, sourceId: string): Promise<SourceRemoteModel>;
|
|
197
|
-
writeTokenStudioJSONData(designSystemId: string, versionId: string, data: object): Promise<
|
|
226
|
+
writeTokenStudioJSONData(designSystemId: string, versionId: string, data: object): Promise<object>;
|
|
198
227
|
importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", importType: "Upload", payload: any): Promise<ImportJobRemoteModel>;
|
|
228
|
+
setKeyValueStorageData(designSystemId: string, kvData: object): Promise<void>;
|
|
199
229
|
}
|
|
@@ -7,9 +7,6 @@ import { Source } from "../../model/support/SDKSource";
|
|
|
7
7
|
import { TokenOrigin } from "../../model/support/SDKTokenOrigin";
|
|
8
8
|
import { TokenTheme, TokenThemeRemoteModel } from "../../model/themes/SDKTokenTheme";
|
|
9
9
|
import { TokenThemeOverrideRemoteModel } from "../../model/themes/SDKTokenThemeOverride";
|
|
10
|
-
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyOptionTokenRemoteValue, AnyStringTokenRemoteData, BorderWidthTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData } from "../../model/tokens/remote/SDKRemoteTokenData";
|
|
11
|
-
import { AnyOptionTokenRemoteModel, BlurTokenRemoteModel, BorderTokenRemoteModel, ColorTokenRemoteModel, DimensionTokenRemoteModel, GradientTokenRemoteModel, ShadowTokenRemoteModel, StringTokenRemoteModel, TokenRemoteModel, TypographyTokenRemoteModel } from "../../model/tokens/remote/SDKRemoteTokenModel";
|
|
12
|
-
import { AnyDimensionTokenRemoteValue, BlurTokenRemoteValue, BorderTokenRemoteValue, ColorTokenRemoteValue, GradientStopRemoteValue, GradientTokenRemoteValue, ShadowTokenRemoteValue, StringTokenRemoteValue, TypographyTokenRemoteValue } from "../../model/tokens/remote/SDKRemoteTokenValue";
|
|
13
10
|
import { BlurToken } from "../../model/tokens/SDKBlurToken";
|
|
14
11
|
import { BorderToken } from "../../model/tokens/SDKBorderToken";
|
|
15
12
|
import { ColorToken } from "../../model/tokens/SDKColorToken";
|
|
@@ -20,6 +17,9 @@ import { AnyStringToken } from "../../model/tokens/SDKStringToken";
|
|
|
20
17
|
import { Token } from "../../model/tokens/SDKToken";
|
|
21
18
|
import { AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, BorderWidthTokenValue, ColorTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, GradientStopValue, GradientTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, ShadowTokenValue, SizeTokenValue, SpaceTokenValue, TypographyTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
22
19
|
import { TypographyToken } from "../../model/tokens/SDKTypographyToken";
|
|
20
|
+
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyOptionTokenRemoteValue, AnyStringTokenRemoteData, BorderWidthTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData } from "../../model/tokens/remote/SDKRemoteTokenData";
|
|
21
|
+
import { AnyOptionTokenRemoteModel, BlurTokenRemoteModel, BorderTokenRemoteModel, ColorTokenRemoteModel, DimensionTokenRemoteModel, GradientTokenRemoteModel, ShadowTokenRemoteModel, StringTokenRemoteModel, TokenRemoteModel, TypographyTokenRemoteModel } from "../../model/tokens/remote/SDKRemoteTokenModel";
|
|
22
|
+
import { AnyDimensionTokenRemoteValue, BlurTokenRemoteValue, BorderTokenRemoteValue, ColorTokenRemoteValue, GradientStopRemoteValue, GradientTokenRemoteValue, ShadowTokenRemoteValue, StringTokenRemoteValue, TypographyTokenRemoteValue } from "../../model/tokens/remote/SDKRemoteTokenValue";
|
|
23
23
|
export declare class TokenResolver {
|
|
24
24
|
hashedTokens: Map<string, TokenRemoteModel>;
|
|
25
25
|
resolvedTokens: Map<string, Token>;
|
|
@@ -218,7 +218,7 @@ export { Unit } from "./model/enums/SDKUnit";
|
|
|
218
218
|
export { UserRole } from "./model/enums/SDKUserRole";
|
|
219
219
|
export { VisibilityType } from "./model/enums/SDKVisibilityType";
|
|
220
220
|
export { WorkspaceSubscriptionPlanInterval } from "./model/enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
221
|
-
export {
|
|
221
|
+
export { WorkspaceSubscriptionProductCode } from "./model/enums/SDKWorkspaceSubscriptionProduct";
|
|
222
222
|
export { WorkspaceSubscriptionStatus } from "./model/enums/SDKWorkspaceSubscriptionStatus";
|
|
223
223
|
export { WorkspaceNPMRegistryAuthType } from "./model/enums/SDKWorkspaceNPMRegistryAuthType";
|
|
224
224
|
export { WorkspaceNPMRegistryType } from "./model/enums/SDKWorkspaceNPMRegistryType";
|
|
@@ -19,6 +19,7 @@ export { WorkspaceIPWhitelistSettings } from "./model/workspaces/SDKWorkspaceIPW
|
|
|
19
19
|
export { WorkspaceSSOSettings } from "./model/workspaces/SDKWorkspaceSSOSettings";
|
|
20
20
|
export { WorkspaceNPMRegistrySettings } from "./model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
21
21
|
export { WorkspaceInvitation } from "./model/workspaces/SDKWorkspaceInvitation";
|
|
22
|
+
export type { WorkspaceInvitationUpdateModel } from "./model/workspaces/SDKWorkspaceInvitation";
|
|
22
23
|
export { WorkspaceInvoice } from "./model/workspaces/SDKWorkspaceInvoice";
|
|
23
24
|
export { User } from "./model/users/SDKUser";
|
|
24
25
|
export { UserProfile } from "./model/users/SDKUserProfile";
|
|
@@ -34,7 +35,9 @@ export { DesignSystemVersion } from "./model/base/SDKDesignSystemVersion";
|
|
|
34
35
|
export { Membership } from "./model/membership/SDKMembership";
|
|
35
36
|
export { Exporter } from "./model/exporters/SDKExporter";
|
|
36
37
|
export { Pipeline } from "./model/exporters/SDKPipeline";
|
|
37
|
-
export type { NewPipelinePayload } from "./model/exporters/SDKPipeline";
|
|
38
|
+
export type { NewPipelinePayload, PipelineUpdateModel, AzureDestinationPayload, GithubDestinationPayload, BitbucketDestinationPayload, GitlabDestinationPayload, DocumentationDestinationPayload, } from "./model/exporters/SDKPipeline";
|
|
39
|
+
export type { PersonalAccessTokenConnectionPayload, AzurePersonalAccessTokenConnectionPayload, } from "./model/exporters/SDKConnections";
|
|
40
|
+
export type { ConnectionRemoteModel } from "./model/exporters/remote/SDKRemoteConnectionsModel";
|
|
38
41
|
export { ExporterCustomBlock, ExporterCustomBlockMode, } from "./model/exporters/custom_blocks/SDKExporterCustomBlock";
|
|
39
42
|
export { ExporterCustomBlockProperty, ExporterCustomBlockPropertyType, ExporterCustomBlockPropertyInputType, } from "./model/exporters/custom_blocks/SDKExporterCustomBlockProperty";
|
|
40
43
|
export { ExporterCustomBlockVariant } from "./model/exporters/custom_blocks/SDKExporterCustomBlockVariant";
|
|
@@ -175,23 +178,29 @@ export { TextDecoration } from "./model/enums/SDKTextDecoration";
|
|
|
175
178
|
export { TokenType } from "./model/enums/SDKTokenType";
|
|
176
179
|
export { Unit } from "./model/enums/SDKUnit";
|
|
177
180
|
export { UserRole } from "./model/enums/SDKUserRole";
|
|
181
|
+
export type { UserRoleWithoutOwner } from "./model/enums/SDKUserRole";
|
|
178
182
|
export { VisibilityType } from "./model/enums/SDKVisibilityType";
|
|
179
183
|
export { WorkspaceSubscriptionPlanInterval } from "./model/enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
180
|
-
export {
|
|
184
|
+
export { WorkspaceSubscriptionProductCode } from "./model/enums/SDKWorkspaceSubscriptionProduct";
|
|
181
185
|
export { WorkspaceSubscriptionStatus } from "./model/enums/SDKWorkspaceSubscriptionStatus";
|
|
182
186
|
export { WorkspaceNPMRegistryAuthType } from "./model/enums/SDKWorkspaceNPMRegistryAuthType";
|
|
183
187
|
export { WorkspaceNPMRegistryType } from "./model/enums/SDKWorkspaceNPMRegistryType";
|
|
184
188
|
export { ImportWarningType } from "./model/enums/SDKCloudWarningType";
|
|
185
189
|
export { CustomDomainErrorCode } from "./model/enums/SDKCustomDomainErrorCode";
|
|
186
190
|
export { CustomDomainState } from "./model/enums/SDKCustomDomainState";
|
|
191
|
+
export { ConnectionProviders } from "./model/enums/SDKConnectionProviders";
|
|
187
192
|
export { DesignComponentOrigin } from "./model/support/SDKDesignComponentOrigin";
|
|
188
193
|
export { Source } from "./model/support/SDKSource";
|
|
189
194
|
export type { SourceImportResultWarning } from "./model/support/SDKSource";
|
|
190
195
|
export { Size } from "./model/support/SDKSize";
|
|
191
196
|
export { TokenOrigin } from "./model/support/SDKTokenOrigin";
|
|
192
197
|
export { CustomDomain } from "./model/support/SDKCustomDomain";
|
|
198
|
+
export { FigmaStructure } from "./model/support/SDKFigmaStructure";
|
|
199
|
+
export { FigmaStructureDetail } from "./model/support/SDKFigmaStructureDetail";
|
|
200
|
+
export { FigmaFrame, FrameType } from "./model/support/SDKFigmaFrame";
|
|
193
201
|
export { ExportBuild } from "./model/exporters/exporter_builds/SDKExportBuild";
|
|
194
202
|
export { ExportBuildStatus } from "./model/exporters/exporter_builds/SDKExportBuild";
|
|
203
|
+
export { ExportBuildResultLog } from "./model/exporters/exporter_builds/SDKExportBuildResults";
|
|
195
204
|
export { BlurToken } from "./model/tokens/SDKBlurToken";
|
|
196
205
|
export { BorderToken } from "./model/tokens/SDKBorderToken";
|
|
197
206
|
export { ColorToken } from "./model/tokens/SDKColorToken";
|
package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from ".
|
|
|
3
3
|
export type DocsBlockTokenPropertyOptions = {
|
|
4
4
|
/** Token types that are allowed to be selected. All types allowed if nothing is provided */
|
|
5
5
|
allowedTypes?: Array<TokenType>;
|
|
6
|
+
/** Whether to allow selecting token custom properties. True by default */
|
|
7
|
+
allowProperties?: boolean;
|
|
8
|
+
/** Whether to allow selecting themes. True by default */
|
|
9
|
+
allowThemes?: boolean;
|
|
6
10
|
};
|
|
7
11
|
export type DocsBlockTokenPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & {
|
|
8
12
|
options: DocsBlockTokenPropertyOptions;
|
|
@@ -9,7 +9,7 @@ export type DocsEntityHeaderModel = {
|
|
|
9
9
|
backgroundImageScaleType: AssetScaleType;
|
|
10
10
|
showBackgroundOverlay: boolean;
|
|
11
11
|
showCoverText: boolean;
|
|
12
|
-
minHeight: number;
|
|
12
|
+
minHeight: number | null;
|
|
13
13
|
};
|
|
14
14
|
export declare class DocsEntityHeader {
|
|
15
15
|
description: string;
|
|
@@ -18,6 +18,6 @@ export declare class DocsEntityHeader {
|
|
|
18
18
|
backgroundColor: DocsColorRef | null;
|
|
19
19
|
showBackgroundOverlay: boolean;
|
|
20
20
|
showCoverText: boolean;
|
|
21
|
-
minHeight: number;
|
|
21
|
+
minHeight: number | null;
|
|
22
22
|
constructor(model: DocsEntityHeaderModel);
|
|
23
23
|
}
|
|
@@ -13,7 +13,7 @@ export declare class DocumentationLegacyGroup extends DocumentationLegacyItem {
|
|
|
13
13
|
/** IDs of items belonging to the documentation group. Can be page or group */
|
|
14
14
|
childrenIds: Array<string>;
|
|
15
15
|
/** Items belonging to the documentation group. Can be page or group */
|
|
16
|
-
children: Array<
|
|
16
|
+
children: Array<DocumentationLegacyGroup | DocumentationLegacyPage>;
|
|
17
17
|
type: DocumentationLegacyItemType.group;
|
|
18
18
|
/** Parent group reference */
|
|
19
19
|
parent: DocumentationLegacyGroup | null;
|
|
@@ -28,8 +28,8 @@ export declare class DocumentationLegacyGroup extends DocumentationLegacyItem {
|
|
|
28
28
|
/** Internal */
|
|
29
29
|
deployedFirstPageUrl: string | null;
|
|
30
30
|
constructor(model: DocumentationLegacyGroupModel);
|
|
31
|
-
addChild(item:
|
|
32
|
-
addChildren(groups: Array<
|
|
31
|
+
addChild(item: DocumentationLegacyGroup | DocumentationLegacyPage): void;
|
|
32
|
+
addChildren(groups: Array<DocumentationLegacyGroup | DocumentationLegacyPage>): void;
|
|
33
33
|
setParent(parent: DocumentationLegacyGroup | null): void;
|
|
34
34
|
/** Internal: Modifies object with new paths. Don't use outside SDK environment as it doesn't propagate the data back to source */
|
|
35
35
|
internalOverridePaths(relative: string | null, deployed: string | null): void;
|
|
@@ -2,12 +2,18 @@ import { DocumentationLegacyPageAssetType } from "../enums/SDKDocumentationLegac
|
|
|
2
2
|
import { DocumentationLegacyPageBlockFrame, DocumentationLegacyPageBlockFrameModel } from "./blocks/SDKDocumentationLegacyPageBlockFrame";
|
|
3
3
|
export type DocumentationLegacyPageAssetModel = {
|
|
4
4
|
id: string;
|
|
5
|
+
persistentId?: string;
|
|
6
|
+
sourceId?: string;
|
|
7
|
+
sourceFrameId?: string;
|
|
5
8
|
url?: string;
|
|
6
9
|
type: DocumentationLegacyPageAssetType;
|
|
7
10
|
figmaFrame?: DocumentationLegacyPageBlockFrameModel;
|
|
8
11
|
};
|
|
9
12
|
export declare class DocumentationLegacyPageAsset {
|
|
10
13
|
id: string;
|
|
14
|
+
persistentId: string | null;
|
|
15
|
+
sourceId: string | null;
|
|
16
|
+
sourceFrameId: string | null;
|
|
11
17
|
url: string | null;
|
|
12
18
|
type: DocumentationLegacyPageAssetType;
|
|
13
19
|
frame: DocumentationLegacyPageBlockFrame | null;
|