namirasoft-expert 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamirasoftExpertServer.d.ts +23 -0
- package/dist/NamirasoftExpertServer.js +30 -0
- package/dist/NamirasoftExpertServer.js.map +1 -0
- package/dist/NamirasoftExpertServerAgent.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgent.js +64 -0
- package/dist/NamirasoftExpertServerAgent.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentCategory.d.ts +17 -0
- package/dist/NamirasoftExpertServerAgentCategory.js +56 -0
- package/dist/NamirasoftExpertServerAgentCategory.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentField.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgentField.js +64 -0
- package/dist/NamirasoftExpertServerAgentField.js.map +1 -0
- package/dist/NamirasoftExpertServerAgentTag.d.ts +18 -0
- package/dist/NamirasoftExpertServerAgentTag.js +64 -0
- package/dist/NamirasoftExpertServerAgentTag.js.map +1 -0
- package/dist/NamirasoftExpertServerBase.d.ts +5 -0
- package/dist/NamirasoftExpertServerBase.js +11 -0
- package/dist/NamirasoftExpertServerBase.js.map +1 -0
- package/dist/NamirasoftExpertServerChat.d.ts +14 -0
- package/dist/NamirasoftExpertServerChat.js +41 -0
- package/dist/NamirasoftExpertServerChat.js.map +1 -0
- package/dist/NamirasoftExpertServerHealth.d.ts +8 -0
- package/dist/NamirasoftExpertServerHealth.js +35 -0
- package/dist/NamirasoftExpertServerHealth.js.map +1 -0
- package/dist/NamirasoftExpertServerHealthz.d.ts +7 -0
- package/dist/NamirasoftExpertServerHealthz.js +28 -0
- package/dist/NamirasoftExpertServerHealthz.js.map +1 -0
- package/dist/NamirasoftExpertServerMetrics.d.ts +7 -0
- package/dist/NamirasoftExpertServerMetrics.js +28 -0
- package/dist/NamirasoftExpertServerMetrics.js.map +1 -0
- package/dist/NamirasoftExpertServerValue.d.ts +7 -0
- package/dist/NamirasoftExpertServerValue.js +29 -0
- package/dist/NamirasoftExpertServerValue.js.map +1 -0
- package/dist/command/AgentCategoryCommand.d.ts +4 -0
- package/dist/command/AgentCategoryCommand.js +21 -0
- package/dist/command/AgentCategoryCommand.js.map +1 -0
- package/dist/command/AgentCategoryCreateCommand.d.ts +5 -0
- package/dist/command/AgentCategoryCreateCommand.js +58 -0
- package/dist/command/AgentCategoryCreateCommand.js.map +1 -0
- package/dist/command/AgentCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/AgentCategoryDeleteCommand.js +38 -0
- package/dist/command/AgentCategoryDeleteCommand.js.map +1 -0
- package/dist/command/AgentCategoryGetCommand.d.ts +5 -0
- package/dist/command/AgentCategoryGetCommand.js +38 -0
- package/dist/command/AgentCategoryGetCommand.js.map +1 -0
- package/dist/command/AgentCategoryListCommand.d.ts +5 -0
- package/dist/command/AgentCategoryListCommand.js +38 -0
- package/dist/command/AgentCategoryListCommand.js.map +1 -0
- package/dist/command/AgentCommand.d.ts +4 -0
- package/dist/command/AgentCommand.js +23 -0
- package/dist/command/AgentCommand.js.map +1 -0
- package/dist/command/AgentCreateCommand.d.ts +5 -0
- package/dist/command/AgentCreateCommand.js +148 -0
- package/dist/command/AgentCreateCommand.js.map +1 -0
- package/dist/command/AgentDeleteCommand.d.ts +5 -0
- package/dist/command/AgentDeleteCommand.js +38 -0
- package/dist/command/AgentDeleteCommand.js.map +1 -0
- package/dist/command/AgentFieldCommand.d.ts +4 -0
- package/dist/command/AgentFieldCommand.js +23 -0
- package/dist/command/AgentFieldCommand.js.map +1 -0
- package/dist/command/AgentFieldCreateCommand.d.ts +5 -0
- package/dist/command/AgentFieldCreateCommand.js +67 -0
- package/dist/command/AgentFieldCreateCommand.js.map +1 -0
- package/dist/command/AgentFieldDeleteCommand.d.ts +5 -0
- package/dist/command/AgentFieldDeleteCommand.js +38 -0
- package/dist/command/AgentFieldDeleteCommand.js.map +1 -0
- package/dist/command/AgentFieldGetCommand.d.ts +5 -0
- package/dist/command/AgentFieldGetCommand.js +38 -0
- package/dist/command/AgentFieldGetCommand.js.map +1 -0
- package/dist/command/AgentFieldListCommand.d.ts +5 -0
- package/dist/command/AgentFieldListCommand.js +38 -0
- package/dist/command/AgentFieldListCommand.js.map +1 -0
- package/dist/command/AgentFieldUpdateCommand.d.ts +5 -0
- package/dist/command/AgentFieldUpdateCommand.js +67 -0
- package/dist/command/AgentFieldUpdateCommand.js.map +1 -0
- package/dist/command/AgentGetCommand.d.ts +5 -0
- package/dist/command/AgentGetCommand.js +38 -0
- package/dist/command/AgentGetCommand.js.map +1 -0
- package/dist/command/AgentListCommand.d.ts +5 -0
- package/dist/command/AgentListCommand.js +38 -0
- package/dist/command/AgentListCommand.js.map +1 -0
- package/dist/command/AgentTagCommand.d.ts +4 -0
- package/dist/command/AgentTagCommand.js +23 -0
- package/dist/command/AgentTagCommand.js.map +1 -0
- package/dist/command/AgentTagCreateCommand.d.ts +5 -0
- package/dist/command/AgentTagCreateCommand.js +67 -0
- package/dist/command/AgentTagCreateCommand.js.map +1 -0
- package/dist/command/AgentTagDeleteCommand.d.ts +5 -0
- package/dist/command/AgentTagDeleteCommand.js +38 -0
- package/dist/command/AgentTagDeleteCommand.js.map +1 -0
- package/dist/command/AgentTagGetCommand.d.ts +5 -0
- package/dist/command/AgentTagGetCommand.js +38 -0
- package/dist/command/AgentTagGetCommand.js.map +1 -0
- package/dist/command/AgentTagListCommand.d.ts +5 -0
- package/dist/command/AgentTagListCommand.js +38 -0
- package/dist/command/AgentTagListCommand.js.map +1 -0
- package/dist/command/AgentTagUpdateCommand.d.ts +5 -0
- package/dist/command/AgentTagUpdateCommand.js +67 -0
- package/dist/command/AgentTagUpdateCommand.js.map +1 -0
- package/dist/command/AgentUpdateCommand.d.ts +5 -0
- package/dist/command/AgentUpdateCommand.js +148 -0
- package/dist/command/AgentUpdateCommand.js.map +1 -0
- package/dist/command/ChatCommand.d.ts +4 -0
- package/dist/command/ChatCommand.js +17 -0
- package/dist/command/ChatCommand.js.map +1 -0
- package/dist/command/ChatGetCommand.d.ts +5 -0
- package/dist/command/ChatGetCommand.js +38 -0
- package/dist/command/ChatGetCommand.js.map +1 -0
- package/dist/command/ChatListCommand.d.ts +5 -0
- package/dist/command/ChatListCommand.js +38 -0
- package/dist/command/ChatListCommand.js.map +1 -0
- package/dist/command/HealthCommand.d.ts +4 -0
- package/dist/command/HealthCommand.js +17 -0
- package/dist/command/HealthCommand.js.map +1 -0
- package/dist/command/HealthLivenessCommand.d.ts +5 -0
- package/dist/command/HealthLivenessCommand.js +38 -0
- package/dist/command/HealthLivenessCommand.js.map +1 -0
- package/dist/command/HealthReadinessCommand.d.ts +5 -0
- package/dist/command/HealthReadinessCommand.js +38 -0
- package/dist/command/HealthReadinessCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +30 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/ChatType.d.ts +6 -0
- package/dist/enum/ChatType.js +11 -0
- package/dist/enum/ChatType.js.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/AgentCategoryMetaTable.d.ts +15 -0
- package/dist/meta/AgentCategoryMetaTable.js +39 -0
- package/dist/meta/AgentCategoryMetaTable.js.map +1 -0
- package/dist/meta/AgentFieldMetaTable.d.ts +16 -0
- package/dist/meta/AgentFieldMetaTable.js +39 -0
- package/dist/meta/AgentFieldMetaTable.js.map +1 -0
- package/dist/meta/AgentMetaTable.d.ts +25 -0
- package/dist/meta/AgentMetaTable.js +48 -0
- package/dist/meta/AgentMetaTable.js.map +1 -0
- package/dist/meta/AgentTagMetaTable.d.ts +16 -0
- package/dist/meta/AgentTagMetaTable.js +39 -0
- package/dist/meta/AgentTagMetaTable.js.map +1 -0
- package/dist/meta/ChatMetaTable.d.ts +19 -0
- package/dist/meta/ChatMetaTable.js +44 -0
- package/dist/meta/ChatMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.d.ts +21 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.js +35 -0
- package/dist/meta/NamirasoftExpertMetaDatabase.js.map +1 -0
- package/dist/row/AgentCategoryRow.d.ts +8 -0
- package/dist/row/AgentCategoryRow.js +3 -0
- package/dist/row/AgentCategoryRow.js.map +1 -0
- package/dist/row/AgentFieldRow.d.ts +9 -0
- package/dist/row/AgentFieldRow.js +3 -0
- package/dist/row/AgentFieldRow.js.map +1 -0
- package/dist/row/AgentInputRow.d.ts +14 -0
- package/dist/row/AgentInputRow.js +3 -0
- package/dist/row/AgentInputRow.js.map +1 -0
- package/dist/row/AgentRow.d.ts +18 -0
- package/dist/row/AgentRow.js +3 -0
- package/dist/row/AgentRow.js.map +1 -0
- package/dist/row/AgentTagRow.d.ts +9 -0
- package/dist/row/AgentTagRow.js +3 -0
- package/dist/row/AgentTagRow.js.map +1 -0
- package/dist/row/ChatRow.d.ts +13 -0
- package/dist/row/ChatRow.js +3 -0
- package/dist/row/ChatRow.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +4 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +5 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +5 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftExpertServer.ts +57 -0
- package/src/NamirasoftExpertServerAgent.ts +71 -0
- package/src/NamirasoftExpertServerAgentCategory.ts +64 -0
- package/src/NamirasoftExpertServerAgentField.ts +71 -0
- package/src/NamirasoftExpertServerAgentTag.ts +71 -0
- package/src/NamirasoftExpertServerBase.ts +30 -0
- package/src/NamirasoftExpertServerChat.ts +50 -0
- package/src/NamirasoftExpertServerHealth.ts +43 -0
- package/src/NamirasoftExpertServerHealthz.ts +37 -0
- package/src/NamirasoftExpertServerMetrics.ts +37 -0
- package/src/NamirasoftExpertServerValue.ts +38 -0
- package/src/command/AgentCategoryCommand.ts +38 -0
- package/src/command/AgentCategoryCreateCommand.ts +65 -0
- package/src/command/AgentCategoryDeleteCommand.ts +45 -0
- package/src/command/AgentCategoryGetCommand.ts +45 -0
- package/src/command/AgentCategoryListCommand.ts +45 -0
- package/src/command/AgentCommand.ts +40 -0
- package/src/command/AgentCreateCommand.ts +155 -0
- package/src/command/AgentDeleteCommand.ts +45 -0
- package/src/command/AgentFieldCommand.ts +40 -0
- package/src/command/AgentFieldCreateCommand.ts +74 -0
- package/src/command/AgentFieldDeleteCommand.ts +45 -0
- package/src/command/AgentFieldGetCommand.ts +45 -0
- package/src/command/AgentFieldListCommand.ts +45 -0
- package/src/command/AgentFieldUpdateCommand.ts +74 -0
- package/src/command/AgentGetCommand.ts +45 -0
- package/src/command/AgentListCommand.ts +45 -0
- package/src/command/AgentTagCommand.ts +40 -0
- package/src/command/AgentTagCreateCommand.ts +74 -0
- package/src/command/AgentTagDeleteCommand.ts +45 -0
- package/src/command/AgentTagGetCommand.ts +45 -0
- package/src/command/AgentTagListCommand.ts +45 -0
- package/src/command/AgentTagUpdateCommand.ts +74 -0
- package/src/command/AgentUpdateCommand.ts +155 -0
- package/src/command/ChatCommand.ts +34 -0
- package/src/command/ChatGetCommand.ts +45 -0
- package/src/command/ChatListCommand.ts +45 -0
- package/src/command/HealthCommand.ts +34 -0
- package/src/command/HealthLivenessCommand.ts +45 -0
- package/src/command/HealthReadinessCommand.ts +45 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +49 -0
- package/src/enum/ChatType.ts +27 -0
- package/src/index.ts +82 -0
- package/src/meta/AgentCategoryMetaTable.ts +60 -0
- package/src/meta/AgentFieldMetaTable.ts +61 -0
- package/src/meta/AgentMetaTable.ts +79 -0
- package/src/meta/AgentTagMetaTable.ts +61 -0
- package/src/meta/ChatMetaTable.ts +69 -0
- package/src/meta/NamirasoftExpertMetaDatabase.ts +63 -0
- package/src/row/AgentCategoryRow.ts +29 -0
- package/src/row/AgentFieldRow.ts +30 -0
- package/src/row/AgentInputRow.ts +35 -0
- package/src/row/AgentRow.ts +39 -0
- package/src/row/AgentTagRow.ts +30 -0
- package/src/row/ChatRow.ts +35 -0
- package/src/row/EntityCategoryInputRow.ts +25 -0
- package/src/row/EntityFieldInputRow.ts +26 -0
- package/src/row/EntityTagInputRow.ts +26 -0
- package/tsconfig.json +42 -0
|
@@ -0,0 +1,79 @@
|
|
|
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 { AgentRow } from "../row/AgentRow";
|
|
22
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
23
|
+
import { FilterItem, SortItem } from "namirasoft-core";
|
|
24
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
26
|
+
|
|
27
|
+
export class AgentMetaTable extends NSBaseMetaTable<NamirasoftExpertServer, AgentRow>
|
|
28
|
+
{
|
|
29
|
+
public override columns: {
|
|
30
|
+
id: BaseMetaColumn;
|
|
31
|
+
user_id: BaseMetaColumn;
|
|
32
|
+
workspace_id: BaseMetaColumn;
|
|
33
|
+
project_id: BaseMetaColumn;
|
|
34
|
+
environment_id: BaseMetaColumn;
|
|
35
|
+
target_topic_id: BaseMetaColumn;
|
|
36
|
+
name: BaseMetaColumn;
|
|
37
|
+
server_ids: BaseMetaColumn;
|
|
38
|
+
kubernetes_ids: BaseMetaColumn;
|
|
39
|
+
database_ids: BaseMetaColumn;
|
|
40
|
+
cache_ids: BaseMetaColumn;
|
|
41
|
+
messaging_ids: BaseMetaColumn;
|
|
42
|
+
streaming_ids: BaseMetaColumn;
|
|
43
|
+
description: BaseMetaColumn;
|
|
44
|
+
created_at: BaseMetaColumn;
|
|
45
|
+
updated_at: BaseMetaColumn;
|
|
46
|
+
}
|
|
47
|
+
constructor(database: NSBaseMetaDatabase<NamirasoftExpertServer>)
|
|
48
|
+
{
|
|
49
|
+
super(database, "agent", "Agent", new BaseUUID("ifr-agt"));
|
|
50
|
+
this.columns = {
|
|
51
|
+
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
52
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
53
|
+
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
54
|
+
project_id: new BaseMetaColumn(this, "project_id", "Project ID", "Any", false),
|
|
55
|
+
environment_id: new BaseMetaColumn(this, "environment_id", "Environment ID", "Any", false),
|
|
56
|
+
target_topic_id: new BaseMetaColumn(this, "target_topic_id", "Target Topic ID", "String", false),
|
|
57
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
58
|
+
server_ids: new BaseMetaColumn(this, "server_ids", "Server Ids", "Any", false),
|
|
59
|
+
kubernetes_ids: new BaseMetaColumn(this, "kubernetes_ids", "Kubernetes Ids", "Any", false),
|
|
60
|
+
database_ids: new BaseMetaColumn(this, "database_ids", "Database Ids", "Any", false),
|
|
61
|
+
cache_ids: new BaseMetaColumn(this, "cache_ids", "Cache Ids", "Any", false),
|
|
62
|
+
messaging_ids: new BaseMetaColumn(this, "messaging_ids", "Messaging Ids", "Any", false),
|
|
63
|
+
streaming_ids: new BaseMetaColumn(this, "streaming_ids", "Streaming Ids", "Any", false),
|
|
64
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", true),
|
|
65
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
66
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
67
|
+
};
|
|
68
|
+
this.back_end.get = async (id: string) =>
|
|
69
|
+
{
|
|
70
|
+
let server = this.database.getServer();
|
|
71
|
+
return await server.agent.Get(id);
|
|
72
|
+
};
|
|
73
|
+
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
74
|
+
{
|
|
75
|
+
let server = this.database.getServer();
|
|
76
|
+
return await server.agent.List(filters, page, size, sorts);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { AgentTagRow } from "../row/AgentTagRow";
|
|
22
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
23
|
+
import { FilterItem, SortItem } from "namirasoft-core";
|
|
24
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
26
|
+
|
|
27
|
+
export class AgentTagMetaTable extends NSBaseMetaTable<NamirasoftExpertServer, AgentTagRow>
|
|
28
|
+
{
|
|
29
|
+
public override columns: {
|
|
30
|
+
id: BaseMetaColumn;
|
|
31
|
+
user_id: BaseMetaColumn;
|
|
32
|
+
entity_id: BaseMetaColumn;
|
|
33
|
+
name: BaseMetaColumn;
|
|
34
|
+
value: BaseMetaColumn;
|
|
35
|
+
created_at: BaseMetaColumn;
|
|
36
|
+
updated_at: BaseMetaColumn;
|
|
37
|
+
}
|
|
38
|
+
constructor(database: NSBaseMetaDatabase<NamirasoftExpertServer>)
|
|
39
|
+
{
|
|
40
|
+
super(database, "agent_tag", "Agent Tag", new BaseUUID(""));
|
|
41
|
+
this.columns = {
|
|
42
|
+
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
43
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
44
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
45
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
46
|
+
value: new BaseMetaColumn(this, "value", "Value", "String", false),
|
|
47
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
48
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
49
|
+
};
|
|
50
|
+
this.back_end.get = async (id: string) =>
|
|
51
|
+
{
|
|
52
|
+
let server = this.database.getServer();
|
|
53
|
+
return await server.agent_tag.Get(id);
|
|
54
|
+
};
|
|
55
|
+
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
56
|
+
{
|
|
57
|
+
let server = this.database.getServer();
|
|
58
|
+
return await server.agent_tag.List(filters, page, size, sorts);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { ChatRow } from "../row/ChatRow";
|
|
23
|
+
import { FilterItem, SortItem } from "namirasoft-core";
|
|
24
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
26
|
+
|
|
27
|
+
export class ChatMetaTable extends NSBaseMetaTable<NamirasoftExpertServer, ChatRow>
|
|
28
|
+
{
|
|
29
|
+
public override columns: {
|
|
30
|
+
id: BaseMetaColumn;
|
|
31
|
+
user_id: BaseMetaColumn;
|
|
32
|
+
workspace_id: BaseMetaColumn;
|
|
33
|
+
agent_id: BaseMetaColumn;
|
|
34
|
+
incident_id: BaseMetaColumn;
|
|
35
|
+
type: BaseMetaColumn;
|
|
36
|
+
name: BaseMetaColumn;
|
|
37
|
+
meta: BaseMetaColumn;
|
|
38
|
+
created_at: BaseMetaColumn;
|
|
39
|
+
updated_at: BaseMetaColumn;
|
|
40
|
+
}
|
|
41
|
+
constructor(database: NSBaseMetaDatabase<NamirasoftExpertServer>)
|
|
42
|
+
{
|
|
43
|
+
super(database, "chat", "Chat", new BaseUUID("ifr-cht"));
|
|
44
|
+
this.columns = {
|
|
45
|
+
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
46
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
47
|
+
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
48
|
+
agent_id: new BaseMetaColumn(this, "agent_id", "Agent ID", "String", true),
|
|
49
|
+
incident_id: new BaseMetaColumn(this, "incident_id", "Incident ID", "String", false),
|
|
50
|
+
type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
51
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
52
|
+
meta: new BaseMetaColumn(this, "meta", "Meta", "Any", true),
|
|
53
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
54
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
55
|
+
};
|
|
56
|
+
this.back_end.get = async (id: string) =>
|
|
57
|
+
{
|
|
58
|
+
let server = this.database.getServer();
|
|
59
|
+
return await server.chat.Get(id);
|
|
60
|
+
};
|
|
61
|
+
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
62
|
+
{
|
|
63
|
+
let server = this.database.getServer();
|
|
64
|
+
return await server.chat.List(filters, page, size, sorts);
|
|
65
|
+
};
|
|
66
|
+
this.front_end.getNewLink = () => "";
|
|
67
|
+
this.front_end.getUpdateLink = () => "";
|
|
68
|
+
}
|
|
69
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { AgentCategoryMetaTable } from "./AgentCategoryMetaTable";
|
|
22
|
+
import { AgentFieldMetaTable } from "./AgentFieldMetaTable";
|
|
23
|
+
import { AgentMetaTable } from "./AgentMetaTable";
|
|
24
|
+
import { AgentTagMetaTable } from "./AgentTagMetaTable";
|
|
25
|
+
import { ChatMetaTable } from "./ChatMetaTable";
|
|
26
|
+
import { EnvService } from "namirasoft-core";
|
|
27
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
28
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
29
|
+
import { TokenManager } from "namirasoft-account";
|
|
30
|
+
|
|
31
|
+
export class NamirasoftExpertMetaDatabase extends NSBaseMetaDatabase<NamirasoftExpertServer>
|
|
32
|
+
{
|
|
33
|
+
private token_manager?: TokenManager;
|
|
34
|
+
private onError?: (error: Error) => void;
|
|
35
|
+
public override tables: {
|
|
36
|
+
agent_category: AgentCategoryMetaTable,
|
|
37
|
+
agent_field: AgentFieldMetaTable,
|
|
38
|
+
agent_tag: AgentTagMetaTable,
|
|
39
|
+
agent: AgentMetaTable,
|
|
40
|
+
chat: ChatMetaTable,
|
|
41
|
+
};
|
|
42
|
+
constructor(token_manager?: TokenManager, onError?: (error: Error) => void)
|
|
43
|
+
{
|
|
44
|
+
super({ id: "prd-004bd13e48364979", name: "Namirasoft Infra", headline: "", description: "", logo: "https://static.namirasoft.com/image/namirasoft/infra/logo/base.png", link: "" });
|
|
45
|
+
this.token_manager = token_manager;
|
|
46
|
+
this.onError = onError;
|
|
47
|
+
this.tables = {
|
|
48
|
+
agent_category: new AgentCategoryMetaTable(this),
|
|
49
|
+
agent_field: new AgentFieldMetaTable(this),
|
|
50
|
+
agent_tag: new AgentTagMetaTable(this),
|
|
51
|
+
agent: new AgentMetaTable(this),
|
|
52
|
+
chat: new ChatMetaTable(this),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
override getServer(): NamirasoftExpertServer
|
|
56
|
+
{
|
|
57
|
+
if (!this.token_manager || !this.onError)
|
|
58
|
+
throw new Error("Arguments of NamirasoftExpertMetaDatabase (token_manager, onError) are required for server operations.")
|
|
59
|
+
let NAME = NSBaseMetaDatabase.getServerBaseURL(this.product.name);
|
|
60
|
+
let BASE_URL = new EnvService(NAME, true).getString();
|
|
61
|
+
return new NamirasoftExpertServer(BASE_URL, this.token_manager, this.onError);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
export type AgentCategoryRow =
|
|
22
|
+
{
|
|
23
|
+
id: number;
|
|
24
|
+
user_id: string;
|
|
25
|
+
entity_id: string;
|
|
26
|
+
category_id: string;
|
|
27
|
+
created_at: Date;
|
|
28
|
+
updated_at: Date;
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
export type AgentFieldRow =
|
|
22
|
+
{
|
|
23
|
+
id: number;
|
|
24
|
+
user_id: string;
|
|
25
|
+
entity_id: string;
|
|
26
|
+
field_id: string;
|
|
27
|
+
value: (string | null);
|
|
28
|
+
created_at: Date;
|
|
29
|
+
updated_at: Date;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export type AgentInputRow =
|
|
22
|
+
{
|
|
23
|
+
workspace_id: string;
|
|
24
|
+
project_id: (any | null);
|
|
25
|
+
environment_id: (any | null);
|
|
26
|
+
target_topic_id: (string | null);
|
|
27
|
+
name: string;
|
|
28
|
+
server_ids: (any | null);
|
|
29
|
+
kubernetes_ids: (any | null);
|
|
30
|
+
database_ids: (any | null);
|
|
31
|
+
cache_ids: (any | null);
|
|
32
|
+
messaging_ids: (any | null);
|
|
33
|
+
streaming_ids: (any | null);
|
|
34
|
+
description: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export type AgentRow =
|
|
22
|
+
{
|
|
23
|
+
id: string;
|
|
24
|
+
user_id: string;
|
|
25
|
+
workspace_id: string;
|
|
26
|
+
project_id: (any | null);
|
|
27
|
+
environment_id: (any | null);
|
|
28
|
+
target_topic_id: (string | null);
|
|
29
|
+
name: string;
|
|
30
|
+
server_ids: (any | null);
|
|
31
|
+
kubernetes_ids: (any | null);
|
|
32
|
+
database_ids: (any | null);
|
|
33
|
+
cache_ids: (any | null);
|
|
34
|
+
messaging_ids: (any | null);
|
|
35
|
+
streaming_ids: (any | null);
|
|
36
|
+
description: string;
|
|
37
|
+
created_at: Date;
|
|
38
|
+
updated_at: Date;
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
export type AgentTagRow =
|
|
22
|
+
{
|
|
23
|
+
id: number;
|
|
24
|
+
user_id: string;
|
|
25
|
+
entity_id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
value: (string | null);
|
|
28
|
+
created_at: Date;
|
|
29
|
+
updated_at: Date;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { ChatType } from "../enum/ChatType";
|
|
22
|
+
|
|
23
|
+
export type ChatRow =
|
|
24
|
+
{
|
|
25
|
+
id: string;
|
|
26
|
+
user_id: string;
|
|
27
|
+
workspace_id: string;
|
|
28
|
+
agent_id: string;
|
|
29
|
+
incident_id: (string | null);
|
|
30
|
+
type: ChatType;
|
|
31
|
+
name: string;
|
|
32
|
+
meta: any;
|
|
33
|
+
created_at: Date;
|
|
34
|
+
updated_at: Date;
|
|
35
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export type EntityCategoryInputRow =
|
|
22
|
+
{
|
|
23
|
+
entity_id: string;
|
|
24
|
+
category_id: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
export type EntityFieldInputRow =
|
|
22
|
+
{
|
|
23
|
+
entity_id: string;
|
|
24
|
+
field_id: string;
|
|
25
|
+
value: (any | null);
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
export type EntityTagInputRow =
|
|
22
|
+
{
|
|
23
|
+
entity_id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
value: (string | null);
|
|
26
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES6",
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"lib": [
|
|
8
|
+
"es6",
|
|
9
|
+
"dom"
|
|
10
|
+
],
|
|
11
|
+
"allowJs": false,
|
|
12
|
+
"checkJs": false,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"declaration": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noImplicitAny": true,
|
|
21
|
+
"noImplicitOverride": true,
|
|
22
|
+
"noImplicitReturns": true,
|
|
23
|
+
"noImplicitThis": true,
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"allowSyntheticDefaultImports": true,
|
|
26
|
+
"forceConsistentCasingInFileNames": true,
|
|
27
|
+
"noFallthroughCasesInSwitch": true,
|
|
28
|
+
"isolatedModules": false,
|
|
29
|
+
"removeComments": true
|
|
30
|
+
},
|
|
31
|
+
"include": [
|
|
32
|
+
"src",
|
|
33
|
+
"build/types/**/*.ts"
|
|
34
|
+
],
|
|
35
|
+
"exclude": [
|
|
36
|
+
"node_modules",
|
|
37
|
+
"build",
|
|
38
|
+
"dist",
|
|
39
|
+
"static",
|
|
40
|
+
"public"
|
|
41
|
+
]
|
|
42
|
+
}
|