@smartsoft001/trans-shell-app-services 1.1.72 → 1.1.75
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/trans-shell-app-services",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.75",
|
|
4
4
|
"description": "This library was generated with [Nx](https://nx.dev).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@angular/common": "
|
|
17
|
-
"@angular/core": "
|
|
18
|
-
"@angular/platform-browser-dynamic": "
|
|
19
|
-
"@nestjs/axios": "
|
|
20
|
-
"@nestjs/common": "
|
|
21
|
-
"@nestjs/core": "
|
|
16
|
+
"@angular/common": "16.1.3",
|
|
17
|
+
"@angular/core": "16.1.3",
|
|
18
|
+
"@angular/platform-browser-dynamic": "16.1.3",
|
|
19
|
+
"@nestjs/axios": "3.0.0",
|
|
20
|
+
"@nestjs/common": "^10.0.5",
|
|
21
|
+
"@nestjs/core": "^10.0.5",
|
|
22
22
|
"crypto-js": "^4.1.1",
|
|
23
23
|
"flatted": "^3.2.4",
|
|
24
24
|
"guid-typescript": "1.0.9",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"paypal-rest-sdk": "^1.8.1",
|
|
28
28
|
"reflect-metadata": "0.1.13",
|
|
29
29
|
"rxjs": "7.8.1",
|
|
30
|
-
"typeorm": "0.
|
|
30
|
+
"typeorm": "0.3.17"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@smartsoft001/domain-core": "1.1.
|
|
34
|
-
"@smartsoft001/models": "1.1.
|
|
35
|
-
"@smartsoft001/paynow": "1.1.
|
|
36
|
-
"@smartsoft001/paypal": "1.1.
|
|
37
|
-
"@smartsoft001/payu": "1.1.
|
|
38
|
-
"@smartsoft001/revolut": "1.1.
|
|
39
|
-
"@smartsoft001/trans-domain": "1.1.
|
|
40
|
-
"@smartsoft001/users": "1.1.
|
|
41
|
-
"@smartsoft001/utils": "1.1.
|
|
33
|
+
"@smartsoft001/domain-core": "1.1.75",
|
|
34
|
+
"@smartsoft001/models": "1.1.75",
|
|
35
|
+
"@smartsoft001/paynow": "1.1.75",
|
|
36
|
+
"@smartsoft001/paypal": "1.1.75",
|
|
37
|
+
"@smartsoft001/payu": "1.1.75",
|
|
38
|
+
"@smartsoft001/revolut": "1.1.75",
|
|
39
|
+
"@smartsoft001/trans-domain": "1.1.75",
|
|
40
|
+
"@smartsoft001/users": "1.1.75",
|
|
41
|
+
"@smartsoft001/utils": "1.1.75",
|
|
42
42
|
"util": "0.12.5",
|
|
43
|
-
"tslib": "2.
|
|
43
|
+
"tslib": "2.5.3"
|
|
44
44
|
},
|
|
45
45
|
"main": "./src/index.js",
|
|
46
46
|
"types": "./src/index.d.ts"
|
|
@@ -12,7 +12,7 @@ const revolut_1 = require("@smartsoft001/revolut");
|
|
|
12
12
|
const domain_core_1 = require("@smartsoft001/domain-core");
|
|
13
13
|
const paynow_1 = require("@smartsoft001/paynow");
|
|
14
14
|
const internal_service_1 = require("../internal/internal.service");
|
|
15
|
-
let TransService = class TransService {
|
|
15
|
+
let TransService = exports.TransService = class TransService {
|
|
16
16
|
constructor(moduleRef, creatorService, refresherService, refundService, httpService, config, repository, payuService, paynowService, paypalService, revolutService) {
|
|
17
17
|
this.moduleRef = moduleRef;
|
|
18
18
|
this.creatorService = creatorService;
|
|
@@ -60,20 +60,14 @@ let TransService = class TransService {
|
|
|
60
60
|
create(ops) {
|
|
61
61
|
return this.creatorService.create(ops, this.getInternalService(), this._paymentService);
|
|
62
62
|
}
|
|
63
|
-
refresh(transId, data = {}) {
|
|
64
|
-
|
|
65
|
-
yield this.refresherService.refresh(transId, this.getInternalService(), this._paymentService, data);
|
|
66
|
-
});
|
|
63
|
+
async refresh(transId, data = {}) {
|
|
64
|
+
await this.refresherService.refresh(transId, this.getInternalService(), this._paymentService, data);
|
|
67
65
|
}
|
|
68
|
-
refund(transId, comment = "Refund") {
|
|
69
|
-
|
|
70
|
-
yield this.refundService.refund(transId, this.getInternalService(), this._paymentService, comment);
|
|
71
|
-
});
|
|
66
|
+
async refund(transId, comment = "Refund") {
|
|
67
|
+
await this.refundService.refund(transId, this.getInternalService(), this._paymentService, comment);
|
|
72
68
|
}
|
|
73
|
-
getById(id) {
|
|
74
|
-
return
|
|
75
|
-
return yield this.repository.getById(id);
|
|
76
|
-
});
|
|
69
|
+
async getById(id) {
|
|
70
|
+
return await this.repository.getById(id);
|
|
77
71
|
}
|
|
78
72
|
getInternalService() {
|
|
79
73
|
try {
|
|
@@ -86,7 +80,7 @@ let TransService = class TransService {
|
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
82
|
};
|
|
89
|
-
TransService = tslib_1.__decorate([
|
|
83
|
+
exports.TransService = TransService = tslib_1.__decorate([
|
|
90
84
|
(0, common_1.Injectable)(),
|
|
91
85
|
tslib_1.__param(7, (0, common_1.Optional)()),
|
|
92
86
|
tslib_1.__param(8, (0, common_1.Optional)()),
|
|
@@ -104,5 +98,4 @@ TransService = tslib_1.__decorate([
|
|
|
104
98
|
paypal_1.PaypalService,
|
|
105
99
|
revolut_1.RevolutService])
|
|
106
100
|
], TransService);
|
|
107
|
-
exports.TransService = TransService;
|
|
108
101
|
//# sourceMappingURL=trans.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trans.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/app-services/src/lib/services/trans/trans.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAsD;AACtD,uCAAyC;AACzC,yCAA0C;AAE1C,6DAQoC;AACpC,6CAAiD;AACjD,iDAAqD;AACrD,mDAAuD;AACvD,2DAA0D;AAC1D,iDAAmD;AAEnD,mEAA4E;AAGrE,IAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"trans.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/app-services/src/lib/services/trans/trans.service.ts"],"names":[],"mappings":";;;;AAAA,2CAAsD;AACtD,uCAAyC;AACzC,yCAA0C;AAE1C,6DAQoC;AACpC,6CAAiD;AACjD,iDAAqD;AACrD,mDAAuD;AACvD,2DAA0D;AAC1D,iDAAmD;AAEnD,mEAA4E;AAGrE,IAAM,YAAY,0BAAlB,MAAM,YAAY;IAqCvB,YACU,SAAoB,EACpB,cAAmC,EACnC,gBAAuC,EACvC,aAAiC,EACjC,WAAwB,EACxB,MAAmB,EACnB,UAAuC,EACnC,WAAgC,EAChC,aAAoC,EACpC,aAAoC,EACpC,cAAsC;QAV1C,cAAS,GAAT,SAAS,CAAW;QACpB,mBAAc,GAAd,cAAc,CAAqB;QACnC,qBAAgB,GAAhB,gBAAgB,CAAuB;QACvC,kBAAa,GAAb,aAAa,CAAoB;QACjC,gBAAW,GAAX,WAAW,CAAa;QACxB,WAAM,GAAN,MAAM,CAAa;QACnB,eAAU,GAAV,UAAU,CAA6B;QAC3B,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;QAC5B,mBAAc,GAAd,cAAc,CAAgB;QA/C5C,oBAAe,GAEnB;YACF,IAAI,EAAE,IAAI,CAAC,WAAW;YACtB,MAAM,EAAE,IAAI,CAAC,aAAa;YAC1B,MAAM,EAAE,IAAI,CAAC,aAAa;YAC1B,OAAO,EAAE,IAAI,CAAC,cAAc;SAC7B,CAAC;QAEM,qBAAgB,GAAG;YACzB,MAAM,EAAE,CAAC,KAAiB,EAAE,EAAE;gBAC5B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc;oBAAE,OAAO,OAAO,CAAC,OAAO,CAAC;wBACtD,IAAI,EAAE,IAAI,IAA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