@xyo-network/location-plugin 3.4.2 → 3.4.3
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/neutral/Config.d.ts +11 -0
- package/dist/neutral/Config.d.ts.map +1 -0
- package/dist/neutral/CurrentLocationPayloadSet.d.ts +3 -0
- package/dist/neutral/CurrentLocationPayloadSet.d.ts.map +1 -0
- package/dist/neutral/CurrentLocationWitness.d.ts +11 -0
- package/dist/neutral/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/neutral/Plugin.d.ts +15 -0
- package/dist/neutral/Plugin.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +5 -43
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +4 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/Config.ts +2 -2
- package/src/CurrentLocationPayloadSet.ts +1 -2
- package/src/CurrentLocationWitness.ts +5 -5
- package/xy.config.ts +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
+
import { WitnessConfig } from '@xyo-network/witness-model';
|
|
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,2BAA2B,CAAA;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,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 @@
|
|
|
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,iBAIvC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
2
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
3
|
+
import { CurrentLocationWitnessParams } from './Config.ts';
|
|
4
|
+
export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
5
|
+
static readonly configSchemas: Schema[];
|
|
6
|
+
static readonly defaultConfigSchema: Schema;
|
|
7
|
+
get geolocation(): Geolocation;
|
|
8
|
+
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
9
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=CurrentLocationWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAI/D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAsC,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE9F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA+D;IAC/G,gBAAyB,mBAAmB,EAAE,MAAM,CAAqC;IAEzF,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAqB9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CurrentLocationWitness } from './CurrentLocationWitness.ts';
|
|
2
|
+
export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").BaseParamsFields & {
|
|
3
|
+
account?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-26592e0d6e/package").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").CurrentLocationWitnessConfig>;
|
|
8
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
9
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
10
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
11
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
12
|
+
} & {
|
|
13
|
+
geolocation?: Geolocation;
|
|
14
|
+
}>>;
|
|
15
|
+
//# 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,6BAA6B,CAAA;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;GAQxB,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,43 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
7
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
8
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
9
|
-
|
|
10
|
-
type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
11
|
-
declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
12
|
-
type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
13
|
-
schema: CurrentLocationWitnessConfigSchema;
|
|
14
|
-
}>;
|
|
15
|
-
type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
16
|
-
geolocation?: Geolocation;
|
|
17
|
-
}>;
|
|
18
|
-
|
|
19
|
-
declare const CurrentLocationPayloadSet: PayloadSetPayload;
|
|
20
|
-
|
|
21
|
-
declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
22
|
-
static readonly configSchemas: Schema[];
|
|
23
|
-
static readonly defaultConfigSchema: Schema;
|
|
24
|
-
get geolocation(): Geolocation;
|
|
25
|
-
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
26
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare const LocationPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CurrentLocationWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
30
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
31
|
-
addToResolvers?: boolean;
|
|
32
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
33
|
-
allowNameResolution?: boolean;
|
|
34
|
-
config: _xyo_network_module_model.AnyConfigSchema<CurrentLocationWitnessConfig>;
|
|
35
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
36
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
37
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
38
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
39
|
-
} & {
|
|
40
|
-
geolocation?: Geolocation;
|
|
41
|
-
}>>;
|
|
42
|
-
|
|
43
|
-
export { CurrentLocationPayloadSet, CurrentLocationWitness, type CurrentLocationWitnessConfig, CurrentLocationWitnessConfigSchema, type CurrentLocationWitnessParams, LocationPlugin, LocationPlugin as default };
|
|
1
|
+
export * from './Config.ts';
|
|
2
|
+
export * from './CurrentLocationPayloadSet.ts';
|
|
3
|
+
export * from './CurrentLocationWitness.ts';
|
|
4
|
+
export { LocationPlugin as default, LocationPlugin } from './Plugin.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -13,7 +13,10 @@ var CurrentLocationPayloadSet = {
|
|
|
13
13
|
// src/CurrentLocationWitness.ts
|
|
14
14
|
import { assertEx } from "@xylabs/assert";
|
|
15
15
|
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
LocationHeadingSchema as LocationHeadingSchema2,
|
|
18
|
+
LocationSchema as LocationSchema2
|
|
19
|
+
} from "@xyo-network/location-payload-plugin";
|
|
17
20
|
var CurrentLocationWitness = class extends AbstractWitness {
|
|
18
21
|
static configSchemas = [...super.configSchemas, CurrentLocationWitnessConfigSchema];
|
|
19
22
|
static defaultConfigSchema = CurrentLocationWitnessConfigSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/CurrentLocationPayloadSet.ts","../../src/CurrentLocationWitness.ts","../../src/Plugin.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/CurrentLocationPayloadSet.ts","../../src/CurrentLocationWitness.ts","../../src/Plugin.ts"],"sourcesContent":["import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'\nimport { WitnessConfig } from '@xyo-network/witness-model'\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","import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'\n\nexport const CurrentLocationPayloadSet: PayloadSetPayload = {\n optional: { [LocationHeadingSchema]: 1 },\n required: { [LocationSchema]: 1 },\n schema: PayloadSetSchema,\n}\n","import { assertEx } from '@xylabs/assert'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport {\n LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema,\n} from '@xyo-network/location-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\n\nimport { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config.ts'\n\nexport class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CurrentLocationWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = 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[]\n = 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 { LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CurrentLocationWitness } from './CurrentLocationWitness.ts'\n\nexport const LocationPlugin = () =>\n createPayloadSetWitnessPlugin<CurrentLocationWitness>(\n { required: { [LocationSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CurrentLocationWitness.create(params)\n },\n },\n )\n"],"mappings":";AAIO,IAAM,qCAAyE;;;ACJtF,SAAS,uBAAuB,sBAAsB;AACtD,SAA4B,wBAAwB;AAE7C,IAAM,4BAA+C;AAAA,EAC1D,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE;AAAA,EACvC,UAAU,EAAE,CAAC,cAAc,GAAG,EAAE;AAAA,EAChC,QAAQ;AACV;;;ACPA,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAChC;AAAA,EAC0B,yBAAAA;AAAA,EAAwC,kBAAAC;AAAA,OAC3D;AAKA,IAAM,yBAAN,cAAkH,gBAAyB;AAAA,EAChJ,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEvD,IAAI,cAA2B;AAC7B,WAAO,SAAS,KAAK,OAAO,aAAa,MAAM,yBAAyB;AAAA,EAC1E;AAAA,EAEA,qBAAqB;AACnB,WAAO,IAAI,QAA6B,CAAC,SAAS,WAAW;AAC3D,WAAK,aAAa;AAAA,QAChB,CAAC,aAAkC;AACjC,kBAAQ,QAAQ;AAAA,QAClB;AAAA,QACA,CAAC,UAAoC;AACnC,iBAAO,KAAK;AAAA,QACd;AAAA,MACF;AAAA,IACF,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,QAAQC;AAAA,IACV;AACA,UAAM,UACF,SAAS,OAAO,UACd;AAAA,MACE;AAAA,QACE,SAAS,SAAS,OAAO,WAAW;AAAA,QACpC,QAAQC;AAAA,QACR,OAAO,SAAS,OAAO,SAAS;AAAA,MAClC;AAAA,IACF,IACA,CAAC;AACP,WAAO,CAAC,iBAAiB,GAAG,OAAO;AAAA,EACrC;AACF;;;ACnDA,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,oBAAAC,yBAAwB;AACjC,SAAS,qCAAqC;AAIvC,IAAM,iBAAiB,MAC5B;AAAA,EACE,EAAE,UAAU,EAAE,CAACC,eAAc,GAAG,EAAE,GAAG,QAAQC,kBAAiB;AAAA,EAC9D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,uBAAuB,OAAO,MAAM;AAAA,IACnD;AAAA,EACF;AACF;","names":["LocationHeadingSchema","LocationSchema","LocationSchema","LocationHeadingSchema","LocationSchema","PayloadSetSchema","LocationSchema","PayloadSetSchema"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/location-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/assert": "^4.5.1",
|
|
33
|
-
"@xyo-network/abstract-witness": "^3.9.
|
|
34
|
-
"@xyo-network/location-payload-plugin": "^3.4.
|
|
35
|
-
"@xyo-network/module-model": "^3.9.
|
|
36
|
-
"@xyo-network/payload-model": "^3.9.
|
|
37
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
38
|
-
"@xyo-network/witness-model": "^3.9.
|
|
33
|
+
"@xyo-network/abstract-witness": "^3.9.23",
|
|
34
|
+
"@xyo-network/location-payload-plugin": "^3.4.3",
|
|
35
|
+
"@xyo-network/module-model": "^3.9.23",
|
|
36
|
+
"@xyo-network/payload-model": "^3.9.23",
|
|
37
|
+
"@xyo-network/payloadset-plugin": "^3.9.23",
|
|
38
|
+
"@xyo-network/witness-model": "^3.9.23"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
42
|
-
"@xylabs/tsconfig-dom": "^5.0.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
42
|
+
"@xylabs/tsconfig-dom": "^5.0.39",
|
|
43
43
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
44
|
-
"typescript": "^5.
|
|
45
|
-
"vitest": "^3.0.
|
|
44
|
+
"typescript": "^5.8.2",
|
|
45
|
+
"vitest": "^3.0.7"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
package/src/Config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
|
|
2
|
+
import { WitnessConfig } from '@xyo-network/witness-model'
|
|
3
3
|
|
|
4
4
|
export type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'
|
|
5
5
|
export const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'
|
|
2
|
-
import
|
|
3
|
-
import { PayloadSetSchema } from '@xyo-network/payload-model'
|
|
2
|
+
import { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'
|
|
4
3
|
|
|
5
4
|
export const CurrentLocationPayloadSet: PayloadSetPayload = {
|
|
6
5
|
optional: { [LocationHeadingSchema]: 1 },
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness'
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema,
|
|
5
|
+
} from '@xyo-network/location-payload-plugin'
|
|
6
|
+
import { Payload, Schema } from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import
|
|
8
|
-
import { CurrentLocationWitnessConfigSchema } from './Config.ts'
|
|
8
|
+
import { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config.ts'
|
|
9
9
|
|
|
10
10
|
export class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
11
11
|
static override readonly configSchemas: Schema[] = [...super.configSchemas, CurrentLocationWitnessConfigSchema]
|
package/xy.config.ts
CHANGED