@xyo-network/location-plugin 3.4.1 → 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.
@@ -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,3 @@
1
+ import { PayloadSetPayload } from '@xyo-network/payload-model';
2
+ export declare const CurrentLocationPayloadSet: PayloadSetPayload;
3
+ //# sourceMappingURL=CurrentLocationPayloadSet.d.ts.map
@@ -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"}
@@ -1,78 +1,5 @@
1
- import * as _xyo_network_module_model from '@xyo-network/module-model';
2
- import { ModuleParams, AnyConfigSchema } from '@xyo-network/module-model';
3
- import { WitnessConfig } from '@xyo-network/witness-model';
4
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
5
- import { PayloadSetPayload, Schema, Payload } from '@xyo-network/payload-model';
6
- import { AbstractWitness } from '@xyo-network/abstract-witness';
7
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
8
- import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
9
- import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
10
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
11
-
12
- type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
13
- declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
14
- type CurrentLocationWitnessConfig = WitnessConfig<{
15
- schema: CurrentLocationWitnessConfigSchema;
16
- }>;
17
- type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
18
- geolocation?: Geolocation;
19
- }>;
20
-
21
- declare const CurrentLocationPayloadSet: PayloadSetPayload;
22
-
23
- declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
24
- static readonly configSchemas: Schema[];
25
- static readonly defaultConfigSchema: Schema;
26
- get geolocation(): Geolocation;
27
- getCurrentPosition(): Promise<GeolocationPosition>;
28
- protected observeHandler(): Promise<Payload[]>;
29
- }
30
-
31
- declare const LocationPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CurrentLocationWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
32
- account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
33
- addToResolvers?: boolean;
34
- additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
35
- allowNameResolution?: boolean;
36
- config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
37
- schema: _xyo_network_payload_model.Schema;
38
- readonly archiving?: {
39
- readonly archivists?: string[] | undefined;
40
- readonly queries?: string[] | undefined;
41
- } | undefined;
42
- readonly allowedQueries?: string[] | undefined;
43
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
44
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
45
- readonly labels?: {
46
- [x: string]: string | undefined;
47
- } | undefined;
48
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
49
- readonly paging?: {
50
- [x: string]: {
51
- size?: number | undefined;
52
- };
53
- } | undefined;
54
- readonly retry?: {
55
- backoff?: number | undefined;
56
- interval?: number | undefined;
57
- retries?: number | undefined;
58
- } | undefined;
59
- readonly security?: {
60
- readonly allowAnonymous?: boolean | undefined;
61
- readonly allowed?: {
62
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
63
- } | undefined;
64
- readonly disallowed?: {
65
- [x: string]: Lowercase<string>[];
66
- } | undefined;
67
- } | undefined;
68
- readonly sign?: boolean | undefined;
69
- readonly storeQueries?: boolean | undefined;
70
- readonly timestamp?: boolean | undefined;
71
- }>;
72
- ephemeralQueryAccountEnabled?: boolean;
73
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
74
- } & {
75
- geolocation?: Geolocation;
76
- }>>;
77
-
78
- 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"}
@@ -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 { LocationHeadingSchema as LocationHeadingSchema2, LocationSchema as LocationSchema2 } from "@xyo-network/location-payload-plugin";
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 type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'\nimport type { 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 type { PayloadSetPayload } from '@xyo-network/payload-model'\nimport { 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 type { LocationHeadingPayload, LocationPayload } from '@xyo-network/location-payload-plugin'\nimport { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport type { Payload, Schema } from '@xyo-network/payload-model'\n\nimport type { CurrentLocationWitnessParams } from './Config.ts'\nimport { CurrentLocationWitnessConfigSchema } 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;AAEtD,SAAS,wBAAwB;AAE1B,IAAM,4BAA+C;AAAA,EAC1D,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE;AAAA,EACvC,UAAU,EAAE,CAAC,cAAc,GAAG,EAAE;AAAA,EAChC,QAAQ;AACV;;;ACRA,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,SAAS,yBAAAA,wBAAuB,kBAAAC,uBAAsB;AAM/C,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"]}
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.1",
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.8.5",
34
- "@xyo-network/location-payload-plugin": "^3.4.1",
35
- "@xyo-network/module-model": "^3.8.5",
36
- "@xyo-network/payload-model": "^3.8.5",
37
- "@xyo-network/payloadset-plugin": "^3.8.5",
38
- "@xyo-network/witness-model": "^3.8.5"
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.22",
42
- "@xylabs/tsconfig-dom": "^5.0.22",
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.7.3",
45
- "vitest": "^3.0.5"
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 type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
2
- import type { WitnessConfig } from '@xyo-network/witness-model'
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 type { PayloadSetPayload } from '@xyo-network/payload-model'
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 type { LocationHeadingPayload, LocationPayload } from '@xyo-network/location-payload-plugin'
4
- import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'
5
- import type { Payload, Schema } from '@xyo-network/payload-model'
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 type { CurrentLocationWitnessParams } from './Config.ts'
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
@@ -1,4 +1,4 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},