@xyo-network/api 2.20.39 → 2.20.42
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 +33 -27
- package/dist/cjs/Archivist/Api.js +67 -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/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 +4120 -4005
- 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 +33 -27
- package/dist/esm/Archivist/Api.js +81 -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/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 +2 -2
- package/src/Archivist/Api.spec.ts +26 -1
- package/src/Archivist/Api.ts +13 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Key';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Key';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Key';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Key';
|
|
3
3
|
//# 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,5 +1,5 @@
|
|
|
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';
|
|
5
5
|
//# 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,15 +1,15 @@
|
|
|
1
|
-
import { XyoApiSimple } from '../../Simple';
|
|
2
|
-
import { XyoArchivistArchiveApi } from '../Archive';
|
|
3
|
-
export class XyoArchivistArchivesApi extends XyoApiSimple {
|
|
4
|
-
archive(archive = 'temp') {
|
|
5
|
-
return new XyoArchivistArchiveApi({
|
|
6
|
-
...this.config,
|
|
7
|
-
root: `${this.root}${archive}/`,
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
/** @deprecated: use archive(string) instead */
|
|
11
|
-
select(archive = 'temp') {
|
|
12
|
-
return this.archive(archive);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
import { XyoApiSimple } from '../../Simple';
|
|
2
|
+
import { XyoArchivistArchiveApi } from '../Archive';
|
|
3
|
+
export class XyoArchivistArchivesApi extends XyoApiSimple {
|
|
4
|
+
archive(archive = 'temp') {
|
|
5
|
+
return new XyoArchivistArchiveApi({
|
|
6
|
+
...this.config,
|
|
7
|
+
root: `${this.root}${archive}/`,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
/** @deprecated: use archive(string) instead */
|
|
11
|
+
select(archive = 'temp') {
|
|
12
|
+
return this.archive(archive);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
2
2
|
//# 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,11 +1,11 @@
|
|
|
1
|
-
import { XyoApiSimple } from '../../Simple';
|
|
2
|
-
import { XyoArchivistPayloadApi } from '../Payload';
|
|
3
|
-
export class XyoArchivistArchiveBlockApi extends XyoArchivistPayloadApi {
|
|
4
|
-
payloads(hash) {
|
|
5
|
-
return new XyoApiSimple({
|
|
6
|
-
...this.config,
|
|
7
|
-
root: `${this.root}hash/${hash}/payloads/`,
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
import { XyoApiSimple } from '../../Simple';
|
|
2
|
+
import { XyoArchivistPayloadApi } from '../Payload';
|
|
3
|
+
export class XyoArchivistArchiveBlockApi extends XyoArchivistPayloadApi {
|
|
4
|
+
payloads(hash) {
|
|
5
|
+
return new XyoApiSimple({
|
|
6
|
+
...this.config,
|
|
7
|
+
root: `${this.root}hash/${hash}/payloads/`,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
2
2
|
//# 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
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/sdk-js';
|
|
2
|
-
import { XyoApiSimple } from '../../Simple';
|
|
3
|
-
import { XyoArchivistArchivePayloadSchemaApi } from './Schema';
|
|
4
|
-
export class XyoArchivistPayloadApi extends XyoApiSimple {
|
|
5
|
-
get schema() {
|
|
6
|
-
return new XyoArchivistArchivePayloadSchemaApi({
|
|
7
|
-
...this.config,
|
|
8
|
-
root: `${this.root}schema/`,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
get stats() {
|
|
12
|
-
this._stats =
|
|
13
|
-
this._stats ??
|
|
14
|
-
new XyoApiSimple({
|
|
15
|
-
...this.config,
|
|
16
|
-
root: `${this.root}stats/`,
|
|
17
|
-
});
|
|
18
|
-
return this._stats;
|
|
19
|
-
}
|
|
20
|
-
hash(hash) {
|
|
21
|
-
return new XyoApiSimple({
|
|
22
|
-
...this.config,
|
|
23
|
-
root: `${this.root}hash/${hash}/`,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async repair(hash) {
|
|
27
|
-
return await this.getEndpoint(`hash/${hash}/repair`);
|
|
28
|
-
}
|
|
29
|
-
/** @deprecated use stats instead */
|
|
30
|
-
async getStats() {
|
|
31
|
-
return await this.getEndpoint('stats');
|
|
32
|
-
}
|
|
33
|
-
/** @deprecated use hash */
|
|
34
|
-
async getByHash(hash) {
|
|
35
|
-
return await this.getEndpoint(`hash/${hash}`);
|
|
36
|
-
}
|
|
37
|
-
/** @deprecated use repair */
|
|
38
|
-
async repairByHash(hash) {
|
|
39
|
-
return await this.repair(hash);
|
|
40
|
-
}
|
|
41
|
-
/** @deprecated use find */
|
|
42
|
-
async findBefore(timestamp, limit = 20) {
|
|
43
|
-
return await this.find({ limit, order: 'desc', timestamp });
|
|
44
|
-
}
|
|
45
|
-
/** @deprecated use findBefore */
|
|
46
|
-
async getBefore(timestamp, limit = 20) {
|
|
47
|
-
return await this.find({ limit, order: 'desc', timestamp });
|
|
48
|
-
}
|
|
49
|
-
/** @deprecated use find */
|
|
50
|
-
async findAfter(timestamp, limit = 20) {
|
|
51
|
-
return await this.find({ limit, order: 'asc', timestamp });
|
|
52
|
-
}
|
|
53
|
-
/** @deprecated use find */
|
|
54
|
-
async getAfter(timestamp, limit = 20) {
|
|
55
|
-
return await this.find({ limit, order: 'asc', timestamp });
|
|
56
|
-
}
|
|
57
|
-
/** @deprecated use find */
|
|
58
|
-
async findMostRecent(limit = 20) {
|
|
59
|
-
assertEx(limit > 0, 'min limit = 1');
|
|
60
|
-
assertEx(limit <= 100, 'max limit = 100');
|
|
61
|
-
return await this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
62
|
-
}
|
|
63
|
-
/** @deprecated use find */
|
|
64
|
-
async getMostRecent(limit = 20) {
|
|
65
|
-
return await this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js';
|
|
2
|
+
import { XyoApiSimple } from '../../Simple';
|
|
3
|
+
import { XyoArchivistArchivePayloadSchemaApi } from './Schema';
|
|
4
|
+
export class XyoArchivistPayloadApi extends XyoApiSimple {
|
|
5
|
+
get schema() {
|
|
6
|
+
return new XyoArchivistArchivePayloadSchemaApi({
|
|
7
|
+
...this.config,
|
|
8
|
+
root: `${this.root}schema/`,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
get stats() {
|
|
12
|
+
this._stats =
|
|
13
|
+
this._stats ??
|
|
14
|
+
new XyoApiSimple({
|
|
15
|
+
...this.config,
|
|
16
|
+
root: `${this.root}stats/`,
|
|
17
|
+
});
|
|
18
|
+
return this._stats;
|
|
19
|
+
}
|
|
20
|
+
hash(hash) {
|
|
21
|
+
return new XyoApiSimple({
|
|
22
|
+
...this.config,
|
|
23
|
+
root: `${this.root}hash/${hash}/`,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async repair(hash) {
|
|
27
|
+
return await this.getEndpoint(`hash/${hash}/repair`);
|
|
28
|
+
}
|
|
29
|
+
/** @deprecated use stats instead */
|
|
30
|
+
async getStats() {
|
|
31
|
+
return await this.getEndpoint('stats');
|
|
32
|
+
}
|
|
33
|
+
/** @deprecated use hash */
|
|
34
|
+
async getByHash(hash) {
|
|
35
|
+
return await this.getEndpoint(`hash/${hash}`);
|
|
36
|
+
}
|
|
37
|
+
/** @deprecated use repair */
|
|
38
|
+
async repairByHash(hash) {
|
|
39
|
+
return await this.repair(hash);
|
|
40
|
+
}
|
|
41
|
+
/** @deprecated use find */
|
|
42
|
+
async findBefore(timestamp, limit = 20) {
|
|
43
|
+
return await this.find({ limit, order: 'desc', timestamp });
|
|
44
|
+
}
|
|
45
|
+
/** @deprecated use findBefore */
|
|
46
|
+
async getBefore(timestamp, limit = 20) {
|
|
47
|
+
return await this.find({ limit, order: 'desc', timestamp });
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated use find */
|
|
50
|
+
async findAfter(timestamp, limit = 20) {
|
|
51
|
+
return await this.find({ limit, order: 'asc', timestamp });
|
|
52
|
+
}
|
|
53
|
+
/** @deprecated use find */
|
|
54
|
+
async getAfter(timestamp, limit = 20) {
|
|
55
|
+
return await this.find({ limit, order: 'asc', timestamp });
|
|
56
|
+
}
|
|
57
|
+
/** @deprecated use find */
|
|
58
|
+
async findMostRecent(limit = 20) {
|
|
59
|
+
assertEx(limit > 0, 'min limit = 1');
|
|
60
|
+
assertEx(limit <= 100, 'max limit = 100');
|
|
61
|
+
return await this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
62
|
+
}
|
|
63
|
+
/** @deprecated use find */
|
|
64
|
+
async getMostRecent(limit = 20) {
|
|
65
|
+
return await this.find({ limit, order: 'desc', timestamp: 999999999999 });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
68
|
//# 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,13 +1,13 @@
|
|
|
1
|
-
import { XyoApiSimple } from '../../../Simple';
|
|
2
|
-
export class XyoArchivistArchivePayloadSchemaApi extends XyoApiSimple {
|
|
3
|
-
get stats() {
|
|
4
|
-
this._stats =
|
|
5
|
-
this._stats ??
|
|
6
|
-
new XyoApiSimple({
|
|
7
|
-
...this.config,
|
|
8
|
-
root: `${this.root}stats/`,
|
|
9
|
-
});
|
|
10
|
-
return this._stats;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
import { XyoApiSimple } from '../../../Simple';
|
|
2
|
+
export class XyoArchivistArchivePayloadSchemaApi extends XyoApiSimple {
|
|
3
|
+
get stats() {
|
|
4
|
+
this._stats =
|
|
5
|
+
this._stats ??
|
|
6
|
+
new XyoApiSimple({
|
|
7
|
+
...this.config,
|
|
8
|
+
root: `${this.root}stats/`,
|
|
9
|
+
});
|
|
10
|
+
return this._stats;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
//# sourceMappingURL=Api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Api';
|
|
1
|
+
export * from './Api';
|
|
2
2
|
//# 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,3 +1,3 @@
|
|
|
1
|
-
export * from './Api';
|
|
2
|
-
export * from './Schema';
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Schema';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './Api';
|
|
3
|
-
export * from './Archive';
|
|
4
|
-
export * from './Archives';
|
|
5
|
-
export * from './Block';
|
|
6
|
-
export * from './Payload';
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Api';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './Archives';
|
|
5
|
+
export * from './Block';
|
|
6
|
+
export * from './Payload';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './Api';
|
|
3
|
-
export * from './Archive';
|
|
4
|
-
export * from './Archives';
|
|
5
|
-
export * from './Block';
|
|
6
|
-
export * from './Payload';
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Api';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './Archives';
|
|
5
|
+
export * from './Block';
|
|
6
|
+
export * from './Payload';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/Base.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Axios } from 'axios';
|
|
2
|
-
import { XyoApiConfig, XyoApiEnvelope, XyoApiError, XyoApiReportable, XyoApiResponse, XyoApiResponseBody, XyoApiResponseTuple } from './models';
|
|
3
|
-
export declare class XyoApiBase<C extends XyoApiConfig = XyoApiConfig> implements XyoApiReportable {
|
|
4
|
-
readonly config: C;
|
|
5
|
-
protected axios: Axios;
|
|
6
|
-
constructor(config: C);
|
|
7
|
-
private axiosHeaders;
|
|
8
|
-
private axiosConfig;
|
|
9
|
-
onError(error: XyoApiError, depth?: number): void;
|
|
10
|
-
onFailure(response: XyoApiResponse, depth?: number): void;
|
|
11
|
-
onSuccess(response: XyoApiResponse, depth?: number): void;
|
|
12
|
-
protected get root(): string;
|
|
13
|
-
protected get query(): string;
|
|
14
|
-
private resolveRoot;
|
|
15
|
-
private static resolveResponse;
|
|
16
|
-
protected handleMonitorResponseError<T>(error: XyoApiError, trapAxiosException: boolean): XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined;
|
|
17
|
-
protected monitorResponse<T>(closure: () => Promise<XyoApiResponse<XyoApiEnvelope<T>>>): Promise<XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined>;
|
|
18
|
-
protected getEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
19
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
20
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
21
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
22
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
23
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
24
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
25
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
26
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
27
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
28
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
29
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
30
|
-
private static shapeResponse;
|
|
31
|
-
protected get headers(): Record<string, string>;
|
|
32
|
-
get authenticated(): boolean;
|
|
33
|
-
}
|
|
1
|
+
import { Axios } from 'axios';
|
|
2
|
+
import { XyoApiConfig, XyoApiEnvelope, XyoApiError, XyoApiReportable, XyoApiResponse, XyoApiResponseBody, XyoApiResponseTuple } from './models';
|
|
3
|
+
export declare class XyoApiBase<C extends XyoApiConfig = XyoApiConfig> implements XyoApiReportable {
|
|
4
|
+
readonly config: C;
|
|
5
|
+
protected axios: Axios;
|
|
6
|
+
constructor(config: C);
|
|
7
|
+
private axiosHeaders;
|
|
8
|
+
private axiosConfig;
|
|
9
|
+
onError(error: XyoApiError, depth?: number): void;
|
|
10
|
+
onFailure(response: XyoApiResponse, depth?: number): void;
|
|
11
|
+
onSuccess(response: XyoApiResponse, depth?: number): void;
|
|
12
|
+
protected get root(): string;
|
|
13
|
+
protected get query(): string;
|
|
14
|
+
private resolveRoot;
|
|
15
|
+
private static resolveResponse;
|
|
16
|
+
protected handleMonitorResponseError<T>(error: XyoApiError, trapAxiosException: boolean): XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined;
|
|
17
|
+
protected monitorResponse<T>(closure: () => Promise<XyoApiResponse<XyoApiEnvelope<T>>>): Promise<XyoApiResponse<XyoApiEnvelope<T>, unknown> | undefined>;
|
|
18
|
+
protected getEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
19
|
+
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
20
|
+
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
21
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
22
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
23
|
+
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
24
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<XyoApiResponseBody<T>>;
|
|
25
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
26
|
+
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
27
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<XyoApiResponseBody<T>>;
|
|
28
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<XyoApiResponseBody<T>>;
|
|
29
|
+
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<XyoApiResponseTuple<T>>;
|
|
30
|
+
private static shapeResponse;
|
|
31
|
+
protected get headers(): Record<string, string>;
|
|
32
|
+
get authenticated(): boolean;
|
|
33
|
+
}
|