@yolo-croket-dev/amqp-access 0.7.291 → 0.7.293

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.
@@ -1,3 +1,6 @@
1
1
  export * from './request-customs-pccc-validation.dto';
2
2
  export * from './verify-customs-pccc-otp.dto';
3
3
  export * from './submit-customs-trade-information.dto';
4
+ export * from './revalidate-customs-pccc.dto';
5
+ export * from './post-process-customs-pccc-validation.dto';
6
+ export * from './revoke-customs-access-token.dto';
@@ -17,3 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./request-customs-pccc-validation.dto"), exports);
18
18
  __exportStar(require("./verify-customs-pccc-otp.dto"), exports);
19
19
  __exportStar(require("./submit-customs-trade-information.dto"), exports);
20
+ __exportStar(require("./revalidate-customs-pccc.dto"), exports);
21
+ __exportStar(require("./post-process-customs-pccc-validation.dto"), exports);
22
+ __exportStar(require("./revoke-customs-access-token.dto"), exports);
@@ -1,64 +1,65 @@
1
- const __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- const c = arguments.length; let r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc; let
3
- d;
4
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);
5
- else for (let 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;
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
7
  };
8
- const __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function') return Reflect.metadata(k, v);
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- Object.defineProperty(exports, '__esModule', { value: true });
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PostProcessCustomsPcccValidationResult = exports.PostProcessCustomsPcccValidationPayload = void 0;
13
- const class_transformer_1 = require('class-transformer');
14
- const class_validator_1 = require('class-validator');
15
- const request_customs_pccc_validation_dto_1 = require('./request-customs-pccc-validation.dto');
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const request_customs_pccc_validation_dto_1 = require("./request-customs-pccc-validation.dto");
16
16
  /** @author 홍준 @description 관세청 PER003 장애 사후처리 DTO @process 관세청 장애 기간에 응답받지 못한 PER001 요청을 주문완료·호출시각과 함께 순차 재검증한다. */
17
17
  class PostProcessCustomsPcccValidationPayload {
18
18
  }
19
19
  exports.PostProcessCustomsPcccValidationPayload = PostProcessCustomsPcccValidationPayload;
20
20
  __decorate([
21
- (0, class_validator_1.IsString)(),
22
- (0, class_validator_1.Matches)(/^\d{18}$/),
23
- __metadata('design:type', String),
24
- ], PostProcessCustomsPcccValidationPayload.prototype, 'reqt_no', void 0);
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.Matches)(/^\d{18}$/),
23
+ __metadata("design:type", String)
24
+ ], PostProcessCustomsPcccValidationPayload.prototype, "reqt_no", void 0);
25
25
  __decorate([
26
- (0, class_validator_1.IsIn)([
27
- '01',
28
- '02',
29
- ]),
30
- __metadata('design:type', String),
31
- ], PostProcessCustomsPcccValidationPayload.prototype, 'reqt_tp', void 0);
26
+ (0, class_validator_1.IsIn)([
27
+ '01',
28
+ '02',
29
+ ]),
30
+ __metadata("design:type", String)
31
+ ], PostProcessCustomsPcccValidationPayload.prototype, "reqt_tp", void 0);
32
32
  __decorate([
33
- (0, class_validator_1.ValidateNested)(),
34
- (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
35
- __metadata('design:type', request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
36
- ], PostProcessCustomsPcccValidationPayload.prototype, 'ordrr_info', void 0);
33
+ (0, class_validator_1.ValidateNested)(),
34
+ (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
35
+ __metadata("design:type", request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload)
36
+ ], PostProcessCustomsPcccValidationPayload.prototype, "ordrr_info", void 0);
37
37
  __decorate([
38
- (0, class_validator_1.ValidateNested)(),
39
- (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
40
- __metadata('design:type', request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
41
- ], PostProcessCustomsPcccValidationPayload.prototype, 'cnsi_info', void 0);
38
+ (0, class_validator_1.ValidateNested)(),
39
+ (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
40
+ __metadata("design:type", request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload)
41
+ ], PostProcessCustomsPcccValidationPayload.prototype, "cnsi_info", void 0);
42
42
  __decorate([
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsOptional)(),
45
- (0, class_validator_1.Matches)(/^[PO]\d{12}$/i),
46
- __metadata('design:type', String),
47
- ], PostProcessCustomsPcccValidationPayload.prototype, 'cnsi_pers_ecm', void 0);
43
+ (0, class_validator_1.ValidateIf)((payload) => payload.reqt_tp === '01'),
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.Matches)(/^P\d{12}$/i),
46
+ __metadata("design:type", String)
47
+ ], PostProcessCustomsPcccValidationPayload.prototype, "cnsi_pers_ecm", void 0);
48
48
  __decorate([
49
- (0, class_validator_1.IsString)(),
50
- (0, class_validator_1.Matches)(/^\d{14}$/),
51
- __metadata('design:type', String),
52
- ], PostProcessCustomsPcccValidationPayload.prototype, 'ord_cmpl_dttm', void 0);
49
+ (0, class_validator_1.IsString)(),
50
+ (0, class_validator_1.Matches)(/^\d{14}$/),
51
+ __metadata("design:type", String)
52
+ ], PostProcessCustomsPcccValidationPayload.prototype, "ord_cmpl_dttm", void 0);
53
53
  __decorate([
54
- (0, class_validator_1.IsString)(),
55
- (0, class_validator_1.Matches)(/^\d{14}$/),
56
- __metadata('design:type', String),
57
- ], PostProcessCustomsPcccValidationPayload.prototype, 'call_dttm', void 0);
54
+ (0, class_validator_1.IsString)(),
55
+ (0, class_validator_1.Matches)(/^\d{14}$/),
56
+ __metadata("design:type", String)
57
+ ], PostProcessCustomsPcccValidationPayload.prototype, "call_dttm", void 0);
58
58
  __decorate([
59
- (0, class_validator_1.IsString)(),
60
- __metadata('design:type', String),
61
- ], PostProcessCustomsPcccValidationPayload.prototype, 'ord_no', void 0);
59
+ (0, class_validator_1.IsString)(),
60
+ (0, class_validator_1.IsNotEmpty)(),
61
+ __metadata("design:type", String)
62
+ ], PostProcessCustomsPcccValidationPayload.prototype, "ord_no", void 0);
62
63
  class PostProcessCustomsPcccValidationResult extends request_customs_pccc_validation_dto_1.RequestCustomsPcccValidationResult {
63
64
  }
64
65
  exports.PostProcessCustomsPcccValidationResult = PostProcessCustomsPcccValidationResult;
@@ -1,57 +1,57 @@
1
- const __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- const c = arguments.length; let r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc; let
3
- d;
4
- if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc);
5
- else for (let 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;
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
7
  };
8
- const __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === 'object' && typeof Reflect.metadata === 'function') return Reflect.metadata(k, v);
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- Object.defineProperty(exports, '__esModule', { value: true });
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RevalidateCustomsPcccResult = exports.RevalidateCustomsPcccPayload = void 0;
13
- const class_transformer_1 = require('class-transformer');
14
- const class_validator_1 = require('class-validator');
15
- const request_customs_pccc_validation_dto_1 = require('./request-customs-pccc-validation.dto');
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const request_customs_pccc_validation_dto_1 = require("./request-customs-pccc-validation.dto");
16
16
  /** @author 홍준 @description 관세청 PER002 개인통관고유부호 재검증 DTO @process 기존 PER001 요청번호를 기준으로 변경된 연락처·우편번호의 유효성을 확인한다. */
17
17
  class RevalidateCustomsPcccPayload {
18
18
  }
19
19
  exports.RevalidateCustomsPcccPayload = RevalidateCustomsPcccPayload;
20
20
  __decorate([
21
- (0, class_validator_1.IsString)(),
22
- (0, class_validator_1.Matches)(/^\d{18}$/),
23
- __metadata('design:type', String),
24
- ], RevalidateCustomsPcccPayload.prototype, 'reqt_no', void 0);
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.Matches)(/^\d{18}$/),
23
+ __metadata("design:type", String)
24
+ ], RevalidateCustomsPcccPayload.prototype, "reqt_no", void 0);
25
25
  __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsOptional)(),
28
- (0, class_validator_1.Matches)(/^\d{10}$/),
29
- __metadata('design:type', String),
30
- ], RevalidateCustomsPcccPayload.prototype, 'brno', void 0);
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.Matches)(/^\d{10}$/),
29
+ __metadata("design:type", String)
30
+ ], RevalidateCustomsPcccPayload.prototype, "brno", void 0);
31
31
  __decorate([
32
- (0, class_validator_1.IsIn)([
33
- '01',
34
- '02',
35
- ]),
36
- __metadata('design:type', String),
37
- ], RevalidateCustomsPcccPayload.prototype, 'reqt_tp', void 0);
32
+ (0, class_validator_1.IsIn)([
33
+ '01',
34
+ '02',
35
+ ]),
36
+ __metadata("design:type", String)
37
+ ], RevalidateCustomsPcccPayload.prototype, "reqt_tp", void 0);
38
38
  __decorate([
39
- (0, class_validator_1.ValidateNested)(),
40
- (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
41
- (0, class_validator_1.IsOptional)(),
42
- __metadata('design:type', request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
43
- ], RevalidateCustomsPcccPayload.prototype, 'ordrr_info', void 0);
39
+ (0, class_validator_1.ValidateNested)(),
40
+ (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", request_customs_pccc_validation_dto_1.CustomsOrdererInfoPayload)
43
+ ], RevalidateCustomsPcccPayload.prototype, "ordrr_info", void 0);
44
44
  __decorate([
45
- (0, class_validator_1.ValidateNested)(),
46
- (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
47
- __metadata('design:type', request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
48
- ], RevalidateCustomsPcccPayload.prototype, 'cnsi_info', void 0);
45
+ (0, class_validator_1.ValidateNested)(),
46
+ (0, class_transformer_1.Type)(() => request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload),
47
+ __metadata("design:type", request_customs_pccc_validation_dto_1.CustomsConsigneeInfoPayload)
48
+ ], RevalidateCustomsPcccPayload.prototype, "cnsi_info", void 0);
49
49
  __decorate([
50
- (0, class_validator_1.IsString)(),
51
- (0, class_validator_1.IsOptional)(),
52
- (0, class_validator_1.Matches)(/^[PO]\d{12}$/i),
53
- __metadata('design:type', String),
54
- ], RevalidateCustomsPcccPayload.prototype, 'cnsi_pers_ecm', void 0);
50
+ (0, class_validator_1.ValidateIf)((payload) => payload.reqt_tp === '01'),
51
+ (0, class_validator_1.IsString)(),
52
+ (0, class_validator_1.Matches)(/^P\d{12}$/i),
53
+ __metadata("design:type", String)
54
+ ], RevalidateCustomsPcccPayload.prototype, "cnsi_pers_ecm", void 0);
55
55
  class RevalidateCustomsPcccResult {
56
56
  }
57
57
  exports.RevalidateCustomsPcccResult = RevalidateCustomsPcccResult;
@@ -1,4 +1,5 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  exports.RevokeCustomsAccessTokenResult = void 0;
3
4
  /** @author 홍준 @description 관세청 AUT002 접근 토큰 폐기 결과 DTO @process 서버가 보관한 현재 토큰을 관세청에 폐기 요청하고 로컬 캐시를 비운다. */
4
5
  class RevokeCustomsAccessTokenResult {
@@ -1,4 +1,5 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  exports.GetUnreadCustomsTradeErrorsResult = void 0;
3
4
  /** @author 홍준 @description 관세청 TRA003 미조회 거래정보 오류 조회 DTO @process 최근 7일 이내 미조회 오류를 수신하여 내부 제출 이력에 반영한다. */
4
5
  class GetUnreadCustomsTradeErrorsResult {
@@ -1,2 +1,3 @@
1
1
  export * from './get-customs-trade-submission-result.dto';
2
2
  export * from './poll-pending-customs-trade-submissions.dto';
3
+ export * from './get-unread-customs-trade-errors.dto';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-customs-trade-submission-result.dto"), exports);
18
18
  __exportStar(require("./poll-pending-customs-trade-submissions.dto"), exports);
19
+ __exportStar(require("./get-unread-customs-trade-errors.dto"), exports);
@@ -3,8 +3,7 @@ export declare class GetPInfoAdditionalPaymentInfoPayload {
3
3
  }
4
4
  export declare class GetPInfoAdditionalPaymentInfoResult {
5
5
  additionalPaymentCalculationGuide: string;
6
- originalPInfoItemImg: string;
7
- originalPInfoItemName: string;
8
- originalPInfoOptionName: string;
9
- originalPInfoOptionQuantity: number;
6
+ additionalPaymentItemImg: string;
7
+ additionalPaymentItemPrice: number;
8
+ additionalPaymentItemName: string;
10
9
  }
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetCustomsTradeSubmissionResult, GetCustomsTradeSubmissionResultPayload, PollPendingCustomsTradeSubmissionsPayload, PollPendingCustomsTradeSubmissionsResult, RequestCustomsPcccValidationPayload, RequestCustomsPcccValidationResult, SubmitCustomsTradeInformationPayload, SubmitCustomsTradeInformationResult, VerifyCustomsPcccOtpPayload, VerifyCustomsPcccOtpResult } from '../dto/customs';
3
+ import { GetUnreadCustomsTradeErrorsResult, GetCustomsTradeSubmissionResult, GetCustomsTradeSubmissionResultPayload, PostProcessCustomsPcccValidationPayload, PostProcessCustomsPcccValidationResult, PollPendingCustomsTradeSubmissionsPayload, PollPendingCustomsTradeSubmissionsResult, RevalidateCustomsPcccPayload, RevalidateCustomsPcccResult, RequestCustomsPcccValidationPayload, RequestCustomsPcccValidationResult, RevokeCustomsAccessTokenResult, SubmitCustomsTradeInformationPayload, SubmitCustomsTradeInformationResult, VerifyCustomsPcccOtpPayload, VerifyCustomsPcccOtpResult } from '../dto/customs';
4
4
  export declare class AmqpCustomsService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -10,4 +10,8 @@ export declare class AmqpCustomsService {
10
10
  submitTradeInformation(payload: SubmitCustomsTradeInformationPayload, param: AbstractParam): Promise<SubmitCustomsTradeInformationResult>;
11
11
  getTradeSubmissionResult(payload: GetCustomsTradeSubmissionResultPayload, param: AbstractParam): Promise<GetCustomsTradeSubmissionResult>;
12
12
  pollPendingTradeSubmissions(payload: PollPendingCustomsTradeSubmissionsPayload, param: AbstractParam): Promise<PollPendingCustomsTradeSubmissionsResult>;
13
+ getUnreadTradeErrors(param: AbstractParam): Promise<GetUnreadCustomsTradeErrorsResult>;
14
+ revalidatePccc(payload: RevalidateCustomsPcccPayload, param: AbstractParam): Promise<RevalidateCustomsPcccResult>;
15
+ postProcessPcccValidation(payload: PostProcessCustomsPcccValidationPayload, param: AbstractParam): Promise<PostProcessCustomsPcccValidationResult>;
16
+ revokeAccessToken(param: AbstractParam): Promise<RevokeCustomsAccessTokenResult>;
13
17
  }
@@ -36,6 +36,18 @@ let AmqpCustomsService = class AmqpCustomsService {
36
36
  async pollPendingTradeSubmissions(payload, param) {
37
37
  return this.amqpManager.call('관세청 미완료 거래정보 결과 조회', 'customs.poll.pending-trade-submissions', payload, param, { isErrorThrowing: true });
38
38
  }
39
+ async getUnreadTradeErrors(param) {
40
+ return this.amqpManager.call('관세청 미조회 거래정보 오류 조회', 'customs.get.unread-trade-errors', undefined, param, { isErrorThrowing: true });
41
+ }
42
+ async revalidatePccc(payload, param) {
43
+ return this.amqpManager.call('관세청 개인통관고유부호 재검증', 'customs.revalidate.pccc', payload, param, { isErrorThrowing: true });
44
+ }
45
+ async postProcessPcccValidation(payload, param) {
46
+ return this.amqpManager.call('관세청 개인통관고유부호 검증 후처리', 'customs.post-process.pccc-validation', payload, param, { isErrorThrowing: true });
47
+ }
48
+ async revokeAccessToken(param) {
49
+ return this.amqpManager.call('관세청 접근 토큰 폐기', 'customs.revoke.access-token', undefined, param, { isErrorThrowing: true });
50
+ }
39
51
  };
40
52
  exports.AmqpCustomsService = AmqpCustomsService;
41
53
  exports.AmqpCustomsService = AmqpCustomsService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.291",
3
+ "version": "0.7.293",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -23,9 +23,9 @@
23
23
  "@yolo-croket-dev/domain": "0.2.45",
24
24
  "@yolo-croket-dev/dto-v2": "0.2.23",
25
25
  "@yolo-croket-dev/entity": "0.2.104",
26
- "@yolo-croket-dev/entity-v2": "0.3.34",
26
+ "@yolo-croket-dev/entity-v2": "0.3.35",
27
27
  "class-transformer": "^0.5.1",
28
28
  "class-validator": "^0.13.2",
29
29
  "dotenv": "^16.3.1"
30
30
  }
31
- }
31
+ }