@wix/ditto-codegen-public 1.0.101 → 1.0.103

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 +22 -25
  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 = () => `
@@ -132500,7 +132497,7 @@ var require_dashboardPage = __commonJS({
132500
132497
  });
132501
132498
  }
132502
132499
  console.log("\u{1F3AF} Using auto-patterns for dashboard generation");
132503
- const relevantCollection = plan?.collections?.map((op) => op.data).find((c) => c.id === decision.relevantCollectionId);
132500
+ const relevantCollection = plan?.collections?.map((op) => op.data).find((c) => c.idSuffix === decision.relevantCollectionId);
132504
132501
  if (!relevantCollection) {
132505
132502
  throw new ditto_codegen_types_12.ResourceNotFoundError(`Collection with ID ${decision.relevantCollectionId} not found in created collections`, {
132506
132503
  resourceType: ditto_codegen_types_12.ResourceType.COLLECTION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
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": "508d435510f0b0c5e1a4ce488987efcc1f65ca703410ffc6351bb665"
27
+ "falconPackageHash": "f4896fb3c47191e6cae26e42aab1127301547f56c980164161f46bce"
28
28
  }