@wix/ditto-codegen-public 1.0.100 → 1.0.101
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 +30 -9
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -117463,7 +117463,7 @@ var require_FieldSchema = __commonJS({
|
|
|
117463
117463
|
key: zod_1.z.string().min(1).max(1e3).meta({ description: "Field ID." }),
|
|
117464
117464
|
displayName: zod_1.z.string().min(1).max(1e3).optional().meta({ description: "Display name for the field." }),
|
|
117465
117465
|
type: exports2.FieldTypeSchema.meta({
|
|
117466
|
-
description: "Field type.
|
|
117466
|
+
description: "Field type."
|
|
117467
117467
|
}),
|
|
117468
117468
|
// type_options (object/array only)
|
|
117469
117469
|
objectOptions: zod_1.z.lazy(() => exports2.FieldObjectOptionsSchema).optional().meta({ description: "Metadata for an object field." }),
|
|
@@ -117517,9 +117517,30 @@ var require_FieldSchema = __commonJS({
|
|
|
117517
117517
|
"MEDIA_GALLERY",
|
|
117518
117518
|
"ADDRESS"
|
|
117519
117519
|
];
|
|
117520
|
+
var primitiveTypeDescriptions = {
|
|
117521
|
+
TEXT: "Plain-text string.",
|
|
117522
|
+
NUMBER: "Number.",
|
|
117523
|
+
DATE: "A date string in ISO 8601 date format: `YYYY-MM-DD`.",
|
|
117524
|
+
DATETIME: 'An object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ" }`. Milliseconds can be omitted.',
|
|
117525
|
+
IMAGE: "A web URL or a Media Manager URL.",
|
|
117526
|
+
BOOLEAN: "Boolean true or false value.",
|
|
117527
|
+
DOCUMENT: "A web URL or a Media Manager URL.",
|
|
117528
|
+
URL: "A valid URL.",
|
|
117529
|
+
RICH_TEXT: "A string that may contain a subset of HTML tags.",
|
|
117530
|
+
VIDEO: "A web URL or a Media Manager URL.",
|
|
117531
|
+
ANY: "Any field type.",
|
|
117532
|
+
ARRAY_STRING: "Array of strings.",
|
|
117533
|
+
ARRAY_DOCUMENT: "Array of documents: web URLs or Media Manager URLs.",
|
|
117534
|
+
AUDIO: "A web URL or a Media Manager URL.",
|
|
117535
|
+
TIME: "A string in `hh:mm:ss.SSS` format.",
|
|
117536
|
+
LANGUAGE: "Language codes in ISO 639-1 format. May include country codes in ISO 3166-1 alpha-2 format.",
|
|
117537
|
+
RICH_CONTENT: "A rich content object.",
|
|
117538
|
+
MEDIA_GALLERY: "Array of image and video URLs. Items are web URLs or Media Manager URLs.",
|
|
117539
|
+
ADDRESS: "Address object with fields: formatted, location { latitude, longitude }, streetAddress { name, number }, city, subdivision, country, postalCode."
|
|
117540
|
+
};
|
|
117520
117541
|
var PrimitiveLiteralSchemas = primitiveTypes.map((t) => FieldBaseSchema.extend({
|
|
117521
117542
|
type: zod_1.z.literal(t).meta({
|
|
117522
|
-
description:
|
|
117543
|
+
description: primitiveTypeDescriptions[t]
|
|
117523
117544
|
}),
|
|
117524
117545
|
referenceOptions: zod_1.z.never().optional(),
|
|
117525
117546
|
multiReferenceOptions: zod_1.z.never().optional(),
|
|
@@ -117528,7 +117549,7 @@ var require_FieldSchema = __commonJS({
|
|
|
117528
117549
|
}));
|
|
117529
117550
|
var ReferenceFieldSchema = FieldBaseSchema.extend({
|
|
117530
117551
|
type: zod_1.z.literal("REFERENCE").meta({
|
|
117531
|
-
description: "
|
|
117552
|
+
description: "Reference to another item in another collection. Requires `referencedCollectionId`."
|
|
117532
117553
|
}),
|
|
117533
117554
|
referenceOptions: zod_1.z.lazy(() => exports2.FieldReferenceOptionsSchema).meta({ description: "Metadata for a reference field." }),
|
|
117534
117555
|
multiReferenceOptions: zod_1.z.never().optional(),
|
|
@@ -117537,7 +117558,7 @@ var require_FieldSchema = __commonJS({
|
|
|
117537
117558
|
});
|
|
117538
117559
|
var MultiReferenceFieldSchema = FieldBaseSchema.extend({
|
|
117539
117560
|
type: zod_1.z.literal("MULTI_REFERENCE").meta({
|
|
117540
|
-
description: "
|
|
117561
|
+
description: "References to multiple items in another collection. Requires `referencedCollectionId`."
|
|
117541
117562
|
}),
|
|
117542
117563
|
multiReferenceOptions: zod_1.z.lazy(() => exports2.FieldMultiReferenceOptionsSchema).meta({ description: "Metadata for a multi-reference field." }),
|
|
117543
117564
|
referenceOptions: zod_1.z.never().optional(),
|
|
@@ -117546,7 +117567,7 @@ var require_FieldSchema = __commonJS({
|
|
|
117546
117567
|
});
|
|
117547
117568
|
var ObjectFieldSchema = FieldBaseSchema.extend({
|
|
117548
117569
|
type: zod_1.z.literal("OBJECT").meta({
|
|
117549
|
-
description: "
|
|
117570
|
+
description: "JSON object."
|
|
117550
117571
|
}),
|
|
117551
117572
|
objectOptions: zod_1.z.lazy(() => exports2.FieldObjectOptionsSchema).meta({ description: "Metadata for an object field." }),
|
|
117552
117573
|
referenceOptions: zod_1.z.never().optional(),
|
|
@@ -117555,7 +117576,7 @@ var require_FieldSchema = __commonJS({
|
|
|
117555
117576
|
});
|
|
117556
117577
|
var ArrayFieldSchema = FieldBaseSchema.extend({
|
|
117557
117578
|
type: zod_1.z.literal("ARRAY").meta({
|
|
117558
|
-
description: "
|
|
117579
|
+
description: "Array."
|
|
117559
117580
|
}),
|
|
117560
117581
|
arrayOptions: zod_1.z.lazy(() => exports2.FieldArrayOptionsSchema).meta({ description: "Metadata for an array field." }),
|
|
117561
117582
|
referenceOptions: zod_1.z.never().optional(),
|
|
@@ -117604,7 +117625,7 @@ var require_DataPermissionsSchema = __commonJS({
|
|
|
117604
117625
|
description: "Access level required to remove data items."
|
|
117605
117626
|
})
|
|
117606
117627
|
}).meta({
|
|
117607
|
-
description: "
|
|
117628
|
+
description: "Data permissions defined by access level for each action."
|
|
117608
117629
|
});
|
|
117609
117630
|
}
|
|
117610
117631
|
});
|
|
@@ -117624,7 +117645,7 @@ var require_IndexSchema = __commonJS({
|
|
|
117624
117645
|
description: "Path of the field to index. For example: `title` or `options.price`."
|
|
117625
117646
|
}),
|
|
117626
117647
|
order: exports2.OrderEnum.meta({
|
|
117627
|
-
description: "Sort order for the index.
|
|
117648
|
+
description: "Sort order for the index. Based on how the data is regularly queried.\n\nDefault: `ASC`"
|
|
117628
117649
|
})
|
|
117629
117650
|
});
|
|
117630
117651
|
exports2.IndexSchema = zod_1.z.object({
|
|
@@ -117687,7 +117708,7 @@ var require_DataCollectionsExtensionSchema = __commonJS({
|
|
|
117687
117708
|
description: "Data collections automatically added to a site when the app is installed."
|
|
117688
117709
|
})
|
|
117689
117710
|
}).meta({
|
|
117690
|
-
description: "An extension for adding data collections to a site when
|
|
117711
|
+
description: "An extension for adding data collections to a site when the app is installed."
|
|
117691
117712
|
});
|
|
117692
117713
|
}
|
|
117693
117714
|
});
|
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.101",
|
|
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": "508d435510f0b0c5e1a4ce488987efcc1f65ca703410ffc6351bb665"
|
|
28
28
|
}
|