@yolo-croket-dev/amqp-access 0.7.322 → 0.7.323

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": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.322",
3
+ "version": "0.7.323",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,11 +1,10 @@
1
- import { PortoneCertificationMode } from './start-portone-certification.dto';
2
1
  /**
3
2
  * @author 홍준
4
3
  * @description 포트원 V1 본인확인 완료 검증 요청값
5
4
  * @process 클라이언트가 전달한 식별자는 포트원 REST API 응답과 서버 세션 양쪽으로 검증한다.
6
5
  */
7
6
  export declare class CompletePortoneCertificationPayload {
8
- impUid?: string;
7
+ impUid: string;
9
8
  merchantUid: string;
10
9
  }
11
10
  /**
@@ -14,9 +13,15 @@ export declare class CompletePortoneCertificationPayload {
14
13
  * @process CI 원문과 HMAC은 외부 응답으로 반환하지 않는다.
15
14
  */
16
15
  export declare class CompletePortoneCertificationResult {
17
- /** @description 가입 전 인증 완료 시에만 반환하는 일회성 가입 매칭 식별자. */
18
- signupCertificationId?: string;
19
- mode: PortoneCertificationMode;
20
16
  ciReceived: boolean;
21
17
  verifiedAt: Date;
22
18
  }
19
+ /**
20
+ * @author 홍준
21
+ * @description 가입 전 포트원 본인인증 완료 결과
22
+ * @process 검증 완료 후 발급한 일회성 식별자를 필수로 반환해 가입 요청과 연결한다.
23
+ */
24
+ export declare class CompleteSignupPortoneCertificationResult extends CompletePortoneCertificationResult {
25
+ /** @description 가입 API의 optional signupCertificationId에 전달할 검증 완료 식별자. */
26
+ signupCertificationId: string;
27
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CompletePortoneCertificationResult = exports.CompletePortoneCertificationPayload = void 0;
12
+ exports.CompleteSignupPortoneCertificationResult = exports.CompletePortoneCertificationResult = exports.CompletePortoneCertificationPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  /**
15
15
  * @author 홍준
@@ -20,14 +20,15 @@ class CompletePortoneCertificationPayload {
20
20
  }
21
21
  exports.CompletePortoneCertificationPayload = CompletePortoneCertificationPayload;
22
22
  __decorate([
23
- (0, class_validator_1.IsOptional)(),
24
23
  (0, class_validator_1.IsString)(),
25
24
  (0, class_validator_1.IsNotEmpty)(),
25
+ (0, class_validator_1.Matches)(/\S/),
26
26
  __metadata("design:type", String)
27
27
  ], CompletePortoneCertificationPayload.prototype, "impUid", void 0);
28
28
  __decorate([
29
29
  (0, class_validator_1.IsString)(),
30
30
  (0, class_validator_1.IsNotEmpty)(),
31
+ (0, class_validator_1.Matches)(/\S/),
31
32
  __metadata("design:type", String)
32
33
  ], CompletePortoneCertificationPayload.prototype, "merchantUid", void 0);
33
34
  /**
@@ -38,3 +39,11 @@ __decorate([
38
39
  class CompletePortoneCertificationResult {
39
40
  }
40
41
  exports.CompletePortoneCertificationResult = CompletePortoneCertificationResult;
42
+ /**
43
+ * @author 홍준
44
+ * @description 가입 전 포트원 본인인증 완료 결과
45
+ * @process 검증 완료 후 발급한 일회성 식별자를 필수로 반환해 가입 요청과 연결한다.
46
+ */
47
+ class CompleteSignupPortoneCertificationResult extends CompletePortoneCertificationResult {
48
+ }
49
+ exports.CompleteSignupPortoneCertificationResult = CompleteSignupPortoneCertificationResult;
@@ -1,9 +1,3 @@
1
- /** @author 홍준 @description CI 인증 실행 모드 @process 서버가 환경 설정으로 결정하며 요청 본문에서는 받지 않는다. */
2
- export declare enum PortoneCertificationMode {
3
- MOCK = "mock",
4
- TEST = "test",
5
- LIVE = "live"
6
- }
7
1
  /**
8
2
  * @author 홍준
9
3
  * @description 포트원 본인확인 요청에 사용할 단발성 상점 주문번호
@@ -11,7 +5,6 @@ export declare enum PortoneCertificationMode {
11
5
  */
12
6
  export declare class StartPortoneCertificationResult {
13
7
  merchantUid: string;
14
- mode: PortoneCertificationMode;
15
8
  /** @description 인증 시작 성공 시 반드시 반환하는 서버 환경별 포트원 채널키. */
16
9
  channelKey: string;
17
10
  }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartSignupPortoneCertificationResult = exports.StartPortoneCertificationResult = exports.PortoneCertificationMode = void 0;
4
- /** @author 홍준 @description CI 인증 실행 모드 @process 서버가 환경 설정으로 결정하며 요청 본문에서는 받지 않는다. */
5
- var PortoneCertificationMode;
6
- (function (PortoneCertificationMode) {
7
- PortoneCertificationMode["MOCK"] = "mock";
8
- PortoneCertificationMode["TEST"] = "test";
9
- PortoneCertificationMode["LIVE"] = "live";
10
- })(PortoneCertificationMode || (exports.PortoneCertificationMode = PortoneCertificationMode = {}));
3
+ exports.StartSignupPortoneCertificationResult = exports.StartPortoneCertificationResult = void 0;
11
4
  /**
12
5
  * @author 홍준
13
6
  * @description 포트원 본인확인 요청에 사용할 단발성 상점 주문번호
@@ -22,6 +22,7 @@ exports.ClaimSignupCertificationPayload = ClaimSignupCertificationPayload;
22
22
  __decorate([
23
23
  (0, class_validator_1.IsString)(),
24
24
  (0, class_validator_1.IsNotEmpty)(),
25
+ (0, class_validator_1.Matches)(/\S/),
25
26
  __metadata("design:type", String)
26
27
  ], ClaimSignupCertificationPayload.prototype, "signupCertificationId", void 0);
27
28
  /**
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CompletePortoneCertificationPayload, CompletePortoneCertificationResult, StartPortoneCertificationResult, StartSignupPortoneCertificationResult } from '../dto/portone-certification';
3
+ import { CompletePortoneCertificationPayload, CompletePortoneCertificationResult, CompleteSignupPortoneCertificationResult, StartPortoneCertificationResult, StartSignupPortoneCertificationResult } from '../dto/portone-certification';
4
4
  /**
5
5
  * @author 홍준
6
6
  * @description 포트원 본인확인 user-service AMQP client
@@ -13,9 +13,9 @@ export declare class AmqpPortoneCertificationService {
13
13
  /** @author 홍준 @description 가입 전 인증 시작 @process 회원 ID 없이 임시 인증 세션을 생성한다. */
14
14
  startSignup(param: AbstractParam): Promise<StartSignupPortoneCertificationResult>;
15
15
  /** @author 홍준 @description 가입 전 인증 완료 @process 검증된 인증정보와 연결된 가입 매칭 식별자를 반환한다. */
16
- completeSignup(payload: CompletePortoneCertificationPayload, param: AbstractParam): Promise<CompletePortoneCertificationResult>;
16
+ completeSignup(payload: CompletePortoneCertificationPayload, param: AbstractParam): Promise<CompleteSignupPortoneCertificationResult>;
17
17
  /** @author 홍준 @description 인증 요청용 merchant UID 생성 @process 단발성 세션을 만든다. */
18
18
  start(param: AbstractParam): Promise<StartPortoneCertificationResult>;
19
- /** @author 홍준 @description 포트원 인증 결과 검증 @process 포트원 서버 조회 후 CI HMAC만 보관한다. */
19
+ /** @author 홍준 @description 포트원 인증 결과 검증 @process 포트원 서버 조회 후 CI와 제공된 개인정보를 암호화 저장한다. */
20
20
  complete(payload: CompletePortoneCertificationPayload, param: AbstractParam): Promise<CompletePortoneCertificationResult>;
21
21
  }
@@ -38,7 +38,7 @@ let AmqpPortoneCertificationService = class AmqpPortoneCertificationService {
38
38
  async start(param) {
39
39
  return this.amqpManager.call('포트원 본인확인 시작', 'portone-certification.start', undefined, param, { isErrorThrowing: true });
40
40
  }
41
- /** @author 홍준 @description 포트원 인증 결과 검증 @process 포트원 서버 조회 후 CI HMAC만 보관한다. */
41
+ /** @author 홍준 @description 포트원 인증 결과 검증 @process 포트원 서버 조회 후 CI와 제공된 개인정보를 암호화 저장한다. */
42
42
  async complete(payload, param) {
43
43
  return this.amqpManager.call('포트원 본인확인 완료', 'portone-certification.complete', payload, param, { isErrorThrowing: true });
44
44
  }