@blitznocode/blitz-orm 0.16.0 → 0.17.1

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.d.mts CHANGED
@@ -225,10 +225,10 @@ type StringField = BormField & {
225
225
  contentType: 'ID' | 'COLOR' | 'DATE' | 'FILE' | 'EMAIL' | 'PHONE' | 'URL' | 'PASSWORD' | 'LANGUAGE_TEXT' | 'RICH_TEXT' | 'TEXT' | 'JSON';
226
226
  default?: {
227
227
  type: 'fn';
228
- fn: (currentNode: BQLMutationBlock) => string;
228
+ fn: (currentNode: BQLMutationBlock) => string | null;
229
229
  } | {
230
230
  type: 'value';
231
- value: string;
231
+ value: string | null;
232
232
  };
233
233
  validations?: {
234
234
  enum?: string[];
@@ -240,10 +240,10 @@ type NumberField = BormField & {
240
240
  contentType: 'DURATION' | 'HOUR' | 'RATING' | 'CURRENCY' | 'PERCENTAGE' | 'NUMBER_DECIMAL' | 'NUMBER';
241
241
  default?: {
242
242
  type: 'fn';
243
- fn: (currentNode: BQLMutationBlock) => number;
243
+ fn: (currentNode: BQLMutationBlock) => number | null;
244
244
  } | {
245
245
  type: 'value';
246
- value: number;
246
+ value: number | null;
247
247
  };
248
248
  validations?: {
249
249
  enum?: number[];
@@ -255,10 +255,10 @@ type DateField = BormField & {
255
255
  contentType: 'TIME';
256
256
  default?: {
257
257
  type: 'fn';
258
- fn: (currentNode: BQLMutationBlock) => Date;
258
+ fn: (currentNode: BQLMutationBlock) => Date | null;
259
259
  } | {
260
260
  type: 'value';
261
- value: Date;
261
+ value: Date | null;
262
262
  };
263
263
  validations?: {
264
264
  enum: Date[];
@@ -269,10 +269,10 @@ type BooleanField = BormField & {
269
269
  contentType: 'BOOLEAN';
270
270
  default?: {
271
271
  type: 'fn';
272
- fn: (currentNode: BQLMutationBlock) => boolean;
272
+ fn: (currentNode: BQLMutationBlock) => boolean | null;
273
273
  } | {
274
274
  type: 'value';
275
- value: boolean;
275
+ value: boolean | null;
276
276
  };
277
277
  validations?: {
278
278
  enum?: boolean[];