@synnaxlabs/client 0.57.3 → 0.58.0
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/{client-CX6CMvCc.js → client-0I0a7Hkw.js} +10152 -9184
- package/dist/client-0I0a7Hkw.js.map +1 -0
- package/dist/client.js +2061 -978
- package/dist/client.js.map +1 -1
- package/dist/src/access/policy/client.d.ts +1 -2
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/channel/client.d.ts +1 -1
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +0 -2
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/framer/cache/cache.d.ts.map +1 -1
- package/dist/src/framer/cache/reader.d.ts.map +1 -1
- package/dist/src/framer/cache/static.d.ts +14 -0
- package/dist/src/framer/cache/static.d.ts.map +1 -1
- package/dist/src/framer/cache/unary.d.ts +3 -0
- package/dist/src/framer/cache/unary.d.ts.map +1 -1
- package/dist/src/framer/feed.d.ts.map +1 -1
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lineplot/actions.d.ts +48 -0
- package/dist/src/lineplot/actions.d.ts.map +1 -1
- package/dist/src/lineplot/actions.gen.d.ts +237 -0
- package/dist/src/lineplot/actions.gen.d.ts.map +1 -1
- package/dist/src/lineplot/types.gen.d.ts +87 -7
- package/dist/src/lineplot/types.gen.d.ts.map +1 -1
- package/dist/src/panel/client.d.ts +1 -2
- package/dist/src/panel/client.d.ts.map +1 -1
- package/dist/src/project/client.d.ts +1 -2
- package/dist/src/project/client.d.ts.map +1 -1
- package/dist/src/query/indexes.d.ts +4 -5
- package/dist/src/query/indexes.d.ts.map +1 -1
- package/dist/src/query/table.d.ts +2 -3
- package/dist/src/query/table.d.ts.map +1 -1
- package/dist/src/ranger/client.d.ts +1 -3
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/schematic/actions.d.ts.map +1 -1
- package/dist/src/status/status.d.ts.map +1 -1
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/user/client.d.ts +1 -2
- package/dist/src/user/client.d.ts.map +1 -1
- package/dist/testutil.js +1 -1
- package/package.json +12 -12
- package/src/access/policy/client.ts +0 -2
- package/src/channel/client.ts +1 -2
- package/src/device/client.ts +0 -4
- package/src/framer/cache/cache.ts +9 -1
- package/src/framer/cache/reader.ts +5 -3
- package/src/framer/cache/static.ts +86 -3
- package/src/framer/cache/unary.ts +7 -0
- package/src/framer/feed.ts +2 -0
- package/src/framer/writer.ts +4 -5
- package/src/index.ts +2 -0
- package/src/lineplot/actions.gen.ts +30 -0
- package/src/lineplot/actions.ts +14 -0
- package/src/lineplot/types.gen.ts +59 -21
- package/src/panel/client.ts +0 -2
- package/src/project/client.ts +0 -2
- package/src/query/indexes.ts +3 -5
- package/src/query/table.ts +2 -3
- package/src/ranger/client.ts +5 -5
- package/src/schematic/actions.ts +21 -10
- package/src/status/status.ts +91 -1
- package/src/task/client.ts +4 -7
- package/src/user/client.ts +0 -2
- package/dist/client-CX6CMvCc.js.map +0 -1
package/dist/client.js
CHANGED
|
@@ -1,69 +1,1152 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { z as
|
|
3
|
-
import { DataType as
|
|
1
|
+
import { $ as e, A as t, C as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as ee, R as te, S as ne, St as re, T as ie, Tt as ae, U as oe, X as se, Y as ce, Z as le, _ as ue, _t as de, a as fe, at as pe, b as me, c as he, ct as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as Ee, j as v, k as De, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, v as qe, vt as Je, w as Ye, wt as Xe, x as y, xt as Ze, y as Qe, yt as $e } from "./client-0I0a7Hkw.js";
|
|
2
|
+
import { z as b } from "zod";
|
|
3
|
+
import { DataType as et, Density as tt, MultiSeries as nt, Rate as rt, Series as it, TimeRange as at, TimeSpan as ot, TimeStamp as st, id as x, zod as S } from "@synnaxlabs/x";
|
|
4
|
+
//#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/compile.js
|
|
5
|
+
var C = Symbol.for("zod.compile.invalid"), ct = Symbol.for("zod.compile.fallback"), w = class extends Error {
|
|
6
|
+
constructor(e = "z.compile does not support async refinements, transforms, or checks") {
|
|
7
|
+
super(e), this.name = "ZodCompileAsyncError";
|
|
8
|
+
}
|
|
9
|
+
}, T = class extends Error {
|
|
10
|
+
constructor(e, t = !0) {
|
|
11
|
+
super(`z.compile does not support ${e}; this schema must use the runtime parser`), this.name = "ZodCompileUnsupportedError", this.islandable = t;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function lt(e, t) {
|
|
15
|
+
try {
|
|
16
|
+
return ft(e, { assertOnly: !0 });
|
|
17
|
+
} catch {
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function ut(e, t) {
|
|
22
|
+
try {
|
|
23
|
+
let t = ft(e), n = Ze(e), r = e._zod.run, i = r.__originalRun ?? r, a = (e, n) => {
|
|
24
|
+
if (n?.async || n?.direction === "backward" || n?.skipChecks || n?.[ct] || n && we(n, e.value)) return i(e, n);
|
|
25
|
+
let r = t(e.value);
|
|
26
|
+
return r === C ? (n && (n[ct] = !0), i(e, n)) : (e.value = r, e);
|
|
27
|
+
};
|
|
28
|
+
return a.__originalRun = i, n._zod.bag.fallbackRun = i, n._zod.bag.validator = lt(e, t), n._zod.run = a, r.__originalRun || dt(n, e, t), n;
|
|
29
|
+
} catch (n) {
|
|
30
|
+
if (t?.strict) throw n;
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function dt(e, t, n) {
|
|
35
|
+
let r = e, i = t;
|
|
36
|
+
if (typeof i.safeParse == "function") {
|
|
37
|
+
let e = i.safeParse;
|
|
38
|
+
r.safeParse = (t, r) => {
|
|
39
|
+
let i = n(t);
|
|
40
|
+
return i === C ? e(t, r) : {
|
|
41
|
+
success: !0,
|
|
42
|
+
data: i
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
if (typeof i.parse == "function") {
|
|
47
|
+
let e = i.parse;
|
|
48
|
+
r.parse = (t, r) => {
|
|
49
|
+
let i = n(t);
|
|
50
|
+
return i === C ? e(t, r) : i;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function ft(e, t) {
|
|
55
|
+
let n = !0;
|
|
56
|
+
try {
|
|
57
|
+
n = Se(e);
|
|
58
|
+
} catch {}
|
|
59
|
+
if (n) throw new T("a schema whose subtree contains a reference cycle");
|
|
60
|
+
let r = {
|
|
61
|
+
constants: /* @__PURE__ */ new Map(),
|
|
62
|
+
constantCounter: 0,
|
|
63
|
+
varCounter: 0
|
|
64
|
+
}, i = new de(["input"]), a = A(i, r, e, "input", !t?.assertOnly);
|
|
65
|
+
i.write(a === null ? "return true;" : `return ${a};`);
|
|
66
|
+
let o = ["INVALID", ...r.constants.keys()], s = [C, ...r.constants.values()], c = i.content.join("\n"), l = t?.debug ? o.length > 0 ? `// Constants: ${o.join(", ")}\n${c}` : c : "", u = Function, d = `return (input) => {\n${c}\n}`, f;
|
|
67
|
+
try {
|
|
68
|
+
f = new u(...o, d)(...s);
|
|
69
|
+
} catch (e) {
|
|
70
|
+
throw new T(`this schema (generated code failed to evaluate: ${e.message})`);
|
|
71
|
+
}
|
|
72
|
+
return t?.debug && (f.code = l), f;
|
|
73
|
+
}
|
|
74
|
+
function E(e, t) {
|
|
75
|
+
for (let [n, r] of e.constants) if (r === t) return n;
|
|
76
|
+
let n = `c${e.constantCounter++}`;
|
|
77
|
+
return e.constants.set(n, t), n;
|
|
78
|
+
}
|
|
79
|
+
function D(e) {
|
|
80
|
+
return `v${e.varCounter++}`;
|
|
81
|
+
}
|
|
82
|
+
function pt(e, t) {
|
|
83
|
+
let n = e._zod.run({
|
|
84
|
+
value: t,
|
|
85
|
+
issues: []
|
|
86
|
+
}, {});
|
|
87
|
+
if (n && typeof n.then == "function") return C;
|
|
88
|
+
let r = n;
|
|
89
|
+
return r.issues.length === 0 ? r.value : C;
|
|
90
|
+
}
|
|
91
|
+
function O(e, t, n, r, i = !0) {
|
|
92
|
+
let a = e.content.length, o = t.constants.size, s = t.constantCounter, c = t.varCounter;
|
|
93
|
+
try {
|
|
94
|
+
return A(e, t, n, r, i);
|
|
95
|
+
} catch (i) {
|
|
96
|
+
if (!(i instanceof T) || !i.islandable) throw i;
|
|
97
|
+
if (e.content.length = a, t.constants.size > o) {
|
|
98
|
+
let e = Array.from(t.constants.keys()).slice(o);
|
|
99
|
+
for (let n of e) t.constants.delete(n);
|
|
100
|
+
}
|
|
101
|
+
return t.constantCounter = s, t.varCounter = c, mt(e, t, n, r);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function mt(e, t, n, r) {
|
|
105
|
+
let i = E(t, n), a = E(t, pt), o = D(t);
|
|
106
|
+
return e.write(`const ${o} = ${a}(${i}, ${r});`), e.write(`if (${o} === INVALID) return INVALID;`), o;
|
|
107
|
+
}
|
|
108
|
+
var ht = /* @__PURE__ */ new Set([
|
|
109
|
+
"max_size",
|
|
110
|
+
"min_size",
|
|
111
|
+
"size_equals",
|
|
112
|
+
"max_length",
|
|
113
|
+
"min_length",
|
|
114
|
+
"length_equals"
|
|
115
|
+
]);
|
|
116
|
+
function gt(e, t, n, r) {
|
|
117
|
+
let i = n._zod.def.checks;
|
|
118
|
+
if (!i || i.length === 0) return r;
|
|
119
|
+
let a = r;
|
|
120
|
+
for (let n of i) {
|
|
121
|
+
let r = n._zod.def;
|
|
122
|
+
if (r.when && !ht.has(r.check)) throw new T("check with a custom \"when\" condition");
|
|
123
|
+
switch (r.check) {
|
|
124
|
+
case "greater_than":
|
|
125
|
+
yt(e, t, r, a);
|
|
126
|
+
break;
|
|
127
|
+
case "less_than":
|
|
128
|
+
bt(e, t, r, a);
|
|
129
|
+
break;
|
|
130
|
+
case "multiple_of":
|
|
131
|
+
xt(e, t, r, a);
|
|
132
|
+
break;
|
|
133
|
+
case "number_format":
|
|
134
|
+
St(e, r, a);
|
|
135
|
+
break;
|
|
136
|
+
case "min_length": {
|
|
137
|
+
let n = k(r.minimum, "min_length"), i = _t(e, t, a, `${a}.length >= ${n} && ${a}.length < ${r.minimum * 2}`);
|
|
138
|
+
e.write(`if (${i} < ${n}) return INVALID;`);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
case "max_length": {
|
|
142
|
+
let n = k(r.maximum, "max_length"), i = _t(e, t, a, `${a}.length > ${n}`);
|
|
143
|
+
e.write(`if (${i} > ${n}) return INVALID;`);
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
case "length_equals": {
|
|
147
|
+
let n = k(r.length, "length_equals"), i = _t(e, t, a, `${a}.length >= ${n} && ${a}.length <= ${r.length * 2}`);
|
|
148
|
+
e.write(`if (${i} !== ${n}) return INVALID;`);
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
case "min_size":
|
|
152
|
+
e.write(`if (${a}.size < ${k(r.minimum, "min_size")}) return INVALID;`);
|
|
153
|
+
break;
|
|
154
|
+
case "max_size":
|
|
155
|
+
e.write(`if (${a}.size > ${k(r.maximum, "max_size")}) return INVALID;`);
|
|
156
|
+
break;
|
|
157
|
+
case "size_equals":
|
|
158
|
+
e.write(`if (${a}.size !== ${k(r.size, "size_equals")}) return INVALID;`);
|
|
159
|
+
break;
|
|
160
|
+
case "string_format":
|
|
161
|
+
a = jt(e, t, r, a);
|
|
162
|
+
break;
|
|
163
|
+
case "custom":
|
|
164
|
+
a = kt(e, t, n, a);
|
|
165
|
+
break;
|
|
166
|
+
case "bigint_format":
|
|
167
|
+
Ct(e, r, a);
|
|
168
|
+
break;
|
|
169
|
+
case "mime_type":
|
|
170
|
+
wt(e, t, r, a);
|
|
171
|
+
break;
|
|
172
|
+
case "property":
|
|
173
|
+
Tt(e, t, r, a);
|
|
174
|
+
break;
|
|
175
|
+
case "overwrite": {
|
|
176
|
+
let r = D(t);
|
|
177
|
+
Et(e, t, n, a, r), a = r;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
default: throw new T(`check type ${r.check}`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return a;
|
|
184
|
+
}
|
|
185
|
+
function _t(e, t, n, r) {
|
|
186
|
+
let i = E(t, re), a = D(t);
|
|
187
|
+
return e.write(`const ${a} = typeof ${n} === "string" && ${r} ? ${i}(${n}) : ${n}.length;`), a;
|
|
188
|
+
}
|
|
189
|
+
function k(e, t) {
|
|
190
|
+
if (typeof e != "number" || !Number.isFinite(e)) throw new T(`${t} bound of type ${typeof e}`);
|
|
191
|
+
return `${e}`;
|
|
192
|
+
}
|
|
193
|
+
function vt(e, t) {
|
|
194
|
+
if (typeof t == "bigint") return `${t}n`;
|
|
195
|
+
if (typeof t == "number") {
|
|
196
|
+
if (Number.isNaN(t)) throw new T("comparison check with NaN bound");
|
|
197
|
+
return `${t}`;
|
|
198
|
+
}
|
|
199
|
+
if (t instanceof Date) {
|
|
200
|
+
if (Number.isNaN(t.getTime())) throw new T("comparison check with Invalid Date bound");
|
|
201
|
+
return E(e, t);
|
|
202
|
+
}
|
|
203
|
+
throw new T(`comparison check bound of type ${typeof t}`);
|
|
204
|
+
}
|
|
205
|
+
function yt(e, t, n, r) {
|
|
206
|
+
let i = n.inclusive ? "<" : "<=";
|
|
207
|
+
e.write(`if (${r} ${i} ${vt(t, n.value)}) return INVALID;`);
|
|
208
|
+
}
|
|
209
|
+
function bt(e, t, n, r) {
|
|
210
|
+
let i = n.inclusive ? ">" : ">=";
|
|
211
|
+
e.write(`if (${r} ${i} ${vt(t, n.value)}) return INVALID;`);
|
|
212
|
+
}
|
|
213
|
+
function xt(e, t, n, r) {
|
|
214
|
+
if (typeof n.value == "bigint") {
|
|
215
|
+
if (n.value === BigInt(0)) throw new T("multiple_of check with a zero divisor");
|
|
216
|
+
e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`);
|
|
217
|
+
} else {
|
|
218
|
+
let i = E(t, Xe);
|
|
219
|
+
e.write(`if (${i}(${r}, ${k(n.value, "multiple_of")}) !== 0) return INVALID;`);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function St(e, t, n) {
|
|
223
|
+
let r = t.format;
|
|
224
|
+
switch (r) {
|
|
225
|
+
case "safeint":
|
|
226
|
+
e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);
|
|
227
|
+
break;
|
|
228
|
+
case "int32":
|
|
229
|
+
e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);
|
|
230
|
+
break;
|
|
231
|
+
case "uint32":
|
|
232
|
+
e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);
|
|
233
|
+
break;
|
|
234
|
+
case "float32":
|
|
235
|
+
e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);
|
|
236
|
+
break;
|
|
237
|
+
case "float64":
|
|
238
|
+
e.write(`if (!Number.isFinite(${n})) return INVALID;`);
|
|
239
|
+
break;
|
|
240
|
+
default: throw new T(`number format ${r}`);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function Ct(e, t, n) {
|
|
244
|
+
let r = t.format;
|
|
245
|
+
if (r) switch (r) {
|
|
246
|
+
case "int64":
|
|
247
|
+
e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);
|
|
248
|
+
break;
|
|
249
|
+
case "uint64":
|
|
250
|
+
e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);
|
|
251
|
+
break;
|
|
252
|
+
default: throw new T(`bigint format ${r}`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function wt(e, t, n, r) {
|
|
256
|
+
let i = n.mime;
|
|
257
|
+
if (i && i.length > 0) {
|
|
258
|
+
let n = E(t, new Set(i));
|
|
259
|
+
e.write(`if (!${n}.has(${r}.type)) return INVALID;`);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function Tt(e, t, n, r) {
|
|
263
|
+
let i = `${r}[${JSON.stringify(n.property)}]`;
|
|
264
|
+
A(e, t, n.schema, i);
|
|
265
|
+
}
|
|
266
|
+
function Et(e, t, n, r, i) {
|
|
267
|
+
let a = n._zod.def.tx;
|
|
268
|
+
if (!a) throw new T("overwrite check without a transform function");
|
|
269
|
+
if (N(a)) throw new w("z.compile: async overwrite transforms are not supported");
|
|
270
|
+
let o = E(t, a);
|
|
271
|
+
e.write(`const ${i} = ${o}(${r});`);
|
|
272
|
+
}
|
|
273
|
+
function Dt() {
|
|
274
|
+
throw new Je();
|
|
275
|
+
}
|
|
276
|
+
function Ot(e) {
|
|
277
|
+
this.issues.push(e);
|
|
278
|
+
}
|
|
279
|
+
function kt(e, t, n, r) {
|
|
280
|
+
let i = n._zod.def;
|
|
281
|
+
if (i.fn) {
|
|
282
|
+
if (N(i.fn)) throw new w("z.compile: async .refine() predicates are not supported");
|
|
283
|
+
let n = E(t, i.fn), a = E(t, Dt), o = D(t);
|
|
284
|
+
return e.write(`const ${o} = ${n}(${r});`), e.write(`if (${o} instanceof Promise) ${a}();`), e.write(`if (!${o}) return INVALID;`), r;
|
|
285
|
+
}
|
|
286
|
+
if (n._zod.check) {
|
|
287
|
+
if (N(n._zod.check)) throw new w("z.compile: async .superRefine() / check functions are not supported");
|
|
288
|
+
let i = n._zod.check, a = E(t, (e) => {
|
|
289
|
+
let t = {
|
|
290
|
+
value: e,
|
|
291
|
+
issues: [],
|
|
292
|
+
addIssue: Ot
|
|
293
|
+
};
|
|
294
|
+
return i(t) instanceof Promise && Dt(), t.issues.length === 0 ? t.value : C;
|
|
295
|
+
}), o = D(t);
|
|
296
|
+
return e.write(`const ${o} = ${a}(${r});`), e.write(`if (${o} === INVALID) return INVALID;`), o;
|
|
297
|
+
}
|
|
298
|
+
throw new T("custom check without a predicate or check function");
|
|
299
|
+
}
|
|
300
|
+
var At = /* @__PURE__ */ new Set([
|
|
301
|
+
"cidrv4",
|
|
302
|
+
"cuid",
|
|
303
|
+
"cuid2",
|
|
304
|
+
"date",
|
|
305
|
+
"datetime",
|
|
306
|
+
"duration",
|
|
307
|
+
"e164",
|
|
308
|
+
"email",
|
|
309
|
+
"emoji",
|
|
310
|
+
"ends_with",
|
|
311
|
+
"guid",
|
|
312
|
+
"includes",
|
|
313
|
+
"ipv4",
|
|
314
|
+
"ksuid",
|
|
315
|
+
"lowercase",
|
|
316
|
+
"mac",
|
|
317
|
+
"nanoid",
|
|
318
|
+
"regex",
|
|
319
|
+
"starts_with",
|
|
320
|
+
"time",
|
|
321
|
+
"ulid",
|
|
322
|
+
"uppercase",
|
|
323
|
+
"uuid",
|
|
324
|
+
"xid"
|
|
325
|
+
]);
|
|
326
|
+
function jt(e, t, n, i) {
|
|
327
|
+
let a = n.format;
|
|
328
|
+
if (a === "base64") {
|
|
329
|
+
let n = E(t, Be);
|
|
330
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
331
|
+
}
|
|
332
|
+
if (a === "base64url") {
|
|
333
|
+
let n = E(t, Ee);
|
|
334
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
335
|
+
}
|
|
336
|
+
if (a === "jwt") {
|
|
337
|
+
let r = E(t, ge), a = E(t, n.alg ?? null);
|
|
338
|
+
return e.write(`if (!${r}(${i}, ${a})) return INVALID;`), i;
|
|
339
|
+
}
|
|
340
|
+
if (a === "ipv6") {
|
|
341
|
+
let n = E(t, He);
|
|
342
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
343
|
+
}
|
|
344
|
+
if (a === "cidrv6") {
|
|
345
|
+
let n = E(t, pe);
|
|
346
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
347
|
+
}
|
|
348
|
+
if (a === "credit_card") {
|
|
349
|
+
let n = E(t, Fe);
|
|
350
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
351
|
+
}
|
|
352
|
+
let o = n;
|
|
353
|
+
if (a === "url" || a === "httpurl" || o.normalize || o.hostname !== void 0 || o.protocol !== void 0) {
|
|
354
|
+
let r = E(t, Ke), a = E(t, n), s = D(t), c = D(t);
|
|
355
|
+
if (e.write(`const ${s} = ${i}.trim();`), e.write(`const ${c} = ${r}(${s}, ${a});`), e.write(`if (typeof ${c} === "number") return INVALID;`), o.hostname !== void 0) {
|
|
356
|
+
let n = E(t, be);
|
|
357
|
+
e.write(`if (!${n}(${c}, ${a}.hostname)) return INVALID;`);
|
|
358
|
+
}
|
|
359
|
+
if (o.protocol !== void 0) {
|
|
360
|
+
let n = E(t, Le);
|
|
361
|
+
e.write(`if (!${n}(${c}, ${a}.protocol)) return INVALID;`);
|
|
362
|
+
}
|
|
363
|
+
let l = D(t), u = o.normalize ? `${c}.href` : `${E(t, _e)}(${s})`;
|
|
364
|
+
return e.write(`const ${l} = ${u};`), l;
|
|
365
|
+
}
|
|
366
|
+
let s = n.fn;
|
|
367
|
+
if (s) {
|
|
368
|
+
if (N(s)) throw new T(`async string format ${a}`);
|
|
369
|
+
let n = E(t, s);
|
|
370
|
+
return e.write(`if (!${n}(${i})) return INVALID;`), i;
|
|
371
|
+
}
|
|
372
|
+
if (At.has(a) && n.pattern) {
|
|
373
|
+
let r = E(t, n.pattern);
|
|
374
|
+
return e.write(`${r}.lastIndex = 0;`), e.write(`if (!${r}.test(${i})) return INVALID;`), i;
|
|
375
|
+
}
|
|
376
|
+
let c = n.format;
|
|
377
|
+
switch (c) {
|
|
378
|
+
case "regex": throw new T("regex format without a pattern");
|
|
379
|
+
case "lowercase":
|
|
380
|
+
e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);
|
|
381
|
+
break;
|
|
382
|
+
case "uppercase":
|
|
383
|
+
e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);
|
|
384
|
+
break;
|
|
385
|
+
case "includes":
|
|
386
|
+
e.write(`if (!${i}.includes(${r(n.includes)})) return INVALID;`);
|
|
387
|
+
break;
|
|
388
|
+
case "starts_with": {
|
|
389
|
+
let t = n.prefix;
|
|
390
|
+
e.write(`if (${i}.slice(0, ${t.length}) !== ${r(t)}) return INVALID;`);
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
case "ends_with": {
|
|
394
|
+
let t = n.suffix;
|
|
395
|
+
e.write(`if (${i}.slice(-${t.length}) !== ${r(t)}) return INVALID;`);
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
default: throw new T(`string format ${c}`);
|
|
399
|
+
}
|
|
400
|
+
return i;
|
|
401
|
+
}
|
|
402
|
+
function A(e, t, n, r, i = !0) {
|
|
403
|
+
let a = n._zod.def, o = a.type;
|
|
404
|
+
if (a.coerce) throw new T(`coercion (z.coerce.${o}())`);
|
|
405
|
+
let s = i || !!a.checks?.length, c;
|
|
406
|
+
switch (o) {
|
|
407
|
+
case "string":
|
|
408
|
+
c = Mt(e, t, n, r);
|
|
409
|
+
break;
|
|
410
|
+
case "number":
|
|
411
|
+
c = Nt(e, n, r);
|
|
412
|
+
break;
|
|
413
|
+
case "boolean":
|
|
414
|
+
c = Pt(e, r);
|
|
415
|
+
break;
|
|
416
|
+
case "bigint":
|
|
417
|
+
c = Ft(e, n, r);
|
|
418
|
+
break;
|
|
419
|
+
case "symbol":
|
|
420
|
+
c = It(e, r);
|
|
421
|
+
break;
|
|
422
|
+
case "undefined":
|
|
423
|
+
c = Lt(e, r);
|
|
424
|
+
break;
|
|
425
|
+
case "null":
|
|
426
|
+
c = Rt(e, r);
|
|
427
|
+
break;
|
|
428
|
+
case "any":
|
|
429
|
+
case "unknown":
|
|
430
|
+
c = r;
|
|
431
|
+
break;
|
|
432
|
+
case "never":
|
|
433
|
+
e.write("return INVALID;"), c = r;
|
|
434
|
+
break;
|
|
435
|
+
case "void":
|
|
436
|
+
c = zt(e, r);
|
|
437
|
+
break;
|
|
438
|
+
case "nan":
|
|
439
|
+
c = Bt(e, r);
|
|
440
|
+
break;
|
|
441
|
+
case "date":
|
|
442
|
+
c = Vt(e, r);
|
|
443
|
+
break;
|
|
444
|
+
case "object":
|
|
445
|
+
c = Ht(e, t, n, r, s);
|
|
446
|
+
break;
|
|
447
|
+
case "optional":
|
|
448
|
+
c = Ut(e, t, n, r, s);
|
|
449
|
+
break;
|
|
450
|
+
case "nullable":
|
|
451
|
+
c = qt(e, t, n, r, s);
|
|
452
|
+
break;
|
|
453
|
+
case "array":
|
|
454
|
+
c = Jt(e, t, n, r, s);
|
|
455
|
+
break;
|
|
456
|
+
case "literal":
|
|
457
|
+
c = Yt(e, t, n, r);
|
|
458
|
+
break;
|
|
459
|
+
case "enum":
|
|
460
|
+
c = Xt(e, t, n, r);
|
|
461
|
+
break;
|
|
462
|
+
case "readonly": {
|
|
463
|
+
let i = Zt(e, t, n, r), a = D(t);
|
|
464
|
+
e.write(`const ${a} = Object.freeze(${i});`), c = a;
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
case "success":
|
|
468
|
+
Zt(e, t, n, r), c = "true";
|
|
469
|
+
break;
|
|
470
|
+
case "default":
|
|
471
|
+
case "prefault":
|
|
472
|
+
c = Qt(e, t, n, r);
|
|
473
|
+
break;
|
|
474
|
+
case "nonoptional":
|
|
475
|
+
c = $t(e, t, n, r);
|
|
476
|
+
break;
|
|
477
|
+
case "tuple":
|
|
478
|
+
c = en(e, t, n, r);
|
|
479
|
+
break;
|
|
480
|
+
case "union":
|
|
481
|
+
c = nn(e, t, n, r);
|
|
482
|
+
break;
|
|
483
|
+
case "intersection":
|
|
484
|
+
c = on(e, t, n, r);
|
|
485
|
+
break;
|
|
486
|
+
case "record":
|
|
487
|
+
c = sn(e, t, n, r);
|
|
488
|
+
break;
|
|
489
|
+
case "map":
|
|
490
|
+
c = ln(e, t, n, r);
|
|
491
|
+
break;
|
|
492
|
+
case "set":
|
|
493
|
+
c = un(e, t, n, r);
|
|
494
|
+
break;
|
|
495
|
+
case "file":
|
|
496
|
+
c = dn(e, r);
|
|
497
|
+
break;
|
|
498
|
+
case "template_literal":
|
|
499
|
+
c = fn(e, t, n, r);
|
|
500
|
+
break;
|
|
501
|
+
case "lazy":
|
|
502
|
+
c = pn(e, t, n, r);
|
|
503
|
+
break;
|
|
504
|
+
case "pipe":
|
|
505
|
+
c = mn(e, t, n, r);
|
|
506
|
+
break;
|
|
507
|
+
case "custom":
|
|
508
|
+
c = hn(e, t, n, r);
|
|
509
|
+
break;
|
|
510
|
+
case "transform":
|
|
511
|
+
c = vn(e, t, n, r);
|
|
512
|
+
break;
|
|
513
|
+
case "catch":
|
|
514
|
+
c = _n(e, t, n, r);
|
|
515
|
+
break;
|
|
516
|
+
default: throw new T(`schema type ${o}`);
|
|
517
|
+
}
|
|
518
|
+
return c === null ? null : gt(e, t, n, c);
|
|
519
|
+
}
|
|
520
|
+
function Mt(e, t, n, r) {
|
|
521
|
+
e.write(`if (typeof ${r} !== "string") return INVALID;`);
|
|
522
|
+
let i = n._zod.def;
|
|
523
|
+
return i.format === void 0 ? r : jt(e, t, i, r);
|
|
524
|
+
}
|
|
525
|
+
function Nt(e, t, n) {
|
|
526
|
+
e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);
|
|
527
|
+
let r = t._zod.def;
|
|
528
|
+
return r.check === "number_format" && r.format && St(e, { format: r.format }, n), n;
|
|
529
|
+
}
|
|
530
|
+
function Pt(e, t) {
|
|
531
|
+
return e.write(`if (typeof ${t} !== "boolean") return INVALID;`), t;
|
|
532
|
+
}
|
|
533
|
+
function Ft(e, t, n) {
|
|
534
|
+
e.write(`if (typeof ${n} !== "bigint") return INVALID;`);
|
|
535
|
+
let r = t._zod.def;
|
|
536
|
+
if (r.format) switch (r.format) {
|
|
537
|
+
case "int64":
|
|
538
|
+
e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);
|
|
539
|
+
break;
|
|
540
|
+
case "uint64": e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);
|
|
541
|
+
}
|
|
542
|
+
return n;
|
|
543
|
+
}
|
|
544
|
+
function It(e, t) {
|
|
545
|
+
return e.write(`if (typeof ${t} !== "symbol") return INVALID;`), t;
|
|
546
|
+
}
|
|
547
|
+
function Lt(e, t) {
|
|
548
|
+
return e.write(`if (${t} !== undefined) return INVALID;`), t;
|
|
549
|
+
}
|
|
550
|
+
function Rt(e, t) {
|
|
551
|
+
return e.write(`if (${t} !== null) return INVALID;`), t;
|
|
552
|
+
}
|
|
553
|
+
function zt(e, t) {
|
|
554
|
+
return e.write(`if (${t} !== undefined) return INVALID;`), t;
|
|
555
|
+
}
|
|
556
|
+
function Bt(e, t) {
|
|
557
|
+
return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`), t;
|
|
558
|
+
}
|
|
559
|
+
function Vt(e, t) {
|
|
560
|
+
return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`), t;
|
|
561
|
+
}
|
|
562
|
+
function Ht(e, t, n, i, a = !0) {
|
|
563
|
+
let o = n._zod.def;
|
|
564
|
+
e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);
|
|
565
|
+
let s = o.shape, c = Object.keys(s), l = Object.getOwnPropertySymbols(s), u = l.length ? [...c, ...l] : c, d = (e) => typeof e == "symbol" ? E(t, e) : r(e), f = (e) => typeof e == "symbol" ? `[${d(e)}]` : r(e), p = s;
|
|
566
|
+
if (c.includes("__proto__")) throw new T("object shape key \"__proto__\"");
|
|
567
|
+
let m = /* @__PURE__ */ new Map();
|
|
568
|
+
for (let n of u) {
|
|
569
|
+
let r = p[n], o = d(n), s = D(t);
|
|
570
|
+
if (e.write(`const ${s} = ${i}[${o}];`), r._zod.optin !== void 0) {
|
|
571
|
+
let a = D(t);
|
|
572
|
+
e.write(`let ${a} = (() => {`), e.indented((e) => {
|
|
573
|
+
let n = O(e, t, r, s);
|
|
574
|
+
e.write(`return ${n};`);
|
|
575
|
+
}), e.write("})();"), r._zod.optout === "optional" ? (e.write(`if (${a} === INVALID) {`), e.indented((e) => {
|
|
576
|
+
e.write(`if (${o} in ${i}) return INVALID;`), e.write(`${a} = undefined;`);
|
|
577
|
+
}), e.write("}")) : e.write(`if (${a} === INVALID) return INVALID;`), m.set(n, a);
|
|
578
|
+
} else {
|
|
579
|
+
Gt(r) && e.write(`if (!(${o} in ${i})) return INVALID;`);
|
|
580
|
+
let c = O(e, t, r, s, a);
|
|
581
|
+
c !== null && m.set(n, c);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
let h = o.catchall, g = "none";
|
|
585
|
+
if (h) {
|
|
586
|
+
let t = h._zod.def.type;
|
|
587
|
+
if (t === "never") {
|
|
588
|
+
let t = c.map((e) => `k !== ${r(e)}`).join(" && ") || "true";
|
|
589
|
+
e.write(`for (const k in ${i}) {`), e.indented((e) => {
|
|
590
|
+
e.write(`if (${t}) return INVALID;`);
|
|
591
|
+
}), e.write("}");
|
|
592
|
+
} else g = (t === "unknown" || t === "any") && !h._zod.def.checks?.length ? "passthrough" : "schema";
|
|
593
|
+
}
|
|
594
|
+
let _ = D(t), ee = u.some((e) => M(p[e]) || Kt(p[e]));
|
|
595
|
+
if (!a) {
|
|
596
|
+
if (g === "schema") {
|
|
597
|
+
let n = c.length > 0 ? E(t, new Set(c)) : null;
|
|
598
|
+
e.write(`for (const k in ${i}) {`), e.indented((e) => {
|
|
599
|
+
e.write("if (k === \"__proto__\") continue;"), n && e.write(`if (${n}.has(k)) continue;`);
|
|
600
|
+
let r = D(t);
|
|
601
|
+
e.write(`const ${r} = ${i}[k];`), O(e, t, h, r, !1);
|
|
602
|
+
}), e.write("}");
|
|
603
|
+
}
|
|
604
|
+
return null;
|
|
605
|
+
}
|
|
606
|
+
if (ee) {
|
|
607
|
+
e.write(`const ${_} = {};`);
|
|
608
|
+
for (let t of u) {
|
|
609
|
+
let n = d(t), r = m.get(t);
|
|
610
|
+
Kt(p[t]) ? e.write(`if (${n} in ${i}) ${_}[${n}] = ${r};`) : M(p[t]) ? e.write(`if (${r} !== undefined || ${n} in ${i}) ${_}[${n}] = ${r};`) : e.write(`${_}[${n}] = ${r};`);
|
|
611
|
+
}
|
|
612
|
+
} else {
|
|
613
|
+
let t = u.map((e) => `${f(e)}: ${m.get(e)}`).join(", ");
|
|
614
|
+
e.write(`const ${_} = { ${t} };`);
|
|
615
|
+
}
|
|
616
|
+
if (g !== "none") {
|
|
617
|
+
let n = c.length > 0 ? E(t, new Set(c)) : null;
|
|
618
|
+
e.write(`for (const k in ${i}) {`), e.indented((e) => {
|
|
619
|
+
if (e.write("if (k === \"__proto__\") continue;"), n && e.write(`if (${n}.has(k)) continue;`), g === "passthrough") e.write(`${_}[k] = ${i}[k];`);
|
|
620
|
+
else {
|
|
621
|
+
let n = D(t);
|
|
622
|
+
e.write(`const ${n} = ${i}[k];`);
|
|
623
|
+
let r = O(e, t, h, n);
|
|
624
|
+
e.write(`${_}[k] = ${r};`);
|
|
625
|
+
}
|
|
626
|
+
}), e.write("}");
|
|
627
|
+
}
|
|
628
|
+
return _;
|
|
629
|
+
}
|
|
630
|
+
function Ut(e, t, n, r, i = !0) {
|
|
631
|
+
let a = n._zod.def;
|
|
632
|
+
if (Wt(n)) return A(e, t, a.innerType, r, i);
|
|
633
|
+
if (a.innerType._zod.optin === "defaulted") {
|
|
634
|
+
let n = D(t), i = D(t);
|
|
635
|
+
return e.write(`let ${n};`), e.write(`if (${r} === undefined) {`), e.indented((e) => {
|
|
636
|
+
e.write(`const ${i} = (() => {`), e.indented((e) => {
|
|
637
|
+
let n = A(e, t, a.innerType, r);
|
|
638
|
+
e.write(`return ${n};`);
|
|
639
|
+
}), e.write("})();"), e.write(`if (${i} !== INVALID) ${n} = ${i};`);
|
|
640
|
+
}), e.write("} else {"), e.indented((e) => {
|
|
641
|
+
let i = A(e, t, a.innerType, r);
|
|
642
|
+
e.write(`${n} = ${i};`);
|
|
643
|
+
}), e.write("}"), n;
|
|
644
|
+
}
|
|
645
|
+
let o = i ? D(t) : null;
|
|
646
|
+
return o && e.write(`let ${o};`), e.write(`if (${r} !== undefined) {`), e.indented((e) => {
|
|
647
|
+
let n = A(e, t, a.innerType, r, i);
|
|
648
|
+
o && n !== null && e.write(`${o} = ${n};`);
|
|
649
|
+
}), e.write("}"), o;
|
|
650
|
+
}
|
|
651
|
+
function Wt(e) {
|
|
652
|
+
return e._zod.traits?.has("$ZodExactOptional") === !0;
|
|
653
|
+
}
|
|
654
|
+
function Gt(e) {
|
|
655
|
+
return e._zod.optin === void 0 && j(e);
|
|
656
|
+
}
|
|
657
|
+
function j(e) {
|
|
658
|
+
if (e._zod.def.coerce) return !0;
|
|
659
|
+
let t = e._zod.def;
|
|
660
|
+
switch (t.type) {
|
|
661
|
+
case "any":
|
|
662
|
+
case "unknown":
|
|
663
|
+
case "undefined":
|
|
664
|
+
case "void":
|
|
665
|
+
case "default":
|
|
666
|
+
case "prefault":
|
|
667
|
+
case "transform":
|
|
668
|
+
case "custom":
|
|
669
|
+
case "lazy": return !0;
|
|
670
|
+
case "string":
|
|
671
|
+
case "number":
|
|
672
|
+
case "boolean":
|
|
673
|
+
case "bigint":
|
|
674
|
+
case "symbol":
|
|
675
|
+
case "null":
|
|
676
|
+
case "never":
|
|
677
|
+
case "nan":
|
|
678
|
+
case "date":
|
|
679
|
+
case "object":
|
|
680
|
+
case "array":
|
|
681
|
+
case "tuple":
|
|
682
|
+
case "record":
|
|
683
|
+
case "map":
|
|
684
|
+
case "set":
|
|
685
|
+
case "file":
|
|
686
|
+
case "template_literal": return !1;
|
|
687
|
+
case "nonoptional": return t.innerType ? j(t.innerType) : !1;
|
|
688
|
+
case "literal": return !!t.values?.includes(void 0);
|
|
689
|
+
case "enum": return !!e._zod.values?.has(void 0);
|
|
690
|
+
case "optional":
|
|
691
|
+
case "nullable":
|
|
692
|
+
case "readonly":
|
|
693
|
+
case "success": return !t.innerType || j(t.innerType);
|
|
694
|
+
case "catch": return !0;
|
|
695
|
+
case "union": return !t.options || t.options.some(j);
|
|
696
|
+
case "intersection": return !t.left || !t.right || j(t.left) && j(t.right);
|
|
697
|
+
case "pipe": return !t.in || j(t.in);
|
|
698
|
+
default: return !0;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
function Kt(e) {
|
|
702
|
+
return e._zod.optin === "optional" && e._zod.optout === "optional";
|
|
703
|
+
}
|
|
704
|
+
function M(e) {
|
|
705
|
+
let t = e._zod.def;
|
|
706
|
+
switch (t.type) {
|
|
707
|
+
case "string":
|
|
708
|
+
case "number":
|
|
709
|
+
case "boolean":
|
|
710
|
+
case "bigint":
|
|
711
|
+
case "symbol":
|
|
712
|
+
case "null":
|
|
713
|
+
case "nan":
|
|
714
|
+
case "date":
|
|
715
|
+
case "object":
|
|
716
|
+
case "array":
|
|
717
|
+
case "tuple":
|
|
718
|
+
case "record":
|
|
719
|
+
case "map":
|
|
720
|
+
case "set":
|
|
721
|
+
case "file":
|
|
722
|
+
case "template_literal":
|
|
723
|
+
case "never":
|
|
724
|
+
case "success": return !1;
|
|
725
|
+
case "literal": return !!t.values?.includes(void 0);
|
|
726
|
+
case "enum": return !!e._zod.values?.has(void 0);
|
|
727
|
+
case "optional": return !0;
|
|
728
|
+
case "nullable":
|
|
729
|
+
case "readonly":
|
|
730
|
+
case "nonoptional": return !t.innerType || M(t.innerType);
|
|
731
|
+
case "union": return !t.options || t.options.some(M);
|
|
732
|
+
case "intersection": return !t.left || !t.right || M(t.left) || M(t.right);
|
|
733
|
+
case "pipe": return !t.out || M(t.out);
|
|
734
|
+
default: return !0;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function qt(e, t, n, r, i = !0) {
|
|
738
|
+
let a = n._zod.def, o = i ? D(t) : null;
|
|
739
|
+
return o && e.write(`let ${o} = null;`), e.write(`if (${r} !== null) {`), e.indented((e) => {
|
|
740
|
+
let n = A(e, t, a.innerType, r, i);
|
|
741
|
+
o && n !== null && e.write(`${o} = ${n};`);
|
|
742
|
+
}), e.write("}"), o;
|
|
743
|
+
}
|
|
744
|
+
function Jt(e, t, n, r, i = !0) {
|
|
745
|
+
let a = n._zod.def;
|
|
746
|
+
e.write(`if (!Array.isArray(${r})) return INVALID;`);
|
|
747
|
+
let o = i ? D(t) : null, s = D(t), c = D(t);
|
|
748
|
+
return o && e.write(`const ${o} = new Array(${r}.length);`), e.write(`for (let ${s} = 0; ${s} < ${r}.length; ${s}++) {`), e.indented((e) => {
|
|
749
|
+
e.write(`const ${c} = ${r}[${s}];`);
|
|
750
|
+
let n = O(e, t, a.element, c, i);
|
|
751
|
+
o && n !== null && e.write(`${o}[${s}] = ${n};`);
|
|
752
|
+
}), e.write("}"), o;
|
|
753
|
+
}
|
|
754
|
+
function Yt(e, t, n, i) {
|
|
755
|
+
let a = n._zod.def.values;
|
|
756
|
+
if (a.length !== 1) {
|
|
757
|
+
let n = E(t, new Set(a));
|
|
758
|
+
return e.write(`if (!${n}.has(${i})) return INVALID;`), i;
|
|
759
|
+
}
|
|
760
|
+
let o = a[0];
|
|
761
|
+
if (typeof o == "number" && Number.isNaN(o)) {
|
|
762
|
+
let n = E(t, new Set(a));
|
|
763
|
+
return e.write(`if (!${n}.has(${i})) return INVALID;`), i;
|
|
764
|
+
}
|
|
765
|
+
if (typeof o == "string") e.write(`if (${i} !== ${r(o)}) return INVALID;`);
|
|
766
|
+
else if (typeof o == "number" || typeof o == "boolean") e.write(`if (${i} !== ${o}) return INVALID;`);
|
|
767
|
+
else if (o === null) e.write(`if (${i} !== null) return INVALID;`);
|
|
768
|
+
else if (o === void 0) e.write(`if (${i} !== undefined) return INVALID;`);
|
|
769
|
+
else if (typeof o == "bigint") e.write(`if (${i} !== ${o}n) return INVALID;`);
|
|
770
|
+
else throw new T(`literal type ${typeof o}`);
|
|
771
|
+
return i;
|
|
772
|
+
}
|
|
773
|
+
function Xt(e, t, n, r) {
|
|
774
|
+
let i = n._zod.values;
|
|
775
|
+
if (!i) throw new T("enum schema without enumerated values");
|
|
776
|
+
let a = E(t, i);
|
|
777
|
+
return e.write(`if (!${a}.has(${r})) return INVALID;`), r;
|
|
778
|
+
}
|
|
779
|
+
function Zt(e, t, n, r) {
|
|
780
|
+
let i = n._zod.def;
|
|
781
|
+
return A(e, t, i.innerType, r);
|
|
782
|
+
}
|
|
783
|
+
function Qt(e, t, n, r) {
|
|
784
|
+
let i = n._zod.def, a = Object.getOwnPropertyDescriptor(n._zod.def, "defaultValue") ? () => n._zod.def.defaultValue : void 0;
|
|
785
|
+
if (n._zod.def.type === "prefault") {
|
|
786
|
+
if (!a) return A(e, t, i.innerType, r);
|
|
787
|
+
let n = E(t, a), o = D(t);
|
|
788
|
+
return e.write(`let ${o} = ${r};`), e.write(`if (${r} === undefined) ${o} = ${n}();`), A(e, t, i.innerType, o);
|
|
789
|
+
}
|
|
790
|
+
let o = D(t);
|
|
791
|
+
if (a) {
|
|
792
|
+
let n = E(t, a), c = E(t, s);
|
|
793
|
+
e.write(`let ${o};`), e.write(`if (${r} === undefined) {`), e.indented((e) => {
|
|
794
|
+
e.write(`${o} = ${c}(${n}());`);
|
|
795
|
+
}), e.write("} else {"), e.indented((e) => {
|
|
796
|
+
let a = A(e, t, i.innerType, r);
|
|
797
|
+
e.write(`${o} = ${a} === undefined ? ${c}(${n}()) : ${a};`);
|
|
798
|
+
}), e.write("}");
|
|
799
|
+
} else e.write(`let ${o};`), e.write(`if (${r} !== undefined) {`), e.indented((e) => {
|
|
800
|
+
let n = A(e, t, i.innerType, r);
|
|
801
|
+
e.write(`${o} = ${n};`);
|
|
802
|
+
}), e.write("}");
|
|
803
|
+
return o;
|
|
804
|
+
}
|
|
805
|
+
function $t(e, t, n, r) {
|
|
806
|
+
let i = n._zod.def, a = A(e, t, i.innerType, r), o = D(t);
|
|
807
|
+
return e.write(`const ${o} = ${a};`), e.write(`if (${o} === undefined) return INVALID;`), o;
|
|
808
|
+
}
|
|
809
|
+
function en(e, t, n, r) {
|
|
810
|
+
let i = n._zod.def, a = i.items, o = i.rest;
|
|
811
|
+
e.write(`if (!Array.isArray(${r})) return INVALID;`);
|
|
812
|
+
let s = tn(a, "optin"), c = tn(a, "optout");
|
|
813
|
+
o ? e.write(`if (${r}.length < ${s}) return INVALID;`) : e.write(`if (${r}.length < ${s} || ${r}.length > ${a.length}) return INVALID;`);
|
|
814
|
+
let l = D(t);
|
|
815
|
+
e.write(`const ${l} = [];`);
|
|
816
|
+
for (let n = 0; n < a.length; n++) {
|
|
817
|
+
let i = a[n];
|
|
818
|
+
if (n >= c) e.write(`if (${l}.length === ${n}) {`), e.indented((e) => {
|
|
819
|
+
e.write(`if (${n} < ${r}.length) {`), e.indented((e) => {
|
|
820
|
+
let a = D(t);
|
|
821
|
+
e.write(`const ${a} = ${r}[${n}];`);
|
|
822
|
+
let o = O(e, t, i, a);
|
|
823
|
+
e.write(`${l}[${n}] = ${o};`);
|
|
824
|
+
}), e.write("} else {"), e.indented((e) => {
|
|
825
|
+
if (Kt(i)) {
|
|
826
|
+
e.write(`${l}.length = ${n};`);
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
let r = D(t), a = D(t);
|
|
830
|
+
e.write(`const ${r} = undefined;`), e.write(`const ${a} = (() => {`), e.indented((e) => {
|
|
831
|
+
let n = O(e, t, i, r);
|
|
832
|
+
e.write(`return ${n};`);
|
|
833
|
+
}), e.write("})();"), e.write(`if (${a} === INVALID || ${a} === undefined) ${l}.length = ${n};`), e.write(`else ${l}[${n}] = ${a};`);
|
|
834
|
+
}), e.write("}");
|
|
835
|
+
}), e.write("}");
|
|
836
|
+
else {
|
|
837
|
+
let a = D(t);
|
|
838
|
+
e.write(`const ${a} = ${r}[${n}];`);
|
|
839
|
+
let o = O(e, t, i, a);
|
|
840
|
+
e.write(`${l}[${n}] = ${o};`);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (o) {
|
|
844
|
+
let n = D(t), i = D(t);
|
|
845
|
+
e.write(`for (let ${n} = ${a.length}; ${n} < ${r}.length; ${n}++) {`), e.indented((e) => {
|
|
846
|
+
e.write(`const ${i} = ${r}[${n}];`);
|
|
847
|
+
let a = O(e, t, o, i);
|
|
848
|
+
e.write(`${l}[${n}] = ${a};`);
|
|
849
|
+
}), e.write("}");
|
|
850
|
+
}
|
|
851
|
+
return l;
|
|
852
|
+
}
|
|
853
|
+
function tn(e, t) {
|
|
854
|
+
for (let n = e.length - 1; n >= 0; n--) if (!(t === "optin" ? e[n]._zod.optin !== void 0 : e[n]._zod.optout === "optional")) return n + 1;
|
|
855
|
+
return 0;
|
|
856
|
+
}
|
|
857
|
+
function nn(e, t, n, r) {
|
|
858
|
+
let i = n._zod.def, a = i.options;
|
|
859
|
+
if (i.discriminator) return rn(e, t, i, r);
|
|
860
|
+
if (i.inclusive === !1) throw new T("exclusive unions (z.xor)");
|
|
861
|
+
if (a.length === 0) return e.write("return INVALID;"), r;
|
|
862
|
+
if (a.length === 1) return A(e, t, a[0], r);
|
|
863
|
+
if (a.every((e) => e._zod.def.type === "literal" && !e._zod.def.checks?.length)) {
|
|
864
|
+
let n = E(t, new Set(a.flatMap((e) => e._zod.def.values)));
|
|
865
|
+
return e.write(`if (!${n}.has(${r})) return INVALID;`), r;
|
|
866
|
+
}
|
|
867
|
+
let o = D(t);
|
|
868
|
+
e.write(`let ${o};`);
|
|
869
|
+
for (let n = 0; n < a.length; n++) {
|
|
870
|
+
let i = a[n];
|
|
871
|
+
n === 0 ? e.write(`${o} = (() => {`) : e.write(`if (${o} === INVALID) ${o} = (() => {`), e.indented((e) => {
|
|
872
|
+
let n = A(e, t, i, r);
|
|
873
|
+
e.write(`return ${n};`);
|
|
874
|
+
}), e.write("})();");
|
|
875
|
+
}
|
|
876
|
+
return e.write(`if (${o} === INVALID) return INVALID;`), o;
|
|
877
|
+
}
|
|
878
|
+
function rn(e, t, n, i) {
|
|
879
|
+
if (n.unionFallback) throw new T("discriminated union with unionFallback");
|
|
880
|
+
if (n.options.length === 0) return e.write("return INVALID;"), i;
|
|
881
|
+
let a = D(t), o = D(t);
|
|
882
|
+
e.write(`const ${a} = ${i}?.[${r(n.discriminator)}];`), e.write(`let ${o};`);
|
|
883
|
+
let s = !0, c = /* @__PURE__ */ new Set();
|
|
884
|
+
for (let r of n.options) {
|
|
885
|
+
let l = r._zod.propValues?.[n.discriminator];
|
|
886
|
+
if (!l || l.size === 0) throw new T("discriminated union option without static discriminator values");
|
|
887
|
+
for (let e of l) {
|
|
888
|
+
if (c.has(e)) throw new T(`duplicate discriminator value ${String(e)}`);
|
|
889
|
+
c.add(e);
|
|
890
|
+
}
|
|
891
|
+
let u = Array.from(l, (e) => an(t, a, e)), d = s ? "if" : "else if";
|
|
892
|
+
e.write(`${d} (${u.join(" || ")}) {`), e.indented((e) => {
|
|
893
|
+
let n = A(e, t, r, i);
|
|
894
|
+
e.write(`${o} = ${n};`);
|
|
895
|
+
}), e.write("}"), s = !1;
|
|
896
|
+
}
|
|
897
|
+
return e.write("else { return INVALID; }"), o;
|
|
898
|
+
}
|
|
899
|
+
function an(e, t, n) {
|
|
900
|
+
if (typeof n == "string") return `${t} === ${r(n)}`;
|
|
901
|
+
if (typeof n == "number") return Number.isNaN(n) ? `Number.isNaN(${t})` : `${t} === ${n}`;
|
|
902
|
+
if (typeof n == "boolean") return `${t} === ${n}`;
|
|
903
|
+
if (n === null) return `${t} === null`;
|
|
904
|
+
if (n === void 0) return `${t} === undefined`;
|
|
905
|
+
if (typeof n == "bigint") return `${t} === ${n}n`;
|
|
906
|
+
if (typeof n == "symbol") return `${t} === ${E(e, n)}`;
|
|
907
|
+
throw new T(`literal discriminator value ${String(n)}`);
|
|
908
|
+
}
|
|
909
|
+
function on(e, t, n, r) {
|
|
910
|
+
let i = n._zod.def, a = O(e, t, i.left, r), o = O(e, t, i.right, r), s = E(t, ke), c = D(t);
|
|
911
|
+
return e.write(`const ${c} = ${s}(${a}, ${o});`), e.write(`if (!${c}.valid) return INVALID;`), `${c}.data`;
|
|
912
|
+
}
|
|
913
|
+
function sn(e, t, n, r) {
|
|
914
|
+
let i = n._zod.def, a = E(t, ae);
|
|
915
|
+
e.write(`if (!${a}(${r})) return INVALID;`);
|
|
916
|
+
let o = D(t), s = D(t), c = D(t);
|
|
917
|
+
e.write(`const ${o} = {};`);
|
|
918
|
+
let l = i, u = l.partial ? void 0 : i.keyType._zod.values;
|
|
919
|
+
if (u) {
|
|
920
|
+
let n = [];
|
|
921
|
+
for (let a of u) {
|
|
922
|
+
if (typeof a != "string" && typeof a != "number" && typeof a != "symbol") throw new T(`record key value ${String(a)}`);
|
|
923
|
+
let s = typeof a == "number" ? a.toString() : a;
|
|
924
|
+
if (s === "__proto__") throw new T("record key \"__proto__\"");
|
|
925
|
+
n.push(s);
|
|
926
|
+
let c = E(t, a), l = A(e, t, i.keyType, c), u = D(t);
|
|
927
|
+
e.write(`const ${u} = ${r}[${cn(t, s)}];`);
|
|
928
|
+
let d = O(e, t, i.valueType, u);
|
|
929
|
+
e.write(`${o}[${l}] = ${d};`);
|
|
930
|
+
}
|
|
931
|
+
let a = E(t, new Set(n));
|
|
932
|
+
return e.write(`for (const ${s} in ${r}) {`), e.indented((e) => {
|
|
933
|
+
e.write(`if (${a}.has(${s})) continue;`), l.mode === "loose" ? e.write(`if (${s} !== "__proto__") ${o}[${s}] = ${r}[${s}];`) : e.write("return INVALID;");
|
|
934
|
+
}), e.write("}"), o;
|
|
935
|
+
}
|
|
936
|
+
let d = i.keyType._zod.def;
|
|
937
|
+
if (!(d.type === "string" && d.format === void 0 && !d.coerce && (d.checks?.length ?? 0) === 0)) {
|
|
938
|
+
let n = i.mode === "loose", a = E(t, ft(i.keyType)), c = E(t, je), l = E(t, Object.prototype.propertyIsEnumerable), u = D(t);
|
|
939
|
+
return e.write(`for (const ${s} of Reflect.ownKeys(${r})) {`), e.indented((e) => {
|
|
940
|
+
e.write(`if (${s} === "__proto__") continue;`), e.write(`if (!${l}.call(${r}, ${s})) continue;`), e.write(`let ${u} = ${a}(${s});`), e.write(`if (${u} === INVALID && typeof ${s} === "string" && ${c}.test(${s})) ${u} = ${a}(Number(${s}));`), n ? e.write(`if (${u} === INVALID) { ${o}[${s}] = ${r}[${s}]; continue; }`) : e.write(`if (${u} === INVALID) return INVALID;`), e.write(`if (${u} === "__proto__") continue;`);
|
|
941
|
+
let d = D(t);
|
|
942
|
+
e.write(`const ${d} = ${r}[${s}];`);
|
|
943
|
+
let f = O(e, t, i.valueType, d);
|
|
944
|
+
e.write(`${o}[${u}] = ${f};`);
|
|
945
|
+
}), e.write("}"), o;
|
|
946
|
+
}
|
|
947
|
+
let f = E(t, Object.prototype.propertyIsEnumerable);
|
|
948
|
+
return e.write(`for (const ${s} of Reflect.ownKeys(${r})) {`), e.indented((e) => {
|
|
949
|
+
e.write(`if (${s} === "__proto__") continue;`), e.write(`if (!${f}.call(${r}, ${s})) continue;`), e.write(`if (typeof ${s} !== "string") return INVALID;`), e.write(`const ${c} = ${r}[${s}];`);
|
|
950
|
+
let n = O(e, t, i.valueType, c);
|
|
951
|
+
e.write(`${o}[${s}] = ${n};`);
|
|
952
|
+
}), e.write("}"), o;
|
|
953
|
+
}
|
|
954
|
+
function cn(e, t) {
|
|
955
|
+
return typeof t == "string" ? r(t) : E(e, t);
|
|
956
|
+
}
|
|
957
|
+
function ln(e, t, n, r) {
|
|
958
|
+
let i = n._zod.def;
|
|
959
|
+
e.write(`if (!(${r} instanceof Map)) return INVALID;`);
|
|
960
|
+
let a = D(t), o = D(t), s = D(t);
|
|
961
|
+
return e.write(`const ${a} = new Map();`), e.write(`for (const [${o}, ${s}] of ${r}) {`), e.indented((e) => {
|
|
962
|
+
let n = A(e, t, i.keyType, o), r = A(e, t, i.valueType, s);
|
|
963
|
+
e.write(`${a}.set(${n}, ${r});`);
|
|
964
|
+
}), e.write("}"), a;
|
|
965
|
+
}
|
|
966
|
+
function un(e, t, n, r) {
|
|
967
|
+
let i = n._zod.def;
|
|
968
|
+
e.write(`if (!(${r} instanceof Set)) return INVALID;`);
|
|
969
|
+
let a = D(t), o = D(t);
|
|
970
|
+
return e.write(`const ${a} = new Set();`), e.write(`for (const ${o} of ${r}) {`), e.indented((e) => {
|
|
971
|
+
let n = A(e, t, i.valueType, o);
|
|
972
|
+
e.write(`${a}.add(${n});`);
|
|
973
|
+
}), e.write("}"), a;
|
|
974
|
+
}
|
|
975
|
+
function dn(e, t) {
|
|
976
|
+
return e.write(`if (!(${t} instanceof File)) return INVALID;`), t;
|
|
977
|
+
}
|
|
978
|
+
function fn(e, t, n, r) {
|
|
979
|
+
e.write(`if (typeof ${r} !== "string") return INVALID;`);
|
|
980
|
+
let i = n._zod.pattern;
|
|
981
|
+
if (i) {
|
|
982
|
+
let n = E(t, i);
|
|
983
|
+
e.write(`${n}.lastIndex = 0;`), e.write(`if (!${n}.test(${r})) return INVALID;`);
|
|
984
|
+
}
|
|
985
|
+
return r;
|
|
986
|
+
}
|
|
987
|
+
function pn(e, t, n, r) {
|
|
988
|
+
let i = n._zod.def, a = E(t, i.getter), o = E(t, { parser: null });
|
|
989
|
+
e.write(`if (!${o}.parser) {`), e.indented((e) => {
|
|
990
|
+
e.write(`const inner = ${a}();`), e.write(`${o}.parser = function(input) {`), e.indented((e) => {
|
|
991
|
+
e.write("const result = inner._zod.run({ value: input, issues: [] }, {});"), e.write("return result.issues.length === 0 ? result.value : INVALID;");
|
|
992
|
+
}), e.write("};");
|
|
993
|
+
}), e.write("}");
|
|
994
|
+
let s = D(t);
|
|
995
|
+
return e.write(`const ${s} = ${o}.parser(${r});`), e.write(`if (${s} === INVALID) return INVALID;`), s;
|
|
996
|
+
}
|
|
997
|
+
function mn(e, t, n, r) {
|
|
998
|
+
let i = n._zod.def, a = A(e, t, i.in, r);
|
|
999
|
+
if (i.transform) {
|
|
1000
|
+
if (N(i.transform)) throw new w("z.compile: async transforms in pipes are not supported");
|
|
1001
|
+
let n = i.transform, r = E(t, (e) => {
|
|
1002
|
+
let t = {
|
|
1003
|
+
value: e,
|
|
1004
|
+
issues: [],
|
|
1005
|
+
addIssue: Ot
|
|
1006
|
+
}, r = n(e, t);
|
|
1007
|
+
return r instanceof Promise ? C : t.issues.length === 0 ? r : C;
|
|
1008
|
+
}), o = D(t);
|
|
1009
|
+
return e.write(`const ${o} = ${r}(${a});`), e.write(`if (${o} === INVALID) return INVALID;`), A(e, t, i.out, o);
|
|
1010
|
+
}
|
|
1011
|
+
return A(e, t, i.out, a);
|
|
1012
|
+
}
|
|
1013
|
+
function N(e) {
|
|
1014
|
+
return typeof e == "function" && (e.constructor.name === "AsyncFunction" || e[Symbol.toStringTag] === "AsyncFunction");
|
|
1015
|
+
}
|
|
1016
|
+
function hn(e, t, n, r) {
|
|
1017
|
+
let i = n._zod.def;
|
|
1018
|
+
if (i.fn) {
|
|
1019
|
+
if (N(i.fn)) throw new w("z.compile: async custom predicates are not supported");
|
|
1020
|
+
let n = E(t, i.fn), a = E(t, Dt), o = D(t);
|
|
1021
|
+
e.write(`const ${o} = ${n}(${r});`), e.write(`if (${o} instanceof Promise) ${a}();`), e.write(`if (!${o}) return INVALID;`);
|
|
1022
|
+
} else throw new T("custom schema without a predicate function");
|
|
1023
|
+
return r;
|
|
1024
|
+
}
|
|
1025
|
+
function gn(e, t, n) {
|
|
1026
|
+
let r = e._zod.run({
|
|
1027
|
+
value: n,
|
|
1028
|
+
issues: []
|
|
1029
|
+
}, {});
|
|
1030
|
+
if (r && typeof r.then == "function") return C;
|
|
1031
|
+
let i = r;
|
|
1032
|
+
return i.issues.length === 0 ? i.value : t();
|
|
1033
|
+
}
|
|
1034
|
+
function _n(e, t, n, r) {
|
|
1035
|
+
let i = n._zod.def;
|
|
1036
|
+
if (!i.catchValue["~constantCatch"]) throw new T("catch with a callback (only a constant catch value compiles)", !1);
|
|
1037
|
+
let a = D(t);
|
|
1038
|
+
e.write(`let ${a} = (() => {`), e.indented((e) => {
|
|
1039
|
+
let n = O(e, t, i.innerType, r);
|
|
1040
|
+
e.write(`return ${n};`);
|
|
1041
|
+
}), e.write("})();");
|
|
1042
|
+
let o = E(t, i.innerType), s = E(t, i.catchValue), c = E(t, gn);
|
|
1043
|
+
return e.write(`if (${a} === INVALID) {`), e.indented((e) => {
|
|
1044
|
+
e.write(`${a} = ${c}(${o}, ${s}, ${r});`), e.write(`if (${a} === INVALID) return INVALID;`);
|
|
1045
|
+
}), e.write("}"), a;
|
|
1046
|
+
}
|
|
1047
|
+
function vn(e, t, n, r) {
|
|
1048
|
+
let i = n._zod.def;
|
|
1049
|
+
if (i.transform) {
|
|
1050
|
+
if (N(i.transform)) throw new w("z.compile: async transforms are not supported");
|
|
1051
|
+
let n = i.transform, a = E(t, (e) => {
|
|
1052
|
+
let t = {
|
|
1053
|
+
value: e,
|
|
1054
|
+
issues: [],
|
|
1055
|
+
addIssue: Ot
|
|
1056
|
+
}, r = n(e, t);
|
|
1057
|
+
return r instanceof Promise ? C : t.issues.length === 0 ? r : C;
|
|
1058
|
+
}), o = D(t);
|
|
1059
|
+
return e.write(`const ${o} = ${a}(${r});`), e.write(`if (${o} === INVALID) return INVALID;`), o;
|
|
1060
|
+
}
|
|
1061
|
+
return r;
|
|
1062
|
+
}
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/compile.js
|
|
1065
|
+
var yn = !1;
|
|
1066
|
+
$e.postProcessor = (e) => {
|
|
1067
|
+
if (yn) return;
|
|
1068
|
+
let t = e._zod?.run;
|
|
1069
|
+
if (typeof t != "function") return;
|
|
1070
|
+
let n = (n, r) => {
|
|
1071
|
+
if (r?.async || r?.direction === "backward" || r?.skipChecks) return t(n, r);
|
|
1072
|
+
yn = !0;
|
|
1073
|
+
try {
|
|
1074
|
+
if ($e.jitless) return e._zod.run = t, t(n, r);
|
|
1075
|
+
let i = ut(e, { strict: !0 });
|
|
1076
|
+
e._zod.run = i._zod.run, e._zod.bag.fallbackRun = i._zod.bag.fallbackRun, e._zod.bag.validator = i._zod.bag.validator;
|
|
1077
|
+
} catch {
|
|
1078
|
+
e._zod.run = t;
|
|
1079
|
+
} finally {
|
|
1080
|
+
yn = !1;
|
|
1081
|
+
}
|
|
1082
|
+
return e._zod.run(n, r);
|
|
1083
|
+
};
|
|
1084
|
+
n.__originalRun = t, e._zod.run = n;
|
|
1085
|
+
};
|
|
1086
|
+
//#endregion
|
|
4
1087
|
//#region src/ethercat/types.gen.ts
|
|
5
|
-
var
|
|
6
|
-
index:
|
|
7
|
-
subIndex:
|
|
8
|
-
bitLength:
|
|
9
|
-
dataType:
|
|
10
|
-
}),
|
|
11
|
-
key:
|
|
12
|
-
name:
|
|
13
|
-
disabled:
|
|
14
|
-
channel:
|
|
15
|
-
device:
|
|
16
|
-
}),
|
|
17
|
-
key:
|
|
18
|
-
name:
|
|
19
|
-
disabled:
|
|
20
|
-
cmdChannel:
|
|
21
|
-
stateChannel:
|
|
22
|
-
cmdChannelName:
|
|
23
|
-
stateChannelName:
|
|
24
|
-
device:
|
|
25
|
-
}),
|
|
26
|
-
type:
|
|
27
|
-
pdo:
|
|
28
|
-
}),
|
|
29
|
-
automatic:
|
|
30
|
-
manual:
|
|
31
|
-
},
|
|
32
|
-
type:
|
|
33
|
-
pdo:
|
|
34
|
-
}),
|
|
35
|
-
automatic:
|
|
36
|
-
manual:
|
|
37
|
-
},
|
|
38
|
-
stateRate:
|
|
39
|
-
executionRate:
|
|
40
|
-
channels:
|
|
41
|
-
}),
|
|
42
|
-
READ_CHANNEL_SCHEMAS: () =>
|
|
43
|
-
READ_CHANNEL_TYPES: () =>
|
|
44
|
-
WRITE_CHANNEL_SCHEMAS: () =>
|
|
45
|
-
WRITE_CHANNEL_TYPES: () =>
|
|
46
|
-
automaticReadChannelZ: () =>
|
|
47
|
-
automaticWriteChannelZ: () =>
|
|
48
|
-
baseReadChannelZ: () =>
|
|
49
|
-
baseWriteChannelZ: () =>
|
|
50
|
-
manualReadChannelZ: () =>
|
|
51
|
-
manualWriteChannelZ: () =>
|
|
52
|
-
pdoAddressZ: () =>
|
|
53
|
-
readChannelTypeZ: () =>
|
|
54
|
-
readChannelZ: () =>
|
|
55
|
-
readConfigZ: () =>
|
|
56
|
-
scanConfigZ: () =>
|
|
57
|
-
writeChannelTypeZ: () =>
|
|
58
|
-
writeChannelZ: () =>
|
|
59
|
-
writeConfigZ: () =>
|
|
60
|
-
}),
|
|
1088
|
+
var bn = b.object({
|
|
1089
|
+
index: S.uint16.default(0),
|
|
1090
|
+
subIndex: S.uint8.default(0),
|
|
1091
|
+
bitLength: S.uint8.default(16),
|
|
1092
|
+
dataType: b.string().default("uint16")
|
|
1093
|
+
}), xn = b.object({
|
|
1094
|
+
key: b.string().default(x.create),
|
|
1095
|
+
name: b.string().default(""),
|
|
1096
|
+
disabled: b.boolean().default(!1),
|
|
1097
|
+
channel: y.default(0),
|
|
1098
|
+
device: v.default("")
|
|
1099
|
+
}), Sn = b.object({
|
|
1100
|
+
key: b.string().default(x.create),
|
|
1101
|
+
name: b.string().default(""),
|
|
1102
|
+
disabled: b.boolean().default(!1),
|
|
1103
|
+
cmdChannel: y.default(0),
|
|
1104
|
+
stateChannel: y.default(0),
|
|
1105
|
+
cmdChannelName: b.string().default(""),
|
|
1106
|
+
stateChannelName: b.string().default(""),
|
|
1107
|
+
device: v.default("")
|
|
1108
|
+
}), Cn = i, wn = xn.extend({
|
|
1109
|
+
type: b.literal("automatic"),
|
|
1110
|
+
pdo: b.string().default("")
|
|
1111
|
+
}), Tn = xn.extend(bn.shape).extend({ type: b.literal("manual") }), En = ["automatic", "manual"], Dn = b.enum(En), On = b.discriminatedUnion("type", [wn, Tn]), kn = {
|
|
1112
|
+
automatic: wn,
|
|
1113
|
+
manual: Tn
|
|
1114
|
+
}, An = Sn.extend({
|
|
1115
|
+
type: b.literal("automatic"),
|
|
1116
|
+
pdo: b.string().default("")
|
|
1117
|
+
}), jn = Sn.extend(bn.shape).extend({ type: b.literal("manual") }), Mn = ["automatic", "manual"], Nn = b.enum(Mn), Pn = b.discriminatedUnion("type", [An, jn]), Fn = {
|
|
1118
|
+
automatic: An,
|
|
1119
|
+
manual: jn
|
|
1120
|
+
}, In = o.extend({ channels: On.array().default(() => []) }), Ln = ie.extend({
|
|
1121
|
+
stateRate: b.number().default(25),
|
|
1122
|
+
executionRate: b.number().default(1e3),
|
|
1123
|
+
channels: Pn.array().default(() => [])
|
|
1124
|
+
}), Rn = /* @__PURE__ */ a({
|
|
1125
|
+
READ_CHANNEL_SCHEMAS: () => kn,
|
|
1126
|
+
READ_CHANNEL_TYPES: () => En,
|
|
1127
|
+
WRITE_CHANNEL_SCHEMAS: () => Fn,
|
|
1128
|
+
WRITE_CHANNEL_TYPES: () => Mn,
|
|
1129
|
+
automaticReadChannelZ: () => wn,
|
|
1130
|
+
automaticWriteChannelZ: () => An,
|
|
1131
|
+
baseReadChannelZ: () => xn,
|
|
1132
|
+
baseWriteChannelZ: () => Sn,
|
|
1133
|
+
manualReadChannelZ: () => Tn,
|
|
1134
|
+
manualWriteChannelZ: () => jn,
|
|
1135
|
+
pdoAddressZ: () => bn,
|
|
1136
|
+
readChannelTypeZ: () => Dn,
|
|
1137
|
+
readChannelZ: () => On,
|
|
1138
|
+
readConfigZ: () => In,
|
|
1139
|
+
scanConfigZ: () => Cn,
|
|
1140
|
+
writeChannelTypeZ: () => Nn,
|
|
1141
|
+
writeChannelZ: () => Pn,
|
|
1142
|
+
writeConfigZ: () => Ln
|
|
1143
|
+
}), zn = [
|
|
61
1144
|
"iso8601",
|
|
62
1145
|
"unix_sec",
|
|
63
1146
|
"unix_ms",
|
|
64
1147
|
"unix_us",
|
|
65
1148
|
"unix_ns"
|
|
66
|
-
],
|
|
1149
|
+
], Bn = b.enum(zn), Vn = [
|
|
67
1150
|
"GET",
|
|
68
1151
|
"HEAD",
|
|
69
1152
|
"POST",
|
|
@@ -73,106 +1156,106 @@ var l = o.object({
|
|
|
73
1156
|
"OPTIONS",
|
|
74
1157
|
"TRACE",
|
|
75
1158
|
"CONNECT"
|
|
76
|
-
],
|
|
1159
|
+
], Hn = b.enum(Vn), Un = [
|
|
77
1160
|
"number",
|
|
78
1161
|
"string",
|
|
79
1162
|
"boolean"
|
|
80
|
-
],
|
|
81
|
-
name:
|
|
82
|
-
value:
|
|
83
|
-
}),
|
|
84
|
-
parameter:
|
|
85
|
-
value:
|
|
86
|
-
}),
|
|
87
|
-
label:
|
|
88
|
-
value:
|
|
89
|
-
}),
|
|
90
|
-
key:
|
|
91
|
-
pointer:
|
|
92
|
-
}),
|
|
93
|
-
key:
|
|
94
|
-
name:
|
|
95
|
-
disabled:
|
|
96
|
-
channel:
|
|
97
|
-
pointer:
|
|
98
|
-
dataType:
|
|
99
|
-
timeFormat:
|
|
100
|
-
enumValues:
|
|
101
|
-
}),
|
|
102
|
-
pointer:
|
|
103
|
-
jsonType:
|
|
104
|
-
channel:
|
|
105
|
-
name:
|
|
106
|
-
dataType:
|
|
107
|
-
timeFormat:
|
|
108
|
-
enumValues:
|
|
109
|
-
}),
|
|
110
|
-
type:
|
|
111
|
-
jsonType:
|
|
112
|
-
value:
|
|
113
|
-
}),
|
|
114
|
-
type:
|
|
115
|
-
generator:
|
|
116
|
-
timeFormat:
|
|
117
|
-
}),
|
|
118
|
-
static:
|
|
119
|
-
generated:
|
|
120
|
-
},
|
|
121
|
-
key:
|
|
122
|
-
method:
|
|
123
|
-
path:
|
|
124
|
-
headers:
|
|
125
|
-
queryParams:
|
|
126
|
-
body:
|
|
127
|
-
fields:
|
|
128
|
-
index:
|
|
129
|
-
}),
|
|
130
|
-
key:
|
|
131
|
-
disabled:
|
|
132
|
-
method:
|
|
133
|
-
path:
|
|
134
|
-
headers:
|
|
135
|
-
queryParams:
|
|
136
|
-
channel:
|
|
137
|
-
fields:
|
|
138
|
-
}),
|
|
139
|
-
device:
|
|
140
|
-
rate:
|
|
141
|
-
endpoints:
|
|
142
|
-
}),
|
|
143
|
-
device:
|
|
144
|
-
endpoints:
|
|
145
|
-
}),
|
|
146
|
-
GENERATOR_TYPES: () =>
|
|
147
|
-
JSON_TYPES: () =>
|
|
148
|
-
METHODS: () =>
|
|
149
|
-
TIME_FORMATS: () =>
|
|
150
|
-
WRITE_FIELD_SCHEMAS: () =>
|
|
151
|
-
WRITE_FIELD_TYPES: () =>
|
|
152
|
-
baseWriteFieldZ: () =>
|
|
153
|
-
channelFieldZ: () =>
|
|
154
|
-
enumEntryZ: () =>
|
|
155
|
-
generatedWriteFieldZ: () =>
|
|
156
|
-
generatorTypeZ: () =>
|
|
157
|
-
headerZ: () =>
|
|
158
|
-
jsonTypeZ: () =>
|
|
159
|
-
methodZ: () =>
|
|
160
|
-
queryParamZ: () =>
|
|
161
|
-
readConfigZ: () =>
|
|
162
|
-
readEndpointZ: () =>
|
|
163
|
-
readFieldZ: () =>
|
|
164
|
-
scanConfigZ: () =>
|
|
165
|
-
staticWriteFieldZ: () =>
|
|
166
|
-
timeFormatZ: () =>
|
|
167
|
-
writeConfigZ: () =>
|
|
168
|
-
writeEndpointZ: () =>
|
|
169
|
-
writeFieldTypeZ: () =>
|
|
170
|
-
writeFieldZ: () =>
|
|
171
|
-
}),
|
|
1163
|
+
], Wn = b.enum(Un), Gn = ["uuid", "timestamp"], Kn = b.enum(Gn), qn = b.object({
|
|
1164
|
+
name: b.string().default(""),
|
|
1165
|
+
value: b.string().default("")
|
|
1166
|
+
}), Jn = b.object({
|
|
1167
|
+
parameter: b.string().default(""),
|
|
1168
|
+
value: b.string().default("")
|
|
1169
|
+
}), Yn = b.object({
|
|
1170
|
+
label: b.string().default(""),
|
|
1171
|
+
value: b.number().default(0)
|
|
1172
|
+
}), Xn = b.object({
|
|
1173
|
+
key: b.string().default(x.create),
|
|
1174
|
+
pointer: b.string().default("")
|
|
1175
|
+
}), Zn = i, Qn = b.object({
|
|
1176
|
+
key: b.string().default(x.create),
|
|
1177
|
+
name: b.string().default(""),
|
|
1178
|
+
disabled: b.boolean().default(!1),
|
|
1179
|
+
channel: y.default(0),
|
|
1180
|
+
pointer: b.string().default(""),
|
|
1181
|
+
dataType: b.string().default("float64"),
|
|
1182
|
+
timeFormat: Bn.optional(),
|
|
1183
|
+
enumValues: Yn.array().default(() => [])
|
|
1184
|
+
}), $n = b.object({
|
|
1185
|
+
pointer: b.string().default(""),
|
|
1186
|
+
jsonType: Wn.default("number"),
|
|
1187
|
+
channel: y.default(0),
|
|
1188
|
+
name: b.string().default(""),
|
|
1189
|
+
dataType: b.string().default("float64"),
|
|
1190
|
+
timeFormat: Bn.optional(),
|
|
1191
|
+
enumValues: Yn.array().default(() => [])
|
|
1192
|
+
}), er = Xn.extend({
|
|
1193
|
+
type: b.literal("static"),
|
|
1194
|
+
jsonType: Wn.default("number"),
|
|
1195
|
+
value: b.unknown()
|
|
1196
|
+
}), tr = Xn.extend({
|
|
1197
|
+
type: b.literal("generated"),
|
|
1198
|
+
generator: Kn.default("uuid"),
|
|
1199
|
+
timeFormat: Bn.optional()
|
|
1200
|
+
}), nr = ["static", "generated"], rr = b.enum(nr), ir = b.discriminatedUnion("type", [er, tr]), ar = {
|
|
1201
|
+
static: er,
|
|
1202
|
+
generated: tr
|
|
1203
|
+
}, or = b.object({
|
|
1204
|
+
key: b.string().default(x.create),
|
|
1205
|
+
method: Hn.default("GET"),
|
|
1206
|
+
path: b.string().default(""),
|
|
1207
|
+
headers: qn.array().default(() => []),
|
|
1208
|
+
queryParams: Jn.array().default(() => []),
|
|
1209
|
+
body: b.string().default(""),
|
|
1210
|
+
fields: Qn.array().default(() => []),
|
|
1211
|
+
index: b.string().default("")
|
|
1212
|
+
}), sr = b.object({
|
|
1213
|
+
key: b.string().default(x.create),
|
|
1214
|
+
disabled: b.boolean().default(!1),
|
|
1215
|
+
method: Hn.default("POST"),
|
|
1216
|
+
path: b.string().default(""),
|
|
1217
|
+
headers: qn.array().default(() => []),
|
|
1218
|
+
queryParams: Jn.array().default(() => []),
|
|
1219
|
+
channel: $n.prefault({}),
|
|
1220
|
+
fields: ir.array().default(() => [])
|
|
1221
|
+
}), cr = ie.extend({
|
|
1222
|
+
device: v.default(""),
|
|
1223
|
+
rate: b.number().default(1),
|
|
1224
|
+
endpoints: or.array().default(() => [])
|
|
1225
|
+
}), lr = g.extend({
|
|
1226
|
+
device: v.default(""),
|
|
1227
|
+
endpoints: sr.array().default(() => [])
|
|
1228
|
+
}), ur = /* @__PURE__ */ a({
|
|
1229
|
+
GENERATOR_TYPES: () => Gn,
|
|
1230
|
+
JSON_TYPES: () => Un,
|
|
1231
|
+
METHODS: () => Vn,
|
|
1232
|
+
TIME_FORMATS: () => zn,
|
|
1233
|
+
WRITE_FIELD_SCHEMAS: () => ar,
|
|
1234
|
+
WRITE_FIELD_TYPES: () => nr,
|
|
1235
|
+
baseWriteFieldZ: () => Xn,
|
|
1236
|
+
channelFieldZ: () => $n,
|
|
1237
|
+
enumEntryZ: () => Yn,
|
|
1238
|
+
generatedWriteFieldZ: () => tr,
|
|
1239
|
+
generatorTypeZ: () => Kn,
|
|
1240
|
+
headerZ: () => qn,
|
|
1241
|
+
jsonTypeZ: () => Wn,
|
|
1242
|
+
methodZ: () => Hn,
|
|
1243
|
+
queryParamZ: () => Jn,
|
|
1244
|
+
readConfigZ: () => cr,
|
|
1245
|
+
readEndpointZ: () => or,
|
|
1246
|
+
readFieldZ: () => Qn,
|
|
1247
|
+
scanConfigZ: () => Zn,
|
|
1248
|
+
staticWriteFieldZ: () => er,
|
|
1249
|
+
timeFormatZ: () => Bn,
|
|
1250
|
+
writeConfigZ: () => lr,
|
|
1251
|
+
writeEndpointZ: () => sr,
|
|
1252
|
+
writeFieldTypeZ: () => rr,
|
|
1253
|
+
writeFieldZ: () => ir
|
|
1254
|
+
}), dr = [
|
|
172
1255
|
"C",
|
|
173
1256
|
"F",
|
|
174
1257
|
"K"
|
|
175
|
-
],
|
|
1258
|
+
], fr = b.enum(dr), pr = [
|
|
176
1259
|
"J",
|
|
177
1260
|
"K",
|
|
178
1261
|
"N",
|
|
@@ -182,241 +1265,241 @@ var l = o.object({
|
|
|
182
1265
|
"B",
|
|
183
1266
|
"E",
|
|
184
1267
|
"C"
|
|
185
|
-
],
|
|
186
|
-
key:
|
|
187
|
-
name:
|
|
188
|
-
disabled:
|
|
189
|
-
channel:
|
|
190
|
-
port:
|
|
191
|
-
}),
|
|
192
|
-
key:
|
|
193
|
-
disabled:
|
|
194
|
-
cmdChannel:
|
|
195
|
-
stateChannel:
|
|
196
|
-
cmdChannelName:
|
|
197
|
-
stateChannelName:
|
|
198
|
-
port:
|
|
199
|
-
}),
|
|
200
|
-
type:
|
|
201
|
-
slope:
|
|
202
|
-
offset:
|
|
203
|
-
}),
|
|
204
|
-
type:
|
|
205
|
-
preScaledMin:
|
|
206
|
-
preScaledMax:
|
|
207
|
-
scaledMin:
|
|
208
|
-
scaledMax:
|
|
209
|
-
}),
|
|
1268
|
+
], mr = b.enum(pr), hr = b.object({
|
|
1269
|
+
key: b.string().default(x.create),
|
|
1270
|
+
name: b.string().default(""),
|
|
1271
|
+
disabled: b.boolean().default(!1),
|
|
1272
|
+
channel: y.default(0),
|
|
1273
|
+
port: b.string().default("")
|
|
1274
|
+
}), gr = b.object({
|
|
1275
|
+
key: b.string().default(x.create),
|
|
1276
|
+
disabled: b.boolean().default(!1),
|
|
1277
|
+
cmdChannel: y.default(0),
|
|
1278
|
+
stateChannel: y.default(0),
|
|
1279
|
+
cmdChannelName: b.string().default(""),
|
|
1280
|
+
stateChannelName: b.string().default(""),
|
|
1281
|
+
port: b.string().default("")
|
|
1282
|
+
}), _r = i.extend({ tcpScanMultiplier: b.int32().default(10) }), vr = b.object({
|
|
1283
|
+
type: b.literal("linear"),
|
|
1284
|
+
slope: b.number().default(1),
|
|
1285
|
+
offset: b.number().default(0)
|
|
1286
|
+
}), yr = b.object({
|
|
1287
|
+
type: b.literal("map"),
|
|
1288
|
+
preScaledMin: b.number().default(0),
|
|
1289
|
+
preScaledMax: b.number().default(1),
|
|
1290
|
+
scaledMin: b.number().default(0),
|
|
1291
|
+
scaledMax: b.number().default(1)
|
|
1292
|
+
}), br = b.object({ type: b.literal("none") }), xr = [
|
|
210
1293
|
"linear",
|
|
211
1294
|
"map",
|
|
212
1295
|
"none"
|
|
213
|
-
],
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
]),
|
|
218
|
-
linear:
|
|
219
|
-
map:
|
|
220
|
-
none:
|
|
221
|
-
},
|
|
222
|
-
type:
|
|
223
|
-
port:
|
|
224
|
-
}),
|
|
225
|
-
type:
|
|
226
|
-
port:
|
|
227
|
-
}),
|
|
228
|
-
analog:
|
|
229
|
-
digital:
|
|
230
|
-
},
|
|
231
|
-
type:
|
|
232
|
-
port:
|
|
233
|
-
range:
|
|
234
|
-
negChan:
|
|
235
|
-
scale:
|
|
236
|
-
}),
|
|
237
|
-
type:
|
|
238
|
-
port:
|
|
239
|
-
}),
|
|
240
|
-
type:
|
|
241
|
-
port:
|
|
242
|
-
thermocoupleType:
|
|
243
|
-
negChan:
|
|
244
|
-
cjcSource:
|
|
245
|
-
cjcSlope:
|
|
246
|
-
cjcOffset:
|
|
247
|
-
units:
|
|
248
|
-
scale:
|
|
249
|
-
}),
|
|
1296
|
+
], Sr = b.enum(xr), Cr = b.discriminatedUnion("type", [
|
|
1297
|
+
vr,
|
|
1298
|
+
yr,
|
|
1299
|
+
br
|
|
1300
|
+
]), wr = {
|
|
1301
|
+
linear: vr,
|
|
1302
|
+
map: yr,
|
|
1303
|
+
none: br
|
|
1304
|
+
}, Tr = gr.extend({
|
|
1305
|
+
type: b.literal("analog"),
|
|
1306
|
+
port: b.string().default("DAC0")
|
|
1307
|
+
}), Er = gr.extend({
|
|
1308
|
+
type: b.literal("digital"),
|
|
1309
|
+
port: b.string().default("DIO4")
|
|
1310
|
+
}), Dr = ["analog", "digital"], Or = b.enum(Dr), kr = b.discriminatedUnion("type", [Tr, Er]), Ar = {
|
|
1311
|
+
analog: Tr,
|
|
1312
|
+
digital: Er
|
|
1313
|
+
}, jr = hr.extend({
|
|
1314
|
+
type: b.literal("analog"),
|
|
1315
|
+
port: b.string().default("AIN0"),
|
|
1316
|
+
range: b.number().default(10),
|
|
1317
|
+
negChan: b.int32().default(199),
|
|
1318
|
+
scale: Cr.prefault({ type: "none" })
|
|
1319
|
+
}), Mr = hr.extend({
|
|
1320
|
+
type: b.literal("digital"),
|
|
1321
|
+
port: b.string().default("DIO4")
|
|
1322
|
+
}), Nr = hr.extend({
|
|
1323
|
+
type: b.literal("thermocouple"),
|
|
1324
|
+
port: b.string().default("AIN0"),
|
|
1325
|
+
thermocoupleType: mr.default("K"),
|
|
1326
|
+
negChan: b.int32().default(199),
|
|
1327
|
+
cjcSource: b.string().default("TEMPERATURE_DEVICE_K"),
|
|
1328
|
+
cjcSlope: b.number().default(1),
|
|
1329
|
+
cjcOffset: b.number().default(0),
|
|
1330
|
+
units: fr.default("K"),
|
|
1331
|
+
scale: Cr.prefault({ type: "none" })
|
|
1332
|
+
}), Pr = [
|
|
250
1333
|
"analog",
|
|
251
1334
|
"digital",
|
|
252
1335
|
"thermocouple"
|
|
253
|
-
],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
]),
|
|
258
|
-
analog:
|
|
259
|
-
digital:
|
|
260
|
-
thermocouple:
|
|
261
|
-
},
|
|
262
|
-
stateRate:
|
|
263
|
-
channels:
|
|
264
|
-
}),
|
|
265
|
-
device:
|
|
266
|
-
channels:
|
|
267
|
-
deviceScanBacklogWarnOnCount:
|
|
268
|
-
ljmScanBacklogWarnOnCount:
|
|
269
|
-
}),
|
|
270
|
-
READ_CHANNEL_SCHEMAS: () =>
|
|
271
|
-
READ_CHANNEL_TYPES: () =>
|
|
272
|
-
SCALE_SCHEMAS: () =>
|
|
273
|
-
SCALE_TYPES: () =>
|
|
274
|
-
TEMPERATURE_UNITS: () =>
|
|
275
|
-
THERMOCOUPLE_TYPES: () =>
|
|
276
|
-
WRITE_CHANNEL_SCHEMAS: () =>
|
|
277
|
-
WRITE_CHANNEL_TYPES: () =>
|
|
278
|
-
analogReadChannelZ: () =>
|
|
279
|
-
analogWriteChannelZ: () =>
|
|
280
|
-
baseReadChannelZ: () =>
|
|
281
|
-
baseWriteChannelZ: () =>
|
|
282
|
-
digitalReadChannelZ: () =>
|
|
283
|
-
digitalWriteChannelZ: () =>
|
|
284
|
-
linearScaleZ: () =>
|
|
285
|
-
mapScaleZ: () =>
|
|
286
|
-
noneScaleZ: () =>
|
|
287
|
-
readChannelTypeZ: () =>
|
|
288
|
-
readChannelZ: () =>
|
|
289
|
-
readConfigZ: () =>
|
|
290
|
-
scaleTypeZ: () =>
|
|
291
|
-
scaleZ: () =>
|
|
292
|
-
scanConfigZ: () =>
|
|
293
|
-
temperatureUnitsZ: () =>
|
|
294
|
-
thermocoupleReadChannelZ: () =>
|
|
295
|
-
thermocoupleTypeZ: () =>
|
|
296
|
-
writeChannelTypeZ: () =>
|
|
297
|
-
writeChannelZ: () =>
|
|
298
|
-
writeConfigZ: () =>
|
|
299
|
-
}),
|
|
300
|
-
dataType:
|
|
301
|
-
bytesSwapped:
|
|
302
|
-
wordsSwapped:
|
|
303
|
-
}),
|
|
304
|
-
key:
|
|
305
|
-
name:
|
|
306
|
-
disabled:
|
|
307
|
-
channel:
|
|
308
|
-
address:
|
|
309
|
-
}),
|
|
310
|
-
key:
|
|
311
|
-
name:
|
|
312
|
-
disabled:
|
|
313
|
-
channel:
|
|
314
|
-
address:
|
|
315
|
-
}),
|
|
316
|
-
type:
|
|
317
|
-
stringLength:
|
|
318
|
-
}),
|
|
319
|
-
type:
|
|
320
|
-
stringLength:
|
|
321
|
-
}),
|
|
1336
|
+
], Fr = b.enum(Pr), Ir = b.discriminatedUnion("type", [
|
|
1337
|
+
jr,
|
|
1338
|
+
Mr,
|
|
1339
|
+
Nr
|
|
1340
|
+
]), Lr = {
|
|
1341
|
+
analog: jr,
|
|
1342
|
+
digital: Mr,
|
|
1343
|
+
thermocouple: Nr
|
|
1344
|
+
}, Rr = De.extend({
|
|
1345
|
+
stateRate: b.number().default(10),
|
|
1346
|
+
channels: kr.array().default(() => [])
|
|
1347
|
+
}), zr = o.extend({
|
|
1348
|
+
device: v.default(""),
|
|
1349
|
+
channels: Ir.array().default(() => []),
|
|
1350
|
+
deviceScanBacklogWarnOnCount: b.uint32().default(0),
|
|
1351
|
+
ljmScanBacklogWarnOnCount: b.uint32().default(0)
|
|
1352
|
+
}), Br = /* @__PURE__ */ a({
|
|
1353
|
+
READ_CHANNEL_SCHEMAS: () => Lr,
|
|
1354
|
+
READ_CHANNEL_TYPES: () => Pr,
|
|
1355
|
+
SCALE_SCHEMAS: () => wr,
|
|
1356
|
+
SCALE_TYPES: () => xr,
|
|
1357
|
+
TEMPERATURE_UNITS: () => dr,
|
|
1358
|
+
THERMOCOUPLE_TYPES: () => pr,
|
|
1359
|
+
WRITE_CHANNEL_SCHEMAS: () => Ar,
|
|
1360
|
+
WRITE_CHANNEL_TYPES: () => Dr,
|
|
1361
|
+
analogReadChannelZ: () => jr,
|
|
1362
|
+
analogWriteChannelZ: () => Tr,
|
|
1363
|
+
baseReadChannelZ: () => hr,
|
|
1364
|
+
baseWriteChannelZ: () => gr,
|
|
1365
|
+
digitalReadChannelZ: () => Mr,
|
|
1366
|
+
digitalWriteChannelZ: () => Er,
|
|
1367
|
+
linearScaleZ: () => vr,
|
|
1368
|
+
mapScaleZ: () => yr,
|
|
1369
|
+
noneScaleZ: () => br,
|
|
1370
|
+
readChannelTypeZ: () => Fr,
|
|
1371
|
+
readChannelZ: () => Ir,
|
|
1372
|
+
readConfigZ: () => zr,
|
|
1373
|
+
scaleTypeZ: () => Sr,
|
|
1374
|
+
scaleZ: () => Cr,
|
|
1375
|
+
scanConfigZ: () => _r,
|
|
1376
|
+
temperatureUnitsZ: () => fr,
|
|
1377
|
+
thermocoupleReadChannelZ: () => Nr,
|
|
1378
|
+
thermocoupleTypeZ: () => mr,
|
|
1379
|
+
writeChannelTypeZ: () => Or,
|
|
1380
|
+
writeChannelZ: () => kr,
|
|
1381
|
+
writeConfigZ: () => Rr
|
|
1382
|
+
}), Vr = b.object({
|
|
1383
|
+
dataType: b.string().default("uint8"),
|
|
1384
|
+
bytesSwapped: b.boolean().default(!1),
|
|
1385
|
+
wordsSwapped: b.boolean().default(!1)
|
|
1386
|
+
}), P = b.object({
|
|
1387
|
+
key: b.string().default(x.create),
|
|
1388
|
+
name: b.string().default(""),
|
|
1389
|
+
disabled: b.boolean().default(!1),
|
|
1390
|
+
channel: y.default(0),
|
|
1391
|
+
address: S.uint16.default(0)
|
|
1392
|
+
}), Hr = b.object({
|
|
1393
|
+
key: b.string().default(x.create),
|
|
1394
|
+
name: b.string().default(""),
|
|
1395
|
+
disabled: b.boolean().default(!1),
|
|
1396
|
+
channel: y.default(0),
|
|
1397
|
+
address: S.uint16.default(0)
|
|
1398
|
+
}), Ur = i, Wr = P.extend({ type: b.literal("coil") }), Gr = P.extend({ type: b.literal("discrete_input") }), Kr = P.extend(Vr.shape).extend({
|
|
1399
|
+
type: b.literal("holding_register"),
|
|
1400
|
+
stringLength: b.int32().default(0)
|
|
1401
|
+
}), qr = P.extend(Vr.shape).extend({
|
|
1402
|
+
type: b.literal("input_register"),
|
|
1403
|
+
stringLength: b.int32().default(0)
|
|
1404
|
+
}), Jr = [
|
|
322
1405
|
"coil",
|
|
323
1406
|
"discrete_input",
|
|
324
1407
|
"holding_register",
|
|
325
1408
|
"input_register"
|
|
326
|
-
],
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
]),
|
|
332
|
-
coil:
|
|
333
|
-
discrete_input:
|
|
334
|
-
holding_register:
|
|
335
|
-
input_register:
|
|
336
|
-
},
|
|
337
|
-
coil:
|
|
338
|
-
holding_register:
|
|
339
|
-
},
|
|
340
|
-
device:
|
|
341
|
-
channels:
|
|
342
|
-
}),
|
|
343
|
-
READ_CHANNEL_SCHEMAS: () =>
|
|
344
|
-
READ_CHANNEL_TYPES: () =>
|
|
345
|
-
WRITE_CHANNEL_SCHEMAS: () =>
|
|
346
|
-
WRITE_CHANNEL_TYPES: () =>
|
|
347
|
-
baseReadChannelZ: () =>
|
|
348
|
-
baseWriteChannelZ: () =>
|
|
349
|
-
coilReadChannelZ: () =>
|
|
350
|
-
coilWriteChannelZ: () =>
|
|
351
|
-
discreteInputReadChannelZ: () =>
|
|
352
|
-
holdingRegisterReadChannelZ: () =>
|
|
353
|
-
holdingRegisterWriteChannelZ: () =>
|
|
354
|
-
inputRegisterReadChannelZ: () =>
|
|
355
|
-
readChannelTypeZ: () =>
|
|
356
|
-
readChannelZ: () =>
|
|
357
|
-
readConfigZ: () =>
|
|
358
|
-
registerValueZ: () =>
|
|
359
|
-
scanConfigZ: () =>
|
|
360
|
-
writeChannelTypeZ: () =>
|
|
361
|
-
writeChannelZ: () =>
|
|
362
|
-
writeConfigZ: () =>
|
|
363
|
-
}),
|
|
1409
|
+
], Yr = b.enum(Jr), Xr = b.discriminatedUnion("type", [
|
|
1410
|
+
Wr,
|
|
1411
|
+
Gr,
|
|
1412
|
+
Kr,
|
|
1413
|
+
qr
|
|
1414
|
+
]), Zr = {
|
|
1415
|
+
coil: Wr,
|
|
1416
|
+
discrete_input: Gr,
|
|
1417
|
+
holding_register: Kr,
|
|
1418
|
+
input_register: qr
|
|
1419
|
+
}, Qr = Hr.extend({ type: b.literal("coil") }), $r = Hr.extend(Vr.shape).extend({ type: b.literal("holding_register") }), ei = ["coil", "holding_register"], ti = b.enum(ei), ni = b.discriminatedUnion("type", [Qr, $r]), ri = {
|
|
1420
|
+
coil: Qr,
|
|
1421
|
+
holding_register: $r
|
|
1422
|
+
}, ii = o.extend({
|
|
1423
|
+
device: v.default(""),
|
|
1424
|
+
channels: Xr.array().default(() => [])
|
|
1425
|
+
}), ai = De.extend({ channels: ni.array().default(() => []) }), oi = /* @__PURE__ */ a({
|
|
1426
|
+
READ_CHANNEL_SCHEMAS: () => Zr,
|
|
1427
|
+
READ_CHANNEL_TYPES: () => Jr,
|
|
1428
|
+
WRITE_CHANNEL_SCHEMAS: () => ri,
|
|
1429
|
+
WRITE_CHANNEL_TYPES: () => ei,
|
|
1430
|
+
baseReadChannelZ: () => P,
|
|
1431
|
+
baseWriteChannelZ: () => Hr,
|
|
1432
|
+
coilReadChannelZ: () => Wr,
|
|
1433
|
+
coilWriteChannelZ: () => Qr,
|
|
1434
|
+
discreteInputReadChannelZ: () => Gr,
|
|
1435
|
+
holdingRegisterReadChannelZ: () => Kr,
|
|
1436
|
+
holdingRegisterWriteChannelZ: () => $r,
|
|
1437
|
+
inputRegisterReadChannelZ: () => qr,
|
|
1438
|
+
readChannelTypeZ: () => Yr,
|
|
1439
|
+
readChannelZ: () => Xr,
|
|
1440
|
+
readConfigZ: () => ii,
|
|
1441
|
+
registerValueZ: () => Vr,
|
|
1442
|
+
scanConfigZ: () => Ur,
|
|
1443
|
+
writeChannelTypeZ: () => ti,
|
|
1444
|
+
writeChannelZ: () => ni,
|
|
1445
|
+
writeConfigZ: () => ai
|
|
1446
|
+
}), si = [
|
|
364
1447
|
"Cfg_Default",
|
|
365
1448
|
"RSE",
|
|
366
1449
|
"NRSE",
|
|
367
1450
|
"Diff",
|
|
368
1451
|
"PseudoDiff"
|
|
369
|
-
],
|
|
1452
|
+
], ci = b.enum(si), li = [
|
|
370
1453
|
"Internal",
|
|
371
1454
|
"External",
|
|
372
1455
|
"None"
|
|
373
|
-
],
|
|
1456
|
+
], ui = b.enum(li), di = [
|
|
374
1457
|
"FullBridge",
|
|
375
1458
|
"HalfBridge",
|
|
376
1459
|
"QuarterBridge"
|
|
377
|
-
],
|
|
1460
|
+
], fi = b.enum(di), pi = ["mVoltsPerVolt", "VoltsPerVolt"], F = b.enum(pi), mi = [
|
|
378
1461
|
"2Wire",
|
|
379
1462
|
"3Wire",
|
|
380
1463
|
"4Wire"
|
|
381
|
-
],
|
|
1464
|
+
], hi = b.enum(mi), gi = [
|
|
382
1465
|
"AHighBHigh",
|
|
383
1466
|
"AHighBLow",
|
|
384
1467
|
"ALowBHigh",
|
|
385
1468
|
"ALowBLow"
|
|
386
|
-
],
|
|
1469
|
+
], _i = b.enum(gi), vi = /* @__PURE__ */ "Volts.Amps.DegF.DegC.DegR.Kelvins.Strain.Ohms.Hz.Seconds.Meters.Inches.Degrees.Radians.g.MetersPerSecondSquared.Newtons.Pounds.KilogramForce.PoundsPerSquareInch.Bar.Pascals.VoltsPerVolt.mVoltsPerVolt.NewtonMeters.InchPounds.InchOunces.FootPounds".split("."), I = b.enum(vi), yi = ["mVoltsPerG", "VoltsPerG"], bi = b.enum(yi), xi = [
|
|
387
1470
|
"g",
|
|
388
1471
|
"MetersPerSecondSquared",
|
|
389
1472
|
"InchesPerSecondSquared"
|
|
390
|
-
],
|
|
1473
|
+
], Si = b.enum(xi), Ci = [
|
|
391
1474
|
"Newtons",
|
|
392
1475
|
"Pounds",
|
|
393
1476
|
"KilogramForce"
|
|
394
|
-
],
|
|
1477
|
+
], L = b.enum(Ci), wi = [
|
|
395
1478
|
"Default",
|
|
396
1479
|
"Internal",
|
|
397
1480
|
"External"
|
|
398
|
-
],
|
|
1481
|
+
], Ti = b.enum(wi), Ei = ["mVoltsPerNewton", "mVoltsPerPound"], Di = b.enum(Ei), Oi = [
|
|
399
1482
|
"PoundsPerSquareInch",
|
|
400
1483
|
"Pascals",
|
|
401
1484
|
"Bar"
|
|
402
|
-
],
|
|
1485
|
+
], R = b.enum(Oi), ki = [
|
|
403
1486
|
"NewtonMeters",
|
|
404
1487
|
"InchOunces",
|
|
405
1488
|
"InchPounds",
|
|
406
1489
|
"FootPounds"
|
|
407
|
-
],
|
|
1490
|
+
], z = b.enum(ki), Ai = [
|
|
408
1491
|
"DegC",
|
|
409
1492
|
"DegF",
|
|
410
1493
|
"Kelvins",
|
|
411
1494
|
"DegR"
|
|
412
|
-
],
|
|
1495
|
+
], B = b.enum(Ai), ji = [
|
|
413
1496
|
"Pt3750",
|
|
414
1497
|
"Pt3851",
|
|
415
1498
|
"Pt3911",
|
|
416
1499
|
"Pt3916",
|
|
417
1500
|
"Pt3920",
|
|
418
1501
|
"Pt3928"
|
|
419
|
-
],
|
|
1502
|
+
], Mi = b.enum(ji), Ni = [
|
|
420
1503
|
"FullBridgeI",
|
|
421
1504
|
"FullBridgeII",
|
|
422
1505
|
"FullBridgeIII",
|
|
@@ -424,7 +1507,7 @@ var l = o.object({
|
|
|
424
1507
|
"HalfBridgeII",
|
|
425
1508
|
"QuarterBridgeI",
|
|
426
1509
|
"QuarterBridgeII"
|
|
427
|
-
],
|
|
1510
|
+
], Pi = b.enum(Ni), Fi = [
|
|
428
1511
|
"J",
|
|
429
1512
|
"K",
|
|
430
1513
|
"N",
|
|
@@ -433,443 +1516,443 @@ var l = o.object({
|
|
|
433
1516
|
"T",
|
|
434
1517
|
"B",
|
|
435
1518
|
"E"
|
|
436
|
-
],
|
|
1519
|
+
], Ii = b.enum(Fi), Li = ["MetersPerSecond", "InchesPerSecond"], Ri = b.enum(Li), zi = ["MillivoltsPerMillimeterPerSecond", "MilliVoltsPerInchPerSecond"], Bi = b.enum(zi), Vi = ["Coulombs", "PicoCoulombs"], Hi = b.enum(Vi), Ui = ["Rising", "Falling"], V = b.enum(Ui), Wi = [
|
|
437
1520
|
"LowFreq1Ctr",
|
|
438
1521
|
"HighFreq2Ctr",
|
|
439
1522
|
"LargeRng2Ctr",
|
|
440
1523
|
"DynamicAvg"
|
|
441
|
-
],
|
|
1524
|
+
], Gi = b.enum(Wi), Ki = ["Hz", "Ticks"], qi = b.enum(Ki), Ji = ["Seconds", "Ticks"], H = b.enum(Ji), Yi = [
|
|
442
1525
|
"CountUp",
|
|
443
1526
|
"CountDown",
|
|
444
1527
|
"ExternallyControlled"
|
|
445
|
-
],
|
|
1528
|
+
], Xi = b.enum(Yi), Zi = [
|
|
446
1529
|
"X1",
|
|
447
1530
|
"X2",
|
|
448
1531
|
"X4",
|
|
449
1532
|
"TwoPulse"
|
|
450
|
-
],
|
|
1533
|
+
], U = b.enum(Zi), Qi = ["m/s", "in/s"], $i = b.enum(Qi), ea = [
|
|
451
1534
|
"RPM",
|
|
452
1535
|
"Radians/s",
|
|
453
1536
|
"Degrees/s"
|
|
454
|
-
],
|
|
1537
|
+
], ta = b.enum(ea), na = [
|
|
455
1538
|
"Meters",
|
|
456
1539
|
"Inches",
|
|
457
1540
|
"Ticks"
|
|
458
|
-
],
|
|
1541
|
+
], ra = b.enum(na), ia = [
|
|
459
1542
|
"Degrees",
|
|
460
1543
|
"Radians",
|
|
461
1544
|
"Ticks"
|
|
462
|
-
],
|
|
1545
|
+
], aa = b.enum(ia), oa = [
|
|
463
1546
|
"Sine",
|
|
464
1547
|
"Triangle",
|
|
465
1548
|
"Square",
|
|
466
1549
|
"Sawtooth"
|
|
467
|
-
],
|
|
1550
|
+
], sa = b.enum(oa), ca = [
|
|
468
1551
|
"PicoCoulombsPerG",
|
|
469
1552
|
"PicoCoulombsPerMetersPerSecondSquared",
|
|
470
1553
|
"PicoCoulombsPerInchesPerSecondSquared"
|
|
471
|
-
],
|
|
472
|
-
minVal:
|
|
473
|
-
maxVal:
|
|
474
|
-
}),
|
|
475
|
-
currentExcitSource:
|
|
476
|
-
currentExcitVal:
|
|
477
|
-
}),
|
|
478
|
-
voltageExcitSource:
|
|
479
|
-
voltageExcitVal:
|
|
480
|
-
}),
|
|
481
|
-
bridgeConfig:
|
|
482
|
-
nominalBridgeResistance:
|
|
483
|
-
}),
|
|
484
|
-
forwardCoeffs:
|
|
485
|
-
reverseCoeffs:
|
|
486
|
-
electricalUnits:
|
|
487
|
-
}),
|
|
488
|
-
electricalVals:
|
|
489
|
-
electricalUnits:
|
|
490
|
-
physicalVals:
|
|
491
|
-
}),
|
|
492
|
-
firstElectricalVal:
|
|
493
|
-
secondElectricalVal:
|
|
494
|
-
electricalUnits:
|
|
495
|
-
firstPhysicalVal:
|
|
496
|
-
secondPhysicalVal:
|
|
497
|
-
}),
|
|
498
|
-
key:
|
|
499
|
-
name:
|
|
500
|
-
disabled:
|
|
501
|
-
channel:
|
|
502
|
-
port:
|
|
503
|
-
device:
|
|
504
|
-
}),
|
|
505
|
-
zIndexEnabled:
|
|
506
|
-
zIndexVal:
|
|
507
|
-
zIndexPhase:
|
|
508
|
-
terminalZ:
|
|
509
|
-
}),
|
|
510
|
-
key:
|
|
511
|
-
name:
|
|
512
|
-
disabled:
|
|
513
|
-
channel:
|
|
514
|
-
port:
|
|
515
|
-
device:
|
|
516
|
-
}),
|
|
517
|
-
key:
|
|
518
|
-
disabled:
|
|
519
|
-
cmdChannel:
|
|
520
|
-
stateChannel:
|
|
521
|
-
cmdChannelName:
|
|
522
|
-
stateChannelName:
|
|
523
|
-
port:
|
|
524
|
-
}),
|
|
525
|
-
key:
|
|
526
|
-
name:
|
|
527
|
-
disabled:
|
|
528
|
-
channel:
|
|
529
|
-
port:
|
|
530
|
-
line:
|
|
531
|
-
}),
|
|
532
|
-
key:
|
|
533
|
-
disabled:
|
|
534
|
-
cmdChannel:
|
|
535
|
-
stateChannel:
|
|
536
|
-
cmdChannelName:
|
|
537
|
-
stateChannelName:
|
|
538
|
-
port:
|
|
539
|
-
line:
|
|
540
|
-
}),
|
|
541
|
-
source:
|
|
542
|
-
val:
|
|
543
|
-
}),
|
|
544
|
-
source:
|
|
545
|
-
port:
|
|
546
|
-
}),
|
|
1554
|
+
], la = b.enum(ca), W = b.object({
|
|
1555
|
+
minVal: b.number().default(0),
|
|
1556
|
+
maxVal: b.number().default(1)
|
|
1557
|
+
}), G = b.object({ terminalConfig: ci.default("Cfg_Default") }), K = b.object({ sensitivity: b.number().default(0) }), q = b.object({
|
|
1558
|
+
currentExcitSource: ui.default("Internal"),
|
|
1559
|
+
currentExcitVal: b.number().default(0)
|
|
1560
|
+
}), J = b.object({
|
|
1561
|
+
voltageExcitSource: ui.default("Internal"),
|
|
1562
|
+
voltageExcitVal: b.number().default(0)
|
|
1563
|
+
}), Y = b.object({
|
|
1564
|
+
bridgeConfig: fi.default("FullBridge"),
|
|
1565
|
+
nominalBridgeResistance: b.number().default(1)
|
|
1566
|
+
}), ua = b.object({
|
|
1567
|
+
forwardCoeffs: b.number().array().default(() => []),
|
|
1568
|
+
reverseCoeffs: b.number().array().default(() => []),
|
|
1569
|
+
electricalUnits: F.default("mVoltsPerVolt")
|
|
1570
|
+
}), X = b.object({ resistanceConfig: hi.default("2Wire") }), da = b.object({
|
|
1571
|
+
electricalVals: b.number().array().default(() => []),
|
|
1572
|
+
electricalUnits: F.default("mVoltsPerVolt"),
|
|
1573
|
+
physicalVals: b.number().array().default(() => [])
|
|
1574
|
+
}), fa = b.object({
|
|
1575
|
+
firstElectricalVal: b.number().default(0),
|
|
1576
|
+
secondElectricalVal: b.number().default(1),
|
|
1577
|
+
electricalUnits: F.default("mVoltsPerVolt"),
|
|
1578
|
+
firstPhysicalVal: b.number().default(0),
|
|
1579
|
+
secondPhysicalVal: b.number().default(1)
|
|
1580
|
+
}), Z = b.object({
|
|
1581
|
+
key: b.string().default(x.create),
|
|
1582
|
+
name: b.string().default(""),
|
|
1583
|
+
disabled: b.boolean().default(!1),
|
|
1584
|
+
channel: y.default(0),
|
|
1585
|
+
port: b.int32().default(0),
|
|
1586
|
+
device: v.default("")
|
|
1587
|
+
}), pa = b.object({
|
|
1588
|
+
zIndexEnabled: b.boolean().default(!1),
|
|
1589
|
+
zIndexVal: b.number().default(0),
|
|
1590
|
+
zIndexPhase: _i.default("AHighBHigh"),
|
|
1591
|
+
terminalZ: b.string().default("")
|
|
1592
|
+
}), Q = b.object({
|
|
1593
|
+
key: b.string().default(x.create),
|
|
1594
|
+
name: b.string().default(""),
|
|
1595
|
+
disabled: b.boolean().default(!1),
|
|
1596
|
+
channel: y.default(0),
|
|
1597
|
+
port: b.int32().default(0),
|
|
1598
|
+
device: v.default("")
|
|
1599
|
+
}), ma = b.object({
|
|
1600
|
+
key: b.string().default(x.create),
|
|
1601
|
+
disabled: b.boolean().default(!1),
|
|
1602
|
+
cmdChannel: y.default(0),
|
|
1603
|
+
stateChannel: y.default(0),
|
|
1604
|
+
cmdChannelName: b.string().default(""),
|
|
1605
|
+
stateChannelName: b.string().default(""),
|
|
1606
|
+
port: b.int32().default(0)
|
|
1607
|
+
}), ha = b.object({
|
|
1608
|
+
key: b.string().default(x.create),
|
|
1609
|
+
name: b.string().default(""),
|
|
1610
|
+
disabled: b.boolean().default(!1),
|
|
1611
|
+
channel: y.default(0),
|
|
1612
|
+
port: b.int32().default(0),
|
|
1613
|
+
line: b.int32().default(0)
|
|
1614
|
+
}), ga = b.object({
|
|
1615
|
+
key: b.string().default(x.create),
|
|
1616
|
+
disabled: b.boolean().default(!1),
|
|
1617
|
+
cmdChannel: y.default(0),
|
|
1618
|
+
stateChannel: y.default(0),
|
|
1619
|
+
cmdChannelName: b.string().default(""),
|
|
1620
|
+
stateChannelName: b.string().default(""),
|
|
1621
|
+
port: b.int32().default(0),
|
|
1622
|
+
line: b.int32().default(0)
|
|
1623
|
+
}), _a = De.extend({ stateRate: b.number().default(10) }), va = i.extend({ ignoredModels: b.string().array().default(["^cRIO.*", "^nown.*"]) }), ya = b.object({ source: b.literal("built_in") }), ba = b.object({
|
|
1624
|
+
source: b.literal("const_val"),
|
|
1625
|
+
val: b.number().default(0)
|
|
1626
|
+
}), xa = b.object({
|
|
1627
|
+
source: b.literal("chan"),
|
|
1628
|
+
port: b.int32().default(0)
|
|
1629
|
+
}), Sa = [
|
|
547
1630
|
"built_in",
|
|
548
1631
|
"const_val",
|
|
549
1632
|
"chan"
|
|
550
|
-
],
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
]),
|
|
555
|
-
built_in:
|
|
556
|
-
const_val:
|
|
557
|
-
chan:
|
|
558
|
-
},
|
|
559
|
-
type:
|
|
560
|
-
slope:
|
|
561
|
-
yIntercept:
|
|
562
|
-
preScaledUnits:
|
|
563
|
-
scaledUnits:
|
|
564
|
-
}),
|
|
565
|
-
type:
|
|
566
|
-
preScaledMin:
|
|
567
|
-
preScaledMax:
|
|
568
|
-
scaledMin:
|
|
569
|
-
scaledMax:
|
|
570
|
-
preScaledUnits:
|
|
571
|
-
scaledUnits:
|
|
572
|
-
}),
|
|
573
|
-
type:
|
|
574
|
-
preScaledVals:
|
|
575
|
-
scaledVals:
|
|
576
|
-
preScaledUnits:
|
|
577
|
-
scaledUnits:
|
|
578
|
-
}),
|
|
579
|
-
type:
|
|
580
|
-
forwardCoeffs:
|
|
581
|
-
reverseCoeffs:
|
|
582
|
-
preScaledUnits:
|
|
583
|
-
scaledUnits:
|
|
584
|
-
}),
|
|
1633
|
+
], Ca = b.enum(Sa), wa = b.discriminatedUnion("source", [
|
|
1634
|
+
ya,
|
|
1635
|
+
ba,
|
|
1636
|
+
xa
|
|
1637
|
+
]), Ta = {
|
|
1638
|
+
built_in: ya,
|
|
1639
|
+
const_val: ba,
|
|
1640
|
+
chan: xa
|
|
1641
|
+
}, Ea = b.object({
|
|
1642
|
+
type: b.literal("linear"),
|
|
1643
|
+
slope: b.number().default(1),
|
|
1644
|
+
yIntercept: b.number().default(0),
|
|
1645
|
+
preScaledUnits: I.default("Volts"),
|
|
1646
|
+
scaledUnits: b.string().default("Volts")
|
|
1647
|
+
}), Da = b.object({
|
|
1648
|
+
type: b.literal("map"),
|
|
1649
|
+
preScaledMin: b.number().default(0),
|
|
1650
|
+
preScaledMax: b.number().default(1),
|
|
1651
|
+
scaledMin: b.number().default(0),
|
|
1652
|
+
scaledMax: b.number().default(1),
|
|
1653
|
+
preScaledUnits: I.default("Volts"),
|
|
1654
|
+
scaledUnits: b.string().default("Volts")
|
|
1655
|
+
}), Oa = b.object({
|
|
1656
|
+
type: b.literal("table"),
|
|
1657
|
+
preScaledVals: b.number().array().default(() => []),
|
|
1658
|
+
scaledVals: b.number().array().default(() => []),
|
|
1659
|
+
preScaledUnits: I.default("Volts"),
|
|
1660
|
+
scaledUnits: b.string().default("Volts")
|
|
1661
|
+
}), ka = b.object({
|
|
1662
|
+
type: b.literal("polynomial"),
|
|
1663
|
+
forwardCoeffs: b.number().array().default(() => []),
|
|
1664
|
+
reverseCoeffs: b.number().array().default(() => []),
|
|
1665
|
+
preScaledUnits: I.default("Volts"),
|
|
1666
|
+
scaledUnits: b.string().default("Volts")
|
|
1667
|
+
}), Aa = b.object({ type: b.literal("none") }), ja = [
|
|
585
1668
|
"linear",
|
|
586
1669
|
"map",
|
|
587
1670
|
"table",
|
|
588
1671
|
"polynomial",
|
|
589
1672
|
"none"
|
|
590
|
-
],
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
]),
|
|
597
|
-
linear:
|
|
598
|
-
map:
|
|
599
|
-
table:
|
|
600
|
-
polynomial:
|
|
601
|
-
none:
|
|
602
|
-
},
|
|
603
|
-
device:
|
|
604
|
-
channels:
|
|
605
|
-
}),
|
|
606
|
-
type:
|
|
607
|
-
units:
|
|
608
|
-
sensitivityUnits:
|
|
609
|
-
}),
|
|
610
|
-
type:
|
|
611
|
-
units:
|
|
612
|
-
}),
|
|
613
|
-
type:
|
|
614
|
-
shuntResistorLoc:
|
|
615
|
-
extShuntResistorVal:
|
|
616
|
-
}),
|
|
617
|
-
type:
|
|
618
|
-
units:
|
|
619
|
-
physicalUnits:
|
|
620
|
-
}),
|
|
621
|
-
type:
|
|
622
|
-
units:
|
|
623
|
-
physicalUnits:
|
|
624
|
-
}),
|
|
625
|
-
type:
|
|
626
|
-
units:
|
|
627
|
-
sensitivityUnits:
|
|
628
|
-
}),
|
|
629
|
-
type:
|
|
630
|
-
micSensitivity:
|
|
631
|
-
maxSndPressLevel:
|
|
632
|
-
}),
|
|
633
|
-
type:
|
|
634
|
-
units:
|
|
635
|
-
physicalUnits:
|
|
636
|
-
}),
|
|
637
|
-
type:
|
|
638
|
-
units:
|
|
639
|
-
physicalUnits:
|
|
640
|
-
}),
|
|
641
|
-
type:
|
|
642
|
-
units:
|
|
643
|
-
rtdType:
|
|
644
|
-
r0:
|
|
645
|
-
}),
|
|
646
|
-
type:
|
|
647
|
-
strainConfig:
|
|
648
|
-
gageFactor:
|
|
649
|
-
initialBridgeVoltage:
|
|
650
|
-
nominalGageResistance:
|
|
651
|
-
poissonRatio:
|
|
652
|
-
leadWireResistance:
|
|
653
|
-
}),
|
|
654
|
-
type:
|
|
655
|
-
units:
|
|
656
|
-
}),
|
|
657
|
-
type:
|
|
658
|
-
units:
|
|
659
|
-
thermocoupleType:
|
|
660
|
-
cjc:
|
|
661
|
-
}),
|
|
662
|
-
type:
|
|
663
|
-
units:
|
|
664
|
-
physicalUnits:
|
|
665
|
-
}),
|
|
666
|
-
type:
|
|
667
|
-
units:
|
|
668
|
-
physicalUnits:
|
|
669
|
-
}),
|
|
670
|
-
type:
|
|
671
|
-
units:
|
|
672
|
-
sensitivityUnits:
|
|
673
|
-
}),
|
|
674
|
-
type:
|
|
675
|
-
units:
|
|
676
|
-
sensitivityUnits:
|
|
677
|
-
scaledByExcitation:
|
|
678
|
-
}),
|
|
679
|
-
type:
|
|
680
|
-
units:
|
|
681
|
-
sensitivityUnits:
|
|
682
|
-
}),
|
|
683
|
-
type:
|
|
684
|
-
units:
|
|
685
|
-
}),
|
|
686
|
-
type:
|
|
687
|
-
shuntResistorLoc:
|
|
688
|
-
extShuntResistorVal:
|
|
689
|
-
}),
|
|
690
|
-
type:
|
|
691
|
-
units:
|
|
692
|
-
physicalUnits:
|
|
693
|
-
}),
|
|
694
|
-
type:
|
|
695
|
-
thresholdLevel:
|
|
696
|
-
hysteresis:
|
|
697
|
-
}),
|
|
698
|
-
type:
|
|
699
|
-
units:
|
|
700
|
-
physicalUnits:
|
|
701
|
-
}),
|
|
702
|
-
type:
|
|
703
|
-
units:
|
|
704
|
-
a:
|
|
705
|
-
b:
|
|
706
|
-
c:
|
|
707
|
-
}),
|
|
708
|
-
type:
|
|
709
|
-
units:
|
|
710
|
-
a:
|
|
711
|
-
b:
|
|
712
|
-
c:
|
|
713
|
-
r1:
|
|
714
|
-
}),
|
|
715
|
-
type:
|
|
716
|
-
units:
|
|
717
|
-
physicalUnits:
|
|
718
|
-
}),
|
|
719
|
-
type:
|
|
720
|
-
bridgeConfig:
|
|
721
|
-
scaledByExcitation:
|
|
722
|
-
}),
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
]),
|
|
754
|
-
ai_voltage:
|
|
755
|
-
ai_accel:
|
|
756
|
-
ai_bridge:
|
|
757
|
-
ai_current:
|
|
758
|
-
ai_force_bridge_table:
|
|
759
|
-
ai_force_bridge_two_point_lin:
|
|
760
|
-
ai_force_iepe:
|
|
761
|
-
ai_microphone:
|
|
762
|
-
ai_pressure_bridge_table:
|
|
763
|
-
ai_pressure_bridge_two_point_lin:
|
|
764
|
-
ai_resistance:
|
|
765
|
-
ai_rtd:
|
|
766
|
-
ai_strain_gauge:
|
|
767
|
-
ai_temp_builtin:
|
|
768
|
-
ai_thermocouple:
|
|
769
|
-
ai_torque_bridge_table:
|
|
770
|
-
ai_torque_bridge_two_point_lin:
|
|
771
|
-
ai_velocity_iepe:
|
|
772
|
-
ai_accel_4_wire_dc_voltage:
|
|
773
|
-
ai_accel_charge:
|
|
774
|
-
ai_charge:
|
|
775
|
-
ai_current_rms:
|
|
776
|
-
ai_force_bridge_polynomial:
|
|
777
|
-
ai_freq_voltage:
|
|
778
|
-
ai_pressure_bridge_polynomial:
|
|
779
|
-
ai_thermistor_iex:
|
|
780
|
-
ai_thermistor_vex:
|
|
781
|
-
ai_torque_bridge_polynomial:
|
|
782
|
-
ai_voltage_rms:
|
|
783
|
-
ai_voltage_with_excit:
|
|
784
|
-
},
|
|
785
|
-
type:
|
|
786
|
-
minVal:
|
|
787
|
-
maxVal:
|
|
788
|
-
units:
|
|
789
|
-
edge:
|
|
790
|
-
measMethod:
|
|
791
|
-
measTime:
|
|
792
|
-
divisor:
|
|
793
|
-
terminal:
|
|
794
|
-
}),
|
|
795
|
-
type:
|
|
796
|
-
activeEdge:
|
|
797
|
-
countDirection:
|
|
798
|
-
initialCount:
|
|
799
|
-
terminal:
|
|
800
|
-
}),
|
|
801
|
-
type:
|
|
802
|
-
minVal:
|
|
803
|
-
maxVal:
|
|
804
|
-
units:
|
|
805
|
-
startingEdge:
|
|
806
|
-
measMethod:
|
|
807
|
-
measTime:
|
|
808
|
-
divisor:
|
|
809
|
-
terminal:
|
|
810
|
-
}),
|
|
811
|
-
type:
|
|
812
|
-
minVal:
|
|
813
|
-
maxVal:
|
|
814
|
-
units:
|
|
815
|
-
startingEdge:
|
|
816
|
-
terminal:
|
|
817
|
-
}),
|
|
818
|
-
type:
|
|
819
|
-
minVal:
|
|
820
|
-
maxVal:
|
|
821
|
-
units:
|
|
822
|
-
terminal:
|
|
823
|
-
}),
|
|
824
|
-
type:
|
|
825
|
-
minVal:
|
|
826
|
-
maxVal:
|
|
827
|
-
units:
|
|
828
|
-
firstEdge:
|
|
829
|
-
secondEdge:
|
|
830
|
-
firstTerminal:
|
|
831
|
-
secondTerminal:
|
|
832
|
-
}),
|
|
833
|
-
type:
|
|
834
|
-
minVal:
|
|
835
|
-
maxVal:
|
|
836
|
-
units:
|
|
837
|
-
decodingType:
|
|
838
|
-
distPerPulse:
|
|
839
|
-
terminalA:
|
|
840
|
-
terminalB:
|
|
841
|
-
}),
|
|
842
|
-
type:
|
|
843
|
-
minVal:
|
|
844
|
-
maxVal:
|
|
845
|
-
units:
|
|
846
|
-
decodingType:
|
|
847
|
-
pulsesPerRev:
|
|
848
|
-
terminalA:
|
|
849
|
-
terminalB:
|
|
850
|
-
}),
|
|
851
|
-
type:
|
|
852
|
-
units:
|
|
853
|
-
decodingType:
|
|
854
|
-
distPerPulse:
|
|
855
|
-
initialPos:
|
|
856
|
-
terminalA:
|
|
857
|
-
terminalB:
|
|
858
|
-
}),
|
|
859
|
-
type:
|
|
860
|
-
units:
|
|
861
|
-
decodingType:
|
|
862
|
-
pulsesPerRev:
|
|
863
|
-
initialAngle:
|
|
864
|
-
terminalA:
|
|
865
|
-
terminalB:
|
|
866
|
-
}),
|
|
867
|
-
type:
|
|
868
|
-
minVal:
|
|
869
|
-
maxVal:
|
|
870
|
-
activeEdge:
|
|
871
|
-
terminal:
|
|
872
|
-
}),
|
|
1673
|
+
], Ma = b.enum(ja), Na = b.discriminatedUnion("type", [
|
|
1674
|
+
Ea,
|
|
1675
|
+
Da,
|
|
1676
|
+
Oa,
|
|
1677
|
+
ka,
|
|
1678
|
+
Aa
|
|
1679
|
+
]), Pa = {
|
|
1680
|
+
linear: Ea,
|
|
1681
|
+
map: Da,
|
|
1682
|
+
table: Oa,
|
|
1683
|
+
polynomial: ka,
|
|
1684
|
+
none: Aa
|
|
1685
|
+
}, Fa = o.extend({
|
|
1686
|
+
device: v.default(""),
|
|
1687
|
+
channels: ha.array().default(() => [])
|
|
1688
|
+
}), Ia = _a.extend({ channels: ga.array().default(() => []) }), $ = b.object({ customScale: Na.prefault({ type: "none" }) }), La = Z.extend(W.shape).extend(G.shape).extend($.shape).extend({ type: b.literal("ai_voltage") }), Ra = Z.extend(W.shape).extend(G.shape).extend(K.shape).extend(q.shape).extend($.shape).extend({
|
|
1689
|
+
type: b.literal("ai_accel"),
|
|
1690
|
+
units: Si.default("g"),
|
|
1691
|
+
sensitivityUnits: bi.default("mVoltsPerG")
|
|
1692
|
+
}), za = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend($.shape).extend({
|
|
1693
|
+
type: b.literal("ai_bridge"),
|
|
1694
|
+
units: F.default("mVoltsPerVolt")
|
|
1695
|
+
}), Ba = Z.extend(W.shape).extend(G.shape).extend($.shape).extend({
|
|
1696
|
+
type: b.literal("ai_current"),
|
|
1697
|
+
shuntResistorLoc: Ti.default("Default"),
|
|
1698
|
+
extShuntResistorVal: b.number().default(1)
|
|
1699
|
+
}), Va = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(da.shape).extend($.shape).extend({
|
|
1700
|
+
type: b.literal("ai_force_bridge_table"),
|
|
1701
|
+
units: L.default("Newtons"),
|
|
1702
|
+
physicalUnits: L.default("Newtons")
|
|
1703
|
+
}), Ha = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(fa.shape).extend($.shape).extend({
|
|
1704
|
+
type: b.literal("ai_force_bridge_two_point_lin"),
|
|
1705
|
+
units: L.default("Newtons"),
|
|
1706
|
+
physicalUnits: L.default("Newtons")
|
|
1707
|
+
}), Ua = Z.extend(W.shape).extend(G.shape).extend(K.shape).extend(q.shape).extend($.shape).extend({
|
|
1708
|
+
type: b.literal("ai_force_iepe"),
|
|
1709
|
+
units: L.default("Newtons"),
|
|
1710
|
+
sensitivityUnits: Di.default("mVoltsPerNewton")
|
|
1711
|
+
}), Wa = Z.extend(G.shape).extend(q.shape).extend($.shape).extend({
|
|
1712
|
+
type: b.literal("ai_microphone"),
|
|
1713
|
+
micSensitivity: b.number().default(0),
|
|
1714
|
+
maxSndPressLevel: b.number().default(0)
|
|
1715
|
+
}), Ga = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(da.shape).extend($.shape).extend({
|
|
1716
|
+
type: b.literal("ai_pressure_bridge_table"),
|
|
1717
|
+
units: R.default("PoundsPerSquareInch"),
|
|
1718
|
+
physicalUnits: R.default("PoundsPerSquareInch")
|
|
1719
|
+
}), Ka = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(fa.shape).extend($.shape).extend({
|
|
1720
|
+
type: b.literal("ai_pressure_bridge_two_point_lin"),
|
|
1721
|
+
units: R.default("PoundsPerSquareInch"),
|
|
1722
|
+
physicalUnits: R.default("PoundsPerSquareInch")
|
|
1723
|
+
}), qa = Z.extend(W.shape).extend(X.shape).extend(q.shape).extend($.shape).extend({ type: b.literal("ai_resistance") }), Ja = Z.extend(W.shape).extend(X.shape).extend(q.shape).extend({
|
|
1724
|
+
type: b.literal("ai_rtd"),
|
|
1725
|
+
units: B.default("DegC"),
|
|
1726
|
+
rtdType: Mi.default("Pt3750"),
|
|
1727
|
+
r0: b.number().default(0)
|
|
1728
|
+
}), Ya = Z.extend(W.shape).extend(J.shape).extend($.shape).extend({
|
|
1729
|
+
type: b.literal("ai_strain_gauge"),
|
|
1730
|
+
strainConfig: Pi.default("FullBridgeI"),
|
|
1731
|
+
gageFactor: b.number().default(0),
|
|
1732
|
+
initialBridgeVoltage: b.number().default(0),
|
|
1733
|
+
nominalGageResistance: b.number().default(0),
|
|
1734
|
+
poissonRatio: b.number().default(0),
|
|
1735
|
+
leadWireResistance: b.number().default(0)
|
|
1736
|
+
}), Xa = Z.omit({ port: !0 }).extend({
|
|
1737
|
+
type: b.literal("ai_temp_builtin"),
|
|
1738
|
+
units: B.default("DegC")
|
|
1739
|
+
}), Za = Z.extend(W.shape).extend({
|
|
1740
|
+
type: b.literal("ai_thermocouple"),
|
|
1741
|
+
units: B.default("DegC"),
|
|
1742
|
+
thermocoupleType: Ii.default("J"),
|
|
1743
|
+
cjc: wa.prefault({ source: "built_in" })
|
|
1744
|
+
}), Qa = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(da.shape).extend($.shape).extend({
|
|
1745
|
+
type: b.literal("ai_torque_bridge_table"),
|
|
1746
|
+
units: z.default("NewtonMeters"),
|
|
1747
|
+
physicalUnits: z.default("NewtonMeters")
|
|
1748
|
+
}), $a = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(fa.shape).extend($.shape).extend({
|
|
1749
|
+
type: b.literal("ai_torque_bridge_two_point_lin"),
|
|
1750
|
+
units: z.default("NewtonMeters"),
|
|
1751
|
+
physicalUnits: z.default("NewtonMeters")
|
|
1752
|
+
}), eo = Z.extend(W.shape).extend(G.shape).extend(K.shape).extend(q.shape).extend($.shape).extend({
|
|
1753
|
+
type: b.literal("ai_velocity_iepe"),
|
|
1754
|
+
units: Ri.default("MetersPerSecond"),
|
|
1755
|
+
sensitivityUnits: Bi.default("MillivoltsPerMillimeterPerSecond")
|
|
1756
|
+
}), to = Z.extend(W.shape).extend(G.shape).extend(K.shape).extend(J.shape).extend($.shape).extend({
|
|
1757
|
+
type: b.literal("ai_accel_4_wire_dc_voltage"),
|
|
1758
|
+
units: Si.default("g"),
|
|
1759
|
+
sensitivityUnits: bi.default("mVoltsPerG"),
|
|
1760
|
+
scaledByExcitation: b.boolean().default(!1)
|
|
1761
|
+
}), no = Z.extend(W.shape).extend(G.shape).extend(K.shape).extend($.shape).extend({
|
|
1762
|
+
type: b.literal("ai_accel_charge"),
|
|
1763
|
+
units: Si.default("g"),
|
|
1764
|
+
sensitivityUnits: la.default("PicoCoulombsPerG")
|
|
1765
|
+
}), ro = Z.extend(W.shape).extend(G.shape).extend($.shape).extend({
|
|
1766
|
+
type: b.literal("ai_charge"),
|
|
1767
|
+
units: Hi.default("Coulombs")
|
|
1768
|
+
}), io = Z.extend(W.shape).extend(G.shape).extend($.shape).extend({
|
|
1769
|
+
type: b.literal("ai_current_rms"),
|
|
1770
|
+
shuntResistorLoc: Ti.default("Default"),
|
|
1771
|
+
extShuntResistorVal: b.number().default(1)
|
|
1772
|
+
}), ao = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(ua.shape).extend($.shape).extend({
|
|
1773
|
+
type: b.literal("ai_force_bridge_polynomial"),
|
|
1774
|
+
units: L.default("Newtons"),
|
|
1775
|
+
physicalUnits: L.default("Newtons")
|
|
1776
|
+
}), oo = Z.extend(W.shape).extend($.shape).extend({
|
|
1777
|
+
type: b.literal("ai_freq_voltage"),
|
|
1778
|
+
thresholdLevel: b.number().default(0),
|
|
1779
|
+
hysteresis: b.number().default(0)
|
|
1780
|
+
}), so = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(ua.shape).extend($.shape).extend({
|
|
1781
|
+
type: b.literal("ai_pressure_bridge_polynomial"),
|
|
1782
|
+
units: R.default("PoundsPerSquareInch"),
|
|
1783
|
+
physicalUnits: R.default("PoundsPerSquareInch")
|
|
1784
|
+
}), co = Z.extend(W.shape).extend(X.shape).extend(q.shape).extend({
|
|
1785
|
+
type: b.literal("ai_thermistor_iex"),
|
|
1786
|
+
units: B.default("DegC"),
|
|
1787
|
+
a: b.number().default(0),
|
|
1788
|
+
b: b.number().default(0),
|
|
1789
|
+
c: b.number().default(0)
|
|
1790
|
+
}), lo = Z.extend(W.shape).extend(X.shape).extend(J.shape).extend({
|
|
1791
|
+
type: b.literal("ai_thermistor_vex"),
|
|
1792
|
+
units: B.default("DegC"),
|
|
1793
|
+
a: b.number().default(0),
|
|
1794
|
+
b: b.number().default(0),
|
|
1795
|
+
c: b.number().default(0),
|
|
1796
|
+
r1: b.number().default(0)
|
|
1797
|
+
}), uo = Z.extend(W.shape).extend(Y.shape).extend(J.shape).extend(ua.shape).extend($.shape).extend({
|
|
1798
|
+
type: b.literal("ai_torque_bridge_polynomial"),
|
|
1799
|
+
units: z.default("NewtonMeters"),
|
|
1800
|
+
physicalUnits: z.default("NewtonMeters")
|
|
1801
|
+
}), fo = Z.extend(W.shape).extend(G.shape).extend($.shape).extend({ type: b.literal("ai_voltage_rms") }), po = Z.extend(W.shape).extend(G.shape).extend(J.shape).extend($.shape).extend({
|
|
1802
|
+
type: b.literal("ai_voltage_with_excit"),
|
|
1803
|
+
bridgeConfig: fi.default("FullBridge"),
|
|
1804
|
+
scaledByExcitation: b.boolean().default(!1)
|
|
1805
|
+
}), mo = /* @__PURE__ */ "ai_voltage.ai_accel.ai_bridge.ai_current.ai_force_bridge_table.ai_force_bridge_two_point_lin.ai_force_iepe.ai_microphone.ai_pressure_bridge_table.ai_pressure_bridge_two_point_lin.ai_resistance.ai_rtd.ai_strain_gauge.ai_temp_builtin.ai_thermocouple.ai_torque_bridge_table.ai_torque_bridge_two_point_lin.ai_velocity_iepe.ai_accel_4_wire_dc_voltage.ai_accel_charge.ai_charge.ai_current_rms.ai_force_bridge_polynomial.ai_freq_voltage.ai_pressure_bridge_polynomial.ai_thermistor_iex.ai_thermistor_vex.ai_torque_bridge_polynomial.ai_voltage_rms.ai_voltage_with_excit".split("."), ho = b.enum(mo), go = b.discriminatedUnion("type", [
|
|
1806
|
+
La,
|
|
1807
|
+
Ra,
|
|
1808
|
+
za,
|
|
1809
|
+
Ba,
|
|
1810
|
+
Va,
|
|
1811
|
+
Ha,
|
|
1812
|
+
Ua,
|
|
1813
|
+
Wa,
|
|
1814
|
+
Ga,
|
|
1815
|
+
Ka,
|
|
1816
|
+
qa,
|
|
1817
|
+
Ja,
|
|
1818
|
+
Ya,
|
|
1819
|
+
Xa,
|
|
1820
|
+
Za,
|
|
1821
|
+
Qa,
|
|
1822
|
+
$a,
|
|
1823
|
+
eo,
|
|
1824
|
+
to,
|
|
1825
|
+
no,
|
|
1826
|
+
ro,
|
|
1827
|
+
io,
|
|
1828
|
+
ao,
|
|
1829
|
+
oo,
|
|
1830
|
+
so,
|
|
1831
|
+
co,
|
|
1832
|
+
lo,
|
|
1833
|
+
uo,
|
|
1834
|
+
fo,
|
|
1835
|
+
po
|
|
1836
|
+
]), _o = {
|
|
1837
|
+
ai_voltage: La,
|
|
1838
|
+
ai_accel: Ra,
|
|
1839
|
+
ai_bridge: za,
|
|
1840
|
+
ai_current: Ba,
|
|
1841
|
+
ai_force_bridge_table: Va,
|
|
1842
|
+
ai_force_bridge_two_point_lin: Ha,
|
|
1843
|
+
ai_force_iepe: Ua,
|
|
1844
|
+
ai_microphone: Wa,
|
|
1845
|
+
ai_pressure_bridge_table: Ga,
|
|
1846
|
+
ai_pressure_bridge_two_point_lin: Ka,
|
|
1847
|
+
ai_resistance: qa,
|
|
1848
|
+
ai_rtd: Ja,
|
|
1849
|
+
ai_strain_gauge: Ya,
|
|
1850
|
+
ai_temp_builtin: Xa,
|
|
1851
|
+
ai_thermocouple: Za,
|
|
1852
|
+
ai_torque_bridge_table: Qa,
|
|
1853
|
+
ai_torque_bridge_two_point_lin: $a,
|
|
1854
|
+
ai_velocity_iepe: eo,
|
|
1855
|
+
ai_accel_4_wire_dc_voltage: to,
|
|
1856
|
+
ai_accel_charge: no,
|
|
1857
|
+
ai_charge: ro,
|
|
1858
|
+
ai_current_rms: io,
|
|
1859
|
+
ai_force_bridge_polynomial: ao,
|
|
1860
|
+
ai_freq_voltage: oo,
|
|
1861
|
+
ai_pressure_bridge_polynomial: so,
|
|
1862
|
+
ai_thermistor_iex: co,
|
|
1863
|
+
ai_thermistor_vex: lo,
|
|
1864
|
+
ai_torque_bridge_polynomial: uo,
|
|
1865
|
+
ai_voltage_rms: fo,
|
|
1866
|
+
ai_voltage_with_excit: po
|
|
1867
|
+
}, vo = Q.extend($.shape).extend(W.shape).extend({
|
|
1868
|
+
type: b.literal("ci_frequency"),
|
|
1869
|
+
minVal: b.number().default(2),
|
|
1870
|
+
maxVal: b.number().default(100),
|
|
1871
|
+
units: qi.default("Hz"),
|
|
1872
|
+
edge: V.default("Rising"),
|
|
1873
|
+
measMethod: Gi.default("DynamicAvg"),
|
|
1874
|
+
measTime: b.number().default(6e-6),
|
|
1875
|
+
divisor: b.int32().default(4),
|
|
1876
|
+
terminal: b.string().default("")
|
|
1877
|
+
}), yo = Q.extend({
|
|
1878
|
+
type: b.literal("ci_edge_count"),
|
|
1879
|
+
activeEdge: V.default("Rising"),
|
|
1880
|
+
countDirection: Xi.default("CountUp"),
|
|
1881
|
+
initialCount: b.number().default(0),
|
|
1882
|
+
terminal: b.string().default("")
|
|
1883
|
+
}), bo = Q.extend($.shape).extend(W.shape).extend({
|
|
1884
|
+
type: b.literal("ci_period"),
|
|
1885
|
+
minVal: b.number().default(1e-6),
|
|
1886
|
+
maxVal: b.number().default(.1),
|
|
1887
|
+
units: H.default("Seconds"),
|
|
1888
|
+
startingEdge: V.default("Rising"),
|
|
1889
|
+
measMethod: Gi.default("DynamicAvg"),
|
|
1890
|
+
measTime: b.number().default(.001),
|
|
1891
|
+
divisor: b.int32().default(4),
|
|
1892
|
+
terminal: b.string().default("")
|
|
1893
|
+
}), xo = Q.extend($.shape).extend(W.shape).extend({
|
|
1894
|
+
type: b.literal("ci_pulse_width"),
|
|
1895
|
+
minVal: b.number().default(1e-6),
|
|
1896
|
+
maxVal: b.number().default(.1),
|
|
1897
|
+
units: H.default("Seconds"),
|
|
1898
|
+
startingEdge: V.default("Rising"),
|
|
1899
|
+
terminal: b.string().default("")
|
|
1900
|
+
}), So = Q.extend($.shape).extend(W.shape).extend({
|
|
1901
|
+
type: b.literal("ci_semi_period"),
|
|
1902
|
+
minVal: b.number().default(1e-6),
|
|
1903
|
+
maxVal: b.number().default(.1),
|
|
1904
|
+
units: H.default("Seconds"),
|
|
1905
|
+
terminal: b.string().default("")
|
|
1906
|
+
}), Co = Q.extend($.shape).extend(W.shape).extend({
|
|
1907
|
+
type: b.literal("ci_two_edge_sep"),
|
|
1908
|
+
minVal: b.number().default(1e-6),
|
|
1909
|
+
maxVal: b.number().default(1),
|
|
1910
|
+
units: H.default("Seconds"),
|
|
1911
|
+
firstEdge: V.default("Rising"),
|
|
1912
|
+
secondEdge: V.default("Falling"),
|
|
1913
|
+
firstTerminal: b.string().default(""),
|
|
1914
|
+
secondTerminal: b.string().default("")
|
|
1915
|
+
}), wo = Q.extend($.shape).extend(W.shape).extend({
|
|
1916
|
+
type: b.literal("ci_velocity_linear"),
|
|
1917
|
+
minVal: b.number().default(0),
|
|
1918
|
+
maxVal: b.number().default(1),
|
|
1919
|
+
units: $i.default("m/s"),
|
|
1920
|
+
decodingType: U.default("X4"),
|
|
1921
|
+
distPerPulse: b.number().default(.001),
|
|
1922
|
+
terminalA: b.string().default(""),
|
|
1923
|
+
terminalB: b.string().default("")
|
|
1924
|
+
}), To = Q.extend($.shape).extend(W.shape).extend({
|
|
1925
|
+
type: b.literal("ci_velocity_angular"),
|
|
1926
|
+
minVal: b.number().default(0),
|
|
1927
|
+
maxVal: b.number().default(1),
|
|
1928
|
+
units: ta.default("RPM"),
|
|
1929
|
+
decodingType: U.default("X4"),
|
|
1930
|
+
pulsesPerRev: b.number().default(24),
|
|
1931
|
+
terminalA: b.string().default(""),
|
|
1932
|
+
terminalB: b.string().default("")
|
|
1933
|
+
}), Eo = Q.extend($.shape).extend(pa.shape).extend({
|
|
1934
|
+
type: b.literal("ci_position_linear"),
|
|
1935
|
+
units: ra.default("Meters"),
|
|
1936
|
+
decodingType: U.default("X4"),
|
|
1937
|
+
distPerPulse: b.number().default(1e-6),
|
|
1938
|
+
initialPos: b.number().default(0),
|
|
1939
|
+
terminalA: b.string().default(""),
|
|
1940
|
+
terminalB: b.string().default("")
|
|
1941
|
+
}), Do = Q.extend($.shape).extend(pa.shape).extend({
|
|
1942
|
+
type: b.literal("ci_position_angular"),
|
|
1943
|
+
units: aa.default("Degrees"),
|
|
1944
|
+
decodingType: U.default("X4"),
|
|
1945
|
+
pulsesPerRev: b.number().default(24),
|
|
1946
|
+
initialAngle: b.number().default(0),
|
|
1947
|
+
terminalA: b.string().default(""),
|
|
1948
|
+
terminalB: b.string().default("")
|
|
1949
|
+
}), Oo = Q.extend($.shape).extend(W.shape).extend({
|
|
1950
|
+
type: b.literal("ci_duty_cycle"),
|
|
1951
|
+
minVal: b.number().default(2),
|
|
1952
|
+
maxVal: b.number().default(1e4),
|
|
1953
|
+
activeEdge: V.default("Rising"),
|
|
1954
|
+
terminal: b.string().default("")
|
|
1955
|
+
}), ko = [
|
|
873
1956
|
"ci_frequency",
|
|
874
1957
|
"ci_edge_count",
|
|
875
1958
|
"ci_period",
|
|
@@ -881,254 +1964,254 @@ var l = o.object({
|
|
|
881
1964
|
"ci_position_linear",
|
|
882
1965
|
"ci_position_angular",
|
|
883
1966
|
"ci_duty_cycle"
|
|
884
|
-
],
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
]),
|
|
897
|
-
ci_frequency:
|
|
898
|
-
ci_edge_count:
|
|
899
|
-
ci_period:
|
|
900
|
-
ci_pulse_width:
|
|
901
|
-
ci_semi_period:
|
|
902
|
-
ci_two_edge_sep:
|
|
903
|
-
ci_velocity_linear:
|
|
904
|
-
ci_velocity_angular:
|
|
905
|
-
ci_position_linear:
|
|
906
|
-
ci_position_angular:
|
|
907
|
-
ci_duty_cycle:
|
|
908
|
-
},
|
|
909
|
-
type:
|
|
910
|
-
waveType:
|
|
911
|
-
frequency:
|
|
912
|
-
amplitude:
|
|
913
|
-
offset:
|
|
914
|
-
}),
|
|
1967
|
+
], Ao = b.enum(ko), jo = b.discriminatedUnion("type", [
|
|
1968
|
+
vo,
|
|
1969
|
+
yo,
|
|
1970
|
+
bo,
|
|
1971
|
+
xo,
|
|
1972
|
+
So,
|
|
1973
|
+
Co,
|
|
1974
|
+
wo,
|
|
1975
|
+
To,
|
|
1976
|
+
Eo,
|
|
1977
|
+
Do,
|
|
1978
|
+
Oo
|
|
1979
|
+
]), Mo = {
|
|
1980
|
+
ci_frequency: vo,
|
|
1981
|
+
ci_edge_count: yo,
|
|
1982
|
+
ci_period: bo,
|
|
1983
|
+
ci_pulse_width: xo,
|
|
1984
|
+
ci_semi_period: So,
|
|
1985
|
+
ci_two_edge_sep: Co,
|
|
1986
|
+
ci_velocity_linear: wo,
|
|
1987
|
+
ci_velocity_angular: To,
|
|
1988
|
+
ci_position_linear: Eo,
|
|
1989
|
+
ci_position_angular: Do,
|
|
1990
|
+
ci_duty_cycle: Oo
|
|
1991
|
+
}, No = ma.extend(W.shape).extend($.shape).extend({ type: b.literal("ao_current") }), Po = ma.extend({
|
|
1992
|
+
type: b.literal("ao_func_gen"),
|
|
1993
|
+
waveType: sa.default("Sine"),
|
|
1994
|
+
frequency: b.number().default(0),
|
|
1995
|
+
amplitude: b.number().default(0),
|
|
1996
|
+
offset: b.number().default(0)
|
|
1997
|
+
}), Fo = ma.extend(W.shape).extend($.shape).extend({ type: b.literal("ao_voltage") }), Io = [
|
|
915
1998
|
"ao_current",
|
|
916
1999
|
"ao_func_gen",
|
|
917
2000
|
"ao_voltage"
|
|
918
|
-
],
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
]),
|
|
923
|
-
ao_current:
|
|
924
|
-
ao_func_gen:
|
|
925
|
-
ao_voltage:
|
|
926
|
-
},
|
|
927
|
-
ACCEL_CHARGE_SENSITIVITY_UNITS: () =>
|
|
928
|
-
ACCEL_SENSITIVITY_UNITS: () =>
|
|
929
|
-
ACCEL_UNITS: () =>
|
|
930
|
-
AI_CHANNEL_SCHEMAS: () =>
|
|
931
|
-
AI_CHANNEL_TYPES: () =>
|
|
932
|
-
AO_CHANNEL_SCHEMAS: () =>
|
|
933
|
-
AO_CHANNEL_TYPES: () =>
|
|
934
|
-
BRIDGE_CONFIGS: () =>
|
|
935
|
-
CHARGE_UNITS: () =>
|
|
936
|
-
CI_ANGULAR_POSITION_UNITS: () =>
|
|
937
|
-
CI_ANGULAR_VELOCITY_UNITS: () =>
|
|
938
|
-
CI_CHANNEL_SCHEMAS: () =>
|
|
939
|
-
CI_CHANNEL_TYPES: () =>
|
|
940
|
-
CI_COUNT_DIRECTIONS: () =>
|
|
941
|
-
CI_DECODING_TYPES: () =>
|
|
942
|
-
CI_EDGES: () =>
|
|
943
|
-
CI_FREQ_UNITS: () =>
|
|
944
|
-
CI_LINEAR_POSITION_UNITS: () =>
|
|
945
|
-
CI_LINEAR_VELOCITY_UNITS: () =>
|
|
946
|
-
CI_MEAS_METHODS: () =>
|
|
947
|
-
CI_TIME_UNITS: () =>
|
|
948
|
-
CJC_SCHEMAS: () =>
|
|
949
|
-
CJC_TYPES: () =>
|
|
950
|
-
ELECTRICAL_UNITS: () =>
|
|
951
|
-
EXCITATION_SOURCES: () =>
|
|
952
|
-
FORCE_SENSITIVITY_UNITS: () =>
|
|
953
|
-
FORCE_UNITS: () =>
|
|
954
|
-
PRESSURE_UNITS: () =>
|
|
955
|
-
RESISTANCE_CONFIGS: () =>
|
|
956
|
-
RTD_TYPES: () =>
|
|
957
|
-
SCALE_SCHEMAS: () =>
|
|
958
|
-
SCALE_TYPES: () =>
|
|
959
|
-
SHUNT_RESISTOR_LOCATIONS: () =>
|
|
960
|
-
STRAIN_CONFIGS: () =>
|
|
961
|
-
TEMPERATURE_UNITS: () =>
|
|
962
|
-
TERMINAL_CONFIGS: () =>
|
|
963
|
-
THERMOCOUPLE_TYPES: () =>
|
|
964
|
-
TORQUE_UNITS: () =>
|
|
965
|
-
UNITS: () =>
|
|
966
|
-
VELOCITY_SENSITIVITY_UNITS: () =>
|
|
967
|
-
VELOCITY_UNITS: () =>
|
|
968
|
-
WAVE_TYPES: () =>
|
|
969
|
-
Z_INDEX_PHASES: () =>
|
|
970
|
-
accelChargeSensitivityUnitsZ: () =>
|
|
971
|
-
accelSensitivityUnitsZ: () =>
|
|
972
|
-
accelUnitsZ: () =>
|
|
973
|
-
aiAccel4WireDCVoltageChannelZ: () =>
|
|
974
|
-
aiAccelChannelZ: () =>
|
|
975
|
-
aiAccelChargeChannelZ: () =>
|
|
976
|
-
aiBridgeChannelZ: () =>
|
|
977
|
-
aiChannelTypeZ: () =>
|
|
978
|
-
aiChannelZ: () =>
|
|
979
|
-
aiChargeChannelZ: () =>
|
|
980
|
-
aiCurrentChannelZ: () =>
|
|
981
|
-
aiCurrentRMSChannelZ: () =>
|
|
982
|
-
aiForceBridgePolynomialChannelZ: () =>
|
|
983
|
-
aiForceBridgeTableChannelZ: () =>
|
|
984
|
-
aiForceBridgeTwoPointLinChannelZ: () =>
|
|
985
|
-
aiForceIEPEChannelZ: () =>
|
|
986
|
-
aiFreqVoltageChannelZ: () =>
|
|
987
|
-
aiMicrophoneChannelZ: () =>
|
|
988
|
-
aiPressureBridgePolynomialChannelZ: () =>
|
|
989
|
-
aiPressureBridgeTableChannelZ: () =>
|
|
990
|
-
aiPressureBridgeTwoPointLinChannelZ: () =>
|
|
991
|
-
aiRTDChannelZ: () =>
|
|
992
|
-
aiResistanceChannelZ: () =>
|
|
993
|
-
aiStrainGaugeChannelZ: () =>
|
|
994
|
-
aiTempBuiltinChannelZ: () =>
|
|
995
|
-
aiThermistorIexChannelZ: () =>
|
|
996
|
-
aiThermistorVexChannelZ: () =>
|
|
997
|
-
aiThermocoupleChannelZ: () =>
|
|
998
|
-
aiTorqueBridgePolynomialChannelZ: () =>
|
|
999
|
-
aiTorqueBridgeTableChannelZ: () =>
|
|
1000
|
-
aiTorqueBridgeTwoPointLinChannelZ: () =>
|
|
1001
|
-
aiVelocityIEPEChannelZ: () =>
|
|
1002
|
-
aiVoltageChannelZ: () =>
|
|
1003
|
-
aiVoltageRMSChannelZ: () =>
|
|
1004
|
-
aiVoltageWithExcitChannelZ: () =>
|
|
1005
|
-
analogReadConfigZ: () =>
|
|
1006
|
-
analogWriteConfigZ: () =>
|
|
1007
|
-
aoChannelTypeZ: () =>
|
|
1008
|
-
aoChannelZ: () =>
|
|
1009
|
-
aoCurrentChannelZ: () =>
|
|
1010
|
-
aoFuncGenChannelZ: () =>
|
|
1011
|
-
aoVoltageChannelZ: () =>
|
|
1012
|
-
baseAIChannelZ: () =>
|
|
1013
|
-
baseAOChannelZ: () =>
|
|
1014
|
-
baseCIChannelZ: () =>
|
|
1015
|
-
bridgeConfigZ: () =>
|
|
1016
|
-
bridgePolynomialZ: () =>
|
|
1017
|
-
bridgeZ: () =>
|
|
1018
|
-
builtInCJCZ: () =>
|
|
1019
|
-
chanCJCZ: () =>
|
|
1020
|
-
chargeUnitsZ: () =>
|
|
1021
|
-
ciAngularPositionUnitsZ: () =>
|
|
1022
|
-
ciAngularVelocityUnitsZ: () =>
|
|
1023
|
-
ciChannelTypeZ: () =>
|
|
1024
|
-
ciChannelZ: () =>
|
|
1025
|
-
ciCountDirectionZ: () =>
|
|
1026
|
-
ciDecodingTypeZ: () =>
|
|
1027
|
-
ciDutyCycleChannelZ: () =>
|
|
1028
|
-
ciEdgeCountChannelZ: () =>
|
|
1029
|
-
ciEdgeZ: () =>
|
|
1030
|
-
ciFreqUnitsZ: () =>
|
|
1031
|
-
ciFrequencyChannelZ: () =>
|
|
1032
|
-
ciLinearPositionUnitsZ: () =>
|
|
1033
|
-
ciLinearVelocityUnitsZ: () =>
|
|
1034
|
-
ciMeasMethodZ: () =>
|
|
1035
|
-
ciPeriodChannelZ: () =>
|
|
1036
|
-
ciPositionAngularChannelZ: () =>
|
|
1037
|
-
ciPositionLinearChannelZ: () =>
|
|
1038
|
-
ciPulseWidthChannelZ: () =>
|
|
1039
|
-
ciSemiPeriodChannelZ: () =>
|
|
1040
|
-
ciTimeUnitsZ: () =>
|
|
1041
|
-
ciTwoEdgeSepChannelZ: () =>
|
|
1042
|
-
ciVelocityAngularChannelZ: () =>
|
|
1043
|
-
ciVelocityLinearChannelZ: () =>
|
|
1044
|
-
cjcTypeZ: () =>
|
|
1045
|
-
cjcZ: () =>
|
|
1046
|
-
constValCJCZ: () =>
|
|
1047
|
-
counterReadConfigZ: () =>
|
|
1048
|
-
currentExcitationZ: () =>
|
|
2001
|
+
], Lo = b.enum(Io), Ro = b.discriminatedUnion("type", [
|
|
2002
|
+
No,
|
|
2003
|
+
Po,
|
|
2004
|
+
Fo
|
|
2005
|
+
]), zo = {
|
|
2006
|
+
ao_current: No,
|
|
2007
|
+
ao_func_gen: Po,
|
|
2008
|
+
ao_voltage: Fo
|
|
2009
|
+
}, Bo = o.extend({ channels: go.array().default(() => []) }), Vo = o.extend({ channels: jo.array().default(() => []) }), Ho = _a.extend({ channels: Ro.array().default(() => []) }), Uo = /* @__PURE__ */ a({
|
|
2010
|
+
ACCEL_CHARGE_SENSITIVITY_UNITS: () => ca,
|
|
2011
|
+
ACCEL_SENSITIVITY_UNITS: () => yi,
|
|
2012
|
+
ACCEL_UNITS: () => xi,
|
|
2013
|
+
AI_CHANNEL_SCHEMAS: () => _o,
|
|
2014
|
+
AI_CHANNEL_TYPES: () => mo,
|
|
2015
|
+
AO_CHANNEL_SCHEMAS: () => zo,
|
|
2016
|
+
AO_CHANNEL_TYPES: () => Io,
|
|
2017
|
+
BRIDGE_CONFIGS: () => di,
|
|
2018
|
+
CHARGE_UNITS: () => Vi,
|
|
2019
|
+
CI_ANGULAR_POSITION_UNITS: () => ia,
|
|
2020
|
+
CI_ANGULAR_VELOCITY_UNITS: () => ea,
|
|
2021
|
+
CI_CHANNEL_SCHEMAS: () => Mo,
|
|
2022
|
+
CI_CHANNEL_TYPES: () => ko,
|
|
2023
|
+
CI_COUNT_DIRECTIONS: () => Yi,
|
|
2024
|
+
CI_DECODING_TYPES: () => Zi,
|
|
2025
|
+
CI_EDGES: () => Ui,
|
|
2026
|
+
CI_FREQ_UNITS: () => Ki,
|
|
2027
|
+
CI_LINEAR_POSITION_UNITS: () => na,
|
|
2028
|
+
CI_LINEAR_VELOCITY_UNITS: () => Qi,
|
|
2029
|
+
CI_MEAS_METHODS: () => Wi,
|
|
2030
|
+
CI_TIME_UNITS: () => Ji,
|
|
2031
|
+
CJC_SCHEMAS: () => Ta,
|
|
2032
|
+
CJC_TYPES: () => Sa,
|
|
2033
|
+
ELECTRICAL_UNITS: () => pi,
|
|
2034
|
+
EXCITATION_SOURCES: () => li,
|
|
2035
|
+
FORCE_SENSITIVITY_UNITS: () => Ei,
|
|
2036
|
+
FORCE_UNITS: () => Ci,
|
|
2037
|
+
PRESSURE_UNITS: () => Oi,
|
|
2038
|
+
RESISTANCE_CONFIGS: () => mi,
|
|
2039
|
+
RTD_TYPES: () => ji,
|
|
2040
|
+
SCALE_SCHEMAS: () => Pa,
|
|
2041
|
+
SCALE_TYPES: () => ja,
|
|
2042
|
+
SHUNT_RESISTOR_LOCATIONS: () => wi,
|
|
2043
|
+
STRAIN_CONFIGS: () => Ni,
|
|
2044
|
+
TEMPERATURE_UNITS: () => Ai,
|
|
2045
|
+
TERMINAL_CONFIGS: () => si,
|
|
2046
|
+
THERMOCOUPLE_TYPES: () => Fi,
|
|
2047
|
+
TORQUE_UNITS: () => ki,
|
|
2048
|
+
UNITS: () => vi,
|
|
2049
|
+
VELOCITY_SENSITIVITY_UNITS: () => zi,
|
|
2050
|
+
VELOCITY_UNITS: () => Li,
|
|
2051
|
+
WAVE_TYPES: () => oa,
|
|
2052
|
+
Z_INDEX_PHASES: () => gi,
|
|
2053
|
+
accelChargeSensitivityUnitsZ: () => la,
|
|
2054
|
+
accelSensitivityUnitsZ: () => bi,
|
|
2055
|
+
accelUnitsZ: () => Si,
|
|
2056
|
+
aiAccel4WireDCVoltageChannelZ: () => to,
|
|
2057
|
+
aiAccelChannelZ: () => Ra,
|
|
2058
|
+
aiAccelChargeChannelZ: () => no,
|
|
2059
|
+
aiBridgeChannelZ: () => za,
|
|
2060
|
+
aiChannelTypeZ: () => ho,
|
|
2061
|
+
aiChannelZ: () => go,
|
|
2062
|
+
aiChargeChannelZ: () => ro,
|
|
2063
|
+
aiCurrentChannelZ: () => Ba,
|
|
2064
|
+
aiCurrentRMSChannelZ: () => io,
|
|
2065
|
+
aiForceBridgePolynomialChannelZ: () => ao,
|
|
2066
|
+
aiForceBridgeTableChannelZ: () => Va,
|
|
2067
|
+
aiForceBridgeTwoPointLinChannelZ: () => Ha,
|
|
2068
|
+
aiForceIEPEChannelZ: () => Ua,
|
|
2069
|
+
aiFreqVoltageChannelZ: () => oo,
|
|
2070
|
+
aiMicrophoneChannelZ: () => Wa,
|
|
2071
|
+
aiPressureBridgePolynomialChannelZ: () => so,
|
|
2072
|
+
aiPressureBridgeTableChannelZ: () => Ga,
|
|
2073
|
+
aiPressureBridgeTwoPointLinChannelZ: () => Ka,
|
|
2074
|
+
aiRTDChannelZ: () => Ja,
|
|
2075
|
+
aiResistanceChannelZ: () => qa,
|
|
2076
|
+
aiStrainGaugeChannelZ: () => Ya,
|
|
2077
|
+
aiTempBuiltinChannelZ: () => Xa,
|
|
2078
|
+
aiThermistorIexChannelZ: () => co,
|
|
2079
|
+
aiThermistorVexChannelZ: () => lo,
|
|
2080
|
+
aiThermocoupleChannelZ: () => Za,
|
|
2081
|
+
aiTorqueBridgePolynomialChannelZ: () => uo,
|
|
2082
|
+
aiTorqueBridgeTableChannelZ: () => Qa,
|
|
2083
|
+
aiTorqueBridgeTwoPointLinChannelZ: () => $a,
|
|
2084
|
+
aiVelocityIEPEChannelZ: () => eo,
|
|
2085
|
+
aiVoltageChannelZ: () => La,
|
|
2086
|
+
aiVoltageRMSChannelZ: () => fo,
|
|
2087
|
+
aiVoltageWithExcitChannelZ: () => po,
|
|
2088
|
+
analogReadConfigZ: () => Bo,
|
|
2089
|
+
analogWriteConfigZ: () => Ho,
|
|
2090
|
+
aoChannelTypeZ: () => Lo,
|
|
2091
|
+
aoChannelZ: () => Ro,
|
|
2092
|
+
aoCurrentChannelZ: () => No,
|
|
2093
|
+
aoFuncGenChannelZ: () => Po,
|
|
2094
|
+
aoVoltageChannelZ: () => Fo,
|
|
2095
|
+
baseAIChannelZ: () => Z,
|
|
2096
|
+
baseAOChannelZ: () => ma,
|
|
2097
|
+
baseCIChannelZ: () => Q,
|
|
2098
|
+
bridgeConfigZ: () => fi,
|
|
2099
|
+
bridgePolynomialZ: () => ua,
|
|
2100
|
+
bridgeZ: () => Y,
|
|
2101
|
+
builtInCJCZ: () => ya,
|
|
2102
|
+
chanCJCZ: () => xa,
|
|
2103
|
+
chargeUnitsZ: () => Hi,
|
|
2104
|
+
ciAngularPositionUnitsZ: () => aa,
|
|
2105
|
+
ciAngularVelocityUnitsZ: () => ta,
|
|
2106
|
+
ciChannelTypeZ: () => Ao,
|
|
2107
|
+
ciChannelZ: () => jo,
|
|
2108
|
+
ciCountDirectionZ: () => Xi,
|
|
2109
|
+
ciDecodingTypeZ: () => U,
|
|
2110
|
+
ciDutyCycleChannelZ: () => Oo,
|
|
2111
|
+
ciEdgeCountChannelZ: () => yo,
|
|
2112
|
+
ciEdgeZ: () => V,
|
|
2113
|
+
ciFreqUnitsZ: () => qi,
|
|
2114
|
+
ciFrequencyChannelZ: () => vo,
|
|
2115
|
+
ciLinearPositionUnitsZ: () => ra,
|
|
2116
|
+
ciLinearVelocityUnitsZ: () => $i,
|
|
2117
|
+
ciMeasMethodZ: () => Gi,
|
|
2118
|
+
ciPeriodChannelZ: () => bo,
|
|
2119
|
+
ciPositionAngularChannelZ: () => Do,
|
|
2120
|
+
ciPositionLinearChannelZ: () => Eo,
|
|
2121
|
+
ciPulseWidthChannelZ: () => xo,
|
|
2122
|
+
ciSemiPeriodChannelZ: () => So,
|
|
2123
|
+
ciTimeUnitsZ: () => H,
|
|
2124
|
+
ciTwoEdgeSepChannelZ: () => Co,
|
|
2125
|
+
ciVelocityAngularChannelZ: () => To,
|
|
2126
|
+
ciVelocityLinearChannelZ: () => wo,
|
|
2127
|
+
cjcTypeZ: () => Ca,
|
|
2128
|
+
cjcZ: () => wa,
|
|
2129
|
+
constValCJCZ: () => ba,
|
|
2130
|
+
counterReadConfigZ: () => Vo,
|
|
2131
|
+
currentExcitationZ: () => q,
|
|
1049
2132
|
customScaleZ: () => $,
|
|
1050
|
-
diChannelZ: () =>
|
|
1051
|
-
digitalReadConfigZ: () =>
|
|
1052
|
-
digitalWriteConfigZ: () =>
|
|
1053
|
-
doChannelZ: () =>
|
|
1054
|
-
electricalUnitsZ: () =>
|
|
1055
|
-
excitationSourceZ: () =>
|
|
1056
|
-
forceSensitivityUnitsZ: () =>
|
|
1057
|
-
forceUnitsZ: () =>
|
|
1058
|
-
linearScaleZ: () =>
|
|
1059
|
-
mapScaleZ: () =>
|
|
1060
|
-
minMaxValZ: () =>
|
|
1061
|
-
noneScaleZ: () =>
|
|
1062
|
-
polynomialScaleZ: () =>
|
|
1063
|
-
pressureUnitsZ: () =>
|
|
1064
|
-
resistanceConfigZ: () =>
|
|
1065
|
-
resistanceZ: () =>
|
|
1066
|
-
rtdTypeZ: () =>
|
|
1067
|
-
scaleTypeZ: () =>
|
|
1068
|
-
scaleZ: () =>
|
|
1069
|
-
scanConfigZ: () =>
|
|
1070
|
-
sensitivityZ: () =>
|
|
1071
|
-
shuntResistorLocationZ: () =>
|
|
1072
|
-
strainConfigZ: () =>
|
|
1073
|
-
tableScaleZ: () =>
|
|
1074
|
-
tableZ: () =>
|
|
1075
|
-
temperatureUnitsZ: () =>
|
|
1076
|
-
terminalConfigZ: () =>
|
|
1077
|
-
terminalZ: () =>
|
|
1078
|
-
thermocoupleTypeZ: () =>
|
|
1079
|
-
torqueUnitsZ: () =>
|
|
1080
|
-
twoPointLinZ: () =>
|
|
1081
|
-
unitsZ: () =>
|
|
1082
|
-
velocitySensitivityUnitsZ: () =>
|
|
1083
|
-
velocityUnitsZ: () =>
|
|
1084
|
-
voltageExcitationZ: () =>
|
|
1085
|
-
waveTypeZ: () =>
|
|
1086
|
-
writeConfigZ: () =>
|
|
1087
|
-
zIndexPhaseZ: () =>
|
|
1088
|
-
zIndexZ: () =>
|
|
1089
|
-
}),
|
|
1090
|
-
key:
|
|
1091
|
-
name:
|
|
1092
|
-
disabled:
|
|
1093
|
-
nodeId:
|
|
1094
|
-
nodeName:
|
|
1095
|
-
dataType:
|
|
1096
|
-
}),
|
|
1097
|
-
channel:
|
|
1098
|
-
isIndex:
|
|
1099
|
-
}),
|
|
2133
|
+
diChannelZ: () => ha,
|
|
2134
|
+
digitalReadConfigZ: () => Fa,
|
|
2135
|
+
digitalWriteConfigZ: () => Ia,
|
|
2136
|
+
doChannelZ: () => ga,
|
|
2137
|
+
electricalUnitsZ: () => F,
|
|
2138
|
+
excitationSourceZ: () => ui,
|
|
2139
|
+
forceSensitivityUnitsZ: () => Di,
|
|
2140
|
+
forceUnitsZ: () => L,
|
|
2141
|
+
linearScaleZ: () => Ea,
|
|
2142
|
+
mapScaleZ: () => Da,
|
|
2143
|
+
minMaxValZ: () => W,
|
|
2144
|
+
noneScaleZ: () => Aa,
|
|
2145
|
+
polynomialScaleZ: () => ka,
|
|
2146
|
+
pressureUnitsZ: () => R,
|
|
2147
|
+
resistanceConfigZ: () => hi,
|
|
2148
|
+
resistanceZ: () => X,
|
|
2149
|
+
rtdTypeZ: () => Mi,
|
|
2150
|
+
scaleTypeZ: () => Ma,
|
|
2151
|
+
scaleZ: () => Na,
|
|
2152
|
+
scanConfigZ: () => va,
|
|
2153
|
+
sensitivityZ: () => K,
|
|
2154
|
+
shuntResistorLocationZ: () => Ti,
|
|
2155
|
+
strainConfigZ: () => Pi,
|
|
2156
|
+
tableScaleZ: () => Oa,
|
|
2157
|
+
tableZ: () => da,
|
|
2158
|
+
temperatureUnitsZ: () => B,
|
|
2159
|
+
terminalConfigZ: () => ci,
|
|
2160
|
+
terminalZ: () => G,
|
|
2161
|
+
thermocoupleTypeZ: () => Ii,
|
|
2162
|
+
torqueUnitsZ: () => z,
|
|
2163
|
+
twoPointLinZ: () => fa,
|
|
2164
|
+
unitsZ: () => I,
|
|
2165
|
+
velocitySensitivityUnitsZ: () => Bi,
|
|
2166
|
+
velocityUnitsZ: () => Ri,
|
|
2167
|
+
voltageExcitationZ: () => J,
|
|
2168
|
+
waveTypeZ: () => sa,
|
|
2169
|
+
writeConfigZ: () => _a,
|
|
2170
|
+
zIndexPhaseZ: () => _i,
|
|
2171
|
+
zIndexZ: () => pa
|
|
2172
|
+
}), Wo = b.object({
|
|
2173
|
+
key: b.string().default(x.create),
|
|
2174
|
+
name: b.string().default(""),
|
|
2175
|
+
disabled: b.boolean().default(!1),
|
|
2176
|
+
nodeId: b.string().default(""),
|
|
2177
|
+
nodeName: b.string().default(""),
|
|
2178
|
+
dataType: b.string().default("float32")
|
|
2179
|
+
}), Go = i, Ko = Wo.extend({
|
|
2180
|
+
channel: y.default(0),
|
|
2181
|
+
isIndex: b.boolean().default(!1)
|
|
2182
|
+
}), qo = Wo.extend({ cmdChannel: y.default(0) }), Jo = o.omit({
|
|
1100
2183
|
sampleRate: !0,
|
|
1101
2184
|
streamRate: !0
|
|
1102
2185
|
}).extend({
|
|
1103
|
-
sampleRate:
|
|
1104
|
-
streamRate:
|
|
1105
|
-
device:
|
|
1106
|
-
arrayMode:
|
|
1107
|
-
arraySize:
|
|
1108
|
-
channels:
|
|
1109
|
-
}),
|
|
1110
|
-
baseChannelZ: () =>
|
|
1111
|
-
readChannelZ: () =>
|
|
1112
|
-
readConfigZ: () =>
|
|
1113
|
-
scanConfigZ: () =>
|
|
1114
|
-
writeChannelZ: () =>
|
|
1115
|
-
writeConfigZ: () =>
|
|
1116
|
-
}),
|
|
1117
|
-
key:
|
|
1118
|
-
status:
|
|
1119
|
-
errorsCritical:
|
|
1120
|
-
component:
|
|
1121
|
-
group:
|
|
1122
|
-
class:
|
|
1123
|
-
disabled:
|
|
1124
|
-
}),
|
|
1125
|
-
routingKey:
|
|
1126
|
-
alerts:
|
|
1127
|
-
}),
|
|
1128
|
-
alertZ: () =>
|
|
1129
|
-
taskConfigZ: () =>
|
|
2186
|
+
sampleRate: b.number().default(50),
|
|
2187
|
+
streamRate: b.number().default(25),
|
|
2188
|
+
device: v.default(""),
|
|
2189
|
+
arrayMode: b.boolean().default(!1),
|
|
2190
|
+
arraySize: b.int32().default(1),
|
|
2191
|
+
channels: Ko.array().default(() => [])
|
|
2192
|
+
}), Yo = De.extend({ channels: qo.array().default(() => []) }), Xo = /* @__PURE__ */ a({
|
|
2193
|
+
baseChannelZ: () => Wo,
|
|
2194
|
+
readChannelZ: () => Ko,
|
|
2195
|
+
readConfigZ: () => Jo,
|
|
2196
|
+
scanConfigZ: () => Go,
|
|
2197
|
+
writeChannelZ: () => qo,
|
|
2198
|
+
writeConfigZ: () => Yo
|
|
2199
|
+
}), Zo = b.object({
|
|
2200
|
+
key: b.string().default(x.create),
|
|
2201
|
+
status: _.default(""),
|
|
2202
|
+
errorsCritical: b.boolean().default(!1),
|
|
2203
|
+
component: b.string().default(""),
|
|
2204
|
+
group: b.string().default(""),
|
|
2205
|
+
class: b.string().default(""),
|
|
2206
|
+
disabled: b.boolean().default(!1)
|
|
2207
|
+
}), Qo = g.extend({
|
|
2208
|
+
routingKey: b.string().default(""),
|
|
2209
|
+
alerts: Zo.array().default(() => [])
|
|
2210
|
+
}), $o = /* @__PURE__ */ a({
|
|
2211
|
+
alertZ: () => Zo,
|
|
2212
|
+
taskConfigZ: () => Qo
|
|
1130
2213
|
});
|
|
1131
2214
|
//#endregion
|
|
1132
|
-
export {
|
|
2215
|
+
export { f as AccessDeniedError, Re as AuthError, qe as Channel, d as ContiguityError, et as DataType, tt as Density, ce as DisconnectedError, Ae as Frame, nt as MultiSeries, se as MultipleFoundError, le as NotFoundError, ee as QueryError, rt as Rate, e as RouteError, it as Series, Ue as Synnax, at as TimeRange, ot as TimeSpan, st as TimeStamp, ve as UnexpectedError, We as ValidationError, p as access, u as actions, n as arc, ue as channel, xe as connection, Ce as control, t as device, Rn as ethercat, Ie as framer, me as group, ur as http, ye as imex, Qe as isCalculated, Ne as isConnectionError, c as label, Br as labjack, Oe as lineplot, he as log, oi as modbus, Uo as ni, ne as node, l as ontology, Xo as opcua, $o as pagerduty, Ve as panel, Ge as project, oe as query, m as rack, Pe as ranger, fe as schematic, h as status, Me as synnaxParamsZ, Te as table, Ye as task, te as user, ze as view };
|
|
1133
2216
|
|
|
1134
2217
|
//# sourceMappingURL=client.js.map
|