@wix/ditto-codegen-public 1.0.102 → 1.0.104

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 +23 -26
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -116676,31 +116676,28 @@ var require_data = __commonJS({
116676
116676
  "use strict";
116677
116677
  Object.defineProperty(exports2, "__esModule", { value: true });
116678
116678
  exports2.cmsPlannerPrompt = void 0;
116679
- var types_impl_1 = require_types_impl2();
116679
+ var types_1 = require_types_impl2();
116680
116680
  var handlingFeesExample = {
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_impl_1.AccessLevel.ANYONE,
116700
- itemInsert: types_impl_1.AccessLevel.ANYONE,
116701
- itemUpdate: types_impl_1.AccessLevel.ANYONE,
116702
- itemRemove: types_impl_1.AccessLevel.ANYONE
116703
- }
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
116704
116701
  }
116705
116702
  };
116706
116703
  var cmsPlannerPrompt = () => `
@@ -132671,11 +132668,11 @@ var require_cms = __commonJS({
132671
132668
  return [];
132672
132669
  }
132673
132670
  const files = [];
132674
- const collectionsData = plan.collections.map((collection) => {
132671
+ const collectionsData = plan.collections.map((collectionOperation) => {
132675
132672
  return {
132676
132673
  schemaUrl: `https://www.wix.com/`,
132677
132674
  // TODO: remove once Wix Data are deprecating it
132678
- ...collection
132675
+ ...collectionOperation.data
132679
132676
  };
132680
132677
  });
132681
132678
  const generatedCode = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.102",
3
+ "version": "1.0.104",
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": "09848553897f164c341e2b25d015c8720120c9263cd4bb2e568fabf8"
27
+ "falconPackageHash": "97367f57f499b24451bd4015ca3fb27378ade5438341d42e2a5f8831"
28
28
  }