@xyo-network/location-plugin 2.73.4 → 2.74.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/Config.d.mts +11 -0
- package/dist/Config.d.mts.map +1 -0
- package/dist/Config.d.ts +11 -0
- package/dist/Config.d.ts.map +1 -0
- package/dist/CurrentLocationPayloadSet.d.mts +3 -0
- package/dist/CurrentLocationPayloadSet.d.mts.map +1 -0
- package/dist/CurrentLocationPayloadSet.d.ts +3 -0
- package/dist/CurrentLocationPayloadSet.d.ts.map +1 -0
- package/dist/CurrentLocationWitness.d.mts +10 -0
- package/dist/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/CurrentLocationWitness.d.ts +10 -0
- package/dist/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/Plugin.d.mts +56 -0
- package/dist/Plugin.d.mts.map +1 -0
- package/dist/Plugin.d.ts +56 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/docs.json +7444 -8100
- package/dist/index.d.mts +7 -84
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +7 -84
- package/dist/index.d.ts.map +1 -0
- package/package.json +10 -16
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,84 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { WitnessConfig, AbstractWitness } from '@xyo-network/witness';
|
|
9
|
-
import { ModuleParams, AnyConfigSchema } from '@xyo-network/module';
|
|
10
|
-
|
|
11
|
-
type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
12
|
-
declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
13
|
-
type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
14
|
-
schema: CurrentLocationWitnessConfigSchema;
|
|
15
|
-
}>;
|
|
16
|
-
type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
17
|
-
geolocation?: Geolocation;
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
21
|
-
static configSchemas: "network.xyo.location.current.config"[];
|
|
22
|
-
get geolocation(): Geolocation;
|
|
23
|
-
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
24
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare const LocationPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CurrentLocationWitness<_xyo_network_core.BaseParamsFields & {
|
|
28
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
29
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
30
|
-
accountDerivationPath?: string | undefined;
|
|
31
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
32
|
-
readonly name?: string | undefined;
|
|
33
|
-
readonly paging?: Record<string, {
|
|
34
|
-
size?: number | undefined;
|
|
35
|
-
}> | undefined;
|
|
36
|
-
readonly schema: string;
|
|
37
|
-
readonly security?: {
|
|
38
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
39
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
40
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
readonly sign?: boolean | undefined;
|
|
43
|
-
readonly storeQueries?: boolean | undefined;
|
|
44
|
-
readonly timestamp?: boolean | undefined;
|
|
45
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
46
|
-
accountDerivationPath?: string | undefined;
|
|
47
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
48
|
-
readonly name?: string | undefined;
|
|
49
|
-
readonly paging?: Record<string, {
|
|
50
|
-
size?: number | undefined;
|
|
51
|
-
}> | undefined;
|
|
52
|
-
readonly schema: "network.xyo.location.current.config";
|
|
53
|
-
readonly security?: {
|
|
54
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
55
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
56
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
readonly sign?: boolean | undefined;
|
|
59
|
-
readonly storeQueries?: boolean | undefined;
|
|
60
|
-
readonly timestamp?: boolean | undefined;
|
|
61
|
-
} & Omit<{
|
|
62
|
-
archivist?: string | undefined;
|
|
63
|
-
schema: "network.xyo.location.current.config";
|
|
64
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
65
|
-
schema: "network.xyo.payload.set";
|
|
66
|
-
}) | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
schema: "network.xyo.location.current.config";
|
|
69
|
-
}, "schema"> & {
|
|
70
|
-
schema: "network.xyo.location.current.config";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: string;
|
|
73
|
-
}, "schema"> & {
|
|
74
|
-
schema: string;
|
|
75
|
-
};
|
|
76
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
77
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
78
|
-
} & {
|
|
79
|
-
geolocation?: Geolocation | undefined;
|
|
80
|
-
}>>;
|
|
81
|
-
|
|
82
|
-
declare const CurrentLocationPayloadSet: PayloadSetPayload;
|
|
83
|
-
|
|
84
|
-
export { CurrentLocationPayloadSet, CurrentLocationWitness, CurrentLocationWitnessConfig, CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams, LocationPlugin, LocationPlugin as default };
|
|
1
|
+
import { LocationPlugin } from './Plugin';
|
|
2
|
+
export * from './Config';
|
|
3
|
+
export * from './CurrentLocationPayloadSet';
|
|
4
|
+
export * from './CurrentLocationWitness';
|
|
5
|
+
export { LocationPlugin };
|
|
6
|
+
export default LocationPlugin;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,UAAU,CAAA;AACxB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AAExC,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,eAAe,cAAc,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,84 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { WitnessConfig, AbstractWitness } from '@xyo-network/witness';
|
|
9
|
-
import { ModuleParams, AnyConfigSchema } from '@xyo-network/module';
|
|
10
|
-
|
|
11
|
-
type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
|
|
12
|
-
declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
|
|
13
|
-
type CurrentLocationWitnessConfig = WitnessConfig<{
|
|
14
|
-
schema: CurrentLocationWitnessConfigSchema;
|
|
15
|
-
}>;
|
|
16
|
-
type CurrentLocationWitnessParams = ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>, {
|
|
17
|
-
geolocation?: Geolocation;
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
|
|
21
|
-
static configSchemas: "network.xyo.location.current.config"[];
|
|
22
|
-
get geolocation(): Geolocation;
|
|
23
|
-
getCurrentPosition(): Promise<GeolocationPosition>;
|
|
24
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare const LocationPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CurrentLocationWitness<_xyo_network_core.BaseParamsFields & {
|
|
28
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
29
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
30
|
-
accountDerivationPath?: string | undefined;
|
|
31
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
32
|
-
readonly name?: string | undefined;
|
|
33
|
-
readonly paging?: Record<string, {
|
|
34
|
-
size?: number | undefined;
|
|
35
|
-
}> | undefined;
|
|
36
|
-
readonly schema: string;
|
|
37
|
-
readonly security?: {
|
|
38
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
39
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
40
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
readonly sign?: boolean | undefined;
|
|
43
|
-
readonly storeQueries?: boolean | undefined;
|
|
44
|
-
readonly timestamp?: boolean | undefined;
|
|
45
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
46
|
-
accountDerivationPath?: string | undefined;
|
|
47
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
48
|
-
readonly name?: string | undefined;
|
|
49
|
-
readonly paging?: Record<string, {
|
|
50
|
-
size?: number | undefined;
|
|
51
|
-
}> | undefined;
|
|
52
|
-
readonly schema: "network.xyo.location.current.config";
|
|
53
|
-
readonly security?: {
|
|
54
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
55
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
56
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
readonly sign?: boolean | undefined;
|
|
59
|
-
readonly storeQueries?: boolean | undefined;
|
|
60
|
-
readonly timestamp?: boolean | undefined;
|
|
61
|
-
} & Omit<{
|
|
62
|
-
archivist?: string | undefined;
|
|
63
|
-
schema: "network.xyo.location.current.config";
|
|
64
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
65
|
-
schema: "network.xyo.payload.set";
|
|
66
|
-
}) | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
schema: "network.xyo.location.current.config";
|
|
69
|
-
}, "schema"> & {
|
|
70
|
-
schema: "network.xyo.location.current.config";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: string;
|
|
73
|
-
}, "schema"> & {
|
|
74
|
-
schema: string;
|
|
75
|
-
};
|
|
76
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
77
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
78
|
-
} & {
|
|
79
|
-
geolocation?: Geolocation | undefined;
|
|
80
|
-
}>>;
|
|
81
|
-
|
|
82
|
-
declare const CurrentLocationPayloadSet: PayloadSetPayload;
|
|
83
|
-
|
|
84
|
-
export { CurrentLocationPayloadSet, CurrentLocationWitness, CurrentLocationWitnessConfig, CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams, LocationPlugin, LocationPlugin as default };
|
|
1
|
+
import { LocationPlugin } from './Plugin';
|
|
2
|
+
export * from './Config';
|
|
3
|
+
export * from './CurrentLocationPayloadSet';
|
|
4
|
+
export * from './CurrentLocationWitness';
|
|
5
|
+
export { LocationPlugin };
|
|
6
|
+
export default LocationPlugin;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,UAAU,CAAA;AACxB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AAExC,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,eAAe,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,25 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/assert": "^2.
|
|
14
|
-
"@xyo-network/location-payload-plugin": "~2.
|
|
15
|
-
"@xyo-network/module": "~2.
|
|
16
|
-
"@xyo-network/payload-model": "~2.
|
|
17
|
-
"@xyo-network/payloadset-plugin": "~2.
|
|
18
|
-
"@xyo-network/witness": "~2.
|
|
13
|
+
"@xylabs/assert": "^2.11.6",
|
|
14
|
+
"@xyo-network/location-payload-plugin": "~2.74.1",
|
|
15
|
+
"@xyo-network/module": "~2.74.1",
|
|
16
|
+
"@xyo-network/payload-model": "~2.74.1",
|
|
17
|
+
"@xyo-network/payloadset-plugin": "~2.74.1",
|
|
18
|
+
"@xyo-network/witness": "~2.74.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
22
|
-
"@xylabs/tsconfig-dom": "^
|
|
23
|
-
"@xylabs/tsconfig-dom-jest": "^
|
|
24
|
-
"publint": "^0.2.2",
|
|
25
|
-
"tsup": "^7.2.0",
|
|
21
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
22
|
+
"@xylabs/tsconfig-dom": "^3.0.28",
|
|
23
|
+
"@xylabs/tsconfig-dom-jest": "^3.0.28",
|
|
26
24
|
"typescript": "^5.2.2"
|
|
27
25
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"package-compile": "tsup && publint",
|
|
30
|
-
"package-recompile": "tsup && publint"
|
|
31
|
-
},
|
|
32
26
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
33
27
|
"docs": "dist/docs.json",
|
|
34
28
|
"types": "dist/index.d.ts",
|
|
@@ -69,5 +63,5 @@
|
|
|
69
63
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
70
64
|
},
|
|
71
65
|
"sideEffects": false,
|
|
72
|
-
"version": "2.
|
|
66
|
+
"version": "2.74.1"
|
|
73
67
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
bundle: true,
|
|
6
|
-
cjsInterop: true,
|
|
7
|
-
clean: false,
|
|
8
|
-
dts: {
|
|
9
|
-
entry: ['src/index.ts'],
|
|
10
|
-
},
|
|
11
|
-
entry: ['src/index.ts'],
|
|
12
|
-
format: ['cjs', 'esm'],
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
splitting: false,
|
|
15
|
-
tsconfig: 'tsconfig.json',
|
|
16
|
-
})
|