namirasoft-expert 1.4.21 → 1.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamirasoftExpertServer.js +1 -1
- package/dist/NamirasoftExpertServerDescriptionCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionCache.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionCache.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionDatabase.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionDocker.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionMessaging.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionMetric.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionServer.d.ts +3 -3
- package/dist/NamirasoftExpertServerDescriptionServer.js +7 -7
- package/dist/NamirasoftExpertServerDescriptionServer.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionStreaming.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionStreaming.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentCache.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentCache.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleCache.js +8 -0
- package/dist/NamirasoftExpertServerRoleCache.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleDatabase.js +8 -0
- package/dist/NamirasoftExpertServerRoleDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleDocker.js +8 -0
- package/dist/NamirasoftExpertServerRoleDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerRoleKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleMessaging.js +8 -0
- package/dist/NamirasoftExpertServerRoleMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleMetric.js +8 -0
- package/dist/NamirasoftExpertServerRoleMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleStreaming.js +8 -0
- package/dist/NamirasoftExpertServerRoleStreaming.js.map +1 -1
- package/dist/command/DescriptionCacheCommand.js +2 -0
- package/dist/command/DescriptionCacheCommand.js.map +1 -1
- package/dist/command/DescriptionCacheTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionCacheTrackCommand.js +38 -0
- package/dist/command/DescriptionCacheTrackCommand.js.map +1 -0
- package/dist/command/DescriptionDatabaseCommand.js +2 -0
- package/dist/command/DescriptionDatabaseCommand.js.map +1 -1
- package/dist/command/DescriptionDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionDatabaseTrackCommand.js +38 -0
- package/dist/command/DescriptionDatabaseTrackCommand.js.map +1 -0
- package/dist/command/DescriptionDockerCommand.js +2 -0
- package/dist/command/DescriptionDockerCommand.js.map +1 -1
- package/dist/command/DescriptionDockerTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionDockerTrackCommand.js +38 -0
- package/dist/command/DescriptionDockerTrackCommand.js.map +1 -0
- package/dist/command/DescriptionKubernetesCommand.js +2 -0
- package/dist/command/DescriptionKubernetesCommand.js.map +1 -1
- package/dist/command/DescriptionKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionKubernetesTrackCommand.js +38 -0
- package/dist/command/DescriptionKubernetesTrackCommand.js.map +1 -0
- package/dist/command/DescriptionMessagingCommand.js +2 -0
- package/dist/command/DescriptionMessagingCommand.js.map +1 -1
- package/dist/command/DescriptionMessagingTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionMessagingTrackCommand.js +38 -0
- package/dist/command/DescriptionMessagingTrackCommand.js.map +1 -0
- package/dist/command/DescriptionMetricCommand.js +2 -0
- package/dist/command/DescriptionMetricCommand.js.map +1 -1
- package/dist/command/DescriptionMetricTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionMetricTrackCommand.js +38 -0
- package/dist/command/DescriptionMetricTrackCommand.js.map +1 -0
- package/dist/command/DescriptionServerCommand.js +1 -1
- package/dist/command/DescriptionServerCommand.js.map +1 -1
- package/dist/command/DescriptionStreamingCommand.js +2 -0
- package/dist/command/DescriptionStreamingCommand.js.map +1 -1
- package/dist/command/DescriptionStreamingTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionStreamingTrackCommand.js +38 -0
- package/dist/command/DescriptionStreamingTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentCacheCommand.js +2 -0
- package/dist/command/RoleAssignmentCacheCommand.js.map +1 -1
- package/dist/command/RoleAssignmentCacheTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentCacheTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentCacheTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentDatabaseCommand.js +2 -0
- package/dist/command/RoleAssignmentDatabaseCommand.js.map +1 -1
- package/dist/command/RoleAssignmentDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentDatabaseTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentDatabaseTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentDockerCommand.js +2 -0
- package/dist/command/RoleAssignmentDockerCommand.js.map +1 -1
- package/dist/command/RoleAssignmentDockerTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentDockerTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentDockerTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentKubernetesCommand.js +2 -0
- package/dist/command/RoleAssignmentKubernetesCommand.js.map +1 -1
- package/dist/command/RoleAssignmentKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentKubernetesTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentKubernetesTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentMessagingCommand.js +2 -0
- package/dist/command/RoleAssignmentMessagingCommand.js.map +1 -1
- package/dist/command/RoleAssignmentMessagingTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentMessagingTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentMessagingTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentMetricCommand.js +2 -0
- package/dist/command/RoleAssignmentMetricCommand.js.map +1 -1
- package/dist/command/RoleAssignmentMetricTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentMetricTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentMetricTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentStreamingCommand.js +2 -0
- package/dist/command/RoleAssignmentStreamingCommand.js.map +1 -1
- package/dist/command/RoleAssignmentStreamingTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentStreamingTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentStreamingTrackCommand.js.map +1 -0
- package/dist/command/RoleCacheCommand.js +2 -0
- package/dist/command/RoleCacheCommand.js.map +1 -1
- package/dist/command/RoleCacheTrackCommand.d.ts +5 -0
- package/dist/command/RoleCacheTrackCommand.js +38 -0
- package/dist/command/RoleCacheTrackCommand.js.map +1 -0
- package/dist/command/RoleDatabaseCommand.js +2 -0
- package/dist/command/RoleDatabaseCommand.js.map +1 -1
- package/dist/command/RoleDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/RoleDatabaseTrackCommand.js +38 -0
- package/dist/command/RoleDatabaseTrackCommand.js.map +1 -0
- package/dist/command/RoleDockerCommand.js +2 -0
- package/dist/command/RoleDockerCommand.js.map +1 -1
- package/dist/command/RoleDockerTrackCommand.d.ts +5 -0
- package/dist/command/RoleDockerTrackCommand.js +38 -0
- package/dist/command/RoleDockerTrackCommand.js.map +1 -0
- package/dist/command/RoleKubernetesCommand.js +2 -0
- package/dist/command/RoleKubernetesCommand.js.map +1 -1
- package/dist/command/RoleKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/RoleKubernetesTrackCommand.js +38 -0
- package/dist/command/RoleKubernetesTrackCommand.js.map +1 -0
- package/dist/command/RoleMessagingCommand.js +2 -0
- package/dist/command/RoleMessagingCommand.js.map +1 -1
- package/dist/command/RoleMessagingTrackCommand.d.ts +5 -0
- package/dist/command/RoleMessagingTrackCommand.js +38 -0
- package/dist/command/RoleMessagingTrackCommand.js.map +1 -0
- package/dist/command/RoleMetricCommand.js +2 -0
- package/dist/command/RoleMetricCommand.js.map +1 -1
- package/dist/command/RoleMetricTrackCommand.d.ts +5 -0
- package/dist/command/RoleMetricTrackCommand.js +38 -0
- package/dist/command/RoleMetricTrackCommand.js.map +1 -0
- package/dist/command/RoleStreamingCommand.js +2 -0
- package/dist/command/RoleStreamingCommand.js.map +1 -1
- package/dist/command/RoleStreamingTrackCommand.d.ts +5 -0
- package/dist/command/RoleStreamingTrackCommand.js +38 -0
- package/dist/command/RoleStreamingTrackCommand.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/NamirasoftExpertServer.ts +1 -1
- package/src/NamirasoftExpertServerDescriptionCache.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionDatabase.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionDocker.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionMessaging.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionMetric.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionServer.ts +7 -7
- package/src/NamirasoftExpertServerDescriptionStreaming.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentCache.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentDatabase.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentDocker.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentMessaging.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentMetric.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentStreaming.ts +7 -0
- package/src/NamirasoftExpertServerRoleCache.ts +7 -0
- package/src/NamirasoftExpertServerRoleDatabase.ts +7 -0
- package/src/NamirasoftExpertServerRoleDocker.ts +7 -0
- package/src/NamirasoftExpertServerRoleKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerRoleMessaging.ts +7 -0
- package/src/NamirasoftExpertServerRoleMetric.ts +7 -0
- package/src/NamirasoftExpertServerRoleStreaming.ts +7 -0
- package/src/command/DescriptionCacheCommand.ts +2 -0
- package/src/command/DescriptionCacheTrackCommand.ts +45 -0
- package/src/command/DescriptionDatabaseCommand.ts +2 -0
- package/src/command/DescriptionDatabaseTrackCommand.ts +45 -0
- package/src/command/DescriptionDockerCommand.ts +2 -0
- package/src/command/DescriptionDockerTrackCommand.ts +45 -0
- package/src/command/DescriptionKubernetesCommand.ts +2 -0
- package/src/command/DescriptionKubernetesTrackCommand.ts +45 -0
- package/src/command/DescriptionMessagingCommand.ts +2 -0
- package/src/command/DescriptionMessagingTrackCommand.ts +45 -0
- package/src/command/DescriptionMetricCommand.ts +2 -0
- package/src/command/DescriptionMetricTrackCommand.ts +45 -0
- package/src/command/DescriptionServerCommand.ts +1 -1
- package/src/command/DescriptionStreamingCommand.ts +2 -0
- package/src/command/DescriptionStreamingTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentCacheCommand.ts +2 -0
- package/src/command/RoleAssignmentCacheTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentDatabaseCommand.ts +2 -0
- package/src/command/RoleAssignmentDatabaseTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentDockerCommand.ts +2 -0
- package/src/command/RoleAssignmentDockerTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentKubernetesCommand.ts +2 -0
- package/src/command/RoleAssignmentKubernetesTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentMessagingCommand.ts +2 -0
- package/src/command/RoleAssignmentMessagingTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentMetricCommand.ts +2 -0
- package/src/command/RoleAssignmentMetricTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentStreamingCommand.ts +2 -0
- package/src/command/RoleAssignmentStreamingTrackCommand.ts +45 -0
- package/src/command/RoleCacheCommand.ts +2 -0
- package/src/command/RoleCacheTrackCommand.ts +45 -0
- package/src/command/RoleDatabaseCommand.ts +2 -0
- package/src/command/RoleDatabaseTrackCommand.ts +45 -0
- package/src/command/RoleDockerCommand.ts +2 -0
- package/src/command/RoleDockerTrackCommand.ts +45 -0
- package/src/command/RoleKubernetesCommand.ts +2 -0
- package/src/command/RoleKubernetesTrackCommand.ts +45 -0
- package/src/command/RoleMessagingCommand.ts +2 -0
- package/src/command/RoleMessagingTrackCommand.ts +45 -0
- package/src/command/RoleMetricCommand.ts +2 -0
- package/src/command/RoleMetricTrackCommand.ts +45 -0
- package/src/command/RoleStreamingCommand.ts +2 -0
- package/src/command/RoleStreamingTrackCommand.ts +45 -0
- package/src/index.ts +21 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentMetricTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_metric.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentStreamingCreateCommand } from "./RoleAssignmentStreamingC
|
|
|
23
23
|
import { RoleAssignmentStreamingDeleteCommand } from "./RoleAssignmentStreamingDeleteCommand";
|
|
24
24
|
import { RoleAssignmentStreamingGenerateCommand } from "./RoleAssignmentStreamingGenerateCommand";
|
|
25
25
|
import { RoleAssignmentStreamingListCommand } from "./RoleAssignmentStreamingListCommand";
|
|
26
|
+
import { RoleAssignmentStreamingTrackCommand } from "./RoleAssignmentStreamingTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentStreamingCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentStreamingCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentStreamingListCommand,
|
|
33
34
|
"generate": RoleAssignmentStreamingGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentStreamingTrackCommand,
|
|
34
36
|
"create": RoleAssignmentStreamingCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentStreamingDeleteCommand,
|
|
36
38
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentStreamingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_streaming.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleCacheCreateCommand } from "./RoleCacheCreateCommand";
|
|
|
23
23
|
import { RoleCacheDeleteCommand } from "./RoleCacheDeleteCommand";
|
|
24
24
|
import { RoleCacheGenerateCommand } from "./RoleCacheGenerateCommand";
|
|
25
25
|
import { RoleCacheListCommand } from "./RoleCacheListCommand";
|
|
26
|
+
import { RoleCacheTrackCommand } from "./RoleCacheTrackCommand";
|
|
26
27
|
import { RoleCacheUpdateCommand } from "./RoleCacheUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleCacheCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleCacheCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleCacheListCommand,
|
|
34
35
|
"create": RoleCacheCreateCommand,
|
|
35
36
|
"generate": RoleCacheGenerateCommand,
|
|
37
|
+
"track": RoleCacheTrackCommand,
|
|
36
38
|
"update": RoleCacheUpdateCommand,
|
|
37
39
|
"delete": RoleCacheDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleCacheTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_cache.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleDatabaseCreateCommand } from "./RoleDatabaseCreateCommand";
|
|
|
23
23
|
import { RoleDatabaseDeleteCommand } from "./RoleDatabaseDeleteCommand";
|
|
24
24
|
import { RoleDatabaseGenerateCommand } from "./RoleDatabaseGenerateCommand";
|
|
25
25
|
import { RoleDatabaseListCommand } from "./RoleDatabaseListCommand";
|
|
26
|
+
import { RoleDatabaseTrackCommand } from "./RoleDatabaseTrackCommand";
|
|
26
27
|
import { RoleDatabaseUpdateCommand } from "./RoleDatabaseUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleDatabaseCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleDatabaseCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleDatabaseListCommand,
|
|
34
35
|
"create": RoleDatabaseCreateCommand,
|
|
35
36
|
"generate": RoleDatabaseGenerateCommand,
|
|
37
|
+
"track": RoleDatabaseTrackCommand,
|
|
36
38
|
"update": RoleDatabaseUpdateCommand,
|
|
37
39
|
"delete": RoleDatabaseDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleDatabaseTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_database.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleDockerCreateCommand } from "./RoleDockerCreateCommand";
|
|
|
23
23
|
import { RoleDockerDeleteCommand } from "./RoleDockerDeleteCommand";
|
|
24
24
|
import { RoleDockerGenerateCommand } from "./RoleDockerGenerateCommand";
|
|
25
25
|
import { RoleDockerListCommand } from "./RoleDockerListCommand";
|
|
26
|
+
import { RoleDockerTrackCommand } from "./RoleDockerTrackCommand";
|
|
26
27
|
import { RoleDockerUpdateCommand } from "./RoleDockerUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleDockerCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleDockerCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleDockerListCommand,
|
|
34
35
|
"create": RoleDockerCreateCommand,
|
|
35
36
|
"generate": RoleDockerGenerateCommand,
|
|
37
|
+
"track": RoleDockerTrackCommand,
|
|
36
38
|
"update": RoleDockerUpdateCommand,
|
|
37
39
|
"delete": RoleDockerDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleDockerTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_docker.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleKubernetesCreateCommand } from "./RoleKubernetesCreateCommand";
|
|
|
23
23
|
import { RoleKubernetesDeleteCommand } from "./RoleKubernetesDeleteCommand";
|
|
24
24
|
import { RoleKubernetesGenerateCommand } from "./RoleKubernetesGenerateCommand";
|
|
25
25
|
import { RoleKubernetesListCommand } from "./RoleKubernetesListCommand";
|
|
26
|
+
import { RoleKubernetesTrackCommand } from "./RoleKubernetesTrackCommand";
|
|
26
27
|
import { RoleKubernetesUpdateCommand } from "./RoleKubernetesUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleKubernetesCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleKubernetesCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleKubernetesListCommand,
|
|
34
35
|
"create": RoleKubernetesCreateCommand,
|
|
35
36
|
"generate": RoleKubernetesGenerateCommand,
|
|
37
|
+
"track": RoleKubernetesTrackCommand,
|
|
36
38
|
"update": RoleKubernetesUpdateCommand,
|
|
37
39
|
"delete": RoleKubernetesDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleKubernetesTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_kubernetes.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleMessagingCreateCommand } from "./RoleMessagingCreateCommand";
|
|
|
23
23
|
import { RoleMessagingDeleteCommand } from "./RoleMessagingDeleteCommand";
|
|
24
24
|
import { RoleMessagingGenerateCommand } from "./RoleMessagingGenerateCommand";
|
|
25
25
|
import { RoleMessagingListCommand } from "./RoleMessagingListCommand";
|
|
26
|
+
import { RoleMessagingTrackCommand } from "./RoleMessagingTrackCommand";
|
|
26
27
|
import { RoleMessagingUpdateCommand } from "./RoleMessagingUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleMessagingCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleMessagingCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleMessagingListCommand,
|
|
34
35
|
"create": RoleMessagingCreateCommand,
|
|
35
36
|
"generate": RoleMessagingGenerateCommand,
|
|
37
|
+
"track": RoleMessagingTrackCommand,
|
|
36
38
|
"update": RoleMessagingUpdateCommand,
|
|
37
39
|
"delete": RoleMessagingDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleMessagingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_messaging.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleMetricCreateCommand } from "./RoleMetricCreateCommand";
|
|
|
23
23
|
import { RoleMetricDeleteCommand } from "./RoleMetricDeleteCommand";
|
|
24
24
|
import { RoleMetricGenerateCommand } from "./RoleMetricGenerateCommand";
|
|
25
25
|
import { RoleMetricListCommand } from "./RoleMetricListCommand";
|
|
26
|
+
import { RoleMetricTrackCommand } from "./RoleMetricTrackCommand";
|
|
26
27
|
import { RoleMetricUpdateCommand } from "./RoleMetricUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleMetricCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleMetricCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleMetricListCommand,
|
|
34
35
|
"create": RoleMetricCreateCommand,
|
|
35
36
|
"generate": RoleMetricGenerateCommand,
|
|
37
|
+
"track": RoleMetricTrackCommand,
|
|
36
38
|
"update": RoleMetricUpdateCommand,
|
|
37
39
|
"delete": RoleMetricDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleMetricTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_metric.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleStreamingCreateCommand } from "./RoleStreamingCreateCommand";
|
|
|
23
23
|
import { RoleStreamingDeleteCommand } from "./RoleStreamingDeleteCommand";
|
|
24
24
|
import { RoleStreamingGenerateCommand } from "./RoleStreamingGenerateCommand";
|
|
25
25
|
import { RoleStreamingListCommand } from "./RoleStreamingListCommand";
|
|
26
|
+
import { RoleStreamingTrackCommand } from "./RoleStreamingTrackCommand";
|
|
26
27
|
import { RoleStreamingUpdateCommand } from "./RoleStreamingUpdateCommand";
|
|
27
28
|
|
|
28
29
|
export class RoleStreamingCommand extends BaseNavigatorCommand
|
|
@@ -33,6 +34,7 @@ export class RoleStreamingCommand extends BaseNavigatorCommand
|
|
|
33
34
|
"list": RoleStreamingListCommand,
|
|
34
35
|
"create": RoleStreamingCreateCommand,
|
|
35
36
|
"generate": RoleStreamingGenerateCommand,
|
|
37
|
+
"track": RoleStreamingTrackCommand,
|
|
36
38
|
"update": RoleStreamingUpdateCommand,
|
|
37
39
|
"delete": RoleStreamingDeleteCommand,
|
|
38
40
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleStreamingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_streaming.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|