@supernova-studio/client 1.94.0 → 1.94.1
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 +1995 -101
- package/dist/index.d.ts +1995 -101
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11473,7 +11473,19 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
11473
11473
|
isArchived: true,
|
|
11474
11474
|
thumbnail: true
|
|
11475
11475
|
}).extend({
|
|
11476
|
-
thumbnailFileId: z337.string().optional()
|
|
11476
|
+
thumbnailFileId: z337.string().optional(),
|
|
11477
|
+
theme: DTOForgeProjectTheme.optional(),
|
|
11478
|
+
iconSet: DTOForgeIconSet.optional(),
|
|
11479
|
+
componentSet: DTOForgeComponentSet.optional()
|
|
11480
|
+
}).superRefine((input, ctx) => {
|
|
11481
|
+
const hasDefaultTemplateFields = input.theme && input.iconSet && input.componentSet;
|
|
11482
|
+
const hasCustomTemplateFields = input.sandboxTemplate;
|
|
11483
|
+
if (hasDefaultTemplateFields || hasCustomTemplateFields) return;
|
|
11484
|
+
ctx.addIssue({
|
|
11485
|
+
code: z337.ZodIssueCode.custom,
|
|
11486
|
+
message: "Either the setup fields for default template (theme, iconSet, componentSet) or a sandbox template field (sandboxTemplate) must be provided.",
|
|
11487
|
+
path: ["theme", "iconSet", "componentSet", "sandboxTemplate"]
|
|
11488
|
+
});
|
|
11477
11489
|
});
|
|
11478
11490
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
11479
11491
|
id: true,
|