Skip to content

Commit a996995

Browse files
optic-release-automation[bot]RangerMauve
andauthored
[OPTIC-RELEASE-AUTOMATION] release/v3.2.0 (#1036)
Release v3.2.0 Co-authored-by: RangerMauve <[email protected]>
1 parent 1778b84 commit a996995

File tree

6 files changed

+167
-3
lines changed

6 files changed

+167
-3
lines changed

docs/api/md/-internal-/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
### Type Aliases
9494

9595
- [AddProjectQuery](type-aliases/AddProjectQuery.md)
96+
- [Attachment](type-aliases/Attachment.md)
9697
- [BitField](type-aliases/BitField.md)
9798
- [BlobFilter](type-aliases/BlobFilter.md)
9899
- [BlobId](type-aliases/BlobId.md)
@@ -145,6 +146,7 @@
145146
- [RoleId](type-aliases/RoleId.md)
146147
- [SchemaName](type-aliases/SchemaName.md)
147148
- [SecretKey](type-aliases/SecretKey.md)
149+
- [SeenAttachments](type-aliases/SeenAttachments.md)
148150
- [State](type-aliases/State.md)
149151
- [SupportedBlobVariants](type-aliases/SupportedBlobVariants.md)
150152
- [SyncCapability](type-aliases/SyncCapability.md)

docs/api/md/-internal-/classes/MapeoProject.md

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,80 @@ Clear data if we've left the project. No-op if you're still in the project.
298298

299299
***
300300

301+
### \[kExportGeoJSONStream\]()
302+
303+
> **\[kExportGeoJSONStream\]**(`options`?): `Readable`\<`Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `true`, `false`, `ReadableEvents`\<`Uint8Array` \| `Buffer`\>\>
304+
305+
Export observations and or tracks as a stream of GeoJSON data
306+
307+
#### Parameters
308+
309+
**options?** = `{}`
310+
311+
**options.lang?**: `undefined` \| `string`
312+
313+
**options.observations?**: `undefined` \| `boolean` = `true`
314+
315+
Whether observations should be exported
316+
317+
**options.seenAttachments?**: `undefined` \| [`SeenAttachments`](../type-aliases/SeenAttachments.md) = `...`
318+
319+
**options.tracks?**: `undefined` \| `boolean` = `true`
320+
321+
Whether all tracks and their observations should be exported
322+
323+
#### Returns
324+
325+
`Readable`\<`Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `true`, `false`, `ReadableEvents`\<`Uint8Array` \| `Buffer`\>\>
326+
327+
***
328+
329+
### \[kExportZipStream\]()
330+
331+
> **\[kExportZipStream\]**(`options`?): `Readable`\<`Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `true`, `false`, `ReadableEvents`\<`Uint8Array` \| `Buffer`\>\>
332+
333+
Export observations, tracks, and or attachments as a zip file stream.
334+
335+
#### Parameters
336+
337+
**options?** = `{}`
338+
339+
**options.attachments?**: `undefined` \| `boolean` = `true`
340+
341+
Whether all attachments for observations should be exported
342+
343+
**options.lang?**: `undefined` \| `string`
344+
345+
**options.observations?**: `undefined` \| `boolean` = `true`
346+
347+
Whether observations should be exported
348+
349+
**options.tracks?**: `undefined` \| `boolean` = `true`
350+
351+
Whether all tracks and their observations should be exported
352+
353+
#### Returns
354+
355+
`Readable`\<`Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `Uint8Array` \| `Buffer`, `true`, `false`, `ReadableEvents`\<`Uint8Array` \| `Buffer`\>\>
356+
357+
***
358+
359+
### \[kGeoJSONFileName\]()
360+
361+
> **\[kGeoJSONFileName\]**(`observations`, `tracks`): `Promise`\<`string`\>
362+
363+
#### Parameters
364+
365+
**observations**: `boolean`
366+
367+
**tracks**: `boolean`
368+
369+
#### Returns
370+
371+
`Promise`\<`string`\>
372+
373+
***
374+
301375
### \[kProjectLeave\]()
302376

303377
> **\[kProjectLeave\]**(): `Promise`\<`void`\>
@@ -420,6 +494,74 @@ When device ID cannot be found.
420494

421495
***
422496

497+
### exportGeoJSONFile()
498+
499+
> **exportGeoJSONFile**(`exportFolder`, `options`?): `Promise`\<`string`\>
500+
501+
Export observations and or tracks as a GeoJSON file
502+
503+
#### Parameters
504+
505+
**exportFolder**: `string`
506+
507+
Path to save the file. The file name is auto-generated
508+
509+
**options?** = `{}`
510+
511+
**options.lang?**: `undefined` \| `string`
512+
513+
**options.observations?**: `undefined` \| `boolean` = `true`
514+
515+
Whether observations should be exported
516+
517+
**options.tracks?**: `undefined` \| `boolean` = `true`
518+
519+
Whether all tracks and their observations should be exported
520+
521+
#### Returns
522+
523+
`Promise`\<`string`\>
524+
525+
The full path that the file was exported at
526+
527+
***
528+
529+
### exportZipFile()
530+
531+
> **exportZipFile**(`exportFolder`, `options`?): `Promise`\<`string`\>
532+
533+
Export observations, tracks, and or attachments as a zip file.
534+
535+
#### Parameters
536+
537+
**exportFolder**: `string`
538+
539+
Path to save the file. The file name is auto-generated
540+
541+
**options?** = `{}`
542+
543+
**options.attachments?**: `undefined` \| `boolean` = `true`
544+
545+
Whether all attachments for observations should be exported
546+
547+
**options.lang?**: `undefined` \| `string`
548+
549+
**options.observations?**: `undefined` \| `boolean` = `true`
550+
551+
Whether observations should be exported
552+
553+
**options.tracks?**: `undefined` \| `boolean` = `true`
554+
555+
Whether all tracks and their observations should be exported
556+
557+
#### Returns
558+
559+
`Promise`\<`string`\>
560+
561+
The full path that the file was exported at
562+
563+
***
564+
423565
### importConfig()
424566

425567
> **importConfig**(`opts`): `Promise`\<`Error`[]\>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[**API**](../../README.md)**Docs**
2+
3+
***
4+
5+
[API](../../README.md) / [\<internal\>](../README.md) / Attachment
6+
7+
# Type Alias: Attachment
8+
9+
> **Attachment**: `Observation`\[`"attachments"`\]\[`0`\]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[**API**](../../README.md)**Docs**
2+
3+
***
4+
5+
[API](../../README.md) / [\<internal\>](../README.md) / SeenAttachments
6+
7+
# Type Alias: SeenAttachments
8+
9+
> **SeenAttachments**\<\>: `Map`\<`string`, [`Attachment`](Attachment.md)\>
10+
11+
## Type Parameters

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@comapeo/core",
3-
"version": "3.1.2",
3+
"version": "3.2.0",
44
"description": "Offline p2p mapping library",
55
"main": "src/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)