namirasoft-infra 1.4.1 → 1.4.3
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/AlertCreateCommand.js +1 -1
- package/dist/command/AlertCreateCommand.js.map +1 -1
- package/dist/command/AlertUpdateCommand.js +1 -1
- package/dist/command/AlertUpdateCommand.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 +9 -9
- package/dist/command/DatabaseCreateCommand.js.map +1 -1
- package/dist/command/DatabaseUpdateCommand.js +9 -9
- package/dist/command/DatabaseUpdateCommand.js.map +1 -1
- package/dist/command/EnvironmentCreateCommand.js +1 -1
- package/dist/command/EnvironmentCreateCommand.js.map +1 -1
- package/dist/command/EnvironmentUpdateCommand.js +1 -1
- package/dist/command/EnvironmentUpdateCommand.js.map +1 -1
- package/dist/command/InMemoryStoreCreateCommand.js +9 -9
- package/dist/command/InMemoryStoreCreateCommand.js.map +1 -1
- package/dist/command/InMemoryStoreUpdateCommand.js +9 -9
- package/dist/command/InMemoryStoreUpdateCommand.js.map +1 -1
- package/dist/command/IncidentCreateCommand.js +1 -1
- package/dist/command/IncidentCreateCommand.js.map +1 -1
- package/dist/command/IncidentUpdateCommand.js +1 -1
- package/dist/command/IncidentUpdateCommand.js.map +1 -1
- package/dist/command/KubernetesCreateCommand.js +37 -1
- package/dist/command/KubernetesCreateCommand.js.map +1 -1
- package/dist/command/KubernetesUpdateCommand.js +37 -1
- package/dist/command/KubernetesUpdateCommand.js.map +1 -1
- package/dist/command/MessageBrokerCreateCommand.js +9 -9
- package/dist/command/MessageBrokerCreateCommand.js.map +1 -1
- package/dist/command/MessageBrokerUpdateCommand.js +9 -9
- package/dist/command/MessageBrokerUpdateCommand.js.map +1 -1
- package/dist/command/MetricCreateCommand.js +4 -13
- package/dist/command/MetricCreateCommand.js.map +1 -1
- package/dist/command/MetricUpdateCommand.js +4 -13
- package/dist/command/MetricUpdateCommand.js.map +1 -1
- package/dist/command/MonitorCreateCommand.js +5 -14
- package/dist/command/MonitorCreateCommand.js.map +1 -1
- package/dist/command/MonitorUpdateCommand.js +5 -14
- package/dist/command/MonitorUpdateCommand.js.map +1 -1
- package/dist/command/ProjectCreateCommand.js +1 -1
- package/dist/command/ProjectCreateCommand.js.map +1 -1
- package/dist/command/ProjectUpdateCommand.js +1 -1
- package/dist/command/ProjectUpdateCommand.js.map +1 -1
- package/dist/command/ServerCreateCommand.js +28 -1
- package/dist/command/ServerCreateCommand.js.map +1 -1
- package/dist/command/ServerUpdateCommand.js +28 -1
- 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/enum/CloudType.d.ts +6 -0
- package/dist/enum/CloudType.js +11 -0
- package/dist/enum/CloudType.js.map +1 -0
- package/dist/enum/KubernetesCloud.d.ts +6 -0
- package/dist/enum/KubernetesCloud.js +11 -0
- package/dist/enum/KubernetesCloud.js.map +1 -0
- package/dist/enum/ServerCloud.d.ts +6 -0
- package/dist/enum/ServerCloud.js +11 -0
- package/dist/enum/ServerCloud.js.map +1 -0
- package/dist/index.d.ts +39 -34
- package/dist/index.js +39 -34
- package/dist/index.js.map +1 -1
- package/dist/meta/AlertMetaTable.js +1 -1
- package/dist/meta/AlertMetaTable.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 +3 -3
- package/dist/meta/DatabaseMetaTable.js.map +1 -1
- package/dist/meta/EnvironmentMetaTable.js +1 -1
- package/dist/meta/EnvironmentMetaTable.js.map +1 -1
- package/dist/meta/InMemoryStoreMetaTable.d.ts +2 -2
- package/dist/meta/InMemoryStoreMetaTable.js +3 -3
- package/dist/meta/InMemoryStoreMetaTable.js.map +1 -1
- package/dist/meta/IncidentMetaTable.js +1 -1
- package/dist/meta/IncidentMetaTable.js.map +1 -1
- package/dist/meta/KubernetesMetaTable.d.ts +4 -0
- package/dist/meta/KubernetesMetaTable.js +5 -1
- package/dist/meta/KubernetesMetaTable.js.map +1 -1
- package/dist/meta/MessageBrokerMetaTable.d.ts +2 -2
- package/dist/meta/MessageBrokerMetaTable.js +3 -3
- package/dist/meta/MessageBrokerMetaTable.js.map +1 -1
- package/dist/meta/MetricMetaTable.d.ts +1 -2
- package/dist/meta/MetricMetaTable.js +1 -2
- package/dist/meta/MetricMetaTable.js.map +1 -1
- package/dist/meta/MonitorMetaTable.d.ts +1 -2
- package/dist/meta/MonitorMetaTable.js +2 -3
- package/dist/meta/MonitorMetaTable.js.map +1 -1
- 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/ProjectMetaTable.js +1 -1
- package/dist/meta/ProjectMetaTable.js.map +1 -1
- package/dist/meta/ServerMetaTable.d.ts +3 -0
- package/dist/meta/ServerMetaTable.js +4 -1
- package/dist/meta/ServerMetaTable.js.map +1 -1
- package/dist/row/AlertInputRow.d.ts +1 -1
- package/dist/row/AlertRow.d.ts +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 +8 -0
- package/dist/row/{ChatCategoryRow.js → CloudInputRow.js} +1 -1
- package/dist/row/CloudInputRow.js.map +1 -0
- package/dist/row/CloudRow.d.ts +12 -0
- 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 +3 -3
- package/dist/row/DatabaseRow.d.ts +3 -3
- package/dist/row/EnvironmentInputRow.d.ts +1 -1
- package/dist/row/EnvironmentRow.d.ts +1 -1
- package/dist/row/InMemoryStoreInputRow.d.ts +3 -3
- package/dist/row/InMemoryStoreRow.d.ts +3 -3
- package/dist/row/IncidentInputRow.d.ts +1 -1
- package/dist/row/IncidentRow.d.ts +1 -1
- package/dist/row/KubernetesInputRow.d.ts +6 -1
- package/dist/row/KubernetesRow.d.ts +6 -1
- package/dist/row/MessageBrokerInputRow.d.ts +3 -3
- package/dist/row/MessageBrokerRow.d.ts +3 -3
- package/dist/row/MetricInputRow.d.ts +1 -3
- package/dist/row/MetricRow.d.ts +1 -3
- package/dist/row/MonitorInputRow.d.ts +2 -4
- package/dist/row/MonitorRow.d.ts +2 -4
- package/dist/row/ProjectInputRow.d.ts +1 -1
- package/dist/row/ProjectRow.d.ts +1 -1
- package/dist/row/ServerInputRow.d.ts +5 -1
- package/dist/row/ServerRow.d.ts +5 -1
- 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/AlertCreateCommand.ts +1 -1
- package/src/command/AlertUpdateCommand.ts +1 -1
- 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 +9 -9
- package/src/command/DatabaseUpdateCommand.ts +9 -9
- package/src/command/EnvironmentCreateCommand.ts +1 -1
- package/src/command/EnvironmentUpdateCommand.ts +1 -1
- package/src/command/InMemoryStoreCreateCommand.ts +9 -9
- package/src/command/InMemoryStoreUpdateCommand.ts +9 -9
- package/src/command/IncidentCreateCommand.ts +1 -1
- package/src/command/IncidentUpdateCommand.ts +1 -1
- package/src/command/KubernetesCreateCommand.ts +37 -1
- package/src/command/KubernetesUpdateCommand.ts +37 -1
- package/src/command/MessageBrokerCreateCommand.ts +9 -9
- package/src/command/MessageBrokerUpdateCommand.ts +9 -9
- package/src/command/MetricCreateCommand.ts +4 -13
- package/src/command/MetricUpdateCommand.ts +4 -13
- package/src/command/MonitorCreateCommand.ts +5 -14
- package/src/command/MonitorUpdateCommand.ts +5 -14
- package/src/command/ProjectCreateCommand.ts +1 -1
- package/src/command/ProjectUpdateCommand.ts +1 -1
- package/src/command/ServerCreateCommand.ts +28 -1
- package/src/command/ServerUpdateCommand.ts +28 -1
- package/src/command/cli.ts +8 -8
- package/src/enum/{MetricIntervalUnit.ts → CloudType.ts} +5 -4
- package/src/enum/{MonitorHeartbeatIntervalUnit.ts → KubernetesCloud.ts} +5 -4
- package/src/enum/ServerCloud.ts +27 -0
- package/src/index.ts +39 -34
- package/src/meta/AlertMetaTable.ts +1 -1
- 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 +5 -5
- package/src/meta/EnvironmentMetaTable.ts +1 -1
- package/src/meta/InMemoryStoreMetaTable.ts +5 -5
- package/src/meta/IncidentMetaTable.ts +1 -1
- package/src/meta/KubernetesMetaTable.ts +9 -1
- package/src/meta/MessageBrokerMetaTable.ts +5 -5
- package/src/meta/MetricMetaTable.ts +2 -4
- package/src/meta/MonitorMetaTable.ts +3 -5
- package/src/meta/NamirasoftInfraMetaDatabase.ts +13 -13
- package/src/meta/ProjectMetaTable.ts +1 -1
- package/src/meta/ServerMetaTable.ts +7 -1
- package/src/row/AlertInputRow.ts +1 -1
- package/src/row/AlertRow.ts +1 -1
- package/src/row/{ChatCategoryRow.ts → CloudCategoryRow.ts} +1 -1
- package/src/row/{ChatFieldRow.ts → CloudFieldRow.ts} +1 -1
- package/src/row/CloudInputRow.ts +30 -0
- package/src/row/{ChatRow.ts → CloudRow.ts} +6 -5
- package/src/row/{ChatTagRow.ts → CloudTagRow.ts} +1 -1
- package/src/row/DatabaseInputRow.ts +3 -3
- package/src/row/DatabaseRow.ts +3 -3
- package/src/row/EnvironmentInputRow.ts +1 -1
- package/src/row/EnvironmentRow.ts +1 -1
- package/src/row/InMemoryStoreInputRow.ts +3 -3
- package/src/row/InMemoryStoreRow.ts +3 -3
- package/src/row/IncidentInputRow.ts +1 -1
- package/src/row/IncidentRow.ts +1 -1
- package/src/row/KubernetesInputRow.ts +7 -1
- package/src/row/KubernetesRow.ts +7 -1
- package/src/row/MessageBrokerInputRow.ts +3 -3
- package/src/row/MessageBrokerRow.ts +3 -3
- package/src/row/MetricInputRow.ts +1 -3
- package/src/row/MetricRow.ts +1 -3
- package/src/row/MonitorInputRow.ts +2 -4
- package/src/row/MonitorRow.ts +2 -4
- package/src/row/ProjectInputRow.ts +1 -1
- package/src/row/ProjectRow.ts +1 -1
- package/src/row/ServerInputRow.ts +5 -1
- package/src/row/ServerRow.ts +5 -1
- 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/enum/MetricIntervalUnit.d.ts +0 -5
- package/dist/enum/MetricIntervalUnit.js +0 -10
- package/dist/enum/MetricIntervalUnit.js.map +0 -1
- package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +0 -5
- package/dist/enum/MonitorHeartbeatIntervalUnit.js +0 -10
- package/dist/enum/MonitorHeartbeatIntervalUnit.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.d.ts +0 -12
- package/dist/row/ChatRow.js.map +0 -1
- package/dist/row/ChatTagRow.js.map +0 -1
|
@@ -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: true,
|
|
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
|
+
};
|
|
@@ -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 CloudDeleteCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatTagGetCommand 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.Delete(this.arg_values[0]);
|
|
43
43
|
this.app.logger.success(JSON.stringify(ans));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
22
|
+
import { CloudFieldCreateCommand } from "./CloudFieldCreateCommand";
|
|
23
|
+
import { CloudFieldDeleteCommand } from "./CloudFieldDeleteCommand";
|
|
24
|
+
import { CloudFieldGetCommand } from "./CloudFieldGetCommand";
|
|
25
|
+
import { CloudFieldListCommand } from "./CloudFieldListCommand";
|
|
26
|
+
import { CloudFieldUpdateCommand } from "./CloudFieldUpdateCommand";
|
|
27
27
|
|
|
28
|
-
export class
|
|
28
|
+
export class CloudFieldCommand extends BaseNavigatorCommand
|
|
29
29
|
{
|
|
30
30
|
constructor(argv: string[])
|
|
31
31
|
{
|
|
32
32
|
super(argv, {
|
|
33
|
-
"list":
|
|
34
|
-
"get":
|
|
35
|
-
"create":
|
|
36
|
-
"update":
|
|
37
|
-
"delete":
|
|
33
|
+
"list": CloudFieldListCommand,
|
|
34
|
+
"get": CloudFieldGetCommand,
|
|
35
|
+
"create": CloudFieldCreateCommand,
|
|
36
|
+
"update": CloudFieldUpdateCommand,
|
|
37
|
+
"delete": CloudFieldDeleteCommand,
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -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 CloudFieldCreateCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -64,7 +64,7 @@ export class ChatFieldCreateCommand extends BaseFinalCommand
|
|
|
64
64
|
token_manager.setValue(token, false);
|
|
65
65
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
66
66
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
-
let ans = await server.
|
|
67
|
+
let ans = await server.cloud_field.Create({
|
|
68
68
|
entity_id: this.option_values.entity_id,
|
|
69
69
|
field_id: this.option_values.field_id,
|
|
70
70
|
value: this.option_values.value
|
|
@@ -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 CloudFieldDeleteCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatCategoryGetCommand 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_field.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 CloudFieldGetCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatTagDeleteCommand 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_field.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 CloudFieldListCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatFieldListCommand 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_field.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
|
};
|
|
@@ -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 CloudFieldUpdateCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -64,7 +64,7 @@ export class ChatFieldUpdateCommand extends BaseFinalCommand
|
|
|
64
64
|
token_manager.setValue(token, false);
|
|
65
65
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
66
66
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
-
let ans = await server.
|
|
67
|
+
let ans = await server.cloud_field.Update(this.arg_values[0], {
|
|
68
68
|
entity_id: this.option_values.entity_id,
|
|
69
69
|
field_id: this.option_values.field_id,
|
|
70
70
|
value: this.option_values.value
|
|
@@ -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 CloudGetCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatGetCommand 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.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 CloudListCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatListCommand 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.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,22 +19,22 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
22
|
+
import { CloudTagCreateCommand } from "./CloudTagCreateCommand";
|
|
23
|
+
import { CloudTagDeleteCommand } from "./CloudTagDeleteCommand";
|
|
24
|
+
import { CloudTagGetCommand } from "./CloudTagGetCommand";
|
|
25
|
+
import { CloudTagListCommand } from "./CloudTagListCommand";
|
|
26
|
+
import { CloudTagUpdateCommand } from "./CloudTagUpdateCommand";
|
|
27
27
|
|
|
28
|
-
export class
|
|
28
|
+
export class CloudTagCommand extends BaseNavigatorCommand
|
|
29
29
|
{
|
|
30
30
|
constructor(argv: string[])
|
|
31
31
|
{
|
|
32
32
|
super(argv, {
|
|
33
|
-
"list":
|
|
34
|
-
"get":
|
|
35
|
-
"create":
|
|
36
|
-
"update":
|
|
37
|
-
"delete":
|
|
33
|
+
"list": CloudTagListCommand,
|
|
34
|
+
"get": CloudTagGetCommand,
|
|
35
|
+
"create": CloudTagCreateCommand,
|
|
36
|
+
"update": CloudTagUpdateCommand,
|
|
37
|
+
"delete": CloudTagDeleteCommand,
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -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 CloudTagCreateCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -64,7 +64,7 @@ export class ChatTagCreateCommand extends BaseFinalCommand
|
|
|
64
64
|
token_manager.setValue(token, false);
|
|
65
65
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
66
66
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
-
let ans = await server.
|
|
67
|
+
let ans = await server.cloud_tag.Create({
|
|
68
68
|
entity_id: this.option_values.entity_id,
|
|
69
69
|
name: this.option_values.name,
|
|
70
70
|
value: this.option_values.value
|
|
@@ -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 { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class CloudTagDeleteCommand 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-infra account config \nor \nns-infra 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-infra-server-url");
|
|
41
|
+
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.cloud_tag.Delete(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
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 CloudTagGetCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatFieldGetCommand 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_tag.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 CloudTagListCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ export class ChatTagListCommand 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_tag.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
|
};
|
|
@@ -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 CloudTagUpdateCommand extends BaseFinalCommand
|
|
27
27
|
{
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
@@ -64,7 +64,7 @@ export class ChatTagUpdateCommand extends BaseFinalCommand
|
|
|
64
64
|
token_manager.setValue(token, false);
|
|
65
65
|
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
66
66
|
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
67
|
-
let ans = await server.
|
|
67
|
+
let ans = await server.cloud_tag.Update(this.arg_values[0], {
|
|
68
68
|
entity_id: this.option_values.entity_id,
|
|
69
69
|
name: this.option_values.name,
|
|
70
70
|
value: this.option_values.value
|