@comapeo/core-react 0.1.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.
@@ -0,0 +1,1492 @@
1
+ import type { MapeoProjectApi } from '@comapeo/ipc';
2
+ import type { MapeoDoc } from '@comapeo/schema';
3
+ export type DocumentType = Extract<MapeoDoc['schemaName'], 'field' | 'observation' | 'preset' | 'track' | 'remoteDetectionAlert'>;
4
+ export declare function getDocumentsQueryKey<D extends DocumentType>({ projectId, docType, }: {
5
+ projectId: string;
6
+ docType: D;
7
+ }): readonly ["@comapeo/core-react", "projects", string, D];
8
+ export declare function getManyDocumentsQueryKey<D extends DocumentType>({ projectId, docType, opts, }: {
9
+ projectId: string;
10
+ docType: D;
11
+ opts?: Parameters<MapeoProjectApi[D]['getMany']>[0];
12
+ }): readonly ["@comapeo/core-react", "projects", string, D, Parameters<import("rpc-reflector/lib/types").ClientApi<import("@comapeo/core/dist/mapeo-project").MapeoProject>[D]["getMany"]>[0] | undefined];
13
+ export declare function getDocumentByDocIdQueryKey<D extends DocumentType>({ projectId, docType, docId, opts, }: {
14
+ projectId: string;
15
+ docType: D;
16
+ docId: Parameters<MapeoProjectApi[D]['getByDocId']>[0];
17
+ opts?: Parameters<MapeoProjectApi[D]['getByDocId']>[1];
18
+ }): readonly ["@comapeo/core-react", "projects", string, D, Parameters<import("rpc-reflector/lib/types").ClientApi<import("@comapeo/core/dist/mapeo-project").MapeoProject>[D]["getByDocId"]>[0], Parameters<import("rpc-reflector/lib/types").ClientApi<import("@comapeo/core/dist/mapeo-project").MapeoProject>[D]["getByDocId"]>[1] | undefined];
19
+ export declare function getDocumentByVersionIdQueryKey<D extends DocumentType>({ projectId, docType, versionId, opts, }: {
20
+ projectId: string;
21
+ docType: D;
22
+ versionId: Parameters<MapeoProjectApi[D]['getByVersionId']>[0];
23
+ opts?: Parameters<MapeoProjectApi[D]['getByVersionId']>[1];
24
+ }): readonly ["@comapeo/core-react", "projects", string, D, Parameters<import("rpc-reflector/lib/types").ClientApi<import("@comapeo/core/dist/mapeo-project").MapeoProject>[D]["getByVersionId"]>[0], Parameters<import("rpc-reflector/lib/types").ClientApi<import("@comapeo/core/dist/mapeo-project").MapeoProject>[D]["getByVersionId"]>[1] | undefined];
25
+ export declare function documentsQueryOptions<D extends DocumentType>({ projectApi, projectId, docType, opts, }: {
26
+ projectApi: MapeoProjectApi;
27
+ projectId: string;
28
+ docType: D;
29
+ opts?: Parameters<MapeoProjectApi[D]['getMany']>[0];
30
+ }): import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<({
31
+ schemaName: "track";
32
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
33
+ observationRefs: {
34
+ docId: string;
35
+ versionId: string;
36
+ }[];
37
+ tags: {
38
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
39
+ };
40
+ docId: string;
41
+ versionId: string;
42
+ originalVersionId: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ links: string[];
46
+ deleted: boolean;
47
+ } & {
48
+ forks: string[];
49
+ })[] | ({
50
+ schemaName: "remoteDetectionAlert";
51
+ detectionDateStart: string;
52
+ detectionDateEnd: string;
53
+ sourceId: string;
54
+ metadata: {
55
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
56
+ };
57
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
58
+ docId: string;
59
+ versionId: string;
60
+ originalVersionId: string;
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ links: string[];
64
+ deleted: boolean;
65
+ } & {
66
+ forks: string[];
67
+ })[] | ({
68
+ schemaName: "preset";
69
+ name: string;
70
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
71
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
72
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
73
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
74
+ fieldRefs: {
75
+ docId: string;
76
+ versionId: string;
77
+ }[];
78
+ iconRef?: {
79
+ docId: string;
80
+ versionId: string;
81
+ } | undefined;
82
+ terms: string[];
83
+ color?: string | undefined;
84
+ docId: string;
85
+ versionId: string;
86
+ originalVersionId: string;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ links: string[];
90
+ deleted: boolean;
91
+ } & {
92
+ forks: string[];
93
+ })[] | ({
94
+ schemaName: "observation";
95
+ lat?: number | undefined;
96
+ lon?: number | undefined;
97
+ attachments: {
98
+ driveDiscoveryId: string;
99
+ name: string;
100
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
101
+ hash: string;
102
+ }[];
103
+ tags: {
104
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
105
+ };
106
+ metadata?: {
107
+ manualLocation?: boolean;
108
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
109
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
110
+ positionProvider?: {
111
+ gpsAvailable?: boolean;
112
+ passiveAvailable?: boolean;
113
+ locationServicesEnabled: boolean;
114
+ networkAvailable?: boolean;
115
+ };
116
+ } | undefined;
117
+ presetRef?: {
118
+ docId: string;
119
+ versionId: string;
120
+ } | undefined;
121
+ docId: string;
122
+ versionId: string;
123
+ originalVersionId: string;
124
+ createdAt: string;
125
+ updatedAt: string;
126
+ links: string[];
127
+ deleted: boolean;
128
+ } & {
129
+ forks: string[];
130
+ })[] | ({
131
+ schemaName: "field";
132
+ tagKey: string;
133
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
134
+ label: string;
135
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
136
+ snakeCase?: boolean | undefined;
137
+ options?: {
138
+ label: string;
139
+ value: string | boolean | number | null;
140
+ }[] | undefined;
141
+ universal?: boolean | undefined;
142
+ placeholder?: string | undefined;
143
+ helperText?: string | undefined;
144
+ docId: string;
145
+ versionId: string;
146
+ originalVersionId: string;
147
+ createdAt: string;
148
+ updatedAt: string;
149
+ links: string[];
150
+ deleted: boolean;
151
+ } & {
152
+ forks: string[];
153
+ })[], Error, ({
154
+ schemaName: "track";
155
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
156
+ observationRefs: {
157
+ docId: string;
158
+ versionId: string;
159
+ }[];
160
+ tags: {
161
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
162
+ };
163
+ docId: string;
164
+ versionId: string;
165
+ originalVersionId: string;
166
+ createdAt: string;
167
+ updatedAt: string;
168
+ links: string[];
169
+ deleted: boolean;
170
+ } & {
171
+ forks: string[];
172
+ })[] | ({
173
+ schemaName: "remoteDetectionAlert";
174
+ detectionDateStart: string;
175
+ detectionDateEnd: string;
176
+ sourceId: string;
177
+ metadata: {
178
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
179
+ };
180
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
181
+ docId: string;
182
+ versionId: string;
183
+ originalVersionId: string;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ links: string[];
187
+ deleted: boolean;
188
+ } & {
189
+ forks: string[];
190
+ })[] | ({
191
+ schemaName: "preset";
192
+ name: string;
193
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
194
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
195
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
196
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
197
+ fieldRefs: {
198
+ docId: string;
199
+ versionId: string;
200
+ }[];
201
+ iconRef?: {
202
+ docId: string;
203
+ versionId: string;
204
+ } | undefined;
205
+ terms: string[];
206
+ color?: string | undefined;
207
+ docId: string;
208
+ versionId: string;
209
+ originalVersionId: string;
210
+ createdAt: string;
211
+ updatedAt: string;
212
+ links: string[];
213
+ deleted: boolean;
214
+ } & {
215
+ forks: string[];
216
+ })[] | ({
217
+ schemaName: "observation";
218
+ lat?: number | undefined;
219
+ lon?: number | undefined;
220
+ attachments: {
221
+ driveDiscoveryId: string;
222
+ name: string;
223
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
224
+ hash: string;
225
+ }[];
226
+ tags: {
227
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
228
+ };
229
+ metadata?: {
230
+ manualLocation?: boolean;
231
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
232
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
233
+ positionProvider?: {
234
+ gpsAvailable?: boolean;
235
+ passiveAvailable?: boolean;
236
+ locationServicesEnabled: boolean;
237
+ networkAvailable?: boolean;
238
+ };
239
+ } | undefined;
240
+ presetRef?: {
241
+ docId: string;
242
+ versionId: string;
243
+ } | undefined;
244
+ docId: string;
245
+ versionId: string;
246
+ originalVersionId: string;
247
+ createdAt: string;
248
+ updatedAt: string;
249
+ links: string[];
250
+ deleted: boolean;
251
+ } & {
252
+ forks: string[];
253
+ })[] | ({
254
+ schemaName: "field";
255
+ tagKey: string;
256
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
257
+ label: string;
258
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
259
+ snakeCase?: boolean | undefined;
260
+ options?: {
261
+ label: string;
262
+ value: string | boolean | number | null;
263
+ }[] | undefined;
264
+ universal?: boolean | undefined;
265
+ placeholder?: string | undefined;
266
+ helperText?: string | undefined;
267
+ docId: string;
268
+ versionId: string;
269
+ originalVersionId: string;
270
+ createdAt: string;
271
+ updatedAt: string;
272
+ links: string[];
273
+ deleted: boolean;
274
+ } & {
275
+ forks: string[];
276
+ })[], import("@tanstack/query-core").QueryKey>, "queryFn"> & {
277
+ queryFn?: import("@tanstack/query-core").QueryFunction<({
278
+ schemaName: "track";
279
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
280
+ observationRefs: {
281
+ docId: string;
282
+ versionId: string;
283
+ }[];
284
+ tags: {
285
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
286
+ };
287
+ docId: string;
288
+ versionId: string;
289
+ originalVersionId: string;
290
+ createdAt: string;
291
+ updatedAt: string;
292
+ links: string[];
293
+ deleted: boolean;
294
+ } & {
295
+ forks: string[];
296
+ })[] | ({
297
+ schemaName: "remoteDetectionAlert";
298
+ detectionDateStart: string;
299
+ detectionDateEnd: string;
300
+ sourceId: string;
301
+ metadata: {
302
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
303
+ };
304
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
305
+ docId: string;
306
+ versionId: string;
307
+ originalVersionId: string;
308
+ createdAt: string;
309
+ updatedAt: string;
310
+ links: string[];
311
+ deleted: boolean;
312
+ } & {
313
+ forks: string[];
314
+ })[] | ({
315
+ schemaName: "preset";
316
+ name: string;
317
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
318
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
319
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
320
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
321
+ fieldRefs: {
322
+ docId: string;
323
+ versionId: string;
324
+ }[];
325
+ iconRef?: {
326
+ docId: string;
327
+ versionId: string;
328
+ } | undefined;
329
+ terms: string[];
330
+ color?: string | undefined;
331
+ docId: string;
332
+ versionId: string;
333
+ originalVersionId: string;
334
+ createdAt: string;
335
+ updatedAt: string;
336
+ links: string[];
337
+ deleted: boolean;
338
+ } & {
339
+ forks: string[];
340
+ })[] | ({
341
+ schemaName: "observation";
342
+ lat?: number | undefined;
343
+ lon?: number | undefined;
344
+ attachments: {
345
+ driveDiscoveryId: string;
346
+ name: string;
347
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
348
+ hash: string;
349
+ }[];
350
+ tags: {
351
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
352
+ };
353
+ metadata?: {
354
+ manualLocation?: boolean;
355
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
356
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
357
+ positionProvider?: {
358
+ gpsAvailable?: boolean;
359
+ passiveAvailable?: boolean;
360
+ locationServicesEnabled: boolean;
361
+ networkAvailable?: boolean;
362
+ };
363
+ } | undefined;
364
+ presetRef?: {
365
+ docId: string;
366
+ versionId: string;
367
+ } | undefined;
368
+ docId: string;
369
+ versionId: string;
370
+ originalVersionId: string;
371
+ createdAt: string;
372
+ updatedAt: string;
373
+ links: string[];
374
+ deleted: boolean;
375
+ } & {
376
+ forks: string[];
377
+ })[] | ({
378
+ schemaName: "field";
379
+ tagKey: string;
380
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
381
+ label: string;
382
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
383
+ snakeCase?: boolean | undefined;
384
+ options?: {
385
+ label: string;
386
+ value: string | boolean | number | null;
387
+ }[] | undefined;
388
+ universal?: boolean | undefined;
389
+ placeholder?: string | undefined;
390
+ helperText?: string | undefined;
391
+ docId: string;
392
+ versionId: string;
393
+ originalVersionId: string;
394
+ createdAt: string;
395
+ updatedAt: string;
396
+ links: string[];
397
+ deleted: boolean;
398
+ } & {
399
+ forks: string[];
400
+ })[], import("@tanstack/query-core").QueryKey, never> | undefined;
401
+ } & {
402
+ queryKey: import("@tanstack/query-core").DataTag<import("@tanstack/query-core").QueryKey, ({
403
+ schemaName: "track";
404
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
405
+ observationRefs: {
406
+ docId: string;
407
+ versionId: string;
408
+ }[];
409
+ tags: {
410
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
411
+ };
412
+ docId: string;
413
+ versionId: string;
414
+ originalVersionId: string;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ links: string[];
418
+ deleted: boolean;
419
+ } & {
420
+ forks: string[];
421
+ })[] | ({
422
+ schemaName: "remoteDetectionAlert";
423
+ detectionDateStart: string;
424
+ detectionDateEnd: string;
425
+ sourceId: string;
426
+ metadata: {
427
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
428
+ };
429
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
430
+ docId: string;
431
+ versionId: string;
432
+ originalVersionId: string;
433
+ createdAt: string;
434
+ updatedAt: string;
435
+ links: string[];
436
+ deleted: boolean;
437
+ } & {
438
+ forks: string[];
439
+ })[] | ({
440
+ schemaName: "preset";
441
+ name: string;
442
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
443
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
444
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
445
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
446
+ fieldRefs: {
447
+ docId: string;
448
+ versionId: string;
449
+ }[];
450
+ iconRef?: {
451
+ docId: string;
452
+ versionId: string;
453
+ } | undefined;
454
+ terms: string[];
455
+ color?: string | undefined;
456
+ docId: string;
457
+ versionId: string;
458
+ originalVersionId: string;
459
+ createdAt: string;
460
+ updatedAt: string;
461
+ links: string[];
462
+ deleted: boolean;
463
+ } & {
464
+ forks: string[];
465
+ })[] | ({
466
+ schemaName: "observation";
467
+ lat?: number | undefined;
468
+ lon?: number | undefined;
469
+ attachments: {
470
+ driveDiscoveryId: string;
471
+ name: string;
472
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
473
+ hash: string;
474
+ }[];
475
+ tags: {
476
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
477
+ };
478
+ metadata?: {
479
+ manualLocation?: boolean;
480
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
481
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
482
+ positionProvider?: {
483
+ gpsAvailable?: boolean;
484
+ passiveAvailable?: boolean;
485
+ locationServicesEnabled: boolean;
486
+ networkAvailable?: boolean;
487
+ };
488
+ } | undefined;
489
+ presetRef?: {
490
+ docId: string;
491
+ versionId: string;
492
+ } | undefined;
493
+ docId: string;
494
+ versionId: string;
495
+ originalVersionId: string;
496
+ createdAt: string;
497
+ updatedAt: string;
498
+ links: string[];
499
+ deleted: boolean;
500
+ } & {
501
+ forks: string[];
502
+ })[] | ({
503
+ schemaName: "field";
504
+ tagKey: string;
505
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
506
+ label: string;
507
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
508
+ snakeCase?: boolean | undefined;
509
+ options?: {
510
+ label: string;
511
+ value: string | boolean | number | null;
512
+ }[] | undefined;
513
+ universal?: boolean | undefined;
514
+ placeholder?: string | undefined;
515
+ helperText?: string | undefined;
516
+ docId: string;
517
+ versionId: string;
518
+ originalVersionId: string;
519
+ createdAt: string;
520
+ updatedAt: string;
521
+ links: string[];
522
+ deleted: boolean;
523
+ } & {
524
+ forks: string[];
525
+ })[]>;
526
+ };
527
+ export declare function documentByDocumentIdQueryOptions<D extends DocumentType>({ projectApi, projectId, docType, docId, opts, }: {
528
+ projectApi: MapeoProjectApi;
529
+ projectId: string;
530
+ docType: D;
531
+ docId: Parameters<MapeoProjectApi[D]['getByDocId']>[0];
532
+ opts?: Omit<Parameters<MapeoProjectApi[D]['getByDocId']>[1], 'mustBeFound'>;
533
+ }): import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<({
534
+ schemaName: "track";
535
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
536
+ observationRefs: {
537
+ docId: string;
538
+ versionId: string;
539
+ }[];
540
+ tags: {
541
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
542
+ };
543
+ docId: string;
544
+ versionId: string;
545
+ originalVersionId: string;
546
+ createdAt: string;
547
+ updatedAt: string;
548
+ links: string[];
549
+ deleted: boolean;
550
+ } & {
551
+ forks: string[];
552
+ }) | ({
553
+ schemaName: "remoteDetectionAlert";
554
+ detectionDateStart: string;
555
+ detectionDateEnd: string;
556
+ sourceId: string;
557
+ metadata: {
558
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
559
+ };
560
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
561
+ docId: string;
562
+ versionId: string;
563
+ originalVersionId: string;
564
+ createdAt: string;
565
+ updatedAt: string;
566
+ links: string[];
567
+ deleted: boolean;
568
+ } & {
569
+ forks: string[];
570
+ }) | ({
571
+ schemaName: "preset";
572
+ name: string;
573
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
574
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
575
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
576
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
577
+ fieldRefs: {
578
+ docId: string;
579
+ versionId: string;
580
+ }[];
581
+ iconRef?: {
582
+ docId: string;
583
+ versionId: string;
584
+ } | undefined;
585
+ terms: string[];
586
+ color?: string | undefined;
587
+ docId: string;
588
+ versionId: string;
589
+ originalVersionId: string;
590
+ createdAt: string;
591
+ updatedAt: string;
592
+ links: string[];
593
+ deleted: boolean;
594
+ } & {
595
+ forks: string[];
596
+ }) | ({
597
+ schemaName: "observation";
598
+ lat?: number | undefined;
599
+ lon?: number | undefined;
600
+ attachments: {
601
+ driveDiscoveryId: string;
602
+ name: string;
603
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
604
+ hash: string;
605
+ }[];
606
+ tags: {
607
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
608
+ };
609
+ metadata?: {
610
+ manualLocation?: boolean;
611
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
612
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
613
+ positionProvider?: {
614
+ gpsAvailable?: boolean;
615
+ passiveAvailable?: boolean;
616
+ locationServicesEnabled: boolean;
617
+ networkAvailable?: boolean;
618
+ };
619
+ } | undefined;
620
+ presetRef?: {
621
+ docId: string;
622
+ versionId: string;
623
+ } | undefined;
624
+ docId: string;
625
+ versionId: string;
626
+ originalVersionId: string;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ links: string[];
630
+ deleted: boolean;
631
+ } & {
632
+ forks: string[];
633
+ }) | ({
634
+ schemaName: "field";
635
+ tagKey: string;
636
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
637
+ label: string;
638
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
639
+ snakeCase?: boolean | undefined;
640
+ options?: {
641
+ label: string;
642
+ value: string | boolean | number | null;
643
+ }[] | undefined;
644
+ universal?: boolean | undefined;
645
+ placeholder?: string | undefined;
646
+ helperText?: string | undefined;
647
+ docId: string;
648
+ versionId: string;
649
+ originalVersionId: string;
650
+ createdAt: string;
651
+ updatedAt: string;
652
+ links: string[];
653
+ deleted: boolean;
654
+ } & {
655
+ forks: string[];
656
+ }), Error, ({
657
+ schemaName: "track";
658
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
659
+ observationRefs: {
660
+ docId: string;
661
+ versionId: string;
662
+ }[];
663
+ tags: {
664
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
665
+ };
666
+ docId: string;
667
+ versionId: string;
668
+ originalVersionId: string;
669
+ createdAt: string;
670
+ updatedAt: string;
671
+ links: string[];
672
+ deleted: boolean;
673
+ } & {
674
+ forks: string[];
675
+ }) | ({
676
+ schemaName: "remoteDetectionAlert";
677
+ detectionDateStart: string;
678
+ detectionDateEnd: string;
679
+ sourceId: string;
680
+ metadata: {
681
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
682
+ };
683
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
684
+ docId: string;
685
+ versionId: string;
686
+ originalVersionId: string;
687
+ createdAt: string;
688
+ updatedAt: string;
689
+ links: string[];
690
+ deleted: boolean;
691
+ } & {
692
+ forks: string[];
693
+ }) | ({
694
+ schemaName: "preset";
695
+ name: string;
696
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
697
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
698
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
699
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
700
+ fieldRefs: {
701
+ docId: string;
702
+ versionId: string;
703
+ }[];
704
+ iconRef?: {
705
+ docId: string;
706
+ versionId: string;
707
+ } | undefined;
708
+ terms: string[];
709
+ color?: string | undefined;
710
+ docId: string;
711
+ versionId: string;
712
+ originalVersionId: string;
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ links: string[];
716
+ deleted: boolean;
717
+ } & {
718
+ forks: string[];
719
+ }) | ({
720
+ schemaName: "observation";
721
+ lat?: number | undefined;
722
+ lon?: number | undefined;
723
+ attachments: {
724
+ driveDiscoveryId: string;
725
+ name: string;
726
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
727
+ hash: string;
728
+ }[];
729
+ tags: {
730
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
731
+ };
732
+ metadata?: {
733
+ manualLocation?: boolean;
734
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
735
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
736
+ positionProvider?: {
737
+ gpsAvailable?: boolean;
738
+ passiveAvailable?: boolean;
739
+ locationServicesEnabled: boolean;
740
+ networkAvailable?: boolean;
741
+ };
742
+ } | undefined;
743
+ presetRef?: {
744
+ docId: string;
745
+ versionId: string;
746
+ } | undefined;
747
+ docId: string;
748
+ versionId: string;
749
+ originalVersionId: string;
750
+ createdAt: string;
751
+ updatedAt: string;
752
+ links: string[];
753
+ deleted: boolean;
754
+ } & {
755
+ forks: string[];
756
+ }) | ({
757
+ schemaName: "field";
758
+ tagKey: string;
759
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
760
+ label: string;
761
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
762
+ snakeCase?: boolean | undefined;
763
+ options?: {
764
+ label: string;
765
+ value: string | boolean | number | null;
766
+ }[] | undefined;
767
+ universal?: boolean | undefined;
768
+ placeholder?: string | undefined;
769
+ helperText?: string | undefined;
770
+ docId: string;
771
+ versionId: string;
772
+ originalVersionId: string;
773
+ createdAt: string;
774
+ updatedAt: string;
775
+ links: string[];
776
+ deleted: boolean;
777
+ } & {
778
+ forks: string[];
779
+ }), import("@tanstack/query-core").QueryKey>, "queryFn"> & {
780
+ queryFn?: import("@tanstack/query-core").QueryFunction<({
781
+ schemaName: "track";
782
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
783
+ observationRefs: {
784
+ docId: string;
785
+ versionId: string;
786
+ }[];
787
+ tags: {
788
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
789
+ };
790
+ docId: string;
791
+ versionId: string;
792
+ originalVersionId: string;
793
+ createdAt: string;
794
+ updatedAt: string;
795
+ links: string[];
796
+ deleted: boolean;
797
+ } & {
798
+ forks: string[];
799
+ }) | ({
800
+ schemaName: "remoteDetectionAlert";
801
+ detectionDateStart: string;
802
+ detectionDateEnd: string;
803
+ sourceId: string;
804
+ metadata: {
805
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
806
+ };
807
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
808
+ docId: string;
809
+ versionId: string;
810
+ originalVersionId: string;
811
+ createdAt: string;
812
+ updatedAt: string;
813
+ links: string[];
814
+ deleted: boolean;
815
+ } & {
816
+ forks: string[];
817
+ }) | ({
818
+ schemaName: "preset";
819
+ name: string;
820
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
821
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
822
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
823
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
824
+ fieldRefs: {
825
+ docId: string;
826
+ versionId: string;
827
+ }[];
828
+ iconRef?: {
829
+ docId: string;
830
+ versionId: string;
831
+ } | undefined;
832
+ terms: string[];
833
+ color?: string | undefined;
834
+ docId: string;
835
+ versionId: string;
836
+ originalVersionId: string;
837
+ createdAt: string;
838
+ updatedAt: string;
839
+ links: string[];
840
+ deleted: boolean;
841
+ } & {
842
+ forks: string[];
843
+ }) | ({
844
+ schemaName: "observation";
845
+ lat?: number | undefined;
846
+ lon?: number | undefined;
847
+ attachments: {
848
+ driveDiscoveryId: string;
849
+ name: string;
850
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
851
+ hash: string;
852
+ }[];
853
+ tags: {
854
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
855
+ };
856
+ metadata?: {
857
+ manualLocation?: boolean;
858
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
859
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
860
+ positionProvider?: {
861
+ gpsAvailable?: boolean;
862
+ passiveAvailable?: boolean;
863
+ locationServicesEnabled: boolean;
864
+ networkAvailable?: boolean;
865
+ };
866
+ } | undefined;
867
+ presetRef?: {
868
+ docId: string;
869
+ versionId: string;
870
+ } | undefined;
871
+ docId: string;
872
+ versionId: string;
873
+ originalVersionId: string;
874
+ createdAt: string;
875
+ updatedAt: string;
876
+ links: string[];
877
+ deleted: boolean;
878
+ } & {
879
+ forks: string[];
880
+ }) | ({
881
+ schemaName: "field";
882
+ tagKey: string;
883
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
884
+ label: string;
885
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
886
+ snakeCase?: boolean | undefined;
887
+ options?: {
888
+ label: string;
889
+ value: string | boolean | number | null;
890
+ }[] | undefined;
891
+ universal?: boolean | undefined;
892
+ placeholder?: string | undefined;
893
+ helperText?: string | undefined;
894
+ docId: string;
895
+ versionId: string;
896
+ originalVersionId: string;
897
+ createdAt: string;
898
+ updatedAt: string;
899
+ links: string[];
900
+ deleted: boolean;
901
+ } & {
902
+ forks: string[];
903
+ }), import("@tanstack/query-core").QueryKey, never> | undefined;
904
+ } & {
905
+ queryKey: import("@tanstack/query-core").DataTag<import("@tanstack/query-core").QueryKey, ({
906
+ schemaName: "track";
907
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
908
+ observationRefs: {
909
+ docId: string;
910
+ versionId: string;
911
+ }[];
912
+ tags: {
913
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
914
+ };
915
+ docId: string;
916
+ versionId: string;
917
+ originalVersionId: string;
918
+ createdAt: string;
919
+ updatedAt: string;
920
+ links: string[];
921
+ deleted: boolean;
922
+ } & {
923
+ forks: string[];
924
+ }) | ({
925
+ schemaName: "remoteDetectionAlert";
926
+ detectionDateStart: string;
927
+ detectionDateEnd: string;
928
+ sourceId: string;
929
+ metadata: {
930
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
931
+ };
932
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
933
+ docId: string;
934
+ versionId: string;
935
+ originalVersionId: string;
936
+ createdAt: string;
937
+ updatedAt: string;
938
+ links: string[];
939
+ deleted: boolean;
940
+ } & {
941
+ forks: string[];
942
+ }) | ({
943
+ schemaName: "preset";
944
+ name: string;
945
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
946
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
947
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
948
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
949
+ fieldRefs: {
950
+ docId: string;
951
+ versionId: string;
952
+ }[];
953
+ iconRef?: {
954
+ docId: string;
955
+ versionId: string;
956
+ } | undefined;
957
+ terms: string[];
958
+ color?: string | undefined;
959
+ docId: string;
960
+ versionId: string;
961
+ originalVersionId: string;
962
+ createdAt: string;
963
+ updatedAt: string;
964
+ links: string[];
965
+ deleted: boolean;
966
+ } & {
967
+ forks: string[];
968
+ }) | ({
969
+ schemaName: "observation";
970
+ lat?: number | undefined;
971
+ lon?: number | undefined;
972
+ attachments: {
973
+ driveDiscoveryId: string;
974
+ name: string;
975
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
976
+ hash: string;
977
+ }[];
978
+ tags: {
979
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
980
+ };
981
+ metadata?: {
982
+ manualLocation?: boolean;
983
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
984
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
985
+ positionProvider?: {
986
+ gpsAvailable?: boolean;
987
+ passiveAvailable?: boolean;
988
+ locationServicesEnabled: boolean;
989
+ networkAvailable?: boolean;
990
+ };
991
+ } | undefined;
992
+ presetRef?: {
993
+ docId: string;
994
+ versionId: string;
995
+ } | undefined;
996
+ docId: string;
997
+ versionId: string;
998
+ originalVersionId: string;
999
+ createdAt: string;
1000
+ updatedAt: string;
1001
+ links: string[];
1002
+ deleted: boolean;
1003
+ } & {
1004
+ forks: string[];
1005
+ }) | ({
1006
+ schemaName: "field";
1007
+ tagKey: string;
1008
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
1009
+ label: string;
1010
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
1011
+ snakeCase?: boolean | undefined;
1012
+ options?: {
1013
+ label: string;
1014
+ value: string | boolean | number | null;
1015
+ }[] | undefined;
1016
+ universal?: boolean | undefined;
1017
+ placeholder?: string | undefined;
1018
+ helperText?: string | undefined;
1019
+ docId: string;
1020
+ versionId: string;
1021
+ originalVersionId: string;
1022
+ createdAt: string;
1023
+ updatedAt: string;
1024
+ links: string[];
1025
+ deleted: boolean;
1026
+ } & {
1027
+ forks: string[];
1028
+ })>;
1029
+ };
1030
+ export declare function documentByVersionIdQueryOptions<D extends DocumentType>({ projectApi, projectId, docType, versionId, opts, }: {
1031
+ projectApi: MapeoProjectApi;
1032
+ projectId: string;
1033
+ docType: D;
1034
+ versionId: Parameters<MapeoProjectApi[D]['getByVersionId']>[0];
1035
+ opts?: Parameters<MapeoProjectApi[D]['getByVersionId']>[1];
1036
+ }): import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1037
+ schemaName: "track";
1038
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
1039
+ observationRefs: {
1040
+ docId: string;
1041
+ versionId: string;
1042
+ }[];
1043
+ tags: {
1044
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1045
+ };
1046
+ docId: string;
1047
+ versionId: string;
1048
+ originalVersionId: string;
1049
+ createdAt: string;
1050
+ updatedAt: string;
1051
+ links: string[];
1052
+ deleted: boolean;
1053
+ } | {
1054
+ schemaName: "remoteDetectionAlert";
1055
+ detectionDateStart: string;
1056
+ detectionDateEnd: string;
1057
+ sourceId: string;
1058
+ metadata: {
1059
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1060
+ };
1061
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
1062
+ docId: string;
1063
+ versionId: string;
1064
+ originalVersionId: string;
1065
+ createdAt: string;
1066
+ updatedAt: string;
1067
+ links: string[];
1068
+ deleted: boolean;
1069
+ } | {
1070
+ schemaName: "preset";
1071
+ name: string;
1072
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
1073
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
1074
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
1075
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
1076
+ fieldRefs: {
1077
+ docId: string;
1078
+ versionId: string;
1079
+ }[];
1080
+ iconRef?: {
1081
+ docId: string;
1082
+ versionId: string;
1083
+ } | undefined;
1084
+ terms: string[];
1085
+ color?: string | undefined;
1086
+ docId: string;
1087
+ versionId: string;
1088
+ originalVersionId: string;
1089
+ createdAt: string;
1090
+ updatedAt: string;
1091
+ links: string[];
1092
+ deleted: boolean;
1093
+ } | {
1094
+ schemaName: "observation";
1095
+ lat?: number | undefined;
1096
+ lon?: number | undefined;
1097
+ attachments: {
1098
+ driveDiscoveryId: string;
1099
+ name: string;
1100
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
1101
+ hash: string;
1102
+ }[];
1103
+ tags: {
1104
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1105
+ };
1106
+ metadata?: {
1107
+ manualLocation?: boolean;
1108
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
1109
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
1110
+ positionProvider?: {
1111
+ gpsAvailable?: boolean;
1112
+ passiveAvailable?: boolean;
1113
+ locationServicesEnabled: boolean;
1114
+ networkAvailable?: boolean;
1115
+ };
1116
+ } | undefined;
1117
+ presetRef?: {
1118
+ docId: string;
1119
+ versionId: string;
1120
+ } | undefined;
1121
+ docId: string;
1122
+ versionId: string;
1123
+ originalVersionId: string;
1124
+ createdAt: string;
1125
+ updatedAt: string;
1126
+ links: string[];
1127
+ deleted: boolean;
1128
+ } | {
1129
+ schemaName: "field";
1130
+ tagKey: string;
1131
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
1132
+ label: string;
1133
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
1134
+ snakeCase?: boolean | undefined;
1135
+ options?: {
1136
+ label: string;
1137
+ value: string | boolean | number | null;
1138
+ }[] | undefined;
1139
+ universal?: boolean | undefined;
1140
+ placeholder?: string | undefined;
1141
+ helperText?: string | undefined;
1142
+ docId: string;
1143
+ versionId: string;
1144
+ originalVersionId: string;
1145
+ createdAt: string;
1146
+ updatedAt: string;
1147
+ links: string[];
1148
+ deleted: boolean;
1149
+ }, Error, {
1150
+ schemaName: "track";
1151
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
1152
+ observationRefs: {
1153
+ docId: string;
1154
+ versionId: string;
1155
+ }[];
1156
+ tags: {
1157
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1158
+ };
1159
+ docId: string;
1160
+ versionId: string;
1161
+ originalVersionId: string;
1162
+ createdAt: string;
1163
+ updatedAt: string;
1164
+ links: string[];
1165
+ deleted: boolean;
1166
+ } | {
1167
+ schemaName: "remoteDetectionAlert";
1168
+ detectionDateStart: string;
1169
+ detectionDateEnd: string;
1170
+ sourceId: string;
1171
+ metadata: {
1172
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1173
+ };
1174
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
1175
+ docId: string;
1176
+ versionId: string;
1177
+ originalVersionId: string;
1178
+ createdAt: string;
1179
+ updatedAt: string;
1180
+ links: string[];
1181
+ deleted: boolean;
1182
+ } | {
1183
+ schemaName: "preset";
1184
+ name: string;
1185
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
1186
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
1187
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
1188
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
1189
+ fieldRefs: {
1190
+ docId: string;
1191
+ versionId: string;
1192
+ }[];
1193
+ iconRef?: {
1194
+ docId: string;
1195
+ versionId: string;
1196
+ } | undefined;
1197
+ terms: string[];
1198
+ color?: string | undefined;
1199
+ docId: string;
1200
+ versionId: string;
1201
+ originalVersionId: string;
1202
+ createdAt: string;
1203
+ updatedAt: string;
1204
+ links: string[];
1205
+ deleted: boolean;
1206
+ } | {
1207
+ schemaName: "observation";
1208
+ lat?: number | undefined;
1209
+ lon?: number | undefined;
1210
+ attachments: {
1211
+ driveDiscoveryId: string;
1212
+ name: string;
1213
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
1214
+ hash: string;
1215
+ }[];
1216
+ tags: {
1217
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1218
+ };
1219
+ metadata?: {
1220
+ manualLocation?: boolean;
1221
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
1222
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
1223
+ positionProvider?: {
1224
+ gpsAvailable?: boolean;
1225
+ passiveAvailable?: boolean;
1226
+ locationServicesEnabled: boolean;
1227
+ networkAvailable?: boolean;
1228
+ };
1229
+ } | undefined;
1230
+ presetRef?: {
1231
+ docId: string;
1232
+ versionId: string;
1233
+ } | undefined;
1234
+ docId: string;
1235
+ versionId: string;
1236
+ originalVersionId: string;
1237
+ createdAt: string;
1238
+ updatedAt: string;
1239
+ links: string[];
1240
+ deleted: boolean;
1241
+ } | {
1242
+ schemaName: "field";
1243
+ tagKey: string;
1244
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
1245
+ label: string;
1246
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
1247
+ snakeCase?: boolean | undefined;
1248
+ options?: {
1249
+ label: string;
1250
+ value: string | boolean | number | null;
1251
+ }[] | undefined;
1252
+ universal?: boolean | undefined;
1253
+ placeholder?: string | undefined;
1254
+ helperText?: string | undefined;
1255
+ docId: string;
1256
+ versionId: string;
1257
+ originalVersionId: string;
1258
+ createdAt: string;
1259
+ updatedAt: string;
1260
+ links: string[];
1261
+ deleted: boolean;
1262
+ }, import("@tanstack/query-core").QueryKey>, "queryFn"> & {
1263
+ queryFn?: import("@tanstack/query-core").QueryFunction<{
1264
+ schemaName: "track";
1265
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
1266
+ observationRefs: {
1267
+ docId: string;
1268
+ versionId: string;
1269
+ }[];
1270
+ tags: {
1271
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1272
+ };
1273
+ docId: string;
1274
+ versionId: string;
1275
+ originalVersionId: string;
1276
+ createdAt: string;
1277
+ updatedAt: string;
1278
+ links: string[];
1279
+ deleted: boolean;
1280
+ } | {
1281
+ schemaName: "remoteDetectionAlert";
1282
+ detectionDateStart: string;
1283
+ detectionDateEnd: string;
1284
+ sourceId: string;
1285
+ metadata: {
1286
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1287
+ };
1288
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
1289
+ docId: string;
1290
+ versionId: string;
1291
+ originalVersionId: string;
1292
+ createdAt: string;
1293
+ updatedAt: string;
1294
+ links: string[];
1295
+ deleted: boolean;
1296
+ } | {
1297
+ schemaName: "preset";
1298
+ name: string;
1299
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
1300
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
1301
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
1302
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
1303
+ fieldRefs: {
1304
+ docId: string;
1305
+ versionId: string;
1306
+ }[];
1307
+ iconRef?: {
1308
+ docId: string;
1309
+ versionId: string;
1310
+ } | undefined;
1311
+ terms: string[];
1312
+ color?: string | undefined;
1313
+ docId: string;
1314
+ versionId: string;
1315
+ originalVersionId: string;
1316
+ createdAt: string;
1317
+ updatedAt: string;
1318
+ links: string[];
1319
+ deleted: boolean;
1320
+ } | {
1321
+ schemaName: "observation";
1322
+ lat?: number | undefined;
1323
+ lon?: number | undefined;
1324
+ attachments: {
1325
+ driveDiscoveryId: string;
1326
+ name: string;
1327
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
1328
+ hash: string;
1329
+ }[];
1330
+ tags: {
1331
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1332
+ };
1333
+ metadata?: {
1334
+ manualLocation?: boolean;
1335
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
1336
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
1337
+ positionProvider?: {
1338
+ gpsAvailable?: boolean;
1339
+ passiveAvailable?: boolean;
1340
+ locationServicesEnabled: boolean;
1341
+ networkAvailable?: boolean;
1342
+ };
1343
+ } | undefined;
1344
+ presetRef?: {
1345
+ docId: string;
1346
+ versionId: string;
1347
+ } | undefined;
1348
+ docId: string;
1349
+ versionId: string;
1350
+ originalVersionId: string;
1351
+ createdAt: string;
1352
+ updatedAt: string;
1353
+ links: string[];
1354
+ deleted: boolean;
1355
+ } | {
1356
+ schemaName: "field";
1357
+ tagKey: string;
1358
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
1359
+ label: string;
1360
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
1361
+ snakeCase?: boolean | undefined;
1362
+ options?: {
1363
+ label: string;
1364
+ value: string | boolean | number | null;
1365
+ }[] | undefined;
1366
+ universal?: boolean | undefined;
1367
+ placeholder?: string | undefined;
1368
+ helperText?: string | undefined;
1369
+ docId: string;
1370
+ versionId: string;
1371
+ originalVersionId: string;
1372
+ createdAt: string;
1373
+ updatedAt: string;
1374
+ links: string[];
1375
+ deleted: boolean;
1376
+ }, import("@tanstack/query-core").QueryKey, never> | undefined;
1377
+ } & {
1378
+ queryKey: import("@tanstack/query-core").DataTag<import("@tanstack/query-core").QueryKey, {
1379
+ schemaName: "track";
1380
+ locations: import("@comapeo/schema/dist/schema/track").Position[];
1381
+ observationRefs: {
1382
+ docId: string;
1383
+ versionId: string;
1384
+ }[];
1385
+ tags: {
1386
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1387
+ };
1388
+ docId: string;
1389
+ versionId: string;
1390
+ originalVersionId: string;
1391
+ createdAt: string;
1392
+ updatedAt: string;
1393
+ links: string[];
1394
+ deleted: boolean;
1395
+ } | {
1396
+ schemaName: "remoteDetectionAlert";
1397
+ detectionDateStart: string;
1398
+ detectionDateEnd: string;
1399
+ sourceId: string;
1400
+ metadata: {
1401
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1402
+ };
1403
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert").Geometry;
1404
+ docId: string;
1405
+ versionId: string;
1406
+ originalVersionId: string;
1407
+ createdAt: string;
1408
+ updatedAt: string;
1409
+ links: string[];
1410
+ deleted: boolean;
1411
+ } | {
1412
+ schemaName: "preset";
1413
+ name: string;
1414
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
1415
+ tags: import("@comapeo/schema/dist/schema/preset").Tags;
1416
+ addTags: import("@comapeo/schema/dist/schema/preset").Tags1;
1417
+ removeTags: import("@comapeo/schema/dist/schema/preset").Tags2;
1418
+ fieldRefs: {
1419
+ docId: string;
1420
+ versionId: string;
1421
+ }[];
1422
+ iconRef?: {
1423
+ docId: string;
1424
+ versionId: string;
1425
+ } | undefined;
1426
+ terms: string[];
1427
+ color?: string | undefined;
1428
+ docId: string;
1429
+ versionId: string;
1430
+ originalVersionId: string;
1431
+ createdAt: string;
1432
+ updatedAt: string;
1433
+ links: string[];
1434
+ deleted: boolean;
1435
+ } | {
1436
+ schemaName: "observation";
1437
+ lat?: number | undefined;
1438
+ lon?: number | undefined;
1439
+ attachments: {
1440
+ driveDiscoveryId: string;
1441
+ name: string;
1442
+ type: "attachment_type_unspecified" | "photo" | "video" | "audio" | "UNRECOGNIZED";
1443
+ hash: string;
1444
+ }[];
1445
+ tags: {
1446
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1447
+ };
1448
+ metadata?: {
1449
+ manualLocation?: boolean;
1450
+ position?: import("@comapeo/schema/dist/schema/observation").Position;
1451
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation").Position;
1452
+ positionProvider?: {
1453
+ gpsAvailable?: boolean;
1454
+ passiveAvailable?: boolean;
1455
+ locationServicesEnabled: boolean;
1456
+ networkAvailable?: boolean;
1457
+ };
1458
+ } | undefined;
1459
+ presetRef?: {
1460
+ docId: string;
1461
+ versionId: string;
1462
+ } | undefined;
1463
+ docId: string;
1464
+ versionId: string;
1465
+ originalVersionId: string;
1466
+ createdAt: string;
1467
+ updatedAt: string;
1468
+ links: string[];
1469
+ deleted: boolean;
1470
+ } | {
1471
+ schemaName: "field";
1472
+ tagKey: string;
1473
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
1474
+ label: string;
1475
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
1476
+ snakeCase?: boolean | undefined;
1477
+ options?: {
1478
+ label: string;
1479
+ value: string | boolean | number | null;
1480
+ }[] | undefined;
1481
+ universal?: boolean | undefined;
1482
+ placeholder?: string | undefined;
1483
+ helperText?: string | undefined;
1484
+ docId: string;
1485
+ versionId: string;
1486
+ originalVersionId: string;
1487
+ createdAt: string;
1488
+ updatedAt: string;
1489
+ links: string[];
1490
+ deleted: boolean;
1491
+ }>;
1492
+ };