@yolo-croket-dev/amqp-access 0.7.336 → 0.7.338
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/order-server/dto/customs/command/index.d.ts +1 -0
- package/order-server/dto/customs/command/index.js +1 -0
- package/order-server/dto/customs/command/submit-invoice-customs-trade.dto.d.ts +10 -0
- package/order-server/dto/customs/command/submit-invoice-customs-trade.dto.js +25 -0
- package/order-server/services/amqp.customs.service.d.ts +3 -1
- package/order-server/services/amqp.customs.service.js +4 -0
- package/package.json +1 -1
- package/user-service/dto/signup-certification/index.d.ts +1 -0
- package/user-service/dto/signup-certification/index.js +1 -0
- package/user-service/dto/signup-certification/query/get-signup-certification-profile.dto.d.ts +17 -0
- package/user-service/dto/signup-certification/query/get-signup-certification-profile.dto.js +12 -0
- package/user-service/dto/signup-certification/query/index.d.ts +1 -0
- package/user-service/dto/signup-certification/query/index.js +17 -0
|
@@ -7,3 +7,4 @@ export * from './revoke-customs-access-token.dto';
|
|
|
7
7
|
export * from './create-checkout-customs-verification.dto';
|
|
8
8
|
export * from './complete-checkout-customs-verification.dto';
|
|
9
9
|
export * from './check-checkout-customs-receiver.dto';
|
|
10
|
+
export * from './submit-invoice-customs-trade.dto';
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./revoke-customs-access-token.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./create-checkout-customs-verification.dto"), exports);
|
|
24
24
|
__exportStar(require("./complete-checkout-customs-verification.dto"), exports);
|
|
25
25
|
__exportStar(require("./check-checkout-customs-receiver.dto"), exports);
|
|
26
|
+
__exportStar(require("./submit-invoice-customs-trade.dto"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @author 홍준 @description 저장된 송장 변경 이력의 거래정보 제출 요청 @process 클라이언트 본문 대신 서버가 보관한 변경 이력·주문을 조회한다. */
|
|
2
|
+
export declare class SubmitInvoiceCustomsTradePayload {
|
|
3
|
+
invoiceChangeLogId: string;
|
|
4
|
+
}
|
|
5
|
+
/** @author 홍준 @description 송장 거래정보 처리 결과 @process 미설정·실패·기록 완료·관세청 접수 상태를 구분한다. */
|
|
6
|
+
export declare class SubmitInvoiceCustomsTradeResult {
|
|
7
|
+
status: string;
|
|
8
|
+
txifSbmtNo?: string;
|
|
9
|
+
failureCode?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SubmitInvoiceCustomsTradeResult = exports.SubmitInvoiceCustomsTradePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author 홍준 @description 저장된 송장 변경 이력의 거래정보 제출 요청 @process 클라이언트 본문 대신 서버가 보관한 변경 이력·주문을 조회한다. */
|
|
15
|
+
class SubmitInvoiceCustomsTradePayload {
|
|
16
|
+
}
|
|
17
|
+
exports.SubmitInvoiceCustomsTradePayload = SubmitInvoiceCustomsTradePayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SubmitInvoiceCustomsTradePayload.prototype, "invoiceChangeLogId", void 0);
|
|
22
|
+
/** @author 홍준 @description 송장 거래정보 처리 결과 @process 미설정·실패·기록 완료·관세청 접수 상태를 구분한다. */
|
|
23
|
+
class SubmitInvoiceCustomsTradeResult {
|
|
24
|
+
}
|
|
25
|
+
exports.SubmitInvoiceCustomsTradeResult = SubmitInvoiceCustomsTradeResult;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CheckCheckoutCustomsReceiverPayload, CheckCheckoutCustomsReceiverResult, ValidateCheckoutCustomsVerificationPayload, ValidateCheckoutCustomsVerificationResult, ValidateShippingCustomsVerificationPayload, ValidateShippingCustomsVerificationResult, CreateCheckoutCustomsVerificationPayload, CreateCheckoutCustomsVerificationResult, CompleteCheckoutCustomsVerificationPayload, CompleteCheckoutCustomsVerificationResult, GetUnreadCustomsTradeErrorsResult, GetCustomsTradeSubmissionResult, GetCustomsTradeSubmissionResultPayload, PostProcessCustomsPcccValidationPayload, PostProcessCustomsPcccValidationResult, PollPendingCustomsTradeSubmissionsPayload, PollPendingCustomsTradeSubmissionsResult, RevalidateCustomsPcccPayload, RevalidateCustomsPcccResult, RequestCustomsPcccValidationPayload, RequestCustomsPcccValidationResult, RevokeCustomsAccessTokenResult, SubmitCustomsTradeInformationPayload, SubmitCustomsTradeInformationResult, VerifyCustomsPcccOtpPayload, VerifyCustomsPcccOtpResult } from '../dto/customs';
|
|
3
|
+
import { SubmitInvoiceCustomsTradePayload, SubmitInvoiceCustomsTradeResult, CheckCheckoutCustomsReceiverPayload, CheckCheckoutCustomsReceiverResult, ValidateCheckoutCustomsVerificationPayload, ValidateCheckoutCustomsVerificationResult, ValidateShippingCustomsVerificationPayload, ValidateShippingCustomsVerificationResult, CreateCheckoutCustomsVerificationPayload, CreateCheckoutCustomsVerificationResult, CompleteCheckoutCustomsVerificationPayload, CompleteCheckoutCustomsVerificationResult, 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;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
|
+
/** @author 홍준 @description 송장 변경 후 통관 거래정보 제출 @process 저장된 이벤트 ID로 주문 서버에 위임한다. */
|
|
9
|
+
submitInvoiceCustomsTrade(payload: SubmitInvoiceCustomsTradePayload, param: AbstractParam): Promise<SubmitInvoiceCustomsTradeResult>;
|
|
8
10
|
/** @author 홍준 @description 수령인 일치 확인 @process 로그인 문맥을 유지해 읽기 전용 수령인 비교를 호출한다. */
|
|
9
11
|
checkCheckoutReceiver(payload: CheckCheckoutCustomsReceiverPayload, param: AbstractParam): Promise<CheckCheckoutCustomsReceiverResult>;
|
|
10
12
|
/** @author 홍준 @description 주문 저장 인증 확인 @process 로그인 문맥을 유지해 통관 서비스를 호출한다. */
|
|
@@ -21,6 +21,10 @@ let AmqpCustomsService = class AmqpCustomsService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new core_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/** @author 홍준 @description 송장 변경 후 통관 거래정보 제출 @process 저장된 이벤트 ID로 주문 서버에 위임한다. */
|
|
25
|
+
async submitInvoiceCustomsTrade(payload, param) {
|
|
26
|
+
return this.amqpManager.call('송장 거래정보 제출', 'customs.submit.invoice-trade', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
24
28
|
/** @author 홍준 @description 수령인 일치 확인 @process 로그인 문맥을 유지해 읽기 전용 수령인 비교를 호출한다. */
|
|
25
29
|
async checkCheckoutReceiver(payload, param) {
|
|
26
30
|
return this.amqpManager.call('수령인 일치 확인', 'customs.check.checkout-receiver', payload, param, { isErrorThrowing: true });
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClaimSignupCertificationPayload } from '../command';
|
|
2
|
+
/** @author 홍준 @description 가입 전 인증 프로필 내부 조회 요청 @process 인증 식별자로 미사용 인증 기록을 조회하며 선점하지 않는다. */
|
|
3
|
+
export declare class GetSignupCertificationProfilePayload extends ClaimSignupCertificationPayload {
|
|
4
|
+
}
|
|
5
|
+
/** @author 홍준 @description 가입 검증에 사용할 인증 프로필 @process 내부 가입 서버에만 전달하며 CI 원문은 포함하지 않는다. */
|
|
6
|
+
export declare class GetSignupCertificationProfileResult {
|
|
7
|
+
/** 인증된 실명 */
|
|
8
|
+
username: string;
|
|
9
|
+
/** 국내 숫자 형식의 휴대폰 번호(010...) */
|
|
10
|
+
phoneNumber: string;
|
|
11
|
+
/** 국가 전화번호(+82) */
|
|
12
|
+
nationPhoneNumber: string;
|
|
13
|
+
/** 인증기관 제공 시 male 또는 female */
|
|
14
|
+
gender?: string;
|
|
15
|
+
/** 인증기관 제공 시 YYYYMMDD */
|
|
16
|
+
birthday?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSignupCertificationProfileResult = exports.GetSignupCertificationProfilePayload = void 0;
|
|
4
|
+
const command_1 = require("../command");
|
|
5
|
+
/** @author 홍준 @description 가입 전 인증 프로필 내부 조회 요청 @process 인증 식별자로 미사용 인증 기록을 조회하며 선점하지 않는다. */
|
|
6
|
+
class GetSignupCertificationProfilePayload extends command_1.ClaimSignupCertificationPayload {
|
|
7
|
+
}
|
|
8
|
+
exports.GetSignupCertificationProfilePayload = GetSignupCertificationProfilePayload;
|
|
9
|
+
/** @author 홍준 @description 가입 검증에 사용할 인증 프로필 @process 내부 가입 서버에만 전달하며 CI 원문은 포함하지 않는다. */
|
|
10
|
+
class GetSignupCertificationProfileResult {
|
|
11
|
+
}
|
|
12
|
+
exports.GetSignupCertificationProfileResult = GetSignupCertificationProfileResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-signup-certification-profile.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-signup-certification-profile.dto"), exports);
|