namirasoft-infra 1.4.1 → 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/NamirasoftInfraServer.d.ts +8 -8
- package/dist/NamirasoftInfraServer.js +9 -9
- package/dist/NamirasoftInfraServer.js.map +1 -1
- package/dist/{NamirasoftInfraServerChat.d.ts → NamirasoftInfraServerCloud.d.ts} +8 -4
- package/dist/{NamirasoftInfraServerChatTag.js → NamirasoftInfraServerCloud.js} +18 -18
- package/dist/NamirasoftInfraServerCloud.js.map +1 -0
- package/dist/{NamirasoftInfraServerChatCategory.d.ts → NamirasoftInfraServerCloudCategory.d.ts} +5 -5
- package/dist/{NamirasoftInfraServerChatCategory.js → NamirasoftInfraServerCloudCategory.js} +8 -8
- package/dist/NamirasoftInfraServerCloudCategory.js.map +1 -0
- package/dist/{NamirasoftInfraServerChatField.d.ts → NamirasoftInfraServerCloudField.d.ts} +6 -6
- package/dist/{NamirasoftInfraServerChat.js → NamirasoftInfraServerCloudField.js} +34 -11
- package/dist/NamirasoftInfraServerCloudField.js.map +1 -0
- package/dist/{NamirasoftInfraServerChatTag.d.ts → NamirasoftInfraServerCloudTag.d.ts} +6 -6
- package/dist/{NamirasoftInfraServerChatField.js → NamirasoftInfraServerCloudTag.js} +9 -9
- package/dist/NamirasoftInfraServerCloudTag.js.map +1 -0
- package/dist/NamirasoftInfraServerMetric.d.ts +4 -1
- package/dist/NamirasoftInfraServerMetric.js.map +1 -1
- package/dist/NamirasoftInfraServerMonitor.d.ts +4 -2
- package/dist/NamirasoftInfraServerMonitor.js.map +1 -1
- package/dist/command/{ChatCategoryCommand.d.ts → CloudCategoryCommand.d.ts} +1 -1
- package/dist/command/CloudCategoryCommand.js +21 -0
- package/dist/command/CloudCategoryCommand.js.map +1 -0
- package/dist/command/{ChatCategoryCreateCommand.d.ts → CloudCategoryCreateCommand.d.ts} +1 -1
- package/dist/command/{ChatCategoryCreateCommand.js → CloudCategoryCreateCommand.js} +5 -5
- package/dist/command/CloudCategoryCreateCommand.js.map +1 -0
- package/dist/command/{ChatCategoryDeleteCommand.d.ts → CloudCategoryDeleteCommand.d.ts} +1 -1
- package/dist/command/{ChatCategoryDeleteCommand.js → CloudCategoryDeleteCommand.js} +5 -5
- package/dist/command/CloudCategoryDeleteCommand.js.map +1 -0
- package/dist/command/{ChatCategoryListCommand.d.ts → CloudCategoryGetCommand.d.ts} +1 -1
- package/dist/command/{ChatCategoryGetCommand.js → CloudCategoryGetCommand.js} +5 -5
- package/dist/command/CloudCategoryGetCommand.js.map +1 -0
- package/dist/command/CloudCategoryListCommand.d.ts +5 -0
- package/dist/command/{ChatCategoryListCommand.js → CloudCategoryListCommand.js} +5 -5
- package/dist/command/CloudCategoryListCommand.js.map +1 -0
- package/dist/command/{ChatCommand.d.ts → CloudCommand.d.ts} +1 -1
- package/dist/command/CloudCommand.js +23 -0
- package/dist/command/CloudCommand.js.map +1 -0
- package/dist/command/{ChatTagListCommand.d.ts → CloudCreateCommand.d.ts} +1 -1
- package/dist/command/CloudCreateCommand.js +85 -0
- package/dist/command/CloudCreateCommand.js.map +1 -0
- package/dist/command/{ChatTagGetCommand.d.ts → CloudDeleteCommand.d.ts} +1 -1
- package/dist/command/{ChatTagGetCommand.js → CloudDeleteCommand.js} +5 -5
- package/dist/command/CloudDeleteCommand.js.map +1 -0
- package/dist/command/{ChatFieldCommand.d.ts → CloudFieldCommand.d.ts} +1 -1
- package/dist/command/CloudFieldCommand.js +23 -0
- package/dist/command/CloudFieldCommand.js.map +1 -0
- package/dist/command/{ChatFieldCreateCommand.d.ts → CloudFieldCreateCommand.d.ts} +1 -1
- package/dist/command/{ChatFieldCreateCommand.js → CloudFieldCreateCommand.js} +5 -5
- package/dist/command/CloudFieldCreateCommand.js.map +1 -0
- package/dist/command/{ChatFieldDeleteCommand.d.ts → CloudFieldDeleteCommand.d.ts} +1 -1
- package/dist/command/{ChatFieldDeleteCommand.js → CloudFieldDeleteCommand.js} +5 -5
- package/dist/command/CloudFieldDeleteCommand.js.map +1 -0
- package/dist/command/{ChatTagCreateCommand.d.ts → CloudFieldGetCommand.d.ts} +1 -1
- package/dist/command/{ChatTagDeleteCommand.js → CloudFieldGetCommand.js} +5 -5
- package/dist/command/{ChatTagDeleteCommand.js.map → CloudFieldGetCommand.js.map} +1 -1
- package/dist/command/{ChatFieldListCommand.d.ts → CloudFieldListCommand.d.ts} +1 -1
- package/dist/command/{ChatFieldListCommand.js → CloudFieldListCommand.js} +5 -5
- package/dist/command/CloudFieldListCommand.js.map +1 -0
- package/dist/command/{ChatCategoryGetCommand.d.ts → CloudFieldUpdateCommand.d.ts} +1 -1
- package/dist/command/{ChatFieldUpdateCommand.js → CloudFieldUpdateCommand.js} +5 -5
- package/dist/command/CloudFieldUpdateCommand.js.map +1 -0
- package/dist/command/{ChatGetCommand.d.ts → CloudGetCommand.d.ts} +1 -1
- package/dist/command/{ChatGetCommand.js → CloudGetCommand.js} +5 -5
- package/dist/command/CloudGetCommand.js.map +1 -0
- package/dist/command/{ChatListCommand.d.ts → CloudListCommand.d.ts} +1 -1
- package/dist/command/{ChatListCommand.js → CloudListCommand.js} +5 -5
- package/dist/command/CloudListCommand.js.map +1 -0
- package/dist/command/{ChatTagCommand.d.ts → CloudTagCommand.d.ts} +1 -1
- package/dist/command/CloudTagCommand.js +23 -0
- package/dist/command/CloudTagCommand.js.map +1 -0
- package/dist/command/CloudTagCreateCommand.d.ts +5 -0
- package/dist/command/{ChatTagCreateCommand.js → CloudTagCreateCommand.js} +5 -5
- package/dist/command/CloudTagCreateCommand.js.map +1 -0
- package/dist/command/CloudTagDeleteCommand.d.ts +5 -0
- package/dist/command/CloudTagDeleteCommand.js +38 -0
- package/dist/command/CloudTagDeleteCommand.js.map +1 -0
- package/dist/command/CloudTagGetCommand.d.ts +5 -0
- package/dist/command/{ChatFieldGetCommand.js → CloudTagGetCommand.js} +5 -5
- package/dist/command/CloudTagGetCommand.js.map +1 -0
- package/dist/command/{ChatFieldGetCommand.d.ts → CloudTagListCommand.d.ts} +1 -1
- package/dist/command/{ChatTagListCommand.js → CloudTagListCommand.js} +5 -5
- package/dist/command/CloudTagListCommand.js.map +1 -0
- package/dist/command/CloudTagUpdateCommand.d.ts +5 -0
- package/dist/command/{ChatTagUpdateCommand.js → CloudTagUpdateCommand.js} +5 -5
- package/dist/command/CloudTagUpdateCommand.js.map +1 -0
- package/dist/command/CloudUpdateCommand.d.ts +5 -0
- package/dist/command/CloudUpdateCommand.js +85 -0
- package/dist/command/CloudUpdateCommand.js.map +1 -0
- package/dist/command/DatabaseCreateCommand.js +8 -8
- package/dist/command/DatabaseUpdateCommand.js +8 -8
- package/dist/command/InMemoryStoreCreateCommand.js +8 -8
- package/dist/command/InMemoryStoreUpdateCommand.js +8 -8
- package/dist/command/KubernetesCreateCommand.js +18 -0
- package/dist/command/KubernetesCreateCommand.js.map +1 -1
- package/dist/command/KubernetesUpdateCommand.js +18 -0
- package/dist/command/KubernetesUpdateCommand.js.map +1 -1
- package/dist/command/MessageBrokerCreateCommand.js +8 -8
- package/dist/command/MessageBrokerUpdateCommand.js +8 -8
- package/dist/command/ServerCreateCommand.js +18 -0
- package/dist/command/ServerCreateCommand.js.map +1 -1
- package/dist/command/ServerUpdateCommand.js +18 -0
- package/dist/command/ServerUpdateCommand.js.map +1 -1
- package/dist/command/cli.js +8 -8
- package/dist/command/cli.js.map +1 -1
- package/dist/index.d.ts +36 -32
- package/dist/index.js +36 -32
- package/dist/index.js.map +1 -1
- package/dist/meta/{ChatCategoryMetaTable.d.ts → CloudCategoryMetaTable.d.ts} +2 -2
- package/dist/meta/{ChatCategoryMetaTable.js → CloudCategoryMetaTable.js} +7 -7
- package/dist/meta/CloudCategoryMetaTable.js.map +1 -0
- package/dist/meta/{ChatFieldMetaTable.d.ts → CloudFieldMetaTable.d.ts} +2 -2
- package/dist/meta/{ChatFieldMetaTable.js → CloudFieldMetaTable.js} +7 -7
- package/dist/meta/CloudFieldMetaTable.js.map +1 -0
- package/dist/meta/{ChatMetaTable.d.ts → CloudMetaTable.d.ts} +5 -6
- package/dist/meta/{ChatMetaTable.js → CloudMetaTable.js} +10 -13
- package/dist/meta/CloudMetaTable.js.map +1 -0
- package/dist/meta/{ChatTagMetaTable.d.ts → CloudTagMetaTable.d.ts} +2 -2
- package/dist/meta/{ChatTagMetaTable.js → CloudTagMetaTable.js} +7 -7
- package/dist/meta/CloudTagMetaTable.js.map +1 -0
- package/dist/meta/DatabaseMetaTable.d.ts +2 -2
- package/dist/meta/DatabaseMetaTable.js +2 -2
- package/dist/meta/InMemoryStoreMetaTable.d.ts +2 -2
- package/dist/meta/InMemoryStoreMetaTable.js +2 -2
- package/dist/meta/KubernetesMetaTable.d.ts +2 -0
- package/dist/meta/KubernetesMetaTable.js +2 -0
- package/dist/meta/KubernetesMetaTable.js.map +1 -1
- package/dist/meta/MessageBrokerMetaTable.d.ts +2 -2
- package/dist/meta/MessageBrokerMetaTable.js +2 -2
- package/dist/meta/NamirasoftInfraMetaDatabase.d.ts +8 -8
- package/dist/meta/NamirasoftInfraMetaDatabase.js +9 -9
- package/dist/meta/NamirasoftInfraMetaDatabase.js.map +1 -1
- package/dist/meta/ServerMetaTable.d.ts +2 -0
- package/dist/meta/ServerMetaTable.js +2 -0
- package/dist/meta/ServerMetaTable.js.map +1 -1
- package/dist/row/{ChatCategoryRow.d.ts → CloudCategoryRow.d.ts} +1 -1
- package/dist/row/CloudCategoryRow.js +3 -0
- package/dist/row/CloudCategoryRow.js.map +1 -0
- package/dist/row/{ChatFieldRow.d.ts → CloudFieldRow.d.ts} +1 -1
- package/dist/row/{ChatFieldRow.js → CloudFieldRow.js} +1 -1
- package/dist/row/CloudFieldRow.js.map +1 -0
- package/dist/row/CloudInputRow.d.ts +7 -0
- package/dist/row/{ChatCategoryRow.js → CloudInputRow.js} +1 -1
- package/dist/row/CloudInputRow.js.map +1 -0
- package/dist/row/{ChatRow.d.ts → CloudRow.d.ts} +4 -5
- package/dist/row/{ChatRow.js → CloudRow.js} +1 -1
- package/dist/row/CloudRow.js.map +1 -0
- package/dist/row/{ChatTagRow.d.ts → CloudTagRow.d.ts} +1 -1
- package/dist/row/{ChatTagRow.js → CloudTagRow.js} +1 -1
- package/dist/row/CloudTagRow.js.map +1 -0
- package/dist/row/DatabaseInputRow.d.ts +2 -2
- package/dist/row/DatabaseRow.d.ts +2 -2
- package/dist/row/InMemoryStoreInputRow.d.ts +2 -2
- package/dist/row/InMemoryStoreRow.d.ts +2 -2
- package/dist/row/KubernetesInputRow.d.ts +2 -0
- package/dist/row/KubernetesRow.d.ts +2 -0
- package/dist/row/MessageBrokerInputRow.d.ts +2 -2
- package/dist/row/MessageBrokerRow.d.ts +2 -2
- package/dist/row/ServerInputRow.d.ts +2 -0
- package/dist/row/ServerRow.d.ts +2 -0
- package/package.json +1 -1
- package/src/NamirasoftInfraServer.ts +13 -13
- package/src/{NamirasoftInfraServerChat.ts → NamirasoftInfraServerCloud.ts} +29 -8
- package/src/{NamirasoftInfraServerChatCategory.ts → NamirasoftInfraServerCloudCategory.ts} +12 -12
- package/src/{NamirasoftInfraServerChatField.ts → NamirasoftInfraServerCloudField.ts} +15 -15
- package/src/{NamirasoftInfraServerChatTag.ts → NamirasoftInfraServerCloudTag.ts} +15 -15
- package/src/NamirasoftInfraServerMetric.ts +2 -2
- package/src/NamirasoftInfraServerMonitor.ts +2 -3
- package/src/command/{ChatCategoryCommand.ts → CloudCategoryCommand.ts} +9 -9
- package/src/command/{ChatCategoryCreateCommand.ts → CloudCategoryCreateCommand.ts} +2 -2
- package/src/command/{ChatCategoryDeleteCommand.ts → CloudCategoryDeleteCommand.ts} +2 -2
- package/src/command/{ChatFieldDeleteCommand.ts → CloudCategoryGetCommand.ts} +2 -2
- package/src/command/{ChatCategoryListCommand.ts → CloudCategoryListCommand.ts} +2 -2
- package/src/command/{ChatCommand.ts → CloudCommand.ts} +11 -5
- package/src/command/CloudCreateCommand.ts +92 -0
- package/src/command/{ChatTagGetCommand.ts → CloudDeleteCommand.ts} +2 -2
- package/src/command/{ChatFieldCommand.ts → CloudFieldCommand.ts} +11 -11
- package/src/command/{ChatFieldCreateCommand.ts → CloudFieldCreateCommand.ts} +2 -2
- package/src/command/{ChatCategoryGetCommand.ts → CloudFieldDeleteCommand.ts} +2 -2
- package/src/command/{ChatTagDeleteCommand.ts → CloudFieldGetCommand.ts} +2 -2
- package/src/command/{ChatFieldListCommand.ts → CloudFieldListCommand.ts} +2 -2
- package/src/command/{ChatFieldUpdateCommand.ts → CloudFieldUpdateCommand.ts} +2 -2
- package/src/command/{ChatGetCommand.ts → CloudGetCommand.ts} +2 -2
- package/src/command/{ChatListCommand.ts → CloudListCommand.ts} +2 -2
- package/src/command/{ChatTagCommand.ts → CloudTagCommand.ts} +11 -11
- package/src/command/{ChatTagCreateCommand.ts → CloudTagCreateCommand.ts} +2 -2
- package/src/command/CloudTagDeleteCommand.ts +45 -0
- package/src/command/{ChatFieldGetCommand.ts → CloudTagGetCommand.ts} +2 -2
- package/src/command/{ChatTagListCommand.ts → CloudTagListCommand.ts} +2 -2
- package/src/command/{ChatTagUpdateCommand.ts → CloudTagUpdateCommand.ts} +2 -2
- package/src/command/CloudUpdateCommand.ts +92 -0
- package/src/command/DatabaseCreateCommand.ts +8 -8
- package/src/command/DatabaseUpdateCommand.ts +8 -8
- package/src/command/InMemoryStoreCreateCommand.ts +8 -8
- package/src/command/InMemoryStoreUpdateCommand.ts +8 -8
- package/src/command/KubernetesCreateCommand.ts +18 -0
- package/src/command/KubernetesUpdateCommand.ts +18 -0
- package/src/command/MessageBrokerCreateCommand.ts +8 -8
- package/src/command/MessageBrokerUpdateCommand.ts +8 -8
- package/src/command/ServerCreateCommand.ts +18 -0
- package/src/command/ServerUpdateCommand.ts +18 -0
- package/src/command/cli.ts +8 -8
- package/src/index.ts +36 -32
- package/src/meta/{ChatCategoryMetaTable.ts → CloudCategoryMetaTable.ts} +5 -5
- package/src/meta/{ChatFieldMetaTable.ts → CloudFieldMetaTable.ts} +5 -5
- package/src/meta/{ChatMetaTable.ts → CloudMetaTable.ts} +11 -15
- package/src/meta/{ChatTagMetaTable.ts → CloudTagMetaTable.ts} +5 -5
- package/src/meta/DatabaseMetaTable.ts +4 -4
- package/src/meta/InMemoryStoreMetaTable.ts +4 -4
- package/src/meta/KubernetesMetaTable.ts +4 -0
- package/src/meta/MessageBrokerMetaTable.ts +4 -4
- package/src/meta/NamirasoftInfraMetaDatabase.ts +13 -13
- package/src/meta/ServerMetaTable.ts +4 -0
- package/src/row/{ChatCategoryRow.ts → CloudCategoryRow.ts} +1 -1
- package/src/row/{ChatFieldRow.ts → CloudFieldRow.ts} +1 -1
- package/src/row/CloudInputRow.ts +28 -0
- package/src/row/{ChatRow.ts → CloudRow.ts} +4 -5
- package/src/row/{ChatTagRow.ts → CloudTagRow.ts} +1 -1
- package/src/row/DatabaseInputRow.ts +2 -2
- package/src/row/DatabaseRow.ts +2 -2
- package/src/row/InMemoryStoreInputRow.ts +2 -2
- package/src/row/InMemoryStoreRow.ts +2 -2
- package/src/row/KubernetesInputRow.ts +2 -0
- package/src/row/KubernetesRow.ts +2 -0
- package/src/row/MessageBrokerInputRow.ts +2 -2
- package/src/row/MessageBrokerRow.ts +2 -2
- package/src/row/ServerInputRow.ts +2 -0
- package/src/row/ServerRow.ts +2 -0
- package/dist/NamirasoftInfraServerChat.js.map +0 -1
- package/dist/NamirasoftInfraServerChatCategory.js.map +0 -1
- package/dist/NamirasoftInfraServerChatField.js.map +0 -1
- package/dist/NamirasoftInfraServerChatTag.js.map +0 -1
- package/dist/command/ChatCategoryCommand.js +0 -21
- package/dist/command/ChatCategoryCommand.js.map +0 -1
- package/dist/command/ChatCategoryCreateCommand.js.map +0 -1
- package/dist/command/ChatCategoryDeleteCommand.js.map +0 -1
- package/dist/command/ChatCategoryGetCommand.js.map +0 -1
- package/dist/command/ChatCategoryListCommand.js.map +0 -1
- package/dist/command/ChatCommand.js +0 -17
- package/dist/command/ChatCommand.js.map +0 -1
- package/dist/command/ChatFieldCommand.js +0 -23
- package/dist/command/ChatFieldCommand.js.map +0 -1
- package/dist/command/ChatFieldCreateCommand.js.map +0 -1
- package/dist/command/ChatFieldDeleteCommand.js.map +0 -1
- package/dist/command/ChatFieldGetCommand.js.map +0 -1
- package/dist/command/ChatFieldListCommand.js.map +0 -1
- package/dist/command/ChatFieldUpdateCommand.d.ts +0 -5
- package/dist/command/ChatFieldUpdateCommand.js.map +0 -1
- package/dist/command/ChatGetCommand.js.map +0 -1
- package/dist/command/ChatListCommand.js.map +0 -1
- package/dist/command/ChatTagCommand.js +0 -23
- package/dist/command/ChatTagCommand.js.map +0 -1
- package/dist/command/ChatTagCreateCommand.js.map +0 -1
- package/dist/command/ChatTagDeleteCommand.d.ts +0 -5
- package/dist/command/ChatTagGetCommand.js.map +0 -1
- package/dist/command/ChatTagListCommand.js.map +0 -1
- package/dist/command/ChatTagUpdateCommand.d.ts +0 -5
- package/dist/command/ChatTagUpdateCommand.js.map +0 -1
- package/dist/meta/ChatCategoryMetaTable.js.map +0 -1
- package/dist/meta/ChatFieldMetaTable.js.map +0 -1
- package/dist/meta/ChatMetaTable.js.map +0 -1
- package/dist/meta/ChatTagMetaTable.js.map +0 -1
- package/dist/row/ChatCategoryRow.js.map +0 -1
- package/dist/row/ChatFieldRow.js.map +0 -1
- package/dist/row/ChatRow.js.map +0 -1
- package/dist/row/ChatTagRow.js.map +0 -1
|
@@ -9,7 +9,7 @@ export type MessageBrokerInputRow = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
type: MessageBrokerType;
|
|
11
11
|
connect_type: MessageBrokerConnectType;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
connect_server_id: (string | null);
|
|
13
|
+
connect_kubernetes_id: (string | null);
|
|
14
14
|
description: string;
|
|
15
15
|
};
|
|
@@ -11,8 +11,8 @@ export type MessageBrokerRow = {
|
|
|
11
11
|
name: string;
|
|
12
12
|
type: MessageBrokerType;
|
|
13
13
|
connect_type: MessageBrokerConnectType;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
connect_server_id: (string | null);
|
|
15
|
+
connect_kubernetes_id: (string | null);
|
|
16
16
|
description: string;
|
|
17
17
|
created_at: Date;
|
|
18
18
|
updated_at: Date;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ServerMetricRetentionUnit } from "../enum/ServerMetricRetentionUnit";
|
|
2
2
|
export type ServerInputRow = {
|
|
3
3
|
workspace_id: string;
|
|
4
|
+
service_user_id: string;
|
|
5
|
+
service_session_id: string;
|
|
4
6
|
project_id: string;
|
|
5
7
|
environment_id: string;
|
|
6
8
|
log_group_id: (string | null);
|
package/dist/row/ServerRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -23,10 +23,10 @@ import { NamirasoftInfraServerAlert } from "./NamirasoftInfraServerAlert";
|
|
|
23
23
|
import { NamirasoftInfraServerAlertCategory } from "./NamirasoftInfraServerAlertCategory";
|
|
24
24
|
import { NamirasoftInfraServerAlertField } from "./NamirasoftInfraServerAlertField";
|
|
25
25
|
import { NamirasoftInfraServerAlertTag } from "./NamirasoftInfraServerAlertTag";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
26
|
+
import { NamirasoftInfraServerCloud } from "./NamirasoftInfraServerCloud";
|
|
27
|
+
import { NamirasoftInfraServerCloudCategory } from "./NamirasoftInfraServerCloudCategory";
|
|
28
|
+
import { NamirasoftInfraServerCloudField } from "./NamirasoftInfraServerCloudField";
|
|
29
|
+
import { NamirasoftInfraServerCloudTag } from "./NamirasoftInfraServerCloudTag";
|
|
30
30
|
import { NamirasoftInfraServerDatabase } from "./NamirasoftInfraServerDatabase";
|
|
31
31
|
import { NamirasoftInfraServerDatabaseCategory } from "./NamirasoftInfraServerDatabaseCategory";
|
|
32
32
|
import { NamirasoftInfraServerDatabaseField } from "./NamirasoftInfraServerDatabaseField";
|
|
@@ -99,10 +99,6 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
99
99
|
alert_field: NamirasoftInfraServerAlertField;
|
|
100
100
|
alert_tag: NamirasoftInfraServerAlertTag;
|
|
101
101
|
alert: NamirasoftInfraServerAlert;
|
|
102
|
-
chat_category: NamirasoftInfraServerChatCategory;
|
|
103
|
-
chat_field: NamirasoftInfraServerChatField;
|
|
104
|
-
chat_tag: NamirasoftInfraServerChatTag;
|
|
105
|
-
chat: NamirasoftInfraServerChat;
|
|
106
102
|
database_category: NamirasoftInfraServerDatabaseCategory;
|
|
107
103
|
database_field: NamirasoftInfraServerDatabaseField;
|
|
108
104
|
database_tag: NamirasoftInfraServerDatabaseTag;
|
|
@@ -127,9 +123,13 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
127
123
|
monitor_field: NamirasoftInfraServerMonitorField;
|
|
128
124
|
monitor_tag: NamirasoftInfraServerMonitorTag;
|
|
129
125
|
monitor: NamirasoftInfraServerMonitor;
|
|
126
|
+
cloud_category: NamirasoftInfraServerCloudCategory;
|
|
127
|
+
cloud_field: NamirasoftInfraServerCloudField;
|
|
128
|
+
cloud_tag: NamirasoftInfraServerCloudTag;
|
|
129
|
+
cloud: NamirasoftInfraServerCloud;
|
|
130
130
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
131
131
|
{
|
|
132
|
-
super(base_url, `1.4.
|
|
132
|
+
super(base_url, `1.4.2`, token_manager, onError);
|
|
133
133
|
this.healthz = new NamirasoftInfraServerHealthz(this);
|
|
134
134
|
this.health = new NamirasoftInfraServerHealth(this);
|
|
135
135
|
this.metrics = new NamirasoftInfraServerMetrics(this);
|
|
@@ -154,10 +154,6 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
154
154
|
this.alert_field = new NamirasoftInfraServerAlertField(this);
|
|
155
155
|
this.alert_tag = new NamirasoftInfraServerAlertTag(this);
|
|
156
156
|
this.alert = new NamirasoftInfraServerAlert(this);
|
|
157
|
-
this.chat_category = new NamirasoftInfraServerChatCategory(this);
|
|
158
|
-
this.chat_field = new NamirasoftInfraServerChatField(this);
|
|
159
|
-
this.chat_tag = new NamirasoftInfraServerChatTag(this);
|
|
160
|
-
this.chat = new NamirasoftInfraServerChat(this);
|
|
161
157
|
this.database_category = new NamirasoftInfraServerDatabaseCategory(this);
|
|
162
158
|
this.database_field = new NamirasoftInfraServerDatabaseField(this);
|
|
163
159
|
this.database_tag = new NamirasoftInfraServerDatabaseTag(this);
|
|
@@ -182,5 +178,9 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
182
178
|
this.monitor_field = new NamirasoftInfraServerMonitorField(this);
|
|
183
179
|
this.monitor_tag = new NamirasoftInfraServerMonitorTag(this);
|
|
184
180
|
this.monitor = new NamirasoftInfraServerMonitor(this);
|
|
181
|
+
this.cloud_category = new NamirasoftInfraServerCloudCategory(this);
|
|
182
|
+
this.cloud_field = new NamirasoftInfraServerCloudField(this);
|
|
183
|
+
this.cloud_tag = new NamirasoftInfraServerCloudTag(this);
|
|
184
|
+
this.cloud = new NamirasoftInfraServerCloud(this);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
@@ -19,32 +19,53 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import {
|
|
22
|
+
import { CloudInputRow } from "./row/CloudInputRow";
|
|
23
|
+
import { CloudRow } from "./row/CloudRow";
|
|
23
24
|
import { FilterItem } from "namirasoft-core";
|
|
24
25
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
25
26
|
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
26
27
|
import { SortItem } from "namirasoft-core";
|
|
27
28
|
|
|
28
|
-
export class
|
|
29
|
+
export class NamirasoftInfraServerCloud extends NamirasoftInfraServerBase
|
|
29
30
|
{
|
|
30
31
|
constructor(server: NamirasoftInfraServer)
|
|
31
32
|
{
|
|
32
33
|
super(server);
|
|
33
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);
|
|
34
38
|
this.List = this.List.bind(this);
|
|
35
39
|
}
|
|
36
|
-
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<
|
|
40
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<CloudRow>
|
|
37
41
|
{
|
|
38
|
-
let path = `/
|
|
39
|
-
let { data } = await this.server._get<
|
|
42
|
+
let path = `/cloud/${id}`;
|
|
43
|
+
let { data } = await this.server._get<CloudRow>(path, {}, config);
|
|
40
44
|
return data;
|
|
41
45
|
}
|
|
42
|
-
async
|
|
46
|
+
async Create(body: CloudInputRow, config?: BaseServerConfig<any>): Promise<CloudRow>
|
|
47
|
+
{
|
|
48
|
+
let path = `/cloud`;
|
|
49
|
+
let { data } = await this.server._post<CloudRow>(path, {}, body, config);
|
|
50
|
+
return data;
|
|
51
|
+
}
|
|
52
|
+
async Update(id: (string | null), body: CloudInputRow, config?: BaseServerConfig<any>): Promise<CloudRow>
|
|
53
|
+
{
|
|
54
|
+
let path = `/cloud/${id}`;
|
|
55
|
+
let { data } = await this.server._put<CloudRow>(path, {}, body, config);
|
|
56
|
+
return data;
|
|
57
|
+
}
|
|
58
|
+
async Delete(id: string, config?: BaseServerConfig<any>): Promise<void>
|
|
59
|
+
{
|
|
60
|
+
let path = `/cloud/${id}`;
|
|
61
|
+
await this.server._delete<void>(path, {}, config);
|
|
62
|
+
}
|
|
63
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: CloudRow[], count: number }>
|
|
43
64
|
{
|
|
44
65
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
45
66
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
46
|
-
let path = `/
|
|
47
|
-
let { data } = await this.server._get<{ rows:
|
|
67
|
+
let path = `/cloud/list`;
|
|
68
|
+
let { data } = await this.server._get<{ rows: CloudRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
48
69
|
return data;
|
|
49
70
|
}
|
|
50
71
|
};
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import {
|
|
22
|
+
import { CloudCategoryRow } from "./row/CloudCategoryRow";
|
|
23
23
|
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
24
24
|
import { FilterItem } from "namirasoft-core";
|
|
25
25
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
26
|
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
27
|
import { SortItem } from "namirasoft-core";
|
|
28
28
|
|
|
29
|
-
export class
|
|
29
|
+
export class NamirasoftInfraServerCloudCategory extends NamirasoftInfraServerBase
|
|
30
30
|
{
|
|
31
31
|
constructor(server: NamirasoftInfraServer)
|
|
32
32
|
{
|
|
@@ -36,29 +36,29 @@ export class NamirasoftInfraServerChatCategory extends NamirasoftInfraServerBase
|
|
|
36
36
|
this.Create = this.Create.bind(this);
|
|
37
37
|
this.Delete = this.Delete.bind(this);
|
|
38
38
|
}
|
|
39
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows:
|
|
39
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: CloudCategoryRow[], count: number }>
|
|
40
40
|
{
|
|
41
41
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
42
42
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
43
|
-
let path = `
|
|
44
|
-
let { data } = await this.server._get<{ rows:
|
|
43
|
+
let path = `cloud/category/list`;
|
|
44
|
+
let { data } = await this.server._get<{ rows: CloudCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
45
45
|
return data;
|
|
46
46
|
}
|
|
47
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
47
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<CloudCategoryRow>
|
|
48
48
|
{
|
|
49
|
-
let path = `
|
|
50
|
-
let { data } = await this.server._get<
|
|
49
|
+
let path = `cloud/category/${id}`;
|
|
50
|
+
let { data } = await this.server._get<CloudCategoryRow>(path, {}, config);
|
|
51
51
|
return data;
|
|
52
52
|
}
|
|
53
|
-
async Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<
|
|
53
|
+
async Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<CloudCategoryRow>
|
|
54
54
|
{
|
|
55
|
-
let path = `
|
|
56
|
-
let { data } = await this.server._post<
|
|
55
|
+
let path = `cloud/category`;
|
|
56
|
+
let { data } = await this.server._post<CloudCategoryRow>(path, {}, body, config);
|
|
57
57
|
return data;
|
|
58
58
|
}
|
|
59
59
|
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
60
60
|
{
|
|
61
|
-
let path = `
|
|
61
|
+
let path = `cloud/category/${id}`;
|
|
62
62
|
await this.server._delete<void>(path, {}, config);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import {
|
|
22
|
+
import { CloudFieldRow } from "./row/CloudFieldRow";
|
|
23
23
|
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
24
24
|
import { FilterItem } from "namirasoft-core";
|
|
25
25
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
26
|
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
27
|
import { SortItem } from "namirasoft-core";
|
|
28
28
|
|
|
29
|
-
export class
|
|
29
|
+
export class NamirasoftInfraServerCloudField extends NamirasoftInfraServerBase
|
|
30
30
|
{
|
|
31
31
|
constructor(server: NamirasoftInfraServer)
|
|
32
32
|
{
|
|
@@ -37,35 +37,35 @@ export class NamirasoftInfraServerChatField extends NamirasoftInfraServerBase
|
|
|
37
37
|
this.Update = this.Update.bind(this);
|
|
38
38
|
this.Delete = this.Delete.bind(this);
|
|
39
39
|
}
|
|
40
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows:
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: CloudFieldRow[], count: number }>
|
|
41
41
|
{
|
|
42
42
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
43
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
-
let path = `
|
|
45
|
-
let { data } = await this.server._get<{ rows:
|
|
44
|
+
let path = `cloud/field/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: CloudFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
46
|
return data;
|
|
47
47
|
}
|
|
48
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<CloudFieldRow>
|
|
49
49
|
{
|
|
50
|
-
let path = `
|
|
51
|
-
let { data } = await this.server._get<
|
|
50
|
+
let path = `cloud/field/${id}`;
|
|
51
|
+
let { data } = await this.server._get<CloudFieldRow>(path, {}, config);
|
|
52
52
|
return data;
|
|
53
53
|
}
|
|
54
|
-
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<
|
|
54
|
+
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<CloudFieldRow>
|
|
55
55
|
{
|
|
56
|
-
let path = `
|
|
57
|
-
let { data } = await this.server._post<
|
|
56
|
+
let path = `cloud/field`;
|
|
57
|
+
let { data } = await this.server._post<CloudFieldRow>(path, {}, body, config);
|
|
58
58
|
return data;
|
|
59
59
|
}
|
|
60
|
-
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<
|
|
60
|
+
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<CloudFieldRow>
|
|
61
61
|
{
|
|
62
|
-
let path = `
|
|
63
|
-
let { data } = await this.server._put<
|
|
62
|
+
let path = `cloud/field/${id}`;
|
|
63
|
+
let { data } = await this.server._put<CloudFieldRow>(path, {}, body, config);
|
|
64
64
|
return data;
|
|
65
65
|
}
|
|
66
66
|
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
67
|
{
|
|
68
|
-
let path = `
|
|
68
|
+
let path = `cloud/field/${id}`;
|
|
69
69
|
await this.server._delete<void>(path, {}, config);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import {
|
|
22
|
+
import { CloudTagRow } from "./row/CloudTagRow";
|
|
23
23
|
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
24
24
|
import { FilterItem } from "namirasoft-core";
|
|
25
25
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
26
|
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
27
|
import { SortItem } from "namirasoft-core";
|
|
28
28
|
|
|
29
|
-
export class
|
|
29
|
+
export class NamirasoftInfraServerCloudTag extends NamirasoftInfraServerBase
|
|
30
30
|
{
|
|
31
31
|
constructor(server: NamirasoftInfraServer)
|
|
32
32
|
{
|
|
@@ -37,35 +37,35 @@ export class NamirasoftInfraServerChatTag extends NamirasoftInfraServerBase
|
|
|
37
37
|
this.Update = this.Update.bind(this);
|
|
38
38
|
this.Delete = this.Delete.bind(this);
|
|
39
39
|
}
|
|
40
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows:
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: CloudTagRow[], count: number }>
|
|
41
41
|
{
|
|
42
42
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
43
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
-
let path = `
|
|
45
|
-
let { data } = await this.server._get<{ rows:
|
|
44
|
+
let path = `cloud/tag/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: CloudTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
46
|
return data;
|
|
47
47
|
}
|
|
48
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<CloudTagRow>
|
|
49
49
|
{
|
|
50
|
-
let path = `
|
|
51
|
-
let { data } = await this.server._get<
|
|
50
|
+
let path = `cloud/tag/${id}`;
|
|
51
|
+
let { data } = await this.server._get<CloudTagRow>(path, {}, config);
|
|
52
52
|
return data;
|
|
53
53
|
}
|
|
54
|
-
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<
|
|
54
|
+
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<CloudTagRow>
|
|
55
55
|
{
|
|
56
|
-
let path = `
|
|
57
|
-
let { data } = await this.server._post<
|
|
56
|
+
let path = `cloud/tag`;
|
|
57
|
+
let { data } = await this.server._post<CloudTagRow>(path, {}, body, config);
|
|
58
58
|
return data;
|
|
59
59
|
}
|
|
60
|
-
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<
|
|
60
|
+
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<CloudTagRow>
|
|
61
61
|
{
|
|
62
|
-
let path = `
|
|
63
|
-
let { data } = await this.server._put<
|
|
62
|
+
let path = `cloud/tag/${id}`;
|
|
63
|
+
let { data } = await this.server._put<CloudTagRow>(path, {}, body, config);
|
|
64
64
|
return data;
|
|
65
65
|
}
|
|
66
66
|
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
67
|
{
|
|
68
|
-
let path = `
|
|
68
|
+
let path = `cloud/tag/${id}`;
|
|
69
69
|
await this.server._delete<void>(path, {}, config);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -69,10 +69,10 @@ export class NamirasoftInfraServerMetric extends NamirasoftInfraServerBase
|
|
|
69
69
|
let { data } = await this.server._get<{ rows: MetricRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
70
70
|
return data;
|
|
71
71
|
}
|
|
72
|
-
async Result(config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
72
|
+
async Result(config?: BaseServerConfig<any>): Promise<{ rows: MetricRow[], count: number }>
|
|
73
73
|
{
|
|
74
74
|
let path = `/result`;
|
|
75
|
-
let { data } = await this.server._get<MetricRow>(path, {}, config);
|
|
75
|
+
let { data } = await this.server._get<{ rows: MetricRow[], count: number }>(path, {}, config);
|
|
76
76
|
return data;
|
|
77
77
|
}
|
|
78
78
|
};
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseServerConfig } from "namirasoft-core";
|
|
22
22
|
import { FilterItem } from "namirasoft-core";
|
|
23
|
-
import { MetricRow } from "./row/MetricRow";
|
|
24
23
|
import { MonitorInputRow } from "./row/MonitorInputRow";
|
|
25
24
|
import { MonitorRow } from "./row/MonitorRow";
|
|
26
25
|
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
@@ -70,10 +69,10 @@ export class NamirasoftInfraServerMonitor extends NamirasoftInfraServerBase
|
|
|
70
69
|
let { data } = await this.server._get<{ rows: MonitorRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
71
70
|
return data;
|
|
72
71
|
}
|
|
73
|
-
async Result(config?: BaseServerConfig<any>): Promise<
|
|
72
|
+
async Result(config?: BaseServerConfig<any>): Promise<{ rows: MonitorRow[], count: number }>
|
|
74
73
|
{
|
|
75
74
|
let path = `/result`;
|
|
76
|
-
let { data } = await this.server._get<
|
|
75
|
+
let { data } = await this.server._get<{ rows: MonitorRow[], count: number }>(path, {}, config);
|
|
77
76
|
return data;
|
|
78
77
|
}
|
|
79
78
|
};
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
22
|
+
import { CloudCategoryCreateCommand } from "./CloudCategoryCreateCommand";
|
|
23
|
+
import { CloudCategoryDeleteCommand } from "./CloudCategoryDeleteCommand";
|
|
24
|
+
import { CloudCategoryGetCommand } from "./CloudCategoryGetCommand";
|
|
25
|
+
import { CloudCategoryListCommand } from "./CloudCategoryListCommand";
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class CloudCategoryCommand extends BaseNavigatorCommand
|
|
28
28
|
{
|
|
29
29
|
constructor(argv: string[])
|
|
30
30
|
{
|
|
31
31
|
super(argv, {
|
|
32
|
-
"list":
|
|
33
|
-
"get":
|
|
34
|
-
"create":
|
|
35
|
-
"delete":
|
|
32
|
+
"list": CloudCategoryListCommand,
|
|
33
|
+
"get": CloudCategoryGetCommand,
|
|
34
|
+
"create": CloudCategoryCreateCommand,
|
|
35
|
+
"delete": CloudCategoryDeleteCommand,
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
|
23
23
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
|
25
25
|
|
|
26
|
-
export class
|
|
26
|
+
export class CloudCategoryCreateCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -56,7 +56,7 @@ export class ChatCategoryCreateCommand extends BaseFinalCommand
|
|
|
56
56
|
token_manager.setValue(token, false);
|
|
57
57
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
58
58
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
59
|
-
let ans = await server.
|
|
59
|
+
let ans = await server.cloud_category.Create({
|
|
60
60
|
entity_id: this.option_values.entity_id,
|
|
61
61
|
category_id: this.option_values.category_id
|
|
62
62
|
});
|
|
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
|
23
23
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
|
25
25
|
|
|
26
|
-
export class
|
|
26
|
+
export class CloudCategoryDeleteCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatCategoryDeleteCommand extends BaseFinalCommand
|
|
|
39
39
|
token_manager.setValue(token, false);
|
|
40
40
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
41
41
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.
|
|
42
|
+
let ans = await server.cloud_category.Delete(this.arg_values[0]);
|
|
43
43
|
this.app.logger.success(JSON.stringify(ans));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
|
23
23
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
|
25
25
|
|
|
26
|
-
export class
|
|
26
|
+
export class CloudCategoryGetCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatFieldDeleteCommand extends BaseFinalCommand
|
|
|
39
39
|
token_manager.setValue(token, false);
|
|
40
40
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
41
41
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.
|
|
42
|
+
let ans = await server.cloud_category.Get(this.arg_values[0]);
|
|
43
43
|
this.app.logger.success(JSON.stringify(ans));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
|
23
23
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
|
25
25
|
|
|
26
|
-
export class
|
|
26
|
+
export class CloudCategoryListCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatCategoryListCommand extends BaseFinalCommand
|
|
|
39
39
|
token_manager.setValue(token, false);
|
|
40
40
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
41
41
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.
|
|
42
|
+
let ans = await server.cloud_category.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
|
|
43
43
|
this.app.logger.success(JSON.stringify(ans));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -19,16 +19,22 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
22
|
+
import { CloudCreateCommand } from "./CloudCreateCommand";
|
|
23
|
+
import { CloudDeleteCommand } from "./CloudDeleteCommand";
|
|
24
|
+
import { CloudGetCommand } from "./CloudGetCommand";
|
|
25
|
+
import { CloudListCommand } from "./CloudListCommand";
|
|
26
|
+
import { CloudUpdateCommand } from "./CloudUpdateCommand";
|
|
24
27
|
|
|
25
|
-
export class
|
|
28
|
+
export class CloudCommand extends BaseNavigatorCommand
|
|
26
29
|
{
|
|
27
30
|
constructor(argv: string[])
|
|
28
31
|
{
|
|
29
32
|
super(argv, {
|
|
30
|
-
"get":
|
|
31
|
-
"
|
|
33
|
+
"get": CloudGetCommand,
|
|
34
|
+
"create": CloudCreateCommand,
|
|
35
|
+
"update": CloudUpdateCommand,
|
|
36
|
+
"delete": CloudDeleteCommand,
|
|
37
|
+
"list": CloudListCommand,
|
|
32
38
|
});
|
|
33
39
|
}
|
|
34
40
|
};
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class CloudCreateCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, [], [
|
|
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: "ctl_on_server_id",
|
|
41
|
+
short: "",
|
|
42
|
+
description: "Provides the value of 'ctl_on_server_id' in body",
|
|
43
|
+
optional: false,
|
|
44
|
+
args: ["ctl_on_server_id"],
|
|
45
|
+
defaults: [""]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "name",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'name' in body",
|
|
51
|
+
optional: false,
|
|
52
|
+
args: ["name"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "type",
|
|
57
|
+
short: "",
|
|
58
|
+
description: "Provides the value of 'type' in body",
|
|
59
|
+
optional: false,
|
|
60
|
+
args: ["type"],
|
|
61
|
+
defaults: [""]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "description",
|
|
65
|
+
short: "",
|
|
66
|
+
description: "Provides the value of 'description' in body",
|
|
67
|
+
optional: false,
|
|
68
|
+
args: ["description"],
|
|
69
|
+
defaults: [""]
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
}
|
|
73
|
+
override async exec()
|
|
74
|
+
{
|
|
75
|
+
let token = this.app.storage.getNSAToken();
|
|
76
|
+
if (token == null)
|
|
77
|
+
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
78
|
+
let storage = new IStorageMemoryDedicated();
|
|
79
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
80
|
+
token_manager.setValue(token, false);
|
|
81
|
+
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
82
|
+
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
83
|
+
let ans = await server.cloud.Create({
|
|
84
|
+
workspace_id: this.option_values.workspace_id,
|
|
85
|
+
ctl_on_server_id: this.option_values.ctl_on_server_id,
|
|
86
|
+
name: this.option_values.name,
|
|
87
|
+
type: this.option_values.type,
|
|
88
|
+
description: this.option_values.description
|
|
89
|
+
});
|
|
90
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
91
|
+
}
|
|
92
|
+
};
|