@xyo-network/location-plugin 3.4.0 → 3.4.1
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/index.d.ts +78 -5
- package/package.json +10 -10
- package/dist/neutral/Config.d.ts +0 -11
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/CurrentLocationPayloadSet.d.ts +0 -3
- package/dist/neutral/CurrentLocationPayloadSet.d.ts.map +0 -1
- package/dist/neutral/CurrentLocationWitness.d.ts +0 -11
- package/dist/neutral/CurrentLocationWitness.d.ts.map +0 -1
- package/dist/neutral/Plugin.d.ts +0 -48
- package/dist/neutral/Plugin.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|
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.1",
|
|
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.
|
|
34
|
-
"@xyo-network/location-payload-plugin": "^3.4.
|
|
35
|
-
"@xyo-network/module-model": "^3.8.
|
|
36
|
-
"@xyo-network/payload-model": "^3.8.
|
|
37
|
-
"@xyo-network/payloadset-plugin": "^3.8.
|
|
38
|
-
"@xyo-network/witness-model": "^3.8.
|
|
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"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig-dom": "^
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.22",
|
|
42
|
+
"@xylabs/tsconfig-dom": "^5.0.22",
|
|
43
43
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
44
44
|
"typescript": "^5.7.3",
|
|
45
|
-
"vitest": "^3.0.
|
|
45
|
+
"vitest": "^3.0.5"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
package/dist/neutral/Config.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/neutral/Plugin.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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-2eddd29fdf/package").AccountInstance | "random";
|
|
4
|
-
addToResolvers?: boolean;
|
|
5
|
-
additionalSigners?: import(".store/@xyo-network-account-model-virtual-2eddd29fdf/package").AccountInstance[];
|
|
6
|
-
allowNameResolution?: boolean;
|
|
7
|
-
config: import(".store/@xylabs-object-npm-4.5.1-e31c389195/package").DeepRestrictToStringKeys<{
|
|
8
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
9
|
-
readonly archiving?: {
|
|
10
|
-
readonly archivists?: string[] | undefined;
|
|
11
|
-
readonly queries?: string[] | undefined;
|
|
12
|
-
} | undefined;
|
|
13
|
-
readonly allowedQueries?: string[] | undefined;
|
|
14
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
15
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
16
|
-
readonly labels?: {
|
|
17
|
-
[x: string]: string | undefined;
|
|
18
|
-
} | undefined;
|
|
19
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
20
|
-
readonly paging?: {
|
|
21
|
-
[x: string]: {
|
|
22
|
-
size?: number | undefined;
|
|
23
|
-
};
|
|
24
|
-
} | undefined;
|
|
25
|
-
readonly retry?: {
|
|
26
|
-
backoff?: number | undefined;
|
|
27
|
-
interval?: number | undefined;
|
|
28
|
-
retries?: number | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
readonly security?: {
|
|
31
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
32
|
-
readonly allowed?: {
|
|
33
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
34
|
-
} | undefined;
|
|
35
|
-
readonly disallowed?: {
|
|
36
|
-
[x: string]: Lowercase<string>[];
|
|
37
|
-
} | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
readonly sign?: boolean | undefined;
|
|
40
|
-
readonly storeQueries?: boolean | undefined;
|
|
41
|
-
readonly timestamp?: boolean | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
44
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
45
|
-
} & {
|
|
46
|
-
geolocation?: Geolocation;
|
|
47
|
-
}>>;
|
|
48
|
-
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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"}
|