namirasoft-infra 1.4.0 → 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 +24 -8
- package/dist/NamirasoftInfraServer.js +25 -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/NamirasoftInfraServerCloudField.js +64 -0
- package/dist/NamirasoftInfraServerCloudField.js.map +1 -0
- package/dist/{NamirasoftInfraServerChatTag.d.ts → NamirasoftInfraServerCloudTag.d.ts} +6 -6
- package/dist/NamirasoftInfraServerCloudTag.js +64 -0
- package/dist/NamirasoftInfraServerCloudTag.js.map +1 -0
- package/dist/NamirasoftInfraServerMetric.d.ts +22 -0
- package/dist/NamirasoftInfraServerMetric.js +72 -0
- package/dist/NamirasoftInfraServerMetric.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricCategory.d.ts +17 -0
- package/dist/{NamirasoftInfraServerChat.js → NamirasoftInfraServerMetricCategory.js} +26 -11
- package/dist/NamirasoftInfraServerMetricCategory.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricField.d.ts +18 -0
- package/dist/NamirasoftInfraServerMetricField.js +64 -0
- package/dist/NamirasoftInfraServerMetricField.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricTag.d.ts +18 -0
- package/dist/{NamirasoftInfraServerChatField.js → NamirasoftInfraServerMetricTag.js} +9 -9
- package/dist/{NamirasoftInfraServerChatField.js.map → NamirasoftInfraServerMetricTag.js.map} +1 -1
- package/dist/NamirasoftInfraServerMonitor.d.ts +22 -0
- package/dist/NamirasoftInfraServerMonitor.js +72 -0
- package/dist/NamirasoftInfraServerMonitor.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorCategory.d.ts +17 -0
- package/dist/NamirasoftInfraServerMonitorCategory.js +56 -0
- package/dist/NamirasoftInfraServerMonitorCategory.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorField.d.ts +18 -0
- package/dist/NamirasoftInfraServerMonitorField.js +64 -0
- package/dist/NamirasoftInfraServerMonitorField.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorTag.d.ts +18 -0
- package/dist/NamirasoftInfraServerMonitorTag.js +64 -0
- package/dist/NamirasoftInfraServerMonitorTag.js.map +1 -0
- package/dist/command/CloudCategoryCommand.d.ts +4 -0
- package/dist/command/CloudCategoryCommand.js +21 -0
- package/dist/command/CloudCategoryCommand.js.map +1 -0
- package/dist/command/CloudCategoryCreateCommand.d.ts +5 -0
- package/dist/command/{ChatCategoryCreateCommand.js → CloudCategoryCreateCommand.js} +5 -5
- package/dist/command/CloudCategoryCreateCommand.js.map +1 -0
- package/dist/command/CloudCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/CloudCategoryDeleteCommand.js +38 -0
- package/dist/command/CloudCategoryDeleteCommand.js.map +1 -0
- package/dist/command/{ChatCategoryListCommand.d.ts → CloudCategoryGetCommand.d.ts} +1 -1
- package/dist/command/CloudCategoryGetCommand.js +38 -0
- package/dist/command/CloudCategoryGetCommand.js.map +1 -0
- package/dist/command/CloudCategoryListCommand.d.ts +5 -0
- package/dist/command/CloudCategoryListCommand.js +38 -0
- 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/CloudDeleteCommand.d.ts +5 -0
- package/dist/command/CloudDeleteCommand.js +38 -0
- package/dist/command/CloudDeleteCommand.js.map +1 -0
- package/dist/command/CloudFieldCommand.d.ts +4 -0
- package/dist/command/CloudFieldCommand.js +23 -0
- package/dist/command/CloudFieldCommand.js.map +1 -0
- package/dist/command/CloudFieldCreateCommand.d.ts +5 -0
- package/dist/command/{ChatFieldCreateCommand.js → CloudFieldCreateCommand.js} +5 -5
- package/dist/command/CloudFieldCreateCommand.js.map +1 -0
- package/dist/command/CloudFieldDeleteCommand.d.ts +5 -0
- package/dist/command/CloudFieldDeleteCommand.js +38 -0
- 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/CloudFieldListCommand.d.ts +5 -0
- package/dist/command/CloudFieldListCommand.js +38 -0
- package/dist/command/CloudFieldListCommand.js.map +1 -0
- package/dist/command/CloudFieldUpdateCommand.d.ts +5 -0
- 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/CloudTagCommand.d.ts +4 -0
- 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/CloudTagGetCommand.js +38 -0
- package/dist/command/CloudTagGetCommand.js.map +1 -0
- package/dist/command/{ChatFieldGetCommand.d.ts → CloudTagListCommand.d.ts} +1 -1
- package/dist/command/CloudTagListCommand.js +38 -0
- 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/MetricCategoryCommand.d.ts +4 -0
- package/dist/command/MetricCategoryCommand.js +21 -0
- package/dist/command/MetricCategoryCommand.js.map +1 -0
- package/dist/command/MetricCategoryCreateCommand.d.ts +5 -0
- package/dist/command/MetricCategoryCreateCommand.js +58 -0
- package/dist/command/MetricCategoryCreateCommand.js.map +1 -0
- package/dist/command/MetricCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/MetricCategoryDeleteCommand.js +38 -0
- package/dist/command/MetricCategoryDeleteCommand.js.map +1 -0
- package/dist/command/MetricCategoryGetCommand.d.ts +5 -0
- package/dist/command/MetricCategoryGetCommand.js +38 -0
- package/dist/command/MetricCategoryGetCommand.js.map +1 -0
- package/dist/command/{ChatCategoryCreateCommand.d.ts → MetricCategoryListCommand.d.ts} +1 -1
- package/dist/command/MetricCategoryListCommand.js +38 -0
- package/dist/command/MetricCategoryListCommand.js.map +1 -0
- package/dist/command/MetricCommand.d.ts +4 -0
- package/dist/command/MetricCommand.js +25 -0
- package/dist/command/MetricCommand.js.map +1 -0
- package/dist/command/MetricCreateCommand.d.ts +5 -0
- package/dist/command/MetricCreateCommand.js +139 -0
- package/dist/command/MetricCreateCommand.js.map +1 -0
- package/dist/command/MetricDeleteCommand.d.ts +5 -0
- package/dist/command/MetricDeleteCommand.js +38 -0
- package/dist/command/MetricDeleteCommand.js.map +1 -0
- package/dist/command/MetricFieldCommand.d.ts +4 -0
- package/dist/command/MetricFieldCommand.js +23 -0
- package/dist/command/MetricFieldCommand.js.map +1 -0
- package/dist/command/MetricFieldCreateCommand.d.ts +5 -0
- package/dist/command/MetricFieldCreateCommand.js +67 -0
- package/dist/command/MetricFieldCreateCommand.js.map +1 -0
- package/dist/command/MetricFieldDeleteCommand.d.ts +5 -0
- package/dist/command/MetricFieldDeleteCommand.js +38 -0
- package/dist/command/MetricFieldDeleteCommand.js.map +1 -0
- package/dist/command/MetricFieldGetCommand.d.ts +5 -0
- package/dist/command/MetricFieldGetCommand.js +38 -0
- package/dist/command/MetricFieldGetCommand.js.map +1 -0
- package/dist/command/{ChatFieldUpdateCommand.d.ts → MetricFieldListCommand.d.ts} +1 -1
- package/dist/command/MetricFieldListCommand.js +38 -0
- package/dist/command/MetricFieldListCommand.js.map +1 -0
- package/dist/command/MetricFieldUpdateCommand.d.ts +5 -0
- package/dist/command/MetricFieldUpdateCommand.js +67 -0
- package/dist/command/MetricFieldUpdateCommand.js.map +1 -0
- package/dist/command/MetricGetCommand.d.ts +5 -0
- package/dist/command/MetricGetCommand.js +38 -0
- package/dist/command/MetricGetCommand.js.map +1 -0
- package/dist/command/{ChatTagGetCommand.d.ts → MetricListCommand.d.ts} +1 -1
- package/dist/command/MetricListCommand.js +38 -0
- package/dist/command/MetricListCommand.js.map +1 -0
- package/dist/command/MetricResultCommand.d.ts +5 -0
- package/dist/command/MetricResultCommand.js +38 -0
- package/dist/command/MetricResultCommand.js.map +1 -0
- package/dist/command/{ChatFieldCommand.d.ts → MetricTagCommand.d.ts} +1 -1
- package/dist/command/MetricTagCommand.js +23 -0
- package/dist/command/{ChatFieldCommand.js.map → MetricTagCommand.js.map} +1 -1
- package/dist/command/{ChatFieldCreateCommand.d.ts → MetricTagCreateCommand.d.ts} +1 -1
- package/dist/command/MetricTagCreateCommand.js +67 -0
- package/dist/command/MetricTagCreateCommand.js.map +1 -0
- package/dist/command/{ChatFieldDeleteCommand.d.ts → MetricTagDeleteCommand.d.ts} +1 -1
- package/dist/command/{ChatCategoryGetCommand.js → MetricTagDeleteCommand.js} +5 -5
- package/dist/command/{ChatFieldDeleteCommand.js.map → MetricTagDeleteCommand.js.map} +1 -1
- package/dist/command/MetricTagGetCommand.d.ts +5 -0
- package/dist/command/{ChatFieldGetCommand.js → MetricTagGetCommand.js} +5 -5
- package/dist/command/{ChatFieldGetCommand.js.map → MetricTagGetCommand.js.map} +1 -1
- package/dist/command/{ChatFieldListCommand.d.ts → MetricTagListCommand.d.ts} +1 -1
- package/dist/command/{ChatFieldListCommand.js → MetricTagListCommand.js} +5 -5
- package/dist/command/{ChatFieldListCommand.js.map → MetricTagListCommand.js.map} +1 -1
- package/dist/command/{ChatCategoryGetCommand.d.ts → MetricTagUpdateCommand.d.ts} +1 -1
- package/dist/command/MetricTagUpdateCommand.js +67 -0
- package/dist/command/MetricTagUpdateCommand.js.map +1 -0
- package/dist/command/MetricUpdateCommand.d.ts +5 -0
- package/dist/command/MetricUpdateCommand.js +139 -0
- package/dist/command/MetricUpdateCommand.js.map +1 -0
- package/dist/command/MonitorCategoryCommand.d.ts +4 -0
- package/dist/command/MonitorCategoryCommand.js +21 -0
- package/dist/command/MonitorCategoryCommand.js.map +1 -0
- package/dist/command/MonitorCategoryCreateCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryCreateCommand.js +58 -0
- package/dist/command/MonitorCategoryCreateCommand.js.map +1 -0
- package/dist/command/MonitorCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryDeleteCommand.js +38 -0
- package/dist/command/MonitorCategoryDeleteCommand.js.map +1 -0
- package/dist/command/{ChatCategoryDeleteCommand.d.ts → MonitorCategoryGetCommand.d.ts} +1 -1
- package/dist/command/{ChatCategoryDeleteCommand.js → MonitorCategoryGetCommand.js} +5 -5
- package/dist/command/MonitorCategoryGetCommand.js.map +1 -0
- package/dist/command/MonitorCategoryListCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryListCommand.js +38 -0
- package/dist/command/MonitorCategoryListCommand.js.map +1 -0
- package/dist/command/{ChatTagCommand.d.ts → MonitorCommand.d.ts} +1 -1
- package/dist/command/MonitorCommand.js +25 -0
- package/dist/command/MonitorCommand.js.map +1 -0
- package/dist/command/{ChatTagDeleteCommand.d.ts → MonitorCreateCommand.d.ts} +1 -1
- package/dist/command/MonitorCreateCommand.js +382 -0
- package/dist/command/MonitorCreateCommand.js.map +1 -0
- package/dist/command/{ChatTagUpdateCommand.d.ts → MonitorDeleteCommand.d.ts} +1 -1
- package/dist/command/MonitorDeleteCommand.js +38 -0
- package/dist/command/MonitorDeleteCommand.js.map +1 -0
- package/dist/command/{ChatCategoryCommand.d.ts → MonitorFieldCommand.d.ts} +1 -1
- package/dist/command/MonitorFieldCommand.js +23 -0
- package/dist/command/MonitorFieldCommand.js.map +1 -0
- package/dist/command/MonitorFieldCreateCommand.d.ts +5 -0
- package/dist/command/MonitorFieldCreateCommand.js +67 -0
- package/dist/command/MonitorFieldCreateCommand.js.map +1 -0
- package/dist/command/MonitorFieldDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorFieldDeleteCommand.js +38 -0
- package/dist/command/{ChatCategoryDeleteCommand.js.map → MonitorFieldDeleteCommand.js.map} +1 -1
- package/dist/command/MonitorFieldGetCommand.d.ts +5 -0
- package/dist/command/{ChatFieldDeleteCommand.js → MonitorFieldGetCommand.js} +5 -5
- package/dist/command/{ChatCategoryGetCommand.js.map → MonitorFieldGetCommand.js.map} +1 -1
- package/dist/command/MonitorFieldListCommand.d.ts +5 -0
- package/dist/command/{ChatCategoryListCommand.js → MonitorFieldListCommand.js} +5 -5
- package/dist/command/{ChatCategoryListCommand.js.map → MonitorFieldListCommand.js.map} +1 -1
- package/dist/command/MonitorFieldUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorFieldUpdateCommand.js +67 -0
- package/dist/command/MonitorFieldUpdateCommand.js.map +1 -0
- package/dist/command/MonitorGetCommand.d.ts +5 -0
- package/dist/command/{ChatTagGetCommand.js → MonitorGetCommand.js} +5 -5
- package/dist/command/{ChatTagGetCommand.js.map → MonitorGetCommand.js.map} +1 -1
- package/dist/command/MonitorListCommand.d.ts +5 -0
- package/dist/command/{ChatTagListCommand.js → MonitorListCommand.js} +5 -5
- package/dist/command/{ChatTagListCommand.js.map → MonitorListCommand.js.map} +1 -1
- package/dist/command/MonitorResultCommand.d.ts +5 -0
- package/dist/command/MonitorResultCommand.js +38 -0
- package/dist/command/MonitorResultCommand.js.map +1 -0
- package/dist/command/MonitorTagCommand.d.ts +4 -0
- package/dist/command/MonitorTagCommand.js +23 -0
- package/dist/command/MonitorTagCommand.js.map +1 -0
- package/dist/command/MonitorTagCreateCommand.d.ts +5 -0
- package/dist/command/MonitorTagCreateCommand.js +67 -0
- package/dist/command/MonitorTagCreateCommand.js.map +1 -0
- package/dist/command/MonitorTagDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorTagDeleteCommand.js +38 -0
- package/dist/command/MonitorTagDeleteCommand.js.map +1 -0
- package/dist/command/MonitorTagGetCommand.d.ts +5 -0
- package/dist/command/MonitorTagGetCommand.js +38 -0
- package/dist/command/MonitorTagGetCommand.js.map +1 -0
- package/dist/command/MonitorTagListCommand.d.ts +5 -0
- package/dist/command/MonitorTagListCommand.js +38 -0
- package/dist/command/MonitorTagListCommand.js.map +1 -0
- package/dist/command/MonitorTagUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorTagUpdateCommand.js +67 -0
- package/dist/command/MonitorTagUpdateCommand.js.map +1 -0
- package/dist/command/MonitorUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorUpdateCommand.js +382 -0
- package/dist/command/MonitorUpdateCommand.js.map +1 -0
- 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 +24 -8
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/MetricCallerType.d.ts +5 -0
- package/dist/enum/MetricCallerType.js +10 -0
- package/dist/enum/MetricCallerType.js.map +1 -0
- package/dist/enum/MetricIntervalUnit.d.ts +5 -0
- package/dist/enum/MetricIntervalUnit.js +10 -0
- package/dist/enum/MetricIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorCallerType.d.ts +5 -0
- package/dist/enum/MonitorCallerType.js +10 -0
- package/dist/enum/MonitorCallerType.js.map +1 -0
- package/dist/enum/MonitorDockerContainerConnectionType.d.ts +4 -0
- package/dist/enum/MonitorDockerContainerConnectionType.js +9 -0
- package/dist/enum/MonitorDockerContainerConnectionType.js.map +1 -0
- package/dist/enum/MonitorHTTPBodyEncoding.d.ts +5 -0
- package/dist/enum/MonitorHTTPBodyEncoding.js +10 -0
- package/dist/enum/MonitorHTTPBodyEncoding.js.map +1 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +5 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.js +10 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.d.ts +5 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js +10 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorKubernetesPodControllerType.d.ts +5 -0
- package/dist/enum/MonitorKubernetesPodControllerType.js +10 -0
- package/dist/enum/MonitorKubernetesPodControllerType.js.map +1 -0
- package/dist/enum/MonitorRequestTimeoutUnit.d.ts +4 -0
- package/dist/enum/MonitorRequestTimeoutUnit.js +9 -0
- package/dist/enum/MonitorRequestTimeoutUnit.js.map +1 -0
- package/dist/enum/MonitorType.d.ts +10 -0
- package/dist/enum/MonitorType.js +15 -0
- package/dist/enum/MonitorType.js.map +1 -0
- package/dist/index.d.ts +120 -32
- package/dist/index.js +120 -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/MetricCategoryMetaTable.d.ts +15 -0
- package/dist/meta/MetricCategoryMetaTable.js +39 -0
- package/dist/meta/MetricCategoryMetaTable.js.map +1 -0
- package/dist/meta/MetricFieldMetaTable.d.ts +16 -0
- package/dist/meta/MetricFieldMetaTable.js +39 -0
- package/dist/meta/MetricFieldMetaTable.js.map +1 -0
- package/dist/meta/MetricMetaTable.d.ts +24 -0
- package/dist/meta/MetricMetaTable.js +47 -0
- package/dist/meta/MetricMetaTable.js.map +1 -0
- package/dist/meta/MetricTagMetaTable.d.ts +16 -0
- package/dist/meta/MetricTagMetaTable.js +39 -0
- package/dist/meta/{ChatFieldMetaTable.js.map → MetricTagMetaTable.js.map} +1 -1
- package/dist/meta/MonitorCategoryMetaTable.d.ts +15 -0
- package/dist/meta/MonitorCategoryMetaTable.js +39 -0
- package/dist/meta/MonitorCategoryMetaTable.js.map +1 -0
- package/dist/meta/MonitorFieldMetaTable.d.ts +16 -0
- package/dist/meta/MonitorFieldMetaTable.js +39 -0
- package/dist/meta/MonitorFieldMetaTable.js.map +1 -0
- package/dist/meta/MonitorMetaTable.d.ts +51 -0
- package/dist/meta/MonitorMetaTable.js +74 -0
- package/dist/meta/MonitorMetaTable.js.map +1 -0
- package/dist/meta/MonitorTagMetaTable.d.ts +16 -0
- package/dist/meta/MonitorTagMetaTable.js +39 -0
- package/dist/meta/MonitorTagMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftInfraMetaDatabase.d.ts +24 -8
- package/dist/meta/NamirasoftInfraMetaDatabase.js +25 -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/{ChatCategoryRow.js → CloudFieldRow.js} +1 -1
- package/dist/row/CloudFieldRow.js.map +1 -0
- package/dist/row/CloudInputRow.d.ts +7 -0
- package/dist/row/CloudInputRow.js +3 -0
- 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/{ChatFieldRow.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/MetricCategoryRow.d.ts +8 -0
- package/dist/row/MetricCategoryRow.js +3 -0
- package/dist/row/MetricCategoryRow.js.map +1 -0
- package/dist/row/MetricFieldRow.d.ts +9 -0
- package/dist/row/MetricFieldRow.js +3 -0
- package/dist/row/MetricFieldRow.js.map +1 -0
- package/dist/row/MetricInputRow.d.ts +15 -0
- package/dist/row/MetricInputRow.js +3 -0
- package/dist/row/MetricInputRow.js.map +1 -0
- package/dist/row/MetricRow.d.ts +19 -0
- package/dist/row/{ChatTagRow.js → MetricRow.js} +1 -1
- package/dist/row/MetricRow.js.map +1 -0
- package/dist/row/MetricTagRow.d.ts +9 -0
- package/dist/row/MetricTagRow.js +3 -0
- package/dist/row/MetricTagRow.js.map +1 -0
- package/dist/row/MonitorCategoryRow.d.ts +8 -0
- package/dist/row/MonitorCategoryRow.js +3 -0
- package/dist/row/MonitorCategoryRow.js.map +1 -0
- package/dist/row/MonitorFieldRow.d.ts +9 -0
- package/dist/row/MonitorFieldRow.js +3 -0
- package/dist/row/MonitorFieldRow.js.map +1 -0
- package/dist/row/MonitorInputRow.d.ts +48 -0
- package/dist/row/MonitorInputRow.js +3 -0
- package/dist/row/MonitorInputRow.js.map +1 -0
- package/dist/row/MonitorRow.d.ts +52 -0
- package/dist/row/MonitorRow.js +3 -0
- package/dist/row/MonitorRow.js.map +1 -0
- package/dist/row/MonitorTagRow.d.ts +9 -0
- package/dist/row/MonitorTagRow.js +3 -0
- package/dist/row/MonitorTagRow.js.map +1 -0
- 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 +37 -13
- package/src/NamirasoftInfraServerCloud.ts +71 -0
- 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 +78 -0
- package/src/{NamirasoftInfraServerChat.ts → NamirasoftInfraServerMetricCategory.ts} +25 -11
- package/src/NamirasoftInfraServerMetricField.ts +71 -0
- package/src/NamirasoftInfraServerMetricTag.ts +71 -0
- package/src/NamirasoftInfraServerMonitor.ts +78 -0
- package/src/NamirasoftInfraServerMonitorCategory.ts +64 -0
- package/src/NamirasoftInfraServerMonitorField.ts +71 -0
- package/src/NamirasoftInfraServerMonitorTag.ts +71 -0
- package/src/command/{ChatCategoryCommand.ts → CloudCategoryCommand.ts} +9 -9
- package/src/command/{ChatCategoryCreateCommand.ts → CloudCategoryCreateCommand.ts} +2 -2
- package/src/command/CloudCategoryDeleteCommand.ts +45 -0
- package/src/command/CloudCategoryGetCommand.ts +45 -0
- package/src/command/CloudCategoryListCommand.ts +45 -0
- 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/CloudFieldCommand.ts +40 -0
- package/src/command/{ChatFieldCreateCommand.ts → CloudFieldCreateCommand.ts} +2 -2
- package/src/command/CloudFieldDeleteCommand.ts +45 -0
- package/src/command/{ChatTagDeleteCommand.ts → CloudFieldGetCommand.ts} +2 -2
- package/src/command/CloudFieldListCommand.ts +45 -0
- 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/CloudTagCommand.ts +40 -0
- package/src/command/{ChatTagCreateCommand.ts → CloudTagCreateCommand.ts} +2 -2
- package/src/command/CloudTagDeleteCommand.ts +45 -0
- package/src/command/CloudTagGetCommand.ts +45 -0
- package/src/command/CloudTagListCommand.ts +45 -0
- 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/{ChatTagCommand.ts → MetricCategoryCommand.ts} +9 -11
- package/src/command/MetricCategoryCreateCommand.ts +65 -0
- package/src/command/MetricCategoryDeleteCommand.ts +45 -0
- package/src/command/MetricCategoryGetCommand.ts +45 -0
- package/src/command/MetricCategoryListCommand.ts +45 -0
- package/src/command/MetricCommand.ts +42 -0
- package/src/command/MetricCreateCommand.ts +146 -0
- package/src/command/MetricDeleteCommand.ts +45 -0
- package/src/command/MetricFieldCommand.ts +40 -0
- package/src/command/MetricFieldCreateCommand.ts +74 -0
- package/src/command/MetricFieldDeleteCommand.ts +45 -0
- package/src/command/MetricFieldGetCommand.ts +45 -0
- package/src/command/MetricFieldListCommand.ts +45 -0
- package/src/command/MetricFieldUpdateCommand.ts +74 -0
- package/src/command/MetricGetCommand.ts +45 -0
- package/src/command/{ChatTagListCommand.ts → MetricListCommand.ts} +2 -2
- package/src/command/MetricResultCommand.ts +45 -0
- package/src/command/{ChatFieldCommand.ts → MetricTagCommand.ts} +11 -11
- package/src/command/MetricTagCreateCommand.ts +74 -0
- package/src/command/{ChatFieldDeleteCommand.ts → MetricTagDeleteCommand.ts} +2 -2
- package/src/command/{ChatFieldGetCommand.ts → MetricTagGetCommand.ts} +2 -2
- package/src/command/{ChatFieldListCommand.ts → MetricTagListCommand.ts} +2 -2
- package/src/command/MetricTagUpdateCommand.ts +74 -0
- package/src/command/MetricUpdateCommand.ts +146 -0
- package/src/command/MonitorCategoryCommand.ts +38 -0
- package/src/command/MonitorCategoryCreateCommand.ts +65 -0
- package/src/command/MonitorCategoryDeleteCommand.ts +45 -0
- package/src/command/{ChatCategoryDeleteCommand.ts → MonitorCategoryGetCommand.ts} +2 -2
- package/src/command/MonitorCategoryListCommand.ts +45 -0
- package/src/command/MonitorCommand.ts +42 -0
- package/src/command/MonitorCreateCommand.ts +389 -0
- package/src/command/MonitorDeleteCommand.ts +45 -0
- package/src/command/MonitorFieldCommand.ts +40 -0
- package/src/command/MonitorFieldCreateCommand.ts +74 -0
- package/src/command/MonitorFieldDeleteCommand.ts +45 -0
- package/src/command/{ChatCategoryGetCommand.ts → MonitorFieldGetCommand.ts} +2 -2
- package/src/command/{ChatCategoryListCommand.ts → MonitorFieldListCommand.ts} +2 -2
- package/src/command/MonitorFieldUpdateCommand.ts +74 -0
- package/src/command/MonitorGetCommand.ts +45 -0
- package/src/command/MonitorListCommand.ts +45 -0
- package/src/command/MonitorResultCommand.ts +45 -0
- package/src/command/MonitorTagCommand.ts +40 -0
- package/src/command/MonitorTagCreateCommand.ts +74 -0
- package/src/command/MonitorTagDeleteCommand.ts +45 -0
- package/src/command/MonitorTagGetCommand.ts +45 -0
- package/src/command/MonitorTagListCommand.ts +45 -0
- package/src/command/MonitorTagUpdateCommand.ts +74 -0
- package/src/command/MonitorUpdateCommand.ts +389 -0
- package/src/command/ServerCreateCommand.ts +18 -0
- package/src/command/ServerUpdateCommand.ts +18 -0
- package/src/command/cli.ts +24 -8
- package/src/enum/MetricCallerType.ts +26 -0
- package/src/enum/MetricIntervalUnit.ts +26 -0
- package/src/enum/MonitorCallerType.ts +26 -0
- package/src/enum/MonitorDockerContainerConnectionType.ts +25 -0
- package/src/enum/MonitorHTTPBodyEncoding.ts +26 -0
- package/src/enum/MonitorHeartbeatIntervalUnit.ts +26 -0
- package/src/enum/MonitorHeartbeatRetryIntervalUnit.ts +26 -0
- package/src/enum/MonitorKubernetesPodControllerType.ts +26 -0
- package/src/enum/MonitorRequestTimeoutUnit.ts +25 -0
- package/src/enum/MonitorType.ts +31 -0
- package/src/index.ts +120 -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/MetricCategoryMetaTable.ts +60 -0
- package/src/meta/MetricFieldMetaTable.ts +61 -0
- package/src/meta/MetricMetaTable.ts +77 -0
- package/src/meta/MetricTagMetaTable.ts +61 -0
- package/src/meta/MonitorCategoryMetaTable.ts +60 -0
- package/src/meta/MonitorFieldMetaTable.ts +61 -0
- package/src/meta/MonitorMetaTable.ts +131 -0
- package/src/meta/MonitorTagMetaTable.ts +61 -0
- package/src/meta/NamirasoftInfraMetaDatabase.ts +37 -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/MetricCategoryRow.ts +29 -0
- package/src/row/MetricFieldRow.ts +30 -0
- package/src/row/MetricInputRow.ts +37 -0
- package/src/row/MetricRow.ts +41 -0
- package/src/row/MetricTagRow.ts +30 -0
- package/src/row/MonitorCategoryRow.ts +29 -0
- package/src/row/MonitorFieldRow.ts +30 -0
- package/src/row/MonitorInputRow.ts +70 -0
- package/src/row/MonitorRow.ts +74 -0
- package/src/row/MonitorTagRow.ts +30 -0
- 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/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/ChatCommand.js +0 -17
- package/dist/command/ChatCommand.js.map +0 -1
- package/dist/command/ChatFieldCommand.js +0 -23
- package/dist/command/ChatFieldCreateCommand.js.map +0 -1
- 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/ChatTagUpdateCommand.js.map +0 -1
- package/dist/meta/ChatCategoryMetaTable.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
|
@@ -0,0 +1,71 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MetricFieldRow } from "./row/MetricFieldRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetricField extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricFieldRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `metric/field/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MetricFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `metric/field/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MetricFieldRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `metric/field`;
|
|
57
|
+
let { data } = await this.server._post<MetricFieldRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `metric/field/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MetricFieldRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `metric/field/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MetricTagRow } from "./row/MetricTagRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetricTag extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricTagRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `metric/tag/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MetricTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `metric/tag/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MetricTagRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `metric/tag`;
|
|
57
|
+
let { data } = await this.server._post<MetricTagRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `metric/tag/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MetricTagRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `metric/tag/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { FilterItem } from "namirasoft-core";
|
|
23
|
+
import { MonitorInputRow } from "./row/MonitorInputRow";
|
|
24
|
+
import { MonitorRow } from "./row/MonitorRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMonitor extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.Get = this.Get.bind(this);
|
|
35
|
+
this.Create = this.Create.bind(this);
|
|
36
|
+
this.Update = this.Update.bind(this);
|
|
37
|
+
this.Delete = this.Delete.bind(this);
|
|
38
|
+
this.List = this.List.bind(this);
|
|
39
|
+
this.Result = this.Result.bind(this);
|
|
40
|
+
}
|
|
41
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
42
|
+
{
|
|
43
|
+
let path = `/monitor/${id}`;
|
|
44
|
+
let { data } = await this.server._get<MonitorRow>(path, {}, config);
|
|
45
|
+
return data;
|
|
46
|
+
}
|
|
47
|
+
async Create(body: MonitorInputRow, config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
48
|
+
{
|
|
49
|
+
let path = `/monitor`;
|
|
50
|
+
let { data } = await this.server._post<MonitorRow>(path, {}, body, config);
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
async Update(id: (string | null), body: MonitorInputRow, config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
54
|
+
{
|
|
55
|
+
let path = `/monitor/${id}`;
|
|
56
|
+
let { data } = await this.server._put<MonitorRow>(path, {}, body, config);
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
async Delete(id: string, config?: BaseServerConfig<any>): Promise<void>
|
|
60
|
+
{
|
|
61
|
+
let path = `/monitor/${id}`;
|
|
62
|
+
await this.server._delete<void>(path, {}, config);
|
|
63
|
+
}
|
|
64
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MonitorRow[], count: number }>
|
|
65
|
+
{
|
|
66
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
67
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
68
|
+
let path = `/monitor/list`;
|
|
69
|
+
let { data } = await this.server._get<{ rows: MonitorRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
70
|
+
return data;
|
|
71
|
+
}
|
|
72
|
+
async Result(config?: BaseServerConfig<any>): Promise<{ rows: MonitorRow[], count: number }>
|
|
73
|
+
{
|
|
74
|
+
let path = `/result`;
|
|
75
|
+
let { data } = await this.server._get<{ rows: MonitorRow[], count: number }>(path, {}, config);
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MonitorCategoryRow } from "./row/MonitorCategoryRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMonitorCategory extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Delete = this.Delete.bind(this);
|
|
38
|
+
}
|
|
39
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MonitorCategoryRow[], count: number }>
|
|
40
|
+
{
|
|
41
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
42
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
43
|
+
let path = `monitor/category/list`;
|
|
44
|
+
let { data } = await this.server._get<{ rows: MonitorCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
45
|
+
return data;
|
|
46
|
+
}
|
|
47
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MonitorCategoryRow>
|
|
48
|
+
{
|
|
49
|
+
let path = `monitor/category/${id}`;
|
|
50
|
+
let { data } = await this.server._get<MonitorCategoryRow>(path, {}, config);
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
async Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<MonitorCategoryRow>
|
|
54
|
+
{
|
|
55
|
+
let path = `monitor/category`;
|
|
56
|
+
let { data } = await this.server._post<MonitorCategoryRow>(path, {}, body, config);
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
60
|
+
{
|
|
61
|
+
let path = `monitor/category/${id}`;
|
|
62
|
+
await this.server._delete<void>(path, {}, config);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MonitorFieldRow } from "./row/MonitorFieldRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMonitorField extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MonitorFieldRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `monitor/field/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MonitorFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MonitorFieldRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `monitor/field/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MonitorFieldRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MonitorFieldRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `monitor/field`;
|
|
57
|
+
let { data } = await this.server._post<MonitorFieldRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MonitorFieldRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `monitor/field/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MonitorFieldRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `monitor/field/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MonitorTagRow } from "./row/MonitorTagRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMonitorTag extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MonitorTagRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `monitor/tag/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MonitorTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MonitorTagRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `monitor/tag/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MonitorTagRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MonitorTagRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `monitor/tag`;
|
|
57
|
+
let { data } = await this.server._post<MonitorTagRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MonitorTagRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `monitor/tag/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MonitorTagRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `monitor/tag/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -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
|
});
|
|
@@ -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 CloudCategoryDeleteCommand 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_category.Delete(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class CloudCategoryGetCommand 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_category.Get(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class CloudCategoryListCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["filters", "page", "size", "sorts"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-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_category.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -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
|
};
|