namirasoft-support 1.4.12 → 1.4.14
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/NamirasoftSupportServer.js +1 -1
- package/dist/command/TicketCreateCommand.js +18 -0
- package/dist/command/TicketCreateCommand.js.map +1 -1
- package/dist/meta/TicketMetaTable.d.ts +1 -0
- package/dist/meta/TicketMetaTable.js +1 -0
- package/dist/meta/TicketMetaTable.js.map +1 -1
- package/dist/row/TicketInputRow.d.ts +2 -0
- package/dist/row/TicketRow.d.ts +1 -0
- package/package.json +1 -1
- package/src/NamirasoftSupportServer.ts +1 -1
- package/src/command/TicketCreateCommand.ts +18 -0
- package/src/meta/TicketMetaTable.ts +2 -0
- package/src/row/TicketInputRow.ts +2 -0
- package/src/row/TicketRow.ts +1 -0
|
@@ -10,7 +10,7 @@ const NamirasoftSupportServerTicket_1 = require("./NamirasoftSupportServerTicket
|
|
|
10
10
|
const NamirasoftSupportServerValue_1 = require("./NamirasoftSupportServerValue");
|
|
11
11
|
class NamirasoftSupportServer extends namirasoft_account_1.NSABaseServer {
|
|
12
12
|
constructor(base_url, manager, onError) {
|
|
13
|
-
super(base_url, `1.4.
|
|
13
|
+
super(base_url, `1.4.14`, manager, onError);
|
|
14
14
|
this.healthz = new NamirasoftSupportServerHealthz_1.NamirasoftSupportServerHealthz(this);
|
|
15
15
|
this.metrics = new NamirasoftSupportServerMetrics_1.NamirasoftSupportServerMetrics(this);
|
|
16
16
|
this.value = new NamirasoftSupportServerValue_1.NamirasoftSupportServerValue(this);
|
|
@@ -17,6 +17,14 @@ const namirasoft_account_1 = require("namirasoft-account");
|
|
|
17
17
|
class TicketCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
18
|
constructor(argv) {
|
|
19
19
|
super(argv, [], [
|
|
20
|
+
{
|
|
21
|
+
name: "product_id",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'product_id' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["product_id"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
20
28
|
{
|
|
21
29
|
name: "category_id",
|
|
22
30
|
short: "",
|
|
@@ -25,6 +33,14 @@ class TicketCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
25
33
|
args: ["category_id"],
|
|
26
34
|
defaults: [""]
|
|
27
35
|
},
|
|
36
|
+
{
|
|
37
|
+
name: "resource_id",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'resource_id' in body",
|
|
40
|
+
optional: true,
|
|
41
|
+
args: ["resource_id"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
28
44
|
{
|
|
29
45
|
name: "title",
|
|
30
46
|
short: "",
|
|
@@ -62,7 +78,9 @@ class TicketCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
62
78
|
let url = this.app.storage.getItem("ns-support-server-url");
|
|
63
79
|
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
64
80
|
let ans = yield server.ticket.Create({
|
|
81
|
+
product_id: this.option_values.product_id,
|
|
65
82
|
category_id: this.option_values.category_id,
|
|
83
|
+
resource_id: this.option_values.resource_id,
|
|
66
84
|
title: this.option_values.title,
|
|
67
85
|
priority: this.option_values.priority,
|
|
68
86
|
description: this.option_values.description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketCreateCommand.js","sourceRoot":"","sources":["../../src/command/TicketCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,wEAAqE;AACrE,2DAAkD;AAElD,MAAa,mBAAoB,SAAQ,sCAAgB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D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AAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA3ED,kDA2EC;AAAA,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportSe
|
|
|
8
8
|
user_id: BaseMetaColumn;
|
|
9
9
|
product_id: BaseMetaColumn;
|
|
10
10
|
category_id: BaseMetaColumn;
|
|
11
|
+
resource_id: BaseMetaColumn;
|
|
11
12
|
last_sender_id: BaseMetaColumn;
|
|
12
13
|
title: BaseMetaColumn;
|
|
13
14
|
status: BaseMetaColumn;
|
|
@@ -20,6 +20,7 @@ class TicketMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
20
20
|
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
21
|
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
22
22
|
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
23
|
+
resource_id: new namirasoft_core_1.BaseMetaColumn(this, "resource_id", "Resource ID", "String", false),
|
|
23
24
|
last_sender_id: new namirasoft_core_1.BaseMetaColumn(this, "last_sender_id", "Last Sender ID", "String", true),
|
|
24
25
|
title: new namirasoft_core_1.BaseMetaColumn(this, "title", "Title", "String", true),
|
|
25
26
|
status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketMetaTable.js","sourceRoot":"","sources":["../../src/meta/TicketMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AACjF,qDAAsE;AAItE,MAAa,eAAgB,SAAQ,iCAAmD;
|
|
1
|
+
{"version":3,"file":"TicketMetaTable.js","sourceRoot":"","sources":["../../src/meta/TicketMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AACjF,qDAAsE;AAItE,MAAa,eAAgB,SAAQ,iCAAmD;IAiBpF,YAAY,QAAqD;QAE7D,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,E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C,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAChE,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC;IAC5C,CAAC;CACJ;AA/CD,0CA+CC;AAAA,CAAC"}
|
package/dist/row/TicketRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ export class NamirasoftSupportServer extends NSABaseServer
|
|
|
37
37
|
message: NamirasoftSupportServerMessage;
|
|
38
38
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
39
39
|
{
|
|
40
|
-
super(base_url, `1.4.
|
|
40
|
+
super(base_url, `1.4.14`, manager, onError);
|
|
41
41
|
this.healthz = new NamirasoftSupportServerHealthz(this);
|
|
42
42
|
this.metrics = new NamirasoftSupportServerMetrics(this);
|
|
43
43
|
this.value = new NamirasoftSupportServerValue(this);
|
|
@@ -28,6 +28,14 @@ export class TicketCreateCommand extends BaseFinalCommand
|
|
|
28
28
|
constructor(argv: string[])
|
|
29
29
|
{
|
|
30
30
|
super(argv, [], [
|
|
31
|
+
{
|
|
32
|
+
name: "product_id",
|
|
33
|
+
short: "",
|
|
34
|
+
description: "Provides the value of 'product_id' in body",
|
|
35
|
+
optional: false,
|
|
36
|
+
args: ["product_id"],
|
|
37
|
+
defaults: [""]
|
|
38
|
+
},
|
|
31
39
|
{
|
|
32
40
|
name: "category_id",
|
|
33
41
|
short: "",
|
|
@@ -36,6 +44,14 @@ export class TicketCreateCommand extends BaseFinalCommand
|
|
|
36
44
|
args: ["category_id"],
|
|
37
45
|
defaults: [""]
|
|
38
46
|
},
|
|
47
|
+
{
|
|
48
|
+
name: "resource_id",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'resource_id' in body",
|
|
51
|
+
optional: true,
|
|
52
|
+
args: ["resource_id"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
},
|
|
39
55
|
{
|
|
40
56
|
name: "title",
|
|
41
57
|
short: "",
|
|
@@ -73,7 +89,9 @@ export class TicketCreateCommand extends BaseFinalCommand
|
|
|
73
89
|
let url = this.app.storage.getItem("ns-support-server-url");
|
|
74
90
|
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
75
91
|
let ans = await server.ticket.Create({
|
|
92
|
+
product_id: this.option_values.product_id,
|
|
76
93
|
category_id: this.option_values.category_id,
|
|
94
|
+
resource_id: this.option_values.resource_id,
|
|
77
95
|
title: this.option_values.title,
|
|
78
96
|
priority: this.option_values.priority,
|
|
79
97
|
description: this.option_values.description
|
|
@@ -30,6 +30,7 @@ export class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportServer, Ti
|
|
|
30
30
|
user_id: BaseMetaColumn;
|
|
31
31
|
product_id: BaseMetaColumn;
|
|
32
32
|
category_id: BaseMetaColumn;
|
|
33
|
+
resource_id: BaseMetaColumn;
|
|
33
34
|
last_sender_id: BaseMetaColumn;
|
|
34
35
|
title: BaseMetaColumn;
|
|
35
36
|
status: BaseMetaColumn;
|
|
@@ -47,6 +48,7 @@ export class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportServer, Ti
|
|
|
47
48
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
48
49
|
product_id: new BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
49
50
|
category_id: new BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
51
|
+
resource_id: new BaseMetaColumn(this, "resource_id", "Resource ID", "String", false),
|
|
50
52
|
last_sender_id: new BaseMetaColumn(this, "last_sender_id", "Last Sender ID", "String", true),
|
|
51
53
|
title: new BaseMetaColumn(this, "title", "Title", "String", true),
|
|
52
54
|
status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
|