namirasoft-slack-sender 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/dist/NamirasoftSlackSenderServer.d.ts +23 -0
  2. package/dist/NamirasoftSlackSenderServer.js +30 -0
  3. package/dist/NamirasoftSlackSenderServer.js.map +1 -0
  4. package/dist/NamirasoftSlackSenderServerBase.d.ts +5 -0
  5. package/dist/NamirasoftSlackSenderServerBase.js +11 -0
  6. package/dist/NamirasoftSlackSenderServerBase.js.map +1 -0
  7. package/dist/NamirasoftSlackSenderServerChannelBot.d.ts +10 -0
  8. package/dist/NamirasoftSlackSenderServerChannelBot.js +37 -0
  9. package/dist/NamirasoftSlackSenderServerChannelBot.js.map +1 -0
  10. package/dist/NamirasoftSlackSenderServerHealthz.d.ts +6 -0
  11. package/dist/NamirasoftSlackSenderServerHealthz.js +28 -0
  12. package/dist/NamirasoftSlackSenderServerHealthz.js.map +1 -0
  13. package/dist/NamirasoftSlackSenderServerProvider.d.ts +24 -0
  14. package/dist/NamirasoftSlackSenderServerProvider.js +63 -0
  15. package/dist/NamirasoftSlackSenderServerProvider.js.map +1 -0
  16. package/dist/NamirasoftSlackSenderServerProviderCategory.d.ts +16 -0
  17. package/dist/NamirasoftSlackSenderServerProviderCategory.js +56 -0
  18. package/dist/NamirasoftSlackSenderServerProviderCategory.js.map +1 -0
  19. package/dist/NamirasoftSlackSenderServerProviderField.d.ts +17 -0
  20. package/dist/NamirasoftSlackSenderServerProviderField.js +64 -0
  21. package/dist/NamirasoftSlackSenderServerProviderField.js.map +1 -0
  22. package/dist/NamirasoftSlackSenderServerProviderTag.d.ts +17 -0
  23. package/dist/NamirasoftSlackSenderServerProviderTag.js +64 -0
  24. package/dist/NamirasoftSlackSenderServerProviderTag.js.map +1 -0
  25. package/dist/NamirasoftSlackSenderServerSent.d.ts +13 -0
  26. package/dist/NamirasoftSlackSenderServerSent.js +41 -0
  27. package/dist/NamirasoftSlackSenderServerSent.js.map +1 -0
  28. package/dist/NamirasoftSlackSenderServerSlack.d.ts +21 -0
  29. package/dist/NamirasoftSlackSenderServerSlack.js +37 -0
  30. package/dist/NamirasoftSlackSenderServerSlack.js.map +1 -0
  31. package/dist/NamirasoftSlackSenderServerValue.d.ts +6 -0
  32. package/dist/NamirasoftSlackSenderServerValue.js +29 -0
  33. package/dist/NamirasoftSlackSenderServerValue.js.map +1 -0
  34. package/dist/command/ChannelBotCommand.d.ts +4 -0
  35. package/dist/command/ChannelBotCommand.js +17 -0
  36. package/dist/command/ChannelBotCommand.js.map +1 -0
  37. package/dist/command/ChannelBotCreateCommand.d.ts +5 -0
  38. package/dist/command/ChannelBotCreateCommand.js +139 -0
  39. package/dist/command/ChannelBotCreateCommand.js.map +1 -0
  40. package/dist/command/ChannelBotUpdateCommand.d.ts +5 -0
  41. package/dist/command/ChannelBotUpdateCommand.js +139 -0
  42. package/dist/command/ChannelBotUpdateCommand.js.map +1 -0
  43. package/dist/command/HealthzCommand.d.ts +4 -0
  44. package/dist/command/HealthzCommand.js +15 -0
  45. package/dist/command/HealthzCommand.js.map +1 -0
  46. package/dist/command/HealthzGetCommand.d.ts +5 -0
  47. package/dist/command/HealthzGetCommand.js +38 -0
  48. package/dist/command/HealthzGetCommand.js.map +1 -0
  49. package/dist/command/ProviderCategoryCommand.d.ts +4 -0
  50. package/dist/command/ProviderCategoryCommand.js +21 -0
  51. package/dist/command/ProviderCategoryCommand.js.map +1 -0
  52. package/dist/command/ProviderCategoryCreateCommand.d.ts +5 -0
  53. package/dist/command/ProviderCategoryCreateCommand.js +49 -0
  54. package/dist/command/ProviderCategoryCreateCommand.js.map +1 -0
  55. package/dist/command/ProviderCategoryDeleteCommand.d.ts +5 -0
  56. package/dist/command/ProviderCategoryDeleteCommand.js +38 -0
  57. package/dist/command/ProviderCategoryDeleteCommand.js.map +1 -0
  58. package/dist/command/ProviderCategoryGetCommand.d.ts +5 -0
  59. package/dist/command/ProviderCategoryGetCommand.js +38 -0
  60. package/dist/command/ProviderCategoryGetCommand.js.map +1 -0
  61. package/dist/command/ProviderCategoryListCommand.d.ts +5 -0
  62. package/dist/command/ProviderCategoryListCommand.js +38 -0
  63. package/dist/command/ProviderCategoryListCommand.js.map +1 -0
  64. package/dist/command/ProviderCommand.d.ts +4 -0
  65. package/dist/command/ProviderCommand.js +23 -0
  66. package/dist/command/ProviderCommand.js.map +1 -0
  67. package/dist/command/ProviderDeleteCommand.d.ts +5 -0
  68. package/dist/command/ProviderDeleteCommand.js +38 -0
  69. package/dist/command/ProviderDeleteCommand.js.map +1 -0
  70. package/dist/command/ProviderFieldCommand.d.ts +4 -0
  71. package/dist/command/ProviderFieldCommand.js +23 -0
  72. package/dist/command/ProviderFieldCommand.js.map +1 -0
  73. package/dist/command/ProviderFieldCreateCommand.d.ts +5 -0
  74. package/dist/command/ProviderFieldCreateCommand.js +58 -0
  75. package/dist/command/ProviderFieldCreateCommand.js.map +1 -0
  76. package/dist/command/ProviderFieldDeleteCommand.d.ts +5 -0
  77. package/dist/command/ProviderFieldDeleteCommand.js +38 -0
  78. package/dist/command/ProviderFieldDeleteCommand.js.map +1 -0
  79. package/dist/command/ProviderFieldGetCommand.d.ts +5 -0
  80. package/dist/command/ProviderFieldGetCommand.js +38 -0
  81. package/dist/command/ProviderFieldGetCommand.js.map +1 -0
  82. package/dist/command/ProviderFieldListCommand.d.ts +5 -0
  83. package/dist/command/ProviderFieldListCommand.js +38 -0
  84. package/dist/command/ProviderFieldListCommand.js.map +1 -0
  85. package/dist/command/ProviderFieldUpdateCommand.d.ts +5 -0
  86. package/dist/command/ProviderFieldUpdateCommand.js +58 -0
  87. package/dist/command/ProviderFieldUpdateCommand.js.map +1 -0
  88. package/dist/command/ProviderGetCommand.d.ts +5 -0
  89. package/dist/command/ProviderGetCommand.js +38 -0
  90. package/dist/command/ProviderGetCommand.js.map +1 -0
  91. package/dist/command/ProviderListCommand.d.ts +5 -0
  92. package/dist/command/ProviderListCommand.js +38 -0
  93. package/dist/command/ProviderListCommand.js.map +1 -0
  94. package/dist/command/ProviderRequestCommand.d.ts +5 -0
  95. package/dist/command/ProviderRequestCommand.js +58 -0
  96. package/dist/command/ProviderRequestCommand.js.map +1 -0
  97. package/dist/command/ProviderTagCommand.d.ts +4 -0
  98. package/dist/command/ProviderTagCommand.js +23 -0
  99. package/dist/command/ProviderTagCommand.js.map +1 -0
  100. package/dist/command/ProviderTagCreateCommand.d.ts +5 -0
  101. package/dist/command/ProviderTagCreateCommand.js +58 -0
  102. package/dist/command/ProviderTagCreateCommand.js.map +1 -0
  103. package/dist/command/ProviderTagDeleteCommand.d.ts +5 -0
  104. package/dist/command/ProviderTagDeleteCommand.js +38 -0
  105. package/dist/command/ProviderTagDeleteCommand.js.map +1 -0
  106. package/dist/command/ProviderTagGetCommand.d.ts +5 -0
  107. package/dist/command/ProviderTagGetCommand.js +38 -0
  108. package/dist/command/ProviderTagGetCommand.js.map +1 -0
  109. package/dist/command/ProviderTagListCommand.d.ts +5 -0
  110. package/dist/command/ProviderTagListCommand.js +38 -0
  111. package/dist/command/ProviderTagListCommand.js.map +1 -0
  112. package/dist/command/ProviderTagUpdateCommand.d.ts +5 -0
  113. package/dist/command/ProviderTagUpdateCommand.js +58 -0
  114. package/dist/command/ProviderTagUpdateCommand.js.map +1 -0
  115. package/dist/command/ProviderVerifyCommand.d.ts +5 -0
  116. package/dist/command/ProviderVerifyCommand.js +49 -0
  117. package/dist/command/ProviderVerifyCommand.js.map +1 -0
  118. package/dist/command/SentCommand.d.ts +4 -0
  119. package/dist/command/SentCommand.js +17 -0
  120. package/dist/command/SentCommand.js.map +1 -0
  121. package/dist/command/SentGetCommand.d.ts +5 -0
  122. package/dist/command/SentGetCommand.js +38 -0
  123. package/dist/command/SentGetCommand.js.map +1 -0
  124. package/dist/command/SentListCommand.d.ts +5 -0
  125. package/dist/command/SentListCommand.js +38 -0
  126. package/dist/command/SentListCommand.js.map +1 -0
  127. package/dist/command/SlackCommand.d.ts +4 -0
  128. package/dist/command/SlackCommand.js +17 -0
  129. package/dist/command/SlackCommand.js.map +1 -0
  130. package/dist/command/SlackSendCommand.d.ts +5 -0
  131. package/dist/command/SlackSendCommand.js +76 -0
  132. package/dist/command/SlackSendCommand.js.map +1 -0
  133. package/dist/command/Slack_SendForCommand.d.ts +5 -0
  134. package/dist/command/Slack_SendForCommand.js +76 -0
  135. package/dist/command/Slack_SendForCommand.js.map +1 -0
  136. package/dist/command/ValueCommand.d.ts +4 -0
  137. package/dist/command/ValueCommand.js +15 -0
  138. package/dist/command/ValueCommand.js.map +1 -0
  139. package/dist/command/ValueListCommand.d.ts +5 -0
  140. package/dist/command/ValueListCommand.js +38 -0
  141. package/dist/command/ValueListCommand.js.map +1 -0
  142. package/dist/command/cli.d.ts +2 -0
  143. package/dist/command/cli.js +30 -0
  144. package/dist/command/cli.js.map +1 -0
  145. package/dist/enum/ProviderLimitPerUnit.d.ts +6 -0
  146. package/dist/enum/ProviderLimitPerUnit.js +11 -0
  147. package/dist/enum/ProviderLimitPerUnit.js.map +1 -0
  148. package/dist/enum/ProviderType.d.ts +3 -0
  149. package/dist/enum/ProviderType.js +8 -0
  150. package/dist/enum/ProviderType.js.map +1 -0
  151. package/dist/index.d.ts +65 -0
  152. package/dist/index.js +82 -0
  153. package/dist/index.js.map +1 -0
  154. package/dist/meta/NamirasoftSlackSenderMetaDatabase.d.ts +21 -0
  155. package/dist/meta/NamirasoftSlackSenderMetaDatabase.js +35 -0
  156. package/dist/meta/NamirasoftSlackSenderMetaDatabase.js.map +1 -0
  157. package/dist/meta/ProviderCategoryMetaTable.d.ts +15 -0
  158. package/dist/meta/ProviderCategoryMetaTable.js +38 -0
  159. package/dist/meta/ProviderCategoryMetaTable.js.map +1 -0
  160. package/dist/meta/ProviderFieldMetaTable.d.ts +16 -0
  161. package/dist/meta/ProviderFieldMetaTable.js +39 -0
  162. package/dist/meta/ProviderFieldMetaTable.js.map +1 -0
  163. package/dist/meta/ProviderMetaTable.d.ts +22 -0
  164. package/dist/meta/ProviderMetaTable.js +45 -0
  165. package/dist/meta/ProviderMetaTable.js.map +1 -0
  166. package/dist/meta/ProviderTagMetaTable.d.ts +16 -0
  167. package/dist/meta/ProviderTagMetaTable.js +39 -0
  168. package/dist/meta/ProviderTagMetaTable.js.map +1 -0
  169. package/dist/meta/SentMetaTable.d.ts +21 -0
  170. package/dist/meta/SentMetaTable.js +44 -0
  171. package/dist/meta/SentMetaTable.js.map +1 -0
  172. package/dist/row/ChannelBotCreateRow.d.ts +17 -0
  173. package/dist/row/ChannelBotCreateRow.js +3 -0
  174. package/dist/row/ChannelBotCreateRow.js.map +1 -0
  175. package/dist/row/ChannelBotUpdateRow.d.ts +17 -0
  176. package/dist/row/ChannelBotUpdateRow.js +3 -0
  177. package/dist/row/ChannelBotUpdateRow.js.map +1 -0
  178. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  179. package/dist/row/EntityCategoryInputRow.js +3 -0
  180. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  181. package/dist/row/EntityFieldInputRow.d.ts +4 -0
  182. package/dist/row/EntityFieldInputRow.js +3 -0
  183. package/dist/row/EntityFieldInputRow.js.map +1 -0
  184. package/dist/row/EntityTagInputRow.d.ts +4 -0
  185. package/dist/row/EntityTagInputRow.js +3 -0
  186. package/dist/row/EntityTagInputRow.js.map +1 -0
  187. package/dist/row/ProviderCategoryRow.d.ts +8 -0
  188. package/dist/row/ProviderCategoryRow.js +3 -0
  189. package/dist/row/ProviderCategoryRow.js.map +1 -0
  190. package/dist/row/ProviderFieldRow.d.ts +9 -0
  191. package/dist/row/ProviderFieldRow.js +3 -0
  192. package/dist/row/ProviderFieldRow.js.map +1 -0
  193. package/dist/row/ProviderRow.d.ts +17 -0
  194. package/dist/row/ProviderRow.js +3 -0
  195. package/dist/row/ProviderRow.js.map +1 -0
  196. package/dist/row/ProviderTagRow.d.ts +9 -0
  197. package/dist/row/ProviderTagRow.js +3 -0
  198. package/dist/row/ProviderTagRow.js.map +1 -0
  199. package/dist/row/SentRow.d.ts +14 -0
  200. package/dist/row/SentRow.js +3 -0
  201. package/dist/row/SentRow.js.map +1 -0
  202. package/logo.png +0 -0
  203. package/package.json +28 -0
  204. package/src/NamirasoftSlackSenderServer.ts +57 -0
  205. package/src/NamirasoftSlackSenderServerBase.ts +30 -0
  206. package/src/NamirasoftSlackSenderServerChannelBot.ts +47 -0
  207. package/src/NamirasoftSlackSenderServerHealthz.ts +36 -0
  208. package/src/NamirasoftSlackSenderServerProvider.ts +68 -0
  209. package/src/NamirasoftSlackSenderServerProviderCategory.ts +63 -0
  210. package/src/NamirasoftSlackSenderServerProviderField.ts +70 -0
  211. package/src/NamirasoftSlackSenderServerProviderTag.ts +70 -0
  212. package/src/NamirasoftSlackSenderServerSent.ts +49 -0
  213. package/src/NamirasoftSlackSenderServerSlack.ts +44 -0
  214. package/src/NamirasoftSlackSenderServerValue.ts +37 -0
  215. package/src/command/ChannelBotCommand.ts +34 -0
  216. package/src/command/ChannelBotCreateCommand.ts +146 -0
  217. package/src/command/ChannelBotUpdateCommand.ts +146 -0
  218. package/src/command/HealthzCommand.ts +32 -0
  219. package/src/command/HealthzGetCommand.ts +45 -0
  220. package/src/command/ProviderCategoryCommand.ts +38 -0
  221. package/src/command/ProviderCategoryCreateCommand.ts +56 -0
  222. package/src/command/ProviderCategoryDeleteCommand.ts +45 -0
  223. package/src/command/ProviderCategoryGetCommand.ts +45 -0
  224. package/src/command/ProviderCategoryListCommand.ts +45 -0
  225. package/src/command/ProviderCommand.ts +40 -0
  226. package/src/command/ProviderDeleteCommand.ts +45 -0
  227. package/src/command/ProviderFieldCommand.ts +40 -0
  228. package/src/command/ProviderFieldCreateCommand.ts +65 -0
  229. package/src/command/ProviderFieldDeleteCommand.ts +45 -0
  230. package/src/command/ProviderFieldGetCommand.ts +45 -0
  231. package/src/command/ProviderFieldListCommand.ts +45 -0
  232. package/src/command/ProviderFieldUpdateCommand.ts +65 -0
  233. package/src/command/ProviderGetCommand.ts +45 -0
  234. package/src/command/ProviderListCommand.ts +45 -0
  235. package/src/command/ProviderRequestCommand.ts +65 -0
  236. package/src/command/ProviderTagCommand.ts +40 -0
  237. package/src/command/ProviderTagCreateCommand.ts +65 -0
  238. package/src/command/ProviderTagDeleteCommand.ts +45 -0
  239. package/src/command/ProviderTagGetCommand.ts +45 -0
  240. package/src/command/ProviderTagListCommand.ts +45 -0
  241. package/src/command/ProviderTagUpdateCommand.ts +65 -0
  242. package/src/command/ProviderVerifyCommand.ts +56 -0
  243. package/src/command/SentCommand.ts +34 -0
  244. package/src/command/SentGetCommand.ts +45 -0
  245. package/src/command/SentListCommand.ts +45 -0
  246. package/src/command/SlackCommand.ts +34 -0
  247. package/src/command/SlackSendCommand.ts +83 -0
  248. package/src/command/Slack_SendForCommand.ts +83 -0
  249. package/src/command/ValueCommand.ts +32 -0
  250. package/src/command/ValueListCommand.ts +45 -0
  251. package/src/command/cli.ts +49 -0
  252. package/src/enum/ProviderLimitPerUnit.ts +27 -0
  253. package/src/enum/ProviderType.ts +24 -0
  254. package/src/index.ts +85 -0
  255. package/src/meta/NamirasoftSlackSenderMetaDatabase.ts +63 -0
  256. package/src/meta/ProviderCategoryMetaTable.ts +58 -0
  257. package/src/meta/ProviderFieldMetaTable.ts +60 -0
  258. package/src/meta/ProviderMetaTable.ts +72 -0
  259. package/src/meta/ProviderTagMetaTable.ts +60 -0
  260. package/src/meta/SentMetaTable.ts +70 -0
  261. package/src/row/ChannelBotCreateRow.ts +39 -0
  262. package/src/row/ChannelBotUpdateRow.ts +39 -0
  263. package/src/row/EntityCategoryInputRow.ts +24 -0
  264. package/src/row/EntityFieldInputRow.ts +25 -0
  265. package/src/row/EntityTagInputRow.ts +25 -0
  266. package/src/row/ProviderCategoryRow.ts +29 -0
  267. package/src/row/ProviderFieldRow.ts +30 -0
  268. package/src/row/ProviderRow.ts +39 -0
  269. package/src/row/ProviderTagRow.ts +30 -0
  270. package/src/row/SentRow.ts +35 -0
  271. package/tsconfig.json +42 -0
@@ -0,0 +1,47 @@
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 { ChannelBotCreateRow } from "./row/ChannelBotCreateRow";
22
+ import { ChannelBotUpdateRow } from "./row/ChannelBotUpdateRow";
23
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
24
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
25
+ import { ProviderRow } from "./row/ProviderRow";
26
+
27
+ export class NamirasoftSlackSenderServerChannelBot extends NamirasoftSlackSenderServerBase
28
+ {
29
+ constructor(server: NamirasoftSlackSenderServer)
30
+ {
31
+ super(server);
32
+ this.Create = this.Create.bind(this);
33
+ this.Update = this.Update.bind(this);
34
+ }
35
+ async Create(body: ChannelBotCreateRow): Promise<ProviderRow>
36
+ {
37
+ let path = `/channel/bot`;
38
+ let { data } = await this.server._post<ProviderRow>(path, {}, body);
39
+ return data;
40
+ }
41
+ async Update(id: string, body: ChannelBotUpdateRow): Promise<ProviderRow>
42
+ {
43
+ let path = `/channel/bot/${id}`;
44
+ let { data } = await this.server._put<ProviderRow>(path, {}, body);
45
+ return data;
46
+ }
47
+ };
@@ -0,0 +1,36 @@
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 { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
22
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
23
+
24
+ export class NamirasoftSlackSenderServerHealthz extends NamirasoftSlackSenderServerBase
25
+ {
26
+ constructor(server: NamirasoftSlackSenderServer)
27
+ {
28
+ super(server);
29
+ this.Get = this.Get.bind(this);
30
+ }
31
+ async Get(): Promise<void>
32
+ {
33
+ let path = `/healthz`;
34
+ await this.server._get<void>(path, {});
35
+ }
36
+ };
@@ -0,0 +1,68 @@
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 { FilterItem } from "namirasoft-core";
22
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
23
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
24
+ import { ProviderRow } from "./row/ProviderRow";
25
+ import { SortItem } from "namirasoft-core";
26
+
27
+ export class NamirasoftSlackSenderServerProvider extends NamirasoftSlackSenderServerBase
28
+ {
29
+ constructor(server: NamirasoftSlackSenderServer)
30
+ {
31
+ super(server);
32
+ this.List = this.List.bind(this);
33
+ this.Get = this.Get.bind(this);
34
+ this.Delete = this.Delete.bind(this);
35
+ this.Request = this.Request.bind(this);
36
+ this.Verify = this.Verify.bind(this);
37
+ }
38
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: ProviderRow[], count: number }>
39
+ {
40
+ let filters_string_value: string = FilterItem.stringify(filters);
41
+ let sorts_string_value: string = SortItem.stringify(sorts);
42
+ let path = `/provider/list`;
43
+ let { data } = await this.server._get<{ rows: ProviderRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
44
+ return data;
45
+ }
46
+ async Get(id: string): Promise<ProviderRow>
47
+ {
48
+ let path = `/provider/${id}`;
49
+ let { data } = await this.server._get<ProviderRow>(path, {});
50
+ return data;
51
+ }
52
+ async Delete(id: string): Promise<void>
53
+ {
54
+ let path = `/provider/${id}`;
55
+ await this.server._delete<void>(path, {});
56
+ }
57
+ async Request(id: string, body: { chat_id: (string | null), message_thread_id: (string | null) }): Promise<{ next_time: number, error: (string | null) }>
58
+ {
59
+ let path = `/provider/request/${id}`;
60
+ let { data } = await this.server._post<{ next_time: number, error: (string | null) }>(path, {}, body);
61
+ return data;
62
+ }
63
+ async Verify(id: string, body: { code: string }): Promise<void>
64
+ {
65
+ let path = `/provider/verify/${id}`;
66
+ await this.server._post<void>(path, {}, body);
67
+ }
68
+ };
@@ -0,0 +1,63 @@
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 { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
24
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
25
+ import { ProviderCategoryRow } from "./row/ProviderCategoryRow";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftSlackSenderServerProviderCategory extends NamirasoftSlackSenderServerBase
29
+ {
30
+ constructor(server: NamirasoftSlackSenderServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Delete = this.Delete.bind(this);
37
+ }
38
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: ProviderCategoryRow[], count: number }>
39
+ {
40
+ let filters_string_value: string = FilterItem.stringify(filters);
41
+ let sorts_string_value: string = SortItem.stringify(sorts);
42
+ let path = `provider/category/list`;
43
+ let { data } = await this.server._get<{ rows: ProviderCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
44
+ return data;
45
+ }
46
+ async Get(id: string): Promise<ProviderCategoryRow>
47
+ {
48
+ let path = `provider/category/${id}`;
49
+ let { data } = await this.server._get<ProviderCategoryRow>(path, {});
50
+ return data;
51
+ }
52
+ async Create(entity_id: string, body: EntityCategoryInputRow): Promise<ProviderCategoryRow>
53
+ {
54
+ let path = `provider/category/${entity_id}`;
55
+ let { data } = await this.server._post<ProviderCategoryRow>(path, {}, body);
56
+ return data;
57
+ }
58
+ async Delete(entity_id: string, id: number): Promise<void>
59
+ {
60
+ let path = `provider/category/${entity_id}/${id}`;
61
+ await this.server._delete<void>(path, {});
62
+ }
63
+ };
@@ -0,0 +1,70 @@
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 { EntityFieldInputRow } from "./row/EntityFieldInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
24
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
25
+ import { ProviderFieldRow } from "./row/ProviderFieldRow";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftSlackSenderServerProviderField extends NamirasoftSlackSenderServerBase
29
+ {
30
+ constructor(server: NamirasoftSlackSenderServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: ProviderFieldRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `provider/field/list`;
44
+ let { data } = await this.server._get<{ rows: ProviderFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<ProviderFieldRow>
48
+ {
49
+ let path = `provider/field/${id}`;
50
+ let { data } = await this.server._get<ProviderFieldRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityFieldInputRow): Promise<ProviderFieldRow>
54
+ {
55
+ let path = `provider/field/${entity_id}`;
56
+ let { data } = await this.server._post<ProviderFieldRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityFieldInputRow): Promise<ProviderFieldRow>
60
+ {
61
+ let path = `provider/field/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<ProviderFieldRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `provider/field/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -0,0 +1,70 @@
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 { EntityTagInputRow } from "./row/EntityTagInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
24
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
25
+ import { ProviderTagRow } from "./row/ProviderTagRow";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftSlackSenderServerProviderTag extends NamirasoftSlackSenderServerBase
29
+ {
30
+ constructor(server: NamirasoftSlackSenderServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: ProviderTagRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `provider/tag/list`;
44
+ let { data } = await this.server._get<{ rows: ProviderTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<ProviderTagRow>
48
+ {
49
+ let path = `provider/tag/${id}`;
50
+ let { data } = await this.server._get<ProviderTagRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityTagInputRow): Promise<ProviderTagRow>
54
+ {
55
+ let path = `provider/tag/${entity_id}`;
56
+ let { data } = await this.server._post<ProviderTagRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityTagInputRow): Promise<ProviderTagRow>
60
+ {
61
+ let path = `provider/tag/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<ProviderTagRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `provider/tag/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -0,0 +1,49 @@
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 { FilterItem } from "namirasoft-core";
22
+ import { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
23
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
24
+ import { SentRow } from "./row/SentRow";
25
+ import { SortItem } from "namirasoft-core";
26
+
27
+ export class NamirasoftSlackSenderServerSent extends NamirasoftSlackSenderServerBase
28
+ {
29
+ constructor(server: NamirasoftSlackSenderServer)
30
+ {
31
+ super(server);
32
+ this.List = this.List.bind(this);
33
+ this.Get = this.Get.bind(this);
34
+ }
35
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: SentRow[], count: number }>
36
+ {
37
+ let filters_string_value: string = FilterItem.stringify(filters);
38
+ let sorts_string_value: string = SortItem.stringify(sorts);
39
+ let path = `/sent/list`;
40
+ let { data } = await this.server._get<{ rows: SentRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
41
+ return data;
42
+ }
43
+ async Get(id: string): Promise<SentRow>
44
+ {
45
+ let path = `/sent/${id}`;
46
+ let { data } = await this.server._get<SentRow>(path, {});
47
+ return data;
48
+ }
49
+ };
@@ -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 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 { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
22
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
23
+
24
+ export class NamirasoftSlackSenderServerSlack extends NamirasoftSlackSenderServerBase
25
+ {
26
+ constructor(server: NamirasoftSlackSenderServer)
27
+ {
28
+ super(server);
29
+ this.Send = this.Send.bind(this);
30
+ this._SendFor = this._SendFor.bind(this);
31
+ }
32
+ async Send(body: { provider_id: string, token: (string | null), channel: (string | null), message: string }): Promise<{ id: string }>
33
+ {
34
+ let path = `/send`;
35
+ let { data } = await this.server._post<{ id: string }>(path, {}, body);
36
+ return data;
37
+ }
38
+ async _SendFor(user_id: string, body: { provider_id: string, token: (string | null), channel: (string | null), message: string }): Promise<{ id: string }>
39
+ {
40
+ let path = `/application/user/${user_id}/send`;
41
+ let { data } = await this.server._post<{ id: string }>(path, {}, body);
42
+ return data;
43
+ }
44
+ };
@@ -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 { NamirasoftSlackSenderServer } from "./NamirasoftSlackSenderServer";
22
+ import { NamirasoftSlackSenderServerBase } from "./NamirasoftSlackSenderServerBase";
23
+
24
+ export class NamirasoftSlackSenderServerValue extends NamirasoftSlackSenderServerBase
25
+ {
26
+ constructor(server: NamirasoftSlackSenderServer)
27
+ {
28
+ super(server);
29
+ this.List = this.List.bind(this);
30
+ }
31
+ async List(table: string, column: string, search: (string | null), field_id: (string | null), limit: (number | null)): Promise<string[]>
32
+ {
33
+ let path = `/value/list/${table}/${column}`;
34
+ let { data } = await this.server._get<string[]>(path, { search, field_id, limit });
35
+ return data;
36
+ }
37
+ };
@@ -0,0 +1,34 @@
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { ChannelBotCreateCommand } from "./ChannelBotCreateCommand";
23
+ import { ChannelBotUpdateCommand } from "./ChannelBotUpdateCommand";
24
+
25
+ export class ChannelBotCommand extends BaseNavigatorCommand
26
+ {
27
+ constructor(argv: string[])
28
+ {
29
+ super(argv, {
30
+ "create": ChannelBotCreateCommand,
31
+ "update": ChannelBotUpdateCommand,
32
+ });
33
+ }
34
+ };