@yolo-croket-dev/amqp-access 0.7.443 → 0.7.444
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/buyma-order/command/create-buyma-procurement.dto.d.ts +65 -0
- package/order-server/dto/buyma-order/command/create-buyma-procurement.dto.js +88 -0
- package/order-server/dto/buyma-order/index.d.ts +1 -0
- package/order-server/dto/buyma-order/index.js +1 -0
- package/order-server/services/amqp.buyma-order.service.d.ts +10 -0
- package/order-server/services/amqp.buyma-order.service.js +18 -0
- package/package.json +2 -2
- package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.d.ts +4 -0
- package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.js +9 -1
- package/user-service/services/user.modules/amqp.user-shipping-address.service.d.ts +2 -1
- package/user-service/services/user.modules/amqp.user-shipping-address.service.js +3 -0
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.d.ts +0 -6
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.js +0 -10
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.d.ts +0 -20
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.js +0 -57
- package/user-service/dto/user/command/email-signup.dto.d.ts +0 -41
- package/user-service/dto/user/command/email-signup.dto.js +0 -106
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CreateUserShippingAddressPayload } from '../../../../user-service/dto/user.modules/shipping-address/command';
|
|
2
|
+
export declare class PreviewBuymaProcurementPayload {
|
|
3
|
+
orderId: string;
|
|
4
|
+
product: string;
|
|
5
|
+
shippingAddressId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateBuymaProcurementPayload extends PreviewBuymaProcurementPayload {
|
|
8
|
+
requestId: string;
|
|
9
|
+
expectedRevision: number;
|
|
10
|
+
previewVersion: string;
|
|
11
|
+
optionNameList: string[];
|
|
12
|
+
remitter: string;
|
|
13
|
+
}
|
|
14
|
+
export interface BuymaProcurementPreview {
|
|
15
|
+
orderId: string;
|
|
16
|
+
revision: number;
|
|
17
|
+
previewVersion: string;
|
|
18
|
+
storeItemId: string;
|
|
19
|
+
itemName: string;
|
|
20
|
+
buyerId: string;
|
|
21
|
+
username: string;
|
|
22
|
+
addresses: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
address: string;
|
|
26
|
+
}[];
|
|
27
|
+
shippingAddressId: string | null;
|
|
28
|
+
options: {
|
|
29
|
+
name: string;
|
|
30
|
+
optionNameList: string[];
|
|
31
|
+
available: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
itemPrice: number;
|
|
34
|
+
shippingPrice: number;
|
|
35
|
+
insurancePrice: number;
|
|
36
|
+
totalPrice: number;
|
|
37
|
+
sellerBurdenAmount: number;
|
|
38
|
+
croketBurdenAmount: number;
|
|
39
|
+
couponName: string | null;
|
|
40
|
+
blockedReason: string | null;
|
|
41
|
+
customsRequired: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateBuymaProcurementResult {
|
|
44
|
+
status: 'CREATED' | 'LINK_PENDING' | 'CHECK_REQUIRED' | 'AWAITING_CUSTOMS';
|
|
45
|
+
customs?: {
|
|
46
|
+
verified: boolean;
|
|
47
|
+
otpRequired: boolean;
|
|
48
|
+
};
|
|
49
|
+
maskedEmail?: string;
|
|
50
|
+
requestId: string;
|
|
51
|
+
orderUrl: string | null;
|
|
52
|
+
purchasedInfoId: string | null;
|
|
53
|
+
message: string;
|
|
54
|
+
}
|
|
55
|
+
export declare class CreateBuymaProcurementAddressPayload extends CreateUserShippingAddressPayload {
|
|
56
|
+
orderId: string;
|
|
57
|
+
}
|
|
58
|
+
export declare class CheckBuymaProcurementPayload {
|
|
59
|
+
orderId: string;
|
|
60
|
+
requestId: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class VerifyBuymaProcurementCustomsPayload extends CheckBuymaProcurementPayload {
|
|
63
|
+
/** 생략하면 인증 요청, 전달하면 기존 인증번호 확인. */
|
|
64
|
+
otp?: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.VerifyBuymaProcurementCustomsPayload = exports.CheckBuymaProcurementPayload = exports.CreateBuymaProcurementAddressPayload = exports.CreateBuymaProcurementPayload = exports.PreviewBuymaProcurementPayload = void 0;
|
|
13
|
+
/** @author jun @description Buyma 사입 무통장 생성 계약. @process 상품 조회 후 서버 미리보기로 생성·연결한다. */
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const command_1 = require("../../../../user-service/dto/user.modules/shipping-address/command");
|
|
16
|
+
class PreviewBuymaProcurementPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.PreviewBuymaProcurementPayload = PreviewBuymaProcurementPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsMongoId)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PreviewBuymaProcurementPayload.prototype, "orderId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.MaxLength)(500),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PreviewBuymaProcurementPayload.prototype, "product", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsMongoId)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PreviewBuymaProcurementPayload.prototype, "shippingAddressId", void 0);
|
|
33
|
+
class CreateBuymaProcurementPayload extends PreviewBuymaProcurementPayload {
|
|
34
|
+
}
|
|
35
|
+
exports.CreateBuymaProcurementPayload = CreateBuymaProcurementPayload;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsUUID)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateBuymaProcurementPayload.prototype, "requestId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsInt)(),
|
|
42
|
+
(0, class_validator_1.Min)(0),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreateBuymaProcurementPayload.prototype, "expectedRevision", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.MaxLength)(64),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateBuymaProcurementPayload.prototype, "previewVersion", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
53
|
+
(0, class_validator_1.ArrayMaxSize)(10),
|
|
54
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], CreateBuymaProcurementPayload.prototype, "optionNameList", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.MaxLength)(30),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CreateBuymaProcurementPayload.prototype, "remitter", void 0);
|
|
62
|
+
class CreateBuymaProcurementAddressPayload extends command_1.CreateUserShippingAddressPayload {
|
|
63
|
+
}
|
|
64
|
+
exports.CreateBuymaProcurementAddressPayload = CreateBuymaProcurementAddressPayload;
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsMongoId)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateBuymaProcurementAddressPayload.prototype, "orderId", void 0);
|
|
69
|
+
class CheckBuymaProcurementPayload {
|
|
70
|
+
}
|
|
71
|
+
exports.CheckBuymaProcurementPayload = CheckBuymaProcurementPayload;
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsMongoId)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CheckBuymaProcurementPayload.prototype, "orderId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsUUID)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CheckBuymaProcurementPayload.prototype, "requestId", void 0);
|
|
80
|
+
class VerifyBuymaProcurementCustomsPayload extends CheckBuymaProcurementPayload {
|
|
81
|
+
}
|
|
82
|
+
exports.VerifyBuymaProcurementCustomsPayload = VerifyBuymaProcurementCustomsPayload;
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], VerifyBuymaProcurementCustomsPayload.prototype, "otp", void 0);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./query/buyma-order.dto"), exports);
|
|
18
18
|
__exportStar(require("./command/buyma-order.dto"), exports);
|
|
19
|
+
__exportStar(require("./command/create-buyma-procurement.dto"), exports);
|
|
@@ -15,4 +15,14 @@ export declare class AmqpBuymaOrderService {
|
|
|
15
15
|
recordRefund(payload: DTO.RecordBuymaRefundPayload, param: AbstractParam): Promise<DTO.UpdateBuymaOrderResult>;
|
|
16
16
|
receiveWebhook(payload: DTO.ReceiveBuymaWebhookPayload, param: AbstractParam): Promise<DTO.ReceiveBuymaWebhookResult>;
|
|
17
17
|
appendSlackLink(payload: DTO.AppendBuymaSlackLinkPayload, param: AbstractParam): Promise<DTO.AppendBuymaSlackLinkResult>;
|
|
18
|
+
previewProcurement(payload: DTO.PreviewBuymaProcurementPayload, param: AbstractParam): Promise<DTO.BuymaProcurementPreview>;
|
|
19
|
+
createProcurement(payload: DTO.CreateBuymaProcurementPayload, param: AbstractParam): Promise<DTO.CreateBuymaProcurementResult>;
|
|
20
|
+
createProcurementAddress(payload: DTO.CreateBuymaProcurementAddressPayload, param: AbstractParam): Promise<{
|
|
21
|
+
_id: string;
|
|
22
|
+
}>;
|
|
23
|
+
checkProcurement(payload: DTO.CheckBuymaProcurementPayload, param: AbstractParam): Promise<DTO.CreateBuymaProcurementResult>;
|
|
24
|
+
verifyProcurementCustoms(payload: DTO.VerifyBuymaProcurementCustomsPayload, param: AbstractParam): Promise<DTO.CreateBuymaProcurementResult>;
|
|
25
|
+
resetProcurement(payload: DTO.CheckBuymaProcurementPayload, param: AbstractParam): Promise<{
|
|
26
|
+
reset: boolean;
|
|
27
|
+
}>;
|
|
18
28
|
}
|
|
@@ -54,6 +54,24 @@ let AmqpBuymaOrderService = class AmqpBuymaOrderService {
|
|
|
54
54
|
appendSlackLink(payload, param) {
|
|
55
55
|
return this.manager.call('Buyma Slack 이력 자동 연결', 'buyma-order.append.slack-link', payload, param, { isErrorThrowing: true });
|
|
56
56
|
}
|
|
57
|
+
previewProcurement(payload, param) {
|
|
58
|
+
return this.manager.call('Buyma 무통장 생성 미리보기', 'buyma-order.preview.procurement', payload, param, { isErrorThrowing: true });
|
|
59
|
+
}
|
|
60
|
+
createProcurement(payload, param) {
|
|
61
|
+
return this.manager.call('Buyma 무통장 생성', 'buyma-order.create.procurement', payload, param, { isErrorThrowing: true });
|
|
62
|
+
}
|
|
63
|
+
createProcurementAddress(payload, param) {
|
|
64
|
+
return this.manager.call('Buyma 사입 배송지 등록', 'buyma-order.create.procurement-address', payload, param, { isErrorThrowing: true });
|
|
65
|
+
}
|
|
66
|
+
checkProcurement(payload, param) {
|
|
67
|
+
return this.manager.call('Buyma 무통장 생성 결과 확인', 'buyma-order.check.procurement', payload, param, { isErrorThrowing: true });
|
|
68
|
+
}
|
|
69
|
+
verifyProcurementCustoms(payload, param) {
|
|
70
|
+
return this.manager.call('Buyma 사입 통관 인증', 'buyma-order.verify.procurement-customs', payload, param, { isErrorThrowing: true });
|
|
71
|
+
}
|
|
72
|
+
resetProcurement(payload, param) {
|
|
73
|
+
return this.manager.call('Buyma 통관 대기 선택 취소', 'buyma-order.reset.procurement', payload, param, { isErrorThrowing: true });
|
|
74
|
+
}
|
|
57
75
|
};
|
|
58
76
|
exports.AmqpBuymaOrderService = AmqpBuymaOrderService;
|
|
59
77
|
exports.AmqpBuymaOrderService = AmqpBuymaOrderService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.444",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.51",
|
|
25
25
|
"@yolo-croket-dev/dto-v2": "0.2.38",
|
|
26
26
|
"@yolo-croket-dev/entity": "0.2.116",
|
|
27
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
27
|
+
"@yolo-croket-dev/entity-v2": "0.3.78",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"class-validator": "^0.13.2",
|
|
30
30
|
"dotenv": "^16.3.1",
|
package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.d.ts
CHANGED
|
@@ -22,3 +22,7 @@ export declare class CreateUserShippingAddressPayload implements Omit<UserShippi
|
|
|
22
22
|
alias?: string;
|
|
23
23
|
}
|
|
24
24
|
export type CreateUserShippingAddressResult = UserShippingAddressesEntity;
|
|
25
|
+
/** @author jun @description 관리자 배송지 추가. 기존 주소를 덮어쓰지 않는다. @process 대상 회원을 검증하고 append한다. */
|
|
26
|
+
export declare class CreateAdminUserShippingAddressPayload extends CreateUserShippingAddressPayload {
|
|
27
|
+
userId: string;
|
|
28
|
+
}
|
package/user-service/dto/user.modules/shipping-address/command/create-user-shipping-address.dto.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateUserShippingAddressPayload = void 0;
|
|
12
|
+
exports.CreateAdminUserShippingAddressPayload = exports.CreateUserShippingAddressPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
class CreateUserShippingAddressPayload {
|
|
15
15
|
}
|
|
@@ -59,3 +59,11 @@ __decorate([
|
|
|
59
59
|
(0, class_validator_1.IsOptional)(),
|
|
60
60
|
__metadata("design:type", String)
|
|
61
61
|
], CreateUserShippingAddressPayload.prototype, "alias", void 0);
|
|
62
|
+
/** @author jun @description 관리자 배송지 추가. 기존 주소를 덮어쓰지 않는다. @process 대상 회원을 검증하고 append한다. */
|
|
63
|
+
class CreateAdminUserShippingAddressPayload extends CreateUserShippingAddressPayload {
|
|
64
|
+
}
|
|
65
|
+
exports.CreateAdminUserShippingAddressPayload = CreateAdminUserShippingAddressPayload;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsMongoId)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CreateAdminUserShippingAddressPayload.prototype, "userId", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
|
-
import { CreateUserShippingAddressPayload, CreateUserShippingAddressResult, UpdateUserShippingAddressPayload, UpdateUserShippingAddressResult } from '../../dto/user.modules/shipping-address/command';
|
|
3
|
+
import { CreateUserShippingAddressPayload, CreateAdminUserShippingAddressPayload, CreateUserShippingAddressResult, UpdateUserShippingAddressPayload, UpdateUserShippingAddressResult } from '../../dto/user.modules/shipping-address/command';
|
|
4
4
|
import { CheckPcccDeferralEligibilityResult, GetUserShippingAddressPayload, GetUserShippingAddressResult } from '../../dto/user.modules/shipping-address/query';
|
|
5
5
|
export declare class AmqpUserShippingAddressService {
|
|
6
6
|
private readonly client;
|
|
@@ -14,4 +14,5 @@ export declare class AmqpUserShippingAddressService {
|
|
|
14
14
|
getUserShippingAddress(payload: GetUserShippingAddressPayload, param: AbstractParam): Promise<GetUserShippingAddressResult>;
|
|
15
15
|
/** 개인통관고유부호번호 나중에 받기 노출 여부 반환 */
|
|
16
16
|
checkPcccDeferralEligibility(param: AbstractParam): Promise<CheckPcccDeferralEligibilityResult>;
|
|
17
|
+
addAdminAddress(payload: CreateAdminUserShippingAddressPayload, param: AbstractParam): Promise<CreateUserShippingAddressResult>;
|
|
17
18
|
}
|
|
@@ -37,6 +37,9 @@ let AmqpUserShippingAddressService = class AmqpUserShippingAddressService {
|
|
|
37
37
|
async checkPcccDeferralEligibility(param) {
|
|
38
38
|
return this.amqpManager.call('개인통관고유부호번호 나중에 받기 노출 여부 반환', 'user.shipping-address.check-pccc-deferral-eligibility', {}, param, { isErrorThrowing: true });
|
|
39
39
|
}
|
|
40
|
+
async addAdminAddress(payload, param) {
|
|
41
|
+
return this.amqpManager.call('관리자 배송지 추가', 'user.shipping-address.create-admin', payload, param, { isErrorThrowing: true });
|
|
42
|
+
}
|
|
40
43
|
};
|
|
41
44
|
exports.AmqpUserShippingAddressService = AmqpUserShippingAddressService;
|
|
42
45
|
exports.AmqpUserShippingAddressService = AmqpUserShippingAddressService = __decorate([
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,57 +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
|
-
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;
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,106 +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
|
-
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;
|