@smartsoft001/trans-shell-nestjs 1.0.916 → 1.0.920
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/package.json +28 -27
- package/src/index.js +2 -2
- package/src/index.js.map +1 -1
- package/src/lib/controllers/index.js +3 -3
- package/src/lib/controllers/index.js.map +1 -1
- package/src/lib/controllers/paypal/paypal.controller.js +17 -17
- package/src/lib/controllers/paypal/paypal.controller.js.map +1 -1
- package/src/lib/controllers/payu/payu.controller.js +8 -8
- package/src/lib/controllers/payu/payu.controller.js.map +1 -1
- package/src/lib/controllers/trans/trans.controller.js +16 -16
- package/src/lib/controllers/trans/trans.controller.js.map +1 -1
- package/src/lib/nestjs.module.js +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smartsoft001/trans-shell-nestjs",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.920",
|
4
4
|
"description": "This library was generated with [Nx](https://nx.dev).",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -17,43 +17,43 @@
|
|
17
17
|
"dependencies": {},
|
18
18
|
"peerDependencies": {
|
19
19
|
"@nestjs/common": "^8.0.0",
|
20
|
-
"@smartsoft001/trans-shell-app-services": "1.0.
|
20
|
+
"@smartsoft001/trans-shell-app-services": "1.0.693",
|
21
21
|
"@nestjs/core": "^8.0.0",
|
22
|
-
"@smartsoft001/trans-domain": "1.0.
|
22
|
+
"@smartsoft001/trans-domain": "1.0.695",
|
23
23
|
"typeorm": "0.2.29",
|
24
|
-
"@smartsoft001/domain-core": "1.0.
|
25
|
-
"@smartsoft001/models": "1.0.
|
24
|
+
"@smartsoft001/domain-core": "1.0.768",
|
25
|
+
"@smartsoft001/models": "1.0.795",
|
26
26
|
"reflect-metadata": "0.1.13",
|
27
|
-
"@smartsoft001/utils": "1.0.
|
28
|
-
"@angular/common": "13.2
|
29
|
-
"@angular/core": "13.2
|
27
|
+
"@smartsoft001/utils": "1.0.830",
|
28
|
+
"@angular/common": "13.3.2",
|
29
|
+
"@angular/core": "13.3.2",
|
30
30
|
"lodash": "^4.17.20",
|
31
31
|
"guid-typescript": "1.0.9",
|
32
32
|
"flatted": "^3.2.4",
|
33
33
|
"md5": "2.3.0",
|
34
34
|
"rxjs": "^7.0.0",
|
35
|
-
"@smartsoft001/users": "1.0.
|
36
|
-
"@angular/platform-browser-dynamic": "13.2
|
37
|
-
"@smartsoft001/payu": "1.0.
|
38
|
-
"@smartsoft001/paypal": "1.0.
|
35
|
+
"@smartsoft001/users": "1.0.787",
|
36
|
+
"@angular/platform-browser-dynamic": "13.3.2",
|
37
|
+
"@smartsoft001/payu": "1.0.704",
|
38
|
+
"@smartsoft001/paypal": "1.0.708",
|
39
39
|
"paypal-rest-sdk": "^1.8.1",
|
40
|
-
"@smartsoft001/revolut": "1.0.
|
40
|
+
"@smartsoft001/revolut": "1.0.688",
|
41
41
|
"@nestjs/passport": "^7.1.5",
|
42
42
|
"@nestjs/jwt": "^7.1.0",
|
43
43
|
"@nestjs/typeorm": "^7.1.5",
|
44
|
-
"@smartsoft001/crud-shell-angular": "1.1.
|
44
|
+
"@smartsoft001/crud-shell-angular": "1.1.753",
|
45
45
|
"@ngrx/store": "13.0.2",
|
46
|
-
"@smartsoft001/angular": "1.1.
|
46
|
+
"@smartsoft001/angular": "1.1.820",
|
47
47
|
"@ngrx/effects": "13.0.2",
|
48
|
-
"@angular/router": "13.2
|
48
|
+
"@angular/router": "13.3.2",
|
49
49
|
"chart.js": "2.9.4",
|
50
50
|
"ng2-charts": "2.4.2",
|
51
51
|
"@ionic/angular": "^6.0.14",
|
52
|
-
"@angular/forms": "13.2
|
52
|
+
"@angular/forms": "13.3.2",
|
53
53
|
"@ngx-translate/core": "^13.0.0",
|
54
|
-
"@angular/material": "13.2
|
54
|
+
"@angular/material": "13.3.2",
|
55
55
|
"ngx-color-picker": "^10.1.0",
|
56
|
-
"@angular/cdk": "13.2
|
56
|
+
"@angular/cdk": "13.3.2",
|
57
57
|
"ngx-editor": "9.0.2",
|
58
58
|
"ng-lazyload-image": "^9.1.0",
|
59
59
|
"@angular/material-moment-adapter": "^12.2.1",
|
@@ -61,25 +61,26 @@
|
|
61
61
|
"moment": "^2.27.0",
|
62
62
|
"@ngrx/router-store": "13.0.2",
|
63
63
|
"lodash-decorators": "^6.0.1",
|
64
|
-
"@angular/platform-browser": "13.2
|
64
|
+
"@angular/platform-browser": "13.3.2",
|
65
65
|
"ng-table-virtual-scroll": "^1.3.8",
|
66
66
|
"jwt-decode": "3.1.1",
|
67
67
|
"@capacitor/core": "^2.4.2",
|
68
68
|
"@ionic-native/fingerprint-aio": "^5.30.0",
|
69
69
|
"ngx-cookie": "^5.0.2",
|
70
70
|
"@ionic/storage": "^2.3.1",
|
71
|
-
"@smartsoft001/crud-shell-nestjs": "1.0.
|
71
|
+
"@smartsoft001/crud-shell-nestjs": "1.0.724",
|
72
72
|
"json2csv": "^5.0.5",
|
73
73
|
"xlsx": "^0.17.0",
|
74
74
|
"busboy": "^0.3.1",
|
75
|
-
"@smartsoft001/crud-shell-app-services": "1.0.
|
75
|
+
"@smartsoft001/crud-shell-app-services": "1.0.716",
|
76
76
|
"combined-stream": "^1.0.8",
|
77
|
-
"@smartsoft001/crud-domain": "1.0.
|
78
|
-
"@smartsoft001/crud-shell-dtos": "1.0.
|
79
|
-
"@smartsoft001/nestjs": "1.0.
|
77
|
+
"@smartsoft001/crud-domain": "1.0.704",
|
78
|
+
"@smartsoft001/crud-shell-dtos": "1.0.699",
|
79
|
+
"@smartsoft001/nestjs": "1.0.741",
|
80
80
|
"passport-jwt": "4.0.0",
|
81
81
|
"@nestjs/websockets": "^7.6.3",
|
82
|
-
"@smartsoft001/mongo": "1.0.
|
83
|
-
"mongodb": "^3.7.3"
|
82
|
+
"@smartsoft001/mongo": "1.0.741",
|
83
|
+
"mongodb": "^3.7.3",
|
84
|
+
"tslib": "^2.2.0"
|
84
85
|
}
|
85
86
|
}
|
package/src/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
-
|
5
|
-
|
4
|
+
tslib_1.__exportStar(require("./lib/nestjs.module"), exports);
|
5
|
+
tslib_1.__exportStar(require("./lib/controllers"), exports);
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/trans/shell/nestjs/src/index.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/trans/shell/nestjs/src/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,4DAAkC"}
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const trans_controller_1 = require("./trans/trans.controller");
|
6
6
|
const payu_controller_1 = require("./payu/payu.controller");
|
7
7
|
const paypal_controller_1 = require("./paypal/paypal.controller");
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
tslib_1.__exportStar(require("./trans/trans.controller"), exports);
|
9
|
+
tslib_1.__exportStar(require("./payu/payu.controller"), exports);
|
10
|
+
tslib_1.__exportStar(require("./paypal/paypal.controller"), exports);
|
11
11
|
exports.CONTROLLERS = [
|
12
12
|
trans_controller_1.TransController,
|
13
13
|
payu_controller_1.PayUController,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,4DAAsD;AACtD,kEAA4D;AAE5D,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,4DAAsD;AACtD,kEAA4D;AAE5D,mEAAyC;AACzC,iEAAuC;AACvC,qEAA2C;AAE9B,QAAA,WAAW,GAAG;IACvB,kCAAe;IACf,gCAAc;IACd,oCAAgB;CACnB,CAAC"}
|
@@ -12,7 +12,7 @@ let PaypalController = class PaypalController {
|
|
12
12
|
this.paypalService = paypalService;
|
13
13
|
}
|
14
14
|
refreshStatus(obj) {
|
15
|
-
return
|
15
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
16
16
|
try {
|
17
17
|
const trans = yield this.service.getById(obj.item_number1);
|
18
18
|
yield this.service.refresh(trans.externalId, obj);
|
@@ -26,7 +26,7 @@ let PaypalController = class PaypalController {
|
|
26
26
|
});
|
27
27
|
}
|
28
28
|
confirm(id, payerId, paymentId, res) {
|
29
|
-
return
|
29
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
30
30
|
try {
|
31
31
|
const trans = yield this.service.getById(id);
|
32
32
|
if (trans.externalId !== paymentId) {
|
@@ -43,27 +43,27 @@ let PaypalController = class PaypalController {
|
|
43
43
|
});
|
44
44
|
}
|
45
45
|
};
|
46
|
-
|
46
|
+
tslib_1.__decorate([
|
47
47
|
(0, common_1.Post)(),
|
48
48
|
(0, common_1.HttpCode)(200),
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
tslib_1.__param(0, (0, common_1.Body)()),
|
50
|
+
tslib_1.__metadata("design:type", Function),
|
51
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
52
|
+
tslib_1.__metadata("design:returntype", Promise)
|
53
53
|
], PaypalController.prototype, "refreshStatus", null);
|
54
|
-
|
54
|
+
tslib_1.__decorate([
|
55
55
|
(0, common_1.Get)(":id/confirm"),
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
56
|
+
tslib_1.__param(0, (0, common_1.Param)('id')),
|
57
|
+
tslib_1.__param(1, (0, common_1.Query)("PayerID")),
|
58
|
+
tslib_1.__param(2, (0, common_1.Query)("paymentId")),
|
59
|
+
tslib_1.__param(3, (0, common_1.Res)()),
|
60
|
+
tslib_1.__metadata("design:type", Function),
|
61
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
62
|
+
tslib_1.__metadata("design:returntype", Promise)
|
63
63
|
], PaypalController.prototype, "confirm", null);
|
64
|
-
PaypalController =
|
64
|
+
PaypalController = tslib_1.__decorate([
|
65
65
|
(0, common_1.Controller)("paypal"),
|
66
|
-
|
66
|
+
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService,
|
67
67
|
paypal_1.PaypalConfig,
|
68
68
|
paypal_1.PaypalService])
|
69
69
|
], PaypalController);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paypal.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/paypal/paypal.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAoG;AAEpG,qFAAsE;AACtE,iDAAiE;AAGjE,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAC3B,YACqB,OAAqB,EACrB,MAAoB,EACpB,aAA4B;QAF5B,YAAO,GAAP,OAAO,CAAc;QACrB,WAAM,GAAN,MAAM,CAAc;QACpB,kBAAa,GAAb,aAAa,CAAe;IAC9C,CAAC;IAIE,aAAa,CACT,GAA6B;;YAErC,IAAI;gBACF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAC3D,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;gBAClD,OAAO,IAAI,CAAC;aACb;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;gBAClC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,MAAM,CAAC,CAAC;aACT;QACH,CAAC;KAAA;IAGK,OAAO,CACI,EAAE,EACG,OAAO,EACL,SAAS,EACtB,GAAG;;YAEZ,IAAI;gBACF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBAE7C,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE;oBAClC,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;iBACtC;gBAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;gBAErG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;gBAE/C,OAAO,GAAG,CAAC,QAAQ,CAAC,mBAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1E;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;gBAEd,OAAO,GAAG,CAAC,QAAQ,CAAC,mBAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1E;QACH,CAAC;KAAA;CACF,CAAA;AAvCC;IAFC,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IAEX,
|
1
|
+
{"version":3,"file":"paypal.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/paypal/paypal.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAoG;AAEpG,qFAAsE;AACtE,iDAAiE;AAGjE,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAC3B,YACqB,OAAqB,EACrB,MAAoB,EACpB,aAA4B;QAF5B,YAAO,GAAP,OAAO,CAAc;QACrB,WAAM,GAAN,MAAM,CAAc;QACpB,kBAAa,GAAb,aAAa,CAAe;IAC9C,CAAC;IAIE,aAAa,CACT,GAA6B;;YAErC,IAAI;gBACF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAC3D,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;gBAClD,OAAO,IAAI,CAAC;aACb;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;gBAClC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,MAAM,CAAC,CAAC;aACT;QACH,CAAC;KAAA;IAGK,OAAO,CACI,EAAE,EACG,OAAO,EACL,SAAS,EACtB,GAAG;;YAEZ,IAAI;gBACF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBAE7C,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE;oBAClC,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;iBACtC;gBAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;gBAErG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;gBAE/C,OAAO,GAAG,CAAC,QAAQ,CAAC,mBAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1E;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;gBAEd,OAAO,GAAG,CAAC,QAAQ,CAAC,mBAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1E;QACH,CAAC;KAAA;CACF,CAAA;AAvCC;IAFC,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IAEX,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;qDAWR;AAGD;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;IAEd,mBAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,mBAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,mBAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;IAClB,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;+CAmBT;AA/CU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;6CAGW,uCAAY;QACb,qBAAY;QACL,sBAAa;GAJtC,gBAAgB,CAgD5B;AAhDY,4CAAgB"}
|
@@ -9,7 +9,7 @@ let PayUController = class PayUController {
|
|
9
9
|
this.service = service;
|
10
10
|
}
|
11
11
|
refreshStatus(obj) {
|
12
|
-
return
|
12
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
13
13
|
try {
|
14
14
|
yield this.service.refresh(obj.order.orderId, obj);
|
15
15
|
return 'ok';
|
@@ -21,17 +21,17 @@ let PayUController = class PayUController {
|
|
21
21
|
});
|
22
22
|
}
|
23
23
|
};
|
24
|
-
|
24
|
+
tslib_1.__decorate([
|
25
25
|
(0, common_1.Post)(),
|
26
26
|
(0, common_1.HttpCode)(200),
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
tslib_1.__param(0, (0, common_1.Body)()),
|
28
|
+
tslib_1.__metadata("design:type", Function),
|
29
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
30
|
+
tslib_1.__metadata("design:returntype", Promise)
|
31
31
|
], PayUController.prototype, "refreshStatus", null);
|
32
|
-
PayUController =
|
32
|
+
PayUController = tslib_1.__decorate([
|
33
33
|
(0, common_1.Controller)('payu'),
|
34
|
-
|
34
|
+
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService])
|
35
35
|
], PayUController);
|
36
36
|
exports.PayUController = PayUController;
|
37
37
|
//# sourceMappingURL=payu.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payu.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/payu/payu.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAgE;AAEhE,qFAAoE;AAGpE,IAAa,cAAc,GAA3B,MAAa,cAAc;IACvB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAIK,aAAa,CAAS,GAAmC;;YAC3D,IAAI;gBACA,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;gBACnD,OAAO,IAAI,CAAC;aACf;YAAC,OAAO,CAAC,EAAE;gBACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,MAAM,CAAC,CAAC;aACX;QACL,CAAC;KAAA;CACJ,CAAA;AATG;IAFC,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACO,
|
1
|
+
{"version":3,"file":"payu.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/payu/payu.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAgE;AAEhE,qFAAoE;AAGpE,IAAa,cAAc,GAA3B,MAAa,cAAc;IACvB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAIK,aAAa,CAAS,GAAmC;;YAC3D,IAAI;gBACA,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;gBACnD,OAAO,IAAI,CAAC;aACf;YAAC,OAAO,CAAC,EAAE;gBACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,MAAM,CAAC,CAAC;aACX;QACL,CAAC;KAAA;CACJ,CAAA;AATG;IAFC,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACO,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;mDAQ1B;AAdQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;6CAEuB,uCAAY;GADzC,cAAc,CAe1B;AAfY,wCAAc"}
|
@@ -9,7 +9,7 @@ let TransController = class TransController {
|
|
9
9
|
this.service = service;
|
10
10
|
}
|
11
11
|
create(obj, req) {
|
12
|
-
return
|
12
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
13
13
|
obj.clientIp = req.connection.remoteAddress.indexOf("::") === 0 ? "10.0.0.1" : req.connection.remoteAddress;
|
14
14
|
const { redirectUrl, orderId } = yield this.service.create(obj);
|
15
15
|
return {
|
@@ -19,30 +19,30 @@ let TransController = class TransController {
|
|
19
19
|
});
|
20
20
|
}
|
21
21
|
refresh(orderId, obj) {
|
22
|
-
return
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
23
23
|
yield this.service.refresh(orderId, {});
|
24
24
|
});
|
25
25
|
}
|
26
26
|
};
|
27
|
-
|
27
|
+
tslib_1.__decorate([
|
28
28
|
(0, common_1.Post)(),
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
tslib_1.__param(0, (0, common_1.Body)()),
|
30
|
+
tslib_1.__param(1, (0, common_1.Req)()),
|
31
|
+
tslib_1.__metadata("design:type", Function),
|
32
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
33
|
+
tslib_1.__metadata("design:returntype", Promise)
|
34
34
|
], TransController.prototype, "create", null);
|
35
|
-
|
35
|
+
tslib_1.__decorate([
|
36
36
|
(0, common_1.Post)(':id/refresh'),
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
tslib_1.__param(0, (0, common_1.Param)('id')),
|
38
|
+
tslib_1.__param(1, (0, common_1.Body)()),
|
39
|
+
tslib_1.__metadata("design:type", Function),
|
40
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
41
|
+
tslib_1.__metadata("design:returntype", Promise)
|
42
42
|
], TransController.prototype, "refresh", null);
|
43
|
-
TransController =
|
43
|
+
TransController = tslib_1.__decorate([
|
44
44
|
(0, common_1.Controller)(''),
|
45
|
-
|
45
|
+
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService])
|
46
46
|
], TransController);
|
47
47
|
exports.TransController = TransController;
|
48
48
|
//# sourceMappingURL=trans.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trans.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/trans/trans.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;AAGlE,qFAAoE;AAGpE,IAAa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAGK,MAAM,CAAY,GAAoB,EAAS,GAAG;;YACpD,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC;YAC5G,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChE,OAAO;gBACH,GAAG,EAAE,WAAW;gBAChB,OAAO;aACV,CAAA;QACL,CAAC;KAAA;IAGK,OAAO,CAAkB,OAAO,EAAU,GAAG;;YAC/C,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC5C,CAAC;KAAA;CACJ,CAAA;AAbG;IADC,IAAA,aAAI,GAAE;IACU,
|
1
|
+
{"version":3,"file":"trans.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/trans/trans.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAkE;AAGlE,qFAAoE;AAGpE,IAAa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAGK,MAAM,CAAY,GAAoB,EAAS,GAAG;;YACpD,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC;YAC5G,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChE,OAAO;gBACH,GAAG,EAAE,WAAW;gBAChB,OAAO;aACV,CAAA;QACL,CAAC;KAAA;IAGK,OAAO,CAAkB,OAAO,EAAU,GAAG;;YAC/C,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC5C,CAAC;KAAA;CACJ,CAAA;AAbG;IADC,IAAA,aAAI,GAAE;IACU,mBAAA,IAAA,aAAI,GAAE,CAAA;IAAwB,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAOnD;AAGD;IADC,IAAA,aAAI,EAAC,aAAa,CAAC;IACD,mBAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAW,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;8CAE9C;AAjBQ,eAAe;IAD3B,IAAA,mBAAU,EAAC,EAAE,CAAC;6CAE2B,uCAAY;GADzC,eAAe,CAkB3B;AAlBY,0CAAe"}
|
package/src/lib/nestjs.module.js
CHANGED
@@ -58,7 +58,7 @@ let TransShellNestjsModule = TransShellNestjsModule_1 = class TransShellNestjsMo
|
|
58
58
|
};
|
59
59
|
}
|
60
60
|
};
|
61
|
-
TransShellNestjsModule = TransShellNestjsModule_1 =
|
61
|
+
TransShellNestjsModule = TransShellNestjsModule_1 = tslib_1.__decorate([
|
62
62
|
(0, common_1.Module)({
|
63
63
|
imports: [common_1.HttpModule],
|
64
64
|
})
|
@@ -102,7 +102,7 @@ let TransShellNestjsCoreModule = TransShellNestjsCoreModule_1 = class TransShell
|
|
102
102
|
};
|
103
103
|
}
|
104
104
|
};
|
105
|
-
TransShellNestjsCoreModule = TransShellNestjsCoreModule_1 =
|
105
|
+
TransShellNestjsCoreModule = TransShellNestjsCoreModule_1 = tslib_1.__decorate([
|
106
106
|
(0, common_1.Module)({
|
107
107
|
imports: [common_1.HttpModule],
|
108
108
|
})
|