@xyo-network/api 2.75.0 → 2.75.2
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/browser/Api/Api.d.cts +12 -0
- package/dist/browser/Api/Api.d.cts.map +1 -0
- package/dist/browser/Api/Api.js +3 -155
- package/dist/browser/Api/Api.js.map +1 -1
- package/dist/browser/Api/index.d.cts +2 -0
- package/dist/browser/Api/index.d.cts.map +1 -0
- package/dist/browser/Api/index.js +1 -166
- package/dist/browser/Api/index.js.map +1 -1
- package/dist/browser/Base.d.cts +32 -0
- package/dist/browser/Base.d.cts.map +1 -0
- package/dist/browser/Base.js +7 -8
- package/dist/browser/Base.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts +12 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js +5 -16
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts +10 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +2 -3
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts +5 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +3 -4
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +2 -11
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +3 -4
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts +2 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +1 -11
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts +18 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts +5 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts +6 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +2 -3
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts +8 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +3 -4
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +2 -11
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.cts +7 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.js +6 -42
- package/dist/browser/Diviner/LocationDiviner/Queries/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts +13 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -2
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts +21 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -2
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.cts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js +2 -9
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/index.d.cts +5 -0
- package/dist/browser/Diviner/LocationDiviner/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.js +4 -82
- package/dist/browser/Diviner/LocationDiviner/index.js.map +1 -1
- package/dist/browser/Diviner/LocationDiviner/models.d.cts +5 -0
- package/dist/browser/Diviner/LocationDiviner/models.d.cts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.cts +11 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.js +1 -2
- package/dist/browser/Diviner/RemoteDivinerConfig.js.map +1 -1
- package/dist/browser/Diviner/RemoteDivinerError.d.cts +6 -0
- package/dist/browser/Diviner/RemoteDivinerError.d.cts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.js +2 -3
- package/dist/browser/Diviner/RemoteDivinerError.js.map +1 -1
- package/dist/browser/Diviner/index.d.cts +3 -0
- package/dist/browser/Diviner/index.d.cts.map +1 -0
- package/dist/browser/Diviner/index.js +2 -86
- package/dist/browser/Diviner/index.js.map +1 -1
- package/dist/browser/Simple.d.cts +22 -0
- package/dist/browser/Simple.d.cts.map +1 -0
- package/dist/browser/Simple.js +4 -109
- package/dist/browser/Simple.js.map +1 -1
- package/dist/browser/Test/index.d.cts +3 -0
- package/dist/browser/Test/index.d.cts.map +1 -0
- package/dist/browser/Test/index.js +2 -32
- package/dist/browser/Test/index.js.map +1 -1
- package/dist/browser/Test/testBoundWitness.d.cts +4 -0
- package/dist/browser/Test/testBoundWitness.d.cts.map +1 -0
- package/dist/browser/Test/testBoundWitness.js +1 -2
- package/dist/browser/Test/testBoundWitness.js.map +1 -1
- package/dist/browser/Test/testPayload.d.cts +6 -0
- package/dist/browser/Test/testPayload.d.cts.map +1 -0
- package/dist/browser/Test/testPayload.js +2 -3
- package/dist/browser/Test/testPayload.js.map +1 -1
- package/dist/browser/WithArchive.d.cts +4 -0
- package/dist/browser/WithArchive.d.cts.map +1 -0
- package/dist/browser/index.d.cts +7 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +6 -253
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/ArchivePath.d.cts +4 -0
- package/dist/browser/models/ArchivePath.d.cts.map +1 -0
- package/dist/browser/models/index.d.cts +2 -0
- package/dist/browser/models/index.d.cts.map +1 -0
- package/dist/browser/models/index.js +1 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/objToQuery.d.cts +2 -0
- package/dist/browser/objToQuery.d.cts.map +1 -0
- package/dist/browser/objToQuery.js +1 -2
- package/dist/browser/objToQuery.js.map +1 -1
- package/dist/docs.json +16171 -0
- package/dist/node/Api/Api.d.cts +12 -0
- package/dist/node/Api/Api.d.cts.map +1 -0
- package/dist/node/Api/Api.js +161 -4
- package/dist/node/Api/Api.js.map +1 -1
- package/dist/node/Api/Api.mjs +159 -3
- package/dist/node/Api/Api.mjs.map +1 -1
- package/dist/node/Api/index.d.cts +2 -0
- package/dist/node/Api/index.d.cts.map +1 -0
- package/dist/node/Api/index.js +178 -3
- package/dist/node/Api/index.js.map +1 -1
- package/dist/node/Api/index.mjs +170 -1
- package/dist/node/Api/index.mjs.map +1 -1
- package/dist/node/Base.d.cts +32 -0
- package/dist/node/Base.d.cts.map +1 -0
- package/dist/node/Base.js +20 -14
- package/dist/node/Base.js.map +1 -1
- package/dist/node/Base.mjs +19 -14
- package/dist/node/Base.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.cts +12 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js +18 -6
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs +16 -5
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts +10 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +4 -2
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs +3 -2
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +6 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs +5 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +21 -5
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs +11 -2
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +6 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs +5 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +21 -3
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs +11 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts +18 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts +6 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +4 -2
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs +3 -2
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts +8 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +6 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs +5 -4
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +21 -5
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs +11 -2
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/index.d.cts +7 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.js +59 -13
- package/dist/node/Diviner/LocationDiviner/Queries/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Queries/index.mjs +42 -6
- package/dist/node/Diviner/LocationDiviner/Queries/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts +13 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +3 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs +2 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts +21 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js +3 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs +2 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.cts +3 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.js +18 -5
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs +9 -2
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/index.d.cts +5 -0
- package/dist/node/Diviner/LocationDiviner/index.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/index.js +102 -9
- package/dist/node/Diviner/LocationDiviner/index.js.map +1 -1
- package/dist/node/Diviner/LocationDiviner/index.mjs +82 -4
- package/dist/node/Diviner/LocationDiviner/index.mjs.map +1 -1
- package/dist/node/Diviner/LocationDiviner/models.d.cts +5 -0
- package/dist/node/Diviner/LocationDiviner/models.d.cts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/models.js +2 -0
- package/dist/node/Diviner/LocationDiviner/models.js.map +1 -1
- package/dist/node/Diviner/RemoteDivinerConfig.d.cts +11 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.js +3 -1
- package/dist/node/Diviner/RemoteDivinerConfig.js.map +1 -1
- package/dist/node/Diviner/RemoteDivinerConfig.mjs +2 -1
- package/dist/node/Diviner/RemoteDivinerConfig.mjs.map +1 -1
- package/dist/node/Diviner/RemoteDivinerError.d.cts +6 -0
- package/dist/node/Diviner/RemoteDivinerError.d.cts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.js +4 -2
- package/dist/node/Diviner/RemoteDivinerError.js.map +1 -1
- package/dist/node/Diviner/RemoteDivinerError.mjs +3 -2
- package/dist/node/Diviner/RemoteDivinerError.mjs.map +1 -1
- package/dist/node/Diviner/index.d.cts +3 -0
- package/dist/node/Diviner/index.d.cts.map +1 -0
- package/dist/node/Diviner/index.js +107 -5
- package/dist/node/Diviner/index.js.map +1 -1
- package/dist/node/Diviner/index.mjs +86 -2
- package/dist/node/Diviner/index.mjs.map +1 -1
- package/dist/node/Simple.d.cts +22 -0
- package/dist/node/Simple.d.cts.map +1 -0
- package/dist/node/Simple.js +118 -6
- package/dist/node/Simple.js.map +1 -1
- package/dist/node/Simple.mjs +113 -4
- package/dist/node/Simple.mjs.map +1 -1
- package/dist/node/Test/index.d.cts +3 -0
- package/dist/node/Test/index.d.cts.map +1 -0
- package/dist/node/Test/index.js +42 -5
- package/dist/node/Test/index.js.map +1 -1
- package/dist/node/Test/index.mjs +32 -2
- package/dist/node/Test/index.mjs.map +1 -1
- package/dist/node/Test/testBoundWitness.d.cts +4 -0
- package/dist/node/Test/testBoundWitness.d.cts.map +1 -0
- package/dist/node/Test/testBoundWitness.js +3 -1
- package/dist/node/Test/testBoundWitness.js.map +1 -1
- package/dist/node/Test/testBoundWitness.mjs +2 -1
- package/dist/node/Test/testBoundWitness.mjs.map +1 -1
- package/dist/node/Test/testPayload.d.cts +6 -0
- package/dist/node/Test/testPayload.d.cts.map +1 -0
- package/dist/node/Test/testPayload.js +4 -2
- package/dist/node/Test/testPayload.js.map +1 -1
- package/dist/node/Test/testPayload.mjs +3 -2
- package/dist/node/Test/testPayload.mjs.map +1 -1
- package/dist/node/WithArchive.d.cts +4 -0
- package/dist/node/WithArchive.d.cts.map +1 -0
- package/dist/node/WithArchive.js +2 -0
- package/dist/node/WithArchive.js.map +1 -1
- package/dist/node/index.d.cts +7 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +281 -13
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +257 -6
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/models/ArchivePath.d.cts +4 -0
- package/dist/node/models/ArchivePath.d.cts.map +1 -0
- package/dist/node/models/ArchivePath.js +2 -0
- package/dist/node/models/ArchivePath.js.map +1 -1
- package/dist/node/models/index.d.cts +2 -0
- package/dist/node/models/index.d.cts.map +1 -0
- package/dist/node/models/index.js +2 -6
- package/dist/node/models/index.js.map +1 -1
- package/dist/node/models/index.mjs +0 -1
- package/dist/node/models/index.mjs.map +1 -1
- package/dist/node/objToQuery.d.cts +2 -0
- package/dist/node/objToQuery.d.cts.map +1 -0
- package/dist/node/objToQuery.js +3 -1
- package/dist/node/objToQuery.js.map +1 -1
- package/dist/node/objToQuery.mjs +2 -1
- package/dist/node/objToQuery.mjs.map +1 -1
- package/package.json +12 -12
package/dist/node/Simple.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Simple.ts"],"sourcesContent":["import { ApiConfig, ApiResponseBody, ApiResponseTuple, ApiResponseTupleOrBody, ApiResponseType } from '@xyo-network/api-models'\nimport { Payload, PayloadFindFilter } from '@xyo-network/payload-model'\n\nimport { ApiBase } from './Base'\nimport { objToQuery } from './objToQuery'\n\nexport type ApiSimpleQuery = PayloadFindFilter\n\nexport class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {\n async delete(): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async delete(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.deleteEndpoint(undefined, 'tuple')\n default:\n return await this.deleteEndpoint(undefined)\n }\n }\n\n async find(query?: Q): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async find(query = {}, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(objToQuery(query), 'tuple')\n default:\n return await this.getEndpoint(objToQuery(query))\n }\n }\n\n async get(): Promise<ApiResponseBody<T>>\n async get(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async get(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(undefined, 'tuple')\n default:\n return await this.getEndpoint(undefined)\n }\n }\n\n async post(data?: D): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async post(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.postEndpoint(undefined, data, 'tuple')\n default:\n return await this.postEndpoint(undefined, data)\n }\n }\n\n async put(data?: D): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async put(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.putEndpoint(undefined, data, 'tuple')\n default:\n return await this.putEndpoint(undefined, data)\n }\n }\n}\n"],"mappings":"AAGA,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAIpB,MAAM,kBAAkH,QAAW;AAAA,EAIxI,MAAM,OAAO,cAAoE;AAC/E,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,eAAe,QAAW,OAAO;AAAA,MACrD;AACE,eAAO,MAAM,KAAK,eAAe,MAAS;AAAA,IAC9C;AAAA,EACF;AAAA,EAKA,MAAM,KAAK,QAAQ,CAAC,GAAG,cAAoE;AACzF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,WAAW,KAAK,GAAG,OAAO;AAAA,MAC1D;AACE,eAAO,MAAM,KAAK,YAAY,WAAW,KAAK,CAAC;AAAA,IACnD;AAAA,EACF;AAAA,EAKA,MAAM,IAAI,cAAoE;AAC5E,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,QAAW,OAAO;AAAA,MAClD;AACE,eAAO,MAAM,KAAK,YAAY,MAAS;AAAA,IAC3C;AAAA,EACF;AAAA,EAKA,MAAM,KAAK,MAAU,cAAoE;AACvF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,aAAa,QAAW,MAAM,OAAO;AAAA,MACzD;AACE,eAAO,MAAM,KAAK,aAAa,QAAW,IAAI;AAAA,IAClD;AAAA,EACF;AAAA,EAKA,MAAM,IAAI,MAAU,cAAoE;AACtF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,QAAW,MAAM,OAAO;AAAA,MACxD;AACE,eAAO,MAAM,KAAK,YAAY,QAAW,IAAI;AAAA,IACjD;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/Base.ts","../../src/objToQuery.ts","../../src/Simple.ts"],"sourcesContent":["import {\n ApiConfig,\n ApiEnvelope,\n ApiError,\n ApiReportable,\n ApiResponse,\n ApiResponseBody,\n ApiResponseTuple,\n ApiResponseTupleOrBody,\n ApiResponseType,\n} from '@xyo-network/api-models'\nimport { AxiosJson } from '@xyo-network/axios'\n\nexport class ApiBase<C extends ApiConfig = ApiConfig> implements ApiReportable {\n readonly config: C\n protected axios: AxiosJson\n\n constructor(config: C) {\n this.config = config\n this.axios = new AxiosJson({ ...this.config, headers: this.headers })\n }\n\n get authenticated() {\n return !!this.config.apiKey || !!this.config.jwtToken\n }\n\n protected get headers(): Record<string, string> {\n const headers: Record<string, string> = {}\n if (this.config.jwtToken) {\n headers.Authorization = `Bearer ${this.config.jwtToken}`\n }\n if (this.config.apiKey) {\n headers['x-api-key'] = this.config.apiKey\n }\n return headers\n }\n\n protected get query() {\n return this.config.query ?? ''\n }\n\n protected get root() {\n return this.config.root ?? '/'\n }\n\n private static resolveResponse<T>(result?: ApiResponse<ApiEnvelope<T>>) {\n return [result?.data?.data, result?.data, result] as ApiResponseTuple<T>\n }\n\n private static shapeResponse<T = unknown>(response: ApiResponse<ApiEnvelope<T>> | undefined, responseType?: ApiResponseType) {\n const resolvedResponse = ApiBase.resolveResponse(response)\n return responseType === 'tuple' ? resolvedResponse : resolvedResponse[0]\n }\n\n onError(error: ApiError, depth = 0) {\n this.config.reportableParent?.onError?.(error, depth + 1)\n this.config.onError?.(error, depth)\n }\n\n onFailure(response: ApiResponse, depth = 0) {\n this.config.reportableParent?.onFailure?.(response, depth + 1)\n this.config.onFailure?.(response, depth)\n }\n\n onSuccess(response: ApiResponse, depth = 0) {\n this.config.reportableParent?.onSuccess?.(response, depth + 1)\n this.config.onSuccess?.(response, depth)\n }\n\n protected async deleteEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>\n protected async deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async deleteEndpoint<T = unknown>(endPoint = '', responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.delete<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>>>(`${this.resolveRoot()}${endPoint}${this.query}`)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected async getEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>\n protected async getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async getEndpoint<T = unknown>(endPoint = '', responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.get<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>>>(`${this.resolveRoot()}${endPoint}${this.query}`)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected handleMonitorResponseError<T>(error: ApiError, trapAxiosException: boolean) {\n if (!error.isError) {\n throw error\n }\n\n if (trapAxiosException) {\n error.response ? this.onFailure(error.response) : this.onError(error)\n if (this.config.throwFailure) {\n throw error\n }\n return error.response as ApiResponse<ApiEnvelope<T>>\n }\n }\n\n protected async monitorResponse<T>(closure: () => Promise<ApiResponse<ApiEnvelope<T>>>) {\n //we use this to prevent accidental catching on exceptions in callbacks\n let trapAxiosException = true\n try {\n const response = await closure()\n trapAxiosException = false\n\n response.status < 300 ? this.onSuccess(response) : this.onFailure(response)\n\n return response\n } catch (ex) {\n this.handleMonitorResponseError(ex as ApiError, trapAxiosException)\n }\n }\n\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async postEndpoint<T = unknown, D = unknown>(\n endPoint = '',\n data?: D,\n responseType?: ApiResponseType,\n ): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.post<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>, D>, D>(`${this.resolveRoot()}${endPoint}${this.query}`, data)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint = '', data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.put<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>, D>, D>(`${this.resolveRoot()}${endPoint}${this.query}`, data)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n private resolveRoot() {\n return `${this.config.apiDomain}${this.root}`\n }\n}\n","export const objToQuery = (obj: Record<string, string | number | undefined>) => {\n return `?${Object.entries(obj)\n .map(([key, value]) => {\n return `${key}=${value}`\n })\n .filter((value) => value !== undefined)\n .join('&')}`\n}\n","import { ApiConfig, ApiResponseBody, ApiResponseTuple, ApiResponseTupleOrBody, ApiResponseType } from '@xyo-network/api-models'\nimport { Payload, PayloadFindFilter } from '@xyo-network/payload-model'\n\nimport { ApiBase } from './Base'\nimport { objToQuery } from './objToQuery'\n\nexport type ApiSimpleQuery = PayloadFindFilter\n\nexport class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {\n async delete(): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async delete(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.deleteEndpoint(undefined, 'tuple')\n default:\n return await this.deleteEndpoint(undefined)\n }\n }\n\n async find(query?: Q): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async find(query = {}, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(objToQuery(query), 'tuple')\n default:\n return await this.getEndpoint(objToQuery(query))\n }\n }\n\n async get(): Promise<ApiResponseBody<T>>\n async get(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async get(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(undefined, 'tuple')\n default:\n return await this.getEndpoint(undefined)\n }\n }\n\n async post(data?: D): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async post(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.postEndpoint(undefined, data, 'tuple')\n default:\n return await this.postEndpoint(undefined, data)\n }\n }\n\n async put(data?: D): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async put(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.putEndpoint(undefined, data, 'tuple')\n default:\n return await this.putEndpoint(undefined, data)\n }\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Test/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
|
package/dist/node/Test/index.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,15 +15,48 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Test/index.ts
|
|
16
21
|
var Test_exports = {};
|
|
22
|
+
__export(Test_exports, {
|
|
23
|
+
testBoundWitness: () => testBoundWitness,
|
|
24
|
+
testPayload: () => testPayload,
|
|
25
|
+
testSchema: () => testSchema
|
|
26
|
+
});
|
|
17
27
|
module.exports = __toCommonJS(Test_exports);
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
|
|
29
|
+
// src/Test/testBoundWitness.ts
|
|
30
|
+
var import_boundwitness_model = require("@xyo-network/boundwitness-model");
|
|
31
|
+
var testBoundWitness = {
|
|
32
|
+
_client: "js",
|
|
33
|
+
_hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
|
|
34
|
+
_signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
|
|
35
|
+
_timestamp: 1650067385598,
|
|
36
|
+
addresses: ["5346a2ce56ec4177b67092bda710e150ba6fa046"],
|
|
37
|
+
payload_hashes: ["20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c"],
|
|
38
|
+
payload_schemas: ["network.xyo.test"],
|
|
39
|
+
previous_hashes: [null],
|
|
40
|
+
schema: import_boundwitness_model.BoundWitnessSchema
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// src/Test/testPayload.ts
|
|
44
|
+
var testSchema = "network.xyo.test";
|
|
45
|
+
var testPayload = {
|
|
46
|
+
_hash: "20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c",
|
|
47
|
+
_timestamp: 1609459255555,
|
|
48
|
+
numberField: 1,
|
|
49
|
+
objectField: {
|
|
50
|
+
numberField: 1,
|
|
51
|
+
stringField: "stringValue"
|
|
52
|
+
},
|
|
53
|
+
schema: testSchema,
|
|
54
|
+
stringField: "stringValue"
|
|
55
|
+
};
|
|
20
56
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
57
|
0 && (module.exports = {
|
|
22
|
-
|
|
23
|
-
|
|
58
|
+
testBoundWitness,
|
|
59
|
+
testPayload,
|
|
60
|
+
testSchema
|
|
24
61
|
});
|
|
25
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/index.ts"],"sourcesContent":["export * from './testBoundWitness'\nexport * from './testPayload'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/index.ts","../../../src/Test/testBoundWitness.ts","../../../src/Test/testPayload.ts"],"sourcesContent":["export * from './testBoundWitness'\nexport * from './testPayload'\n","import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n","import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,gCAAiD;AAEjD,IAAM,mBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa,CAAC,kIAAkI;AAAA,EAChJ,YAAY;AAAA,EACZ,WAAW,CAAC,0CAA0C;AAAA,EACtD,gBAAgB,CAAC,kEAAkE;AAAA,EACnF,iBAAiB,CAAC,kBAAkB;AAAA,EACpC,iBAAiB,CAAC,IAAI;AAAA,EACtB,QAAQ;AACV;;;ACTA,IAAM,aAAa;AACnB,IAAM,cAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AACf;","names":[]}
|
package/dist/node/Test/index.mjs
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// src/Test/testBoundWitness.ts
|
|
2
|
+
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
3
|
+
var testBoundWitness = {
|
|
4
|
+
_client: "js",
|
|
5
|
+
_hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
|
|
6
|
+
_signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
|
|
7
|
+
_timestamp: 1650067385598,
|
|
8
|
+
addresses: ["5346a2ce56ec4177b67092bda710e150ba6fa046"],
|
|
9
|
+
payload_hashes: ["20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c"],
|
|
10
|
+
payload_schemas: ["network.xyo.test"],
|
|
11
|
+
previous_hashes: [null],
|
|
12
|
+
schema: BoundWitnessSchema
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
// src/Test/testPayload.ts
|
|
16
|
+
var testSchema = "network.xyo.test";
|
|
17
|
+
var testPayload = {
|
|
18
|
+
_hash: "20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c",
|
|
19
|
+
_timestamp: 1609459255555,
|
|
20
|
+
numberField: 1,
|
|
21
|
+
objectField: {
|
|
22
|
+
numberField: 1,
|
|
23
|
+
stringField: "stringValue"
|
|
24
|
+
},
|
|
25
|
+
schema: testSchema,
|
|
26
|
+
stringField: "stringValue"
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
testBoundWitness,
|
|
30
|
+
testPayload,
|
|
31
|
+
testSchema
|
|
32
|
+
};
|
|
3
33
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/testBoundWitness.ts","../../../src/Test/testPayload.ts"],"sourcesContent":["import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n","import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":";AAAA,SAAuB,0BAA0B;AAEjD,IAAM,mBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa,CAAC,kIAAkI;AAAA,EAChJ,YAAY;AAAA,EACZ,WAAW,CAAC,0CAA0C;AAAA,EACtD,gBAAgB,CAAC,kEAAkE;AAAA,EACnF,iBAAiB,CAAC,kBAAkB;AAAA,EACpC,iBAAiB,CAAC,IAAI;AAAA,EACtB,QAAQ;AACV;;;ACTA,IAAM,aAAa;AACnB,IAAM,cAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AACf;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/Test/testBoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,iCAAiC,CAAA;AAElF,QAAA,MAAM,gBAAgB,EAAE,YAUP,CAAA;AAEjB,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -16,13 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Test/testBoundWitness.ts
|
|
19
21
|
var testBoundWitness_exports = {};
|
|
20
22
|
__export(testBoundWitness_exports, {
|
|
21
23
|
testBoundWitness: () => testBoundWitness
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(testBoundWitness_exports);
|
|
24
26
|
var import_boundwitness_model = require("@xyo-network/boundwitness-model");
|
|
25
|
-
|
|
27
|
+
var testBoundWitness = {
|
|
26
28
|
_client: "js",
|
|
27
29
|
_hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
|
|
28
30
|
_signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/testBoundWitness.ts"],"sourcesContent":["import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/testBoundWitness.ts"],"sourcesContent":["import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAiD;AAEjD,IAAM,mBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa,CAAC,kIAAkI;AAAA,EAChJ,YAAY;AAAA,EACZ,WAAW,CAAC,0CAA0C;AAAA,EACtD,gBAAgB,CAAC,kEAAkE;AAAA,EACnF,iBAAiB,CAAC,kBAAkB;AAAA,EACpC,iBAAiB,CAAC,IAAI;AAAA,EACtB,QAAQ;AACV;","names":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// src/Test/testBoundWitness.ts
|
|
1
2
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
2
|
-
|
|
3
|
+
var testBoundWitness = {
|
|
3
4
|
_client: "js",
|
|
4
5
|
_hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
|
|
5
6
|
_signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/testBoundWitness.ts"],"sourcesContent":["import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n"],"mappings":"AAAA,SAAuB,0BAA0B;AAEjD,
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/testBoundWitness.ts"],"sourcesContent":["import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n"],"mappings":";AAAA,SAAuB,0BAA0B;AAEjD,IAAM,mBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa,CAAC,kIAAkI;AAAA,EAChJ,YAAY;AAAA,EACZ,WAAW,CAAC,0CAA0C;AAAA,EACtD,gBAAgB,CAAC,kEAAkE;AAAA,EACnF,iBAAiB,CAAC,kBAAkB;AAAA,EACpC,iBAAiB,CAAC,IAAI;AAAA,EACtB,QAAQ;AACV;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StringKeyObject } from '@xyo-network/core';
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
declare const testSchema = "network.xyo.test";
|
|
4
|
+
declare const testPayload: Payload<StringKeyObject>;
|
|
5
|
+
export { testPayload, testSchema };
|
|
6
|
+
//# sourceMappingURL=testPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testPayload.d.ts","sourceRoot":"","sources":["../../../src/Test/testPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,QAAA,MAAM,UAAU,qBAAqB,CAAA;AACrC,QAAA,MAAM,WAAW,EAAE,OAAO,CAAC,eAAe,CAUzC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -16,14 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Test/testPayload.ts
|
|
19
21
|
var testPayload_exports = {};
|
|
20
22
|
__export(testPayload_exports, {
|
|
21
23
|
testPayload: () => testPayload,
|
|
22
24
|
testSchema: () => testSchema
|
|
23
25
|
});
|
|
24
26
|
module.exports = __toCommonJS(testPayload_exports);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
var testSchema = "network.xyo.test";
|
|
28
|
+
var testPayload = {
|
|
27
29
|
_hash: "20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c",
|
|
28
30
|
_timestamp: 1609459255555,
|
|
29
31
|
numberField: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/testPayload.ts"],"sourcesContent":["import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/testPayload.ts"],"sourcesContent":["import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,IAAM,aAAa;AACnB,IAAM,cAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AACf;","names":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// src/Test/testPayload.ts
|
|
2
|
+
var testSchema = "network.xyo.test";
|
|
3
|
+
var testPayload = {
|
|
3
4
|
_hash: "20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c",
|
|
4
5
|
_timestamp: 1609459255555,
|
|
5
6
|
numberField: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Test/testPayload.ts"],"sourcesContent":["import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"sources":["../../../src/Test/testPayload.ts"],"sourcesContent":["import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":";AAGA,IAAM,aAAa;AACnB,IAAM,cAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AACf;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithArchive.d.ts","sourceRoot":"","sources":["../../src/WithArchive.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,WAAW,CAAC,kBAAkB,IAAI,kBAAkB,GAAG;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA"}
|
package/dist/node/WithArchive.js
CHANGED
|
@@ -12,6 +12,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
12
12
|
return to;
|
|
13
13
|
};
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/WithArchive.ts
|
|
15
17
|
var WithArchive_exports = {};
|
|
16
18
|
module.exports = __toCommonJS(WithArchive_exports);
|
|
17
19
|
//# sourceMappingURL=WithArchive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/WithArchive.ts"],"sourcesContent":["export declare type WithArchive<ArchivistApiConfig> = ArchivistApiConfig & {\n _archive?: string\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/WithArchive.ts"],"sourcesContent":["export declare type WithArchive<ArchivistApiConfig> = ArchivistApiConfig & {\n _archive?: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
|
package/dist/node/index.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,23 +15,287 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
16
21
|
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
ApiBase: () => ApiBase,
|
|
24
|
+
ApiSimple: () => ApiSimple,
|
|
25
|
+
ArchivistApi: () => ArchivistApi,
|
|
26
|
+
CurrentLocationWitnessSchema: () => CurrentLocationWitnessSchema,
|
|
27
|
+
LocationDivinerApi: () => LocationDivinerApi,
|
|
28
|
+
LocationTimeRangeAnswerSchema: () => LocationTimeRangeAnswerSchema,
|
|
29
|
+
LocationTimeRangeQuerySchema: () => LocationTimeRangeQuerySchema,
|
|
30
|
+
LocationWitnessSchema: () => LocationWitnessSchema,
|
|
31
|
+
RemoteDivinerConfigSchema: () => RemoteDivinerConfigSchema,
|
|
32
|
+
isLocationHeatmapQuery: () => isLocationHeatmapQuery,
|
|
33
|
+
isLocationQuadkeyHeatmapQuery: () => isLocationQuadkeyHeatmapQuery,
|
|
34
|
+
isLocationTimeRangeQuery: () => isLocationTimeRangeQuery,
|
|
35
|
+
isSupportedLocationQuerySchema: () => isSupportedLocationQuerySchema,
|
|
36
|
+
locationHeatmapAnswerSchema: () => locationHeatmapAnswerSchema,
|
|
37
|
+
locationHeatmapQuerySchema: () => locationHeatmapQuerySchema,
|
|
38
|
+
locationQuadkeyHeatmapAnswerSchema: () => locationQuadkeyHeatmapAnswerSchema,
|
|
39
|
+
locationQuadkeyHeatmapQuerySchema: () => locationQuadkeyHeatmapQuerySchema
|
|
40
|
+
});
|
|
17
41
|
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
|
|
43
|
+
// src/Api/Api.ts
|
|
44
|
+
var import_huri = require("@xyo-network/huri");
|
|
45
|
+
|
|
46
|
+
// src/Base.ts
|
|
47
|
+
var import_axios = require("@xyo-network/axios");
|
|
48
|
+
var ApiBase = class _ApiBase {
|
|
49
|
+
config;
|
|
50
|
+
axios;
|
|
51
|
+
constructor(config) {
|
|
52
|
+
this.config = config;
|
|
53
|
+
this.axios = new import_axios.AxiosJson({ ...this.config, headers: this.headers });
|
|
54
|
+
}
|
|
55
|
+
get authenticated() {
|
|
56
|
+
return !!this.config.apiKey || !!this.config.jwtToken;
|
|
57
|
+
}
|
|
58
|
+
get headers() {
|
|
59
|
+
const headers = {};
|
|
60
|
+
if (this.config.jwtToken) {
|
|
61
|
+
headers.Authorization = `Bearer ${this.config.jwtToken}`;
|
|
62
|
+
}
|
|
63
|
+
if (this.config.apiKey) {
|
|
64
|
+
headers["x-api-key"] = this.config.apiKey;
|
|
65
|
+
}
|
|
66
|
+
return headers;
|
|
67
|
+
}
|
|
68
|
+
get query() {
|
|
69
|
+
return this.config.query ?? "";
|
|
70
|
+
}
|
|
71
|
+
get root() {
|
|
72
|
+
return this.config.root ?? "/";
|
|
73
|
+
}
|
|
74
|
+
static resolveResponse(result) {
|
|
75
|
+
var _a;
|
|
76
|
+
return [(_a = result == null ? void 0 : result.data) == null ? void 0 : _a.data, result == null ? void 0 : result.data, result];
|
|
77
|
+
}
|
|
78
|
+
static shapeResponse(response, responseType) {
|
|
79
|
+
const resolvedResponse = _ApiBase.resolveResponse(response);
|
|
80
|
+
return responseType === "tuple" ? resolvedResponse : resolvedResponse[0];
|
|
81
|
+
}
|
|
82
|
+
onError(error, depth = 0) {
|
|
83
|
+
var _a, _b, _c, _d;
|
|
84
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onError) == null ? void 0 : _b.call(_a, error, depth + 1);
|
|
85
|
+
(_d = (_c = this.config).onError) == null ? void 0 : _d.call(_c, error, depth);
|
|
86
|
+
}
|
|
87
|
+
onFailure(response, depth = 0) {
|
|
88
|
+
var _a, _b, _c, _d;
|
|
89
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onFailure) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
90
|
+
(_d = (_c = this.config).onFailure) == null ? void 0 : _d.call(_c, response, depth);
|
|
91
|
+
}
|
|
92
|
+
onSuccess(response, depth = 0) {
|
|
93
|
+
var _a, _b, _c, _d;
|
|
94
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onSuccess) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
95
|
+
(_d = (_c = this.config).onSuccess) == null ? void 0 : _d.call(_c, response, depth);
|
|
96
|
+
}
|
|
97
|
+
async deleteEndpoint(endPoint = "", responseType) {
|
|
98
|
+
const response = await this.monitorResponse(async () => {
|
|
99
|
+
return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
100
|
+
});
|
|
101
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
102
|
+
}
|
|
103
|
+
async getEndpoint(endPoint = "", responseType) {
|
|
104
|
+
const response = await this.monitorResponse(async () => {
|
|
105
|
+
return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
106
|
+
});
|
|
107
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
108
|
+
}
|
|
109
|
+
handleMonitorResponseError(error, trapAxiosException) {
|
|
110
|
+
if (!error.isError) {
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
113
|
+
if (trapAxiosException) {
|
|
114
|
+
error.response ? this.onFailure(error.response) : this.onError(error);
|
|
115
|
+
if (this.config.throwFailure) {
|
|
116
|
+
throw error;
|
|
117
|
+
}
|
|
118
|
+
return error.response;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async monitorResponse(closure) {
|
|
122
|
+
let trapAxiosException = true;
|
|
123
|
+
try {
|
|
124
|
+
const response = await closure();
|
|
125
|
+
trapAxiosException = false;
|
|
126
|
+
response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
|
|
127
|
+
return response;
|
|
128
|
+
} catch (ex) {
|
|
129
|
+
this.handleMonitorResponseError(ex, trapAxiosException);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async postEndpoint(endPoint = "", data, responseType) {
|
|
133
|
+
const response = await this.monitorResponse(async () => {
|
|
134
|
+
return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
135
|
+
});
|
|
136
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
137
|
+
}
|
|
138
|
+
async putEndpoint(endPoint = "", data, responseType) {
|
|
139
|
+
const response = await this.monitorResponse(async () => {
|
|
140
|
+
return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
141
|
+
});
|
|
142
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
143
|
+
}
|
|
144
|
+
resolveRoot() {
|
|
145
|
+
return `${this.config.apiDomain}${this.root}`;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// src/objToQuery.ts
|
|
150
|
+
var objToQuery = (obj) => {
|
|
151
|
+
return `?${Object.entries(obj).map(([key, value]) => {
|
|
152
|
+
return `${key}=${value}`;
|
|
153
|
+
}).filter((value) => value !== void 0).join("&")}`;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// src/Simple.ts
|
|
157
|
+
var ApiSimple = class extends ApiBase {
|
|
158
|
+
async delete(responseType) {
|
|
159
|
+
switch (responseType) {
|
|
160
|
+
case "tuple":
|
|
161
|
+
return await this.deleteEndpoint(void 0, "tuple");
|
|
162
|
+
default:
|
|
163
|
+
return await this.deleteEndpoint(void 0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
async find(query = {}, responseType) {
|
|
167
|
+
switch (responseType) {
|
|
168
|
+
case "tuple":
|
|
169
|
+
return await this.getEndpoint(objToQuery(query), "tuple");
|
|
170
|
+
default:
|
|
171
|
+
return await this.getEndpoint(objToQuery(query));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async get(responseType) {
|
|
175
|
+
switch (responseType) {
|
|
176
|
+
case "tuple":
|
|
177
|
+
return await this.getEndpoint(void 0, "tuple");
|
|
178
|
+
default:
|
|
179
|
+
return await this.getEndpoint(void 0);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
async post(data, responseType) {
|
|
183
|
+
switch (responseType) {
|
|
184
|
+
case "tuple":
|
|
185
|
+
return await this.postEndpoint(void 0, data, "tuple");
|
|
186
|
+
default:
|
|
187
|
+
return await this.postEndpoint(void 0, data);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
async put(data, responseType) {
|
|
191
|
+
switch (responseType) {
|
|
192
|
+
case "tuple":
|
|
193
|
+
return await this.putEndpoint(void 0, data, "tuple");
|
|
194
|
+
default:
|
|
195
|
+
return await this.putEndpoint(void 0, data);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
// src/Api/Api.ts
|
|
201
|
+
var ArchivistApi = class extends ApiSimple {
|
|
202
|
+
huri(huri) {
|
|
203
|
+
const huriObj = typeof huri === "string" ? new import_huri.Huri(huri) : huri;
|
|
204
|
+
return new ApiSimple({
|
|
205
|
+
...this.config,
|
|
206
|
+
root: `${this.root}${huriObj.href}/`
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// src/Diviner/LocationDiviner/LocationDivinerApi.ts
|
|
212
|
+
var import_axios3 = require("@xyo-network/axios");
|
|
213
|
+
|
|
214
|
+
// src/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.ts
|
|
215
|
+
var import_axios2 = require("@xyo-network/axios");
|
|
216
|
+
var locationDivinerApiResponseTransformer = (data, _headers) => {
|
|
217
|
+
return data.data;
|
|
218
|
+
};
|
|
219
|
+
var getLocationDivinerApiResponseTransformer = (axiosInstance = import_axios2.axios) => {
|
|
220
|
+
return axiosInstance.defaults.transformResponse ? [].concat(axiosInstance.defaults.transformResponse, locationDivinerApiResponseTransformer) : [locationDivinerApiResponseTransformer];
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// src/Diviner/LocationDiviner/LocationDivinerApi.ts
|
|
224
|
+
var LocationDivinerApi = class {
|
|
225
|
+
config;
|
|
226
|
+
constructor(config) {
|
|
227
|
+
this.config = config;
|
|
228
|
+
}
|
|
229
|
+
get axiosRequestConfig() {
|
|
230
|
+
return {
|
|
231
|
+
transformResponse: getLocationDivinerApiResponseTransformer()
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
async getLocationQuery(hash) {
|
|
235
|
+
return (await import_axios3.axios.get(`${this.config.apiDomain}/location/query/${hash}`, this.axiosRequestConfig)).data;
|
|
236
|
+
}
|
|
237
|
+
async postLocationQuery(request) {
|
|
238
|
+
return (await import_axios3.axios.post(`${this.config.apiDomain}/location/query`, { ...request }, this.axiosRequestConfig)).data;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts
|
|
243
|
+
var locationHeatmapQuerySchema = "network.xyo.location.heatmap.query";
|
|
244
|
+
var locationHeatmapAnswerSchema = "network.xyo.location.heatmap.answer";
|
|
245
|
+
var isLocationHeatmapQuery = (query) => {
|
|
246
|
+
return query && (query == null ? void 0 : query.schema) === locationHeatmapQuerySchema;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
// src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts
|
|
250
|
+
var locationQuadkeyHeatmapQuerySchema = "network.xyo.location.heatmap.quadkey.query";
|
|
251
|
+
var locationQuadkeyHeatmapAnswerSchema = "network.xyo.location.heatmap.quadkey.answer";
|
|
252
|
+
var isLocationQuadkeyHeatmapQuery = (query) => {
|
|
253
|
+
return query && (query == null ? void 0 : query.schema) === locationQuadkeyHeatmapQuerySchema;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// src/Diviner/LocationDiviner/Queries/LocationQuerySchema.ts
|
|
257
|
+
var locationQuerySchemas = {
|
|
258
|
+
"network.xyo.location.heatmap.quadkey.query": true,
|
|
259
|
+
"network.xyo.location.heatmap.query": true,
|
|
260
|
+
"network.xyo.location.range.query": true
|
|
261
|
+
};
|
|
262
|
+
var isSupportedLocationQuerySchema = (schema) => {
|
|
263
|
+
return locationQuerySchemas[schema] || false;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
// src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts
|
|
267
|
+
var LocationTimeRangeQuerySchema = "network.xyo.location.range.query";
|
|
268
|
+
var LocationTimeRangeAnswerSchema = "network.xyo.location.range.answer";
|
|
269
|
+
var isLocationTimeRangeQuery = (query) => {
|
|
270
|
+
return query && (query == null ? void 0 : query.schema) === LocationTimeRangeAnswerSchema;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
// src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts
|
|
274
|
+
var CurrentLocationWitnessSchema = "co.coinapp.currentlocationwitness";
|
|
275
|
+
|
|
276
|
+
// src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts
|
|
277
|
+
var LocationWitnessSchema = "network.xyo.location";
|
|
278
|
+
|
|
279
|
+
// src/Diviner/RemoteDivinerConfig.ts
|
|
280
|
+
var RemoteDivinerConfigSchema = "network.xyo.diviner.remote.config";
|
|
24
281
|
// Annotate the CommonJS export names for ESM import in node:
|
|
25
282
|
0 && (module.exports = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
283
|
+
ApiBase,
|
|
284
|
+
ApiSimple,
|
|
285
|
+
ArchivistApi,
|
|
286
|
+
CurrentLocationWitnessSchema,
|
|
287
|
+
LocationDivinerApi,
|
|
288
|
+
LocationTimeRangeAnswerSchema,
|
|
289
|
+
LocationTimeRangeQuerySchema,
|
|
290
|
+
LocationWitnessSchema,
|
|
291
|
+
RemoteDivinerConfigSchema,
|
|
292
|
+
isLocationHeatmapQuery,
|
|
293
|
+
isLocationQuadkeyHeatmapQuery,
|
|
294
|
+
isLocationTimeRangeQuery,
|
|
295
|
+
isSupportedLocationQuerySchema,
|
|
296
|
+
locationHeatmapAnswerSchema,
|
|
297
|
+
locationHeatmapQuerySchema,
|
|
298
|
+
locationQuadkeyHeatmapAnswerSchema,
|
|
299
|
+
locationQuadkeyHeatmapQuerySchema
|
|
32
300
|
});
|
|
33
301
|
//# sourceMappingURL=index.js.map
|