@yolo-croket-dev/amqp-access 0.7.406 → 0.7.407

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.407 — 네이버 MID 매핑 조회
4
+
5
+ - 현재 매핑, 최신 집계, 후보 이력, 파일 처리 시도의 조회 DTO와 RPC client를 공개합니다.
6
+ - 관리자 피드 조회에 `nvMidUpdatedAt`을 추가하고 일괄 개수·페이지·토큰 길이를 제한합니다.
7
+ - `entity-v2@0.3.66` 정식 버전에 의존합니다. 기존 예약 상품·엑셀 계약을 보존합니다.
8
+
3
9
  ## 0.7.404 — 즐겨찾기 중첩 배열 검증 보완
4
10
 
5
11
  - 즐겨찾기 각 항목을 단일 객체로 제한해 중첩 배열이 입력 검증을 통과하지 못하게 합니다.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.406",
3
+ "version": "0.7.407",
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.50",
25
25
  "@yolo-croket-dev/dto-v2": "0.2.37",
26
26
  "@yolo-croket-dev/entity": "0.2.110",
27
- "@yolo-croket-dev/entity-v2": "0.3.65",
27
+ "@yolo-croket-dev/entity-v2": "0.3.66",
28
28
  "class-transformer": "^0.5.1",
29
29
  "class-validator": "^0.13.2",
30
30
  "dotenv": "^16.3.1"
@@ -0,0 +1,72 @@
1
+ import { StoreItemNaverFeedImportStatusEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare const NAVER_MAPPING_DEFAULT_PAGE_SIZE = 100;
3
+ export declare const NAVER_MAPPING_MAX_PAGE_SIZE = 500;
4
+ export declare const NAVER_MAPPING_MAX_ITEM_IDS = 1000;
5
+ /** @author jun @description 네이버 매핑 조회 페이지 @process 페이지 크기와 토큰 입력을 제한한다. */
6
+ export declare class NaverProductMappingPagePayload {
7
+ pageSize?: number;
8
+ pageToken?: string | null;
9
+ }
10
+ /** @author jun @description 상품별 현재 매핑 조회 @process 상품 ID 형식을 검증한다. */
11
+ export declare class GetNaverProductMappingPayload {
12
+ itemId: string;
13
+ }
14
+ /** @author jun @description 현재 매핑 일괄 조회 @process 상품 개수와 각 상품 ID를 검증한다. */
15
+ export declare class GetNaverProductMappingsPayload extends NaverProductMappingPagePayload {
16
+ itemIds: string[];
17
+ }
18
+ /** @author jun @description 상품별 후보 이력 조회 @process 상품 ID와 페이지 입력을 검증한다. */
19
+ export declare class GetNaverProductMappingLogsPayload extends NaverProductMappingPagePayload {
20
+ itemId: string;
21
+ }
22
+ /** @author jun @description 파일 처리 시도 상세 조회 @process 처리 시도 ID를 검증한다. */
23
+ export declare class GetNaverProductImportPayload {
24
+ importLogId: string;
25
+ }
26
+ /** @author jun @description 파일 처리 시도 목록 조회 @process 파일 식별자와 페이지 입력을 검증한다. */
27
+ export declare class GetNaverProductImportsPayload extends NaverProductMappingPagePayload {
28
+ sourceFileId?: string;
29
+ }
30
+ export interface NaverProductMappingCounts {
31
+ totalCount: number;
32
+ matchedCount: number;
33
+ unmatchedCount: number;
34
+ invalidCount: number;
35
+ staleCount: number;
36
+ }
37
+ export interface GetNaverProductMappingStatusResult extends NaverProductMappingCounts {
38
+ latestImportAt: Date | null;
39
+ latestSourceFileId: string | null;
40
+ }
41
+ export interface GetNaverProductMappingResult {
42
+ itemId: string;
43
+ mappingStatus: 'matched' | 'unmatched' | 'invalid' | 'not_found';
44
+ nvMid: string | null;
45
+ nvMidUpdatedAt: Date | null;
46
+ sourceFileId: string | null;
47
+ }
48
+ export interface NaverProductMappingPageResult<T> {
49
+ items: T[];
50
+ pageSize: number;
51
+ nextPageToken: string | null;
52
+ hasMore: boolean;
53
+ }
54
+ export type GetNaverProductMappingsResult = NaverProductMappingPageResult<GetNaverProductMappingResult>;
55
+ /** @description 후보 이력이며 당시 반영 성공 여부를 추정하지 않는다. */
56
+ export interface NaverProductMappingLogResult {
57
+ itemId: string;
58
+ nvMid: string | null;
59
+ updatedAt: Date;
60
+ importLogId: string;
61
+ sourceFileId: string;
62
+ }
63
+ export type GetNaverProductMappingLogsResult = NaverProductMappingPageResult<NaverProductMappingLogResult>;
64
+ export interface GetNaverProductImportResult extends NaverProductMappingCounts {
65
+ _id: string;
66
+ sourceFileId: string;
67
+ status: StoreItemNaverFeedImportStatusEnum;
68
+ startedAt: Date;
69
+ completedAt: Date | null;
70
+ errorMessage: string | null;
71
+ }
72
+ export type GetNaverProductImportsResult = NaverProductMappingPageResult<GetNaverProductImportResult>;
@@ -0,0 +1,81 @@
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.GetNaverProductImportsPayload = exports.GetNaverProductImportPayload = exports.GetNaverProductMappingLogsPayload = exports.GetNaverProductMappingsPayload = exports.GetNaverProductMappingPayload = exports.NaverProductMappingPagePayload = exports.NAVER_MAPPING_MAX_ITEM_IDS = exports.NAVER_MAPPING_MAX_PAGE_SIZE = exports.NAVER_MAPPING_DEFAULT_PAGE_SIZE = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ exports.NAVER_MAPPING_DEFAULT_PAGE_SIZE = 100;
16
+ exports.NAVER_MAPPING_MAX_PAGE_SIZE = 500;
17
+ exports.NAVER_MAPPING_MAX_ITEM_IDS = 1000;
18
+ /** @author jun @description 네이버 매핑 조회 페이지 @process 페이지 크기와 토큰 입력을 제한한다. */
19
+ class NaverProductMappingPagePayload {
20
+ }
21
+ exports.NaverProductMappingPagePayload = NaverProductMappingPagePayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_transformer_1.Type)(() => Number),
25
+ (0, class_validator_1.IsInt)(),
26
+ (0, class_validator_1.Min)(1),
27
+ (0, class_validator_1.Max)(exports.NAVER_MAPPING_MAX_PAGE_SIZE),
28
+ __metadata("design:type", Number)
29
+ ], NaverProductMappingPagePayload.prototype, "pageSize", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.MaxLength)(2048),
34
+ __metadata("design:type", Object)
35
+ ], NaverProductMappingPagePayload.prototype, "pageToken", void 0);
36
+ /** @author jun @description 상품별 현재 매핑 조회 @process 상품 ID 형식을 검증한다. */
37
+ class GetNaverProductMappingPayload {
38
+ }
39
+ exports.GetNaverProductMappingPayload = GetNaverProductMappingPayload;
40
+ __decorate([
41
+ (0, class_validator_1.IsMongoId)(),
42
+ __metadata("design:type", String)
43
+ ], GetNaverProductMappingPayload.prototype, "itemId", void 0);
44
+ /** @author jun @description 현재 매핑 일괄 조회 @process 상품 개수와 각 상품 ID를 검증한다. */
45
+ class GetNaverProductMappingsPayload extends NaverProductMappingPagePayload {
46
+ }
47
+ exports.GetNaverProductMappingsPayload = GetNaverProductMappingsPayload;
48
+ __decorate([
49
+ (0, class_validator_1.IsArray)(),
50
+ (0, class_validator_1.ArrayNotEmpty)(),
51
+ (0, class_validator_1.ArrayMaxSize)(exports.NAVER_MAPPING_MAX_ITEM_IDS),
52
+ (0, class_validator_1.IsMongoId)({ each: true }),
53
+ __metadata("design:type", Array)
54
+ ], GetNaverProductMappingsPayload.prototype, "itemIds", void 0);
55
+ /** @author jun @description 상품별 후보 이력 조회 @process 상품 ID와 페이지 입력을 검증한다. */
56
+ class GetNaverProductMappingLogsPayload extends NaverProductMappingPagePayload {
57
+ }
58
+ exports.GetNaverProductMappingLogsPayload = GetNaverProductMappingLogsPayload;
59
+ __decorate([
60
+ (0, class_validator_1.IsMongoId)(),
61
+ __metadata("design:type", String)
62
+ ], GetNaverProductMappingLogsPayload.prototype, "itemId", void 0);
63
+ /** @author jun @description 파일 처리 시도 상세 조회 @process 처리 시도 ID를 검증한다. */
64
+ class GetNaverProductImportPayload {
65
+ }
66
+ exports.GetNaverProductImportPayload = GetNaverProductImportPayload;
67
+ __decorate([
68
+ (0, class_validator_1.IsMongoId)(),
69
+ __metadata("design:type", String)
70
+ ], GetNaverProductImportPayload.prototype, "importLogId", void 0);
71
+ /** @author jun @description 파일 처리 시도 목록 조회 @process 파일 식별자와 페이지 입력을 검증한다. */
72
+ class GetNaverProductImportsPayload extends NaverProductMappingPagePayload {
73
+ }
74
+ exports.GetNaverProductImportsPayload = GetNaverProductImportsPayload;
75
+ __decorate([
76
+ (0, class_validator_1.IsOptional)(),
77
+ (0, class_validator_1.IsString)(),
78
+ (0, class_validator_1.MinLength)(1),
79
+ (0, class_validator_1.MaxLength)(256),
80
+ __metadata("design:type", String)
81
+ ], GetNaverProductImportsPayload.prototype, "sourceFileId", void 0);
@@ -36,7 +36,7 @@ export declare class GetStoreItemNaverFeedsForAdminPayload {
36
36
  searchBefore?: string;
37
37
  limit: number;
38
38
  }
39
- export interface SearchedStoreItemNaverFeed extends Pick<StoreItemNaverFeedEntity, 'nvMid' | 'isShow' | 'customItemName' | 'brand' | 'maker' | 'shippingOrigin' | 'condition' | 'naverCategory' | 'syncStatus' | 'syncFailedReason' | 'syncFailedReasonType' | 'syncFailedDate' | 'editEventWords' | 'regDate' | 'lastModifyDate'> {
39
+ export interface SearchedStoreItemNaverFeed extends Pick<StoreItemNaverFeedEntity, 'nvMid' | 'nvMidUpdatedAt' | 'isShow' | 'customItemName' | 'brand' | 'maker' | 'shippingOrigin' | 'condition' | 'naverCategory' | 'syncStatus' | 'syncFailedReason' | 'syncFailedReasonType' | 'syncFailedDate' | 'editEventWords' | 'regDate' | 'lastModifyDate'> {
40
40
  _id: string;
41
41
  itemId: string;
42
42
  itemName?: string;
@@ -1,3 +1,4 @@
1
1
  export * from './get-store-item-naver-feeds-for-admin.dto';
2
2
  export * from './get-naver-feed-candidates.dto';
3
3
  export * from './get-naver-feeds-for-shipping.dto';
4
+ export * from './get-naver-product-mappings.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-store-item-naver-feeds-for-admin.dto"), exports);
18
18
  __exportStar(require("./get-naver-feed-candidates.dto"), exports);
19
19
  __exportStar(require("./get-naver-feeds-for-shipping.dto"), exports);
20
+ __exportStar(require("./get-naver-product-mappings.dto"), exports);
@@ -1,9 +1,21 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { BulkCreateStoreItemNaverFeedPayload, BulkCreateStoreItemNaverFeedResult, BulkCreateStoreItemNaverFeedWithExclusionPayload, BulkCreateStoreItemNaverFeedWithExclusionResult, UpdateStoreItemNaverFeedPayload, DeleteStoreItemNaverFeedPayload, BulkDeleteStoreItemNaverFeedPayload, GetStoreItemNaverFeedsForAdminPayload, GetStoreItemNaverFeedsForAdminResult, GetNaverFeedCandidatesPayload, GetNaverFeedCandidatesResult, GetNaverFeedsForShippingPayload, GetNaverFeedsForShippingResult } from '../dto/store-item-naver-feed';
3
+ import { GetNaverProductMappingStatusResult, GetNaverProductMappingPayload, GetNaverProductMappingResult, GetNaverProductMappingsPayload, GetNaverProductMappingsResult, GetNaverProductMappingLogsPayload, GetNaverProductMappingLogsResult, GetNaverProductImportPayload, GetNaverProductImportResult, GetNaverProductImportsPayload, GetNaverProductImportsResult, BulkCreateStoreItemNaverFeedPayload, BulkCreateStoreItemNaverFeedResult, BulkCreateStoreItemNaverFeedWithExclusionPayload, BulkCreateStoreItemNaverFeedWithExclusionResult, UpdateStoreItemNaverFeedPayload, DeleteStoreItemNaverFeedPayload, BulkDeleteStoreItemNaverFeedPayload, GetStoreItemNaverFeedsForAdminPayload, GetStoreItemNaverFeedsForAdminResult, GetNaverFeedCandidatesPayload, GetNaverFeedCandidatesResult, GetNaverFeedsForShippingPayload, GetNaverFeedsForShippingResult } from '../dto/store-item-naver-feed';
4
4
  export declare class AmqpStoreItemNaverFeedService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
8
+ getNaverProductMappingStatus(param: AbstractParam): Promise<GetNaverProductMappingStatusResult>;
9
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
10
+ getNaverProductMapping(payload: GetNaverProductMappingPayload, param: AbstractParam): Promise<GetNaverProductMappingResult>;
11
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
12
+ getNaverProductMappings(payload: GetNaverProductMappingsPayload, param: AbstractParam): Promise<GetNaverProductMappingsResult>;
13
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
14
+ getNaverProductMappingLogs(payload: GetNaverProductMappingLogsPayload, param: AbstractParam): Promise<GetNaverProductMappingLogsResult>;
15
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
16
+ getNaverProductImport(payload: GetNaverProductImportPayload, param: AbstractParam): Promise<GetNaverProductImportResult>;
17
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
18
+ getNaverProductImports(payload: GetNaverProductImportsPayload, param: AbstractParam): Promise<GetNaverProductImportsResult>;
7
19
  constructor(client: ClientProxy);
8
20
  bulkCreateStoreItemNaverFeed(payload: BulkCreateStoreItemNaverFeedPayload, param: AbstractParam): Promise<BulkCreateStoreItemNaverFeedResult>;
9
21
  bulkCreateStoreItemNaverFeedWithExclusion(payload: BulkCreateStoreItemNaverFeedWithExclusionPayload, param: AbstractParam): Promise<BulkCreateStoreItemNaverFeedWithExclusionResult>;
@@ -17,6 +17,30 @@ const common_1 = require("@nestjs/common");
17
17
  const microservices_1 = require("@nestjs/microservices");
18
18
  const functions_1 = require("@yolo-croket-dev/core/functions");
19
19
  let AmqpStoreItemNaverFeedService = class AmqpStoreItemNaverFeedService {
20
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
21
+ async getNaverProductMappingStatus(param) {
22
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.status', undefined, param, { isErrorThrowing: true });
23
+ }
24
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
25
+ async getNaverProductMapping(payload, param) {
26
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.current', payload, param, { isErrorThrowing: true });
27
+ }
28
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
29
+ async getNaverProductMappings(payload, param) {
30
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.current-batch', payload, param, { isErrorThrowing: true });
31
+ }
32
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
33
+ async getNaverProductMappingLogs(payload, param) {
34
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.history', payload, param, { isErrorThrowing: true });
35
+ }
36
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
37
+ async getNaverProductImport(payload, param) {
38
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.import', payload, param, { isErrorThrowing: true });
39
+ }
40
+ /** @author jun @description 네이버 상품 매핑 조회 @process 내부 RPC로 조회를 위임한다. */
41
+ async getNaverProductImports(payload, param) {
42
+ return this.amqpManager.call('네이버 상품 매핑 조회', 'store-item-naver-feed.get-mapping.imports', payload, param, { isErrorThrowing: true });
43
+ }
20
44
  constructor(client) {
21
45
  this.client = client;
22
46
  this.amqpManager = new functions_1.AmqpManagement(this.client);
@@ -1,6 +0,0 @@
1
- /**
2
- * @author sj
3
- * @description 사전 협의 셀러 주문의 재고 확인중 자동 전환 요청이다.
4
- */
5
- export declare class AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload {
6
- }
@@ -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;