@supernova-studio/supernova-sdk-beta 2.2.6 → 2.2.7
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/SDKAreaDocumentation.d.ts +7 -8
- package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +69 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +35 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +42 -2
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +13 -1
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +5 -1
- package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +39 -0
- package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +47 -0
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
|
|
|
13
13
|
import { AreaMe } from "./areas/SDKAreaMe";
|
|
14
14
|
import { AreaMultiplayer } from "./areas/SDKAreaMultiplayer";
|
|
15
15
|
import { AreaNetwork } from "./areas/SDKAreaNetwork";
|
|
16
|
+
import { AreaProjects } from "./areas/SDKAreaProjects";
|
|
16
17
|
import { AreaRawData } from "./areas/SDKAreaRawData";
|
|
17
18
|
import { AreaResources } from "./areas/SDKAreaResources";
|
|
18
19
|
import { AreaStorage } from "./areas/SDKAreaStorage";
|
|
@@ -74,6 +75,8 @@ export declare class Supernova {
|
|
|
74
75
|
multiplayer: AreaMultiplayer;
|
|
75
76
|
/** Get access to AI capabilities */
|
|
76
77
|
ai: AreaAI;
|
|
78
|
+
/** Get access to projects */
|
|
79
|
+
projects: AreaProjects;
|
|
77
80
|
/** Get access to raw data for local-only restoration of data */
|
|
78
81
|
raw: AreaRawData;
|
|
79
82
|
/**
|
|
@@ -7,6 +7,7 @@ import { DocsEntityGroupModel } from "../../model/docs/entities/SDKDocsEntityGro
|
|
|
7
7
|
import { DocsEntityPageModel } from "../../model/docs/entities/SDKDocsEntityPage";
|
|
8
8
|
import { DocsSection } from "../../model/docs/sections/SDKDocsSection";
|
|
9
9
|
import { DocumentationLegacyGroup } from "../../model/documentation/SDKDocumentationLegacyGroup";
|
|
10
|
+
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
10
11
|
import { DocsPublishStatus } from "../../model/enums/SDKDocsPublishStatus";
|
|
11
12
|
import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
|
|
12
13
|
import { ExportBuild, ExportBuildStatus } from "../../model/exporters/exporter_builds/SDKExportBuild";
|
|
@@ -166,17 +167,15 @@ export declare class AreaDocumentation {
|
|
|
166
167
|
* @returns nothing
|
|
167
168
|
*/
|
|
168
169
|
ungroupDocumentationGroup(from: RemoteWorkspaceVersionIdentifier, payload: DTODeleteDocumentationGroupInput): Promise<void>;
|
|
169
|
-
/** Fetches
|
|
170
|
-
* Not implemented for now
|
|
171
|
-
* @param from - Remote version to fetch from
|
|
172
|
-
* @returnsDocumentationLegacy object
|
|
173
|
-
*/
|
|
174
|
-
getDocumentationStructureFromRoot(from: RemoteWorkspaceVersionIdentifier): Promise<DocumentationLegacyGroup>;
|
|
175
|
-
/** Fetches entire documentation documentation structure, including all pages and groups and their payloads
|
|
170
|
+
/** Fetches entire documentation including content in the legacy format
|
|
176
171
|
* @param from - Remote version to fetch from
|
|
177
172
|
* @returns All documentation items
|
|
178
173
|
*/
|
|
179
|
-
|
|
174
|
+
getFullDocumentationLegacyRepresentation(from: RemoteWorkspaceVersionIdentifier): Promise<{
|
|
175
|
+
rootGroup: DocumentationLegacyGroup;
|
|
176
|
+
allPages: Array<DocumentationLegacyPage>;
|
|
177
|
+
allGroups: Array<DocumentationLegacyGroup>;
|
|
178
|
+
}>;
|
|
180
179
|
/** Get ID of the multiplayer room for a given documentation page
|
|
181
180
|
* @param from - Remote version to fetch from
|
|
182
181
|
* @param pageId - ID of the documentation page
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SDKProject } from "../../model/projects/SDKProject";
|
|
2
|
+
import { SDKProjectContext, SDKProjectContextCreationModel } from "../../model/projects/SDKProjectContext";
|
|
3
|
+
import { DataCore } from "../data/SDKDataCore";
|
|
4
|
+
/**
|
|
5
|
+
* Manages project-related operations within a workspace using untyped data storage.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AreaProjects {
|
|
8
|
+
/** Internal reference to DataCore for data operations */
|
|
9
|
+
private dataCore;
|
|
10
|
+
/** Key under which all projects are stored */
|
|
11
|
+
private readonly PROJECTS_KEY;
|
|
12
|
+
/** Key under which all project contexts are stored */
|
|
13
|
+
private readonly PROJECT_CONTEXTS_KEY;
|
|
14
|
+
constructor(dataCore: DataCore);
|
|
15
|
+
/**
|
|
16
|
+
* Fetches all projects for a given workspace.
|
|
17
|
+
* @param workspaceId - The ID of the workspace.
|
|
18
|
+
* @returns A promise resolving to an array of SDKProject instances.
|
|
19
|
+
*/
|
|
20
|
+
getAllProjects(workspaceId: string): Promise<SDKProject[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new project in the specified workspace.
|
|
23
|
+
* @param workspaceId - The ID of the workspace.
|
|
24
|
+
* @param name - The name of the new project.
|
|
25
|
+
* @returns A promise resolving to the created SDKProject instance.
|
|
26
|
+
*/
|
|
27
|
+
createProject(workspaceId: string, name: string, contextId: string): Promise<SDKProject>;
|
|
28
|
+
/**
|
|
29
|
+
* Updates an existing project in the specified workspace.
|
|
30
|
+
* @param workspaceId - The ID of the workspace.
|
|
31
|
+
* @param updatedProject - The updated SDKProject instance.
|
|
32
|
+
* @returns A promise that resolves when the update is complete.
|
|
33
|
+
* @throws Error if the project is not found.
|
|
34
|
+
*/
|
|
35
|
+
updateProject(workspaceId: string, updatedProject: SDKProject): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Deletes a project from the specified workspace.
|
|
38
|
+
* @param workspaceId - The ID of the workspace.
|
|
39
|
+
* @param projectId - The ID of the project to delete.
|
|
40
|
+
* @returns A promise that resolves when the deletion is complete.
|
|
41
|
+
*/
|
|
42
|
+
deleteProject(workspaceId: string, projectId: string): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves all project contexts in a workspace.
|
|
45
|
+
* @param workspaceId - The ID of the workspace.
|
|
46
|
+
* @returns An array of SDKProjectContext instances.
|
|
47
|
+
*/
|
|
48
|
+
getAllProjectContexts(workspaceId: string): Promise<SDKProjectContext[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new project context.
|
|
51
|
+
* @param workspaceId - The ID of the workspace.
|
|
52
|
+
* @param creationModel - The properties for the new context.
|
|
53
|
+
* @returns The created SDKProjectContext instance.
|
|
54
|
+
*/
|
|
55
|
+
createProjectContext(workspaceId: string, creationModel: SDKProjectContextCreationModel): Promise<SDKProjectContext>;
|
|
56
|
+
/**
|
|
57
|
+
* Updates an existing project context.
|
|
58
|
+
* @param workspaceId - The ID of the workspace.
|
|
59
|
+
* @param updatedContext - The updated context instance.
|
|
60
|
+
* @throws Error if the context is not found.
|
|
61
|
+
*/
|
|
62
|
+
updateProjectContext(workspaceId: string, updatedContext: SDKProjectContext): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Deletes a project context.
|
|
65
|
+
* @param workspaceId - The ID of the workspace.
|
|
66
|
+
* @param contextId - The ID of the context to delete.
|
|
67
|
+
*/
|
|
68
|
+
deleteProjectContext(workspaceId: string, contextId: string): Promise<void>;
|
|
69
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
1
2
|
import { Acl } from "../../model/acl/SDKAcl";
|
|
2
3
|
import { UserRole } from "../../model/enums/SDKUserRole";
|
|
3
4
|
import { Membership } from "../../model/membership/SDKMembership";
|
|
@@ -234,4 +235,38 @@ export declare class AreaWorkspaces {
|
|
|
234
235
|
* @returns Nothing
|
|
235
236
|
*/
|
|
236
237
|
deleteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* Lists all untyped data for a given workspace.
|
|
240
|
+
* @param workspaceId - The ID of the workspace.
|
|
241
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
242
|
+
*/
|
|
243
|
+
listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates new untyped data in the specified workspace.
|
|
246
|
+
* @param workspaceId - The ID of the workspace.
|
|
247
|
+
* @param data - The data to create. Must be a valid JSON object.
|
|
248
|
+
* @returns A promise that resolves to the created untyped data.
|
|
249
|
+
*/
|
|
250
|
+
createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* Deletes all untyped data in the specified workspace.
|
|
253
|
+
* @param workspaceId - The ID of the workspace.
|
|
254
|
+
* @returns A promise that resolves when the operation is complete.
|
|
255
|
+
*/
|
|
256
|
+
deleteAllUntypedData(workspaceId: string): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Updates specific untyped data in the specified workspace.
|
|
259
|
+
* @param workspaceId - The ID of the workspace.
|
|
260
|
+
* @param id - The ID of the untyped data to update.
|
|
261
|
+
* @param data - The updated data. Must be a valid JSON object.
|
|
262
|
+
* @returns A promise that resolves to the updated untyped data.
|
|
263
|
+
*/
|
|
264
|
+
updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* Deletes specific untyped data in the specified workspace.
|
|
267
|
+
* @param workspaceId - The ID of the workspace.
|
|
268
|
+
* @param id - The ID of the untyped data to delete.
|
|
269
|
+
* @returns A promise that resolves when the operation is complete.
|
|
270
|
+
*/
|
|
271
|
+
deleteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
237
272
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookImportPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
|
|
1
|
+
import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookImportPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
2
|
import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
|
|
3
|
-
import { DesignSystemAccessMode, DocsBlockDefinition, ExportBuildStatus, ExporterJobDestination, ResourceFont, TokenThemeOverrideTranserObject, UserRole } from "../../exports";
|
|
3
|
+
import { DesignSystemAccessMode, DocsBlockDefinition, DocumentationLegacyGroup, DocumentationLegacyPage, ExportBuildStatus, ExporterJobDestination, ResourceFont, TokenThemeOverrideTranserObject, UserRole } from "../../exports";
|
|
4
4
|
import { Acl } from "../../model/acl/SDKAcl";
|
|
5
5
|
import { Asset } from "../../model/assets/SDKAsset";
|
|
6
6
|
import { RenderedAsset } from "../../model/assets/SDKRenderedAsset";
|
|
@@ -264,6 +264,12 @@ export declare class DataCore {
|
|
|
264
264
|
restoreDocumentationGroup(designSystemId: string, versionId: string, payload: DTORestoreDocumentationGroupInput): Promise<void>;
|
|
265
265
|
/** Restore a documentation page */
|
|
266
266
|
restoreDocumentationPage(designSystemId: string, versionId: string, payload: DTORestoreDocumentationPageInput): Promise<void>;
|
|
267
|
+
/** Fetches entire documentation including content in the legacy format */
|
|
268
|
+
getFullDocumentationLegacyRepresentation(designSystemId: string, versionId: string, workspaceId: string): Promise<{
|
|
269
|
+
rootGroup: DocumentationLegacyGroup;
|
|
270
|
+
allPages: Array<DocumentationLegacyPage>;
|
|
271
|
+
allGroups: Array<DocumentationLegacyGroup>;
|
|
272
|
+
}>;
|
|
267
273
|
/** Create a custom property in remote */
|
|
268
274
|
updateTokenProperty(designSystemId: string, versionId: string, propertyIdInVersion: string, model: ElementPropertyUpdateModel): Promise<void>;
|
|
269
275
|
/** Delete a custom property in remote */
|
|
@@ -624,6 +630,40 @@ export declare class DataCore {
|
|
|
624
630
|
readKeyValueStorageData(designSystemId: string, key: string): Promise<string | object | undefined>;
|
|
625
631
|
setKeyValueStorageData(designSystemId: string, key: string, value: string | object): Promise<void>;
|
|
626
632
|
unsetKeyValueStorageData(designSystemId: string, key: string): Promise<void>;
|
|
633
|
+
/**
|
|
634
|
+
* Lists all untyped data for a given workspace.
|
|
635
|
+
* @param workspaceId - The ID of the workspace.
|
|
636
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
637
|
+
*/
|
|
638
|
+
listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
639
|
+
/**
|
|
640
|
+
* Creates new untyped data in the specified workspace.
|
|
641
|
+
* @param workspaceId - The ID of the workspace.
|
|
642
|
+
* @param data - The data to create.
|
|
643
|
+
* @returns A promise that resolves to the created untyped data.
|
|
644
|
+
*/
|
|
645
|
+
createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
646
|
+
/**
|
|
647
|
+
* Deletes all untyped data in the specified workspace.
|
|
648
|
+
* @param workspaceId - The ID of the workspace.
|
|
649
|
+
* @returns A promise that resolves when the operation is complete.
|
|
650
|
+
*/
|
|
651
|
+
deleteAllUntypedData(workspaceId: string): Promise<void>;
|
|
652
|
+
/**
|
|
653
|
+
* Updates specific untyped data in the specified workspace.
|
|
654
|
+
* @param workspaceId - The ID of the workspace.
|
|
655
|
+
* @param id - The ID of the untyped data to update.
|
|
656
|
+
* @param data - The updated data.
|
|
657
|
+
* @returns A promise that resolves to the updated untyped data.
|
|
658
|
+
*/
|
|
659
|
+
updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
660
|
+
/**
|
|
661
|
+
* Deletes specific untyped data in the specified workspace.
|
|
662
|
+
* @param workspaceId - The ID of the workspace.
|
|
663
|
+
* @param id - The ID of the untyped data to delete.
|
|
664
|
+
* @returns A promise that resolves when the operation is complete.
|
|
665
|
+
*/
|
|
666
|
+
deleteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
627
667
|
getPageRedirects(designSystemId: string): Promise<{
|
|
628
668
|
path: string;
|
|
629
669
|
id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTOFigmaNode, DTOFigmaNodeV2, DTOGetDocumentationPageAnchorsResponse, DTOPipeline, DTOTokenCollection } from "@supernova-studio/client";
|
|
1
|
+
import { DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTOFigmaNode, DTOFigmaNodeV2, DTOGetDocumentationPageAnchorsResponse, DTOPipeline, DTOTokenCollection, DTOWorkspaceUntypedDataListResponse } from "@supernova-studio/client";
|
|
2
|
+
import { DocumentationLegacyGroupModel } from "../../../exports";
|
|
2
3
|
import { AclRemoteModel } from "../../../model/acl/SDKAcl";
|
|
3
4
|
import { BootstrapDataRemoteModel } from "../../../model/base/SDKBootstrapData";
|
|
4
5
|
import { BrandRemoteModel } from "../../../model/base/SDKBrand";
|
|
@@ -148,6 +149,11 @@ export declare class DataCoreReadRequests {
|
|
|
148
149
|
getRemoteDocumentationUrl(designSystemId: string, versionId: string): Promise<string | null>;
|
|
149
150
|
/** Remote: Get documentation metadata */
|
|
150
151
|
getRemoteDocumentationStructure(designSystemId: string, versionId: string): Promise<DocumentationLegacyModel>;
|
|
152
|
+
/** Remote: Get documentation metadata */
|
|
153
|
+
getRemoteDocumentationFullLegacyModel(designSystemId: string, versionId: string): Promise<{
|
|
154
|
+
pages: Array<DocumentationLegacyPageModel>;
|
|
155
|
+
groups: Array<DocumentationLegacyGroupModel>;
|
|
156
|
+
}>;
|
|
151
157
|
/** Remote: Get documentation elements diff */
|
|
152
158
|
getRemoteDocumentationElementsDiff(designSystemId: string, versionId: string, environment: DocumentationEnvironment): Promise<DTODesignElementsDataDiffResponse>;
|
|
153
159
|
/** Remote: Get documentation metadata */
|
|
@@ -333,4 +339,10 @@ export declare class DataCoreReadRequests {
|
|
|
333
339
|
designSystemId: string;
|
|
334
340
|
pagePersistentId: string;
|
|
335
341
|
}[]>;
|
|
342
|
+
/**
|
|
343
|
+
* Fetches all untyped data for a given workspace.
|
|
344
|
+
* @param workspaceId - The ID of the workspace.
|
|
345
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
346
|
+
*/
|
|
347
|
+
getRemoteUntypedDataList(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
336
348
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
|
|
1
|
+
import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
2
|
import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
|
|
3
3
|
import { DesignSystemAccessMode, ExporterJobDestination, TokenThemeOverrideTranserObject, UserRole } from "../../../exports";
|
|
4
4
|
import { Brand, BrandRemoteModel, BrandUpdateModel } from "../../../model/base/SDKBrand";
|
|
@@ -722,4 +722,8 @@ export declare class DataCoreWriteRequests {
|
|
|
722
722
|
createPageRedirect(designSystemId: string, body: DTOPageRedirectCreateBody): Promise<void>;
|
|
723
723
|
updatePageRedirect(designSystemId: string, redirectId: string, body: DTOPageRedirectUpdateBody): Promise<void>;
|
|
724
724
|
deletePageRedirect(designSystemId: string, redirectId: string): Promise<void>;
|
|
725
|
+
createRemoteUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
726
|
+
deleteRemoteAllUntypedData(workspaceId: string): Promise<void>;
|
|
727
|
+
updateRemoteUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
728
|
+
deleteRemoteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
725
729
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type SDKProjectRemoteModel = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
contextId: string;
|
|
6
|
+
};
|
|
7
|
+
export type SDKProjectTransportModel = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
contextId: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class SDKProject {
|
|
14
|
+
/** Unique identifier of the project */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Name of the project */
|
|
17
|
+
name: string;
|
|
18
|
+
/** Date and time when the project was created */
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
/** Unique identifier of the project context */
|
|
21
|
+
contextId: string;
|
|
22
|
+
constructor(model: SDKProjectRemoteModel);
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a representation suitable for remote storage.
|
|
25
|
+
* @returns The remote model of the project.
|
|
26
|
+
*/
|
|
27
|
+
toRemote(): SDKProjectRemoteModel;
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a representation that can be serialized to JSON for transport.
|
|
30
|
+
* @returns The transport model of the project.
|
|
31
|
+
*/
|
|
32
|
+
toTransport(): SDKProjectTransportModel;
|
|
33
|
+
/**
|
|
34
|
+
* Reconstructs an SDKProject instance from a transport model.
|
|
35
|
+
* @param model - The transport model to deserialize.
|
|
36
|
+
* @returns A new SDKProject instance.
|
|
37
|
+
*/
|
|
38
|
+
static fromTransport(model: SDKProjectTransportModel): SDKProject;
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type SDKProjectContextRemoteModel = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
designSystemId: string;
|
|
6
|
+
dependencies: Array<string>;
|
|
7
|
+
npmProxyRegistry?: object;
|
|
8
|
+
};
|
|
9
|
+
export type SDKProjectContextTransportModel = {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
designSystemId: string;
|
|
14
|
+
dependencies: Array<string>;
|
|
15
|
+
npmProxyRegistry?: object;
|
|
16
|
+
};
|
|
17
|
+
export interface SDKProjectContextCreationModel {
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
designSystemId: string;
|
|
21
|
+
dependencies: Array<string>;
|
|
22
|
+
npmProxyRegistry?: object;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents a project context containing repository and technology information.
|
|
26
|
+
*/
|
|
27
|
+
export declare class SDKProjectContext {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string | undefined;
|
|
31
|
+
designSystemId: string;
|
|
32
|
+
dependencies: Array<string>;
|
|
33
|
+
npmProxyRegistry: object | undefined;
|
|
34
|
+
constructor(model: SDKProjectContextRemoteModel);
|
|
35
|
+
/**
|
|
36
|
+
* Converts the context to a remote model for storage.
|
|
37
|
+
*/
|
|
38
|
+
toRemote(): SDKProjectContextRemoteModel;
|
|
39
|
+
/**
|
|
40
|
+
* Converts the context to a transport model for serialization.
|
|
41
|
+
*/
|
|
42
|
+
toTransport(): SDKProjectContextTransportModel;
|
|
43
|
+
/**
|
|
44
|
+
* Creates an instance from a transport model.
|
|
45
|
+
*/
|
|
46
|
+
static fromTransport(model: SDKProjectContextTransportModel): SDKProjectContext;
|
|
47
|
+
}
|