namirasoft-infra 1.4.0 → 1.4.1

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 (352) hide show
  1. package/dist/NamirasoftInfraServer.d.ts +16 -0
  2. package/dist/NamirasoftInfraServer.js +17 -1
  3. package/dist/NamirasoftInfraServer.js.map +1 -1
  4. package/dist/NamirasoftInfraServerMetric.d.ts +19 -0
  5. package/dist/NamirasoftInfraServerMetric.js +72 -0
  6. package/dist/NamirasoftInfraServerMetric.js.map +1 -0
  7. package/dist/NamirasoftInfraServerMetricCategory.d.ts +17 -0
  8. package/dist/NamirasoftInfraServerMetricCategory.js +56 -0
  9. package/dist/NamirasoftInfraServerMetricCategory.js.map +1 -0
  10. package/dist/NamirasoftInfraServerMetricField.d.ts +18 -0
  11. package/dist/NamirasoftInfraServerMetricField.js +64 -0
  12. package/dist/NamirasoftInfraServerMetricField.js.map +1 -0
  13. package/dist/NamirasoftInfraServerMetricTag.d.ts +18 -0
  14. package/dist/NamirasoftInfraServerMetricTag.js +64 -0
  15. package/dist/NamirasoftInfraServerMetricTag.js.map +1 -0
  16. package/dist/NamirasoftInfraServerMonitor.d.ts +20 -0
  17. package/dist/NamirasoftInfraServerMonitor.js +72 -0
  18. package/dist/NamirasoftInfraServerMonitor.js.map +1 -0
  19. package/dist/NamirasoftInfraServerMonitorCategory.d.ts +17 -0
  20. package/dist/NamirasoftInfraServerMonitorCategory.js +56 -0
  21. package/dist/NamirasoftInfraServerMonitorCategory.js.map +1 -0
  22. package/dist/NamirasoftInfraServerMonitorField.d.ts +18 -0
  23. package/dist/NamirasoftInfraServerMonitorField.js +64 -0
  24. package/dist/NamirasoftInfraServerMonitorField.js.map +1 -0
  25. package/dist/NamirasoftInfraServerMonitorTag.d.ts +18 -0
  26. package/dist/NamirasoftInfraServerMonitorTag.js +64 -0
  27. package/dist/NamirasoftInfraServerMonitorTag.js.map +1 -0
  28. package/dist/command/MetricCategoryCommand.d.ts +4 -0
  29. package/dist/command/MetricCategoryCommand.js +21 -0
  30. package/dist/command/MetricCategoryCommand.js.map +1 -0
  31. package/dist/command/MetricCategoryCreateCommand.d.ts +5 -0
  32. package/dist/command/MetricCategoryCreateCommand.js +58 -0
  33. package/dist/command/MetricCategoryCreateCommand.js.map +1 -0
  34. package/dist/command/MetricCategoryDeleteCommand.d.ts +5 -0
  35. package/dist/command/MetricCategoryDeleteCommand.js +38 -0
  36. package/dist/command/MetricCategoryDeleteCommand.js.map +1 -0
  37. package/dist/command/MetricCategoryGetCommand.d.ts +5 -0
  38. package/dist/command/MetricCategoryGetCommand.js +38 -0
  39. package/dist/command/MetricCategoryGetCommand.js.map +1 -0
  40. package/dist/command/MetricCategoryListCommand.d.ts +5 -0
  41. package/dist/command/MetricCategoryListCommand.js +38 -0
  42. package/dist/command/MetricCategoryListCommand.js.map +1 -0
  43. package/dist/command/MetricCommand.d.ts +4 -0
  44. package/dist/command/MetricCommand.js +25 -0
  45. package/dist/command/MetricCommand.js.map +1 -0
  46. package/dist/command/MetricCreateCommand.d.ts +5 -0
  47. package/dist/command/MetricCreateCommand.js +139 -0
  48. package/dist/command/MetricCreateCommand.js.map +1 -0
  49. package/dist/command/MetricDeleteCommand.d.ts +5 -0
  50. package/dist/command/MetricDeleteCommand.js +38 -0
  51. package/dist/command/MetricDeleteCommand.js.map +1 -0
  52. package/dist/command/MetricFieldCommand.d.ts +4 -0
  53. package/dist/command/MetricFieldCommand.js +23 -0
  54. package/dist/command/MetricFieldCommand.js.map +1 -0
  55. package/dist/command/MetricFieldCreateCommand.d.ts +5 -0
  56. package/dist/command/MetricFieldCreateCommand.js +67 -0
  57. package/dist/command/MetricFieldCreateCommand.js.map +1 -0
  58. package/dist/command/MetricFieldDeleteCommand.d.ts +5 -0
  59. package/dist/command/MetricFieldDeleteCommand.js +38 -0
  60. package/dist/command/MetricFieldDeleteCommand.js.map +1 -0
  61. package/dist/command/MetricFieldGetCommand.d.ts +5 -0
  62. package/dist/command/MetricFieldGetCommand.js +38 -0
  63. package/dist/command/MetricFieldGetCommand.js.map +1 -0
  64. package/dist/command/MetricFieldListCommand.d.ts +5 -0
  65. package/dist/command/MetricFieldListCommand.js +38 -0
  66. package/dist/command/MetricFieldListCommand.js.map +1 -0
  67. package/dist/command/MetricFieldUpdateCommand.d.ts +5 -0
  68. package/dist/command/MetricFieldUpdateCommand.js +67 -0
  69. package/dist/command/MetricFieldUpdateCommand.js.map +1 -0
  70. package/dist/command/MetricGetCommand.d.ts +5 -0
  71. package/dist/command/MetricGetCommand.js +38 -0
  72. package/dist/command/MetricGetCommand.js.map +1 -0
  73. package/dist/command/MetricListCommand.d.ts +5 -0
  74. package/dist/command/MetricListCommand.js +38 -0
  75. package/dist/command/MetricListCommand.js.map +1 -0
  76. package/dist/command/MetricResultCommand.d.ts +5 -0
  77. package/dist/command/MetricResultCommand.js +38 -0
  78. package/dist/command/MetricResultCommand.js.map +1 -0
  79. package/dist/command/MetricTagCommand.d.ts +4 -0
  80. package/dist/command/MetricTagCommand.js +23 -0
  81. package/dist/command/MetricTagCommand.js.map +1 -0
  82. package/dist/command/MetricTagCreateCommand.d.ts +5 -0
  83. package/dist/command/MetricTagCreateCommand.js +67 -0
  84. package/dist/command/MetricTagCreateCommand.js.map +1 -0
  85. package/dist/command/MetricTagDeleteCommand.d.ts +5 -0
  86. package/dist/command/MetricTagDeleteCommand.js +38 -0
  87. package/dist/command/MetricTagDeleteCommand.js.map +1 -0
  88. package/dist/command/MetricTagGetCommand.d.ts +5 -0
  89. package/dist/command/MetricTagGetCommand.js +38 -0
  90. package/dist/command/MetricTagGetCommand.js.map +1 -0
  91. package/dist/command/MetricTagListCommand.d.ts +5 -0
  92. package/dist/command/MetricTagListCommand.js +38 -0
  93. package/dist/command/MetricTagListCommand.js.map +1 -0
  94. package/dist/command/MetricTagUpdateCommand.d.ts +5 -0
  95. package/dist/command/MetricTagUpdateCommand.js +67 -0
  96. package/dist/command/MetricTagUpdateCommand.js.map +1 -0
  97. package/dist/command/MetricUpdateCommand.d.ts +5 -0
  98. package/dist/command/MetricUpdateCommand.js +139 -0
  99. package/dist/command/MetricUpdateCommand.js.map +1 -0
  100. package/dist/command/MonitorCategoryCommand.d.ts +4 -0
  101. package/dist/command/MonitorCategoryCommand.js +21 -0
  102. package/dist/command/MonitorCategoryCommand.js.map +1 -0
  103. package/dist/command/MonitorCategoryCreateCommand.d.ts +5 -0
  104. package/dist/command/MonitorCategoryCreateCommand.js +58 -0
  105. package/dist/command/MonitorCategoryCreateCommand.js.map +1 -0
  106. package/dist/command/MonitorCategoryDeleteCommand.d.ts +5 -0
  107. package/dist/command/MonitorCategoryDeleteCommand.js +38 -0
  108. package/dist/command/MonitorCategoryDeleteCommand.js.map +1 -0
  109. package/dist/command/MonitorCategoryGetCommand.d.ts +5 -0
  110. package/dist/command/MonitorCategoryGetCommand.js +38 -0
  111. package/dist/command/MonitorCategoryGetCommand.js.map +1 -0
  112. package/dist/command/MonitorCategoryListCommand.d.ts +5 -0
  113. package/dist/command/MonitorCategoryListCommand.js +38 -0
  114. package/dist/command/MonitorCategoryListCommand.js.map +1 -0
  115. package/dist/command/MonitorCommand.d.ts +4 -0
  116. package/dist/command/MonitorCommand.js +25 -0
  117. package/dist/command/MonitorCommand.js.map +1 -0
  118. package/dist/command/MonitorCreateCommand.d.ts +5 -0
  119. package/dist/command/MonitorCreateCommand.js +382 -0
  120. package/dist/command/MonitorCreateCommand.js.map +1 -0
  121. package/dist/command/MonitorDeleteCommand.d.ts +5 -0
  122. package/dist/command/MonitorDeleteCommand.js +38 -0
  123. package/dist/command/MonitorDeleteCommand.js.map +1 -0
  124. package/dist/command/MonitorFieldCommand.d.ts +4 -0
  125. package/dist/command/MonitorFieldCommand.js +23 -0
  126. package/dist/command/MonitorFieldCommand.js.map +1 -0
  127. package/dist/command/MonitorFieldCreateCommand.d.ts +5 -0
  128. package/dist/command/MonitorFieldCreateCommand.js +67 -0
  129. package/dist/command/MonitorFieldCreateCommand.js.map +1 -0
  130. package/dist/command/MonitorFieldDeleteCommand.d.ts +5 -0
  131. package/dist/command/MonitorFieldDeleteCommand.js +38 -0
  132. package/dist/command/MonitorFieldDeleteCommand.js.map +1 -0
  133. package/dist/command/MonitorFieldGetCommand.d.ts +5 -0
  134. package/dist/command/MonitorFieldGetCommand.js +38 -0
  135. package/dist/command/MonitorFieldGetCommand.js.map +1 -0
  136. package/dist/command/MonitorFieldListCommand.d.ts +5 -0
  137. package/dist/command/MonitorFieldListCommand.js +38 -0
  138. package/dist/command/MonitorFieldListCommand.js.map +1 -0
  139. package/dist/command/MonitorFieldUpdateCommand.d.ts +5 -0
  140. package/dist/command/MonitorFieldUpdateCommand.js +67 -0
  141. package/dist/command/MonitorFieldUpdateCommand.js.map +1 -0
  142. package/dist/command/MonitorGetCommand.d.ts +5 -0
  143. package/dist/command/MonitorGetCommand.js +38 -0
  144. package/dist/command/MonitorGetCommand.js.map +1 -0
  145. package/dist/command/MonitorListCommand.d.ts +5 -0
  146. package/dist/command/MonitorListCommand.js +38 -0
  147. package/dist/command/MonitorListCommand.js.map +1 -0
  148. package/dist/command/MonitorResultCommand.d.ts +5 -0
  149. package/dist/command/MonitorResultCommand.js +38 -0
  150. package/dist/command/MonitorResultCommand.js.map +1 -0
  151. package/dist/command/MonitorTagCommand.d.ts +4 -0
  152. package/dist/command/MonitorTagCommand.js +23 -0
  153. package/dist/command/MonitorTagCommand.js.map +1 -0
  154. package/dist/command/MonitorTagCreateCommand.d.ts +5 -0
  155. package/dist/command/MonitorTagCreateCommand.js +67 -0
  156. package/dist/command/MonitorTagCreateCommand.js.map +1 -0
  157. package/dist/command/MonitorTagDeleteCommand.d.ts +5 -0
  158. package/dist/command/MonitorTagDeleteCommand.js +38 -0
  159. package/dist/command/MonitorTagDeleteCommand.js.map +1 -0
  160. package/dist/command/MonitorTagGetCommand.d.ts +5 -0
  161. package/dist/command/MonitorTagGetCommand.js +38 -0
  162. package/dist/command/MonitorTagGetCommand.js.map +1 -0
  163. package/dist/command/MonitorTagListCommand.d.ts +5 -0
  164. package/dist/command/MonitorTagListCommand.js +38 -0
  165. package/dist/command/MonitorTagListCommand.js.map +1 -0
  166. package/dist/command/MonitorTagUpdateCommand.d.ts +5 -0
  167. package/dist/command/MonitorTagUpdateCommand.js +67 -0
  168. package/dist/command/MonitorTagUpdateCommand.js.map +1 -0
  169. package/dist/command/MonitorUpdateCommand.d.ts +5 -0
  170. package/dist/command/MonitorUpdateCommand.js +382 -0
  171. package/dist/command/MonitorUpdateCommand.js.map +1 -0
  172. package/dist/command/cli.js +16 -0
  173. package/dist/command/cli.js.map +1 -1
  174. package/dist/enum/MetricCallerType.d.ts +5 -0
  175. package/dist/enum/MetricCallerType.js +10 -0
  176. package/dist/enum/MetricCallerType.js.map +1 -0
  177. package/dist/enum/MetricIntervalUnit.d.ts +5 -0
  178. package/dist/enum/MetricIntervalUnit.js +10 -0
  179. package/dist/enum/MetricIntervalUnit.js.map +1 -0
  180. package/dist/enum/MonitorCallerType.d.ts +5 -0
  181. package/dist/enum/MonitorCallerType.js +10 -0
  182. package/dist/enum/MonitorCallerType.js.map +1 -0
  183. package/dist/enum/MonitorDockerContainerConnectionType.d.ts +4 -0
  184. package/dist/enum/MonitorDockerContainerConnectionType.js +9 -0
  185. package/dist/enum/MonitorDockerContainerConnectionType.js.map +1 -0
  186. package/dist/enum/MonitorHTTPBodyEncoding.d.ts +5 -0
  187. package/dist/enum/MonitorHTTPBodyEncoding.js +10 -0
  188. package/dist/enum/MonitorHTTPBodyEncoding.js.map +1 -0
  189. package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +5 -0
  190. package/dist/enum/MonitorHeartbeatIntervalUnit.js +10 -0
  191. package/dist/enum/MonitorHeartbeatIntervalUnit.js.map +1 -0
  192. package/dist/enum/MonitorHeartbeatRetryIntervalUnit.d.ts +5 -0
  193. package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js +10 -0
  194. package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js.map +1 -0
  195. package/dist/enum/MonitorKubernetesPodControllerType.d.ts +5 -0
  196. package/dist/enum/MonitorKubernetesPodControllerType.js +10 -0
  197. package/dist/enum/MonitorKubernetesPodControllerType.js.map +1 -0
  198. package/dist/enum/MonitorRequestTimeoutUnit.d.ts +4 -0
  199. package/dist/enum/MonitorRequestTimeoutUnit.js +9 -0
  200. package/dist/enum/MonitorRequestTimeoutUnit.js.map +1 -0
  201. package/dist/enum/MonitorType.d.ts +10 -0
  202. package/dist/enum/MonitorType.js +15 -0
  203. package/dist/enum/MonitorType.js.map +1 -0
  204. package/dist/index.d.ts +84 -0
  205. package/dist/index.js +84 -0
  206. package/dist/index.js.map +1 -1
  207. package/dist/meta/MetricCategoryMetaTable.d.ts +15 -0
  208. package/dist/meta/MetricCategoryMetaTable.js +39 -0
  209. package/dist/meta/MetricCategoryMetaTable.js.map +1 -0
  210. package/dist/meta/MetricFieldMetaTable.d.ts +16 -0
  211. package/dist/meta/MetricFieldMetaTable.js +39 -0
  212. package/dist/meta/MetricFieldMetaTable.js.map +1 -0
  213. package/dist/meta/MetricMetaTable.d.ts +24 -0
  214. package/dist/meta/MetricMetaTable.js +47 -0
  215. package/dist/meta/MetricMetaTable.js.map +1 -0
  216. package/dist/meta/MetricTagMetaTable.d.ts +16 -0
  217. package/dist/meta/MetricTagMetaTable.js +39 -0
  218. package/dist/meta/MetricTagMetaTable.js.map +1 -0
  219. package/dist/meta/MonitorCategoryMetaTable.d.ts +15 -0
  220. package/dist/meta/MonitorCategoryMetaTable.js +39 -0
  221. package/dist/meta/MonitorCategoryMetaTable.js.map +1 -0
  222. package/dist/meta/MonitorFieldMetaTable.d.ts +16 -0
  223. package/dist/meta/MonitorFieldMetaTable.js +39 -0
  224. package/dist/meta/MonitorFieldMetaTable.js.map +1 -0
  225. package/dist/meta/MonitorMetaTable.d.ts +51 -0
  226. package/dist/meta/MonitorMetaTable.js +74 -0
  227. package/dist/meta/MonitorMetaTable.js.map +1 -0
  228. package/dist/meta/MonitorTagMetaTable.d.ts +16 -0
  229. package/dist/meta/MonitorTagMetaTable.js +39 -0
  230. package/dist/meta/MonitorTagMetaTable.js.map +1 -0
  231. package/dist/meta/NamirasoftInfraMetaDatabase.d.ts +16 -0
  232. package/dist/meta/NamirasoftInfraMetaDatabase.js +16 -0
  233. package/dist/meta/NamirasoftInfraMetaDatabase.js.map +1 -1
  234. package/dist/row/MetricCategoryRow.d.ts +8 -0
  235. package/dist/row/MetricCategoryRow.js +3 -0
  236. package/dist/row/MetricCategoryRow.js.map +1 -0
  237. package/dist/row/MetricFieldRow.d.ts +9 -0
  238. package/dist/row/MetricFieldRow.js +3 -0
  239. package/dist/row/MetricFieldRow.js.map +1 -0
  240. package/dist/row/MetricInputRow.d.ts +15 -0
  241. package/dist/row/MetricInputRow.js +3 -0
  242. package/dist/row/MetricInputRow.js.map +1 -0
  243. package/dist/row/MetricRow.d.ts +19 -0
  244. package/dist/row/MetricRow.js +3 -0
  245. package/dist/row/MetricRow.js.map +1 -0
  246. package/dist/row/MetricTagRow.d.ts +9 -0
  247. package/dist/row/MetricTagRow.js +3 -0
  248. package/dist/row/MetricTagRow.js.map +1 -0
  249. package/dist/row/MonitorCategoryRow.d.ts +8 -0
  250. package/dist/row/MonitorCategoryRow.js +3 -0
  251. package/dist/row/MonitorCategoryRow.js.map +1 -0
  252. package/dist/row/MonitorFieldRow.d.ts +9 -0
  253. package/dist/row/MonitorFieldRow.js +3 -0
  254. package/dist/row/MonitorFieldRow.js.map +1 -0
  255. package/dist/row/MonitorInputRow.d.ts +48 -0
  256. package/dist/row/MonitorInputRow.js +3 -0
  257. package/dist/row/MonitorInputRow.js.map +1 -0
  258. package/dist/row/MonitorRow.d.ts +52 -0
  259. package/dist/row/MonitorRow.js +3 -0
  260. package/dist/row/MonitorRow.js.map +1 -0
  261. package/dist/row/MonitorTagRow.d.ts +9 -0
  262. package/dist/row/MonitorTagRow.js +3 -0
  263. package/dist/row/MonitorTagRow.js.map +1 -0
  264. package/package.json +1 -1
  265. package/src/NamirasoftInfraServer.ts +25 -1
  266. package/src/NamirasoftInfraServerMetric.ts +78 -0
  267. package/src/NamirasoftInfraServerMetricCategory.ts +64 -0
  268. package/src/NamirasoftInfraServerMetricField.ts +71 -0
  269. package/src/NamirasoftInfraServerMetricTag.ts +71 -0
  270. package/src/NamirasoftInfraServerMonitor.ts +79 -0
  271. package/src/NamirasoftInfraServerMonitorCategory.ts +64 -0
  272. package/src/NamirasoftInfraServerMonitorField.ts +71 -0
  273. package/src/NamirasoftInfraServerMonitorTag.ts +71 -0
  274. package/src/command/MetricCategoryCommand.ts +38 -0
  275. package/src/command/MetricCategoryCreateCommand.ts +65 -0
  276. package/src/command/MetricCategoryDeleteCommand.ts +45 -0
  277. package/src/command/MetricCategoryGetCommand.ts +45 -0
  278. package/src/command/MetricCategoryListCommand.ts +45 -0
  279. package/src/command/MetricCommand.ts +42 -0
  280. package/src/command/MetricCreateCommand.ts +146 -0
  281. package/src/command/MetricDeleteCommand.ts +45 -0
  282. package/src/command/MetricFieldCommand.ts +40 -0
  283. package/src/command/MetricFieldCreateCommand.ts +74 -0
  284. package/src/command/MetricFieldDeleteCommand.ts +45 -0
  285. package/src/command/MetricFieldGetCommand.ts +45 -0
  286. package/src/command/MetricFieldListCommand.ts +45 -0
  287. package/src/command/MetricFieldUpdateCommand.ts +74 -0
  288. package/src/command/MetricGetCommand.ts +45 -0
  289. package/src/command/MetricListCommand.ts +45 -0
  290. package/src/command/MetricResultCommand.ts +45 -0
  291. package/src/command/MetricTagCommand.ts +40 -0
  292. package/src/command/MetricTagCreateCommand.ts +74 -0
  293. package/src/command/MetricTagDeleteCommand.ts +45 -0
  294. package/src/command/MetricTagGetCommand.ts +45 -0
  295. package/src/command/MetricTagListCommand.ts +45 -0
  296. package/src/command/MetricTagUpdateCommand.ts +74 -0
  297. package/src/command/MetricUpdateCommand.ts +146 -0
  298. package/src/command/MonitorCategoryCommand.ts +38 -0
  299. package/src/command/MonitorCategoryCreateCommand.ts +65 -0
  300. package/src/command/MonitorCategoryDeleteCommand.ts +45 -0
  301. package/src/command/MonitorCategoryGetCommand.ts +45 -0
  302. package/src/command/MonitorCategoryListCommand.ts +45 -0
  303. package/src/command/MonitorCommand.ts +42 -0
  304. package/src/command/MonitorCreateCommand.ts +389 -0
  305. package/src/command/MonitorDeleteCommand.ts +45 -0
  306. package/src/command/MonitorFieldCommand.ts +40 -0
  307. package/src/command/MonitorFieldCreateCommand.ts +74 -0
  308. package/src/command/MonitorFieldDeleteCommand.ts +45 -0
  309. package/src/command/MonitorFieldGetCommand.ts +45 -0
  310. package/src/command/MonitorFieldListCommand.ts +45 -0
  311. package/src/command/MonitorFieldUpdateCommand.ts +74 -0
  312. package/src/command/MonitorGetCommand.ts +45 -0
  313. package/src/command/MonitorListCommand.ts +45 -0
  314. package/src/command/MonitorResultCommand.ts +45 -0
  315. package/src/command/MonitorTagCommand.ts +40 -0
  316. package/src/command/MonitorTagCreateCommand.ts +74 -0
  317. package/src/command/MonitorTagDeleteCommand.ts +45 -0
  318. package/src/command/MonitorTagGetCommand.ts +45 -0
  319. package/src/command/MonitorTagListCommand.ts +45 -0
  320. package/src/command/MonitorTagUpdateCommand.ts +74 -0
  321. package/src/command/MonitorUpdateCommand.ts +389 -0
  322. package/src/command/cli.ts +16 -0
  323. package/src/enum/MetricCallerType.ts +26 -0
  324. package/src/enum/MetricIntervalUnit.ts +26 -0
  325. package/src/enum/MonitorCallerType.ts +26 -0
  326. package/src/enum/MonitorDockerContainerConnectionType.ts +25 -0
  327. package/src/enum/MonitorHTTPBodyEncoding.ts +26 -0
  328. package/src/enum/MonitorHeartbeatIntervalUnit.ts +26 -0
  329. package/src/enum/MonitorHeartbeatRetryIntervalUnit.ts +26 -0
  330. package/src/enum/MonitorKubernetesPodControllerType.ts +26 -0
  331. package/src/enum/MonitorRequestTimeoutUnit.ts +25 -0
  332. package/src/enum/MonitorType.ts +31 -0
  333. package/src/index.ts +84 -0
  334. package/src/meta/MetricCategoryMetaTable.ts +60 -0
  335. package/src/meta/MetricFieldMetaTable.ts +61 -0
  336. package/src/meta/MetricMetaTable.ts +77 -0
  337. package/src/meta/MetricTagMetaTable.ts +61 -0
  338. package/src/meta/MonitorCategoryMetaTable.ts +60 -0
  339. package/src/meta/MonitorFieldMetaTable.ts +61 -0
  340. package/src/meta/MonitorMetaTable.ts +131 -0
  341. package/src/meta/MonitorTagMetaTable.ts +61 -0
  342. package/src/meta/NamirasoftInfraMetaDatabase.ts +24 -0
  343. package/src/row/MetricCategoryRow.ts +29 -0
  344. package/src/row/MetricFieldRow.ts +30 -0
  345. package/src/row/MetricInputRow.ts +37 -0
  346. package/src/row/MetricRow.ts +41 -0
  347. package/src/row/MetricTagRow.ts +30 -0
  348. package/src/row/MonitorCategoryRow.ts +29 -0
  349. package/src/row/MonitorFieldRow.ts +30 -0
  350. package/src/row/MonitorInputRow.ts +70 -0
  351. package/src/row/MonitorRow.ts +74 -0
  352. package/src/row/MonitorTagRow.ts +30 -0
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricDeleteCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric.Delete(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricDeleteCommand = MetricDeleteCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricDeleteCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricDeleteCommand.js","sourceRoot":"","sources":["../../src/command/MetricDeleteCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,mBAAoB,SAAQ,sCAAgB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,kDAmBC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class MetricFieldCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetricFieldCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const MetricFieldCreateCommand_1 = require("./MetricFieldCreateCommand");
6
+ const MetricFieldDeleteCommand_1 = require("./MetricFieldDeleteCommand");
7
+ const MetricFieldGetCommand_1 = require("./MetricFieldGetCommand");
8
+ const MetricFieldListCommand_1 = require("./MetricFieldListCommand");
9
+ const MetricFieldUpdateCommand_1 = require("./MetricFieldUpdateCommand");
10
+ class MetricFieldCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
11
+ constructor(argv) {
12
+ super(argv, {
13
+ "list": MetricFieldListCommand_1.MetricFieldListCommand,
14
+ "get": MetricFieldGetCommand_1.MetricFieldGetCommand,
15
+ "create": MetricFieldCreateCommand_1.MetricFieldCreateCommand,
16
+ "update": MetricFieldUpdateCommand_1.MetricFieldUpdateCommand,
17
+ "delete": MetricFieldDeleteCommand_1.MetricFieldDeleteCommand,
18
+ });
19
+ }
20
+ }
21
+ exports.MetricFieldCommand = MetricFieldCommand;
22
+ ;
23
+ //# sourceMappingURL=MetricFieldCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldCommand.js","sourceRoot":"","sources":["../../src/command/MetricFieldCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,yEAAsE;AACtE,yEAAsE;AACtE,mEAAgE;AAChE,qEAAkE;AAClE,yEAAsE;AAEtE,MAAa,kBAAmB,SAAQ,0CAAoB;IAExD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,+CAAsB;YAC9B,KAAK,EAAE,6CAAqB;YAC5B,QAAQ,EAAE,mDAAwB;YAClC,QAAQ,EAAE,mDAAwB;YAClC,QAAQ,EAAE,mDAAwB;SACrC,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,gDAYC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricFieldCreateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricFieldCreateCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricFieldCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], [
20
+ {
21
+ name: "entity_id",
22
+ short: "",
23
+ description: "Provides the value of 'entity_id' in body",
24
+ optional: false,
25
+ args: ["entity_id"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "field_id",
30
+ short: "",
31
+ description: "Provides the value of 'field_id' in body",
32
+ optional: false,
33
+ args: ["field_id"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "value",
38
+ short: "",
39
+ description: "Provides the value of 'value' in body",
40
+ optional: true,
41
+ args: ["value"],
42
+ defaults: [""]
43
+ }
44
+ ]);
45
+ }
46
+ exec() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ let token = this.app.storage.getNSAToken();
49
+ if (token == null)
50
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
51
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
52
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
53
+ token_manager.setValue(token, false);
54
+ let url = this.app.storage.getItem("ns-infra-server-url");
55
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
56
+ let ans = yield server.metric_field.Create({
57
+ entity_id: this.option_values.entity_id,
58
+ field_id: this.option_values.field_id,
59
+ value: this.option_values.value
60
+ });
61
+ this.app.logger.success(JSON.stringify(ans));
62
+ });
63
+ }
64
+ }
65
+ exports.MetricFieldCreateCommand = MetricFieldCreateCommand;
66
+ ;
67
+ //# sourceMappingURL=MetricFieldCreateCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldCreateCommand.js","source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,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;gBACvC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;aAClC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,4DAgDC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricFieldDeleteCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricFieldDeleteCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricFieldDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric_field.Delete(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricFieldDeleteCommand = MetricFieldDeleteCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricFieldDeleteCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldDeleteCommand.js","sourceRoot":"","sources":["../../src/command/MetricFieldDeleteCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,wBAAyB,SAAQ,sCAAgB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4DAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricFieldGetCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricFieldGetCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricFieldGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric_field.Get(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricFieldGetCommand = MetricFieldGetCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricFieldGetCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldGetCommand.js","sourceRoot":"","sources":["../../src/command/MetricFieldGetCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,qBAAsB,SAAQ,sCAAgB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,sDAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricFieldListCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricFieldListCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricFieldListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["filters", "page", "size", "sorts"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric_field.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricFieldListCommand = MetricFieldListCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricFieldListCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldListCommand.js","sourceRoot":"","sources":["../../src/command/MetricFieldListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,sBAAuB,SAAQ,sCAAgB;IAExD,YAAY,IAAc;QAEtB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ldUpdateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricFieldUpdateCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricFieldUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], [
20
+ {
21
+ name: "entity_id",
22
+ short: "",
23
+ description: "Provides the value of 'entity_id' in body",
24
+ optional: false,
25
+ args: ["entity_id"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "field_id",
30
+ short: "",
31
+ description: "Provides the value of 'field_id' in body",
32
+ optional: false,
33
+ args: ["field_id"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "value",
38
+ short: "",
39
+ description: "Provides the value of 'value' in body",
40
+ optional: true,
41
+ args: ["value"],
42
+ defaults: [""]
43
+ }
44
+ ]);
45
+ }
46
+ exec() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ let token = this.app.storage.getNSAToken();
49
+ if (token == null)
50
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
51
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
52
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
53
+ token_manager.setValue(token, false);
54
+ let url = this.app.storage.getItem("ns-infra-server-url");
55
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
56
+ let ans = yield server.metric_field.Update(this.arg_values[0], {
57
+ entity_id: this.option_values.entity_id,
58
+ field_id: this.option_values.field_id,
59
+ value: this.option_values.value
60
+ });
61
+ this.app.logger.success(JSON.stringify(ans));
62
+ });
63
+ }
64
+ }
65
+ exports.MetricFieldUpdateCommand = MetricFieldUpdateCommand;
66
+ ;
67
+ //# sourceMappingURL=MetricFieldUpdateCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricFieldUpdateCommand.js","sourceRoot":"","sources":["../../src/command/MetricFieldUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,wBAAyB,SAAQ,sCAAgB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,IAAI;gB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-node-cli";
2
+ export declare class MetricGetCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricGetCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric.Get(this.arg_values[0]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricGetCommand = MetricGetCommand;
37
+ ;
38
+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nBD,4CAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricListCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricListCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["filters", "page", "size", "sorts"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricListCommand = MetricListCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricListCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricListCommand.js","sourceRoot":"","sources":["../../src/command/MetricListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACnH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,8CAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricResultCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetricResultCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInfraServer_1 = require("../NamirasoftInfraServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class MetricResultCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-infra-server-url");
30
+ let server = new NamirasoftInfraServer_1.NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.metric.Result();
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.MetricResultCommand = MetricResultCommand;
37
+ ;
38
+ //# sourceMappingURL=MetricResultCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricResultCommand.js","sourceRoot":"","sources":["../../src/command/MetricResultCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,oEAAiE;AACjE,2DAAkD;AAElD,MAAa,mBAAoB,SAAQ,sCAAgB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAC;YACjI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAI,MAAM,GAAG,IAAI,6CAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACvC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,kDAmBC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class MetricTagCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetricTagCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const MetricTagCreateCommand_1 = require("./MetricTagCreateCommand");
6
+ const MetricTagDeleteCommand_1 = require("./MetricTagDeleteCommand");
7
+ const MetricTagGetCommand_1 = require("./MetricTagGetCommand");
8
+ const MetricTagListCommand_1 = require("./MetricTagListCommand");
9
+ const MetricTagUpdateCommand_1 = require("./MetricTagUpdateCommand");
10
+ class MetricTagCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
11
+ constructor(argv) {
12
+ super(argv, {
13
+ "list": MetricTagListCommand_1.MetricTagListCommand,
14
+ "get": MetricTagGetCommand_1.MetricTagGetCommand,
15
+ "create": MetricTagCreateCommand_1.MetricTagCreateCommand,
16
+ "update": MetricTagUpdateCommand_1.MetricTagUpdateCommand,
17
+ "delete": MetricTagDeleteCommand_1.MetricTagDeleteCommand,
18
+ });
19
+ }
20
+ }
21
+ exports.MetricTagCommand = MetricTagCommand;
22
+ ;
23
+ //# sourceMappingURL=MetricTagCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricTagCommand.js","sourceRoot":"","sources":["../../src/command/MetricTagCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,qEAAkE;AAClE,qEAAkE;AAClE,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAElE,MAAa,gBAAiB,SAAQ,0CAAoB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,2CAAoB;YAC5B,KAAK,EAAE,yCAAmB;YAC1B,QAAQ,EAAE,+CAAsB;YAChC,QAAQ,EAAE,+CAAsB;YAChC,QAAQ,EAAE,+CAAsB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,4CAYC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class MetricTagCreateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }