namirasoft-support 1.4.10 → 1.4.12
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/NamirasoftSupportServerMessage.d.ts +0 -1
- package/dist/NamirasoftSupportServerMessage.js +0 -8
- package/dist/NamirasoftSupportServerMessage.js.map +1 -1
- package/dist/NamirasoftSupportServerTicket.d.ts +0 -1
- package/dist/NamirasoftSupportServerTicket.js +0 -8
- package/dist/NamirasoftSupportServerTicket.js.map +1 -1
- package/dist/command/MessageCommand.js +0 -2
- package/dist/command/MessageCommand.js.map +1 -1
- package/dist/command/TicketCommand.js +0 -2
- package/dist/command/TicketCommand.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/MessageMetaTable.js +1 -0
- package/dist/meta/MessageMetaTable.js.map +1 -1
- package/dist/meta/TicketMetaTable.d.ts +1 -0
- package/dist/meta/TicketMetaTable.js +2 -0
- package/dist/meta/TicketMetaTable.js.map +1 -1
- package/dist/row/TicketRow.d.ts +1 -0
- package/package.json +2 -2
- package/src/NamirasoftSupportServer.ts +1 -1
- package/src/NamirasoftSupportServerMessage.ts +0 -7
- package/src/NamirasoftSupportServerTicket.ts +0 -7
- package/src/command/MessageCommand.ts +0 -2
- package/src/command/TicketCommand.ts +0 -2
- package/src/index.ts +0 -2
- package/src/meta/MessageMetaTable.ts +1 -0
- package/src/meta/TicketMetaTable.ts +3 -0
- package/src/row/TicketRow.ts +1 -0
- package/dist/command/MessageUpdateCommand.d.ts +0 -5
- package/dist/command/MessageUpdateCommand.js +0 -76
- package/dist/command/MessageUpdateCommand.js.map +0 -1
- package/dist/command/TicketUpdateCommand.d.ts +0 -5
- package/dist/command/TicketUpdateCommand.js +0 -76
- package/dist/command/TicketUpdateCommand.js.map +0 -1
- package/src/command/MessageUpdateCommand.ts +0 -83
- package/src/command/TicketUpdateCommand.ts +0 -83
|
@@ -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.12`, 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);
|
|
@@ -19,7 +19,6 @@ class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase_1.Namir
|
|
|
19
19
|
this.List = this.List.bind(this);
|
|
20
20
|
this.Get = this.Get.bind(this);
|
|
21
21
|
this.Create = this.Create.bind(this);
|
|
22
|
-
this.Update = this.Update.bind(this);
|
|
23
22
|
}
|
|
24
23
|
List(filters, page, size, sorts) {
|
|
25
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -44,13 +43,6 @@ class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase_1.Namir
|
|
|
44
43
|
return data;
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
Update(id, body) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
let path = `/message/${id}`;
|
|
50
|
-
let { data } = yield this.server._put(path, {}, body);
|
|
51
|
-
return data;
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
46
|
}
|
|
55
47
|
exports.NamirasoftSupportServerMessage = NamirasoftSupportServerMessage;
|
|
56
48
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSupportServerMessage.js","sourceRoot":"","sources":["../src/NamirasoftSupportServerMessage.ts"],"names":[],"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C,MAAM,CAAC,IAAI,CAAwC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC7J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,YAAY,EAAE,EAAE,CAAC;YAC5B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,IAAI,EAAE,EAAE,CAAC,CAAC;YAC5D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAAqB;;YAE9B,IAAI,IAAI,GAAG,UAAU,CAAC;YACtB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AA7BD,wEA6BC;AAAA,CAAC"}
|
|
@@ -12,6 +12,5 @@ export declare class NamirasoftSupportServerTicket extends NamirasoftSupportServ
|
|
|
12
12
|
}>;
|
|
13
13
|
Get(id: string): Promise<TicketRow>;
|
|
14
14
|
Create(body: TicketInputRow): Promise<TicketRow>;
|
|
15
|
-
Update(id: string, body: TicketInputRow): Promise<TicketRow>;
|
|
16
15
|
Resolved(id: string): Promise<TicketRow>;
|
|
17
16
|
}
|
|
@@ -19,7 +19,6 @@ class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase_1.Namira
|
|
|
19
19
|
this.List = this.List.bind(this);
|
|
20
20
|
this.Get = this.Get.bind(this);
|
|
21
21
|
this.Create = this.Create.bind(this);
|
|
22
|
-
this.Update = this.Update.bind(this);
|
|
23
22
|
this.Resolved = this.Resolved.bind(this);
|
|
24
23
|
}
|
|
25
24
|
List(filters, page, size, sorts) {
|
|
@@ -45,13 +44,6 @@ class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase_1.Namira
|
|
|
45
44
|
return data;
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
|
-
Update(id, body) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
let path = `/ticket/${id}`;
|
|
51
|
-
let { data } = yield this.server._put(path, {}, body);
|
|
52
|
-
return data;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
47
|
Resolved(id) {
|
|
56
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
49
|
let path = `/ticket/resolved/${id}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSupportServerTicket.js","sourceRoot":"","sources":["../src/NamirasoftSupportServerTicket.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;AAI3C,MAAa,6BAA8B,SAAQ,yDAA2B;IAE1E,YAAY,MAA+B;QAEvC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"NamirasoftSupportServerTicket.js","sourceRoot":"","sources":["../src/NamirasoftSupportServerTicket.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;AAI3C,MAAa,6BAA8B,SAAQ,yDAA2B;IAE1E,YAAY,MAA+B;QAEvC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC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B,IAAI,IAAI,GAAG,oBAAoB,EAAE,EAAE,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,EAAE,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApCD,sEAoCC;AAAA,CAAC"}
|
|
@@ -5,14 +5,12 @@ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
|
5
5
|
const MessageCreateCommand_1 = require("./MessageCreateCommand");
|
|
6
6
|
const MessageGetCommand_1 = require("./MessageGetCommand");
|
|
7
7
|
const MessageListCommand_1 = require("./MessageListCommand");
|
|
8
|
-
const MessageUpdateCommand_1 = require("./MessageUpdateCommand");
|
|
9
8
|
class MessageCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
10
9
|
constructor(argv) {
|
|
11
10
|
super(argv, {
|
|
12
11
|
"list": MessageListCommand_1.MessageListCommand,
|
|
13
12
|
"get": MessageGetCommand_1.MessageGetCommand,
|
|
14
13
|
"create": MessageCreateCommand_1.MessageCreateCommand,
|
|
15
|
-
"update": MessageUpdateCommand_1.MessageUpdateCommand,
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageCommand.js","sourceRoot":"","sources":["../../src/command/MessageCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,iEAA8D;AAC9D,2DAAwD;AACxD,6DAA0D;
|
|
1
|
+
{"version":3,"file":"MessageCommand.js","sourceRoot":"","sources":["../../src/command/MessageCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,iEAA8D;AAC9D,2DAAwD;AACxD,6DAA0D;AAE1D,MAAa,cAAe,SAAQ,0CAAoB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,uCAAkB;YAC1B,KAAK,EAAE,qCAAiB;YACxB,QAAQ,EAAE,2CAAoB;SACjC,CAAC,CAAC;IACP,CAAC;CACJ;AAVD,wCAUC;AAAA,CAAC"}
|
|
@@ -6,14 +6,12 @@ const TicketCreateCommand_1 = require("./TicketCreateCommand");
|
|
|
6
6
|
const TicketGetCommand_1 = require("./TicketGetCommand");
|
|
7
7
|
const TicketListCommand_1 = require("./TicketListCommand");
|
|
8
8
|
const TicketResolvedCommand_1 = require("./TicketResolvedCommand");
|
|
9
|
-
const TicketUpdateCommand_1 = require("./TicketUpdateCommand");
|
|
10
9
|
class TicketCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
11
10
|
constructor(argv) {
|
|
12
11
|
super(argv, {
|
|
13
12
|
"list": TicketListCommand_1.TicketListCommand,
|
|
14
13
|
"get": TicketGetCommand_1.TicketGetCommand,
|
|
15
14
|
"create": TicketCreateCommand_1.TicketCreateCommand,
|
|
16
|
-
"update": TicketUpdateCommand_1.TicketUpdateCommand,
|
|
17
15
|
"resolved": TicketResolvedCommand_1.TicketResolvedCommand,
|
|
18
16
|
});
|
|
19
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketCommand.js","sourceRoot":"","sources":["../../src/command/TicketCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,+DAA4D;AAC5D,yDAAsD;AACtD,2DAAwD;AACxD,mEAAgE;
|
|
1
|
+
{"version":3,"file":"TicketCommand.js","sourceRoot":"","sources":["../../src/command/TicketCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,+DAA4D;AAC5D,yDAAsD;AACtD,2DAAwD;AACxD,mEAAgE;AAEhE,MAAa,aAAc,SAAQ,0CAAoB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,qCAAiB;YACzB,KAAK,EAAE,mCAAgB;YACvB,QAAQ,EAAE,yCAAmB;YAC7B,UAAU,EAAE,6CAAqB;SACpC,CAAC,CAAC;IACP,CAAC;CACJ;AAXD,sCAWC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from "./command/MessageCommand";
|
|
|
15
15
|
export * from "./command/MessageCreateCommand";
|
|
16
16
|
export * from "./command/MessageGetCommand";
|
|
17
17
|
export * from "./command/MessageListCommand";
|
|
18
|
-
export * from "./command/MessageUpdateCommand";
|
|
19
18
|
export * from "./command/MetricsCommand";
|
|
20
19
|
export * from "./command/MetricsGetCommand";
|
|
21
20
|
export * from "./command/TicketCommand";
|
|
@@ -23,7 +22,6 @@ export * from "./command/TicketCreateCommand";
|
|
|
23
22
|
export * from "./command/TicketGetCommand";
|
|
24
23
|
export * from "./command/TicketListCommand";
|
|
25
24
|
export * from "./command/TicketResolvedCommand";
|
|
26
|
-
export * from "./command/TicketUpdateCommand";
|
|
27
25
|
export * from "./command/ValueCommand";
|
|
28
26
|
export * from "./command/ValueListCommand";
|
|
29
27
|
export * from "./enum/TicketAssignee";
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./command/MessageCommand"), exports);
|
|
|
31
31
|
__exportStar(require("./command/MessageCreateCommand"), exports);
|
|
32
32
|
__exportStar(require("./command/MessageGetCommand"), exports);
|
|
33
33
|
__exportStar(require("./command/MessageListCommand"), exports);
|
|
34
|
-
__exportStar(require("./command/MessageUpdateCommand"), exports);
|
|
35
34
|
__exportStar(require("./command/MetricsCommand"), exports);
|
|
36
35
|
__exportStar(require("./command/MetricsGetCommand"), exports);
|
|
37
36
|
__exportStar(require("./command/TicketCommand"), exports);
|
|
@@ -39,7 +38,6 @@ __exportStar(require("./command/TicketCreateCommand"), exports);
|
|
|
39
38
|
__exportStar(require("./command/TicketGetCommand"), exports);
|
|
40
39
|
__exportStar(require("./command/TicketListCommand"), exports);
|
|
41
40
|
__exportStar(require("./command/TicketResolvedCommand"), exports);
|
|
42
|
-
__exportStar(require("./command/TicketUpdateCommand"), exports);
|
|
43
41
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
44
42
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
45
43
|
__exportStar(require("./enum/TicketAssignee"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,4DAA0C;AAC1C,gEAA8C;AAC9C,oEAAkD;AAClD,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,iEAA+C;AAC/C,4DAA0C;AAC1C,+DAA6C;AAC7C,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,4DAA0C;AAC1C,gEAA8C;AAC9C,oEAAkD;AAClD,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,iEAA+C;AAC/C,4DAA0C;AAC1C,+DAA6C;AAC7C,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,kEAAgD;AAChD,yDAAuC;AACvC,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,0DAAwC;AACxC,uEAAqD;AACrD,yDAAuC;AACvC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC"}
|
|
@@ -32,6 +32,7 @@ class MessageMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
32
32
|
let server = this.database.getServer();
|
|
33
33
|
return yield server.message.List(filters, page, size, sorts);
|
|
34
34
|
});
|
|
35
|
+
this.front_end.getUpdateLink = () => "";
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
exports.MessageMetaTable = MessageMetaTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageMetaTable.js","sourceRoot":"","sources":["../../src/meta/MessageMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AAGtE,MAAa,gBAAiB,SAAQ,iCAAoD;IAWtF,YAAY,QAAqD;QAE7D,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAC/D,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,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,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,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI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AAE,IAAI,CAAC;YAC7E,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,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC;IAC5C,CAAC;CACJ;AAnCD,4CAmCC;AAAA,CAAC"}
|
|
@@ -18,6 +18,7 @@ class TicketMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
18
18
|
this.columns = {
|
|
19
19
|
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
20
|
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
21
22
|
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
22
23
|
last_sender_id: new namirasoft_core_1.BaseMetaColumn(this, "last_sender_id", "Last Sender ID", "String", true),
|
|
23
24
|
title: new namirasoft_core_1.BaseMetaColumn(this, "title", "Title", "String", true),
|
|
@@ -36,6 +37,7 @@ class TicketMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
36
37
|
let server = this.database.getServer();
|
|
37
38
|
return yield server.ticket.List(filters, page, size, sorts);
|
|
38
39
|
});
|
|
40
|
+
this.front_end.getUpdateLink = () => "";
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
exports.TicketMetaTable = TicketMetaTable;
|
|
@@ -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;IAgBpF,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,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OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,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;AA7CD,0CA6CC;AAAA,CAAC"}
|
package/dist/row/TicketRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.12",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"namirasoft-core": "^1.4.91",
|
|
21
21
|
"namirasoft-site": "^1.4.40",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.10",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.93"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-support": "./dist/command/cli.js"
|
|
@@ -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.12`, manager, onError);
|
|
41
41
|
this.healthz = new NamirasoftSupportServerHealthz(this);
|
|
42
42
|
this.metrics = new NamirasoftSupportServerMetrics(this);
|
|
43
43
|
this.value = new NamirasoftSupportServerValue(this);
|
|
@@ -33,7 +33,6 @@ export class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase
|
|
|
33
33
|
this.List = this.List.bind(this);
|
|
34
34
|
this.Get = this.Get.bind(this);
|
|
35
35
|
this.Create = this.Create.bind(this);
|
|
36
|
-
this.Update = this.Update.bind(this);
|
|
37
36
|
}
|
|
38
37
|
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: MessageRow[], count: number }>
|
|
39
38
|
{
|
|
@@ -55,10 +54,4 @@ export class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase
|
|
|
55
54
|
let { data } = await this.server._post<MessageRow>(path, {}, body);
|
|
56
55
|
return data;
|
|
57
56
|
}
|
|
58
|
-
async Update(id: string, body: MessageInputRow): Promise<MessageRow>
|
|
59
|
-
{
|
|
60
|
-
let path = `/message/${id}`;
|
|
61
|
-
let { data } = await this.server._put<MessageRow>(path, {}, body);
|
|
62
|
-
return data;
|
|
63
|
-
}
|
|
64
57
|
};
|
|
@@ -33,7 +33,6 @@ export class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase
|
|
|
33
33
|
this.List = this.List.bind(this);
|
|
34
34
|
this.Get = this.Get.bind(this);
|
|
35
35
|
this.Create = this.Create.bind(this);
|
|
36
|
-
this.Update = this.Update.bind(this);
|
|
37
36
|
this.Resolved = this.Resolved.bind(this);
|
|
38
37
|
}
|
|
39
38
|
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: TicketRow[], count: number }>
|
|
@@ -56,12 +55,6 @@ export class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase
|
|
|
56
55
|
let { data } = await this.server._post<TicketRow>(path, {}, body);
|
|
57
56
|
return data;
|
|
58
57
|
}
|
|
59
|
-
async Update(id: string, body: TicketInputRow): Promise<TicketRow>
|
|
60
|
-
{
|
|
61
|
-
let path = `/ticket/${id}`;
|
|
62
|
-
let { data } = await this.server._put<TicketRow>(path, {}, body);
|
|
63
|
-
return data;
|
|
64
|
-
}
|
|
65
58
|
async Resolved(id: string): Promise<TicketRow>
|
|
66
59
|
{
|
|
67
60
|
let path = `/ticket/resolved/${id}`;
|
|
@@ -22,7 +22,6 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { MessageCreateCommand } from "./MessageCreateCommand";
|
|
23
23
|
import { MessageGetCommand } from "./MessageGetCommand";
|
|
24
24
|
import { MessageListCommand } from "./MessageListCommand";
|
|
25
|
-
import { MessageUpdateCommand } from "./MessageUpdateCommand";
|
|
26
25
|
|
|
27
26
|
export class MessageCommand extends BaseNavigatorCommand
|
|
28
27
|
{
|
|
@@ -32,7 +31,6 @@ export class MessageCommand extends BaseNavigatorCommand
|
|
|
32
31
|
"list": MessageListCommand,
|
|
33
32
|
"get": MessageGetCommand,
|
|
34
33
|
"create": MessageCreateCommand,
|
|
35
|
-
"update": MessageUpdateCommand,
|
|
36
34
|
});
|
|
37
35
|
}
|
|
38
36
|
};
|
|
@@ -23,7 +23,6 @@ import { TicketCreateCommand } from "./TicketCreateCommand";
|
|
|
23
23
|
import { TicketGetCommand } from "./TicketGetCommand";
|
|
24
24
|
import { TicketListCommand } from "./TicketListCommand";
|
|
25
25
|
import { TicketResolvedCommand } from "./TicketResolvedCommand";
|
|
26
|
-
import { TicketUpdateCommand } from "./TicketUpdateCommand";
|
|
27
26
|
|
|
28
27
|
export class TicketCommand extends BaseNavigatorCommand
|
|
29
28
|
{
|
|
@@ -33,7 +32,6 @@ export class TicketCommand extends BaseNavigatorCommand
|
|
|
33
32
|
"list": TicketListCommand,
|
|
34
33
|
"get": TicketGetCommand,
|
|
35
34
|
"create": TicketCreateCommand,
|
|
36
|
-
"update": TicketUpdateCommand,
|
|
37
35
|
"resolved": TicketResolvedCommand,
|
|
38
36
|
});
|
|
39
37
|
}
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,6 @@ export * from "./command/MessageCommand";
|
|
|
35
35
|
export * from "./command/MessageCreateCommand";
|
|
36
36
|
export * from "./command/MessageGetCommand";
|
|
37
37
|
export * from "./command/MessageListCommand";
|
|
38
|
-
export * from "./command/MessageUpdateCommand";
|
|
39
38
|
export * from "./command/MetricsCommand";
|
|
40
39
|
export * from "./command/MetricsGetCommand";
|
|
41
40
|
export * from "./command/TicketCommand";
|
|
@@ -43,7 +42,6 @@ export * from "./command/TicketCreateCommand";
|
|
|
43
42
|
export * from "./command/TicketGetCommand";
|
|
44
43
|
export * from "./command/TicketListCommand";
|
|
45
44
|
export * from "./command/TicketResolvedCommand";
|
|
46
|
-
export * from "./command/TicketUpdateCommand";
|
|
47
45
|
export * from "./command/ValueCommand";
|
|
48
46
|
export * from "./command/ValueListCommand";
|
|
49
47
|
export * from "./enum/TicketAssignee";
|
|
@@ -28,6 +28,7 @@ export class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportServer, Ti
|
|
|
28
28
|
public override columns: {
|
|
29
29
|
id: BaseMetaColumn;
|
|
30
30
|
user_id: BaseMetaColumn;
|
|
31
|
+
product_id: BaseMetaColumn;
|
|
31
32
|
category_id: BaseMetaColumn;
|
|
32
33
|
last_sender_id: BaseMetaColumn;
|
|
33
34
|
title: BaseMetaColumn;
|
|
@@ -44,6 +45,7 @@ export class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportServer, Ti
|
|
|
44
45
|
this.columns = {
|
|
45
46
|
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
46
47
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
48
|
+
product_id: new BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
47
49
|
category_id: new BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
48
50
|
last_sender_id: new BaseMetaColumn(this, "last_sender_id", "Last Sender ID", "String", true),
|
|
49
51
|
title: new BaseMetaColumn(this, "title", "Title", "String", true),
|
|
@@ -64,5 +66,6 @@ export class TicketMetaTable extends NSBaseMetaTable<NamirasoftSupportServer, Ti
|
|
|
64
66
|
let server = this.database.getServer();
|
|
65
67
|
return await server.ticket.List(filters, page, size, sorts);
|
|
66
68
|
};
|
|
69
|
+
this.front_end.getUpdateLink = () => "";
|
|
67
70
|
}
|
|
68
71
|
};
|
package/src/row/TicketRow.ts
CHANGED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MessageUpdateCommand = void 0;
|
|
13
|
-
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
-
const NamirasoftSupportServer_1 = require("../NamirasoftSupportServer");
|
|
16
|
-
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
-
class MessageUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
-
constructor(argv) {
|
|
19
|
-
super(argv, ["id"], [
|
|
20
|
-
{
|
|
21
|
-
name: "ticket_id",
|
|
22
|
-
short: "",
|
|
23
|
-
description: "Provides the value of 'ticket_id' in body",
|
|
24
|
-
optional: false,
|
|
25
|
-
args: ["ticket_id"],
|
|
26
|
-
defaults: [""]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "sender_id",
|
|
30
|
-
short: "",
|
|
31
|
-
description: "Provides the value of 'sender_id' in body",
|
|
32
|
-
optional: false,
|
|
33
|
-
args: ["sender_id"],
|
|
34
|
-
defaults: [""]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: "message",
|
|
38
|
-
short: "",
|
|
39
|
-
description: "Provides the value of 'message' in body",
|
|
40
|
-
optional: false,
|
|
41
|
-
args: ["message"],
|
|
42
|
-
defaults: [""]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "ticket_resolved",
|
|
46
|
-
short: "",
|
|
47
|
-
description: "Provides the value of 'ticket_resolved' in body",
|
|
48
|
-
optional: false,
|
|
49
|
-
args: ["ticket_resolved"],
|
|
50
|
-
defaults: [""]
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
|
-
}
|
|
54
|
-
exec() {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
let token = this.app.storage.getNSAToken();
|
|
57
|
-
if (token == null)
|
|
58
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
59
|
-
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
60
|
-
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
61
|
-
manager.setValue(token, false);
|
|
62
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
63
|
-
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
64
|
-
let ans = yield server.message.Update(this.arg_values[0], {
|
|
65
|
-
ticket_id: this.option_values.ticket_id,
|
|
66
|
-
sender_id: this.option_values.sender_id,
|
|
67
|
-
message: this.option_values.message,
|
|
68
|
-
ticket_resolved: this.option_values.ticket_resolved
|
|
69
|
-
});
|
|
70
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.MessageUpdateCommand = MessageUpdateCommand;
|
|
75
|
-
;
|
|
76
|
-
//# sourceMappingURL=MessageUpdateCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUpdateCommand.js","sourceRoot":"","sources":["../../src/command/MessageUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,wEAAqE;AACrE,2DAAkD;AAElD,MAAa,oBAAqB,SAAQ,sCAAgB;IAEtD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yCAAyC;gBACtD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,SAAS,CAAC;gBACjB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,iDAAiD;gBAC9D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,iBAAiB,CAAC;gBACzB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;SACA,CAAC,CAAC;IACX,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,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,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACtD,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;gBACnC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,eAAe;aACtD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,oDAyDC;AAAA,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TicketUpdateCommand = void 0;
|
|
13
|
-
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
-
const NamirasoftSupportServer_1 = require("../NamirasoftSupportServer");
|
|
16
|
-
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
-
class TicketUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
-
constructor(argv) {
|
|
19
|
-
super(argv, ["id"], [
|
|
20
|
-
{
|
|
21
|
-
name: "category_id",
|
|
22
|
-
short: "",
|
|
23
|
-
description: "Provides the value of 'category_id' in body",
|
|
24
|
-
optional: false,
|
|
25
|
-
args: ["category_id"],
|
|
26
|
-
defaults: [""]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "title",
|
|
30
|
-
short: "",
|
|
31
|
-
description: "Provides the value of 'title' in body",
|
|
32
|
-
optional: false,
|
|
33
|
-
args: ["title"],
|
|
34
|
-
defaults: [""]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: "priority",
|
|
38
|
-
short: "",
|
|
39
|
-
description: "Provides the value of 'priority' in body",
|
|
40
|
-
optional: false,
|
|
41
|
-
args: ["priority"],
|
|
42
|
-
defaults: [""]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "description",
|
|
46
|
-
short: "",
|
|
47
|
-
description: "Provides the value of 'description' in body",
|
|
48
|
-
optional: false,
|
|
49
|
-
args: ["description"],
|
|
50
|
-
defaults: [""]
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
|
-
}
|
|
54
|
-
exec() {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
let token = this.app.storage.getNSAToken();
|
|
57
|
-
if (token == null)
|
|
58
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
59
|
-
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
60
|
-
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
61
|
-
manager.setValue(token, false);
|
|
62
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
63
|
-
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
64
|
-
let ans = yield server.ticket.Update(this.arg_values[0], {
|
|
65
|
-
category_id: this.option_values.category_id,
|
|
66
|
-
title: this.option_values.title,
|
|
67
|
-
priority: this.option_values.priority,
|
|
68
|
-
description: this.option_values.description
|
|
69
|
-
});
|
|
70
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.TicketUpdateCommand = TicketUpdateCommand;
|
|
75
|
-
;
|
|
76
|
-
//# sourceMappingURL=TicketUpdateCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TicketUpdateCommand.js","sourceRoot":"","sources":["../../src/command/TicketUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,wEAAqE;AACrE,2DAAkD;AAElD,MAAa,mBAAoB,SAAQ,sCAAgB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACr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AK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACrD,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;AAzDD,kDAyDC;AAAA,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { NamirasoftSupportServer } from "../NamirasoftSupportServer";
|
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
|
25
|
-
|
|
26
|
-
export class MessageUpdateCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], [
|
|
31
|
-
{
|
|
32
|
-
name: "ticket_id",
|
|
33
|
-
short: "",
|
|
34
|
-
description: "Provides the value of 'ticket_id' in body",
|
|
35
|
-
optional: false,
|
|
36
|
-
args: ["ticket_id"],
|
|
37
|
-
defaults: [""]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "sender_id",
|
|
41
|
-
short: "",
|
|
42
|
-
description: "Provides the value of 'sender_id' in body",
|
|
43
|
-
optional: false,
|
|
44
|
-
args: ["sender_id"],
|
|
45
|
-
defaults: [""]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "message",
|
|
49
|
-
short: "",
|
|
50
|
-
description: "Provides the value of 'message' in body",
|
|
51
|
-
optional: false,
|
|
52
|
-
args: ["message"],
|
|
53
|
-
defaults: [""]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "ticket_resolved",
|
|
57
|
-
short: "",
|
|
58
|
-
description: "Provides the value of 'ticket_resolved' in body",
|
|
59
|
-
optional: false,
|
|
60
|
-
args: ["ticket_resolved"],
|
|
61
|
-
defaults: [""]
|
|
62
|
-
}
|
|
63
|
-
]);
|
|
64
|
-
}
|
|
65
|
-
override async exec()
|
|
66
|
-
{
|
|
67
|
-
let token = this.app.storage.getNSAToken();
|
|
68
|
-
if (token == null)
|
|
69
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
70
|
-
let storage = new IStorageMemoryDedicated();
|
|
71
|
-
let manager = new TokenManager(storage, () => { });
|
|
72
|
-
manager.setValue(token, false);
|
|
73
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
74
|
-
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
75
|
-
let ans = await server.message.Update(this.arg_values[0], {
|
|
76
|
-
ticket_id: this.option_values.ticket_id,
|
|
77
|
-
sender_id: this.option_values.sender_id,
|
|
78
|
-
message: this.option_values.message,
|
|
79
|
-
ticket_resolved: this.option_values.ticket_resolved
|
|
80
|
-
});
|
|
81
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
82
|
-
}
|
|
83
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { NamirasoftSupportServer } from "../NamirasoftSupportServer";
|
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
|
25
|
-
|
|
26
|
-
export class TicketUpdateCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], [
|
|
31
|
-
{
|
|
32
|
-
name: "category_id",
|
|
33
|
-
short: "",
|
|
34
|
-
description: "Provides the value of 'category_id' in body",
|
|
35
|
-
optional: false,
|
|
36
|
-
args: ["category_id"],
|
|
37
|
-
defaults: [""]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "title",
|
|
41
|
-
short: "",
|
|
42
|
-
description: "Provides the value of 'title' in body",
|
|
43
|
-
optional: false,
|
|
44
|
-
args: ["title"],
|
|
45
|
-
defaults: [""]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "priority",
|
|
49
|
-
short: "",
|
|
50
|
-
description: "Provides the value of 'priority' in body",
|
|
51
|
-
optional: false,
|
|
52
|
-
args: ["priority"],
|
|
53
|
-
defaults: [""]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "description",
|
|
57
|
-
short: "",
|
|
58
|
-
description: "Provides the value of 'description' in body",
|
|
59
|
-
optional: false,
|
|
60
|
-
args: ["description"],
|
|
61
|
-
defaults: [""]
|
|
62
|
-
}
|
|
63
|
-
]);
|
|
64
|
-
}
|
|
65
|
-
override async exec()
|
|
66
|
-
{
|
|
67
|
-
let token = this.app.storage.getNSAToken();
|
|
68
|
-
if (token == null)
|
|
69
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
70
|
-
let storage = new IStorageMemoryDedicated();
|
|
71
|
-
let manager = new TokenManager(storage, () => { });
|
|
72
|
-
manager.setValue(token, false);
|
|
73
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
74
|
-
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
75
|
-
let ans = await server.ticket.Update(this.arg_values[0], {
|
|
76
|
-
category_id: this.option_values.category_id,
|
|
77
|
-
title: this.option_values.title,
|
|
78
|
-
priority: this.option_values.priority,
|
|
79
|
-
description: this.option_values.description
|
|
80
|
-
});
|
|
81
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
82
|
-
}
|
|
83
|
-
};
|