@supernova-studio/supernova-sdk-beta 1.6.37 → 1.6.39

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.
Files changed (118) hide show
  1. package/build/sdk-typescript/.eslintrc.d.cts +41 -0
  2. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +4 -0
  3. package/build/sdk-typescript/src/core/areas/SDKAreaAssets.d.ts +11 -0
  4. package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +14 -14
  5. package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +1 -1
  6. package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +10 -2
  7. package/build/sdk-typescript/src/core/areas/SDKAreaComponents.d.ts +10 -3
  8. package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +24 -0
  9. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +78 -37
  10. package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +13 -0
  11. package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +10 -0
  12. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +25 -3
  13. package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +2 -2
  14. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +6 -0
  15. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +5 -1
  16. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +95 -39
  17. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +48 -16
  18. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +44 -53
  19. package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +4 -2
  20. package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +4 -0
  21. package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityMultiplayerItemResolver.d.ts +7 -0
  22. package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +4 -4
  23. package/build/sdk-typescript/src/exports.d.ts +22 -4
  24. package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +1 -7
  25. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +2 -11
  26. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +13 -23
  27. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockItemDefinition.d.ts +3 -10
  28. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockLayout.d.ts +2 -7
  29. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +9 -18
  30. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/{token-group/SDKDocsBlockActualTokenGroup.d.ts → color-ramps/SDKDocsBlockActualColorRamps.d.ts} +1 -1
  31. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/design-tokens/SDKDocsBlockActualDesignTokens.d.ts +6 -0
  32. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +9 -5
  33. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +1 -1
  34. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +4 -2
  35. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +13 -0
  36. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +2 -2
  37. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +2 -1
  38. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +30 -0
  39. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +4 -1
  40. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +19 -0
  41. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +1 -1
  42. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -3
  43. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +2 -10
  44. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -3
  45. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +1 -1
  46. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +13 -3
  47. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +23 -2
  48. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +1 -1
  49. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +8 -2
  50. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsColorRef.d.ts +2 -2
  51. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsImageRef.d.ts +18 -13
  52. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsLinkRef.d.ts +10 -7
  53. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +11 -24
  54. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlockItem.d.ts +2 -7
  55. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntity.d.ts +5 -2
  56. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityConfiguration.d.ts +6 -1
  57. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityGroup.d.ts +24 -2
  58. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +8 -2
  59. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityPage.d.ts +14 -0
  60. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +1 -1
  61. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockRenderCode.d.ts +1 -1
  62. package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +1 -1
  63. package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +27 -5
  64. package/build/sdk-typescript/src/model/enums/SDKAlignment.d.ts +5 -0
  65. package/build/sdk-typescript/src/model/enums/SDKCodeLanguage.d.ts +9 -8
  66. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +1 -1
  67. package/build/sdk-typescript/src/model/enums/{SDKDocsBlockAssetPropertyPreviewContainerSize.d.ts → SDKDocsBlockContainerSize.d.ts} +1 -1
  68. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +7 -1
  69. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutAlign.d.ts +3 -3
  70. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutColumnResizing.d.ts +2 -2
  71. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutGap.d.ts +4 -4
  72. package/build/sdk-typescript/src/model/enums/SDKDocsBlockMultiRichTextPropertyStyle.d.ts +8 -0
  73. package/build/sdk-typescript/src/model/enums/SDKDocsBlockRichTextPropertyStyle.d.ts +0 -4
  74. package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyStyle.d.ts +3 -1
  75. package/build/sdk-typescript/src/model/enums/SDKDocsPublishStatus.d.ts +4 -0
  76. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +19 -19
  77. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +2 -2
  78. package/build/sdk-typescript/src/model/exporters/SDKConnections.d.ts +9 -0
  79. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuild.d.ts +11 -0
  80. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +12 -0
  81. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +16 -1
  82. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +1 -1
  83. package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +4 -0
  84. package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +2 -2
  85. package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +2 -0
  86. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +14 -5
  87. package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +1 -1
  88. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +6 -6
  89. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +11 -6
  90. package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +2 -1
  91. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
  92. package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +1 -0
  93. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
  94. package/build/sdk-typescript/src/model/tokens/SDKTextCaseToken.d.ts +1 -1
  95. package/build/sdk-typescript/src/model/tokens/SDKTextDecorationToken.d.ts +1 -1
  96. package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +2 -2
  97. package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +3 -3
  98. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
  99. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistryAccessToken.d.ts +15 -0
  100. package/build/sdk-typescript/src/tests/Areas/AreaAssets.spec.d.ts +1 -0
  101. package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +3 -3
  102. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +2 -1
  103. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +1 -1
  104. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +1 -1
  105. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +47 -6
  106. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +1 -1
  107. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  108. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +4 -1
  109. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewReferenceInfoGenerator.d.ts +0 -1
  110. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +4 -1
  111. package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +3 -1
  112. package/build/sdk-typescript/src/utils/CommonUtils.d.ts +5 -0
  113. package/build/sdk-typescript/src/utils/TokenUtils.d.ts +5 -4
  114. package/build/sdk-typescript/src/utils/deepPartial.d.ts +3 -0
  115. package/build/supernova-sdk-typescript.js +1 -1
  116. package/build/supernova-sdk-typescript.js.LICENSE.txt +0 -14
  117. package/build/supernova-sdk-typescript.js.map +1 -1
  118. package/package.json +122 -118
@@ -0,0 +1,4 @@
1
+ export declare enum DocsPublishStatus {
2
+ idle = 0,
3
+ inProgress = 1
4
+ }
@@ -1,29 +1,29 @@
1
1
  export declare enum TokenType {
2
2
  color = "Color",
3
3
  typography = "Typography",
4
- dimension = "Dimension",
5
- size = "Size",
6
- space = "Space",
7
- opacity = "Opacity",
4
+ shadow = "Shadow",
5
+ border = "Border",
6
+ gradient = "Gradient",
7
+ blur = "Blur",
8
+ radius = "BorderRadius",
9
+ borderWidth = "BorderWidth",
10
+ duration = "Duration",
8
11
  fontSize = "FontSize",
9
- lineHeight = "LineHeight",
12
+ dimension = "Dimension",
10
13
  letterSpacing = "LetterSpacing",
14
+ lineHeight = "LineHeight",
15
+ opacity = "Opacity",
11
16
  paragraphSpacing = "ParagraphSpacing",
12
- borderWidth = "BorderWidth",
13
- radius = "BorderRadius",
14
- duration = "Duration",
17
+ size = "Size",
18
+ space = "Space",
15
19
  zIndex = "ZIndex",
16
- shadow = "Shadow",
17
- border = "Border",
18
- gradient = "Gradient",
19
- string = "String",
20
- productCopy = "ProductCopy",
21
- fontFamily = "FontFamily",
22
- fontWeight = "FontWeight",
23
- textCase = "TextCase",
24
20
  textDecoration = "TextDecoration",
21
+ textCase = "TextCase",
25
22
  visibility = "Visibility",
26
- blur = "Blur"
23
+ fontFamily = "FontFamily",
24
+ fontWeight = "FontWeight",
25
+ string = "String",
26
+ productCopy = "ProductCopy"
27
27
  }
28
28
  export declare const STRING_TOKEN_TYPES: readonly [TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight];
29
29
  export type StringTokenType = (typeof STRING_TOKEN_TYPES)[number];
@@ -37,13 +37,13 @@ export declare const ALL_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.s
37
37
  export declare const PURE_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
38
38
  export type PureTokenType = (typeof PURE_TOKEN_TYPES)[number];
39
39
  export type NonPureTokenType = Exclude<TokenType, PureTokenType>;
40
- export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is TokenType.dimension | TokenType.size | TokenType.space | TokenType.opacity | TokenType.fontSize | TokenType.lineHeight | TokenType.letterSpacing | TokenType.paragraphSpacing | TokenType.borderWidth | TokenType.radius | TokenType.duration | TokenType.zIndex | TokenType.string | TokenType.productCopy | TokenType.fontFamily | TokenType.fontWeight | TokenType.textCase | TokenType.textDecoration | TokenType.visibility;
40
+ export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex | TokenType.textDecoration | TokenType.textCase | TokenType.visibility | TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy;
41
41
  export declare const tokenTypeIsNonPure: (tokenType: TokenType) => tokenType is NonPureTokenType;
42
42
  export declare const REPLACABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
43
43
  export type ReplacableTokenType = (typeof REPLACABLE_TOKEN_TYPES)[number];
44
44
  export declare const REFERENCABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration];
45
45
  export type ReferencableTokenType = (typeof REFERENCABLE_TOKEN_TYPES)[number];
46
- export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is TokenType.color | TokenType.dimension | TokenType.size | TokenType.space | TokenType.opacity | TokenType.fontSize | TokenType.lineHeight | TokenType.letterSpacing | TokenType.paragraphSpacing | TokenType.borderWidth | TokenType.radius | TokenType.duration | TokenType.zIndex | TokenType.fontFamily | TokenType.fontWeight | TokenType.textCase | TokenType.textDecoration;
46
+ export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is TokenType.color | TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex | TokenType.textDecoration | TokenType.textCase | TokenType.fontFamily | TokenType.fontWeight;
47
47
  export declare const DT_TOKEN_TYPES: readonly [TokenType.color, TokenType.shadow, TokenType.gradient, TokenType.typography, TokenType.border, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
48
48
  export type DTTokenType = (typeof DT_TOKEN_TYPES)[number];
49
49
  export type DTOriginalTokenType = "color" | "borderRadius" | "boxShadow" | "gradient" | "typography" | "border" | "borderWidth" | "sizing" | "opacity" | "spacing" | "fontSizes" | "paragraphSpacing" | "letterSpacing" | "lineHeights" | "other" | "dimension" | "fontFamilies" | "fontWeights" | "textCase" | "textDecoration";
@@ -2,7 +2,7 @@ export declare enum UserRole {
2
2
  owner = "Owner",
3
3
  admin = "Admin",
4
4
  creator = "Creator",
5
- viewer = "Viewer",
6
- billing = "Billing"
5
+ billing = "Billing",
6
+ viewer = "Viewer"
7
7
  }
8
8
  export type UserRoleWithoutOwner = Exclude<UserRole, UserRole.owner>;
@@ -6,3 +6,12 @@ export type PersonalAccessTokenConnectionPayload = {
6
6
  export type AzurePersonalAccessTokenConnectionPayload = PersonalAccessTokenConnectionPayload & {
7
7
  organization: string;
8
8
  };
9
+ export type CreateAuthenticationTokenPayload = {
10
+ id: string;
11
+ name: string;
12
+ createdAt: string;
13
+ scope?: string;
14
+ token: string;
15
+ };
16
+ export type AuthenticationTokenPayload = Omit<CreateAuthenticationTokenPayload, "token">;
17
+ export type AuthenticationTokens = Array<AuthenticationTokenPayload>;
@@ -47,6 +47,8 @@ export type ExportBuildModel = {
47
47
  destinations: ExportDestinations;
48
48
  scheduleId: string | null;
49
49
  exporterId: string;
50
+ brandId: string | null;
51
+ themeId: string | null;
50
52
  };
51
53
  /** Build run entry */
52
54
  export declare class ExportBuild {
@@ -90,6 +92,10 @@ export declare class ExportBuild {
90
92
  scheduleId: string | null;
91
93
  /** The identifier of the exporter associated with the export build */
92
94
  exporterId: string;
95
+ /** The identifier of the brand used for this build */
96
+ brandId: string | null;
97
+ /** The identifier of the theme used for this build */
98
+ themeId: string | null;
93
99
  constructor(data: ExportBuildModel);
94
100
  /**
95
101
  * Gets the URL for downloading the code generated by the export build.
@@ -101,4 +107,9 @@ export declare class ExportBuild {
101
107
  * @returns {string|null} - The URL for the pull request, or null if not available.
102
108
  */
103
109
  get pullRequestUrl(): string | null;
110
+ /**
111
+ * Returns the URL for published documentation associated with the export build.
112
+ * @returns {string|null} - The URL to the documentation, or null if not available.
113
+ */
114
+ get documentationUrl(): string | null;
104
115
  }
@@ -19,6 +19,15 @@ export declare class ExportBuildPullRequestResult {
19
19
  pullRequestUrl: string;
20
20
  constructor(data: ExportBuildPullRequestResultModel);
21
21
  }
22
+ export type ExportBuildDocumentationResultModel = {
23
+ url: string;
24
+ };
25
+ /** The type definition for documentation build's result. */
26
+ export declare class ExportBuildDocumentationResult {
27
+ /** The URL of documentation's website associated with the export build result. */
28
+ url: string;
29
+ constructor(data: ExportBuildDocumentationResultModel);
30
+ }
22
31
  /**
23
32
  * The enum representing possible types of export build result logs.
24
33
  * @enum {string}
@@ -51,6 +60,7 @@ export type ExportBuildResultModel = {
51
60
  bitbucket: ExportBuildPullRequestResult | null;
52
61
  github: ExportBuildPullRequestResult | null;
53
62
  gitlab: ExportBuildPullRequestResult | null;
63
+ documentation: ExportBuildDocumentationResult | null;
54
64
  error: string | null;
55
65
  };
56
66
  export declare class ExportBuildResult {
@@ -66,6 +76,8 @@ export declare class ExportBuildResult {
66
76
  github: ExportBuildPullRequestResult | null;
67
77
  /** The GitLab export build pull request result, or null if not available */
68
78
  gitlab: ExportBuildPullRequestResult | null;
79
+ /** The documentation build result, or null if not available */
80
+ documentation: ExportBuildDocumentationResult | null;
69
81
  /** The error message, or null if not available */
70
82
  error: string | null;
71
83
  constructor(data: ExportBuildResultModel);
@@ -1,3 +1,4 @@
1
+ import { DocumentationEnvironment } from "../../enums/SDKDocumentationEnvironment";
1
2
  export type S3ExportDestinationModel = {
2
3
  url: string | null;
3
4
  };
@@ -76,12 +77,25 @@ export declare class GitlabExportDestination {
76
77
  url: string | null;
77
78
  constructor(data: GitlabExportDestinationModel);
78
79
  }
80
+ export type DocsExportDestinationModel = {
81
+ environment: DocumentationEnvironment;
82
+ };
83
+ /**
84
+ * Type definition for the data model of a documentation export destination.
85
+ * @typedef {Object} DocsExportDestinationModel
86
+ * @property {DocumentationEnvironment|null} environment - The environment of the docs export build.
87
+ */
88
+ export declare class DocsExportDestination {
89
+ environment: DocumentationEnvironment;
90
+ constructor(data: DocsExportDestinationModel);
91
+ }
79
92
  export type ExportDestinationsModel = {
80
93
  s3: S3ExportDestination | null;
81
94
  azure: AzureExportDestination | null;
82
95
  bitbucket: BitbucketExportDestination | null;
83
96
  github: GithubExportDestination | null;
84
97
  gitlab: GitlabExportDestination | null;
98
+ documentation: DocsExportDestination | null;
85
99
  webhookUrl: string | null;
86
100
  };
87
101
  /**
@@ -92,7 +106,7 @@ export type ExportDestinationsModel = {
92
106
  * @property {BitbucketExportDestination|null} bitbucket - The Bitbucket export destination, or null if not available.
93
107
  * @property {GithubExportDestination|null} github - The Github export destination, or null if not available.
94
108
  * @property {GitlabExportDestination|null} gitlab - The Gitlab export destination, or null if not available.
95
- * // @property {any|null} documentation - The documentation associated with the export destinations, or null if not available. Uncomment if documentation model is provided.
109
+ * @property {DocsExportDestination|null} documentation - The documentation associated with the export destinations, or null if not available.
96
110
  * @property {string|null} webhookUrl - The webhook URL associated with the export destinations, or null if not available.
97
111
  */
98
112
  export declare class ExportDestinations {
@@ -101,6 +115,7 @@ export declare class ExportDestinations {
101
115
  bitbucket: BitbucketExportDestination | null;
102
116
  github: GithubExportDestination | null;
103
117
  gitlab: GitlabExportDestination | null;
118
+ documentation: DocsExportDestination | null;
104
119
  webhookUrl: string | null;
105
120
  constructor(data: ExportDestinationsModel);
106
121
  /**
@@ -1,4 +1,4 @@
1
- import { ConnectionProviders } from "../../../model/enums/SDKConnectionProviders";
1
+ import { ConnectionProviders } from "../../enums/SDKConnectionProviders";
2
2
  export type ConnectionRemoteModel = {
3
3
  id: string;
4
4
  ownerId: string;
@@ -1,6 +1,7 @@
1
1
  import { DesignComponentGroupRemoteModel } from "./SDKDesignComponentGroup";
2
2
  export declare class AssetGroup {
3
3
  id: string;
4
+ persistentId: string;
4
5
  brandId: string;
5
6
  name: string;
6
7
  description: string;
@@ -12,6 +13,9 @@ export declare class AssetGroup {
12
13
  parentGroupId: string | null;
13
14
  createdAt: Date | null;
14
15
  updatedAt: Date | null;
16
+ isAssetGroup: boolean;
17
+ sourceId: string | null;
18
+ sourceName: string | null;
15
19
  constructor(model: DesignComponentGroupRemoteModel);
16
20
  addChild(groupId: string): void;
17
21
  addChildren(groupsIds: Array<string>): void;
@@ -1,9 +1,9 @@
1
1
  import { Resource, ResourceModel, ResourceType } from "./SDKResource";
2
2
  export type ResourceFontModel = ResourceModel & {
3
- fontProperties?: {
3
+ fontProperties?: Array<{
4
4
  family?: string;
5
5
  subfamily?: string;
6
- };
6
+ }>;
7
7
  };
8
8
  export declare class ResourceFont extends Resource {
9
9
  type: ResourceType;
@@ -2,7 +2,9 @@ export declare enum FrameType {
2
2
  DOCUMENT = "DOCUMENT",
3
3
  CANVAS = "CANVAS",
4
4
  COMPONENT_SET = "COMPONENT_SET",
5
+ COMPONENT_VARIANT = "COMPONENT_VARIANT",
5
6
  COMPONENT = "COMPONENT",
7
+ SECTION = "SECTION",
6
8
  FRAME = "FRAME"
7
9
  }
8
10
  export type FigmaFrameModel = {
@@ -1,10 +1,15 @@
1
1
  import { ImportWarningType } from "../enums/SDKCloudWarningType";
2
2
  import { SourceType } from "../enums/SDKSourceType";
3
+ declare enum SourceRemoteType {
4
+ figma = "Figma",
5
+ tokenStudio = "TokenStudio",
6
+ figmaVariablesPlugin = "FigmaVariablesPlugin",
7
+ upload = "Upload"
8
+ }
3
9
  export type SourceRemoteModel = {
4
- type: SourceType;
10
+ type: SourceRemoteType;
5
11
  id: string;
6
12
  fileName?: string;
7
- linkType: "Design" | "Frames";
8
13
  brandId?: string;
9
14
  plugin?: {
10
15
  fileId: string;
@@ -28,11 +33,14 @@ export type SourceRemoteModelCloud = {
28
33
  lastUpdatesCheckedAt?: string;
29
34
  lastImportedVersion?: {
30
35
  id: string;
36
+ /** Date of file creation in Figma */
31
37
  created_at: string;
32
38
  label?: string;
33
39
  description: string;
34
40
  };
41
+ /** This indicates last import try attempt, either failed or succeed */
35
42
  lastImportedAt?: string;
43
+ /** This is last successful import results, so if last import failed this won't change */
36
44
  lastImportResult?: {
37
45
  sourceId: string;
38
46
  brandId: string;
@@ -58,7 +66,7 @@ export type SourceRemoteModelCloud = {
58
66
  };
59
67
  ownerId: string;
60
68
  ownerUserName: string;
61
- state: string;
69
+ state: "Active" | "MissingIntegration" | "MissingFileAccess" | "MissingFileOwner";
62
70
  stats: {
63
71
  tokens: number;
64
72
  components: number;
@@ -100,6 +108,7 @@ export type SourceRemoteModelTokensStudio = {
100
108
  export type SourceRemoteModelFigmaVariablesPlugin = {
101
109
  fileId: string;
102
110
  lastImportedAt?: string;
111
+ lastImportMetadata?: Record<string, any>;
103
112
  };
104
113
  export type SourceModelTokenStudio = Omit<SourceRemoteModelTokensStudio, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
105
114
  lastUpdatesCheckedAt?: Date;
@@ -112,14 +121,13 @@ export type SourceModelCloud = Omit<SourceRemoteModelCloud, "lastUpdatesCheckedA
112
121
  export type SourceModelFigmaVariablesPlugin = Omit<SourceRemoteModelFigmaVariablesPlugin, "lastImportedAt"> & {
113
122
  lastImportedAt?: Date;
114
123
  };
115
- export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "linkType" | "brandId" | "scope"> & {
124
+ export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "brandId" | "scope"> & {
116
125
  cloud?: SourceRemoteModelCloud | null;
117
126
  };
118
127
  export declare class Source {
119
128
  type: SourceType;
120
129
  id: string;
121
130
  fileName: string | null;
122
- linkType: "Design" | "Frames";
123
131
  brandId: string | null;
124
132
  cloud: SourceModelCloud | null;
125
133
  tokenStudio?: SourceModelTokenStudio | null;
@@ -139,3 +147,4 @@ export declare class Source {
139
147
  /** Reconstructs class from the transport model */
140
148
  static fromTransport(model: SourceTransportModel): SourceRemoteModel;
141
149
  }
150
+ export {};
@@ -1,4 +1,4 @@
1
- import { SourceType } from "../../model/enums/SDKSourceType";
1
+ import { SourceType } from "../enums/SDKSourceType";
2
2
  export type TokenOriginModel = {
3
3
  id?: string;
4
4
  name?: string;
@@ -34,22 +34,22 @@ export declare class TokenTheme {
34
34
  private tokensToOverrides;
35
35
  toWriteOverrideObject(token: Token): TokenThemeOverrideRemoteModel;
36
36
  valueToWriteObject(value: AnyTokenValue, type: TokenType, token: AnyToken): import("../tokens/remote/SDKRemoteTokenData").ShadowTokenRemoteData | import("../tokens/remote/SDKRemoteTokenData").GradientTokenRemoteData | {
37
- aliasTo: string;
37
+ aliasTo: string | undefined;
38
38
  value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
39
39
  } | {
40
- aliasTo: string;
40
+ aliasTo: string | undefined;
41
41
  value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
42
42
  } | {
43
- aliasTo: string;
43
+ aliasTo: string | undefined;
44
44
  value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
45
45
  } | {
46
- aliasTo: string;
46
+ aliasTo: string | undefined;
47
47
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
48
48
  } | {
49
- aliasTo: string;
49
+ aliasTo: string | undefined;
50
50
  value: string;
51
51
  } | {
52
- aliasTo: string;
52
+ aliasTo: string | undefined;
53
53
  value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
54
54
  };
55
55
  }
@@ -10,6 +10,11 @@ export type TokenThemeOverrideRemoteModel = {
10
10
  createdAt?: string;
11
11
  updatedAt?: string;
12
12
  };
13
+ export type TokenThemeOverrideTranserObject = {
14
+ data: ColorTokenRemoteData | AnyStringTokenRemoteData | TypographyTokenRemoteData | ShadowTokenRemoteData | AnyDimensionTokenRemoteData | BorderTokenRemoteData | GradientTokenRemoteData | BlurTokenRemoteData | AnyOptionTokenRemoteData;
15
+ tokenPersistentId?: string;
16
+ type?: TokenType;
17
+ };
13
18
  export declare class TokenThemeOverride {
14
19
  value: AnyTokenValue;
15
20
  tokenId: string;
@@ -20,22 +25,22 @@ export declare class TokenThemeOverride {
20
25
  constructor(model: TokenThemeOverrideRemoteModel, value: AnyTokenValue);
21
26
  toWriteObject(): TokenThemeOverrideRemoteModel;
22
27
  valueToWriteObject(value: AnyTokenValue, type: TokenType): ShadowTokenRemoteData | GradientTokenRemoteData | {
23
- aliasTo: string;
28
+ aliasTo: string | undefined;
24
29
  value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
25
30
  } | {
26
- aliasTo: string;
31
+ aliasTo: string | undefined;
27
32
  value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
28
33
  } | {
29
- aliasTo: string;
34
+ aliasTo: string | undefined;
30
35
  value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
31
36
  } | {
32
- aliasTo: string;
37
+ aliasTo: string | undefined;
33
38
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
34
39
  } | {
35
- aliasTo: string;
40
+ aliasTo: string | undefined;
36
41
  value: string;
37
42
  } | {
38
- aliasTo: string;
43
+ aliasTo: string | undefined;
39
44
  value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
40
45
  };
41
46
  }
@@ -18,10 +18,11 @@ export declare class ColorToken extends Token {
18
18
  static colorValueFromDefinitionOrReference(definition: string | object, referenceResolver: DTTokenReferenceResolver): ColorTokenValue | undefined;
19
19
  toHex6(): string;
20
20
  toHex8(): string;
21
+ static hexToColorValue(hex: string): ColorTokenValue;
21
22
  static colorValueToHex6(value: ColorTokenValue): string;
22
23
  static colorValueToHex8(value: ColorTokenValue): string;
23
24
  /** Normalizes any color value to server readable value, and ignores alpha value optionally */
24
- static colorStringToNormalizedServerValue(value: string | undefined | null, ignoreAlpha?: boolean): string;
25
+ static colorStringToNormalizedServerValue(value: string | undefined | null, ignoreAlpha?: boolean): string | null;
25
26
  static normalizedDefaultServerValue(): string;
26
27
  updateWithRawValue(value: Omit<ColorTokenValue, "referencedTokenId">): void;
27
28
  updateWithReferencedValue(value: ColorToken): void;
@@ -75,7 +75,7 @@ export declare class ZIndexToken extends DimensionCategoryToken<ZIndexTokenValue
75
75
  tokenType: TokenType.zIndex;
76
76
  }
77
77
  export type AnyDimensionToken = DimensionToken | SizeToken | SpaceToken | OpacityToken | FontSizeToken | LineHeightToken | LetterSpacingToken | ParagraphSpacingToken | BorderWidthToken | RadiusToken | DurationToken | ZIndexToken;
78
- export declare const resolveDimension: <TK extends TokenType.dimension | TokenType.size | TokenType.space | TokenType.opacity | TokenType.fontSize | TokenType.lineHeight | TokenType.letterSpacing | TokenType.paragraphSpacing | TokenType.borderWidth | TokenType.radius | TokenType.duration | TokenType.zIndex>(type: TK) => {
78
+ export declare const resolveDimension: <TK extends TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex>(type: TK) => {
79
79
  Color: typeof import("./SDKColorToken").ColorToken;
80
80
  Typography: typeof import("./SDKTypographyToken").TypographyToken;
81
81
  Blur: typeof import("./SDKBlurToken").BlurToken;
@@ -15,6 +15,7 @@ export declare class ShadowToken extends Token {
15
15
  constructor(versionId: string, baseToken: TokenRemoteModel, value: ShadowTokenValue[], alias: ShadowToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
16
16
  static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: ShadowToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): ShadowToken;
17
17
  static shadowValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): ShadowTokenValue[];
18
+ static shadowTokenColorAndOpacityToHex8(shadowTokenValue: ShadowTokenValue): string;
18
19
  static shadowSingleValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): ShadowTokenValue;
19
20
  toWriteObject(): ShadowTokenRemoteModel;
20
21
  static valueToWriteObject(value: ShadowTokenValue[]): ShadowTokenRemoteData;
@@ -32,7 +32,7 @@ export declare class FontWeightToken extends StringCategoryToken<FontWeightToken
32
32
  tokenType: TokenType.fontWeight;
33
33
  }
34
34
  export type AnyStringToken = StringToken | ProductCopyToken | FontFamilyToken | FontWeightToken;
35
- export declare const resolveString: <TK extends TokenType.string | TokenType.productCopy | TokenType.fontFamily | TokenType.fontWeight>(type: TK) => {
35
+ export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => {
36
36
  Color: typeof import("./SDKColorToken").ColorToken;
37
37
  Typography: typeof import("./SDKTypographyToken").TypographyToken;
38
38
  Blur: typeof import("./SDKBlurToken").BlurToken;
@@ -13,7 +13,7 @@ export declare class TextCaseToken extends Token {
13
13
  static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextCaseToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextCaseToken;
14
14
  static textCaseFromDefinition(textCase: string): {
15
15
  value: TextCase;
16
- referencedTokenId: any;
16
+ referencedTokenId: null;
17
17
  };
18
18
  toWriteObject(): TextCaseTokenRemoteModel;
19
19
  static valueToWriteObject(value: TextCaseTokenValue): {
@@ -14,7 +14,7 @@ export declare class TextDecorationToken extends Token {
14
14
  static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextDecorationToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextDecorationToken;
15
15
  static textDecorationFromDefinition(textDecoration: string): {
16
16
  value: TextDecoration;
17
- referencedTokenId: any;
17
+ referencedTokenId: null;
18
18
  };
19
19
  static optionValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: OptionTokenType): AnyOptionTokenValue;
20
20
  static optionValueFromDefinition(definition: string, type: OptionTokenType): AnyOptionTokenValue;
@@ -4,14 +4,14 @@ export declare class TokenComparator {
4
4
  static isEqualTokenValue(a: Token, b: Token): boolean;
5
5
  static referencesSameToken(a: AnyPlainTokenValue, b: AnyPlainTokenValue): boolean;
6
6
  static anyIsReference(a: AnyPlainTokenValue, b: AnyPlainTokenValue): boolean;
7
- static isUndefinedValue(a: AnyPlainTokenValue, b: AnyPlainTokenValue): boolean;
7
+ static isUndefinedValue(a: AnyPlainTokenValue | undefined | null, b: AnyPlainTokenValue | undefined | null): boolean;
8
8
  static isEqualBlurTokenValue(a: BlurTokenValue, b: BlurTokenValue): boolean;
9
9
  static isEqualBorderTokenValue(a: BorderTokenValue, b: BorderTokenValue): boolean;
10
10
  static isEqualColorTokenValue(a: ColorTokenValue, b: ColorTokenValue): boolean;
11
11
  static isEqualGradientsTokenValue(a: GradientTokenValue[], b: GradientTokenValue[]): boolean;
12
12
  static isEqualGradientTokenValue(a: GradientTokenValue, b: GradientTokenValue): boolean;
13
13
  static isEqualGradientStops(a: Array<GradientStopValue>, b: Array<GradientStopValue>): boolean;
14
- static isEqualDimensionTokenValue(a: AnyDimensionTokenValue, b: AnyDimensionTokenValue): boolean;
14
+ static isEqualDimensionTokenValue(a: AnyDimensionTokenValue | undefined | null, b: AnyDimensionTokenValue | undefined | null): boolean;
15
15
  static isEqualShadowsTokenValue(a: ShadowTokenValue[], b: ShadowTokenValue[]): boolean;
16
16
  static isEqualShadowTokenValue(a: ShadowTokenValue, b: ShadowTokenValue): boolean;
17
17
  static isEqualStringTokenValue(a: AnyStringTokenValue, b: AnyStringTokenValue): boolean;
@@ -54,7 +54,7 @@ export type ShadowTokenValue = {
54
54
  y: number;
55
55
  radius: number;
56
56
  spread: number;
57
- opacity: OpacityTokenValue;
57
+ opacity?: OpacityTokenValue;
58
58
  type: ShadowType;
59
59
  referencedTokenId: string | null;
60
60
  };
@@ -192,9 +192,9 @@ export type AnyPlainTokenValue = Exclude<AnyTokenValue, ShadowTokenValue[] | Gra
192
192
  export type RawValue<T extends {
193
193
  referencedTokenId: string;
194
194
  }> = Omit<T, "referencedTokenId">;
195
- export declare const getReferencedTokens: (token: AnyToken, allTokens: Map<string, Token>) => Token[];
195
+ export declare const getReferencedTokens: (token: AnyToken, allTokens: Map<string, Token>) => (Token | undefined)[];
196
196
  export declare const getSingleReferencedTokenId: (token: AnyToken, allTokens: Map<string, Token>) => string | undefined;
197
- export declare const checkSingleReferencedTokenById: (token: AnyToken, candidateId: string, allTokens: Map<string, Token>) => boolean;
197
+ export declare const checkSingleReferencedTokenById: (token: AnyToken, candidateId: string, allTokens: Map<string, Token>) => boolean | "";
198
198
  export declare const replaceReferencedTokenIds: (token: AnyToken, currentId: string, newId: string, allTokens: Map<string, Token>) => void;
199
199
  export declare const replaceReferencedToken: (token: Token, existingToken: AnyToken, newToken: AnyToken) => void;
200
200
  export declare const replaceReferencedTokenByIds: (token: Token, existingTokenId: string, newTokenId: string) => void;
@@ -30,7 +30,7 @@ export type ShadowTokenRemoteValue = {
30
30
  y: number;
31
31
  radius: number;
32
32
  spread: number;
33
- opacity: OpacityTokenRemoteData;
33
+ opacity?: OpacityTokenRemoteData;
34
34
  type: ShadowType;
35
35
  };
36
36
  export type DimensionTokenRemoteValue = {
@@ -0,0 +1,15 @@
1
+ export type WorkspaceNPMRegistryAccessTokenRemoteModel = {
2
+ accessToken: string;
3
+ registryUrl: string;
4
+ version: number;
5
+ };
6
+ export type WorkspaceNPMRegistryAccessTokenTransportModel = WorkspaceNPMRegistryAccessTokenRemoteModel;
7
+ export declare class WorkspaceNPMRegistryAccessToken {
8
+ accessToken: string;
9
+ registryUrl: string;
10
+ version: number;
11
+ constructor(model: WorkspaceNPMRegistryAccessTokenRemoteModel);
12
+ toRemote(): WorkspaceNPMRegistryAccessTokenTransportModel;
13
+ toTransport(): WorkspaceNPMRegistryAccessTokenTransportModel;
14
+ static fromTransport(model: WorkspaceNPMRegistryAccessTokenTransportModel): WorkspaceNPMRegistryAccessToken;
15
+ }
@@ -10,9 +10,9 @@ export declare class FigmaTokensDataLoader {
10
10
  settings: DTPluginToSupernovaSettings;
11
11
  mapping: {
12
12
  supernovaBrand: string;
13
- supernovaTheme: string;
14
- tokensTheme: string | string[];
15
- tokenSets: string[];
13
+ supernovaTheme: string | null;
14
+ tokensTheme: string | string[] | null;
15
+ tokenSets: string[] | null;
16
16
  }[];
17
17
  payload: object;
18
18
  }>;
@@ -1,6 +1,7 @@
1
1
  import { Supernova } from "../../core/SDKSupernova";
2
2
  import { Brand } from "../../model/base/SDKBrand";
3
3
  import { TokenGroup } from "../../model/groups/SDKTokenGroup";
4
+ import { Logger } from "../../model/support/SDKLogger";
4
5
  import { TokenTheme } from "../../model/themes/SDKTokenTheme";
5
6
  import { Token } from "../../model/tokens/SDKToken";
6
7
  import { AnyToken } from "../../model/tokens/SDKTokenValue";
@@ -25,7 +26,7 @@ export declare class SupernovaToolsDesignTokensPlugin {
25
26
  private versionId;
26
27
  private sortMultiplier;
27
28
  private logger;
28
- constructor(designSystemId: string, versionId: string, instance: Supernova);
29
+ constructor(designSystemId: string, versionId: string, instance: Supernova, logger?: Logger);
29
30
  synchronizeTokensFromData(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<object>;
30
31
  synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<{
31
32
  results: SupernovaToolsDesignTokensResult[];
@@ -1,5 +1,5 @@
1
- import { Logger } from "../../../model/support/SDKLogger";
2
1
  import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
2
+ import { Logger } from "../../../model/support/SDKLogger";
3
3
  export type DTParsedNode = {
4
4
  rootKey: string;
5
5
  name: string;
@@ -7,6 +7,6 @@ export type TokenTreeElement = Token | TokenGroup;
7
7
  export declare class GroupTree extends GroupTreeNode {
8
8
  childType: TokenType;
9
9
  constructor(backingElement: TokenTreeElement);
10
- static populate(root: TokenTreeElement, elements: Array<TokenTreeElement>, parentChildrenMap: Map<string, Array<TokenTreeElement>>): GroupTree;
10
+ static populate(root: TokenTreeElement, elements: Array<TokenTreeElement>, parentChildrenMap: Map<string, Array<TokenTreeElement>>): GroupTree | null;
11
11
  }
12
12
  export declare function buildBrandedElementRoots(elements: TokenTreeElement[]): Map<string, Map<TokenType, GroupTree>>;