appwrite-utils-cli 0.0.268 → 0.0.270
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/README.md +21 -1
- package/dist/main.js +18 -1
- package/dist/migrations/appwriteToX.d.ts +11 -0
- package/dist/migrations/appwriteToX.js +8 -1
- package/dist/migrations/backup.d.ts +48 -2
- package/dist/migrations/collections.js +29 -18
- package/dist/migrations/dataLoader.d.ts +106 -12
- package/dist/migrations/openapi.d.ts +4 -0
- package/dist/migrations/openapi.js +44 -0
- package/dist/migrations/relationships.d.ts +1 -0
- package/dist/migrations/schema.d.ts +358 -49
- package/dist/migrations/schema.js +67 -10
- package/dist/migrations/schemaStrings.js +47 -41
- package/dist/schemas/authUser.d.ts +3 -3
- package/dist/utilsController.d.ts +4 -1
- package/dist/utilsController.js +18 -6
- package/package.json +2 -1
- package/src/main.ts +18 -1
- package/src/migrations/appwriteToX.ts +12 -1
- package/src/migrations/collections.ts +40 -38
- package/src/migrations/openapi.ts +69 -0
- package/src/migrations/schema.ts +89 -10
- package/src/migrations/schemaStrings.ts +49 -42
- package/src/utilsController.ts +22 -6
@@ -8,6 +8,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
8
8
|
$id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
9
9
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
10
10
|
documentSecurity: z.ZodDefault<z.ZodBoolean>;
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
11
12
|
$createdAt: z.ZodString;
|
12
13
|
$updatedAt: z.ZodString;
|
13
14
|
$permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
@@ -20,7 +21,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
20
21
|
permission: string;
|
21
22
|
target: string;
|
22
23
|
}>, "many">>;
|
23
|
-
attributes: z.ZodDefault<z.ZodArray<z.
|
24
|
+
attributes: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
24
25
|
key: z.ZodString;
|
25
26
|
type: z.ZodDefault<z.ZodLiteral<"string">>;
|
26
27
|
error: z.ZodDefault<z.ZodString>;
|
@@ -29,6 +30,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
29
30
|
size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
30
31
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
31
32
|
encrypted: z.ZodOptional<z.ZodBoolean>;
|
33
|
+
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
34
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
32
35
|
}, "strip", z.ZodTypeAny, {
|
33
36
|
key: string;
|
34
37
|
type: "string";
|
@@ -38,6 +41,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
38
41
|
size: number;
|
39
42
|
xdefault?: string | null | undefined;
|
40
43
|
encrypted?: boolean | undefined;
|
44
|
+
format?: string | null | undefined;
|
45
|
+
description?: string | Record<string, string> | null | undefined;
|
41
46
|
}, {
|
42
47
|
key: string;
|
43
48
|
type?: "string" | undefined;
|
@@ -47,6 +52,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
47
52
|
size?: number | undefined;
|
48
53
|
xdefault?: string | null | undefined;
|
49
54
|
encrypted?: boolean | undefined;
|
55
|
+
format?: string | null | undefined;
|
56
|
+
description?: string | Record<string, string> | null | undefined;
|
50
57
|
}>, z.ZodObject<{
|
51
58
|
key: z.ZodString;
|
52
59
|
type: z.ZodDefault<z.ZodLiteral<"integer">>;
|
@@ -56,6 +63,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
56
63
|
min: z.ZodOptional<z.ZodNumber>;
|
57
64
|
max: z.ZodOptional<z.ZodNumber>;
|
58
65
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
66
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
59
67
|
}, "strip", z.ZodTypeAny, {
|
60
68
|
key: string;
|
61
69
|
type: "integer";
|
@@ -65,6 +73,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
65
73
|
min?: number | undefined;
|
66
74
|
max?: number | undefined;
|
67
75
|
xdefault?: number | null | undefined;
|
76
|
+
description?: string | Record<string, string> | null | undefined;
|
68
77
|
}, {
|
69
78
|
key: string;
|
70
79
|
type?: "integer" | undefined;
|
@@ -74,7 +83,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
74
83
|
min?: number | undefined;
|
75
84
|
max?: number | undefined;
|
76
85
|
xdefault?: number | null | undefined;
|
77
|
-
|
86
|
+
description?: string | Record<string, string> | null | undefined;
|
87
|
+
}>, z.ZodObject<{
|
78
88
|
key: z.ZodString;
|
79
89
|
type: z.ZodDefault<z.ZodLiteral<"float">>;
|
80
90
|
error: z.ZodDefault<z.ZodString>;
|
@@ -83,6 +93,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
83
93
|
min: z.ZodOptional<z.ZodNumber>;
|
84
94
|
max: z.ZodOptional<z.ZodNumber>;
|
85
95
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
96
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
86
97
|
}, "strip", z.ZodTypeAny, {
|
87
98
|
key: string;
|
88
99
|
type: "float";
|
@@ -92,6 +103,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
92
103
|
min?: number | undefined;
|
93
104
|
max?: number | undefined;
|
94
105
|
xdefault?: number | null | undefined;
|
106
|
+
description?: string | Record<string, string> | null | undefined;
|
95
107
|
}, {
|
96
108
|
key: string;
|
97
109
|
type?: "float" | undefined;
|
@@ -101,13 +113,15 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
101
113
|
min?: number | undefined;
|
102
114
|
max?: number | undefined;
|
103
115
|
xdefault?: number | null | undefined;
|
104
|
-
|
116
|
+
description?: string | Record<string, string> | null | undefined;
|
117
|
+
}>, z.ZodObject<{
|
105
118
|
key: z.ZodString;
|
106
119
|
type: z.ZodDefault<z.ZodLiteral<"boolean">>;
|
107
120
|
error: z.ZodDefault<z.ZodString>;
|
108
121
|
required: z.ZodDefault<z.ZodBoolean>;
|
109
122
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
110
123
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
124
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
111
125
|
}, "strip", z.ZodTypeAny, {
|
112
126
|
key: string;
|
113
127
|
type: "boolean";
|
@@ -115,6 +129,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
115
129
|
required: boolean;
|
116
130
|
array: boolean;
|
117
131
|
xdefault?: boolean | null | undefined;
|
132
|
+
description?: string | Record<string, string> | null | undefined;
|
118
133
|
}, {
|
119
134
|
key: string;
|
120
135
|
type?: "boolean" | undefined;
|
@@ -122,13 +137,15 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
122
137
|
required?: boolean | undefined;
|
123
138
|
array?: boolean | undefined;
|
124
139
|
xdefault?: boolean | null | undefined;
|
125
|
-
|
140
|
+
description?: string | Record<string, string> | null | undefined;
|
141
|
+
}>, z.ZodObject<{
|
126
142
|
key: z.ZodString;
|
127
143
|
type: z.ZodDefault<z.ZodLiteral<"datetime">>;
|
128
144
|
error: z.ZodDefault<z.ZodString>;
|
129
145
|
required: z.ZodDefault<z.ZodBoolean>;
|
130
146
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
131
147
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
148
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
132
149
|
}, "strip", z.ZodTypeAny, {
|
133
150
|
key: string;
|
134
151
|
type: "datetime";
|
@@ -136,6 +153,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
136
153
|
required: boolean;
|
137
154
|
array: boolean;
|
138
155
|
xdefault?: string | null | undefined;
|
156
|
+
description?: string | Record<string, string> | null | undefined;
|
139
157
|
}, {
|
140
158
|
key: string;
|
141
159
|
type?: "datetime" | undefined;
|
@@ -143,13 +161,15 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
143
161
|
required?: boolean | undefined;
|
144
162
|
array?: boolean | undefined;
|
145
163
|
xdefault?: string | null | undefined;
|
146
|
-
|
164
|
+
description?: string | Record<string, string> | null | undefined;
|
165
|
+
}>, z.ZodObject<{
|
147
166
|
key: z.ZodString;
|
148
167
|
type: z.ZodDefault<z.ZodLiteral<"email">>;
|
149
168
|
error: z.ZodDefault<z.ZodString>;
|
150
169
|
required: z.ZodDefault<z.ZodBoolean>;
|
151
170
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
152
171
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
172
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
153
173
|
}, "strip", z.ZodTypeAny, {
|
154
174
|
key: string;
|
155
175
|
type: "email";
|
@@ -157,6 +177,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
157
177
|
required: boolean;
|
158
178
|
array: boolean;
|
159
179
|
xdefault?: string | null | undefined;
|
180
|
+
description?: string | Record<string, string> | null | undefined;
|
160
181
|
}, {
|
161
182
|
key: string;
|
162
183
|
type?: "email" | undefined;
|
@@ -164,13 +185,15 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
164
185
|
required?: boolean | undefined;
|
165
186
|
array?: boolean | undefined;
|
166
187
|
xdefault?: string | null | undefined;
|
167
|
-
|
188
|
+
description?: string | Record<string, string> | null | undefined;
|
189
|
+
}>, z.ZodObject<{
|
168
190
|
key: z.ZodString;
|
169
191
|
type: z.ZodLiteral<"ip">;
|
170
192
|
error: z.ZodDefault<z.ZodString>;
|
171
193
|
required: z.ZodDefault<z.ZodBoolean>;
|
172
194
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
173
195
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
196
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
174
197
|
}, "strip", z.ZodTypeAny, {
|
175
198
|
key: string;
|
176
199
|
type: "ip";
|
@@ -178,6 +201,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
178
201
|
required: boolean;
|
179
202
|
array: boolean;
|
180
203
|
xdefault?: string | null | undefined;
|
204
|
+
description?: string | Record<string, string> | null | undefined;
|
181
205
|
}, {
|
182
206
|
key: string;
|
183
207
|
type: "ip";
|
@@ -185,13 +209,15 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
185
209
|
required?: boolean | undefined;
|
186
210
|
array?: boolean | undefined;
|
187
211
|
xdefault?: string | null | undefined;
|
188
|
-
|
212
|
+
description?: string | Record<string, string> | null | undefined;
|
213
|
+
}>, z.ZodObject<{
|
189
214
|
key: z.ZodString;
|
190
215
|
type: z.ZodDefault<z.ZodLiteral<"url">>;
|
191
216
|
error: z.ZodDefault<z.ZodString>;
|
192
217
|
required: z.ZodDefault<z.ZodBoolean>;
|
193
218
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
194
219
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
220
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
195
221
|
}, "strip", z.ZodTypeAny, {
|
196
222
|
key: string;
|
197
223
|
type: "url";
|
@@ -199,6 +225,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
199
225
|
required: boolean;
|
200
226
|
array: boolean;
|
201
227
|
xdefault?: string | null | undefined;
|
228
|
+
description?: string | Record<string, string> | null | undefined;
|
202
229
|
}, {
|
203
230
|
key: string;
|
204
231
|
type?: "url" | undefined;
|
@@ -206,7 +233,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
206
233
|
required?: boolean | undefined;
|
207
234
|
array?: boolean | undefined;
|
208
235
|
xdefault?: string | null | undefined;
|
209
|
-
|
236
|
+
description?: string | Record<string, string> | null | undefined;
|
237
|
+
}>, z.ZodObject<{
|
210
238
|
key: z.ZodString;
|
211
239
|
type: z.ZodDefault<z.ZodLiteral<"enum">>;
|
212
240
|
error: z.ZodDefault<z.ZodString>;
|
@@ -214,6 +242,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
214
242
|
array: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
215
243
|
elements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
216
244
|
xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
245
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
217
246
|
}, "strip", z.ZodTypeAny, {
|
218
247
|
key: string;
|
219
248
|
type: "enum";
|
@@ -222,6 +251,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
222
251
|
array: boolean;
|
223
252
|
elements: string[];
|
224
253
|
xdefault?: string | null | undefined;
|
254
|
+
description?: string | Record<string, string> | null | undefined;
|
225
255
|
}, {
|
226
256
|
key: string;
|
227
257
|
type?: "enum" | undefined;
|
@@ -230,7 +260,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
230
260
|
array?: boolean | undefined;
|
231
261
|
elements?: string[] | undefined;
|
232
262
|
xdefault?: string | null | undefined;
|
233
|
-
|
263
|
+
description?: string | Record<string, string> | null | undefined;
|
264
|
+
}>, z.ZodObject<{
|
234
265
|
key: z.ZodString;
|
235
266
|
type: z.ZodDefault<z.ZodLiteral<"relationship">>;
|
236
267
|
error: z.ZodDefault<z.ZodString>;
|
@@ -252,6 +283,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
252
283
|
originalIdField: string;
|
253
284
|
targetField?: string | undefined;
|
254
285
|
}>>;
|
286
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
255
287
|
}, "strip", z.ZodTypeAny, {
|
256
288
|
key: string;
|
257
289
|
type: "relationship";
|
@@ -268,6 +300,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
268
300
|
originalIdField: string;
|
269
301
|
targetField?: string | undefined;
|
270
302
|
} | undefined;
|
303
|
+
description?: string | Record<string, string> | null | undefined;
|
271
304
|
}, {
|
272
305
|
key: string;
|
273
306
|
relatedCollection: string;
|
@@ -284,6 +317,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
284
317
|
originalIdField: string;
|
285
318
|
targetField?: string | undefined;
|
286
319
|
} | undefined;
|
320
|
+
description?: string | Record<string, string> | null | undefined;
|
287
321
|
}>]>, "many">>;
|
288
322
|
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
289
323
|
key: z.ZodString;
|
@@ -477,6 +511,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
477
511
|
}>, "many">>;
|
478
512
|
databaseId: z.ZodOptional<z.ZodString>;
|
479
513
|
}, "$createdAt" | "$updatedAt">, "strip", z.ZodTypeAny, {
|
514
|
+
name: string;
|
480
515
|
attributes: ({
|
481
516
|
key: string;
|
482
517
|
type: "string";
|
@@ -486,6 +521,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
486
521
|
size: number;
|
487
522
|
xdefault?: string | null | undefined;
|
488
523
|
encrypted?: boolean | undefined;
|
524
|
+
format?: string | null | undefined;
|
525
|
+
description?: string | Record<string, string> | null | undefined;
|
489
526
|
} | {
|
490
527
|
key: string;
|
491
528
|
type: "integer";
|
@@ -495,6 +532,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
495
532
|
min?: number | undefined;
|
496
533
|
max?: number | undefined;
|
497
534
|
xdefault?: number | null | undefined;
|
535
|
+
description?: string | Record<string, string> | null | undefined;
|
498
536
|
} | {
|
499
537
|
key: string;
|
500
538
|
type: "float";
|
@@ -504,6 +542,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
504
542
|
min?: number | undefined;
|
505
543
|
max?: number | undefined;
|
506
544
|
xdefault?: number | null | undefined;
|
545
|
+
description?: string | Record<string, string> | null | undefined;
|
507
546
|
} | {
|
508
547
|
key: string;
|
509
548
|
type: "boolean";
|
@@ -511,6 +550,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
511
550
|
required: boolean;
|
512
551
|
array: boolean;
|
513
552
|
xdefault?: boolean | null | undefined;
|
553
|
+
description?: string | Record<string, string> | null | undefined;
|
514
554
|
} | {
|
515
555
|
key: string;
|
516
556
|
type: "datetime";
|
@@ -518,6 +558,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
518
558
|
required: boolean;
|
519
559
|
array: boolean;
|
520
560
|
xdefault?: string | null | undefined;
|
561
|
+
description?: string | Record<string, string> | null | undefined;
|
521
562
|
} | {
|
522
563
|
key: string;
|
523
564
|
type: "email";
|
@@ -525,6 +566,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
525
566
|
required: boolean;
|
526
567
|
array: boolean;
|
527
568
|
xdefault?: string | null | undefined;
|
569
|
+
description?: string | Record<string, string> | null | undefined;
|
528
570
|
} | {
|
529
571
|
key: string;
|
530
572
|
type: "ip";
|
@@ -532,6 +574,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
532
574
|
required: boolean;
|
533
575
|
array: boolean;
|
534
576
|
xdefault?: string | null | undefined;
|
577
|
+
description?: string | Record<string, string> | null | undefined;
|
535
578
|
} | {
|
536
579
|
key: string;
|
537
580
|
type: "url";
|
@@ -539,6 +582,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
539
582
|
required: boolean;
|
540
583
|
array: boolean;
|
541
584
|
xdefault?: string | null | undefined;
|
585
|
+
description?: string | Record<string, string> | null | undefined;
|
542
586
|
} | {
|
543
587
|
key: string;
|
544
588
|
type: "enum";
|
@@ -547,6 +591,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
547
591
|
array: boolean;
|
548
592
|
elements: string[];
|
549
593
|
xdefault?: string | null | undefined;
|
594
|
+
description?: string | Record<string, string> | null | undefined;
|
550
595
|
} | {
|
551
596
|
key: string;
|
552
597
|
type: "relationship";
|
@@ -563,8 +608,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
563
608
|
originalIdField: string;
|
564
609
|
targetField?: string | undefined;
|
565
610
|
} | undefined;
|
611
|
+
description?: string | Record<string, string> | null | undefined;
|
566
612
|
})[];
|
567
|
-
name: string;
|
568
613
|
$id: string;
|
569
614
|
enabled: boolean;
|
570
615
|
documentSecurity: boolean;
|
@@ -614,9 +659,11 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
614
659
|
targetField: string;
|
615
660
|
} | undefined;
|
616
661
|
}[];
|
662
|
+
description?: string | undefined;
|
617
663
|
databaseId?: string | undefined;
|
618
664
|
}, {
|
619
665
|
name: string;
|
666
|
+
description?: string | undefined;
|
620
667
|
attributes?: ({
|
621
668
|
key: string;
|
622
669
|
type?: "string" | undefined;
|
@@ -626,6 +673,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
626
673
|
size?: number | undefined;
|
627
674
|
xdefault?: string | null | undefined;
|
628
675
|
encrypted?: boolean | undefined;
|
676
|
+
format?: string | null | undefined;
|
677
|
+
description?: string | Record<string, string> | null | undefined;
|
629
678
|
} | {
|
630
679
|
key: string;
|
631
680
|
type?: "integer" | undefined;
|
@@ -635,6 +684,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
635
684
|
min?: number | undefined;
|
636
685
|
max?: number | undefined;
|
637
686
|
xdefault?: number | null | undefined;
|
687
|
+
description?: string | Record<string, string> | null | undefined;
|
638
688
|
} | {
|
639
689
|
key: string;
|
640
690
|
type?: "float" | undefined;
|
@@ -644,6 +694,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
644
694
|
min?: number | undefined;
|
645
695
|
max?: number | undefined;
|
646
696
|
xdefault?: number | null | undefined;
|
697
|
+
description?: string | Record<string, string> | null | undefined;
|
647
698
|
} | {
|
648
699
|
key: string;
|
649
700
|
type?: "boolean" | undefined;
|
@@ -651,6 +702,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
651
702
|
required?: boolean | undefined;
|
652
703
|
array?: boolean | undefined;
|
653
704
|
xdefault?: boolean | null | undefined;
|
705
|
+
description?: string | Record<string, string> | null | undefined;
|
654
706
|
} | {
|
655
707
|
key: string;
|
656
708
|
type?: "datetime" | undefined;
|
@@ -658,6 +710,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
658
710
|
required?: boolean | undefined;
|
659
711
|
array?: boolean | undefined;
|
660
712
|
xdefault?: string | null | undefined;
|
713
|
+
description?: string | Record<string, string> | null | undefined;
|
661
714
|
} | {
|
662
715
|
key: string;
|
663
716
|
type?: "email" | undefined;
|
@@ -665,6 +718,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
665
718
|
required?: boolean | undefined;
|
666
719
|
array?: boolean | undefined;
|
667
720
|
xdefault?: string | null | undefined;
|
721
|
+
description?: string | Record<string, string> | null | undefined;
|
668
722
|
} | {
|
669
723
|
key: string;
|
670
724
|
type: "ip";
|
@@ -672,6 +726,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
672
726
|
required?: boolean | undefined;
|
673
727
|
array?: boolean | undefined;
|
674
728
|
xdefault?: string | null | undefined;
|
729
|
+
description?: string | Record<string, string> | null | undefined;
|
675
730
|
} | {
|
676
731
|
key: string;
|
677
732
|
type?: "url" | undefined;
|
@@ -679,6 +734,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
679
734
|
required?: boolean | undefined;
|
680
735
|
array?: boolean | undefined;
|
681
736
|
xdefault?: string | null | undefined;
|
737
|
+
description?: string | Record<string, string> | null | undefined;
|
682
738
|
} | {
|
683
739
|
key: string;
|
684
740
|
type?: "enum" | undefined;
|
@@ -687,6 +743,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
687
743
|
array?: boolean | undefined;
|
688
744
|
elements?: string[] | undefined;
|
689
745
|
xdefault?: string | null | undefined;
|
746
|
+
description?: string | Record<string, string> | null | undefined;
|
690
747
|
} | {
|
691
748
|
key: string;
|
692
749
|
relatedCollection: string;
|
@@ -703,6 +760,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
703
760
|
originalIdField: string;
|
704
761
|
targetField?: string | undefined;
|
705
762
|
} | undefined;
|
763
|
+
description?: string | Record<string, string> | null | undefined;
|
706
764
|
})[] | undefined;
|
707
765
|
$id?: string | undefined;
|
708
766
|
enabled?: boolean | undefined;
|
@@ -1045,6 +1103,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1045
1103
|
} | undefined;
|
1046
1104
|
}[];
|
1047
1105
|
collection?: {
|
1106
|
+
name: string;
|
1048
1107
|
attributes: ({
|
1049
1108
|
key: string;
|
1050
1109
|
type: "string";
|
@@ -1054,6 +1113,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1054
1113
|
size: number;
|
1055
1114
|
xdefault?: string | null | undefined;
|
1056
1115
|
encrypted?: boolean | undefined;
|
1116
|
+
format?: string | null | undefined;
|
1117
|
+
description?: string | Record<string, string> | null | undefined;
|
1057
1118
|
} | {
|
1058
1119
|
key: string;
|
1059
1120
|
type: "integer";
|
@@ -1063,6 +1124,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1063
1124
|
min?: number | undefined;
|
1064
1125
|
max?: number | undefined;
|
1065
1126
|
xdefault?: number | null | undefined;
|
1127
|
+
description?: string | Record<string, string> | null | undefined;
|
1066
1128
|
} | {
|
1067
1129
|
key: string;
|
1068
1130
|
type: "float";
|
@@ -1072,6 +1134,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1072
1134
|
min?: number | undefined;
|
1073
1135
|
max?: number | undefined;
|
1074
1136
|
xdefault?: number | null | undefined;
|
1137
|
+
description?: string | Record<string, string> | null | undefined;
|
1075
1138
|
} | {
|
1076
1139
|
key: string;
|
1077
1140
|
type: "boolean";
|
@@ -1079,6 +1142,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1079
1142
|
required: boolean;
|
1080
1143
|
array: boolean;
|
1081
1144
|
xdefault?: boolean | null | undefined;
|
1145
|
+
description?: string | Record<string, string> | null | undefined;
|
1082
1146
|
} | {
|
1083
1147
|
key: string;
|
1084
1148
|
type: "datetime";
|
@@ -1086,6 +1150,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1086
1150
|
required: boolean;
|
1087
1151
|
array: boolean;
|
1088
1152
|
xdefault?: string | null | undefined;
|
1153
|
+
description?: string | Record<string, string> | null | undefined;
|
1089
1154
|
} | {
|
1090
1155
|
key: string;
|
1091
1156
|
type: "email";
|
@@ -1093,6 +1158,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1093
1158
|
required: boolean;
|
1094
1159
|
array: boolean;
|
1095
1160
|
xdefault?: string | null | undefined;
|
1161
|
+
description?: string | Record<string, string> | null | undefined;
|
1096
1162
|
} | {
|
1097
1163
|
key: string;
|
1098
1164
|
type: "ip";
|
@@ -1100,6 +1166,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1100
1166
|
required: boolean;
|
1101
1167
|
array: boolean;
|
1102
1168
|
xdefault?: string | null | undefined;
|
1169
|
+
description?: string | Record<string, string> | null | undefined;
|
1103
1170
|
} | {
|
1104
1171
|
key: string;
|
1105
1172
|
type: "url";
|
@@ -1107,6 +1174,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1107
1174
|
required: boolean;
|
1108
1175
|
array: boolean;
|
1109
1176
|
xdefault?: string | null | undefined;
|
1177
|
+
description?: string | Record<string, string> | null | undefined;
|
1110
1178
|
} | {
|
1111
1179
|
key: string;
|
1112
1180
|
type: "enum";
|
@@ -1115,6 +1183,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1115
1183
|
array: boolean;
|
1116
1184
|
elements: string[];
|
1117
1185
|
xdefault?: string | null | undefined;
|
1186
|
+
description?: string | Record<string, string> | null | undefined;
|
1118
1187
|
} | {
|
1119
1188
|
key: string;
|
1120
1189
|
type: "relationship";
|
@@ -1131,8 +1200,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1131
1200
|
originalIdField: string;
|
1132
1201
|
targetField?: string | undefined;
|
1133
1202
|
} | undefined;
|
1203
|
+
description?: string | Record<string, string> | null | undefined;
|
1134
1204
|
})[];
|
1135
|
-
name: string;
|
1136
1205
|
$id: string;
|
1137
1206
|
enabled: boolean;
|
1138
1207
|
documentSecurity: boolean;
|
@@ -1182,6 +1251,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1182
1251
|
targetField: string;
|
1183
1252
|
} | undefined;
|
1184
1253
|
}[];
|
1254
|
+
description?: string | undefined;
|
1185
1255
|
databaseId?: string | undefined;
|
1186
1256
|
} | undefined;
|
1187
1257
|
}, {
|
@@ -1226,6 +1296,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1226
1296
|
}[];
|
1227
1297
|
collection?: {
|
1228
1298
|
name: string;
|
1299
|
+
description?: string | undefined;
|
1229
1300
|
attributes?: ({
|
1230
1301
|
key: string;
|
1231
1302
|
type?: "string" | undefined;
|
@@ -1235,6 +1306,8 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1235
1306
|
size?: number | undefined;
|
1236
1307
|
xdefault?: string | null | undefined;
|
1237
1308
|
encrypted?: boolean | undefined;
|
1309
|
+
format?: string | null | undefined;
|
1310
|
+
description?: string | Record<string, string> | null | undefined;
|
1238
1311
|
} | {
|
1239
1312
|
key: string;
|
1240
1313
|
type?: "integer" | undefined;
|
@@ -1244,6 +1317,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1244
1317
|
min?: number | undefined;
|
1245
1318
|
max?: number | undefined;
|
1246
1319
|
xdefault?: number | null | undefined;
|
1320
|
+
description?: string | Record<string, string> | null | undefined;
|
1247
1321
|
} | {
|
1248
1322
|
key: string;
|
1249
1323
|
type?: "float" | undefined;
|
@@ -1253,6 +1327,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1253
1327
|
min?: number | undefined;
|
1254
1328
|
max?: number | undefined;
|
1255
1329
|
xdefault?: number | null | undefined;
|
1330
|
+
description?: string | Record<string, string> | null | undefined;
|
1256
1331
|
} | {
|
1257
1332
|
key: string;
|
1258
1333
|
type?: "boolean" | undefined;
|
@@ -1260,6 +1335,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1260
1335
|
required?: boolean | undefined;
|
1261
1336
|
array?: boolean | undefined;
|
1262
1337
|
xdefault?: boolean | null | undefined;
|
1338
|
+
description?: string | Record<string, string> | null | undefined;
|
1263
1339
|
} | {
|
1264
1340
|
key: string;
|
1265
1341
|
type?: "datetime" | undefined;
|
@@ -1267,6 +1343,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1267
1343
|
required?: boolean | undefined;
|
1268
1344
|
array?: boolean | undefined;
|
1269
1345
|
xdefault?: string | null | undefined;
|
1346
|
+
description?: string | Record<string, string> | null | undefined;
|
1270
1347
|
} | {
|
1271
1348
|
key: string;
|
1272
1349
|
type?: "email" | undefined;
|
@@ -1274,6 +1351,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1274
1351
|
required?: boolean | undefined;
|
1275
1352
|
array?: boolean | undefined;
|
1276
1353
|
xdefault?: string | null | undefined;
|
1354
|
+
description?: string | Record<string, string> | null | undefined;
|
1277
1355
|
} | {
|
1278
1356
|
key: string;
|
1279
1357
|
type: "ip";
|
@@ -1281,6 +1359,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1281
1359
|
required?: boolean | undefined;
|
1282
1360
|
array?: boolean | undefined;
|
1283
1361
|
xdefault?: string | null | undefined;
|
1362
|
+
description?: string | Record<string, string> | null | undefined;
|
1284
1363
|
} | {
|
1285
1364
|
key: string;
|
1286
1365
|
type?: "url" | undefined;
|
@@ -1288,6 +1367,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1288
1367
|
required?: boolean | undefined;
|
1289
1368
|
array?: boolean | undefined;
|
1290
1369
|
xdefault?: string | null | undefined;
|
1370
|
+
description?: string | Record<string, string> | null | undefined;
|
1291
1371
|
} | {
|
1292
1372
|
key: string;
|
1293
1373
|
type?: "enum" | undefined;
|
@@ -1296,6 +1376,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1296
1376
|
array?: boolean | undefined;
|
1297
1377
|
elements?: string[] | undefined;
|
1298
1378
|
xdefault?: string | null | undefined;
|
1379
|
+
description?: string | Record<string, string> | null | undefined;
|
1299
1380
|
} | {
|
1300
1381
|
key: string;
|
1301
1382
|
relatedCollection: string;
|
@@ -1312,6 +1393,7 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
|
|
1312
1393
|
originalIdField: string;
|
1313
1394
|
targetField?: string | undefined;
|
1314
1395
|
} | undefined;
|
1396
|
+
description?: string | Record<string, string> | null | undefined;
|
1315
1397
|
})[] | undefined;
|
1316
1398
|
$id?: string | undefined;
|
1317
1399
|
enabled?: boolean | undefined;
|
@@ -1413,6 +1495,7 @@ export declare class DataLoader {
|
|
1413
1495
|
} | undefined;
|
1414
1496
|
}[];
|
1415
1497
|
collection?: {
|
1498
|
+
name: string;
|
1416
1499
|
attributes: ({
|
1417
1500
|
key: string;
|
1418
1501
|
type: "string";
|
@@ -1422,6 +1505,8 @@ export declare class DataLoader {
|
|
1422
1505
|
size: number;
|
1423
1506
|
xdefault?: string | null | undefined;
|
1424
1507
|
encrypted?: boolean | undefined;
|
1508
|
+
format?: string | null | undefined;
|
1509
|
+
description?: string | Record<string, string> | null | undefined;
|
1425
1510
|
} | {
|
1426
1511
|
key: string;
|
1427
1512
|
type: "integer";
|
@@ -1431,6 +1516,7 @@ export declare class DataLoader {
|
|
1431
1516
|
min?: number | undefined;
|
1432
1517
|
max?: number | undefined;
|
1433
1518
|
xdefault?: number | null | undefined;
|
1519
|
+
description?: string | Record<string, string> | null | undefined;
|
1434
1520
|
} | {
|
1435
1521
|
key: string;
|
1436
1522
|
type: "float";
|
@@ -1440,6 +1526,7 @@ export declare class DataLoader {
|
|
1440
1526
|
min?: number | undefined;
|
1441
1527
|
max?: number | undefined;
|
1442
1528
|
xdefault?: number | null | undefined;
|
1529
|
+
description?: string | Record<string, string> | null | undefined;
|
1443
1530
|
} | {
|
1444
1531
|
key: string;
|
1445
1532
|
type: "boolean";
|
@@ -1447,6 +1534,7 @@ export declare class DataLoader {
|
|
1447
1534
|
required: boolean;
|
1448
1535
|
array: boolean;
|
1449
1536
|
xdefault?: boolean | null | undefined;
|
1537
|
+
description?: string | Record<string, string> | null | undefined;
|
1450
1538
|
} | {
|
1451
1539
|
key: string;
|
1452
1540
|
type: "datetime";
|
@@ -1454,6 +1542,7 @@ export declare class DataLoader {
|
|
1454
1542
|
required: boolean;
|
1455
1543
|
array: boolean;
|
1456
1544
|
xdefault?: string | null | undefined;
|
1545
|
+
description?: string | Record<string, string> | null | undefined;
|
1457
1546
|
} | {
|
1458
1547
|
key: string;
|
1459
1548
|
type: "email";
|
@@ -1461,6 +1550,7 @@ export declare class DataLoader {
|
|
1461
1550
|
required: boolean;
|
1462
1551
|
array: boolean;
|
1463
1552
|
xdefault?: string | null | undefined;
|
1553
|
+
description?: string | Record<string, string> | null | undefined;
|
1464
1554
|
} | {
|
1465
1555
|
key: string;
|
1466
1556
|
type: "ip";
|
@@ -1468,6 +1558,7 @@ export declare class DataLoader {
|
|
1468
1558
|
required: boolean;
|
1469
1559
|
array: boolean;
|
1470
1560
|
xdefault?: string | null | undefined;
|
1561
|
+
description?: string | Record<string, string> | null | undefined;
|
1471
1562
|
} | {
|
1472
1563
|
key: string;
|
1473
1564
|
type: "url";
|
@@ -1475,6 +1566,7 @@ export declare class DataLoader {
|
|
1475
1566
|
required: boolean;
|
1476
1567
|
array: boolean;
|
1477
1568
|
xdefault?: string | null | undefined;
|
1569
|
+
description?: string | Record<string, string> | null | undefined;
|
1478
1570
|
} | {
|
1479
1571
|
key: string;
|
1480
1572
|
type: "enum";
|
@@ -1483,6 +1575,7 @@ export declare class DataLoader {
|
|
1483
1575
|
array: boolean;
|
1484
1576
|
elements: string[];
|
1485
1577
|
xdefault?: string | null | undefined;
|
1578
|
+
description?: string | Record<string, string> | null | undefined;
|
1486
1579
|
} | {
|
1487
1580
|
key: string;
|
1488
1581
|
type: "relationship";
|
@@ -1499,8 +1592,8 @@ export declare class DataLoader {
|
|
1499
1592
|
originalIdField: string;
|
1500
1593
|
targetField?: string | undefined;
|
1501
1594
|
} | undefined;
|
1595
|
+
description?: string | Record<string, string> | null | undefined;
|
1502
1596
|
})[];
|
1503
|
-
name: string;
|
1504
1597
|
$id: string;
|
1505
1598
|
enabled: boolean;
|
1506
1599
|
documentSecurity: boolean;
|
@@ -1550,6 +1643,7 @@ export declare class DataLoader {
|
|
1550
1643
|
targetField: string;
|
1551
1644
|
} | undefined;
|
1552
1645
|
}[];
|
1646
|
+
description?: string | undefined;
|
1553
1647
|
databaseId?: string | undefined;
|
1554
1648
|
} | undefined;
|
1555
1649
|
}>;
|