@deviceinsight/ng-ui-api-client 10.53.0 → 10.55.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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +804 -1332
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -1,1364 +1,836 @@
|
|
|
1
|
-
import { jwtDecode as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} = e;
|
|
42
|
-
return { page: t, size: o, sort: `${a},${r}` };
|
|
43
|
-
}
|
|
1
|
+
import { jwtDecode as e } from "jwt-decode";
|
|
2
|
+
//#region src/axios.ts
|
|
3
|
+
var t = (e) => {
|
|
4
|
+
if (!e || e.data === void 0) throw Error("response object has no \"data\" entry");
|
|
5
|
+
return e.data;
|
|
6
|
+
}, n = (e, t) => {
|
|
7
|
+
t || !window.nguiAxios ? window.nguiAxios = e : console.warn("window.nguiAxios instance already set");
|
|
8
|
+
}, r = () => {
|
|
9
|
+
if (window.nguiAxios == null) throw Error("window.nguiAxios instance not set");
|
|
10
|
+
return window.nguiAxios;
|
|
11
|
+
}, i = (e) => {
|
|
12
|
+
if (window.nguiAxios) {
|
|
13
|
+
for (let t in Object.keys(e)) if (!Object.prototype.hasOwnProperty.call(window.nguiAxios.defaults, t)) throw Error(`Trying to set an unknown axios config property: ${t}`);
|
|
14
|
+
window.nguiAxios.defaults = {
|
|
15
|
+
...window.nguiAxios.defaults,
|
|
16
|
+
...e
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}, a = async (e, t = 5, n = 100) => {
|
|
20
|
+
for (let r = 0; r < t; r++) try {
|
|
21
|
+
return await e();
|
|
22
|
+
} catch (e) {
|
|
23
|
+
if (r < t - 1) {
|
|
24
|
+
let e = n * 2 ** r + Math.random() * 100;
|
|
25
|
+
await new Promise((t) => setTimeout(t, e));
|
|
26
|
+
} else throw e;
|
|
27
|
+
}
|
|
28
|
+
throw Error("retryRequest: no attempts made");
|
|
29
|
+
}, o = (e) => r().post("/v2/assets/aggregation", e).then(t);
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/pagination.ts
|
|
32
|
+
function s(e) {
|
|
33
|
+
if (e) {
|
|
34
|
+
let { page: t, size: n, sort: { property: r, direction: i } } = e;
|
|
35
|
+
return {
|
|
36
|
+
page: t,
|
|
37
|
+
size: n,
|
|
38
|
+
sort: `${r},${i}`
|
|
39
|
+
};
|
|
40
|
+
}
|
|
44
41
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
function c(e) {
|
|
43
|
+
if (e) {
|
|
44
|
+
let { page: t, size: n, sort: { property: r, direction: i } } = e;
|
|
45
|
+
return {
|
|
46
|
+
page: t,
|
|
47
|
+
size: n,
|
|
48
|
+
sort: `${r},${i}`
|
|
49
|
+
};
|
|
50
|
+
}
|
|
54
51
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
).then(n);
|
|
208
|
-
}, T = (e) => s().get(`/v2/assets/${e}/groups`).then(n), _ = async (e, t) => {
|
|
209
|
-
await s().put(`/v2/assets/${e}/groups/${t}`);
|
|
210
|
-
}, F = async (e, t) => {
|
|
211
|
-
await s().delete(`/v2/assets/${e}/groups/${t}`);
|
|
212
|
-
}, xe = async (e, t) => {
|
|
213
|
-
const o = await T(e);
|
|
214
|
-
let a = [];
|
|
215
|
-
o.length > 0 && (a = (await P(o)).map(({ id: c }) => c));
|
|
216
|
-
const r = t.filter((c) => !o.includes(c)), i = a.filter((c) => t && !t.includes(c));
|
|
217
|
-
return Promise.all([
|
|
218
|
-
...r.map((c) => _(e, c)),
|
|
219
|
-
...i.map((c) => F(e, c))
|
|
220
|
-
]);
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/assetGroup.ts
|
|
54
|
+
var l = (e, n) => r().get("/v2/assetGroups", { params: {
|
|
55
|
+
...e,
|
|
56
|
+
...s(n)
|
|
57
|
+
} }).then(t), u = (e) => r().get("/v2/assetGroups", { params: { id: e } }).then(t), ee = (e) => r().get(`/v2/assetGroups/${e}`).then(t), te = (e) => r().get(`/v2/assetGroups?processingDefinitionId=${e}`).then(t).then(({ content: e }) => e), ne = (e) => r().get(`/v2/assetGroups?ruleId=${e}`).then(t).then(({ content: e }) => e), re = (e) => r().post(`/v2/assetGroupDefinitions/${e.definitionId}/groups`, e).then(t), ie = (e) => r().put(`/v2/assetGroups/${e.id}`, e).then(t), ae = async (e) => {
|
|
58
|
+
await r().delete(`/v2/assetGroups/${e}`);
|
|
59
|
+
}, d = (e, n) => {
|
|
60
|
+
let { page: i, size: a, sort: o } = n, s = {
|
|
61
|
+
page: i || 0,
|
|
62
|
+
size: a,
|
|
63
|
+
sort: `${o.property},${o.direction}`,
|
|
64
|
+
ignoreCase: !0
|
|
65
|
+
};
|
|
66
|
+
return r().post("/v2/assetGroups/search", e || "*:*", {
|
|
67
|
+
params: s,
|
|
68
|
+
headers: { "Content-Type": "text/plain" }
|
|
69
|
+
}).then(t);
|
|
70
|
+
}, oe = async (e, t) => {
|
|
71
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
72
|
+
action: "ADD",
|
|
73
|
+
assetIds: t
|
|
74
|
+
});
|
|
75
|
+
}, se = async (e, t) => {
|
|
76
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
77
|
+
action: "ADD",
|
|
78
|
+
query: t
|
|
79
|
+
});
|
|
80
|
+
}, ce = async (e, t) => {
|
|
81
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
82
|
+
action: "REMOVE",
|
|
83
|
+
assetIds: t
|
|
84
|
+
});
|
|
85
|
+
}, le = async (e, t) => {
|
|
86
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
87
|
+
action: "REMOVE",
|
|
88
|
+
query: t
|
|
89
|
+
});
|
|
90
|
+
}, ue = (e) => r().get(`/v2/assetGroups/${e}/ancestorGroups`).then(t), de = (e) => e.length ? d(`id:(${e.join(" OR ")})`, {
|
|
91
|
+
page: 0,
|
|
92
|
+
size: 2e3,
|
|
93
|
+
sort: {
|
|
94
|
+
property: "name",
|
|
95
|
+
direction: "ASC"
|
|
96
|
+
}
|
|
97
|
+
}).then((e) => e.content) : Promise.resolve([]), fe = (e, n) => {
|
|
98
|
+
let i = n ? {
|
|
99
|
+
size: n.size,
|
|
100
|
+
page: n.page,
|
|
101
|
+
sort: `${n.sort.property},${n.sort.direction}`
|
|
102
|
+
} : { size: 1e3 };
|
|
103
|
+
return r().get(`/v2/assetGroups/${e}/children`, { params: i }).then(t);
|
|
104
|
+
}, pe = (e) => r().get(`/v2/assets/${e}/shadow`).then(t), me = (e) => r().get(`/v2/gateways/${e}`).then(t), he = (e) => r().get(`/v2/assets/urn/${encodeURIComponent(e)}`).then(t), f = (e, n) => r().get("/v2/assets", { params: {
|
|
105
|
+
...e,
|
|
106
|
+
...s(n)
|
|
107
|
+
} }).then(t), ge = (e) => r().get("/v2/assets", { params: { urn: e } }).then(t), _e = (e, t, n) => f({
|
|
108
|
+
assetGroup: e,
|
|
109
|
+
shadow: t
|
|
110
|
+
}, n), ve = (e) => f({ ruleId: e }).then(({ content: e }) => e), ye = (e) => f({ processingDefinitionId: e }).then(({ content: e }) => e), be = (e) => e.isGateway ? r().post("/v2/gateways", e).then(t) : r().post("/v2/assets", e).then(t), xe = (e) => {
|
|
111
|
+
let { assetGroupIds: n, ...i } = e;
|
|
112
|
+
return e.isGateway ? r().put(`/v2/gateways/${e.id}`, i).then(t) : r().put(`/v2/assets/${e.id}`, i).then(t);
|
|
113
|
+
}, Se = async (e) => {
|
|
114
|
+
await r().delete(`/v2/assets/${e}`);
|
|
115
|
+
}, p = (e, n) => {
|
|
116
|
+
let { page: i, size: a, sort: o } = n || {
|
|
117
|
+
page: 0,
|
|
118
|
+
size: 1e3,
|
|
119
|
+
sort: null
|
|
120
|
+
};
|
|
121
|
+
return r().post("/v2/assets/search", e || "*:*", {
|
|
122
|
+
params: {
|
|
123
|
+
page: i,
|
|
124
|
+
size: a,
|
|
125
|
+
sort: o && `${o.property},${o.direction}` || "",
|
|
126
|
+
ignoreCase: !0
|
|
127
|
+
},
|
|
128
|
+
headers: { "Content-Type": "text/plain" }
|
|
129
|
+
}).then(t);
|
|
130
|
+
}, Ce = (e, n) => {
|
|
131
|
+
let { page: i, size: a, sort: o } = n || {
|
|
132
|
+
page: 0,
|
|
133
|
+
size: 1e3,
|
|
134
|
+
sort: null
|
|
135
|
+
};
|
|
136
|
+
return r().post("/v2/assets/search", e || "*:*", {
|
|
137
|
+
params: {
|
|
138
|
+
page: i,
|
|
139
|
+
size: a,
|
|
140
|
+
sort: o && `${o.property},${o.direction}` || "",
|
|
141
|
+
ignoreCase: !0,
|
|
142
|
+
assetsWithEventsOnly: !0
|
|
143
|
+
},
|
|
144
|
+
headers: { "Content-Type": "text/plain" }
|
|
145
|
+
}).then(t);
|
|
146
|
+
}, we = (e, n, i) => {
|
|
147
|
+
let { page: a, size: o, sort: s } = i || {
|
|
148
|
+
page: 0,
|
|
149
|
+
size: 1e3,
|
|
150
|
+
sort: null
|
|
151
|
+
};
|
|
152
|
+
return r().get("/v2/assets/search", { params: {
|
|
153
|
+
property: e,
|
|
154
|
+
value: n,
|
|
155
|
+
page: a,
|
|
156
|
+
size: o,
|
|
157
|
+
sort: s && `${s.property},${s.direction}` || "",
|
|
158
|
+
ignoreCase: !0
|
|
159
|
+
} }).then(t);
|
|
160
|
+
}, Te = (e, t) => p(`${e} isGateway:true`, t), Ee = (e, n, i) => {
|
|
161
|
+
let { page: a, size: o, sort: s } = n || {
|
|
162
|
+
page: 0,
|
|
163
|
+
size: 1e3,
|
|
164
|
+
sort: ""
|
|
165
|
+
}, { distance: c, geoField: l, pinLocation: u } = i;
|
|
166
|
+
return r().post("/v2/assets/geoDistance", {
|
|
167
|
+
distance: c,
|
|
168
|
+
geoField: l,
|
|
169
|
+
pinLocation: u,
|
|
170
|
+
query: e || "*:*"
|
|
171
|
+
}, { params: {
|
|
172
|
+
ignoreCase: !0,
|
|
173
|
+
page: a,
|
|
174
|
+
size: o,
|
|
175
|
+
sort: s && `${s.property},${s.direction}` || ""
|
|
176
|
+
} }).then(t);
|
|
177
|
+
}, De = (e, n, { geoField: i, topLeft: a, bottomRight: o }) => {
|
|
178
|
+
let { page: s, size: c, sort: l } = n || {
|
|
179
|
+
page: 0,
|
|
180
|
+
size: 1e3,
|
|
181
|
+
sort: ""
|
|
182
|
+
};
|
|
183
|
+
return r().post("/v2/assets/geoBoundingBox", {
|
|
184
|
+
geoField: i,
|
|
185
|
+
query: e || "*:*",
|
|
186
|
+
topLeft: a,
|
|
187
|
+
bottomRight: o
|
|
188
|
+
}, { params: {
|
|
189
|
+
ignoreCase: !0,
|
|
190
|
+
page: s,
|
|
191
|
+
size: c,
|
|
192
|
+
sort: l ? `${l.property},${l.direction}` : ""
|
|
193
|
+
} }).then(t);
|
|
194
|
+
}, m = (e) => r().get(`/v2/assets/${e}/groups`).then(t), h = async (e, t) => {
|
|
195
|
+
await r().put(`/v2/assets/${e}/groups/${t}`);
|
|
196
|
+
}, g = async (e, t) => {
|
|
197
|
+
await r().delete(`/v2/assets/${e}/groups/${t}`);
|
|
198
|
+
}, Oe = async (e, t) => {
|
|
199
|
+
let n = await m(e), r = [];
|
|
200
|
+
n.length > 0 && (r = (await u(n)).map(({ id: e }) => e));
|
|
201
|
+
let i = t.filter((e) => !n.includes(e)), a = r.filter((e) => t && !t.includes(e));
|
|
202
|
+
return Promise.all([...i.map((t) => h(e, t)), ...a.map((t) => g(e, t))]);
|
|
221
203
|
}, ke = async (e, t) => {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}, He = async (e) => {
|
|
240
|
-
await s().put(`/v2/gateways/urn/${encodeURIComponent(e)}/certificates/revocation`);
|
|
241
|
-
}, We = (e, t) => s().get(`/v2/gateways/${e}/commands/${t}/responses`).then(n), Ke = (e) => s().post(
|
|
242
|
-
`/v2/gateways/${e}/commands`,
|
|
243
|
-
{
|
|
244
|
-
expirySeconds: 60,
|
|
245
|
-
content: {
|
|
246
|
-
type: "transmitApplicationLogCommand"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
{}
|
|
250
|
-
).then(n), Xe = (e) => s().get(`/v2/gateways/${e}/capabilities`).then(n);
|
|
251
|
-
function Je() {
|
|
252
|
-
return s().get("/v2/authorities").then(n);
|
|
204
|
+
await r().put(`/v2/assets/${e}/gatewayAssignment`, { gatewayId: t });
|
|
205
|
+
}, Ae = async (e) => {
|
|
206
|
+
await r().delete(`/v2/assets/${e}/gatewayAssignment`);
|
|
207
|
+
}, je = (e) => r().get(`/v2/gateways/${e}/configurationSyncStatus`).then(t), _ = async (e) => {
|
|
208
|
+
await r().post(`/v2/gateways/${e}/configurationSync`);
|
|
209
|
+
}, v = (e) => r().post(`/beta/gateways/urn/${encodeURIComponent(e)}/bootstrap.json`), y = (e) => r().post(`/beta/gateways/urn/${encodeURIComponent(e)}/bootstrapCommandLine`, {}, { headers: { Accept: "text/plain" } }).then(t), b = (e) => r().get(`/v2/gateways/urn/${encodeURIComponent(e)}/certificates`).then(t), x = (e, n) => r().get(`/v2/gateways/urn/${encodeURIComponent(e)}/certificates/${n}`).then(t), S = async (e, t) => {
|
|
210
|
+
await r().put(`/v2/gateways/urn/${encodeURIComponent(e)}/certificates/${t}/revocation`);
|
|
211
|
+
}, Me = async (e) => {
|
|
212
|
+
await r().put(`/v2/gateways/urn/${encodeURIComponent(e)}/certificates/revocation`);
|
|
213
|
+
}, Ne = (e, n) => r().get(`/v2/gateways/${e}/commands/${n}/responses`).then(t), Pe = (e) => r().post(`/v2/gateways/${e}/commands`, {
|
|
214
|
+
expirySeconds: 60,
|
|
215
|
+
content: { type: "transmitApplicationLogCommand" }
|
|
216
|
+
}, {}).then(t), Fe = (e) => r().get(`/v2/gateways/${e}/capabilities`).then(t);
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/authorities.ts
|
|
219
|
+
function Ie() {
|
|
220
|
+
return r().get("/v2/authorities").then(t);
|
|
253
221
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
222
|
+
function Le(e) {
|
|
223
|
+
return r().get(`/v2/authorities/${e}`).then(t);
|
|
256
224
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
225
|
+
function Re(e) {
|
|
226
|
+
return r().put(`/v2/authorities/${e}`).then(t);
|
|
259
227
|
}
|
|
260
|
-
async function
|
|
261
|
-
|
|
228
|
+
async function ze(e) {
|
|
229
|
+
await r().delete(`/v2/authorities/${e}`);
|
|
262
230
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/assetDefinition.ts
|
|
233
|
+
async function Be() {
|
|
234
|
+
return r().get("/v2/assetDefinitions", { params: {
|
|
235
|
+
page: 0,
|
|
236
|
+
size: 1e3,
|
|
237
|
+
sort: "name,ASC",
|
|
238
|
+
ignoreCase: !0
|
|
239
|
+
} }).then(t);
|
|
272
240
|
}
|
|
273
|
-
async function
|
|
274
|
-
|
|
241
|
+
async function Ve(e) {
|
|
242
|
+
return r().get(`/v2/assetDefinitions/${e}`).then(t);
|
|
275
243
|
}
|
|
276
|
-
async function
|
|
277
|
-
|
|
244
|
+
async function He(e) {
|
|
245
|
+
await r().delete(`/v2/assetDefinitions/${e}`);
|
|
278
246
|
}
|
|
279
|
-
async function
|
|
280
|
-
|
|
247
|
+
async function Ue(e) {
|
|
248
|
+
return r().put(`/v2/assetDefinitions/${e.id}`, e).then(t);
|
|
281
249
|
}
|
|
282
|
-
async function
|
|
283
|
-
|
|
250
|
+
async function We(e) {
|
|
251
|
+
return r().post("/v2/assetDefinitions", e).then(t);
|
|
284
252
|
}
|
|
285
|
-
async function
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t.name)}`,
|
|
289
|
-
a
|
|
290
|
-
);
|
|
253
|
+
async function Ge(e, t) {
|
|
254
|
+
let { unit: n, ...i } = t;
|
|
255
|
+
n && (i.unit = n.name), await r().post(`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t.name)}`, i);
|
|
291
256
|
}
|
|
292
|
-
async function
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
257
|
+
async function Ke(e, t) {
|
|
258
|
+
let n = new Map(Array.from(t, ([e, t]) => {
|
|
259
|
+
let { unit: n, ...r } = t;
|
|
260
|
+
return [e, n ? {
|
|
261
|
+
...r,
|
|
262
|
+
unit: n.name
|
|
263
|
+
} : r];
|
|
264
|
+
}));
|
|
265
|
+
await r().post(`/v2/assetDefinitions/${e}/datapoints`, Object.fromEntries(n));
|
|
300
266
|
}
|
|
301
|
-
async function
|
|
302
|
-
|
|
303
|
-
`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t)}`
|
|
304
|
-
);
|
|
267
|
+
async function qe(e, t) {
|
|
268
|
+
await r().delete(`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t)}`);
|
|
305
269
|
}
|
|
306
|
-
async function
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t.name)}`,
|
|
310
|
-
a
|
|
311
|
-
);
|
|
270
|
+
async function Je(e, t) {
|
|
271
|
+
let { unit: n, ...i } = t;
|
|
272
|
+
n && (i.unit = n.name), await r().put(`/v2/assetDefinitions/${e}/datapoints/${encodeURIComponent(t.name)}`, i);
|
|
312
273
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/assetGroupHierarchies.ts
|
|
276
|
+
async function Ye(e, n) {
|
|
277
|
+
return t(await r().get(`/v2/assetGroupHierarchies/${e}`, { params: n }));
|
|
316
278
|
}
|
|
317
|
-
async function
|
|
318
|
-
|
|
319
|
-
return n(t);
|
|
279
|
+
async function Xe(e = {}) {
|
|
280
|
+
return t(await r().get("/v2/assetGroupHierarchyRoots", { params: e }));
|
|
320
281
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
),
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}).then(n).then((a) => a.content);
|
|
388
|
-
}, fs = (e) => s().get(`/v2/assets/${e}/datapoints`).then(n), ms = (e, t) => {
|
|
389
|
-
const { name: o, datatype: a, unit: r } = t, i = {
|
|
390
|
-
datatype: a
|
|
391
|
-
};
|
|
392
|
-
return r && (i.unit = r.name), s().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(o)}`, i).then(n);
|
|
393
|
-
}, ys = (e, t) => {
|
|
394
|
-
const { name: o, datatype: a, thresholds: r } = t;
|
|
395
|
-
return s().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(o)}`, {
|
|
396
|
-
datatype: a,
|
|
397
|
-
thresholds: r
|
|
398
|
-
}).then(n);
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/assetGroupDefinition.ts
|
|
284
|
+
var Ze = (e) => r().get(`/v2/assetGroupDefinitions/${e}`).then(t), Qe = (e) => r().get(`/v2/assetGroupDefinitions/name/${e}`).then(t), $e = () => {
|
|
285
|
+
let e = {
|
|
286
|
+
page: 0,
|
|
287
|
+
size: 1e3,
|
|
288
|
+
sort: "name,ASC",
|
|
289
|
+
ignoreCase: !0
|
|
290
|
+
};
|
|
291
|
+
return r().get("/v2/assetGroupDefinitions", { params: e }).then(t).then((n) => {
|
|
292
|
+
let i = Array(Math.max(0, n.totalPages - 1)).fill(null).map((n, i) => {
|
|
293
|
+
let a = i + 1;
|
|
294
|
+
return r().get("/v2/assetGroupDefinitions", { params: {
|
|
295
|
+
...e,
|
|
296
|
+
page: a
|
|
297
|
+
} }).then(t).then((e) => e.content);
|
|
298
|
+
});
|
|
299
|
+
return Promise.all(i).then((e) => e.reduce((e, t) => e.concat(t), n.content));
|
|
300
|
+
});
|
|
301
|
+
}, et = (e) => r().post("/v2/assetGroupDefinitions", e).then(t), tt = (e) => r().put(`/v2/assetGroupDefinitions/${e.id}`, e).then(t), nt = async (e) => {
|
|
302
|
+
await r().delete(`/v2/assetGroupDefinitions/${e}`);
|
|
303
|
+
}, C = (e, t, n) => [
|
|
304
|
+
"",
|
|
305
|
+
"v2",
|
|
306
|
+
e,
|
|
307
|
+
t ? encodeURIComponent(t) : null,
|
|
308
|
+
"blobs",
|
|
309
|
+
n
|
|
310
|
+
].filter((e) => e != null).join("/"), w = (e, n, i, a) => r().get(C(e, n, i), a ? { responseType: "arraybuffer" } : {}).then(t), T = (e, t, n, i, a, o) => (o ?? r()).post(C(e, t, n), i, a ? { headers: a } : void 0), E = (e, t, n) => r().delete(C(e, t, n)), rt = (e, t, n) => r().head(C(e, t, n)), it = (e, t, n) => w("assets", e, t, !!n), at = (e, t, n, r, i) => T("assets", e, t, n, r, i), ot = (e, t) => E("assets", e, t), st = (e, t, n) => w("assetDefinitions", e, t, !!n), ct = (e, t, n, r, i) => T("assetDefinitions", e, t, n, r, i), lt = (e, t) => E("assetDefinitions", e, t), ut = (e, t, n) => w("assetGroups", e, t, !!n), dt = (e, t, n, r, i) => T("assetGroups", e, t, n, r, i), ft = (e, t) => E("assetGroups", e, t), D = (e, t) => w("tenant", void 0, e, !!t), O = (e, t, n, r) => T("tenant", void 0, e, t, n, r), k = (e) => E("tenant", void 0, e), pt = () => D("uiConfigurations/default"), mt = () => D("uiSecrets/default"), ht = (e) => O("uiConfigurations/default", e), gt = () => k("uiConfigurations/default"), _t = () => D("uiConfigurations/conditionmonitoringpriorities"), vt = (e) => O("uiConfigurations/conditionmonitoringpriorities", e), yt = () => k("uiConfigurations/conditionmonitoringpriorities"), bt = (e) => D(`terms/eula-${e}`, !0), xt = () => D("terms?meta=true"), St = (e, t, n, r, i) => O(`terms/eula-${e}`, t, {
|
|
311
|
+
"X-Blob-Meta-Filename": n,
|
|
312
|
+
"Content-Type": r
|
|
313
|
+
}, i), Ct = (e) => k(`terms/eula-${e}`), wt = (e) => D(`terms/${e}`), A = async (e) => {
|
|
314
|
+
await rt("accounts", "me", e);
|
|
315
|
+
}, j = (e) => w("accounts", "me", e, !1), M = (e, t) => T("accounts", "me", e, t), N = (e) => E("accounts", "me", e), Tt = () => A("uiConfigurations/startpage"), Et = () => j("uiConfigurations/startpage"), Dt = (e) => M("uiConfigurations/startpage", e), Ot = (e) => M("uiConfigurations/releasenotesversionsviewed", e), kt = () => j("uiConfigurations/releasenotesversionsviewed"), At = () => j("uiConfigurations/releasenotessubscription"), jt = (e) => M("uiConfigurations/releasenotessubscription", e), Mt = () => A("uiConfigurations/showuserdocumentation"), Nt = () => j("uiConfigurations/showuserdocumentation"), Pt = (e) => M("uiConfigurations/showuserdocumentation", e), Ft = (e) => M("uiConfigurations/paginationsettings", e), It = () => j("uiConfigurations/paginationsettings"), Lt = (e) => M("uiConfigurations/favorites", e), Rt = () => j("uiConfigurations/favorites"), zt = () => N("uiConfigurations/startpage"), Bt = (e, t) => M(`uiConfigurations/advsearchprops${t}`, e), Vt = (e) => j(`uiConfigurations/advsearchprops${e}`), Ht = (e, n, i) => {
|
|
316
|
+
let a = {
|
|
317
|
+
from: new Date(n).toISOString(),
|
|
318
|
+
to: new Date(i).toISOString()
|
|
319
|
+
};
|
|
320
|
+
return Promise.all([r().get(`/beta/assets/${encodeURIComponent(e)}/blobSeries/assetBlobs`, { params: a }).then(t), r().get(`/beta/assets/${encodeURIComponent(e)}/blobSeries/assetBlobs`, { params: {
|
|
321
|
+
...a,
|
|
322
|
+
meta: !0
|
|
323
|
+
} }).then(t)]).then(([e, t]) => e.map((e, n) => {
|
|
324
|
+
let r = e.split("/"), i = r.slice(r.length - 2).join("/");
|
|
325
|
+
return {
|
|
326
|
+
...t[n],
|
|
327
|
+
blobUniqueKey: i
|
|
328
|
+
};
|
|
329
|
+
}));
|
|
330
|
+
}, Ut = (e, n) => r().get(`/beta/assets/${encodeURIComponent(e)}/blobSeries/assetBlobs/${n}`, { responseType: "arraybuffer" }).then(t), Wt = (e, n, i) => r().get(`/beta/administration/accountGroups/${e}/blobs/${n}`, i ? { responseType: "arraybuffer" } : {}).then(t), Gt = (e, t, n) => w("accountGroups", e, t, !!n), Kt = (e, t, n, r, i) => T("accountGroups", e, t, n, r, i), qt = (e, t) => E("accountGroups", e, t), Jt = async () => D("uiConfigurations/adb2c"), Yt = (e) => r().get(`/v2/assets/${e}/configurations`).then(t), Xt = (e) => r().get(`/v2/configurations/name/${encodeURIComponent(e)}`).then(t), Zt = (e) => r().post("/v2/configurations", e).then(t), Qt = (e) => r().put(`/v2/configurations/${e.id}`, e).then(t), $t = async (e) => {
|
|
331
|
+
await r().delete(`/v2/configurations/${e}`);
|
|
332
|
+
}, en = (e, n) => r().put(`/v2/assets/${e}/configurations`, n).then(t), tn = (e, n) => {
|
|
333
|
+
let i = n ? { ...n } : {
|
|
334
|
+
page: 0,
|
|
335
|
+
size: 1e3,
|
|
336
|
+
sort: ""
|
|
337
|
+
};
|
|
338
|
+
return r().get(`/v2/configurations/${e}/gateways`, { params: i }).then(t).then((e) => e.content);
|
|
339
|
+
}, nn = (e) => r().get(`/v2/assets/${e}/datapoints`).then(t), rn = (e, n) => {
|
|
340
|
+
let { name: i, datatype: a, unit: o } = n, s = { datatype: a };
|
|
341
|
+
return o && (s.unit = o.name), r().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(i)}`, s).then(t);
|
|
342
|
+
}, an = (e, n) => {
|
|
343
|
+
let { name: i, datatype: a, thresholds: o } = n;
|
|
344
|
+
return r().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(i)}`, {
|
|
345
|
+
datatype: a,
|
|
346
|
+
thresholds: o
|
|
347
|
+
}).then(t);
|
|
399
348
|
};
|
|
400
|
-
function
|
|
401
|
-
|
|
349
|
+
function P(e) {
|
|
350
|
+
switch (e) {
|
|
351
|
+
case "GEO_POSITION": return "geoPosition";
|
|
352
|
+
default: return e.toLowerCase();
|
|
353
|
+
}
|
|
402
354
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
t
|
|
427
|
-
)}/${B(o)}/samples`;
|
|
428
|
-
return s().get(c, {
|
|
429
|
-
params: {
|
|
430
|
-
start: new Date(a).toISOString(),
|
|
431
|
-
end: new Date(r).toISOString(),
|
|
432
|
-
slices: i,
|
|
433
|
-
includeFirst: !1,
|
|
434
|
-
includeLast: !1
|
|
435
|
-
}
|
|
436
|
-
}).then(n).then((u) => u.timeSeries.entries);
|
|
437
|
-
}, Ds = (e, t, o) => s().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(t)}/unit`, o).then(n), Gs = async (e, t) => {
|
|
438
|
-
await s().delete(`/v2/assets/${e}/datapoints/${encodeURIComponent(t)}`);
|
|
355
|
+
var on = (e, n, i, a, o, s = !1, c = "ASC", l = 1e4) => r().get(`/v2/assets/urn/${encodeURIComponent(e)}/datapoints/${encodeURIComponent(n)}/${P(i)}/entries`, { params: {
|
|
356
|
+
start: a ? new Date(a).toISOString() : "",
|
|
357
|
+
end: o ? new Date(o).toISOString() : "",
|
|
358
|
+
order: c,
|
|
359
|
+
limit: l,
|
|
360
|
+
onlyChangedValues: s
|
|
361
|
+
} }).then(t).then((e) => e.timeSeries.entries), sn = (e, n, i, a = "ASC", o = 1e4, s = !1) => r().get(`/v2/assets/urn/${encodeURIComponent(e)}/datapoints/geoPosition/geoPosition/entries`, { params: {
|
|
362
|
+
start: n ? new Date(n).toISOString() : "",
|
|
363
|
+
end: i ? new Date(i).toISOString() : "",
|
|
364
|
+
order: a,
|
|
365
|
+
limit: o,
|
|
366
|
+
onlyChangedValues: s
|
|
367
|
+
} }).then(t).then((e) => e.timeSeries.entries), cn = (e, n, i, a, o, s) => {
|
|
368
|
+
let c = `/v2/assets/urn/${encodeURIComponent(e)}/datapoints/${encodeURIComponent(n)}/${P(i)}/samples`;
|
|
369
|
+
return r().get(c, { params: {
|
|
370
|
+
start: new Date(a).toISOString(),
|
|
371
|
+
end: new Date(o).toISOString(),
|
|
372
|
+
slices: s,
|
|
373
|
+
includeFirst: !1,
|
|
374
|
+
includeLast: !1
|
|
375
|
+
} }).then(t).then((e) => e.timeSeries.entries);
|
|
376
|
+
}, ln = (e, n, i) => r().put(`/v2/assets/${e}/datapoints/${encodeURIComponent(n)}/unit`, i).then(t), un = async (e, t) => {
|
|
377
|
+
await r().delete(`/v2/assets/${e}/datapoints/${encodeURIComponent(t)}`);
|
|
439
378
|
};
|
|
440
|
-
function
|
|
441
|
-
|
|
379
|
+
function dn(e) {
|
|
380
|
+
switch (e) {
|
|
381
|
+
case "GEO_POSITION": return "geoPosition";
|
|
382
|
+
default: return e.toLowerCase();
|
|
383
|
+
}
|
|
442
384
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
})
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}).
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
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
|
-
|
|
755
|
-
|
|
756
|
-
},
|
|
757
|
-
|
|
758
|
-
},
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}, yo = async (e) => {
|
|
810
|
-
await s().delete(`/v2/accounts/${e}/authenticationDevices`);
|
|
811
|
-
}, $o = (e) => s().get("/v2/accountGroups", { params: y(e) }).then(n), Ao = (e) => s().get(`/v2/accountGroups/${e}`).then(n), wo = (e) => s().post("/v2/accountGroups", e).then(n), Do = (e) => s().put(`/v2/accountGroups/${e.id}`, e).then(n), Go = async (e) => {
|
|
812
|
-
await s().delete(`/v2/accountGroups/${e}`);
|
|
813
|
-
}, So = (e, t) => {
|
|
814
|
-
const o = {
|
|
815
|
-
q: e,
|
|
816
|
-
ignoreCase: !0,
|
|
817
|
-
...y(t)
|
|
818
|
-
};
|
|
819
|
-
return s().get("/v2/accountGroups/search", {
|
|
820
|
-
params: o,
|
|
821
|
-
headers: {
|
|
822
|
-
"Content-Type": "text/plain"
|
|
823
|
-
}
|
|
824
|
-
}).then(n);
|
|
825
|
-
}, Co = (e) => s().get(`/v2/accountGroups/${e}/roles`).then(n), Io = (e, t) => s().put(`/v2/accountGroups/${e}/roles`, t).then(n), Ro = async (e, t) => {
|
|
826
|
-
await s().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
827
|
-
action: "ADD",
|
|
828
|
-
accountIds: t
|
|
829
|
-
});
|
|
830
|
-
}, bo = async (e, t) => {
|
|
831
|
-
await s().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
832
|
-
action: "ADD",
|
|
833
|
-
query: t
|
|
834
|
-
});
|
|
835
|
-
}, Oo = async (e, t) => {
|
|
836
|
-
await s().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
837
|
-
action: "REMOVE",
|
|
838
|
-
accountIds: t
|
|
839
|
-
});
|
|
840
|
-
}, Uo = async (e, t) => {
|
|
841
|
-
await s().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
842
|
-
action: "REMOVE",
|
|
843
|
-
query: t
|
|
844
|
-
});
|
|
845
|
-
}, Po = (e) => s().get(`/v2/accountGroups/${e}/assetGroupsAccesses`).then(n).then((t) => t.assetGroupIds), To = async (e, t) => {
|
|
846
|
-
await s().put(`/v2/assetGroups/${t}/access/${e}`);
|
|
847
|
-
}, Eo = async (e, t) => {
|
|
848
|
-
await s().delete(`/v2/assetGroups/${t}/access/${e}`);
|
|
849
|
-
}, Bo = (e) => s().get(`/v2/accountGroups/${e}/accountGroupsAccesses`).then(n).then((t) => t.accountGroupIds), zo = (e) => s().get(`/v2/accountGroups/${e}/access`).then(n).then((t) => t.accountGroupIds), Lo = async (e, t) => {
|
|
850
|
-
await s().put(`/v2/accountGroups/${e}/access/${t}`);
|
|
851
|
-
}, xo = async (e, t) => {
|
|
852
|
-
await s().delete(`/v2/accountGroups/${e}/access/${t}`);
|
|
853
|
-
}, ko = () => s().get("v2/licenses").then(n), No = (e) => s().get(`v2/licenses/${e}`).then(n), Vo = (e) => s().post("v2/licenses", e).then(n), Mo = (e) => s().put(`/v2/licenses/${e.name}`, e).then(n), jo = async (e) => {
|
|
854
|
-
await s().delete(`v2/licenses/${e}`);
|
|
855
|
-
}, qo = () => s().get("/v2/version", {
|
|
856
|
-
headers: {
|
|
857
|
-
Accept: "text/plain"
|
|
858
|
-
}
|
|
859
|
-
}).then(n), _o = async (e, t) => {
|
|
860
|
-
await s().put(
|
|
861
|
-
`/beta/gateways/urn/${e}/remoteServiceVpnConnection`,
|
|
862
|
-
t ? {
|
|
863
|
-
targetNetwork: t
|
|
864
|
-
} : {}
|
|
865
|
-
);
|
|
866
|
-
}, Fo = (e) => s().get(`/beta/gateways/urn/${e}/remoteServiceVpnConnection`).then(n), Qo = async (e) => {
|
|
867
|
-
await s().delete(`/beta/gateways/urn/${e}/remoteServiceVpnConnection`);
|
|
868
|
-
}, Ho = (e) => s().get(`/v2/gateways/${e}/preparedCommands`).then(n), Wo = (e) => s().post("/v2/preparedCommands", e).then(n), Ko = (e) => s().put(`/v2/preparedCommands/${e.id}`, e).then(n), Xo = async (e) => {
|
|
869
|
-
await s().delete(`/v2/preparedCommands/${e}`);
|
|
870
|
-
}, Jo = async (e, t) => {
|
|
871
|
-
await s().put(`/v2/gateways/${e}/preparedCommandsById`, t);
|
|
872
|
-
}, Yo = (e, t) => s().post(`/v2/gateways/${e}/preparedCommands/${t.id}/execution`).then(n), Zo = (e, t) => {
|
|
873
|
-
const o = {
|
|
874
|
-
expirySeconds: 60,
|
|
875
|
-
content: {
|
|
876
|
-
type: "discoveryCommand",
|
|
877
|
-
discoveryParameters: t
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
return s().post(`/v2/gateways/${e}/commands`, o).then(n);
|
|
881
|
-
}, ea = (e, t) => s().get(`/v2/gateways/${e}/commands/${t}/responses`).then(n), ta = (e) => s().put(`/v2/authorizationServers/${e.name}`, e).then(n), sa = async (e) => {
|
|
882
|
-
await s().delete(`/v2/authorizationServers/${e}`);
|
|
883
|
-
}, na = (e) => s().get(`/v2/authorizationServers/${e}`).then(n), oa = () => s().get("/v2/authorizationServers").then(n), aa = (e, t) => s().put(`/v2/authorizationServers/${e}/rules/${t.name}`, t).then(n), ra = (e) => s().get(`/v2/authorizationServers/${e}/rules`).then(n), ia = (e, t) => s().get(`/v2/authorizationServers/${e}/rules/${t}`).then(n), ca = async (e, t) => {
|
|
884
|
-
await s().delete(`/v2/authorizationServers/${e}/rules/${t}`);
|
|
885
|
-
}, d = {
|
|
886
|
-
headers: {
|
|
887
|
-
"X-Dry-Run": !0
|
|
888
|
-
}
|
|
889
|
-
}, ua = (e) => s().post(`/v2/${e.isGateway ? "gateways" : "assets"}`, e, d).then(n), pa = (e) => {
|
|
890
|
-
const { assetGroupIds: t, ...o } = e;
|
|
891
|
-
return s().put(`/v2/${e.isGateway ? "gateways" : "assets"}/${e.id}`, o, d).then(n);
|
|
892
|
-
}, se = async (e, t) => {
|
|
893
|
-
await s().put(`/v2/assets/${e}/groups/${t}`, null, d);
|
|
894
|
-
}, ne = async (e, t) => {
|
|
895
|
-
await s().delete(`/v2/assets/${e}/groups/${t}`, d);
|
|
896
|
-
}, da = async (e, t) => {
|
|
897
|
-
const o = await T(e);
|
|
898
|
-
let a = [];
|
|
899
|
-
o.length > 0 && (a = (await P(o)).map(({ id: c }) => c));
|
|
900
|
-
const r = t.filter((c) => !o.includes(c)), i = a.filter((c) => t && !t.includes(c));
|
|
901
|
-
return Promise.all([
|
|
902
|
-
...r.map((c) => se(e, c)),
|
|
903
|
-
...i.map((c) => ne(e, c))
|
|
904
|
-
]);
|
|
905
|
-
}, ga = (e) => s().post(`/v2/assetGroupDefinitions/${e.definitionId}/groups`, e, d).then(n), la = (e) => s().put(`/v2/assetGroups/${e.id}`, e, d).then(n), ha = async (e) => {
|
|
906
|
-
await s().delete(`/v2/assetGroups/${e}`, d);
|
|
907
|
-
}, va = async (e, t) => {
|
|
908
|
-
await s().post(
|
|
909
|
-
`/v2/assetGroups/${e.id}/assetAssignments`,
|
|
910
|
-
{
|
|
911
|
-
action: "ADD",
|
|
912
|
-
assetIds: t
|
|
913
|
-
},
|
|
914
|
-
d
|
|
915
|
-
);
|
|
916
|
-
}, fa = async (e, t) => {
|
|
917
|
-
await s().post(
|
|
918
|
-
`/v2/assetGroups/${e.id}/assetAssignments`,
|
|
919
|
-
{
|
|
920
|
-
action: "ADD",
|
|
921
|
-
query: t
|
|
922
|
-
},
|
|
923
|
-
d
|
|
924
|
-
);
|
|
925
|
-
}, ma = async (e, t) => {
|
|
926
|
-
await s().post(
|
|
927
|
-
`/v2/assetGroups/${e.id}/assetAssignments`,
|
|
928
|
-
{
|
|
929
|
-
action: "REMOVE",
|
|
930
|
-
assetIds: t
|
|
931
|
-
},
|
|
932
|
-
d
|
|
933
|
-
);
|
|
934
|
-
}, ya = async (e, t) => {
|
|
935
|
-
await s().post(
|
|
936
|
-
`/v2/assetGroups/${e.id}/assetAssignments`,
|
|
937
|
-
{
|
|
938
|
-
action: "REMOVE",
|
|
939
|
-
query: t
|
|
940
|
-
},
|
|
941
|
-
d
|
|
942
|
-
);
|
|
385
|
+
var fn = async (e, t, n, i) => {
|
|
386
|
+
let a = (/* @__PURE__ */ new Date(0)).toISOString(), o = n || a, s = i ? {
|
|
387
|
+
start: o,
|
|
388
|
+
end: i
|
|
389
|
+
} : { start: o }, c = dn(t.datatype);
|
|
390
|
+
await r().delete(`/v2/assets/urn/${encodeURIComponent(e)}/datapoints/${encodeURIComponent(t.name)}/${c}/entries`, { params: s });
|
|
391
|
+
}, F = {
|
|
392
|
+
BOOLEAN: "boolean",
|
|
393
|
+
DOUBLE: "double",
|
|
394
|
+
LONG: "long",
|
|
395
|
+
TEXT: "text",
|
|
396
|
+
GEO_POSITION: "geo_position",
|
|
397
|
+
STRUCTURED: "structured"
|
|
398
|
+
}, pn = (e, n, i, a, o) => {
|
|
399
|
+
let s = {
|
|
400
|
+
datatype: F[i],
|
|
401
|
+
start: a,
|
|
402
|
+
end: o
|
|
403
|
+
};
|
|
404
|
+
return r().get(`/v2/assets/${e}/datapoints/${n}/propertyNodes`, { params: s }).then(t);
|
|
405
|
+
}, mn = (e, n, i, o, s, c) => {
|
|
406
|
+
let l = {
|
|
407
|
+
datatype: F[i],
|
|
408
|
+
start: o,
|
|
409
|
+
end: s,
|
|
410
|
+
propertyPath: c || ""
|
|
411
|
+
};
|
|
412
|
+
return c && (l.propertyPath = c), a(() => r().get(`/v2/assets/${e}/datapoints/${n}/distinctValues`, { params: l }).then(t));
|
|
413
|
+
}, hn = (e, n, i, o, s) => {
|
|
414
|
+
let c = {
|
|
415
|
+
interval: {
|
|
416
|
+
start: e,
|
|
417
|
+
end: n
|
|
418
|
+
},
|
|
419
|
+
filters: i
|
|
420
|
+
}, l = I(o, s);
|
|
421
|
+
return a(() => r().post(`/v2/assets/datapointValues${l}`, c).then(t));
|
|
422
|
+
}, gn = (e, n) => {
|
|
423
|
+
let i = I(e);
|
|
424
|
+
return a(() => r().get(`/v2/assets/datapointValues/${n}${i}`).then(t));
|
|
425
|
+
}, I = (e, t) => {
|
|
426
|
+
let n = c(e), r = {};
|
|
427
|
+
return n !== void 0 && (r = {
|
|
428
|
+
page: n.page.toString(),
|
|
429
|
+
size: n.size.toString(),
|
|
430
|
+
sort: n.sort
|
|
431
|
+
}), t !== void 0 && (r.storeQueryResult = t.toString()), Object.keys(r).length > 0 ? `?${new URLSearchParams(r).toString()}` : "";
|
|
432
|
+
}, _n = (e, n) => {
|
|
433
|
+
let { page: i, size: a, sort: o } = n || {
|
|
434
|
+
page: 0,
|
|
435
|
+
size: 10,
|
|
436
|
+
sort: ""
|
|
437
|
+
}, s = {
|
|
438
|
+
...e,
|
|
439
|
+
page: i,
|
|
440
|
+
size: a,
|
|
441
|
+
sort: o && `${o.property},${o.direction}` || "",
|
|
442
|
+
ignoreCase: !0
|
|
443
|
+
};
|
|
444
|
+
return r().get("/v2/dataProcessingDefinitions", { params: s }).then(t);
|
|
445
|
+
}, vn = (e) => r().get("/v2/dataProcessingDefinitions/assets", { params: { id: e } }).then(t), yn = (e) => r().get("/v2/dataProcessingDefinitions/assetGroups", { params: { id: e } }).then(t), bn = (e) => r().get("/v2/dataProcessingDefinitions/accesses", { params: { id: e } }).then(t), xn = (e) => r().get(`/v2/dataProcessingDefinitions/${e}`).then((e) => {
|
|
446
|
+
let n = t(e), r = e.headers?.etag || "";
|
|
447
|
+
return {
|
|
448
|
+
...n,
|
|
449
|
+
etag: r
|
|
450
|
+
};
|
|
451
|
+
}), Sn = (e) => r().get(`/v2/assets/${e}/dataProcessingDefinitions`).then(t), Cn = (e) => r().get(`/v2/assetGroups/${e}/dataProcessingDefinitions`).then(t), wn = (e) => r().post("/v2/dataProcessingDefinitions", e).then(t), Tn = (e) => {
|
|
452
|
+
let { etag: n, ...i } = e;
|
|
453
|
+
return r().put(`/v2/dataProcessingDefinitions/${i.id}`, i, { headers: n ? { "If-Match": n } : {} }).then(t);
|
|
454
|
+
}, En = (e, n) => r().put(`/v2/assets/${e}/dataProcessingDefinitionsById`, n).then(t), Dn = (e, n) => r().put(`/v2/assetGroups/${e}/dataProcessingDefinitionsById`, n).then(t), On = async (e) => {
|
|
455
|
+
await r().delete(`/v2/dataProcessingDefinitions/${e}`);
|
|
456
|
+
}, kn = (e, n, i) => {
|
|
457
|
+
let { definition: a } = e, { page: o, size: s, sort: c } = i || {
|
|
458
|
+
page: 0,
|
|
459
|
+
size: 10,
|
|
460
|
+
sort: ""
|
|
461
|
+
};
|
|
462
|
+
return r().post(`/v2/assetGroups/${n}/dataProcessingDefinitionValidation`, { definition: a }, { params: {
|
|
463
|
+
page: o,
|
|
464
|
+
size: s,
|
|
465
|
+
sort: c ? `${c.property},${c.direction}` : "",
|
|
466
|
+
ignoreCase: !0
|
|
467
|
+
} }).then(t);
|
|
468
|
+
}, An = (e) => r().get(`/v2/dataProcessingDefinitions/${e}/access`).then(t), jn = async (e, t) => {
|
|
469
|
+
await r().put(`/v2/dataProcessingDefinitions/${e}/access/${t}`);
|
|
470
|
+
}, Mn = async (e, t) => {
|
|
471
|
+
await r().delete(`/v2/dataProcessingDefinitions/${e}/access/${t}`);
|
|
472
|
+
}, Nn = (e, n) => r().post(`/v2/dataProcessingDefinitionEvaluations/${encodeURIComponent(e)}`, n).then(t), Pn = (e) => r().get("/v2/kpis/facts", { params: { ...e } }).then(({ data: e }) => e), Fn = (e) => r().get("/v2/kpis/facts/generic", { params: { ...e } }).then(({ data: e }) => e), In = 1440 * 60 * 1e3, Ln = (e, n, i, a) => {
|
|
473
|
+
let o = Date.now(), s = o, c = o - 28 * In, l = a === void 0 ? {} : { excludeAcknowledged: a };
|
|
474
|
+
return r().get(`/v2/eventLog/history/${e}`, { params: {
|
|
475
|
+
from: new Date(n ?? c).toISOString(),
|
|
476
|
+
to: new Date(i ?? s).toISOString(),
|
|
477
|
+
...l
|
|
478
|
+
} }).then(t).then((e) => e.events.map(L));
|
|
479
|
+
}, Rn = (e, n = !0) => {
|
|
480
|
+
let i = { excludeAcknowledged: n };
|
|
481
|
+
return r().get(`/v2/eventLog/stateful/${e}/open`, { params: i }).then(t).then((e) => e.events && e.events.map(L) || []);
|
|
482
|
+
}, L = (e) => ({
|
|
483
|
+
...e,
|
|
484
|
+
occurredAt: R(e.occurredAt),
|
|
485
|
+
clearedAt: R(e.clearedAt),
|
|
486
|
+
acknowledgeAt: R(e.acknowledgeAt)
|
|
487
|
+
}), R = (e) => e ? new Date(e).getTime() : null, zn = async (e, t) => {
|
|
488
|
+
await r().put(`/v2/eventLog/stateful/${e}/${encodeURIComponent(t)}/acknowledge`);
|
|
489
|
+
}, Bn = async (e, t) => {
|
|
490
|
+
await r().put(`/v2/eventLog/stateful/${e}/${encodeURIComponent(t)}/acknowledge`);
|
|
491
|
+
}, Vn = async (e, t, n) => {
|
|
492
|
+
await r().put(`/v2/eventLog/stateless/${e}/${encodeURIComponent(t)}/acknowledge?occurredAt=${new Date(n).toISOString()}`);
|
|
493
|
+
}, Hn = async (e, t, n) => {
|
|
494
|
+
let i = {};
|
|
495
|
+
t != null && (i.from = new Date(t).toISOString()), n != null && (i.to = new Date(n).toISOString()), await r().delete(`/v2/eventLog/history/${e}`, { params: i });
|
|
496
|
+
}, Un = (e) => r().get("/v2/eventLog/stateful/assets/open", { params: { assetId: e } }).then(t), Wn = (e, n, i) => r().get("/v2/eventLog/history/assets", { params: {
|
|
497
|
+
assetId: e,
|
|
498
|
+
from: new Date(n).toISOString(),
|
|
499
|
+
to: new Date(i).toISOString()
|
|
500
|
+
} }).then(t).then((e) => e.events.map(L)), Gn = () => r().get("/v2/locales").then(t).then((e) => e.map((e) => e.tag)), Kn = (e) => r().get(`/v2/accountGroups/${e}/grantedAccesses`, { params: {
|
|
501
|
+
page: 0,
|
|
502
|
+
size: 999,
|
|
503
|
+
sort: "id,ASC",
|
|
504
|
+
ignoreCase: !0
|
|
505
|
+
} }).then(t).then((e) => e.content), qn = (e) => r().get(`/v2/assetGroups/${e}/grantedAccesses`, { params: {
|
|
506
|
+
page: 0,
|
|
507
|
+
size: 999,
|
|
508
|
+
sort: "id,ASC",
|
|
509
|
+
ignoreCase: !0
|
|
510
|
+
} }).then(t).then((e) => e.content), Jn = (e, n) => r().post(`/v2/accountGroups/${e}/grantedAccesses`, { requiredAssetGroups: n }).then(t), Yn = (e, n) => r().put(`/v2/grantedAccesses/${e}`, n).then(t), z = async (e) => {
|
|
511
|
+
await r().delete(`/v2/grantedAccesses/${e}`);
|
|
512
|
+
}, Xn = () => r().get("/beta/namedQuery").then(t), Zn = (e, n) => r().put(`/beta/namedQuery/${e}/execute`, n).then((e) => t(e)), B = "OAUTH2_CLIENT", V = B, Qn = (e, n) => {
|
|
513
|
+
let i = new URLSearchParams({
|
|
514
|
+
grant_type: "password",
|
|
515
|
+
username: e,
|
|
516
|
+
password: n
|
|
517
|
+
}).toString();
|
|
518
|
+
return r().post("/v2/oauth/token", i, {
|
|
519
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
520
|
+
auth: {
|
|
521
|
+
username: B,
|
|
522
|
+
password: V
|
|
523
|
+
}
|
|
524
|
+
}).then(t).then(({ access_token: e, expires_in: t, refresh_token: n }) => U(e, t, n));
|
|
525
|
+
}, $n = (e) => {
|
|
526
|
+
let n = new URLSearchParams({
|
|
527
|
+
grant_type: "refresh_token",
|
|
528
|
+
refresh_token: e
|
|
529
|
+
}).toString();
|
|
530
|
+
return r().post("/v2/oauth/token", n, {
|
|
531
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
532
|
+
auth: {
|
|
533
|
+
username: B,
|
|
534
|
+
password: V
|
|
535
|
+
}
|
|
536
|
+
}).then(t).then(({ access_token: e, expires_in: t, refresh_token: n }) => U(e, t, n));
|
|
537
|
+
}, H = async (e, t) => {
|
|
538
|
+
let n = new URLSearchParams({
|
|
539
|
+
token: e,
|
|
540
|
+
token_type_hint: t
|
|
541
|
+
}).toString();
|
|
542
|
+
await r().post("/v2/oauth/revoke", n, {
|
|
543
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
544
|
+
auth: {
|
|
545
|
+
username: B,
|
|
546
|
+
password: V
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
}, er = (e) => H(e, "access_token"), tr = (e) => H(e, "refresh_token"), U = (t, n, r) => {
|
|
550
|
+
let { account_number: i, user_name: a, tenant: o } = e(t);
|
|
551
|
+
return {
|
|
552
|
+
accountNumber: i,
|
|
553
|
+
principal: a,
|
|
554
|
+
accessToken: t,
|
|
555
|
+
expiresAt: (/* @__PURE__ */ new Date()).getTime() + n * 1e3,
|
|
556
|
+
refreshToken: r,
|
|
557
|
+
tenant: o
|
|
558
|
+
};
|
|
559
|
+
}, nr = () => r().get("/v2/authorizationOptions").then(t), rr = () => r().get("/v2/properties?size=2000").then(t).then((e) => e.content), ir = (e) => r().get(`/v2/properties/${e}`).then(t), ar = (e) => r().post("/v2/properties", e).then(t), or = (e) => r().put(`/v2/properties/${e.key}`, e).then(t), sr = async (e) => {
|
|
560
|
+
await r().delete(`/v2/properties/${e.key}`);
|
|
561
|
+
}, cr = (e) => r().get(`/v2/roles/${e}`).then(t), lr = (e) => r().get("/v2/roles", { params: {
|
|
562
|
+
id: e,
|
|
563
|
+
page: 0,
|
|
564
|
+
size: e.length
|
|
565
|
+
} }).then(t).then((e) => e.content), ur = (e) => r().get(`/v2/licenses/${e}/roles`).then(t), dr = (e) => r().post("/v2/roles", e).then(t), fr = (e, n) => r().post(`/v2/licenses/${n}/roles`, e).then(t), pr = (e) => r().put(`/v2/roles/${e.id}`, e).then(t), mr = async (e) => {
|
|
566
|
+
await r().delete(`/v2/roles/${e}`);
|
|
567
|
+
}, hr = () => r().get("/v2/roles", { params: {
|
|
568
|
+
page: 0,
|
|
569
|
+
size: 1e3
|
|
570
|
+
} }).then(t).then((e) => e.content), gr = (e) => r().get(`/v2/roles/${e}/authorities`).then(t), _r = (e, n) => r().put(`/v2/roles/${e}/authorities`, n).then(t), W = (e) => r().get(`/v2/assets/${e}/ruleDefinitions`).then(t), G = (e) => r().get(`/v2/assetGroups/${e}/ruleDefinitions`).then(t), vr = (e) => r().post("/v2/ruleDefinitions/", e).then(t), yr = (e) => r().put(`/v2/ruleDefinitions/${e.id}`, e).then(t), K = (e, n) => r().put(`/v2/assets/${e}/ruleDefinitionsById`, n).then(t), q = (e, n) => r().put(`/v2/assetGroups/${e}/ruleDefinitionsById`, n).then(t), br = (e, t) => W(e).then((n) => K(e, n.map((e) => e.id).filter((e) => !t.includes(e)))), xr = (e, t) => G(e).then((n) => q(e, n.map((e) => e.id).filter((e) => !t.includes(e)))), Sr = async (e) => {
|
|
571
|
+
await r().delete(`/v2/ruleDefinitions/${e}`);
|
|
572
|
+
}, J = (e) => r().get(`/v2/ruleDefinitions/name/${e}`).then(t), Cr = (e) => !e || !e.length ? Promise.resolve(!0) : J(e).then(() => !1).catch(() => !0), wr = (e) => r().get("/v1/eventTemplateMapping", { params: { ruleId: e } }).then(t).then((e) => e.content), Tr = (e) => r().post("/v1/eventTemplateMapping", e).then(t), Er = async (e) => {
|
|
573
|
+
await r().delete(`/v1/eventTemplateMapping/ruleId/${e}`);
|
|
574
|
+
}, Dr = (e) => r().get(`/v2/emailTemplates/${e}`).then(t), Or = (e) => r().get(`/v2/emailTemplates/${e}/access`).then(t), kr = (e) => r().get("/v2/emailTemplates", { params: {
|
|
575
|
+
scope: "CONDITION_MONITORING",
|
|
576
|
+
...e
|
|
577
|
+
} }).then(t).then((e) => e.content), Ar = (e) => r().post("/v2/emailTemplates", e).then(t), jr = (e) => r().put(`/v2/emailTemplates/${e.id}`, e).then(t), Mr = async (e) => {
|
|
578
|
+
await r().delete(`/v2/emailTemplates/${e}`);
|
|
579
|
+
}, Nr = (e, n = [
|
|
580
|
+
"datapointValuesReceived",
|
|
581
|
+
"eventUpdate",
|
|
582
|
+
"statefulEvent"
|
|
583
|
+
]) => r().post("/v2/subscriptions", {
|
|
584
|
+
assetIds: e,
|
|
585
|
+
types: n,
|
|
586
|
+
durable: !1
|
|
587
|
+
}).then(t), Pr = (e, n = [
|
|
588
|
+
"datapointValuesReceived",
|
|
589
|
+
"eventUpdate",
|
|
590
|
+
"statefulEvent"
|
|
591
|
+
]) => r().post("/v2/subscriptions", {
|
|
592
|
+
assetGroupIds: e,
|
|
593
|
+
types: n,
|
|
594
|
+
durable: !1
|
|
595
|
+
}).then(t), Fr = async (e) => {
|
|
596
|
+
await r().delete(`/v2/subscriptions/${e}`);
|
|
597
|
+
}, Ir = () => r().get("/v2/units").then(t), Lr = (e) => r().put(`/v2/units/${e.name}`, e).then(t), Rr = (e) => r().get(`/v2/accounts/${e}`).then(t), Y = () => r().get("/v2/accounts/me").then(t), zr = (e) => r().get("/v2/accounts", { params: s(e) }).then(t), Br = (e) => {
|
|
598
|
+
let n = {
|
|
599
|
+
displayName: e.displayName,
|
|
600
|
+
name: e.name,
|
|
601
|
+
initialState: e.initialState,
|
|
602
|
+
emailAddress: e.principals.EMAIL[0].name,
|
|
603
|
+
locale: e.locale,
|
|
604
|
+
timezone: e.timezone,
|
|
605
|
+
accountGroupIds: e.accountGroupIds,
|
|
606
|
+
properties: e.properties
|
|
607
|
+
};
|
|
608
|
+
return e.principals.USERNAME && e.principals.USERNAME[0].name && (n.username = e.principals.USERNAME[0].name), r().post("/v2/accounts/registrationsWithEmail", n).then(t);
|
|
609
|
+
}, Vr = async (e, t) => {
|
|
610
|
+
await r().post(`/v2/accounts/${e}/invite`, { initialState: t });
|
|
611
|
+
}, Hr = (e) => r().put(`/v2/accounts/${e.number}`, e).then(t), Ur = (e) => r().put("/v2/accounts/me", e).then(t), Wr = (e, n) => {
|
|
612
|
+
let { page: i, size: a, sort: o } = n;
|
|
613
|
+
return r().get("/v2/accounts/search", {
|
|
614
|
+
params: {
|
|
615
|
+
q: e,
|
|
616
|
+
page: i || 0,
|
|
617
|
+
size: a,
|
|
618
|
+
sort: `${o.property},${o.direction}`,
|
|
619
|
+
ignoreCase: !0
|
|
620
|
+
},
|
|
621
|
+
headers: { "Content-Type": "text/plain" }
|
|
622
|
+
}).then(t);
|
|
623
|
+
}, Gr = (e) => r().get(`/v2/accountGroups?accountNumber=${e}`).then(t), Kr = async (e, t) => {
|
|
624
|
+
await r().put("/v2/accountPassword", {
|
|
625
|
+
token: e,
|
|
626
|
+
password: t
|
|
627
|
+
});
|
|
628
|
+
}, qr = async (e) => {
|
|
629
|
+
await r().delete(`/v2/accounts/${e}`);
|
|
630
|
+
}, Jr = async () => {
|
|
631
|
+
await r().delete("/v2/accounts/me");
|
|
632
|
+
}, Yr = async (e) => {
|
|
633
|
+
await r().post("/v2/accountPasswordReset", { email: e });
|
|
634
|
+
}, Xr = async (e, t, n) => {
|
|
635
|
+
await r().post(`/v2/accounts/${e}/emailChange `, {
|
|
636
|
+
oldEmailAddress: t,
|
|
637
|
+
newEmailAddress: n
|
|
638
|
+
});
|
|
639
|
+
}, Zr = async (e) => {
|
|
640
|
+
await r().post("/v2/emailChange", { token: e });
|
|
641
|
+
}, Qr = async (e, t, n) => {
|
|
642
|
+
let i = [];
|
|
643
|
+
t.length && i.push({
|
|
644
|
+
action: "ADD",
|
|
645
|
+
groupIds: t
|
|
646
|
+
}), n.length && i.push({
|
|
647
|
+
action: "REMOVE",
|
|
648
|
+
groupIds: n
|
|
649
|
+
}), await r().patch(`/v2/accounts/${e}/groups`, { changes: i });
|
|
650
|
+
}, $r = (e) => r().get(`/v2/accounts/${e}/roles`).then(t), ei = (e, n) => r().put(`/v2/accounts/${e}/roles`, n).then(t), ti = (e) => r().put("/v2/accounts/me/locale", e).then(t), ni = () => r().put("/v2/accounts/me/acceptTerms").then(() => Y()), ri = async (e, t) => {
|
|
651
|
+
await r().put(`/v2/accounts/${e}/state`, { state: t });
|
|
652
|
+
}, ii = async (e) => {
|
|
653
|
+
await r().delete(`/v2/accounts/${e}/authenticationDevices`);
|
|
654
|
+
}, ai = (e) => r().get("/v2/accountGroups", { params: s(e) }).then(t), oi = (e) => r().get(`/v2/accountGroups/${e}`).then(t), si = (e) => r().post("/v2/accountGroups", e).then(t), ci = (e) => r().put(`/v2/accountGroups/${e.id}`, e).then(t), li = async (e) => {
|
|
655
|
+
await r().delete(`/v2/accountGroups/${e}`);
|
|
656
|
+
}, ui = (e, n) => {
|
|
657
|
+
let i = {
|
|
658
|
+
q: e,
|
|
659
|
+
ignoreCase: !0,
|
|
660
|
+
...s(n)
|
|
661
|
+
};
|
|
662
|
+
return r().get("/v2/accountGroups/search", {
|
|
663
|
+
params: i,
|
|
664
|
+
headers: { "Content-Type": "text/plain" }
|
|
665
|
+
}).then(t);
|
|
666
|
+
}, di = (e) => r().get(`/v2/accountGroups/${e}/roles`).then(t), fi = (e, n) => r().put(`/v2/accountGroups/${e}/roles`, n).then(t), pi = async (e, t) => {
|
|
667
|
+
await r().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
668
|
+
action: "ADD",
|
|
669
|
+
accountIds: t
|
|
670
|
+
});
|
|
671
|
+
}, mi = async (e, t) => {
|
|
672
|
+
await r().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
673
|
+
action: "ADD",
|
|
674
|
+
query: t
|
|
675
|
+
});
|
|
676
|
+
}, hi = async (e, t) => {
|
|
677
|
+
await r().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
678
|
+
action: "REMOVE",
|
|
679
|
+
accountIds: t
|
|
680
|
+
});
|
|
681
|
+
}, gi = async (e, t) => {
|
|
682
|
+
await r().post(`/v2/accountGroups/${e.id}/accountAssignments`, {
|
|
683
|
+
action: "REMOVE",
|
|
684
|
+
query: t
|
|
685
|
+
});
|
|
686
|
+
}, _i = (e) => r().get(`/v2/accountGroups/${e}/assetGroupsAccesses`).then(t).then((e) => e.assetGroupIds), vi = async (e, t) => {
|
|
687
|
+
await r().put(`/v2/assetGroups/${t}/access/${e}`);
|
|
688
|
+
}, yi = async (e, t) => {
|
|
689
|
+
await r().delete(`/v2/assetGroups/${t}/access/${e}`);
|
|
690
|
+
}, bi = (e) => r().get(`/v2/accountGroups/${e}/accountGroupsAccesses`).then(t).then((e) => e.accountGroupIds), xi = (e) => r().get(`/v2/accountGroups/${e}/access`).then(t).then((e) => e.accountGroupIds), Si = async (e, t) => {
|
|
691
|
+
await r().put(`/v2/accountGroups/${e}/access/${t}`);
|
|
692
|
+
}, Ci = async (e, t) => {
|
|
693
|
+
await r().delete(`/v2/accountGroups/${e}/access/${t}`);
|
|
694
|
+
}, wi = () => r().get("v2/licenses").then(t), Ti = (e) => r().get(`v2/licenses/${e}`).then(t), Ei = (e) => r().post("v2/licenses", e).then(t), Di = (e) => r().put(`/v2/licenses/${e.name}`, e).then(t), Oi = async (e) => {
|
|
695
|
+
await r().delete(`v2/licenses/${e}`);
|
|
696
|
+
}, ki = () => r().get("/v2/version", { headers: { Accept: "text/plain" } }).then(t), Ai = async (e, t) => {
|
|
697
|
+
await r().put(`/beta/gateways/urn/${e}/remoteServiceVpnConnection`, t ? { targetNetwork: t } : {});
|
|
698
|
+
}, ji = (e) => r().get(`/beta/gateways/urn/${e}/remoteServiceVpnConnection`).then(t), Mi = async (e) => {
|
|
699
|
+
await r().delete(`/beta/gateways/urn/${e}/remoteServiceVpnConnection`);
|
|
700
|
+
}, Ni = (e) => r().get(`/v2/gateways/${e}/preparedCommands`).then(t), Pi = (e) => r().post("/v2/preparedCommands", e).then(t), Fi = (e) => r().put(`/v2/preparedCommands/${e.id}`, e).then(t), Ii = async (e) => {
|
|
701
|
+
await r().delete(`/v2/preparedCommands/${e}`);
|
|
702
|
+
}, Li = async (e, t) => {
|
|
703
|
+
await r().put(`/v2/gateways/${e}/preparedCommandsById`, t);
|
|
704
|
+
}, Ri = (e, n) => r().post(`/v2/gateways/${e}/preparedCommands/${n.id}/execution`).then(t), zi = (e, n) => {
|
|
705
|
+
let i = {
|
|
706
|
+
expirySeconds: 60,
|
|
707
|
+
content: {
|
|
708
|
+
type: "discoveryCommand",
|
|
709
|
+
discoveryParameters: n
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
return r().post(`/v2/gateways/${e}/commands`, i).then(t);
|
|
713
|
+
}, Bi = (e, n) => r().get(`/v2/gateways/${e}/commands/${n}/responses`).then(t), Vi = (e) => r().put(`/v2/authorizationServers/${e.name}`, e).then(t), Hi = async (e) => {
|
|
714
|
+
await r().delete(`/v2/authorizationServers/${e}`);
|
|
715
|
+
}, Ui = (e) => r().get(`/v2/authorizationServers/${e}`).then(t), Wi = () => r().get("/v2/authorizationServers").then(t), Gi = (e, n) => r().put(`/v2/authorizationServers/${e}/rules/${n.name}`, n).then(t), Ki = (e) => r().get(`/v2/authorizationServers/${e}/rules`).then(t), qi = (e, n) => r().get(`/v2/authorizationServers/${e}/rules/${n}`).then(t), Ji = async (e, t) => {
|
|
716
|
+
await r().delete(`/v2/authorizationServers/${e}/rules/${t}`);
|
|
717
|
+
}, X = { headers: { "X-Dry-Run": !0 } }, Yi = (e) => r().post(`/v2/${e.isGateway ? "gateways" : "assets"}`, e, X).then(t), Xi = (e) => {
|
|
718
|
+
let { assetGroupIds: n, ...i } = e;
|
|
719
|
+
return r().put(`/v2/${e.isGateway ? "gateways" : "assets"}/${e.id}`, i, X).then(t);
|
|
720
|
+
}, Zi = async (e, t) => {
|
|
721
|
+
await r().put(`/v2/assets/${e}/groups/${t}`, null, X);
|
|
722
|
+
}, Qi = async (e, t) => {
|
|
723
|
+
await r().delete(`/v2/assets/${e}/groups/${t}`, X);
|
|
724
|
+
}, $i = async (e, t) => {
|
|
725
|
+
let n = await m(e), r = [];
|
|
726
|
+
n.length > 0 && (r = (await u(n)).map(({ id: e }) => e));
|
|
727
|
+
let i = t.filter((e) => !n.includes(e)), a = r.filter((e) => t && !t.includes(e));
|
|
728
|
+
return Promise.all([...i.map((t) => Zi(e, t)), ...a.map((t) => Qi(e, t))]);
|
|
729
|
+
}, ea = (e) => r().post(`/v2/assetGroupDefinitions/${e.definitionId}/groups`, e, X).then(t), ta = (e) => r().put(`/v2/assetGroups/${e.id}`, e, X).then(t), na = async (e) => {
|
|
730
|
+
await r().delete(`/v2/assetGroups/${e}`, X);
|
|
731
|
+
}, ra = async (e, t) => {
|
|
732
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
733
|
+
action: "ADD",
|
|
734
|
+
assetIds: t
|
|
735
|
+
}, X);
|
|
736
|
+
}, ia = async (e, t) => {
|
|
737
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
738
|
+
action: "ADD",
|
|
739
|
+
query: t
|
|
740
|
+
}, X);
|
|
741
|
+
}, aa = async (e, t) => {
|
|
742
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
743
|
+
action: "REMOVE",
|
|
744
|
+
assetIds: t
|
|
745
|
+
}, X);
|
|
746
|
+
}, oa = async (e, t) => {
|
|
747
|
+
await r().post(`/v2/assetGroups/${e.id}/assetAssignments`, {
|
|
748
|
+
action: "REMOVE",
|
|
749
|
+
query: t
|
|
750
|
+
}, X);
|
|
943
751
|
};
|
|
944
|
-
|
|
945
|
-
|
|
752
|
+
//#endregion
|
|
753
|
+
//#region src/shadowKeys.ts
|
|
754
|
+
function sa(e) {
|
|
755
|
+
return e === "assets" ? r().get("/v2/assets/shadow/fields").then(t) : r().get(`/beta/${e}/fields`).then(t);
|
|
946
756
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
},
|
|
961
|
-
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region src/bundles.ts
|
|
759
|
+
var ca = () => r().get("/v2/bundles").then(t), la = (e) => r().get(`/v2/bundles/${e}`).then(t), ua = (e) => r().post("/v2/bundles", e).then(t), da = async (e) => {
|
|
760
|
+
await r().delete(`/v2/bundles/${e}`);
|
|
761
|
+
}, fa = (e, n, i) => {
|
|
762
|
+
let { page: a = 0, size: o = 1e3, sort: s = "" } = n || {};
|
|
763
|
+
return r().get(`/v2/bundles/${e}/versions`, { params: {
|
|
764
|
+
page: a,
|
|
765
|
+
size: o,
|
|
766
|
+
sort: s && `${s.property},${s.direction}` || "",
|
|
767
|
+
ignoreCase: !0,
|
|
768
|
+
draft: i
|
|
769
|
+
} }).then(t);
|
|
770
|
+
}, pa = (e, n) => r().get(`/v2/bundles/${e}/versions/${n}`).then(t), ma = (e, n) => r().post(`/v2/bundles/${e}/versions`, n).then(t), ha = (e, n) => r().put(`/v2/bundles/${e}/versions/${n}/release`).then(t), ga = async (e, t) => {
|
|
771
|
+
await r().delete(`/v2/bundles/${e}/versions/${t}`);
|
|
772
|
+
}, _a = (e, n, i, a) => (a ?? r()).post(`/v2/bundles/${e}/versions/${n}/files`, i, {
|
|
773
|
+
headers: { "content-type": "multipart/form-data" },
|
|
774
|
+
timeout: 900 * 1e3
|
|
775
|
+
}).then(t), va = (e, n) => r().get(`/v2/bundles/${e}/versions/${n}/files`).then(t), ya = (e, n, i) => r().get(`/v2/bundles/${e}/versions/${n}/files/${i}`).then(t), ba = async (e, t, n) => {
|
|
776
|
+
await r().delete(`/v2/bundles/${e}/versions/${t}/files/${n}`);
|
|
777
|
+
}, xa = () => r().get("/v2/auditLogEntities").then(t), Z = (e) => e ? new Date(e).toUTCString() : null, Sa = (e, n, i) => r().get(`/v2/auditLogDiffs/${e}/${n}`, { params: {
|
|
778
|
+
processedFrom: Z(i?.timeframe?.tsStart),
|
|
779
|
+
processedUntil: Z(i?.timeframe?.tsEnd),
|
|
780
|
+
account: i?.accountId
|
|
781
|
+
} }).then(t);
|
|
782
|
+
//#endregion
|
|
783
|
+
//#region src/powerBi.ts
|
|
784
|
+
async function Ca(e, n) {
|
|
785
|
+
return await r().get("/v1/powerBi/singleReport/params", { params: {
|
|
786
|
+
workspaceId: e,
|
|
787
|
+
reportId: n
|
|
788
|
+
} }).then(t);
|
|
978
789
|
}
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
})).data,
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region src/tsi.ts
|
|
792
|
+
var Q = async (e) => (await r().post("/v1/timeSeriesInsights/query", e, { params: {
|
|
793
|
+
"api-version": "2020-07-31",
|
|
794
|
+
storeType: "ColdStore"
|
|
795
|
+
} })).data, wa = (e) => Q({ aggregateSeries: e }), Ta = async (e) => Q({ getSeries: e }), Ea = async (e) => Q({ getEvents: e }), Da = (e, t) => r().put(`/v1/ux4iotSecurity/assets/${e}`, t), Oa = (e = "/v1/ux4iotSecurity/assets/", t) => r().put(`${e}${t.deviceId}`, t), $ = {
|
|
796
|
+
BOOLEAN: "boolean",
|
|
797
|
+
DOUBLE: "double",
|
|
798
|
+
LONG: "long",
|
|
799
|
+
TEXT: "string",
|
|
800
|
+
GEO_POSITION: "geo_position",
|
|
801
|
+
STRUCTURED: "structured"
|
|
991
802
|
};
|
|
992
|
-
async function
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
`/v2/assets/${e}/datapointValues`,
|
|
1001
|
-
p
|
|
1002
|
-
)).data;
|
|
803
|
+
async function ka(e, t, n, i, a, o, s, c) {
|
|
804
|
+
let l = {
|
|
805
|
+
datapoints: t,
|
|
806
|
+
datatype: $[n],
|
|
807
|
+
tsFrom: new Date(i).toISOString(),
|
|
808
|
+
tsTo: new Date(a).toISOString()
|
|
809
|
+
};
|
|
810
|
+
return o != null && (l.groupBy = o), s != null && (l.deduplication = s), c != null && (l.includeOutliers = c), (await r().post(`/v2/assets/${e}/datapointValues`, l)).data;
|
|
1003
811
|
}
|
|
1004
|
-
async function
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
`/v2/assets/${e}/datapointValues/latest`,
|
|
1011
|
-
i
|
|
1012
|
-
)).data;
|
|
812
|
+
async function Aa(e, t, n, i, a) {
|
|
813
|
+
let o = {
|
|
814
|
+
datapoints: t,
|
|
815
|
+
datatype: $[n]
|
|
816
|
+
};
|
|
817
|
+
return i != null && a != null && (o.tsFrom = new Date(i).toISOString(), o.tsTo = new Date(a).toISOString()), (await r().post(`/v2/assets/${e}/datapointValues/latest`, o)).data;
|
|
1013
818
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region src/initialAccountGroupAssignmentRules.ts
|
|
821
|
+
async function ja() {
|
|
822
|
+
return t(await r().get("/v2/initialAccountGroupAssignmentRules"));
|
|
1017
823
|
}
|
|
1018
|
-
async function
|
|
1019
|
-
|
|
1020
|
-
return n(t);
|
|
824
|
+
async function Ma(e) {
|
|
825
|
+
return t(await r().post("/v2/initialAccountGroupAssignmentRules", e));
|
|
1021
826
|
}
|
|
1022
|
-
async function
|
|
1023
|
-
|
|
1024
|
-
return n(o);
|
|
827
|
+
async function Na(e, n) {
|
|
828
|
+
return t(await r().put(`/v2/initialAccountGroupAssignmentRules/${e}`, n));
|
|
1025
829
|
}
|
|
1026
|
-
async function
|
|
1027
|
-
|
|
830
|
+
async function Pa(e) {
|
|
831
|
+
await r().delete(`/v2/initialAccountGroupAssignmentRules/${e}`);
|
|
1028
832
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
Js as acknowledgeStatefulEvent,
|
|
1034
|
-
Ys as acknowledgeStatelessEvent,
|
|
1035
|
-
To as addAccess,
|
|
1036
|
-
qs as addAccessToDataProcessingDefinition,
|
|
1037
|
-
Lo as addAccountGroupAccess,
|
|
1038
|
-
Xn as addUnit,
|
|
1039
|
-
La as aggregateSeries,
|
|
1040
|
-
_ as assignAssetGroup,
|
|
1041
|
-
Z as assignAssetGroupRules,
|
|
1042
|
-
Y as assignAssetRules,
|
|
1043
|
-
ve as assignAssetsByIds,
|
|
1044
|
-
va as assignAssetsByIdsDryRun,
|
|
1045
|
-
fe as assignAssetsByQuery,
|
|
1046
|
-
fa as assignAssetsByQueryDryRun,
|
|
1047
|
-
hs as assignConfigurationsToAsset,
|
|
1048
|
-
ks as assignDataProcessingDefinitionsToAsset,
|
|
1049
|
-
Ns as assignDataProcessingDefinitionsToAssetGroup,
|
|
1050
|
-
ke as assignGateway,
|
|
1051
|
-
Jo as assignPreparedCommandsToGateway,
|
|
1052
|
-
Ro as assignUsersToUserGroupByIds,
|
|
1053
|
-
bo as assignUsersToUserGroupByQuery,
|
|
1054
|
-
po as changeEmail,
|
|
1055
|
-
Ln as checkRuleNameUniquenes,
|
|
1056
|
-
Qt as checkShowUserDocumentation,
|
|
1057
|
-
Nt as checkStartPage,
|
|
1058
|
-
Oe as createAsset,
|
|
1059
|
-
at as createAssetDefinition,
|
|
1060
|
-
rt as createAssetDefinitionDatapoint,
|
|
1061
|
-
it as createAssetDefinitionDatapoints,
|
|
1062
|
-
ua as createAssetDryRun,
|
|
1063
|
-
ge as createAssetGroup,
|
|
1064
|
-
vt as createAssetGroupDefinition,
|
|
1065
|
-
ga as createAssetGroupDryRun,
|
|
1066
|
-
Ze as createAuthority,
|
|
1067
|
-
Da as createBundle,
|
|
1068
|
-
Oa as createBundleFile,
|
|
1069
|
-
Ia as createBundleVersion,
|
|
1070
|
-
ds as createConfiguration,
|
|
1071
|
-
Ls as createDataProcessingDefinition,
|
|
1072
|
-
ms as createDatapoint,
|
|
1073
|
-
qn as createEmailTemplate,
|
|
1074
|
-
kn as createEventTemplateMapping,
|
|
1075
|
-
an as createGrantedAccess,
|
|
1076
|
-
_a as createInitialAccountGroupAssignmentRule,
|
|
1077
|
-
Vo as createLicense,
|
|
1078
|
-
ta as createOrUpdateAuthorizationServer,
|
|
1079
|
-
aa as createOrUpdateAuthorizationServerRule,
|
|
1080
|
-
Wo as createPreparedCommand,
|
|
1081
|
-
yn as createProperty,
|
|
1082
|
-
Sn as createRole,
|
|
1083
|
-
Cn as createRoleWithLicense,
|
|
1084
|
-
Pn as createRule,
|
|
1085
|
-
Zn as createUser,
|
|
1086
|
-
wo as createUserGroup,
|
|
1087
|
-
yo as delete2FADevice,
|
|
1088
|
-
Eo as deleteAccess,
|
|
1089
|
-
xo as deleteAccountGroupAccess,
|
|
1090
|
-
is as deleteAccountGroupObject,
|
|
1091
|
-
H as deleteAccountObject,
|
|
1092
|
-
Nn as deleteAllEventTemplateMappingsOfRule,
|
|
1093
|
-
Pe as deleteAsset,
|
|
1094
|
-
nt as deleteAssetDefinition,
|
|
1095
|
-
ct as deleteAssetDefinitionDatapoint,
|
|
1096
|
-
Gt as deleteAssetDefinitionObject,
|
|
1097
|
-
he as deleteAssetGroup,
|
|
1098
|
-
mt as deleteAssetGroupDefinition,
|
|
1099
|
-
ha as deleteAssetGroupDryRun,
|
|
1100
|
-
It as deleteAssetGroupObject,
|
|
1101
|
-
At as deleteAssetObject,
|
|
1102
|
-
et as deleteAuthority,
|
|
1103
|
-
sa as deleteAuthorizationServer,
|
|
1104
|
-
ca as deleteAuthorizationServerRule,
|
|
1105
|
-
Ga as deleteBundle,
|
|
1106
|
-
Ta as deleteBundleFile,
|
|
1107
|
-
ba as deleteBundleVersion,
|
|
1108
|
-
Et as deleteConditionMonitoringPriorities,
|
|
1109
|
-
ls as deleteConfiguration,
|
|
1110
|
-
Vs as deleteDataProcessingDefinition,
|
|
1111
|
-
Gs as deleteDatapoint,
|
|
1112
|
-
Ss as deleteDatapointEntries,
|
|
1113
|
-
xt as deleteEULA,
|
|
1114
|
-
Fn as deleteEmailTemplate,
|
|
1115
|
-
cn as deleteGrantedAccess,
|
|
1116
|
-
Zs as deleteHistoricEvents,
|
|
1117
|
-
Qa as deleteInitialAccountGroupAssignmentRule,
|
|
1118
|
-
jo as deleteLicense,
|
|
1119
|
-
io as deleteMyAccount,
|
|
1120
|
-
Xo as deletePreparedCommand,
|
|
1121
|
-
An as deleteProperty,
|
|
1122
|
-
Rn as deleteRole,
|
|
1123
|
-
zn as deleteRule,
|
|
1124
|
-
Zt as deleteStartPage,
|
|
1125
|
-
I as deleteTenantObject,
|
|
1126
|
-
Ut as deleteUIConfigurations,
|
|
1127
|
-
ro as deleteUser,
|
|
1128
|
-
Go as deleteUserGroup,
|
|
1129
|
-
ns as downloadAssetBlobSeriesItem,
|
|
1130
|
-
Pa as downloadBundleFile,
|
|
1131
|
-
pn as executeNamedQuery,
|
|
1132
|
-
Yo as executePreparedCommand,
|
|
1133
|
-
Po as fetchAccesses,
|
|
1134
|
-
Bo as fetchAccountGroupAccesses,
|
|
1135
|
-
ie as fetchAggregation,
|
|
1136
|
-
Aa as fetchAllBundles,
|
|
1137
|
-
Se as fetchAssetByUrn,
|
|
1138
|
-
st as fetchAssetDefinition,
|
|
1139
|
-
tt as fetchAssetDefinitions,
|
|
1140
|
-
ue as fetchAssetGroupById,
|
|
1141
|
-
gt as fetchAssetGroupDefinitionById,
|
|
1142
|
-
lt as fetchAssetGroupDefinitionByName,
|
|
1143
|
-
ht as fetchAssetGroupDefinitions,
|
|
1144
|
-
T as fetchAssetGroupIds,
|
|
1145
|
-
ce as fetchAssetGroups,
|
|
1146
|
-
pe as fetchAssetGroupsByDataProcessingDefinitionId,
|
|
1147
|
-
P as fetchAssetGroupsById,
|
|
1148
|
-
de as fetchAssetGroupsByRuleId,
|
|
1149
|
-
De as fetchAssetWithShadowById,
|
|
1150
|
-
S as fetchAssets,
|
|
1151
|
-
Ie as fetchAssetsByAssetGroupId,
|
|
1152
|
-
be as fetchAssetsByDataProcessingDefinitionId,
|
|
1153
|
-
Re as fetchAssetsByRuleId,
|
|
1154
|
-
Ce as fetchAssetsByUrn,
|
|
1155
|
-
J as fetchAssignedAssetGroupRules,
|
|
1156
|
-
X as fetchAssignedAssetRules,
|
|
1157
|
-
vs as fetchAssignedGatewaysToConfiguration,
|
|
1158
|
-
Ba as fetchAuditLogDifferences,
|
|
1159
|
-
Ea as fetchAuditLogEntities,
|
|
1160
|
-
Je as fetchAuthorities,
|
|
1161
|
-
On as fetchAuthoritiesOfRole,
|
|
1162
|
-
Ye as fetchAuthorityByName,
|
|
1163
|
-
vn as fetchAuthorizationOptions,
|
|
1164
|
-
na as fetchAuthorizationServer,
|
|
1165
|
-
ia as fetchAuthorizationServerRule,
|
|
1166
|
-
ra as fetchAuthorizationServerRules,
|
|
1167
|
-
oa as fetchAuthorizationServers,
|
|
1168
|
-
wa as fetchBundle,
|
|
1169
|
-
Ua as fetchBundleFiles,
|
|
1170
|
-
Ca as fetchBundleVersion,
|
|
1171
|
-
Sa as fetchBundleVersions,
|
|
1172
|
-
ps as fetchConfigurationByName,
|
|
1173
|
-
us as fetchConfigurations,
|
|
1174
|
-
Bs as fetchDataProcessingDefinitionsAssignedToAsset,
|
|
1175
|
-
zs as fetchDataProcessingDefinitionsAssignedToAssetGroup,
|
|
1176
|
-
fs as fetchDatapointsByAssetId,
|
|
1177
|
-
Mn as fetchEmailTemplateAccessById,
|
|
1178
|
-
Vn as fetchEmailTemplateById,
|
|
1179
|
-
jn as fetchEmailTemplates,
|
|
1180
|
-
xn as fetchEventTemplateMappingsOfRule,
|
|
1181
|
-
Ws as fetchEventsByAssetId,
|
|
1182
|
-
Ge as fetchGatewayById,
|
|
1183
|
-
Xe as fetchGatewayCapabilities,
|
|
1184
|
-
We as fetchGatewayCommandResponses,
|
|
1185
|
-
nn as fetchGrantedAccesses,
|
|
1186
|
-
on as fetchGrantedAccessesForAssetGroup,
|
|
1187
|
-
Ae as fetchGroupsByIds,
|
|
1188
|
-
tn as fetchHistoricEventsOfMultipleAssets,
|
|
1189
|
-
zo as fetchInverseAccountGroupAccesses,
|
|
1190
|
-
No as fetchLicenseByName,
|
|
1191
|
-
ko as fetchLicenses,
|
|
1192
|
-
sn as fetchLocales,
|
|
1193
|
-
te as fetchMe,
|
|
1194
|
-
un as fetchNamedQueries,
|
|
1195
|
-
en as fetchOpenEventsOfMultipleAssets,
|
|
1196
|
-
Ks as fetchOpenStatefulEventsByAssetId,
|
|
1197
|
-
Ho as fetchPreparedCommands,
|
|
1198
|
-
fn as fetchProperties,
|
|
1199
|
-
Fo as fetchRemoteServiceConnectionInfo,
|
|
1200
|
-
wn as fetchRoleById,
|
|
1201
|
-
Dn as fetchRoleByIds,
|
|
1202
|
-
Co as fetchRoleIdsOfUserGroup,
|
|
1203
|
-
bn as fetchRoles,
|
|
1204
|
-
Gn as fetchRolesForLicense,
|
|
1205
|
-
lo as fetchRolesOfUser,
|
|
1206
|
-
ee as fetchRuleByName,
|
|
1207
|
-
ea as fetchSentCommandResponses,
|
|
1208
|
-
$a as fetchShadowKeys,
|
|
1209
|
-
Kn as fetchUnits,
|
|
1210
|
-
Jn as fetchUserByAccountNumber,
|
|
1211
|
-
Ao as fetchUserGroupById,
|
|
1212
|
-
$o as fetchUserGroups,
|
|
1213
|
-
oo as fetchUserGroupsOfUser,
|
|
1214
|
-
Yn as fetchUsers,
|
|
1215
|
-
$e as getAncestorGroups,
|
|
1216
|
-
pt as getAssetGroupHierarchies,
|
|
1217
|
-
dt as getAssetGroupHierarchyRoots,
|
|
1218
|
-
s as getAxios,
|
|
1219
|
-
Fe as getCertificateDetails,
|
|
1220
|
-
Es as getDataProcessingDefinitionById,
|
|
1221
|
-
Fs as getDataProcessingDefinitionEvaluations,
|
|
1222
|
-
As as getDatapointGeoPositionValues,
|
|
1223
|
-
ws as getDatapointSamples,
|
|
1224
|
-
$s as getDatapointValues,
|
|
1225
|
-
Rs as getDatapointValuesByFilters,
|
|
1226
|
-
bs as getDatapointValuesByQueryId,
|
|
1227
|
-
ka as getEvents,
|
|
1228
|
-
_e as getGatewayCertificateSummary,
|
|
1229
|
-
Ve as getGatewayConfigurationsSyncStatus,
|
|
1230
|
-
qa as getInitialAccountGroupAssignmentRules,
|
|
1231
|
-
Hs as getKpiGeneric,
|
|
1232
|
-
Qs as getKpiGenericWithTimestamp,
|
|
1233
|
-
za as getParamsForSingleReport,
|
|
1234
|
-
mn as getPropertyById,
|
|
1235
|
-
xa as getSeries,
|
|
1236
|
-
Is as getStructuredDatapointDistinctValues,
|
|
1237
|
-
Cs as getStructuredDatapointPropertyNodes,
|
|
1238
|
-
qo as getVersion,
|
|
1239
|
-
_o as initializeRemoteServiceConnection,
|
|
1240
|
-
eo as inviteUser,
|
|
1241
|
-
Zo as invokeDiscoveryCommand,
|
|
1242
|
-
we as listAllChildAssetGroups,
|
|
1243
|
-
js as listDataProcessingDefinitionAccesses,
|
|
1244
|
-
Ts as listDataProcessingDefinitionAccountGroupAssignments,
|
|
1245
|
-
Us as listDataProcessingDefinitionAssetAssignments,
|
|
1246
|
-
Ps as listDataProcessingDefinitionAssetGroupAssignments,
|
|
1247
|
-
Os as listDataProcessingDefinitions,
|
|
1248
|
-
M as paginationSettingsAdxToQueryParams,
|
|
1249
|
-
y as paginationSettingsToQueryParams,
|
|
1250
|
-
Ma as queryDatapointValues,
|
|
1251
|
-
ja as queryLastDatapointsValue,
|
|
1252
|
-
os as readAccountGroupObject,
|
|
1253
|
-
as as readAccountGroupObjectBasedOnMembership,
|
|
1254
|
-
l as readAccountObject,
|
|
1255
|
-
ts as readAdvancedSearchDefaultProperties,
|
|
1256
|
-
ss as readAssetBlobSeries,
|
|
1257
|
-
wt as readAssetDefinitionObject,
|
|
1258
|
-
St as readAssetGroupObject,
|
|
1259
|
-
yt as readAssetObject,
|
|
1260
|
-
cs as readAzureB2cConfiguration,
|
|
1261
|
-
Pt as readConditionMonitoringPriorities,
|
|
1262
|
-
Bt as readEULA,
|
|
1263
|
-
zt as readEULAList,
|
|
1264
|
-
Yt as readFavorites,
|
|
1265
|
-
kt as readLegalPage,
|
|
1266
|
-
Xt as readPaginationSettings,
|
|
1267
|
-
_t as readReleaseNotesSubscription,
|
|
1268
|
-
qt as readReleaseNotesVersionsViewed,
|
|
1269
|
-
Ht as readShowUserDocumentation,
|
|
1270
|
-
Vt as readStartPage,
|
|
1271
|
-
g as readTenantObject,
|
|
1272
|
-
Rt as readUIConfigurations,
|
|
1273
|
-
bt as readUISecrets,
|
|
1274
|
-
gn as refreshToken,
|
|
1275
|
-
Ra as releaseBundleVersion,
|
|
1276
|
-
_s as removeAccessToDataProcessingDefinition,
|
|
1277
|
-
Ke as requestApplicationLogCommand,
|
|
1278
|
-
dn as requestToken,
|
|
1279
|
-
je as retrieveAssetBootstrapJson,
|
|
1280
|
-
qe as retrieveAssetBootstrapShellCommand,
|
|
1281
|
-
ln as revokeAccessToken,
|
|
1282
|
-
He as revokeAllGatewayCertificates,
|
|
1283
|
-
Qe as revokeGatewayCertificate,
|
|
1284
|
-
hn as revokeRefreshToken,
|
|
1285
|
-
j as searchAssetGroups,
|
|
1286
|
-
q as searchAssets,
|
|
1287
|
-
Le as searchAssetsByGeoBoundingBox,
|
|
1288
|
-
Ee as searchAssetsByProperty,
|
|
1289
|
-
ze as searchAssetsWithGeoDistance,
|
|
1290
|
-
Te as searchAssetsWithOpenEvents,
|
|
1291
|
-
Be as searchGateways,
|
|
1292
|
-
So as searchUserGroups,
|
|
1293
|
-
no as searchUsers,
|
|
1294
|
-
Na as sendUx4iotGrantRequest,
|
|
1295
|
-
Va as sendUx4iotGrantRequestToEndpoint,
|
|
1296
|
-
Un as setAuthoritiesOfRole,
|
|
1297
|
-
ae as setAxios,
|
|
1298
|
-
re as setAxiosConfig,
|
|
1299
|
-
ao as setUserPassword,
|
|
1300
|
-
mo as setUserState,
|
|
1301
|
-
Hn as subscribeAssetGroups,
|
|
1302
|
-
Qn as subscribeAssets,
|
|
1303
|
-
Qo as terminateRemoteServiceConnection,
|
|
1304
|
-
uo as triggerEmailChange,
|
|
1305
|
-
Me as triggerGatewayConfigurationsSync,
|
|
1306
|
-
co as triggerPasswordReset,
|
|
1307
|
-
F as unassignAssetGroup,
|
|
1308
|
-
Bn as unassignAssetGroupRules,
|
|
1309
|
-
En as unassignAssetRules,
|
|
1310
|
-
me as unassignAssetsByIds,
|
|
1311
|
-
ma as unassignAssetsByIdsDryRun,
|
|
1312
|
-
ye as unassignAssetsByQuery,
|
|
1313
|
-
ya as unassignAssetsByQueryDryRun,
|
|
1314
|
-
Ne as unassignGateway,
|
|
1315
|
-
Oo as unassignUsersFromUserGroupByIds,
|
|
1316
|
-
Uo as unassignUsersFromUserGroupByQuery,
|
|
1317
|
-
Wn as unsubscribe,
|
|
1318
|
-
Ue as updateAsset,
|
|
1319
|
-
ot as updateAssetDefinition,
|
|
1320
|
-
ut as updateAssetDefinitionDatapoint,
|
|
1321
|
-
pa as updateAssetDryRun,
|
|
1322
|
-
le as updateAssetGroup,
|
|
1323
|
-
ft as updateAssetGroupDefinition,
|
|
1324
|
-
la as updateAssetGroupDryRun,
|
|
1325
|
-
xe as updateAssetGroupIds,
|
|
1326
|
-
da as updateAssetGroupIdsDryRun,
|
|
1327
|
-
gs as updateConfiguration,
|
|
1328
|
-
xs as updateDataProcessingDefinition,
|
|
1329
|
-
ys as updateDatapointThresholds,
|
|
1330
|
-
Ds as updateDatapointUnit,
|
|
1331
|
-
_n as updateEmailTemplate,
|
|
1332
|
-
rn as updateGrantedAccess,
|
|
1333
|
-
Fa as updateInitialAccountGroupAssignmentRule,
|
|
1334
|
-
Mo as updateLicense,
|
|
1335
|
-
vo as updateLocaleOfUser,
|
|
1336
|
-
so as updateMe,
|
|
1337
|
-
Ko as updatePreparedCommand,
|
|
1338
|
-
$n as updateProperty,
|
|
1339
|
-
In as updateRole,
|
|
1340
|
-
Io as updateRoleIdsOfUserGroup,
|
|
1341
|
-
ho as updateRolesOfUser,
|
|
1342
|
-
Tn as updateRule,
|
|
1343
|
-
to as updateUser,
|
|
1344
|
-
Do as updateUserGroup,
|
|
1345
|
-
go as updateUserGroupsOfUser,
|
|
1346
|
-
Ms as validateDataProcessingDefinitionForAssetGroup,
|
|
1347
|
-
rs as writeAccountGroupObject,
|
|
1348
|
-
h as writeAccountObject,
|
|
1349
|
-
es as writeAdvancedSearchDefaultProperties,
|
|
1350
|
-
Dt as writeAssetDefinitionObject,
|
|
1351
|
-
Ct as writeAssetGroupObject,
|
|
1352
|
-
$t as writeAssetObject,
|
|
1353
|
-
Tt as writeConditionMonitoringPriorities,
|
|
1354
|
-
Lt as writeEULA,
|
|
1355
|
-
Jt as writeFavorites,
|
|
1356
|
-
Kt as writePaginationSettings,
|
|
1357
|
-
Ft as writeReleaseNotesSubscription,
|
|
1358
|
-
jt as writeReleaseNotesVersionsViewed,
|
|
1359
|
-
Wt as writeShowUserDocumentation,
|
|
1360
|
-
Mt as writeStartPage,
|
|
1361
|
-
C as writeTenantObject,
|
|
1362
|
-
Ot as writeUIConfigurations
|
|
1363
|
-
};
|
|
1364
|
-
//# sourceMappingURL=index.js.map
|
|
833
|
+
//#endregion
|
|
834
|
+
export { F as DataTypeToAdxDistinctDatapointType, ni as acceptEULA, zn as acknowledgeEvent, Bn as acknowledgeStatefulEvent, Vn as acknowledgeStatelessEvent, vi as addAccess, jn as addAccessToDataProcessingDefinition, Si as addAccountGroupAccess, Lr as addUnit, wa as aggregateSeries, h as assignAssetGroup, q as assignAssetGroupRules, K as assignAssetRules, oe as assignAssetsByIds, ra as assignAssetsByIdsDryRun, se as assignAssetsByQuery, ia as assignAssetsByQueryDryRun, en as assignConfigurationsToAsset, En as assignDataProcessingDefinitionsToAsset, Dn as assignDataProcessingDefinitionsToAssetGroup, ke as assignGateway, Li as assignPreparedCommandsToGateway, pi as assignUsersToUserGroupByIds, mi as assignUsersToUserGroupByQuery, Zr as changeEmail, Cr as checkRuleNameUniquenes, Mt as checkShowUserDocumentation, Tt as checkStartPage, be as createAsset, We as createAssetDefinition, Ge as createAssetDefinitionDatapoint, Ke as createAssetDefinitionDatapoints, Yi as createAssetDryRun, re as createAssetGroup, et as createAssetGroupDefinition, ea as createAssetGroupDryRun, Re as createAuthority, ua as createBundle, _a as createBundleFile, ma as createBundleVersion, Zt as createConfiguration, wn as createDataProcessingDefinition, rn as createDatapoint, Ar as createEmailTemplate, Tr as createEventTemplateMapping, Jn as createGrantedAccess, Ma as createInitialAccountGroupAssignmentRule, Ei as createLicense, Vi as createOrUpdateAuthorizationServer, Gi as createOrUpdateAuthorizationServerRule, Pi as createPreparedCommand, ar as createProperty, dr as createRole, fr as createRoleWithLicense, vr as createRule, Br as createUser, si as createUserGroup, ii as delete2FADevice, yi as deleteAccess, Ci as deleteAccountGroupAccess, qt as deleteAccountGroupObject, N as deleteAccountObject, Er as deleteAllEventTemplateMappingsOfRule, Se as deleteAsset, He as deleteAssetDefinition, qe as deleteAssetDefinitionDatapoint, lt as deleteAssetDefinitionObject, ae as deleteAssetGroup, nt as deleteAssetGroupDefinition, na as deleteAssetGroupDryRun, ft as deleteAssetGroupObject, ot as deleteAssetObject, ze as deleteAuthority, Hi as deleteAuthorizationServer, Ji as deleteAuthorizationServerRule, da as deleteBundle, ba as deleteBundleFile, ga as deleteBundleVersion, yt as deleteConditionMonitoringPriorities, $t as deleteConfiguration, On as deleteDataProcessingDefinition, un as deleteDatapoint, fn as deleteDatapointEntries, Ct as deleteEULA, Mr as deleteEmailTemplate, z as deleteGrantedAccess, Hn as deleteHistoricEvents, Pa as deleteInitialAccountGroupAssignmentRule, Oi as deleteLicense, Jr as deleteMyAccount, Ii as deletePreparedCommand, sr as deleteProperty, mr as deleteRole, Sr as deleteRule, zt as deleteStartPage, k as deleteTenantObject, gt as deleteUIConfigurations, qr as deleteUser, li as deleteUserGroup, Ut as downloadAssetBlobSeriesItem, ya as downloadBundleFile, Zn as executeNamedQuery, Ri as executePreparedCommand, _i as fetchAccesses, bi as fetchAccountGroupAccesses, o as fetchAggregation, ca as fetchAllBundles, he as fetchAssetByUrn, Ve as fetchAssetDefinition, Be as fetchAssetDefinitions, ee as fetchAssetGroupById, Ze as fetchAssetGroupDefinitionById, Qe as fetchAssetGroupDefinitionByName, $e as fetchAssetGroupDefinitions, m as fetchAssetGroupIds, l as fetchAssetGroups, te as fetchAssetGroupsByDataProcessingDefinitionId, u as fetchAssetGroupsById, ne as fetchAssetGroupsByRuleId, pe as fetchAssetWithShadowById, f as fetchAssets, _e as fetchAssetsByAssetGroupId, ye as fetchAssetsByDataProcessingDefinitionId, ve as fetchAssetsByRuleId, ge as fetchAssetsByUrn, G as fetchAssignedAssetGroupRules, W as fetchAssignedAssetRules, tn as fetchAssignedGatewaysToConfiguration, Sa as fetchAuditLogDifferences, xa as fetchAuditLogEntities, Ie as fetchAuthorities, gr as fetchAuthoritiesOfRole, Le as fetchAuthorityByName, nr as fetchAuthorizationOptions, Ui as fetchAuthorizationServer, qi as fetchAuthorizationServerRule, Ki as fetchAuthorizationServerRules, Wi as fetchAuthorizationServers, la as fetchBundle, va as fetchBundleFiles, pa as fetchBundleVersion, fa as fetchBundleVersions, Xt as fetchConfigurationByName, Yt as fetchConfigurations, Sn as fetchDataProcessingDefinitionsAssignedToAsset, Cn as fetchDataProcessingDefinitionsAssignedToAssetGroup, nn as fetchDatapointsByAssetId, Or as fetchEmailTemplateAccessById, Dr as fetchEmailTemplateById, kr as fetchEmailTemplates, wr as fetchEventTemplateMappingsOfRule, Ln as fetchEventsByAssetId, me as fetchGatewayById, Fe as fetchGatewayCapabilities, Ne as fetchGatewayCommandResponses, Kn as fetchGrantedAccesses, qn as fetchGrantedAccessesForAssetGroup, de as fetchGroupsByIds, Wn as fetchHistoricEventsOfMultipleAssets, xi as fetchInverseAccountGroupAccesses, Ti as fetchLicenseByName, wi as fetchLicenses, Gn as fetchLocales, Y as fetchMe, Xn as fetchNamedQueries, Un as fetchOpenEventsOfMultipleAssets, Rn as fetchOpenStatefulEventsByAssetId, Ni as fetchPreparedCommands, rr as fetchProperties, ji as fetchRemoteServiceConnectionInfo, cr as fetchRoleById, lr as fetchRoleByIds, di as fetchRoleIdsOfUserGroup, hr as fetchRoles, ur as fetchRolesForLicense, $r as fetchRolesOfUser, J as fetchRuleByName, Bi as fetchSentCommandResponses, sa as fetchShadowKeys, Ir as fetchUnits, Rr as fetchUserByAccountNumber, oi as fetchUserGroupById, ai as fetchUserGroups, Gr as fetchUserGroupsOfUser, zr as fetchUsers, ue as getAncestorGroups, Ye as getAssetGroupHierarchies, Xe as getAssetGroupHierarchyRoots, r as getAxios, x as getCertificateDetails, xn as getDataProcessingDefinitionById, Nn as getDataProcessingDefinitionEvaluations, sn as getDatapointGeoPositionValues, cn as getDatapointSamples, on as getDatapointValues, hn as getDatapointValuesByFilters, gn as getDatapointValuesByQueryId, Ea as getEvents, b as getGatewayCertificateSummary, je as getGatewayConfigurationsSyncStatus, ja as getInitialAccountGroupAssignmentRules, Fn as getKpiGeneric, Pn as getKpiGenericWithTimestamp, Ca as getParamsForSingleReport, ir as getPropertyById, Ta as getSeries, mn as getStructuredDatapointDistinctValues, pn as getStructuredDatapointPropertyNodes, ki as getVersion, Ai as initializeRemoteServiceConnection, Vr as inviteUser, zi as invokeDiscoveryCommand, fe as listAllChildAssetGroups, An as listDataProcessingDefinitionAccesses, bn as listDataProcessingDefinitionAccountGroupAssignments, vn as listDataProcessingDefinitionAssetAssignments, yn as listDataProcessingDefinitionAssetGroupAssignments, _n as listDataProcessingDefinitions, c as paginationSettingsAdxToQueryParams, s as paginationSettingsToQueryParams, ka as queryDatapointValues, Aa as queryLastDatapointsValue, Wt as readAccountGroupObject, Gt as readAccountGroupObjectBasedOnMembership, j as readAccountObject, Vt as readAdvancedSearchDefaultProperties, Ht as readAssetBlobSeries, st as readAssetDefinitionObject, ut as readAssetGroupObject, it as readAssetObject, Jt as readAzureB2cConfiguration, _t as readConditionMonitoringPriorities, bt as readEULA, xt as readEULAList, Rt as readFavorites, wt as readLegalPage, It as readPaginationSettings, At as readReleaseNotesSubscription, kt as readReleaseNotesVersionsViewed, Nt as readShowUserDocumentation, Et as readStartPage, D as readTenantObject, pt as readUIConfigurations, mt as readUISecrets, $n as refreshToken, ha as releaseBundleVersion, Mn as removeAccessToDataProcessingDefinition, Pe as requestApplicationLogCommand, Qn as requestToken, v as retrieveAssetBootstrapJson, y as retrieveAssetBootstrapShellCommand, er as revokeAccessToken, Me as revokeAllGatewayCertificates, S as revokeGatewayCertificate, tr as revokeRefreshToken, d as searchAssetGroups, p as searchAssets, De as searchAssetsByGeoBoundingBox, we as searchAssetsByProperty, Ee as searchAssetsWithGeoDistance, Ce as searchAssetsWithOpenEvents, Te as searchGateways, ui as searchUserGroups, Wr as searchUsers, Da as sendUx4iotGrantRequest, Oa as sendUx4iotGrantRequestToEndpoint, _r as setAuthoritiesOfRole, n as setAxios, i as setAxiosConfig, Kr as setUserPassword, ri as setUserState, Pr as subscribeAssetGroups, Nr as subscribeAssets, Mi as terminateRemoteServiceConnection, Xr as triggerEmailChange, _ as triggerGatewayConfigurationsSync, Yr as triggerPasswordReset, g as unassignAssetGroup, xr as unassignAssetGroupRules, br as unassignAssetRules, ce as unassignAssetsByIds, aa as unassignAssetsByIdsDryRun, le as unassignAssetsByQuery, oa as unassignAssetsByQueryDryRun, Ae as unassignGateway, hi as unassignUsersFromUserGroupByIds, gi as unassignUsersFromUserGroupByQuery, Fr as unsubscribe, xe as updateAsset, Ue as updateAssetDefinition, Je as updateAssetDefinitionDatapoint, Xi as updateAssetDryRun, ie as updateAssetGroup, tt as updateAssetGroupDefinition, ta as updateAssetGroupDryRun, Oe as updateAssetGroupIds, $i as updateAssetGroupIdsDryRun, Qt as updateConfiguration, Tn as updateDataProcessingDefinition, an as updateDatapointThresholds, ln as updateDatapointUnit, jr as updateEmailTemplate, Yn as updateGrantedAccess, Na as updateInitialAccountGroupAssignmentRule, Di as updateLicense, ti as updateLocaleOfUser, Ur as updateMe, Fi as updatePreparedCommand, or as updateProperty, pr as updateRole, fi as updateRoleIdsOfUserGroup, ei as updateRolesOfUser, yr as updateRule, Hr as updateUser, ci as updateUserGroup, Qr as updateUserGroupsOfUser, kn as validateDataProcessingDefinitionForAssetGroup, Kt as writeAccountGroupObject, M as writeAccountObject, Bt as writeAdvancedSearchDefaultProperties, ct as writeAssetDefinitionObject, dt as writeAssetGroupObject, at as writeAssetObject, vt as writeConditionMonitoringPriorities, St as writeEULA, Lt as writeFavorites, Ft as writePaginationSettings, jt as writeReleaseNotesSubscription, Ot as writeReleaseNotesVersionsViewed, Pt as writeShowUserDocumentation, Dt as writeStartPage, O as writeTenantObject, ht as writeUIConfigurations };
|
|
835
|
+
|
|
836
|
+
//# sourceMappingURL=index.js.map
|