@xyo-network/api 2.74.5 → 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.cjs +188 -0
- package/dist/browser/Api/Api.cjs.map +1 -0
- package/dist/browser/Api/Api.d.cts.map +1 -0
- package/dist/browser/Api/Api.d.mts.map +1 -0
- package/dist/browser/Api/Api.d.ts +12 -0
- package/dist/browser/Api/Api.d.ts.map +1 -0
- package/dist/browser/Api/Api.js +15 -0
- package/dist/browser/Api/Api.js.map +1 -0
- package/dist/browser/Api/index.cjs +190 -0
- package/dist/browser/Api/index.cjs.map +1 -0
- package/dist/browser/Api/index.d.cts.map +1 -0
- package/dist/browser/Api/index.d.mts.map +1 -0
- package/dist/browser/Api/index.d.ts +2 -0
- package/dist/browser/Api/index.d.ts.map +1 -0
- package/dist/browser/Api/index.js +2 -0
- package/dist/browser/Api/index.js.map +1 -0
- package/dist/browser/Base.cjs +123 -0
- package/dist/browser/Base.cjs.map +1 -0
- package/dist/browser/Base.d.cts.map +1 -0
- package/dist/browser/Base.d.mts.map +1 -0
- package/dist/browser/Base.d.ts +32 -0
- package/dist/browser/Base.d.ts.map +1 -0
- package/dist/browser/Base.js +101 -0
- package/dist/browser/Base.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.cjs +55 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.ts +12 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js +23 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.cjs +34 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +10 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +12 -0
- package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.cjs +19 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +5 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.cjs +33 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +11 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.cjs +35 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.cjs +33 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +11 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.cjs +35 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +2 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +2 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.cjs +19 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +18 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.cjs +19 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +5 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.cjs +34 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +6 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.cjs +19 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +8 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.cjs +33 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +12 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +11 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.cjs +35 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +3 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.cjs +66 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.ts +7 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.js +7 -0
- package/dist/browser/Diviner/LocationDiviner/Queries/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.cjs +27 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +5 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.cjs +27 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js +5 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.cjs +33 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.ts +3 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js +3 -0
- package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.cjs +106 -0
- package/dist/browser/Diviner/LocationDiviner/index.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.d.ts +5 -0
- package/dist/browser/Diviner/LocationDiviner/index.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/index.js +5 -0
- package/dist/browser/Diviner/LocationDiviner/index.js.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.cjs +19 -0
- package/dist/browser/Diviner/LocationDiviner/models.cjs.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.d.cts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.d.mts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.d.ts +5 -0
- package/dist/browser/Diviner/LocationDiviner/models.d.ts.map +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.js +1 -0
- package/dist/browser/Diviner/LocationDiviner/models.js.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.cjs +27 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.cjs.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.mts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.ts +11 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.d.ts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.js +5 -0
- package/dist/browser/Diviner/RemoteDivinerConfig.js.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.cjs +35 -0
- package/dist/browser/Diviner/RemoteDivinerError.cjs.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.d.cts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.d.mts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.d.ts +6 -0
- package/dist/browser/Diviner/RemoteDivinerError.d.ts.map +1 -0
- package/dist/browser/Diviner/RemoteDivinerError.js +13 -0
- package/dist/browser/Diviner/RemoteDivinerError.js.map +1 -0
- package/dist/browser/Diviner/index.cjs +110 -0
- package/dist/browser/Diviner/index.cjs.map +1 -0
- package/dist/browser/Diviner/index.d.cts.map +1 -0
- package/dist/browser/Diviner/index.d.mts.map +1 -0
- package/dist/browser/Diviner/index.d.ts +3 -0
- package/dist/browser/Diviner/index.d.ts.map +1 -0
- package/dist/browser/Diviner/index.js +3 -0
- package/dist/browser/Diviner/index.js.map +1 -0
- package/dist/browser/Simple.cjs +176 -0
- package/dist/browser/Simple.cjs.map +1 -0
- package/dist/browser/Simple.d.cts.map +1 -0
- package/dist/browser/Simple.d.mts.map +1 -0
- package/dist/browser/Simple.d.ts +22 -0
- package/dist/browser/Simple.d.ts.map +1 -0
- package/dist/browser/Simple.js +48 -0
- package/dist/browser/Simple.js.map +1 -0
- package/dist/browser/Test/index.cjs +56 -0
- package/dist/browser/Test/index.cjs.map +1 -0
- package/dist/browser/Test/index.d.cts.map +1 -0
- package/dist/browser/Test/index.d.mts.map +1 -0
- package/dist/browser/Test/index.d.ts +3 -0
- package/dist/browser/Test/index.d.ts.map +1 -0
- package/dist/browser/Test/index.js +3 -0
- package/dist/browser/Test/index.js.map +1 -0
- package/dist/browser/Test/testBoundWitness.cjs +38 -0
- package/dist/browser/Test/testBoundWitness.cjs.map +1 -0
- package/dist/browser/Test/testBoundWitness.d.cts.map +1 -0
- package/dist/browser/Test/testBoundWitness.d.mts.map +1 -0
- package/dist/browser/Test/testBoundWitness.d.ts +4 -0
- package/dist/browser/Test/testBoundWitness.d.ts.map +1 -0
- package/dist/browser/Test/testBoundWitness.js +16 -0
- package/dist/browser/Test/testBoundWitness.js.map +1 -0
- package/dist/browser/Test/testPayload.cjs +39 -0
- package/dist/browser/Test/testPayload.cjs.map +1 -0
- package/dist/browser/Test/testPayload.d.cts.map +1 -0
- package/dist/browser/Test/testPayload.d.mts.map +1 -0
- package/dist/browser/Test/testPayload.d.ts +6 -0
- package/dist/browser/Test/testPayload.d.ts.map +1 -0
- package/dist/browser/Test/testPayload.js +17 -0
- package/dist/browser/Test/testPayload.js.map +1 -0
- package/dist/browser/WithArchive.cjs +19 -0
- package/dist/browser/WithArchive.cjs.map +1 -0
- package/dist/browser/WithArchive.d.cts.map +1 -0
- package/dist/browser/WithArchive.d.mts.map +1 -0
- package/dist/browser/WithArchive.d.ts +4 -0
- package/dist/browser/WithArchive.d.ts.map +1 -0
- package/dist/browser/WithArchive.js +1 -0
- package/dist/browser/WithArchive.js.map +1 -0
- package/dist/{index.js → browser/index.cjs} +1 -21
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +7 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/ArchivePath.cjs +19 -0
- package/dist/browser/models/ArchivePath.cjs.map +1 -0
- package/dist/browser/models/ArchivePath.d.cts.map +1 -0
- package/dist/browser/models/ArchivePath.d.mts.map +1 -0
- package/dist/browser/models/ArchivePath.d.ts +4 -0
- package/dist/browser/models/ArchivePath.d.ts.map +1 -0
- package/dist/browser/models/ArchivePath.js +1 -0
- package/dist/browser/models/ArchivePath.js.map +1 -0
- package/dist/browser/models/index.cjs +19 -0
- package/dist/browser/models/index.cjs.map +1 -0
- package/dist/browser/models/index.d.cts.map +1 -0
- package/dist/browser/models/index.d.mts.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +2 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/objToQuery.cjs +31 -0
- package/dist/browser/objToQuery.cjs.map +1 -0
- package/dist/browser/objToQuery.d.cts.map +1 -0
- package/dist/browser/objToQuery.d.mts.map +1 -0
- package/dist/browser/objToQuery.d.ts +2 -0
- package/dist/browser/objToQuery.d.ts.map +1 -0
- package/dist/browser/objToQuery.js +9 -0
- package/dist/browser/objToQuery.js.map +1 -0
- package/dist/docs.json +402 -402
- package/dist/node/Api/Api.d.cts +12 -0
- package/dist/node/Api/Api.d.cts.map +1 -0
- package/dist/node/Api/Api.d.mts +12 -0
- package/dist/node/Api/Api.d.mts.map +1 -0
- package/dist/node/Api/Api.d.ts +12 -0
- package/dist/node/Api/Api.d.ts.map +1 -0
- package/dist/node/Api/Api.js +196 -0
- package/dist/node/Api/Api.js.map +1 -0
- package/dist/node/Api/Api.mjs +171 -0
- package/dist/node/Api/Api.mjs.map +1 -0
- package/dist/node/Api/index.d.cts +2 -0
- package/dist/node/Api/index.d.cts.map +1 -0
- package/dist/node/Api/index.d.mts +2 -0
- package/dist/node/Api/index.d.mts.map +1 -0
- package/dist/node/Api/index.d.ts +2 -0
- package/dist/node/Api/index.d.ts.map +1 -0
- package/dist/node/Api/index.js +198 -0
- package/dist/node/Api/index.js.map +1 -0
- package/dist/node/Api/index.mjs +171 -0
- package/dist/node/Api/index.mjs.map +1 -0
- package/dist/node/Base.d.cts +32 -0
- package/dist/node/Base.d.cts.map +1 -0
- package/dist/node/Base.d.mts +32 -0
- package/dist/node/Base.d.mts.map +1 -0
- package/dist/node/Base.d.ts +32 -0
- package/dist/node/Base.d.ts.map +1 -0
- package/dist/node/Base.js +131 -0
- package/dist/node/Base.js.map +1 -0
- package/dist/node/Base.mjs +106 -0
- package/dist/node/Base.mjs.map +1 -0
- 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.d.mts +12 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.ts +12 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js +59 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs +34 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs.map +1 -0
- 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.d.mts +10 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +10 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +39 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs +13 -0
- package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs.map +1 -0
- 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.d.mts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +19 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.mjs +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.mjs.map +1 -0
- 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.d.mts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +39 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs.map +1 -0
- 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.d.mts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +41 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs.map +1 -0
- 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.d.mts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +39 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs.map +1 -0
- 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.d.mts +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +2 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +41 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs.map +1 -0
- 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.d.mts +18 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +18 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +19 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.mjs +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.mjs.map +1 -0
- 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.d.mts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +5 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +19 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.mjs +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.mjs.map +1 -0
- 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.d.mts +6 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +6 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +38 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs +13 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs.map +1 -0
- 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.d.mts +8 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +8 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +19 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.mjs +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.mjs.map +1 -0
- 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.d.mts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +39 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs.map +1 -0
- 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.d.mts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +3 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +41 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs +12 -0
- package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs.map +1 -0
- 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.d.mts +7 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.d.ts +7 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.js +79 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.mjs +43 -0
- package/dist/node/Diviner/LocationDiviner/Queries/index.mjs.map +1 -0
- 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.d.mts +13 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +31 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs +6 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs.map +1 -0
- 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.d.mts +21 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js +31 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs +6 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs.map +1 -0
- 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.d.mts +3 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.ts +3 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.js +38 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs +10 -0
- package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs.map +1 -0
- 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.d.mts +5 -0
- package/dist/node/Diviner/LocationDiviner/index.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/index.d.ts +5 -0
- package/dist/node/Diviner/LocationDiviner/index.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/index.js +122 -0
- package/dist/node/Diviner/LocationDiviner/index.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/index.mjs +83 -0
- package/dist/node/Diviner/LocationDiviner/index.mjs.map +1 -0
- 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.d.mts +5 -0
- package/dist/node/Diviner/LocationDiviner/models.d.mts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/models.d.ts +5 -0
- package/dist/node/Diviner/LocationDiviner/models.d.ts.map +1 -0
- package/dist/node/Diviner/LocationDiviner/models.js +19 -0
- package/dist/node/Diviner/LocationDiviner/models.js.map +1 -0
- package/dist/node/Diviner/LocationDiviner/models.mjs +1 -0
- package/dist/node/Diviner/LocationDiviner/models.mjs.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.cts +11 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.mts +11 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.mts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.ts +11 -0
- package/dist/node/Diviner/RemoteDivinerConfig.d.ts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.js +31 -0
- package/dist/node/Diviner/RemoteDivinerConfig.js.map +1 -0
- package/dist/node/Diviner/RemoteDivinerConfig.mjs +6 -0
- package/dist/node/Diviner/RemoteDivinerConfig.mjs.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.d.cts +6 -0
- package/dist/node/Diviner/RemoteDivinerError.d.cts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.d.mts +6 -0
- package/dist/node/Diviner/RemoteDivinerError.d.mts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.d.ts +6 -0
- package/dist/node/Diviner/RemoteDivinerError.d.ts.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.js +39 -0
- package/dist/node/Diviner/RemoteDivinerError.js.map +1 -0
- package/dist/node/Diviner/RemoteDivinerError.mjs +14 -0
- package/dist/node/Diviner/RemoteDivinerError.mjs.map +1 -0
- package/dist/node/Diviner/index.d.cts +3 -0
- package/dist/node/Diviner/index.d.cts.map +1 -0
- package/dist/node/Diviner/index.d.mts +3 -0
- package/dist/node/Diviner/index.d.mts.map +1 -0
- package/dist/node/Diviner/index.d.ts +3 -0
- package/dist/node/Diviner/index.d.ts.map +1 -0
- package/dist/node/Diviner/index.js +127 -0
- package/dist/node/Diviner/index.js.map +1 -0
- package/dist/node/Diviner/index.mjs +87 -0
- package/dist/node/Diviner/index.mjs.map +1 -0
- package/dist/node/Simple.d.cts +22 -0
- package/dist/node/Simple.d.cts.map +1 -0
- package/dist/node/Simple.d.mts +22 -0
- package/dist/node/Simple.d.mts.map +1 -0
- package/dist/node/Simple.d.ts +22 -0
- package/dist/node/Simple.d.ts.map +1 -0
- package/dist/node/Simple.js +184 -0
- package/dist/node/Simple.js.map +1 -0
- package/dist/node/Simple.mjs +157 -0
- package/dist/node/Simple.mjs.map +1 -0
- package/dist/node/Test/index.d.cts +3 -0
- package/dist/node/Test/index.d.cts.map +1 -0
- package/dist/node/Test/index.d.mts +3 -0
- package/dist/node/Test/index.d.mts.map +1 -0
- package/dist/node/Test/index.d.ts +3 -0
- package/dist/node/Test/index.d.ts.map +1 -0
- package/dist/node/Test/index.js +62 -0
- package/dist/node/Test/index.js.map +1 -0
- package/dist/node/Test/index.mjs +33 -0
- package/dist/node/Test/index.mjs.map +1 -0
- package/dist/node/Test/testBoundWitness.d.cts +4 -0
- package/dist/node/Test/testBoundWitness.d.cts.map +1 -0
- package/dist/node/Test/testBoundWitness.d.mts +4 -0
- package/dist/node/Test/testBoundWitness.d.mts.map +1 -0
- package/dist/node/Test/testBoundWitness.d.ts +4 -0
- package/dist/node/Test/testBoundWitness.d.ts.map +1 -0
- package/dist/node/Test/testBoundWitness.js +42 -0
- package/dist/node/Test/testBoundWitness.js.map +1 -0
- package/dist/node/Test/testBoundWitness.mjs +17 -0
- package/dist/node/Test/testBoundWitness.mjs.map +1 -0
- package/dist/node/Test/testPayload.d.cts +6 -0
- package/dist/node/Test/testPayload.d.cts.map +1 -0
- package/dist/node/Test/testPayload.d.mts +6 -0
- package/dist/node/Test/testPayload.d.mts.map +1 -0
- package/dist/node/Test/testPayload.d.ts +6 -0
- package/dist/node/Test/testPayload.d.ts.map +1 -0
- package/dist/node/Test/testPayload.js +44 -0
- package/dist/node/Test/testPayload.js.map +1 -0
- package/dist/node/Test/testPayload.mjs +18 -0
- package/dist/node/Test/testPayload.mjs.map +1 -0
- package/dist/node/WithArchive.d.cts +4 -0
- package/dist/node/WithArchive.d.cts.map +1 -0
- package/dist/node/WithArchive.d.mts +4 -0
- package/dist/node/WithArchive.d.mts.map +1 -0
- package/dist/node/WithArchive.d.ts +4 -0
- package/dist/node/WithArchive.d.ts.map +1 -0
- package/dist/node/WithArchive.js +19 -0
- package/dist/node/WithArchive.js.map +1 -0
- package/dist/node/WithArchive.mjs +1 -0
- package/dist/node/WithArchive.mjs.map +1 -0
- package/dist/node/index.d.cts +7 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.mts +7 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +301 -0
- package/dist/node/index.js.map +1 -0
- package/dist/{index.mjs → node/index.mjs} +14 -10
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/models/ArchivePath.d.cts +4 -0
- package/dist/node/models/ArchivePath.d.cts.map +1 -0
- package/dist/node/models/ArchivePath.d.mts +4 -0
- package/dist/node/models/ArchivePath.d.mts.map +1 -0
- package/dist/node/models/ArchivePath.d.ts +4 -0
- package/dist/node/models/ArchivePath.d.ts.map +1 -0
- package/dist/node/models/ArchivePath.js +19 -0
- package/dist/node/models/ArchivePath.js.map +1 -0
- package/dist/node/models/ArchivePath.mjs +1 -0
- package/dist/node/models/ArchivePath.mjs.map +1 -0
- package/dist/node/models/index.d.cts +2 -0
- package/dist/node/models/index.d.cts.map +1 -0
- package/dist/node/models/index.d.mts +2 -0
- package/dist/node/models/index.d.mts.map +1 -0
- package/dist/node/models/index.d.ts +2 -0
- package/dist/node/models/index.d.ts.map +1 -0
- package/dist/node/models/index.js +19 -0
- package/dist/node/models/index.js.map +1 -0
- package/dist/node/models/index.mjs +1 -0
- package/dist/node/models/index.mjs.map +1 -0
- package/dist/node/objToQuery.d.cts +2 -0
- package/dist/node/objToQuery.d.cts.map +1 -0
- package/dist/node/objToQuery.d.mts +2 -0
- package/dist/node/objToQuery.d.mts.map +1 -0
- package/dist/node/objToQuery.d.ts +2 -0
- package/dist/node/objToQuery.d.ts.map +1 -0
- package/dist/node/objToQuery.js +35 -0
- package/dist/node/objToQuery.js.map +1 -0
- package/dist/node/objToQuery.mjs +10 -0
- package/dist/node/objToQuery.mjs.map +1 -0
- package/package.json +32 -29
- package/dist/Api/Api.d.mts.map +0 -1
- package/dist/Api/Api.d.ts.map +0 -1
- package/dist/Api/index.d.mts.map +0 -1
- package/dist/Api/index.d.ts.map +0 -1
- package/dist/Base.d.mts.map +0 -1
- package/dist/Base.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Queries/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/index.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/index.d.ts.map +0 -1
- package/dist/Diviner/LocationDiviner/models.d.mts.map +0 -1
- package/dist/Diviner/LocationDiviner/models.d.ts.map +0 -1
- package/dist/Diviner/RemoteDivinerConfig.d.mts.map +0 -1
- package/dist/Diviner/RemoteDivinerConfig.d.ts.map +0 -1
- package/dist/Diviner/RemoteDivinerError.d.mts.map +0 -1
- package/dist/Diviner/RemoteDivinerError.d.ts.map +0 -1
- package/dist/Diviner/index.d.mts.map +0 -1
- package/dist/Diviner/index.d.ts.map +0 -1
- package/dist/Simple.d.mts.map +0 -1
- package/dist/Simple.d.ts.map +0 -1
- package/dist/Test/index.d.mts.map +0 -1
- package/dist/Test/index.d.ts.map +0 -1
- package/dist/Test/testBoundWitness.d.mts.map +0 -1
- package/dist/Test/testBoundWitness.d.ts.map +0 -1
- package/dist/Test/testPayload.d.mts.map +0 -1
- package/dist/Test/testPayload.d.ts.map +0 -1
- package/dist/WithArchive.d.mts.map +0 -1
- package/dist/WithArchive.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/models/ArchivePath.d.mts.map +0 -1
- package/dist/models/ArchivePath.d.ts.map +0 -1
- package/dist/models/index.d.mts.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/objToQuery.d.mts.map +0 -1
- package/dist/objToQuery.d.ts.map +0 -1
- /package/dist/{Api/Api.d.mts → browser/Api/Api.d.cts} +0 -0
- /package/dist/{Api/Api.d.ts → browser/Api/Api.d.mts} +0 -0
- /package/dist/{Api/index.d.mts → browser/Api/index.d.cts} +0 -0
- /package/dist/{Api/index.d.ts → browser/Api/index.d.mts} +0 -0
- /package/dist/{Base.d.mts → browser/Base.d.cts} +0 -0
- /package/dist/{Base.d.ts → browser/Base.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/LocationDivinerApi.d.mts → browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/LocationDivinerApi.d.ts → browser/Diviner/LocationDiviner/LocationDivinerApi.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts → browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts → browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/index.d.mts → browser/Diviner/LocationDiviner/Queries/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Queries/index.d.ts → browser/Diviner/LocationDiviner/Queries/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts → browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts → browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts → browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts → browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/index.d.mts → browser/Diviner/LocationDiviner/Witnesses/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/Witnesses/index.d.ts → browser/Diviner/LocationDiviner/Witnesses/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/index.d.mts → browser/Diviner/LocationDiviner/index.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/index.d.ts → browser/Diviner/LocationDiviner/index.d.mts} +0 -0
- /package/dist/{Diviner/LocationDiviner/models.d.mts → browser/Diviner/LocationDiviner/models.d.cts} +0 -0
- /package/dist/{Diviner/LocationDiviner/models.d.ts → browser/Diviner/LocationDiviner/models.d.mts} +0 -0
- /package/dist/{Diviner/RemoteDivinerConfig.d.mts → browser/Diviner/RemoteDivinerConfig.d.cts} +0 -0
- /package/dist/{Diviner/RemoteDivinerConfig.d.ts → browser/Diviner/RemoteDivinerConfig.d.mts} +0 -0
- /package/dist/{Diviner/RemoteDivinerError.d.mts → browser/Diviner/RemoteDivinerError.d.cts} +0 -0
- /package/dist/{Diviner/RemoteDivinerError.d.ts → browser/Diviner/RemoteDivinerError.d.mts} +0 -0
- /package/dist/{Diviner/index.d.mts → browser/Diviner/index.d.cts} +0 -0
- /package/dist/{Diviner/index.d.ts → browser/Diviner/index.d.mts} +0 -0
- /package/dist/{Simple.d.mts → browser/Simple.d.cts} +0 -0
- /package/dist/{Simple.d.ts → browser/Simple.d.mts} +0 -0
- /package/dist/{Test/index.d.mts → browser/Test/index.d.cts} +0 -0
- /package/dist/{Test/index.d.ts → browser/Test/index.d.mts} +0 -0
- /package/dist/{Test/testBoundWitness.d.mts → browser/Test/testBoundWitness.d.cts} +0 -0
- /package/dist/{Test/testBoundWitness.d.ts → browser/Test/testBoundWitness.d.mts} +0 -0
- /package/dist/{Test/testPayload.d.mts → browser/Test/testPayload.d.cts} +0 -0
- /package/dist/{Test/testPayload.d.ts → browser/Test/testPayload.d.mts} +0 -0
- /package/dist/{WithArchive.d.mts → browser/WithArchive.d.cts} +0 -0
- /package/dist/{WithArchive.d.ts → browser/WithArchive.d.mts} +0 -0
- /package/dist/{index.d.mts → browser/index.d.cts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.mts} +0 -0
- /package/dist/{models/ArchivePath.d.mts → browser/models/ArchivePath.d.cts} +0 -0
- /package/dist/{models/ArchivePath.d.ts → browser/models/ArchivePath.d.mts} +0 -0
- /package/dist/{models/index.d.mts → browser/models/index.d.cts} +0 -0
- /package/dist/{models/index.d.ts → browser/models/index.d.mts} +0 -0
- /package/dist/{objToQuery.d.mts → browser/objToQuery.d.cts} +0 -0
- /package/dist/{objToQuery.d.ts → browser/objToQuery.d.mts} +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Simple.ts
|
|
21
|
+
var Simple_exports = {};
|
|
22
|
+
__export(Simple_exports, {
|
|
23
|
+
ApiSimple: () => ApiSimple
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Simple_exports);
|
|
26
|
+
|
|
27
|
+
// src/Base.ts
|
|
28
|
+
var import_axios = require("@xyo-network/axios");
|
|
29
|
+
var ApiBase = class _ApiBase {
|
|
30
|
+
config;
|
|
31
|
+
axios;
|
|
32
|
+
constructor(config) {
|
|
33
|
+
this.config = config;
|
|
34
|
+
this.axios = new import_axios.AxiosJson({ ...this.config, headers: this.headers });
|
|
35
|
+
}
|
|
36
|
+
get authenticated() {
|
|
37
|
+
return !!this.config.apiKey || !!this.config.jwtToken;
|
|
38
|
+
}
|
|
39
|
+
get headers() {
|
|
40
|
+
const headers = {};
|
|
41
|
+
if (this.config.jwtToken) {
|
|
42
|
+
headers.Authorization = `Bearer ${this.config.jwtToken}`;
|
|
43
|
+
}
|
|
44
|
+
if (this.config.apiKey) {
|
|
45
|
+
headers["x-api-key"] = this.config.apiKey;
|
|
46
|
+
}
|
|
47
|
+
return headers;
|
|
48
|
+
}
|
|
49
|
+
get query() {
|
|
50
|
+
return this.config.query ?? "";
|
|
51
|
+
}
|
|
52
|
+
get root() {
|
|
53
|
+
return this.config.root ?? "/";
|
|
54
|
+
}
|
|
55
|
+
static resolveResponse(result) {
|
|
56
|
+
var _a;
|
|
57
|
+
return [(_a = result == null ? void 0 : result.data) == null ? void 0 : _a.data, result == null ? void 0 : result.data, result];
|
|
58
|
+
}
|
|
59
|
+
static shapeResponse(response, responseType) {
|
|
60
|
+
const resolvedResponse = _ApiBase.resolveResponse(response);
|
|
61
|
+
return responseType === "tuple" ? resolvedResponse : resolvedResponse[0];
|
|
62
|
+
}
|
|
63
|
+
onError(error, depth = 0) {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onError) == null ? void 0 : _b.call(_a, error, depth + 1);
|
|
66
|
+
(_d = (_c = this.config).onError) == null ? void 0 : _d.call(_c, error, depth);
|
|
67
|
+
}
|
|
68
|
+
onFailure(response, depth = 0) {
|
|
69
|
+
var _a, _b, _c, _d;
|
|
70
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onFailure) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
71
|
+
(_d = (_c = this.config).onFailure) == null ? void 0 : _d.call(_c, response, depth);
|
|
72
|
+
}
|
|
73
|
+
onSuccess(response, depth = 0) {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onSuccess) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
76
|
+
(_d = (_c = this.config).onSuccess) == null ? void 0 : _d.call(_c, response, depth);
|
|
77
|
+
}
|
|
78
|
+
async deleteEndpoint(endPoint = "", responseType) {
|
|
79
|
+
const response = await this.monitorResponse(async () => {
|
|
80
|
+
return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
81
|
+
});
|
|
82
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
83
|
+
}
|
|
84
|
+
async getEndpoint(endPoint = "", responseType) {
|
|
85
|
+
const response = await this.monitorResponse(async () => {
|
|
86
|
+
return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
87
|
+
});
|
|
88
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
89
|
+
}
|
|
90
|
+
handleMonitorResponseError(error, trapAxiosException) {
|
|
91
|
+
if (!error.isError) {
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
if (trapAxiosException) {
|
|
95
|
+
error.response ? this.onFailure(error.response) : this.onError(error);
|
|
96
|
+
if (this.config.throwFailure) {
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
return error.response;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
async monitorResponse(closure) {
|
|
103
|
+
let trapAxiosException = true;
|
|
104
|
+
try {
|
|
105
|
+
const response = await closure();
|
|
106
|
+
trapAxiosException = false;
|
|
107
|
+
response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
|
|
108
|
+
return response;
|
|
109
|
+
} catch (ex) {
|
|
110
|
+
this.handleMonitorResponseError(ex, trapAxiosException);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async postEndpoint(endPoint = "", data, responseType) {
|
|
114
|
+
const response = await this.monitorResponse(async () => {
|
|
115
|
+
return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
116
|
+
});
|
|
117
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
118
|
+
}
|
|
119
|
+
async putEndpoint(endPoint = "", data, responseType) {
|
|
120
|
+
const response = await this.monitorResponse(async () => {
|
|
121
|
+
return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
122
|
+
});
|
|
123
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
124
|
+
}
|
|
125
|
+
resolveRoot() {
|
|
126
|
+
return `${this.config.apiDomain}${this.root}`;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// src/objToQuery.ts
|
|
131
|
+
var objToQuery = (obj) => {
|
|
132
|
+
return `?${Object.entries(obj).map(([key, value]) => {
|
|
133
|
+
return `${key}=${value}`;
|
|
134
|
+
}).filter((value) => value !== void 0).join("&")}`;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// src/Simple.ts
|
|
138
|
+
var ApiSimple = class extends ApiBase {
|
|
139
|
+
async delete(responseType) {
|
|
140
|
+
switch (responseType) {
|
|
141
|
+
case "tuple":
|
|
142
|
+
return await this.deleteEndpoint(void 0, "tuple");
|
|
143
|
+
default:
|
|
144
|
+
return await this.deleteEndpoint(void 0);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async find(query = {}, responseType) {
|
|
148
|
+
switch (responseType) {
|
|
149
|
+
case "tuple":
|
|
150
|
+
return await this.getEndpoint(objToQuery(query), "tuple");
|
|
151
|
+
default:
|
|
152
|
+
return await this.getEndpoint(objToQuery(query));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async get(responseType) {
|
|
156
|
+
switch (responseType) {
|
|
157
|
+
case "tuple":
|
|
158
|
+
return await this.getEndpoint(void 0, "tuple");
|
|
159
|
+
default:
|
|
160
|
+
return await this.getEndpoint(void 0);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
async post(data, responseType) {
|
|
164
|
+
switch (responseType) {
|
|
165
|
+
case "tuple":
|
|
166
|
+
return await this.postEndpoint(void 0, data, "tuple");
|
|
167
|
+
default:
|
|
168
|
+
return await this.postEndpoint(void 0, data);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
async put(data, responseType) {
|
|
172
|
+
switch (responseType) {
|
|
173
|
+
case "tuple":
|
|
174
|
+
return await this.putEndpoint(void 0, data, "tuple");
|
|
175
|
+
default:
|
|
176
|
+
return await this.putEndpoint(void 0, data);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
181
|
+
0 && (module.exports = {
|
|
182
|
+
ApiSimple
|
|
183
|
+
});
|
|
184
|
+
//# sourceMappingURL=Simple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Simple.ts","../../src/Base.ts","../../src/objToQuery.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","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"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// src/Base.ts
|
|
2
|
+
import { AxiosJson } from "@xyo-network/axios";
|
|
3
|
+
var ApiBase = class _ApiBase {
|
|
4
|
+
config;
|
|
5
|
+
axios;
|
|
6
|
+
constructor(config) {
|
|
7
|
+
this.config = config;
|
|
8
|
+
this.axios = new AxiosJson({ ...this.config, headers: this.headers });
|
|
9
|
+
}
|
|
10
|
+
get authenticated() {
|
|
11
|
+
return !!this.config.apiKey || !!this.config.jwtToken;
|
|
12
|
+
}
|
|
13
|
+
get headers() {
|
|
14
|
+
const headers = {};
|
|
15
|
+
if (this.config.jwtToken) {
|
|
16
|
+
headers.Authorization = `Bearer ${this.config.jwtToken}`;
|
|
17
|
+
}
|
|
18
|
+
if (this.config.apiKey) {
|
|
19
|
+
headers["x-api-key"] = this.config.apiKey;
|
|
20
|
+
}
|
|
21
|
+
return headers;
|
|
22
|
+
}
|
|
23
|
+
get query() {
|
|
24
|
+
return this.config.query ?? "";
|
|
25
|
+
}
|
|
26
|
+
get root() {
|
|
27
|
+
return this.config.root ?? "/";
|
|
28
|
+
}
|
|
29
|
+
static resolveResponse(result) {
|
|
30
|
+
var _a;
|
|
31
|
+
return [(_a = result == null ? void 0 : result.data) == null ? void 0 : _a.data, result == null ? void 0 : result.data, result];
|
|
32
|
+
}
|
|
33
|
+
static shapeResponse(response, responseType) {
|
|
34
|
+
const resolvedResponse = _ApiBase.resolveResponse(response);
|
|
35
|
+
return responseType === "tuple" ? resolvedResponse : resolvedResponse[0];
|
|
36
|
+
}
|
|
37
|
+
onError(error, depth = 0) {
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onError) == null ? void 0 : _b.call(_a, error, depth + 1);
|
|
40
|
+
(_d = (_c = this.config).onError) == null ? void 0 : _d.call(_c, error, depth);
|
|
41
|
+
}
|
|
42
|
+
onFailure(response, depth = 0) {
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onFailure) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
45
|
+
(_d = (_c = this.config).onFailure) == null ? void 0 : _d.call(_c, response, depth);
|
|
46
|
+
}
|
|
47
|
+
onSuccess(response, depth = 0) {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
(_b = (_a = this.config.reportableParent) == null ? void 0 : _a.onSuccess) == null ? void 0 : _b.call(_a, response, depth + 1);
|
|
50
|
+
(_d = (_c = this.config).onSuccess) == null ? void 0 : _d.call(_c, response, depth);
|
|
51
|
+
}
|
|
52
|
+
async deleteEndpoint(endPoint = "", responseType) {
|
|
53
|
+
const response = await this.monitorResponse(async () => {
|
|
54
|
+
return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
55
|
+
});
|
|
56
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
57
|
+
}
|
|
58
|
+
async getEndpoint(endPoint = "", responseType) {
|
|
59
|
+
const response = await this.monitorResponse(async () => {
|
|
60
|
+
return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
|
|
61
|
+
});
|
|
62
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
63
|
+
}
|
|
64
|
+
handleMonitorResponseError(error, trapAxiosException) {
|
|
65
|
+
if (!error.isError) {
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
if (trapAxiosException) {
|
|
69
|
+
error.response ? this.onFailure(error.response) : this.onError(error);
|
|
70
|
+
if (this.config.throwFailure) {
|
|
71
|
+
throw error;
|
|
72
|
+
}
|
|
73
|
+
return error.response;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
async monitorResponse(closure) {
|
|
77
|
+
let trapAxiosException = true;
|
|
78
|
+
try {
|
|
79
|
+
const response = await closure();
|
|
80
|
+
trapAxiosException = false;
|
|
81
|
+
response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
|
|
82
|
+
return response;
|
|
83
|
+
} catch (ex) {
|
|
84
|
+
this.handleMonitorResponseError(ex, trapAxiosException);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async postEndpoint(endPoint = "", data, responseType) {
|
|
88
|
+
const response = await this.monitorResponse(async () => {
|
|
89
|
+
return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
90
|
+
});
|
|
91
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
92
|
+
}
|
|
93
|
+
async putEndpoint(endPoint = "", data, responseType) {
|
|
94
|
+
const response = await this.monitorResponse(async () => {
|
|
95
|
+
return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
|
|
96
|
+
});
|
|
97
|
+
return _ApiBase.shapeResponse(response, responseType);
|
|
98
|
+
}
|
|
99
|
+
resolveRoot() {
|
|
100
|
+
return `${this.config.apiDomain}${this.root}`;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// src/objToQuery.ts
|
|
105
|
+
var objToQuery = (obj) => {
|
|
106
|
+
return `?${Object.entries(obj).map(([key, value]) => {
|
|
107
|
+
return `${key}=${value}`;
|
|
108
|
+
}).filter((value) => value !== void 0).join("&")}`;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// src/Simple.ts
|
|
112
|
+
var ApiSimple = class extends ApiBase {
|
|
113
|
+
async delete(responseType) {
|
|
114
|
+
switch (responseType) {
|
|
115
|
+
case "tuple":
|
|
116
|
+
return await this.deleteEndpoint(void 0, "tuple");
|
|
117
|
+
default:
|
|
118
|
+
return await this.deleteEndpoint(void 0);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async find(query = {}, responseType) {
|
|
122
|
+
switch (responseType) {
|
|
123
|
+
case "tuple":
|
|
124
|
+
return await this.getEndpoint(objToQuery(query), "tuple");
|
|
125
|
+
default:
|
|
126
|
+
return await this.getEndpoint(objToQuery(query));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
async get(responseType) {
|
|
130
|
+
switch (responseType) {
|
|
131
|
+
case "tuple":
|
|
132
|
+
return await this.getEndpoint(void 0, "tuple");
|
|
133
|
+
default:
|
|
134
|
+
return await this.getEndpoint(void 0);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async post(data, responseType) {
|
|
138
|
+
switch (responseType) {
|
|
139
|
+
case "tuple":
|
|
140
|
+
return await this.postEndpoint(void 0, data, "tuple");
|
|
141
|
+
default:
|
|
142
|
+
return await this.postEndpoint(void 0, data);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
async put(data, responseType) {
|
|
146
|
+
switch (responseType) {
|
|
147
|
+
case "tuple":
|
|
148
|
+
return await this.putEndpoint(void 0, data, "tuple");
|
|
149
|
+
default:
|
|
150
|
+
return await this.putEndpoint(void 0, data);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
ApiSimple
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=Simple.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Test/index.ts
|
|
21
|
+
var Test_exports = {};
|
|
22
|
+
__export(Test_exports, {
|
|
23
|
+
testBoundWitness: () => testBoundWitness,
|
|
24
|
+
testPayload: () => testPayload,
|
|
25
|
+
testSchema: () => testSchema
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Test_exports);
|
|
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
|
+
};
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
testBoundWitness,
|
|
59
|
+
testPayload,
|
|
60
|
+
testSchema
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Test/testBoundWitness.ts
|
|
21
|
+
var testBoundWitness_exports = {};
|
|
22
|
+
__export(testBoundWitness_exports, {
|
|
23
|
+
testBoundWitness: () => testBoundWitness
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(testBoundWitness_exports);
|
|
26
|
+
var import_boundwitness_model = require("@xyo-network/boundwitness-model");
|
|
27
|
+
var testBoundWitness = {
|
|
28
|
+
_client: "js",
|
|
29
|
+
_hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
|
|
30
|
+
_signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
|
|
31
|
+
_timestamp: 1650067385598,
|
|
32
|
+
addresses: ["5346a2ce56ec4177b67092bda710e150ba6fa046"],
|
|
33
|
+
payload_hashes: ["20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c"],
|
|
34
|
+
payload_schemas: ["network.xyo.test"],
|
|
35
|
+
previous_hashes: [null],
|
|
36
|
+
schema: import_boundwitness_model.BoundWitnessSchema
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
testBoundWitness
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=testBoundWitness.js.map
|
|
@@ -0,0 +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;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":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {
|
|
15
|
+
testBoundWitness
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=testBoundWitness.mjs.map
|
|
@@ -0,0 +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,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
|