@base44-preview/cli 0.1.24-pr.646.09ee9f4 → 0.1.25-pr.647.62db7ea

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 CHANGED
@@ -238341,7 +238341,7 @@ var FieldRLSSchema = looseObject({
238341
238341
  delete: RLSRuleSchema.optional()
238342
238342
  });
238343
238343
  var PropertyDefinitionSchema = looseObject({
238344
- type: union([string2(), array(string2())]),
238344
+ type: union([string2(), array(string2())]).optional(),
238345
238345
  title: string2().optional(),
238346
238346
  description: string2().optional(),
238347
238347
  minLength: number2().int().min(0).optional(),
@@ -238363,12 +238363,13 @@ var PropertyDefinitionSchema = looseObject({
238363
238363
  return record(string2(), PropertyDefinitionSchema).optional();
238364
238364
  }
238365
238365
  });
238366
+ var TopLevelPropertySchema = PropertyDefinitionSchema.refine((property) => property.type !== undefined, { message: "Top-level properties must declare a type", path: ["type"] });
238366
238367
  var EntitySchema = looseObject({
238367
238368
  type: literal("object").default("object"),
238368
238369
  name: string2().min(1).regex(/^\w+$/, "Entity name must contain only letters, numbers, and underscores"),
238369
238370
  title: string2().optional(),
238370
238371
  description: string2().optional(),
238371
- properties: record(string2(), PropertyDefinitionSchema).default({}),
238372
+ properties: record(string2(), TopLevelPropertySchema).default({}),
238372
238373
  required: array(string2()).optional(),
238373
238374
  rls: EntityRLSSchema.optional(),
238374
238375
  source: ResourceSourceSchema.default({ type: "project" })
@@ -239265,7 +239266,7 @@ import { join as join13 } from "node:path";
239265
239266
  // package.json
239266
239267
  var package_default = {
239267
239268
  name: "base44",
239268
- version: "0.1.24",
239269
+ version: "0.1.25",
239269
239270
  description: "Base44 CLI - Unified interface for managing Base44 applications",
239270
239271
  type: "module",
239271
239272
  bin: {
@@ -253182,7 +253183,7 @@ class Validator {
253182
253183
  error: this.createValidationError(`Error in field ${fieldPath}: Input should be a valid ${types.join(" or ")}`)
253183
253184
  };
253184
253185
  }
253185
- const propertyType = property.type;
253186
+ const propertyType = property.type ?? "string";
253186
253187
  if (!fieldTypes.includes(propertyType)) {
253187
253188
  return {
253188
253189
  hasError: true,
@@ -260579,4 +260580,4 @@ export {
260579
260580
  runCLI
260580
260581
  };
260581
260582
 
260582
- //# debugId=9978A4087157AD8F64756E2164756E21
260583
+ //# debugId=618459366066EF9064756E2164756E21