@supernova-studio/client 1.6.8 → 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.mjs CHANGED
@@ -864,7 +864,8 @@ var SupernovaException = class _SupernovaException extends Error {
864
864
  // Properties
865
865
  //
866
866
  constructor(type, message) {
867
- super(`${type}: ${message}`);
867
+ const fullMessage = message || `${type}: something went wrong`;
868
+ super(fullMessage);
868
869
  this.type = type;
869
870
  }
870
871
  static wrongFormat(message) {
@@ -6027,6 +6028,11 @@ var DTOStorybookSourceUpdatePayload = z203.object({
6027
6028
  isUsingVpn: z203.boolean().optional(),
6028
6029
  fileName: z203.string().optional()
6029
6030
  });
6031
+ var DTOFigmaSourceUpdatePayload = z203.object({
6032
+ themeId: z203.string().optional(),
6033
+ scope: DataSourceFigmaScope.optional(),
6034
+ autoImportMode: DataSourceAutoImportMode.optional()
6035
+ });
6030
6036
 
6031
6037
  // src/api/dto/design-systems/design-system.ts
6032
6038
  import { z as z206 } from "zod";
@@ -9137,6 +9143,18 @@ var DesignSystemSourcesEndpoint = class {
9137
9143
  delete(dsId, sourceId) {
9138
9144
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z286.any(), { method: "DELETE" });
9139
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
+ }
9140
9158
  figmaImport(dsId, payload) {
9141
9159
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
9142
9160
  method: "POST",
@@ -15224,6 +15242,7 @@ export {
15224
15242
  DTOFigmaNodeStructureDetailResponse,
15225
15243
  DTOFigmaNodeStructureListResponse,
15226
15244
  DTOFigmaNodeV2,
15245
+ DTOFigmaSourceUpdatePayload,
15227
15246
  DTOFrameNodeStructure,
15228
15247
  DTOFrameNodeStructureListResponse,
15229
15248
  DTOGetBlockDefinitionsOutput,