@kelvininc/js-client-sdk 7.9.1 → 7.12.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 (338) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/cjs/core/http.d.ts +11 -1
  3. package/dist/cjs/core/http.js +16 -1
  4. package/dist/cjs/core/http.js.map +1 -1
  5. package/dist/cjs/models/generated/alarm.d.ts +2 -0
  6. package/dist/cjs/models/generated/alarm.js +1 -0
  7. package/dist/cjs/models/generated/alarm.js.map +1 -1
  8. package/dist/cjs/models/generated/alarmClustering.d.ts +21 -0
  9. package/dist/cjs/models/generated/alarmClustering.js +21 -0
  10. package/dist/cjs/models/generated/alarmClustering.js.map +1 -0
  11. package/dist/cjs/models/generated/alarmItem.d.ts +2 -0
  12. package/dist/cjs/models/generated/alarmItem.js +1 -0
  13. package/dist/cjs/models/generated/alarmItem.js.map +1 -1
  14. package/dist/cjs/models/generated/alarmTag.d.ts +23 -0
  15. package/dist/cjs/models/generated/alarmTag.js +22 -0
  16. package/dist/cjs/models/generated/alarmTag.js.map +1 -0
  17. package/dist/cjs/models/generated/alarmTagItem.d.ts +23 -0
  18. package/dist/cjs/models/generated/alarmTagItem.js +22 -0
  19. package/dist/cjs/models/generated/alarmTagItem.js.map +1 -0
  20. package/dist/cjs/models/generated/alarmTagListPaginated.d.ts +21 -0
  21. package/dist/cjs/models/generated/alarmTagListPaginated.js +22 -0
  22. package/dist/cjs/models/generated/alarmTagListPaginated.js.map +1 -0
  23. package/dist/cjs/models/generated/bridge.d.ts +24 -0
  24. package/dist/cjs/models/generated/bridge.js.map +1 -1
  25. package/dist/cjs/models/generated/bridgeDataStreamItem.d.ts +9 -0
  26. package/dist/cjs/models/generated/bridgeDataStreamItem.js.map +1 -1
  27. package/dist/cjs/models/generated/bridgeDataStreamListPaginated.d.ts +3 -0
  28. package/dist/cjs/models/generated/bridgeDataStreamListPaginated.js.map +1 -1
  29. package/dist/cjs/models/generated/bridgeItem.d.ts +21 -0
  30. package/dist/cjs/models/generated/bridgeItem.js.map +1 -1
  31. package/dist/cjs/models/generated/bridgeListPaginated.d.ts +3 -0
  32. package/dist/cjs/models/generated/bridgeListPaginated.js.map +1 -1
  33. package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.d.ts +25 -0
  34. package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.js +23 -0
  35. package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.js.map +1 -0
  36. package/dist/cjs/models/generated/controlChangeClustering.d.ts +21 -0
  37. package/dist/cjs/models/generated/controlChangeClustering.js +21 -0
  38. package/dist/cjs/models/generated/controlChangeClustering.js.map +1 -0
  39. package/dist/cjs/models/generated/emissionsDashboard.d.ts +2 -2
  40. package/dist/cjs/models/generated/emissionsDashboard.js +1 -1
  41. package/dist/cjs/models/generated/emissionsDashboard.js.map +1 -1
  42. package/dist/cjs/models/generated/fullMap.d.ts +49 -0
  43. package/dist/cjs/models/generated/fullMap.js +38 -0
  44. package/dist/cjs/models/generated/fullMap.js.map +1 -0
  45. package/dist/cjs/models/generated/fullMapListPaginated.d.ts +21 -0
  46. package/dist/cjs/models/generated/fullMapListPaginated.js +22 -0
  47. package/dist/cjs/models/generated/fullMapListPaginated.js.map +1 -0
  48. package/dist/cjs/models/generated/index.d.ts +9 -0
  49. package/dist/cjs/models/generated/index.js +9 -0
  50. package/dist/cjs/models/generated/index.js.map +1 -1
  51. package/dist/cjs/models/generated/mQTTTopicItem.d.ts +18 -0
  52. package/dist/cjs/models/generated/mQTTTopicItem.js.map +1 -1
  53. package/dist/cjs/models/generated/mQTTTopicList.d.ts +3 -0
  54. package/dist/cjs/models/generated/mQTTTopicList.js.map +1 -1
  55. package/dist/cjs/models/generated/mapItem.d.ts +8 -4
  56. package/dist/cjs/models/generated/mapItem.js +4 -2
  57. package/dist/cjs/models/generated/mapItem.js.map +1 -1
  58. package/dist/cjs/models/generated/mapModel.d.ts +4 -0
  59. package/dist/cjs/models/generated/mapModel.js +2 -0
  60. package/dist/cjs/models/generated/mapModel.js.map +1 -1
  61. package/dist/cjs/models/generated/mapVersionItem.d.ts +4 -2
  62. package/dist/cjs/models/generated/mapVersionItem.js +2 -1
  63. package/dist/cjs/models/generated/mapVersionItem.js.map +1 -1
  64. package/dist/cjs/models/generated/metricListPaginated.d.ts +1 -1
  65. package/dist/cjs/models/generated/metricListPaginated.js.map +1 -1
  66. package/dist/cjs/models/generated/page.d.ts +21 -0
  67. package/dist/cjs/models/generated/page.js +21 -0
  68. package/dist/cjs/models/generated/page.js.map +1 -0
  69. package/dist/cjs/models/generated/rulePayload.d.ts +2 -0
  70. package/dist/cjs/models/generated/rulePayload.js +1 -0
  71. package/dist/cjs/models/generated/rulePayload.js.map +1 -1
  72. package/dist/cjs/models/generated/storageData.d.ts +15 -0
  73. package/dist/cjs/models/generated/storageData.js.map +1 -1
  74. package/dist/cjs/models/generated/storageMetric.d.ts +18 -0
  75. package/dist/cjs/models/generated/storageMetric.js.map +1 -1
  76. package/dist/cjs/models/generated/storageMetricListPaginated.d.ts +3 -0
  77. package/dist/cjs/models/generated/storageMetricListPaginated.js.map +1 -1
  78. package/dist/cjs/models/generated/workload.d.ts +4 -2
  79. package/dist/cjs/models/generated/workload.js +2 -1
  80. package/dist/cjs/models/generated/workload.js.map +1 -1
  81. package/dist/cjs/models/generated/workloadItem.d.ts +4 -2
  82. package/dist/cjs/models/generated/workloadItem.js +2 -1
  83. package/dist/cjs/models/generated/workloadItem.js.map +1 -1
  84. package/dist/cjs/services/generated/api/alarm.service.d.ts +50 -2
  85. package/dist/cjs/services/generated/api/alarm.service.js +113 -0
  86. package/dist/cjs/services/generated/api/alarm.service.js.map +1 -1
  87. package/dist/cjs/services/generated/api/asset.service.d.ts +1 -1
  88. package/dist/cjs/services/generated/api/asset.service.js +1 -1
  89. package/dist/cjs/services/generated/api/asset.service.js.map +1 -1
  90. package/dist/cjs/services/generated/api/bridge.service.d.ts +50 -50
  91. package/dist/cjs/services/generated/api/bridge.service.js +50 -50
  92. package/dist/cjs/services/generated/api/bridge.service.js.map +1 -1
  93. package/dist/cjs/services/generated/api/controlChange.service.d.ts +9 -2
  94. package/dist/cjs/services/generated/api/controlChange.service.js +15 -0
  95. package/dist/cjs/services/generated/api/controlChange.service.js.map +1 -1
  96. package/dist/cjs/services/generated/api/instance.service.d.ts +16 -2
  97. package/dist/cjs/services/generated/api/instance.service.js +34 -0
  98. package/dist/cjs/services/generated/api/instance.service.js.map +1 -1
  99. package/dist/cjs/services/generated/api/map.service.d.ts +4 -2
  100. package/dist/cjs/services/generated/api/map.service.js +10 -2
  101. package/dist/cjs/services/generated/api/map.service.js.map +1 -1
  102. package/dist/cjs/services/generated/api/rule.service.d.ts +1 -1
  103. package/dist/cjs/services/generated/api/rule.service.js +1 -1
  104. package/dist/cjs/services/generated/api/rule.service.js.map +1 -1
  105. package/dist/cjs/services/generated/api/storage.service.d.ts +31 -31
  106. package/dist/cjs/services/generated/api/storage.service.js +31 -31
  107. package/dist/cjs/services/generated/api/storage.service.js.map +1 -1
  108. package/dist/cjs/services/generated/api/uI.service.d.ts +16 -4
  109. package/dist/cjs/services/generated/api/uI.service.js +41 -4
  110. package/dist/cjs/services/generated/api/uI.service.js.map +1 -1
  111. package/dist/cjs/services/generated/api/workload.service.d.ts +8 -1
  112. package/dist/cjs/services/generated/api/workload.service.js +14 -0
  113. package/dist/cjs/services/generated/api/workload.service.js.map +1 -1
  114. package/dist/cjs/services/generated/models/aCPStatusUpdateData.d.ts +1 -0
  115. package/dist/cjs/services/generated/models/aCPStatusUpdateData.js.map +1 -1
  116. package/dist/cjs/services/generated/models/alarmClusteringData.d.ts +11 -0
  117. package/dist/cjs/services/generated/models/alarmClusteringData.js +3 -0
  118. package/dist/cjs/services/generated/models/alarmClusteringData.js.map +1 -0
  119. package/dist/cjs/services/generated/models/alarmCreateData.d.ts +1 -0
  120. package/dist/cjs/services/generated/models/alarmCreateData.js.map +1 -1
  121. package/dist/cjs/services/generated/models/alarmListData.d.ts +1 -0
  122. package/dist/cjs/services/generated/models/alarmListData.js.map +1 -1
  123. package/dist/cjs/services/generated/models/alarmTagCreateData.d.ts +7 -0
  124. package/dist/cjs/services/generated/models/alarmTagCreateData.js +3 -0
  125. package/dist/cjs/services/generated/models/alarmTagCreateData.js.map +1 -0
  126. package/dist/cjs/services/generated/models/alarmTagUpdateData.d.ts +6 -0
  127. package/dist/cjs/services/generated/models/alarmTagUpdateData.js +3 -0
  128. package/dist/cjs/services/generated/models/alarmTagUpdateData.js.map +1 -0
  129. package/dist/cjs/services/generated/models/alarmUpdateData.d.ts +1 -0
  130. package/dist/cjs/services/generated/models/alarmUpdateData.js.map +1 -1
  131. package/dist/cjs/services/generated/models/bridgeDeployData.d.ts +5 -5
  132. package/dist/cjs/services/generated/models/bridgeDeployData.js.map +1 -1
  133. package/dist/cjs/services/generated/models/carbonEmissionsSettingData.d.ts +15 -0
  134. package/dist/cjs/services/generated/models/carbonEmissionsSettingData.js +3 -0
  135. package/dist/cjs/services/generated/models/carbonEmissionsSettingData.js.map +1 -0
  136. package/dist/cjs/services/generated/models/controlChangeClusteringData.d.ts +12 -0
  137. package/dist/cjs/services/generated/models/controlChangeClusteringData.js +3 -0
  138. package/dist/cjs/services/generated/models/controlChangeClusteringData.js.map +1 -0
  139. package/dist/cjs/services/generated/models/controlChangeListData.d.ts +2 -1
  140. package/dist/cjs/services/generated/models/controlChangeListData.js.map +1 -1
  141. package/dist/cjs/services/generated/models/failureOverviewData.d.ts +1 -0
  142. package/dist/cjs/services/generated/models/failureOverviewData.js.map +1 -1
  143. package/dist/cjs/services/generated/models/index.d.ts +7 -0
  144. package/dist/cjs/services/generated/models/index.js +7 -0
  145. package/dist/cjs/services/generated/models/index.js.map +1 -1
  146. package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.d.ts +7 -0
  147. package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js +3 -0
  148. package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js.map +1 -0
  149. package/dist/cjs/services/generated/models/mapCreateData.d.ts +3 -1
  150. package/dist/cjs/services/generated/models/mapCreateData.js.map +1 -1
  151. package/dist/cjs/services/generated/models/mapUpdateData.d.ts +3 -1
  152. package/dist/cjs/services/generated/models/mapUpdateData.js.map +1 -1
  153. package/dist/cjs/services/generated/models/processesListData.d.ts +8 -0
  154. package/dist/cjs/services/generated/models/processesListData.js +3 -0
  155. package/dist/cjs/services/generated/models/processesListData.js.map +1 -0
  156. package/dist/cjs/services/generated/models/rulePayloadData.d.ts +1 -0
  157. package/dist/cjs/services/generated/models/rulePayloadData.js.map +1 -1
  158. package/dist/cjs/services/generated/types/alarm.service.types.d.ts +43 -1
  159. package/dist/cjs/services/generated/types/alarm.service.types.js.map +1 -1
  160. package/dist/cjs/services/generated/types/controlChange.service.types.d.ts +7 -1
  161. package/dist/cjs/services/generated/types/controlChange.service.types.js.map +1 -1
  162. package/dist/cjs/services/generated/types/instance.service.types.d.ts +11 -1
  163. package/dist/cjs/services/generated/types/instance.service.types.js.map +1 -1
  164. package/dist/cjs/services/generated/types/map.service.types.d.ts +2 -0
  165. package/dist/cjs/services/generated/types/map.service.types.js.map +1 -1
  166. package/dist/cjs/services/generated/types/uI.service.types.d.ts +13 -1
  167. package/dist/cjs/services/generated/types/uI.service.types.js.map +1 -1
  168. package/dist/cjs/services/generated/types/workload.service.types.d.ts +6 -0
  169. package/dist/cjs/services/generated/types/workload.service.types.js.map +1 -1
  170. package/dist/esm/core/http.d.ts +11 -1
  171. package/dist/esm/core/http.js +15 -0
  172. package/dist/esm/core/http.js.map +1 -1
  173. package/dist/esm/models/generated/alarm.d.ts +2 -0
  174. package/dist/esm/models/generated/alarm.js +1 -0
  175. package/dist/esm/models/generated/alarm.js.map +1 -1
  176. package/dist/esm/models/generated/alarmClustering.d.ts +21 -0
  177. package/dist/esm/models/generated/alarmClustering.js +17 -0
  178. package/dist/esm/models/generated/alarmClustering.js.map +1 -0
  179. package/dist/esm/models/generated/alarmItem.d.ts +2 -0
  180. package/dist/esm/models/generated/alarmItem.js +1 -0
  181. package/dist/esm/models/generated/alarmItem.js.map +1 -1
  182. package/dist/esm/models/generated/alarmTag.d.ts +23 -0
  183. package/dist/esm/models/generated/alarmTag.js +18 -0
  184. package/dist/esm/models/generated/alarmTag.js.map +1 -0
  185. package/dist/esm/models/generated/alarmTagItem.d.ts +23 -0
  186. package/dist/esm/models/generated/alarmTagItem.js +18 -0
  187. package/dist/esm/models/generated/alarmTagItem.js.map +1 -0
  188. package/dist/esm/models/generated/alarmTagListPaginated.d.ts +21 -0
  189. package/dist/esm/models/generated/alarmTagListPaginated.js +18 -0
  190. package/dist/esm/models/generated/alarmTagListPaginated.js.map +1 -0
  191. package/dist/esm/models/generated/bridge.d.ts +24 -0
  192. package/dist/esm/models/generated/bridge.js.map +1 -1
  193. package/dist/esm/models/generated/bridgeDataStreamItem.d.ts +9 -0
  194. package/dist/esm/models/generated/bridgeDataStreamItem.js.map +1 -1
  195. package/dist/esm/models/generated/bridgeDataStreamListPaginated.d.ts +3 -0
  196. package/dist/esm/models/generated/bridgeDataStreamListPaginated.js.map +1 -1
  197. package/dist/esm/models/generated/bridgeItem.d.ts +21 -0
  198. package/dist/esm/models/generated/bridgeItem.js.map +1 -1
  199. package/dist/esm/models/generated/bridgeListPaginated.d.ts +3 -0
  200. package/dist/esm/models/generated/bridgeListPaginated.js.map +1 -1
  201. package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.d.ts +25 -0
  202. package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.js +19 -0
  203. package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.js.map +1 -0
  204. package/dist/esm/models/generated/controlChangeClustering.d.ts +21 -0
  205. package/dist/esm/models/generated/controlChangeClustering.js +17 -0
  206. package/dist/esm/models/generated/controlChangeClustering.js.map +1 -0
  207. package/dist/esm/models/generated/emissionsDashboard.d.ts +2 -2
  208. package/dist/esm/models/generated/emissionsDashboard.js +1 -1
  209. package/dist/esm/models/generated/emissionsDashboard.js.map +1 -1
  210. package/dist/esm/models/generated/fullMap.d.ts +49 -0
  211. package/dist/esm/models/generated/fullMap.js +34 -0
  212. package/dist/esm/models/generated/fullMap.js.map +1 -0
  213. package/dist/esm/models/generated/fullMapListPaginated.d.ts +21 -0
  214. package/dist/esm/models/generated/fullMapListPaginated.js +18 -0
  215. package/dist/esm/models/generated/fullMapListPaginated.js.map +1 -0
  216. package/dist/esm/models/generated/index.d.ts +9 -0
  217. package/dist/esm/models/generated/index.js +9 -0
  218. package/dist/esm/models/generated/index.js.map +1 -1
  219. package/dist/esm/models/generated/mQTTTopicItem.d.ts +18 -0
  220. package/dist/esm/models/generated/mQTTTopicItem.js.map +1 -1
  221. package/dist/esm/models/generated/mQTTTopicList.d.ts +3 -0
  222. package/dist/esm/models/generated/mQTTTopicList.js.map +1 -1
  223. package/dist/esm/models/generated/mapItem.d.ts +8 -4
  224. package/dist/esm/models/generated/mapItem.js +4 -2
  225. package/dist/esm/models/generated/mapItem.js.map +1 -1
  226. package/dist/esm/models/generated/mapModel.d.ts +4 -0
  227. package/dist/esm/models/generated/mapModel.js +2 -0
  228. package/dist/esm/models/generated/mapModel.js.map +1 -1
  229. package/dist/esm/models/generated/mapVersionItem.d.ts +4 -2
  230. package/dist/esm/models/generated/mapVersionItem.js +2 -1
  231. package/dist/esm/models/generated/mapVersionItem.js.map +1 -1
  232. package/dist/esm/models/generated/metricListPaginated.d.ts +1 -1
  233. package/dist/esm/models/generated/metricListPaginated.js.map +1 -1
  234. package/dist/esm/models/generated/page.d.ts +21 -0
  235. package/dist/esm/models/generated/page.js +17 -0
  236. package/dist/esm/models/generated/page.js.map +1 -0
  237. package/dist/esm/models/generated/rulePayload.d.ts +2 -0
  238. package/dist/esm/models/generated/rulePayload.js +1 -0
  239. package/dist/esm/models/generated/rulePayload.js.map +1 -1
  240. package/dist/esm/models/generated/storageData.d.ts +15 -0
  241. package/dist/esm/models/generated/storageData.js.map +1 -1
  242. package/dist/esm/models/generated/storageMetric.d.ts +18 -0
  243. package/dist/esm/models/generated/storageMetric.js.map +1 -1
  244. package/dist/esm/models/generated/storageMetricListPaginated.d.ts +3 -0
  245. package/dist/esm/models/generated/storageMetricListPaginated.js.map +1 -1
  246. package/dist/esm/models/generated/workload.d.ts +4 -2
  247. package/dist/esm/models/generated/workload.js +2 -1
  248. package/dist/esm/models/generated/workload.js.map +1 -1
  249. package/dist/esm/models/generated/workloadItem.d.ts +4 -2
  250. package/dist/esm/models/generated/workloadItem.js +2 -1
  251. package/dist/esm/models/generated/workloadItem.js.map +1 -1
  252. package/dist/esm/services/generated/api/alarm.service.d.ts +50 -2
  253. package/dist/esm/services/generated/api/alarm.service.js +114 -1
  254. package/dist/esm/services/generated/api/alarm.service.js.map +1 -1
  255. package/dist/esm/services/generated/api/asset.service.d.ts +1 -1
  256. package/dist/esm/services/generated/api/asset.service.js +1 -1
  257. package/dist/esm/services/generated/api/asset.service.js.map +1 -1
  258. package/dist/esm/services/generated/api/bridge.service.d.ts +50 -50
  259. package/dist/esm/services/generated/api/bridge.service.js +50 -50
  260. package/dist/esm/services/generated/api/bridge.service.js.map +1 -1
  261. package/dist/esm/services/generated/api/controlChange.service.d.ts +9 -2
  262. package/dist/esm/services/generated/api/controlChange.service.js +16 -1
  263. package/dist/esm/services/generated/api/controlChange.service.js.map +1 -1
  264. package/dist/esm/services/generated/api/instance.service.d.ts +16 -2
  265. package/dist/esm/services/generated/api/instance.service.js +35 -1
  266. package/dist/esm/services/generated/api/instance.service.js.map +1 -1
  267. package/dist/esm/services/generated/api/map.service.d.ts +4 -2
  268. package/dist/esm/services/generated/api/map.service.js +10 -2
  269. package/dist/esm/services/generated/api/map.service.js.map +1 -1
  270. package/dist/esm/services/generated/api/rule.service.d.ts +1 -1
  271. package/dist/esm/services/generated/api/rule.service.js +1 -1
  272. package/dist/esm/services/generated/api/rule.service.js.map +1 -1
  273. package/dist/esm/services/generated/api/storage.service.d.ts +31 -31
  274. package/dist/esm/services/generated/api/storage.service.js +31 -31
  275. package/dist/esm/services/generated/api/storage.service.js.map +1 -1
  276. package/dist/esm/services/generated/api/uI.service.d.ts +16 -4
  277. package/dist/esm/services/generated/api/uI.service.js +42 -5
  278. package/dist/esm/services/generated/api/uI.service.js.map +1 -1
  279. package/dist/esm/services/generated/api/workload.service.d.ts +8 -1
  280. package/dist/esm/services/generated/api/workload.service.js +14 -0
  281. package/dist/esm/services/generated/api/workload.service.js.map +1 -1
  282. package/dist/esm/services/generated/models/aCPStatusUpdateData.d.ts +1 -0
  283. package/dist/esm/services/generated/models/aCPStatusUpdateData.js.map +1 -1
  284. package/dist/esm/services/generated/models/alarmClusteringData.d.ts +11 -0
  285. package/dist/esm/services/generated/models/alarmClusteringData.js +1 -0
  286. package/dist/esm/services/generated/models/alarmClusteringData.js.map +1 -0
  287. package/dist/esm/services/generated/models/alarmCreateData.d.ts +1 -0
  288. package/dist/esm/services/generated/models/alarmCreateData.js.map +1 -1
  289. package/dist/esm/services/generated/models/alarmListData.d.ts +1 -0
  290. package/dist/esm/services/generated/models/alarmListData.js.map +1 -1
  291. package/dist/esm/services/generated/models/alarmTagCreateData.d.ts +7 -0
  292. package/dist/esm/services/generated/models/alarmTagCreateData.js +1 -0
  293. package/dist/esm/services/generated/models/alarmTagCreateData.js.map +1 -0
  294. package/dist/esm/services/generated/models/alarmTagUpdateData.d.ts +6 -0
  295. package/dist/esm/services/generated/models/alarmTagUpdateData.js +1 -0
  296. package/dist/esm/services/generated/models/alarmTagUpdateData.js.map +1 -0
  297. package/dist/esm/services/generated/models/alarmUpdateData.d.ts +1 -0
  298. package/dist/esm/services/generated/models/alarmUpdateData.js.map +1 -1
  299. package/dist/esm/services/generated/models/bridgeDeployData.d.ts +5 -5
  300. package/dist/esm/services/generated/models/bridgeDeployData.js.map +1 -1
  301. package/dist/esm/services/generated/models/carbonEmissionsSettingData.d.ts +15 -0
  302. package/dist/esm/services/generated/models/carbonEmissionsSettingData.js +1 -0
  303. package/dist/esm/services/generated/models/carbonEmissionsSettingData.js.map +1 -0
  304. package/dist/esm/services/generated/models/controlChangeClusteringData.d.ts +12 -0
  305. package/dist/esm/services/generated/models/controlChangeClusteringData.js +1 -0
  306. package/dist/esm/services/generated/models/controlChangeClusteringData.js.map +1 -0
  307. package/dist/esm/services/generated/models/controlChangeListData.d.ts +2 -1
  308. package/dist/esm/services/generated/models/controlChangeListData.js.map +1 -1
  309. package/dist/esm/services/generated/models/failureOverviewData.d.ts +1 -0
  310. package/dist/esm/services/generated/models/failureOverviewData.js.map +1 -1
  311. package/dist/esm/services/generated/models/index.d.ts +7 -0
  312. package/dist/esm/services/generated/models/index.js +7 -0
  313. package/dist/esm/services/generated/models/index.js.map +1 -1
  314. package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.d.ts +7 -0
  315. package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js +1 -0
  316. package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js.map +1 -0
  317. package/dist/esm/services/generated/models/mapCreateData.d.ts +3 -1
  318. package/dist/esm/services/generated/models/mapCreateData.js.map +1 -1
  319. package/dist/esm/services/generated/models/mapUpdateData.d.ts +3 -1
  320. package/dist/esm/services/generated/models/mapUpdateData.js.map +1 -1
  321. package/dist/esm/services/generated/models/processesListData.d.ts +8 -0
  322. package/dist/esm/services/generated/models/processesListData.js +1 -0
  323. package/dist/esm/services/generated/models/processesListData.js.map +1 -0
  324. package/dist/esm/services/generated/models/rulePayloadData.d.ts +1 -0
  325. package/dist/esm/services/generated/models/rulePayloadData.js.map +1 -1
  326. package/dist/esm/services/generated/types/alarm.service.types.d.ts +43 -1
  327. package/dist/esm/services/generated/types/alarm.service.types.js.map +1 -1
  328. package/dist/esm/services/generated/types/controlChange.service.types.d.ts +7 -1
  329. package/dist/esm/services/generated/types/controlChange.service.types.js.map +1 -1
  330. package/dist/esm/services/generated/types/instance.service.types.d.ts +11 -1
  331. package/dist/esm/services/generated/types/instance.service.types.js.map +1 -1
  332. package/dist/esm/services/generated/types/map.service.types.d.ts +2 -0
  333. package/dist/esm/services/generated/types/map.service.types.js.map +1 -1
  334. package/dist/esm/services/generated/types/uI.service.types.d.ts +13 -1
  335. package/dist/esm/services/generated/types/uI.service.types.js.map +1 -1
  336. package/dist/esm/services/generated/types/workload.service.types.d.ts +6 -0
  337. package/dist/esm/services/generated/types/workload.service.types.js.map +1 -1
  338. package/package.json +2 -2
@@ -9,7 +9,7 @@ const base_service_1 = require("../../base.service");
9
9
  class StorageService extends base_service_1.BaseService {
10
10
  /**
11
11
  * Create Historian Metric
12
- * Create Historian Metric persists time series data. **Note:** * If a Metric timestamp already exists on the database, this endpoint will overwrite the stored payload with the new payload value. **Payload Details:** * `name`: name of the Metric * `source`: application that generated the data. Example: `modbus` * `asset_name`: name of the Asset * `payload`: data to persist * `timestamp`: RFC3339 timestamps with added micro-second precision **Permission Required:** `kelvin.permission.storage.create`
12
+ * Create Historian Metric Create one or more data values for defined times for one or more specific <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. <span style=\"color: #ff0000;font-weight: bold;\">WARNING</span> : If a value already exists at the defined time, then it will be overwriten with the new payload value. The old value will be lost and is not recoverable ! **Permission Required:** `kelvin.permission.storage.create`
13
13
  * @param storage Storage create schema
14
14
  * @param {IKvHttpRequestOptions} options Request optional parameters
15
15
  */
@@ -24,7 +24,7 @@ class StorageService extends base_service_1.BaseService {
24
24
  }
25
25
  /**
26
26
  * Delete Historian Range
27
- * Delete Historian Range will delete all associated time series values between a given time-range. **Payload Details:** * `start_time`: supports RFC3339 timestamps with added micro-second precision * `end_time`: supports RFC3339 timestamps with added micro-second precision **Permission Required:** `kelvin.permission.storage.delete`
27
+ * Delete Historian Range will delete all associated time series values for selected <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs between a given time range. **Permission Required:** `kelvin.permission.storage.delete`
28
28
  * @param storage Body of the request
29
29
  * @param {IKvHttpRequestOptions} options Request optional parameters
30
30
  */
@@ -39,7 +39,7 @@ class StorageService extends base_service_1.BaseService {
39
39
  }
40
40
  /**
41
41
  * Download Historian Metrics
42
- * Download Historian Metrics returns a **CSV file** with time series data for a given time range List of Metric selectors. **Payload Description:** * `start_time` supports RFC3339 timestamps with added micro-second precision * `end_time` supports RFC3339 timestamps with added micro-second precision * `time_bucket` uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: `5m`, `1h`, `1w` * `time_shift` is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w` * `fill` allows you to fill missing points from a time bucket. Check below for supported fill values. * `agg` allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * `none`: Default behaviour. * `null`: Fills the missing points with null string * `linear`: Performs a linear regression * `previous`: Uses the previous non-empty value * `int value`: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (`int32`, `int64`, etc) are: `none`, `count`, `distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max` & `min` * Non-numeric types (`text`, etc) are: `count`, `distinct` and `mode` **Permission Required:** `kelvin.permission.storage.read`
42
+ * Download Historian Metrics Returns a **CSV file** with time series data within a for a given time range and given list of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs in the parameter `selectors`. The downloaded csv file will contain six columns; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data ), `target` ( Custom parameter set by user ), `value` ( value recorded ). **Permission Required:** `kelvin.permission.storage.read`
43
43
  * @param query Request Schema
44
44
  * @param {IKvHttpRequestOptions} options Request optional parameters
45
45
  */
@@ -54,7 +54,7 @@ class StorageService extends base_service_1.BaseService {
54
54
  }
55
55
  /**
56
56
  * Get Historian Metric Advanced Range
57
- * Get Historian Metric Advanced Range returns time series data for a given time range and a list of Metric selectors. **Payload Description:** * `start_time` supports RFC3339 timestamps with added micro-second precision * `end_time` supports RFC3339 timestamps with added micro-second precision * `time_bucket` uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: `5m`, `1h`, `1w` * `time_shift` is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w` * `fill` allows you to fill missing points from a time bucket. Check below for supported fill values. * `agg` allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * `none`: Default behaviour. * `null`: Fills the missing points with null string * `linear`: Performs a linear regression * `previous`: Uses the previous non-empty value * `int value`: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (`int32`, `int64`, etc) are: `none`, `count`, `distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max` & `min` * Non-numeric types (`text`, etc) are: `count`, `distinct` and `mode` **Permission Required:** `kelvin.permission.storage.read`
57
+ * Get Historian Metric Advanced Range Returns a list of recorded values or calculated statistics from the database for one or multiple <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`
58
58
  * @param body Advanced range schema
59
59
  * @param {IKvHttpRequestOptions} options Request optional parameters
60
60
  */
@@ -69,10 +69,10 @@ class StorageService extends base_service_1.BaseService {
69
69
  }
70
70
  /**
71
71
  * Get Historian Metric Last
72
- * Get Historian Metric Last returns the last value inserted on the time series database for a single Metric. The calculation is based on the most recent timestamp available for the Metric. **Permission Required:** `kelvin.permission.storage.read`
73
- * @param name Metric Name
74
- * @param assetName Asset name
75
- * @param fields List of field identifiers
72
+ * Get Historian Metric Last Returns the last recorded value in the database for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`
73
+ * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
74
+ * @param assetName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
75
+ * @param fields List of wanted field keys that are recorded in the payload. Normally this will be value.</p> If there are other unique keys/value pairs in the payload, then you can create a list of all keys to retrieve the values. e.g. 'value, key2'. If the key does not exist in the stored payload, that key will return with a value `null`.
76
76
  * @param {IKvHttpRequestOptions} options Request optional parameters
77
77
  */
78
78
  static getHistorianMetricLast({ name, assetName, fields }, options) {
@@ -96,7 +96,7 @@ class StorageService extends base_service_1.BaseService {
96
96
  }
97
97
  /**
98
98
  * Get Historian Metric Last Advanced
99
- * Get Historian Metric Last Advanced returns the last values inserted on the time series database for a list of Metric selectors. The calculation is based on the most recent timestamp available for each Metric. **Permission Required:** `kelvin.permission.storage.read`
99
+ * Get Historian Metric Last Advanced Returns an array of last recorded values in the database for each of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs in the POST. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`
100
100
  * @param query Request for multiple Metric selectors
101
101
  * @param {IKvHttpRequestOptions} options Request optional parameters
102
102
  */
@@ -111,17 +111,17 @@ class StorageService extends base_service_1.BaseService {
111
111
  }
112
112
  /**
113
113
  * Get Historian Metric Range
114
- * Get Historian Metric Range returns time series data for a given time range and a list of Metric selectors. **Payload Description:** * `start_time` supports RFC3339 timestamps with added micro-second precision * `end_time` supports RFC3339 timestamps with added micro-second precision * `time_bucket` uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: `5m`, `1h`, `1w` * `time_shift` is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w` * `fill` allows you to fill missing points from a time bucket. Check below for supported fill values. * `agg` allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * `none`: Default behaviour. * `null`: Fills the missing points with null string * `linear`: Performs a linear regression * `previous`: Uses the previous non-empty value * `int value`: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (`int32`, `int64`, etc) are: `none`, `count`, `distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max` & `min` * Non-numeric types (`text`, etc) are: `count`, `distinct` and `mode` **Permission Required:** `kelvin.permission.storage.read`
115
- * @param name Metric Name
116
- * @param assetName Asset name
117
- * @param startTime Value for the start of the range for which to get data
118
- * @param endTime Value for the end of the range for which to get data
119
- * @param agg Aggregation
120
- * @param timeBucket Interval for which to group by, in human readable format
121
- * @param timeShift Interval by which to shift the time buckets, from epoch
122
- * @param fill Filling for empty time buckets (check description for possible values)
123
- * @param order Order of the data
124
- * @param fields Fields
114
+ * Get Historian Metric Range Returns a list of recorded values or calculated statistics from the database for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`
115
+ * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
116
+ * @param assetName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
117
+ * @param startTime Start time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.
118
+ * @param endTime End time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.
119
+ * @param agg Perform mathematical calculations on a group of data.</p> For numerical data there are twelve mathematical options available; `none` , `count`,`distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max`, `min`.</p> For text based data there are three types of mathematical options available; `count`, `distinct`, `mode`. The default is `none`.</p> When using this parameter, you must also use the parameters `time_bucket` which defines how to group the data and `fields` which defines which payload data to use.
120
+ * @param timeBucket Group the data by time frame for the `agg` parameter calculations.</p> The time can be adjusted with these time units `ns`, `ms`, `s`, `m`, `h`. e.g. `8765h` equates to is 8,765 hours which is approximately one year.
121
+ * @param timeShift Shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w`.
122
+ * @param fill Fills any group of data, which is defined by the `time_bucket` parameter, with a calculated value when there is no data in the database.</p> There are five options available; `none`, `null`, `linear`, `previous`, fixed integer value.</p> `none` will ignore the group. `null`, `previous` and fixed integer value will be added as the value for the empty group. `linear` will perform a linear regression to calculated the groups' value.</p> The default is `none`.
123
+ * @param order Order of the results for the timestamp parameter.</p> There are two options available (capital letters is required); `ASC` for ascending and `DESC` for descending. The default is `ASC`.
124
+ * @param fields Array of strings which each string representing one key inside the payload. Normally there will be only one key labeled `value`.
125
125
  * @param {IKvHttpRequestOptions} options Request optional parameters
126
126
  */
127
127
  static getHistorianMetricRange({ name, assetName, startTime, endTime, agg, timeBucket, timeShift, fill, order, fields }, options) {
@@ -166,15 +166,15 @@ class StorageService extends base_service_1.BaseService {
166
166
  }
167
167
  /**
168
168
  * List Historian Metric
169
- * List Historian Metric **Pagination Sortable Columns:** `storage_metric.name`, `storage_metric.asset_name` **Permission Required:** `kelvin.permission.storage.read`
170
- * @param name Metric name
171
- * @param assetName Asset name
172
- * @param search Search metrics by name or asset_name
173
- * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20
174
- * @param startingAfter Lower bound cursor for use in pagination
175
- * @param endingBefore Upper bound cursor for use in pagination
176
- * @param sortBy Parameter to sort by. Must be one of the sortable columns
177
- * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
169
+ * List Historian Metric Returns a dictionary with a data property containing a filtered array of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair objects on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. **Pagination Sortable Columns:** `storage_metric.name`, `storage_metric.asset_name` **Permission Required:** `kelvin.permission.storage.read`
170
+ * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
171
+ * @param assetName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.
172
+ * @param search Search and filter the return list. Both the Display Name and the Name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> and <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> will be included in the search field criteria. This is given as an array, for example `[pump,fan]`.</p> The search is case insensitive and will find partial matches as well. For example if a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/#asset' target='_blank'>Kelvin Asset</a> name or display name is `centrifugal_pump`, then a match will be made if the search string is `pum` or `FUGaL`.
173
+ * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair objects.
174
+ * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.
175
+ * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.
176
+ * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> parameters. Only one parameter can be selected.</p> There are two parameter options; `name` and `asset.name`.</p> The default is `asset.name`
177
+ * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).
178
178
  * @param {IKvHttpRequestOptions} options Request optional parameters
179
179
  */
180
180
  static listHistorianMetric({ name, assetName, search, pageSize, startingAfter, endingBefore, sortBy, sortAsc } = {}, options) {
@@ -213,7 +213,7 @@ class StorageService extends base_service_1.BaseService {
213
213
  }
214
214
  /**
215
215
  * Update Historian Metric
216
- * Update Historian Metric allows updating the **title** of a Metric. **Permission Required:** `kelvin.permission.storage.update`
216
+ * Update Historian Metric Updates the `title` parameter of a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair. **Permission Required:** `kelvin.permission.storage.update`
217
217
  * @param storage Body of the request
218
218
  * @param {IKvHttpRequestOptions} options Request optional parameters
219
219
  */
@@ -228,7 +228,7 @@ class StorageService extends base_service_1.BaseService {
228
228
  }
229
229
  /**
230
230
  * Upload Historian Metrics
231
- * Upload Historian Metrics allows sending a **CSV file** with time series data to be persisted. **Permission Required:** `kelvin.permission.storage.create`
231
+ * Upload Historian Metrics Accepts a **CSV file** with time series data within a for a given time range and given list of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs in the parameter `selectors`. The csv file should contain six columns in a comma delimited csv file; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data - this value is optional ), `target` ( Custom parameter set by user - this value is optional ), `value` ( value recorded ). The first row must contain the column headers; `name,time,asset_name,source,target,value`. **Permission Required:** `kelvin.permission.storage.create`
232
232
  * @param file CSV File
233
233
  * @param {IKvHttpRequestOptions} options Request optional parameters
234
234
  */
@@ -1 +1 @@
1
- {"version":3,"file":"storage.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/storage.service.ts"],"names":[],"mappings":";;;AAEA,4CAA0E;AAC1E,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,cAAe,SAAQ,0BAAW;IAE9C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;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vC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAA6B,yBAAyB,EAAE,aAAa,EAAE,mCAA0B,CAAC,CAAC;IACvH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,OAAO,CAAC;QAE7B,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAiC,EAAE,OAA+B;QAErG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;QAClC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,aAAa,CAAC,IAAI,GAAG,UAAU,CAAC;QAEhC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;CACD;AAzTD,wCAyTC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { StorageData, StorageMetricListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateHistorianMetricParams,\n\tIDeleteHistorianRangeParams,\n\tIDownloadHistorianMetricsParams,\n\tIGetHistorianMetricAdvancedRangeParams, IGetHistorianMetricLastAdvancedParams, IGetHistorianMetricLastParams, IGetHistorianMetricRangeParams,\n\tIListHistorianMetricParams,\n\tIUpdateHistorianMetricParams,\n\tIUploadHistorianMetricsParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class StorageService extends BaseService {\n\n\t/**\n\t * Create Historian Metric\n\t * Create Historian Metric persists time series data. **Note:** * If a Metric timestamp already exists on the database, this endpoint will overwrite the stored payload with the new payload value. **Payload Details:** * &#x60;name&#x60;: name of the Metric * &#x60;source&#x60;: application that generated the data. Example: &#x60;modbus&#x60; * &#x60;asset_name&#x60;: name of the Asset * &#x60;payload&#x60;: data to persist * &#x60;timestamp&#x60;: RFC3339 timestamps with added micro-second precision **Permission Required:** &#x60;kelvin.permission.storage.create&#x60;\n\t * @param storage Storage create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createHistorianMetric({ storage }: ICreateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/create`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Historian Range\n\t * Delete Historian Range will delete all associated time series values between a given time-range. **Payload Details:** * &#x60;start_time&#x60;: supports RFC3339 timestamps with added micro-second precision * &#x60;end_time&#x60;: supports RFC3339 timestamps with added micro-second precision **Permission Required:** &#x60;kelvin.permission.storage.delete&#x60;\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteHistorianRange({ storage }: IDeleteHistorianRangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Download Historian Metrics\n\t * Download Historian Metrics returns a **CSV file** with time series data for a given time range List of Metric selectors. **Payload Description:** * &#x60;start_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;end_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;time_bucket&#x60; uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;time_shift&#x60; is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you&#39;ll need to set this. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;fill&#x60; allows you to fill missing points from a time bucket. Check below for supported fill values. * &#x60;agg&#x60; allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * &#x60;none&#x60;: Default behaviour. * &#x60;null&#x60;: Fills the missing points with null string * &#x60;linear&#x60;: Performs a linear regression * &#x60;previous&#x60;: Uses the previous non-empty value * &#x60;int value&#x60;: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (&#x60;int32&#x60;, &#x60;int64&#x60;, etc) are: &#x60;none&#x60;, &#x60;count&#x60;, &#x60;distinct&#x60;, &#x60;integral&#x60;, &#x60;mean&#x60;, &#x60;median&#x60;, &#x60;mode&#x60;, &#x60;spread&#x60;, &#x60;stddev&#x60;, &#x60;sum&#x60;, &#x60;max&#x60; &amp; &#x60;min&#x60; * Non-numeric types (&#x60;text&#x60;, etc) are: &#x60;count&#x60;, &#x60;distinct&#x60; and &#x60;mode&#x60; **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param query Request Schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadHistorianMetrics({ query }: IDownloadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'text/csv';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/download`, requestConfig);\n\t}\n\n\t/**\n\t * Get Historian Metric Advanced Range\n\t * Get Historian Metric Advanced Range returns time series data for a given time range and a list of Metric selectors. **Payload Description:** * &#x60;start_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;end_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;time_bucket&#x60; uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;time_shift&#x60; is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you&#39;ll need to set this. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;fill&#x60; allows you to fill missing points from a time bucket. Check below for supported fill values. * &#x60;agg&#x60; allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * &#x60;none&#x60;: Default behaviour. * &#x60;null&#x60;: Fills the missing points with null string * &#x60;linear&#x60;: Performs a linear regression * &#x60;previous&#x60;: Uses the previous non-empty value * &#x60;int value&#x60;: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (&#x60;int32&#x60;, &#x60;int64&#x60;, etc) are: &#x60;none&#x60;, &#x60;count&#x60;, &#x60;distinct&#x60;, &#x60;integral&#x60;, &#x60;mean&#x60;, &#x60;median&#x60;, &#x60;mode&#x60;, &#x60;spread&#x60;, &#x60;stddev&#x60;, &#x60;sum&#x60;, &#x60;max&#x60; &amp; &#x60;min&#x60; * Non-numeric types (&#x60;text&#x60;, etc) are: &#x60;count&#x60;, &#x60;distinct&#x60; and &#x60;mode&#x60; **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param body Advanced range schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricAdvancedRange({ body }: IGetHistorianMetricAdvancedRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = body;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last\n\t * Get Historian Metric Last returns the last value inserted on the time series database for a single Metric. The calculation is based on the most recent timestamp available for the Metric. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Metric Name\n\t * @param assetName Asset name\n\t * @param fields List of field identifiers\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLast({ name, assetName, fields }: IGetHistorianMetricLastParams, options?: IKvHttpRequestOptions): Observable<StorageData> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last Advanced\n\t * Get Historian Metric Last Advanced returns the last values inserted on the time series database for a list of Metric selectors. The calculation is based on the most recent timestamp available for each Metric. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param query Request for multiple Metric selectors\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLastAdvanced({ query }: IGetHistorianMetricLastAdvancedParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Range\n\t * Get Historian Metric Range returns time series data for a given time range and a list of Metric selectors. **Payload Description:** * &#x60;start_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;end_time&#x60; supports RFC3339 timestamps with added micro-second precision * &#x60;time_bucket&#x60; uses an human readable format which is covered in more detail in https://golang.org/pkg/time/#ParseDuration. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;time_shift&#x60; is used to shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you&#39;ll need to set this. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60; * &#x60;fill&#x60; allows you to fill missing points from a time bucket. Check below for supported fill values. * &#x60;agg&#x60; allows you to choose an aggregation. Check below for supported aggregations. **Supported Fill:** * &#x60;none&#x60;: Default behaviour. * &#x60;null&#x60;: Fills the missing points with null string * &#x60;linear&#x60;: Performs a linear regression * &#x60;previous&#x60;: Uses the previous non-empty value * &#x60;int value&#x60;: Fills the missing points with the specified number **Supported Aggregations:** * Numeric types (&#x60;int32&#x60;, &#x60;int64&#x60;, etc) are: &#x60;none&#x60;, &#x60;count&#x60;, &#x60;distinct&#x60;, &#x60;integral&#x60;, &#x60;mean&#x60;, &#x60;median&#x60;, &#x60;mode&#x60;, &#x60;spread&#x60;, &#x60;stddev&#x60;, &#x60;sum&#x60;, &#x60;max&#x60; &amp; &#x60;min&#x60; * Non-numeric types (&#x60;text&#x60;, etc) are: &#x60;count&#x60;, &#x60;distinct&#x60; and &#x60;mode&#x60; **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Metric Name\n\t * @param assetName Asset name\n\t * @param startTime Value for the start of the range for which to get data\n\t * @param endTime Value for the end of the range for which to get data\n\t * @param agg Aggregation\n\t * @param timeBucket Interval for which to group by, in human readable format\n\t * @param timeShift Interval by which to shift the time buckets, from epoch\n\t * @param fill Filling for empty time buckets (check description for possible values)\n\t * @param order Order of the data\n\t * @param fields Fields\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricRange({ name, assetName, startTime, endTime, agg, timeBucket, timeShift, fill, order, fields }: IGetHistorianMetricRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (startTime != null) {\n\t\t\tqueryParameters['start_time'] = startTime.toISOString();\n\t\t}\n\n\t\tif (endTime != null) {\n\t\t\tqueryParameters['end_time'] = endTime.toISOString();\n\t\t}\n\n\t\tif (agg != null) {\n\t\t\tqueryParameters['agg'] = agg;\n\t\t}\n\n\t\tif (timeBucket != null) {\n\t\t\tqueryParameters['time_bucket'] = timeBucket;\n\t\t}\n\n\t\tif (timeShift != null) {\n\t\t\tqueryParameters['time_shift'] = timeShift;\n\t\t}\n\n\t\tif (fill != null) {\n\t\t\tqueryParameters['fill'] = fill;\n\t\t}\n\n\t\tif (order != null) {\n\t\t\tqueryParameters['order'] = order;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * List Historian Metric\n\t * List Historian Metric **Pagination Sortable Columns:** &#x60;storage_metric.name&#x60;, &#x60;storage_metric.asset_name&#x60; **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Metric name\n\t * @param assetName Asset name\n\t * @param search Search metrics by name or asset_name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listHistorianMetric({ name, assetName, search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListHistorianMetricParams = {}, options?: IKvHttpRequestOptions): Observable<StorageMetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageMetricListPaginated>(`/storage/historian/list`, requestConfig, StorageMetricListPaginated);\n\t}\n\n\t/**\n\t * Update Historian Metric\n\t * Update Historian Metric allows updating the **title** of a Metric. **Permission Required:** &#x60;kelvin.permission.storage.update&#x60;\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateHistorianMetric({ storage }: IUpdateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/update`, requestConfig);\n\t}\n\n\t/**\n\t * Upload Historian Metrics\n\t * Upload Historian Metrics allows sending a **CSV file** with time series data to be persisted. **Permission Required:** &#x60;kelvin.permission.storage.create&#x60;\n\t * @param file CSV File\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadHistorianMetrics({ file }: IUploadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/upload`, requestConfig);\n\t}\n}\n"]}
1
+ {"version":3,"file":"storage.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/storage.service.ts"],"names":[],"mappings":";;;AAEA,4CAA0E;AAC1E,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,cAAe,SAAQ,0BAAW;IAE9C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,OAAO,CAAC;QAE7B,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAA+B,EAAE,OAA+B;QAEpG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,OAAO,CAAC;QAE7B,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,iCAAiC,EAAE,aAAa,CAAC,CAAC;IACxF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,wBAAwB,CAAC,EAAE,KAAK,EAAmC,EAAE,OAA+B;QAE1G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,KAAK,CAAC;QAE3B,aAAa,CAAC,SAAS,GAAG,UAAU,CAAC;QACrC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,mCAAmC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C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;CACD;AAzTD,wCAyTC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { StorageData, StorageMetricListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateHistorianMetricParams,\n\tIDeleteHistorianRangeParams,\n\tIDownloadHistorianMetricsParams,\n\tIGetHistorianMetricAdvancedRangeParams, IGetHistorianMetricLastAdvancedParams, IGetHistorianMetricLastParams, IGetHistorianMetricRangeParams,\n\tIListHistorianMetricParams,\n\tIUpdateHistorianMetricParams,\n\tIUploadHistorianMetricsParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class StorageService extends BaseService {\n\n\t/**\n\t * Create Historian Metric\n\t * Create Historian Metric Create one or more data values for defined times for one or more specific &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs on the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Platform&lt;/a&gt;. &lt;span style&#x3D;\\&quot;color: #ff0000;font-weight: bold;\\&quot;&gt;WARNING&lt;/span&gt; : If a value already exists at the defined time, then it will be overwriten with the new payload value. The old value will be lost and is not recoverable ! **Permission Required:** &#x60;kelvin.permission.storage.create&#x60;\n\t * @param storage Storage create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createHistorianMetric({ storage }: ICreateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/create`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Historian Range\n\t * Delete Historian Range will delete all associated time series values for selected &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs between a given time range. **Permission Required:** &#x60;kelvin.permission.storage.delete&#x60;\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteHistorianRange({ storage }: IDeleteHistorianRangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Download Historian Metrics\n\t * Download Historian Metrics Returns a **CSV file** with time series data within a for a given time range and given list of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs in the parameter &#x60;selectors&#x60;. The downloaded csv file will contain six columns; &#x60;name&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; ), &#x60;time&#x60; ( Timestamp when the data was recorded from source ), &#x60;asset_name&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; ), &#x60;source&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; that has recorded the data ), &#x60;target&#x60; ( Custom parameter set by user ), &#x60;value&#x60; ( value recorded ). **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param query Request Schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadHistorianMetrics({ query }: IDownloadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'text/csv';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/download`, requestConfig);\n\t}\n\n\t/**\n\t * Get Historian Metric Advanced Range\n\t * Get Historian Metric Advanced Range Returns a list of recorded values or calculated statistics from the database for one or multiple &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs based on a time range. This does not rely on the workload (&lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt;) that records the data to be online. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param body Advanced range schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricAdvancedRange({ body }: IGetHistorianMetricAdvancedRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = body;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last\n\t * Get Historian Metric Last Returns the last recorded value in the database for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair. This does not rely on the workload (&lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt;) that records the data to be online. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param assetName Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param fields List of wanted field keys that are recorded in the payload. Normally this will be value.&lt;/p&gt; If there are other unique keys/value pairs in the payload, then you can create a list of all keys to retrieve the values. e.g. &#39;value, key2&#39;. If the key does not exist in the stored payload, that key will return with a value &#x60;null&#x60;.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLast({ name, assetName, fields }: IGetHistorianMetricLastParams, options?: IKvHttpRequestOptions): Observable<StorageData> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last Advanced\n\t * Get Historian Metric Last Advanced Returns an array of last recorded values in the database for each of the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs in the POST. This does not rely on the workload (&lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt;) that records the data to be online. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param query Request for multiple Metric selectors\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLastAdvanced({ query }: IGetHistorianMetricLastAdvancedParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Range\n\t * Get Historian Metric Range Returns a list of recorded values or calculated statistics from the database for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair based on a time range. This does not rely on the workload (&lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt;) that records the data to be online. **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param assetName Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param startTime Start time of the recorded time to collect the payload data from the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Platform&lt;/a&gt; in ISO 8601 UTC date/time format. Example; &#39;2022-07-08T08:41:01.657916Z&#39;.\n\t * @param endTime End time of the recorded time to collect the payload data from the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Platform&lt;/a&gt; in ISO 8601 UTC date/time format. Example; &#39;2022-07-08T08:41:01.657916Z&#39;.\n\t * @param agg Perform mathematical calculations on a group of data.&lt;/p&gt; For numerical data there are twelve mathematical options available; &#x60;none&#x60; , &#x60;count&#x60;,&#x60;distinct&#x60;, &#x60;integral&#x60;, &#x60;mean&#x60;, &#x60;median&#x60;, &#x60;mode&#x60;, &#x60;spread&#x60;, &#x60;stddev&#x60;, &#x60;sum&#x60;, &#x60;max&#x60;, &#x60;min&#x60;.&lt;/p&gt; For text based data there are three types of mathematical options available; &#x60;count&#x60;, &#x60;distinct&#x60;, &#x60;mode&#x60;. The default is &#x60;none&#x60;.&lt;/p&gt; When using this parameter, you must also use the parameters &#x60;time_bucket&#x60; which defines how to group the data and &#x60;fields&#x60; which defines which payload data to use.\n\t * @param timeBucket Group the data by time frame for the &#x60;agg&#x60; parameter calculations.&lt;/p&gt; The time can be adjusted with these time units &#x60;ns&#x60;, &#x60;ms&#x60;, &#x60;s&#x60;, &#x60;m&#x60;, &#x60;h&#x60;. e.g. &#x60;8765h&#x60; equates to is 8,765 hours which is approximately one year.\n\t * @param timeShift Shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you&#39;ll need to set this. Example: &#x60;5m&#x60;, &#x60;1h&#x60;, &#x60;1w&#x60;.\n\t * @param fill Fills any group of data, which is defined by the &#x60;time_bucket&#x60; parameter, with a calculated value when there is no data in the database.&lt;/p&gt; There are five options available; &#x60;none&#x60;, &#x60;null&#x60;, &#x60;linear&#x60;, &#x60;previous&#x60;, fixed integer value.&lt;/p&gt; &#x60;none&#x60; will ignore the group. &#x60;null&#x60;, &#x60;previous&#x60; and fixed integer value will be added as the value for the empty group. &#x60;linear&#x60; will perform a linear regression to calculated the groups&#39; value.&lt;/p&gt; The default is &#x60;none&#x60;.\n\t * @param order Order of the results for the timestamp parameter.&lt;/p&gt; There are two options available (capital letters is required); &#x60;ASC&#x60; for ascending and &#x60;DESC&#x60; for descending. The default is &#x60;ASC&#x60;.\n\t * @param fields Array of strings which each string representing one key inside the payload. Normally there will be only one key labeled &#x60;value&#x60;.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricRange({ name, assetName, startTime, endTime, agg, timeBucket, timeShift, fill, order, fields }: IGetHistorianMetricRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (startTime != null) {\n\t\t\tqueryParameters['start_time'] = startTime.toISOString();\n\t\t}\n\n\t\tif (endTime != null) {\n\t\t\tqueryParameters['end_time'] = endTime.toISOString();\n\t\t}\n\n\t\tif (agg != null) {\n\t\t\tqueryParameters['agg'] = agg;\n\t\t}\n\n\t\tif (timeBucket != null) {\n\t\t\tqueryParameters['time_bucket'] = timeBucket;\n\t\t}\n\n\t\tif (timeShift != null) {\n\t\t\tqueryParameters['time_shift'] = timeShift;\n\t\t}\n\n\t\tif (fill != null) {\n\t\t\tqueryParameters['fill'] = fill;\n\t\t}\n\n\t\tif (order != null) {\n\t\t\tqueryParameters['order'] = order;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * List Historian Metric\n\t * List Historian Metric Returns a dictionary with a data property containing a filtered array of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair objects on the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Platform&lt;/a&gt;. **Pagination Sortable Columns:** &#x60;storage_metric.name&#x60;, &#x60;storage_metric.asset_name&#x60; **Permission Required:** &#x60;kelvin.permission.storage.read&#x60;\n\t * @param name Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param assetName Unique identifier name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt;.&lt;/p&gt; This must contain only lowercase alphanumeric characters. The &#x60;.&#x60;, &#x60;_&#x60; and &#x60;-&#x60; characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param search Search and filter the return list. Both the Display Name and the Name for the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; and &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metrics&lt;/a&gt; will be included in the search field criteria. This is given as an array, for example &#x60;[pump,fan]&#x60;.&lt;/p&gt; The search is case insensitive and will find partial matches as well. For example if a &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/#asset&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Asset&lt;/a&gt; name or display name is &#x60;centrifugal_pump&#x60;, then a match will be made if the search string is &#x60;pum&#x60; or &#x60;FUGaL&#x60;.\n\t * @param pageSize Number of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair objects to be returned. Page size can be between 1 and 1000 objects.&lt;/p&gt; The default is 20 &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs in the list.&lt;/p&gt; The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -&gt; previous_page and pagination -&gt; next_page respectively.&lt;/p&gt; The pagination -&gt; next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs in the list.&lt;/p&gt; The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -&gt; previous_page and pagination -&gt; next_page respectively.&lt;/p&gt; The pagination -&gt; previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; parameters. Only one parameter can be selected.&lt;/p&gt; There are two parameter options; &#x60;name&#x60; and &#x60;asset.name&#x60;.&lt;/p&gt; The default is &#x60;asset.name&#x60;\n\t * @param sortAsc Sorting order for the results according to the &#x60;sort_by&#x60; parameter.&lt;/p&gt; There are two options; &#x60;true&#x60; (ascending order) and &#x60;false&#x60; (descending order).&lt;/p&gt; The default is &#x60;true&#x60; (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listHistorianMetric({ name, assetName, search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListHistorianMetricParams = {}, options?: IKvHttpRequestOptions): Observable<StorageMetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageMetricListPaginated>(`/storage/historian/list`, requestConfig, StorageMetricListPaginated);\n\t}\n\n\t/**\n\t * Update Historian Metric\n\t * Update Historian Metric Updates the &#x60;title&#x60; parameter of a &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pair. **Permission Required:** &#x60;kelvin.permission.storage.update&#x60;\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateHistorianMetric({ storage }: IUpdateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/update`, requestConfig);\n\t}\n\n\t/**\n\t * Upload Historian Metrics\n\t * Upload Historian Metrics Accepts a **CSV file** with time series data within a for a given time range and given list of &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; / &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; pairs in the parameter &#x60;selectors&#x60;. The csv file should contain six columns in a comma delimited csv file; &#x60;name&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Metric&lt;/a&gt; ), &#x60;time&#x60; ( Timestamp when the data was recorded from source ), &#x60;asset_name&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Assets&lt;/a&gt; ), &#x60;source&#x60; ( &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin App&lt;/a&gt; or &lt;a href&#x3D;&#39;https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/&#39; target&#x3D;&#39;_blank&#39;&gt;Kelvin Bridge&lt;/a&gt; that has recorded the data - this value is optional ), &#x60;target&#x60; ( Custom parameter set by user - this value is optional ), &#x60;value&#x60; ( value recorded ). The first row must contain the column headers; &#x60;name,time,asset_name,source,target,value&#x60;. **Permission Required:** &#x60;kelvin.permission.storage.create&#x60;\n\t * @param file CSV File\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadHistorianMetrics({ file }: IUploadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/upload`, requestConfig);\n\t}\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { IKvHttpRequestOptions } from '../../../core/http';
3
- import { EmissionsDashboard } from '../../../models';
3
+ import { EmissionsDashboard, FullMapListPaginated } from '../../../models';
4
4
  import { BaseService } from '../../base.service';
5
- import { IGetEmissionsDashboardParams } from '../types';
5
+ import { IGetEmissionsDashboardParams, IListProcessesParams } from '../types';
6
6
  /**
7
7
  * @category Service
8
8
  */
@@ -10,8 +10,20 @@ export declare class UIService extends BaseService {
10
10
  /**
11
11
  * Get Emissions Dashboard
12
12
  * Get Emissions Dashboard endpoint that will provide the data to be presented in the maps/emissions dashboard **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;
13
- * @param siteName The assets site name filter
13
+ * @param groupName The assets group name filter
14
14
  * @param {IKvHttpRequestOptions} options Request optional parameters
15
15
  */
16
- static getEmissionsDashboard({ siteName }?: IGetEmissionsDashboardParams, options?: IKvHttpRequestOptions): Observable<EmissionsDashboard>;
16
+ static getEmissionsDashboard({ groupName }: IGetEmissionsDashboardParams, options?: IKvHttpRequestOptions): Observable<EmissionsDashboard>;
17
+ /**
18
+ * List Processes
19
+ * List Processes **Pagination Sortable Columns:** &#x60;map.name&#x60;, &#x60;map.title&#x60;, &#x60;start_date&#x60;, &#x60;mode&#x60;, &#x60;map.asset_name&#x60; **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;
20
+ * @param processes Processes list schema
21
+ * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20
22
+ * @param startingAfter Lower bound cursor for use in pagination
23
+ * @param endingBefore Upper bound cursor for use in pagination
24
+ * @param sortBy Parameter to sort by. Must be one of the sortable columns
25
+ * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
26
+ * @param {IKvHttpRequestOptions} options Request optional parameters
27
+ */
28
+ static listProcesses({ processes, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListProcessesParams, options?: IKvHttpRequestOptions): Observable<FullMapListPaginated>;
17
29
  }
@@ -10,22 +10,59 @@ class UIService extends base_service_1.BaseService {
10
10
  /**
11
11
  * Get Emissions Dashboard
12
12
  * Get Emissions Dashboard endpoint that will provide the data to be presented in the maps/emissions dashboard **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;
13
- * @param siteName The assets site name filter
13
+ * @param groupName The assets group name filter
14
14
  * @param {IKvHttpRequestOptions} options Request optional parameters
15
15
  */
16
- static getEmissionsDashboard({ siteName } = {}, options) {
16
+ static getEmissionsDashboard({ groupName }, options) {
17
17
  const requestConfig = {
18
18
  method: 'get'
19
19
  };
20
20
  const queryParameters = {};
21
- if (siteName != null) {
22
- queryParameters['site_name'] = siteName;
21
+ if (groupName != null) {
22
+ queryParameters['group_name'] = groupName;
23
23
  }
24
24
  requestConfig.params = queryParameters;
25
25
  requestConfig.mediaType = 'application/json';
26
26
  requestConfig.options = options;
27
27
  return this.request(`/ui/emissions/dashboard/get`, requestConfig, models_1.EmissionsDashboard);
28
28
  }
29
+ /**
30
+ * List Processes
31
+ * List Processes **Pagination Sortable Columns:** &#x60;map.name&#x60;, &#x60;map.title&#x60;, &#x60;start_date&#x60;, &#x60;mode&#x60;, &#x60;map.asset_name&#x60; **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;
32
+ * @param processes Processes list schema
33
+ * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20
34
+ * @param startingAfter Lower bound cursor for use in pagination
35
+ * @param endingBefore Upper bound cursor for use in pagination
36
+ * @param sortBy Parameter to sort by. Must be one of the sortable columns
37
+ * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
38
+ * @param {IKvHttpRequestOptions} options Request optional parameters
39
+ */
40
+ static listProcesses({ processes, pageSize, startingAfter, endingBefore, sortBy, sortAsc }, options) {
41
+ const requestConfig = {
42
+ method: 'post'
43
+ };
44
+ const queryParameters = {};
45
+ if (pageSize != null) {
46
+ queryParameters['page_size'] = pageSize;
47
+ }
48
+ if (startingAfter != null) {
49
+ queryParameters['starting_after'] = startingAfter;
50
+ }
51
+ if (endingBefore != null) {
52
+ queryParameters['ending_before'] = endingBefore;
53
+ }
54
+ if (sortBy != null) {
55
+ queryParameters['sort_by'] = sortBy;
56
+ }
57
+ if (sortAsc != null) {
58
+ queryParameters['sort_asc'] = sortAsc;
59
+ }
60
+ requestConfig.params = queryParameters;
61
+ requestConfig.data = processes;
62
+ requestConfig.mediaType = 'application/json';
63
+ requestConfig.options = options;
64
+ return this.request(`/ui/processes/list`, requestConfig, models_1.FullMapListPaginated);
65
+ }
29
66
  }
30
67
  exports.UIService = UIService;
31
68
  //# sourceMappingURL=uI.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uI.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/uI.service.ts"],"names":[],"mappings":";;;AAEA,4CAAqD;AACrD,qDAAiD;AAKjD;;GAEG;AAEH,MAAa,SAAU,SAAQ,0BAAW;IAEzC;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,QAAQ,KAAmC,EAAE,EAAE,OAA+B;QAE5G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,QAAQ,IAAI,IAAI,EAAE;YACrB,eAAe,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC;SACxC;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;QAEvC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAqB,6BAA6B,EAAE,aAAa,EAAE,2BAAkB,CAAC,CAAC;IAC3G,CAAC;CACD;AA3BD,8BA2BC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions } from '../../../core/http';\nimport { EmissionsDashboard } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIGetEmissionsDashboardParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class UIService extends BaseService {\n\n\t/**\n\t * Get Emissions Dashboard\n\t * Get Emissions Dashboard endpoint that will provide the data to be presented in the maps/emissions dashboard **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;\n\t * @param siteName The assets site name filter\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getEmissionsDashboard({ siteName }: IGetEmissionsDashboardParams = {}, options?: IKvHttpRequestOptions): Observable<EmissionsDashboard> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (siteName != null) {\n\t\t\tqueryParameters['site_name'] = siteName;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<EmissionsDashboard>(`/ui/emissions/dashboard/get`, requestConfig, EmissionsDashboard);\n\t}\n}\n"]}
1
+ {"version":3,"file":"uI.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/uI.service.ts"],"names":[],"mappings":";;;AAEA,4CAA2E;AAC3E,qDAAiD;AAMjD;;GAEG;AAEH,MAAa,SAAU,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AAC,MAAM,GAAG,eAAe,CAAC;QACvC,aAAa,CAAC,IAAI,GAAG,SAAS,CAAC;QAE/B,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAuB,oBAAoB,EAAE,aAAa,EAAE,6BAAoB,CAAC,CAAC;IACtG,CAAC;CACD;AA3ED,8BA2EC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions } from '../../../core/http';\nimport { EmissionsDashboard, FullMapListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIGetEmissionsDashboardParams,\n\tIListProcessesParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class UIService extends BaseService {\n\n\t/**\n\t * Get Emissions Dashboard\n\t * Get Emissions Dashboard endpoint that will provide the data to be presented in the maps/emissions dashboard **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;\n\t * @param groupName The assets group name filter\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getEmissionsDashboard({ groupName }: IGetEmissionsDashboardParams, options?: IKvHttpRequestOptions): Observable<EmissionsDashboard> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (groupName != null) {\n\t\t\tqueryParameters['group_name'] = groupName;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<EmissionsDashboard>(`/ui/emissions/dashboard/get`, requestConfig, EmissionsDashboard);\n\t}\n\n\t/**\n\t * List Processes\n\t * List Processes **Pagination Sortable Columns:** &#x60;map.name&#x60;, &#x60;map.title&#x60;, &#x60;start_date&#x60;, &#x60;mode&#x60;, &#x60;map.asset_name&#x60; **Permission Required:** &#x60;kelvin.permission.ui.read&#x60;\n\t * @param processes Processes list schema\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listProcesses({ processes, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListProcessesParams, options?: IKvHttpRequestOptions): Observable<FullMapListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = processes;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<FullMapListPaginated>(`/ui/processes/list`, requestConfig, FullMapListPaginated);\n\t}\n}\n"]}
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
2
2
  import { IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';
3
3
  import { Workload, WorkloadListPaginated, WorkloadLogs, WorkloadTelemetry } from '../../../models';
4
4
  import { BaseService } from '../../base.service';
5
- import { IDeployWorkloadParams, IGetWorkloadLogsParams, IGetWorkloadParams, IGetWorkloadTelemetryParams, IListWorkloadParams, IStartWorkloadParams, IStopWorkloadParams, IUndeployWorkloadParams } from '../types';
5
+ import { IDeployWorkloadParams, IDownloadWorkloadPackageFileParams, IGetWorkloadLogsParams, IGetWorkloadParams, IGetWorkloadTelemetryParams, IListWorkloadParams, IStartWorkloadParams, IStopWorkloadParams, IUndeployWorkloadParams } from '../types';
6
6
  /**
7
7
  * @category Service
8
8
  */
@@ -14,6 +14,13 @@ export declare class WorkloadService extends BaseService {
14
14
  * @param {IKvHttpRequestOptions} options Request optional parameters
15
15
  */
16
16
  static deployWorkload({ workload }: IDeployWorkloadParams, options?: IKvHttpRequestOptions): Observable<Workload>;
17
+ /**
18
+ * Download Workload Package File
19
+ * Download Workload Package File **Permission Required:** &#x60;kelvin.permission.workload.read&#x60;
20
+ * @param workloadName Workload name
21
+ * @param {IKvHttpRequestOptions} options Request optional parameters
22
+ */
23
+ static downloadWorkloadPackageFile({ workloadName }: IDownloadWorkloadPackageFileParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse>;
17
24
  /**
18
25
  * Get Workload
19
26
  * Get Workload **Permission Required:** &#x60;kelvin.permission.workload.read&#x60;
@@ -22,6 +22,20 @@ class WorkloadService extends base_service_1.BaseService {
22
22
  requestConfig.options = options;
23
23
  return this.request(`/workloads/deploy`, requestConfig, models_1.Workload);
24
24
  }
25
+ /**
26
+ * Download Workload Package File
27
+ * Download Workload Package File **Permission Required:** &#x60;kelvin.permission.workload.read&#x60;
28
+ * @param workloadName Workload name
29
+ * @param {IKvHttpRequestOptions} options Request optional parameters
30
+ */
31
+ static downloadWorkloadPackageFile({ workloadName }, options) {
32
+ const requestConfig = {
33
+ method: 'get'
34
+ };
35
+ requestConfig.mediaType = 'application/zip';
36
+ requestConfig.options = options;
37
+ return this.request(`/workloads/${encodeURIComponent(String(workloadName))}/download`, requestConfig);
38
+ }
25
39
  /**
26
40
  * Get Workload
27
41
  * Get Workload **Permission Required:** &#x60;kelvin.permission.workload.read&#x60;