@base44-preview/cli 0.1.25-pr.647.62db7ea → 0.1.25-pr.647.fff4a17
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/cli/index.js +21 -8
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -238340,8 +238340,8 @@ var FieldRLSSchema = looseObject({
|
|
|
238340
238340
|
update: RLSRuleSchema.optional(),
|
|
238341
238341
|
delete: RLSRuleSchema.optional()
|
|
238342
238342
|
});
|
|
238343
|
-
var
|
|
238344
|
-
|
|
238343
|
+
var PropertyTypeSchema = union([string2(), array(string2())]);
|
|
238344
|
+
var propertyFields = {
|
|
238345
238345
|
title: string2().optional(),
|
|
238346
238346
|
description: string2().optional(),
|
|
238347
238347
|
minLength: number2().int().min(0).optional(),
|
|
@@ -238355,21 +238355,34 @@ var PropertyDefinitionSchema = looseObject({
|
|
|
238355
238355
|
default: unknown().optional(),
|
|
238356
238356
|
$ref: string2().optional(),
|
|
238357
238357
|
rls: FieldRLSSchema.optional(),
|
|
238358
|
-
required: array(string2()).optional()
|
|
238358
|
+
required: array(string2()).optional()
|
|
238359
|
+
};
|
|
238360
|
+
var NestedPropertyDefinitionSchema = looseObject({
|
|
238361
|
+
...propertyFields,
|
|
238362
|
+
type: PropertyTypeSchema.optional(),
|
|
238363
|
+
get items() {
|
|
238364
|
+
return NestedPropertyDefinitionSchema.optional();
|
|
238365
|
+
},
|
|
238366
|
+
get properties() {
|
|
238367
|
+
return record(string2(), NestedPropertyDefinitionSchema).optional();
|
|
238368
|
+
}
|
|
238369
|
+
});
|
|
238370
|
+
var PropertyDefinitionSchema = looseObject({
|
|
238371
|
+
...propertyFields,
|
|
238372
|
+
type: PropertyTypeSchema,
|
|
238359
238373
|
get items() {
|
|
238360
|
-
return
|
|
238374
|
+
return NestedPropertyDefinitionSchema.optional();
|
|
238361
238375
|
},
|
|
238362
238376
|
get properties() {
|
|
238363
|
-
return record(string2(),
|
|
238377
|
+
return record(string2(), NestedPropertyDefinitionSchema).optional();
|
|
238364
238378
|
}
|
|
238365
238379
|
});
|
|
238366
|
-
var TopLevelPropertySchema = PropertyDefinitionSchema.refine((property) => property.type !== undefined, { message: "Top-level properties must declare a type", path: ["type"] });
|
|
238367
238380
|
var EntitySchema = looseObject({
|
|
238368
238381
|
type: literal("object").default("object"),
|
|
238369
238382
|
name: string2().min(1).regex(/^\w+$/, "Entity name must contain only letters, numbers, and underscores"),
|
|
238370
238383
|
title: string2().optional(),
|
|
238371
238384
|
description: string2().optional(),
|
|
238372
|
-
properties: record(string2(),
|
|
238385
|
+
properties: record(string2(), PropertyDefinitionSchema).default({}),
|
|
238373
238386
|
required: array(string2()).optional(),
|
|
238374
238387
|
rls: EntityRLSSchema.optional(),
|
|
238375
238388
|
source: ResourceSourceSchema.default({ type: "project" })
|
|
@@ -260580,4 +260593,4 @@ export {
|
|
|
260580
260593
|
runCLI
|
|
260581
260594
|
};
|
|
260582
260595
|
|
|
260583
|
-
//# debugId=
|
|
260596
|
+
//# debugId=0FFE93EB6111BBF064756E2164756E21
|