@xyo-network/api 2.31.3 → 2.32.0-rc.1
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/XyoRemoteArchivist.d.ts +1 -1
- package/dist/cjs/Archivist/XyoRemoteArchivist.d.ts.map +1 -1
- package/dist/cjs/Archivist/XyoRemoteArchivist.js +1 -1
- package/dist/cjs/Archivist/XyoRemoteArchivist.js.map +1 -1
- package/dist/cjs/Archivist/XyoRemoteArchivistConfig.d.ts +1 -6
- package/dist/cjs/Archivist/XyoRemoteArchivistConfig.d.ts.map +1 -1
- package/dist/cjs/Archivist/XyoRemoteArchivistConfig.js +1 -16
- package/dist/cjs/Archivist/XyoRemoteArchivistConfig.js.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +3 -3
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +3 -3
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -1
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js +2 -2
- package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
- package/dist/docs.json +4161 -5120
- package/dist/esm/Archivist/XyoRemoteArchivist.d.ts +1 -1
- package/dist/esm/Archivist/XyoRemoteArchivist.d.ts.map +1 -1
- package/dist/esm/Archivist/XyoRemoteArchivist.js +2 -2
- package/dist/esm/Archivist/XyoRemoteArchivist.js.map +1 -1
- package/dist/esm/Archivist/XyoRemoteArchivistConfig.d.ts +1 -6
- package/dist/esm/Archivist/XyoRemoteArchivistConfig.d.ts.map +1 -1
- package/dist/esm/Archivist/XyoRemoteArchivistConfig.js +0 -12
- package/dist/esm/Archivist/XyoRemoteArchivistConfig.js.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +2 -2
- package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +3 -3
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +3 -3
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -1
- package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
- package/package.json +8 -7
- package/src/Archivist/Payload/Schema/Api.spec.ts +3 -3
- package/src/Archivist/XyoRemoteArchivist.ts +2 -2
- package/src/Archivist/XyoRemoteArchivistConfig.ts +1 -18
- package/src/Diviner/LocationDiviner/LocationDivinerApi.spec.ts +3 -3
- package/src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts +2 -2
- package/src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts +2 -2
- package/src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.ts +2 -2
- package/src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts +2 -2
- package/src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts +3 -3
- package/src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts +3 -3
|
@@ -4,7 +4,7 @@ import { XyoRemoteArchivistConfig } from './XyoRemoteArchivistConfig';
|
|
|
4
4
|
/** @description Archivist Context that connects to a remote archivist using the API */
|
|
5
5
|
export declare class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
|
|
6
6
|
get api(): import("./Api").XyoArchivistApi;
|
|
7
|
-
get queries(): import("@xyo-network/archivist").
|
|
7
|
+
get queries(): import("@xyo-network/archivist").XyoArchivistQuerySchema<never>[];
|
|
8
8
|
get archive(): string | undefined;
|
|
9
9
|
get(hashes: string[]): Promise<({
|
|
10
10
|
schema: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoRemoteArchivist.d.ts","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"XyoRemoteArchivist.d.ts","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA+B,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAExG,OAAO,EAAE,UAAU,EAAqB,MAAM,sBAAsB,CAAA;AAEpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQrE,uFAAuF;AACvF,qBAAa,kBAAmB,SAAQ,YAAY,CAAC,wBAAwB,CAAC;IAC5E,IAAW,GAAG,oCAEb;IAED,IAAoB,OAAO,sEAE1B;IAED,IAAW,OAAO,uBAEjB;IAEY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE;;;;;;IAgBpB,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE;;;;;;IA8B7B,IAAI,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;CAejG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js';
|
|
2
|
-
import { XyoArchivist,
|
|
2
|
+
import { XyoArchivist, XyoArchivistFindQuerySchema } from '@xyo-network/archivist';
|
|
3
3
|
import { XyoBoundWitnessSchema } from '@xyo-network/boundwitness';
|
|
4
4
|
import { XyoPayloadWrapper } from '@xyo-network/payload';
|
|
5
5
|
class RemoteArchivistError extends Error {
|
|
@@ -13,7 +13,7 @@ export class XyoRemoteArchivist extends XyoArchivist {
|
|
|
13
13
|
return assertEx(this.config?.api, 'API not defined');
|
|
14
14
|
}
|
|
15
15
|
get queries() {
|
|
16
|
-
return [...super.queries,
|
|
16
|
+
return [...super.queries, XyoArchivistFindQuerySchema];
|
|
17
17
|
}
|
|
18
18
|
get archive() {
|
|
19
19
|
return this.config?.archive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoRemoteArchivist.js","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoRemoteArchivist.js","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivist.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XyoArchivistConfig
|
|
1
|
+
import { XyoArchivistConfig } from '@xyo-network/archivist';
|
|
2
2
|
import { XyoPayload } from '@xyo-network/payload';
|
|
3
3
|
import { XyoArchivistApi } from './Api';
|
|
4
4
|
export declare type XyoRemoteArchivistConfigSchema = 'network.xyo.archivist.remote.config';
|
|
@@ -8,9 +8,4 @@ export declare type XyoRemoteArchivistConfig<T extends XyoPayload = XyoPayload>
|
|
|
8
8
|
api?: XyoArchivistApi;
|
|
9
9
|
archive?: string;
|
|
10
10
|
} & T>;
|
|
11
|
-
export declare class XyoRemoteArchivistConfigWrapper<T extends XyoPayload = XyoPayload, C extends XyoRemoteArchivistConfig<T> = XyoRemoteArchivistConfig<T>> extends XyoArchivistConfigWrapper<C> {
|
|
12
|
-
constructor(config?: C);
|
|
13
|
-
get api(): XyoArchivistApi | undefined;
|
|
14
|
-
get archive(): string | undefined;
|
|
15
|
-
}
|
|
16
11
|
//# sourceMappingURL=XyoRemoteArchivistConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoRemoteArchivistConfig.d.ts","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivistConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoRemoteArchivistConfig.d.ts","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivistConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AAEvC,oBAAY,8BAA8B,GAAG,qCAAqC,CAAA;AAClF,eAAO,MAAM,8BAA8B,EAAE,8BAAsE,CAAA;AAEnH,oBAAY,wBAAwB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAAI,kBAAkB,CAC1F;IACE,MAAM,EAAE,8BAA8B,CAAA;IACtC,GAAG,CAAC,EAAE,eAAe,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,CAAC,CACN,CAAA"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import { XyoArchivistConfigWrapper } from '@xyo-network/archivist';
|
|
2
1
|
export const XyoRemoteArchivistConfigSchema = 'network.xyo.archivist.remote.config';
|
|
3
|
-
export class XyoRemoteArchivistConfigWrapper extends XyoArchivistConfigWrapper {
|
|
4
|
-
constructor(config) {
|
|
5
|
-
super(config);
|
|
6
|
-
}
|
|
7
|
-
get api() {
|
|
8
|
-
return this.config?.api;
|
|
9
|
-
}
|
|
10
|
-
get archive() {
|
|
11
|
-
return this.config?.archive;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
2
|
//# sourceMappingURL=XyoRemoteArchivistConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoRemoteArchivistConfig.js","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivistConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XyoRemoteArchivistConfig.js","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivistConfig.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,8BAA8B,GAAmC,qCAAqC,CAAA"}
|
package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses';
|
|
2
2
|
export declare type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
3
3
|
export declare const locationHeatmapQuerySchema: LocationHeatmapQuerySchema;
|
|
4
4
|
export declare type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
@@ -6,7 +6,7 @@ export declare const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema;
|
|
|
6
6
|
export declare type LocationHeatmapQuery = {
|
|
7
7
|
startTime?: string;
|
|
8
8
|
stopTime?: string;
|
|
9
|
-
schema:
|
|
9
|
+
schema: LocationWitnessSchema;
|
|
10
10
|
};
|
|
11
11
|
export declare const isLocationHeatmapQuery: (query: Record<string, unknown>) => query is LocationHeatmapQuery;
|
|
12
12
|
//# sourceMappingURL=LocationHeatmapQuery.d.ts.map
|
package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationHeatmapQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LocationHeatmapQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,oBAAY,0BAA0B,GAAG,oCAAoC,CAAA;AAC7E,eAAO,MAAM,0BAA0B,EAAE,0BAAiE,CAAA;AAE1G,oBAAY,2BAA2B,GAAG,qCAAqC,CAAA;AAC/E,eAAO,MAAM,2BAA2B,EAAE,2BAAmE,CAAA;AAE7G,oBAAY,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,sBAAsB,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,kCAEpE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses';
|
|
2
2
|
export declare type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
3
3
|
export declare const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema;
|
|
4
4
|
export declare type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
@@ -6,7 +6,7 @@ export declare const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapA
|
|
|
6
6
|
export declare type LocationQuadkeyHeatmapQuery = {
|
|
7
7
|
startTime?: string;
|
|
8
8
|
stopTime?: string;
|
|
9
|
-
schema:
|
|
9
|
+
schema: LocationWitnessSchema;
|
|
10
10
|
};
|
|
11
11
|
export declare const isLocationQuadkeyHeatmapQuery: (query: Record<string, unknown>) => query is LocationQuadkeyHeatmapQuery;
|
|
12
12
|
//# sourceMappingURL=LocationQuadkeyHeatmapQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationQuadkeyHeatmapQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LocationQuadkeyHeatmapQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,oBAAY,iCAAiC,GAAG,4CAA4C,CAAA;AAC5F,eAAO,MAAM,iCAAiC,EAAE,iCAAgF,CAAA;AAChI,oBAAY,kCAAkC,GAAG,6CAA6C,CAAA;AAC9F,eAAO,MAAM,kCAAkC,EAAE,kCAAkF,CAAA;AACnI,oBAAY,2BAA2B,GAAG;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,6BAA6B,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,yCAE3E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses';
|
|
2
2
|
export interface LocationTimeRangePointProperties {
|
|
3
|
-
schema:
|
|
3
|
+
schema: LocationWitnessSchema;
|
|
4
4
|
_archive: string;
|
|
5
5
|
_client: string;
|
|
6
6
|
_timestamp: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationTimeRangePointProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LocationTimeRangePointProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,qBAAqB,CAAA;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses';
|
|
2
2
|
export declare type LocationTimeRangeQuerySchema = 'network.xyo.location.range.query';
|
|
3
3
|
export declare const LocationTimeRangeQuerySchema: LocationTimeRangeQuerySchema;
|
|
4
4
|
export declare type LocationTimeRangeAnswerSchema = 'network.xyo.location.range.answer';
|
|
@@ -6,7 +6,7 @@ export declare const LocationTimeRangeAnswerSchema: LocationTimeRangeAnswerSchem
|
|
|
6
6
|
export declare type LocationTimeRangeQuery = {
|
|
7
7
|
startTime?: string;
|
|
8
8
|
stopTime?: string;
|
|
9
|
-
schema:
|
|
9
|
+
schema: LocationWitnessSchema;
|
|
10
10
|
};
|
|
11
11
|
export declare const isLocationTimeRangeQuery: (query: Record<string, unknown>) => query is LocationTimeRangeQuery;
|
|
12
12
|
//# sourceMappingURL=LocationTimeRangeQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationTimeRangeQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LocationTimeRangeQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,oBAAY,4BAA4B,GAAG,kCAAkC,CAAA;AAC7E,eAAO,MAAM,4BAA4B,EAAE,4BAAiE,CAAA;AAE5G,oBAAY,6BAA6B,GAAG,mCAAmC,CAAA;AAC/E,eAAO,MAAM,6BAA6B,EAAE,6BAAmE,CAAA;AAE/G,oBAAY,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,qBAAqB,CAAA;CAE9B,CAAA;AAED,eAAO,MAAM,wBAAwB,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,oCAEtE,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare type
|
|
3
|
-
export declare const
|
|
2
|
+
export declare type CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness';
|
|
3
|
+
export declare const CurrentLocationWitnessSchema: CurrentLocationWitnessSchema;
|
|
4
4
|
export declare type CurrentLocationWitnessPayload = XyoPayload<{
|
|
5
5
|
altitudeMeters: number;
|
|
6
6
|
directionDegrees: number;
|
|
7
7
|
latitude: number;
|
|
8
8
|
longitude: number;
|
|
9
9
|
quadkey: string;
|
|
10
|
-
schema:
|
|
10
|
+
schema: CurrentLocationWitnessSchema;
|
|
11
11
|
speedKph: number;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=CurrentLocationWitness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,4BAA4B,GAAG,mCAAmC,CAAA;AAC9E,eAAO,MAAM,4BAA4B,EAAE,4BAAkE,CAAA;AAE7G,oBAAY,6BAA6B,GAAG,UAAU,CAAC;IACrD,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,4BAA4B,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness';
|
|
2
2
|
//# sourceMappingURL=CurrentLocationWitness.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentLocationWitness.js","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.js","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,4BAA4B,GAAiC,mCAAmC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoPayload } from '@xyo-network/payload';
|
|
2
|
-
export declare type
|
|
3
|
-
export declare const
|
|
2
|
+
export declare type LocationWitnessSchema = 'network.xyo.location';
|
|
3
|
+
export declare const LocationWitnessSchema: LocationWitnessSchema;
|
|
4
4
|
export interface Coordinates {
|
|
5
5
|
accuracy: number | null;
|
|
6
6
|
altitude: number | null;
|
|
@@ -16,6 +16,6 @@ export interface CurrentLocation {
|
|
|
16
16
|
}
|
|
17
17
|
export declare type LocationWitnessPayload = XyoPayload<{
|
|
18
18
|
currentLocation: CurrentLocation;
|
|
19
|
-
schema:
|
|
19
|
+
schema: LocationWitnessSchema;
|
|
20
20
|
}>;
|
|
21
21
|
//# sourceMappingURL=LocationWitness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationWitness.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,
|
|
1
|
+
{"version":3,"file":"LocationWitness.d.ts","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,qBAAqB,GAAG,sBAAsB,CAAA;AAC1D,eAAO,MAAM,qBAAqB,EAAE,qBAA8C,CAAA;AAElF,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AACD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,oBAAY,sBAAsB,GAAG,UAAU,CAAC;IAC9C,eAAe,EAAE,eAAe,CAAA;IAChC,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const LocationWitnessSchema = 'network.xyo.location';
|
|
2
2
|
//# sourceMappingURL=LocationWitness.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationWitness.js","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"LocationWitness.js","sourceRoot":"","sources":["../../../../../src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,qBAAqB,GAA0B,sBAAsB,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xylabs/sdk-js": "^2.6.7",
|
|
13
|
-
"@xyo-network/account": "^2.
|
|
14
|
-
"@xyo-network/archivist": "^2.
|
|
15
|
-
"@xyo-network/boundwitness": "^2.
|
|
16
|
-
"@xyo-network/core": "^2.
|
|
17
|
-
"@xyo-network/payload": "^2.
|
|
18
|
-
"@xyo-network/schema-payload-plugin": "^2.
|
|
13
|
+
"@xyo-network/account": "^2.32.0-rc.1",
|
|
14
|
+
"@xyo-network/archivist": "^2.32.0-rc.1",
|
|
15
|
+
"@xyo-network/boundwitness": "^2.32.0-rc.1",
|
|
16
|
+
"@xyo-network/core": "^2.32.0-rc.1",
|
|
17
|
+
"@xyo-network/payload": "^2.32.0-rc.1",
|
|
18
|
+
"@xyo-network/schema-payload-plugin": "^2.32.0-rc.1",
|
|
19
19
|
"axios": "^0.27.2",
|
|
20
20
|
"pako": "^2.0.4",
|
|
21
21
|
"tslib": "^2.4.0"
|
|
@@ -57,5 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"types": "dist/esm/index.d.ts",
|
|
60
|
-
"version": "2.
|
|
60
|
+
"version": "2.32.0-rc.1",
|
|
61
|
+
"stableVersion": "2.31.5"
|
|
61
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoAccount } from '@xyo-network/account'
|
|
2
2
|
import { XyoBoundWitnessBuilder } from '@xyo-network/boundwitness'
|
|
3
|
-
import { XyoSchemaPayload,
|
|
3
|
+
import { XyoSchemaPayload, XyoSchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
4
4
|
|
|
5
5
|
import { XyoApiConfig } from '../../../models'
|
|
6
6
|
import { XyoArchivistApi } from '../../Api'
|
|
@@ -16,10 +16,10 @@ const payload: XyoSchemaPayload = {
|
|
|
16
16
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
17
17
|
schema: getSchemaName(),
|
|
18
18
|
},
|
|
19
|
-
schema:
|
|
19
|
+
schema: XyoSchemaSchema,
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
describe('
|
|
22
|
+
describe('XyoArchivistArchiveSchemaApi', () => {
|
|
23
23
|
const api = new XyoArchivistApi(config)
|
|
24
24
|
let archive = ''
|
|
25
25
|
beforeAll(async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import { XyoArchivist,
|
|
2
|
+
import { XyoArchivist, XyoArchivistFindQuerySchema, XyoPayloadFindFilter } from '@xyo-network/archivist'
|
|
3
3
|
import { XyoBoundWitnessSchema, XyoBoundWitnessWithPartialMeta } from '@xyo-network/boundwitness'
|
|
4
4
|
import { XyoPayload, XyoPayloadWrapper } from '@xyo-network/payload'
|
|
5
5
|
|
|
@@ -18,7 +18,7 @@ export class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
public override get queries() {
|
|
21
|
-
return [...super.queries,
|
|
21
|
+
return [...super.queries, XyoArchivistFindQuerySchema]
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
public get archive() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XyoArchivistConfig
|
|
1
|
+
import { XyoArchivistConfig } from '@xyo-network/archivist'
|
|
2
2
|
import { XyoPayload } from '@xyo-network/payload'
|
|
3
3
|
|
|
4
4
|
import { XyoArchivistApi } from './Api'
|
|
@@ -13,20 +13,3 @@ export type XyoRemoteArchivistConfig<T extends XyoPayload = XyoPayload> = XyoArc
|
|
|
13
13
|
archive?: string
|
|
14
14
|
} & T
|
|
15
15
|
>
|
|
16
|
-
|
|
17
|
-
export class XyoRemoteArchivistConfigWrapper<
|
|
18
|
-
T extends XyoPayload = XyoPayload,
|
|
19
|
-
C extends XyoRemoteArchivistConfig<T> = XyoRemoteArchivistConfig<T>,
|
|
20
|
-
> extends XyoArchivistConfigWrapper<C> {
|
|
21
|
-
constructor(config?: C) {
|
|
22
|
-
super(config)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public get api() {
|
|
26
|
-
return this.config?.api
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public get archive() {
|
|
30
|
-
return this.config?.archive
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
LocationTimeRangeQueryCreationRequest,
|
|
10
10
|
LocationTimeRangeQuerySchema,
|
|
11
11
|
} from './Queries'
|
|
12
|
-
import {
|
|
12
|
+
import { LocationWitnessSchema } from './Witnesses'
|
|
13
13
|
|
|
14
14
|
const config: ApiConfig = {
|
|
15
15
|
apiDomain: process.env.LOCATION_API_DOMAIN || 'http://localhost:8082',
|
|
@@ -27,7 +27,7 @@ const getDefaultStartStopTime = () => {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
const getLocationTimeRangeQueryCreationRequest = (): LocationTimeRangeQueryCreationRequest => {
|
|
30
|
-
const query = { schema:
|
|
30
|
+
const query = { schema: LocationWitnessSchema, ...getDefaultStartStopTime() }
|
|
31
31
|
const sourceArchivist = { ...getArchiveConfig() }
|
|
32
32
|
const resultArchivist = { ...getArchiveConfig() }
|
|
33
33
|
return {
|
|
@@ -41,7 +41,7 @@ const getLocationTimeRangeQueryCreationRequest = (): LocationTimeRangeQueryCreat
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
const getLocationHeatmapQueryCreationRequest = (): LocationHeatmapQueryCreationRequest => {
|
|
44
|
-
const query = { schema:
|
|
44
|
+
const query = { schema: LocationWitnessSchema, ...getDefaultStartStopTime() }
|
|
45
45
|
const sourceArchivist = { ...getArchiveConfig() }
|
|
46
46
|
const resultArchivist = { ...getArchiveConfig() }
|
|
47
47
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses'
|
|
2
2
|
|
|
3
3
|
export type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'
|
|
4
4
|
export const locationHeatmapQuerySchema: LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'
|
|
@@ -9,7 +9,7 @@ export const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema = 'network
|
|
|
9
9
|
export type LocationHeatmapQuery = {
|
|
10
10
|
startTime?: string
|
|
11
11
|
stopTime?: string
|
|
12
|
-
schema:
|
|
12
|
+
schema: LocationWitnessSchema
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const isLocationHeatmapQuery = (query: Record<string, unknown>): query is LocationHeatmapQuery => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses'
|
|
2
2
|
|
|
3
3
|
export type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query'
|
|
4
4
|
export const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query'
|
|
@@ -7,7 +7,7 @@ export const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSch
|
|
|
7
7
|
export type LocationQuadkeyHeatmapQuery = {
|
|
8
8
|
startTime?: string
|
|
9
9
|
stopTime?: string
|
|
10
|
-
schema:
|
|
10
|
+
schema: LocationWitnessSchema
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const isLocationQuadkeyHeatmapQuery = (query: Record<string, unknown>): query is LocationQuadkeyHeatmapQuery => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses'
|
|
2
2
|
|
|
3
3
|
export interface LocationTimeRangePointProperties {
|
|
4
|
-
schema:
|
|
4
|
+
schema: LocationWitnessSchema
|
|
5
5
|
_archive: string
|
|
6
6
|
_client: string
|
|
7
7
|
_timestamp: number
|
package/src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationWitnessSchema } from '../../Witnesses'
|
|
2
2
|
|
|
3
3
|
export type LocationTimeRangeQuerySchema = 'network.xyo.location.range.query'
|
|
4
4
|
export const LocationTimeRangeQuerySchema: LocationTimeRangeQuerySchema = 'network.xyo.location.range.query'
|
|
@@ -9,7 +9,7 @@ export const LocationTimeRangeAnswerSchema: LocationTimeRangeAnswerSchema = 'net
|
|
|
9
9
|
export type LocationTimeRangeQuery = {
|
|
10
10
|
startTime?: string
|
|
11
11
|
stopTime?: string
|
|
12
|
-
schema:
|
|
12
|
+
schema: LocationWitnessSchema
|
|
13
13
|
// TODO: Bounding rectangle, etc.
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { XyoPayload } from '@xyo-network/payload'
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
export const
|
|
3
|
+
export type CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness'
|
|
4
|
+
export const CurrentLocationWitnessSchema: CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness'
|
|
5
5
|
|
|
6
6
|
export type CurrentLocationWitnessPayload = XyoPayload<{
|
|
7
7
|
altitudeMeters: number
|
|
@@ -9,6 +9,6 @@ export type CurrentLocationWitnessPayload = XyoPayload<{
|
|
|
9
9
|
latitude: number
|
|
10
10
|
longitude: number
|
|
11
11
|
quadkey: string
|
|
12
|
-
schema:
|
|
12
|
+
schema: CurrentLocationWitnessSchema
|
|
13
13
|
speedKph: number
|
|
14
14
|
}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { XyoPayload } from '@xyo-network/payload'
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
export const
|
|
3
|
+
export type LocationWitnessSchema = 'network.xyo.location'
|
|
4
|
+
export const LocationWitnessSchema: LocationWitnessSchema = 'network.xyo.location'
|
|
5
5
|
|
|
6
6
|
export interface Coordinates {
|
|
7
7
|
accuracy: number | null
|
|
@@ -19,5 +19,5 @@ export interface CurrentLocation {
|
|
|
19
19
|
|
|
20
20
|
export type LocationWitnessPayload = XyoPayload<{
|
|
21
21
|
currentLocation: CurrentLocation
|
|
22
|
-
schema:
|
|
22
|
+
schema: LocationWitnessSchema
|
|
23
23
|
}>
|