@supernova-studio/supernova-sdk-beta 2.2.5 → 2.2.6

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.
@@ -1,4 +1,5 @@
1
- import { DTODataSourceStorybookCreatePayload, DTOStorybookEntry, DTOStorybookImportPayload } from "@supernova-studio/client";
1
+ import { DTODataSourceStorybookCreatePayload, DTOStorybookImportPayload } from "@supernova-studio/client";
2
+ import { StorybookEntry } from "../../model/storybook/SDKStorybookEntry";
2
3
  import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
3
4
  import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
4
5
  import { Source, SourceRemoteModelCloud } from "../../model/support/SDKSource";
@@ -30,7 +31,7 @@ export declare class AreaDataSources {
30
31
  getFigmaNodeStructureDetail(from: RemoteVersionIdentifier & {
31
32
  figmaStructureId: string;
32
33
  }): Promise<FigmaStructureDetail>;
33
- getStorybookEntries(from: RemoteVersionIdentifier): Promise<DTOStorybookEntry[]>;
34
+ getStorybookEntries(from: RemoteVersionIdentifier): Promise<StorybookEntry[]>;
34
35
  linkFigmaSource(from: RemoteBrandIdentifier, url: string, options: {
35
36
  scopes: {
36
37
  tokens: boolean;
@@ -1,4 +1,4 @@
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, DTOStorybookEntry, 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 } from "@supernova-studio/client";
2
2
  import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
3
  import { DesignSystemAccessMode, DocsBlockDefinition, ExportBuildStatus, ExporterJobDestination, ResourceFont, TokenThemeOverrideTranserObject, UserRole } from "../../exports";
4
4
  import { Acl } from "../../model/acl/SDKAcl";
@@ -42,6 +42,7 @@ import { TokenGroup } from "../../model/groups/SDKTokenGroup";
42
42
  import { ImportJob } from "../../model/jobs/SDKImportJob";
43
43
  import { Membership } from "../../model/membership/SDKMembership";
44
44
  import { ResourceAsset } from "../../model/resources/SDKResourceAsset";
45
+ import { StorybookEntry } from "../../model/storybook/SDKStorybookEntry";
45
46
  import { CustomDomain } from "../../model/support/SDKCustomDomain";
46
47
  import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
47
48
  import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
@@ -566,7 +567,7 @@ export declare class DataCore {
566
567
  designSystemContacts(designSystemId: string): Promise<DesignSystemContactList>;
567
568
  getFigmaNodeStructures(designSystemId: string): Promise<Array<FigmaStructure>>;
568
569
  getFigmaNodeStructureDetail(designSystemId: string, figmaStructureId: string): Promise<FigmaStructureDetail>;
569
- getStorybookEntries(designSystemId: string, versionId: string): Promise<DTOStorybookEntry[]>;
570
+ getStorybookEntries(designSystemId: string, versionId: string): Promise<StorybookEntry[]>;
570
571
  deleteFigmaSource(designSystemId: string, sourceId: string): Promise<void>;
571
572
  linkFigmaSource(designSystemId: string, brandId: string, url: string, options: {
572
573
  scopes: {
@@ -143,23 +143,7 @@ export declare class DataCoreReadRequests {
143
143
  /** Remote: Get information about design system's members */
144
144
  getRemoteDesignSystemMemberList(designSystemId: string): Promise<DTODesignSystemMemberListResponse>;
145
145
  getRemoteContacts(designSystemId: string): Promise<DTODesignSystemContactsResponse>;
146
- getStorybookEntries(designSystemId: string, versionId: string): Promise<{
147
- id: string;
148
- url: string;
149
- createdAt: Date;
150
- updatedAt: Date;
151
- sourceId: string;
152
- designSystemId: string;
153
- storyId: string;
154
- origin: {
155
- type: "docs" | "story";
156
- name: string;
157
- id: string;
158
- title: string;
159
- };
160
- aliases?: string[] | undefined;
161
- isDeleted?: boolean | undefined;
162
- }[]>;
146
+ getStorybookEntries(designSystemId: string, versionId: string): Promise<any>;
163
147
  /** Remote: Get design system documentation url */
164
148
  getRemoteDocumentationUrl(designSystemId: string, versionId: string): Promise<string | null>;
165
149
  /** Remote: Get documentation metadata */
@@ -332,3 +332,4 @@ export type { ElementPropertyRemoteModel } from "./model/elements/SDKElementProp
332
332
  export type { ElementPropertyValueRemoteModel } from "./model/elements/values/SDKElementPropertyValue";
333
333
  export type { ElementDataViewRemoteModel } from "./model/elements/SDKElementDataView";
334
334
  export { RawUtils } from "./utils/RawUtils";
335
+ export { StorybookEntry } from "./model/storybook/SDKStorybookEntry";
@@ -0,0 +1,23 @@
1
+ import { DTOStorybookEntry } from "@supernova-studio/client";
2
+ export type RemoteStorybookEntry = Omit<DTOStorybookEntry, "createdAt" | "updatedAt"> & {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ };
6
+ export declare class StorybookEntry {
7
+ id: string;
8
+ url: string;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ sourceId: string;
12
+ designSystemId: string;
13
+ storyId: string;
14
+ origin: {
15
+ type: "story" | "docs";
16
+ name: string;
17
+ id: string;
18
+ title: string;
19
+ };
20
+ aliases: string[] | null;
21
+ isDeleted: boolean | null;
22
+ constructor(entry: RemoteStorybookEntry);
23
+ }