@yolo-croket-dev/amqp-access 0.7.373 → 0.7.375
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/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/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 +19 -2
- package/user-service/amqp.user-service.service.js +24 -0
- package/user-service/dto/user/command/confirm-email-signup-verification.dto.d.ts +18 -0
- package/user-service/dto/user/command/confirm-email-signup-verification.dto.js +39 -0
- package/user-service/dto/user/command/create-email-signup.dto.d.ts +28 -0
- package/user-service/dto/user/command/create-email-signup.dto.js +77 -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 +3 -0
- package/user-service/dto/user/command/index.js +3 -0
- package/user-service/dto/user/command/request-email-signup-verification.dto.d.ts +19 -0
- package/user-service/dto/user/command/request-email-signup-verification.dto.js +40 -0
|
@@ -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
|
@@ -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,8 +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 } from './dto/user';
|
|
10
|
-
import { SendNotOpenAppNotificationResult } from './dto/user/command';
|
|
9
|
+
import { GetUserInfoByIdPayload, GetUserInfoByIdResult, GetUsersForAdminPayload, GetUsersForAdminResult, GetUsersPayload, GetUsersResult, GetSellerEmailPayload, GetSellerEmailResult, ReversalCreditByPInfoIdPayload, SendNotOpenAppNotificationResult, ConfirmEmailSignupVerificationPayload, ConfirmEmailSignupVerificationResult, CreateEmailSignupPayload, CreateEmailSignupResult, RequestEmailSignupVerificationPayload, RequestEmailSignupVerificationResult } from './dto/user';
|
|
11
10
|
export declare class AmqpUserService {
|
|
12
11
|
private readonly client;
|
|
13
12
|
private readonly amqpManager;
|
|
@@ -33,4 +32,22 @@ export declare class AmqpUserService {
|
|
|
33
32
|
getBlockedUserIds(param: AbstractParam): Promise<string[]>;
|
|
34
33
|
reversalCreditByPInfoId(payload: ReversalCreditByPInfoIdPayload, param: AbstractParam): Promise<void>;
|
|
35
34
|
sendNotOpenAppNotification(param: AbstractParam): Promise<SendNotOpenAppNotificationResult>;
|
|
35
|
+
/**
|
|
36
|
+
* @author sj
|
|
37
|
+
* @description 이메일 전용 가입 인증 메일 발송
|
|
38
|
+
* @process 가입 전 인증 상태는 user-service가 소유하고 gateway는 이 RPC 결과만 전달한다.
|
|
39
|
+
* */
|
|
40
|
+
requestEmailSignupVerification(payload: RequestEmailSignupVerificationPayload, param: AbstractParam): Promise<RequestEmailSignupVerificationResult>;
|
|
41
|
+
/**
|
|
42
|
+
* @author sj
|
|
43
|
+
* @description 이메일 전용 가입 인증번호 확인
|
|
44
|
+
* @process 성공 시 User 생성 전에만 사용하는 일회성 token을 반환한다.
|
|
45
|
+
* */
|
|
46
|
+
confirmEmailSignupVerification(payload: ConfirmEmailSignupVerificationPayload, param: AbstractParam): Promise<ConfirmEmailSignupVerificationResult>;
|
|
47
|
+
/**
|
|
48
|
+
* @author sj
|
|
49
|
+
* @description 이메일 전용 회원가입
|
|
50
|
+
* @process 인증 token 소비와 User 생성을 user-service 단일 경계에서 처리한다.
|
|
51
|
+
* */
|
|
52
|
+
createEmailSignup(payload: CreateEmailSignupPayload, param: AbstractParam): Promise<CreateEmailSignupResult>;
|
|
36
53
|
}
|
|
@@ -84,6 +84,30 @@ let AmqpUserService = class AmqpUserService {
|
|
|
84
84
|
async sendNotOpenAppNotification(param) {
|
|
85
85
|
return this.amqpManager.call('미접속 유저 NotOpenApp 알림 발송', 'user.send-notification.not-open-app', {}, param, { isErrorThrowing: true });
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* @author sj
|
|
89
|
+
* @description 이메일 전용 가입 인증 메일 발송
|
|
90
|
+
* @process 가입 전 인증 상태는 user-service가 소유하고 gateway는 이 RPC 결과만 전달한다.
|
|
91
|
+
* */
|
|
92
|
+
async requestEmailSignupVerification(payload, param) {
|
|
93
|
+
return this.amqpManager.call('이메일 전용 가입 인증 메일 발송', 'user.email-signup.request-verification', payload, param, { isErrorThrowing: true });
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @author sj
|
|
97
|
+
* @description 이메일 전용 가입 인증번호 확인
|
|
98
|
+
* @process 성공 시 User 생성 전에만 사용하는 일회성 token을 반환한다.
|
|
99
|
+
* */
|
|
100
|
+
async confirmEmailSignupVerification(payload, param) {
|
|
101
|
+
return this.amqpManager.call('이메일 전용 가입 인증번호 확인', 'user.email-signup.confirm-verification', payload, param, { isErrorThrowing: true });
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @author sj
|
|
105
|
+
* @description 이메일 전용 회원가입
|
|
106
|
+
* @process 인증 token 소비와 User 생성을 user-service 단일 경계에서 처리한다.
|
|
107
|
+
* */
|
|
108
|
+
async createEmailSignup(payload, param) {
|
|
109
|
+
return this.amqpManager.call('이메일 전용 회원가입', 'user.email-signup.create', payload, param, { isErrorThrowing: true });
|
|
110
|
+
}
|
|
87
111
|
};
|
|
88
112
|
exports.AmqpUserService = AmqpUserService;
|
|
89
113
|
exports.AmqpUserService = AmqpUserService = __decorate([
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 이메일 가입 인증번호 검증 입력
|
|
4
|
+
* @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다.
|
|
5
|
+
* */
|
|
6
|
+
export declare class ConfirmEmailSignupVerificationPayload {
|
|
7
|
+
verificationId: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @author sj
|
|
12
|
+
* @description 이메일 가입 인증번호 검증 결과
|
|
13
|
+
* @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다.
|
|
14
|
+
* */
|
|
15
|
+
export declare class ConfirmEmailSignupVerificationResult {
|
|
16
|
+
verificationToken: string;
|
|
17
|
+
expiresAt: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.ConfirmEmailSignupVerificationResult = exports.ConfirmEmailSignupVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 이메일 가입 인증번호 검증 입력
|
|
17
|
+
* @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다.
|
|
18
|
+
* */
|
|
19
|
+
class ConfirmEmailSignupVerificationPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.ConfirmEmailSignupVerificationPayload = ConfirmEmailSignupVerificationPayload;
|
|
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
|
+
], ConfirmEmailSignupVerificationPayload.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
|
+
], ConfirmEmailSignupVerificationPayload.prototype, "code", void 0);
|
|
32
|
+
/**
|
|
33
|
+
* @author sj
|
|
34
|
+
* @description 이메일 가입 인증번호 검증 결과
|
|
35
|
+
* @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다.
|
|
36
|
+
* */
|
|
37
|
+
class ConfirmEmailSignupVerificationResult {
|
|
38
|
+
}
|
|
39
|
+
exports.ConfirmEmailSignupVerificationResult = ConfirmEmailSignupVerificationResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 전화번호 없는 이메일 전용 회원가입 입력
|
|
4
|
+
* @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다.
|
|
5
|
+
* */
|
|
6
|
+
export declare class CreateEmailSignupPayload {
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
username: string;
|
|
10
|
+
verificationToken: string;
|
|
11
|
+
event_email?: boolean;
|
|
12
|
+
event_sms?: boolean;
|
|
13
|
+
event_appPush?: boolean;
|
|
14
|
+
from?: string;
|
|
15
|
+
afterAgreementAD?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @author sj
|
|
19
|
+
* @description 이메일 전용 회원가입 결과
|
|
20
|
+
* @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다.
|
|
21
|
+
* */
|
|
22
|
+
export declare class CreateEmailSignupResult {
|
|
23
|
+
result: true;
|
|
24
|
+
userId: string;
|
|
25
|
+
userid: string;
|
|
26
|
+
access_token: string;
|
|
27
|
+
refresh_token: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 전화번호 없는 이메일 전용 회원가입 입력
|
|
17
|
+
* @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다.
|
|
18
|
+
* */
|
|
19
|
+
class CreateEmailSignupPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateEmailSignupPayload = CreateEmailSignupPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEmail)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(320),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateEmailSignupPayload.prototype, "email", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.MinLength)(8),
|
|
30
|
+
(0, class_validator_1.MaxLength)(20),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateEmailSignupPayload.prototype, "password", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.MinLength)(1),
|
|
36
|
+
(0, class_validator_1.MaxLength)(100),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateEmailSignupPayload.prototype, "username", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{43}$/),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateEmailSignupPayload.prototype, "verificationToken", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], CreateEmailSignupPayload.prototype, "event_email", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], CreateEmailSignupPayload.prototype, "event_sms", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsBoolean)(),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], CreateEmailSignupPayload.prototype, "event_appPush", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.MaxLength)(100),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CreateEmailSignupPayload.prototype, "from", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsBoolean)(),
|
|
68
|
+
__metadata("design:type", Boolean)
|
|
69
|
+
], CreateEmailSignupPayload.prototype, "afterAgreementAD", void 0);
|
|
70
|
+
/**
|
|
71
|
+
* @author sj
|
|
72
|
+
* @description 이메일 전용 회원가입 결과
|
|
73
|
+
* @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다.
|
|
74
|
+
* */
|
|
75
|
+
class CreateEmailSignupResult {
|
|
76
|
+
}
|
|
77
|
+
exports.CreateEmailSignupResult = CreateEmailSignupResult;
|
|
@@ -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;
|
|
@@ -11,3 +11,6 @@ export * from './update-guest-username.dto';
|
|
|
11
11
|
export * from './reversal-credit-by-p-info-id.dto';
|
|
12
12
|
export * from './app-switching-reward.dto';
|
|
13
13
|
export * from './send-not-open-app-notification.dto';
|
|
14
|
+
export * from './request-email-signup-verification.dto';
|
|
15
|
+
export * from './confirm-email-signup-verification.dto';
|
|
16
|
+
export * from './create-email-signup.dto';
|
|
@@ -27,3 +27,6 @@ __exportStar(require("./update-guest-username.dto"), exports);
|
|
|
27
27
|
__exportStar(require("./reversal-credit-by-p-info-id.dto"), exports);
|
|
28
28
|
__exportStar(require("./app-switching-reward.dto"), exports);
|
|
29
29
|
__exportStar(require("./send-not-open-app-notification.dto"), exports);
|
|
30
|
+
__exportStar(require("./request-email-signup-verification.dto"), exports);
|
|
31
|
+
__exportStar(require("./confirm-email-signup-verification.dto"), exports);
|
|
32
|
+
__exportStar(require("./create-email-signup.dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 이메일 전용 가입 인증 메일 발송 입력
|
|
4
|
+
* @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다.
|
|
5
|
+
* */
|
|
6
|
+
export declare class RequestEmailSignupVerificationPayload {
|
|
7
|
+
email: string;
|
|
8
|
+
locale?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @author sj
|
|
12
|
+
* @description 이메일 전용 가입 인증 메일 발송 결과
|
|
13
|
+
* @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다.
|
|
14
|
+
* */
|
|
15
|
+
export declare class RequestEmailSignupVerificationResult {
|
|
16
|
+
verificationId: string;
|
|
17
|
+
expiresAt: string;
|
|
18
|
+
retryAfterSeconds: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.RequestEmailSignupVerificationResult = exports.RequestEmailSignupVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 이메일 전용 가입 인증 메일 발송 입력
|
|
17
|
+
* @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다.
|
|
18
|
+
* */
|
|
19
|
+
class RequestEmailSignupVerificationPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.RequestEmailSignupVerificationPayload = RequestEmailSignupVerificationPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEmail)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(320),
|
|
25
|
+
__metadata("design:type", String)
|
|
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
|
+
/**
|
|
34
|
+
* @author sj
|
|
35
|
+
* @description 이메일 전용 가입 인증 메일 발송 결과
|
|
36
|
+
* @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다.
|
|
37
|
+
* */
|
|
38
|
+
class RequestEmailSignupVerificationResult {
|
|
39
|
+
}
|
|
40
|
+
exports.RequestEmailSignupVerificationResult = RequestEmailSignupVerificationResult;
|