@xyo-network/api 2.20.41 → 2.20.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Archivist/Account/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Account/Api.js +14 -14
- package/dist/cjs/Archivist/Account/index.d.ts +1 -1
- package/dist/cjs/Archivist/Account/index.js +4 -4
- package/dist/cjs/Archivist/Api.d.ts +34 -27
- package/dist/cjs/Archivist/Api.js +68 -59
- package/dist/cjs/Archivist/Api.js.map +1 -1
- package/dist/cjs/Archivist/Archive/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Archive/Api.js +39 -39
- package/dist/cjs/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/cjs/Archivist/Archive/Schema/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schema/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Schemas/Api.js +13 -13
- package/dist/cjs/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schemas/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Settings/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.js +10 -10
- package/dist/cjs/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Settings/Key/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/cjs/Archivist/Archive/Settings/index.js +5 -5
- package/dist/cjs/Archivist/Archive/index.d.ts +4 -4
- package/dist/cjs/Archivist/Archive/index.js +7 -7
- package/dist/cjs/Archivist/Archives/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Archives/Api.js +15 -15
- package/dist/cjs/Archivist/Archives/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archives/index.js +4 -4
- package/dist/cjs/Archivist/Block/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Block/Api.js +11 -11
- package/dist/cjs/Archivist/Block/index.d.ts +1 -1
- package/dist/cjs/Archivist/Block/index.js +4 -4
- package/dist/cjs/Archivist/Node/Api.d.ts +20 -0
- package/dist/cjs/Archivist/Node/Api.js +57 -0
- package/dist/cjs/Archivist/Node/Api.js.map +1 -0
- package/dist/cjs/Archivist/Node/index.d.ts +1 -0
- package/dist/cjs/Archivist/Node/index.js +5 -0
- package/dist/cjs/Archivist/Node/index.js.map +1 -0
- package/dist/cjs/Archivist/Payload/Api.d.ts +40 -40
- package/dist/cjs/Archivist/Payload/Api.js +83 -83
- package/dist/cjs/Archivist/Payload/Schema/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Payload/Schema/Api.js +13 -13
- package/dist/cjs/Archivist/Payload/Schema/index.d.ts +1 -1
- package/dist/cjs/Archivist/Payload/Schema/index.js +4 -4
- package/dist/cjs/Archivist/Payload/index.d.ts +2 -2
- package/dist/cjs/Archivist/Payload/index.js +5 -5
- package/dist/cjs/Archivist/index.d.ts +6 -6
- package/dist/cjs/Archivist/index.js +9 -9
- package/dist/cjs/Base.d.ts +33 -33
- package/dist/cjs/Base.js +146 -146
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApi.js +27 -27
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
- package/dist/cjs/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +23 -23
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +12 -12
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
- package/dist/cjs/Diviner/LocationDiviner/Queries/index.js +9 -9
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js +4 -4
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/index.js +5 -5
- package/dist/cjs/Diviner/LocationDiviner/index.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/index.js +7 -7
- package/dist/cjs/Diviner/LocationDiviner/models.d.ts +4 -4
- package/dist/cjs/Diviner/LocationDiviner/models.js +2 -2
- package/dist/cjs/Diviner/index.d.ts +1 -1
- package/dist/cjs/Diviner/index.js +4 -4
- package/dist/cjs/Simple.d.ts +21 -21
- package/dist/cjs/Simple.js +59 -59
- package/dist/cjs/Test/index.d.ts +2 -2
- package/dist/cjs/Test/index.js +5 -5
- package/dist/cjs/Test/testBoundWitness.d.ts +3 -3
- package/dist/cjs/Test/testBoundWitness.js +16 -16
- package/dist/cjs/Test/testPayload.d.ts +4 -4
- package/dist/cjs/Test/testPayload.js +18 -18
- package/dist/cjs/User/Api.d.ts +31 -31
- package/dist/cjs/User/Api.js +24 -24
- package/dist/cjs/User/index.d.ts +1 -1
- package/dist/cjs/User/index.js +4 -4
- package/dist/cjs/WithArchive.d.ts +3 -3
- package/dist/cjs/WithArchive.js +2 -2
- package/dist/cjs/index.d.ts +7 -7
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/models/Api/Config.d.ts +24 -24
- package/dist/cjs/models/Api/Config.js +2 -2
- package/dist/cjs/models/Api/Envelope.d.ts +14 -14
- package/dist/cjs/models/Api/Envelope.js +2 -2
- package/dist/cjs/models/Api/Error.d.ts +4 -4
- package/dist/cjs/models/Api/Error.js +2 -2
- package/dist/cjs/models/Api/Reportable.d.ts +7 -7
- package/dist/cjs/models/Api/Reportable.js +2 -2
- package/dist/cjs/models/Api/Response.d.ts +7 -7
- package/dist/cjs/models/Api/Response.js +2 -2
- package/dist/cjs/models/Api/Warning.d.ts +1 -1
- package/dist/cjs/models/Api/Warning.js +2 -2
- package/dist/cjs/models/Api/index.d.ts +6 -6
- package/dist/cjs/models/Api/index.js +9 -9
- package/dist/cjs/models/Archive.d.ts +24 -24
- package/dist/cjs/models/Archive.js +2 -2
- package/dist/cjs/models/ArchiveKey.d.ts +5 -5
- package/dist/cjs/models/ArchiveKey.js +2 -2
- package/dist/cjs/models/ArchivePath.d.ts +3 -3
- package/dist/cjs/models/ArchivePath.js +2 -2
- package/dist/cjs/models/index.d.ts +4 -4
- package/dist/cjs/models/index.js +7 -7
- package/dist/cjs/objToQuery.d.ts +1 -1
- package/dist/cjs/objToQuery.js +12 -12
- package/dist/docs.json +4183 -4072
- package/dist/esm/Archivist/Account/Api.d.ts +18 -18
- package/dist/esm/Archivist/Account/Api.js +16 -16
- package/dist/esm/Archivist/Account/index.d.ts +1 -1
- package/dist/esm/Archivist/Account/index.js +1 -1
- package/dist/esm/Archivist/Api.d.ts +34 -27
- package/dist/esm/Archivist/Api.js +82 -70
- package/dist/esm/Archivist/Api.js.map +1 -1
- package/dist/esm/Archivist/Archive/Api.d.ts +18 -18
- package/dist/esm/Archivist/Archive/Api.js +50 -50
- package/dist/esm/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/esm/Archivist/Archive/Schema/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schema/index.js +1 -1
- package/dist/esm/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Schemas/Api.js +12 -12
- package/dist/esm/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schemas/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Settings/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/esm/Archivist/Archive/Settings/Key/Api.js +9 -9
- package/dist/esm/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Settings/Key/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/esm/Archivist/Archive/Settings/index.js +2 -2
- package/dist/esm/Archivist/Archive/index.d.ts +4 -4
- package/dist/esm/Archivist/Archive/index.js +4 -4
- package/dist/esm/Archivist/Archives/Api.d.ts +8 -8
- package/dist/esm/Archivist/Archives/Api.js +14 -14
- package/dist/esm/Archivist/Archives/index.d.ts +1 -1
- package/dist/esm/Archivist/Archives/index.js +1 -1
- package/dist/esm/Archivist/Block/Api.d.ts +8 -8
- package/dist/esm/Archivist/Block/Api.js +10 -10
- package/dist/esm/Archivist/Block/index.d.ts +1 -1
- package/dist/esm/Archivist/Block/index.js +1 -1
- package/dist/esm/Archivist/Node/Api.d.ts +20 -0
- package/dist/esm/Archivist/Node/Api.js +53 -0
- package/dist/esm/Archivist/Node/Api.js.map +1 -0
- package/dist/esm/Archivist/Node/index.d.ts +1 -0
- package/dist/esm/Archivist/Node/index.js +2 -0
- package/dist/esm/Archivist/Node/index.js.map +1 -0
- package/dist/esm/Archivist/Payload/Api.d.ts +40 -40
- package/dist/esm/Archivist/Payload/Api.js +67 -67
- package/dist/esm/Archivist/Payload/Schema/Api.d.ts +8 -8
- package/dist/esm/Archivist/Payload/Schema/Api.js +12 -12
- package/dist/esm/Archivist/Payload/Schema/index.d.ts +1 -1
- package/dist/esm/Archivist/Payload/Schema/index.js +1 -1
- package/dist/esm/Archivist/Payload/index.d.ts +2 -2
- package/dist/esm/Archivist/Payload/index.js +2 -2
- package/dist/esm/Archivist/index.d.ts +6 -6
- package/dist/esm/Archivist/index.js +6 -6
- package/dist/esm/Base.d.ts +33 -33
- package/dist/esm/Base.js +128 -128
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApi.js +19 -19
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +9 -9
- package/dist/esm/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +17 -17
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +17 -17
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +8 -8
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +7 -7
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +11 -11
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +5 -5
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/index.d.ts +6 -6
- package/dist/esm/Diviner/LocationDiviner/Queries/index.js +6 -6
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -13
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -21
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/index.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Witnesses/index.js +2 -2
- package/dist/esm/Diviner/LocationDiviner/index.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/index.js +4 -4
- package/dist/esm/Diviner/LocationDiviner/models.d.ts +4 -4
- package/dist/esm/Diviner/LocationDiviner/models.js +1 -1
- package/dist/esm/Diviner/index.d.ts +1 -1
- package/dist/esm/Diviner/index.js +1 -1
- package/dist/esm/Simple.d.ts +21 -21
- package/dist/esm/Simple.js +44 -44
- package/dist/esm/Test/index.d.ts +2 -2
- package/dist/esm/Test/index.js +2 -2
- package/dist/esm/Test/testBoundWitness.d.ts +3 -3
- package/dist/esm/Test/testBoundWitness.js +13 -13
- package/dist/esm/Test/testPayload.d.ts +4 -4
- package/dist/esm/Test/testPayload.js +14 -14
- package/dist/esm/User/Api.d.ts +31 -31
- package/dist/esm/User/Api.js +26 -26
- package/dist/esm/User/index.d.ts +1 -1
- package/dist/esm/User/index.js +1 -1
- package/dist/esm/WithArchive.d.ts +3 -3
- package/dist/esm/WithArchive.js +1 -1
- package/dist/esm/index.d.ts +7 -7
- package/dist/esm/index.js +7 -7
- package/dist/esm/models/Api/Config.d.ts +24 -24
- package/dist/esm/models/Api/Config.js +1 -1
- package/dist/esm/models/Api/Envelope.d.ts +14 -14
- package/dist/esm/models/Api/Envelope.js +1 -1
- package/dist/esm/models/Api/Error.d.ts +4 -4
- package/dist/esm/models/Api/Error.js +1 -1
- package/dist/esm/models/Api/Reportable.d.ts +7 -7
- package/dist/esm/models/Api/Reportable.js +1 -1
- package/dist/esm/models/Api/Response.d.ts +7 -7
- package/dist/esm/models/Api/Response.js +1 -1
- package/dist/esm/models/Api/Warning.d.ts +1 -1
- package/dist/esm/models/Api/Warning.js +1 -1
- package/dist/esm/models/Api/index.d.ts +6 -6
- package/dist/esm/models/Api/index.js +6 -6
- package/dist/esm/models/Archive.d.ts +24 -24
- package/dist/esm/models/Archive.js +1 -1
- package/dist/esm/models/ArchiveKey.d.ts +5 -5
- package/dist/esm/models/ArchiveKey.js +1 -1
- package/dist/esm/models/ArchivePath.d.ts +3 -3
- package/dist/esm/models/ArchivePath.js +1 -1
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/objToQuery.d.ts +1 -1
- package/dist/esm/objToQuery.js +8 -8
- package/package.json +3 -3
- package/src/Archivist/Api.ts +14 -1
- package/src/Archivist/Node/Api.spec.ts +133 -0
- package/src/Archivist/Node/Api.ts +61 -0
- package/src/Archivist/Node/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Key';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Key';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Key"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Key"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Schema';
|
|
3
|
-
export * from './Schemas';
|
|
4
|
-
export * from './Settings';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Schema';
|
|
3
|
+
export * from './Schemas';
|
|
4
|
+
export * from './Settings';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Schema"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./Schemas"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./Settings"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Schema"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Schemas"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./Settings"), exports);
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { XyoArchive } from '../../models';
|
|
2
|
-
import { XyoApiSimple } from '../../Simple';
|
|
3
|
-
import { XyoArchivistArchiveApi } from '../Archive';
|
|
4
|
-
export declare class XyoArchivistArchivesApi extends XyoApiSimple<XyoArchive[]> {
|
|
5
|
-
archive(archive?: string): XyoArchivistArchiveApi;
|
|
6
|
-
/** @deprecated: use archive(string) instead */
|
|
7
|
-
select(archive?: string): XyoArchivistArchiveApi;
|
|
8
|
-
}
|
|
1
|
+
import { XyoArchive } from '../../models';
|
|
2
|
+
import { XyoApiSimple } from '../../Simple';
|
|
3
|
+
import { XyoArchivistArchiveApi } from '../Archive';
|
|
4
|
+
export declare class XyoArchivistArchivesApi extends XyoApiSimple<XyoArchive[]> {
|
|
5
|
+
archive(archive?: string): XyoArchivistArchiveApi;
|
|
6
|
+
/** @deprecated: use archive(string) instead */
|
|
7
|
+
select(archive?: string): XyoArchivistArchiveApi;
|
|
8
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XyoArchivistArchivesApi = void 0;
|
|
4
|
-
const Simple_1 = require("../../Simple");
|
|
5
|
-
const Archive_1 = require("../Archive");
|
|
6
|
-
class XyoArchivistArchivesApi extends Simple_1.XyoApiSimple {
|
|
7
|
-
archive(archive = 'temp') {
|
|
8
|
-
return new Archive_1.XyoArchivistArchiveApi(Object.assign(Object.assign({}, this.config), { root: `${this.root}${archive}/` }));
|
|
9
|
-
}
|
|
10
|
-
/** @deprecated: use archive(string) instead */
|
|
11
|
-
select(archive = 'temp') {
|
|
12
|
-
return this.archive(archive);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.XyoArchivistArchivesApi = XyoArchivistArchivesApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoArchivistArchivesApi = void 0;
|
|
4
|
+
const Simple_1 = require("../../Simple");
|
|
5
|
+
const Archive_1 = require("../Archive");
|
|
6
|
+
class XyoArchivistArchivesApi extends Simple_1.XyoApiSimple {
|
|
7
|
+
archive(archive = 'temp') {
|
|
8
|
+
return new Archive_1.XyoArchivistArchiveApi(Object.assign(Object.assign({}, this.config), { root: `${this.root}${archive}/` }));
|
|
9
|
+
}
|
|
10
|
+
/** @deprecated: use archive(string) instead */
|
|
11
|
+
select(archive = 'temp') {
|
|
12
|
+
return this.archive(archive);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.XyoArchivistArchivesApi = XyoArchivistArchivesApi;
|
|
16
16
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { XyoBoundWitness, XyoPayload } from '@xyo-network/core';
|
|
2
|
-
import { XyoApiConfig } from '../../models';
|
|
3
|
-
import { XyoApiSimple } from '../../Simple';
|
|
4
|
-
import { WithArchive } from '../../WithArchive';
|
|
5
|
-
import { XyoArchivistPayloadApi } from '../Payload';
|
|
6
|
-
export declare class XyoArchivistArchiveBlockApi<T extends XyoBoundWitness = XyoBoundWitness, C extends WithArchive<XyoApiConfig> = WithArchive<XyoApiConfig>> extends XyoArchivistPayloadApi<T, C> {
|
|
7
|
-
payloads(hash: string): XyoApiSimple<XyoPayload[][]>;
|
|
8
|
-
}
|
|
1
|
+
import { XyoBoundWitness, XyoPayload } from '@xyo-network/core';
|
|
2
|
+
import { XyoApiConfig } from '../../models';
|
|
3
|
+
import { XyoApiSimple } from '../../Simple';
|
|
4
|
+
import { WithArchive } from '../../WithArchive';
|
|
5
|
+
import { XyoArchivistPayloadApi } from '../Payload';
|
|
6
|
+
export declare class XyoArchivistArchiveBlockApi<T extends XyoBoundWitness = XyoBoundWitness, C extends WithArchive<XyoApiConfig> = WithArchive<XyoApiConfig>> extends XyoArchivistPayloadApi<T, C> {
|
|
7
|
+
payloads(hash: string): XyoApiSimple<XyoPayload[][]>;
|
|
8
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XyoArchivistArchiveBlockApi = void 0;
|
|
4
|
-
const Simple_1 = require("../../Simple");
|
|
5
|
-
const Payload_1 = require("../Payload");
|
|
6
|
-
class XyoArchivistArchiveBlockApi extends Payload_1.XyoArchivistPayloadApi {
|
|
7
|
-
payloads(hash) {
|
|
8
|
-
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}hash/${hash}/payloads/` }));
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.XyoArchivistArchiveBlockApi = XyoArchivistArchiveBlockApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoArchivistArchiveBlockApi = void 0;
|
|
4
|
+
const Simple_1 = require("../../Simple");
|
|
5
|
+
const Payload_1 = require("../Payload");
|
|
6
|
+
class XyoArchivistArchiveBlockApi extends Payload_1.XyoArchivistPayloadApi {
|
|
7
|
+
payloads(hash) {
|
|
8
|
+
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}hash/${hash}/payloads/` }));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.XyoArchivistArchiveBlockApi = XyoArchivistArchiveBlockApi;
|
|
12
12
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { XyoBoundWitness, XyoPayload } from '@xyo-network/core';
|
|
2
|
+
import { XyoApiConfig } from '../../models';
|
|
3
|
+
import { XyoApiSimple, XyoApiSimpleQuery } from '../../Simple';
|
|
4
|
+
import { WithArchive } from '../../WithArchive';
|
|
5
|
+
export declare class XyoArchivistNodeApi<D extends XyoBoundWitness | XyoBoundWitness[] = XyoBoundWitness | XyoBoundWitness[], C extends WithArchive<XyoApiConfig> = WithArchive<XyoApiConfig>> extends XyoApiSimple<string[][], D, XyoApiSimpleQuery, C> {
|
|
6
|
+
/**
|
|
7
|
+
* Get the result of a previously issued query (if available)
|
|
8
|
+
* @param queryId Query ID from a previously issued query
|
|
9
|
+
* @returns The result of the query (if available)
|
|
10
|
+
*/
|
|
11
|
+
result<T extends XyoPayload = XyoPayload>(queryId: string): XyoApiSimple<XyoPayload>;
|
|
12
|
+
/**
|
|
13
|
+
* Issue the supplied queries and wait (non-blocking) for the results
|
|
14
|
+
* @param data The queries to issue
|
|
15
|
+
* @param timeout
|
|
16
|
+
* @param retryInterval
|
|
17
|
+
* @returns The results for the issued queries
|
|
18
|
+
*/
|
|
19
|
+
perform(data: D, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/core").XyoPayloadFull | undefined>[][]>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoArchivistNodeApi = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const sdk_js_1 = require("@xylabs/sdk-js");
|
|
6
|
+
const Simple_1 = require("../../Simple");
|
|
7
|
+
const getRequestStatuses = (results) => {
|
|
8
|
+
return results.flatMap((r) => r).map((r) => { var _a; return (_a = r === null || r === void 0 ? void 0 : r[2]) === null || _a === void 0 ? void 0 : _a.status; });
|
|
9
|
+
};
|
|
10
|
+
const allRequestsSucceeded = (results) => {
|
|
11
|
+
return getRequestStatuses(results).every((status) => status === 200);
|
|
12
|
+
};
|
|
13
|
+
const anyRequestsFailed = (results) => {
|
|
14
|
+
return getRequestStatuses(results).every((status) => status > 399);
|
|
15
|
+
};
|
|
16
|
+
class XyoArchivistNodeApi extends Simple_1.XyoApiSimple {
|
|
17
|
+
/**
|
|
18
|
+
* Get the result of a previously issued query (if available)
|
|
19
|
+
* @param queryId Query ID from a previously issued query
|
|
20
|
+
* @returns The result of the query (if available)
|
|
21
|
+
*/
|
|
22
|
+
result(queryId) {
|
|
23
|
+
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `/query/${queryId}/` }));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Issue the supplied queries and wait (non-blocking) for the results
|
|
27
|
+
* @param data The queries to issue
|
|
28
|
+
* @param timeout
|
|
29
|
+
* @param retryInterval
|
|
30
|
+
* @returns The results for the issued queries
|
|
31
|
+
*/
|
|
32
|
+
perform(data, timeout = 5000, retryInterval = 100) {
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
(0, sdk_js_1.assertEx)(timeout > 0, 'timeout must be positive');
|
|
35
|
+
(0, sdk_js_1.assertEx)(retryInterval > 0, 'retryInterval must be positive');
|
|
36
|
+
(0, sdk_js_1.assertEx)(timeout > retryInterval, 'timeout must be greater than retryInterval');
|
|
37
|
+
const ids = yield this.post(data);
|
|
38
|
+
if (!(ids === null || ids === void 0 ? void 0 : ids.length))
|
|
39
|
+
return [];
|
|
40
|
+
const loops = Math.floor(timeout / retryInterval);
|
|
41
|
+
let results = [];
|
|
42
|
+
for (let i = 0; i < loops; i++) {
|
|
43
|
+
yield (0, sdk_js_1.delay)(retryInterval);
|
|
44
|
+
results = yield Promise.all(ids === null || ids === void 0 ? void 0 : ids.map((bw) => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield Promise.all(bw.map((p) => this.result(p).get('tuple'))); })));
|
|
45
|
+
if (allRequestsSucceeded(results))
|
|
46
|
+
break;
|
|
47
|
+
// TODO: More nuanced error handling of partial success/failure
|
|
48
|
+
if (anyRequestsFailed(results))
|
|
49
|
+
throw new Error('Request Error');
|
|
50
|
+
}
|
|
51
|
+
// Unpack results
|
|
52
|
+
return results.map((b) => b.map((p) => p[1]));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.XyoArchivistNodeApi = XyoArchivistNodeApi;
|
|
57
|
+
//# sourceMappingURL=Api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Api.js","sourceRoot":"","sources":["../../../../src/Archivist/Node/Api.ts"],"names":[],"mappings":";;;;AAAA,2CAAgD;AAIhD,yCAA8D;AAG9D,MAAM,kBAAkB,GAAG,CAAC,OAA4C,EAAY,EAAE;IACpF,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,CAAC,CAAC,0CAAE,MAAM,CAAA,EAAA,CAAC,CAAA;AAC7D,CAAC,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,OAA4C,EAAW,EAAE;IACrF,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,GAAG,CAAC,CAAA;AACtE,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,OAA4C,EAAW,EAAE;IAClF,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,CAAA;AACpE,CAAC,CAAA;AAED,MAAa,mBAGX,SAAQ,qBAAiD;IACzD;;;;OAIG;IACI,MAAM,CAAoC,OAAe;QAC9D,OAAO,IAAI,qBAAY,iCAClB,IAAI,CAAC,MAAM,KACd,IAAI,EAAE,UAAU,OAAO,GAAG,IAC1B,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACU,OAAO,CAAC,IAAO,EAAE,OAAO,GAAG,IAAI,EAAE,aAAa,GAAG,GAAG;;YAC/D,IAAA,iBAAQ,EAAC,OAAO,GAAG,CAAC,EAAE,0BAA0B,CAAC,CAAA;YACjD,IAAA,iBAAQ,EAAC,aAAa,GAAG,CAAC,EAAE,gCAAgC,CAAC,CAAA;YAC7D,IAAA,iBAAQ,EAAC,OAAO,GAAG,aAAa,EAAE,4CAA4C,CAAC,CAAA;YAC/E,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACjC,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA;gBAAE,OAAO,EAAE,CAAA;YAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC,CAAA;YACjD,IAAI,OAAO,GAAG,EAAyC,CAAA;YACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;gBAC9B,MAAM,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;gBAC1B,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,GAAG,CAAC,CAAO,EAAE,EAAE,EAAE,wDAAC,OAAA,MAAM,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,GAAA,CAAC,CAAC,CAAA;gBAClH,IAAI,oBAAoB,CAAC,OAAO,CAAC;oBAAE,MAAK;gBACxC,+DAA+D;gBAC/D,IAAI,iBAAiB,CAAC,OAAO,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;aACjE;YACD,iBAAiB;YACjB,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC/C,CAAC;KAAA;CACF;AAzCD,kDAyCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Archivist/Node/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { XyoPayload } from '@xyo-network/core';
|
|
2
|
-
import { XyoApiConfig } from '../../models';
|
|
3
|
-
import { XyoApiSimple } from '../../Simple';
|
|
4
|
-
import { WithArchive } from '../../WithArchive';
|
|
5
|
-
import { XyoArchivistArchivePayloadSchemaApi } from './Schema';
|
|
6
|
-
export interface XyoPayloadFindFilter {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
order?: 'desc' | 'asc';
|
|
9
|
-
timestamp?: number;
|
|
10
|
-
limit?: number;
|
|
11
|
-
schema?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface XyoPayloadStats {
|
|
14
|
-
count: number;
|
|
15
|
-
}
|
|
16
|
-
export declare class XyoArchivistPayloadApi<T extends XyoPayload = XyoPayload, C extends WithArchive<XyoApiConfig> = WithArchive<XyoApiConfig>> extends XyoApiSimple<T[], T[], XyoPayloadFindFilter, C> {
|
|
17
|
-
get schema(): XyoArchivistArchivePayloadSchemaApi;
|
|
18
|
-
private _stats?;
|
|
19
|
-
get stats(): XyoApiSimple<XyoPayloadStats>;
|
|
20
|
-
hash(hash: string): XyoApiSimple<XyoPayload[]>;
|
|
21
|
-
repair(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
22
|
-
/** @deprecated use stats instead */
|
|
23
|
-
getStats(): Promise<import("../../models").XyoApiResponseBody<XyoPayloadStats>>;
|
|
24
|
-
/** @deprecated use hash */
|
|
25
|
-
getByHash(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
26
|
-
/** @deprecated use repair */
|
|
27
|
-
repairByHash(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
28
|
-
/** @deprecated use find */
|
|
29
|
-
findBefore(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
30
|
-
/** @deprecated use findBefore */
|
|
31
|
-
getBefore(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
32
|
-
/** @deprecated use find */
|
|
33
|
-
findAfter(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
34
|
-
/** @deprecated use find */
|
|
35
|
-
getAfter(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
36
|
-
/** @deprecated use find */
|
|
37
|
-
findMostRecent(limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
38
|
-
/** @deprecated use find */
|
|
39
|
-
getMostRecent(limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
40
|
-
}
|
|
1
|
+
import { XyoPayload } from '@xyo-network/core';
|
|
2
|
+
import { XyoApiConfig } from '../../models';
|
|
3
|
+
import { XyoApiSimple } from '../../Simple';
|
|
4
|
+
import { WithArchive } from '../../WithArchive';
|
|
5
|
+
import { XyoArchivistArchivePayloadSchemaApi } from './Schema';
|
|
6
|
+
export interface XyoPayloadFindFilter {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
order?: 'desc' | 'asc';
|
|
9
|
+
timestamp?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
schema?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface XyoPayloadStats {
|
|
14
|
+
count: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class XyoArchivistPayloadApi<T extends XyoPayload = XyoPayload, C extends WithArchive<XyoApiConfig> = WithArchive<XyoApiConfig>> extends XyoApiSimple<T[], T[], XyoPayloadFindFilter, C> {
|
|
17
|
+
get schema(): XyoArchivistArchivePayloadSchemaApi;
|
|
18
|
+
private _stats?;
|
|
19
|
+
get stats(): XyoApiSimple<XyoPayloadStats>;
|
|
20
|
+
hash(hash: string): XyoApiSimple<XyoPayload[]>;
|
|
21
|
+
repair(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
22
|
+
/** @deprecated use stats instead */
|
|
23
|
+
getStats(): Promise<import("../../models").XyoApiResponseBody<XyoPayloadStats>>;
|
|
24
|
+
/** @deprecated use hash */
|
|
25
|
+
getByHash(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
26
|
+
/** @deprecated use repair */
|
|
27
|
+
repairByHash(hash: string): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
28
|
+
/** @deprecated use find */
|
|
29
|
+
findBefore(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
30
|
+
/** @deprecated use findBefore */
|
|
31
|
+
getBefore(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
32
|
+
/** @deprecated use find */
|
|
33
|
+
findAfter(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
34
|
+
/** @deprecated use find */
|
|
35
|
+
getAfter(timestamp: number, limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
36
|
+
/** @deprecated use find */
|
|
37
|
+
findMostRecent(limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
38
|
+
/** @deprecated use find */
|
|
39
|
+
getMostRecent(limit?: number): Promise<import("../../models").XyoApiResponseBody<T[]>>;
|
|
40
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XyoArchivistPayloadApi = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const sdk_js_1 = require("@xylabs/sdk-js");
|
|
6
|
-
const Simple_1 = require("../../Simple");
|
|
7
|
-
const Schema_1 = require("./Schema");
|
|
8
|
-
class XyoArchivistPayloadApi extends Simple_1.XyoApiSimple {
|
|
9
|
-
get schema() {
|
|
10
|
-
return new Schema_1.XyoArchivistArchivePayloadSchemaApi(Object.assign(Object.assign({}, this.config), { root: `${this.root}schema/` }));
|
|
11
|
-
}
|
|
12
|
-
get stats() {
|
|
13
|
-
var _a;
|
|
14
|
-
this._stats =
|
|
15
|
-
(_a = this._stats) !== null && _a !== void 0 ? _a : new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}stats/` }));
|
|
16
|
-
return this._stats;
|
|
17
|
-
}
|
|
18
|
-
hash(hash) {
|
|
19
|
-
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}hash/${hash}/` }));
|
|
20
|
-
}
|
|
21
|
-
repair(hash) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return yield this.getEndpoint(`hash/${hash}/repair`);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/** @deprecated use stats instead */
|
|
27
|
-
getStats() {
|
|
28
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return yield this.getEndpoint('stats');
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/** @deprecated use hash */
|
|
33
|
-
getByHash(hash) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return yield this.getEndpoint(`hash/${hash}`);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/** @deprecated use repair */
|
|
39
|
-
repairByHash(hash) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
return yield this.repair(hash);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/** @deprecated use find */
|
|
45
|
-
findBefore(timestamp, limit = 20) {
|
|
46
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
return yield this.find({ limit, order: 'desc', timestamp });
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/** @deprecated use findBefore */
|
|
51
|
-
getBefore(timestamp, limit = 20) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return yield this.find({ limit, order: 'desc', timestamp });
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/** @deprecated use find */
|
|
57
|
-
findAfter(timestamp, limit = 20) {
|
|
58
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
return yield this.find({ limit, order: 'asc', timestamp });
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/** @deprecated use find */
|
|
63
|
-
getAfter(timestamp, limit = 20) {
|
|
64
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
return yield this.find({ limit, order: 'asc', timestamp });
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/** @deprecated use find */
|
|
69
|
-
findMostRecent(limit = 20) {
|
|
70
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
(0, sdk_js_1.assertEx)(limit > 0, 'min limit = 1');
|
|
72
|
-
(0, sdk_js_1.assertEx)(limit <= 100, 'max limit = 100');
|
|
73
|
-
return yield this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/** @deprecated use find */
|
|
77
|
-
getMostRecent(limit = 20) {
|
|
78
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
return yield this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.XyoArchivistPayloadApi = XyoArchivistPayloadApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoArchivistPayloadApi = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const sdk_js_1 = require("@xylabs/sdk-js");
|
|
6
|
+
const Simple_1 = require("../../Simple");
|
|
7
|
+
const Schema_1 = require("./Schema");
|
|
8
|
+
class XyoArchivistPayloadApi extends Simple_1.XyoApiSimple {
|
|
9
|
+
get schema() {
|
|
10
|
+
return new Schema_1.XyoArchivistArchivePayloadSchemaApi(Object.assign(Object.assign({}, this.config), { root: `${this.root}schema/` }));
|
|
11
|
+
}
|
|
12
|
+
get stats() {
|
|
13
|
+
var _a;
|
|
14
|
+
this._stats =
|
|
15
|
+
(_a = this._stats) !== null && _a !== void 0 ? _a : new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}stats/` }));
|
|
16
|
+
return this._stats;
|
|
17
|
+
}
|
|
18
|
+
hash(hash) {
|
|
19
|
+
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}hash/${hash}/` }));
|
|
20
|
+
}
|
|
21
|
+
repair(hash) {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return yield this.getEndpoint(`hash/${hash}/repair`);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/** @deprecated use stats instead */
|
|
27
|
+
getStats() {
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return yield this.getEndpoint('stats');
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** @deprecated use hash */
|
|
33
|
+
getByHash(hash) {
|
|
34
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
return yield this.getEndpoint(`hash/${hash}`);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/** @deprecated use repair */
|
|
39
|
+
repairByHash(hash) {
|
|
40
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return yield this.repair(hash);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/** @deprecated use find */
|
|
45
|
+
findBefore(timestamp, limit = 20) {
|
|
46
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return yield this.find({ limit, order: 'desc', timestamp });
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/** @deprecated use findBefore */
|
|
51
|
+
getBefore(timestamp, limit = 20) {
|
|
52
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return yield this.find({ limit, order: 'desc', timestamp });
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/** @deprecated use find */
|
|
57
|
+
findAfter(timestamp, limit = 20) {
|
|
58
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return yield this.find({ limit, order: 'asc', timestamp });
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** @deprecated use find */
|
|
63
|
+
getAfter(timestamp, limit = 20) {
|
|
64
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
return yield this.find({ limit, order: 'asc', timestamp });
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** @deprecated use find */
|
|
69
|
+
findMostRecent(limit = 20) {
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
(0, sdk_js_1.assertEx)(limit > 0, 'min limit = 1');
|
|
72
|
+
(0, sdk_js_1.assertEx)(limit <= 100, 'max limit = 100');
|
|
73
|
+
return yield this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/** @deprecated use find */
|
|
77
|
+
getMostRecent(limit = 20) {
|
|
78
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
return yield this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.XyoArchivistPayloadApi = XyoArchivistPayloadApi;
|
|
84
84
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { XyoApiSimple } from '../../../Simple';
|
|
2
|
-
export interface XyoArchivistArchivePayloadSchemaStats {
|
|
3
|
-
counts: Record<string, number>;
|
|
4
|
-
}
|
|
5
|
-
export declare class XyoArchivistArchivePayloadSchemaApi extends XyoApiSimple<string[]> {
|
|
6
|
-
private _stats?;
|
|
7
|
-
get stats(): XyoApiSimple<XyoArchivistArchivePayloadSchemaStats, XyoArchivistArchivePayloadSchemaStats, Record<string, never>, import("../../../models/Api/Config").XyoApiConfig>;
|
|
8
|
-
}
|
|
1
|
+
import { XyoApiSimple } from '../../../Simple';
|
|
2
|
+
export interface XyoArchivistArchivePayloadSchemaStats {
|
|
3
|
+
counts: Record<string, number>;
|
|
4
|
+
}
|
|
5
|
+
export declare class XyoArchivistArchivePayloadSchemaApi extends XyoApiSimple<string[]> {
|
|
6
|
+
private _stats?;
|
|
7
|
+
get stats(): XyoApiSimple<XyoArchivistArchivePayloadSchemaStats, XyoArchivistArchivePayloadSchemaStats, Record<string, never>, import("../../../models/Api/Config").XyoApiConfig>;
|
|
8
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XyoArchivistArchivePayloadSchemaApi = void 0;
|
|
4
|
-
const Simple_1 = require("../../../Simple");
|
|
5
|
-
class XyoArchivistArchivePayloadSchemaApi extends Simple_1.XyoApiSimple {
|
|
6
|
-
get stats() {
|
|
7
|
-
var _a;
|
|
8
|
-
this._stats =
|
|
9
|
-
(_a = this._stats) !== null && _a !== void 0 ? _a : new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}stats/` }));
|
|
10
|
-
return this._stats;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.XyoArchivistArchivePayloadSchemaApi = XyoArchivistArchivePayloadSchemaApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoArchivistArchivePayloadSchemaApi = void 0;
|
|
4
|
+
const Simple_1 = require("../../../Simple");
|
|
5
|
+
class XyoArchivistArchivePayloadSchemaApi extends Simple_1.XyoApiSimple {
|
|
6
|
+
get stats() {
|
|
7
|
+
var _a;
|
|
8
|
+
this._stats =
|
|
9
|
+
(_a = this._stats) !== null && _a !== void 0 ? _a : new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `${this.root}stats/` }));
|
|
10
|
+
return this._stats;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.XyoArchivistArchivePayloadSchemaApi = XyoArchivistArchivePayloadSchemaApi;
|
|
14
14
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Schema';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Schema"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Api"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Schema"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './Api';
|
|
3
|
-
export * from './Archive';
|
|
4
|
-
export * from './Archives';
|
|
5
|
-
export * from './Block';
|
|
6
|
-
export * from './Payload';
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Api';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './Archives';
|
|
5
|
+
export * from './Block';
|
|
6
|
+
export * from './Payload';
|