@yolo-croket-dev/amqp-access 0.7.376 → 0.7.378-sj
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/notification-service/dto/notification/command/index.d.ts +1 -0
- package/notification-service/dto/notification/command/index.js +1 -0
- package/notification-service/dto/notification/command/send-seller-overseas-phone-verification-sms.dto.d.ts +13 -0
- package/notification-service/dto/notification/command/send-seller-overseas-phone-verification-sms.dto.js +36 -0
- package/notification-service/services/amqp.send-notification.service.d.ts +3 -1
- package/notification-service/services/amqp.send-notification.service.js +4 -0
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.d.ts +6 -0
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.js +10 -0
- package/package.json +1 -1
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.d.ts +20 -0
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.js +57 -0
- package/user-service/amqp.user-service.service.d.ts +5 -1
- package/user-service/amqp.user-service.service.js +8 -0
- package/user-service/dto/user/command/confirm-seller-overseas-phone-verification.dto.d.ts +13 -0
- package/user-service/dto/user/command/confirm-seller-overseas-phone-verification.dto.js +35 -0
- package/user-service/dto/user/command/email-signup.dto.d.ts +41 -0
- package/user-service/dto/user/command/email-signup.dto.js +106 -0
- package/user-service/dto/user/command/index.d.ts +2 -0
- package/user-service/dto/user/command/index.js +2 -0
- package/user-service/dto/user/command/request-email-signup-verification.dto.d.ts +0 -1
- package/user-service/dto/user/command/request-email-signup-verification.dto.js +0 -6
- package/user-service/dto/user/command/request-seller-overseas-phone-verification.dto.d.ts +16 -0
- package/user-service/dto/user/command/request-seller-overseas-phone-verification.dto.js +41 -0
- package/user-service/services/amqp.signup-certification.service.d.ts +0 -14
- package/user-service/services/amqp.signup-certification.service.js +0 -38
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./send-template-notification.dto"), exports);
|
|
18
18
|
__exportStar(require("./send-template-notification-bulk.dto"), exports);
|
|
19
19
|
__exportStar(require("./send-template-notification-concurrency.dto"), exports);
|
|
20
|
+
__exportStar(require("./send-seller-overseas-phone-verification-sms.dto"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 승인 셀러 해외 휴대폰 인증 문자 내부 발송 입력
|
|
4
|
+
* @process 인증 목적을 고정해 호출자가 임의 문자 본문을 전달하지 못하게 한다.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SendSellerOverseasPhoneVerificationSmsPayload {
|
|
7
|
+
phoneCountry: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
verificationCode: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SendSellerOverseasPhoneVerificationSmsResult {
|
|
12
|
+
sent: true;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.SendSellerOverseasPhoneVerificationSmsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 승인 셀러 해외 휴대폰 인증 문자 내부 발송 입력
|
|
17
|
+
* @process 인증 목적을 고정해 호출자가 임의 문자 본문을 전달하지 못하게 한다.
|
|
18
|
+
*/
|
|
19
|
+
class SendSellerOverseasPhoneVerificationSmsPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.SendSellerOverseasPhoneVerificationSmsPayload = SendSellerOverseasPhoneVerificationSmsPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(/^\+[1-9]\d{0,2}$/),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SendSellerOverseasPhoneVerificationSmsPayload.prototype, "phoneCountry", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(/^\d{4,20}$/),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SendSellerOverseasPhoneVerificationSmsPayload.prototype, "phoneNumber", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SendSellerOverseasPhoneVerificationSmsPayload.prototype, "verificationCode", void 0);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { SendTemplateNotificationPayload, SendTemplateNotificationBulkPayload, SendTemplateNotificationBulkResult } from '../dto/notification';
|
|
3
|
+
import { SendTemplateNotificationPayload, SendTemplateNotificationBulkPayload, SendTemplateNotificationBulkResult, SendSellerOverseasPhoneVerificationSmsPayload, SendSellerOverseasPhoneVerificationSmsResult } from '../dto/notification';
|
|
4
4
|
export declare class AmqpSendNotificationService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
sendTemplateNotification(payload: SendTemplateNotificationPayload, param: AbstractParam): Promise<boolean>;
|
|
9
9
|
sendTemplateNotificationBulk(payload: SendTemplateNotificationBulkPayload, param: AbstractParam): Promise<SendTemplateNotificationBulkResult>;
|
|
10
|
+
/** @author sj @description 해외 휴대폰 인증 문자 발송 @process 고정 목적의 인증 문자만 notification-service에 위임한다. */
|
|
11
|
+
sendSellerOverseasPhoneVerificationSms(payload: SendSellerOverseasPhoneVerificationSmsPayload, param: AbstractParam): Promise<SendSellerOverseasPhoneVerificationSmsResult>;
|
|
10
12
|
}
|
|
@@ -27,6 +27,10 @@ let AmqpSendNotificationService = class AmqpSendNotificationService {
|
|
|
27
27
|
async sendTemplateNotificationBulk(payload, param) {
|
|
28
28
|
return this.amqpManager.call('알림 보내기 Bulk', 'notification.template.bulk-send', payload, param, { isErrorThrowing: true });
|
|
29
29
|
}
|
|
30
|
+
/** @author sj @description 해외 휴대폰 인증 문자 발송 @process 고정 목적의 인증 문자만 notification-service에 위임한다. */
|
|
31
|
+
async sendSellerOverseasPhoneVerificationSms(payload, param) {
|
|
32
|
+
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증 문자 발송', 'notification.send.seller-overseas-phone-verification-sms', payload, param, { isErrorThrowing: true, isInternal: true });
|
|
33
|
+
}
|
|
30
34
|
};
|
|
31
35
|
exports.AmqpSendNotificationService = AmqpSendNotificationService;
|
|
32
36
|
exports.AmqpSendNotificationService = AmqpSendNotificationService = __decorate([
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @author sj
|
|
6
|
+
* @description 사전 협의 셀러 주문의 재고 확인중 자동 전환 요청이다.
|
|
7
|
+
*/
|
|
8
|
+
class AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload {
|
|
9
|
+
}
|
|
10
|
+
exports.AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload = AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload;
|
package/package.json
CHANGED
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoreItemEntity as StoreItem } from '@yolo-croket-dev/entity-v2/store-item';
|
|
2
|
+
export declare enum GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum {
|
|
3
|
+
PHRASE = "PHRASE"
|
|
4
|
+
}
|
|
5
|
+
export declare class GetStoreItemsForKakaoCatalogPayload {
|
|
6
|
+
mainCategories?: string[];
|
|
7
|
+
excludedSubCategories?: string[];
|
|
8
|
+
itemNameKeywords?: string[];
|
|
9
|
+
itemNameKeywordMatchType?: GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum;
|
|
10
|
+
limit: number;
|
|
11
|
+
paginationToken?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetStoreItemsForKakaoCatalogItem = Pick<StoreItem, '_id' | 'itemName' | 'contents' | 'itemPriceForBuyer' | 'itemPrice' | 'itemImg' | 'mainCategory' | 'subCategory' | 'brandInfo' | 'mainSku' | 'nation' | 'isSelling' | 'isDelete' | 'remainCount' | 'itemType' | 'isSecret'> & {
|
|
14
|
+
paginationToken?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare class GetStoreItemsForKakaoCatalogResult {
|
|
17
|
+
storeItems: GetStoreItemsForKakaoCatalogItem[];
|
|
18
|
+
lastPaginationToken?: string;
|
|
19
|
+
maxPage?: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.GetStoreItemsForKakaoCatalogResult = exports.GetStoreItemsForKakaoCatalogPayload = exports.GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
var GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum;
|
|
16
|
+
(function (GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum) {
|
|
17
|
+
GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum["PHRASE"] = "PHRASE";
|
|
18
|
+
})(GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum || (exports.GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = {}));
|
|
19
|
+
class GetStoreItemsForKakaoCatalogPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.GetStoreItemsForKakaoCatalogPayload = GetStoreItemsForKakaoCatalogPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsArray)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "mainCategories", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "excludedSubCategories", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "itemNameKeywords", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsEnum)(GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "itemNameKeywordMatchType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "limit", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "paginationToken", void 0);
|
|
55
|
+
class GetStoreItemsForKakaoCatalogResult {
|
|
56
|
+
}
|
|
57
|
+
exports.GetStoreItemsForKakaoCatalogResult = GetStoreItemsForKakaoCatalogResult;
|
|
@@ -6,7 +6,7 @@ import { GetUsernameByIdPayload, GetUsersForAppPushPayload, GetUsersForAppPushRe
|
|
|
6
6
|
import { Membership } from '@yolo-croket-dev/entity';
|
|
7
7
|
import { UserPhoneDecodeByPhoneNumberPayloadDto, UserPhoneDecodeByPhoneNumberResultDto } from '@yolo-croket-dev/dto/user-service';
|
|
8
8
|
import { NotificationUser, UpdateUserByIdPayload } from './amqp.user-service.types';
|
|
9
|
-
import { GetUserInfoByIdPayload, GetUserInfoByIdResult, GetUsersForAdminPayload, GetUsersForAdminResult, GetUsersPayload, GetUsersResult, GetSellerEmailPayload, GetSellerEmailResult, ReversalCreditByPInfoIdPayload, SendNotOpenAppNotificationResult, ConfirmEmailSignupVerificationPayload, ConfirmEmailSignupVerificationResult, CreateEmailSignupPayload, CreateEmailSignupResult, RequestEmailSignupVerificationPayload, RequestEmailSignupVerificationResult } from './dto/user';
|
|
9
|
+
import { GetUserInfoByIdPayload, GetUserInfoByIdResult, GetUsersForAdminPayload, GetUsersForAdminResult, GetUsersPayload, GetUsersResult, GetSellerEmailPayload, GetSellerEmailResult, ReversalCreditByPInfoIdPayload, SendNotOpenAppNotificationResult, ConfirmEmailSignupVerificationPayload, ConfirmEmailSignupVerificationResult, CreateEmailSignupPayload, CreateEmailSignupResult, RequestEmailSignupVerificationPayload, RequestEmailSignupVerificationResult, RequestSellerOverseasPhoneVerificationPayload, RequestSellerOverseasPhoneVerificationResult, ConfirmSellerOverseasPhoneVerificationPayload, ConfirmSellerOverseasPhoneVerificationResult } from './dto/user';
|
|
10
10
|
export declare class AmqpUserService {
|
|
11
11
|
private readonly client;
|
|
12
12
|
private readonly amqpManager;
|
|
@@ -50,4 +50,8 @@ export declare class AmqpUserService {
|
|
|
50
50
|
* @process 인증 token 소비와 User 생성을 user-service 단일 경계에서 처리한다.
|
|
51
51
|
* */
|
|
52
52
|
createEmailSignup(payload: CreateEmailSignupPayload, param: AbstractParam): Promise<CreateEmailSignupResult>;
|
|
53
|
+
/** @author sj @description 승인 셀러 해외 인증번호 발송 @process user-service가 승인 상태와 OTP 상태를 검증한다. */
|
|
54
|
+
requestSellerOverseasPhoneVerification(payload: RequestSellerOverseasPhoneVerificationPayload, param: AbstractParam): Promise<RequestSellerOverseasPhoneVerificationResult>;
|
|
55
|
+
/** @author sj @description 승인 셀러 해외 인증번호 확인 @process 성공 시 계정 전화번호를 저장한다. */
|
|
56
|
+
confirmSellerOverseasPhoneVerification(payload: ConfirmSellerOverseasPhoneVerificationPayload, param: AbstractParam): Promise<ConfirmSellerOverseasPhoneVerificationResult>;
|
|
53
57
|
}
|
|
@@ -108,6 +108,14 @@ let AmqpUserService = class AmqpUserService {
|
|
|
108
108
|
async createEmailSignup(payload, param) {
|
|
109
109
|
return this.amqpManager.call('이메일 전용 회원가입', 'user.email-signup.create', payload, param, { isErrorThrowing: true });
|
|
110
110
|
}
|
|
111
|
+
/** @author sj @description 승인 셀러 해외 인증번호 발송 @process user-service가 승인 상태와 OTP 상태를 검증한다. */
|
|
112
|
+
async requestSellerOverseasPhoneVerification(payload, param) {
|
|
113
|
+
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증번호 발송', 'user.seller.request-overseas-phone-verification', payload, param, { isErrorThrowing: true });
|
|
114
|
+
}
|
|
115
|
+
/** @author sj @description 승인 셀러 해외 인증번호 확인 @process 성공 시 계정 전화번호를 저장한다. */
|
|
116
|
+
async confirmSellerOverseasPhoneVerification(payload, param) {
|
|
117
|
+
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증번호 확인', 'user.seller.confirm-overseas-phone-verification', payload, param, { isErrorThrowing: true });
|
|
118
|
+
}
|
|
111
119
|
};
|
|
112
120
|
exports.AmqpUserService = AmqpUserService;
|
|
113
121
|
exports.AmqpUserService = AmqpUserService = __decorate([
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 승인 셀러 해외 휴대폰 인증번호 확인 입력
|
|
4
|
+
* @process 확인 단계에는 발송 세션 식별자와 인증번호만 받는다.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ConfirmSellerOverseasPhoneVerificationPayload {
|
|
7
|
+
verificationId: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
/** @author sj @description 해외 휴대폰 인증번호 확인 결과 */
|
|
11
|
+
export declare class ConfirmSellerOverseasPhoneVerificationResult {
|
|
12
|
+
result: true;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.ConfirmSellerOverseasPhoneVerificationResult = exports.ConfirmSellerOverseasPhoneVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 승인 셀러 해외 휴대폰 인증번호 확인 입력
|
|
17
|
+
* @process 확인 단계에는 발송 세션 식별자와 인증번호만 받는다.
|
|
18
|
+
*/
|
|
19
|
+
class ConfirmSellerOverseasPhoneVerificationPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.ConfirmSellerOverseasPhoneVerificationPayload = ConfirmSellerOverseasPhoneVerificationPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{21}$/),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ConfirmSellerOverseasPhoneVerificationPayload.prototype, "verificationId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ConfirmSellerOverseasPhoneVerificationPayload.prototype, "code", void 0);
|
|
32
|
+
/** @author sj @description 해외 휴대폰 인증번호 확인 결과 */
|
|
33
|
+
class ConfirmSellerOverseasPhoneVerificationResult {
|
|
34
|
+
}
|
|
35
|
+
exports.ConfirmSellerOverseasPhoneVerificationResult = ConfirmSellerOverseasPhoneVerificationResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 입력 @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다. */
|
|
2
|
+
export declare class RequestEmailSignupVerificationPayload {
|
|
3
|
+
email: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
}
|
|
6
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 결과 @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다. */
|
|
7
|
+
export declare class RequestEmailSignupVerificationResult {
|
|
8
|
+
verificationId: string;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
retryAfterSeconds: number;
|
|
11
|
+
}
|
|
12
|
+
/** @author sj @description 이메일 가입 인증번호 검증 입력 @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다. */
|
|
13
|
+
export declare class ConfirmEmailSignupVerificationPayload {
|
|
14
|
+
verificationId: string;
|
|
15
|
+
code: string;
|
|
16
|
+
}
|
|
17
|
+
/** @author sj @description 이메일 가입 인증번호 검증 결과 @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다. */
|
|
18
|
+
export declare class ConfirmEmailSignupVerificationResult {
|
|
19
|
+
verificationToken: string;
|
|
20
|
+
expiresAt: string;
|
|
21
|
+
}
|
|
22
|
+
/** @author sj @description 전화번호 없는 이메일 전용 회원가입 입력 @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다. */
|
|
23
|
+
export declare class CreateEmailSignupPayload {
|
|
24
|
+
email: string;
|
|
25
|
+
password: string;
|
|
26
|
+
username: string;
|
|
27
|
+
verificationToken: string;
|
|
28
|
+
event_email?: boolean;
|
|
29
|
+
event_sms?: boolean;
|
|
30
|
+
event_appPush?: boolean;
|
|
31
|
+
from?: string;
|
|
32
|
+
afterAgreementAD?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** @author sj @description 이메일 전용 회원가입 결과 @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다. */
|
|
35
|
+
export declare class CreateEmailSignupResult {
|
|
36
|
+
result: true;
|
|
37
|
+
userId: string;
|
|
38
|
+
userid: string;
|
|
39
|
+
access_token: string;
|
|
40
|
+
refresh_token: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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.CreateEmailSignupResult = exports.CreateEmailSignupPayload = exports.ConfirmEmailSignupVerificationResult = exports.ConfirmEmailSignupVerificationPayload = exports.RequestEmailSignupVerificationResult = exports.RequestEmailSignupVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 입력 @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다. */
|
|
15
|
+
class RequestEmailSignupVerificationPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.RequestEmailSignupVerificationPayload = RequestEmailSignupVerificationPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEmail)(),
|
|
20
|
+
(0, class_validator_1.MaxLength)(320),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], RequestEmailSignupVerificationPayload.prototype, "email", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(20),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RequestEmailSignupVerificationPayload.prototype, "locale", void 0);
|
|
29
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 결과 @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다. */
|
|
30
|
+
class RequestEmailSignupVerificationResult {
|
|
31
|
+
}
|
|
32
|
+
exports.RequestEmailSignupVerificationResult = RequestEmailSignupVerificationResult;
|
|
33
|
+
/** @author sj @description 이메일 가입 인증번호 검증 입력 @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다. */
|
|
34
|
+
class ConfirmEmailSignupVerificationPayload {
|
|
35
|
+
}
|
|
36
|
+
exports.ConfirmEmailSignupVerificationPayload = ConfirmEmailSignupVerificationPayload;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{21}$/),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ConfirmEmailSignupVerificationPayload.prototype, "verificationId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ConfirmEmailSignupVerificationPayload.prototype, "code", void 0);
|
|
47
|
+
/** @author sj @description 이메일 가입 인증번호 검증 결과 @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다. */
|
|
48
|
+
class ConfirmEmailSignupVerificationResult {
|
|
49
|
+
}
|
|
50
|
+
exports.ConfirmEmailSignupVerificationResult = ConfirmEmailSignupVerificationResult;
|
|
51
|
+
/** @author sj @description 전화번호 없는 이메일 전용 회원가입 입력 @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다. */
|
|
52
|
+
class CreateEmailSignupPayload {
|
|
53
|
+
}
|
|
54
|
+
exports.CreateEmailSignupPayload = CreateEmailSignupPayload;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsEmail)(),
|
|
57
|
+
(0, class_validator_1.MaxLength)(320),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], CreateEmailSignupPayload.prototype, "email", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.MinLength)(8),
|
|
63
|
+
(0, class_validator_1.MaxLength)(20),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreateEmailSignupPayload.prototype, "password", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.MinLength)(1),
|
|
69
|
+
(0, class_validator_1.MaxLength)(100),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CreateEmailSignupPayload.prototype, "username", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{43}$/),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateEmailSignupPayload.prototype, "verificationToken", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsBoolean)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], CreateEmailSignupPayload.prototype, "event_email", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsBoolean)(),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], CreateEmailSignupPayload.prototype, "event_sms", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsBoolean)(),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], CreateEmailSignupPayload.prototype, "event_appPush", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, class_validator_1.IsString)(),
|
|
95
|
+
(0, class_validator_1.MaxLength)(100),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CreateEmailSignupPayload.prototype, "from", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
(0, class_validator_1.IsBoolean)(),
|
|
101
|
+
__metadata("design:type", Boolean)
|
|
102
|
+
], CreateEmailSignupPayload.prototype, "afterAgreementAD", void 0);
|
|
103
|
+
/** @author sj @description 이메일 전용 회원가입 결과 @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다. */
|
|
104
|
+
class CreateEmailSignupResult {
|
|
105
|
+
}
|
|
106
|
+
exports.CreateEmailSignupResult = CreateEmailSignupResult;
|
|
@@ -14,3 +14,5 @@ export * from './send-not-open-app-notification.dto';
|
|
|
14
14
|
export * from './request-email-signup-verification.dto';
|
|
15
15
|
export * from './confirm-email-signup-verification.dto';
|
|
16
16
|
export * from './create-email-signup.dto';
|
|
17
|
+
export * from './request-seller-overseas-phone-verification.dto';
|
|
18
|
+
export * from './confirm-seller-overseas-phone-verification.dto';
|
|
@@ -30,3 +30,5 @@ __exportStar(require("./send-not-open-app-notification.dto"), exports);
|
|
|
30
30
|
__exportStar(require("./request-email-signup-verification.dto"), exports);
|
|
31
31
|
__exportStar(require("./confirm-email-signup-verification.dto"), exports);
|
|
32
32
|
__exportStar(require("./create-email-signup.dto"), exports);
|
|
33
|
+
__exportStar(require("./request-seller-overseas-phone-verification.dto"), exports);
|
|
34
|
+
__exportStar(require("./confirm-seller-overseas-phone-verification.dto"), exports);
|
|
@@ -24,12 +24,6 @@ __decorate([
|
|
|
24
24
|
(0, class_validator_1.MaxLength)(320),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], RequestEmailSignupVerificationPayload.prototype, "email", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.MaxLength)(20),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], RequestEmailSignupVerificationPayload.prototype, "locale", void 0);
|
|
33
27
|
/**
|
|
34
28
|
* @author sj
|
|
35
29
|
* @description 이메일 전용 가입 인증 메일 발송 결과
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 승인 셀러 해외 휴대폰 인증번호 발송 입력
|
|
4
|
+
* @process 국가번호와 국가 내 번호는 user-service에서 E.164로 정규화한다.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RequestSellerOverseasPhoneVerificationPayload {
|
|
7
|
+
phoneCountry: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
recaptchaToken: string;
|
|
10
|
+
}
|
|
11
|
+
/** @author sj @description 해외 휴대폰 인증번호 발송 결과 @process 평문 번호와 인증번호는 응답하지 않는다. */
|
|
12
|
+
export declare class RequestSellerOverseasPhoneVerificationResult {
|
|
13
|
+
verificationId: string;
|
|
14
|
+
expiresAt: string;
|
|
15
|
+
retryAfterSeconds: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.RequestSellerOverseasPhoneVerificationResult = exports.RequestSellerOverseasPhoneVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 승인 셀러 해외 휴대폰 인증번호 발송 입력
|
|
17
|
+
* @process 국가번호와 국가 내 번호는 user-service에서 E.164로 정규화한다.
|
|
18
|
+
*/
|
|
19
|
+
class RequestSellerOverseasPhoneVerificationPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.RequestSellerOverseasPhoneVerificationPayload = RequestSellerOverseasPhoneVerificationPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(/^\+[1-9]\d{0,2}$/),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], RequestSellerOverseasPhoneVerificationPayload.prototype, "phoneCountry", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(/^[0-9().\-\s]+$/),
|
|
30
|
+
(0, class_validator_1.MaxLength)(32),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], RequestSellerOverseasPhoneVerificationPayload.prototype, "phoneNumber", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.MaxLength)(8192),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], RequestSellerOverseasPhoneVerificationPayload.prototype, "recaptchaToken", void 0);
|
|
38
|
+
/** @author sj @description 해외 휴대폰 인증번호 발송 결과 @process 평문 번호와 인증번호는 응답하지 않는다. */
|
|
39
|
+
class RequestSellerOverseasPhoneVerificationResult {
|
|
40
|
+
}
|
|
41
|
+
exports.RequestSellerOverseasPhoneVerificationResult = RequestSellerOverseasPhoneVerificationResult;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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);
|