@xyo-network/api 2.20.45 → 2.20.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Archivist/Account/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Account/Api.js +14 -14
- package/dist/cjs/Archivist/Account/index.d.ts +1 -1
- package/dist/cjs/Archivist/Account/index.js +4 -4
- package/dist/cjs/Archivist/Api.d.ts +34 -34
- package/dist/cjs/Archivist/Api.js +68 -68
- package/dist/cjs/Archivist/Archive/Api.d.ts +18 -18
- package/dist/cjs/Archivist/Archive/Api.js +39 -39
- package/dist/cjs/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/cjs/Archivist/Archive/Schema/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schema/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Schemas/Api.js +13 -13
- package/dist/cjs/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Schemas/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/cjs/Archivist/Archive/Settings/Api.js +14 -14
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/cjs/Archivist/Archive/Settings/Key/Api.js +10 -10
- package/dist/cjs/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archive/Settings/Key/index.js +4 -4
- package/dist/cjs/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/cjs/Archivist/Archive/Settings/index.js +5 -5
- package/dist/cjs/Archivist/Archive/index.d.ts +4 -4
- package/dist/cjs/Archivist/Archive/index.js +7 -7
- package/dist/cjs/Archivist/Archives/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Archives/Api.js +15 -15
- package/dist/cjs/Archivist/Archives/index.d.ts +1 -1
- package/dist/cjs/Archivist/Archives/index.js +4 -4
- package/dist/cjs/Archivist/Block/Api.d.ts +8 -8
- package/dist/cjs/Archivist/Block/Api.js +11 -11
- package/dist/cjs/Archivist/Block/index.d.ts +1 -1
- package/dist/cjs/Archivist/Block/index.js +4 -4
- package/dist/cjs/Archivist/Node/Api.d.ts +28 -28
- package/dist/cjs/Archivist/Node/Api.js +73 -73
- package/dist/cjs/Archivist/Node/index.d.ts +1 -1
- package/dist/cjs/Archivist/Node/index.js +4 -4
- package/dist/cjs/Archivist/Payload/Api.d.ts +40 -40
- package/dist/cjs/Archivist/Payload/Api.js +83 -83
- package/dist/cjs/Archivist/Payload/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 +1 -44449
- package/dist/esm/Archivist/Account/Api.d.ts +18 -18
- package/dist/esm/Archivist/Account/Api.js +16 -16
- package/dist/esm/Archivist/Account/index.d.ts +1 -1
- package/dist/esm/Archivist/Account/index.js +1 -1
- package/dist/esm/Archivist/Api.d.ts +34 -34
- package/dist/esm/Archivist/Api.js +82 -82
- package/dist/esm/Archivist/Archive/Api.d.ts +18 -18
- package/dist/esm/Archivist/Archive/Api.js +50 -50
- package/dist/esm/Archivist/Archive/Schema/Api.d.ts +7 -7
- package/dist/esm/Archivist/Archive/Schema/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Schema/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schema/index.js +1 -1
- package/dist/esm/Archivist/Archive/Schemas/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Schemas/Api.js +12 -12
- package/dist/esm/Archivist/Archive/Schemas/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Schemas/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/Api.d.ts +6 -6
- package/dist/esm/Archivist/Archive/Settings/Api.js +13 -13
- package/dist/esm/Archivist/Archive/Settings/Key/Api.d.ts +5 -5
- package/dist/esm/Archivist/Archive/Settings/Key/Api.js +9 -9
- package/dist/esm/Archivist/Archive/Settings/Key/index.d.ts +1 -1
- package/dist/esm/Archivist/Archive/Settings/Key/index.js +1 -1
- package/dist/esm/Archivist/Archive/Settings/index.d.ts +2 -2
- package/dist/esm/Archivist/Archive/Settings/index.js +2 -2
- package/dist/esm/Archivist/Archive/index.d.ts +4 -4
- package/dist/esm/Archivist/Archive/index.js +4 -4
- package/dist/esm/Archivist/Archives/Api.d.ts +8 -8
- package/dist/esm/Archivist/Archives/Api.js +14 -14
- package/dist/esm/Archivist/Archives/index.d.ts +1 -1
- package/dist/esm/Archivist/Archives/index.js +1 -1
- package/dist/esm/Archivist/Block/Api.d.ts +8 -8
- package/dist/esm/Archivist/Block/Api.js +10 -10
- package/dist/esm/Archivist/Block/index.d.ts +1 -1
- package/dist/esm/Archivist/Block/index.js +1 -1
- package/dist/esm/Archivist/Node/Api.d.ts +28 -28
- package/dist/esm/Archivist/Node/Api.js +66 -66
- package/dist/esm/Archivist/Node/index.d.ts +1 -1
- package/dist/esm/Archivist/Node/index.js +1 -1
- package/dist/esm/Archivist/Payload/Api.d.ts +40 -40
- package/dist/esm/Archivist/Payload/Api.js +67 -67
- package/dist/esm/Archivist/Payload/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 +7 -16
- package/src/Archivist/ApiUtil.spec.ts +7 -1
- package/src/Archivist/Node/Api.spec.ts +3 -3
- package/src/Archivist/Payload/Api.spec.ts +8 -5
|
@@ -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
|
|
@@ -1,28 +1,28 @@
|
|
|
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 The max time to wait for the query results
|
|
16
|
-
* @param retryInterval The interval to poll for query results
|
|
17
|
-
* @returns The results for the issued queries
|
|
18
|
-
*/
|
|
19
|
-
performTransaction(data: D, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/core").XyoPayloadFull | undefined>[][]>;
|
|
20
|
-
/**
|
|
21
|
-
* Issue the supplied query and wait (non-blocking) for the result
|
|
22
|
-
* @param data The query to issue
|
|
23
|
-
* @param timeout The max time to wait for the query results
|
|
24
|
-
* @param retryInterval The interval to poll for query results
|
|
25
|
-
* @returns The result for the issued query
|
|
26
|
-
*/
|
|
27
|
-
perform<T>(data: T, schema: string, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/core").XyoPayloadFull | undefined>>;
|
|
28
|
-
}
|
|
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 The max time to wait for the query results
|
|
16
|
+
* @param retryInterval The interval to poll for query results
|
|
17
|
+
* @returns The results for the issued queries
|
|
18
|
+
*/
|
|
19
|
+
performTransaction(data: D, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/core").XyoPayloadFull | undefined>[][]>;
|
|
20
|
+
/**
|
|
21
|
+
* Issue the supplied query and wait (non-blocking) for the result
|
|
22
|
+
* @param data The query to issue
|
|
23
|
+
* @param timeout The max time to wait for the query results
|
|
24
|
+
* @param retryInterval The interval to poll for query results
|
|
25
|
+
* @returns The result for the issued query
|
|
26
|
+
*/
|
|
27
|
+
perform<T>(data: T, schema: string, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/core").XyoPayloadFull | undefined>>;
|
|
28
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
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 core_1 = require("@xyo-network/core");
|
|
7
|
-
const Simple_1 = require("../../Simple");
|
|
8
|
-
const getRequestStatuses = (results) => {
|
|
9
|
-
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; });
|
|
10
|
-
};
|
|
11
|
-
const allRequestsSucceeded = (results) => {
|
|
12
|
-
return getRequestStatuses(results).every((status) => status === 200);
|
|
13
|
-
};
|
|
14
|
-
const anyRequestsFailed = (results) => {
|
|
15
|
-
return getRequestStatuses(results).every((status) => status > 399);
|
|
16
|
-
};
|
|
17
|
-
class XyoArchivistNodeApi extends Simple_1.XyoApiSimple {
|
|
18
|
-
/**
|
|
19
|
-
* Get the result of a previously issued query (if available)
|
|
20
|
-
* @param queryId Query ID from a previously issued query
|
|
21
|
-
* @returns The result of the query (if available)
|
|
22
|
-
*/
|
|
23
|
-
result(queryId) {
|
|
24
|
-
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `/query/${queryId}/` }));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Issue the supplied queries and wait (non-blocking) for the results
|
|
28
|
-
* @param data The queries to issue
|
|
29
|
-
* @param timeout The max time to wait for the query results
|
|
30
|
-
* @param retryInterval The interval to poll for query results
|
|
31
|
-
* @returns The results for the issued queries
|
|
32
|
-
*/
|
|
33
|
-
performTransaction(data, timeout = 5000, retryInterval = 100) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
(0, sdk_js_1.assertEx)(timeout > 0, 'timeout must be positive');
|
|
36
|
-
(0, sdk_js_1.assertEx)(retryInterval > 0, 'retryInterval must be positive');
|
|
37
|
-
(0, sdk_js_1.assertEx)(timeout > retryInterval, 'timeout must be greater than retryInterval');
|
|
38
|
-
const ids = yield this.post(data);
|
|
39
|
-
if (!(ids === null || ids === void 0 ? void 0 : ids.length))
|
|
40
|
-
return [];
|
|
41
|
-
const loops = Math.floor(timeout / retryInterval);
|
|
42
|
-
let results = [];
|
|
43
|
-
for (let i = 0; i < loops; i++) {
|
|
44
|
-
yield (0, sdk_js_1.delay)(retryInterval);
|
|
45
|
-
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'))); })));
|
|
46
|
-
if (allRequestsSucceeded(results))
|
|
47
|
-
break;
|
|
48
|
-
// TODO: More nuanced error handling of partial success/failure
|
|
49
|
-
if (anyRequestsFailed(results))
|
|
50
|
-
throw new Error('Request Error');
|
|
51
|
-
}
|
|
52
|
-
// Unpack results
|
|
53
|
-
return results.map((b) => b.map((p) => p[1]));
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Issue the supplied query and wait (non-blocking) for the result
|
|
58
|
-
* @param data The query to issue
|
|
59
|
-
* @param timeout The max time to wait for the query results
|
|
60
|
-
* @param retryInterval The interval to poll for query results
|
|
61
|
-
* @returns The result for the issued query
|
|
62
|
-
*/
|
|
63
|
-
perform(data, schema, timeout = 5000, retryInterval = 100) {
|
|
64
|
-
var _a;
|
|
65
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const payload = new core_1.XyoPayloadBuilder({ schema }).fields(data).build();
|
|
67
|
-
const query = new core_1.XyoBoundWitnessBuilder({ inlinePayloads: true }).payload(payload).build();
|
|
68
|
-
const result = yield this.performTransaction(query, timeout, retryInterval);
|
|
69
|
-
return (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a[0];
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.XyoArchivistNodeApi = XyoArchivistNodeApi;
|
|
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 core_1 = require("@xyo-network/core");
|
|
7
|
+
const Simple_1 = require("../../Simple");
|
|
8
|
+
const getRequestStatuses = (results) => {
|
|
9
|
+
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; });
|
|
10
|
+
};
|
|
11
|
+
const allRequestsSucceeded = (results) => {
|
|
12
|
+
return getRequestStatuses(results).every((status) => status === 200);
|
|
13
|
+
};
|
|
14
|
+
const anyRequestsFailed = (results) => {
|
|
15
|
+
return getRequestStatuses(results).every((status) => status > 399);
|
|
16
|
+
};
|
|
17
|
+
class XyoArchivistNodeApi extends Simple_1.XyoApiSimple {
|
|
18
|
+
/**
|
|
19
|
+
* Get the result of a previously issued query (if available)
|
|
20
|
+
* @param queryId Query ID from a previously issued query
|
|
21
|
+
* @returns The result of the query (if available)
|
|
22
|
+
*/
|
|
23
|
+
result(queryId) {
|
|
24
|
+
return new Simple_1.XyoApiSimple(Object.assign(Object.assign({}, this.config), { root: `/query/${queryId}/` }));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Issue the supplied queries and wait (non-blocking) for the results
|
|
28
|
+
* @param data The queries to issue
|
|
29
|
+
* @param timeout The max time to wait for the query results
|
|
30
|
+
* @param retryInterval The interval to poll for query results
|
|
31
|
+
* @returns The results for the issued queries
|
|
32
|
+
*/
|
|
33
|
+
performTransaction(data, timeout = 5000, retryInterval = 100) {
|
|
34
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
(0, sdk_js_1.assertEx)(timeout > 0, 'timeout must be positive');
|
|
36
|
+
(0, sdk_js_1.assertEx)(retryInterval > 0, 'retryInterval must be positive');
|
|
37
|
+
(0, sdk_js_1.assertEx)(timeout > retryInterval, 'timeout must be greater than retryInterval');
|
|
38
|
+
const ids = yield this.post(data);
|
|
39
|
+
if (!(ids === null || ids === void 0 ? void 0 : ids.length))
|
|
40
|
+
return [];
|
|
41
|
+
const loops = Math.floor(timeout / retryInterval);
|
|
42
|
+
let results = [];
|
|
43
|
+
for (let i = 0; i < loops; i++) {
|
|
44
|
+
yield (0, sdk_js_1.delay)(retryInterval);
|
|
45
|
+
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'))); })));
|
|
46
|
+
if (allRequestsSucceeded(results))
|
|
47
|
+
break;
|
|
48
|
+
// TODO: More nuanced error handling of partial success/failure
|
|
49
|
+
if (anyRequestsFailed(results))
|
|
50
|
+
throw new Error('Request Error');
|
|
51
|
+
}
|
|
52
|
+
// Unpack results
|
|
53
|
+
return results.map((b) => b.map((p) => p[1]));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Issue the supplied query and wait (non-blocking) for the result
|
|
58
|
+
* @param data The query to issue
|
|
59
|
+
* @param timeout The max time to wait for the query results
|
|
60
|
+
* @param retryInterval The interval to poll for query results
|
|
61
|
+
* @returns The result for the issued query
|
|
62
|
+
*/
|
|
63
|
+
perform(data, schema, timeout = 5000, retryInterval = 100) {
|
|
64
|
+
var _a;
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const payload = new core_1.XyoPayloadBuilder({ schema }).fields(data).build();
|
|
67
|
+
const query = new core_1.XyoBoundWitnessBuilder({ inlinePayloads: true }).payload(payload).build();
|
|
68
|
+
const result = yield this.performTransaction(query, timeout, retryInterval);
|
|
69
|
+
return (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a[0];
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.XyoArchivistNodeApi = XyoArchivistNodeApi;
|
|
74
74
|
//# 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,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
|
+
}
|