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