@xyo-network/location-plugin 3.4.2 → 3.4.4
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/types/Config.d.ts +11 -0
- package/dist/types/Config.d.ts.map +1 -0
- package/dist/types/CurrentLocationPayloadSet.d.ts +3 -0
- package/dist/types/CurrentLocationPayloadSet.d.ts.map +1 -0
- package/dist/types/CurrentLocationWitness.d.ts +11 -0
- package/dist/types/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/types/Plugin.d.ts +15 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +15 -15
- package/dist/neutral/index.d.ts +0 -43
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
+
import type { 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,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,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,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGnE,eAAO,MAAM,yBAAyB,EAAE,iBAIvC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
2
|
+
import type { Payload, Schema } from '@xyo-network/payload-model';
|
|
3
|
+
import type { 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;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAG/D,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.6.0-7a48a8c82f/package").BaseParamsFields & {
|
|
3
|
+
account?: import(".store/@xyo-network-account-model-virtual-89e38357fa/package").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-89e38357fa/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"}
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/location-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
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.
|
|
32
|
+
"@xylabs/assert": "^4.6.0",
|
|
33
|
+
"@xyo-network/abstract-witness": "^3.9.36",
|
|
34
|
+
"@xyo-network/location-payload-plugin": "^3.4.4",
|
|
35
|
+
"@xyo-network/module-model": "^3.9.36",
|
|
36
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
37
|
+
"@xyo-network/payloadset-plugin": "^3.9.36",
|
|
38
|
+
"@xyo-network/witness-model": "^3.9.36"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig-dom": "^
|
|
43
|
-
"@xylabs/vitest-extended": "^4.
|
|
44
|
-
"typescript": "^5.
|
|
45
|
-
"vitest": "^3.0.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
42
|
+
"@xylabs/tsconfig-dom": "^6.0.5",
|
|
43
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
44
|
+
"typescript": "^5.8.2",
|
|
45
|
+
"vitest": "^3.0.8"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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 { PayloadSetPayload, Schema, Payload } from '@xyo-network/payload-model';
|
|
5
|
-
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
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 };
|