namirasoft-support 1.4.12 → 1.4.13
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 +9 -0
- package/dist/command/TicketCreateCommand.js.map +1 -1
- package/dist/row/TicketInputRow.d.ts +1 -0
- package/package.json +1 -1
- package/src/NamirasoftSupportServer.ts +1 -1
- package/src/command/TicketCreateCommand.ts +9 -0
- package/src/row/TicketInputRow.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.13`, 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: "",
|
|
@@ -62,6 +70,7 @@ class TicketCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
62
70
|
let url = this.app.storage.getItem("ns-support-server-url");
|
|
63
71
|
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
64
72
|
let ans = yield server.ticket.Create({
|
|
73
|
+
product_id: this.option_values.product_id,
|
|
65
74
|
category_id: this.option_values.category_id,
|
|
66
75
|
title: this.option_values.title,
|
|
67
76
|
priority: this.option_values.priority,
|
|
@@ -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,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IA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,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,+GAA+G,CAAC,CAAC;YACrI,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YAC5D,IAAI,MAAM,GAAG,IAAI,iDAAuB,CAAC,GAAG,EAAE,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,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;AAlED,kDAkEC;AAAA,CAAC"}
|
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.13`, 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: "",
|
|
@@ -73,6 +81,7 @@ export class TicketCreateCommand extends BaseFinalCommand
|
|
|
73
81
|
let url = this.app.storage.getItem("ns-support-server-url");
|
|
74
82
|
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
75
83
|
let ans = await server.ticket.Create({
|
|
84
|
+
product_id: this.option_values.product_id,
|
|
76
85
|
category_id: this.option_values.category_id,
|
|
77
86
|
title: this.option_values.title,
|
|
78
87
|
priority: this.option_values.priority,
|