@smartsoft001/trans-shell-nestjs 1.1.91 → 1.2.0
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/.eslintrc.json +13 -0
- package/README.md +56 -4
- package/jest.config.ts +27 -0
- package/package.json +2 -56
- package/project.json +39 -0
- package/src/index.ts +2 -0
- package/src/lib/controllers/index.ts +16 -0
- package/src/lib/controllers/paynow/paynow.controller.ts +20 -0
- package/src/lib/controllers/paypal/paypal.controller.ts +69 -0
- package/src/lib/controllers/payu/payu.controller.ts +22 -0
- package/src/lib/controllers/trans/trans.controller.ts +27 -0
- package/src/lib/nestjs.module.ts +171 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +11 -0
- package/tsconfig.spec.json +20 -0
- package/src/index.d.ts +0 -2
- package/src/index.js +0 -6
- package/src/index.js.map +0 -1
- package/src/lib/controllers/index.d.ts +0 -9
- package/src/lib/controllers/index.js +0 -19
- package/src/lib/controllers/index.js.map +0 -1
- package/src/lib/controllers/paynow/paynow.controller.d.ts +0 -8
- package/src/lib/controllers/paynow/paynow.controller.js +0 -34
- package/src/lib/controllers/paynow/paynow.controller.js.map +0 -1
- package/src/lib/controllers/paypal/paypal.controller.d.ts +0 -12
- package/src/lib/controllers/paypal/paypal.controller.js +0 -68
- package/src/lib/controllers/paypal/paypal.controller.js.map +0 -1
- package/src/lib/controllers/payu/payu.controller.d.ts +0 -10
- package/src/lib/controllers/payu/payu.controller.js +0 -34
- package/src/lib/controllers/payu/payu.controller.js.map +0 -1
- package/src/lib/controllers/trans/trans.controller.d.ts +0 -11
- package/src/lib/controllers/trans/trans.controller.js +0 -43
- package/src/lib/controllers/trans/trans.controller.js.map +0 -1
- package/src/lib/nestjs.module.d.ts +0 -43
- package/src/lib/nestjs.module.js +0 -140
- package/src/lib/nestjs.module.js.map +0 -1
- package/test-setup.js +0 -1
- package/test-setup.js.map +0 -1
- /package/{test-setup.d.ts → test-setup.ts} +0 -0
package/.eslintrc.json
ADDED
package/README.md
CHANGED
@@ -1,7 +1,59 @@
|
|
1
|
-
# trans-shell-nestjs
|
1
|
+
# 📦 @smartsoft001/trans-shell-nestjs
|
2
2
|
|
3
|
-
|
3
|
+
 
|
4
4
|
|
5
|
-
##
|
5
|
+
## 🚀 Usage
|
6
6
|
|
7
|
-
|
7
|
+
`npm i @smartsoft001/trans-shell-nestjs`
|
8
|
+
|
9
|
+
## 🛠️ Modules
|
10
|
+
|
11
|
+
### TransShellNestjsModule
|
12
|
+
- Provides the main integration module for transaction features in a NestJS app.
|
13
|
+
- Static method: `forRoot(config)` — Registers controllers, providers, and imports required modules with the given configuration.
|
14
|
+
|
15
|
+
### TransShellNestjsCoreModule
|
16
|
+
- Provides a core integration module for transaction features in a NestJS app.
|
17
|
+
- Static method: `forRoot(config)` — Registers providers and imports required modules with the given configuration.
|
18
|
+
|
19
|
+
## 🛠️ Controllers & Methods
|
20
|
+
|
21
|
+
### TransController
|
22
|
+
<table>
|
23
|
+
<tr>
|
24
|
+
<td>POST /</td>
|
25
|
+
<td>create — Creates a new transaction. Returns a redirect URL and orderId.</td>
|
26
|
+
</tr>
|
27
|
+
<tr>
|
28
|
+
<td>POST /:id/refresh</td>
|
29
|
+
<td>refresh — Refreshes the status of a transaction by orderId.</td>
|
30
|
+
</tr>
|
31
|
+
</table>
|
32
|
+
|
33
|
+
### PayUController
|
34
|
+
<table>
|
35
|
+
<tr>
|
36
|
+
<td>POST /payu</td>
|
37
|
+
<td>refreshStatus — Refreshes the status of a PayU transaction by orderId.</td>
|
38
|
+
</tr>
|
39
|
+
</table>
|
40
|
+
|
41
|
+
### PaypalController
|
42
|
+
<table>
|
43
|
+
<tr>
|
44
|
+
<td>POST /paypal</td>
|
45
|
+
<td>refreshStatus — Refreshes the status of a Paypal transaction by item_number1.</td>
|
46
|
+
</tr>
|
47
|
+
<tr>
|
48
|
+
<td>GET /paypal/:id/confirm</td>
|
49
|
+
<td>confirm — Confirms a Paypal payment and redirects to the appropriate URL.</td>
|
50
|
+
</tr>
|
51
|
+
</table>
|
52
|
+
|
53
|
+
### PaynowController
|
54
|
+
<table>
|
55
|
+
<tr>
|
56
|
+
<td>POST /paynow</td>
|
57
|
+
<td>refreshStatus — Refreshes the status of a Paynow transaction by paymentId.</td>
|
58
|
+
</tr>
|
59
|
+
</table>
|
package/jest.config.ts
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
export default {
|
3
|
+
globals: {},
|
4
|
+
transform: {
|
5
|
+
'^.+\\.[tj]sx?$': [
|
6
|
+
'ts-jest',
|
7
|
+
{
|
8
|
+
tsConfig: '<rootDir>/tsconfig.spec.json',
|
9
|
+
},
|
10
|
+
],
|
11
|
+
},
|
12
|
+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
13
|
+
coverageDirectory: '../../../../coverage/packages/trans/shell/nestjs',
|
14
|
+
displayName: 'trans-shell-nestjs',
|
15
|
+
testEnvironment: 'node',
|
16
|
+
preset: '../../../../jest.preset.js',
|
17
|
+
/* TODO: Update to latest Jest snapshotFormat
|
18
|
+
* By default Nx has kept the older style of Jest Snapshot formats
|
19
|
+
* to prevent breaking of any existing tests with snapshots.
|
20
|
+
* It's recommend you update to the latest format.
|
21
|
+
* You can do this by removing snapshotFormat property
|
22
|
+
* and running tests with --update-snapshot flag.
|
23
|
+
* Example: From within the project directory, run "nx test --update-snapshot"
|
24
|
+
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
|
25
|
+
*/
|
26
|
+
snapshotFormat: { escapeString: true, printBasicPrototype: true },
|
27
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smartsoft001/trans-shell-nestjs",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.2.0",
|
4
4
|
"description": "This library was generated with [Nx](https://nx.dev).",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -11,59 +11,5 @@
|
|
11
11
|
"bugs": {
|
12
12
|
"url": "https://github.com/emiljuchnikowski/smartsoft/issues"
|
13
13
|
},
|
14
|
-
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme"
|
15
|
-
"dependencies": {
|
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
|
-
"@nestjs/jwt": "^10.1.0",
|
23
|
-
"@nestjs/passport": "^10.0.0",
|
24
|
-
"@nestjs/terminus": "^10.0.1",
|
25
|
-
"@nestjs/typeorm": "^10.0.0",
|
26
|
-
"@nestjs/websockets": "^10.0.5",
|
27
|
-
"busboy": "^0.3.1",
|
28
|
-
"combined-stream": "^1.0.8",
|
29
|
-
"crypto-js": "^4.1.1",
|
30
|
-
"express": "4.18.2",
|
31
|
-
"flatted": "^3.2.4",
|
32
|
-
"guid-typescript": "1.0.9",
|
33
|
-
"json2csv": "^5.0.5",
|
34
|
-
"lodash": "^4.17.20",
|
35
|
-
"lodash-decorators": "^6.0.1",
|
36
|
-
"md5": "2.3.0",
|
37
|
-
"moment-timezone": "^0.5.43",
|
38
|
-
"mongodb": "5.6.0",
|
39
|
-
"passport-jwt": "4.0.0",
|
40
|
-
"paypal-rest-sdk": "^1.8.1",
|
41
|
-
"reflect-metadata": "0.1.13",
|
42
|
-
"rxjs": "7.8.1",
|
43
|
-
"socket.io": "4.7.1",
|
44
|
-
"typeorm": "0.3.17",
|
45
|
-
"xlsx": "^0.17.0"
|
46
|
-
},
|
47
|
-
"peerDependencies": {
|
48
|
-
"@smartsoft001/crud-domain": "1.1.91",
|
49
|
-
"@smartsoft001/crud-shell-app-services": "1.1.91",
|
50
|
-
"@smartsoft001/crud-shell-dtos": "1.1.91",
|
51
|
-
"@smartsoft001/crud-shell-nestjs": "1.1.91",
|
52
|
-
"@smartsoft001/domain-core": "1.1.91",
|
53
|
-
"@smartsoft001/models": "1.1.91",
|
54
|
-
"@smartsoft001/mongo": "1.1.91",
|
55
|
-
"@smartsoft001/nestjs": "1.1.91",
|
56
|
-
"@smartsoft001/paynow": "1.1.91",
|
57
|
-
"@smartsoft001/paypal": "1.1.91",
|
58
|
-
"@smartsoft001/payu": "1.1.91",
|
59
|
-
"@smartsoft001/revolut": "1.1.91",
|
60
|
-
"@smartsoft001/trans-domain": "1.1.91",
|
61
|
-
"@smartsoft001/trans-shell-app-services": "1.1.91",
|
62
|
-
"@smartsoft001/users": "1.1.91",
|
63
|
-
"@smartsoft001/utils": "1.1.91",
|
64
|
-
"util": "0.12.5",
|
65
|
-
"tslib": "2.5.3"
|
66
|
-
},
|
67
|
-
"main": "./src/index.js",
|
68
|
-
"types": "./src/index.d.ts"
|
14
|
+
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme"
|
69
15
|
}
|
package/project.json
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"name": "trans-shell-nestjs",
|
3
|
+
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
4
|
+
"sourceRoot": "packages/trans/shell/nestjs/src",
|
5
|
+
"projectType": "library",
|
6
|
+
"generators": {},
|
7
|
+
"targets": {
|
8
|
+
"lint": {
|
9
|
+
"executor": "@nx/eslint:lint",
|
10
|
+
"outputs": ["{options.outputFile}"],
|
11
|
+
"options": {
|
12
|
+
"lintFilePatterns": [
|
13
|
+
"packages/trans/shell/nestjs/**/*.{ts,tsx,js,jsx}",
|
14
|
+
"packages/trans/shell/nestjs/package.json"
|
15
|
+
]
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"test": {
|
19
|
+
"executor": "@nx/jest:jest",
|
20
|
+
"options": {
|
21
|
+
"jestConfig": "packages/trans/shell/nestjs/jest.config.ts",
|
22
|
+
"passWithNoTests": true
|
23
|
+
},
|
24
|
+
"outputs": ["{workspaceRoot}/coverage/packages/trans/shell/nestjs"]
|
25
|
+
},
|
26
|
+
"build": {
|
27
|
+
"executor": "@nx/esbuild:esbuild",
|
28
|
+
"options": {
|
29
|
+
"outputPath": "dist/packages/trans/shell/nestjs",
|
30
|
+
"tsConfig": "packages/trans/shell/nestjs/tsconfig.lib.json",
|
31
|
+
"packageJson": "packages/trans/shell/nestjs/package.json",
|
32
|
+
"main": "packages/trans/shell/nestjs/src/index.ts",
|
33
|
+
"assets": ["packages/trans/shell/nestjs/*.md"]
|
34
|
+
},
|
35
|
+
"outputs": ["{options.outputPath}"]
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"tags": ["scope:trans", "type:shell"]
|
39
|
+
}
|
package/src/index.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { TransController } from './trans/trans.controller';
|
2
|
+
import { PayUController } from './payu/payu.controller';
|
3
|
+
import { PaypalController } from './paypal/paypal.controller';
|
4
|
+
import { PaynowController } from './paynow/paynow.controller';
|
5
|
+
|
6
|
+
export * from './trans/trans.controller';
|
7
|
+
export * from './payu/payu.controller';
|
8
|
+
export * from './paypal/paypal.controller';
|
9
|
+
export * from './paynow/paynow.controller';
|
10
|
+
|
11
|
+
export const CONTROLLERS = [
|
12
|
+
TransController,
|
13
|
+
PayUController,
|
14
|
+
PaypalController,
|
15
|
+
PaynowController,
|
16
|
+
];
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
|
2
|
+
|
3
|
+
import { TransService } from '@smartsoft001/trans-shell-app-services';
|
4
|
+
|
5
|
+
@Controller('paynow')
|
6
|
+
export class PaynowController {
|
7
|
+
constructor(private readonly service: TransService) {}
|
8
|
+
|
9
|
+
@Post()
|
10
|
+
@HttpCode(200)
|
11
|
+
async refreshStatus(@Body() obj: { paymentId: string }): Promise<string> {
|
12
|
+
try {
|
13
|
+
await this.service.refresh(obj.paymentId, obj);
|
14
|
+
return 'ok';
|
15
|
+
} catch (e) {
|
16
|
+
console.error(e);
|
17
|
+
throw e;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import {
|
2
|
+
Body,
|
3
|
+
Controller,
|
4
|
+
HttpCode,
|
5
|
+
Post,
|
6
|
+
Get,
|
7
|
+
Param,
|
8
|
+
Query,
|
9
|
+
Res,
|
10
|
+
HttpStatus,
|
11
|
+
Optional,
|
12
|
+
} from '@nestjs/common';
|
13
|
+
|
14
|
+
import { TransService } from '@smartsoft001/trans-shell-app-services';
|
15
|
+
import { PaypalConfig, PaypalService } from '@smartsoft001/paypal';
|
16
|
+
|
17
|
+
@Controller('paypal')
|
18
|
+
export class PaypalController {
|
19
|
+
constructor(
|
20
|
+
private readonly service: TransService,
|
21
|
+
@Optional() private readonly config: PaypalConfig,
|
22
|
+
@Optional() private readonly paypalService: PaypalService,
|
23
|
+
) {}
|
24
|
+
|
25
|
+
@Post()
|
26
|
+
@HttpCode(200)
|
27
|
+
async refreshStatus(@Body() obj: { item_number1: string }): Promise<string> {
|
28
|
+
try {
|
29
|
+
const trans = await this.service.getById(obj.item_number1);
|
30
|
+
await this.service.refresh(trans.externalId, obj);
|
31
|
+
return 'ok';
|
32
|
+
} catch (e) {
|
33
|
+
console.error('ERROR ---> ', obj);
|
34
|
+
console.error(e);
|
35
|
+
throw e;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@Get(':id/confirm')
|
40
|
+
async confirm(
|
41
|
+
@Param('id') id,
|
42
|
+
@Query('PayerID') payerId,
|
43
|
+
@Query('paymentId') paymentId,
|
44
|
+
@Res() res,
|
45
|
+
) {
|
46
|
+
try {
|
47
|
+
const trans = await this.service.getById(id);
|
48
|
+
|
49
|
+
if (trans.externalId !== paymentId) {
|
50
|
+
throw new Error('Invalid externaId');
|
51
|
+
}
|
52
|
+
|
53
|
+
const payment = await this.paypalService.confirm(
|
54
|
+
payerId,
|
55
|
+
paymentId,
|
56
|
+
trans.amount / 100,
|
57
|
+
trans.data,
|
58
|
+
);
|
59
|
+
|
60
|
+
await this.service.refresh(paymentId, payment);
|
61
|
+
|
62
|
+
return res.redirect(HttpStatus.MOVED_PERMANENTLY, this.config.returnUrl);
|
63
|
+
} catch (e) {
|
64
|
+
console.log(e);
|
65
|
+
|
66
|
+
return res.redirect(HttpStatus.MOVED_PERMANENTLY, this.config.cancelUrl);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
|
2
|
+
|
3
|
+
import { TransService } from '@smartsoft001/trans-shell-app-services';
|
4
|
+
|
5
|
+
@Controller('payu')
|
6
|
+
export class PayUController {
|
7
|
+
constructor(private readonly service: TransService) {}
|
8
|
+
|
9
|
+
@Post()
|
10
|
+
@HttpCode(200)
|
11
|
+
async refreshStatus(
|
12
|
+
@Body() obj: { order: { orderId: string } },
|
13
|
+
): Promise<string> {
|
14
|
+
try {
|
15
|
+
await this.service.refresh(obj.order.orderId, obj);
|
16
|
+
return 'ok';
|
17
|
+
} catch (e) {
|
18
|
+
console.error(e);
|
19
|
+
throw e;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Body, Controller, Param, Post, Req } from '@nestjs/common';
|
2
|
+
|
3
|
+
import { ITransCreate } from '@smartsoft001/trans-domain';
|
4
|
+
import { TransService } from '@smartsoft001/trans-shell-app-services';
|
5
|
+
|
6
|
+
@Controller('')
|
7
|
+
export class TransController {
|
8
|
+
constructor(private readonly service: TransService) {}
|
9
|
+
|
10
|
+
@Post()
|
11
|
+
async create<T>(@Body() obj: ITransCreate<T>, @Req() req) {
|
12
|
+
obj.clientIp =
|
13
|
+
req.connection.remoteAddress.indexOf('::') === 0
|
14
|
+
? '10.0.0.1'
|
15
|
+
: req.connection.remoteAddress;
|
16
|
+
const { redirectUrl, orderId } = await this.service.create(obj);
|
17
|
+
return {
|
18
|
+
url: redirectUrl,
|
19
|
+
orderId,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
|
23
|
+
@Post(':id/refresh')
|
24
|
+
async refresh<T>(@Param('id') orderId, @Body() obj): Promise<void> {
|
25
|
+
await this.service.refresh(orderId, {});
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,171 @@
|
|
1
|
+
import { DynamicModule, Module } from '@nestjs/common';
|
2
|
+
import { PassportModule } from '@nestjs/passport';
|
3
|
+
import { JwtModule } from '@nestjs/jwt';
|
4
|
+
import { HttpModule } from '@nestjs/axios';
|
5
|
+
|
6
|
+
import { SERVICES } from '@smartsoft001/trans-shell-app-services';
|
7
|
+
import { DOMAIN_SERVICES, TransConfig } from '@smartsoft001/trans-domain';
|
8
|
+
import { PayuConfig, PayuService } from '@smartsoft001/payu';
|
9
|
+
import { PaypalConfig, PaypalService } from '@smartsoft001/paypal';
|
10
|
+
import { RevolutConfig, RevolutService } from '@smartsoft001/revolut';
|
11
|
+
import { CrudShellNestjsModule } from '@smartsoft001/crud-shell-nestjs';
|
12
|
+
import { SharedConfig } from '@smartsoft001/nestjs';
|
13
|
+
import { PaynowConfig, PaynowService } from '@smartsoft001/paynow';
|
14
|
+
|
15
|
+
import { CONTROLLERS } from './controllers';
|
16
|
+
|
17
|
+
@Module({
|
18
|
+
imports: [HttpModule],
|
19
|
+
})
|
20
|
+
export class TransShellNestjsModule {
|
21
|
+
static forRoot(
|
22
|
+
config: SharedConfig &
|
23
|
+
TransConfig & {
|
24
|
+
payuConfig?: PayuConfig;
|
25
|
+
paypalConfig?: PaypalConfig;
|
26
|
+
revolutConfig?: RevolutConfig;
|
27
|
+
paynowConfig?: PaynowConfig;
|
28
|
+
} & {
|
29
|
+
db: {
|
30
|
+
host: string;
|
31
|
+
port: number;
|
32
|
+
database: string;
|
33
|
+
username?: string;
|
34
|
+
password?: string;
|
35
|
+
collection?: string;
|
36
|
+
type?: any;
|
37
|
+
};
|
38
|
+
},
|
39
|
+
): DynamicModule {
|
40
|
+
return {
|
41
|
+
module: TransShellNestjsModule,
|
42
|
+
controllers: CONTROLLERS,
|
43
|
+
providers: [
|
44
|
+
...SERVICES,
|
45
|
+
...DOMAIN_SERVICES,
|
46
|
+
{ provide: TransConfig, useValue: config },
|
47
|
+
...(config.payuConfig
|
48
|
+
? [{ provide: PayuConfig, useValue: config.payuConfig }, PayuService]
|
49
|
+
: []),
|
50
|
+
...(config.paypalConfig
|
51
|
+
? [
|
52
|
+
{ provide: PaypalConfig, useValue: config.paypalConfig },
|
53
|
+
PaypalService,
|
54
|
+
]
|
55
|
+
: []),
|
56
|
+
...(config.revolutConfig
|
57
|
+
? [
|
58
|
+
{ provide: RevolutConfig, useValue: config.revolutConfig },
|
59
|
+
RevolutService,
|
60
|
+
]
|
61
|
+
: []),
|
62
|
+
...(config.paynowConfig
|
63
|
+
? [
|
64
|
+
{ provide: PaynowConfig, useValue: config.paynowConfig },
|
65
|
+
PaynowService,
|
66
|
+
]
|
67
|
+
: []),
|
68
|
+
],
|
69
|
+
imports: [
|
70
|
+
CrudShellNestjsModule.forRoot({
|
71
|
+
...config,
|
72
|
+
db: {
|
73
|
+
...config.db,
|
74
|
+
collection: 'trans',
|
75
|
+
},
|
76
|
+
restApi: false,
|
77
|
+
socket: false,
|
78
|
+
}),
|
79
|
+
PassportModule.register({ defaultStrategy: 'jwt', session: false }),
|
80
|
+
JwtModule.register({
|
81
|
+
secret: config.tokenConfig.secretOrPrivateKey,
|
82
|
+
signOptions: {
|
83
|
+
expiresIn: config.tokenConfig.expiredIn,
|
84
|
+
},
|
85
|
+
}),
|
86
|
+
],
|
87
|
+
exports: [
|
88
|
+
...SERVICES,
|
89
|
+
TransConfig,
|
90
|
+
...(config.payuConfig ? [PayuConfig, PayuService] : []),
|
91
|
+
...(config.paypalConfig ? [PaypalConfig, PaypalService] : []),
|
92
|
+
...(config.revolutConfig ? [RevolutConfig, RevolutService] : []),
|
93
|
+
],
|
94
|
+
};
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
@Module({
|
99
|
+
imports: [HttpModule],
|
100
|
+
})
|
101
|
+
export class TransShellNestjsCoreModule {
|
102
|
+
static forRoot(
|
103
|
+
config: SharedConfig &
|
104
|
+
TransConfig & {
|
105
|
+
payuConfig?: PayuConfig;
|
106
|
+
paypalConfig?: PaypalConfig;
|
107
|
+
revolutConfig?: RevolutConfig;
|
108
|
+
paynowConfig?: PaynowConfig;
|
109
|
+
} & {
|
110
|
+
db: {
|
111
|
+
host: string;
|
112
|
+
port: number;
|
113
|
+
database: string;
|
114
|
+
username?: string;
|
115
|
+
password?: string;
|
116
|
+
collection?: string;
|
117
|
+
type?: any;
|
118
|
+
};
|
119
|
+
},
|
120
|
+
): DynamicModule {
|
121
|
+
return {
|
122
|
+
module: TransShellNestjsCoreModule,
|
123
|
+
providers: [
|
124
|
+
...SERVICES,
|
125
|
+
...DOMAIN_SERVICES,
|
126
|
+
{ provide: TransConfig, useValue: config },
|
127
|
+
...(config.payuConfig
|
128
|
+
? [{ provide: PayuConfig, useValue: config.payuConfig }, PayuService]
|
129
|
+
: []),
|
130
|
+
...(config.paypalConfig
|
131
|
+
? [
|
132
|
+
{ provide: PaypalConfig, useValue: config.paypalConfig },
|
133
|
+
PaypalService,
|
134
|
+
]
|
135
|
+
: []),
|
136
|
+
...(config.paynowConfig
|
137
|
+
? [
|
138
|
+
{ provide: PaynowConfig, useValue: config.paynowConfig },
|
139
|
+
PaynowService,
|
140
|
+
]
|
141
|
+
: []),
|
142
|
+
],
|
143
|
+
imports: [
|
144
|
+
CrudShellNestjsModule.forRoot({
|
145
|
+
...config,
|
146
|
+
db: {
|
147
|
+
...config.db,
|
148
|
+
collection: 'trans',
|
149
|
+
},
|
150
|
+
restApi: false,
|
151
|
+
socket: false,
|
152
|
+
}),
|
153
|
+
PassportModule.register({ defaultStrategy: 'jwt', session: false }),
|
154
|
+
JwtModule.register({
|
155
|
+
secret: config.tokenConfig.secretOrPrivateKey,
|
156
|
+
signOptions: {
|
157
|
+
expiresIn: config.tokenConfig.expiredIn,
|
158
|
+
},
|
159
|
+
}),
|
160
|
+
],
|
161
|
+
exports: [
|
162
|
+
...SERVICES,
|
163
|
+
TransConfig,
|
164
|
+
...(config.payuConfig ? [PayuConfig, PayuService] : []),
|
165
|
+
...(config.paypalConfig ? [PaypalConfig, PaypalService] : []),
|
166
|
+
...(config.revolutConfig ? [RevolutConfig, RevolutService] : []),
|
167
|
+
...(config.paynowConfig ? [PaynowConfig, PaynowService] : []),
|
168
|
+
],
|
169
|
+
};
|
170
|
+
}
|
171
|
+
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"extends": "./tsconfig.json",
|
3
|
+
"compilerOptions": {
|
4
|
+
"module": "commonjs",
|
5
|
+
"outDir": "../../../../dist/out-tsc",
|
6
|
+
"declaration": true,
|
7
|
+
"types": ["node"]
|
8
|
+
},
|
9
|
+
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
|
10
|
+
"include": ["**/*.ts"]
|
11
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"extends": "./tsconfig.json",
|
3
|
+
"compilerOptions": {
|
4
|
+
"outDir": "../../../../dist/out-tsc",
|
5
|
+
"module": "commonjs",
|
6
|
+
"types": ["jest", "node"]
|
7
|
+
},
|
8
|
+
"include": [
|
9
|
+
"**/*.spec.ts",
|
10
|
+
"**/*.test.ts",
|
11
|
+
"**/*.spec.tsx",
|
12
|
+
"**/*.test.tsx",
|
13
|
+
"**/*.spec.js",
|
14
|
+
"**/*.test.js",
|
15
|
+
"**/*.spec.jsx",
|
16
|
+
"**/*.test.jsx",
|
17
|
+
"**/*.d.ts",
|
18
|
+
"jest.config.ts"
|
19
|
+
]
|
20
|
+
}
|
package/src/index.d.ts
DELETED
package/src/index.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./lib/nestjs.module"), exports);
|
5
|
-
tslib_1.__exportStar(require("./lib/controllers"), exports);
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/trans/shell/nestjs/src/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,4DAAkC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { TransController } from "./trans/trans.controller";
|
2
|
-
import { PayUController } from "./payu/payu.controller";
|
3
|
-
import { PaypalController } from "./paypal/paypal.controller";
|
4
|
-
import { PaynowController } from "./paynow/paynow.controller";
|
5
|
-
export * from "./trans/trans.controller";
|
6
|
-
export * from "./payu/payu.controller";
|
7
|
-
export * from "./paypal/paypal.controller";
|
8
|
-
export * from "./paynow/paynow.controller";
|
9
|
-
export declare const CONTROLLERS: (typeof TransController | typeof PayUController | typeof PaypalController | typeof PaynowController)[];
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CONTROLLERS = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const trans_controller_1 = require("./trans/trans.controller");
|
6
|
-
const payu_controller_1 = require("./payu/payu.controller");
|
7
|
-
const paypal_controller_1 = require("./paypal/paypal.controller");
|
8
|
-
const paynow_controller_1 = require("./paynow/paynow.controller");
|
9
|
-
tslib_1.__exportStar(require("./trans/trans.controller"), exports);
|
10
|
-
tslib_1.__exportStar(require("./payu/payu.controller"), exports);
|
11
|
-
tslib_1.__exportStar(require("./paypal/paypal.controller"), exports);
|
12
|
-
tslib_1.__exportStar(require("./paynow/paynow.controller"), exports);
|
13
|
-
exports.CONTROLLERS = [
|
14
|
-
trans_controller_1.TransController,
|
15
|
-
payu_controller_1.PayUController,
|
16
|
-
paypal_controller_1.PaypalController,
|
17
|
-
paynow_controller_1.PaynowController
|
18
|
-
];
|
19
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
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;AAC5D,kEAA4D;AAE5D,mEAAyC;AACzC,iEAAuC;AACvC,qEAA2C;AAC3C,qEAA2C;AAE9B,QAAA,WAAW,GAAG;IACvB,kCAAe;IACf,gCAAc;IACd,oCAAgB;IAChB,oCAAgB;CACnB,CAAC"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PaynowController = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const common_1 = require("@nestjs/common");
|
6
|
-
const trans_shell_app_services_1 = require("@smartsoft001/trans-shell-app-services");
|
7
|
-
let PaynowController = exports.PaynowController = class PaynowController {
|
8
|
-
constructor(service) {
|
9
|
-
this.service = service;
|
10
|
-
}
|
11
|
-
async refreshStatus(obj) {
|
12
|
-
try {
|
13
|
-
await this.service.refresh(obj.paymentId, obj);
|
14
|
-
return 'ok';
|
15
|
-
}
|
16
|
-
catch (e) {
|
17
|
-
console.error(e);
|
18
|
-
throw e;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
};
|
22
|
-
tslib_1.__decorate([
|
23
|
-
(0, common_1.Post)(),
|
24
|
-
(0, common_1.HttpCode)(200),
|
25
|
-
tslib_1.__param(0, (0, common_1.Body)()),
|
26
|
-
tslib_1.__metadata("design:type", Function),
|
27
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
28
|
-
tslib_1.__metadata("design:returntype", Promise)
|
29
|
-
], PaynowController.prototype, "refreshStatus", null);
|
30
|
-
exports.PaynowController = PaynowController = tslib_1.__decorate([
|
31
|
-
(0, common_1.Controller)('paynow'),
|
32
|
-
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService])
|
33
|
-
], PaynowController);
|
34
|
-
//# sourceMappingURL=paynow.controller.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"paynow.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/paynow/paynow.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAgE;AAEhE,qFAAoE;AAG7D,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IACzB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAIK,AAAN,KAAK,CAAC,aAAa,CAAS,GAA0B;QAClD,IAAI;YACA,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACjB,MAAM,CAAC,CAAC;SACX;IACL,CAAC;CACJ,CAAA;AATS;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACO,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;qDAQ1B;2BAdQ,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;6CAEqB,uCAAY;GADzC,gBAAgB,CAe5B"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { TransService } from "@smartsoft001/trans-shell-app-services";
|
2
|
-
import { PaypalConfig, PaypalService } from "@smartsoft001/paypal";
|
3
|
-
export declare class PaypalController {
|
4
|
-
private readonly service;
|
5
|
-
private readonly config;
|
6
|
-
private readonly paypalService;
|
7
|
-
constructor(service: TransService, config: PaypalConfig, paypalService: PaypalService);
|
8
|
-
refreshStatus(obj: {
|
9
|
-
item_number1: string;
|
10
|
-
}): Promise<string>;
|
11
|
-
confirm(id: any, payerId: any, paymentId: any, res: any): Promise<any>;
|
12
|
-
}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PaypalController = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const common_1 = require("@nestjs/common");
|
6
|
-
const trans_shell_app_services_1 = require("@smartsoft001/trans-shell-app-services");
|
7
|
-
const paypal_1 = require("@smartsoft001/paypal");
|
8
|
-
let PaypalController = exports.PaypalController = class PaypalController {
|
9
|
-
constructor(service, config, paypalService) {
|
10
|
-
this.service = service;
|
11
|
-
this.config = config;
|
12
|
-
this.paypalService = paypalService;
|
13
|
-
}
|
14
|
-
async refreshStatus(obj) {
|
15
|
-
try {
|
16
|
-
const trans = await this.service.getById(obj.item_number1);
|
17
|
-
await this.service.refresh(trans.externalId, obj);
|
18
|
-
return "ok";
|
19
|
-
}
|
20
|
-
catch (e) {
|
21
|
-
console.error('ERROR ---> ', obj);
|
22
|
-
console.error(e);
|
23
|
-
throw e;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
async confirm(id, payerId, paymentId, res) {
|
27
|
-
try {
|
28
|
-
const trans = await this.service.getById(id);
|
29
|
-
if (trans.externalId !== paymentId) {
|
30
|
-
throw new Error('Invalid externaId');
|
31
|
-
}
|
32
|
-
const payment = await this.paypalService.confirm(payerId, paymentId, trans.amount / 100, trans.data);
|
33
|
-
await this.service.refresh(paymentId, payment);
|
34
|
-
return res.redirect(common_1.HttpStatus.MOVED_PERMANENTLY, this.config.returnUrl);
|
35
|
-
}
|
36
|
-
catch (e) {
|
37
|
-
console.log(e);
|
38
|
-
return res.redirect(common_1.HttpStatus.MOVED_PERMANENTLY, this.config.cancelUrl);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
};
|
42
|
-
tslib_1.__decorate([
|
43
|
-
(0, common_1.Post)(),
|
44
|
-
(0, common_1.HttpCode)(200),
|
45
|
-
tslib_1.__param(0, (0, common_1.Body)()),
|
46
|
-
tslib_1.__metadata("design:type", Function),
|
47
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
48
|
-
tslib_1.__metadata("design:returntype", Promise)
|
49
|
-
], PaypalController.prototype, "refreshStatus", null);
|
50
|
-
tslib_1.__decorate([
|
51
|
-
(0, common_1.Get)(":id/confirm"),
|
52
|
-
tslib_1.__param(0, (0, common_1.Param)('id')),
|
53
|
-
tslib_1.__param(1, (0, common_1.Query)("PayerID")),
|
54
|
-
tslib_1.__param(2, (0, common_1.Query)("paymentId")),
|
55
|
-
tslib_1.__param(3, (0, common_1.Res)()),
|
56
|
-
tslib_1.__metadata("design:type", Function),
|
57
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
58
|
-
tslib_1.__metadata("design:returntype", Promise)
|
59
|
-
], PaypalController.prototype, "confirm", null);
|
60
|
-
exports.PaypalController = PaypalController = tslib_1.__decorate([
|
61
|
-
(0, common_1.Controller)("paypal"),
|
62
|
-
tslib_1.__param(1, (0, common_1.Optional)()),
|
63
|
-
tslib_1.__param(2, (0, common_1.Optional)()),
|
64
|
-
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService,
|
65
|
-
paypal_1.PaypalConfig,
|
66
|
-
paypal_1.PaypalService])
|
67
|
-
], PaypalController);
|
68
|
-
//# sourceMappingURL=paypal.controller.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"paypal.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/trans/shell/nestjs/src/lib/controllers/paypal/paypal.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAA8G;AAE9G,qFAAsE;AACtE,iDAAiE;AAG1D,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IAC3B,YACqB,OAAqB,EACT,MAAoB,EACpB,aAA4B;QAFxC,YAAO,GAAP,OAAO,CAAc;QACT,WAAM,GAAN,MAAM,CAAc;QACpB,kBAAa,GAAb,aAAa,CAAe;IAC1D,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CACT,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,CAAA;AAvCO;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IAEX,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;qDAWR;AAGK;IADL,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;2BA/CU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAId,mBAAA,IAAA,iBAAQ,GAAE,CAAA;IACV,mBAAA,IAAA,iBAAQ,GAAE,CAAA;6CAFe,uCAAY;QACD,qBAAY;QACL,sBAAa;GAJlD,gBAAgB,CAgD5B"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { TransService } from "@smartsoft001/trans-shell-app-services";
|
2
|
-
export declare class PayUController {
|
3
|
-
private readonly service;
|
4
|
-
constructor(service: TransService);
|
5
|
-
refreshStatus(obj: {
|
6
|
-
order: {
|
7
|
-
orderId: string;
|
8
|
-
};
|
9
|
-
}): Promise<string>;
|
10
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayUController = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const common_1 = require("@nestjs/common");
|
6
|
-
const trans_shell_app_services_1 = require("@smartsoft001/trans-shell-app-services");
|
7
|
-
let PayUController = exports.PayUController = class PayUController {
|
8
|
-
constructor(service) {
|
9
|
-
this.service = service;
|
10
|
-
}
|
11
|
-
async refreshStatus(obj) {
|
12
|
-
try {
|
13
|
-
await this.service.refresh(obj.order.orderId, obj);
|
14
|
-
return 'ok';
|
15
|
-
}
|
16
|
-
catch (e) {
|
17
|
-
console.error(e);
|
18
|
-
throw e;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
};
|
22
|
-
tslib_1.__decorate([
|
23
|
-
(0, common_1.Post)(),
|
24
|
-
(0, common_1.HttpCode)(200),
|
25
|
-
tslib_1.__param(0, (0, common_1.Body)()),
|
26
|
-
tslib_1.__metadata("design:type", Function),
|
27
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
28
|
-
tslib_1.__metadata("design:returntype", Promise)
|
29
|
-
], PayUController.prototype, "refreshStatus", null);
|
30
|
-
exports.PayUController = PayUController = tslib_1.__decorate([
|
31
|
-
(0, common_1.Controller)('payu'),
|
32
|
-
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService])
|
33
|
-
], PayUController);
|
34
|
-
//# sourceMappingURL=payu.controller.js.map
|
@@ -1 +0,0 @@
|
|
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;AAG7D,IAAM,cAAc,4BAApB,MAAM,cAAc;IACvB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAIK,AAAN,KAAK,CAAC,aAAa,CAAS,GAAmC;QAC3D,IAAI;YACA,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACjB,MAAM,CAAC,CAAC;SACX;IACL,CAAC;CACJ,CAAA;AATS;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACO,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;mDAQ1B;yBAdQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;6CAEuB,uCAAY;GADzC,cAAc,CAe1B"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ITransCreate } from "@smartsoft001/trans-domain";
|
2
|
-
import { TransService } from "@smartsoft001/trans-shell-app-services";
|
3
|
-
export declare class TransController {
|
4
|
-
private readonly service;
|
5
|
-
constructor(service: TransService);
|
6
|
-
create<T>(obj: ITransCreate<T>, req: any): Promise<{
|
7
|
-
url: string;
|
8
|
-
orderId: string;
|
9
|
-
}>;
|
10
|
-
refresh<T>(orderId: any, obj: any): Promise<void>;
|
11
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TransController = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const common_1 = require("@nestjs/common");
|
6
|
-
const trans_shell_app_services_1 = require("@smartsoft001/trans-shell-app-services");
|
7
|
-
let TransController = exports.TransController = class TransController {
|
8
|
-
constructor(service) {
|
9
|
-
this.service = service;
|
10
|
-
}
|
11
|
-
async create(obj, req) {
|
12
|
-
obj.clientIp = req.connection.remoteAddress.indexOf("::") === 0 ? "10.0.0.1" : req.connection.remoteAddress;
|
13
|
-
const { redirectUrl, orderId } = await this.service.create(obj);
|
14
|
-
return {
|
15
|
-
url: redirectUrl,
|
16
|
-
orderId
|
17
|
-
};
|
18
|
-
}
|
19
|
-
async refresh(orderId, obj) {
|
20
|
-
await this.service.refresh(orderId, {});
|
21
|
-
}
|
22
|
-
};
|
23
|
-
tslib_1.__decorate([
|
24
|
-
(0, common_1.Post)(),
|
25
|
-
tslib_1.__param(0, (0, common_1.Body)()),
|
26
|
-
tslib_1.__param(1, (0, common_1.Req)()),
|
27
|
-
tslib_1.__metadata("design:type", Function),
|
28
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
29
|
-
tslib_1.__metadata("design:returntype", Promise)
|
30
|
-
], TransController.prototype, "create", null);
|
31
|
-
tslib_1.__decorate([
|
32
|
-
(0, common_1.Post)(':id/refresh'),
|
33
|
-
tslib_1.__param(0, (0, common_1.Param)('id')),
|
34
|
-
tslib_1.__param(1, (0, common_1.Body)()),
|
35
|
-
tslib_1.__metadata("design:type", Function),
|
36
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
37
|
-
tslib_1.__metadata("design:returntype", Promise)
|
38
|
-
], TransController.prototype, "refresh", null);
|
39
|
-
exports.TransController = TransController = tslib_1.__decorate([
|
40
|
-
(0, common_1.Controller)(''),
|
41
|
-
tslib_1.__metadata("design:paramtypes", [trans_shell_app_services_1.TransService])
|
42
|
-
], TransController);
|
43
|
-
//# sourceMappingURL=trans.controller.js.map
|
@@ -1 +0,0 @@
|
|
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;AAG7D,IAAM,eAAe,6BAArB,MAAM,eAAe;IACxB,YAA6B,OAAqB;QAArB,YAAO,GAAP,OAAO,CAAc;IAClD,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAY,GAAoB,EAAS,GAAG;QACpD,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;QAC5G,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChE,OAAO;YACH,GAAG,EAAE,WAAW;YAChB,OAAO;SACV,CAAA;IACL,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAkB,OAAO,EAAU,GAAG;QAC/C,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAbS;IADL,IAAA,aAAI,GAAE;IACU,mBAAA,IAAA,aAAI,GAAE,CAAA;IAAwB,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAOnD;AAGK;IADL,IAAA,aAAI,EAAC,aAAa,CAAC;IACD,mBAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAW,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;8CAE9C;0BAjBQ,eAAe;IAD3B,IAAA,mBAAU,EAAC,EAAE,CAAC;6CAE2B,uCAAY;GADzC,eAAe,CAkB3B"}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { DynamicModule } from "@nestjs/common";
|
2
|
-
import { TransConfig } from "@smartsoft001/trans-domain";
|
3
|
-
import { PayuConfig } from "@smartsoft001/payu";
|
4
|
-
import { PaypalConfig } from "@smartsoft001/paypal";
|
5
|
-
import { RevolutConfig } from "@smartsoft001/revolut";
|
6
|
-
import { SharedConfig } from "@smartsoft001/nestjs";
|
7
|
-
import { PaynowConfig } from "@smartsoft001/paynow";
|
8
|
-
export declare class TransShellNestjsModule {
|
9
|
-
static forRoot(config: SharedConfig & TransConfig & {
|
10
|
-
payuConfig?: PayuConfig;
|
11
|
-
paypalConfig?: PaypalConfig;
|
12
|
-
revolutConfig?: RevolutConfig;
|
13
|
-
paynowConfig?: PaynowConfig;
|
14
|
-
} & {
|
15
|
-
db: {
|
16
|
-
host: string;
|
17
|
-
port: number;
|
18
|
-
database: string;
|
19
|
-
username?: string;
|
20
|
-
password?: string;
|
21
|
-
collection?: string;
|
22
|
-
type?: any;
|
23
|
-
};
|
24
|
-
}): DynamicModule;
|
25
|
-
}
|
26
|
-
export declare class TransShellNestjsCoreModule {
|
27
|
-
static forRoot(config: SharedConfig & TransConfig & {
|
28
|
-
payuConfig?: PayuConfig;
|
29
|
-
paypalConfig?: PaypalConfig;
|
30
|
-
revolutConfig?: RevolutConfig;
|
31
|
-
paynowConfig?: PaynowConfig;
|
32
|
-
} & {
|
33
|
-
db: {
|
34
|
-
host: string;
|
35
|
-
port: number;
|
36
|
-
database: string;
|
37
|
-
username?: string;
|
38
|
-
password?: string;
|
39
|
-
collection?: string;
|
40
|
-
type?: any;
|
41
|
-
};
|
42
|
-
}): DynamicModule;
|
43
|
-
}
|
package/src/lib/nestjs.module.js
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var TransShellNestjsModule_1, TransShellNestjsCoreModule_1;
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.TransShellNestjsCoreModule = exports.TransShellNestjsModule = void 0;
|
5
|
-
const tslib_1 = require("tslib");
|
6
|
-
const common_1 = require("@nestjs/common");
|
7
|
-
const passport_1 = require("@nestjs/passport");
|
8
|
-
const jwt_1 = require("@nestjs/jwt");
|
9
|
-
const axios_1 = require("@nestjs/axios");
|
10
|
-
const trans_shell_app_services_1 = require("@smartsoft001/trans-shell-app-services");
|
11
|
-
const trans_domain_1 = require("@smartsoft001/trans-domain");
|
12
|
-
const payu_1 = require("@smartsoft001/payu");
|
13
|
-
const paypal_1 = require("@smartsoft001/paypal");
|
14
|
-
const revolut_1 = require("@smartsoft001/revolut");
|
15
|
-
const crud_shell_nestjs_1 = require("@smartsoft001/crud-shell-nestjs");
|
16
|
-
const paynow_1 = require("@smartsoft001/paynow");
|
17
|
-
const controllers_1 = require("./controllers");
|
18
|
-
let TransShellNestjsModule = exports.TransShellNestjsModule = TransShellNestjsModule_1 = class TransShellNestjsModule {
|
19
|
-
static forRoot(config) {
|
20
|
-
return {
|
21
|
-
module: TransShellNestjsModule_1,
|
22
|
-
controllers: controllers_1.CONTROLLERS,
|
23
|
-
providers: [
|
24
|
-
...trans_shell_app_services_1.SERVICES,
|
25
|
-
...trans_domain_1.DOMAIN_SERVICES,
|
26
|
-
{ provide: trans_domain_1.TransConfig, useValue: config },
|
27
|
-
...(config.payuConfig
|
28
|
-
? [{ provide: payu_1.PayuConfig, useValue: config.payuConfig }, payu_1.PayuService]
|
29
|
-
: []),
|
30
|
-
...(config.paypalConfig
|
31
|
-
? [
|
32
|
-
{ provide: paypal_1.PaypalConfig, useValue: config.paypalConfig },
|
33
|
-
paypal_1.PaypalService,
|
34
|
-
]
|
35
|
-
: []),
|
36
|
-
...(config.revolutConfig
|
37
|
-
? [
|
38
|
-
{ provide: revolut_1.RevolutConfig, useValue: config.revolutConfig },
|
39
|
-
revolut_1.RevolutService,
|
40
|
-
]
|
41
|
-
: []),
|
42
|
-
...(config.paynowConfig
|
43
|
-
? [
|
44
|
-
{ provide: paynow_1.PaynowConfig, useValue: config.paynowConfig },
|
45
|
-
paynow_1.PaynowService,
|
46
|
-
]
|
47
|
-
: []),
|
48
|
-
],
|
49
|
-
imports: [
|
50
|
-
crud_shell_nestjs_1.CrudShellNestjsModule.forRoot({
|
51
|
-
...config,
|
52
|
-
db: {
|
53
|
-
...config.db,
|
54
|
-
collection: "trans",
|
55
|
-
},
|
56
|
-
restApi: false,
|
57
|
-
socket: false,
|
58
|
-
}),
|
59
|
-
passport_1.PassportModule.register({ defaultStrategy: "jwt", session: false }),
|
60
|
-
jwt_1.JwtModule.register({
|
61
|
-
secret: config.tokenConfig.secretOrPrivateKey,
|
62
|
-
signOptions: {
|
63
|
-
expiresIn: config.tokenConfig.expiredIn,
|
64
|
-
},
|
65
|
-
}),
|
66
|
-
],
|
67
|
-
exports: [
|
68
|
-
...trans_shell_app_services_1.SERVICES,
|
69
|
-
trans_domain_1.TransConfig,
|
70
|
-
...(config.payuConfig ? [payu_1.PayuConfig, payu_1.PayuService] : []),
|
71
|
-
...(config.paypalConfig ? [paypal_1.PaypalConfig, paypal_1.PaypalService] : []),
|
72
|
-
...(config.revolutConfig ? [revolut_1.RevolutConfig, revolut_1.RevolutService] : []),
|
73
|
-
],
|
74
|
-
};
|
75
|
-
}
|
76
|
-
};
|
77
|
-
exports.TransShellNestjsModule = TransShellNestjsModule = TransShellNestjsModule_1 = tslib_1.__decorate([
|
78
|
-
(0, common_1.Module)({
|
79
|
-
imports: [axios_1.HttpModule],
|
80
|
-
})
|
81
|
-
], TransShellNestjsModule);
|
82
|
-
let TransShellNestjsCoreModule = exports.TransShellNestjsCoreModule = TransShellNestjsCoreModule_1 = class TransShellNestjsCoreModule {
|
83
|
-
static forRoot(config) {
|
84
|
-
return {
|
85
|
-
module: TransShellNestjsCoreModule_1,
|
86
|
-
providers: [
|
87
|
-
...trans_shell_app_services_1.SERVICES,
|
88
|
-
...trans_domain_1.DOMAIN_SERVICES,
|
89
|
-
{ provide: trans_domain_1.TransConfig, useValue: config },
|
90
|
-
...(config.payuConfig
|
91
|
-
? [{ provide: payu_1.PayuConfig, useValue: config.payuConfig }, payu_1.PayuService]
|
92
|
-
: []),
|
93
|
-
...(config.paypalConfig
|
94
|
-
? [
|
95
|
-
{ provide: paypal_1.PaypalConfig, useValue: config.paypalConfig },
|
96
|
-
paypal_1.PaypalService,
|
97
|
-
]
|
98
|
-
: []),
|
99
|
-
...(config.paynowConfig
|
100
|
-
? [
|
101
|
-
{ provide: paynow_1.PaynowConfig, useValue: config.paynowConfig },
|
102
|
-
paynow_1.PaynowService,
|
103
|
-
]
|
104
|
-
: []),
|
105
|
-
],
|
106
|
-
imports: [
|
107
|
-
crud_shell_nestjs_1.CrudShellNestjsModule.forRoot({
|
108
|
-
...config,
|
109
|
-
db: {
|
110
|
-
...config.db,
|
111
|
-
collection: "trans",
|
112
|
-
},
|
113
|
-
restApi: false,
|
114
|
-
socket: false,
|
115
|
-
}),
|
116
|
-
passport_1.PassportModule.register({ defaultStrategy: "jwt", session: false }),
|
117
|
-
jwt_1.JwtModule.register({
|
118
|
-
secret: config.tokenConfig.secretOrPrivateKey,
|
119
|
-
signOptions: {
|
120
|
-
expiresIn: config.tokenConfig.expiredIn,
|
121
|
-
},
|
122
|
-
}),
|
123
|
-
],
|
124
|
-
exports: [
|
125
|
-
...trans_shell_app_services_1.SERVICES,
|
126
|
-
trans_domain_1.TransConfig,
|
127
|
-
...(config.payuConfig ? [payu_1.PayuConfig, payu_1.PayuService] : []),
|
128
|
-
...(config.paypalConfig ? [paypal_1.PaypalConfig, paypal_1.PaypalService] : []),
|
129
|
-
...(config.revolutConfig ? [revolut_1.RevolutConfig, revolut_1.RevolutService] : []),
|
130
|
-
...(config.paynowConfig ? [paynow_1.PaynowConfig, paynow_1.PaynowService] : []),
|
131
|
-
],
|
132
|
-
};
|
133
|
-
}
|
134
|
-
};
|
135
|
-
exports.TransShellNestjsCoreModule = TransShellNestjsCoreModule = TransShellNestjsCoreModule_1 = tslib_1.__decorate([
|
136
|
-
(0, common_1.Module)({
|
137
|
-
imports: [axios_1.HttpModule],
|
138
|
-
})
|
139
|
-
], TransShellNestjsCoreModule);
|
140
|
-
//# sourceMappingURL=nestjs.module.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"nestjs.module.js","sourceRoot":"","sources":["../../../../../../../libs/trans/shell/nestjs/src/lib/nestjs.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAuD;AACvD,+CAAkD;AAClD,qCAAwC;AACxC,yCAA2C;AAE3C,qFAAkE;AAClE,6DAA0E;AAC1E,6CAA6D;AAC7D,iDAAmE;AACnE,mDAAsE;AACtE,uEAAwE;AAExE,iDAAmE;AAEnE,+CAA4C;AAKrC,IAAM,sBAAsB,+DAA5B,MAAM,sBAAsB;IACjC,MAAM,CAAC,OAAO,CACZ,MAgBG;QAEH,OAAO;YACL,MAAM,EAAE,wBAAsB;YAC9B,WAAW,EAAE,yBAAW;YACxB,SAAS,EAAE;gBACT,GAAG,mCAAQ;gBACX,GAAG,8BAAe;gBAClB,EAAE,OAAO,EAAE,0BAAW,EAAE,QAAQ,EAAE,MAAM,EAAE;gBAC1C,GAAG,CAAC,MAAM,CAAC,UAAU;oBACnB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,iBAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,kBAAW,CAAC;o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setup.js","sourceRoot":"","sources":["../../../../../libs/trans/shell/nestjs/test-setup.ts"],"names":[],"mappings":""}
|
File without changes
|