@wix/ditto-codegen-public 1.0.231 → 1.0.232

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.
Files changed (2) hide show
  1. package/dist/out.js +5 -9
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -47080,9 +47080,9 @@ var require_EmbeddedScriptSchema = __commonJS({
47080
47080
  extensionId: zod_1.z.string().describe("The extension ID of the embedded script"),
47081
47081
  keys: zod_1.z.array(zod_1.z.string()).min(1).describe("Array of parameter keys to delete")
47082
47082
  }).describe("Delete one or more embedded script parameters by providing extensionId and array of keys");
47083
- exports2.EmbeddedScriptParametersOperationSchema = zod_1.z.discriminatedUnion("operation", [
47083
+ exports2.EmbeddedScriptParametersOperationSchema = zod_1.z.union([
47084
47084
  zod_1.z.object({
47085
- operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
47085
+ operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT).default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
47086
47086
  data: EmbeddedScriptParametersSchema.describe("Complete embedded script parameters data for insertion (all parameters for the extension)")
47087
47087
  }),
47088
47088
  zod_1.z.object({
@@ -47438,9 +47438,9 @@ var require_PlannerAgentSchema = __commonJS({
47438
47438
  var DeleteCollectionDataSchema = zod_1.default.object({
47439
47439
  idSuffix: zod_1.default.string().describe("The ID suffix of the collection to delete")
47440
47440
  });
47441
- var CollectionOperationSchema = zod_1.default.discriminatedUnion("operation", [
47441
+ var CollectionOperationSchema = zod_1.default.union([
47442
47442
  zod_1.default.object({
47443
- operation: zod_1.default.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
47443
+ operation: zod_1.default.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT).default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
47444
47444
  data: CollectionSchema.describe("Complete collection data for insertion")
47445
47445
  }),
47446
47446
  zod_1.default.object({
@@ -91716,11 +91716,7 @@ var require_file_operations = __commonJS({
91716
91716
  operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
91717
91717
  path: zod_1.z.string().describe("Relative file path from project root")
91718
91718
  });
91719
- exports2.FileItemSchema = zod_1.z.discriminatedUnion("operation", [
91720
- exports2.FileCreateOrUpdateSchema,
91721
- FileDeleteSchema,
91722
- FileEditSchema
91723
- ]).describe(`Representation of an operation that modifies a file on the local file system.
91719
+ exports2.FileItemSchema = zod_1.z.union([exports2.FileCreateOrUpdateSchema, FileEditSchema, FileDeleteSchema]).describe(`Representation of an operation that modifies a file on the local file system.
91724
91720
  Use the 'insert' operation to create a new file.
91725
91721
  Use the 'delete' operation to remove a file.
91726
91722
  To modify a file, you can either use the 'edit' operation to replace a specific strings with new strings (THIS IS THE PREFERRED WAY TO MODIFY A FILE), or use the 'update' operation to replace the entire file with new content.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.231",
3
+ "version": "1.0.232",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -28,5 +28,5 @@
28
28
  "@wix/ditto-codegen": "1.0.0",
29
29
  "esbuild": "^0.27.2"
30
30
  },
31
- "falconPackageHash": "2be3edfa7baf28e64a90fb2fb90ba630efb7cde59862fe4879868735"
31
+ "falconPackageHash": "dc475beaff405832fd326b7ccbc45bb3e5c7649c72d572553aeae35f"
32
32
  }