@supernova-studio/model 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
@@ -2911,6 +2911,9 @@ var Brand = z109.object({
2911
2911
  description: z109.string()
2912
2912
  });
2913
2913
 
2914
+ // src/dsm/design-system-update.ts
2915
+ import { z as z114 } from "zod";
2916
+
2914
2917
  // src/dsm/design-system.ts
2915
2918
  import { z as z113 } from "zod";
2916
2919
 
@@ -3034,43 +3037,41 @@ var DesignSystemWithWorkspace = z113.object({
3034
3037
  workspace: Workspace
3035
3038
  });
3036
3039
 
3037
- // src/dsm/desing-system-create.ts
3038
- import { z as z114 } from "zod";
3040
+ // src/dsm/design-system-update.ts
3039
3041
  var DS_NAME_MIN_LENGTH = 2;
3040
3042
  var DS_NAME_MAX_LENGTH = 64;
3041
3043
  var DS_DESC_MAX_LENGTH = 64;
3042
- var DesignSystemCreateInputMetadata = z114.object({
3043
- name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
3044
- description: z114.string().max(DS_DESC_MAX_LENGTH).trim()
3045
- });
3046
- var DesignSystemCreateInput = z114.object({
3047
- meta: DesignSystemCreateInputMetadata,
3048
- workspaceId: z114.string(),
3049
- isPublic: z114.boolean().optional(),
3050
- basePrefixes: z114.array(z114.string()).optional(),
3051
- docUserSlug: z114.string().nullish().optional(),
3052
- source: z114.array(z114.string()).optional()
3044
+ var DesignSystemUpdateInputMetadata = z114.object({
3045
+ name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3046
+ description: z114.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3047
+ });
3048
+ var DesignSystemUpdateInput = DesignSystem.partial().omit({
3049
+ id: true,
3050
+ createdAt: true,
3051
+ updatedAt: true,
3052
+ docSlug: true,
3053
+ docViewUrl: true,
3054
+ designSystemSwitcher: true
3055
+ }).extend({
3056
+ meta: DesignSystemUpdateInputMetadata.optional()
3053
3057
  });
3054
3058
 
3055
- // src/dsm/desing-system-update.ts
3059
+ // src/dsm/desing-system-create.ts
3056
3060
  import { z as z115 } from "zod";
3057
3061
  var DS_NAME_MIN_LENGTH2 = 2;
3058
3062
  var DS_NAME_MAX_LENGTH2 = 64;
3059
3063
  var DS_DESC_MAX_LENGTH2 = 64;
3060
- var DesignSystemUpdateInputMetadata = z115.object({
3061
- name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3062
- description: z115.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
3064
+ var DesignSystemCreateInputMetadata = z115.object({
3065
+ name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3066
+ description: z115.string().max(DS_DESC_MAX_LENGTH2).trim()
3063
3067
  });
3064
- var DesignSystemUpdateInput = z115.object({
3065
- meta: DesignSystemUpdateInputMetadata.optional(),
3066
- workspaceId: z115.string().optional(),
3068
+ var DesignSystemCreateInput = z115.object({
3069
+ meta: DesignSystemCreateInputMetadata,
3070
+ workspaceId: z115.string(),
3067
3071
  isPublic: z115.boolean().optional(),
3068
3072
  basePrefixes: z115.array(z115.string()).optional(),
3069
3073
  docUserSlug: z115.string().nullish().optional(),
3070
- source: z115.array(z115.string()).optional(),
3071
- name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3072
- description: z115.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
3073
- docExporterId: z115.string().optional()
3074
+ source: z115.array(z115.string()).optional()
3074
3075
  });
3075
3076
 
3076
3077
  // src/dsm/exporter-property-values-collection.ts