@njdamstra/appwrite-utils-cli 1.10.0 → 1.10.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.
@@ -437,6 +437,39 @@ const createLegacyAttribute = async (db, dbId, collectionId, attribute) => {
437
437
  ? attribute.xdefault
438
438
  : undefined, attribute.array || false);
439
439
  break;
440
+ case "varchar":
441
+ await db.createVarcharAttribute(dbId, collectionId, attribute.key, attribute.size || 255, attribute.required || false, attribute.xdefault !== undefined && !attribute.required
442
+ ? attribute.xdefault
443
+ : undefined, attribute.array || false, attribute.encrypt);
444
+ break;
445
+ case "text":
446
+ case "mediumtext":
447
+ case "longtext": {
448
+ const createFn = attribute.type === "text"
449
+ ? db.createTextAttribute.bind(db)
450
+ : attribute.type === "mediumtext"
451
+ ? db.createMediumtextAttribute.bind(db)
452
+ : db.createLongtextAttribute.bind(db);
453
+ await createFn(dbId, collectionId, attribute.key, attribute.required || false, attribute.xdefault !== undefined && !attribute.required
454
+ ? attribute.xdefault
455
+ : undefined, attribute.array || false, attribute.encrypt);
456
+ break;
457
+ }
458
+ case "point":
459
+ await db.createPointAttribute(dbId, collectionId, attribute.key, attribute.required || false, attribute.xdefault !== undefined && !attribute.required
460
+ ? attribute.xdefault
461
+ : undefined);
462
+ break;
463
+ case "line":
464
+ await db.createLineAttribute(dbId, collectionId, attribute.key, attribute.required || false, attribute.xdefault !== undefined && !attribute.required
465
+ ? attribute.xdefault
466
+ : undefined);
467
+ break;
468
+ case "polygon":
469
+ await db.createPolygonAttribute(dbId, collectionId, attribute.key, attribute.required || false, attribute.xdefault !== undefined && !attribute.required
470
+ ? attribute.xdefault
471
+ : undefined);
472
+ break;
440
473
  case "relationship":
441
474
  await db.createRelationshipAttribute(dbId, collectionId, attribute.relatedCollection, attribute.relationType, attribute.twoWay, attribute.key, attribute.twoWayKey, attribute.onDelete);
442
475
  break;
@@ -446,6 +479,10 @@ const createLegacyAttribute = async (db, dbId, collectionId, attribute) => {
446
479
  type: attribute.type,
447
480
  supportedTypes: [
448
481
  "string",
482
+ "varchar",
483
+ "text",
484
+ "mediumtext",
485
+ "longtext",
449
486
  "integer",
450
487
  "double",
451
488
  "float",
@@ -455,6 +492,9 @@ const createLegacyAttribute = async (db, dbId, collectionId, attribute) => {
455
492
  "ip",
456
493
  "url",
457
494
  "enum",
495
+ "point",
496
+ "line",
497
+ "polygon",
458
498
  "relationship",
459
499
  ],
460
500
  operation: "createLegacyAttribute",
@@ -526,6 +566,39 @@ const updateLegacyAttribute = async (db, dbId, collectionId, attribute) => {
526
566
  ? attribute.xdefault
527
567
  : null);
528
568
  break;
569
+ case "varchar":
570
+ await db.updateVarcharAttribute(dbId, collectionId, attribute.key, attribute.required || false, !attribute.required && attribute.xdefault !== undefined
571
+ ? attribute.xdefault
572
+ : null, attribute.size);
573
+ break;
574
+ case "text":
575
+ case "mediumtext":
576
+ case "longtext": {
577
+ const updateFn = attribute.type === "text"
578
+ ? db.updateTextAttribute.bind(db)
579
+ : attribute.type === "mediumtext"
580
+ ? db.updateMediumtextAttribute.bind(db)
581
+ : db.updateLongtextAttribute.bind(db);
582
+ await updateFn(dbId, collectionId, attribute.key, attribute.required || false, !attribute.required && attribute.xdefault !== undefined
583
+ ? attribute.xdefault
584
+ : null);
585
+ break;
586
+ }
587
+ case "point":
588
+ await db.updatePointAttribute(dbId, collectionId, attribute.key, attribute.required || false, !attribute.required && attribute.xdefault !== undefined
589
+ ? attribute.xdefault
590
+ : null);
591
+ break;
592
+ case "line":
593
+ await db.updateLineAttribute(dbId, collectionId, attribute.key, attribute.required || false, !attribute.required && attribute.xdefault !== undefined
594
+ ? attribute.xdefault
595
+ : null);
596
+ break;
597
+ case "polygon":
598
+ await db.updatePolygonAttribute(dbId, collectionId, attribute.key, attribute.required || false, !attribute.required && attribute.xdefault !== undefined
599
+ ? attribute.xdefault
600
+ : null);
601
+ break;
529
602
  case "relationship":
530
603
  await db.updateRelationshipAttribute(dbId, collectionId, attribute.key, attribute.onDelete);
531
604
  break;
@@ -679,12 +752,22 @@ const getComparableFields = (type) => {
679
752
  switch (type) {
680
753
  case "string":
681
754
  return [...baseFields, "size", "encrypt"];
755
+ case "varchar":
756
+ return [...baseFields, "size", "encrypt"];
757
+ case "text":
758
+ case "mediumtext":
759
+ case "longtext":
760
+ return [...baseFields, "encrypt"];
682
761
  case "integer":
683
762
  case "double":
684
763
  case "float":
685
764
  return [...baseFields, "min", "max"];
686
765
  case "enum":
687
766
  return [...baseFields, "elements"];
767
+ case "point":
768
+ case "line":
769
+ case "polygon":
770
+ return baseFields;
688
771
  case "relationship":
689
772
  return [
690
773
  ...baseFields,
@@ -1,5 +1,5 @@
1
1
  import { indexSchema } from "@njdamstra/appwrite-utils";
2
- import { Databases, IndexType, Query } from "node-appwrite";
2
+ import { Databases, IndexType, OrderBy, Query } from "node-appwrite";
3
3
  import { delay, tryAwaitWithRetry, calculateExponentialBackoff, isLegacyDatabases, MessageFormatter } from "@njdamstra/appwrite-utils-helpers";
4
4
  // System attributes that are always available for indexing in Appwrite
5
5
  const SYSTEM_ATTRIBUTES = ['$id', '$createdAt', '$updatedAt', '$permissions'];
@@ -4,6 +4,10 @@ const EXTREME_BOUND = new Decimal('1e12');
4
4
  // Property configuration for different column types
5
5
  const MUTABLE_PROPERTIES = {
6
6
  string: ["required", "default", "size", "array"],
7
+ varchar: ["required", "default", "size", "array"],
8
+ text: ["required", "default", "array"],
9
+ mediumtext: ["required", "default", "array"],
10
+ longtext: ["required", "default", "array"],
7
11
  integer: ["required", "default", "min", "max", "array"],
8
12
  float: ["required", "default", "min", "max", "array"],
9
13
  double: ["required", "default", "min", "max", "array"],
@@ -13,10 +17,17 @@ const MUTABLE_PROPERTIES = {
13
17
  ip: ["required", "default", "array"],
14
18
  url: ["required", "default", "array"],
15
19
  enum: ["required", "default", "elements", "array"],
20
+ point: ["required", "default"],
21
+ line: ["required", "default"],
22
+ polygon: ["required", "default"],
16
23
  relationship: ["required", "default"],
17
24
  };
18
25
  const IMMUTABLE_PROPERTIES = {
19
26
  string: ["encrypt", "key"],
27
+ varchar: ["encrypt", "key"],
28
+ text: ["encrypt", "key"],
29
+ mediumtext: ["encrypt", "key"],
30
+ longtext: ["encrypt", "key"],
20
31
  integer: ["encrypt", "key"],
21
32
  float: ["encrypt", "key"],
22
33
  double: ["encrypt", "key"],
@@ -26,10 +37,17 @@ const IMMUTABLE_PROPERTIES = {
26
37
  ip: ["key"],
27
38
  url: ["key"],
28
39
  enum: ["key"],
40
+ point: ["key"],
41
+ line: ["key"],
42
+ polygon: ["key"],
29
43
  relationship: ["key", "relatedCollection", "relationType", "twoWay", "twoWayKey", "onDelete"],
30
44
  };
31
45
  const TYPE_CHANGE_REQUIRES_RECREATE = [
32
46
  "string",
47
+ "varchar",
48
+ "text",
49
+ "mediumtext",
50
+ "longtext",
33
51
  "integer",
34
52
  "float",
35
53
  "double",
@@ -39,6 +57,9 @@ const TYPE_CHANGE_REQUIRES_RECREATE = [
39
57
  "ip",
40
58
  "url",
41
59
  "enum",
60
+ "point",
61
+ "line",
62
+ "polygon",
42
63
  "relationship",
43
64
  ];
44
65
  function normDefault(val) {
@@ -64,6 +85,13 @@ export function normalizeAttributeToComparable(attr) {
64
85
  base.size = attr.size ?? 255;
65
86
  base.encrypt = !!(attr.encrypt);
66
87
  }
88
+ if (t === 'varchar') {
89
+ base.size = attr.size ?? 255;
90
+ base.encrypt = !!(attr.encrypt);
91
+ }
92
+ if (t === 'text' || t === 'mediumtext' || t === 'longtext') {
93
+ base.encrypt = !!(attr.encrypt);
94
+ }
67
95
  if (t === 'integer' || t === 'float' || t === 'double') {
68
96
  const min = toNumber(attr.min);
69
97
  const max = toNumber(attr.max);
@@ -108,6 +136,13 @@ export function normalizeColumnToComparable(col) {
108
136
  base.size = typeof col?.size === 'number' ? col.size : undefined;
109
137
  base.encrypt = !!col?.encrypt;
110
138
  }
139
+ if (t === 'varchar') {
140
+ base.size = typeof col?.size === 'number' ? col.size : undefined;
141
+ base.encrypt = !!col?.encrypt;
142
+ }
143
+ if (t === 'text' || t === 'mediumtext' || t === 'longtext') {
144
+ base.encrypt = !!col?.encrypt;
145
+ }
111
146
  if (t === 'integer' || t === 'float' || t === 'double') {
112
147
  // Preserve raw min/max without forcing extremes; compare with Decimal in shallowEqual
113
148
  const rawMin = col?.min;
@@ -60,7 +60,7 @@ export class InteractiveCLI {
60
60
  this.options = options;
61
61
  }
62
62
  async run() {
63
- MessageFormatter.banner("Appwrite Utils CLI", "Welcome to Appwrite Utils CLI Tool by Zach Handley");
63
+ MessageFormatter.banner("Appwrite Utils CLI", "Welcome to Appwrite Utils CLI Tool");
64
64
  MessageFormatter.info("For more information, visit https://github.com/njdamstra/AppwriteUtils");
65
65
  // Detect configuration type
66
66
  try {
@@ -21,6 +21,63 @@ export declare class AppwriteToX {
21
21
  error?: string | undefined;
22
22
  xdefault?: string | null | undefined;
23
23
  encrypt?: boolean | undefined;
24
+ } | {
25
+ key: string;
26
+ required: boolean;
27
+ type: "varchar";
28
+ size: number;
29
+ array?: boolean | undefined;
30
+ format?: string | undefined;
31
+ status?: string | undefined;
32
+ attributes?: string[] | undefined;
33
+ orders?: string[] | undefined;
34
+ $createdAt?: string | undefined;
35
+ $updatedAt?: string | undefined;
36
+ error?: string | undefined;
37
+ xdefault?: string | null | undefined;
38
+ encrypt?: boolean | undefined;
39
+ } | {
40
+ key: string;
41
+ required: boolean;
42
+ type: "text";
43
+ array?: boolean | undefined;
44
+ format?: string | undefined;
45
+ status?: string | undefined;
46
+ attributes?: string[] | undefined;
47
+ orders?: string[] | undefined;
48
+ $createdAt?: string | undefined;
49
+ $updatedAt?: string | undefined;
50
+ error?: string | undefined;
51
+ xdefault?: string | null | undefined;
52
+ encrypt?: boolean | undefined;
53
+ } | {
54
+ key: string;
55
+ required: boolean;
56
+ type: "mediumtext";
57
+ array?: boolean | undefined;
58
+ format?: string | undefined;
59
+ status?: string | undefined;
60
+ attributes?: string[] | undefined;
61
+ orders?: string[] | undefined;
62
+ $createdAt?: string | undefined;
63
+ $updatedAt?: string | undefined;
64
+ error?: string | undefined;
65
+ xdefault?: string | null | undefined;
66
+ encrypt?: boolean | undefined;
67
+ } | {
68
+ key: string;
69
+ required: boolean;
70
+ type: "longtext";
71
+ array?: boolean | undefined;
72
+ format?: string | undefined;
73
+ status?: string | undefined;
74
+ attributes?: string[] | undefined;
75
+ orders?: string[] | undefined;
76
+ $createdAt?: string | undefined;
77
+ $updatedAt?: string | undefined;
78
+ error?: string | undefined;
79
+ xdefault?: string | null | undefined;
80
+ encrypt?: boolean | undefined;
24
81
  } | {
25
82
  key: string;
26
83
  required: boolean;
@@ -145,6 +202,45 @@ export declare class AppwriteToX {
145
202
  $updatedAt?: string | undefined;
146
203
  error?: string | undefined;
147
204
  xdefault?: string | null | undefined;
205
+ } | {
206
+ key: string;
207
+ required: boolean;
208
+ type: "point";
209
+ array?: boolean | undefined;
210
+ format?: string | undefined;
211
+ status?: string | undefined;
212
+ attributes?: string[] | undefined;
213
+ orders?: string[] | undefined;
214
+ $createdAt?: string | undefined;
215
+ $updatedAt?: string | undefined;
216
+ error?: string | undefined;
217
+ xdefault?: number[] | null | undefined;
218
+ } | {
219
+ key: string;
220
+ required: boolean;
221
+ type: "line";
222
+ array?: boolean | undefined;
223
+ format?: string | undefined;
224
+ status?: string | undefined;
225
+ attributes?: string[] | undefined;
226
+ orders?: string[] | undefined;
227
+ $createdAt?: string | undefined;
228
+ $updatedAt?: string | undefined;
229
+ error?: string | undefined;
230
+ xdefault?: number[][] | null | undefined;
231
+ } | {
232
+ key: string;
233
+ required: boolean;
234
+ type: "polygon";
235
+ array?: boolean | undefined;
236
+ format?: string | undefined;
237
+ status?: string | undefined;
238
+ attributes?: string[] | undefined;
239
+ orders?: string[] | undefined;
240
+ $createdAt?: string | undefined;
241
+ $updatedAt?: string | undefined;
242
+ error?: string | undefined;
243
+ xdefault?: number[][][] | null | undefined;
148
244
  } | {
149
245
  key: string;
150
246
  required: boolean;
@@ -14,8 +14,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
14
14
  error: z.ZodOptional<z.ZodString>;
15
15
  required: z.ZodOptional<z.ZodBoolean>;
16
16
  array: z.ZodOptional<z.ZodBoolean>;
17
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
18
- xdefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
17
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodAny>]>>;
18
+ xdefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodAny>]>>;
19
19
  format: z.ZodOptional<z.ZodString>;
20
20
  size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
21
21
  min: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
@@ -47,6 +47,63 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
47
47
  size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
48
48
  xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  encrypt: z.ZodOptional<z.ZodBoolean>;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ array: z.ZodOptional<z.ZodBoolean>;
52
+ format: z.ZodOptional<z.ZodString>;
53
+ key: z.ZodString;
54
+ status: z.ZodOptional<z.ZodString>;
55
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
58
+ $createdAt: z.ZodOptional<z.ZodString>;
59
+ $updatedAt: z.ZodOptional<z.ZodString>;
60
+ error: z.ZodOptional<z.ZodString>;
61
+ type: z.ZodLiteral<"varchar">;
62
+ size: z.ZodNumber;
63
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ encrypt: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ array: z.ZodOptional<z.ZodBoolean>;
67
+ format: z.ZodOptional<z.ZodString>;
68
+ key: z.ZodString;
69
+ status: z.ZodOptional<z.ZodString>;
70
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
73
+ $createdAt: z.ZodOptional<z.ZodString>;
74
+ $updatedAt: z.ZodOptional<z.ZodString>;
75
+ error: z.ZodOptional<z.ZodString>;
76
+ type: z.ZodLiteral<"text">;
77
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ encrypt: z.ZodOptional<z.ZodBoolean>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ array: z.ZodOptional<z.ZodBoolean>;
81
+ format: z.ZodOptional<z.ZodString>;
82
+ key: z.ZodString;
83
+ status: z.ZodOptional<z.ZodString>;
84
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
87
+ $createdAt: z.ZodOptional<z.ZodString>;
88
+ $updatedAt: z.ZodOptional<z.ZodString>;
89
+ error: z.ZodOptional<z.ZodString>;
90
+ type: z.ZodLiteral<"mediumtext">;
91
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ encrypt: z.ZodOptional<z.ZodBoolean>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ array: z.ZodOptional<z.ZodBoolean>;
95
+ format: z.ZodOptional<z.ZodString>;
96
+ key: z.ZodString;
97
+ status: z.ZodOptional<z.ZodString>;
98
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
101
+ $createdAt: z.ZodOptional<z.ZodString>;
102
+ $updatedAt: z.ZodOptional<z.ZodString>;
103
+ error: z.ZodOptional<z.ZodString>;
104
+ type: z.ZodLiteral<"longtext">;
105
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ encrypt: z.ZodOptional<z.ZodBoolean>;
50
107
  }, z.core.$strip>, z.ZodObject<{
51
108
  array: z.ZodOptional<z.ZodBoolean>;
52
109
  format: z.ZodOptional<z.ZodString>;
@@ -171,6 +228,45 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
171
228
  type: z.ZodLiteral<"enum">;
172
229
  elements: z.ZodDefault<z.ZodArray<z.ZodString>>;
173
230
  xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ array: z.ZodOptional<z.ZodBoolean>;
233
+ format: z.ZodOptional<z.ZodString>;
234
+ key: z.ZodString;
235
+ status: z.ZodOptional<z.ZodString>;
236
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
239
+ $createdAt: z.ZodOptional<z.ZodString>;
240
+ $updatedAt: z.ZodOptional<z.ZodString>;
241
+ error: z.ZodOptional<z.ZodString>;
242
+ type: z.ZodLiteral<"point">;
243
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ array: z.ZodOptional<z.ZodBoolean>;
246
+ format: z.ZodOptional<z.ZodString>;
247
+ key: z.ZodString;
248
+ status: z.ZodOptional<z.ZodString>;
249
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
250
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
252
+ $createdAt: z.ZodOptional<z.ZodString>;
253
+ $updatedAt: z.ZodOptional<z.ZodString>;
254
+ error: z.ZodOptional<z.ZodString>;
255
+ type: z.ZodLiteral<"line">;
256
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ array: z.ZodOptional<z.ZodBoolean>;
259
+ format: z.ZodOptional<z.ZodString>;
260
+ key: z.ZodString;
261
+ status: z.ZodOptional<z.ZodString>;
262
+ attributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
+ orders: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
265
+ $createdAt: z.ZodOptional<z.ZodString>;
266
+ $updatedAt: z.ZodOptional<z.ZodString>;
267
+ error: z.ZodOptional<z.ZodString>;
268
+ type: z.ZodLiteral<"polygon">;
269
+ xdefault: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>>>;
174
270
  }, z.core.$strip>, z.ZodObject<{
175
271
  array: z.ZodOptional<z.ZodBoolean>;
176
272
  format: z.ZodOptional<z.ZodString>;
@@ -395,6 +491,63 @@ export declare class DataLoader {
395
491
  error?: string | undefined;
396
492
  xdefault?: string | null | undefined;
397
493
  encrypt?: boolean | undefined;
494
+ } | {
495
+ key: string;
496
+ required: boolean;
497
+ type: "varchar";
498
+ size: number;
499
+ array?: boolean | undefined;
500
+ format?: string | undefined;
501
+ status?: string | undefined;
502
+ attributes?: string[] | undefined;
503
+ orders?: string[] | undefined;
504
+ $createdAt?: string | undefined;
505
+ $updatedAt?: string | undefined;
506
+ error?: string | undefined;
507
+ xdefault?: string | null | undefined;
508
+ encrypt?: boolean | undefined;
509
+ } | {
510
+ key: string;
511
+ required: boolean;
512
+ type: "text";
513
+ array?: boolean | undefined;
514
+ format?: string | undefined;
515
+ status?: string | undefined;
516
+ attributes?: string[] | undefined;
517
+ orders?: string[] | undefined;
518
+ $createdAt?: string | undefined;
519
+ $updatedAt?: string | undefined;
520
+ error?: string | undefined;
521
+ xdefault?: string | null | undefined;
522
+ encrypt?: boolean | undefined;
523
+ } | {
524
+ key: string;
525
+ required: boolean;
526
+ type: "mediumtext";
527
+ array?: boolean | undefined;
528
+ format?: string | undefined;
529
+ status?: string | undefined;
530
+ attributes?: string[] | undefined;
531
+ orders?: string[] | undefined;
532
+ $createdAt?: string | undefined;
533
+ $updatedAt?: string | undefined;
534
+ error?: string | undefined;
535
+ xdefault?: string | null | undefined;
536
+ encrypt?: boolean | undefined;
537
+ } | {
538
+ key: string;
539
+ required: boolean;
540
+ type: "longtext";
541
+ array?: boolean | undefined;
542
+ format?: string | undefined;
543
+ status?: string | undefined;
544
+ attributes?: string[] | undefined;
545
+ orders?: string[] | undefined;
546
+ $createdAt?: string | undefined;
547
+ $updatedAt?: string | undefined;
548
+ error?: string | undefined;
549
+ xdefault?: string | null | undefined;
550
+ encrypt?: boolean | undefined;
398
551
  } | {
399
552
  key: string;
400
553
  required: boolean;
@@ -519,6 +672,45 @@ export declare class DataLoader {
519
672
  $updatedAt?: string | undefined;
520
673
  error?: string | undefined;
521
674
  xdefault?: string | null | undefined;
675
+ } | {
676
+ key: string;
677
+ required: boolean;
678
+ type: "point";
679
+ array?: boolean | undefined;
680
+ format?: string | undefined;
681
+ status?: string | undefined;
682
+ attributes?: string[] | undefined;
683
+ orders?: string[] | undefined;
684
+ $createdAt?: string | undefined;
685
+ $updatedAt?: string | undefined;
686
+ error?: string | undefined;
687
+ xdefault?: number[] | null | undefined;
688
+ } | {
689
+ key: string;
690
+ required: boolean;
691
+ type: "line";
692
+ array?: boolean | undefined;
693
+ format?: string | undefined;
694
+ status?: string | undefined;
695
+ attributes?: string[] | undefined;
696
+ orders?: string[] | undefined;
697
+ $createdAt?: string | undefined;
698
+ $updatedAt?: string | undefined;
699
+ error?: string | undefined;
700
+ xdefault?: number[][] | null | undefined;
701
+ } | {
702
+ key: string;
703
+ required: boolean;
704
+ type: "polygon";
705
+ array?: boolean | undefined;
706
+ format?: string | undefined;
707
+ status?: string | undefined;
708
+ attributes?: string[] | undefined;
709
+ orders?: string[] | undefined;
710
+ $createdAt?: string | undefined;
711
+ $updatedAt?: string | undefined;
712
+ error?: string | undefined;
713
+ xdefault?: number[][][] | null | undefined;
522
714
  } | {
523
715
  key: string;
524
716
  required: boolean;