@vibeorm/schema 5.7.0 → 5.8.0

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/index.js CHANGED
@@ -2860,6 +2860,11 @@ var RESERVED_ENUM_NAMES = [
2860
2860
  "IncludedRelation",
2861
2861
  "IncludedCount",
2862
2862
  "ViewDelegateMap",
2863
+ "__VibeObjects",
2864
+ "__VibeKeys",
2865
+ "__VibeAt",
2866
+ "__VibeItem",
2867
+ "__VibeExact",
2863
2868
  "extensionManifest",
2864
2869
  "extensionMounts",
2865
2870
  "computedManifest",
@@ -2879,6 +2884,7 @@ var RESERVED_ENUM_NAMES = [
2879
2884
  "Date",
2880
2885
  "Uint8Array",
2881
2886
  "schema",
2887
+ "jsonSchemas",
2882
2888
  "VibeClient",
2883
2889
  "VibeClientInstance",
2884
2890
  "VibeQueryPromise",
@@ -3937,6 +3943,14 @@ function validateModel(params) {
3937
3943
  field: field.name
3938
3944
  });
3939
3945
  }
3946
+ if (field.bigIntMode !== undefined && (field.type !== "BigInt" || field.bigIntMode !== "number")) {
3947
+ issues.push({
3948
+ rule: "bigint-mode",
3949
+ message: `@number on "${model.name}.${field.name}" \u2014 a number read mode is only valid on BigInt fields, and its one value is "number"`,
3950
+ model: model.name,
3951
+ field: field.name
3952
+ });
3953
+ }
3940
3954
  }
3941
3955
  if (model.policy !== undefined) {
3942
3956
  const policyField = model.fields.find((field) => field.name === model.policy?.field);
@@ -4667,4 +4681,4 @@ export {
4667
4681
  validatorRefIssue
4668
4682
  };
4669
4683
 
4670
- //# debugId=8784FDF6327C16F164756E2164756E21
4684
+ //# debugId=16597011ACA85C7264756E2164756E21