namirasoft-log 1.3.21 → 1.3.23

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 (229) hide show
  1. package/dist/NamirasoftLogServer.d.ts +12 -0
  2. package/dist/NamirasoftLogServer.js +12 -0
  3. package/dist/NamirasoftLogServer.js.map +1 -1
  4. package/dist/NamirasoftLogServerAlarmCategory.d.ts +14 -0
  5. package/dist/NamirasoftLogServerAlarmCategory.js +54 -0
  6. package/dist/NamirasoftLogServerAlarmCategory.js.map +1 -0
  7. package/dist/NamirasoftLogServerAlarmField.d.ts +14 -0
  8. package/dist/NamirasoftLogServerAlarmField.js +54 -0
  9. package/dist/NamirasoftLogServerAlarmField.js.map +1 -0
  10. package/dist/NamirasoftLogServerAlarmTag.d.ts +14 -0
  11. package/dist/NamirasoftLogServerAlarmTag.js +54 -0
  12. package/dist/NamirasoftLogServerAlarmTag.js.map +1 -0
  13. package/dist/NamirasoftLogServerBase.js +1 -1
  14. package/dist/NamirasoftLogServerBase.js.map +1 -1
  15. package/dist/NamirasoftLogServerLogGroupCategory.d.ts +14 -0
  16. package/dist/NamirasoftLogServerLogGroupCategory.js +54 -0
  17. package/dist/NamirasoftLogServerLogGroupCategory.js.map +1 -0
  18. package/dist/NamirasoftLogServerLogGroupField.d.ts +14 -0
  19. package/dist/NamirasoftLogServerLogGroupField.js +54 -0
  20. package/dist/NamirasoftLogServerLogGroupField.js.map +1 -0
  21. package/dist/NamirasoftLogServerLogGroupTag.d.ts +14 -0
  22. package/dist/NamirasoftLogServerLogGroupTag.js +54 -0
  23. package/dist/NamirasoftLogServerLogGroupTag.js.map +1 -0
  24. package/dist/command/AlarmCategoryCommand.d.ts +4 -0
  25. package/dist/command/AlarmCategoryCommand.js +23 -0
  26. package/dist/command/AlarmCategoryCommand.js.map +1 -0
  27. package/dist/command/AlarmCategoryCreateCommand.d.ts +5 -0
  28. package/dist/command/AlarmCategoryCreateCommand.js +48 -0
  29. package/dist/command/AlarmCategoryCreateCommand.js.map +1 -0
  30. package/dist/command/AlarmCategoryDeleteCommand.d.ts +5 -0
  31. package/dist/command/AlarmCategoryDeleteCommand.js +37 -0
  32. package/dist/command/AlarmCategoryDeleteCommand.js.map +1 -0
  33. package/dist/command/AlarmCategoryGetCommand.d.ts +5 -0
  34. package/dist/command/AlarmCategoryGetCommand.js +37 -0
  35. package/dist/command/AlarmCategoryGetCommand.js.map +1 -0
  36. package/dist/command/AlarmCategoryListCommand.d.ts +5 -0
  37. package/dist/command/AlarmCategoryListCommand.js +37 -0
  38. package/dist/command/AlarmCategoryListCommand.js.map +1 -0
  39. package/dist/command/AlarmCategoryUpdateCommand.d.ts +5 -0
  40. package/dist/command/AlarmCategoryUpdateCommand.js +48 -0
  41. package/dist/command/AlarmCategoryUpdateCommand.js.map +1 -0
  42. package/dist/command/AlarmCreateCommand.js +18 -0
  43. package/dist/command/AlarmCreateCommand.js.map +1 -1
  44. package/dist/command/AlarmFieldCommand.d.ts +4 -0
  45. package/dist/command/AlarmFieldCommand.js +23 -0
  46. package/dist/command/AlarmFieldCommand.js.map +1 -0
  47. package/dist/command/AlarmFieldCreateCommand.d.ts +5 -0
  48. package/dist/command/AlarmFieldCreateCommand.js +66 -0
  49. package/dist/command/AlarmFieldCreateCommand.js.map +1 -0
  50. package/dist/command/AlarmFieldDeleteCommand.d.ts +5 -0
  51. package/dist/command/AlarmFieldDeleteCommand.js +37 -0
  52. package/dist/command/AlarmFieldDeleteCommand.js.map +1 -0
  53. package/dist/command/AlarmFieldGetCommand.d.ts +5 -0
  54. package/dist/command/AlarmFieldGetCommand.js +37 -0
  55. package/dist/command/AlarmFieldGetCommand.js.map +1 -0
  56. package/dist/command/AlarmFieldListCommand.d.ts +5 -0
  57. package/dist/command/AlarmFieldListCommand.js +37 -0
  58. package/dist/command/AlarmFieldListCommand.js.map +1 -0
  59. package/dist/command/AlarmFieldUpdateCommand.d.ts +5 -0
  60. package/dist/command/AlarmFieldUpdateCommand.js +66 -0
  61. package/dist/command/AlarmFieldUpdateCommand.js.map +1 -0
  62. package/dist/command/AlarmTagCommand.d.ts +4 -0
  63. package/dist/command/AlarmTagCommand.js +23 -0
  64. package/dist/command/AlarmTagCommand.js.map +1 -0
  65. package/dist/command/AlarmTagCreateCommand.d.ts +5 -0
  66. package/dist/command/AlarmTagCreateCommand.js +66 -0
  67. package/dist/command/AlarmTagCreateCommand.js.map +1 -0
  68. package/dist/command/AlarmTagDeleteCommand.d.ts +5 -0
  69. package/dist/command/AlarmTagDeleteCommand.js +37 -0
  70. package/dist/command/AlarmTagDeleteCommand.js.map +1 -0
  71. package/dist/command/AlarmTagGetCommand.d.ts +5 -0
  72. package/dist/command/AlarmTagGetCommand.js +37 -0
  73. package/dist/command/AlarmTagGetCommand.js.map +1 -0
  74. package/dist/command/AlarmTagListCommand.d.ts +5 -0
  75. package/dist/command/AlarmTagListCommand.js +37 -0
  76. package/dist/command/AlarmTagListCommand.js.map +1 -0
  77. package/dist/command/AlarmTagUpdateCommand.d.ts +5 -0
  78. package/dist/command/AlarmTagUpdateCommand.js +66 -0
  79. package/dist/command/AlarmTagUpdateCommand.js.map +1 -0
  80. package/dist/command/AlarmUpdateCommand.js +18 -0
  81. package/dist/command/AlarmUpdateCommand.js.map +1 -1
  82. package/dist/command/LogGroupCategoryCommand.d.ts +4 -0
  83. package/dist/command/LogGroupCategoryCommand.js +23 -0
  84. package/dist/command/LogGroupCategoryCommand.js.map +1 -0
  85. package/dist/command/LogGroupCategoryCreateCommand.d.ts +5 -0
  86. package/dist/command/LogGroupCategoryCreateCommand.js +48 -0
  87. package/dist/command/LogGroupCategoryCreateCommand.js.map +1 -0
  88. package/dist/command/LogGroupCategoryDeleteCommand.d.ts +5 -0
  89. package/dist/command/LogGroupCategoryDeleteCommand.js +37 -0
  90. package/dist/command/LogGroupCategoryDeleteCommand.js.map +1 -0
  91. package/dist/command/LogGroupCategoryGetCommand.d.ts +5 -0
  92. package/dist/command/LogGroupCategoryGetCommand.js +37 -0
  93. package/dist/command/LogGroupCategoryGetCommand.js.map +1 -0
  94. package/dist/command/LogGroupCategoryListCommand.d.ts +5 -0
  95. package/dist/command/LogGroupCategoryListCommand.js +37 -0
  96. package/dist/command/LogGroupCategoryListCommand.js.map +1 -0
  97. package/dist/command/LogGroupCategoryUpdateCommand.d.ts +5 -0
  98. package/dist/command/LogGroupCategoryUpdateCommand.js +48 -0
  99. package/dist/command/LogGroupCategoryUpdateCommand.js.map +1 -0
  100. package/dist/command/LogGroupFieldCommand.d.ts +4 -0
  101. package/dist/command/LogGroupFieldCommand.js +23 -0
  102. package/dist/command/LogGroupFieldCommand.js.map +1 -0
  103. package/dist/command/LogGroupFieldCreateCommand.d.ts +5 -0
  104. package/dist/command/LogGroupFieldCreateCommand.js +66 -0
  105. package/dist/command/LogGroupFieldCreateCommand.js.map +1 -0
  106. package/dist/command/LogGroupFieldDeleteCommand.d.ts +5 -0
  107. package/dist/command/LogGroupFieldDeleteCommand.js +37 -0
  108. package/dist/command/LogGroupFieldDeleteCommand.js.map +1 -0
  109. package/dist/command/LogGroupFieldGetCommand.d.ts +5 -0
  110. package/dist/command/LogGroupFieldGetCommand.js +37 -0
  111. package/dist/command/LogGroupFieldGetCommand.js.map +1 -0
  112. package/dist/command/LogGroupFieldListCommand.d.ts +5 -0
  113. package/dist/command/LogGroupFieldListCommand.js +37 -0
  114. package/dist/command/LogGroupFieldListCommand.js.map +1 -0
  115. package/dist/command/LogGroupFieldUpdateCommand.d.ts +5 -0
  116. package/dist/command/LogGroupFieldUpdateCommand.js +66 -0
  117. package/dist/command/LogGroupFieldUpdateCommand.js.map +1 -0
  118. package/dist/command/LogGroupTagCommand.d.ts +4 -0
  119. package/dist/command/LogGroupTagCommand.js +23 -0
  120. package/dist/command/LogGroupTagCommand.js.map +1 -0
  121. package/dist/command/LogGroupTagCreateCommand.d.ts +5 -0
  122. package/dist/command/LogGroupTagCreateCommand.js +66 -0
  123. package/dist/command/LogGroupTagCreateCommand.js.map +1 -0
  124. package/dist/command/LogGroupTagDeleteCommand.d.ts +5 -0
  125. package/dist/command/LogGroupTagDeleteCommand.js +37 -0
  126. package/dist/command/LogGroupTagDeleteCommand.js.map +1 -0
  127. package/dist/command/LogGroupTagGetCommand.d.ts +5 -0
  128. package/dist/command/LogGroupTagGetCommand.js +37 -0
  129. package/dist/command/LogGroupTagGetCommand.js.map +1 -0
  130. package/dist/command/LogGroupTagListCommand.d.ts +5 -0
  131. package/dist/command/LogGroupTagListCommand.js +37 -0
  132. package/dist/command/LogGroupTagListCommand.js.map +1 -0
  133. package/dist/command/LogGroupTagUpdateCommand.d.ts +5 -0
  134. package/dist/command/LogGroupTagUpdateCommand.js +66 -0
  135. package/dist/command/LogGroupTagUpdateCommand.js.map +1 -0
  136. package/dist/command/cli.js +12 -0
  137. package/dist/command/cli.js.map +1 -1
  138. package/dist/index.d.ts +51 -0
  139. package/dist/index.js +51 -0
  140. package/dist/index.js.map +1 -1
  141. package/dist/row/AlarmCategoryRow.d.ts +6 -0
  142. package/dist/row/AlarmCategoryRow.js +3 -0
  143. package/dist/row/AlarmCategoryRow.js.map +1 -0
  144. package/dist/row/AlarmFieldRow.d.ts +8 -0
  145. package/dist/row/AlarmFieldRow.js +3 -0
  146. package/dist/row/AlarmFieldRow.js.map +1 -0
  147. package/dist/row/AlarmInputRow.d.ts +2 -0
  148. package/dist/row/AlarmRow.d.ts +2 -0
  149. package/dist/row/AlarmTagRow.d.ts +8 -0
  150. package/dist/row/AlarmTagRow.js +3 -0
  151. package/dist/row/AlarmTagRow.js.map +1 -0
  152. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  153. package/dist/row/EntityCategoryInputRow.js +3 -0
  154. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  155. package/dist/row/EntityFieldInputRow.d.ts +5 -0
  156. package/dist/row/EntityFieldInputRow.js +3 -0
  157. package/dist/row/EntityFieldInputRow.js.map +1 -0
  158. package/dist/row/EntityTagInputRow.d.ts +5 -0
  159. package/dist/row/EntityTagInputRow.js +3 -0
  160. package/dist/row/EntityTagInputRow.js.map +1 -0
  161. package/dist/row/LogGroupCategoryRow.d.ts +6 -0
  162. package/dist/row/LogGroupCategoryRow.js +3 -0
  163. package/dist/row/LogGroupCategoryRow.js.map +1 -0
  164. package/dist/row/LogGroupFieldRow.d.ts +8 -0
  165. package/dist/row/LogGroupFieldRow.js +3 -0
  166. package/dist/row/LogGroupFieldRow.js.map +1 -0
  167. package/dist/row/LogGroupTagRow.d.ts +8 -0
  168. package/dist/row/LogGroupTagRow.js +3 -0
  169. package/dist/row/LogGroupTagRow.js.map +1 -0
  170. package/package.json +4 -4
  171. package/src/NamirasoftLogServer.ts +18 -0
  172. package/src/NamirasoftLogServerAlarmCategory.ts +58 -0
  173. package/src/NamirasoftLogServerAlarmField.ts +58 -0
  174. package/src/NamirasoftLogServerAlarmTag.ts +58 -0
  175. package/src/NamirasoftLogServerBase.ts +1 -1
  176. package/src/NamirasoftLogServerLogGroupCategory.ts +58 -0
  177. package/src/NamirasoftLogServerLogGroupField.ts +58 -0
  178. package/src/NamirasoftLogServerLogGroupTag.ts +58 -0
  179. package/src/command/AlarmCategoryCommand.ts +40 -0
  180. package/src/command/AlarmCategoryCreateCommand.ts +55 -0
  181. package/src/command/AlarmCategoryDeleteCommand.ts +44 -0
  182. package/src/command/AlarmCategoryGetCommand.ts +44 -0
  183. package/src/command/AlarmCategoryListCommand.ts +44 -0
  184. package/src/command/AlarmCategoryUpdateCommand.ts +55 -0
  185. package/src/command/AlarmCreateCommand.ts +18 -0
  186. package/src/command/AlarmFieldCommand.ts +40 -0
  187. package/src/command/AlarmFieldCreateCommand.ts +73 -0
  188. package/src/command/AlarmFieldDeleteCommand.ts +44 -0
  189. package/src/command/AlarmFieldGetCommand.ts +44 -0
  190. package/src/command/AlarmFieldListCommand.ts +44 -0
  191. package/src/command/AlarmFieldUpdateCommand.ts +73 -0
  192. package/src/command/AlarmTagCommand.ts +40 -0
  193. package/src/command/AlarmTagCreateCommand.ts +73 -0
  194. package/src/command/AlarmTagDeleteCommand.ts +44 -0
  195. package/src/command/AlarmTagGetCommand.ts +44 -0
  196. package/src/command/AlarmTagListCommand.ts +44 -0
  197. package/src/command/AlarmTagUpdateCommand.ts +73 -0
  198. package/src/command/AlarmUpdateCommand.ts +18 -0
  199. package/src/command/LogGroupCategoryCommand.ts +40 -0
  200. package/src/command/LogGroupCategoryCreateCommand.ts +55 -0
  201. package/src/command/LogGroupCategoryDeleteCommand.ts +44 -0
  202. package/src/command/LogGroupCategoryGetCommand.ts +44 -0
  203. package/src/command/LogGroupCategoryListCommand.ts +44 -0
  204. package/src/command/LogGroupCategoryUpdateCommand.ts +55 -0
  205. package/src/command/LogGroupFieldCommand.ts +40 -0
  206. package/src/command/LogGroupFieldCreateCommand.ts +73 -0
  207. package/src/command/LogGroupFieldDeleteCommand.ts +44 -0
  208. package/src/command/LogGroupFieldGetCommand.ts +44 -0
  209. package/src/command/LogGroupFieldListCommand.ts +44 -0
  210. package/src/command/LogGroupFieldUpdateCommand.ts +73 -0
  211. package/src/command/LogGroupTagCommand.ts +40 -0
  212. package/src/command/LogGroupTagCreateCommand.ts +73 -0
  213. package/src/command/LogGroupTagDeleteCommand.ts +44 -0
  214. package/src/command/LogGroupTagGetCommand.ts +44 -0
  215. package/src/command/LogGroupTagListCommand.ts +44 -0
  216. package/src/command/LogGroupTagUpdateCommand.ts +73 -0
  217. package/src/command/cli.ts +12 -0
  218. package/src/index.ts +51 -0
  219. package/src/row/AlarmCategoryRow.ts +27 -0
  220. package/src/row/AlarmFieldRow.ts +29 -0
  221. package/src/row/AlarmInputRow.ts +2 -0
  222. package/src/row/AlarmRow.ts +2 -0
  223. package/src/row/AlarmTagRow.ts +29 -0
  224. package/src/row/EntityCategoryInputRow.ts +24 -0
  225. package/src/row/EntityFieldInputRow.ts +26 -0
  226. package/src/row/EntityTagInputRow.ts +26 -0
  227. package/src/row/LogGroupCategoryRow.ts +27 -0
  228. package/src/row/LogGroupFieldRow.ts +29 -0
  229. package/src/row/LogGroupTagRow.ts +29 -0
@@ -0,0 +1,73 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupFieldUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "field_id",
33
+ short: "",
34
+ description: "Provides the value of 'field_id' in body",
35
+ optional: false,
36
+ args: ["field_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: false,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "description",
49
+ short: "",
50
+ description: "Provides the value of 'description' in body",
51
+ optional: true,
52
+ args: ["description"],
53
+ defaults: [""]
54
+ }
55
+ ]);
56
+ }
57
+ override async exec()
58
+ {
59
+ let token = this.app.storage.getNSAToken();
60
+ if (token == null)
61
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
62
+ let storage = new IStorageMemory();
63
+ let manager = new TokenManager(storage, () => { });
64
+ manager.setValue(token, false);
65
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
66
+ let ans = await server.loggroupfield.Update(this.arg_values[0], {
67
+ field_id: this.option_values.field_id,
68
+ value: this.option_values.value,
69
+ description: this.option_values.description
70
+ });
71
+ this.app.logger.success(JSON.stringify(ans));
72
+ }
73
+ };
@@ -0,0 +1,40 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { LogGroupTagCreateCommand } from "./LogGroupTagCreateCommand";
23
+ import { LogGroupTagDeleteCommand } from "./LogGroupTagDeleteCommand";
24
+ import { LogGroupTagGetCommand } from "./LogGroupTagGetCommand";
25
+ import { LogGroupTagListCommand } from "./LogGroupTagListCommand";
26
+ import { LogGroupTagUpdateCommand } from "./LogGroupTagUpdateCommand";
27
+
28
+ export class LogGroupTagCommand extends BaseNavigatorCommand
29
+ {
30
+ constructor(argv: string[])
31
+ {
32
+ super(argv, {
33
+ "create": LogGroupTagCreateCommand,
34
+ "delete": LogGroupTagDeleteCommand,
35
+ "get": LogGroupTagGetCommand,
36
+ "list": LogGroupTagListCommand,
37
+ "update": LogGroupTagUpdateCommand,
38
+ });
39
+ }
40
+ };
@@ -0,0 +1,73 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupTagCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: false,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: false,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "description",
49
+ short: "",
50
+ description: "Provides the value of 'description' in body",
51
+ optional: true,
52
+ args: ["description"],
53
+ defaults: [""]
54
+ }
55
+ ]);
56
+ }
57
+ override async exec()
58
+ {
59
+ let token = this.app.storage.getNSAToken();
60
+ if (token == null)
61
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
62
+ let storage = new IStorageMemory();
63
+ let manager = new TokenManager(storage, () => { });
64
+ manager.setValue(token, false);
65
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
66
+ let ans = await server.loggrouptag.Create({
67
+ name: this.option_values.name,
68
+ value: this.option_values.value,
69
+ description: this.option_values.description
70
+ });
71
+ this.app.logger.success(JSON.stringify(ans));
72
+ }
73
+ };
@@ -0,0 +1,44 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupTagDeleteCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.loggrouptag.Delete(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupTagGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.loggrouptag.Get(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupTagListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.loggrouptag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,73 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftLogServer } from "../NamirasoftLogServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class LogGroupTagUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: false,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: false,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "description",
49
+ short: "",
50
+ description: "Provides the value of 'description' in body",
51
+ optional: true,
52
+ args: ["description"],
53
+ defaults: [""]
54
+ }
55
+ ]);
56
+ }
57
+ override async exec()
58
+ {
59
+ let token = this.app.storage.getNSAToken();
60
+ if (token == null)
61
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
62
+ let storage = new IStorageMemory();
63
+ let manager = new TokenManager(storage, () => { });
64
+ manager.setValue(token, false);
65
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
66
+ let ans = await server.loggrouptag.Update(this.arg_values[0], {
67
+ name: this.option_values.name,
68
+ value: this.option_values.value,
69
+ description: this.option_values.description
70
+ });
71
+ this.app.logger.success(JSON.stringify(ans));
72
+ }
73
+ };
@@ -20,17 +20,29 @@
20
20
  /****************************************************************/
21
21
 
22
22
  import { AccountCommand } from "namirasoft-account";
23
+ import { AlarmCategoryCommand } from "./AlarmCategoryCommand";
23
24
  import { AlarmCommand } from "./AlarmCommand";
25
+ import { AlarmFieldCommand } from "./AlarmFieldCommand";
26
+ import { AlarmTagCommand } from "./AlarmTagCommand";
24
27
  import { Application, BaseStorage } from "namirasoft-node-cli";
25
28
  import { HealthzCommand } from "./HealthzCommand";
26
29
  import { LogCommand } from "./LogCommand";
30
+ import { LogGroupCategoryCommand } from "./LogGroupCategoryCommand";
27
31
  import { LogGroupCommand } from "./LogGroupCommand";
32
+ import { LogGroupFieldCommand } from "./LogGroupFieldCommand";
33
+ import { LogGroupTagCommand } from "./LogGroupTagCommand";
28
34
 
29
35
  let app = new Application("ns-log", new BaseStorage(),
30
36
  {
31
37
  "healthz": HealthzCommand,
38
+ "loggroupcategory": LogGroupCategoryCommand,
39
+ "loggroupfield": LogGroupFieldCommand,
40
+ "loggrouptag": LogGroupTagCommand,
32
41
  "log": LogCommand,
33
42
  "loggroup": LogGroupCommand,
43
+ "alarmcategory": AlarmCategoryCommand,
44
+ "alarmfield": AlarmFieldCommand,
45
+ "alarmtag": AlarmTagCommand,
34
46
  "alarm": AlarmCommand,
35
47
  "account": AccountCommand
36
48
  });
package/src/index.ts CHANGED
@@ -29,34 +29,85 @@ export * from "./LogLevel";
29
29
  export * from "./Logger";
30
30
  export * from "./NamirasoftLogServer";
31
31
  export * from "./NamirasoftLogServerAlarm";
32
+ export * from "./NamirasoftLogServerAlarmCategory";
33
+ export * from "./NamirasoftLogServerAlarmField";
34
+ export * from "./NamirasoftLogServerAlarmTag";
32
35
  export * from "./NamirasoftLogServerBase";
33
36
  export * from "./NamirasoftLogServerHealthz";
34
37
  export * from "./NamirasoftLogServerLog";
35
38
  export * from "./NamirasoftLogServerLogGroup";
39
+ export * from "./NamirasoftLogServerLogGroupCategory";
40
+ export * from "./NamirasoftLogServerLogGroupField";
41
+ export * from "./NamirasoftLogServerLogGroupTag";
36
42
  export * from "./StreamConsole";
37
43
  export * from "./StreamFile";
38
44
  export * from "./StreamNamirasoftLog";
45
+ export * from "./command/AlarmCategoryCommand";
46
+ export * from "./command/AlarmCategoryCreateCommand";
47
+ export * from "./command/AlarmCategoryDeleteCommand";
48
+ export * from "./command/AlarmCategoryGetCommand";
49
+ export * from "./command/AlarmCategoryListCommand";
50
+ export * from "./command/AlarmCategoryUpdateCommand";
39
51
  export * from "./command/AlarmCommand";
40
52
  export * from "./command/AlarmCreateCommand";
41
53
  export * from "./command/AlarmDeleteCommand";
54
+ export * from "./command/AlarmFieldCommand";
55
+ export * from "./command/AlarmFieldCreateCommand";
56
+ export * from "./command/AlarmFieldDeleteCommand";
57
+ export * from "./command/AlarmFieldGetCommand";
58
+ export * from "./command/AlarmFieldListCommand";
59
+ export * from "./command/AlarmFieldUpdateCommand";
42
60
  export * from "./command/AlarmGetCommand";
43
61
  export * from "./command/AlarmListCommand";
62
+ export * from "./command/AlarmTagCommand";
63
+ export * from "./command/AlarmTagCreateCommand";
64
+ export * from "./command/AlarmTagDeleteCommand";
65
+ export * from "./command/AlarmTagGetCommand";
66
+ export * from "./command/AlarmTagListCommand";
67
+ export * from "./command/AlarmTagUpdateCommand";
44
68
  export * from "./command/AlarmUpdateCommand";
45
69
  export * from "./command/HealthzCommand";
46
70
  export * from "./command/HealthzGetCommand";
47
71
  export * from "./command/LogCommand";
48
72
  export * from "./command/LogCreateCommand";
49
73
  export * from "./command/LogGetCommand";
74
+ export * from "./command/LogGroupCategoryCommand";
75
+ export * from "./command/LogGroupCategoryCreateCommand";
76
+ export * from "./command/LogGroupCategoryDeleteCommand";
77
+ export * from "./command/LogGroupCategoryGetCommand";
78
+ export * from "./command/LogGroupCategoryListCommand";
79
+ export * from "./command/LogGroupCategoryUpdateCommand";
50
80
  export * from "./command/LogGroupCommand";
51
81
  export * from "./command/LogGroupCreateCommand";
52
82
  export * from "./command/LogGroupDeleteCommand";
83
+ export * from "./command/LogGroupFieldCommand";
84
+ export * from "./command/LogGroupFieldCreateCommand";
85
+ export * from "./command/LogGroupFieldDeleteCommand";
86
+ export * from "./command/LogGroupFieldGetCommand";
87
+ export * from "./command/LogGroupFieldListCommand";
88
+ export * from "./command/LogGroupFieldUpdateCommand";
53
89
  export * from "./command/LogGroupGetCommand";
54
90
  export * from "./command/LogGroupListCommand";
91
+ export * from "./command/LogGroupTagCommand";
92
+ export * from "./command/LogGroupTagCreateCommand";
93
+ export * from "./command/LogGroupTagDeleteCommand";
94
+ export * from "./command/LogGroupTagGetCommand";
95
+ export * from "./command/LogGroupTagListCommand";
96
+ export * from "./command/LogGroupTagUpdateCommand";
55
97
  export * from "./command/LogGroupUpdateCommand";
56
98
  export * from "./command/LogListCommand";
99
+ export * from "./row/AlarmCategoryRow";
100
+ export * from "./row/AlarmFieldRow";
57
101
  export * from "./row/AlarmInputRow";
58
102
  export * from "./row/AlarmRow";
103
+ export * from "./row/AlarmTagRow";
104
+ export * from "./row/EntityCategoryInputRow";
105
+ export * from "./row/EntityFieldInputRow";
106
+ export * from "./row/EntityTagInputRow";
59
107
  export * from "./row/LogCreateRow";
108
+ export * from "./row/LogGroupCategoryRow";
109
+ export * from "./row/LogGroupFieldRow";
60
110
  export * from "./row/LogGroupInputRow";
61
111
  export * from "./row/LogGroupRow";
112
+ export * from "./row/LogGroupTagRow";
62
113
  export * from "./row/LogRow";
@@ -0,0 +1,27 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type AlarmCategoryRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ category_id: string;
27
+ }
@@ -0,0 +1,29 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type AlarmFieldRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ field_id: string;
27
+ value: string;
28
+ description: (string | null);
29
+ }
@@ -20,6 +20,8 @@
20
20
 
21
21
  export type AlarmInputRow =
22
22
  {
23
+ name: (string | null);
24
+ description: (string | null);
23
25
  filters: (string | null);
24
26
  notification_sender_topic_id: string;
25
27
  }
@@ -22,6 +22,8 @@ export type AlarmRow =
22
22
  {
23
23
  id: number;
24
24
  user_id: string;
25
+ name: (string | null);
26
+ description: (string | null);
25
27
  filters: (string | null);
26
28
  notification_sender_topic_id: string;
27
29
  }
@@ -0,0 +1,29 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type AlarmTagRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ name: string;
27
+ value: string;
28
+ description: (string | null);
29
+ }
@@ -0,0 +1,24 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type EntityCategoryInputRow =
22
+ {
23
+ category_id: string;
24
+ }