@wix/ditto-codegen-public 1.0.104 → 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.
- package/dist/out.js +27 -23
- 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
|
-
|
|
116682
|
-
|
|
116683
|
-
|
|
116684
|
-
|
|
116685
|
-
|
|
116686
|
-
|
|
116687
|
-
|
|
116688
|
-
|
|
116689
|
-
|
|
116690
|
-
|
|
116691
|
-
|
|
116692
|
-
|
|
116693
|
-
|
|
116694
|
-
|
|
116695
|
-
|
|
116696
|
-
|
|
116697
|
-
|
|
116698
|
-
|
|
116699
|
-
|
|
116700
|
-
|
|
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.
|
|
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,
|
|
@@ -132668,11 +132672,11 @@ var require_cms = __commonJS({
|
|
|
132668
132672
|
return [];
|
|
132669
132673
|
}
|
|
132670
132674
|
const files = [];
|
|
132671
|
-
const collectionsData = plan.collections.map((
|
|
132675
|
+
const collectionsData = plan.collections.map((collection) => {
|
|
132672
132676
|
return {
|
|
132673
132677
|
schemaUrl: `https://www.wix.com/`,
|
|
132674
132678
|
// TODO: remove once Wix Data are deprecating it
|
|
132675
|
-
...
|
|
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.
|
|
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": "
|
|
27
|
+
"falconPackageHash": "bf90ef4cdf87d17e6e46a5dae9d3f62ba7e95de551cf977b2ac1e41d"
|
|
28
28
|
}
|