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 AlarmTagUpdateCommand 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.alarmtag.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
+ };
@@ -28,6 +28,22 @@ export class AlarmUpdateCommand extends BaseFinalCommand
28
28
  constructor(argv: string[])
29
29
  {
30
30
  super(argv, ["id"], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: true,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "description",
41
+ short: "",
42
+ description: "Provides the value of 'description' in body",
43
+ optional: true,
44
+ args: ["description"],
45
+ defaults: [""]
46
+ },
31
47
  {
32
48
  name: "filters",
33
49
  short: "",
@@ -56,6 +72,8 @@ export class AlarmUpdateCommand extends BaseFinalCommand
56
72
  manager.setValue(token, false);
57
73
  let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
58
74
  let ans = await server.alarm.Update(this.arg_values[0], {
75
+ name: this.option_values.name,
76
+ description: this.option_values.description,
59
77
  filters: this.option_values.filters,
60
78
  notification_sender_topic_id: this.option_values.notification_sender_topic_id
61
79
  });
@@ -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 { LogGroupCategoryCreateCommand } from "./LogGroupCategoryCreateCommand";
23
+ import { LogGroupCategoryDeleteCommand } from "./LogGroupCategoryDeleteCommand";
24
+ import { LogGroupCategoryGetCommand } from "./LogGroupCategoryGetCommand";
25
+ import { LogGroupCategoryListCommand } from "./LogGroupCategoryListCommand";
26
+ import { LogGroupCategoryUpdateCommand } from "./LogGroupCategoryUpdateCommand";
27
+
28
+ export class LogGroupCategoryCommand extends BaseNavigatorCommand
29
+ {
30
+ constructor(argv: string[])
31
+ {
32
+ super(argv, {
33
+ "create": LogGroupCategoryCreateCommand,
34
+ "delete": LogGroupCategoryDeleteCommand,
35
+ "get": LogGroupCategoryGetCommand,
36
+ "list": LogGroupCategoryListCommand,
37
+ "update": LogGroupCategoryUpdateCommand,
38
+ });
39
+ }
40
+ };
@@ -0,0 +1,55 @@
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 LogGroupCategoryCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], [
31
+ {
32
+ name: "category_id",
33
+ short: "",
34
+ description: "Provides the value of 'category_id' in body",
35
+ optional: false,
36
+ args: ["category_id"],
37
+ defaults: [""]
38
+ }
39
+ ]);
40
+ }
41
+ override async exec()
42
+ {
43
+ let token = this.app.storage.getNSAToken();
44
+ if (token == null)
45
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
46
+ let storage = new IStorageMemory();
47
+ let manager = new TokenManager(storage, () => { });
48
+ manager.setValue(token, false);
49
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
50
+ let ans = await server.loggroupcategory.Create({
51
+ category_id: this.option_values.category_id
52
+ });
53
+ this.app.logger.success(JSON.stringify(ans));
54
+ }
55
+ };
@@ -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 LogGroupCategoryDeleteCommand 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.loggroupcategory.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 LogGroupCategoryGetCommand 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.loggroupcategory.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 LogGroupCategoryListCommand 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.loggroupcategory.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,55 @@
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 LogGroupCategoryUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "category_id",
33
+ short: "",
34
+ description: "Provides the value of 'category_id' in body",
35
+ optional: false,
36
+ args: ["category_id"],
37
+ defaults: [""]
38
+ }
39
+ ]);
40
+ }
41
+ override async exec()
42
+ {
43
+ let token = this.app.storage.getNSAToken();
44
+ if (token == null)
45
+ throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
46
+ let storage = new IStorageMemory();
47
+ let manager = new TokenManager(storage, () => { });
48
+ manager.setValue(token, false);
49
+ let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
50
+ let ans = await server.loggroupcategory.Update(this.arg_values[0], {
51
+ category_id: this.option_values.category_id
52
+ });
53
+ this.app.logger.success(JSON.stringify(ans));
54
+ }
55
+ };
@@ -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 { LogGroupFieldCreateCommand } from "./LogGroupFieldCreateCommand";
23
+ import { LogGroupFieldDeleteCommand } from "./LogGroupFieldDeleteCommand";
24
+ import { LogGroupFieldGetCommand } from "./LogGroupFieldGetCommand";
25
+ import { LogGroupFieldListCommand } from "./LogGroupFieldListCommand";
26
+ import { LogGroupFieldUpdateCommand } from "./LogGroupFieldUpdateCommand";
27
+
28
+ export class LogGroupFieldCommand extends BaseNavigatorCommand
29
+ {
30
+ constructor(argv: string[])
31
+ {
32
+ super(argv, {
33
+ "create": LogGroupFieldCreateCommand,
34
+ "delete": LogGroupFieldDeleteCommand,
35
+ "get": LogGroupFieldGetCommand,
36
+ "list": LogGroupFieldListCommand,
37
+ "update": LogGroupFieldUpdateCommand,
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 LogGroupFieldCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], [
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.Create({
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,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 LogGroupFieldDeleteCommand 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.loggroupfield.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 LogGroupFieldGetCommand 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.loggroupfield.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 LogGroupFieldListCommand 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.loggroupfield.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };