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