@supernova-studio/client 0.48.8 → 0.48.10

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
@@ -118,12 +118,12 @@ import { z as z106 } from "zod";
118
118
  import { z as z107 } from "zod";
119
119
  import { z as z108 } from "zod";
120
120
  import { z as z109 } from "zod";
121
+ import { z as z114 } from "zod";
121
122
  import { z as z113 } from "zod";
122
123
  import IPCIDR from "ip-cidr";
123
124
  import { z as z112 } from "zod";
124
125
  import { z as z110 } from "zod";
125
126
  import { z as z111 } from "zod";
126
- import { z as z114 } from "zod";
127
127
  import { z as z115 } from "zod";
128
128
  import { z as z116 } from "zod";
129
129
  import { z as z117 } from "zod";
@@ -2647,35 +2647,34 @@ var DesignSystemWithWorkspace = z113.object({
2647
2647
  var DS_NAME_MIN_LENGTH = 2;
2648
2648
  var DS_NAME_MAX_LENGTH = 64;
2649
2649
  var DS_DESC_MAX_LENGTH = 64;
2650
- var DesignSystemCreateInputMetadata = z114.object({
2651
- name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2652
- description: z114.string().max(DS_DESC_MAX_LENGTH).trim()
2650
+ var DesignSystemUpdateInputMetadata = z114.object({
2651
+ name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
2652
+ description: z114.string().max(DS_DESC_MAX_LENGTH).trim().optional()
2653
2653
  });
2654
- var DesignSystemCreateInput = z114.object({
2655
- meta: DesignSystemCreateInputMetadata,
2656
- workspaceId: z114.string(),
2657
- isPublic: z114.boolean().optional(),
2658
- basePrefixes: z114.array(z114.string()).optional(),
2659
- docUserSlug: z114.string().nullish().optional(),
2660
- source: z114.array(z114.string()).optional()
2654
+ var DesignSystemUpdateInput = DesignSystem.partial().omit({
2655
+ id: true,
2656
+ createdAt: true,
2657
+ updatedAt: true,
2658
+ docSlug: true,
2659
+ docViewUrl: true,
2660
+ designSystemSwitcher: true
2661
+ }).extend({
2662
+ meta: DesignSystemUpdateInputMetadata.optional()
2661
2663
  });
2662
2664
  var DS_NAME_MIN_LENGTH2 = 2;
2663
2665
  var DS_NAME_MAX_LENGTH2 = 64;
2664
2666
  var DS_DESC_MAX_LENGTH2 = 64;
2665
- var DesignSystemUpdateInputMetadata = z115.object({
2666
- name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2667
- description: z115.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2667
+ var DesignSystemCreateInputMetadata = z115.object({
2668
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
2669
+ description: z115.string().max(DS_DESC_MAX_LENGTH2).trim()
2668
2670
  });
2669
- var DesignSystemUpdateInput = z115.object({
2670
- meta: DesignSystemUpdateInputMetadata.optional(),
2671
- workspaceId: z115.string().optional(),
2671
+ var DesignSystemCreateInput = z115.object({
2672
+ meta: DesignSystemCreateInputMetadata,
2673
+ workspaceId: z115.string(),
2672
2674
  isPublic: z115.boolean().optional(),
2673
2675
  basePrefixes: z115.array(z115.string()).optional(),
2674
2676
  docUserSlug: z115.string().nullish().optional(),
2675
- source: z115.array(z115.string()).optional(),
2676
- name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2677
- description: z115.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2678
- docExporterId: z115.string().optional()
2677
+ source: z115.array(z115.string()).optional()
2679
2678
  });
2680
2679
  var ExporterPropertyImageValue = z116.object({
2681
2680
  asset: PageBlockAsset.optional(),
@@ -4790,6 +4789,9 @@ var DTOCreateBrandInput = z170.object({
4790
4789
  })
4791
4790
  });
4792
4791
 
4792
+ // src/api/payloads/design-systems/update-design-system.ts
4793
+ var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
4794
+
4793
4795
  // src/api/payloads/design-systems/version.ts
4794
4796
  import { z as z171 } from "zod";
4795
4797
  var ObjectMeta2 = z171.object({
@@ -10795,6 +10797,7 @@ export {
10795
10797
  DTODeleteElementPropertyDefinitionInputV2,
10796
10798
  DTODesignElementsDataDiffResponse,
10797
10799
  DTODesignSystem,
10800
+ DTODesignSystemUpdateInput,
10798
10801
  DTODesignSystemVersion,
10799
10802
  DTODesignSystemVersionCreationResponse,
10800
10803
  DTODesignSystemVersionGetResponse,