@supernova-studio/client 1.6.7 → 1.6.9
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 +23 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- 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) {
|
|
@@ -4465,8 +4466,9 @@ var StorybookEntryOrigin = z154.object({
|
|
|
4465
4466
|
id: z154.string(),
|
|
4466
4467
|
type: z154.enum(["story", "docs"]),
|
|
4467
4468
|
name: z154.string(),
|
|
4468
|
-
title: z154.string()
|
|
4469
|
+
title: z154.string(),
|
|
4469
4470
|
// Same as 'kind' for v3
|
|
4471
|
+
index: z154.number().optional()
|
|
4470
4472
|
});
|
|
4471
4473
|
var StorybookEntry = z154.object({
|
|
4472
4474
|
id: z154.string(),
|
|
@@ -6026,6 +6028,11 @@ var DTOStorybookSourceUpdatePayload = z203.object({
|
|
|
6026
6028
|
isUsingVpn: z203.boolean().optional(),
|
|
6027
6029
|
fileName: z203.string().optional()
|
|
6028
6030
|
});
|
|
6031
|
+
var DTOFigmaSourceUpdatePayload = z203.object({
|
|
6032
|
+
themeId: z203.string().optional(),
|
|
6033
|
+
scope: DataSourceFigmaScope.optional(),
|
|
6034
|
+
autoImportMode: DataSourceAutoImportMode.optional()
|
|
6035
|
+
});
|
|
6029
6036
|
|
|
6030
6037
|
// src/api/dto/design-systems/design-system.ts
|
|
6031
6038
|
import { z as z206 } from "zod";
|
|
@@ -9136,6 +9143,18 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9136
9143
|
delete(dsId, sourceId) {
|
|
9137
9144
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z286.any(), { method: "DELETE" });
|
|
9138
9145
|
}
|
|
9146
|
+
updateFigmaSource(dsId, sourceId, payload) {
|
|
9147
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
9148
|
+
method: "PUT",
|
|
9149
|
+
body: payload
|
|
9150
|
+
});
|
|
9151
|
+
}
|
|
9152
|
+
updateStorybookSource(dsId, sourceId, payload) {
|
|
9153
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
9154
|
+
method: "PUT",
|
|
9155
|
+
body: payload
|
|
9156
|
+
});
|
|
9157
|
+
}
|
|
9139
9158
|
figmaImport(dsId, payload) {
|
|
9140
9159
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
9141
9160
|
method: "POST",
|
|
@@ -15223,6 +15242,7 @@ export {
|
|
|
15223
15242
|
DTOFigmaNodeStructureDetailResponse,
|
|
15224
15243
|
DTOFigmaNodeStructureListResponse,
|
|
15225
15244
|
DTOFigmaNodeV2,
|
|
15245
|
+
DTOFigmaSourceUpdatePayload,
|
|
15226
15246
|
DTOFrameNodeStructure,
|
|
15227
15247
|
DTOFrameNodeStructureListResponse,
|
|
15228
15248
|
DTOGetBlockDefinitionsOutput,
|