@yolo-croket-dev/amqp-access 0.7.371 → 0.7.372
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 +1 -1
- package/user-service/services/amqp.portone-certification.service.d.ts +4 -0
- package/user-service/services/amqp.portone-certification.service.js +8 -0
- package/user-service/services/amqp.signup-certification.service.d.ts +14 -0
- package/user-service/services/amqp.signup-certification.service.js +38 -0
package/package.json
CHANGED
|
@@ -28,6 +28,10 @@ export declare class AmqpPortoneCertificationService {
|
|
|
28
28
|
complete(payload: CompletePortoneCertificationPayload, param: AbstractParam): Promise<CompletePortoneCertificationResult>;
|
|
29
29
|
/** @author 홍준 @description KCP V2 인증 시작 @process 로그인 회원의 단발성 인증 세션을 생성한다. */
|
|
30
30
|
startKcp(param: AbstractParam): Promise<StartKcpPortoneCertificationResult>;
|
|
31
|
+
/** @author 홍준 @description KCP 가입 전 인증 시작 @process 비로그인 인증 세션과 SDK 설정을 발급한다. */
|
|
32
|
+
startSignupKcp(param: AbstractParam): Promise<StartKcpPortoneCertificationResult>;
|
|
33
|
+
/** @author 홍준 @description KCP 가입 전 인증 완료 @process 검증한 인증정보에 연결된 기존 가입용 토큰을 반환한다. */
|
|
34
|
+
completeSignupKcp(payload: CompleteKcpPortoneCertificationPayload, param: AbstractParam): Promise<CompleteSignupPortoneCertificationResult>;
|
|
31
35
|
/** @author 홍준 @description KCP V2 인증 완료 @process V2 조회 결과를 검증하고 기존 CI 저장 정책을 적용한다. */
|
|
32
36
|
completeKcp(payload: CompleteKcpPortoneCertificationPayload, param: AbstractParam): Promise<CompletePortoneCertificationResult>;
|
|
33
37
|
/** @author 홍준 @description KCP V2 변경 동의 @process 임시 보관한 인증정보를 명시적 동의 후 저장한다. */
|
|
@@ -62,6 +62,14 @@ let AmqpPortoneCertificationService = class AmqpPortoneCertificationService {
|
|
|
62
62
|
async startKcp(param) {
|
|
63
63
|
return this.amqpManager.call('KCP V2 인증 시작', 'portone-certification.kcp.start', undefined, param, { isErrorThrowing: true });
|
|
64
64
|
}
|
|
65
|
+
/** @author 홍준 @description KCP 가입 전 인증 시작 @process 비로그인 인증 세션과 SDK 설정을 발급한다. */
|
|
66
|
+
async startSignupKcp(param) {
|
|
67
|
+
return this.amqpManager.call('KCP 가입 전 인증 시작', 'portone-certification.kcp.signup.start', undefined, param, { isErrorThrowing: true });
|
|
68
|
+
}
|
|
69
|
+
/** @author 홍준 @description KCP 가입 전 인증 완료 @process 검증한 인증정보에 연결된 기존 가입용 토큰을 반환한다. */
|
|
70
|
+
async completeSignupKcp(payload, param) {
|
|
71
|
+
return this.amqpManager.call('KCP 가입 전 인증 완료', 'portone-certification.kcp.signup.complete', payload, param, { isErrorThrowing: true });
|
|
72
|
+
}
|
|
65
73
|
/** @author 홍준 @description KCP V2 인증 완료 @process V2 조회 결과를 검증하고 기존 CI 저장 정책을 적용한다. */
|
|
66
74
|
async completeKcp(payload, param) {
|
|
67
75
|
return this.amqpManager.call('KCP V2 인증 완료', 'portone-certification.kcp.complete', payload, param, { isErrorThrowing: true });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ClaimSignupCertificationPayload, ClaimSignupCertificationResult } from '../dto/signup-certification';
|
|
4
|
+
/**
|
|
5
|
+
* @author 홍준
|
|
6
|
+
* @description 가입 전 본인인증 귀속 AMQP client
|
|
7
|
+
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpSignupCertificationService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
claim(payload: ClaimSignupCertificationPayload, param: AbstractParam): Promise<ClaimSignupCertificationResult>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpSignupCertificationService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
/**
|
|
20
|
+
* @author 홍준
|
|
21
|
+
* @description 가입 전 본인인증 귀속 AMQP client
|
|
22
|
+
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
23
|
+
*/
|
|
24
|
+
let AmqpSignupCertificationService = class AmqpSignupCertificationService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
async claim(payload, param) {
|
|
30
|
+
return this.amqpManager.call('가입 전 본인인증 사용자 귀속', 'signup-certification.claim', payload, param, { isErrorThrowing: true });
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.AmqpSignupCertificationService = AmqpSignupCertificationService;
|
|
34
|
+
exports.AmqpSignupCertificationService = AmqpSignupCertificationService = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
37
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
38
|
+
], AmqpSignupCertificationService);
|