@comapeo/core 4.4.0 → 5.0.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/blob-store/downloader.d.ts +5 -2
- package/dist/blob-store/downloader.d.ts.map +1 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/datatype/index.d.ts +1 -1
- package/dist/datatype/index.d.ts.map +1 -1
- package/dist/discovery/local-discovery.d.ts.map +1 -1
- package/dist/import-categories.d.ts +19 -0
- package/dist/import-categories.d.ts.map +1 -0
- package/dist/intl/iso639.d.ts +4 -0
- package/dist/intl/iso639.d.ts.map +1 -0
- package/dist/intl/parse-bcp-47.d.ts +22 -0
- package/dist/intl/parse-bcp-47.d.ts.map +1 -0
- package/dist/invite/invite-api.d.ts.map +1 -1
- package/dist/lib/drizzle-helpers.d.ts +19 -1
- package/dist/lib/drizzle-helpers.d.ts.map +1 -1
- package/dist/mapeo-manager.d.ts +15 -9
- package/dist/mapeo-manager.d.ts.map +1 -1
- package/dist/mapeo-project.d.ts +4968 -3017
- package/dist/mapeo-project.d.ts.map +1 -1
- package/dist/schema/client.d.ts +246 -232
- package/dist/schema/client.d.ts.map +1 -1
- package/dist/schema/comapeo-to-drizzle.d.ts +65 -0
- package/dist/schema/comapeo-to-drizzle.d.ts.map +1 -0
- package/dist/schema/json-schema-to-drizzle.d.ts +18 -0
- package/dist/schema/json-schema-to-drizzle.d.ts.map +1 -0
- package/dist/schema/project.d.ts +2711 -1835
- package/dist/schema/project.d.ts.map +1 -1
- package/dist/schema/types.d.ts +73 -66
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/translation-api.d.ts +111 -189
- package/dist/translation-api.d.ts.map +1 -1
- package/dist/utils.d.ts +10 -0
- package/dist/utils.d.ts.map +1 -1
- package/drizzle/client/0004_glorious_shape.sql +1 -0
- package/drizzle/client/meta/0000_snapshot.json +13 -9
- package/drizzle/client/meta/0001_snapshot.json +13 -9
- package/drizzle/client/meta/0002_snapshot.json +13 -9
- package/drizzle/client/meta/0003_snapshot.json +13 -9
- package/drizzle/client/meta/0004_snapshot.json +239 -0
- package/drizzle/client/meta/_journal.json +7 -0
- package/drizzle/project/meta/0000_snapshot.json +43 -24
- package/drizzle/project/meta/0001_snapshot.json +47 -26
- package/drizzle/project/meta/0002_snapshot.json +47 -26
- package/package.json +16 -8
- package/src/constants.js +0 -3
- package/src/datatype/index.js +8 -5
- package/src/discovery/local-discovery.js +3 -2
- package/src/import-categories.js +364 -0
- package/src/index-writer/index.js +1 -1
- package/src/intl/iso639.js +8118 -0
- package/src/intl/parse-bcp-47.js +91 -0
- package/src/invite/invite-api.js +2 -0
- package/src/lib/drizzle-helpers.js +70 -18
- package/src/mapeo-manager.js +138 -88
- package/src/mapeo-project.js +56 -218
- package/src/roles.js +1 -1
- package/src/schema/client.js +22 -28
- package/src/schema/comapeo-to-drizzle.js +57 -0
- package/src/schema/{schema-to-drizzle.js → json-schema-to-drizzle.js} +25 -25
- package/src/schema/project.js +24 -37
- package/src/schema/types.ts +138 -99
- package/src/translation-api.js +64 -12
- package/src/utils.js +13 -0
- package/dist/config-import.d.ts +0 -74
- package/dist/config-import.d.ts.map +0 -1
- package/dist/schema/schema-to-drizzle.d.ts +0 -20
- package/dist/schema/schema-to-drizzle.d.ts.map +0 -1
- package/dist/schema/utils.d.ts +0 -55
- package/dist/schema/utils.d.ts.map +0 -1
- package/src/config-import.js +0 -603
- package/src/schema/utils.js +0 -51
package/dist/schema/project.d.ts
CHANGED
|
@@ -1,1829 +1,2661 @@
|
|
|
1
|
-
export const translationTable: import("
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
readonly schemaName:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hasDefault: false;
|
|
62
|
-
enumValues: [string, ...string[]];
|
|
63
|
-
baseColumn: never;
|
|
64
|
-
}, object>;
|
|
65
|
-
readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
66
|
-
name: "updatedAt";
|
|
67
|
-
tableName: "translation";
|
|
68
|
-
dataType: "string";
|
|
69
|
-
columnType: "SQLiteText";
|
|
70
|
-
data: string;
|
|
71
|
-
driverParam: string;
|
|
72
|
-
notNull: true;
|
|
73
|
-
hasDefault: false;
|
|
74
|
-
enumValues: [string, ...string[]];
|
|
75
|
-
baseColumn: never;
|
|
76
|
-
}, object>;
|
|
77
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
78
|
-
name: "links";
|
|
79
|
-
tableName: "translation";
|
|
80
|
-
dataType: "custom";
|
|
81
|
-
columnType: "SQLiteCustomColumn";
|
|
82
|
-
data: string[];
|
|
83
|
-
driverParam: string;
|
|
84
|
-
notNull: true;
|
|
85
|
-
hasDefault: false;
|
|
86
|
-
enumValues: undefined;
|
|
87
|
-
baseColumn: never;
|
|
88
|
-
}, object>;
|
|
89
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
90
|
-
name: "deleted";
|
|
91
|
-
tableName: "translation";
|
|
92
|
-
dataType: "boolean";
|
|
93
|
-
columnType: "SQLiteBoolean";
|
|
94
|
-
data: boolean;
|
|
95
|
-
driverParam: number;
|
|
96
|
-
notNull: true;
|
|
97
|
-
hasDefault: false;
|
|
98
|
-
enumValues: undefined;
|
|
99
|
-
baseColumn: never;
|
|
100
|
-
}, object>;
|
|
101
|
-
readonly docRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
102
|
-
name: "docRef";
|
|
103
|
-
tableName: "translation";
|
|
104
|
-
dataType: "custom";
|
|
105
|
-
columnType: "SQLiteCustomColumn";
|
|
106
|
-
data: {
|
|
107
|
-
docId: string;
|
|
108
|
-
versionId: string;
|
|
1
|
+
export const translationTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2
|
+
schemaName: "translation";
|
|
3
|
+
docRef: {
|
|
4
|
+
docId: string;
|
|
5
|
+
versionId: string;
|
|
6
|
+
};
|
|
7
|
+
docRefType: "type_unspecified" | "deviceInfo" | "preset" | "field" | "observation" | "projectSettings" | "role" | "track" | "UNRECOGNIZED";
|
|
8
|
+
propertyRef: string;
|
|
9
|
+
languageCode: string;
|
|
10
|
+
regionCode?: string | undefined;
|
|
11
|
+
message: string;
|
|
12
|
+
docId: string;
|
|
13
|
+
versionId: string;
|
|
14
|
+
originalVersionId: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
links: string[];
|
|
18
|
+
deleted: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21
|
+
readonly $id: "http://mapeo.world/schemas/translation/v1.json";
|
|
22
|
+
readonly description: "A translation is a translated message in a single language for a string property/field of any Mapeo record type";
|
|
23
|
+
readonly title: "translation";
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly docId: {
|
|
27
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly minLength: 1;
|
|
30
|
+
};
|
|
31
|
+
readonly versionId: {
|
|
32
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly minLength: 1;
|
|
35
|
+
};
|
|
36
|
+
readonly originalVersionId: {
|
|
37
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly minLength: 1;
|
|
40
|
+
};
|
|
41
|
+
readonly schemaName: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly const: "translation";
|
|
44
|
+
};
|
|
45
|
+
readonly createdAt: {
|
|
46
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
readonly format: "date-time";
|
|
49
|
+
};
|
|
50
|
+
readonly updatedAt: {
|
|
51
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly format: "date-time";
|
|
54
|
+
};
|
|
55
|
+
readonly links: {
|
|
56
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
57
|
+
readonly type: "array";
|
|
58
|
+
readonly uniqueItems: true;
|
|
59
|
+
readonly items: {
|
|
60
|
+
readonly type: "string";
|
|
109
61
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
data: string;
|
|
158
|
-
driverParam: string;
|
|
159
|
-
notNull: false;
|
|
160
|
-
hasDefault: false;
|
|
161
|
-
enumValues: [string, ...string[]];
|
|
162
|
-
baseColumn: never;
|
|
163
|
-
}, object>;
|
|
164
|
-
readonly message: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
165
|
-
name: "message";
|
|
166
|
-
tableName: "translation";
|
|
167
|
-
dataType: "string";
|
|
168
|
-
columnType: "SQLiteText";
|
|
169
|
-
data: string;
|
|
170
|
-
driverParam: string;
|
|
171
|
-
notNull: true;
|
|
172
|
-
hasDefault: false;
|
|
173
|
-
enumValues: [string, ...string[]];
|
|
174
|
-
baseColumn: never;
|
|
175
|
-
}, object>;
|
|
176
|
-
forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
177
|
-
name: "forks";
|
|
178
|
-
tableName: "translation";
|
|
179
|
-
dataType: "custom";
|
|
180
|
-
columnType: "SQLiteCustomColumn";
|
|
181
|
-
data: string[];
|
|
182
|
-
driverParam: string;
|
|
183
|
-
notNull: true;
|
|
184
|
-
hasDefault: false;
|
|
185
|
-
enumValues: undefined;
|
|
186
|
-
baseColumn: never;
|
|
187
|
-
}, object>;
|
|
62
|
+
};
|
|
63
|
+
readonly deleted: {
|
|
64
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
65
|
+
readonly type: "boolean";
|
|
66
|
+
};
|
|
67
|
+
readonly docRef: {
|
|
68
|
+
readonly type: "object";
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly docId: {
|
|
71
|
+
readonly description: "hex-encoded id of the element that this observation references";
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
};
|
|
75
|
+
readonly versionId: {
|
|
76
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly minLength: 1;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly required: readonly ["docId", "versionId"];
|
|
82
|
+
};
|
|
83
|
+
readonly docRefType: {
|
|
84
|
+
readonly description: "type of the element that this translation references";
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly enum: readonly ["type_unspecified", "deviceInfo", "preset", "field", "observation", "projectSettings", "role", "track", "UNRECOGNIZED"];
|
|
87
|
+
};
|
|
88
|
+
readonly propertyRef: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly description: "identifier for translated field/property in dot-prop notation";
|
|
91
|
+
readonly minLength: 1;
|
|
92
|
+
};
|
|
93
|
+
readonly languageCode: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly description: "three-letter ISO 169-3 language code";
|
|
96
|
+
readonly minLength: 1;
|
|
97
|
+
readonly maxLength: 3;
|
|
98
|
+
};
|
|
99
|
+
readonly regionCode: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly description: "two-letter country code from ISO 3166-1 alpha-2 or a three-digit code from UN M.49 for geographical regions";
|
|
102
|
+
readonly minLength: 2;
|
|
103
|
+
readonly maxLength: 3;
|
|
104
|
+
};
|
|
105
|
+
readonly message: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly description: "the translated string";
|
|
108
|
+
};
|
|
188
109
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
baseColumn: never;
|
|
266
|
-
}, object>;
|
|
267
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
268
|
-
name: "links";
|
|
269
|
-
tableName: "observation";
|
|
270
|
-
dataType: "custom";
|
|
271
|
-
columnType: "SQLiteCustomColumn";
|
|
272
|
-
data: string[];
|
|
273
|
-
driverParam: string;
|
|
274
|
-
notNull: true;
|
|
275
|
-
hasDefault: false;
|
|
276
|
-
enumValues: undefined;
|
|
277
|
-
baseColumn: never;
|
|
278
|
-
}, object>;
|
|
279
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
280
|
-
name: "deleted";
|
|
281
|
-
tableName: "observation";
|
|
282
|
-
dataType: "boolean";
|
|
283
|
-
columnType: "SQLiteBoolean";
|
|
284
|
-
data: boolean;
|
|
285
|
-
driverParam: number;
|
|
286
|
-
notNull: true;
|
|
287
|
-
hasDefault: false;
|
|
288
|
-
enumValues: undefined;
|
|
289
|
-
baseColumn: never;
|
|
290
|
-
}, object>;
|
|
291
|
-
readonly lat: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
292
|
-
name: "lat";
|
|
293
|
-
tableName: "observation";
|
|
294
|
-
dataType: "number";
|
|
295
|
-
columnType: "SQLiteReal";
|
|
296
|
-
data: number;
|
|
297
|
-
driverParam: number;
|
|
298
|
-
notNull: false;
|
|
299
|
-
hasDefault: false;
|
|
300
|
-
enumValues: undefined;
|
|
301
|
-
baseColumn: never;
|
|
302
|
-
}, object>;
|
|
303
|
-
readonly lon: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
304
|
-
name: "lon";
|
|
305
|
-
tableName: "observation";
|
|
306
|
-
dataType: "number";
|
|
307
|
-
columnType: "SQLiteReal";
|
|
308
|
-
data: number;
|
|
309
|
-
driverParam: number;
|
|
310
|
-
notNull: false;
|
|
311
|
-
hasDefault: false;
|
|
312
|
-
enumValues: undefined;
|
|
313
|
-
baseColumn: never;
|
|
314
|
-
}, object>;
|
|
315
|
-
readonly attachments: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
316
|
-
name: "attachments";
|
|
317
|
-
tableName: "observation";
|
|
318
|
-
dataType: "custom";
|
|
319
|
-
columnType: "SQLiteCustomColumn";
|
|
320
|
-
data: import("@comapeo/schema/dist/schema/observation.js").Attachment[];
|
|
321
|
-
driverParam: string;
|
|
322
|
-
notNull: true;
|
|
323
|
-
hasDefault: false;
|
|
324
|
-
enumValues: undefined;
|
|
325
|
-
baseColumn: never;
|
|
326
|
-
}, object>;
|
|
327
|
-
readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
328
|
-
name: "tags";
|
|
329
|
-
tableName: "observation";
|
|
330
|
-
dataType: "custom";
|
|
331
|
-
columnType: "SQLiteCustomColumn";
|
|
332
|
-
data: {
|
|
333
|
-
[k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
|
|
110
|
+
readonly required: readonly ["schemaName", "docRef", "docRefType", "propertyRef", "languageCode", "message", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
111
|
+
readonly additionalProperties: false;
|
|
112
|
+
}, "translation", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
113
|
+
export const observationTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
114
|
+
schemaName: "observation";
|
|
115
|
+
lat?: number | undefined;
|
|
116
|
+
lon?: number | undefined;
|
|
117
|
+
attachments: import("@comapeo/schema/dist/schema/observation.js").Attachment[];
|
|
118
|
+
tags: {
|
|
119
|
+
[k: string]: boolean | number | string | null | (boolean | number | string | null)[];
|
|
120
|
+
};
|
|
121
|
+
metadata?: {
|
|
122
|
+
manualLocation?: boolean;
|
|
123
|
+
position?: import("@comapeo/schema/dist/schema/observation.js").Position;
|
|
124
|
+
lastSavedPosition?: import("@comapeo/schema/dist/schema/observation.js").Position;
|
|
125
|
+
positionProvider?: {
|
|
126
|
+
gpsAvailable?: boolean;
|
|
127
|
+
passiveAvailable?: boolean;
|
|
128
|
+
locationServicesEnabled: boolean;
|
|
129
|
+
networkAvailable?: boolean;
|
|
130
|
+
};
|
|
131
|
+
} | undefined;
|
|
132
|
+
presetRef?: {
|
|
133
|
+
docId: string;
|
|
134
|
+
versionId: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
docId: string;
|
|
137
|
+
versionId: string;
|
|
138
|
+
originalVersionId: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
links: string[];
|
|
142
|
+
deleted: boolean;
|
|
143
|
+
}, {
|
|
144
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
145
|
+
readonly $id: "http://mapeo.world/schemas/observation/v1.json";
|
|
146
|
+
readonly title: "Observation";
|
|
147
|
+
readonly description: "An observation is something that has been observed at a particular time and place. It is a subjective statement of 'I saw/heard this, here'";
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly docId: {
|
|
151
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly minLength: 1;
|
|
154
|
+
};
|
|
155
|
+
readonly versionId: {
|
|
156
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly minLength: 1;
|
|
159
|
+
};
|
|
160
|
+
readonly originalVersionId: {
|
|
161
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly minLength: 1;
|
|
164
|
+
};
|
|
165
|
+
readonly schemaName: {
|
|
166
|
+
readonly description: "Must be `observation`";
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
readonly const: "observation";
|
|
169
|
+
};
|
|
170
|
+
readonly createdAt: {
|
|
171
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly format: "date-time";
|
|
174
|
+
};
|
|
175
|
+
readonly updatedAt: {
|
|
176
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly format: "date-time";
|
|
179
|
+
};
|
|
180
|
+
readonly links: {
|
|
181
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
182
|
+
readonly type: "array";
|
|
183
|
+
readonly uniqueItems: true;
|
|
184
|
+
readonly items: {
|
|
185
|
+
readonly type: "string";
|
|
334
186
|
};
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
187
|
+
};
|
|
188
|
+
readonly deleted: {
|
|
189
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
190
|
+
readonly type: "boolean";
|
|
191
|
+
};
|
|
192
|
+
readonly lat: {
|
|
193
|
+
readonly description: "latitude of the observation";
|
|
194
|
+
readonly type: "number";
|
|
195
|
+
readonly minimum: -90;
|
|
196
|
+
readonly maximum: 90;
|
|
197
|
+
};
|
|
198
|
+
readonly lon: {
|
|
199
|
+
readonly description: "longitude of the observation";
|
|
200
|
+
readonly type: "number";
|
|
201
|
+
readonly minimum: -180;
|
|
202
|
+
readonly maximum: 180;
|
|
203
|
+
};
|
|
204
|
+
readonly attachments: {
|
|
205
|
+
readonly type: "array";
|
|
206
|
+
readonly description: "media or other data that are attached to this observation";
|
|
207
|
+
readonly items: {
|
|
208
|
+
readonly oneOf: readonly [{
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly properties: {
|
|
211
|
+
readonly driveDiscoveryId: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly description: "core discovery id for the drive that the attachment belongs to";
|
|
214
|
+
readonly minLength: 1;
|
|
215
|
+
};
|
|
216
|
+
readonly name: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
readonly description: "name of the attachment";
|
|
219
|
+
readonly minLength: 1;
|
|
220
|
+
};
|
|
221
|
+
readonly type: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly description: "string that describes the type of the attachment";
|
|
224
|
+
readonly const: "photo";
|
|
225
|
+
};
|
|
226
|
+
readonly hash: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly description: "SHA256 hash of the attachment";
|
|
229
|
+
readonly minLength: 1;
|
|
230
|
+
};
|
|
231
|
+
readonly photoExif: {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly description: "EXIF data from an image. https://exiftool.org/TagNames/EXIF.html";
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly ApertureValue: {
|
|
236
|
+
readonly type: "number";
|
|
237
|
+
};
|
|
238
|
+
readonly ExposureTime: {
|
|
239
|
+
readonly type: "number";
|
|
240
|
+
};
|
|
241
|
+
readonly Flash: {
|
|
242
|
+
readonly type: "number";
|
|
243
|
+
};
|
|
244
|
+
readonly FNumber: {
|
|
245
|
+
readonly type: "number";
|
|
246
|
+
};
|
|
247
|
+
readonly FocalLength: {
|
|
248
|
+
readonly type: "number";
|
|
249
|
+
};
|
|
250
|
+
readonly ISOSpeedRatings: {
|
|
251
|
+
readonly type: "number";
|
|
252
|
+
};
|
|
253
|
+
readonly ImageLength: {
|
|
254
|
+
readonly type: "number";
|
|
255
|
+
};
|
|
256
|
+
readonly ImageWidth: {
|
|
257
|
+
readonly type: "number";
|
|
258
|
+
};
|
|
259
|
+
readonly Make: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
};
|
|
262
|
+
readonly Model: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
};
|
|
265
|
+
readonly Orientation: {
|
|
266
|
+
readonly type: "number";
|
|
267
|
+
};
|
|
268
|
+
readonly ShutterSpeedValue: {
|
|
269
|
+
readonly type: "number";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly createdAt: {
|
|
274
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the attachment was created";
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
readonly format: "date-time";
|
|
277
|
+
};
|
|
278
|
+
readonly position: {
|
|
279
|
+
readonly description: "Position details";
|
|
280
|
+
readonly type: "object";
|
|
281
|
+
readonly required: readonly ["timestamp", "coords"];
|
|
282
|
+
readonly properties: {
|
|
283
|
+
readonly timestamp: {
|
|
284
|
+
readonly description: "Timestamp of when the current position was obtained";
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly format: "date-time";
|
|
287
|
+
};
|
|
288
|
+
readonly mocked: {
|
|
289
|
+
readonly description: "`true` if the position was mocked";
|
|
290
|
+
readonly type: "boolean";
|
|
291
|
+
readonly default: false;
|
|
292
|
+
};
|
|
293
|
+
readonly coords: {
|
|
294
|
+
readonly description: "Position details, should be self explanatory. Units in meters";
|
|
295
|
+
readonly type: "object";
|
|
296
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
297
|
+
readonly properties: {
|
|
298
|
+
readonly latitude: {
|
|
299
|
+
readonly type: "number";
|
|
300
|
+
};
|
|
301
|
+
readonly longitude: {
|
|
302
|
+
readonly type: "number";
|
|
303
|
+
};
|
|
304
|
+
readonly altitude: {
|
|
305
|
+
readonly type: "number";
|
|
306
|
+
};
|
|
307
|
+
readonly altitudeAccuracy: {
|
|
308
|
+
readonly type: "number";
|
|
309
|
+
};
|
|
310
|
+
readonly heading: {
|
|
311
|
+
readonly type: "number";
|
|
312
|
+
};
|
|
313
|
+
readonly speed: {
|
|
314
|
+
readonly type: "number";
|
|
315
|
+
};
|
|
316
|
+
readonly accuracy: {
|
|
317
|
+
readonly type: "number";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
readonly external: {
|
|
324
|
+
readonly description: "Indicates whether the associated media was created from a source outside of CoMapeo";
|
|
325
|
+
readonly type: "boolean";
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
readonly required: readonly ["driveDiscoveryId", "name", "type", "hash", "external"];
|
|
329
|
+
}, {
|
|
330
|
+
readonly type: "object";
|
|
331
|
+
readonly properties: {
|
|
332
|
+
readonly driveDiscoveryId: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
readonly description: "core discovery id for the drive that the attachment belongs to";
|
|
335
|
+
readonly minLength: 1;
|
|
336
|
+
};
|
|
337
|
+
readonly name: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly description: "name of the attachment";
|
|
340
|
+
readonly minLength: 1;
|
|
341
|
+
};
|
|
342
|
+
readonly type: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly description: "string that describes the type of the attachment";
|
|
345
|
+
readonly "meta:enum": {
|
|
346
|
+
readonly UNRECOGNIZED: "future attachment type";
|
|
347
|
+
};
|
|
348
|
+
readonly enum: readonly ["attachment_type_unspecified", "video", "audio", "UNRECOGNIZED"];
|
|
349
|
+
};
|
|
350
|
+
readonly hash: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly description: "SHA256 hash of the attachment";
|
|
353
|
+
readonly minLength: 1;
|
|
354
|
+
};
|
|
355
|
+
readonly createdAt: {
|
|
356
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the attachment was created";
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly format: "date-time";
|
|
359
|
+
};
|
|
360
|
+
readonly position: {
|
|
361
|
+
readonly description: "Position details";
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly required: readonly ["timestamp", "coords"];
|
|
364
|
+
readonly properties: {
|
|
365
|
+
readonly timestamp: {
|
|
366
|
+
readonly description: "Timestamp of when the current position was obtained";
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly format: "date-time";
|
|
369
|
+
};
|
|
370
|
+
readonly mocked: {
|
|
371
|
+
readonly description: "`true` if the position was mocked";
|
|
372
|
+
readonly type: "boolean";
|
|
373
|
+
readonly default: false;
|
|
374
|
+
};
|
|
375
|
+
readonly coords: {
|
|
376
|
+
readonly description: "Position details, should be self explanatory. Units in meters";
|
|
377
|
+
readonly type: "object";
|
|
378
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
379
|
+
readonly properties: {
|
|
380
|
+
readonly latitude: {
|
|
381
|
+
readonly type: "number";
|
|
382
|
+
};
|
|
383
|
+
readonly longitude: {
|
|
384
|
+
readonly type: "number";
|
|
385
|
+
};
|
|
386
|
+
readonly altitude: {
|
|
387
|
+
readonly type: "number";
|
|
388
|
+
};
|
|
389
|
+
readonly altitudeAccuracy: {
|
|
390
|
+
readonly type: "number";
|
|
391
|
+
};
|
|
392
|
+
readonly heading: {
|
|
393
|
+
readonly type: "number";
|
|
394
|
+
};
|
|
395
|
+
readonly speed: {
|
|
396
|
+
readonly type: "number";
|
|
397
|
+
};
|
|
398
|
+
readonly accuracy: {
|
|
399
|
+
readonly type: "number";
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly external: {
|
|
406
|
+
readonly description: "Indicates whether the associated media was created from a source outside of CoMapeo";
|
|
407
|
+
readonly type: "boolean";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly required: readonly ["driveDiscoveryId", "name", "type", "hash", "external"];
|
|
411
|
+
}];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly tags: {
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly description: "User-defined key-value pairs relevant to this observation";
|
|
417
|
+
readonly properties: {};
|
|
418
|
+
readonly additionalProperties: {
|
|
419
|
+
readonly anyOf: readonly [{
|
|
420
|
+
readonly type: "boolean";
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "number";
|
|
423
|
+
}, {
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
}, {
|
|
426
|
+
readonly type: "null";
|
|
427
|
+
}, {
|
|
428
|
+
readonly type: "array";
|
|
429
|
+
readonly items: {
|
|
430
|
+
readonly anyOf: readonly [{
|
|
431
|
+
readonly type: "boolean";
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "number";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "null";
|
|
438
|
+
}];
|
|
439
|
+
};
|
|
440
|
+
}];
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
readonly metadata: {
|
|
444
|
+
readonly description: "Additional metadata associated with the observation (e.g. location precision, altitude, heading)";
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly properties: {
|
|
447
|
+
readonly manualLocation: {
|
|
448
|
+
readonly description: "Whether location has been set manually";
|
|
449
|
+
readonly type: "boolean";
|
|
450
|
+
readonly default: false;
|
|
355
451
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
452
|
+
readonly position: {
|
|
453
|
+
readonly description: "Position details";
|
|
454
|
+
readonly type: "object";
|
|
455
|
+
readonly required: readonly ["timestamp", "coords"];
|
|
456
|
+
readonly properties: {
|
|
457
|
+
readonly timestamp: {
|
|
458
|
+
readonly description: "Timestamp of when the current position was obtained";
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly format: "date-time";
|
|
461
|
+
};
|
|
462
|
+
readonly mocked: {
|
|
463
|
+
readonly description: "`true` if the position was mocked";
|
|
464
|
+
readonly type: "boolean";
|
|
465
|
+
readonly default: false;
|
|
466
|
+
};
|
|
467
|
+
readonly coords: {
|
|
468
|
+
readonly description: "Position details, should be self explanatory. Units in meters";
|
|
469
|
+
readonly type: "object";
|
|
470
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
471
|
+
readonly properties: {
|
|
472
|
+
readonly latitude: {
|
|
473
|
+
readonly type: "number";
|
|
474
|
+
};
|
|
475
|
+
readonly longitude: {
|
|
476
|
+
readonly type: "number";
|
|
477
|
+
};
|
|
478
|
+
readonly altitude: {
|
|
479
|
+
readonly type: "number";
|
|
480
|
+
};
|
|
481
|
+
readonly altitudeAccuracy: {
|
|
482
|
+
readonly type: "number";
|
|
483
|
+
};
|
|
484
|
+
readonly heading: {
|
|
485
|
+
readonly type: "number";
|
|
486
|
+
};
|
|
487
|
+
readonly speed: {
|
|
488
|
+
readonly type: "number";
|
|
489
|
+
};
|
|
490
|
+
readonly accuracy: {
|
|
491
|
+
readonly type: "number";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly lastSavedPosition: {
|
|
498
|
+
readonly description: "Position details";
|
|
499
|
+
readonly type: "object";
|
|
500
|
+
readonly required: readonly ["timestamp", "coords"];
|
|
501
|
+
readonly properties: {
|
|
502
|
+
readonly timestamp: {
|
|
503
|
+
readonly description: "Timestamp of when the current position was obtained";
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly format: "date-time";
|
|
506
|
+
};
|
|
507
|
+
readonly mocked: {
|
|
508
|
+
readonly description: "`true` if the position was mocked";
|
|
509
|
+
readonly type: "boolean";
|
|
510
|
+
readonly default: false;
|
|
511
|
+
};
|
|
512
|
+
readonly coords: {
|
|
513
|
+
readonly description: "Position details, should be self explanatory. Units in meters";
|
|
514
|
+
readonly type: "object";
|
|
515
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
516
|
+
readonly properties: {
|
|
517
|
+
readonly latitude: {
|
|
518
|
+
readonly type: "number";
|
|
519
|
+
};
|
|
520
|
+
readonly longitude: {
|
|
521
|
+
readonly type: "number";
|
|
522
|
+
};
|
|
523
|
+
readonly altitude: {
|
|
524
|
+
readonly type: "number";
|
|
525
|
+
};
|
|
526
|
+
readonly altitudeAccuracy: {
|
|
527
|
+
readonly type: "number";
|
|
528
|
+
};
|
|
529
|
+
readonly heading: {
|
|
530
|
+
readonly type: "number";
|
|
531
|
+
};
|
|
532
|
+
readonly speed: {
|
|
533
|
+
readonly type: "number";
|
|
534
|
+
};
|
|
535
|
+
readonly accuracy: {
|
|
536
|
+
readonly type: "number";
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly positionProvider: {
|
|
543
|
+
readonly description: "Details of the location providers that were available on the device when the observation was recorded";
|
|
544
|
+
readonly type: "object";
|
|
545
|
+
readonly required: readonly ["locationServicesEnabled"];
|
|
546
|
+
readonly properties: {
|
|
547
|
+
readonly gpsAvailable: {
|
|
548
|
+
readonly description: "Whether the user has enabled GPS for device location (this is not the same as whether location is turned on or off, this is a device setting whether to use just wifi and bluetooth or use GPS for location)";
|
|
549
|
+
readonly type: "boolean";
|
|
550
|
+
};
|
|
551
|
+
readonly passiveAvailable: {
|
|
552
|
+
readonly description: "Whether the device is configured to lookup location based on wifi and bluetooth networks";
|
|
553
|
+
readonly type: "boolean";
|
|
554
|
+
};
|
|
555
|
+
readonly locationServicesEnabled: {
|
|
556
|
+
readonly description: "Has the user enabled location services on the device (this is often turned off when the device is in airplane mode)";
|
|
557
|
+
readonly type: "boolean";
|
|
558
|
+
};
|
|
559
|
+
readonly networkAvailable: {
|
|
560
|
+
readonly description: "Whether the device can lookup location based on cell phone towers";
|
|
561
|
+
readonly type: "boolean";
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
readonly additionalProperties: false;
|
|
567
|
+
};
|
|
568
|
+
readonly presetRef: {
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly description: "References to the preset that this observation is related to.";
|
|
571
|
+
readonly properties: {
|
|
572
|
+
readonly docId: {
|
|
573
|
+
readonly description: "hex-encoded id of the element that this observation references";
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
readonly minLength: 1;
|
|
576
|
+
};
|
|
577
|
+
readonly versionId: {
|
|
578
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
readonly minLength: 1;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
readonly required: readonly ["docId", "versionId"];
|
|
584
|
+
};
|
|
390
585
|
};
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
name: "updatedAt";
|
|
459
|
-
tableName: "track";
|
|
460
|
-
dataType: "string";
|
|
461
|
-
columnType: "SQLiteText";
|
|
462
|
-
data: string;
|
|
463
|
-
driverParam: string;
|
|
464
|
-
notNull: true;
|
|
465
|
-
hasDefault: false;
|
|
466
|
-
enumValues: [string, ...string[]];
|
|
467
|
-
baseColumn: never;
|
|
468
|
-
}, object>;
|
|
469
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
470
|
-
name: "links";
|
|
471
|
-
tableName: "track";
|
|
472
|
-
dataType: "custom";
|
|
473
|
-
columnType: "SQLiteCustomColumn";
|
|
474
|
-
data: string[];
|
|
475
|
-
driverParam: string;
|
|
476
|
-
notNull: true;
|
|
477
|
-
hasDefault: false;
|
|
478
|
-
enumValues: undefined;
|
|
479
|
-
baseColumn: never;
|
|
480
|
-
}, object>;
|
|
481
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
482
|
-
name: "deleted";
|
|
483
|
-
tableName: "track";
|
|
484
|
-
dataType: "boolean";
|
|
485
|
-
columnType: "SQLiteBoolean";
|
|
486
|
-
data: boolean;
|
|
487
|
-
driverParam: number;
|
|
488
|
-
notNull: true;
|
|
489
|
-
hasDefault: false;
|
|
490
|
-
enumValues: undefined;
|
|
491
|
-
baseColumn: never;
|
|
492
|
-
}, object>;
|
|
493
|
-
readonly locations: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
494
|
-
name: "locations";
|
|
495
|
-
tableName: "track";
|
|
496
|
-
dataType: "custom";
|
|
497
|
-
columnType: "SQLiteCustomColumn";
|
|
498
|
-
data: import("@comapeo/schema/dist/schema/track.js").Position[];
|
|
499
|
-
driverParam: string;
|
|
500
|
-
notNull: true;
|
|
501
|
-
hasDefault: false;
|
|
502
|
-
enumValues: undefined;
|
|
503
|
-
baseColumn: never;
|
|
504
|
-
}, object>;
|
|
505
|
-
readonly observationRefs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
506
|
-
name: "observationRefs";
|
|
507
|
-
tableName: "track";
|
|
508
|
-
dataType: "custom";
|
|
509
|
-
columnType: "SQLiteCustomColumn";
|
|
510
|
-
data: {
|
|
511
|
-
docId: string;
|
|
512
|
-
versionId: string;
|
|
513
|
-
}[];
|
|
514
|
-
driverParam: string;
|
|
515
|
-
notNull: true;
|
|
516
|
-
hasDefault: false;
|
|
517
|
-
enumValues: undefined;
|
|
518
|
-
baseColumn: never;
|
|
519
|
-
}, object>;
|
|
520
|
-
readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
521
|
-
name: "tags";
|
|
522
|
-
tableName: "track";
|
|
523
|
-
dataType: "custom";
|
|
524
|
-
columnType: "SQLiteCustomColumn";
|
|
525
|
-
data: {
|
|
526
|
-
[k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
|
|
586
|
+
readonly required: readonly ["schemaName", "tags", "attachments", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
587
|
+
readonly additionalProperties: false;
|
|
588
|
+
}, "observation", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
589
|
+
export const trackTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
590
|
+
schemaName: "track";
|
|
591
|
+
locations: import("@comapeo/schema/dist/schema/track.js").Position[];
|
|
592
|
+
observationRefs: {
|
|
593
|
+
docId: string;
|
|
594
|
+
versionId: string;
|
|
595
|
+
}[];
|
|
596
|
+
tags: {
|
|
597
|
+
[k: string]: boolean | number | string | null | (boolean | number | string | null)[];
|
|
598
|
+
};
|
|
599
|
+
presetRef?: {
|
|
600
|
+
docId: string;
|
|
601
|
+
versionId: string;
|
|
602
|
+
} | undefined;
|
|
603
|
+
docId: string;
|
|
604
|
+
versionId: string;
|
|
605
|
+
originalVersionId: string;
|
|
606
|
+
createdAt: string;
|
|
607
|
+
updatedAt: string;
|
|
608
|
+
links: string[];
|
|
609
|
+
deleted: boolean;
|
|
610
|
+
}, {
|
|
611
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
612
|
+
readonly $id: "http://mapeo.world/schemas/track/v1.json";
|
|
613
|
+
readonly title: "Track";
|
|
614
|
+
readonly description: "A track is a recording of positions over time, with associated tags, similar to an observation";
|
|
615
|
+
readonly type: "object";
|
|
616
|
+
readonly properties: {
|
|
617
|
+
readonly docId: {
|
|
618
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
readonly minLength: 1;
|
|
621
|
+
};
|
|
622
|
+
readonly versionId: {
|
|
623
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
readonly minLength: 1;
|
|
626
|
+
};
|
|
627
|
+
readonly originalVersionId: {
|
|
628
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
629
|
+
readonly type: "string";
|
|
630
|
+
readonly minLength: 1;
|
|
631
|
+
};
|
|
632
|
+
readonly schemaName: {
|
|
633
|
+
readonly description: "Must be `track`";
|
|
634
|
+
readonly type: "string";
|
|
635
|
+
readonly const: "track";
|
|
636
|
+
};
|
|
637
|
+
readonly createdAt: {
|
|
638
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
639
|
+
readonly type: "string";
|
|
640
|
+
readonly format: "date-time";
|
|
641
|
+
};
|
|
642
|
+
readonly updatedAt: {
|
|
643
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly format: "date-time";
|
|
646
|
+
};
|
|
647
|
+
readonly links: {
|
|
648
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
649
|
+
readonly type: "array";
|
|
650
|
+
readonly uniqueItems: true;
|
|
651
|
+
readonly items: {
|
|
652
|
+
readonly type: "string";
|
|
527
653
|
};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
enumValues: [string, ...string[]];
|
|
578
|
-
baseColumn: never;
|
|
579
|
-
}, object>;
|
|
580
|
-
readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
581
|
-
name: "versionId";
|
|
582
|
-
tableName: "remoteDetectionAlert";
|
|
583
|
-
dataType: "string";
|
|
584
|
-
columnType: "SQLiteText";
|
|
585
|
-
data: string;
|
|
586
|
-
driverParam: string;
|
|
587
|
-
notNull: true;
|
|
588
|
-
hasDefault: false;
|
|
589
|
-
enumValues: [string, ...string[]];
|
|
590
|
-
baseColumn: never;
|
|
591
|
-
}, object>;
|
|
592
|
-
readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
593
|
-
name: "originalVersionId";
|
|
594
|
-
tableName: "remoteDetectionAlert";
|
|
595
|
-
dataType: "string";
|
|
596
|
-
columnType: "SQLiteText";
|
|
597
|
-
data: string;
|
|
598
|
-
driverParam: string;
|
|
599
|
-
notNull: true;
|
|
600
|
-
hasDefault: false;
|
|
601
|
-
enumValues: [string, ...string[]];
|
|
602
|
-
baseColumn: never;
|
|
603
|
-
}, object>;
|
|
604
|
-
readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
605
|
-
name: "schemaName";
|
|
606
|
-
tableName: "remoteDetectionAlert";
|
|
607
|
-
dataType: "string";
|
|
608
|
-
columnType: "SQLiteText";
|
|
609
|
-
data: "remoteDetectionAlert";
|
|
610
|
-
driverParam: string;
|
|
611
|
-
notNull: true;
|
|
612
|
-
hasDefault: false;
|
|
613
|
-
enumValues: ["remoteDetectionAlert"];
|
|
614
|
-
baseColumn: never;
|
|
615
|
-
}, object>;
|
|
616
|
-
readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
617
|
-
name: "createdAt";
|
|
618
|
-
tableName: "remoteDetectionAlert";
|
|
619
|
-
dataType: "string";
|
|
620
|
-
columnType: "SQLiteText";
|
|
621
|
-
data: string;
|
|
622
|
-
driverParam: string;
|
|
623
|
-
notNull: true;
|
|
624
|
-
hasDefault: false;
|
|
625
|
-
enumValues: [string, ...string[]];
|
|
626
|
-
baseColumn: never;
|
|
627
|
-
}, object>;
|
|
628
|
-
readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
629
|
-
name: "updatedAt";
|
|
630
|
-
tableName: "remoteDetectionAlert";
|
|
631
|
-
dataType: "string";
|
|
632
|
-
columnType: "SQLiteText";
|
|
633
|
-
data: string;
|
|
634
|
-
driverParam: string;
|
|
635
|
-
notNull: true;
|
|
636
|
-
hasDefault: false;
|
|
637
|
-
enumValues: [string, ...string[]];
|
|
638
|
-
baseColumn: never;
|
|
639
|
-
}, object>;
|
|
640
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
641
|
-
name: "links";
|
|
642
|
-
tableName: "remoteDetectionAlert";
|
|
643
|
-
dataType: "custom";
|
|
644
|
-
columnType: "SQLiteCustomColumn";
|
|
645
|
-
data: string[];
|
|
646
|
-
driverParam: string;
|
|
647
|
-
notNull: true;
|
|
648
|
-
hasDefault: false;
|
|
649
|
-
enumValues: undefined;
|
|
650
|
-
baseColumn: never;
|
|
651
|
-
}, object>;
|
|
652
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
653
|
-
name: "deleted";
|
|
654
|
-
tableName: "remoteDetectionAlert";
|
|
655
|
-
dataType: "boolean";
|
|
656
|
-
columnType: "SQLiteBoolean";
|
|
657
|
-
data: boolean;
|
|
658
|
-
driverParam: number;
|
|
659
|
-
notNull: true;
|
|
660
|
-
hasDefault: false;
|
|
661
|
-
enumValues: undefined;
|
|
662
|
-
baseColumn: never;
|
|
663
|
-
}, object>;
|
|
664
|
-
readonly detectionDateStart: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
665
|
-
name: "detectionDateStart";
|
|
666
|
-
tableName: "remoteDetectionAlert";
|
|
667
|
-
dataType: "string";
|
|
668
|
-
columnType: "SQLiteText";
|
|
669
|
-
data: string;
|
|
670
|
-
driverParam: string;
|
|
671
|
-
notNull: true;
|
|
672
|
-
hasDefault: false;
|
|
673
|
-
enumValues: [string, ...string[]];
|
|
674
|
-
baseColumn: never;
|
|
675
|
-
}, object>;
|
|
676
|
-
readonly detectionDateEnd: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
677
|
-
name: "detectionDateEnd";
|
|
678
|
-
tableName: "remoteDetectionAlert";
|
|
679
|
-
dataType: "string";
|
|
680
|
-
columnType: "SQLiteText";
|
|
681
|
-
data: string;
|
|
682
|
-
driverParam: string;
|
|
683
|
-
notNull: true;
|
|
684
|
-
hasDefault: false;
|
|
685
|
-
enumValues: [string, ...string[]];
|
|
686
|
-
baseColumn: never;
|
|
687
|
-
}, object>;
|
|
688
|
-
readonly sourceId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
689
|
-
name: "sourceId";
|
|
690
|
-
tableName: "remoteDetectionAlert";
|
|
691
|
-
dataType: "string";
|
|
692
|
-
columnType: "SQLiteText";
|
|
693
|
-
data: string;
|
|
694
|
-
driverParam: string;
|
|
695
|
-
notNull: true;
|
|
696
|
-
hasDefault: false;
|
|
697
|
-
enumValues: [string, ...string[]];
|
|
698
|
-
baseColumn: never;
|
|
699
|
-
}, object>;
|
|
700
|
-
readonly metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
701
|
-
name: "metadata";
|
|
702
|
-
tableName: "remoteDetectionAlert";
|
|
703
|
-
dataType: "custom";
|
|
704
|
-
columnType: "SQLiteCustomColumn";
|
|
705
|
-
data: {
|
|
706
|
-
[k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
|
|
654
|
+
};
|
|
655
|
+
readonly deleted: {
|
|
656
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
657
|
+
readonly type: "boolean";
|
|
658
|
+
};
|
|
659
|
+
readonly locations: {
|
|
660
|
+
readonly type: "array";
|
|
661
|
+
readonly description: "Array of positions along the track";
|
|
662
|
+
readonly items: {
|
|
663
|
+
readonly description: "Position details";
|
|
664
|
+
readonly type: "object";
|
|
665
|
+
readonly required: readonly ["timestamp", "mocked", "coords"];
|
|
666
|
+
readonly properties: {
|
|
667
|
+
readonly timestamp: {
|
|
668
|
+
readonly description: "Timestamp (ISO date string) of when the current position was obtained";
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
readonly format: "date-time";
|
|
671
|
+
};
|
|
672
|
+
readonly mocked: {
|
|
673
|
+
readonly description: "`true` if the position was mocked";
|
|
674
|
+
readonly type: "boolean";
|
|
675
|
+
readonly default: false;
|
|
676
|
+
};
|
|
677
|
+
readonly coords: {
|
|
678
|
+
readonly description: "Position details, should be self explanatory. Units in meters";
|
|
679
|
+
readonly type: "object";
|
|
680
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
681
|
+
readonly properties: {
|
|
682
|
+
readonly latitude: {
|
|
683
|
+
readonly type: "number";
|
|
684
|
+
};
|
|
685
|
+
readonly longitude: {
|
|
686
|
+
readonly type: "number";
|
|
687
|
+
};
|
|
688
|
+
readonly altitude: {
|
|
689
|
+
readonly type: "number";
|
|
690
|
+
};
|
|
691
|
+
readonly heading: {
|
|
692
|
+
readonly type: "number";
|
|
693
|
+
};
|
|
694
|
+
readonly speed: {
|
|
695
|
+
readonly type: "number";
|
|
696
|
+
};
|
|
697
|
+
readonly accuracy: {
|
|
698
|
+
readonly type: "number";
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
};
|
|
707
703
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
driverParam: string;
|
|
776
|
-
notNull: true;
|
|
777
|
-
hasDefault: false;
|
|
778
|
-
enumValues: [string, ...string[]];
|
|
779
|
-
baseColumn: never;
|
|
780
|
-
}, object>;
|
|
781
|
-
readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
782
|
-
name: "schemaName";
|
|
783
|
-
tableName: "preset";
|
|
784
|
-
dataType: "string";
|
|
785
|
-
columnType: "SQLiteText";
|
|
786
|
-
data: "preset";
|
|
787
|
-
driverParam: string;
|
|
788
|
-
notNull: true;
|
|
789
|
-
hasDefault: false;
|
|
790
|
-
enumValues: ["preset"];
|
|
791
|
-
baseColumn: never;
|
|
792
|
-
}, object>;
|
|
793
|
-
readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
794
|
-
name: "createdAt";
|
|
795
|
-
tableName: "preset";
|
|
796
|
-
dataType: "string";
|
|
797
|
-
columnType: "SQLiteText";
|
|
798
|
-
data: string;
|
|
799
|
-
driverParam: string;
|
|
800
|
-
notNull: true;
|
|
801
|
-
hasDefault: false;
|
|
802
|
-
enumValues: [string, ...string[]];
|
|
803
|
-
baseColumn: never;
|
|
804
|
-
}, object>;
|
|
805
|
-
readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
806
|
-
name: "updatedAt";
|
|
807
|
-
tableName: "preset";
|
|
808
|
-
dataType: "string";
|
|
809
|
-
columnType: "SQLiteText";
|
|
810
|
-
data: string;
|
|
811
|
-
driverParam: string;
|
|
812
|
-
notNull: true;
|
|
813
|
-
hasDefault: false;
|
|
814
|
-
enumValues: [string, ...string[]];
|
|
815
|
-
baseColumn: never;
|
|
816
|
-
}, object>;
|
|
817
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
818
|
-
name: "links";
|
|
819
|
-
tableName: "preset";
|
|
820
|
-
dataType: "custom";
|
|
821
|
-
columnType: "SQLiteCustomColumn";
|
|
822
|
-
data: string[];
|
|
823
|
-
driverParam: string;
|
|
824
|
-
notNull: true;
|
|
825
|
-
hasDefault: false;
|
|
826
|
-
enumValues: undefined;
|
|
827
|
-
baseColumn: never;
|
|
828
|
-
}, object>;
|
|
829
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
830
|
-
name: "deleted";
|
|
831
|
-
tableName: "preset";
|
|
832
|
-
dataType: "boolean";
|
|
833
|
-
columnType: "SQLiteBoolean";
|
|
834
|
-
data: boolean;
|
|
835
|
-
driverParam: number;
|
|
836
|
-
notNull: true;
|
|
837
|
-
hasDefault: false;
|
|
838
|
-
enumValues: undefined;
|
|
839
|
-
baseColumn: never;
|
|
840
|
-
}, object>;
|
|
841
|
-
readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
842
|
-
name: "name";
|
|
843
|
-
tableName: "preset";
|
|
844
|
-
dataType: "string";
|
|
845
|
-
columnType: "SQLiteText";
|
|
846
|
-
data: string;
|
|
847
|
-
driverParam: string;
|
|
848
|
-
notNull: true;
|
|
849
|
-
hasDefault: false;
|
|
850
|
-
enumValues: [string, ...string[]];
|
|
851
|
-
baseColumn: never;
|
|
852
|
-
}, object>;
|
|
853
|
-
readonly geometry: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
854
|
-
name: "geometry";
|
|
855
|
-
tableName: "preset";
|
|
856
|
-
dataType: "custom";
|
|
857
|
-
columnType: "SQLiteCustomColumn";
|
|
858
|
-
data: ("point" | "vertex" | "line" | "area" | "relation")[];
|
|
859
|
-
driverParam: string;
|
|
860
|
-
notNull: true;
|
|
861
|
-
hasDefault: false;
|
|
862
|
-
enumValues: undefined;
|
|
863
|
-
baseColumn: never;
|
|
864
|
-
}, object>;
|
|
865
|
-
readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
866
|
-
name: "tags";
|
|
867
|
-
tableName: "preset";
|
|
868
|
-
dataType: "custom";
|
|
869
|
-
columnType: "SQLiteCustomColumn";
|
|
870
|
-
data: import("@comapeo/schema/dist/schema/preset.js").Tags;
|
|
871
|
-
driverParam: string;
|
|
872
|
-
notNull: true;
|
|
873
|
-
hasDefault: false;
|
|
874
|
-
enumValues: undefined;
|
|
875
|
-
baseColumn: never;
|
|
876
|
-
}, object>;
|
|
877
|
-
readonly addTags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
878
|
-
name: "addTags";
|
|
879
|
-
tableName: "preset";
|
|
880
|
-
dataType: "custom";
|
|
881
|
-
columnType: "SQLiteCustomColumn";
|
|
882
|
-
data: import("@comapeo/schema/dist/schema/preset.js").Tags1;
|
|
883
|
-
driverParam: string;
|
|
884
|
-
notNull: true;
|
|
885
|
-
hasDefault: false;
|
|
886
|
-
enumValues: undefined;
|
|
887
|
-
baseColumn: never;
|
|
888
|
-
}, object>;
|
|
889
|
-
readonly removeTags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
890
|
-
name: "removeTags";
|
|
891
|
-
tableName: "preset";
|
|
892
|
-
dataType: "custom";
|
|
893
|
-
columnType: "SQLiteCustomColumn";
|
|
894
|
-
data: import("@comapeo/schema/dist/schema/preset.js").Tags2;
|
|
895
|
-
driverParam: string;
|
|
896
|
-
notNull: true;
|
|
897
|
-
hasDefault: false;
|
|
898
|
-
enumValues: undefined;
|
|
899
|
-
baseColumn: never;
|
|
900
|
-
}, object>;
|
|
901
|
-
readonly fieldRefs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
902
|
-
name: "fieldRefs";
|
|
903
|
-
tableName: "preset";
|
|
904
|
-
dataType: "custom";
|
|
905
|
-
columnType: "SQLiteCustomColumn";
|
|
906
|
-
data: {
|
|
907
|
-
docId: string;
|
|
908
|
-
versionId: string;
|
|
909
|
-
}[];
|
|
910
|
-
driverParam: string;
|
|
911
|
-
notNull: true;
|
|
912
|
-
hasDefault: false;
|
|
913
|
-
enumValues: undefined;
|
|
914
|
-
baseColumn: never;
|
|
915
|
-
}, object>;
|
|
916
|
-
readonly iconRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
917
|
-
name: "iconRef";
|
|
918
|
-
tableName: "preset";
|
|
919
|
-
dataType: "custom";
|
|
920
|
-
columnType: "SQLiteCustomColumn";
|
|
921
|
-
data: {
|
|
922
|
-
docId: string;
|
|
923
|
-
versionId: string;
|
|
924
|
-
} | undefined;
|
|
925
|
-
driverParam: string;
|
|
926
|
-
notNull: false;
|
|
927
|
-
hasDefault: false;
|
|
928
|
-
enumValues: undefined;
|
|
929
|
-
baseColumn: never;
|
|
930
|
-
}, object>;
|
|
931
|
-
readonly terms: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
932
|
-
name: "terms";
|
|
933
|
-
tableName: "preset";
|
|
934
|
-
dataType: "custom";
|
|
935
|
-
columnType: "SQLiteCustomColumn";
|
|
936
|
-
data: string[];
|
|
937
|
-
driverParam: string;
|
|
938
|
-
notNull: true;
|
|
939
|
-
hasDefault: false;
|
|
940
|
-
enumValues: undefined;
|
|
941
|
-
baseColumn: never;
|
|
942
|
-
}, object>;
|
|
943
|
-
readonly color: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
944
|
-
name: "color";
|
|
945
|
-
tableName: "preset";
|
|
946
|
-
dataType: "string";
|
|
947
|
-
columnType: "SQLiteText";
|
|
948
|
-
data: string;
|
|
949
|
-
driverParam: string;
|
|
950
|
-
notNull: false;
|
|
951
|
-
hasDefault: false;
|
|
952
|
-
enumValues: [string, ...string[]];
|
|
953
|
-
baseColumn: never;
|
|
954
|
-
}, object>;
|
|
955
|
-
forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
956
|
-
name: "forks";
|
|
957
|
-
tableName: "preset";
|
|
958
|
-
dataType: "custom";
|
|
959
|
-
columnType: "SQLiteCustomColumn";
|
|
960
|
-
data: string[];
|
|
961
|
-
driverParam: string;
|
|
962
|
-
notNull: true;
|
|
963
|
-
hasDefault: false;
|
|
964
|
-
enumValues: undefined;
|
|
965
|
-
baseColumn: never;
|
|
966
|
-
}, object>;
|
|
704
|
+
};
|
|
705
|
+
readonly observationRefs: {
|
|
706
|
+
readonly type: "array";
|
|
707
|
+
readonly description: "References to any observations that this track is related to.";
|
|
708
|
+
readonly items: {
|
|
709
|
+
readonly type: "object";
|
|
710
|
+
readonly properties: {
|
|
711
|
+
readonly docId: {
|
|
712
|
+
readonly description: "hex-encoded id of the element that this track references";
|
|
713
|
+
readonly type: "string";
|
|
714
|
+
readonly minLength: 1;
|
|
715
|
+
};
|
|
716
|
+
readonly versionId: {
|
|
717
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
readonly minLength: 1;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
readonly required: readonly ["docId", "versionId"];
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
readonly tags: {
|
|
726
|
+
readonly type: "object";
|
|
727
|
+
readonly description: "User-defined key-value pairs relevant to this track";
|
|
728
|
+
readonly properties: {};
|
|
729
|
+
readonly additionalProperties: {
|
|
730
|
+
readonly anyOf: readonly [{
|
|
731
|
+
readonly type: "boolean";
|
|
732
|
+
}, {
|
|
733
|
+
readonly type: "number";
|
|
734
|
+
}, {
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
}, {
|
|
737
|
+
readonly type: "null";
|
|
738
|
+
}, {
|
|
739
|
+
readonly type: "array";
|
|
740
|
+
readonly items: {
|
|
741
|
+
readonly anyOf: readonly [{
|
|
742
|
+
readonly type: "boolean";
|
|
743
|
+
}, {
|
|
744
|
+
readonly type: "number";
|
|
745
|
+
}, {
|
|
746
|
+
readonly type: "string";
|
|
747
|
+
}, {
|
|
748
|
+
readonly type: "null";
|
|
749
|
+
}];
|
|
750
|
+
};
|
|
751
|
+
}];
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
readonly presetRef: {
|
|
755
|
+
readonly type: "object";
|
|
756
|
+
readonly description: "References to the preset that this track is related to.";
|
|
757
|
+
readonly properties: {
|
|
758
|
+
readonly docId: {
|
|
759
|
+
readonly description: "hex-encoded id of the element that this track references";
|
|
760
|
+
readonly type: "string";
|
|
761
|
+
readonly minLength: 1;
|
|
762
|
+
};
|
|
763
|
+
readonly versionId: {
|
|
764
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
765
|
+
readonly type: "string";
|
|
766
|
+
readonly minLength: 1;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
readonly required: readonly ["docId", "versionId"];
|
|
770
|
+
};
|
|
967
771
|
};
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
columnType: "SQLiteText";
|
|
979
|
-
data: string;
|
|
980
|
-
driverParam: string;
|
|
981
|
-
notNull: true;
|
|
982
|
-
hasDefault: false;
|
|
983
|
-
enumValues: [string, ...string[]];
|
|
984
|
-
baseColumn: never;
|
|
985
|
-
}, object>;
|
|
986
|
-
readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
987
|
-
name: "versionId";
|
|
988
|
-
tableName: "field";
|
|
989
|
-
dataType: "string";
|
|
990
|
-
columnType: "SQLiteText";
|
|
991
|
-
data: string;
|
|
992
|
-
driverParam: string;
|
|
993
|
-
notNull: true;
|
|
994
|
-
hasDefault: false;
|
|
995
|
-
enumValues: [string, ...string[]];
|
|
996
|
-
baseColumn: never;
|
|
997
|
-
}, object>;
|
|
998
|
-
readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
999
|
-
name: "originalVersionId";
|
|
1000
|
-
tableName: "field";
|
|
1001
|
-
dataType: "string";
|
|
1002
|
-
columnType: "SQLiteText";
|
|
1003
|
-
data: string;
|
|
1004
|
-
driverParam: string;
|
|
1005
|
-
notNull: true;
|
|
1006
|
-
hasDefault: false;
|
|
1007
|
-
enumValues: [string, ...string[]];
|
|
1008
|
-
baseColumn: never;
|
|
1009
|
-
}, object>;
|
|
1010
|
-
readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1011
|
-
name: "schemaName";
|
|
1012
|
-
tableName: "field";
|
|
1013
|
-
dataType: "string";
|
|
1014
|
-
columnType: "SQLiteText";
|
|
1015
|
-
data: "field";
|
|
1016
|
-
driverParam: string;
|
|
1017
|
-
notNull: true;
|
|
1018
|
-
hasDefault: false;
|
|
1019
|
-
enumValues: ["field"];
|
|
1020
|
-
baseColumn: never;
|
|
1021
|
-
}, object>;
|
|
1022
|
-
readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1023
|
-
name: "createdAt";
|
|
1024
|
-
tableName: "field";
|
|
1025
|
-
dataType: "string";
|
|
1026
|
-
columnType: "SQLiteText";
|
|
1027
|
-
data: string;
|
|
1028
|
-
driverParam: string;
|
|
1029
|
-
notNull: true;
|
|
1030
|
-
hasDefault: false;
|
|
1031
|
-
enumValues: [string, ...string[]];
|
|
1032
|
-
baseColumn: never;
|
|
1033
|
-
}, object>;
|
|
1034
|
-
readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1035
|
-
name: "updatedAt";
|
|
1036
|
-
tableName: "field";
|
|
1037
|
-
dataType: "string";
|
|
1038
|
-
columnType: "SQLiteText";
|
|
1039
|
-
data: string;
|
|
1040
|
-
driverParam: string;
|
|
1041
|
-
notNull: true;
|
|
1042
|
-
hasDefault: false;
|
|
1043
|
-
enumValues: [string, ...string[]];
|
|
1044
|
-
baseColumn: never;
|
|
1045
|
-
}, object>;
|
|
1046
|
-
readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1047
|
-
name: "links";
|
|
1048
|
-
tableName: "field";
|
|
1049
|
-
dataType: "custom";
|
|
1050
|
-
columnType: "SQLiteCustomColumn";
|
|
1051
|
-
data: string[];
|
|
1052
|
-
driverParam: string;
|
|
1053
|
-
notNull: true;
|
|
1054
|
-
hasDefault: false;
|
|
1055
|
-
enumValues: undefined;
|
|
1056
|
-
baseColumn: never;
|
|
1057
|
-
}, object>;
|
|
1058
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1059
|
-
name: "deleted";
|
|
1060
|
-
tableName: "field";
|
|
1061
|
-
dataType: "boolean";
|
|
1062
|
-
columnType: "SQLiteBoolean";
|
|
1063
|
-
data: boolean;
|
|
1064
|
-
driverParam: number;
|
|
1065
|
-
notNull: true;
|
|
1066
|
-
hasDefault: false;
|
|
1067
|
-
enumValues: undefined;
|
|
1068
|
-
baseColumn: never;
|
|
1069
|
-
}, object>;
|
|
1070
|
-
readonly tagKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1071
|
-
name: "tagKey";
|
|
1072
|
-
tableName: "field";
|
|
1073
|
-
dataType: "string";
|
|
1074
|
-
columnType: "SQLiteText";
|
|
1075
|
-
data: string;
|
|
1076
|
-
driverParam: string;
|
|
1077
|
-
notNull: true;
|
|
1078
|
-
hasDefault: false;
|
|
1079
|
-
enumValues: [string, ...string[]];
|
|
1080
|
-
baseColumn: never;
|
|
1081
|
-
}, object>;
|
|
1082
|
-
readonly type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1083
|
-
name: "type";
|
|
1084
|
-
tableName: "field";
|
|
1085
|
-
dataType: "string";
|
|
1086
|
-
columnType: "SQLiteText";
|
|
1087
|
-
data: "number" | "UNRECOGNIZED" | "text" | "type_unspecified" | "selectOne" | "selectMultiple";
|
|
1088
|
-
driverParam: string;
|
|
1089
|
-
notNull: true;
|
|
1090
|
-
hasDefault: false;
|
|
1091
|
-
enumValues: ["type_unspecified", "text", "number", "selectOne", "selectMultiple", "UNRECOGNIZED"];
|
|
1092
|
-
baseColumn: never;
|
|
1093
|
-
}, object>;
|
|
1094
|
-
readonly label: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1095
|
-
name: "label";
|
|
1096
|
-
tableName: "field";
|
|
1097
|
-
dataType: "string";
|
|
1098
|
-
columnType: "SQLiteText";
|
|
1099
|
-
data: string;
|
|
1100
|
-
driverParam: string;
|
|
1101
|
-
notNull: true;
|
|
1102
|
-
hasDefault: false;
|
|
1103
|
-
enumValues: [string, ...string[]];
|
|
1104
|
-
baseColumn: never;
|
|
1105
|
-
}, object>;
|
|
1106
|
-
readonly appearance: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1107
|
-
name: "appearance";
|
|
1108
|
-
tableName: "field";
|
|
1109
|
-
dataType: "string";
|
|
1110
|
-
columnType: "SQLiteText";
|
|
1111
|
-
data: "UNRECOGNIZED" | "appearance_unspecified" | "singleline" | "multiline";
|
|
1112
|
-
driverParam: string;
|
|
1113
|
-
notNull: false;
|
|
1114
|
-
hasDefault: true;
|
|
1115
|
-
enumValues: ["appearance_unspecified", "singleline", "multiline", "UNRECOGNIZED"];
|
|
1116
|
-
baseColumn: never;
|
|
1117
|
-
}, object>;
|
|
1118
|
-
readonly snakeCase: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1119
|
-
name: "snakeCase";
|
|
1120
|
-
tableName: "field";
|
|
1121
|
-
dataType: "boolean";
|
|
1122
|
-
columnType: "SQLiteBoolean";
|
|
1123
|
-
data: boolean;
|
|
1124
|
-
driverParam: number;
|
|
1125
|
-
notNull: false;
|
|
1126
|
-
hasDefault: true;
|
|
1127
|
-
enumValues: undefined;
|
|
1128
|
-
baseColumn: never;
|
|
1129
|
-
}, object>;
|
|
1130
|
-
readonly options: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1131
|
-
name: "options";
|
|
1132
|
-
tableName: "field";
|
|
1133
|
-
dataType: "custom";
|
|
1134
|
-
columnType: "SQLiteCustomColumn";
|
|
1135
|
-
data: {
|
|
1136
|
-
label: string;
|
|
1137
|
-
value: string | boolean | number | null;
|
|
1138
|
-
}[] | undefined;
|
|
1139
|
-
driverParam: string;
|
|
1140
|
-
notNull: false;
|
|
1141
|
-
hasDefault: false;
|
|
1142
|
-
enumValues: undefined;
|
|
1143
|
-
baseColumn: never;
|
|
1144
|
-
}, object>;
|
|
1145
|
-
readonly universal: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1146
|
-
name: "universal";
|
|
1147
|
-
tableName: "field";
|
|
1148
|
-
dataType: "boolean";
|
|
1149
|
-
columnType: "SQLiteBoolean";
|
|
1150
|
-
data: boolean;
|
|
1151
|
-
driverParam: number;
|
|
1152
|
-
notNull: false;
|
|
1153
|
-
hasDefault: true;
|
|
1154
|
-
enumValues: undefined;
|
|
1155
|
-
baseColumn: never;
|
|
1156
|
-
}, object>;
|
|
1157
|
-
readonly placeholder: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1158
|
-
name: "placeholder";
|
|
1159
|
-
tableName: "field";
|
|
1160
|
-
dataType: "string";
|
|
1161
|
-
columnType: "SQLiteText";
|
|
1162
|
-
data: string;
|
|
1163
|
-
driverParam: string;
|
|
1164
|
-
notNull: false;
|
|
1165
|
-
hasDefault: false;
|
|
1166
|
-
enumValues: [string, ...string[]];
|
|
1167
|
-
baseColumn: never;
|
|
1168
|
-
}, object>;
|
|
1169
|
-
readonly helperText: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1170
|
-
name: "helperText";
|
|
1171
|
-
tableName: "field";
|
|
1172
|
-
dataType: "string";
|
|
1173
|
-
columnType: "SQLiteText";
|
|
1174
|
-
data: string;
|
|
1175
|
-
driverParam: string;
|
|
1176
|
-
notNull: false;
|
|
1177
|
-
hasDefault: false;
|
|
1178
|
-
enumValues: [string, ...string[]];
|
|
1179
|
-
baseColumn: never;
|
|
1180
|
-
}, object>;
|
|
1181
|
-
forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1182
|
-
name: "forks";
|
|
1183
|
-
tableName: "field";
|
|
1184
|
-
dataType: "custom";
|
|
1185
|
-
columnType: "SQLiteCustomColumn";
|
|
1186
|
-
data: string[];
|
|
1187
|
-
driverParam: string;
|
|
1188
|
-
notNull: true;
|
|
1189
|
-
hasDefault: false;
|
|
1190
|
-
enumValues: undefined;
|
|
1191
|
-
baseColumn: never;
|
|
1192
|
-
}, object>;
|
|
772
|
+
readonly required: readonly ["schemaName", "locations", "tags", "observationRefs", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
773
|
+
readonly additionalProperties: false;
|
|
774
|
+
}, "track", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
775
|
+
export const remoteDetectionAlertTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
776
|
+
schemaName: "remoteDetectionAlert";
|
|
777
|
+
detectionDateStart: string;
|
|
778
|
+
detectionDateEnd: string;
|
|
779
|
+
sourceId: string;
|
|
780
|
+
metadata: {
|
|
781
|
+
[k: string]: boolean | number | string | null | (boolean | number | string | null)[];
|
|
1193
782
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}
|
|
1224
|
-
readonly
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
783
|
+
geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert.js").Geometry;
|
|
784
|
+
docId: string;
|
|
785
|
+
versionId: string;
|
|
786
|
+
originalVersionId: string;
|
|
787
|
+
createdAt: string;
|
|
788
|
+
updatedAt: string;
|
|
789
|
+
links: string[];
|
|
790
|
+
deleted: boolean;
|
|
791
|
+
}, {
|
|
792
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
793
|
+
readonly $id: "http://mapeo.world/schemas/remoteDetectionAlert/v1.json";
|
|
794
|
+
readonly title: "RemoteDetectionAlert";
|
|
795
|
+
readonly description: "A remote detection alert is a type of element in the map that relates to an alert (regarding an urgent event that happened on the territory)";
|
|
796
|
+
readonly type: "object";
|
|
797
|
+
readonly properties: {
|
|
798
|
+
readonly docId: {
|
|
799
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
800
|
+
readonly type: "string";
|
|
801
|
+
readonly minLength: 1;
|
|
802
|
+
};
|
|
803
|
+
readonly versionId: {
|
|
804
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
805
|
+
readonly type: "string";
|
|
806
|
+
readonly minLength: 1;
|
|
807
|
+
};
|
|
808
|
+
readonly originalVersionId: {
|
|
809
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
810
|
+
readonly type: "string";
|
|
811
|
+
readonly minLength: 1;
|
|
812
|
+
};
|
|
813
|
+
readonly schemaName: {
|
|
814
|
+
readonly description: "Must be `remoteDetectionAlert`";
|
|
815
|
+
readonly type: "string";
|
|
816
|
+
readonly const: "remoteDetectionAlert";
|
|
817
|
+
};
|
|
818
|
+
readonly createdAt: {
|
|
819
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
820
|
+
readonly type: "string";
|
|
821
|
+
readonly format: "date-time";
|
|
822
|
+
};
|
|
823
|
+
readonly updatedAt: {
|
|
824
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
readonly format: "date-time";
|
|
827
|
+
};
|
|
828
|
+
readonly links: {
|
|
829
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
830
|
+
readonly type: "array";
|
|
831
|
+
readonly uniqueItems: true;
|
|
832
|
+
readonly items: {
|
|
833
|
+
readonly type: "string";
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
readonly deleted: {
|
|
837
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
838
|
+
readonly type: "boolean";
|
|
839
|
+
};
|
|
840
|
+
readonly detectionDateStart: {
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
readonly format: "date-time";
|
|
843
|
+
readonly description: "Timestamp of when the detected alert started";
|
|
844
|
+
};
|
|
845
|
+
readonly detectionDateEnd: {
|
|
846
|
+
readonly type: "string";
|
|
847
|
+
readonly format: "date-time";
|
|
848
|
+
readonly description: "Timestamp of when the detected alert ended";
|
|
849
|
+
};
|
|
850
|
+
readonly sourceId: {
|
|
851
|
+
readonly type: "string";
|
|
852
|
+
readonly description: "unique string identifiying this alert, different from the `docId`";
|
|
853
|
+
};
|
|
854
|
+
readonly metadata: {
|
|
855
|
+
readonly type: "object";
|
|
856
|
+
readonly description: "Additional metadata related to this alert. It is a map from a string to any element (including lists)";
|
|
857
|
+
readonly properties: {};
|
|
858
|
+
readonly additionalProperties: {
|
|
859
|
+
readonly anyOf: readonly [{
|
|
860
|
+
readonly type: "boolean";
|
|
861
|
+
}, {
|
|
862
|
+
readonly type: "number";
|
|
863
|
+
}, {
|
|
864
|
+
readonly type: "string";
|
|
865
|
+
}, {
|
|
866
|
+
readonly type: "null";
|
|
867
|
+
}, {
|
|
868
|
+
readonly type: "array";
|
|
869
|
+
readonly items: {
|
|
870
|
+
readonly anyOf: readonly [{
|
|
871
|
+
readonly type: "boolean";
|
|
872
|
+
}, {
|
|
873
|
+
readonly type: "number";
|
|
874
|
+
}, {
|
|
875
|
+
readonly type: "string";
|
|
876
|
+
}, {
|
|
877
|
+
readonly type: "null";
|
|
878
|
+
}];
|
|
879
|
+
};
|
|
880
|
+
}];
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
readonly geometry: {
|
|
884
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
885
|
+
readonly $id: "http://comapeo.app/schemas/shared/geometry.json";
|
|
886
|
+
readonly title: "Geometry";
|
|
887
|
+
readonly type: "object";
|
|
888
|
+
readonly description: "A subset of the GeoJSON geometry object.";
|
|
889
|
+
readonly oneOf: readonly [{
|
|
890
|
+
readonly title: "Point";
|
|
891
|
+
readonly type: "object";
|
|
892
|
+
readonly required: readonly ["type", "coordinates"];
|
|
893
|
+
readonly properties: {
|
|
894
|
+
readonly type: {
|
|
895
|
+
readonly type: "string";
|
|
896
|
+
readonly enum: readonly ["Point"];
|
|
897
|
+
};
|
|
898
|
+
readonly coordinates: {
|
|
899
|
+
readonly title: "Position";
|
|
900
|
+
readonly type: "array";
|
|
901
|
+
readonly minItems: 2;
|
|
902
|
+
readonly maxItems: 2;
|
|
903
|
+
readonly items: readonly [{
|
|
904
|
+
readonly type: "number";
|
|
905
|
+
readonly description: "longitude";
|
|
906
|
+
readonly minimum: -180;
|
|
907
|
+
readonly maximum: 180;
|
|
908
|
+
}, {
|
|
909
|
+
readonly type: "number";
|
|
910
|
+
readonly description: "latitude";
|
|
911
|
+
readonly minimum: -90;
|
|
912
|
+
readonly maximum: 90;
|
|
913
|
+
}];
|
|
914
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
readonly additionalProperties: false;
|
|
918
|
+
}, {
|
|
919
|
+
readonly title: "LineString";
|
|
920
|
+
readonly type: "object";
|
|
921
|
+
readonly required: readonly ["type", "coordinates"];
|
|
922
|
+
readonly properties: {
|
|
923
|
+
readonly type: {
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
readonly enum: readonly ["LineString"];
|
|
926
|
+
};
|
|
927
|
+
readonly coordinates: {
|
|
928
|
+
readonly type: "array";
|
|
929
|
+
readonly items: readonly [{
|
|
930
|
+
readonly title: "Position";
|
|
931
|
+
readonly type: "array";
|
|
932
|
+
readonly minItems: 2;
|
|
933
|
+
readonly maxItems: 2;
|
|
934
|
+
readonly items: readonly [{
|
|
935
|
+
readonly type: "number";
|
|
936
|
+
readonly description: "longitude";
|
|
937
|
+
readonly minimum: -180;
|
|
938
|
+
readonly maximum: 180;
|
|
939
|
+
}, {
|
|
940
|
+
readonly type: "number";
|
|
941
|
+
readonly description: "latitude";
|
|
942
|
+
readonly minimum: -90;
|
|
943
|
+
readonly maximum: 90;
|
|
944
|
+
}];
|
|
945
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
946
|
+
}, {
|
|
947
|
+
readonly title: "Position";
|
|
948
|
+
readonly type: "array";
|
|
949
|
+
readonly minItems: 2;
|
|
950
|
+
readonly maxItems: 2;
|
|
951
|
+
readonly items: readonly [{
|
|
952
|
+
readonly type: "number";
|
|
953
|
+
readonly description: "longitude";
|
|
954
|
+
readonly minimum: -180;
|
|
955
|
+
readonly maximum: 180;
|
|
956
|
+
}, {
|
|
957
|
+
readonly type: "number";
|
|
958
|
+
readonly description: "latitude";
|
|
959
|
+
readonly minimum: -90;
|
|
960
|
+
readonly maximum: 90;
|
|
961
|
+
}];
|
|
962
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
963
|
+
}];
|
|
964
|
+
readonly minItems: 2;
|
|
965
|
+
readonly description: "@minItems 2";
|
|
966
|
+
readonly additionalItems: {
|
|
967
|
+
readonly title: "Position";
|
|
968
|
+
readonly type: "array";
|
|
969
|
+
readonly minItems: 2;
|
|
970
|
+
readonly maxItems: 2;
|
|
971
|
+
readonly items: readonly [{
|
|
972
|
+
readonly type: "number";
|
|
973
|
+
readonly description: "longitude";
|
|
974
|
+
readonly minimum: -180;
|
|
975
|
+
readonly maximum: 180;
|
|
976
|
+
}, {
|
|
977
|
+
readonly type: "number";
|
|
978
|
+
readonly description: "latitude";
|
|
979
|
+
readonly minimum: -90;
|
|
980
|
+
readonly maximum: 90;
|
|
981
|
+
}];
|
|
982
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
readonly additionalProperties: false;
|
|
987
|
+
}, {
|
|
988
|
+
readonly title: "MultiLineString";
|
|
989
|
+
readonly type: "object";
|
|
990
|
+
readonly required: readonly ["type", "coordinates"];
|
|
991
|
+
readonly properties: {
|
|
992
|
+
readonly type: {
|
|
993
|
+
readonly type: "string";
|
|
994
|
+
readonly enum: readonly ["MultiLineString"];
|
|
995
|
+
};
|
|
996
|
+
readonly coordinates: {
|
|
997
|
+
readonly type: "array";
|
|
998
|
+
readonly items: readonly [{
|
|
999
|
+
readonly type: "array";
|
|
1000
|
+
readonly items: readonly [{
|
|
1001
|
+
readonly title: "Position";
|
|
1002
|
+
readonly type: "array";
|
|
1003
|
+
readonly minItems: 2;
|
|
1004
|
+
readonly maxItems: 2;
|
|
1005
|
+
readonly items: readonly [{
|
|
1006
|
+
readonly type: "number";
|
|
1007
|
+
readonly description: "longitude";
|
|
1008
|
+
readonly minimum: -180;
|
|
1009
|
+
readonly maximum: 180;
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly type: "number";
|
|
1012
|
+
readonly description: "latitude";
|
|
1013
|
+
readonly minimum: -90;
|
|
1014
|
+
readonly maximum: 90;
|
|
1015
|
+
}];
|
|
1016
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly title: "Position";
|
|
1019
|
+
readonly type: "array";
|
|
1020
|
+
readonly minItems: 2;
|
|
1021
|
+
readonly maxItems: 2;
|
|
1022
|
+
readonly items: readonly [{
|
|
1023
|
+
readonly type: "number";
|
|
1024
|
+
readonly description: "longitude";
|
|
1025
|
+
readonly minimum: -180;
|
|
1026
|
+
readonly maximum: 180;
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly type: "number";
|
|
1029
|
+
readonly description: "latitude";
|
|
1030
|
+
readonly minimum: -90;
|
|
1031
|
+
readonly maximum: 90;
|
|
1032
|
+
}];
|
|
1033
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1034
|
+
}];
|
|
1035
|
+
readonly minItems: 2;
|
|
1036
|
+
readonly description: "@minItems 2";
|
|
1037
|
+
readonly additionalItems: {
|
|
1038
|
+
readonly title: "Position";
|
|
1039
|
+
readonly type: "array";
|
|
1040
|
+
readonly minItems: 2;
|
|
1041
|
+
readonly maxItems: 2;
|
|
1042
|
+
readonly items: readonly [{
|
|
1043
|
+
readonly type: "number";
|
|
1044
|
+
readonly description: "longitude";
|
|
1045
|
+
readonly minimum: -180;
|
|
1046
|
+
readonly maximum: 180;
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly type: "number";
|
|
1049
|
+
readonly description: "latitude";
|
|
1050
|
+
readonly minimum: -90;
|
|
1051
|
+
readonly maximum: 90;
|
|
1052
|
+
}];
|
|
1053
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1054
|
+
};
|
|
1055
|
+
}];
|
|
1056
|
+
readonly minItems: 1;
|
|
1057
|
+
readonly description: "@minItems 1";
|
|
1058
|
+
readonly additionalItems: {
|
|
1059
|
+
readonly type: "array";
|
|
1060
|
+
readonly items: readonly [{
|
|
1061
|
+
readonly title: "Position";
|
|
1062
|
+
readonly type: "array";
|
|
1063
|
+
readonly minItems: 2;
|
|
1064
|
+
readonly maxItems: 2;
|
|
1065
|
+
readonly items: readonly [{
|
|
1066
|
+
readonly type: "number";
|
|
1067
|
+
readonly description: "longitude";
|
|
1068
|
+
readonly minimum: -180;
|
|
1069
|
+
readonly maximum: 180;
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly type: "number";
|
|
1072
|
+
readonly description: "latitude";
|
|
1073
|
+
readonly minimum: -90;
|
|
1074
|
+
readonly maximum: 90;
|
|
1075
|
+
}];
|
|
1076
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly title: "Position";
|
|
1079
|
+
readonly type: "array";
|
|
1080
|
+
readonly minItems: 2;
|
|
1081
|
+
readonly maxItems: 2;
|
|
1082
|
+
readonly items: readonly [{
|
|
1083
|
+
readonly type: "number";
|
|
1084
|
+
readonly description: "longitude";
|
|
1085
|
+
readonly minimum: -180;
|
|
1086
|
+
readonly maximum: 180;
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly type: "number";
|
|
1089
|
+
readonly description: "latitude";
|
|
1090
|
+
readonly minimum: -90;
|
|
1091
|
+
readonly maximum: 90;
|
|
1092
|
+
}];
|
|
1093
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1094
|
+
}];
|
|
1095
|
+
readonly minItems: 2;
|
|
1096
|
+
readonly description: "@minItems 2";
|
|
1097
|
+
readonly additionalItems: {
|
|
1098
|
+
readonly title: "Position";
|
|
1099
|
+
readonly type: "array";
|
|
1100
|
+
readonly minItems: 2;
|
|
1101
|
+
readonly maxItems: 2;
|
|
1102
|
+
readonly items: readonly [{
|
|
1103
|
+
readonly type: "number";
|
|
1104
|
+
readonly description: "longitude";
|
|
1105
|
+
readonly minimum: -180;
|
|
1106
|
+
readonly maximum: 180;
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly type: "number";
|
|
1109
|
+
readonly description: "latitude";
|
|
1110
|
+
readonly minimum: -90;
|
|
1111
|
+
readonly maximum: 90;
|
|
1112
|
+
}];
|
|
1113
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
readonly additionalProperties: false;
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly title: "Polygon";
|
|
1121
|
+
readonly type: "object";
|
|
1122
|
+
readonly required: readonly ["type", "coordinates"];
|
|
1123
|
+
readonly properties: {
|
|
1124
|
+
readonly type: {
|
|
1125
|
+
readonly type: "string";
|
|
1126
|
+
readonly enum: readonly ["Polygon"];
|
|
1127
|
+
};
|
|
1128
|
+
readonly coordinates: {
|
|
1129
|
+
readonly type: "array";
|
|
1130
|
+
readonly items: readonly [{
|
|
1131
|
+
readonly title: "LinearRing";
|
|
1132
|
+
readonly type: "array";
|
|
1133
|
+
readonly minItems: 4;
|
|
1134
|
+
readonly items: readonly [{
|
|
1135
|
+
readonly title: "Position";
|
|
1136
|
+
readonly type: "array";
|
|
1137
|
+
readonly minItems: 2;
|
|
1138
|
+
readonly maxItems: 2;
|
|
1139
|
+
readonly items: readonly [{
|
|
1140
|
+
readonly type: "number";
|
|
1141
|
+
readonly description: "longitude";
|
|
1142
|
+
readonly minimum: -180;
|
|
1143
|
+
readonly maximum: 180;
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly type: "number";
|
|
1146
|
+
readonly description: "latitude";
|
|
1147
|
+
readonly minimum: -90;
|
|
1148
|
+
readonly maximum: 90;
|
|
1149
|
+
}];
|
|
1150
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1151
|
+
}, {
|
|
1152
|
+
readonly title: "Position";
|
|
1153
|
+
readonly type: "array";
|
|
1154
|
+
readonly minItems: 2;
|
|
1155
|
+
readonly maxItems: 2;
|
|
1156
|
+
readonly items: readonly [{
|
|
1157
|
+
readonly type: "number";
|
|
1158
|
+
readonly description: "longitude";
|
|
1159
|
+
readonly minimum: -180;
|
|
1160
|
+
readonly maximum: 180;
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly type: "number";
|
|
1163
|
+
readonly description: "latitude";
|
|
1164
|
+
readonly minimum: -90;
|
|
1165
|
+
readonly maximum: 90;
|
|
1166
|
+
}];
|
|
1167
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly title: "Position";
|
|
1170
|
+
readonly type: "array";
|
|
1171
|
+
readonly minItems: 2;
|
|
1172
|
+
readonly maxItems: 2;
|
|
1173
|
+
readonly items: readonly [{
|
|
1174
|
+
readonly type: "number";
|
|
1175
|
+
readonly description: "longitude";
|
|
1176
|
+
readonly minimum: -180;
|
|
1177
|
+
readonly maximum: 180;
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly type: "number";
|
|
1180
|
+
readonly description: "latitude";
|
|
1181
|
+
readonly minimum: -90;
|
|
1182
|
+
readonly maximum: 90;
|
|
1183
|
+
}];
|
|
1184
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly title: "Position";
|
|
1187
|
+
readonly type: "array";
|
|
1188
|
+
readonly minItems: 2;
|
|
1189
|
+
readonly maxItems: 2;
|
|
1190
|
+
readonly items: readonly [{
|
|
1191
|
+
readonly type: "number";
|
|
1192
|
+
readonly description: "longitude";
|
|
1193
|
+
readonly minimum: -180;
|
|
1194
|
+
readonly maximum: 180;
|
|
1195
|
+
}, {
|
|
1196
|
+
readonly type: "number";
|
|
1197
|
+
readonly description: "latitude";
|
|
1198
|
+
readonly minimum: -90;
|
|
1199
|
+
readonly maximum: 90;
|
|
1200
|
+
}];
|
|
1201
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1202
|
+
}];
|
|
1203
|
+
readonly description: "@minItems 4";
|
|
1204
|
+
readonly additionalItems: {
|
|
1205
|
+
readonly title: "Position";
|
|
1206
|
+
readonly type: "array";
|
|
1207
|
+
readonly minItems: 2;
|
|
1208
|
+
readonly maxItems: 2;
|
|
1209
|
+
readonly items: readonly [{
|
|
1210
|
+
readonly type: "number";
|
|
1211
|
+
readonly description: "longitude";
|
|
1212
|
+
readonly minimum: -180;
|
|
1213
|
+
readonly maximum: 180;
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly type: "number";
|
|
1216
|
+
readonly description: "latitude";
|
|
1217
|
+
readonly minimum: -90;
|
|
1218
|
+
readonly maximum: 90;
|
|
1219
|
+
}];
|
|
1220
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1221
|
+
};
|
|
1222
|
+
}];
|
|
1223
|
+
readonly minItems: 1;
|
|
1224
|
+
readonly description: "@minItems 1";
|
|
1225
|
+
readonly additionalItems: {
|
|
1226
|
+
readonly title: "LinearRing";
|
|
1227
|
+
readonly type: "array";
|
|
1228
|
+
readonly minItems: 4;
|
|
1229
|
+
readonly items: readonly [{
|
|
1230
|
+
readonly title: "Position";
|
|
1231
|
+
readonly type: "array";
|
|
1232
|
+
readonly minItems: 2;
|
|
1233
|
+
readonly maxItems: 2;
|
|
1234
|
+
readonly items: readonly [{
|
|
1235
|
+
readonly type: "number";
|
|
1236
|
+
readonly description: "longitude";
|
|
1237
|
+
readonly minimum: -180;
|
|
1238
|
+
readonly maximum: 180;
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly type: "number";
|
|
1241
|
+
readonly description: "latitude";
|
|
1242
|
+
readonly minimum: -90;
|
|
1243
|
+
readonly maximum: 90;
|
|
1244
|
+
}];
|
|
1245
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly title: "Position";
|
|
1248
|
+
readonly type: "array";
|
|
1249
|
+
readonly minItems: 2;
|
|
1250
|
+
readonly maxItems: 2;
|
|
1251
|
+
readonly items: readonly [{
|
|
1252
|
+
readonly type: "number";
|
|
1253
|
+
readonly description: "longitude";
|
|
1254
|
+
readonly minimum: -180;
|
|
1255
|
+
readonly maximum: 180;
|
|
1256
|
+
}, {
|
|
1257
|
+
readonly type: "number";
|
|
1258
|
+
readonly description: "latitude";
|
|
1259
|
+
readonly minimum: -90;
|
|
1260
|
+
readonly maximum: 90;
|
|
1261
|
+
}];
|
|
1262
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly title: "Position";
|
|
1265
|
+
readonly type: "array";
|
|
1266
|
+
readonly minItems: 2;
|
|
1267
|
+
readonly maxItems: 2;
|
|
1268
|
+
readonly items: readonly [{
|
|
1269
|
+
readonly type: "number";
|
|
1270
|
+
readonly description: "longitude";
|
|
1271
|
+
readonly minimum: -180;
|
|
1272
|
+
readonly maximum: 180;
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly type: "number";
|
|
1275
|
+
readonly description: "latitude";
|
|
1276
|
+
readonly minimum: -90;
|
|
1277
|
+
readonly maximum: 90;
|
|
1278
|
+
}];
|
|
1279
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly title: "Position";
|
|
1282
|
+
readonly type: "array";
|
|
1283
|
+
readonly minItems: 2;
|
|
1284
|
+
readonly maxItems: 2;
|
|
1285
|
+
readonly items: readonly [{
|
|
1286
|
+
readonly type: "number";
|
|
1287
|
+
readonly description: "longitude";
|
|
1288
|
+
readonly minimum: -180;
|
|
1289
|
+
readonly maximum: 180;
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly type: "number";
|
|
1292
|
+
readonly description: "latitude";
|
|
1293
|
+
readonly minimum: -90;
|
|
1294
|
+
readonly maximum: 90;
|
|
1295
|
+
}];
|
|
1296
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1297
|
+
}];
|
|
1298
|
+
readonly description: "@minItems 4";
|
|
1299
|
+
readonly additionalItems: {
|
|
1300
|
+
readonly title: "Position";
|
|
1301
|
+
readonly type: "array";
|
|
1302
|
+
readonly minItems: 2;
|
|
1303
|
+
readonly maxItems: 2;
|
|
1304
|
+
readonly items: readonly [{
|
|
1305
|
+
readonly type: "number";
|
|
1306
|
+
readonly description: "longitude";
|
|
1307
|
+
readonly minimum: -180;
|
|
1308
|
+
readonly maximum: 180;
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly type: "number";
|
|
1311
|
+
readonly description: "latitude";
|
|
1312
|
+
readonly minimum: -90;
|
|
1313
|
+
readonly maximum: 90;
|
|
1314
|
+
}];
|
|
1315
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
readonly additionalProperties: false;
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly title: "MultiPoint";
|
|
1323
|
+
readonly type: "object";
|
|
1324
|
+
readonly required: readonly ["type", "coordinates"];
|
|
1325
|
+
readonly properties: {
|
|
1326
|
+
readonly type: {
|
|
1327
|
+
readonly type: "string";
|
|
1328
|
+
readonly enum: readonly ["MultiPoint"];
|
|
1329
|
+
};
|
|
1330
|
+
readonly coordinates: {
|
|
1331
|
+
readonly type: "array";
|
|
1332
|
+
readonly items: readonly [{
|
|
1333
|
+
readonly title: "Position";
|
|
1334
|
+
readonly type: "array";
|
|
1335
|
+
readonly minItems: 2;
|
|
1336
|
+
readonly maxItems: 2;
|
|
1337
|
+
readonly items: readonly [{
|
|
1338
|
+
readonly type: "number";
|
|
1339
|
+
readonly description: "longitude";
|
|
1340
|
+
readonly minimum: -180;
|
|
1341
|
+
readonly maximum: 180;
|
|
1342
|
+
}, {
|
|
1343
|
+
readonly type: "number";
|
|
1344
|
+
readonly description: "latitude";
|
|
1345
|
+
readonly minimum: -90;
|
|
1346
|
+
readonly maximum: 90;
|
|
1347
|
+
}];
|
|
1348
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1349
|
+
}];
|
|
1350
|
+
readonly minItems: 1;
|
|
1351
|
+
readonly description: "@minItems 1";
|
|
1352
|
+
readonly additionalItems: {
|
|
1353
|
+
readonly title: "Position";
|
|
1354
|
+
readonly type: "array";
|
|
1355
|
+
readonly minItems: 2;
|
|
1356
|
+
readonly maxItems: 2;
|
|
1357
|
+
readonly items: readonly [{
|
|
1358
|
+
readonly type: "number";
|
|
1359
|
+
readonly description: "longitude";
|
|
1360
|
+
readonly minimum: -180;
|
|
1361
|
+
readonly maximum: 180;
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly type: "number";
|
|
1364
|
+
readonly description: "latitude";
|
|
1365
|
+
readonly minimum: -90;
|
|
1366
|
+
readonly maximum: 90;
|
|
1367
|
+
}];
|
|
1368
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
readonly additionalProperties: false;
|
|
1373
|
+
}, {
|
|
1374
|
+
readonly title: "MultiPolygon";
|
|
1375
|
+
readonly type: "object";
|
|
1376
|
+
readonly required: readonly ["type", "coordinates"];
|
|
1377
|
+
readonly properties: {
|
|
1378
|
+
readonly type: {
|
|
1379
|
+
readonly type: "string";
|
|
1380
|
+
readonly enum: readonly ["MultiPolygon"];
|
|
1381
|
+
};
|
|
1382
|
+
readonly coordinates: {
|
|
1383
|
+
readonly type: "array";
|
|
1384
|
+
readonly items: readonly [{
|
|
1385
|
+
readonly type: "array";
|
|
1386
|
+
readonly items: readonly [{
|
|
1387
|
+
readonly title: "LinearRing";
|
|
1388
|
+
readonly type: "array";
|
|
1389
|
+
readonly minItems: 4;
|
|
1390
|
+
readonly items: readonly [{
|
|
1391
|
+
readonly title: "Position";
|
|
1392
|
+
readonly type: "array";
|
|
1393
|
+
readonly minItems: 2;
|
|
1394
|
+
readonly maxItems: 2;
|
|
1395
|
+
readonly items: readonly [{
|
|
1396
|
+
readonly type: "number";
|
|
1397
|
+
readonly description: "longitude";
|
|
1398
|
+
readonly minimum: -180;
|
|
1399
|
+
readonly maximum: 180;
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly type: "number";
|
|
1402
|
+
readonly description: "latitude";
|
|
1403
|
+
readonly minimum: -90;
|
|
1404
|
+
readonly maximum: 90;
|
|
1405
|
+
}];
|
|
1406
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly title: "Position";
|
|
1409
|
+
readonly type: "array";
|
|
1410
|
+
readonly minItems: 2;
|
|
1411
|
+
readonly maxItems: 2;
|
|
1412
|
+
readonly items: readonly [{
|
|
1413
|
+
readonly type: "number";
|
|
1414
|
+
readonly description: "longitude";
|
|
1415
|
+
readonly minimum: -180;
|
|
1416
|
+
readonly maximum: 180;
|
|
1417
|
+
}, {
|
|
1418
|
+
readonly type: "number";
|
|
1419
|
+
readonly description: "latitude";
|
|
1420
|
+
readonly minimum: -90;
|
|
1421
|
+
readonly maximum: 90;
|
|
1422
|
+
}];
|
|
1423
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1424
|
+
}, {
|
|
1425
|
+
readonly title: "Position";
|
|
1426
|
+
readonly type: "array";
|
|
1427
|
+
readonly minItems: 2;
|
|
1428
|
+
readonly maxItems: 2;
|
|
1429
|
+
readonly items: readonly [{
|
|
1430
|
+
readonly type: "number";
|
|
1431
|
+
readonly description: "longitude";
|
|
1432
|
+
readonly minimum: -180;
|
|
1433
|
+
readonly maximum: 180;
|
|
1434
|
+
}, {
|
|
1435
|
+
readonly type: "number";
|
|
1436
|
+
readonly description: "latitude";
|
|
1437
|
+
readonly minimum: -90;
|
|
1438
|
+
readonly maximum: 90;
|
|
1439
|
+
}];
|
|
1440
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly title: "Position";
|
|
1443
|
+
readonly type: "array";
|
|
1444
|
+
readonly minItems: 2;
|
|
1445
|
+
readonly maxItems: 2;
|
|
1446
|
+
readonly items: readonly [{
|
|
1447
|
+
readonly type: "number";
|
|
1448
|
+
readonly description: "longitude";
|
|
1449
|
+
readonly minimum: -180;
|
|
1450
|
+
readonly maximum: 180;
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly type: "number";
|
|
1453
|
+
readonly description: "latitude";
|
|
1454
|
+
readonly minimum: -90;
|
|
1455
|
+
readonly maximum: 90;
|
|
1456
|
+
}];
|
|
1457
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1458
|
+
}];
|
|
1459
|
+
readonly description: "@minItems 4";
|
|
1460
|
+
readonly additionalItems: {
|
|
1461
|
+
readonly title: "Position";
|
|
1462
|
+
readonly type: "array";
|
|
1463
|
+
readonly minItems: 2;
|
|
1464
|
+
readonly maxItems: 2;
|
|
1465
|
+
readonly items: readonly [{
|
|
1466
|
+
readonly type: "number";
|
|
1467
|
+
readonly description: "longitude";
|
|
1468
|
+
readonly minimum: -180;
|
|
1469
|
+
readonly maximum: 180;
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly type: "number";
|
|
1472
|
+
readonly description: "latitude";
|
|
1473
|
+
readonly minimum: -90;
|
|
1474
|
+
readonly maximum: 90;
|
|
1475
|
+
}];
|
|
1476
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1477
|
+
};
|
|
1478
|
+
}];
|
|
1479
|
+
readonly minItems: 1;
|
|
1480
|
+
readonly description: "@minItems 1";
|
|
1481
|
+
readonly additionalItems: {
|
|
1482
|
+
readonly title: "LinearRing";
|
|
1483
|
+
readonly type: "array";
|
|
1484
|
+
readonly minItems: 4;
|
|
1485
|
+
readonly items: readonly [{
|
|
1486
|
+
readonly title: "Position";
|
|
1487
|
+
readonly type: "array";
|
|
1488
|
+
readonly minItems: 2;
|
|
1489
|
+
readonly maxItems: 2;
|
|
1490
|
+
readonly items: readonly [{
|
|
1491
|
+
readonly type: "number";
|
|
1492
|
+
readonly description: "longitude";
|
|
1493
|
+
readonly minimum: -180;
|
|
1494
|
+
readonly maximum: 180;
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly type: "number";
|
|
1497
|
+
readonly description: "latitude";
|
|
1498
|
+
readonly minimum: -90;
|
|
1499
|
+
readonly maximum: 90;
|
|
1500
|
+
}];
|
|
1501
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly title: "Position";
|
|
1504
|
+
readonly type: "array";
|
|
1505
|
+
readonly minItems: 2;
|
|
1506
|
+
readonly maxItems: 2;
|
|
1507
|
+
readonly items: readonly [{
|
|
1508
|
+
readonly type: "number";
|
|
1509
|
+
readonly description: "longitude";
|
|
1510
|
+
readonly minimum: -180;
|
|
1511
|
+
readonly maximum: 180;
|
|
1512
|
+
}, {
|
|
1513
|
+
readonly type: "number";
|
|
1514
|
+
readonly description: "latitude";
|
|
1515
|
+
readonly minimum: -90;
|
|
1516
|
+
readonly maximum: 90;
|
|
1517
|
+
}];
|
|
1518
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly title: "Position";
|
|
1521
|
+
readonly type: "array";
|
|
1522
|
+
readonly minItems: 2;
|
|
1523
|
+
readonly maxItems: 2;
|
|
1524
|
+
readonly items: readonly [{
|
|
1525
|
+
readonly type: "number";
|
|
1526
|
+
readonly description: "longitude";
|
|
1527
|
+
readonly minimum: -180;
|
|
1528
|
+
readonly maximum: 180;
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly type: "number";
|
|
1531
|
+
readonly description: "latitude";
|
|
1532
|
+
readonly minimum: -90;
|
|
1533
|
+
readonly maximum: 90;
|
|
1534
|
+
}];
|
|
1535
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly title: "Position";
|
|
1538
|
+
readonly type: "array";
|
|
1539
|
+
readonly minItems: 2;
|
|
1540
|
+
readonly maxItems: 2;
|
|
1541
|
+
readonly items: readonly [{
|
|
1542
|
+
readonly type: "number";
|
|
1543
|
+
readonly description: "longitude";
|
|
1544
|
+
readonly minimum: -180;
|
|
1545
|
+
readonly maximum: 180;
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly type: "number";
|
|
1548
|
+
readonly description: "latitude";
|
|
1549
|
+
readonly minimum: -90;
|
|
1550
|
+
readonly maximum: 90;
|
|
1551
|
+
}];
|
|
1552
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1553
|
+
}];
|
|
1554
|
+
readonly description: "@minItems 4";
|
|
1555
|
+
readonly additionalItems: {
|
|
1556
|
+
readonly title: "Position";
|
|
1557
|
+
readonly type: "array";
|
|
1558
|
+
readonly minItems: 2;
|
|
1559
|
+
readonly maxItems: 2;
|
|
1560
|
+
readonly items: readonly [{
|
|
1561
|
+
readonly type: "number";
|
|
1562
|
+
readonly description: "longitude";
|
|
1563
|
+
readonly minimum: -180;
|
|
1564
|
+
readonly maximum: 180;
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly type: "number";
|
|
1567
|
+
readonly description: "latitude";
|
|
1568
|
+
readonly minimum: -90;
|
|
1569
|
+
readonly maximum: 90;
|
|
1570
|
+
}];
|
|
1571
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
}];
|
|
1575
|
+
readonly minItems: 1;
|
|
1576
|
+
readonly description: "@minItems 1";
|
|
1577
|
+
readonly additionalItems: {
|
|
1578
|
+
readonly type: "array";
|
|
1579
|
+
readonly items: readonly [{
|
|
1580
|
+
readonly title: "LinearRing";
|
|
1581
|
+
readonly type: "array";
|
|
1582
|
+
readonly minItems: 4;
|
|
1583
|
+
readonly items: readonly [{
|
|
1584
|
+
readonly title: "Position";
|
|
1585
|
+
readonly type: "array";
|
|
1586
|
+
readonly minItems: 2;
|
|
1587
|
+
readonly maxItems: 2;
|
|
1588
|
+
readonly items: readonly [{
|
|
1589
|
+
readonly type: "number";
|
|
1590
|
+
readonly description: "longitude";
|
|
1591
|
+
readonly minimum: -180;
|
|
1592
|
+
readonly maximum: 180;
|
|
1593
|
+
}, {
|
|
1594
|
+
readonly type: "number";
|
|
1595
|
+
readonly description: "latitude";
|
|
1596
|
+
readonly minimum: -90;
|
|
1597
|
+
readonly maximum: 90;
|
|
1598
|
+
}];
|
|
1599
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly title: "Position";
|
|
1602
|
+
readonly type: "array";
|
|
1603
|
+
readonly minItems: 2;
|
|
1604
|
+
readonly maxItems: 2;
|
|
1605
|
+
readonly items: readonly [{
|
|
1606
|
+
readonly type: "number";
|
|
1607
|
+
readonly description: "longitude";
|
|
1608
|
+
readonly minimum: -180;
|
|
1609
|
+
readonly maximum: 180;
|
|
1610
|
+
}, {
|
|
1611
|
+
readonly type: "number";
|
|
1612
|
+
readonly description: "latitude";
|
|
1613
|
+
readonly minimum: -90;
|
|
1614
|
+
readonly maximum: 90;
|
|
1615
|
+
}];
|
|
1616
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1617
|
+
}, {
|
|
1618
|
+
readonly title: "Position";
|
|
1619
|
+
readonly type: "array";
|
|
1620
|
+
readonly minItems: 2;
|
|
1621
|
+
readonly maxItems: 2;
|
|
1622
|
+
readonly items: readonly [{
|
|
1623
|
+
readonly type: "number";
|
|
1624
|
+
readonly description: "longitude";
|
|
1625
|
+
readonly minimum: -180;
|
|
1626
|
+
readonly maximum: 180;
|
|
1627
|
+
}, {
|
|
1628
|
+
readonly type: "number";
|
|
1629
|
+
readonly description: "latitude";
|
|
1630
|
+
readonly minimum: -90;
|
|
1631
|
+
readonly maximum: 90;
|
|
1632
|
+
}];
|
|
1633
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly title: "Position";
|
|
1636
|
+
readonly type: "array";
|
|
1637
|
+
readonly minItems: 2;
|
|
1638
|
+
readonly maxItems: 2;
|
|
1639
|
+
readonly items: readonly [{
|
|
1640
|
+
readonly type: "number";
|
|
1641
|
+
readonly description: "longitude";
|
|
1642
|
+
readonly minimum: -180;
|
|
1643
|
+
readonly maximum: 180;
|
|
1644
|
+
}, {
|
|
1645
|
+
readonly type: "number";
|
|
1646
|
+
readonly description: "latitude";
|
|
1647
|
+
readonly minimum: -90;
|
|
1648
|
+
readonly maximum: 90;
|
|
1649
|
+
}];
|
|
1650
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1651
|
+
}];
|
|
1652
|
+
readonly description: "@minItems 4";
|
|
1653
|
+
readonly additionalItems: {
|
|
1654
|
+
readonly title: "Position";
|
|
1655
|
+
readonly type: "array";
|
|
1656
|
+
readonly minItems: 2;
|
|
1657
|
+
readonly maxItems: 2;
|
|
1658
|
+
readonly items: readonly [{
|
|
1659
|
+
readonly type: "number";
|
|
1660
|
+
readonly description: "longitude";
|
|
1661
|
+
readonly minimum: -180;
|
|
1662
|
+
readonly maximum: 180;
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly type: "number";
|
|
1665
|
+
readonly description: "latitude";
|
|
1666
|
+
readonly minimum: -90;
|
|
1667
|
+
readonly maximum: 90;
|
|
1668
|
+
}];
|
|
1669
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1670
|
+
};
|
|
1671
|
+
}];
|
|
1672
|
+
readonly minItems: 1;
|
|
1673
|
+
readonly description: "@minItems 1";
|
|
1674
|
+
readonly additionalItems: {
|
|
1675
|
+
readonly title: "LinearRing";
|
|
1676
|
+
readonly type: "array";
|
|
1677
|
+
readonly minItems: 4;
|
|
1678
|
+
readonly items: readonly [{
|
|
1679
|
+
readonly title: "Position";
|
|
1680
|
+
readonly type: "array";
|
|
1681
|
+
readonly minItems: 2;
|
|
1682
|
+
readonly maxItems: 2;
|
|
1683
|
+
readonly items: readonly [{
|
|
1684
|
+
readonly type: "number";
|
|
1685
|
+
readonly description: "longitude";
|
|
1686
|
+
readonly minimum: -180;
|
|
1687
|
+
readonly maximum: 180;
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly type: "number";
|
|
1690
|
+
readonly description: "latitude";
|
|
1691
|
+
readonly minimum: -90;
|
|
1692
|
+
readonly maximum: 90;
|
|
1693
|
+
}];
|
|
1694
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly title: "Position";
|
|
1697
|
+
readonly type: "array";
|
|
1698
|
+
readonly minItems: 2;
|
|
1699
|
+
readonly maxItems: 2;
|
|
1700
|
+
readonly items: readonly [{
|
|
1701
|
+
readonly type: "number";
|
|
1702
|
+
readonly description: "longitude";
|
|
1703
|
+
readonly minimum: -180;
|
|
1704
|
+
readonly maximum: 180;
|
|
1705
|
+
}, {
|
|
1706
|
+
readonly type: "number";
|
|
1707
|
+
readonly description: "latitude";
|
|
1708
|
+
readonly minimum: -90;
|
|
1709
|
+
readonly maximum: 90;
|
|
1710
|
+
}];
|
|
1711
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly title: "Position";
|
|
1714
|
+
readonly type: "array";
|
|
1715
|
+
readonly minItems: 2;
|
|
1716
|
+
readonly maxItems: 2;
|
|
1717
|
+
readonly items: readonly [{
|
|
1718
|
+
readonly type: "number";
|
|
1719
|
+
readonly description: "longitude";
|
|
1720
|
+
readonly minimum: -180;
|
|
1721
|
+
readonly maximum: 180;
|
|
1722
|
+
}, {
|
|
1723
|
+
readonly type: "number";
|
|
1724
|
+
readonly description: "latitude";
|
|
1725
|
+
readonly minimum: -90;
|
|
1726
|
+
readonly maximum: 90;
|
|
1727
|
+
}];
|
|
1728
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1729
|
+
}, {
|
|
1730
|
+
readonly title: "Position";
|
|
1731
|
+
readonly type: "array";
|
|
1732
|
+
readonly minItems: 2;
|
|
1733
|
+
readonly maxItems: 2;
|
|
1734
|
+
readonly items: readonly [{
|
|
1735
|
+
readonly type: "number";
|
|
1736
|
+
readonly description: "longitude";
|
|
1737
|
+
readonly minimum: -180;
|
|
1738
|
+
readonly maximum: 180;
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly type: "number";
|
|
1741
|
+
readonly description: "latitude";
|
|
1742
|
+
readonly minimum: -90;
|
|
1743
|
+
readonly maximum: 90;
|
|
1744
|
+
}];
|
|
1745
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1746
|
+
}];
|
|
1747
|
+
readonly description: "@minItems 4";
|
|
1748
|
+
readonly additionalItems: {
|
|
1749
|
+
readonly title: "Position";
|
|
1750
|
+
readonly type: "array";
|
|
1751
|
+
readonly minItems: 2;
|
|
1752
|
+
readonly maxItems: 2;
|
|
1753
|
+
readonly items: readonly [{
|
|
1754
|
+
readonly type: "number";
|
|
1755
|
+
readonly description: "longitude";
|
|
1756
|
+
readonly minimum: -180;
|
|
1757
|
+
readonly maximum: 180;
|
|
1758
|
+
}, {
|
|
1759
|
+
readonly type: "number";
|
|
1760
|
+
readonly description: "latitude";
|
|
1761
|
+
readonly minimum: -90;
|
|
1762
|
+
readonly maximum: 90;
|
|
1763
|
+
}];
|
|
1764
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
readonly additionalProperties: false;
|
|
1771
|
+
}];
|
|
1772
|
+
readonly required: readonly [];
|
|
1773
|
+
readonly additionalProperties: false;
|
|
1774
|
+
readonly $defs: {
|
|
1775
|
+
readonly position: {
|
|
1776
|
+
readonly title: "Position";
|
|
1777
|
+
readonly type: "array";
|
|
1778
|
+
readonly minItems: 2;
|
|
1779
|
+
readonly maxItems: 2;
|
|
1780
|
+
readonly items: readonly [{
|
|
1781
|
+
readonly type: "number";
|
|
1782
|
+
readonly description: "longitude";
|
|
1783
|
+
readonly minimum: -180;
|
|
1784
|
+
readonly maximum: 180;
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly type: "number";
|
|
1787
|
+
readonly description: "latitude";
|
|
1788
|
+
readonly minimum: -90;
|
|
1789
|
+
readonly maximum: 90;
|
|
1790
|
+
}];
|
|
1791
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1792
|
+
};
|
|
1793
|
+
readonly linearRing: {
|
|
1794
|
+
readonly title: "LinearRing";
|
|
1795
|
+
readonly type: "array";
|
|
1796
|
+
readonly minItems: 4;
|
|
1797
|
+
readonly items: readonly [{
|
|
1798
|
+
readonly title: "Position";
|
|
1799
|
+
readonly type: "array";
|
|
1800
|
+
readonly minItems: 2;
|
|
1801
|
+
readonly maxItems: 2;
|
|
1802
|
+
readonly items: readonly [{
|
|
1803
|
+
readonly type: "number";
|
|
1804
|
+
readonly description: "longitude";
|
|
1805
|
+
readonly minimum: -180;
|
|
1806
|
+
readonly maximum: 180;
|
|
1807
|
+
}, {
|
|
1808
|
+
readonly type: "number";
|
|
1809
|
+
readonly description: "latitude";
|
|
1810
|
+
readonly minimum: -90;
|
|
1811
|
+
readonly maximum: 90;
|
|
1812
|
+
}];
|
|
1813
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly title: "Position";
|
|
1816
|
+
readonly type: "array";
|
|
1817
|
+
readonly minItems: 2;
|
|
1818
|
+
readonly maxItems: 2;
|
|
1819
|
+
readonly items: readonly [{
|
|
1820
|
+
readonly type: "number";
|
|
1821
|
+
readonly description: "longitude";
|
|
1822
|
+
readonly minimum: -180;
|
|
1823
|
+
readonly maximum: 180;
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly type: "number";
|
|
1826
|
+
readonly description: "latitude";
|
|
1827
|
+
readonly minimum: -90;
|
|
1828
|
+
readonly maximum: 90;
|
|
1829
|
+
}];
|
|
1830
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1831
|
+
}, {
|
|
1832
|
+
readonly title: "Position";
|
|
1833
|
+
readonly type: "array";
|
|
1834
|
+
readonly minItems: 2;
|
|
1835
|
+
readonly maxItems: 2;
|
|
1836
|
+
readonly items: readonly [{
|
|
1837
|
+
readonly type: "number";
|
|
1838
|
+
readonly description: "longitude";
|
|
1839
|
+
readonly minimum: -180;
|
|
1840
|
+
readonly maximum: 180;
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly type: "number";
|
|
1843
|
+
readonly description: "latitude";
|
|
1844
|
+
readonly minimum: -90;
|
|
1845
|
+
readonly maximum: 90;
|
|
1846
|
+
}];
|
|
1847
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly title: "Position";
|
|
1850
|
+
readonly type: "array";
|
|
1851
|
+
readonly minItems: 2;
|
|
1852
|
+
readonly maxItems: 2;
|
|
1853
|
+
readonly items: readonly [{
|
|
1854
|
+
readonly type: "number";
|
|
1855
|
+
readonly description: "longitude";
|
|
1856
|
+
readonly minimum: -180;
|
|
1857
|
+
readonly maximum: 180;
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly type: "number";
|
|
1860
|
+
readonly description: "latitude";
|
|
1861
|
+
readonly minimum: -90;
|
|
1862
|
+
readonly maximum: 90;
|
|
1863
|
+
}];
|
|
1864
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1865
|
+
}];
|
|
1866
|
+
readonly description: "@minItems 4";
|
|
1867
|
+
readonly additionalItems: {
|
|
1868
|
+
readonly title: "Position";
|
|
1869
|
+
readonly type: "array";
|
|
1870
|
+
readonly minItems: 2;
|
|
1871
|
+
readonly maxItems: 2;
|
|
1872
|
+
readonly items: readonly [{
|
|
1873
|
+
readonly type: "number";
|
|
1874
|
+
readonly description: "longitude";
|
|
1875
|
+
readonly minimum: -180;
|
|
1876
|
+
readonly maximum: 180;
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly type: "number";
|
|
1879
|
+
readonly description: "latitude";
|
|
1880
|
+
readonly minimum: -90;
|
|
1881
|
+
readonly maximum: 90;
|
|
1882
|
+
}];
|
|
1883
|
+
readonly description: "@minItems 2\n@maxItems 2";
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1368
1888
|
};
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
}
|
|
1423
|
-
readonly createdAt:
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1889
|
+
readonly required: readonly ["schemaName", "detectionDateStart", "detectionDateEnd", "sourceId", "metadata", "geometry", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
1890
|
+
readonly additionalProperties: false;
|
|
1891
|
+
}, "remoteDetectionAlert", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
1892
|
+
export const presetTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
1893
|
+
schemaName: "preset";
|
|
1894
|
+
name: string;
|
|
1895
|
+
geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
|
|
1896
|
+
tags: import("@comapeo/schema/dist/schema/preset.js").Tags;
|
|
1897
|
+
addTags: import("@comapeo/schema/dist/schema/preset.js").Tags1;
|
|
1898
|
+
removeTags: import("@comapeo/schema/dist/schema/preset.js").Tags2;
|
|
1899
|
+
fieldRefs: {
|
|
1900
|
+
docId: string;
|
|
1901
|
+
versionId: string;
|
|
1902
|
+
}[];
|
|
1903
|
+
iconRef?: {
|
|
1904
|
+
docId: string;
|
|
1905
|
+
versionId: string;
|
|
1906
|
+
} | undefined;
|
|
1907
|
+
terms: string[];
|
|
1908
|
+
color?: string | undefined;
|
|
1909
|
+
docId: string;
|
|
1910
|
+
versionId: string;
|
|
1911
|
+
originalVersionId: string;
|
|
1912
|
+
createdAt: string;
|
|
1913
|
+
updatedAt: string;
|
|
1914
|
+
links: string[];
|
|
1915
|
+
deleted: boolean;
|
|
1916
|
+
}, {
|
|
1917
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
1918
|
+
readonly $id: "http://mapeo.world/schemas/preset/v1.json";
|
|
1919
|
+
readonly title: "Preset";
|
|
1920
|
+
readonly description: "Presets define how map entities are displayed to the user. They define the icon used on the map, and the fields / questions shown to the user when they create or edit the entity on the map. The `tags` property of a preset is used to match the preset with observations, nodes, ways and relations. If multiple presets match, the one that matches the most tags is used.";
|
|
1921
|
+
readonly type: "object";
|
|
1922
|
+
readonly properties: {
|
|
1923
|
+
readonly docId: {
|
|
1924
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
1925
|
+
readonly type: "string";
|
|
1926
|
+
readonly minLength: 1;
|
|
1927
|
+
};
|
|
1928
|
+
readonly versionId: {
|
|
1929
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
1930
|
+
readonly type: "string";
|
|
1931
|
+
readonly minLength: 1;
|
|
1932
|
+
};
|
|
1933
|
+
readonly originalVersionId: {
|
|
1934
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
1935
|
+
readonly type: "string";
|
|
1936
|
+
readonly minLength: 1;
|
|
1937
|
+
};
|
|
1938
|
+
readonly schemaName: {
|
|
1939
|
+
readonly description: "Must be `preset`";
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly const: "preset";
|
|
1942
|
+
};
|
|
1943
|
+
readonly createdAt: {
|
|
1944
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
1945
|
+
readonly type: "string";
|
|
1946
|
+
readonly format: "date-time";
|
|
1947
|
+
};
|
|
1948
|
+
readonly updatedAt: {
|
|
1949
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
1950
|
+
readonly type: "string";
|
|
1951
|
+
readonly format: "date-time";
|
|
1952
|
+
};
|
|
1953
|
+
readonly links: {
|
|
1954
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
1955
|
+
readonly type: "array";
|
|
1956
|
+
readonly uniqueItems: true;
|
|
1957
|
+
readonly items: {
|
|
1958
|
+
readonly type: "string";
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
readonly deleted: {
|
|
1962
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
1963
|
+
readonly type: "boolean";
|
|
1964
|
+
};
|
|
1965
|
+
readonly name: {
|
|
1966
|
+
readonly description: "Name for the feature in default language.";
|
|
1967
|
+
readonly type: "string";
|
|
1968
|
+
};
|
|
1969
|
+
readonly geometry: {
|
|
1970
|
+
readonly description: "Valid geometry types for the feature - this preset will only match features of this geometry type `\"point\", \"vertex\", \"line\", \"area\", \"relation\"`";
|
|
1971
|
+
readonly type: "array";
|
|
1972
|
+
readonly uniqueItems: true;
|
|
1973
|
+
readonly items: {
|
|
1974
|
+
readonly type: "string";
|
|
1975
|
+
readonly enum: readonly ["point", "vertex", "line", "area", "relation"];
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
readonly tags: {
|
|
1979
|
+
readonly type: "object";
|
|
1980
|
+
readonly properties: {};
|
|
1981
|
+
readonly additionalProperties: {
|
|
1982
|
+
readonly anyOf: readonly [{
|
|
1983
|
+
readonly type: "boolean";
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly type: "number";
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly type: "string";
|
|
1988
|
+
}, {
|
|
1989
|
+
readonly type: "null";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly type: "array";
|
|
1992
|
+
readonly items: {
|
|
1993
|
+
readonly anyOf: readonly [{
|
|
1994
|
+
readonly type: "boolean";
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly type: "number";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly type: "string";
|
|
1999
|
+
}, {
|
|
2000
|
+
readonly type: "null";
|
|
2001
|
+
}];
|
|
2002
|
+
};
|
|
2003
|
+
}];
|
|
2004
|
+
};
|
|
2005
|
+
readonly description: "The tags are used to match the preset to existing map entities. You can match based on multiple tags E.g. if you have existing points with the tags `nature:tree` and `species:oak` then you can add both these tags here in order to match only oak trees.";
|
|
2006
|
+
};
|
|
2007
|
+
readonly addTags: {
|
|
2008
|
+
readonly type: "object";
|
|
2009
|
+
readonly properties: {};
|
|
2010
|
+
readonly additionalProperties: {
|
|
2011
|
+
readonly anyOf: readonly [{
|
|
2012
|
+
readonly type: "boolean";
|
|
2013
|
+
}, {
|
|
2014
|
+
readonly type: "number";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly type: "string";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly type: "null";
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly type: "array";
|
|
2021
|
+
readonly items: {
|
|
2022
|
+
readonly anyOf: readonly [{
|
|
2023
|
+
readonly type: "boolean";
|
|
2024
|
+
}, {
|
|
2025
|
+
readonly type: "number";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly type: "string";
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly type: "null";
|
|
2030
|
+
}];
|
|
2031
|
+
};
|
|
2032
|
+
}];
|
|
2033
|
+
};
|
|
2034
|
+
readonly description: "Tags that are added when changing to the preset (default is the same value as 'tags')";
|
|
2035
|
+
};
|
|
2036
|
+
readonly removeTags: {
|
|
2037
|
+
readonly type: "object";
|
|
2038
|
+
readonly properties: {};
|
|
2039
|
+
readonly additionalProperties: {
|
|
2040
|
+
readonly anyOf: readonly [{
|
|
2041
|
+
readonly type: "boolean";
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly type: "number";
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly type: "string";
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly type: "null";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly type: "array";
|
|
2050
|
+
readonly items: {
|
|
2051
|
+
readonly anyOf: readonly [{
|
|
2052
|
+
readonly type: "boolean";
|
|
2053
|
+
}, {
|
|
2054
|
+
readonly type: "number";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly type: "string";
|
|
2057
|
+
}, {
|
|
2058
|
+
readonly type: "null";
|
|
2059
|
+
}];
|
|
2060
|
+
};
|
|
2061
|
+
}];
|
|
2062
|
+
};
|
|
2063
|
+
readonly description: "Tags that are removed when changing to another preset (default is the same value as 'addTags' which in turn defaults to 'tags')";
|
|
2064
|
+
};
|
|
2065
|
+
readonly fieldRefs: {
|
|
2066
|
+
readonly type: "array";
|
|
2067
|
+
readonly description: "References to any fields that this preset is related to.";
|
|
2068
|
+
readonly items: {
|
|
2069
|
+
readonly type: "object";
|
|
2070
|
+
readonly properties: {
|
|
2071
|
+
readonly docId: {
|
|
2072
|
+
readonly description: "hex-encoded id of the element that this observation references";
|
|
2073
|
+
readonly type: "string";
|
|
2074
|
+
readonly minLength: 1;
|
|
2075
|
+
};
|
|
2076
|
+
readonly versionId: {
|
|
2077
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2078
|
+
readonly type: "string";
|
|
2079
|
+
readonly minLength: 1;
|
|
2080
|
+
};
|
|
2081
|
+
};
|
|
2082
|
+
readonly required: readonly ["docId", "versionId"];
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
readonly iconRef: {
|
|
2086
|
+
readonly type: "object";
|
|
2087
|
+
readonly description: "References to the icon that this preset is related to.";
|
|
2088
|
+
readonly properties: {
|
|
2089
|
+
readonly docId: {
|
|
2090
|
+
readonly description: "hex-encoded id of the element that this observation references";
|
|
2091
|
+
readonly type: "string";
|
|
2092
|
+
readonly minLength: 1;
|
|
2093
|
+
};
|
|
2094
|
+
readonly versionId: {
|
|
2095
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2096
|
+
readonly type: "string";
|
|
2097
|
+
readonly minLength: 1;
|
|
2098
|
+
};
|
|
2099
|
+
};
|
|
2100
|
+
readonly required: readonly ["docId", "versionId"];
|
|
2101
|
+
};
|
|
2102
|
+
readonly terms: {
|
|
2103
|
+
readonly description: "Synonyms or related terms (used for search)";
|
|
2104
|
+
readonly type: "array";
|
|
2105
|
+
readonly items: {
|
|
2106
|
+
readonly type: "string";
|
|
2107
|
+
};
|
|
2108
|
+
};
|
|
2109
|
+
readonly color: {
|
|
2110
|
+
readonly description: "string representation of a color in 24 bit (#rrggbb)";
|
|
2111
|
+
readonly type: "string";
|
|
2112
|
+
readonly pattern: "^#[a-fA-F0-9]{6}$";
|
|
2113
|
+
};
|
|
1507
2114
|
};
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
}
|
|
1586
|
-
readonly
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
}
|
|
1598
|
-
readonly
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
enumValues: undefined;
|
|
1658
|
-
baseColumn: never;
|
|
1659
|
-
}, object>;
|
|
2115
|
+
readonly required: readonly ["name", "geometry", "tags", "addTags", "removeTags", "fieldRefs", "schemaName", "terms", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2116
|
+
readonly additionalProperties: false;
|
|
2117
|
+
}, "preset", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
2118
|
+
export const fieldTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2119
|
+
schemaName: "field";
|
|
2120
|
+
tagKey: string;
|
|
2121
|
+
type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
|
|
2122
|
+
label: string;
|
|
2123
|
+
appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
|
|
2124
|
+
snakeCase?: boolean | undefined;
|
|
2125
|
+
options?: {
|
|
2126
|
+
label: string;
|
|
2127
|
+
value: string | boolean | number | null;
|
|
2128
|
+
}[] | undefined;
|
|
2129
|
+
universal?: boolean | undefined;
|
|
2130
|
+
placeholder?: string | undefined;
|
|
2131
|
+
helperText?: string | undefined;
|
|
2132
|
+
docId: string;
|
|
2133
|
+
versionId: string;
|
|
2134
|
+
originalVersionId: string;
|
|
2135
|
+
createdAt: string;
|
|
2136
|
+
updatedAt: string;
|
|
2137
|
+
links: string[];
|
|
2138
|
+
deleted: boolean;
|
|
2139
|
+
}, {
|
|
2140
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2141
|
+
readonly $id: "http://mapeo.world/schemas/field/v1.json";
|
|
2142
|
+
readonly title: "Field";
|
|
2143
|
+
readonly description: "A field defines a form field that will be shown to the user when creating or editing a map entity. Presets define which fields are shown to the user for a particular map entity. The field definition defines whether the field should show as a text box, multiple choice, single-select, etc. It defines what tag-value is set when the field is entered.";
|
|
2144
|
+
readonly type: "object";
|
|
2145
|
+
readonly properties: {
|
|
2146
|
+
readonly docId: {
|
|
2147
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
2148
|
+
readonly type: "string";
|
|
2149
|
+
readonly minLength: 1;
|
|
2150
|
+
};
|
|
2151
|
+
readonly versionId: {
|
|
2152
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2153
|
+
readonly type: "string";
|
|
2154
|
+
readonly minLength: 1;
|
|
2155
|
+
};
|
|
2156
|
+
readonly originalVersionId: {
|
|
2157
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
2158
|
+
readonly type: "string";
|
|
2159
|
+
readonly minLength: 1;
|
|
2160
|
+
};
|
|
2161
|
+
readonly schemaName: {
|
|
2162
|
+
readonly description: "Must be `field`";
|
|
2163
|
+
readonly type: "string";
|
|
2164
|
+
readonly const: "field";
|
|
2165
|
+
};
|
|
2166
|
+
readonly createdAt: {
|
|
2167
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
2168
|
+
readonly type: "string";
|
|
2169
|
+
readonly format: "date-time";
|
|
2170
|
+
};
|
|
2171
|
+
readonly updatedAt: {
|
|
2172
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
2173
|
+
readonly type: "string";
|
|
2174
|
+
readonly format: "date-time";
|
|
2175
|
+
};
|
|
2176
|
+
readonly links: {
|
|
2177
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2178
|
+
readonly type: "array";
|
|
2179
|
+
readonly uniqueItems: true;
|
|
2180
|
+
readonly items: {
|
|
2181
|
+
readonly type: "string";
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
readonly deleted: {
|
|
2185
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
2186
|
+
readonly type: "boolean";
|
|
2187
|
+
};
|
|
2188
|
+
readonly tagKey: {
|
|
2189
|
+
readonly description: "They key in a tags object that this field applies to";
|
|
2190
|
+
readonly type: "string";
|
|
2191
|
+
readonly minLength: 1;
|
|
2192
|
+
};
|
|
2193
|
+
readonly type: {
|
|
2194
|
+
readonly description: "Type of field - defines how the field is displayed to the user.";
|
|
2195
|
+
readonly type: "string";
|
|
2196
|
+
readonly "meta:enum": {
|
|
2197
|
+
readonly type_unspecified: "for backwards compatibility, unspecified type of appearance";
|
|
2198
|
+
readonly text: "Freeform text field";
|
|
2199
|
+
readonly number: "Allows only numbers";
|
|
2200
|
+
readonly selectOne: "Select one item from a list of pre-defined options";
|
|
2201
|
+
readonly selectMultiple: "Select any number of items from a list of pre-defined options";
|
|
2202
|
+
};
|
|
2203
|
+
readonly enum: readonly ["type_unspecified", "text", "number", "selectOne", "selectMultiple", "UNRECOGNIZED"];
|
|
2204
|
+
};
|
|
2205
|
+
readonly label: {
|
|
2206
|
+
readonly description: "Default language label for the form field label";
|
|
2207
|
+
readonly type: "string";
|
|
2208
|
+
readonly minLength: 1;
|
|
2209
|
+
};
|
|
2210
|
+
readonly appearance: {
|
|
2211
|
+
readonly description: "For text fields, display as a single-line or multi-line field";
|
|
2212
|
+
readonly type: "string";
|
|
2213
|
+
readonly "meta:enum": {
|
|
2214
|
+
readonly appearance_unspecified: "for backwards compatibility, unspecified type of appearance";
|
|
2215
|
+
readonly singleline: "Text will be cut-off if more than one line";
|
|
2216
|
+
readonly multiline: "Text will wrap to multiple lines within text field";
|
|
2217
|
+
};
|
|
2218
|
+
readonly enum: readonly ["appearance_unspecified", "singleline", "multiline", "UNRECOGNIZED"];
|
|
2219
|
+
readonly default: "multiline";
|
|
2220
|
+
};
|
|
2221
|
+
readonly snakeCase: {
|
|
2222
|
+
readonly description: "Convert field value into snake_case (replace spaces with underscores and convert to lowercase)";
|
|
2223
|
+
readonly type: "boolean";
|
|
2224
|
+
readonly default: false;
|
|
2225
|
+
};
|
|
2226
|
+
readonly options: {
|
|
2227
|
+
readonly description: "List of options the user can select for single- or multi-select fields";
|
|
2228
|
+
readonly type: "array";
|
|
2229
|
+
readonly items: {
|
|
2230
|
+
readonly type: "object";
|
|
2231
|
+
readonly properties: {
|
|
2232
|
+
readonly label: {
|
|
2233
|
+
readonly type: "string";
|
|
2234
|
+
readonly minLength: 1;
|
|
2235
|
+
};
|
|
2236
|
+
readonly value: {
|
|
2237
|
+
readonly anyOf: readonly [{
|
|
2238
|
+
readonly type: "string";
|
|
2239
|
+
}, {
|
|
2240
|
+
readonly type: "boolean";
|
|
2241
|
+
}, {
|
|
2242
|
+
readonly type: "number";
|
|
2243
|
+
}, {
|
|
2244
|
+
readonly type: "null";
|
|
2245
|
+
}];
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
readonly required: readonly ["label", "value"];
|
|
2249
|
+
};
|
|
2250
|
+
};
|
|
2251
|
+
readonly universal: {
|
|
2252
|
+
readonly description: "If true, this field will appear in the Add Field list for all presets";
|
|
2253
|
+
readonly type: "boolean";
|
|
2254
|
+
readonly default: false;
|
|
2255
|
+
};
|
|
2256
|
+
readonly placeholder: {
|
|
2257
|
+
readonly description: "Displayed as a placeholder in an empty text or number field before the user begins typing. Use 'helperText' for important information, because the placeholder is not visible after the user has entered data.";
|
|
2258
|
+
readonly type: "string";
|
|
2259
|
+
};
|
|
2260
|
+
readonly helperText: {
|
|
2261
|
+
readonly description: "Additional context about the field, e.g. hints about how to answer the question.";
|
|
2262
|
+
readonly type: "string";
|
|
2263
|
+
};
|
|
1660
2264
|
};
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1752
|
-
name: "deleted";
|
|
1753
|
-
tableName: "icon";
|
|
1754
|
-
dataType: "boolean";
|
|
1755
|
-
columnType: "SQLiteBoolean";
|
|
1756
|
-
data: boolean;
|
|
1757
|
-
driverParam: number;
|
|
1758
|
-
notNull: true;
|
|
1759
|
-
hasDefault: false;
|
|
1760
|
-
enumValues: undefined;
|
|
1761
|
-
baseColumn: never;
|
|
1762
|
-
}, object>;
|
|
1763
|
-
readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1764
|
-
name: "name";
|
|
1765
|
-
tableName: "icon";
|
|
1766
|
-
dataType: "string";
|
|
1767
|
-
columnType: "SQLiteText";
|
|
1768
|
-
data: string;
|
|
1769
|
-
driverParam: string;
|
|
1770
|
-
notNull: true;
|
|
1771
|
-
hasDefault: false;
|
|
1772
|
-
enumValues: [string, ...string[]];
|
|
1773
|
-
baseColumn: never;
|
|
1774
|
-
}, object>;
|
|
1775
|
-
readonly variants: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1776
|
-
name: "variants";
|
|
1777
|
-
tableName: "icon";
|
|
1778
|
-
dataType: "custom";
|
|
1779
|
-
columnType: "SQLiteCustomColumn";
|
|
1780
|
-
data: ({
|
|
1781
|
-
mimeType: "image/png";
|
|
1782
|
-
size: import("@comapeo/schema/dist/schema/icon.js").Size;
|
|
1783
|
-
pixelDensity: 1 | 2 | 3;
|
|
1784
|
-
blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
|
|
1785
|
-
} | {
|
|
1786
|
-
size: import("@comapeo/schema/dist/schema/icon.js").Size;
|
|
1787
|
-
mimeType: "image/svg+xml";
|
|
1788
|
-
blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
|
|
1789
|
-
})[];
|
|
1790
|
-
driverParam: string;
|
|
1791
|
-
notNull: true;
|
|
1792
|
-
hasDefault: false;
|
|
1793
|
-
enumValues: undefined;
|
|
1794
|
-
baseColumn: never;
|
|
1795
|
-
}, object>;
|
|
1796
|
-
forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1797
|
-
name: "forks";
|
|
1798
|
-
tableName: "icon";
|
|
1799
|
-
dataType: "custom";
|
|
1800
|
-
columnType: "SQLiteCustomColumn";
|
|
1801
|
-
data: string[];
|
|
1802
|
-
driverParam: string;
|
|
1803
|
-
notNull: true;
|
|
1804
|
-
hasDefault: false;
|
|
1805
|
-
enumValues: undefined;
|
|
1806
|
-
baseColumn: never;
|
|
1807
|
-
}, object>;
|
|
2265
|
+
readonly required: readonly ["tagKey", "type", "label", "schemaName", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2266
|
+
readonly additionalProperties: false;
|
|
2267
|
+
}, "field", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
2268
|
+
export const coreOwnershipTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2269
|
+
schemaName: "coreOwnership";
|
|
2270
|
+
authCoreId: string;
|
|
2271
|
+
configCoreId: string;
|
|
2272
|
+
dataCoreId: string;
|
|
2273
|
+
blobCoreId: string;
|
|
2274
|
+
blobIndexCoreId: string;
|
|
2275
|
+
docId: string;
|
|
2276
|
+
versionId: string;
|
|
2277
|
+
originalVersionId: string;
|
|
2278
|
+
createdAt: string;
|
|
2279
|
+
updatedAt: string;
|
|
2280
|
+
links: string[];
|
|
2281
|
+
deleted: boolean;
|
|
2282
|
+
}, {
|
|
2283
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2284
|
+
readonly $id: "http://mapeo.world/schemas/coreOwnership/v1.json";
|
|
2285
|
+
readonly title: "CoreOwnership";
|
|
2286
|
+
readonly description: "Which cores belong to which identity key?";
|
|
2287
|
+
readonly type: "object";
|
|
2288
|
+
readonly properties: {
|
|
2289
|
+
readonly docId: {
|
|
2290
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
2291
|
+
readonly type: "string";
|
|
2292
|
+
readonly minLength: 1;
|
|
2293
|
+
};
|
|
2294
|
+
readonly versionId: {
|
|
2295
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2296
|
+
readonly type: "string";
|
|
2297
|
+
readonly minLength: 1;
|
|
2298
|
+
};
|
|
2299
|
+
readonly originalVersionId: {
|
|
2300
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
2301
|
+
readonly type: "string";
|
|
2302
|
+
readonly minLength: 1;
|
|
2303
|
+
};
|
|
2304
|
+
readonly schemaName: {
|
|
2305
|
+
readonly type: "string";
|
|
2306
|
+
readonly const: "coreOwnership";
|
|
2307
|
+
};
|
|
2308
|
+
readonly createdAt: {
|
|
2309
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
2310
|
+
readonly type: "string";
|
|
2311
|
+
readonly format: "date-time";
|
|
2312
|
+
};
|
|
2313
|
+
readonly updatedAt: {
|
|
2314
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
2315
|
+
readonly type: "string";
|
|
2316
|
+
readonly format: "date-time";
|
|
2317
|
+
};
|
|
2318
|
+
readonly links: {
|
|
2319
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2320
|
+
readonly type: "array";
|
|
2321
|
+
readonly uniqueItems: true;
|
|
2322
|
+
readonly items: {
|
|
2323
|
+
readonly type: "string";
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
readonly deleted: {
|
|
2327
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
2328
|
+
readonly type: "boolean";
|
|
2329
|
+
};
|
|
2330
|
+
readonly authCoreId: {
|
|
2331
|
+
readonly type: "string";
|
|
2332
|
+
readonly description: "Hex-encoded key of auth store writer core";
|
|
2333
|
+
readonly minLength: 1;
|
|
2334
|
+
};
|
|
2335
|
+
readonly configCoreId: {
|
|
2336
|
+
readonly type: "string";
|
|
2337
|
+
readonly description: "Hex-encoded key of config store writer core";
|
|
2338
|
+
readonly minLength: 1;
|
|
2339
|
+
};
|
|
2340
|
+
readonly dataCoreId: {
|
|
2341
|
+
readonly type: "string";
|
|
2342
|
+
readonly description: "Hex-encoded key of data store writer core";
|
|
2343
|
+
readonly minLength: 1;
|
|
2344
|
+
};
|
|
2345
|
+
readonly blobCoreId: {
|
|
2346
|
+
readonly type: "string";
|
|
2347
|
+
readonly description: "Hex-encoded key of blob store writer core";
|
|
2348
|
+
readonly minLength: 1;
|
|
2349
|
+
};
|
|
2350
|
+
readonly blobIndexCoreId: {
|
|
2351
|
+
readonly type: "string";
|
|
2352
|
+
readonly description: "Hex-encoded key of blobIndex store writer core";
|
|
2353
|
+
readonly minLength: 1;
|
|
2354
|
+
};
|
|
1808
2355
|
};
|
|
1809
|
-
|
|
1810
|
-
}>;
|
|
2356
|
+
readonly required: readonly ["schemaName", "authCoreId", "configCoreId", "dataCoreId", "blobCoreId", "blobIndexCoreId", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2357
|
+
}, "coreOwnership", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
2358
|
+
export const roleTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2359
|
+
schemaName: "role";
|
|
2360
|
+
roleId: string;
|
|
2361
|
+
fromIndex: number;
|
|
2362
|
+
docId: string;
|
|
2363
|
+
versionId: string;
|
|
2364
|
+
originalVersionId: string;
|
|
2365
|
+
createdAt: string;
|
|
2366
|
+
updatedAt: string;
|
|
2367
|
+
links: string[];
|
|
2368
|
+
deleted: boolean;
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2371
|
+
readonly $id: "http://mapeo.world/schemas/role/v1.json";
|
|
2372
|
+
readonly title: "Role";
|
|
2373
|
+
readonly type: "object";
|
|
2374
|
+
readonly properties: {
|
|
2375
|
+
readonly docId: {
|
|
2376
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
2377
|
+
readonly type: "string";
|
|
2378
|
+
readonly minLength: 1;
|
|
2379
|
+
};
|
|
2380
|
+
readonly versionId: {
|
|
2381
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2382
|
+
readonly type: "string";
|
|
2383
|
+
readonly minLength: 1;
|
|
2384
|
+
};
|
|
2385
|
+
readonly originalVersionId: {
|
|
2386
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
2387
|
+
readonly type: "string";
|
|
2388
|
+
readonly minLength: 1;
|
|
2389
|
+
};
|
|
2390
|
+
readonly schemaName: {
|
|
2391
|
+
readonly type: "string";
|
|
2392
|
+
readonly const: "role";
|
|
2393
|
+
};
|
|
2394
|
+
readonly createdAt: {
|
|
2395
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
2396
|
+
readonly type: "string";
|
|
2397
|
+
readonly format: "date-time";
|
|
2398
|
+
};
|
|
2399
|
+
readonly updatedAt: {
|
|
2400
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
2401
|
+
readonly type: "string";
|
|
2402
|
+
readonly format: "date-time";
|
|
2403
|
+
};
|
|
2404
|
+
readonly links: {
|
|
2405
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2406
|
+
readonly type: "array";
|
|
2407
|
+
readonly uniqueItems: true;
|
|
2408
|
+
readonly items: {
|
|
2409
|
+
readonly type: "string";
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
readonly deleted: {
|
|
2413
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
2414
|
+
readonly type: "boolean";
|
|
2415
|
+
};
|
|
2416
|
+
readonly roleId: {
|
|
2417
|
+
readonly type: "string";
|
|
2418
|
+
readonly description: "Unique identifier for role assigned to device with auth core ID equal to `docId` of this record";
|
|
2419
|
+
readonly minLength: 1;
|
|
2420
|
+
};
|
|
2421
|
+
readonly fromIndex: {
|
|
2422
|
+
readonly type: "integer";
|
|
2423
|
+
readonly minimum: 0;
|
|
2424
|
+
readonly description: "This is the index of the auth core that this role applies to (identified by the `docId`) to apply this role from. E.g. documents in the auth core assigned this role from this index will be evaluated according to this role.";
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
readonly required: readonly ["schemaName", "roleId", "fromIndex", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2428
|
+
readonly additionalProperties: false;
|
|
2429
|
+
}, "role", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
2430
|
+
export const deviceInfoTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2431
|
+
schemaName: "deviceInfo";
|
|
2432
|
+
name: string;
|
|
2433
|
+
deviceType: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED";
|
|
2434
|
+
selfHostedServerDetails?: {
|
|
2435
|
+
baseUrl: string;
|
|
2436
|
+
} | undefined;
|
|
2437
|
+
docId: string;
|
|
2438
|
+
versionId: string;
|
|
2439
|
+
originalVersionId: string;
|
|
2440
|
+
createdAt: string;
|
|
2441
|
+
updatedAt: string;
|
|
2442
|
+
links: string[];
|
|
2443
|
+
deleted: boolean;
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2446
|
+
readonly $id: "http://mapeo.world/schemas/deviceInfo/v1.json";
|
|
2447
|
+
readonly title: "DeviceInfo";
|
|
2448
|
+
readonly type: "object";
|
|
2449
|
+
readonly properties: {
|
|
2450
|
+
readonly docId: {
|
|
2451
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
2452
|
+
readonly type: "string";
|
|
2453
|
+
readonly minLength: 1;
|
|
2454
|
+
};
|
|
2455
|
+
readonly versionId: {
|
|
2456
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2457
|
+
readonly type: "string";
|
|
2458
|
+
readonly minLength: 1;
|
|
2459
|
+
};
|
|
2460
|
+
readonly originalVersionId: {
|
|
2461
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
2462
|
+
readonly type: "string";
|
|
2463
|
+
readonly minLength: 1;
|
|
2464
|
+
};
|
|
2465
|
+
readonly schemaName: {
|
|
2466
|
+
readonly type: "string";
|
|
2467
|
+
readonly const: "deviceInfo";
|
|
2468
|
+
};
|
|
2469
|
+
readonly createdAt: {
|
|
2470
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
2471
|
+
readonly type: "string";
|
|
2472
|
+
readonly format: "date-time";
|
|
2473
|
+
};
|
|
2474
|
+
readonly updatedAt: {
|
|
2475
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
2476
|
+
readonly type: "string";
|
|
2477
|
+
readonly format: "date-time";
|
|
2478
|
+
};
|
|
2479
|
+
readonly links: {
|
|
2480
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2481
|
+
readonly type: "array";
|
|
2482
|
+
readonly uniqueItems: true;
|
|
2483
|
+
readonly items: {
|
|
2484
|
+
readonly type: "string";
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
readonly deleted: {
|
|
2488
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
2489
|
+
readonly type: "boolean";
|
|
2490
|
+
};
|
|
2491
|
+
readonly name: {
|
|
2492
|
+
readonly type: "string";
|
|
2493
|
+
readonly description: "Name of the device";
|
|
2494
|
+
};
|
|
2495
|
+
readonly deviceType: {
|
|
2496
|
+
readonly type: "string";
|
|
2497
|
+
readonly enum: readonly ["device_type_unspecified", "mobile", "tablet", "desktop", "selfHostedServer", "UNRECOGNIZED"];
|
|
2498
|
+
readonly description: "Type of device";
|
|
2499
|
+
};
|
|
2500
|
+
readonly selfHostedServerDetails: {
|
|
2501
|
+
readonly type: "object";
|
|
2502
|
+
readonly properties: {
|
|
2503
|
+
readonly baseUrl: {
|
|
2504
|
+
readonly description: "base URL for the server";
|
|
2505
|
+
readonly type: "string";
|
|
2506
|
+
readonly minLength: 1;
|
|
2507
|
+
};
|
|
2508
|
+
};
|
|
2509
|
+
readonly required: readonly ["baseUrl"];
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
readonly required: readonly ["schemaName", "name", "deviceType", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2513
|
+
readonly additionalProperties: false;
|
|
2514
|
+
}, "deviceInfo", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
2515
|
+
export const iconTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
|
|
2516
|
+
schemaName: "icon";
|
|
2517
|
+
name: string;
|
|
2518
|
+
variants: ({
|
|
2519
|
+
mimeType: "image/png";
|
|
2520
|
+
size: import("@comapeo/schema/dist/schema/icon.js").Size;
|
|
2521
|
+
pixelDensity: 1 | 2 | 3;
|
|
2522
|
+
blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
|
|
2523
|
+
} | {
|
|
2524
|
+
size: import("@comapeo/schema/dist/schema/icon.js").Size;
|
|
2525
|
+
mimeType: "image/svg+xml";
|
|
2526
|
+
blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
|
|
2527
|
+
})[];
|
|
2528
|
+
docId: string;
|
|
2529
|
+
versionId: string;
|
|
2530
|
+
originalVersionId: string;
|
|
2531
|
+
createdAt: string;
|
|
2532
|
+
updatedAt: string;
|
|
2533
|
+
links: string[];
|
|
2534
|
+
deleted: boolean;
|
|
2535
|
+
}, {
|
|
2536
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
2537
|
+
readonly $id: "http://mapeo.world/schemas/icon/v1.json";
|
|
2538
|
+
readonly title: "Icon";
|
|
2539
|
+
readonly description: "An Icon represents metadata to retrieve an Icon blob";
|
|
2540
|
+
readonly type: "object";
|
|
2541
|
+
readonly properties: {
|
|
2542
|
+
readonly docId: {
|
|
2543
|
+
readonly description: "Hex-encoded 32-byte buffer";
|
|
2544
|
+
readonly type: "string";
|
|
2545
|
+
readonly minLength: 1;
|
|
2546
|
+
};
|
|
2547
|
+
readonly versionId: {
|
|
2548
|
+
readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
|
|
2549
|
+
readonly type: "string";
|
|
2550
|
+
readonly minLength: 1;
|
|
2551
|
+
};
|
|
2552
|
+
readonly originalVersionId: {
|
|
2553
|
+
readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
|
|
2554
|
+
readonly type: "string";
|
|
2555
|
+
readonly minLength: 1;
|
|
2556
|
+
};
|
|
2557
|
+
readonly schemaName: {
|
|
2558
|
+
readonly description: "Must be `icon`";
|
|
2559
|
+
readonly type: "string";
|
|
2560
|
+
readonly const: "icon";
|
|
2561
|
+
};
|
|
2562
|
+
readonly createdAt: {
|
|
2563
|
+
readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
|
|
2564
|
+
readonly type: "string";
|
|
2565
|
+
readonly format: "date-time";
|
|
2566
|
+
};
|
|
2567
|
+
readonly updatedAt: {
|
|
2568
|
+
readonly description: "RFC3339-formatted datetime of when this version of the element was created";
|
|
2569
|
+
readonly type: "string";
|
|
2570
|
+
readonly format: "date-time";
|
|
2571
|
+
};
|
|
2572
|
+
readonly links: {
|
|
2573
|
+
readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2574
|
+
readonly type: "array";
|
|
2575
|
+
readonly uniqueItems: true;
|
|
2576
|
+
readonly items: {
|
|
2577
|
+
readonly type: "string";
|
|
2578
|
+
};
|
|
2579
|
+
};
|
|
2580
|
+
readonly deleted: {
|
|
2581
|
+
readonly description: "Indicates whether the document has been deleted";
|
|
2582
|
+
readonly type: "boolean";
|
|
2583
|
+
};
|
|
2584
|
+
readonly name: {
|
|
2585
|
+
readonly type: "string";
|
|
2586
|
+
readonly minLength: 1;
|
|
2587
|
+
};
|
|
2588
|
+
readonly variants: {
|
|
2589
|
+
readonly type: "array";
|
|
2590
|
+
readonly items: {
|
|
2591
|
+
readonly type: "object";
|
|
2592
|
+
readonly oneOf: readonly [{
|
|
2593
|
+
readonly type: "object";
|
|
2594
|
+
readonly properties: {
|
|
2595
|
+
readonly mimeType: {
|
|
2596
|
+
readonly type: "string";
|
|
2597
|
+
readonly const: "image/png";
|
|
2598
|
+
};
|
|
2599
|
+
readonly size: {
|
|
2600
|
+
readonly type: "string";
|
|
2601
|
+
readonly enum: readonly ["size_unspecified", "small", "medium", "large"];
|
|
2602
|
+
};
|
|
2603
|
+
readonly pixelDensity: {
|
|
2604
|
+
readonly type: "number";
|
|
2605
|
+
readonly enum: readonly [1, 2, 3];
|
|
2606
|
+
};
|
|
2607
|
+
readonly blobVersionId: {
|
|
2608
|
+
readonly description: "Version id of the icon blob. Each id is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2609
|
+
readonly type: "string";
|
|
2610
|
+
readonly minLength: 1;
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2613
|
+
readonly required: readonly ["size", "pixelDensity", "blobVersionId", "mimeType"];
|
|
2614
|
+
}, {
|
|
2615
|
+
readonly type: "object";
|
|
2616
|
+
readonly properties: {
|
|
2617
|
+
readonly size: {
|
|
2618
|
+
readonly type: "string";
|
|
2619
|
+
readonly enum: readonly ["size_unspecified", "small", "medium", "large"];
|
|
2620
|
+
};
|
|
2621
|
+
readonly mimeType: {
|
|
2622
|
+
readonly type: "string";
|
|
2623
|
+
readonly const: "image/svg+xml";
|
|
2624
|
+
};
|
|
2625
|
+
readonly blobVersionId: {
|
|
2626
|
+
readonly description: "Version id of the icon blob. Each id is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
|
|
2627
|
+
readonly type: "string";
|
|
2628
|
+
readonly minLength: 1;
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
readonly required: readonly ["size", "blobVersionId", "mimeType"];
|
|
2632
|
+
}];
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
readonly required: readonly ["schemaName", "name", "variants", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
|
|
2637
|
+
readonly additionalProperties: false;
|
|
2638
|
+
}, "icon", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
|
|
1811
2639
|
export const translationBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
1812
2640
|
name: string;
|
|
1813
2641
|
schema: undefined;
|
|
1814
2642
|
columns: {
|
|
1815
2643
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1816
|
-
name:
|
|
2644
|
+
name: string;
|
|
1817
2645
|
tableName: string;
|
|
1818
2646
|
dataType: "string";
|
|
1819
|
-
columnType: "SQLiteText";
|
|
1820
2647
|
data: string;
|
|
1821
2648
|
driverParam: string;
|
|
1822
2649
|
notNull: true;
|
|
1823
2650
|
hasDefault: false;
|
|
2651
|
+
isPrimaryKey: true;
|
|
2652
|
+
isAutoincrement: false;
|
|
2653
|
+
hasRuntimeDefault: false;
|
|
1824
2654
|
enumValues: [string, ...string[]];
|
|
1825
2655
|
baseColumn: never;
|
|
1826
|
-
|
|
2656
|
+
identity: undefined;
|
|
2657
|
+
generated: undefined;
|
|
2658
|
+
}, {}>;
|
|
1827
2659
|
};
|
|
1828
2660
|
dialect: "sqlite";
|
|
1829
2661
|
}>;
|
|
@@ -1832,17 +2664,21 @@ export const observationBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteT
|
|
|
1832
2664
|
schema: undefined;
|
|
1833
2665
|
columns: {
|
|
1834
2666
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1835
|
-
name:
|
|
2667
|
+
name: string;
|
|
1836
2668
|
tableName: string;
|
|
1837
2669
|
dataType: "string";
|
|
1838
|
-
columnType: "SQLiteText";
|
|
1839
2670
|
data: string;
|
|
1840
2671
|
driverParam: string;
|
|
1841
2672
|
notNull: true;
|
|
1842
2673
|
hasDefault: false;
|
|
2674
|
+
isPrimaryKey: true;
|
|
2675
|
+
isAutoincrement: false;
|
|
2676
|
+
hasRuntimeDefault: false;
|
|
1843
2677
|
enumValues: [string, ...string[]];
|
|
1844
2678
|
baseColumn: never;
|
|
1845
|
-
|
|
2679
|
+
identity: undefined;
|
|
2680
|
+
generated: undefined;
|
|
2681
|
+
}, {}>;
|
|
1846
2682
|
};
|
|
1847
2683
|
dialect: "sqlite";
|
|
1848
2684
|
}>;
|
|
@@ -1851,17 +2687,21 @@ export const trackBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
1851
2687
|
schema: undefined;
|
|
1852
2688
|
columns: {
|
|
1853
2689
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1854
|
-
name:
|
|
2690
|
+
name: string;
|
|
1855
2691
|
tableName: string;
|
|
1856
2692
|
dataType: "string";
|
|
1857
|
-
columnType: "SQLiteText";
|
|
1858
2693
|
data: string;
|
|
1859
2694
|
driverParam: string;
|
|
1860
2695
|
notNull: true;
|
|
1861
2696
|
hasDefault: false;
|
|
2697
|
+
isPrimaryKey: true;
|
|
2698
|
+
isAutoincrement: false;
|
|
2699
|
+
hasRuntimeDefault: false;
|
|
1862
2700
|
enumValues: [string, ...string[]];
|
|
1863
2701
|
baseColumn: never;
|
|
1864
|
-
|
|
2702
|
+
identity: undefined;
|
|
2703
|
+
generated: undefined;
|
|
2704
|
+
}, {}>;
|
|
1865
2705
|
};
|
|
1866
2706
|
dialect: "sqlite";
|
|
1867
2707
|
}>;
|
|
@@ -1870,17 +2710,21 @@ export const remoteDetectionAlertBacklinkTable: import("drizzle-orm/sqlite-core"
|
|
|
1870
2710
|
schema: undefined;
|
|
1871
2711
|
columns: {
|
|
1872
2712
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1873
|
-
name:
|
|
2713
|
+
name: string;
|
|
1874
2714
|
tableName: string;
|
|
1875
2715
|
dataType: "string";
|
|
1876
|
-
columnType: "SQLiteText";
|
|
1877
2716
|
data: string;
|
|
1878
2717
|
driverParam: string;
|
|
1879
2718
|
notNull: true;
|
|
1880
2719
|
hasDefault: false;
|
|
2720
|
+
isPrimaryKey: true;
|
|
2721
|
+
isAutoincrement: false;
|
|
2722
|
+
hasRuntimeDefault: false;
|
|
1881
2723
|
enumValues: [string, ...string[]];
|
|
1882
2724
|
baseColumn: never;
|
|
1883
|
-
|
|
2725
|
+
identity: undefined;
|
|
2726
|
+
generated: undefined;
|
|
2727
|
+
}, {}>;
|
|
1884
2728
|
};
|
|
1885
2729
|
dialect: "sqlite";
|
|
1886
2730
|
}>;
|
|
@@ -1889,17 +2733,21 @@ export const presetBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableW
|
|
|
1889
2733
|
schema: undefined;
|
|
1890
2734
|
columns: {
|
|
1891
2735
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1892
|
-
name:
|
|
2736
|
+
name: string;
|
|
1893
2737
|
tableName: string;
|
|
1894
2738
|
dataType: "string";
|
|
1895
|
-
columnType: "SQLiteText";
|
|
1896
2739
|
data: string;
|
|
1897
2740
|
driverParam: string;
|
|
1898
2741
|
notNull: true;
|
|
1899
2742
|
hasDefault: false;
|
|
2743
|
+
isPrimaryKey: true;
|
|
2744
|
+
isAutoincrement: false;
|
|
2745
|
+
hasRuntimeDefault: false;
|
|
1900
2746
|
enumValues: [string, ...string[]];
|
|
1901
2747
|
baseColumn: never;
|
|
1902
|
-
|
|
2748
|
+
identity: undefined;
|
|
2749
|
+
generated: undefined;
|
|
2750
|
+
}, {}>;
|
|
1903
2751
|
};
|
|
1904
2752
|
dialect: "sqlite";
|
|
1905
2753
|
}>;
|
|
@@ -1908,17 +2756,21 @@ export const fieldBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
1908
2756
|
schema: undefined;
|
|
1909
2757
|
columns: {
|
|
1910
2758
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1911
|
-
name:
|
|
2759
|
+
name: string;
|
|
1912
2760
|
tableName: string;
|
|
1913
2761
|
dataType: "string";
|
|
1914
|
-
columnType: "SQLiteText";
|
|
1915
2762
|
data: string;
|
|
1916
2763
|
driverParam: string;
|
|
1917
2764
|
notNull: true;
|
|
1918
2765
|
hasDefault: false;
|
|
2766
|
+
isPrimaryKey: true;
|
|
2767
|
+
isAutoincrement: false;
|
|
2768
|
+
hasRuntimeDefault: false;
|
|
1919
2769
|
enumValues: [string, ...string[]];
|
|
1920
2770
|
baseColumn: never;
|
|
1921
|
-
|
|
2771
|
+
identity: undefined;
|
|
2772
|
+
generated: undefined;
|
|
2773
|
+
}, {}>;
|
|
1922
2774
|
};
|
|
1923
2775
|
dialect: "sqlite";
|
|
1924
2776
|
}>;
|
|
@@ -1927,17 +2779,21 @@ export const coreOwnershipBacklinkTable: import("drizzle-orm/sqlite-core").SQLit
|
|
|
1927
2779
|
schema: undefined;
|
|
1928
2780
|
columns: {
|
|
1929
2781
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1930
|
-
name:
|
|
2782
|
+
name: string;
|
|
1931
2783
|
tableName: string;
|
|
1932
2784
|
dataType: "string";
|
|
1933
|
-
columnType: "SQLiteText";
|
|
1934
2785
|
data: string;
|
|
1935
2786
|
driverParam: string;
|
|
1936
2787
|
notNull: true;
|
|
1937
2788
|
hasDefault: false;
|
|
2789
|
+
isPrimaryKey: true;
|
|
2790
|
+
isAutoincrement: false;
|
|
2791
|
+
hasRuntimeDefault: false;
|
|
1938
2792
|
enumValues: [string, ...string[]];
|
|
1939
2793
|
baseColumn: never;
|
|
1940
|
-
|
|
2794
|
+
identity: undefined;
|
|
2795
|
+
generated: undefined;
|
|
2796
|
+
}, {}>;
|
|
1941
2797
|
};
|
|
1942
2798
|
dialect: "sqlite";
|
|
1943
2799
|
}>;
|
|
@@ -1946,17 +2802,21 @@ export const roleBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWit
|
|
|
1946
2802
|
schema: undefined;
|
|
1947
2803
|
columns: {
|
|
1948
2804
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1949
|
-
name:
|
|
2805
|
+
name: string;
|
|
1950
2806
|
tableName: string;
|
|
1951
2807
|
dataType: "string";
|
|
1952
|
-
columnType: "SQLiteText";
|
|
1953
2808
|
data: string;
|
|
1954
2809
|
driverParam: string;
|
|
1955
2810
|
notNull: true;
|
|
1956
2811
|
hasDefault: false;
|
|
2812
|
+
isPrimaryKey: true;
|
|
2813
|
+
isAutoincrement: false;
|
|
2814
|
+
hasRuntimeDefault: false;
|
|
1957
2815
|
enumValues: [string, ...string[]];
|
|
1958
2816
|
baseColumn: never;
|
|
1959
|
-
|
|
2817
|
+
identity: undefined;
|
|
2818
|
+
generated: undefined;
|
|
2819
|
+
}, {}>;
|
|
1960
2820
|
};
|
|
1961
2821
|
dialect: "sqlite";
|
|
1962
2822
|
}>;
|
|
@@ -1965,17 +2825,21 @@ export const deviceInfoBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTa
|
|
|
1965
2825
|
schema: undefined;
|
|
1966
2826
|
columns: {
|
|
1967
2827
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1968
|
-
name:
|
|
2828
|
+
name: string;
|
|
1969
2829
|
tableName: string;
|
|
1970
2830
|
dataType: "string";
|
|
1971
|
-
columnType: "SQLiteText";
|
|
1972
2831
|
data: string;
|
|
1973
2832
|
driverParam: string;
|
|
1974
2833
|
notNull: true;
|
|
1975
2834
|
hasDefault: false;
|
|
2835
|
+
isPrimaryKey: true;
|
|
2836
|
+
isAutoincrement: false;
|
|
2837
|
+
hasRuntimeDefault: false;
|
|
1976
2838
|
enumValues: [string, ...string[]];
|
|
1977
2839
|
baseColumn: never;
|
|
1978
|
-
|
|
2840
|
+
identity: undefined;
|
|
2841
|
+
generated: undefined;
|
|
2842
|
+
}, {}>;
|
|
1979
2843
|
};
|
|
1980
2844
|
dialect: "sqlite";
|
|
1981
2845
|
}>;
|
|
@@ -1984,17 +2848,21 @@ export const iconBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWit
|
|
|
1984
2848
|
schema: undefined;
|
|
1985
2849
|
columns: {
|
|
1986
2850
|
versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1987
|
-
name:
|
|
2851
|
+
name: string;
|
|
1988
2852
|
tableName: string;
|
|
1989
2853
|
dataType: "string";
|
|
1990
|
-
columnType: "SQLiteText";
|
|
1991
2854
|
data: string;
|
|
1992
2855
|
driverParam: string;
|
|
1993
2856
|
notNull: true;
|
|
1994
2857
|
hasDefault: false;
|
|
2858
|
+
isPrimaryKey: true;
|
|
2859
|
+
isAutoincrement: false;
|
|
2860
|
+
hasRuntimeDefault: false;
|
|
1995
2861
|
enumValues: [string, ...string[]];
|
|
1996
2862
|
baseColumn: never;
|
|
1997
|
-
|
|
2863
|
+
identity: undefined;
|
|
2864
|
+
generated: undefined;
|
|
2865
|
+
}, {}>;
|
|
1998
2866
|
};
|
|
1999
2867
|
dialect: "sqlite";
|
|
2000
2868
|
}>;
|
|
@@ -2003,29 +2871,37 @@ export const coresTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
|
|
|
2003
2871
|
schema: undefined;
|
|
2004
2872
|
columns: {
|
|
2005
2873
|
publicKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2006
|
-
name:
|
|
2874
|
+
name: string;
|
|
2007
2875
|
tableName: "cores";
|
|
2008
|
-
dataType: "buffer";
|
|
2009
|
-
columnType: "SQLiteBlobBuffer";
|
|
2876
|
+
dataType: "object buffer";
|
|
2010
2877
|
data: Buffer;
|
|
2011
2878
|
driverParam: Buffer;
|
|
2012
2879
|
notNull: true;
|
|
2013
2880
|
hasDefault: false;
|
|
2881
|
+
isPrimaryKey: false;
|
|
2882
|
+
isAutoincrement: false;
|
|
2883
|
+
hasRuntimeDefault: false;
|
|
2014
2884
|
enumValues: undefined;
|
|
2015
2885
|
baseColumn: never;
|
|
2016
|
-
|
|
2886
|
+
identity: undefined;
|
|
2887
|
+
generated: undefined;
|
|
2888
|
+
}, {}>;
|
|
2017
2889
|
namespace: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2018
|
-
name:
|
|
2890
|
+
name: string;
|
|
2019
2891
|
tableName: "cores";
|
|
2020
|
-
dataType: "string";
|
|
2021
|
-
columnType: "SQLiteText";
|
|
2892
|
+
dataType: "string enum";
|
|
2022
2893
|
data: "auth" | "config" | "data" | "blobIndex" | "blob";
|
|
2023
2894
|
driverParam: string;
|
|
2024
2895
|
notNull: true;
|
|
2025
2896
|
hasDefault: false;
|
|
2897
|
+
isPrimaryKey: false;
|
|
2898
|
+
isAutoincrement: false;
|
|
2899
|
+
hasRuntimeDefault: false;
|
|
2026
2900
|
enumValues: ["auth", "config", "data", "blobIndex", "blob"];
|
|
2027
2901
|
baseColumn: never;
|
|
2028
|
-
|
|
2902
|
+
identity: undefined;
|
|
2903
|
+
generated: undefined;
|
|
2904
|
+
}, {}>;
|
|
2029
2905
|
};
|
|
2030
2906
|
dialect: "sqlite";
|
|
2031
2907
|
}>;
|