@xyo-network/pentair-plugin 7.0.3 → 7.0.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/neutral/index.d.ts +1 -2
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -63
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +70 -16
- package/dist/neutral/Plugin.d.ts +0 -3
- package/dist/neutral/Plugin.d.ts.map +0 -1
- package/dist/neutral/Witness.d.ts +0 -16
- package/dist/neutral/Witness.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yCAAyC,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
import { createPayloadSetWitnessPlugin, PayloadSetSchema } from "@xyo-network/sdk";
|
|
4
|
-
|
|
5
|
-
// src/Witness.ts
|
|
6
|
-
import { assertEx } from "@ariestools/sdk";
|
|
7
|
-
import { PentairScreenlogicSchema } from "@xyo-network/pentair-payload-plugin";
|
|
8
|
-
import { AbstractWitness, asSchema } from "@xyo-network/sdk";
|
|
9
|
-
import {
|
|
10
|
-
FindUnits,
|
|
11
|
-
SchedTypes,
|
|
12
|
-
screenlogic
|
|
13
|
-
} from "node-screenlogic";
|
|
14
|
-
var PentairScreenlogicWitnessConfigSchema = asSchema("network.xyo.pentair.screenlogic.witness.config", true);
|
|
15
|
-
var PentairScreenlogicWitness = class extends AbstractWitness {
|
|
16
|
-
static configSchemas = [...super.configSchemas, PentairScreenlogicWitnessConfigSchema];
|
|
17
|
-
static defaultConfigSchema = PentairScreenlogicWitnessConfigSchema;
|
|
18
|
-
async observeHandler(_payloads) {
|
|
19
|
-
const finder = new FindUnits();
|
|
20
|
-
const foundUnits = await finder.searchAsync();
|
|
21
|
-
const localUnit = assertEx(foundUnits.shift(), () => "No local screenlogic unit found");
|
|
22
|
-
screenlogic.initUnit(localUnit);
|
|
23
|
-
assertEx(await screenlogic.connectAsync(), () => "Failed to connect to ScreenLogic");
|
|
24
|
-
return [
|
|
25
|
-
{
|
|
26
|
-
chem: await screenlogic.chem.getChemicalDataAsync(),
|
|
27
|
-
chlor: await screenlogic.chlor.getIntellichlorConfigAsync(),
|
|
28
|
-
equipment: {
|
|
29
|
-
circuitNames: await screenlogic.equipment.getAllCircuitNamesAsync(),
|
|
30
|
-
config: await screenlogic.equipment.getEquipmentConfigurationAsync(),
|
|
31
|
-
controllerConfig: await screenlogic.equipment.getControllerConfigAsync(),
|
|
32
|
-
customNames: await screenlogic.equipment.getCustomNamesAsync(),
|
|
33
|
-
state: await screenlogic.equipment.getEquipmentStateAsync(),
|
|
34
|
-
systemTime: await screenlogic.equipment.getSystemTimeAsync(),
|
|
35
|
-
weatherForecast: await screenlogic.equipment.getWeatherForecastAsync()
|
|
36
|
-
},
|
|
37
|
-
schedule: {
|
|
38
|
-
once: await screenlogic.schedule.getScheduleDataAsync(SchedTypes.RUNONCE),
|
|
39
|
-
recurring: await screenlogic.schedule.getScheduleDataAsync(SchedTypes.RECURRING)
|
|
40
|
-
},
|
|
41
|
-
schema: PentairScreenlogicSchema,
|
|
42
|
-
version: await screenlogic.getVersionAsync()
|
|
43
|
-
}
|
|
44
|
-
];
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// src/Plugin.ts
|
|
49
|
-
var PentairScreenlogicPlugin = () => createPayloadSetWitnessPlugin(
|
|
50
|
-
{ required: { [PentairScreenlogicSchema2]: 1 }, schema: PayloadSetSchema },
|
|
51
|
-
{
|
|
52
|
-
witness: async (params) => {
|
|
53
|
-
const result = await PentairScreenlogicWitness.create(params);
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
export {
|
|
59
|
-
PentairScreenlogicPlugin,
|
|
60
|
-
PentairScreenlogicWitness,
|
|
61
|
-
PentairScreenlogicWitnessConfigSchema,
|
|
62
|
-
PentairScreenlogicPlugin as default
|
|
63
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/payloadset-plugins/pentair";
|
|
64
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/payloadset-plugins/pentair.\nexport * from '@xyo-network/payloadset-plugins/pentair'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/pentair-plugin",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,12 +31,15 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@xyo-network/
|
|
34
|
+
"@xyo-network/payloadset-plugins": "~7.0.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ariestools/
|
|
38
|
-
"@ariestools/
|
|
39
|
-
"@ariestools/
|
|
37
|
+
"@ariestools/crypto": "~8.0.3",
|
|
38
|
+
"@ariestools/eth-address": "~8.0.3",
|
|
39
|
+
"@ariestools/sdk": "~8.0.3",
|
|
40
|
+
"@ariestools/threads": "~8.0.3",
|
|
41
|
+
"@ariestools/toolchain": "~8.6.12",
|
|
42
|
+
"@ariestools/tsconfig": "~8.6.12",
|
|
40
43
|
"@bitauth/libauth": "~3.0.0",
|
|
41
44
|
"@metamask/providers": "~22.1.1",
|
|
42
45
|
"@noble/post-quantum": "~0.6.1",
|
|
@@ -44,30 +47,54 @@
|
|
|
44
47
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
45
48
|
"@scure/base": "~2.2.0",
|
|
46
49
|
"@scure/bip39": "~2.2.0",
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@xyo-network/
|
|
50
|
-
"@xyo-network/
|
|
50
|
+
"@uniswap/v3-sdk": "~3.31.0",
|
|
51
|
+
"@xyo-network/diviner-hash-lease": "~7.0.11",
|
|
52
|
+
"@xyo-network/diviner-indexing": "~7.0.11",
|
|
53
|
+
"@xyo-network/open-zeppelin-typechain": "~4.1.3",
|
|
54
|
+
"@xyo-network/sdk": "~7.0.11",
|
|
55
|
+
"@xyo-network/sdk-protocol": "~7.0.15",
|
|
56
|
+
"@xyo-network/uniswap-typechain": "~4.1.3",
|
|
57
|
+
"@xyo-network/witness-blockchain-abstract": "~7.0.11",
|
|
58
|
+
"@xyo-network/witness-evm-abstract": "~7.0.11",
|
|
59
|
+
"@xyo-network/witness-timestamp": "~7.0.11",
|
|
51
60
|
"ajv": "~8.20.0",
|
|
52
61
|
"async-mutex": "~0.5.0",
|
|
62
|
+
"base64-js": "~1.5.1",
|
|
63
|
+
"bowser": "~2.14.1",
|
|
64
|
+
"crypto-js": "~4.2.0",
|
|
53
65
|
"debug": "~4.4.3",
|
|
66
|
+
"es6-dynamic-template": "~2.0.0",
|
|
54
67
|
"eslint": "~10.6.0",
|
|
55
68
|
"eslint-import-resolver-typescript": "~4.4.5",
|
|
56
69
|
"ethers": "~6.17.0",
|
|
70
|
+
"file-type": "~22.0.1",
|
|
71
|
+
"fluent-ffmpeg": "~2.1.3",
|
|
72
|
+
"geotiff": "~3.0.5",
|
|
73
|
+
"gm": "~1.25.1",
|
|
74
|
+
"graphql": "~17.0.2",
|
|
75
|
+
"hasbin": "~1.2.3",
|
|
57
76
|
"hash-wasm": "~4.12.0",
|
|
58
77
|
"idb": "~8.0.3",
|
|
59
78
|
"lru-cache": "~11.5.1",
|
|
60
79
|
"node-screenlogic": "~2.1.1",
|
|
61
80
|
"observable-fns": "~0.6.1",
|
|
81
|
+
"parse-data-url": "~6.0.0",
|
|
82
|
+
"prom-client": "~15.1.3",
|
|
83
|
+
"regression": "~2.0.1",
|
|
84
|
+
"sha.js": "~2.4.12",
|
|
85
|
+
"svg-parser": "~2.0.4",
|
|
86
|
+
"systeminformation": "~5.31.14",
|
|
62
87
|
"typescript": "~6.0.3",
|
|
63
|
-
"
|
|
64
|
-
"vitest": "~4.1.9",
|
|
88
|
+
"uuid": "~14.0.1",
|
|
65
89
|
"webextension-polyfill": "~0.12.0",
|
|
90
|
+
"xml2js": "~0.6.2",
|
|
66
91
|
"zod": "~4.4.3"
|
|
67
92
|
},
|
|
68
93
|
"peerDependencies": {
|
|
69
|
-
"@ariestools/
|
|
70
|
-
"@ariestools/
|
|
94
|
+
"@ariestools/crypto": "^8.0.3",
|
|
95
|
+
"@ariestools/eth-address": "^8.0.3",
|
|
96
|
+
"@ariestools/sdk": "^8.0.3",
|
|
97
|
+
"@ariestools/threads": "^8.0.3",
|
|
71
98
|
"@bitauth/libauth": "^3.0.0",
|
|
72
99
|
"@metamask/providers": "^22.1.1",
|
|
73
100
|
"@noble/post-quantum": "^0.6.1",
|
|
@@ -75,18 +102,44 @@
|
|
|
75
102
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
76
103
|
"@scure/base": "^2.2.0",
|
|
77
104
|
"@scure/bip39": "^2.2.0",
|
|
78
|
-
"@
|
|
79
|
-
"@xyo-network/
|
|
105
|
+
"@uniswap/v3-sdk": "^3.31.0",
|
|
106
|
+
"@xyo-network/diviner-hash-lease": "^7.0.11",
|
|
107
|
+
"@xyo-network/diviner-indexing": "^7.0.11",
|
|
108
|
+
"@xyo-network/open-zeppelin-typechain": "^4.1.3",
|
|
109
|
+
"@xyo-network/sdk": "^7.0.11",
|
|
110
|
+
"@xyo-network/sdk-protocol": "^7.0.15",
|
|
111
|
+
"@xyo-network/uniswap-typechain": "^4.1.3",
|
|
112
|
+
"@xyo-network/witness-blockchain-abstract": "^7.0.11",
|
|
113
|
+
"@xyo-network/witness-evm-abstract": "^7.0.11",
|
|
114
|
+
"@xyo-network/witness-timestamp": "^7.0.11",
|
|
80
115
|
"ajv": "^8.20.0",
|
|
81
116
|
"async-mutex": "^0.5.0",
|
|
117
|
+
"base64-js": "^1.5.1",
|
|
118
|
+
"bowser": "^2.14.1",
|
|
119
|
+
"crypto-js": "^4.2.0",
|
|
82
120
|
"debug": "^4.4.3",
|
|
121
|
+
"es6-dynamic-template": "^2.0.0",
|
|
83
122
|
"ethers": "^6.17.0",
|
|
123
|
+
"file-type": "^22.0.1",
|
|
124
|
+
"fluent-ffmpeg": "^2.1.3",
|
|
125
|
+
"geotiff": "^3.0.5",
|
|
126
|
+
"gm": "^1.25.1",
|
|
127
|
+
"graphql": "^17.0.2",
|
|
128
|
+
"hasbin": "^1.2.3",
|
|
84
129
|
"hash-wasm": "^4.12.0",
|
|
85
130
|
"idb": "^8.0.3",
|
|
86
131
|
"lru-cache": "^11.5.1",
|
|
87
132
|
"node-screenlogic": "^2.1.1",
|
|
88
133
|
"observable-fns": "^0.6.1",
|
|
134
|
+
"parse-data-url": "^6.0.0",
|
|
135
|
+
"prom-client": "^15.1.3",
|
|
136
|
+
"regression": "^2.0.1",
|
|
137
|
+
"sha.js": "^2.4.12",
|
|
138
|
+
"svg-parser": "^2.0.4",
|
|
139
|
+
"systeminformation": "^5.31.14",
|
|
140
|
+
"uuid": "^14.0.1",
|
|
89
141
|
"webextension-polyfill": "^0.12.0",
|
|
142
|
+
"xml2js": "^0.6.2",
|
|
90
143
|
"zod": "^4.4.3"
|
|
91
144
|
},
|
|
92
145
|
"engines": {
|
|
@@ -94,5 +147,6 @@
|
|
|
94
147
|
},
|
|
95
148
|
"publishConfig": {
|
|
96
149
|
"access": "public"
|
|
97
|
-
}
|
|
150
|
+
},
|
|
151
|
+
"deprecated": "Use @xyo-network/payloadset-plugins/pentair instead. Replace @xyo-network/pentair-plugin with @xyo-network/payloadset-plugins/pentair. This package is a compatibility shim only and will not receive further updates."
|
|
98
152
|
}
|
package/dist/neutral/Plugin.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { PentairScreenlogicWitness } from './Witness.ts';
|
|
2
|
-
export declare const PentairScreenlogicPlugin: () => import("@xyo-network/sdk").PayloadSetWitnessPlugin<PentairScreenlogicWitness<import("./Witness.ts").PentairScreenlogicWitnessParams>>;
|
|
3
|
-
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAExD,eAAO,MAAM,wBAAwB,6IASlC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigSchema, Payload, Schema, WitnessConfig, WitnessParams } from '@xyo-network/sdk';
|
|
2
|
-
import { AbstractWitness } from '@xyo-network/sdk';
|
|
3
|
-
export type PentairScreenlogicWitnessConfigSchema = typeof PentairScreenlogicWitnessConfigSchema;
|
|
4
|
-
export declare const PentairScreenlogicWitnessConfigSchema: "network.xyo.pentair.screenlogic.witness.config" & {
|
|
5
|
-
readonly __schema: true;
|
|
6
|
-
};
|
|
7
|
-
export type PentairScreenlogicWitnessConfig = WitnessConfig<{
|
|
8
|
-
schema: PentairScreenlogicWitnessConfigSchema;
|
|
9
|
-
}>;
|
|
10
|
-
export type PentairScreenlogicWitnessParams = WitnessParams<AnyConfigSchema<PentairScreenlogicWitnessConfig>>;
|
|
11
|
-
export declare class PentairScreenlogicWitness<TParams extends PentairScreenlogicWitnessParams = PentairScreenlogicWitnessParams> extends AbstractWitness<TParams> {
|
|
12
|
-
static readonly configSchemas: Schema[];
|
|
13
|
-
static readonly defaultConfigSchema: Schema;
|
|
14
|
-
protected observeHandler(_payloads?: Partial<Payload>[]): Promise<Payload[]>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAC/D,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,eAAe,EAAY,MAAM,kBAAkB,CAAA;AAK5D,MAAM,MAAM,qCAAqC,GAAG,OAAO,qCAAqC,CAAA;AAChG,eAAO,MAAM,qCAAqC;;CAAmE,CAAA;AAErH,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC;IAC1D,MAAM,EAAE,qCAAqC,CAAA;CAC9C,CAAC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,eAAe,CAAC,+BAA+B,CAAC,CAAC,CAAA;AAE7G,qBAAa,yBAAyB,CACpC,OAAO,SAAS,+BAA+B,GAAG,+BAA+B,CACjF,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAkE;IAClH,gBAAyB,mBAAmB,EAAE,MAAM,CAAwC;cAEnE,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CA6B5F"}
|