@supernova-studio/client 1.6.8 → 1.7.0
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/dist/index.d.mts +332 -1
- package/dist/index.d.ts +332 -1
- package/dist/index.js +38 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -864,7 +864,8 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
864
864
|
// Properties
|
|
865
865
|
//
|
|
866
866
|
constructor(type, message) {
|
|
867
|
-
|
|
867
|
+
const fullMessage = message || `${type}: something went wrong`;
|
|
868
|
+
super(fullMessage);
|
|
868
869
|
this.type = type;
|
|
869
870
|
}
|
|
870
871
|
static wrongFormat(message) {
|
|
@@ -4915,6 +4916,14 @@ var ExportJobDocumentationContext = z177.object({
|
|
|
4915
4916
|
versionSlug: z177.string(),
|
|
4916
4917
|
environment: PublishedDocEnvironment
|
|
4917
4918
|
});
|
|
4919
|
+
var ExportJobDebugContext = z177.object({
|
|
4920
|
+
debugMode: z177.boolean().optional(),
|
|
4921
|
+
concurrency: z177.number().optional(),
|
|
4922
|
+
preloadData: z177.string().optional(),
|
|
4923
|
+
concurrencyMode: z177.string().optional(),
|
|
4924
|
+
cacheSdk: z177.boolean().optional(),
|
|
4925
|
+
logSdkNetwork: z177.boolean().optional()
|
|
4926
|
+
});
|
|
4918
4927
|
var ExportJobContext = z177.object({
|
|
4919
4928
|
apiUrl: z177.string(),
|
|
4920
4929
|
accessToken: z177.string(),
|
|
@@ -4927,7 +4936,8 @@ var ExportJobContext = z177.object({
|
|
|
4927
4936
|
themePersistentIds: z177.string().array().optional(),
|
|
4928
4937
|
previewMode: z177.boolean().optional(),
|
|
4929
4938
|
exporterName: z177.string(),
|
|
4930
|
-
documentation: ExportJobDocumentationContext.optional()
|
|
4939
|
+
documentation: ExportJobDocumentationContext.optional(),
|
|
4940
|
+
debug: ExportJobDebugContext.optional()
|
|
4931
4941
|
});
|
|
4932
4942
|
var ExportJobExporterConfiguration = z177.object({
|
|
4933
4943
|
exporterPackageUrl: z177.string(),
|
|
@@ -5038,7 +5048,13 @@ var FlaggedFeature = z183.enum([
|
|
|
5038
5048
|
"ShadowPropsKeepAliases",
|
|
5039
5049
|
"NonCompatibleTypeChanges",
|
|
5040
5050
|
"TypographyUseFontStyle",
|
|
5041
|
-
"FigmaImporterV3"
|
|
5051
|
+
"FigmaImporterV3",
|
|
5052
|
+
"PulsarDebugMode",
|
|
5053
|
+
"PulsarLogSdkNetwork",
|
|
5054
|
+
"PulsarCacheSdk",
|
|
5055
|
+
"PulsarPreloadData",
|
|
5056
|
+
"PulsarConcurrencyMode",
|
|
5057
|
+
"PulsarConcurrency"
|
|
5042
5058
|
]);
|
|
5043
5059
|
var FeatureFlagMap = z183.record(FlaggedFeature, z183.boolean());
|
|
5044
5060
|
var FeatureFlag = z183.object({
|
|
@@ -6027,6 +6043,11 @@ var DTOStorybookSourceUpdatePayload = z203.object({
|
|
|
6027
6043
|
isUsingVpn: z203.boolean().optional(),
|
|
6028
6044
|
fileName: z203.string().optional()
|
|
6029
6045
|
});
|
|
6046
|
+
var DTOFigmaSourceUpdatePayload = z203.object({
|
|
6047
|
+
themeId: z203.string().optional(),
|
|
6048
|
+
scope: DataSourceFigmaScope.optional(),
|
|
6049
|
+
autoImportMode: DataSourceAutoImportMode.optional()
|
|
6050
|
+
});
|
|
6030
6051
|
|
|
6031
6052
|
// src/api/dto/design-systems/design-system.ts
|
|
6032
6053
|
import { z as z206 } from "zod";
|
|
@@ -9137,6 +9158,18 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9137
9158
|
delete(dsId, sourceId) {
|
|
9138
9159
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z286.any(), { method: "DELETE" });
|
|
9139
9160
|
}
|
|
9161
|
+
updateFigmaSource(dsId, sourceId, payload) {
|
|
9162
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
9163
|
+
method: "PUT",
|
|
9164
|
+
body: payload
|
|
9165
|
+
});
|
|
9166
|
+
}
|
|
9167
|
+
updateStorybookSource(dsId, sourceId, payload) {
|
|
9168
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
9169
|
+
method: "PUT",
|
|
9170
|
+
body: payload
|
|
9171
|
+
});
|
|
9172
|
+
}
|
|
9140
9173
|
figmaImport(dsId, payload) {
|
|
9141
9174
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
9142
9175
|
method: "POST",
|
|
@@ -15224,6 +15257,7 @@ export {
|
|
|
15224
15257
|
DTOFigmaNodeStructureDetailResponse,
|
|
15225
15258
|
DTOFigmaNodeStructureListResponse,
|
|
15226
15259
|
DTOFigmaNodeV2,
|
|
15260
|
+
DTOFigmaSourceUpdatePayload,
|
|
15227
15261
|
DTOFrameNodeStructure,
|
|
15228
15262
|
DTOFrameNodeStructureListResponse,
|
|
15229
15263
|
DTOGetBlockDefinitionsOutput,
|