@xyo-network/api 2.31.4 → 2.32.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/cjs/Archivist/XyoRemoteArchivist.d.ts +3 -7
  2. package/dist/cjs/Archivist/XyoRemoteArchivist.d.ts.map +1 -1
  3. package/dist/cjs/Archivist/XyoRemoteArchivist.js +4 -3
  4. package/dist/cjs/Archivist/XyoRemoteArchivist.js.map +1 -1
  5. package/dist/cjs/Archivist/XyoRemoteArchivistConfig.d.ts +1 -6
  6. package/dist/cjs/Archivist/XyoRemoteArchivistConfig.d.ts.map +1 -1
  7. package/dist/cjs/Archivist/XyoRemoteArchivistConfig.js +1 -16
  8. package/dist/cjs/Archivist/XyoRemoteArchivistConfig.js.map +1 -1
  9. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +2 -2
  10. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -1
  11. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +2 -2
  12. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -1
  13. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +2 -2
  14. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -1
  15. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +2 -2
  16. package/dist/cjs/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -1
  17. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +3 -3
  18. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -1
  19. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +2 -2
  20. package/dist/cjs/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
  21. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +3 -3
  22. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -1
  23. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js +2 -2
  24. package/dist/cjs/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
  25. package/dist/docs.json +4764 -4873
  26. package/dist/esm/Archivist/XyoRemoteArchivist.d.ts +3 -7
  27. package/dist/esm/Archivist/XyoRemoteArchivist.d.ts.map +1 -1
  28. package/dist/esm/Archivist/XyoRemoteArchivist.js +5 -4
  29. package/dist/esm/Archivist/XyoRemoteArchivist.js.map +1 -1
  30. package/dist/esm/Archivist/XyoRemoteArchivistConfig.d.ts +1 -6
  31. package/dist/esm/Archivist/XyoRemoteArchivistConfig.d.ts.map +1 -1
  32. package/dist/esm/Archivist/XyoRemoteArchivistConfig.js +0 -12
  33. package/dist/esm/Archivist/XyoRemoteArchivistConfig.js.map +1 -1
  34. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +2 -2
  35. package/dist/esm/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -1
  36. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +2 -2
  37. package/dist/esm/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -1
  38. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +2 -2
  39. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -1
  40. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +2 -2
  41. package/dist/esm/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -1
  42. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +3 -3
  43. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -1
  44. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +1 -1
  45. package/dist/esm/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -1
  46. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +3 -3
  47. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -1
  48. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js +1 -1
  49. package/dist/esm/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -1
  50. package/package.json +8 -7
  51. package/src/Archivist/Payload/Schema/Api.spec.ts +3 -3
  52. package/src/Archivist/XyoRemoteArchivist.ts +7 -6
  53. package/src/Archivist/XyoRemoteArchivistConfig.ts +1 -18
  54. package/src/Diviner/LocationDiviner/LocationDivinerApi.spec.ts +3 -3
  55. package/src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts +2 -2
  56. package/src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts +2 -2
  57. package/src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.ts +2 -2
  58. package/src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts +2 -2
  59. package/src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts +3 -3
  60. package/src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts +3 -3
@@ -1,10 +1,11 @@
1
1
  import { XyoArchivist, XyoPayloadFindFilter } from '@xyo-network/archivist';
2
+ import { XyoBoundWitness } from '@xyo-network/boundwitness';
2
3
  import { XyoPayload } from '@xyo-network/payload';
3
4
  import { XyoRemoteArchivistConfig } from './XyoRemoteArchivistConfig';
4
5
  /** @description Archivist Context that connects to a remote archivist using the API */
5
6
  export declare class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
6
7
  get api(): import("./Api").XyoArchivistApi;
7
- get queries(): import("@xyo-network/archivist").XyoArchivistQueryPayloadSchema<never>[];
8
+ get queries(): import("@xyo-network/archivist").XyoArchivistQuerySchema<never>[];
8
9
  get archive(): string | undefined;
9
10
  get(hashes: string[]): Promise<({
10
11
  schema: string;
@@ -12,12 +13,7 @@ export declare class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistC
12
13
  sources?: string[] | undefined;
13
14
  timestamp?: number | undefined;
14
15
  } | null)[]>;
15
- insert(payloads: XyoPayload[]): Promise<{
16
- schema: string;
17
- previousHash?: string | undefined;
18
- sources?: string[] | undefined;
19
- timestamp?: number | undefined;
20
- }[]>;
16
+ insert(payloads: XyoPayload[]): Promise<XyoBoundWitness>;
21
17
  find<R extends XyoPayload = XyoPayload>(filter: XyoPayloadFindFilter): Promise<R[]>;
22
18
  }
23
19
  //# sourceMappingURL=XyoRemoteArchivist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"XyoRemoteArchivist.d.ts","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsC,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE/G,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,6EAE1B;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
+ {"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;AACxG,OAAO,EAAE,eAAe,EAAyD,MAAM,2BAA2B,CAAA;AAClH,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,GAAG,OAAO,CAAC,eAAe,CAAC;IA+BxD,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, XyoArchivistFindQueryPayloadSchema } from '@xyo-network/archivist';
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, XyoArchivistFindQueryPayloadSchema];
16
+ return [...super.queries, XyoArchivistFindQuerySchema];
17
17
  }
18
18
  get archive() {
19
19
  return this.config?.archive;
@@ -52,11 +52,12 @@ export class XyoRemoteArchivist extends XyoArchivist {
52
52
  });
53
53
  assertEx(found, 'Payload not in Boundwitness received');
54
54
  });
55
- const [, { error }] = await this.api.archive(this.archive).block.post(boundwitnesses, 'tuple');
55
+ const boundwitness = this.bindPayloads(payloads);
56
+ const [, { error }] = await this.api.archive(this.archive).block.post([boundwitness, ...boundwitnesses], 'tuple');
56
57
  if (error?.length) {
57
58
  throw new RemoteArchivistError('insert', error);
58
59
  }
59
- return payloads;
60
+ return boundwitness;
60
61
  }
61
62
  catch (ex) {
62
63
  throw new RemoteArchivistError('insert', ex, 'unexpected');
@@ -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,kCAAkC,EAAwB,MAAM,wBAAwB,CAAA;AAC/G,OAAO,EAAE,qBAAqB,EAAkC,MAAM,2BAA2B,CAAA;AACjG,OAAO,EAAc,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAIpE,MAAM,oBAAqB,SAAQ,KAAK;IACtC,YAAY,MAAc,EAAE,KAAqB,EAAE,OAAgB;QACjE,KAAK,CAAC,qBAAqB,MAAM,WAAW,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,K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AAI,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;aAChD;YACD,OAAO,YAAY,CAAA;SACpB;QAAC,OAAO,EAAE,EAAE;YACX,MAAM,IAAI,oBAAoB,CAAC,QAAQ,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;SAC3D;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAoC,MAA4B;QAC/E,IAAI;YACF,MAAM,CAAC,QAAQ,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;YACnH,IAAI,YAAY,EAAE,MAAM,EAAE;gBACxB,MAAM,IAAI,oBAAoB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CAAA;aACjE;YACD,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;YAC7G,IAAI,UAAU,EAAE,MAAM,EAAE;gBACtB,MAAM,IAAI,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;aAC7D;YACD,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAQ,CAAA;SACtC;QAAC,OAAO,EAAE,EAAE;YACX,MAAM,IAAI,oBAAoB,CAAC,MAAM,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;SACzD;IACH,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import { XyoArchivistConfig, XyoArchivistConfigWrapper } from '@xyo-network/archivist';
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,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACtF,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;AAED,qBAAa,+BAA+B,CAC1C,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,wBAAwB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CACnE,SAAQ,yBAAyB,CAAC,CAAC,CAAC;gBACxB,MAAM,CAAC,EAAE,CAAC;IAItB,IAAW,GAAG,gCAEb;IAED,IAAW,OAAO,uBAEjB;CACF"}
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":"AAAA,OAAO,EAAsB,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAMtF,MAAM,CAAC,MAAM,8BAA8B,GAAmC,qCAAqC,CAAA;AAUnH,MAAM,OAAO,+BAGX,SAAQ,yBAA4B;IACpC,YAAY,MAAU;QACpB,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;IAED,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,CAAA;IACzB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,MAAM,EAAE,OAAO,CAAA;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"XyoRemoteArchivistConfig.js","sourceRoot":"","sources":["../../../src/Archivist/XyoRemoteArchivistConfig.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,8BAA8B,GAAmC,qCAAqC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { LocationWitnessPayloadSchema } from '../../Witnesses';
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: LocationWitnessPayloadSchema;
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
@@ -1 +1 @@
1
- {"version":3,"file":"LocationHeatmapQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAE9D,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,4BAA4B,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,sBAAsB,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,kCAEpE,CAAA"}
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 { LocationWitnessPayloadSchema } from '../../Witnesses';
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: LocationWitnessPayloadSchema;
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,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAE9D,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,4BAA4B,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,6BAA6B,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,yCAE3E,CAAA"}
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 { LocationWitnessPayloadSchema } from '../../Witnesses';
1
+ import { LocationWitnessSchema } from '../../Witnesses';
2
2
  export interface LocationTimeRangePointProperties {
3
- schema: LocationWitnessPayloadSchema;
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,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAE9D,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,4BAA4B,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB"}
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"}
@@ -1,4 +1,4 @@
1
- import { LocationWitnessPayloadSchema } from '../../Witnesses';
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: LocationWitnessPayloadSchema;
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,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAE9D,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,4BAA4B,CAAA;CAErC,CAAA;AAED,eAAO,MAAM,wBAAwB,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,oCAEtE,CAAA"}
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 CurrentLocationWitnessPayloadSchema = 'co.coinapp.currentlocationwitness';
3
- export declare const CurrentLocationWitnessPayloadSchema: CurrentLocationWitnessPayloadSchema;
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: CurrentLocationWitnessPayloadSchema;
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,mCAAmC,GAAG,mCAAmC,CAAA;AACrF,eAAO,MAAM,mCAAmC,EAAE,mCAAyE,CAAA;AAE3H,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,mCAAmC,CAAA;IAC3C,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA"}
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 CurrentLocationWitnessPayloadSchema = 'co.coinapp.currentlocationwitness';
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,mCAAmC,GAAwC,mCAAmC,CAAA"}
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 LocationWitnessPayloadSchema = 'network.xyo.location';
3
- export declare const LocationWitnessPayloadSchema: LocationWitnessPayloadSchema;
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: LocationWitnessPayloadSchema;
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,4BAA4B,GAAG,sBAAsB,CAAA;AACjE,eAAO,MAAM,4BAA4B,EAAE,4BAAqD,CAAA;AAEhG,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,4BAA4B,CAAA;CACrC,CAAC,CAAA"}
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 LocationWitnessPayloadSchema = 'network.xyo.location';
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,4BAA4B,GAAiC,sBAAsB,CAAA"}
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.31.4",
14
- "@xyo-network/archivist": "^2.31.4",
15
- "@xyo-network/boundwitness": "^2.31.4",
16
- "@xyo-network/core": "^2.31.4",
17
- "@xyo-network/payload": "^2.31.4",
18
- "@xyo-network/schema-payload-plugin": "^2.31.4",
13
+ "@xyo-network/account": "^2.32.0-rc.2",
14
+ "@xyo-network/archivist": "^2.32.0-rc.2",
15
+ "@xyo-network/boundwitness": "^2.32.0-rc.2",
16
+ "@xyo-network/core": "^2.32.0-rc.2",
17
+ "@xyo-network/payload": "^2.32.0-rc.2",
18
+ "@xyo-network/schema-payload-plugin": "^2.32.0-rc.2",
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.31.4"
60
+ "version": "2.32.0-rc.2",
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, XyoSchemaPayloadSchema } from '@xyo-network/schema-payload-plugin'
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: XyoSchemaPayloadSchema,
19
+ schema: XyoSchemaSchema,
20
20
  }
21
21
 
22
- describe('XyoArchivistArchivePayloadSchemaApi', () => {
22
+ describe('XyoArchivistArchiveSchemaApi', () => {
23
23
  const api = new XyoArchivistApi(config)
24
24
  let archive = ''
25
25
  beforeAll(async () => {
@@ -1,6 +1,6 @@
1
1
  import { assertEx } from '@xylabs/sdk-js'
2
- import { XyoArchivist, XyoArchivistFindQueryPayloadSchema, XyoPayloadFindFilter } from '@xyo-network/archivist'
3
- import { XyoBoundWitnessSchema, XyoBoundWitnessWithPartialMeta } from '@xyo-network/boundwitness'
2
+ import { XyoArchivist, XyoArchivistFindQuerySchema, XyoPayloadFindFilter } from '@xyo-network/archivist'
3
+ import { XyoBoundWitness, XyoBoundWitnessSchema, XyoBoundWitnessWithPartialMeta } from '@xyo-network/boundwitness'
4
4
  import { XyoPayload, XyoPayloadWrapper } from '@xyo-network/payload'
5
5
 
6
6
  import { XyoRemoteArchivistConfig } from './XyoRemoteArchivistConfig'
@@ -18,7 +18,7 @@ export class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
18
18
  }
19
19
 
20
20
  public override get queries() {
21
- return [...super.queries, XyoArchivistFindQueryPayloadSchema]
21
+ return [...super.queries, XyoArchivistFindQuerySchema]
22
22
  }
23
23
 
24
24
  public get archive() {
@@ -41,7 +41,7 @@ export class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
41
41
  )
42
42
  }
43
43
 
44
- public async insert(payloads: XyoPayload[]) {
44
+ public async insert(payloads: XyoPayload[]): Promise<XyoBoundWitness> {
45
45
  try {
46
46
  const boundwitnesses = payloads.filter((payload) => payload.schema === XyoBoundWitnessSchema) as XyoBoundWitnessWithPartialMeta[]
47
47
  boundwitnesses.forEach((boundwitness) => {
@@ -61,11 +61,12 @@ export class XyoRemoteArchivist extends XyoArchivist<XyoRemoteArchivistConfig> {
61
61
  })
62
62
  assertEx(found, 'Payload not in Boundwitness received')
63
63
  })
64
- const [, { error }] = await this.api.archive(this.archive).block.post(boundwitnesses, 'tuple')
64
+ const boundwitness = this.bindPayloads(payloads)
65
+ const [, { error }] = await this.api.archive(this.archive).block.post([boundwitness, ...boundwitnesses], 'tuple')
65
66
  if (error?.length) {
66
67
  throw new RemoteArchivistError('insert', error)
67
68
  }
68
- return payloads
69
+ return boundwitness
69
70
  } catch (ex) {
70
71
  throw new RemoteArchivistError('insert', ex, 'unexpected')
71
72
  }
@@ -1,4 +1,4 @@
1
- import { XyoArchivistConfig, XyoArchivistConfigWrapper } from '@xyo-network/archivist'
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 { LocationWitnessPayloadSchema } from './Witnesses'
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: LocationWitnessPayloadSchema, ...getDefaultStartStopTime() }
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: LocationWitnessPayloadSchema, ...getDefaultStartStopTime() }
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 { LocationWitnessPayloadSchema } from '../../Witnesses'
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: LocationWitnessPayloadSchema
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 { LocationWitnessPayloadSchema } from '../../Witnesses'
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: LocationWitnessPayloadSchema
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 { LocationWitnessPayloadSchema } from '../../Witnesses'
1
+ import { LocationWitnessSchema } from '../../Witnesses'
2
2
 
3
3
  export interface LocationTimeRangePointProperties {
4
- schema: LocationWitnessPayloadSchema
4
+ schema: LocationWitnessSchema
5
5
  _archive: string
6
6
  _client: string
7
7
  _timestamp: number
@@ -1,4 +1,4 @@
1
- import { LocationWitnessPayloadSchema } from '../../Witnesses'
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: LocationWitnessPayloadSchema
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 CurrentLocationWitnessPayloadSchema = 'co.coinapp.currentlocationwitness'
4
- export const CurrentLocationWitnessPayloadSchema: CurrentLocationWitnessPayloadSchema = 'co.coinapp.currentlocationwitness'
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: CurrentLocationWitnessPayloadSchema
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 LocationWitnessPayloadSchema = 'network.xyo.location'
4
- export const LocationWitnessPayloadSchema: LocationWitnessPayloadSchema = 'network.xyo.location'
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: LocationWitnessPayloadSchema
22
+ schema: LocationWitnessSchema
23
23
  }>