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.
- package/dist/NamirasoftSlackSenderServer.d.ts +23 -0
- package/dist/NamirasoftSlackSenderServer.js +30 -0
- package/dist/NamirasoftSlackSenderServer.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerBase.d.ts +5 -0
- package/dist/NamirasoftSlackSenderServerBase.js +11 -0
- package/dist/NamirasoftSlackSenderServerBase.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerChannelBot.d.ts +10 -0
- package/dist/NamirasoftSlackSenderServerChannelBot.js +37 -0
- package/dist/NamirasoftSlackSenderServerChannelBot.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerHealthz.d.ts +6 -0
- package/dist/NamirasoftSlackSenderServerHealthz.js +28 -0
- package/dist/NamirasoftSlackSenderServerHealthz.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerProvider.d.ts +24 -0
- package/dist/NamirasoftSlackSenderServerProvider.js +63 -0
- package/dist/NamirasoftSlackSenderServerProvider.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerProviderCategory.d.ts +16 -0
- package/dist/NamirasoftSlackSenderServerProviderCategory.js +56 -0
- package/dist/NamirasoftSlackSenderServerProviderCategory.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerProviderField.d.ts +17 -0
- package/dist/NamirasoftSlackSenderServerProviderField.js +64 -0
- package/dist/NamirasoftSlackSenderServerProviderField.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerProviderTag.d.ts +17 -0
- package/dist/NamirasoftSlackSenderServerProviderTag.js +64 -0
- package/dist/NamirasoftSlackSenderServerProviderTag.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerSent.d.ts +13 -0
- package/dist/NamirasoftSlackSenderServerSent.js +41 -0
- package/dist/NamirasoftSlackSenderServerSent.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerSlack.d.ts +21 -0
- package/dist/NamirasoftSlackSenderServerSlack.js +37 -0
- package/dist/NamirasoftSlackSenderServerSlack.js.map +1 -0
- package/dist/NamirasoftSlackSenderServerValue.d.ts +6 -0
- package/dist/NamirasoftSlackSenderServerValue.js +29 -0
- package/dist/NamirasoftSlackSenderServerValue.js.map +1 -0
- package/dist/command/ChannelBotCommand.d.ts +4 -0
- package/dist/command/ChannelBotCommand.js +17 -0
- package/dist/command/ChannelBotCommand.js.map +1 -0
- package/dist/command/ChannelBotCreateCommand.d.ts +5 -0
- package/dist/command/ChannelBotCreateCommand.js +139 -0
- package/dist/command/ChannelBotCreateCommand.js.map +1 -0
- package/dist/command/ChannelBotUpdateCommand.d.ts +5 -0
- package/dist/command/ChannelBotUpdateCommand.js +139 -0
- package/dist/command/ChannelBotUpdateCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/ProviderCategoryCommand.d.ts +4 -0
- package/dist/command/ProviderCategoryCommand.js +21 -0
- package/dist/command/ProviderCategoryCommand.js.map +1 -0
- package/dist/command/ProviderCategoryCreateCommand.d.ts +5 -0
- package/dist/command/ProviderCategoryCreateCommand.js +49 -0
- package/dist/command/ProviderCategoryCreateCommand.js.map +1 -0
- package/dist/command/ProviderCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/ProviderCategoryDeleteCommand.js +38 -0
- package/dist/command/ProviderCategoryDeleteCommand.js.map +1 -0
- package/dist/command/ProviderCategoryGetCommand.d.ts +5 -0
- package/dist/command/ProviderCategoryGetCommand.js +38 -0
- package/dist/command/ProviderCategoryGetCommand.js.map +1 -0
- package/dist/command/ProviderCategoryListCommand.d.ts +5 -0
- package/dist/command/ProviderCategoryListCommand.js +38 -0
- package/dist/command/ProviderCategoryListCommand.js.map +1 -0
- package/dist/command/ProviderCommand.d.ts +4 -0
- package/dist/command/ProviderCommand.js +23 -0
- package/dist/command/ProviderCommand.js.map +1 -0
- package/dist/command/ProviderDeleteCommand.d.ts +5 -0
- package/dist/command/ProviderDeleteCommand.js +38 -0
- package/dist/command/ProviderDeleteCommand.js.map +1 -0
- package/dist/command/ProviderFieldCommand.d.ts +4 -0
- package/dist/command/ProviderFieldCommand.js +23 -0
- package/dist/command/ProviderFieldCommand.js.map +1 -0
- package/dist/command/ProviderFieldCreateCommand.d.ts +5 -0
- package/dist/command/ProviderFieldCreateCommand.js +58 -0
- package/dist/command/ProviderFieldCreateCommand.js.map +1 -0
- package/dist/command/ProviderFieldDeleteCommand.d.ts +5 -0
- package/dist/command/ProviderFieldDeleteCommand.js +38 -0
- package/dist/command/ProviderFieldDeleteCommand.js.map +1 -0
- package/dist/command/ProviderFieldGetCommand.d.ts +5 -0
- package/dist/command/ProviderFieldGetCommand.js +38 -0
- package/dist/command/ProviderFieldGetCommand.js.map +1 -0
- package/dist/command/ProviderFieldListCommand.d.ts +5 -0
- package/dist/command/ProviderFieldListCommand.js +38 -0
- package/dist/command/ProviderFieldListCommand.js.map +1 -0
- package/dist/command/ProviderFieldUpdateCommand.d.ts +5 -0
- package/dist/command/ProviderFieldUpdateCommand.js +58 -0
- package/dist/command/ProviderFieldUpdateCommand.js.map +1 -0
- package/dist/command/ProviderGetCommand.d.ts +5 -0
- package/dist/command/ProviderGetCommand.js +38 -0
- package/dist/command/ProviderGetCommand.js.map +1 -0
- package/dist/command/ProviderListCommand.d.ts +5 -0
- package/dist/command/ProviderListCommand.js +38 -0
- package/dist/command/ProviderListCommand.js.map +1 -0
- package/dist/command/ProviderRequestCommand.d.ts +5 -0
- package/dist/command/ProviderRequestCommand.js +58 -0
- package/dist/command/ProviderRequestCommand.js.map +1 -0
- package/dist/command/ProviderTagCommand.d.ts +4 -0
- package/dist/command/ProviderTagCommand.js +23 -0
- package/dist/command/ProviderTagCommand.js.map +1 -0
- package/dist/command/ProviderTagCreateCommand.d.ts +5 -0
- package/dist/command/ProviderTagCreateCommand.js +58 -0
- package/dist/command/ProviderTagCreateCommand.js.map +1 -0
- package/dist/command/ProviderTagDeleteCommand.d.ts +5 -0
- package/dist/command/ProviderTagDeleteCommand.js +38 -0
- package/dist/command/ProviderTagDeleteCommand.js.map +1 -0
- package/dist/command/ProviderTagGetCommand.d.ts +5 -0
- package/dist/command/ProviderTagGetCommand.js +38 -0
- package/dist/command/ProviderTagGetCommand.js.map +1 -0
- package/dist/command/ProviderTagListCommand.d.ts +5 -0
- package/dist/command/ProviderTagListCommand.js +38 -0
- package/dist/command/ProviderTagListCommand.js.map +1 -0
- package/dist/command/ProviderTagUpdateCommand.d.ts +5 -0
- package/dist/command/ProviderTagUpdateCommand.js +58 -0
- package/dist/command/ProviderTagUpdateCommand.js.map +1 -0
- package/dist/command/ProviderVerifyCommand.d.ts +5 -0
- package/dist/command/ProviderVerifyCommand.js +49 -0
- package/dist/command/ProviderVerifyCommand.js.map +1 -0
- package/dist/command/SentCommand.d.ts +4 -0
- package/dist/command/SentCommand.js +17 -0
- package/dist/command/SentCommand.js.map +1 -0
- package/dist/command/SentGetCommand.d.ts +5 -0
- package/dist/command/SentGetCommand.js +38 -0
- package/dist/command/SentGetCommand.js.map +1 -0
- package/dist/command/SentListCommand.d.ts +5 -0
- package/dist/command/SentListCommand.js +38 -0
- package/dist/command/SentListCommand.js.map +1 -0
- package/dist/command/SlackCommand.d.ts +4 -0
- package/dist/command/SlackCommand.js +17 -0
- package/dist/command/SlackCommand.js.map +1 -0
- package/dist/command/SlackSendCommand.d.ts +5 -0
- package/dist/command/SlackSendCommand.js +76 -0
- package/dist/command/SlackSendCommand.js.map +1 -0
- package/dist/command/Slack_SendForCommand.d.ts +5 -0
- package/dist/command/Slack_SendForCommand.js +76 -0
- package/dist/command/Slack_SendForCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +30 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/ProviderLimitPerUnit.d.ts +6 -0
- package/dist/enum/ProviderLimitPerUnit.js +11 -0
- package/dist/enum/ProviderLimitPerUnit.js.map +1 -0
- package/dist/enum/ProviderType.d.ts +3 -0
- package/dist/enum/ProviderType.js +8 -0
- package/dist/enum/ProviderType.js.map +1 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.js +82 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/NamirasoftSlackSenderMetaDatabase.d.ts +21 -0
- package/dist/meta/NamirasoftSlackSenderMetaDatabase.js +35 -0
- package/dist/meta/NamirasoftSlackSenderMetaDatabase.js.map +1 -0
- package/dist/meta/ProviderCategoryMetaTable.d.ts +15 -0
- package/dist/meta/ProviderCategoryMetaTable.js +38 -0
- package/dist/meta/ProviderCategoryMetaTable.js.map +1 -0
- package/dist/meta/ProviderFieldMetaTable.d.ts +16 -0
- package/dist/meta/ProviderFieldMetaTable.js +39 -0
- package/dist/meta/ProviderFieldMetaTable.js.map +1 -0
- package/dist/meta/ProviderMetaTable.d.ts +22 -0
- package/dist/meta/ProviderMetaTable.js +45 -0
- package/dist/meta/ProviderMetaTable.js.map +1 -0
- package/dist/meta/ProviderTagMetaTable.d.ts +16 -0
- package/dist/meta/ProviderTagMetaTable.js +39 -0
- package/dist/meta/ProviderTagMetaTable.js.map +1 -0
- package/dist/meta/SentMetaTable.d.ts +21 -0
- package/dist/meta/SentMetaTable.js +44 -0
- package/dist/meta/SentMetaTable.js.map +1 -0
- package/dist/row/ChannelBotCreateRow.d.ts +17 -0
- package/dist/row/ChannelBotCreateRow.js +3 -0
- package/dist/row/ChannelBotCreateRow.js.map +1 -0
- package/dist/row/ChannelBotUpdateRow.d.ts +17 -0
- package/dist/row/ChannelBotUpdateRow.js +3 -0
- package/dist/row/ChannelBotUpdateRow.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +3 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +4 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +4 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/dist/row/ProviderCategoryRow.d.ts +8 -0
- package/dist/row/ProviderCategoryRow.js +3 -0
- package/dist/row/ProviderCategoryRow.js.map +1 -0
- package/dist/row/ProviderFieldRow.d.ts +9 -0
- package/dist/row/ProviderFieldRow.js +3 -0
- package/dist/row/ProviderFieldRow.js.map +1 -0
- package/dist/row/ProviderRow.d.ts +17 -0
- package/dist/row/ProviderRow.js +3 -0
- package/dist/row/ProviderRow.js.map +1 -0
- package/dist/row/ProviderTagRow.d.ts +9 -0
- package/dist/row/ProviderTagRow.js +3 -0
- package/dist/row/ProviderTagRow.js.map +1 -0
- package/dist/row/SentRow.d.ts +14 -0
- package/dist/row/SentRow.js +3 -0
- package/dist/row/SentRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftSlackSenderServer.ts +57 -0
- package/src/NamirasoftSlackSenderServerBase.ts +30 -0
- package/src/NamirasoftSlackSenderServerChannelBot.ts +47 -0
- package/src/NamirasoftSlackSenderServerHealthz.ts +36 -0
- package/src/NamirasoftSlackSenderServerProvider.ts +68 -0
- package/src/NamirasoftSlackSenderServerProviderCategory.ts +63 -0
- package/src/NamirasoftSlackSenderServerProviderField.ts +70 -0
- package/src/NamirasoftSlackSenderServerProviderTag.ts +70 -0
- package/src/NamirasoftSlackSenderServerSent.ts +49 -0
- package/src/NamirasoftSlackSenderServerSlack.ts +44 -0
- package/src/NamirasoftSlackSenderServerValue.ts +37 -0
- package/src/command/ChannelBotCommand.ts +34 -0
- package/src/command/ChannelBotCreateCommand.ts +146 -0
- package/src/command/ChannelBotUpdateCommand.ts +146 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/ProviderCategoryCommand.ts +38 -0
- package/src/command/ProviderCategoryCreateCommand.ts +56 -0
- package/src/command/ProviderCategoryDeleteCommand.ts +45 -0
- package/src/command/ProviderCategoryGetCommand.ts +45 -0
- package/src/command/ProviderCategoryListCommand.ts +45 -0
- package/src/command/ProviderCommand.ts +40 -0
- package/src/command/ProviderDeleteCommand.ts +45 -0
- package/src/command/ProviderFieldCommand.ts +40 -0
- package/src/command/ProviderFieldCreateCommand.ts +65 -0
- package/src/command/ProviderFieldDeleteCommand.ts +45 -0
- package/src/command/ProviderFieldGetCommand.ts +45 -0
- package/src/command/ProviderFieldListCommand.ts +45 -0
- package/src/command/ProviderFieldUpdateCommand.ts +65 -0
- package/src/command/ProviderGetCommand.ts +45 -0
- package/src/command/ProviderListCommand.ts +45 -0
- package/src/command/ProviderRequestCommand.ts +65 -0
- package/src/command/ProviderTagCommand.ts +40 -0
- package/src/command/ProviderTagCreateCommand.ts +65 -0
- package/src/command/ProviderTagDeleteCommand.ts +45 -0
- package/src/command/ProviderTagGetCommand.ts +45 -0
- package/src/command/ProviderTagListCommand.ts +45 -0
- package/src/command/ProviderTagUpdateCommand.ts +65 -0
- package/src/command/ProviderVerifyCommand.ts +56 -0
- package/src/command/SentCommand.ts +34 -0
- package/src/command/SentGetCommand.ts +45 -0
- package/src/command/SentListCommand.ts +45 -0
- package/src/command/SlackCommand.ts +34 -0
- package/src/command/SlackSendCommand.ts +83 -0
- package/src/command/Slack_SendForCommand.ts +83 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +49 -0
- package/src/enum/ProviderLimitPerUnit.ts +27 -0
- package/src/enum/ProviderType.ts +24 -0
- package/src/index.ts +85 -0
- package/src/meta/NamirasoftSlackSenderMetaDatabase.ts +63 -0
- package/src/meta/ProviderCategoryMetaTable.ts +58 -0
- package/src/meta/ProviderFieldMetaTable.ts +60 -0
- package/src/meta/ProviderMetaTable.ts +72 -0
- package/src/meta/ProviderTagMetaTable.ts +60 -0
- package/src/meta/SentMetaTable.ts +70 -0
- package/src/row/ChannelBotCreateRow.ts +39 -0
- package/src/row/ChannelBotUpdateRow.ts +39 -0
- package/src/row/EntityCategoryInputRow.ts +24 -0
- package/src/row/EntityFieldInputRow.ts +25 -0
- package/src/row/EntityTagInputRow.ts +25 -0
- package/src/row/ProviderCategoryRow.ts +29 -0
- package/src/row/ProviderFieldRow.ts +30 -0
- package/src/row/ProviderRow.ts +39 -0
- package/src/row/ProviderTagRow.ts +30 -0
- package/src/row/SentRow.ts +35 -0
- 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
|
+
};
|