namirasoft-support 1.4.9 → 1.4.10
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/NamirasoftSupportServer.js.map +1 -1
- package/dist/NamirasoftSupportServerMessage.d.ts +0 -1
- package/dist/NamirasoftSupportServerMessage.js +0 -7
- package/dist/NamirasoftSupportServerMessage.js.map +1 -1
- package/dist/NamirasoftSupportServerTicket.d.ts +0 -1
- package/dist/NamirasoftSupportServerTicket.js +0 -7
- 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/package.json +2 -2
- package/src/NamirasoftSupportServer.ts +1 -1
- package/src/NamirasoftSupportServerMessage.ts +0 -6
- package/src/NamirasoftSupportServerTicket.ts +0 -6
- package/src/command/MessageCommand.ts +0 -2
- package/src/command/TicketCommand.ts +0 -2
- package/src/index.ts +0 -2
- package/dist/command/MessageDeleteCommand.d.ts +0 -5
- package/dist/command/MessageDeleteCommand.js +0 -38
- package/dist/command/MessageDeleteCommand.js.map +0 -1
- package/dist/command/TicketDeleteCommand.d.ts +0 -5
- package/dist/command/TicketDeleteCommand.js +0 -38
- package/dist/command/TicketDeleteCommand.js.map +0 -1
- package/src/command/MessageDeleteCommand.ts +0 -45
- package/src/command/TicketDeleteCommand.ts +0 -45
|
@@ -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.10`, 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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSupportServer.js","sourceRoot":"","sources":["../src/NamirasoftSupportServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,uFAAoF;AACpF,qFAAkF;AAClF,qFAAkF;AAClF,qFAAkF;AAClF,mFAAgF;AAChF,iFAA8E;AAG9E,MAAa,uBAAwB,SAAQ,kCAAa;IAQtD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"NamirasoftSupportServer.js","sourceRoot":"","sources":["../src/NamirasoftSupportServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,uFAAoF;AACpF,qFAAkF;AAClF,qFAAkF;AAClF,qFAAkF;AAClF,mFAAgF;AAChF,iFAA8E;AAG9E,MAAa,uBAAwB,SAAQ,kCAAa;IAQtD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,KAAK,GAAG,IAAI,2DAA4B,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,IAAI,iEAA+B,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;CACJ;AAlBD,0DAkBC;AAAA,CAAC"}
|
|
@@ -13,5 +13,4 @@ export declare class NamirasoftSupportServerMessage extends NamirasoftSupportSer
|
|
|
13
13
|
Get(id: string): Promise<MessageRow>;
|
|
14
14
|
Create(body: MessageInputRow): Promise<MessageRow>;
|
|
15
15
|
Update(id: string, body: MessageInputRow): Promise<MessageRow>;
|
|
16
|
-
Delete(id: string): Promise<void>;
|
|
17
16
|
}
|
|
@@ -20,7 +20,6 @@ class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase_1.Namir
|
|
|
20
20
|
this.Get = this.Get.bind(this);
|
|
21
21
|
this.Create = this.Create.bind(this);
|
|
22
22
|
this.Update = this.Update.bind(this);
|
|
23
|
-
this.Delete = this.Delete.bind(this);
|
|
24
23
|
}
|
|
25
24
|
List(filters, page, size, sorts) {
|
|
26
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -52,12 +51,6 @@ class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase_1.Namir
|
|
|
52
51
|
return data;
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
|
-
Delete(id) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
let path = `/message/${id}`;
|
|
58
|
-
yield this.server._delete(path, {});
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
54
|
}
|
|
62
55
|
exports.NamirasoftSupportServerMessage = NamirasoftSupportServerMessage;
|
|
63
56
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSupportServerMessage.js","sourceRoot":"","sources":["../src/NamirasoftSupportServerMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAI7C,+EAA4E;AAC5E,qDAA2C;AAE3C,MAAa,8BAA+B,SAAQ,yDAA2B;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eAAe,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,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;IACK,MAAM,CAAC,EAAU,EAAE,IAAqB;;YAE1C,IAAI,IAAI,GAAG,YAAY,EAAE,EAAE,CAAC;YAC5B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApCD,wEAoCC;AAAA,CAAC"}
|
|
@@ -13,6 +13,5 @@ export declare class NamirasoftSupportServerTicket extends NamirasoftSupportServ
|
|
|
13
13
|
Get(id: string): Promise<TicketRow>;
|
|
14
14
|
Create(body: TicketInputRow): Promise<TicketRow>;
|
|
15
15
|
Update(id: string, body: TicketInputRow): Promise<TicketRow>;
|
|
16
|
-
Delete(id: string): Promise<void>;
|
|
17
16
|
Resolved(id: string): Promise<TicketRow>;
|
|
18
17
|
}
|
|
@@ -20,7 +20,6 @@ class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase_1.Namira
|
|
|
20
20
|
this.Get = this.Get.bind(this);
|
|
21
21
|
this.Create = this.Create.bind(this);
|
|
22
22
|
this.Update = this.Update.bind(this);
|
|
23
|
-
this.Delete = this.Delete.bind(this);
|
|
24
23
|
this.Resolved = this.Resolved.bind(this);
|
|
25
24
|
}
|
|
26
25
|
List(filters, page, size, sorts) {
|
|
@@ -53,12 +52,6 @@ class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase_1.Namira
|
|
|
53
52
|
return data;
|
|
54
53
|
});
|
|
55
54
|
}
|
|
56
|
-
Delete(id) {
|
|
57
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
let path = `/ticket/${id}`;
|
|
59
|
-
yield this.server._delete(path, {});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
55
|
Resolved(id) {
|
|
63
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
57
|
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,MAAM,GAAG,IAAI,CAAC,M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GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,WAAW,EAAE,EAAE,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,EAAE,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAAoB;;YAE7B,IAAI,IAAI,GAAG,SAAS,CAAC;YACrB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,IAAoB;;YAEzC,IAAI,IAAI,GAAG,WAAW,EAAE,EAAE,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACjE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,QAAQ,CAAC,EAAU;;YAErB,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;AA3CD,sEA2CC;AAAA,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MessageCommand = void 0;
|
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
5
|
const MessageCreateCommand_1 = require("./MessageCreateCommand");
|
|
6
|
-
const MessageDeleteCommand_1 = require("./MessageDeleteCommand");
|
|
7
6
|
const MessageGetCommand_1 = require("./MessageGetCommand");
|
|
8
7
|
const MessageListCommand_1 = require("./MessageListCommand");
|
|
9
8
|
const MessageUpdateCommand_1 = require("./MessageUpdateCommand");
|
|
@@ -14,7 +13,6 @@ class MessageCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
|
14
13
|
"get": MessageGetCommand_1.MessageGetCommand,
|
|
15
14
|
"create": MessageCreateCommand_1.MessageCreateCommand,
|
|
16
15
|
"update": MessageUpdateCommand_1.MessageUpdateCommand,
|
|
17
|
-
"delete": MessageDeleteCommand_1.MessageDeleteCommand,
|
|
18
16
|
});
|
|
19
17
|
}
|
|
20
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageCommand.js","sourceRoot":"","sources":["../../src/command/MessageCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,iEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"MessageCommand.js","sourceRoot":"","sources":["../../src/command/MessageCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,iEAA8D;AAC9D,2DAAwD;AACxD,6DAA0D;AAC1D,iEAA8D;AAE9D,MAAa,cAAe,SAAQ,0CAAoB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,uCAAkB;YAC1B,KAAK,EAAE,qCAAiB;YACxB,QAAQ,EAAE,2CAAoB;YAC9B,QAAQ,EAAE,2CAAoB;SACjC,CAAC,CAAC;IACP,CAAC;CACJ;AAXD,wCAWC;AAAA,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TicketCommand = void 0;
|
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
5
|
const TicketCreateCommand_1 = require("./TicketCreateCommand");
|
|
6
|
-
const TicketDeleteCommand_1 = require("./TicketDeleteCommand");
|
|
7
6
|
const TicketGetCommand_1 = require("./TicketGetCommand");
|
|
8
7
|
const TicketListCommand_1 = require("./TicketListCommand");
|
|
9
8
|
const TicketResolvedCommand_1 = require("./TicketResolvedCommand");
|
|
@@ -15,7 +14,6 @@ class TicketCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
|
15
14
|
"get": TicketGetCommand_1.TicketGetCommand,
|
|
16
15
|
"create": TicketCreateCommand_1.TicketCreateCommand,
|
|
17
16
|
"update": TicketUpdateCommand_1.TicketUpdateCommand,
|
|
18
|
-
"delete": TicketDeleteCommand_1.TicketDeleteCommand,
|
|
19
17
|
"resolved": TicketResolvedCommand_1.TicketResolvedCommand,
|
|
20
18
|
});
|
|
21
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketCommand.js","sourceRoot":"","sources":["../../src/command/TicketCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,+DAA4D;AAC5D
|
|
1
|
+
{"version":3,"file":"TicketCommand.js","sourceRoot":"","sources":["../../src/command/TicketCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,+DAA4D;AAC5D,yDAAsD;AACtD,2DAAwD;AACxD,mEAAgE;AAChE,+DAA4D;AAE5D,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,QAAQ,EAAE,yCAAmB;YAC7B,UAAU,EAAE,6CAAqB;SACpC,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,sCAYC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export * from "./command/HealthzCommand";
|
|
|
13
13
|
export * from "./command/HealthzGetCommand";
|
|
14
14
|
export * from "./command/MessageCommand";
|
|
15
15
|
export * from "./command/MessageCreateCommand";
|
|
16
|
-
export * from "./command/MessageDeleteCommand";
|
|
17
16
|
export * from "./command/MessageGetCommand";
|
|
18
17
|
export * from "./command/MessageListCommand";
|
|
19
18
|
export * from "./command/MessageUpdateCommand";
|
|
@@ -21,7 +20,6 @@ export * from "./command/MetricsCommand";
|
|
|
21
20
|
export * from "./command/MetricsGetCommand";
|
|
22
21
|
export * from "./command/TicketCommand";
|
|
23
22
|
export * from "./command/TicketCreateCommand";
|
|
24
|
-
export * from "./command/TicketDeleteCommand";
|
|
25
23
|
export * from "./command/TicketGetCommand";
|
|
26
24
|
export * from "./command/TicketListCommand";
|
|
27
25
|
export * from "./command/TicketResolvedCommand";
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,6 @@ __exportStar(require("./command/HealthzCommand"), exports);
|
|
|
29
29
|
__exportStar(require("./command/HealthzGetCommand"), exports);
|
|
30
30
|
__exportStar(require("./command/MessageCommand"), exports);
|
|
31
31
|
__exportStar(require("./command/MessageCreateCommand"), exports);
|
|
32
|
-
__exportStar(require("./command/MessageDeleteCommand"), exports);
|
|
33
32
|
__exportStar(require("./command/MessageGetCommand"), exports);
|
|
34
33
|
__exportStar(require("./command/MessageListCommand"), exports);
|
|
35
34
|
__exportStar(require("./command/MessageUpdateCommand"), exports);
|
|
@@ -37,7 +36,6 @@ __exportStar(require("./command/MetricsCommand"), exports);
|
|
|
37
36
|
__exportStar(require("./command/MetricsGetCommand"), exports);
|
|
38
37
|
__exportStar(require("./command/TicketCommand"), exports);
|
|
39
38
|
__exportStar(require("./command/TicketCreateCommand"), exports);
|
|
40
|
-
__exportStar(require("./command/TicketDeleteCommand"), exports);
|
|
41
39
|
__exportStar(require("./command/TicketGetCommand"), exports);
|
|
42
40
|
__exportStar(require("./command/TicketListCommand"), exports);
|
|
43
41
|
__exportStar(require("./command/TicketResolvedCommand"), 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,
|
|
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,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,kEAAgD;AAChD,gEAA8C;AAC9C,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"}
|
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.10",
|
|
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.91"
|
|
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.10`, manager, onError);
|
|
41
41
|
this.healthz = new NamirasoftSupportServerHealthz(this);
|
|
42
42
|
this.metrics = new NamirasoftSupportServerMetrics(this);
|
|
43
43
|
this.value = new NamirasoftSupportServerValue(this);
|
|
@@ -34,7 +34,6 @@ export class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase
|
|
|
34
34
|
this.Get = this.Get.bind(this);
|
|
35
35
|
this.Create = this.Create.bind(this);
|
|
36
36
|
this.Update = this.Update.bind(this);
|
|
37
|
-
this.Delete = this.Delete.bind(this);
|
|
38
37
|
}
|
|
39
38
|
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: MessageRow[], count: number }>
|
|
40
39
|
{
|
|
@@ -62,9 +61,4 @@ export class NamirasoftSupportServerMessage extends NamirasoftSupportServerBase
|
|
|
62
61
|
let { data } = await this.server._put<MessageRow>(path, {}, body);
|
|
63
62
|
return data;
|
|
64
63
|
}
|
|
65
|
-
async Delete(id: string): Promise<void>
|
|
66
|
-
{
|
|
67
|
-
let path = `/message/${id}`;
|
|
68
|
-
await this.server._delete<void>(path, {});
|
|
69
|
-
}
|
|
70
64
|
};
|
|
@@ -34,7 +34,6 @@ export class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase
|
|
|
34
34
|
this.Get = this.Get.bind(this);
|
|
35
35
|
this.Create = this.Create.bind(this);
|
|
36
36
|
this.Update = this.Update.bind(this);
|
|
37
|
-
this.Delete = this.Delete.bind(this);
|
|
38
37
|
this.Resolved = this.Resolved.bind(this);
|
|
39
38
|
}
|
|
40
39
|
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: TicketRow[], count: number }>
|
|
@@ -63,11 +62,6 @@ export class NamirasoftSupportServerTicket extends NamirasoftSupportServerBase
|
|
|
63
62
|
let { data } = await this.server._put<TicketRow>(path, {}, body);
|
|
64
63
|
return data;
|
|
65
64
|
}
|
|
66
|
-
async Delete(id: string): Promise<void>
|
|
67
|
-
{
|
|
68
|
-
let path = `/ticket/${id}`;
|
|
69
|
-
await this.server._delete<void>(path, {});
|
|
70
|
-
}
|
|
71
65
|
async Resolved(id: string): Promise<TicketRow>
|
|
72
66
|
{
|
|
73
67
|
let path = `/ticket/resolved/${id}`;
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
22
|
import { MessageCreateCommand } from "./MessageCreateCommand";
|
|
23
|
-
import { MessageDeleteCommand } from "./MessageDeleteCommand";
|
|
24
23
|
import { MessageGetCommand } from "./MessageGetCommand";
|
|
25
24
|
import { MessageListCommand } from "./MessageListCommand";
|
|
26
25
|
import { MessageUpdateCommand } from "./MessageUpdateCommand";
|
|
@@ -34,7 +33,6 @@ export class MessageCommand extends BaseNavigatorCommand
|
|
|
34
33
|
"get": MessageGetCommand,
|
|
35
34
|
"create": MessageCreateCommand,
|
|
36
35
|
"update": MessageUpdateCommand,
|
|
37
|
-
"delete": MessageDeleteCommand,
|
|
38
36
|
});
|
|
39
37
|
}
|
|
40
38
|
};
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
22
|
import { TicketCreateCommand } from "./TicketCreateCommand";
|
|
23
|
-
import { TicketDeleteCommand } from "./TicketDeleteCommand";
|
|
24
23
|
import { TicketGetCommand } from "./TicketGetCommand";
|
|
25
24
|
import { TicketListCommand } from "./TicketListCommand";
|
|
26
25
|
import { TicketResolvedCommand } from "./TicketResolvedCommand";
|
|
@@ -35,7 +34,6 @@ export class TicketCommand extends BaseNavigatorCommand
|
|
|
35
34
|
"get": TicketGetCommand,
|
|
36
35
|
"create": TicketCreateCommand,
|
|
37
36
|
"update": TicketUpdateCommand,
|
|
38
|
-
"delete": TicketDeleteCommand,
|
|
39
37
|
"resolved": TicketResolvedCommand,
|
|
40
38
|
});
|
|
41
39
|
}
|
package/src/index.ts
CHANGED
|
@@ -33,7 +33,6 @@ export * from "./command/HealthzCommand";
|
|
|
33
33
|
export * from "./command/HealthzGetCommand";
|
|
34
34
|
export * from "./command/MessageCommand";
|
|
35
35
|
export * from "./command/MessageCreateCommand";
|
|
36
|
-
export * from "./command/MessageDeleteCommand";
|
|
37
36
|
export * from "./command/MessageGetCommand";
|
|
38
37
|
export * from "./command/MessageListCommand";
|
|
39
38
|
export * from "./command/MessageUpdateCommand";
|
|
@@ -41,7 +40,6 @@ export * from "./command/MetricsCommand";
|
|
|
41
40
|
export * from "./command/MetricsGetCommand";
|
|
42
41
|
export * from "./command/TicketCommand";
|
|
43
42
|
export * from "./command/TicketCreateCommand";
|
|
44
|
-
export * from "./command/TicketDeleteCommand";
|
|
45
43
|
export * from "./command/TicketGetCommand";
|
|
46
44
|
export * from "./command/TicketListCommand";
|
|
47
45
|
export * from "./command/TicketResolvedCommand";
|
|
@@ -1,38 +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.MessageDeleteCommand = 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 MessageDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
-
constructor(argv) {
|
|
19
|
-
super(argv, ["id"], []);
|
|
20
|
-
}
|
|
21
|
-
exec() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
let token = this.app.storage.getNSAToken();
|
|
24
|
-
if (token == null)
|
|
25
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
26
|
-
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
-
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
-
manager.setValue(token, false);
|
|
29
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
30
|
-
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
-
let ans = yield server.message.Delete(this.arg_values[0]);
|
|
32
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.MessageDeleteCommand = MessageDeleteCommand;
|
|
37
|
-
;
|
|
38
|
-
//# sourceMappingURL=MessageDeleteCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageDeleteCommand.js","sourceRoot":"","sources":["../../src/command/MessageDeleteCommand.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) || 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.TicketDeleteCommand = 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 TicketDeleteCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
-
constructor(argv) {
|
|
19
|
-
super(argv, ["id"], []);
|
|
20
|
-
}
|
|
21
|
-
exec() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
let token = this.app.storage.getNSAToken();
|
|
24
|
-
if (token == null)
|
|
25
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
26
|
-
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
-
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
-
manager.setValue(token, false);
|
|
29
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
30
|
-
let server = new NamirasoftSupportServer_1.NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
-
let ans = yield server.ticket.Delete(this.arg_values[0]);
|
|
32
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.TicketDeleteCommand = TicketDeleteCommand;
|
|
37
|
-
;
|
|
38
|
-
//# sourceMappingURL=TicketDeleteCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TicketDeleteCommand.js","sourceRoot":"","sources":["../../src/command/TicketDeleteCommand.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,EAAE,CAAC,CAAC;IAC5B,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,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,kDAmBC;AAAA,CAAC"}
|
|
@@ -1,45 +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 MessageDeleteCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], []);
|
|
31
|
-
}
|
|
32
|
-
override async exec()
|
|
33
|
-
{
|
|
34
|
-
let token = this.app.storage.getNSAToken();
|
|
35
|
-
if (token == null)
|
|
36
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
37
|
-
let storage = new IStorageMemoryDedicated();
|
|
38
|
-
let manager = new TokenManager(storage, () => { });
|
|
39
|
-
manager.setValue(token, false);
|
|
40
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
41
|
-
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.message.Delete(this.arg_values[0]);
|
|
43
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1,45 +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 TicketDeleteCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], []);
|
|
31
|
-
}
|
|
32
|
-
override async exec()
|
|
33
|
-
{
|
|
34
|
-
let token = this.app.storage.getNSAToken();
|
|
35
|
-
if (token == null)
|
|
36
|
-
throw new Error("Token is not available. Please login first using:\nns-support account config \nor \nns-support account login.");
|
|
37
|
-
let storage = new IStorageMemoryDedicated();
|
|
38
|
-
let manager = new TokenManager(storage, () => { });
|
|
39
|
-
manager.setValue(token, false);
|
|
40
|
-
let url = this.app.storage.getItem("ns-support-server-url");
|
|
41
|
-
let server = new NamirasoftSupportServer(url, manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.ticket.Delete(this.arg_values[0]);
|
|
43
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
-
}
|
|
45
|
-
};
|