@yolo-croket-dev/amqp-access 0.7.352 → 0.7.354

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.
@@ -14,6 +14,7 @@ export declare class CustomsOrderReceiverPayload {
14
14
  }
15
15
  /** @author 홍준 @description 관세청 발급 입력 @process 일반용 부호는 P로 시작하는 13자리 형식으로 제한한다. */
16
16
  export declare class CreateCheckoutCustomsVerificationPayload extends CustomsOrderReceiverPayload {
17
+ /** @description 기존 P 부호 선택 입력. 입력 시 수령정보와 먼저 검증한다. 생략은 사용 가능한 CI가 수령인과 일치하거나 통관 비대상인 경우에만 허용한다. */
17
18
  pccc?: string;
18
19
  }
19
20
  /** @author 홍준 @description 통관 인증 발급 결과 @process 인증번호와 CI를 제외하고 입력 화면에 필요한 정보만 반환한다. */
@@ -9,5 +9,7 @@ export declare class GetOrderCustomsOtpsResult {
9
9
  items: {
10
10
  orderId: string;
11
11
  customsOtp: string;
12
+ /** @description 완료 인증에 저장된 일회용 O 부호. 일반용 등 부호가 없는 인증은 생략한다. */
13
+ customsOneTimePccc?: string;
12
14
  }[];
13
15
  }
@@ -10,7 +10,9 @@ export declare class ValidateCheckoutCustomsVerificationPayload extends CustomsO
10
10
  export declare class ValidateCheckoutCustomsVerificationResult {
11
11
  customsVerificationRequired: boolean;
12
12
  customsVerificationId?: string;
13
+ /** @description 주문에 저장할 일반 P 부호. 일반 부호 없이 발급된 과거 인증만 일회용 부호로 호환한다. */
13
14
  pccc?: string;
15
+ /** @description 주소록에 저장할 일반 P 부호. 일회용 부호는 포함하지 않는다. */
14
16
  addressPccc?: string;
15
17
  }
16
18
  /** @author 홍준 @description 주소록 저장 전 인증 검증 @process 인증 기록에 결속된 주문과 수령정보를 대조한다. */
@@ -18,4 +18,6 @@ export declare class SearchPurchaseReceiptDetailResult implements Pick<PurchaseR
18
18
  isRequiredPCCC?: boolean;
19
19
  /** @description 주문에 확정 저장된 통관 인증의 6자리 일회용 인증번호. 완료 인증이 없는 주문은 생략한다. */
20
20
  customsOtp?: string;
21
+ /** @description 연결된 완료 인증의 일회용 개인통관고유부호(O). 없으면 생략하며 기존 PCCC와 구분한다. */
22
+ customsOneTimePccc?: string;
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.352",
3
+ "version": "0.7.354",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -23,7 +23,7 @@
23
23
  "@yolo-croket-dev/domain": "0.2.47",
24
24
  "@yolo-croket-dev/dto-v2": "0.2.31",
25
25
  "@yolo-croket-dev/entity": "0.2.109",
26
- "@yolo-croket-dev/entity-v2": "0.3.51",
26
+ "@yolo-croket-dev/entity-v2": "0.3.52",
27
27
  "class-transformer": "^0.5.1",
28
28
  "class-validator": "^0.13.2",
29
29
  "dotenv": "^16.3.1"
@@ -6,4 +6,6 @@ export declare class AmqpPCCCService {
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  checkPCCCValid(payload: CheckPCCCValidPayload, param: AbstractParam): Promise<CheckPCCCValidResult>;
9
+ /** @author 홍준 @description 통관 발급 전 P 부호 엄격 검증 @process 타임아웃도 성공으로 처리하지 않는 전용 consumer를 호출한다. */
10
+ checkPCCCValidStrict(payload: CheckPCCCValidPayload, param: AbstractParam): Promise<CheckPCCCValidResult>;
9
11
  }
@@ -24,6 +24,10 @@ let AmqpPCCCService = class AmqpPCCCService {
24
24
  async checkPCCCValid(payload, param) {
25
25
  return this.amqpManager.call('PCCC 유효성 검사', 'CHECK_PCCC_VALID', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ /** @author 홍준 @description 통관 발급 전 P 부호 엄격 검증 @process 타임아웃도 성공으로 처리하지 않는 전용 consumer를 호출한다. */
28
+ async checkPCCCValidStrict(payload, param) {
29
+ return this.amqpManager.call('PCCC 엄격 유효성 검사', 'pccc.check.strict', payload, param, { isErrorThrowing: true });
30
+ }
27
31
  };
28
32
  exports.AmqpPCCCService = AmqpPCCCService;
29
33
  exports.AmqpPCCCService = AmqpPCCCService = __decorate([
@@ -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);