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.
- package/dist/NamirasoftExpertServer.d.ts +23 -0
- package/dist/NamirasoftExpertServer.js +30 -0
- package/dist/NamirasoftExpertServer.js.map +1 -0
- package/dist/NamirasoftExpertServerAgent.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgent.js +64 -0
- package/dist/NamirasoftExpertServerAgent.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentCategory.d.ts +17 -0
- package/dist/NamirasoftExpertServerAgentCategory.js +56 -0
- package/dist/NamirasoftExpertServerAgentCategory.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentField.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgentField.js +64 -0
- package/dist/NamirasoftExpertServerAgentField.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentTag.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgentTag.js +64 -0
- package/dist/NamirasoftExpertServerAgentTag.js.map +1 -0
- package/dist/NamirasoftExpertServerBase.d.ts +5 -0
- package/dist/NamirasoftExpertServerBase.js +11 -0
- package/dist/NamirasoftExpertServerBase.js.map +1 -0
- package/dist/NamirasoftExpertServerChat.d.ts +14 -0
- package/dist/NamirasoftExpertServerChat.js +41 -0
- package/dist/NamirasoftExpertServerChat.js.map +1 -0
- package/dist/NamirasoftExpertServerHealth.d.ts +8 -0
- package/dist/NamirasoftExpertServerHealth.js +35 -0
- package/dist/NamirasoftExpertServerHealth.js.map +1 -0
- package/dist/NamirasoftExpertServerHealthz.d.ts +7 -0
- package/dist/NamirasoftExpertServerHealthz.js +28 -0
- package/dist/NamirasoftExpertServerHealthz.js.map +1 -0
- package/dist/NamirasoftExpertServerMetrics.d.ts +7 -0
- package/dist/NamirasoftExpertServerMetrics.js +28 -0
- package/dist/NamirasoftExpertServerMetrics.js.map +1 -0
- package/dist/NamirasoftExpertServerValue.d.ts +7 -0
- package/dist/NamirasoftExpertServerValue.js +29 -0
- package/dist/NamirasoftExpertServerValue.js.map +1 -0
- package/dist/command/AgentCategoryCommand.d.ts +4 -0
- package/dist/command/AgentCategoryCommand.js +21 -0
- package/dist/command/AgentCategoryCommand.js.map +1 -0
- package/dist/command/AgentCategoryCreateCommand.d.ts +5 -0
- package/dist/command/AgentCategoryCreateCommand.js +58 -0
- package/dist/command/AgentCategoryCreateCommand.js.map +1 -0
- package/dist/command/AgentCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/AgentCategoryDeleteCommand.js +38 -0
- package/dist/command/AgentCategoryDeleteCommand.js.map +1 -0
- package/dist/command/AgentCategoryGetCommand.d.ts +5 -0
- package/dist/command/AgentCategoryGetCommand.js +38 -0
- package/dist/command/AgentCategoryGetCommand.js.map +1 -0
- package/dist/command/AgentCategoryListCommand.d.ts +5 -0
- package/dist/command/AgentCategoryListCommand.js +38 -0
- package/dist/command/AgentCategoryListCommand.js.map +1 -0
- package/dist/command/AgentCommand.d.ts +4 -0
- package/dist/command/AgentCommand.js +23 -0
- package/dist/command/AgentCommand.js.map +1 -0
- package/dist/command/AgentCreateCommand.d.ts +5 -0
- package/dist/command/AgentCreateCommand.js +148 -0
- package/dist/command/AgentCreateCommand.js.map +1 -0
- package/dist/command/AgentDeleteCommand.d.ts +5 -0
- package/dist/command/AgentDeleteCommand.js +38 -0
- package/dist/command/AgentDeleteCommand.js.map +1 -0
- package/dist/command/AgentFieldCommand.d.ts +4 -0
- package/dist/command/AgentFieldCommand.js +23 -0
- package/dist/command/AgentFieldCommand.js.map +1 -0
- package/dist/command/AgentFieldCreateCommand.d.ts +5 -0
- package/dist/command/AgentFieldCreateCommand.js +67 -0
- package/dist/command/AgentFieldCreateCommand.js.map +1 -0
- package/dist/command/AgentFieldDeleteCommand.d.ts +5 -0
- package/dist/command/AgentFieldDeleteCommand.js +38 -0
- package/dist/command/AgentFieldDeleteCommand.js.map +1 -0
- package/dist/command/AgentFieldGetCommand.d.ts +5 -0
- package/dist/command/AgentFieldGetCommand.js +38 -0
- package/dist/command/AgentFieldGetCommand.js.map +1 -0
- package/dist/command/AgentFieldListCommand.d.ts +5 -0
- package/dist/command/AgentFieldListCommand.js +38 -0
- package/dist/command/AgentFieldListCommand.js.map +1 -0
- package/dist/command/AgentFieldUpdateCommand.d.ts +5 -0
- package/dist/command/AgentFieldUpdateCommand.js +67 -0
- package/dist/command/AgentFieldUpdateCommand.js.map +1 -0
- package/dist/command/AgentGetCommand.d.ts +5 -0
- package/dist/command/AgentGetCommand.js +38 -0
- package/dist/command/AgentGetCommand.js.map +1 -0
- package/dist/command/AgentListCommand.d.ts +5 -0
- package/dist/command/AgentListCommand.js +38 -0
- package/dist/command/AgentListCommand.js.map +1 -0
- package/dist/command/AgentTagCommand.d.ts +4 -0
- package/dist/command/AgentTagCommand.js +23 -0
- package/dist/command/AgentTagCommand.js.map +1 -0
- package/dist/command/AgentTagCreateCommand.d.ts +5 -0
- package/dist/command/AgentTagCreateCommand.js +67 -0
- package/dist/command/AgentTagCreateCommand.js.map +1 -0
- package/dist/command/AgentTagDeleteCommand.d.ts +5 -0
- package/dist/command/AgentTagDeleteCommand.js +38 -0
- package/dist/command/AgentTagDeleteCommand.js.map +1 -0
- package/dist/command/AgentTagGetCommand.d.ts +5 -0
- package/dist/command/AgentTagGetCommand.js +38 -0
- package/dist/command/AgentTagGetCommand.js.map +1 -0
- package/dist/command/AgentTagListCommand.d.ts +5 -0
- package/dist/command/AgentTagListCommand.js +38 -0
- package/dist/command/AgentTagListCommand.js.map +1 -0
- package/dist/command/AgentTagUpdateCommand.d.ts +5 -0
- package/dist/command/AgentTagUpdateCommand.js +67 -0
- package/dist/command/AgentTagUpdateCommand.js.map +1 -0
- package/dist/command/AgentUpdateCommand.d.ts +5 -0
- package/dist/command/AgentUpdateCommand.js +148 -0
- package/dist/command/AgentUpdateCommand.js.map +1 -0
- package/dist/command/ChatCommand.d.ts +4 -0
- package/dist/command/ChatCommand.js +17 -0
- package/dist/command/ChatCommand.js.map +1 -0
- package/dist/command/ChatGetCommand.d.ts +5 -0
- package/dist/command/ChatGetCommand.js +38 -0
- package/dist/command/ChatGetCommand.js.map +1 -0
- package/dist/command/ChatListCommand.d.ts +5 -0
- package/dist/command/ChatListCommand.js +38 -0
- package/dist/command/ChatListCommand.js.map +1 -0
- package/dist/command/HealthCommand.d.ts +4 -0
- package/dist/command/HealthCommand.js +17 -0
- package/dist/command/HealthCommand.js.map +1 -0
- package/dist/command/HealthLivenessCommand.d.ts +5 -0
- package/dist/command/HealthLivenessCommand.js +38 -0
- package/dist/command/HealthLivenessCommand.js.map +1 -0
- package/dist/command/HealthReadinessCommand.d.ts +5 -0
- package/dist/command/HealthReadinessCommand.js +38 -0
- package/dist/command/HealthReadinessCommand.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/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.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/ChatType.d.ts +6 -0
- package/dist/enum/ChatType.js +11 -0
- package/dist/enum/ChatType.js.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/AgentCategoryMetaTable.d.ts +15 -0
- package/dist/meta/AgentCategoryMetaTable.js +39 -0
- package/dist/meta/AgentCategoryMetaTable.js.map +1 -0
- package/dist/meta/AgentFieldMetaTable.d.ts +16 -0
- package/dist/meta/AgentFieldMetaTable.js +39 -0
- package/dist/meta/AgentFieldMetaTable.js.map +1 -0
- package/dist/meta/AgentMetaTable.d.ts +25 -0
- package/dist/meta/AgentMetaTable.js +48 -0
- package/dist/meta/AgentMetaTable.js.map +1 -0
- package/dist/meta/AgentTagMetaTable.d.ts +16 -0
- package/dist/meta/AgentTagMetaTable.js +39 -0
- package/dist/meta/AgentTagMetaTable.js.map +1 -0
- package/dist/meta/ChatMetaTable.d.ts +19 -0
- package/dist/meta/ChatMetaTable.js +44 -0
- package/dist/meta/ChatMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.d.ts +21 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.js +35 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.js.map +1 -0
- package/dist/row/AgentCategoryRow.d.ts +8 -0
- package/dist/row/AgentCategoryRow.js +3 -0
- package/dist/row/AgentCategoryRow.js.map +1 -0
- package/dist/row/AgentFieldRow.d.ts +9 -0
- package/dist/row/AgentFieldRow.js +3 -0
- package/dist/row/AgentFieldRow.js.map +1 -0
- package/dist/row/AgentInputRow.d.ts +14 -0
- package/dist/row/AgentInputRow.js +3 -0
- package/dist/row/AgentInputRow.js.map +1 -0
- package/dist/row/AgentRow.d.ts +18 -0
- package/dist/row/AgentRow.js +3 -0
- package/dist/row/AgentRow.js.map +1 -0
- package/dist/row/AgentTagRow.d.ts +9 -0
- package/dist/row/AgentTagRow.js +3 -0
- package/dist/row/AgentTagRow.js.map +1 -0
- package/dist/row/ChatRow.d.ts +13 -0
- package/dist/row/ChatRow.js +3 -0
- package/dist/row/ChatRow.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +4 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +5 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +5 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftExpertServer.ts +57 -0
- package/src/NamirasoftExpertServerAgent.ts +71 -0
- package/src/NamirasoftExpertServerAgentCategory.ts +64 -0
- package/src/NamirasoftExpertServerAgentField.ts +71 -0
- package/src/NamirasoftExpertServerAgentTag.ts +71 -0
- package/src/NamirasoftExpertServerBase.ts +30 -0
- package/src/NamirasoftExpertServerChat.ts +50 -0
- package/src/NamirasoftExpertServerHealth.ts +43 -0
- package/src/NamirasoftExpertServerHealthz.ts +37 -0
- package/src/NamirasoftExpertServerMetrics.ts +37 -0
- package/src/NamirasoftExpertServerValue.ts +38 -0
- package/src/command/AgentCategoryCommand.ts +38 -0
- package/src/command/AgentCategoryCreateCommand.ts +65 -0
- package/src/command/AgentCategoryDeleteCommand.ts +45 -0
- package/src/command/AgentCategoryGetCommand.ts +45 -0
- package/src/command/AgentCategoryListCommand.ts +45 -0
- package/src/command/AgentCommand.ts +40 -0
- package/src/command/AgentCreateCommand.ts +155 -0
- package/src/command/AgentDeleteCommand.ts +45 -0
- package/src/command/AgentFieldCommand.ts +40 -0
- package/src/command/AgentFieldCreateCommand.ts +74 -0
- package/src/command/AgentFieldDeleteCommand.ts +45 -0
- package/src/command/AgentFieldGetCommand.ts +45 -0
- package/src/command/AgentFieldListCommand.ts +45 -0
- package/src/command/AgentFieldUpdateCommand.ts +74 -0
- package/src/command/AgentGetCommand.ts +45 -0
- package/src/command/AgentListCommand.ts +45 -0
- package/src/command/AgentTagCommand.ts +40 -0
- package/src/command/AgentTagCreateCommand.ts +74 -0
- package/src/command/AgentTagDeleteCommand.ts +45 -0
- package/src/command/AgentTagGetCommand.ts +45 -0
- package/src/command/AgentTagListCommand.ts +45 -0
- package/src/command/AgentTagUpdateCommand.ts +74 -0
- package/src/command/AgentUpdateCommand.ts +155 -0
- package/src/command/ChatCommand.ts +34 -0
- package/src/command/ChatGetCommand.ts +45 -0
- package/src/command/ChatListCommand.ts +45 -0
- package/src/command/HealthCommand.ts +34 -0
- package/src/command/HealthLivenessCommand.ts +45 -0
- package/src/command/HealthReadinessCommand.ts +45 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -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/ChatType.ts +27 -0
- package/src/index.ts +82 -0
- package/src/meta/AgentCategoryMetaTable.ts +60 -0
- package/src/meta/AgentFieldMetaTable.ts +61 -0
- package/src/meta/AgentMetaTable.ts +79 -0
- package/src/meta/AgentTagMetaTable.ts +61 -0
- package/src/meta/ChatMetaTable.ts +69 -0
- package/src/meta/NamirasoftExpertMetaDatabase.ts +63 -0
- package/src/row/AgentCategoryRow.ts +29 -0
- package/src/row/AgentFieldRow.ts +30 -0
- package/src/row/AgentInputRow.ts +35 -0
- package/src/row/AgentRow.ts +39 -0
- package/src/row/AgentTagRow.ts +30 -0
- package/src/row/ChatRow.ts +35 -0
- package/src/row/EntityCategoryInputRow.ts +25 -0
- package/src/row/EntityFieldInputRow.ts +26 -0
- package/src/row/EntityTagInputRow.ts +26 -0
- package/tsconfig.json +42 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any 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 { AgentTagCreateCommand } from "./AgentTagCreateCommand";
|
|
22
|
+
import { AgentTagDeleteCommand } from "./AgentTagDeleteCommand";
|
|
23
|
+
import { AgentTagGetCommand } from "./AgentTagGetCommand";
|
|
24
|
+
import { AgentTagListCommand } from "./AgentTagListCommand";
|
|
25
|
+
import { AgentTagUpdateCommand } from "./AgentTagUpdateCommand";
|
|
26
|
+
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
27
|
+
|
|
28
|
+
export class AgentTagCommand extends BaseNavigatorCommand
|
|
29
|
+
{
|
|
30
|
+
constructor(argv: string[])
|
|
31
|
+
{
|
|
32
|
+
super(argv, {
|
|
33
|
+
"list": AgentTagListCommand,
|
|
34
|
+
"get": AgentTagGetCommand,
|
|
35
|
+
"create": AgentTagCreateCommand,
|
|
36
|
+
"update": AgentTagUpdateCommand,
|
|
37
|
+
"delete": AgentTagDeleteCommand,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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 AgentTagCreateCommand 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: "name",
|
|
41
|
+
short: "",
|
|
42
|
+
description: "Provides the value of 'name' in body",
|
|
43
|
+
optional: false,
|
|
44
|
+
args: ["name"],
|
|
45
|
+
defaults: [""]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "value",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'value' in body",
|
|
51
|
+
optional: true,
|
|
52
|
+
args: ["value"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
override async exec()
|
|
58
|
+
{
|
|
59
|
+
let token = this.app.storage.getNSAToken();
|
|
60
|
+
if (token == null)
|
|
61
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
62
|
+
let storage = new IStorageMemoryDedicated();
|
|
63
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
64
|
+
token_manager.setValue(token, false);
|
|
65
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
66
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
+
let ans = await server.agent_tag.Create({
|
|
68
|
+
entity_id: this.option_values.entity_id,
|
|
69
|
+
name: this.option_values.name,
|
|
70
|
+
value: this.option_values.value
|
|
71
|
+
});
|
|
72
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -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 AgentTagDeleteCommand 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_tag.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 AgentTagGetCommand 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_tag.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 AgentTagListCommand 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_tag.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
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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 AgentTagUpdateCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["id"], [
|
|
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: "name",
|
|
41
|
+
short: "",
|
|
42
|
+
description: "Provides the value of 'name' in body",
|
|
43
|
+
optional: false,
|
|
44
|
+
args: ["name"],
|
|
45
|
+
defaults: [""]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "value",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'value' in body",
|
|
51
|
+
optional: true,
|
|
52
|
+
args: ["value"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
override async exec()
|
|
58
|
+
{
|
|
59
|
+
let token = this.app.storage.getNSAToken();
|
|
60
|
+
if (token == null)
|
|
61
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
62
|
+
let storage = new IStorageMemoryDedicated();
|
|
63
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
64
|
+
token_manager.setValue(token, false);
|
|
65
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
66
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
+
let ans = await server.agent_tag.Update(this.arg_values[0], {
|
|
68
|
+
entity_id: this.option_values.entity_id,
|
|
69
|
+
name: this.option_values.name,
|
|
70
|
+
value: this.option_values.value
|
|
71
|
+
});
|
|
72
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
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 AgentUpdateCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["id"], [
|
|
31
|
+
{
|
|
32
|
+
name: "workspace_id",
|
|
33
|
+
short: "",
|
|
34
|
+
description: "Provides the value of 'workspace_id' in body",
|
|
35
|
+
optional: false,
|
|
36
|
+
args: ["workspace_id"],
|
|
37
|
+
defaults: [""]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "project_id",
|
|
41
|
+
short: "",
|
|
42
|
+
description: "Provides the value of 'project_id' in body",
|
|
43
|
+
optional: true,
|
|
44
|
+
args: ["project_id"],
|
|
45
|
+
defaults: [""]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "environment_id",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'environment_id' in body",
|
|
51
|
+
optional: true,
|
|
52
|
+
args: ["environment_id"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "target_topic_id",
|
|
57
|
+
short: "",
|
|
58
|
+
description: "Provides the value of 'target_topic_id' in body",
|
|
59
|
+
optional: true,
|
|
60
|
+
args: ["target_topic_id"],
|
|
61
|
+
defaults: [""]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "name",
|
|
65
|
+
short: "",
|
|
66
|
+
description: "Provides the value of 'name' in body",
|
|
67
|
+
optional: false,
|
|
68
|
+
args: ["name"],
|
|
69
|
+
defaults: [""]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "server_ids",
|
|
73
|
+
short: "",
|
|
74
|
+
description: "Provides the value of 'server_ids' in body",
|
|
75
|
+
optional: true,
|
|
76
|
+
args: ["server_ids"],
|
|
77
|
+
defaults: [""]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "kubernetes_ids",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'kubernetes_ids' in body",
|
|
83
|
+
optional: true,
|
|
84
|
+
args: ["kubernetes_ids"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "database_ids",
|
|
89
|
+
short: "",
|
|
90
|
+
description: "Provides the value of 'database_ids' in body",
|
|
91
|
+
optional: true,
|
|
92
|
+
args: ["database_ids"],
|
|
93
|
+
defaults: [""]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "cache_ids",
|
|
97
|
+
short: "",
|
|
98
|
+
description: "Provides the value of 'cache_ids' in body",
|
|
99
|
+
optional: true,
|
|
100
|
+
args: ["cache_ids"],
|
|
101
|
+
defaults: [""]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "messaging_ids",
|
|
105
|
+
short: "",
|
|
106
|
+
description: "Provides the value of 'messaging_ids' in body",
|
|
107
|
+
optional: true,
|
|
108
|
+
args: ["messaging_ids"],
|
|
109
|
+
defaults: [""]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "streaming_ids",
|
|
113
|
+
short: "",
|
|
114
|
+
description: "Provides the value of 'streaming_ids' in body",
|
|
115
|
+
optional: true,
|
|
116
|
+
args: ["streaming_ids"],
|
|
117
|
+
defaults: [""]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "description",
|
|
121
|
+
short: "",
|
|
122
|
+
description: "Provides the value of 'description' in body",
|
|
123
|
+
optional: false,
|
|
124
|
+
args: ["description"],
|
|
125
|
+
defaults: [""]
|
|
126
|
+
}
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
override async exec()
|
|
130
|
+
{
|
|
131
|
+
let token = this.app.storage.getNSAToken();
|
|
132
|
+
if (token == null)
|
|
133
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
134
|
+
let storage = new IStorageMemoryDedicated();
|
|
135
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
136
|
+
token_manager.setValue(token, false);
|
|
137
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
138
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
139
|
+
let ans = await server.agent.Update(this.arg_values[0], {
|
|
140
|
+
workspace_id: this.option_values.workspace_id,
|
|
141
|
+
project_id: this.option_values.project_id,
|
|
142
|
+
environment_id: this.option_values.environment_id,
|
|
143
|
+
target_topic_id: this.option_values.target_topic_id,
|
|
144
|
+
name: this.option_values.name,
|
|
145
|
+
server_ids: this.option_values.server_ids,
|
|
146
|
+
kubernetes_ids: this.option_values.kubernetes_ids,
|
|
147
|
+
database_ids: this.option_values.database_ids,
|
|
148
|
+
cache_ids: this.option_values.cache_ids,
|
|
149
|
+
messaging_ids: this.option_values.messaging_ids,
|
|
150
|
+
streaming_ids: this.option_values.streaming_ids,
|
|
151
|
+
description: this.option_values.description
|
|
152
|
+
});
|
|
153
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
154
|
+
}
|
|
155
|
+
};
|
|
@@ -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 { ChatGetCommand } from "./ChatGetCommand";
|
|
23
|
+
import { ChatListCommand } from "./ChatListCommand";
|
|
24
|
+
|
|
25
|
+
export class ChatCommand extends BaseNavigatorCommand
|
|
26
|
+
{
|
|
27
|
+
constructor(argv: string[])
|
|
28
|
+
{
|
|
29
|
+
super(argv, {
|
|
30
|
+
"get": ChatGetCommand,
|
|
31
|
+
"list": ChatListCommand,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -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 ChatGetCommand 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.chat.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 ChatListCommand 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.chat.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
|
+
};
|
|
@@ -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 { HealthLivenessCommand } from "./HealthLivenessCommand";
|
|
23
|
+
import { HealthReadinessCommand } from "./HealthReadinessCommand";
|
|
24
|
+
|
|
25
|
+
export class HealthCommand extends BaseNavigatorCommand
|
|
26
|
+
{
|
|
27
|
+
constructor(argv: string[])
|
|
28
|
+
{
|
|
29
|
+
super(argv, {
|
|
30
|
+
"liveness": HealthLivenessCommand,
|
|
31
|
+
"readiness": HealthReadinessCommand,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|