appwrite-utils-cli 0.0.29 → 0.0.30

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.
@@ -7,82 +7,82 @@ export declare class AppwriteToX {
7
7
  type: "string";
8
8
  key: string;
9
9
  size: number;
10
+ format?: string | null | undefined;
11
+ description?: string | Record<string, string> | undefined;
12
+ required?: boolean | undefined;
10
13
  array?: boolean | undefined;
11
14
  error?: string | undefined;
12
- required?: boolean | undefined;
13
15
  xdefault?: string | null | undefined;
14
16
  encrypted?: boolean | undefined;
15
- format?: string | null | undefined;
16
- description?: string | Record<string, string> | undefined;
17
17
  } | {
18
18
  type: "integer";
19
19
  key: string;
20
+ description?: string | Record<string, string> | null | undefined;
21
+ required?: boolean | undefined;
20
22
  array?: boolean | undefined;
21
23
  error?: string | undefined;
22
- required?: boolean | undefined;
23
24
  xdefault?: number | null | undefined;
24
- description?: string | Record<string, string> | null | undefined;
25
25
  min?: number | undefined;
26
26
  max?: number | undefined;
27
27
  } | {
28
28
  type: "float";
29
29
  key: string;
30
+ description?: string | Record<string, string> | null | undefined;
31
+ required?: boolean | undefined;
30
32
  array?: boolean | undefined;
31
33
  error?: string | undefined;
32
- required?: boolean | undefined;
33
34
  xdefault?: number | null | undefined;
34
- description?: string | Record<string, string> | null | undefined;
35
35
  min?: number | undefined;
36
36
  max?: number | undefined;
37
37
  } | {
38
38
  type: "boolean";
39
39
  key: string;
40
+ description?: string | Record<string, string> | null | undefined;
41
+ required?: boolean | undefined;
40
42
  array?: boolean | undefined;
41
43
  error?: string | undefined;
42
- required?: boolean | undefined;
43
44
  xdefault?: boolean | null | undefined;
44
- description?: string | Record<string, string> | null | undefined;
45
45
  } | {
46
46
  type: "datetime";
47
47
  key: string;
48
+ description?: string | Record<string, string> | null | undefined;
49
+ required?: boolean | undefined;
48
50
  array?: boolean | undefined;
49
51
  error?: string | undefined;
50
- required?: boolean | undefined;
51
52
  xdefault?: string | null | undefined;
52
- description?: string | Record<string, string> | null | undefined;
53
53
  } | {
54
54
  type: "email";
55
55
  key: string;
56
+ description?: string | Record<string, string> | null | undefined;
57
+ required?: boolean | undefined;
56
58
  array?: boolean | undefined;
57
59
  error?: string | undefined;
58
- required?: boolean | undefined;
59
60
  xdefault?: string | null | undefined;
60
- description?: string | Record<string, string> | null | undefined;
61
61
  } | {
62
62
  type: "ip";
63
63
  key: string;
64
+ description?: string | Record<string, string> | null | undefined;
65
+ required?: boolean | undefined;
64
66
  array?: boolean | undefined;
65
67
  error?: string | undefined;
66
- required?: boolean | undefined;
67
68
  xdefault?: string | null | undefined;
68
- description?: string | Record<string, string> | null | undefined;
69
69
  } | {
70
70
  type: "url";
71
71
  key: string;
72
+ description?: string | Record<string, string> | null | undefined;
73
+ required?: boolean | undefined;
72
74
  array?: boolean | undefined;
73
75
  error?: string | undefined;
74
- required?: boolean | undefined;
75
76
  xdefault?: string | null | undefined;
76
- description?: string | Record<string, string> | null | undefined;
77
77
  } | {
78
78
  type: "enum";
79
79
  key: string;
80
80
  elements: string[];
81
+ description?: string | Record<string, string> | null | undefined;
82
+ required?: boolean | undefined;
81
83
  array?: boolean | undefined;
82
84
  error?: string | undefined;
83
- required?: boolean | undefined;
84
85
  xdefault?: string | null | undefined;
85
- description?: string | Record<string, string> | null | undefined;
86
86
  } | {
87
87
  type: "relationship";
88
88
  key: string;
@@ -92,10 +92,10 @@ export declare class AppwriteToX {
92
92
  twoWayKey: string;
93
93
  onDelete: "setNull" | "cascade" | "restrict";
94
94
  side: "parent" | "child";
95
+ description?: string | Record<string, string> | null | undefined;
96
+ required?: boolean | undefined;
95
97
  array?: boolean | undefined;
96
98
  error?: string | undefined;
97
- required?: boolean | undefined;
98
- description?: string | Record<string, string> | null | undefined;
99
99
  importMapping?: {
100
100
  originalIdField: string;
101
101
  targetField?: string | undefined;
@@ -181,82 +181,82 @@ export declare const getMigrationCollectionSchemas: () => {
181
181
  type: "string";
182
182
  key: string;
183
183
  size: number;
184
+ format?: string | null | undefined;
185
+ description?: string | Record<string, string> | undefined;
186
+ required?: boolean | undefined;
184
187
  array?: boolean | undefined;
185
188
  error?: string | undefined;
186
- required?: boolean | undefined;
187
189
  xdefault?: string | null | undefined;
188
190
  encrypted?: boolean | undefined;
189
- format?: string | null | undefined;
190
- description?: string | Record<string, string> | undefined;
191
191
  } | {
192
192
  type: "integer";
193
193
  key: string;
194
+ description?: string | Record<string, string> | null | undefined;
195
+ required?: boolean | undefined;
194
196
  array?: boolean | undefined;
195
197
  error?: string | undefined;
196
- required?: boolean | undefined;
197
198
  xdefault?: number | null | undefined;
198
- description?: string | Record<string, string> | null | undefined;
199
199
  min?: number | undefined;
200
200
  max?: number | undefined;
201
201
  } | {
202
202
  type: "float";
203
203
  key: string;
204
+ description?: string | Record<string, string> | null | undefined;
205
+ required?: boolean | undefined;
204
206
  array?: boolean | undefined;
205
207
  error?: string | undefined;
206
- required?: boolean | undefined;
207
208
  xdefault?: number | null | undefined;
208
- description?: string | Record<string, string> | null | undefined;
209
209
  min?: number | undefined;
210
210
  max?: number | undefined;
211
211
  } | {
212
212
  type: "boolean";
213
213
  key: string;
214
+ description?: string | Record<string, string> | null | undefined;
215
+ required?: boolean | undefined;
214
216
  array?: boolean | undefined;
215
217
  error?: string | undefined;
216
- required?: boolean | undefined;
217
218
  xdefault?: boolean | null | undefined;
218
- description?: string | Record<string, string> | null | undefined;
219
219
  } | {
220
220
  type: "datetime";
221
221
  key: string;
222
+ description?: string | Record<string, string> | null | undefined;
223
+ required?: boolean | undefined;
222
224
  array?: boolean | undefined;
223
225
  error?: string | undefined;
224
- required?: boolean | undefined;
225
226
  xdefault?: string | null | undefined;
226
- description?: string | Record<string, string> | null | undefined;
227
227
  } | {
228
228
  type: "email";
229
229
  key: string;
230
+ description?: string | Record<string, string> | null | undefined;
231
+ required?: boolean | undefined;
230
232
  array?: boolean | undefined;
231
233
  error?: string | undefined;
232
- required?: boolean | undefined;
233
234
  xdefault?: string | null | undefined;
234
- description?: string | Record<string, string> | null | undefined;
235
235
  } | {
236
236
  type: "ip";
237
237
  key: string;
238
+ description?: string | Record<string, string> | null | undefined;
239
+ required?: boolean | undefined;
238
240
  array?: boolean | undefined;
239
241
  error?: string | undefined;
240
- required?: boolean | undefined;
241
242
  xdefault?: string | null | undefined;
242
- description?: string | Record<string, string> | null | undefined;
243
243
  } | {
244
244
  type: "url";
245
245
  key: string;
246
+ description?: string | Record<string, string> | null | undefined;
247
+ required?: boolean | undefined;
246
248
  array?: boolean | undefined;
247
249
  error?: string | undefined;
248
- required?: boolean | undefined;
249
250
  xdefault?: string | null | undefined;
250
- description?: string | Record<string, string> | null | undefined;
251
251
  } | {
252
252
  type: "enum";
253
253
  key: string;
254
254
  elements: string[];
255
+ description?: string | Record<string, string> | null | undefined;
256
+ required?: boolean | undefined;
255
257
  array?: boolean | undefined;
256
258
  error?: string | undefined;
257
- required?: boolean | undefined;
258
259
  xdefault?: string | null | undefined;
259
- description?: string | Record<string, string> | null | undefined;
260
260
  } | {
261
261
  type: "relationship";
262
262
  key: string;
@@ -266,10 +266,10 @@ export declare const getMigrationCollectionSchemas: () => {
266
266
  twoWayKey: string;
267
267
  onDelete: "setNull" | "cascade" | "restrict";
268
268
  side: "parent" | "child";
269
+ description?: string | Record<string, string> | null | undefined;
270
+ required?: boolean | undefined;
269
271
  array?: boolean | undefined;
270
272
  error?: string | undefined;
271
- required?: boolean | undefined;
272
- description?: string | Record<string, string> | null | undefined;
273
273
  importMapping?: {
274
274
  originalIdField: string;
275
275
  targetField?: string | undefined;
@@ -331,82 +331,82 @@ export declare const getMigrationCollectionSchemas: () => {
331
331
  type: "string";
332
332
  key: string;
333
333
  size: number;
334
+ format?: string | null | undefined;
335
+ description?: string | Record<string, string> | undefined;
336
+ required?: boolean | undefined;
334
337
  array?: boolean | undefined;
335
338
  error?: string | undefined;
336
- required?: boolean | undefined;
337
339
  xdefault?: string | null | undefined;
338
340
  encrypted?: boolean | undefined;
339
- format?: string | null | undefined;
340
- description?: string | Record<string, string> | undefined;
341
341
  } | {
342
342
  type: "integer";
343
343
  key: string;
344
+ description?: string | Record<string, string> | null | undefined;
345
+ required?: boolean | undefined;
344
346
  array?: boolean | undefined;
345
347
  error?: string | undefined;
346
- required?: boolean | undefined;
347
348
  xdefault?: number | null | undefined;
348
- description?: string | Record<string, string> | null | undefined;
349
349
  min?: number | undefined;
350
350
  max?: number | undefined;
351
351
  } | {
352
352
  type: "float";
353
353
  key: string;
354
+ description?: string | Record<string, string> | null | undefined;
355
+ required?: boolean | undefined;
354
356
  array?: boolean | undefined;
355
357
  error?: string | undefined;
356
- required?: boolean | undefined;
357
358
  xdefault?: number | null | undefined;
358
- description?: string | Record<string, string> | null | undefined;
359
359
  min?: number | undefined;
360
360
  max?: number | undefined;
361
361
  } | {
362
362
  type: "boolean";
363
363
  key: string;
364
+ description?: string | Record<string, string> | null | undefined;
365
+ required?: boolean | undefined;
364
366
  array?: boolean | undefined;
365
367
  error?: string | undefined;
366
- required?: boolean | undefined;
367
368
  xdefault?: boolean | null | undefined;
368
- description?: string | Record<string, string> | null | undefined;
369
369
  } | {
370
370
  type: "datetime";
371
371
  key: string;
372
+ description?: string | Record<string, string> | null | undefined;
373
+ required?: boolean | undefined;
372
374
  array?: boolean | undefined;
373
375
  error?: string | undefined;
374
- required?: boolean | undefined;
375
376
  xdefault?: string | null | undefined;
376
- description?: string | Record<string, string> | null | undefined;
377
377
  } | {
378
378
  type: "email";
379
379
  key: string;
380
+ description?: string | Record<string, string> | null | undefined;
381
+ required?: boolean | undefined;
380
382
  array?: boolean | undefined;
381
383
  error?: string | undefined;
382
- required?: boolean | undefined;
383
384
  xdefault?: string | null | undefined;
384
- description?: string | Record<string, string> | null | undefined;
385
385
  } | {
386
386
  type: "ip";
387
387
  key: string;
388
+ description?: string | Record<string, string> | null | undefined;
389
+ required?: boolean | undefined;
388
390
  array?: boolean | undefined;
389
391
  error?: string | undefined;
390
- required?: boolean | undefined;
391
392
  xdefault?: string | null | undefined;
392
- description?: string | Record<string, string> | null | undefined;
393
393
  } | {
394
394
  type: "url";
395
395
  key: string;
396
+ description?: string | Record<string, string> | null | undefined;
397
+ required?: boolean | undefined;
396
398
  array?: boolean | undefined;
397
399
  error?: string | undefined;
398
- required?: boolean | undefined;
399
400
  xdefault?: string | null | undefined;
400
- description?: string | Record<string, string> | null | undefined;
401
401
  } | {
402
402
  type: "enum";
403
403
  key: string;
404
404
  elements: string[];
405
+ description?: string | Record<string, string> | null | undefined;
406
+ required?: boolean | undefined;
405
407
  array?: boolean | undefined;
406
408
  error?: string | undefined;
407
- required?: boolean | undefined;
408
409
  xdefault?: string | null | undefined;
409
- description?: string | Record<string, string> | null | undefined;
410
410
  } | {
411
411
  type: "relationship";
412
412
  key: string;
@@ -416,10 +416,10 @@ export declare const getMigrationCollectionSchemas: () => {
416
416
  twoWayKey: string;
417
417
  onDelete: "setNull" | "cascade" | "restrict";
418
418
  side: "parent" | "child";
419
+ description?: string | Record<string, string> | null | undefined;
420
+ required?: boolean | undefined;
419
421
  array?: boolean | undefined;
420
422
  error?: string | undefined;
421
- required?: boolean | undefined;
422
- description?: string | Record<string, string> | null | undefined;
423
423
  importMapping?: {
424
424
  originalIdField: string;
425
425
  targetField?: string | undefined;
@@ -433,82 +433,82 @@ export declare const getMigrationCollectionSchemas: () => {
433
433
  type: "string";
434
434
  key: string;
435
435
  size: number;
436
+ format?: string | null | undefined;
437
+ description?: string | Record<string, string> | undefined;
438
+ required?: boolean | undefined;
436
439
  array?: boolean | undefined;
437
440
  error?: string | undefined;
438
- required?: boolean | undefined;
439
441
  xdefault?: string | null | undefined;
440
442
  encrypted?: boolean | undefined;
441
- format?: string | null | undefined;
442
- description?: string | Record<string, string> | undefined;
443
443
  } | {
444
444
  type: "integer";
445
445
  key: string;
446
+ description?: string | Record<string, string> | null | undefined;
447
+ required?: boolean | undefined;
446
448
  array?: boolean | undefined;
447
449
  error?: string | undefined;
448
- required?: boolean | undefined;
449
450
  xdefault?: number | null | undefined;
450
- description?: string | Record<string, string> | null | undefined;
451
451
  min?: number | undefined;
452
452
  max?: number | undefined;
453
453
  } | {
454
454
  type: "float";
455
455
  key: string;
456
+ description?: string | Record<string, string> | null | undefined;
457
+ required?: boolean | undefined;
456
458
  array?: boolean | undefined;
457
459
  error?: string | undefined;
458
- required?: boolean | undefined;
459
460
  xdefault?: number | null | undefined;
460
- description?: string | Record<string, string> | null | undefined;
461
461
  min?: number | undefined;
462
462
  max?: number | undefined;
463
463
  } | {
464
464
  type: "boolean";
465
465
  key: string;
466
+ description?: string | Record<string, string> | null | undefined;
467
+ required?: boolean | undefined;
466
468
  array?: boolean | undefined;
467
469
  error?: string | undefined;
468
- required?: boolean | undefined;
469
470
  xdefault?: boolean | null | undefined;
470
- description?: string | Record<string, string> | null | undefined;
471
471
  } | {
472
472
  type: "datetime";
473
473
  key: string;
474
+ description?: string | Record<string, string> | null | undefined;
475
+ required?: boolean | undefined;
474
476
  array?: boolean | undefined;
475
477
  error?: string | undefined;
476
- required?: boolean | undefined;
477
478
  xdefault?: string | null | undefined;
478
- description?: string | Record<string, string> | null | undefined;
479
479
  } | {
480
480
  type: "email";
481
481
  key: string;
482
+ description?: string | Record<string, string> | null | undefined;
483
+ required?: boolean | undefined;
482
484
  array?: boolean | undefined;
483
485
  error?: string | undefined;
484
- required?: boolean | undefined;
485
486
  xdefault?: string | null | undefined;
486
- description?: string | Record<string, string> | null | undefined;
487
487
  } | {
488
488
  type: "ip";
489
489
  key: string;
490
+ description?: string | Record<string, string> | null | undefined;
491
+ required?: boolean | undefined;
490
492
  array?: boolean | undefined;
491
493
  error?: string | undefined;
492
- required?: boolean | undefined;
493
494
  xdefault?: string | null | undefined;
494
- description?: string | Record<string, string> | null | undefined;
495
495
  } | {
496
496
  type: "url";
497
497
  key: string;
498
+ description?: string | Record<string, string> | null | undefined;
499
+ required?: boolean | undefined;
498
500
  array?: boolean | undefined;
499
501
  error?: string | undefined;
500
- required?: boolean | undefined;
501
502
  xdefault?: string | null | undefined;
502
- description?: string | Record<string, string> | null | undefined;
503
503
  } | {
504
504
  type: "enum";
505
505
  key: string;
506
506
  elements: string[];
507
+ description?: string | Record<string, string> | null | undefined;
508
+ required?: boolean | undefined;
507
509
  array?: boolean | undefined;
508
510
  error?: string | undefined;
509
- required?: boolean | undefined;
510
511
  xdefault?: string | null | undefined;
511
- description?: string | Record<string, string> | null | undefined;
512
512
  } | {
513
513
  type: "relationship";
514
514
  key: string;
@@ -518,10 +518,10 @@ export declare const getMigrationCollectionSchemas: () => {
518
518
  twoWayKey: string;
519
519
  onDelete: "setNull" | "cascade" | "restrict";
520
520
  side: "parent" | "child";
521
+ description?: string | Record<string, string> | null | undefined;
522
+ required?: boolean | undefined;
521
523
  array?: boolean | undefined;
522
524
  error?: string | undefined;
523
- required?: boolean | undefined;
524
- description?: string | Record<string, string> | null | undefined;
525
525
  importMapping?: {
526
526
  originalIdField: string;
527
527
  targetField?: string | undefined;
@@ -583,82 +583,82 @@ export declare const getMigrationCollectionSchemas: () => {
583
583
  type: "string";
584
584
  key: string;
585
585
  size: number;
586
+ format?: string | null | undefined;
587
+ description?: string | Record<string, string> | undefined;
588
+ required?: boolean | undefined;
586
589
  array?: boolean | undefined;
587
590
  error?: string | undefined;
588
- required?: boolean | undefined;
589
591
  xdefault?: string | null | undefined;
590
592
  encrypted?: boolean | undefined;
591
- format?: string | null | undefined;
592
- description?: string | Record<string, string> | undefined;
593
593
  } | {
594
594
  type: "integer";
595
595
  key: string;
596
+ description?: string | Record<string, string> | null | undefined;
597
+ required?: boolean | undefined;
596
598
  array?: boolean | undefined;
597
599
  error?: string | undefined;
598
- required?: boolean | undefined;
599
600
  xdefault?: number | null | undefined;
600
- description?: string | Record<string, string> | null | undefined;
601
601
  min?: number | undefined;
602
602
  max?: number | undefined;
603
603
  } | {
604
604
  type: "float";
605
605
  key: string;
606
+ description?: string | Record<string, string> | null | undefined;
607
+ required?: boolean | undefined;
606
608
  array?: boolean | undefined;
607
609
  error?: string | undefined;
608
- required?: boolean | undefined;
609
610
  xdefault?: number | null | undefined;
610
- description?: string | Record<string, string> | null | undefined;
611
611
  min?: number | undefined;
612
612
  max?: number | undefined;
613
613
  } | {
614
614
  type: "boolean";
615
615
  key: string;
616
+ description?: string | Record<string, string> | null | undefined;
617
+ required?: boolean | undefined;
616
618
  array?: boolean | undefined;
617
619
  error?: string | undefined;
618
- required?: boolean | undefined;
619
620
  xdefault?: boolean | null | undefined;
620
- description?: string | Record<string, string> | null | undefined;
621
621
  } | {
622
622
  type: "datetime";
623
623
  key: string;
624
+ description?: string | Record<string, string> | null | undefined;
625
+ required?: boolean | undefined;
624
626
  array?: boolean | undefined;
625
627
  error?: string | undefined;
626
- required?: boolean | undefined;
627
628
  xdefault?: string | null | undefined;
628
- description?: string | Record<string, string> | null | undefined;
629
629
  } | {
630
630
  type: "email";
631
631
  key: string;
632
+ description?: string | Record<string, string> | null | undefined;
633
+ required?: boolean | undefined;
632
634
  array?: boolean | undefined;
633
635
  error?: string | undefined;
634
- required?: boolean | undefined;
635
636
  xdefault?: string | null | undefined;
636
- description?: string | Record<string, string> | null | undefined;
637
637
  } | {
638
638
  type: "ip";
639
639
  key: string;
640
+ description?: string | Record<string, string> | null | undefined;
641
+ required?: boolean | undefined;
640
642
  array?: boolean | undefined;
641
643
  error?: string | undefined;
642
- required?: boolean | undefined;
643
644
  xdefault?: string | null | undefined;
644
- description?: string | Record<string, string> | null | undefined;
645
645
  } | {
646
646
  type: "url";
647
647
  key: string;
648
+ description?: string | Record<string, string> | null | undefined;
649
+ required?: boolean | undefined;
648
650
  array?: boolean | undefined;
649
651
  error?: string | undefined;
650
- required?: boolean | undefined;
651
652
  xdefault?: string | null | undefined;
652
- description?: string | Record<string, string> | null | undefined;
653
653
  } | {
654
654
  type: "enum";
655
655
  key: string;
656
656
  elements: string[];
657
+ description?: string | Record<string, string> | null | undefined;
658
+ required?: boolean | undefined;
657
659
  array?: boolean | undefined;
658
660
  error?: string | undefined;
659
- required?: boolean | undefined;
660
661
  xdefault?: string | null | undefined;
661
- description?: string | Record<string, string> | null | undefined;
662
662
  } | {
663
663
  type: "relationship";
664
664
  key: string;
@@ -668,10 +668,10 @@ export declare const getMigrationCollectionSchemas: () => {
668
668
  twoWayKey: string;
669
669
  onDelete: "setNull" | "cascade" | "restrict";
670
670
  side: "parent" | "child";
671
+ description?: string | Record<string, string> | null | undefined;
672
+ required?: boolean | undefined;
671
673
  array?: boolean | undefined;
672
674
  error?: string | undefined;
673
- required?: boolean | undefined;
674
- description?: string | Record<string, string> | null | undefined;
675
675
  importMapping?: {
676
676
  originalIdField: string;
677
677
  targetField?: string | undefined;