namirasoft-expert 1.4.2

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 (259) hide show
  1. package/dist/NamirasoftExpertServer.d.ts +23 -0
  2. package/dist/NamirasoftExpertServer.js +30 -0
  3. package/dist/NamirasoftExpertServer.js.map +1 -0
  4. package/dist/NamirasoftExpertServerAgent.d.ts +18 -0
  5. package/dist/NamirasoftExpertServerAgent.js +64 -0
  6. package/dist/NamirasoftExpertServerAgent.js.map +1 -0
  7. package/dist/NamirasoftExpertServerAgentCategory.d.ts +17 -0
  8. package/dist/NamirasoftExpertServerAgentCategory.js +56 -0
  9. package/dist/NamirasoftExpertServerAgentCategory.js.map +1 -0
  10. package/dist/NamirasoftExpertServerAgentField.d.ts +18 -0
  11. package/dist/NamirasoftExpertServerAgentField.js +64 -0
  12. package/dist/NamirasoftExpertServerAgentField.js.map +1 -0
  13. package/dist/NamirasoftExpertServerAgentTag.d.ts +18 -0
  14. package/dist/NamirasoftExpertServerAgentTag.js +64 -0
  15. package/dist/NamirasoftExpertServerAgentTag.js.map +1 -0
  16. package/dist/NamirasoftExpertServerBase.d.ts +5 -0
  17. package/dist/NamirasoftExpertServerBase.js +11 -0
  18. package/dist/NamirasoftExpertServerBase.js.map +1 -0
  19. package/dist/NamirasoftExpertServerChat.d.ts +14 -0
  20. package/dist/NamirasoftExpertServerChat.js +41 -0
  21. package/dist/NamirasoftExpertServerChat.js.map +1 -0
  22. package/dist/NamirasoftExpertServerHealth.d.ts +8 -0
  23. package/dist/NamirasoftExpertServerHealth.js +35 -0
  24. package/dist/NamirasoftExpertServerHealth.js.map +1 -0
  25. package/dist/NamirasoftExpertServerHealthz.d.ts +7 -0
  26. package/dist/NamirasoftExpertServerHealthz.js +28 -0
  27. package/dist/NamirasoftExpertServerHealthz.js.map +1 -0
  28. package/dist/NamirasoftExpertServerMetrics.d.ts +7 -0
  29. package/dist/NamirasoftExpertServerMetrics.js +28 -0
  30. package/dist/NamirasoftExpertServerMetrics.js.map +1 -0
  31. package/dist/NamirasoftExpertServerValue.d.ts +7 -0
  32. package/dist/NamirasoftExpertServerValue.js +29 -0
  33. package/dist/NamirasoftExpertServerValue.js.map +1 -0
  34. package/dist/command/AgentCategoryCommand.d.ts +4 -0
  35. package/dist/command/AgentCategoryCommand.js +21 -0
  36. package/dist/command/AgentCategoryCommand.js.map +1 -0
  37. package/dist/command/AgentCategoryCreateCommand.d.ts +5 -0
  38. package/dist/command/AgentCategoryCreateCommand.js +58 -0
  39. package/dist/command/AgentCategoryCreateCommand.js.map +1 -0
  40. package/dist/command/AgentCategoryDeleteCommand.d.ts +5 -0
  41. package/dist/command/AgentCategoryDeleteCommand.js +38 -0
  42. package/dist/command/AgentCategoryDeleteCommand.js.map +1 -0
  43. package/dist/command/AgentCategoryGetCommand.d.ts +5 -0
  44. package/dist/command/AgentCategoryGetCommand.js +38 -0
  45. package/dist/command/AgentCategoryGetCommand.js.map +1 -0
  46. package/dist/command/AgentCategoryListCommand.d.ts +5 -0
  47. package/dist/command/AgentCategoryListCommand.js +38 -0
  48. package/dist/command/AgentCategoryListCommand.js.map +1 -0
  49. package/dist/command/AgentCommand.d.ts +4 -0
  50. package/dist/command/AgentCommand.js +23 -0
  51. package/dist/command/AgentCommand.js.map +1 -0
  52. package/dist/command/AgentCreateCommand.d.ts +5 -0
  53. package/dist/command/AgentCreateCommand.js +148 -0
  54. package/dist/command/AgentCreateCommand.js.map +1 -0
  55. package/dist/command/AgentDeleteCommand.d.ts +5 -0
  56. package/dist/command/AgentDeleteCommand.js +38 -0
  57. package/dist/command/AgentDeleteCommand.js.map +1 -0
  58. package/dist/command/AgentFieldCommand.d.ts +4 -0
  59. package/dist/command/AgentFieldCommand.js +23 -0
  60. package/dist/command/AgentFieldCommand.js.map +1 -0
  61. package/dist/command/AgentFieldCreateCommand.d.ts +5 -0
  62. package/dist/command/AgentFieldCreateCommand.js +67 -0
  63. package/dist/command/AgentFieldCreateCommand.js.map +1 -0
  64. package/dist/command/AgentFieldDeleteCommand.d.ts +5 -0
  65. package/dist/command/AgentFieldDeleteCommand.js +38 -0
  66. package/dist/command/AgentFieldDeleteCommand.js.map +1 -0
  67. package/dist/command/AgentFieldGetCommand.d.ts +5 -0
  68. package/dist/command/AgentFieldGetCommand.js +38 -0
  69. package/dist/command/AgentFieldGetCommand.js.map +1 -0
  70. package/dist/command/AgentFieldListCommand.d.ts +5 -0
  71. package/dist/command/AgentFieldListCommand.js +38 -0
  72. package/dist/command/AgentFieldListCommand.js.map +1 -0
  73. package/dist/command/AgentFieldUpdateCommand.d.ts +5 -0
  74. package/dist/command/AgentFieldUpdateCommand.js +67 -0
  75. package/dist/command/AgentFieldUpdateCommand.js.map +1 -0
  76. package/dist/command/AgentGetCommand.d.ts +5 -0
  77. package/dist/command/AgentGetCommand.js +38 -0
  78. package/dist/command/AgentGetCommand.js.map +1 -0
  79. package/dist/command/AgentListCommand.d.ts +5 -0
  80. package/dist/command/AgentListCommand.js +38 -0
  81. package/dist/command/AgentListCommand.js.map +1 -0
  82. package/dist/command/AgentTagCommand.d.ts +4 -0
  83. package/dist/command/AgentTagCommand.js +23 -0
  84. package/dist/command/AgentTagCommand.js.map +1 -0
  85. package/dist/command/AgentTagCreateCommand.d.ts +5 -0
  86. package/dist/command/AgentTagCreateCommand.js +67 -0
  87. package/dist/command/AgentTagCreateCommand.js.map +1 -0
  88. package/dist/command/AgentTagDeleteCommand.d.ts +5 -0
  89. package/dist/command/AgentTagDeleteCommand.js +38 -0
  90. package/dist/command/AgentTagDeleteCommand.js.map +1 -0
  91. package/dist/command/AgentTagGetCommand.d.ts +5 -0
  92. package/dist/command/AgentTagGetCommand.js +38 -0
  93. package/dist/command/AgentTagGetCommand.js.map +1 -0
  94. package/dist/command/AgentTagListCommand.d.ts +5 -0
  95. package/dist/command/AgentTagListCommand.js +38 -0
  96. package/dist/command/AgentTagListCommand.js.map +1 -0
  97. package/dist/command/AgentTagUpdateCommand.d.ts +5 -0
  98. package/dist/command/AgentTagUpdateCommand.js +67 -0
  99. package/dist/command/AgentTagUpdateCommand.js.map +1 -0
  100. package/dist/command/AgentUpdateCommand.d.ts +5 -0
  101. package/dist/command/AgentUpdateCommand.js +148 -0
  102. package/dist/command/AgentUpdateCommand.js.map +1 -0
  103. package/dist/command/ChatCommand.d.ts +4 -0
  104. package/dist/command/ChatCommand.js +17 -0
  105. package/dist/command/ChatCommand.js.map +1 -0
  106. package/dist/command/ChatGetCommand.d.ts +5 -0
  107. package/dist/command/ChatGetCommand.js +38 -0
  108. package/dist/command/ChatGetCommand.js.map +1 -0
  109. package/dist/command/ChatListCommand.d.ts +5 -0
  110. package/dist/command/ChatListCommand.js +38 -0
  111. package/dist/command/ChatListCommand.js.map +1 -0
  112. package/dist/command/HealthCommand.d.ts +4 -0
  113. package/dist/command/HealthCommand.js +17 -0
  114. package/dist/command/HealthCommand.js.map +1 -0
  115. package/dist/command/HealthLivenessCommand.d.ts +5 -0
  116. package/dist/command/HealthLivenessCommand.js +38 -0
  117. package/dist/command/HealthLivenessCommand.js.map +1 -0
  118. package/dist/command/HealthReadinessCommand.d.ts +5 -0
  119. package/dist/command/HealthReadinessCommand.js +38 -0
  120. package/dist/command/HealthReadinessCommand.js.map +1 -0
  121. package/dist/command/HealthzCommand.d.ts +4 -0
  122. package/dist/command/HealthzCommand.js +15 -0
  123. package/dist/command/HealthzCommand.js.map +1 -0
  124. package/dist/command/HealthzGetCommand.d.ts +5 -0
  125. package/dist/command/HealthzGetCommand.js +38 -0
  126. package/dist/command/HealthzGetCommand.js.map +1 -0
  127. package/dist/command/MetricsCommand.d.ts +4 -0
  128. package/dist/command/MetricsCommand.js +15 -0
  129. package/dist/command/MetricsCommand.js.map +1 -0
  130. package/dist/command/MetricsGetCommand.d.ts +5 -0
  131. package/dist/command/MetricsGetCommand.js +38 -0
  132. package/dist/command/MetricsGetCommand.js.map +1 -0
  133. package/dist/command/ValueCommand.d.ts +4 -0
  134. package/dist/command/ValueCommand.js +15 -0
  135. package/dist/command/ValueCommand.js.map +1 -0
  136. package/dist/command/ValueListCommand.d.ts +5 -0
  137. package/dist/command/ValueListCommand.js +38 -0
  138. package/dist/command/ValueListCommand.js.map +1 -0
  139. package/dist/command/cli.d.ts +2 -0
  140. package/dist/command/cli.js +30 -0
  141. package/dist/command/cli.js.map +1 -0
  142. package/dist/enum/ChatType.d.ts +6 -0
  143. package/dist/enum/ChatType.js +11 -0
  144. package/dist/enum/ChatType.js.map +1 -0
  145. package/dist/index.d.ts +62 -0
  146. package/dist/index.js +79 -0
  147. package/dist/index.js.map +1 -0
  148. package/dist/meta/AgentCategoryMetaTable.d.ts +15 -0
  149. package/dist/meta/AgentCategoryMetaTable.js +39 -0
  150. package/dist/meta/AgentCategoryMetaTable.js.map +1 -0
  151. package/dist/meta/AgentFieldMetaTable.d.ts +16 -0
  152. package/dist/meta/AgentFieldMetaTable.js +39 -0
  153. package/dist/meta/AgentFieldMetaTable.js.map +1 -0
  154. package/dist/meta/AgentMetaTable.d.ts +25 -0
  155. package/dist/meta/AgentMetaTable.js +48 -0
  156. package/dist/meta/AgentMetaTable.js.map +1 -0
  157. package/dist/meta/AgentTagMetaTable.d.ts +16 -0
  158. package/dist/meta/AgentTagMetaTable.js +39 -0
  159. package/dist/meta/AgentTagMetaTable.js.map +1 -0
  160. package/dist/meta/ChatMetaTable.d.ts +19 -0
  161. package/dist/meta/ChatMetaTable.js +44 -0
  162. package/dist/meta/ChatMetaTable.js.map +1 -0
  163. package/dist/meta/NamirasoftExpertMetaDatabase.d.ts +21 -0
  164. package/dist/meta/NamirasoftExpertMetaDatabase.js +35 -0
  165. package/dist/meta/NamirasoftExpertMetaDatabase.js.map +1 -0
  166. package/dist/row/AgentCategoryRow.d.ts +8 -0
  167. package/dist/row/AgentCategoryRow.js +3 -0
  168. package/dist/row/AgentCategoryRow.js.map +1 -0
  169. package/dist/row/AgentFieldRow.d.ts +9 -0
  170. package/dist/row/AgentFieldRow.js +3 -0
  171. package/dist/row/AgentFieldRow.js.map +1 -0
  172. package/dist/row/AgentInputRow.d.ts +14 -0
  173. package/dist/row/AgentInputRow.js +3 -0
  174. package/dist/row/AgentInputRow.js.map +1 -0
  175. package/dist/row/AgentRow.d.ts +18 -0
  176. package/dist/row/AgentRow.js +3 -0
  177. package/dist/row/AgentRow.js.map +1 -0
  178. package/dist/row/AgentTagRow.d.ts +9 -0
  179. package/dist/row/AgentTagRow.js +3 -0
  180. package/dist/row/AgentTagRow.js.map +1 -0
  181. package/dist/row/ChatRow.d.ts +13 -0
  182. package/dist/row/ChatRow.js +3 -0
  183. package/dist/row/ChatRow.js.map +1 -0
  184. package/dist/row/EntityCategoryInputRow.d.ts +4 -0
  185. package/dist/row/EntityCategoryInputRow.js +3 -0
  186. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  187. package/dist/row/EntityFieldInputRow.d.ts +5 -0
  188. package/dist/row/EntityFieldInputRow.js +3 -0
  189. package/dist/row/EntityFieldInputRow.js.map +1 -0
  190. package/dist/row/EntityTagInputRow.d.ts +5 -0
  191. package/dist/row/EntityTagInputRow.js +3 -0
  192. package/dist/row/EntityTagInputRow.js.map +1 -0
  193. package/logo.png +0 -0
  194. package/package.json +28 -0
  195. package/src/NamirasoftExpertServer.ts +57 -0
  196. package/src/NamirasoftExpertServerAgent.ts +71 -0
  197. package/src/NamirasoftExpertServerAgentCategory.ts +64 -0
  198. package/src/NamirasoftExpertServerAgentField.ts +71 -0
  199. package/src/NamirasoftExpertServerAgentTag.ts +71 -0
  200. package/src/NamirasoftExpertServerBase.ts +30 -0
  201. package/src/NamirasoftExpertServerChat.ts +50 -0
  202. package/src/NamirasoftExpertServerHealth.ts +43 -0
  203. package/src/NamirasoftExpertServerHealthz.ts +37 -0
  204. package/src/NamirasoftExpertServerMetrics.ts +37 -0
  205. package/src/NamirasoftExpertServerValue.ts +38 -0
  206. package/src/command/AgentCategoryCommand.ts +38 -0
  207. package/src/command/AgentCategoryCreateCommand.ts +65 -0
  208. package/src/command/AgentCategoryDeleteCommand.ts +45 -0
  209. package/src/command/AgentCategoryGetCommand.ts +45 -0
  210. package/src/command/AgentCategoryListCommand.ts +45 -0
  211. package/src/command/AgentCommand.ts +40 -0
  212. package/src/command/AgentCreateCommand.ts +155 -0
  213. package/src/command/AgentDeleteCommand.ts +45 -0
  214. package/src/command/AgentFieldCommand.ts +40 -0
  215. package/src/command/AgentFieldCreateCommand.ts +74 -0
  216. package/src/command/AgentFieldDeleteCommand.ts +45 -0
  217. package/src/command/AgentFieldGetCommand.ts +45 -0
  218. package/src/command/AgentFieldListCommand.ts +45 -0
  219. package/src/command/AgentFieldUpdateCommand.ts +74 -0
  220. package/src/command/AgentGetCommand.ts +45 -0
  221. package/src/command/AgentListCommand.ts +45 -0
  222. package/src/command/AgentTagCommand.ts +40 -0
  223. package/src/command/AgentTagCreateCommand.ts +74 -0
  224. package/src/command/AgentTagDeleteCommand.ts +45 -0
  225. package/src/command/AgentTagGetCommand.ts +45 -0
  226. package/src/command/AgentTagListCommand.ts +45 -0
  227. package/src/command/AgentTagUpdateCommand.ts +74 -0
  228. package/src/command/AgentUpdateCommand.ts +155 -0
  229. package/src/command/ChatCommand.ts +34 -0
  230. package/src/command/ChatGetCommand.ts +45 -0
  231. package/src/command/ChatListCommand.ts +45 -0
  232. package/src/command/HealthCommand.ts +34 -0
  233. package/src/command/HealthLivenessCommand.ts +45 -0
  234. package/src/command/HealthReadinessCommand.ts +45 -0
  235. package/src/command/HealthzCommand.ts +32 -0
  236. package/src/command/HealthzGetCommand.ts +45 -0
  237. package/src/command/MetricsCommand.ts +32 -0
  238. package/src/command/MetricsGetCommand.ts +45 -0
  239. package/src/command/ValueCommand.ts +32 -0
  240. package/src/command/ValueListCommand.ts +45 -0
  241. package/src/command/cli.ts +49 -0
  242. package/src/enum/ChatType.ts +27 -0
  243. package/src/index.ts +82 -0
  244. package/src/meta/AgentCategoryMetaTable.ts +60 -0
  245. package/src/meta/AgentFieldMetaTable.ts +61 -0
  246. package/src/meta/AgentMetaTable.ts +79 -0
  247. package/src/meta/AgentTagMetaTable.ts +61 -0
  248. package/src/meta/ChatMetaTable.ts +69 -0
  249. package/src/meta/NamirasoftExpertMetaDatabase.ts +63 -0
  250. package/src/row/AgentCategoryRow.ts +29 -0
  251. package/src/row/AgentFieldRow.ts +30 -0
  252. package/src/row/AgentInputRow.ts +35 -0
  253. package/src/row/AgentRow.ts +39 -0
  254. package/src/row/AgentTagRow.ts +30 -0
  255. package/src/row/ChatRow.ts +35 -0
  256. package/src/row/EntityCategoryInputRow.ts +25 -0
  257. package/src/row/EntityFieldInputRow.ts +26 -0
  258. package/src/row/EntityTagInputRow.ts +26 -0
  259. package/tsconfig.json +42 -0
@@ -0,0 +1,71 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AgentFieldRow } from "./row/AgentFieldRow";
22
+ import { BaseServerConfig } from "namirasoft-core";
23
+ import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
24
+ import { FilterItem } from "namirasoft-core";
25
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
26
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
27
+ import { SortItem } from "namirasoft-core";
28
+
29
+ export class NamirasoftExpertServerAgentField extends NamirasoftExpertServerBase
30
+ {
31
+ constructor(server: NamirasoftExpertServer)
32
+ {
33
+ super(server);
34
+ this.List = this.List.bind(this);
35
+ this.Get = this.Get.bind(this);
36
+ this.Create = this.Create.bind(this);
37
+ this.Update = this.Update.bind(this);
38
+ this.Delete = this.Delete.bind(this);
39
+ }
40
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: AgentFieldRow[], count: number }>
41
+ {
42
+ let filters_string_value: string = FilterItem.stringify(filters);
43
+ let sorts_string_value: string = SortItem.stringify(sorts);
44
+ let path = `agent/field/list`;
45
+ let { data } = await this.server._get<{ rows: AgentFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
46
+ return data;
47
+ }
48
+ async Get(id: string, config?: BaseServerConfig<any>): Promise<AgentFieldRow>
49
+ {
50
+ let path = `agent/field/${id}`;
51
+ let { data } = await this.server._get<AgentFieldRow>(path, {}, config);
52
+ return data;
53
+ }
54
+ async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<AgentFieldRow>
55
+ {
56
+ let path = `agent/field`;
57
+ let { data } = await this.server._post<AgentFieldRow>(path, {}, body, config);
58
+ return data;
59
+ }
60
+ async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<AgentFieldRow>
61
+ {
62
+ let path = `agent/field/${id}`;
63
+ let { data } = await this.server._put<AgentFieldRow>(path, {}, body, config);
64
+ return data;
65
+ }
66
+ async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
67
+ {
68
+ let path = `agent/field/${id}`;
69
+ await this.server._delete<void>(path, {}, config);
70
+ }
71
+ };
@@ -0,0 +1,71 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AgentTagRow } from "./row/AgentTagRow";
22
+ import { BaseServerConfig } from "namirasoft-core";
23
+ import { EntityTagInputRow } from "./row/EntityTagInputRow";
24
+ import { FilterItem } from "namirasoft-core";
25
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
26
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
27
+ import { SortItem } from "namirasoft-core";
28
+
29
+ export class NamirasoftExpertServerAgentTag extends NamirasoftExpertServerBase
30
+ {
31
+ constructor(server: NamirasoftExpertServer)
32
+ {
33
+ super(server);
34
+ this.List = this.List.bind(this);
35
+ this.Get = this.Get.bind(this);
36
+ this.Create = this.Create.bind(this);
37
+ this.Update = this.Update.bind(this);
38
+ this.Delete = this.Delete.bind(this);
39
+ }
40
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: AgentTagRow[], count: number }>
41
+ {
42
+ let filters_string_value: string = FilterItem.stringify(filters);
43
+ let sorts_string_value: string = SortItem.stringify(sorts);
44
+ let path = `agent/tag/list`;
45
+ let { data } = await this.server._get<{ rows: AgentTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
46
+ return data;
47
+ }
48
+ async Get(id: string, config?: BaseServerConfig<any>): Promise<AgentTagRow>
49
+ {
50
+ let path = `agent/tag/${id}`;
51
+ let { data } = await this.server._get<AgentTagRow>(path, {}, config);
52
+ return data;
53
+ }
54
+ async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<AgentTagRow>
55
+ {
56
+ let path = `agent/tag`;
57
+ let { data } = await this.server._post<AgentTagRow>(path, {}, body, config);
58
+ return data;
59
+ }
60
+ async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<AgentTagRow>
61
+ {
62
+ let path = `agent/tag/${id}`;
63
+ let { data } = await this.server._put<AgentTagRow>(path, {}, body, config);
64
+ return data;
65
+ }
66
+ async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
67
+ {
68
+ let path = `agent/tag/${id}`;
69
+ await this.server._delete<void>(path, {}, config);
70
+ }
71
+ };
@@ -0,0 +1,30 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
22
+
23
+ export class NamirasoftExpertServerBase
24
+ {
25
+ public server: NamirasoftExpertServer;
26
+ constructor(server: NamirasoftExpertServer)
27
+ {
28
+ this.server = server;
29
+ }
30
+ };
@@ -0,0 +1,50 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseServerConfig } from "namirasoft-core";
22
+ import { ChatRow } from "./row/ChatRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
25
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftExpertServerChat extends NamirasoftExpertServerBase
29
+ {
30
+ constructor(server: NamirasoftExpertServer)
31
+ {
32
+ super(server);
33
+ this.Get = this.Get.bind(this);
34
+ this.List = this.List.bind(this);
35
+ }
36
+ async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<ChatRow>
37
+ {
38
+ let path = `/chat/${id}`;
39
+ let { data } = await this.server._get<ChatRow>(path, {}, config);
40
+ return data;
41
+ }
42
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: ChatRow[], count: number }>
43
+ {
44
+ let filters_string_value: string = FilterItem.stringify(filters);
45
+ let sorts_string_value: string = SortItem.stringify(sorts);
46
+ let path = `/chat/list`;
47
+ let { data } = await this.server._get<{ rows: ChatRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
48
+ return data;
49
+ }
50
+ };
@@ -0,0 +1,43 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseServerConfig } from "namirasoft-core";
22
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
23
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
24
+
25
+ export class NamirasoftExpertServerHealth extends NamirasoftExpertServerBase
26
+ {
27
+ constructor(server: NamirasoftExpertServer)
28
+ {
29
+ super(server);
30
+ this.Liveness = this.Liveness.bind(this);
31
+ this.Readiness = this.Readiness.bind(this);
32
+ }
33
+ async Liveness(config?: BaseServerConfig<any>): Promise<void>
34
+ {
35
+ let path = `/health/liveness`;
36
+ await this.server._get<void>(path, {}, config);
37
+ }
38
+ async Readiness(config?: BaseServerConfig<any>): Promise<void>
39
+ {
40
+ let path = `/health/readiness`;
41
+ await this.server._get<void>(path, {}, config);
42
+ }
43
+ };
@@ -0,0 +1,37 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseServerConfig } from "namirasoft-core";
22
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
23
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
24
+
25
+ export class NamirasoftExpertServerHealthz extends NamirasoftExpertServerBase
26
+ {
27
+ constructor(server: NamirasoftExpertServer)
28
+ {
29
+ super(server);
30
+ this.Get = this.Get.bind(this);
31
+ }
32
+ async Get(config?: BaseServerConfig<any>): Promise<void>
33
+ {
34
+ let path = `/healthz`;
35
+ await this.server._get<void>(path, {}, config);
36
+ }
37
+ };
@@ -0,0 +1,37 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseServerConfig } from "namirasoft-core";
22
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
23
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
24
+
25
+ export class NamirasoftExpertServerMetrics extends NamirasoftExpertServerBase
26
+ {
27
+ constructor(server: NamirasoftExpertServer)
28
+ {
29
+ super(server);
30
+ this.Get = this.Get.bind(this);
31
+ }
32
+ async Get(config?: BaseServerConfig<any>): Promise<void>
33
+ {
34
+ let path = `/metrics`;
35
+ await this.server._get<void>(path, {}, config);
36
+ }
37
+ };
@@ -0,0 +1,38 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseServerConfig } from "namirasoft-core";
22
+ import { NamirasoftExpertServer } from "./NamirasoftExpertServer";
23
+ import { NamirasoftExpertServerBase } from "./NamirasoftExpertServerBase";
24
+
25
+ export class NamirasoftExpertServerValue extends NamirasoftExpertServerBase
26
+ {
27
+ constructor(server: NamirasoftExpertServer)
28
+ {
29
+ super(server);
30
+ this.List = this.List.bind(this);
31
+ }
32
+ async List(table: string, column: string, search: (string | null), field_id: (string | null), limit: (number | null), config?: BaseServerConfig<any>): Promise<string[]>
33
+ {
34
+ let path = `/value/list/${table}/${column}`;
35
+ let { data } = await this.server._get<string[]>(path, { search, field_id, limit }, config);
36
+ return data;
37
+ }
38
+ };
@@ -0,0 +1,38 @@
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 change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AgentCategoryCreateCommand } from "./AgentCategoryCreateCommand";
22
+ import { AgentCategoryDeleteCommand } from "./AgentCategoryDeleteCommand";
23
+ import { AgentCategoryGetCommand } from "./AgentCategoryGetCommand";
24
+ import { AgentCategoryListCommand } from "./AgentCategoryListCommand";
25
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
26
+
27
+ export class AgentCategoryCommand extends BaseNavigatorCommand
28
+ {
29
+ constructor(argv: string[])
30
+ {
31
+ super(argv, {
32
+ "list": AgentCategoryListCommand,
33
+ "get": AgentCategoryGetCommand,
34
+ "create": AgentCategoryCreateCommand,
35
+ "delete": AgentCategoryDeleteCommand,
36
+ });
37
+ }
38
+ };
@@ -0,0 +1,65 @@
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 change is required, 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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AgentCategoryCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], [
31
+ {
32
+ name: "entity_id",
33
+ short: "",
34
+ description: "Provides the value of 'entity_id' in body",
35
+ optional: false,
36
+ args: ["entity_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "category_id",
41
+ short: "",
42
+ description: "Provides the value of 'category_id' in body",
43
+ optional: false,
44
+ args: ["category_id"],
45
+ defaults: [""]
46
+ }
47
+ ]);
48
+ }
49
+ override async exec()
50
+ {
51
+ let token = this.app.storage.getNSAToken();
52
+ if (token == null)
53
+ throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
54
+ let storage = new IStorageMemoryDedicated();
55
+ let token_manager = new TokenManager(storage, () => { });
56
+ token_manager.setValue(token, false);
57
+ let url = this.app.storage.getItem("ns-expert-server-url");
58
+ let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
59
+ let ans = await server.agent_category.Create({
60
+ entity_id: this.option_values.entity_id,
61
+ category_id: this.option_values.category_id
62
+ });
63
+ this.app.logger.success(JSON.stringify(ans));
64
+ }
65
+ };
@@ -0,0 +1,45 @@
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 change is required, 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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AgentCategoryDeleteCommand 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-expert account config \nor \nns-expert account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-expert-server-url");
41
+ let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.agent_category.Delete(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,45 @@
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 change is required, 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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AgentCategoryGetCommand 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-expert account config \nor \nns-expert account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-expert-server-url");
41
+ let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.agent_category.Get(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,45 @@
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 change is required, 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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AgentCategoryListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size", "sorts"], []);
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-expert account config \nor \nns-expert account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let token_manager = new TokenManager(storage, () => { });
39
+ token_manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-expert-server-url");
41
+ let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.agent_category.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };