@wix/ditto-codegen-public 1.0.103 → 1.0.105

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 +26 -22
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -116678,26 +116678,29 @@ var require_data = __commonJS({
116678
116678
  exports2.cmsPlannerPrompt = void 0;
116679
116679
  var types_1 = require_types_impl2();
116680
116680
  var handlingFeesExample = {
116681
- idSuffix: "handling-fees-rules",
116682
- displayName: "Handling Fees Rules",
116683
- displayField: "productId",
116684
- fields: [
116685
- {
116686
- key: "productId",
116687
- displayName: "Product",
116688
- type: "REFERENCE",
116689
- referenceOptions: {
116690
- referencedCollectionId: "Stores/Products"
116691
- }
116692
- },
116693
- { key: "oversizedFee", displayName: "Oversized Fee", type: "NUMBER" },
116694
- { key: "fragileFee", displayName: "Fragile Fee", type: "NUMBER" }
116695
- ],
116696
- dataPermissions: {
116697
- itemRead: types_1.AccessLevel.ANYONE,
116698
- itemInsert: types_1.AccessLevel.ANYONE,
116699
- itemUpdate: types_1.AccessLevel.ANYONE,
116700
- itemRemove: types_1.AccessLevel.ANYONE
116681
+ operation: "insert",
116682
+ data: {
116683
+ idSuffix: "handling-fees-rules",
116684
+ displayName: "Handling Fees Rules",
116685
+ displayField: "productId",
116686
+ fields: [
116687
+ {
116688
+ key: "productId",
116689
+ displayName: "Product",
116690
+ type: "REFERENCE",
116691
+ referenceOptions: {
116692
+ referencedCollectionId: "Stores/Products"
116693
+ }
116694
+ },
116695
+ { key: "oversizedFee", displayName: "Oversized Fee", type: "NUMBER" },
116696
+ { key: "fragileFee", displayName: "Fragile Fee", type: "NUMBER" }
116697
+ ],
116698
+ dataPermissions: {
116699
+ itemRead: types_1.AccessLevel.ANYONE,
116700
+ itemInsert: types_1.AccessLevel.ANYONE,
116701
+ itemUpdate: types_1.AccessLevel.ANYONE,
116702
+ itemRemove: types_1.AccessLevel.ANYONE
116703
+ }
116701
116704
  }
116702
116705
  };
116703
116706
  var cmsPlannerPrompt = () => `
@@ -117758,7 +117761,8 @@ var require_PlannerAgent = __commonJS({
117758
117761
  var OperationEnum = zod_1.z.enum(["insert", "update", "delete"]).describe("Operation: insert (create new), update (modify existing), delete (remove existing)").default("insert");
117759
117762
  exports2.CollectionOperationSchema = zod_1.z.object({
117760
117763
  operation: OperationEnum,
117761
- data: wix_data_collections_extension_schema_1.CollectionSchema.describe("The collection data")
117764
+ data: wix_data_collections_extension_schema_1.DataCollectionsExtensionSchema.shape.collections.element.describe("The collection data")
117765
+ // get the collection schema element from array of collections
117762
117766
  });
117763
117767
  exports2.EmbeddedScriptParametersOperationSchema = zod_1.z.object({
117764
117768
  operation: OperationEnum,
@@ -132672,7 +132676,7 @@ var require_cms = __commonJS({
132672
132676
  return {
132673
132677
  schemaUrl: `https://www.wix.com/`,
132674
132678
  // TODO: remove once Wix Data are deprecating it
132675
- ...collection
132679
+ ...collection.data
132676
132680
  };
132677
132681
  });
132678
132682
  const generatedCode = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.103",
3
+ "version": "1.0.105",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -24,5 +24,5 @@
24
24
  "@wix/ditto-codegen": "1.0.0",
25
25
  "esbuild": "^0.25.9"
26
26
  },
27
- "falconPackageHash": "f4896fb3c47191e6cae26e42aab1127301547f56c980164161f46bce"
27
+ "falconPackageHash": "bf90ef4cdf87d17e6e46a5dae9d3f62ba7e95de551cf977b2ac1e41d"
28
28
  }