@xyo-network/location-plugin 2.74.5 → 2.75.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.
- package/dist/browser/Config.cjs +27 -0
- package/dist/browser/Config.cjs.map +1 -0
- package/dist/browser/Config.d.cts.map +1 -0
- package/dist/browser/Config.d.mts.map +1 -0
- package/dist/browser/Config.d.ts +11 -0
- package/dist/browser/Config.d.ts.map +1 -0
- package/dist/browser/Config.js +5 -0
- package/dist/browser/Config.js.map +1 -0
- package/dist/browser/CurrentLocationPayloadSet.cjs +37 -0
- package/dist/browser/CurrentLocationPayloadSet.cjs.map +1 -0
- package/dist/browser/CurrentLocationPayloadSet.d.cts.map +1 -0
- package/dist/browser/CurrentLocationPayloadSet.d.mts.map +1 -0
- package/dist/browser/CurrentLocationPayloadSet.d.ts +3 -0
- package/dist/browser/CurrentLocationPayloadSet.d.ts.map +1 -0
- package/dist/browser/CurrentLocationPayloadSet.js +15 -0
- package/dist/browser/CurrentLocationPayloadSet.js.map +1 -0
- package/dist/browser/CurrentLocationWitness.cjs +70 -0
- package/dist/browser/CurrentLocationWitness.cjs.map +1 -0
- package/dist/browser/CurrentLocationWitness.d.cts.map +1 -0
- package/dist/browser/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/browser/CurrentLocationWitness.d.ts +10 -0
- package/dist/browser/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/browser/CurrentLocationWitness.js +44 -0
- package/dist/browser/CurrentLocationWitness.js.map +1 -0
- package/dist/browser/Plugin.cjs +85 -0
- package/dist/browser/Plugin.cjs.map +1 -0
- package/dist/browser/Plugin.d.cts.map +1 -0
- package/dist/browser/Plugin.d.mts.map +1 -0
- package/dist/browser/Plugin.d.ts +56 -0
- package/dist/browser/Plugin.d.ts.map +1 -0
- package/dist/browser/Plugin.js +16 -0
- package/dist/browser/Plugin.js.map +1 -0
- package/dist/browser/index.cjs +107 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +10 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/docs.json +560 -560
- package/dist/node/Config.d.cts +11 -0
- package/dist/node/Config.d.cts.map +1 -0
- package/dist/node/Config.d.mts +11 -0
- package/dist/node/Config.d.mts.map +1 -0
- package/dist/node/Config.d.ts +11 -0
- package/dist/node/Config.d.ts.map +1 -0
- package/dist/node/Config.js +31 -0
- package/dist/node/Config.js.map +1 -0
- package/dist/node/Config.mjs +6 -0
- package/dist/node/Config.mjs.map +1 -0
- package/dist/node/CurrentLocationPayloadSet.d.cts +3 -0
- package/dist/node/CurrentLocationPayloadSet.d.cts.map +1 -0
- package/dist/node/CurrentLocationPayloadSet.d.mts +3 -0
- package/dist/node/CurrentLocationPayloadSet.d.mts.map +1 -0
- package/dist/node/CurrentLocationPayloadSet.d.ts +3 -0
- package/dist/node/CurrentLocationPayloadSet.d.ts.map +1 -0
- package/dist/node/CurrentLocationPayloadSet.js +41 -0
- package/dist/node/CurrentLocationPayloadSet.js.map +1 -0
- package/dist/node/CurrentLocationPayloadSet.mjs +16 -0
- package/dist/node/CurrentLocationPayloadSet.mjs.map +1 -0
- package/dist/node/CurrentLocationWitness.d.cts +10 -0
- package/dist/node/CurrentLocationWitness.d.cts.map +1 -0
- package/dist/node/CurrentLocationWitness.d.mts +10 -0
- package/dist/node/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/node/CurrentLocationWitness.d.ts +10 -0
- package/dist/node/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/node/CurrentLocationWitness.js +75 -0
- package/dist/node/CurrentLocationWitness.js.map +1 -0
- package/dist/node/CurrentLocationWitness.mjs +50 -0
- package/dist/node/CurrentLocationWitness.mjs.map +1 -0
- package/dist/node/Plugin.d.cts +56 -0
- package/dist/node/Plugin.d.cts.map +1 -0
- package/dist/node/Plugin.d.mts +56 -0
- package/dist/node/Plugin.d.mts.map +1 -0
- package/dist/node/Plugin.d.ts +56 -0
- package/dist/node/Plugin.d.ts.map +1 -0
- package/dist/node/Plugin.js +90 -0
- package/dist/node/Plugin.js.map +1 -0
- package/dist/node/Plugin.mjs +65 -0
- package/dist/node/Plugin.mjs.map +1 -0
- package/dist/node/index.d.cts +7 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.mts +7 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/{index.js → node/index.js} +2 -1
- package/dist/node/index.js.map +1 -0
- package/dist/{index.mjs → node/index.mjs} +2 -1
- package/dist/node/index.mjs.map +1 -0
- package/package.json +31 -28
- package/dist/Config.d.mts.map +0 -1
- package/dist/Config.d.ts.map +0 -1
- package/dist/CurrentLocationPayloadSet.d.mts.map +0 -1
- package/dist/CurrentLocationPayloadSet.d.ts.map +0 -1
- package/dist/CurrentLocationWitness.d.mts.map +0 -1
- package/dist/CurrentLocationWitness.d.ts.map +0 -1
- package/dist/Plugin.d.mts.map +0 -1
- package/dist/Plugin.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- /package/dist/{Config.d.mts → browser/Config.d.cts} +0 -0
- /package/dist/{Config.d.ts → browser/Config.d.mts} +0 -0
- /package/dist/{CurrentLocationPayloadSet.d.mts → browser/CurrentLocationPayloadSet.d.cts} +0 -0
- /package/dist/{CurrentLocationPayloadSet.d.ts → browser/CurrentLocationPayloadSet.d.mts} +0 -0
- /package/dist/{CurrentLocationWitness.d.mts → browser/CurrentLocationWitness.d.cts} +0 -0
- /package/dist/{CurrentLocationWitness.d.ts → browser/CurrentLocationWitness.d.mts} +0 -0
- /package/dist/{Plugin.d.mts → browser/Plugin.d.cts} +0 -0
- /package/dist/{Plugin.d.ts → browser/Plugin.d.mts} +0 -0
- /package/dist/{index.d.mts → browser/index.d.cts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.mts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module';
|
|
2
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
3
|
+
export type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
4
|
+
export declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
5
|
+
export type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
6
|
+
schema: CurrentLocationWitnessConfigSchema;
|
|
7
|
+
}>;
|
|
8
|
+
export type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
9
|
+
geolocation?: Geolocation;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,eAAO,MAAM,kCAAkC,EAAE,kCAA0E,CAAA;AAE3H,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,eAAe,CAAC,4BAA4B,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module';
|
|
2
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
3
|
+
export type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
4
|
+
export declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
5
|
+
export type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
6
|
+
schema: CurrentLocationWitnessConfigSchema;
|
|
7
|
+
}>;
|
|
8
|
+
export type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
9
|
+
geolocation?: Geolocation;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,eAAO,MAAM,kCAAkC,EAAE,kCAA0E,CAAA;AAE3H,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,eAAe,CAAC,4BAA4B,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module';
|
|
2
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
3
|
+
export type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
4
|
+
export declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
5
|
+
export type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
6
|
+
schema: CurrentLocationWitnessConfigSchema;
|
|
7
|
+
}>;
|
|
8
|
+
export type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
9
|
+
geolocation?: Geolocation;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,eAAO,MAAM,kCAAkC,EAAE,kCAA0E,CAAA;AAE3H,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,eAAe,CAAC,4BAA4B,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Config.ts
|
|
21
|
+
var Config_exports = {};
|
|
22
|
+
__export(Config_exports, {
|
|
23
|
+
CurrentLocationWitnessConfigSchema: () => CurrentLocationWitnessConfigSchema
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Config_exports);
|
|
26
|
+
var CurrentLocationWitnessConfigSchema = "network.xyo.location.current.config";
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
CurrentLocationWitnessConfigSchema
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=Config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["import { AnyConfigSchema, ModuleParams } from '@xyo-network/module'\nimport { WitnessConfig } from '@xyo-network/witness'\n\nexport type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\nexport const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\n\nexport type CurrentLocationWitnessConfig = WitnessConfig<{\n schema: CurrentLocationWitnessConfigSchema\n}>\n\nexport type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, { geolocation?: Geolocation }>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,qCAAyE;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts"],"sourcesContent":["import { AnyConfigSchema, ModuleParams } from '@xyo-network/module'\nimport { WitnessConfig } from '@xyo-network/witness'\n\nexport type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\nexport const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\n\nexport type CurrentLocationWitnessConfig = WitnessConfig<{\n schema: CurrentLocationWitnessConfigSchema\n}>\n\nexport type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, { geolocation?: Geolocation }>\n"],"mappings":";AAIO,IAAM,qCAAyE;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationPayloadSet.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationPayloadSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,yBAAyB,EAAE,iBAQvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationPayloadSet.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationPayloadSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,yBAAyB,EAAE,iBAQvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationPayloadSet.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationPayloadSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,yBAAyB,EAAE,iBAQvC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/CurrentLocationPayloadSet.ts
|
|
21
|
+
var CurrentLocationPayloadSet_exports = {};
|
|
22
|
+
__export(CurrentLocationPayloadSet_exports, {
|
|
23
|
+
CurrentLocationPayloadSet: () => CurrentLocationPayloadSet
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(CurrentLocationPayloadSet_exports);
|
|
26
|
+
var import_location_payload_plugin = require("@xyo-network/location-payload-plugin");
|
|
27
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
28
|
+
var CurrentLocationPayloadSet = {
|
|
29
|
+
optional: {
|
|
30
|
+
[import_location_payload_plugin.LocationHeadingSchema]: 1
|
|
31
|
+
},
|
|
32
|
+
required: {
|
|
33
|
+
[import_location_payload_plugin.LocationSchema]: 1
|
|
34
|
+
},
|
|
35
|
+
schema: import_payload_model.PayloadSetSchema
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
CurrentLocationPayloadSet
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=CurrentLocationPayloadSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/CurrentLocationPayloadSet.ts"],"sourcesContent":["import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'\n\nexport const CurrentLocationPayloadSet: PayloadSetPayload = {\n optional: {\n [LocationHeadingSchema]: 1,\n },\n required: {\n [LocationSchema]: 1,\n },\n schema: PayloadSetSchema,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAsD;AACtD,2BAAoD;AAE7C,IAAM,4BAA+C;AAAA,EAC1D,UAAU;AAAA,IACR,CAAC,oDAAqB,GAAG;AAAA,EAC3B;AAAA,EACA,UAAU;AAAA,IACR,CAAC,6CAAc,GAAG;AAAA,EACpB;AAAA,EACA,QAAQ;AACV;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/CurrentLocationPayloadSet.ts
|
|
2
|
+
import { LocationHeadingSchema, LocationSchema } from "@xyo-network/location-payload-plugin";
|
|
3
|
+
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
4
|
+
var CurrentLocationPayloadSet = {
|
|
5
|
+
optional: {
|
|
6
|
+
[LocationHeadingSchema]: 1
|
|
7
|
+
},
|
|
8
|
+
required: {
|
|
9
|
+
[LocationSchema]: 1
|
|
10
|
+
},
|
|
11
|
+
schema: PayloadSetSchema
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
CurrentLocationPayloadSet
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=CurrentLocationPayloadSet.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/CurrentLocationPayloadSet.ts"],"sourcesContent":["import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'\n\nexport const CurrentLocationPayloadSet: PayloadSetPayload = {\n optional: {\n [LocationHeadingSchema]: 1,\n },\n required: {\n [LocationSchema]: 1,\n },\n schema: PayloadSetSchema,\n}\n"],"mappings":";AAAA,SAAS,uBAAuB,sBAAsB;AACtD,SAA4B,wBAAwB;AAE7C,IAAM,4BAA+C;AAAA,EAC1D,UAAU;AAAA,IACR,CAAC,qBAAqB,GAAG;AAAA,EAC3B;AAAA,EACA,UAAU;AAAA,IACR,CAAC,cAAc,GAAG;AAAA,EACpB;AAAA,EACA,QAAQ;AACV;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { AbstractWitness } from '@xyo-network/witness';
|
|
3
|
+
import { CurrentLocationWitnessParams } from './Config';
|
|
4
|
+
export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
5
|
+
static configSchemas: "network.xyo.location.current.config"[];
|
|
6
|
+
get geolocation(): Geolocation;
|
|
7
|
+
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
8
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CurrentLocationWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { AbstractWitness } from '@xyo-network/witness';
|
|
3
|
+
import { CurrentLocationWitnessParams } from './Config';
|
|
4
|
+
export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
5
|
+
static configSchemas: "network.xyo.location.current.config"[];
|
|
6
|
+
get geolocation(): Geolocation;
|
|
7
|
+
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
8
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CurrentLocationWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { AbstractWitness } from '@xyo-network/witness';
|
|
3
|
+
import { CurrentLocationWitnessParams } from './Config';
|
|
4
|
+
export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
5
|
+
static configSchemas: "network.xyo.location.current.config"[];
|
|
6
|
+
get geolocation(): Geolocation;
|
|
7
|
+
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
8
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CurrentLocationWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/CurrentLocationWitness.ts
|
|
21
|
+
var CurrentLocationWitness_exports = {};
|
|
22
|
+
__export(CurrentLocationWitness_exports, {
|
|
23
|
+
CurrentLocationWitness: () => CurrentLocationWitness
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(CurrentLocationWitness_exports);
|
|
26
|
+
var import_assert = require("@xylabs/assert");
|
|
27
|
+
var import_location_payload_plugin = require("@xyo-network/location-payload-plugin");
|
|
28
|
+
var import_witness = require("@xyo-network/witness");
|
|
29
|
+
|
|
30
|
+
// src/Config.ts
|
|
31
|
+
var CurrentLocationWitnessConfigSchema = "network.xyo.location.current.config";
|
|
32
|
+
|
|
33
|
+
// src/CurrentLocationWitness.ts
|
|
34
|
+
var CurrentLocationWitness = class extends import_witness.AbstractWitness {
|
|
35
|
+
static configSchemas = [CurrentLocationWitnessConfigSchema];
|
|
36
|
+
get geolocation() {
|
|
37
|
+
return (0, import_assert.assertEx)(this.params.geolocation, "No geolocation provided");
|
|
38
|
+
}
|
|
39
|
+
getCurrentPosition() {
|
|
40
|
+
return new Promise((resolve, reject) => {
|
|
41
|
+
var _a;
|
|
42
|
+
(_a = this.geolocation) == null ? void 0 : _a.getCurrentPosition(
|
|
43
|
+
(position) => {
|
|
44
|
+
resolve(position);
|
|
45
|
+
},
|
|
46
|
+
(error) => {
|
|
47
|
+
reject(error);
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
async observeHandler() {
|
|
53
|
+
const location = await this.getCurrentPosition();
|
|
54
|
+
const locationPayload = {
|
|
55
|
+
altitude: location.coords.altitude ?? void 0,
|
|
56
|
+
altitudeAccuracy: location.coords.altitudeAccuracy ?? void 0,
|
|
57
|
+
latitude: location.coords.latitude,
|
|
58
|
+
longitude: location.coords.longitude,
|
|
59
|
+
schema: import_location_payload_plugin.LocationSchema
|
|
60
|
+
};
|
|
61
|
+
const heading = location.coords.heading ? [
|
|
62
|
+
{
|
|
63
|
+
heading: location.coords.heading ?? void 0,
|
|
64
|
+
schema: import_location_payload_plugin.LocationHeadingSchema,
|
|
65
|
+
speed: location.coords.speed ?? void 0
|
|
66
|
+
}
|
|
67
|
+
] : [];
|
|
68
|
+
return [locationPayload, ...heading];
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
CurrentLocationWitness
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=CurrentLocationWitness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/CurrentLocationWitness.ts","../../src/Config.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness'\n\nimport { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config'\n\nexport class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {\n static override configSchemas = [CurrentLocationWitnessConfigSchema]\n\n get geolocation(): Geolocation {\n return assertEx(this.params.geolocation, 'No geolocation provided')\n }\n\n getCurrentPosition() {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n this.geolocation?.getCurrentPosition(\n (position: GeolocationPosition) => {\n resolve(position)\n },\n (error: GeolocationPositionError) => {\n reject(error)\n },\n )\n })\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const location = await this.getCurrentPosition()\n const locationPayload: LocationPayload = {\n altitude: location.coords.altitude ?? undefined,\n altitudeAccuracy: location.coords.altitudeAccuracy ?? undefined,\n latitude: location.coords.latitude,\n longitude: location.coords.longitude,\n schema: LocationSchema,\n }\n const heading: LocationHeadingPayload[] = location.coords.heading\n ? [\n {\n heading: location.coords.heading ?? undefined,\n schema: LocationHeadingSchema,\n speed: location.coords.speed ?? undefined,\n },\n ]\n : []\n return [locationPayload, ...heading]\n }\n}\n","import { AnyConfigSchema, ModuleParams } from '@xyo-network/module'\nimport { WitnessConfig } from '@xyo-network/witness'\n\nexport type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\nexport const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\n\nexport type CurrentLocationWitnessConfig = WitnessConfig<{\n schema: CurrentLocationWitnessConfigSchema\n}>\n\nexport type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, { geolocation?: Geolocation }>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAyB;AACzB,qCAA+F;AAE/F,qBAAgC;;;ACCzB,IAAM,qCAAyE;;;ADG/E,IAAM,yBAAN,cAAkH,+BAAyB;AAAA,EAChJ,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEnE,IAAI,cAA2B;AAC7B,eAAO,wBAAS,KAAK,OAAO,aAAa,yBAAyB;AAAA,EACpE;AAAA,EAEA,qBAAqB;AACnB,WAAO,IAAI,QAA6B,CAAC,SAAS,WAAW;AAfjE;AAgBM,iBAAK,gBAAL,mBAAkB;AAAA,QAChB,CAAC,aAAkC;AACjC,kBAAQ,QAAQ;AAAA,QAClB;AAAA,QACA,CAAC,UAAoC;AACnC,iBAAO,KAAK;AAAA,QACd;AAAA;AAAA,IAEJ,CAAC;AAAA,EACH;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,WAAW,MAAM,KAAK,mBAAmB;AAC/C,UAAM,kBAAmC;AAAA,MACvC,UAAU,SAAS,OAAO,YAAY;AAAA,MACtC,kBAAkB,SAAS,OAAO,oBAAoB;AAAA,MACtD,UAAU,SAAS,OAAO;AAAA,MAC1B,WAAW,SAAS,OAAO;AAAA,MAC3B,QAAQ;AAAA,IACV;AACA,UAAM,UAAoC,SAAS,OAAO,UACtD;AAAA,MACE;AAAA,QACE,SAAS,SAAS,OAAO,WAAW;AAAA,QACpC,QAAQ;AAAA,QACR,OAAO,SAAS,OAAO,SAAS;AAAA,MAClC;AAAA,IACF,IACA,CAAC;AACL,WAAO,CAAC,iBAAiB,GAAG,OAAO;AAAA,EACrC;AACF;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/CurrentLocationWitness.ts
|
|
2
|
+
import { assertEx } from "@xylabs/assert";
|
|
3
|
+
import { LocationHeadingSchema, LocationSchema } from "@xyo-network/location-payload-plugin";
|
|
4
|
+
import { AbstractWitness } from "@xyo-network/witness";
|
|
5
|
+
|
|
6
|
+
// src/Config.ts
|
|
7
|
+
var CurrentLocationWitnessConfigSchema = "network.xyo.location.current.config";
|
|
8
|
+
|
|
9
|
+
// src/CurrentLocationWitness.ts
|
|
10
|
+
var CurrentLocationWitness = class extends AbstractWitness {
|
|
11
|
+
static configSchemas = [CurrentLocationWitnessConfigSchema];
|
|
12
|
+
get geolocation() {
|
|
13
|
+
return assertEx(this.params.geolocation, "No geolocation provided");
|
|
14
|
+
}
|
|
15
|
+
getCurrentPosition() {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
var _a;
|
|
18
|
+
(_a = this.geolocation) == null ? void 0 : _a.getCurrentPosition(
|
|
19
|
+
(position) => {
|
|
20
|
+
resolve(position);
|
|
21
|
+
},
|
|
22
|
+
(error) => {
|
|
23
|
+
reject(error);
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async observeHandler() {
|
|
29
|
+
const location = await this.getCurrentPosition();
|
|
30
|
+
const locationPayload = {
|
|
31
|
+
altitude: location.coords.altitude ?? void 0,
|
|
32
|
+
altitudeAccuracy: location.coords.altitudeAccuracy ?? void 0,
|
|
33
|
+
latitude: location.coords.latitude,
|
|
34
|
+
longitude: location.coords.longitude,
|
|
35
|
+
schema: LocationSchema
|
|
36
|
+
};
|
|
37
|
+
const heading = location.coords.heading ? [
|
|
38
|
+
{
|
|
39
|
+
heading: location.coords.heading ?? void 0,
|
|
40
|
+
schema: LocationHeadingSchema,
|
|
41
|
+
speed: location.coords.speed ?? void 0
|
|
42
|
+
}
|
|
43
|
+
] : [];
|
|
44
|
+
return [locationPayload, ...heading];
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
CurrentLocationWitness
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=CurrentLocationWitness.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/CurrentLocationWitness.ts","../../src/Config.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness'\n\nimport { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config'\n\nexport class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {\n static override configSchemas = [CurrentLocationWitnessConfigSchema]\n\n get geolocation(): Geolocation {\n return assertEx(this.params.geolocation, 'No geolocation provided')\n }\n\n getCurrentPosition() {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n this.geolocation?.getCurrentPosition(\n (position: GeolocationPosition) => {\n resolve(position)\n },\n (error: GeolocationPositionError) => {\n reject(error)\n },\n )\n })\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const location = await this.getCurrentPosition()\n const locationPayload: LocationPayload = {\n altitude: location.coords.altitude ?? undefined,\n altitudeAccuracy: location.coords.altitudeAccuracy ?? undefined,\n latitude: location.coords.latitude,\n longitude: location.coords.longitude,\n schema: LocationSchema,\n }\n const heading: LocationHeadingPayload[] = location.coords.heading\n ? [\n {\n heading: location.coords.heading ?? undefined,\n schema: LocationHeadingSchema,\n speed: location.coords.speed ?? undefined,\n },\n ]\n : []\n return [locationPayload, ...heading]\n }\n}\n","import { AnyConfigSchema, ModuleParams } from '@xyo-network/module'\nimport { WitnessConfig } from '@xyo-network/witness'\n\nexport type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\nexport const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'\n\nexport type CurrentLocationWitnessConfig = WitnessConfig<{\n schema: CurrentLocationWitnessConfigSchema\n}>\n\nexport type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, { geolocation?: Geolocation }>\n"],"mappings":";AAAA,SAAS,gBAAgB;AACzB,SAAiC,uBAAwC,sBAAsB;AAE/F,SAAS,uBAAuB;;;ACCzB,IAAM,qCAAyE;;;ADG/E,IAAM,yBAAN,cAAkH,gBAAyB;AAAA,EAChJ,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEnE,IAAI,cAA2B;AAC7B,WAAO,SAAS,KAAK,OAAO,aAAa,yBAAyB;AAAA,EACpE;AAAA,EAEA,qBAAqB;AACnB,WAAO,IAAI,QAA6B,CAAC,SAAS,WAAW;AAfjE;AAgBM,iBAAK,gBAAL,mBAAkB;AAAA,QAChB,CAAC,aAAkC;AACjC,kBAAQ,QAAQ;AAAA,QAClB;AAAA,QACA,CAAC,UAAoC;AACnC,iBAAO,KAAK;AAAA,QACd;AAAA;AAAA,IAEJ,CAAC;AAAA,EACH;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,WAAW,MAAM,KAAK,mBAAmB;AAC/C,UAAM,kBAAmC;AAAA,MACvC,UAAU,SAAS,OAAO,YAAY;AAAA,MACtC,kBAAkB,SAAS,OAAO,oBAAoB;AAAA,MACtD,UAAU,SAAS,OAAO;AAAA,MAC1B,WAAW,SAAS,OAAO;AAAA,MAC3B,QAAQ;AAAA,IACV;AACA,UAAM,UAAoC,SAAS,OAAO,UACtD;AAAA,MACE;AAAA,QACE,SAAS,SAAS,OAAO,WAAW;AAAA,QACpC,QAAQ;AAAA,QACR,OAAO,SAAS,OAAO,SAAS;AAAA,MAClC;AAAA,IACF,IACA,CAAC;AACL,WAAO,CAAC,iBAAiB,GAAG,OAAO;AAAA,EACrC;AACF;","names":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CurrentLocationWitness } from './CurrentLocationWitness';
|
|
2
|
+
export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import("@xyo-network/core").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
5
|
+
accountDerivationPath?: string | undefined;
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly paging?: Record<string, {
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly security?: {
|
|
13
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
14
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
15
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly sign?: boolean | undefined;
|
|
18
|
+
readonly storeQueries?: boolean | undefined;
|
|
19
|
+
readonly timestamp?: boolean | undefined;
|
|
20
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
21
|
+
accountDerivationPath?: string | undefined;
|
|
22
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
readonly security?: {
|
|
29
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
30
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
31
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly sign?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
35
|
+
readonly timestamp?: boolean | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
archivist?: string | undefined;
|
|
38
|
+
schema: "network.xyo.location.current.config";
|
|
39
|
+
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
40
|
+
schema: "network.xyo.payload.set";
|
|
41
|
+
}) | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
schema: "network.xyo.location.current.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.location.current.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
geolocation?: Geolocation | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CurrentLocationWitness } from './CurrentLocationWitness';
|
|
2
|
+
export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import("@xyo-network/core").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
5
|
+
accountDerivationPath?: string | undefined;
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly paging?: Record<string, {
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly security?: {
|
|
13
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
14
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
15
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly sign?: boolean | undefined;
|
|
18
|
+
readonly storeQueries?: boolean | undefined;
|
|
19
|
+
readonly timestamp?: boolean | undefined;
|
|
20
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
21
|
+
accountDerivationPath?: string | undefined;
|
|
22
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
readonly security?: {
|
|
29
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
30
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
31
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly sign?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
35
|
+
readonly timestamp?: boolean | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
archivist?: string | undefined;
|
|
38
|
+
schema: "network.xyo.location.current.config";
|
|
39
|
+
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
40
|
+
schema: "network.xyo.payload.set";
|
|
41
|
+
}) | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
schema: "network.xyo.location.current.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.location.current.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
geolocation?: Geolocation | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CurrentLocationWitness } from './CurrentLocationWitness';
|
|
2
|
+
export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import("@xyo-network/core").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
5
|
+
accountDerivationPath?: string | undefined;
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly paging?: Record<string, {
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly security?: {
|
|
13
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
14
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
15
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly sign?: boolean | undefined;
|
|
18
|
+
readonly storeQueries?: boolean | undefined;
|
|
19
|
+
readonly timestamp?: boolean | undefined;
|
|
20
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
21
|
+
accountDerivationPath?: string | undefined;
|
|
22
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
readonly security?: {
|
|
29
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
30
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
31
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly sign?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
35
|
+
readonly timestamp?: boolean | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
archivist?: string | undefined;
|
|
38
|
+
schema: "network.xyo.location.current.config";
|
|
39
|
+
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
40
|
+
schema: "network.xyo.payload.set";
|
|
41
|
+
}) | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
schema: "network.xyo.location.current.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.location.current.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
geolocation?: Geolocation | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
|