@xyo-network/api 2.20.45 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Archivist/Account/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Account/Api.js +14 -14
- package/dist/cjs/Archivist/Account/index.d.ts +1 -1
- package/dist/cjs/Archivist/Account/index.js +4 -4
- package/dist/cjs/Archivist/Api.d.ts +34 -34
- package/dist/cjs/Archivist/Api.js +68 -68
- package/dist/cjs/Archivist/Archive/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Archive/Api.js +39 -39
- package/dist/cjs/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/cjs/Archivist/Archive/Schema/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schema/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Schemas/Api.js +13 -13
- package/dist/cjs/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schemas/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Settings/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.js +10 -10
- package/dist/cjs/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Settings/Key/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/cjs/Archivist/Archive/Settings/index.js +5 -5
- package/dist/cjs/Archivist/Archive/index.d.ts +4 -4
- package/dist/cjs/Archivist/Archive/index.js +7 -7
- package/dist/cjs/Archivist/Archives/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Archives/Api.js +15 -15
- package/dist/cjs/Archivist/Archives/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archives/index.js +4 -4
- package/dist/cjs/Archivist/Block/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Block/Api.js +11 -11
- package/dist/cjs/Archivist/Block/index.d.ts +1 -1
- package/dist/cjs/Archivist/Block/index.js +4 -4
- package/dist/cjs/Archivist/Node/Api.d.ts +28 -28
- package/dist/cjs/Archivist/Node/Api.js +73 -73
- package/dist/cjs/Archivist/Node/index.d.ts +1 -1
- package/dist/cjs/Archivist/Node/index.js +4 -4
- package/dist/cjs/Archivist/Payload/Api.d.ts +40 -40
- package/dist/cjs/Archivist/Payload/Api.js +83 -83
- package/dist/cjs/Archivist/Payload/Api.js.map +1 -1
- package/dist/cjs/Archivist/Payload/Schema/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Payload/Schema/Api.js +13 -13
- package/dist/cjs/Archivist/Payload/Schema/index.d.ts +1 -1
- package/dist/cjs/Archivist/Payload/Schema/index.js +4 -4
- package/dist/cjs/Archivist/Payload/index.d.ts +2 -2
- package/dist/cjs/Archivist/Payload/index.js +5 -5
- package/dist/cjs/Archivist/index.d.ts +6 -6
- package/dist/cjs/Archivist/index.js +9 -9
- package/dist/cjs/Base.d.ts +33 -33
- package/dist/cjs/Base.js +146 -146
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.js +27 -27
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +23 -23
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +12 -12
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
- package/dist/cjs/Diviner/LocationDiviner/Queries/index.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/index.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/index.js +7 -7
- package/dist/cjs/Diviner/LocationDiviner/models.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/models.js +2 -2
- package/dist/cjs/Diviner/index.d.ts +1 -1
- package/dist/cjs/Diviner/index.js +4 -4
- package/dist/cjs/Simple.d.ts +21 -21
- package/dist/cjs/Simple.js +59 -59
- package/dist/cjs/Test/index.d.ts +2 -2
- package/dist/cjs/Test/index.js +5 -5
- package/dist/cjs/Test/testBoundWitness.d.ts +3 -3
- package/dist/cjs/Test/testBoundWitness.js +16 -16
- package/dist/cjs/Test/testBoundWitness.js.map +1 -1
- package/dist/cjs/Test/testPayload.d.ts +4 -4
- package/dist/cjs/Test/testPayload.js +18 -18
- package/dist/cjs/Test/testPayload.js.map +1 -1
- package/dist/cjs/User/Api.d.ts +31 -31
- package/dist/cjs/User/Api.js +24 -24
- package/dist/cjs/User/index.d.ts +1 -1
- package/dist/cjs/User/index.js +4 -4
- package/dist/cjs/WithArchive.d.ts +3 -3
- package/dist/cjs/WithArchive.js +2 -2
- package/dist/cjs/index.d.ts +7 -7
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/models/Api/Config.d.ts +24 -24
- package/dist/cjs/models/Api/Config.js +2 -2
- package/dist/cjs/models/Api/Envelope.d.ts +14 -14
- package/dist/cjs/models/Api/Envelope.js +2 -2
- package/dist/cjs/models/Api/Error.d.ts +4 -4
- package/dist/cjs/models/Api/Error.js +2 -2
- package/dist/cjs/models/Api/Reportable.d.ts +7 -7
- package/dist/cjs/models/Api/Reportable.js +2 -2
- package/dist/cjs/models/Api/Response.d.ts +7 -7
- package/dist/cjs/models/Api/Response.js +2 -2
- package/dist/cjs/models/Api/Warning.d.ts +1 -1
- package/dist/cjs/models/Api/Warning.js +2 -2
- package/dist/cjs/models/Api/index.d.ts +6 -6
- package/dist/cjs/models/Api/index.js +9 -9
- package/dist/cjs/models/Archive.d.ts +24 -24
- package/dist/cjs/models/Archive.js +2 -2
- package/dist/cjs/models/ArchiveKey.d.ts +5 -5
- package/dist/cjs/models/ArchiveKey.js +2 -2
- package/dist/cjs/models/ArchivePath.d.ts +3 -3
- package/dist/cjs/models/ArchivePath.js +2 -2
- package/dist/cjs/models/index.d.ts +4 -4
- package/dist/cjs/models/index.js +7 -7
- package/dist/cjs/objToQuery.d.ts +1 -1
- package/dist/cjs/objToQuery.js +12 -12
- package/dist/docs.json +1 -44449
- package/dist/esm/Archivist/Account/Api.d.ts +18 -18
- package/dist/esm/Archivist/Account/Api.js +16 -16
- package/dist/esm/Archivist/Account/index.d.ts +1 -1
- package/dist/esm/Archivist/Account/index.js +1 -1
- package/dist/esm/Archivist/Api.d.ts +34 -34
- package/dist/esm/Archivist/Api.js +82 -82
- package/dist/esm/Archivist/Archive/Api.d.ts +18 -18
- package/dist/esm/Archivist/Archive/Api.js +50 -50
- package/dist/esm/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/esm/Archivist/Archive/Schema/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schema/index.js +1 -1
- package/dist/esm/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Schemas/Api.js +12 -12
- package/dist/esm/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schemas/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Settings/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/esm/Archivist/Archive/Settings/Key/Api.js +9 -9
- package/dist/esm/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Settings/Key/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/esm/Archivist/Archive/Settings/index.js +2 -2
- package/dist/esm/Archivist/Archive/index.d.ts +4 -4
- package/dist/esm/Archivist/Archive/index.js +4 -4
- package/dist/esm/Archivist/Archives/Api.d.ts +8 -8
- package/dist/esm/Archivist/Archives/Api.js +14 -14
- package/dist/esm/Archivist/Archives/index.d.ts +1 -1
- package/dist/esm/Archivist/Archives/index.js +1 -1
- package/dist/esm/Archivist/Block/Api.d.ts +8 -8
- package/dist/esm/Archivist/Block/Api.js +10 -10
- package/dist/esm/Archivist/Block/index.d.ts +1 -1
- package/dist/esm/Archivist/Block/index.js +1 -1
- package/dist/esm/Archivist/Node/Api.d.ts +28 -28
- package/dist/esm/Archivist/Node/Api.js +66 -66
- package/dist/esm/Archivist/Node/index.d.ts +1 -1
- package/dist/esm/Archivist/Node/index.js +1 -1
- package/dist/esm/Archivist/Payload/Api.d.ts +40 -40
- package/dist/esm/Archivist/Payload/Api.js +67 -67
- package/dist/esm/Archivist/Payload/Api.js.map +1 -1
- package/dist/esm/Archivist/Payload/Schema/Api.d.ts +8 -8
- package/dist/esm/Archivist/Payload/Schema/Api.js +12 -12
- package/dist/esm/Archivist/Payload/Schema/index.d.ts +1 -1
- package/dist/esm/Archivist/Payload/Schema/index.js +1 -1
- package/dist/esm/Archivist/Payload/index.d.ts +2 -2
- package/dist/esm/Archivist/Payload/index.js +2 -2
- package/dist/esm/Archivist/index.d.ts +6 -6
- package/dist/esm/Archivist/index.js +6 -6
- package/dist/esm/Base.d.ts +33 -33
- package/dist/esm/Base.js +128 -128
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.js +19 -19
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +17 -17
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +8 -8
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
- package/dist/esm/Diviner/LocationDiviner/Queries/index.js +6 -6
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Witnesses/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/index.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/index.js +4 -4
- package/dist/esm/Diviner/LocationDiviner/models.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/models.js +1 -1
- package/dist/esm/Diviner/index.d.ts +1 -1
- package/dist/esm/Diviner/index.js +1 -1
- package/dist/esm/Simple.d.ts +21 -21
- package/dist/esm/Simple.js +44 -44
- package/dist/esm/Test/index.d.ts +2 -2
- package/dist/esm/Test/index.js +2 -2
- package/dist/esm/Test/testBoundWitness.d.ts +3 -3
- package/dist/esm/Test/testBoundWitness.js +13 -13
- package/dist/esm/Test/testBoundWitness.js.map +1 -1
- package/dist/esm/Test/testPayload.d.ts +4 -4
- package/dist/esm/Test/testPayload.js +14 -14
- package/dist/esm/Test/testPayload.js.map +1 -1
- package/dist/esm/User/Api.d.ts +31 -31
- package/dist/esm/User/Api.js +26 -26
- package/dist/esm/User/index.d.ts +1 -1
- package/dist/esm/User/index.js +1 -1
- package/dist/esm/WithArchive.d.ts +3 -3
- package/dist/esm/WithArchive.js +1 -1
- package/dist/esm/index.d.ts +7 -7
- package/dist/esm/index.js +7 -7
- package/dist/esm/models/Api/Config.d.ts +24 -24
- package/dist/esm/models/Api/Config.js +1 -1
- package/dist/esm/models/Api/Envelope.d.ts +14 -14
- package/dist/esm/models/Api/Envelope.js +1 -1
- package/dist/esm/models/Api/Error.d.ts +4 -4
- package/dist/esm/models/Api/Error.js +1 -1
- package/dist/esm/models/Api/Reportable.d.ts +7 -7
- package/dist/esm/models/Api/Reportable.js +1 -1
- package/dist/esm/models/Api/Response.d.ts +7 -7
- package/dist/esm/models/Api/Response.js +1 -1
- package/dist/esm/models/Api/Warning.d.ts +1 -1
- package/dist/esm/models/Api/Warning.js +1 -1
- package/dist/esm/models/Api/index.d.ts +6 -6
- package/dist/esm/models/Api/index.js +6 -6
- package/dist/esm/models/Archive.d.ts +24 -24
- package/dist/esm/models/Archive.js +1 -1
- package/dist/esm/models/ArchiveKey.d.ts +5 -5
- package/dist/esm/models/ArchiveKey.js +1 -1
- package/dist/esm/models/ArchivePath.d.ts +3 -3
- package/dist/esm/models/ArchivePath.js +1 -1
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/objToQuery.d.ts +1 -1
- package/dist/esm/objToQuery.js +8 -8
- package/package.json +7 -16
- package/src/Archivist/ApiUtil.spec.ts +7 -1
- package/src/Archivist/Block/Api.ts +2 -2
- package/src/Archivist/Node/Api.spec.ts +3 -3
- package/src/Archivist/Payload/Api.spec.ts +8 -5
- package/src/Archivist/Payload/Api.ts +5 -7
- package/src/Archivist/Payload/Schema/Api.spec.ts +2 -2
- package/src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts +3 -3
- package/src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts +3 -3
- package/src/Test/testBoundWitness.ts +2 -2
- package/src/Test/testPayload.ts +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Schema';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Schema';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Schema';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Schema';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './Api';
|
|
3
|
-
export * from './Archive';
|
|
4
|
-
export * from './Archives';
|
|
5
|
-
export * from './Block';
|
|
6
|
-
export * from './Payload';
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Api';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './Archives';
|
|
5
|
+
export * from './Block';
|
|
6
|
+
export * from './Payload';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './Api';
|
|
3
|
-
export * from './Archive';
|
|
4
|
-
export * from './Archives';
|
|
5
|
-
export * from './Block';
|
|
6
|
-
export * from './Payload';
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Api';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './Archives';
|
|
5
|
+
export * from './Block';
|
|
6
|
+
export * from './Payload';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/Base.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Axios } from 'axios';
|
|
2
|
-
import { XyoApiConfig, XyoApiEnvelope, XyoApiError, XyoApiReportable, XyoApiResponse, XyoApiResponseBody, XyoApiResponseTuple } from './models';
|
|
3
|
-
export declare class XyoApiBase<C extends XyoApiConfig = XyoApiConfig> implements XyoApiReportable {
|
|
4
|
-
readonly config: C;
|
|
5
|
-
protected axios: Axios;
|
|
6
|
-
constructor(config: C);
|
|
7
|
-
private axiosHeaders;
|
|
8
|
-
private axiosConfig;
|
|
9
|
-
onError(error: XyoApiError, depth?: number): void;
|
|
10
|
-
onFailure(response: XyoApiResponse, depth?: number): void;
|
|
11
|
-
onSuccess(response: XyoApiResponse, depth?: number): void;
|
|
12
|
-
protected get root(): string;
|
|
13
|
-
protected get query(): string;
|
|
14
|
-
private resolveRoot;
|
|
15
|
-
private static resolveResponse;
|
|
16
|
-
protected handleMonitorResponseError<T>(error: XyoApiError, trapAxiosException: boolean): XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined;
|
|
17
|
-
protected monitorResponse<T>(closure: () => Promise<XyoApiResponse<XyoApiEnvelope<T>>>): Promise<XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined>;
|
|
18
|
-
protected getEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
19
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
20
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
21
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
22
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
23
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
24
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
25
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
26
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
27
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
28
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
29
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
30
|
-
private static shapeResponse;
|
|
31
|
-
protected get headers(): Record<string, string>;
|
|
32
|
-
get authenticated(): boolean;
|
|
33
|
-
}
|
|
1
|
+
import { Axios } from 'axios';
|
|
2
|
+
import { XyoApiConfig, XyoApiEnvelope, XyoApiError, XyoApiReportable, XyoApiResponse, XyoApiResponseBody, XyoApiResponseTuple } from './models';
|
|
3
|
+
export declare class XyoApiBase<C extends XyoApiConfig = XyoApiConfig> implements XyoApiReportable {
|
|
4
|
+
readonly config: C;
|
|
5
|
+
protected axios: Axios;
|
|
6
|
+
constructor(config: C);
|
|
7
|
+
private axiosHeaders;
|
|
8
|
+
private axiosConfig;
|
|
9
|
+
onError(error: XyoApiError, depth?: number): void;
|
|
10
|
+
onFailure(response: XyoApiResponse, depth?: number): void;
|
|
11
|
+
onSuccess(response: XyoApiResponse, depth?: number): void;
|
|
12
|
+
protected get root(): string;
|
|
13
|
+
protected get query(): string;
|
|
14
|
+
private resolveRoot;
|
|
15
|
+
private static resolveResponse;
|
|
16
|
+
protected handleMonitorResponseError<T>(error: XyoApiError, trapAxiosException: boolean): XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined;
|
|
17
|
+
protected monitorResponse<T>(closure: () => Promise<XyoApiResponse<XyoApiEnvelope<T>>>): Promise<XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined>;
|
|
18
|
+
protected getEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
19
|
+
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
20
|
+
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
21
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
22
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
23
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
24
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
25
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
26
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
27
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
28
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
29
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
30
|
+
private static shapeResponse;
|
|
31
|
+
protected get headers(): Record<string, string>;
|
|
32
|
+
get authenticated(): boolean;
|
|
33
|
+
}
|
package/dist/esm/Base.js
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
import { Axios } from 'axios';
|
|
2
|
-
import { gzip } from 'pako';
|
|
3
|
-
export class XyoApiBase {
|
|
4
|
-
constructor(config) {
|
|
5
|
-
this.config = config;
|
|
6
|
-
this.axios = new Axios(this.axiosConfig());
|
|
7
|
-
}
|
|
8
|
-
axiosHeaders() {
|
|
9
|
-
return {
|
|
10
|
-
...this.headers,
|
|
11
|
-
Accept: 'application/json, text/plain, *.*',
|
|
12
|
-
'Content-Type': 'application/json',
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
axiosConfig() {
|
|
16
|
-
return {
|
|
17
|
-
headers: this.axiosHeaders(),
|
|
18
|
-
transformRequest: (data, headers) => {
|
|
19
|
-
const json = JSON.stringify(data);
|
|
20
|
-
if (headers && data) {
|
|
21
|
-
if (json.length > (this.config.compressionThreshold ?? 1024)) {
|
|
22
|
-
headers['Content-Encoding'] = 'gzip';
|
|
23
|
-
return gzip(JSON.stringify(data)).buffer;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return JSON.stringify(data);
|
|
27
|
-
},
|
|
28
|
-
transformResponse: (data) => {
|
|
29
|
-
try {
|
|
30
|
-
return JSON.parse(data);
|
|
31
|
-
}
|
|
32
|
-
catch (ex) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
onError(error, depth = 0) {
|
|
39
|
-
this.config.reportableParent?.onError?.(error, depth + 1);
|
|
40
|
-
this.config.onError?.(error, depth);
|
|
41
|
-
}
|
|
42
|
-
onFailure(response, depth = 0) {
|
|
43
|
-
this.config.reportableParent?.onFailure?.(response, depth + 1);
|
|
44
|
-
this.config.onFailure?.(response, depth);
|
|
45
|
-
}
|
|
46
|
-
onSuccess(response, depth = 0) {
|
|
47
|
-
this.config.reportableParent?.onSuccess?.(response, depth + 1);
|
|
48
|
-
this.config.onSuccess?.(response, depth);
|
|
49
|
-
}
|
|
50
|
-
get root() {
|
|
51
|
-
return this.config.root ?? '/';
|
|
52
|
-
}
|
|
53
|
-
get query() {
|
|
54
|
-
return this.config.query ?? '';
|
|
55
|
-
}
|
|
56
|
-
resolveRoot() {
|
|
57
|
-
return `${this.config.apiDomain}${this.root}`;
|
|
58
|
-
}
|
|
59
|
-
static resolveResponse(result) {
|
|
60
|
-
return [result?.data?.data, result?.data, result];
|
|
61
|
-
}
|
|
62
|
-
handleMonitorResponseError(error, trapAxiosException) {
|
|
63
|
-
if (!error.isXyoError) {
|
|
64
|
-
throw error;
|
|
65
|
-
}
|
|
66
|
-
if (trapAxiosException) {
|
|
67
|
-
error.response ? this.onFailure(error.response) : this.onError(error);
|
|
68
|
-
if (this.config.throwFailure) {
|
|
69
|
-
throw error;
|
|
70
|
-
}
|
|
71
|
-
return error.response;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async monitorResponse(closure) {
|
|
75
|
-
//we use this to prevent accidental catching on exceptions in callbacks
|
|
76
|
-
let trapAxiosException = true;
|
|
77
|
-
try {
|
|
78
|
-
const response = await closure();
|
|
79
|
-
trapAxiosException = false;
|
|
80
|
-
response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
|
|
81
|
-
return response;
|
|
82
|
-
}
|
|
83
|
-
catch (ex) {
|
|
84
|
-
this.handleMonitorResponseError(ex, trapAxiosException);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
async getEndpoint(endPoint = '', responseType) {
|
|
88
|
-
const response = await this.monitorResponse(async () => {
|
|
89
|
-
return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
90
|
-
});
|
|
91
|
-
return XyoApiBase.shapeResponse(response, responseType);
|
|
92
|
-
}
|
|
93
|
-
async postEndpoint(endPoint = '', data, responseType) {
|
|
94
|
-
const response = await this.monitorResponse(async () => {
|
|
95
|
-
return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
96
|
-
});
|
|
97
|
-
return XyoApiBase.shapeResponse(response, responseType);
|
|
98
|
-
}
|
|
99
|
-
async putEndpoint(endPoint = '', data, responseType) {
|
|
100
|
-
const response = await this.monitorResponse(async () => {
|
|
101
|
-
return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
102
|
-
});
|
|
103
|
-
return XyoApiBase.shapeResponse(response, responseType);
|
|
104
|
-
}
|
|
105
|
-
async deleteEndpoint(endPoint = '', responseType) {
|
|
106
|
-
const response = await this.monitorResponse(async () => {
|
|
107
|
-
return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
108
|
-
});
|
|
109
|
-
return XyoApiBase.shapeResponse(response, responseType);
|
|
110
|
-
}
|
|
111
|
-
static shapeResponse(response, responseType) {
|
|
112
|
-
const resolvedResponse = XyoApiBase.resolveResponse(response);
|
|
113
|
-
return responseType === 'tuple' ? resolvedResponse : resolvedResponse[0];
|
|
114
|
-
}
|
|
115
|
-
get headers() {
|
|
116
|
-
const headers = {};
|
|
117
|
-
if (this.config.jwtToken) {
|
|
118
|
-
headers.Authorization = `Bearer ${this.config.jwtToken}`;
|
|
119
|
-
}
|
|
120
|
-
if (this.config.apiKey) {
|
|
121
|
-
headers['x-api-key'] = this.config.apiKey;
|
|
122
|
-
}
|
|
123
|
-
return headers;
|
|
124
|
-
}
|
|
125
|
-
get authenticated() {
|
|
126
|
-
return !!this.config.apiKey || !!this.config.jwtToken;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
1
|
+
import { Axios } from 'axios';
|
|
2
|
+
import { gzip } from 'pako';
|
|
3
|
+
export class XyoApiBase {
|
|
4
|
+
constructor(config) {
|
|
5
|
+
this.config = config;
|
|
6
|
+
this.axios = new Axios(this.axiosConfig());
|
|
7
|
+
}
|
|
8
|
+
axiosHeaders() {
|
|
9
|
+
return {
|
|
10
|
+
...this.headers,
|
|
11
|
+
Accept: 'application/json, text/plain, *.*',
|
|
12
|
+
'Content-Type': 'application/json',
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
axiosConfig() {
|
|
16
|
+
return {
|
|
17
|
+
headers: this.axiosHeaders(),
|
|
18
|
+
transformRequest: (data, headers) => {
|
|
19
|
+
const json = JSON.stringify(data);
|
|
20
|
+
if (headers && data) {
|
|
21
|
+
if (json.length > (this.config.compressionThreshold ?? 1024)) {
|
|
22
|
+
headers['Content-Encoding'] = 'gzip';
|
|
23
|
+
return gzip(JSON.stringify(data)).buffer;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return JSON.stringify(data);
|
|
27
|
+
},
|
|
28
|
+
transformResponse: (data) => {
|
|
29
|
+
try {
|
|
30
|
+
return JSON.parse(data);
|
|
31
|
+
}
|
|
32
|
+
catch (ex) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
onError(error, depth = 0) {
|
|
39
|
+
this.config.reportableParent?.onError?.(error, depth + 1);
|
|
40
|
+
this.config.onError?.(error, depth);
|
|
41
|
+
}
|
|
42
|
+
onFailure(response, depth = 0) {
|
|
43
|
+
this.config.reportableParent?.onFailure?.(response, depth + 1);
|
|
44
|
+
this.config.onFailure?.(response, depth);
|
|
45
|
+
}
|
|
46
|
+
onSuccess(response, depth = 0) {
|
|
47
|
+
this.config.reportableParent?.onSuccess?.(response, depth + 1);
|
|
48
|
+
this.config.onSuccess?.(response, depth);
|
|
49
|
+
}
|
|
50
|
+
get root() {
|
|
51
|
+
return this.config.root ?? '/';
|
|
52
|
+
}
|
|
53
|
+
get query() {
|
|
54
|
+
return this.config.query ?? '';
|
|
55
|
+
}
|
|
56
|
+
resolveRoot() {
|
|
57
|
+
return `${this.config.apiDomain}${this.root}`;
|
|
58
|
+
}
|
|
59
|
+
static resolveResponse(result) {
|
|
60
|
+
return [result?.data?.data, result?.data, result];
|
|
61
|
+
}
|
|
62
|
+
handleMonitorResponseError(error, trapAxiosException) {
|
|
63
|
+
if (!error.isXyoError) {
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
if (trapAxiosException) {
|
|
67
|
+
error.response ? this.onFailure(error.response) : this.onError(error);
|
|
68
|
+
if (this.config.throwFailure) {
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
return error.response;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async monitorResponse(closure) {
|
|
75
|
+
//we use this to prevent accidental catching on exceptions in callbacks
|
|
76
|
+
let trapAxiosException = true;
|
|
77
|
+
try {
|
|
78
|
+
const response = await closure();
|
|
79
|
+
trapAxiosException = false;
|
|
80
|
+
response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
|
|
81
|
+
return response;
|
|
82
|
+
}
|
|
83
|
+
catch (ex) {
|
|
84
|
+
this.handleMonitorResponseError(ex, trapAxiosException);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async getEndpoint(endPoint = '', responseType) {
|
|
88
|
+
const response = await this.monitorResponse(async () => {
|
|
89
|
+
return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
90
|
+
});
|
|
91
|
+
return XyoApiBase.shapeResponse(response, responseType);
|
|
92
|
+
}
|
|
93
|
+
async postEndpoint(endPoint = '', data, responseType) {
|
|
94
|
+
const response = await this.monitorResponse(async () => {
|
|
95
|
+
return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
96
|
+
});
|
|
97
|
+
return XyoApiBase.shapeResponse(response, responseType);
|
|
98
|
+
}
|
|
99
|
+
async putEndpoint(endPoint = '', data, responseType) {
|
|
100
|
+
const response = await this.monitorResponse(async () => {
|
|
101
|
+
return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
102
|
+
});
|
|
103
|
+
return XyoApiBase.shapeResponse(response, responseType);
|
|
104
|
+
}
|
|
105
|
+
async deleteEndpoint(endPoint = '', responseType) {
|
|
106
|
+
const response = await this.monitorResponse(async () => {
|
|
107
|
+
return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
108
|
+
});
|
|
109
|
+
return XyoApiBase.shapeResponse(response, responseType);
|
|
110
|
+
}
|
|
111
|
+
static shapeResponse(response, responseType) {
|
|
112
|
+
const resolvedResponse = XyoApiBase.resolveResponse(response);
|
|
113
|
+
return responseType === 'tuple' ? resolvedResponse : resolvedResponse[0];
|
|
114
|
+
}
|
|
115
|
+
get headers() {
|
|
116
|
+
const headers = {};
|
|
117
|
+
if (this.config.jwtToken) {
|
|
118
|
+
headers.Authorization = `Bearer ${this.config.jwtToken}`;
|
|
119
|
+
}
|
|
120
|
+
if (this.config.apiKey) {
|
|
121
|
+
headers['x-api-key'] = this.config.apiKey;
|
|
122
|
+
}
|
|
123
|
+
return headers;
|
|
124
|
+
}
|
|
125
|
+
get authenticated() {
|
|
126
|
+
return !!this.config.apiKey || !!this.config.jwtToken;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
129
|
//# sourceMappingURL=Base.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiConfig } from '@xylabs/sdk-js';
|
|
2
|
-
import { GetLocationQueryResponse } from './models';
|
|
3
|
-
import { LocationQueryCreationResponse, SupportedLocationQueryCreationRequest } from './Queries';
|
|
4
|
-
declare class XyoLocationDivinerApi {
|
|
5
|
-
config: ApiConfig;
|
|
6
|
-
constructor(config: ApiConfig);
|
|
7
|
-
private get axiosRequestConfig();
|
|
8
|
-
getLocationQuery(hash: string): Promise<GetLocationQueryResponse>;
|
|
9
|
-
postLocationQuery(request: SupportedLocationQueryCreationRequest): Promise<LocationQueryCreationResponse>;
|
|
10
|
-
}
|
|
11
|
-
export { XyoLocationDivinerApi };
|
|
1
|
+
import { ApiConfig } from '@xylabs/sdk-js';
|
|
2
|
+
import { GetLocationQueryResponse } from './models';
|
|
3
|
+
import { LocationQueryCreationResponse, SupportedLocationQueryCreationRequest } from './Queries';
|
|
4
|
+
declare class XyoLocationDivinerApi {
|
|
5
|
+
config: ApiConfig;
|
|
6
|
+
constructor(config: ApiConfig);
|
|
7
|
+
private get axiosRequestConfig();
|
|
8
|
+
getLocationQuery(hash: string): Promise<GetLocationQueryResponse>;
|
|
9
|
+
postLocationQuery(request: SupportedLocationQueryCreationRequest): Promise<LocationQueryCreationResponse>;
|
|
10
|
+
}
|
|
11
|
+
export { XyoLocationDivinerApi };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import { getLocationDivinerApiResponseTransformer } from './LocationDivinerApiResponseTransformer';
|
|
3
|
-
class XyoLocationDivinerApi {
|
|
4
|
-
constructor(config) {
|
|
5
|
-
this.config = config;
|
|
6
|
-
}
|
|
7
|
-
get axiosRequestConfig() {
|
|
8
|
-
return {
|
|
9
|
-
transformResponse: getLocationDivinerApiResponseTransformer(),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
async getLocationQuery(hash) {
|
|
13
|
-
return (await axios.get(`${this.config.apiDomain}/location/query/${hash}`, this.axiosRequestConfig)).data;
|
|
14
|
-
}
|
|
15
|
-
async postLocationQuery(request) {
|
|
16
|
-
return (await axios.post(`${this.config.apiDomain}/location/query`, { ...request }, this.axiosRequestConfig)).data;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export { XyoLocationDivinerApi };
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { getLocationDivinerApiResponseTransformer } from './LocationDivinerApiResponseTransformer';
|
|
3
|
+
class XyoLocationDivinerApi {
|
|
4
|
+
constructor(config) {
|
|
5
|
+
this.config = config;
|
|
6
|
+
}
|
|
7
|
+
get axiosRequestConfig() {
|
|
8
|
+
return {
|
|
9
|
+
transformResponse: getLocationDivinerApiResponseTransformer(),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
async getLocationQuery(hash) {
|
|
13
|
+
return (await axios.get(`${this.config.apiDomain}/location/query/${hash}`, this.axiosRequestConfig)).data;
|
|
14
|
+
}
|
|
15
|
+
async postLocationQuery(request) {
|
|
16
|
+
return (await axios.post(`${this.config.apiDomain}/location/query`, { ...request }, this.axiosRequestConfig)).data;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export { XyoLocationDivinerApi };
|
|
20
20
|
//# sourceMappingURL=LocationDivinerApi.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AxiosResponseTransformer } from 'axios';
|
|
2
|
-
export declare const locationDivinerApiResponseTransformer: AxiosResponseTransformer;
|
|
3
|
-
/**
|
|
4
|
-
* Gets the response transformers for the LocationDiviner API. Done as a method instead of a property
|
|
5
|
-
* to allow detection of dynamically added response transformers.
|
|
6
|
-
* @param axiosInstance The axios instance (defaults to the global instance if none provided)
|
|
7
|
-
* @returns the response transformers for the LocationDiviner API
|
|
8
|
-
*/
|
|
9
|
-
export declare const getLocationDivinerApiResponseTransformer: (axiosInstance?: import("axios").AxiosStatic) => AxiosResponseTransformer[];
|
|
1
|
+
import { AxiosResponseTransformer } from 'axios';
|
|
2
|
+
export declare const locationDivinerApiResponseTransformer: AxiosResponseTransformer;
|
|
3
|
+
/**
|
|
4
|
+
* Gets the response transformers for the LocationDiviner API. Done as a method instead of a property
|
|
5
|
+
* to allow detection of dynamically added response transformers.
|
|
6
|
+
* @param axiosInstance The axios instance (defaults to the global instance if none provided)
|
|
7
|
+
* @returns the response transformers for the LocationDiviner API
|
|
8
|
+
*/
|
|
9
|
+
export declare const getLocationDivinerApiResponseTransformer: (axiosInstance?: import("axios").AxiosStatic) => AxiosResponseTransformer[];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
export const locationDivinerApiResponseTransformer = (data, _headers) => {
|
|
3
|
-
return data.data;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Gets the response transformers for the LocationDiviner API. Done as a method instead of a property
|
|
7
|
-
* to allow detection of dynamically added response transformers.
|
|
8
|
-
* @param axiosInstance The axios instance (defaults to the global instance if none provided)
|
|
9
|
-
* @returns the response transformers for the LocationDiviner API
|
|
10
|
-
*/
|
|
11
|
-
export const getLocationDivinerApiResponseTransformer = (axiosInstance = axios) => {
|
|
12
|
-
// If there's any existing response transforms preserve them and
|
|
13
|
-
// append our response transform, otherwise just return ours
|
|
14
|
-
return axiosInstance.defaults.transformResponse
|
|
15
|
-
? [].concat(axiosInstance.defaults.transformResponse, locationDivinerApiResponseTransformer)
|
|
16
|
-
: [locationDivinerApiResponseTransformer];
|
|
17
|
-
};
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
export const locationDivinerApiResponseTransformer = (data, _headers) => {
|
|
3
|
+
return data.data;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Gets the response transformers for the LocationDiviner API. Done as a method instead of a property
|
|
7
|
+
* to allow detection of dynamically added response transformers.
|
|
8
|
+
* @param axiosInstance The axios instance (defaults to the global instance if none provided)
|
|
9
|
+
* @returns the response transformers for the LocationDiviner API
|
|
10
|
+
*/
|
|
11
|
+
export const getLocationDivinerApiResponseTransformer = (axiosInstance = axios) => {
|
|
12
|
+
// If there's any existing response transforms preserve them and
|
|
13
|
+
// append our response transform, otherwise just return ours
|
|
14
|
+
return axiosInstance.defaults.transformResponse
|
|
15
|
+
? [].concat(axiosInstance.defaults.transformResponse, locationDivinerApiResponseTransformer)
|
|
16
|
+
: [locationDivinerApiResponseTransformer];
|
|
17
|
+
};
|
|
18
18
|
//# sourceMappingURL=LocationDivinerApiResponseTransformer.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface LocationHeatmapPointProperties {
|
|
2
|
-
hash: string;
|
|
3
|
-
value: number;
|
|
4
|
-
}
|
|
1
|
+
export interface LocationHeatmapPointProperties {
|
|
2
|
+
hash: string;
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=LocationHeatmapPointProperties.js.map
|
package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { LocationWitnessPayloadSchema } from '../../Witnesses';
|
|
2
|
-
export declare type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
3
|
-
export declare const locationHeatmapQuerySchema: LocationHeatmapQuerySchema;
|
|
4
|
-
export declare type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
5
|
-
export declare const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema;
|
|
6
|
-
export declare type LocationHeatmapQuery = {
|
|
7
|
-
startTime?: string;
|
|
8
|
-
stopTime?: string;
|
|
9
|
-
schema: LocationWitnessPayloadSchema;
|
|
10
|
-
};
|
|
11
|
-
export declare const isLocationHeatmapQuery: (query: Record<string, unknown>) => query is LocationHeatmapQuery;
|
|
1
|
+
import { LocationWitnessPayloadSchema } from '../../Witnesses';
|
|
2
|
+
export declare type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
3
|
+
export declare const locationHeatmapQuerySchema: LocationHeatmapQuerySchema;
|
|
4
|
+
export declare type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
5
|
+
export declare const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema;
|
|
6
|
+
export declare type LocationHeatmapQuery = {
|
|
7
|
+
startTime?: string;
|
|
8
|
+
stopTime?: string;
|
|
9
|
+
schema: LocationWitnessPayloadSchema;
|
|
10
|
+
};
|
|
11
|
+
export declare const isLocationHeatmapQuery: (query: Record<string, unknown>) => query is LocationHeatmapQuery;
|
package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const locationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
2
|
-
export const locationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
3
|
-
export const isLocationHeatmapQuery = (query) => {
|
|
4
|
-
return query && query?.schema === locationHeatmapQuerySchema;
|
|
5
|
-
};
|
|
1
|
+
export const locationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
2
|
+
export const locationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
3
|
+
export const isLocationHeatmapQuery = (query) => {
|
|
4
|
+
return query && query?.schema === locationHeatmapQuerySchema;
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=LocationHeatmapQuery.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './LocationHeatmapPointProperties';
|
|
2
|
-
export * from './LocationHeatmapQuery';
|
|
1
|
+
export * from './LocationHeatmapPointProperties';
|
|
2
|
+
export * from './LocationHeatmapQuery';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './LocationHeatmapPointProperties';
|
|
2
|
-
export * from './LocationHeatmapQuery';
|
|
1
|
+
export * from './LocationHeatmapPointProperties';
|
|
2
|
+
export * from './LocationHeatmapQuery';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { LocationWitnessPayloadSchema } from '../../Witnesses';
|
|
2
|
-
export declare type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
3
|
-
export declare const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema;
|
|
4
|
-
export declare type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
5
|
-
export declare const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSchema;
|
|
6
|
-
export declare type LocationQuadkeyHeatmapQuery = {
|
|
7
|
-
startTime?: string;
|
|
8
|
-
stopTime?: string;
|
|
9
|
-
schema: LocationWitnessPayloadSchema;
|
|
10
|
-
};
|
|
11
|
-
export declare const isLocationQuadkeyHeatmapQuery: (query: Record<string, unknown>) => query is LocationQuadkeyHeatmapQuery;
|
|
1
|
+
import { LocationWitnessPayloadSchema } from '../../Witnesses';
|
|
2
|
+
export declare type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
3
|
+
export declare const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema;
|
|
4
|
+
export declare type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
5
|
+
export declare const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSchema;
|
|
6
|
+
export declare type LocationQuadkeyHeatmapQuery = {
|
|
7
|
+
startTime?: string;
|
|
8
|
+
stopTime?: string;
|
|
9
|
+
schema: LocationWitnessPayloadSchema;
|
|
10
|
+
};
|
|
11
|
+
export declare const isLocationQuadkeyHeatmapQuery: (query: Record<string, unknown>) => query is LocationQuadkeyHeatmapQuery;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const locationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
2
|
-
export const locationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
3
|
-
export const isLocationQuadkeyHeatmapQuery = (query) => {
|
|
4
|
-
return query && query?.schema === locationQuadkeyHeatmapQuerySchema;
|
|
5
|
-
};
|
|
1
|
+
export const locationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
2
|
+
export const locationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
3
|
+
export const isLocationQuadkeyHeatmapQuery = (query) => {
|
|
4
|
+
return query && query?.schema === locationQuadkeyHeatmapQuerySchema;
|
|
5
|
+
};
|
|
6
6
|
//# sourceMappingURL=LocationQuadkeyHeatmapQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './LocationQuadkeyHeatmapQuery';
|
|
1
|
+
export * from './LocationQuadkeyHeatmapQuery';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './LocationQuadkeyHeatmapQuery';
|
|
1
|
+
export * from './LocationQuadkeyHeatmapQuery';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|