@xyo-network/location-certainty-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/Diviner/Config.d.ts +10 -0
- package/dist/types/Diviner/Config.d.ts.map +1 -0
- package/dist/types/Diviner/Diviner.d.ts +16 -0
- package/dist/types/Diviner/Diviner.d.ts.map +1 -0
- package/dist/types/Diviner/index.d.ts +3 -0
- package/dist/types/Diviner/index.d.ts.map +1 -0
- package/dist/types/Plugin.d.ts +13 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +21 -21
- package/dist/neutral/index.d.ts +0 -40
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { LocationCertaintySchema } from '@xyo-network/location-certainty-payload-plugin';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
export type LocationCertaintyDivinerConfigSchema = 'network.xyo.location.elevation.diviner.config';
|
|
5
|
+
export declare const LocationCertaintyDivinerConfigSchema: LocationCertaintyDivinerConfigSchema;
|
|
6
|
+
export type LocationCertaintyDivinerConfig<TConfig extends Payload = Payload> = DivinerConfig<TConfig & {
|
|
7
|
+
schema: LocationCertaintyDivinerConfigSchema;
|
|
8
|
+
targetSchema?: LocationCertaintySchema;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Diviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAA;AAC7F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,oCAAoC,GAAG,+CAA+C,CAAA;AAClG,eAAO,MAAM,oCAAoC,EAAE,oCAAsF,CAAA;AAEzI,MAAM,MAAM,8BAA8B,CAAC,OAAO,SAAS,OAAO,GAAG,OAAO,IAAI,aAAa,CAC3F,OAAO,GAAG;IACR,MAAM,EAAE,oCAAoC,CAAA;IAC5C,YAAY,CAAC,EAAE,uBAAuB,CAAA;CACvC,CACF,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
+
import type { DivinerModule, DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
import type { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
|
+
import type { LocationCertaintyDivinerConfig } from './Config.ts';
|
|
6
|
+
export type LocationCertaintyDivinerParams = DivinerParams<AnyConfigSchema<LocationCertaintyDivinerConfig>>;
|
|
7
|
+
export declare class LocationCertaintyDiviner<TParam extends LocationCertaintyDivinerParams = LocationCertaintyDivinerParams> extends AbstractDiviner<TParam> implements DivinerModule {
|
|
8
|
+
static readonly configSchemas: Schema[];
|
|
9
|
+
static readonly defaultConfigSchema: Schema;
|
|
10
|
+
static readonly targetSchema: "network.xyo.location.certainty";
|
|
11
|
+
private static calcHeuristic;
|
|
12
|
+
private static locationsToHeuristics;
|
|
13
|
+
/** @description Given a set of locations, get the expected elevations (witness if needed), and return score/variance */
|
|
14
|
+
protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/Diviner/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAO9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAGjE,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC,CAAA;AAE3G,qBAAa,wBAAwB,CAAC,MAAM,SAAS,8BAA8B,GAAG,8BAA8B,CAClH,SAAQ,eAAe,CAAC,MAAM,CAC9B,YAAW,aAAa;IACxB,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAiE;IACjH,gBAAyB,mBAAmB,EAAE,MAAM,CAAuC;IAC3F,gBAAyB,YAAY,mCAA0B;IAG/D,OAAO,CAAC,MAAM,CAAC,aAAa;IAgC5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAqBpC,wHAAwH;cAC/F,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CA4BjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LocationCertaintyDiviner } from './Diviner/index.ts';
|
|
2
|
+
export declare const LocationCertaintyPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<LocationCertaintyDiviner<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("./Diviner/Config.ts").LocationCertaintyDivinerConfig>;
|
|
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
|
+
//# 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,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;GAQjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,uBAAuB,IAAI,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/location-certainty-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,35 +21,35 @@
|
|
|
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
|
-
"@xyo-network/diviner-abstract": "^3.9.
|
|
33
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
34
|
-
"@xyo-network/elevation-payload-plugin": "^3.4.
|
|
35
|
-
"@xyo-network/elevation-plugin": "^3.4.
|
|
36
|
-
"@xyo-network/location-certainty-payload-plugin": "^3.4.
|
|
37
|
-
"@xyo-network/location-payload-plugin": "^3.4.
|
|
38
|
-
"@xyo-network/module-model": "^3.9.
|
|
39
|
-
"@xyo-network/payload-builder": "^3.9.
|
|
40
|
-
"@xyo-network/payload-model": "^3.9.
|
|
41
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
32
|
+
"@xyo-network/diviner-abstract": "^3.9.36",
|
|
33
|
+
"@xyo-network/diviner-model": "^3.9.36",
|
|
34
|
+
"@xyo-network/elevation-payload-plugin": "^3.4.4",
|
|
35
|
+
"@xyo-network/elevation-plugin": "^3.4.4",
|
|
36
|
+
"@xyo-network/location-certainty-payload-plugin": "^3.4.4",
|
|
37
|
+
"@xyo-network/location-payload-plugin": "^3.4.4",
|
|
38
|
+
"@xyo-network/module-model": "^3.9.36",
|
|
39
|
+
"@xyo-network/payload-builder": "^3.9.36",
|
|
40
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
41
|
+
"@xyo-network/payloadset-plugin": "^3.9.36"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
45
|
-
"@xylabs/tsconfig": "^
|
|
46
|
-
"@xylabs/vitest-extended": "^4.
|
|
47
|
-
"@xyo-network/archivist-abstract": "^3.9.
|
|
48
|
-
"@xyo-network/archivist-memory": "^3.9.
|
|
49
|
-
"@xyo-network/module-resolver": "^3.9.
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
45
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
46
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
47
|
+
"@xyo-network/archivist-abstract": "^3.9.36",
|
|
48
|
+
"@xyo-network/archivist-memory": "^3.9.36",
|
|
49
|
+
"@xyo-network/module-resolver": "^3.9.36",
|
|
50
50
|
"fast-text-encoding": "^1.0.6",
|
|
51
|
-
"typescript": "^5.
|
|
52
|
-
"vitest": "^3.0.
|
|
51
|
+
"typescript": "^5.8.2",
|
|
52
|
+
"vitest": "^3.0.8"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { DivinerConfig, DivinerParams, DivinerModule } from '@xyo-network/diviner-model';
|
|
2
|
-
import { LocationCertaintySchema } from '@xyo-network/location-certainty-payload-plugin';
|
|
3
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
|
-
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
5
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
6
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
7
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
8
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
9
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
10
|
-
|
|
11
|
-
type LocationCertaintyDivinerConfigSchema = 'network.xyo.location.elevation.diviner.config';
|
|
12
|
-
declare const LocationCertaintyDivinerConfigSchema: LocationCertaintyDivinerConfigSchema;
|
|
13
|
-
type LocationCertaintyDivinerConfig<TConfig extends Payload = Payload> = DivinerConfig<TConfig & {
|
|
14
|
-
schema: LocationCertaintyDivinerConfigSchema;
|
|
15
|
-
targetSchema?: LocationCertaintySchema;
|
|
16
|
-
}>;
|
|
17
|
-
|
|
18
|
-
type LocationCertaintyDivinerParams = DivinerParams<AnyConfigSchema<LocationCertaintyDivinerConfig>>;
|
|
19
|
-
declare class LocationCertaintyDiviner<TParam extends LocationCertaintyDivinerParams = LocationCertaintyDivinerParams> extends AbstractDiviner<TParam> implements DivinerModule {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
static readonly targetSchema: "network.xyo.location.certainty";
|
|
23
|
-
private static calcHeuristic;
|
|
24
|
-
private static locationsToHeuristics;
|
|
25
|
-
protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const LocationCertaintyPlugin: () => _xyo_network_payloadset_plugin.PayloadSetDivinerPlugin<LocationCertaintyDiviner<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
29
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
30
|
-
addToResolvers?: boolean;
|
|
31
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
32
|
-
allowNameResolution?: boolean;
|
|
33
|
-
config: _xyo_network_module_model.AnyConfigSchema<LocationCertaintyDivinerConfig>;
|
|
34
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
35
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
36
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
37
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
38
|
-
}>>;
|
|
39
|
-
|
|
40
|
-
export { LocationCertaintyDiviner, type LocationCertaintyDivinerConfig, LocationCertaintyDivinerConfigSchema, type LocationCertaintyDivinerParams, LocationCertaintyPlugin, LocationCertaintyPlugin as default };
|