@yolo-croket-dev/amqp-access 0.0.65 → 0.0.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -19,7 +19,7 @@ export declare class LegacyStoreItemCategoty {
19
19
  mainCategory: string;
20
20
  subCategory?: string;
21
21
  }
22
- export declare class GetLegacyStoreItemsPayload {
22
+ export declare class GetLegacyStoreItemsByAtlasSearchPayload {
23
23
  /** 다음 페이징 토큰 */
24
24
  searchAfter?: string;
25
25
  /** 이전 페이징 토큰 */
@@ -63,7 +63,7 @@ export declare class GetLegacyStoreItemsPayload {
63
63
  isAllItemNameInclude?: boolean;
64
64
  isExistsMaxDiscountCoupon?: boolean;
65
65
  }
66
- export interface GetLegacyStoreItemsResult {
66
+ export interface GetLegacyStoreItemsByAtlasSearchResult {
67
67
  maxPage: number;
68
68
  storeItemNums: number;
69
69
  storeItemList: StoreItemLegacyEntity[];
@@ -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.GetLegacyStoreItemsPayload = exports.LegacyStoreItemCategoty = exports.GetLegacyStoreItemsSortTypeEnum = exports.GetLegacyStoreItemsDTypeEnum = void 0;
12
+ exports.GetLegacyStoreItemsByAtlasSearchPayload = exports.LegacyStoreItemCategoty = exports.GetLegacyStoreItemsSortTypeEnum = exports.GetLegacyStoreItemsDTypeEnum = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  var GetLegacyStoreItemsDTypeEnum;
@@ -42,49 +42,49 @@ __decorate([
42
42
  (0, class_validator_1.IsOptional)(),
43
43
  __metadata("design:type", String)
44
44
  ], LegacyStoreItemCategoty.prototype, "subCategory", void 0);
45
- class GetLegacyStoreItemsPayload {
45
+ class GetLegacyStoreItemsByAtlasSearchPayload {
46
46
  }
47
- exports.GetLegacyStoreItemsPayload = GetLegacyStoreItemsPayload;
47
+ exports.GetLegacyStoreItemsByAtlasSearchPayload = GetLegacyStoreItemsByAtlasSearchPayload;
48
48
  __decorate([
49
49
  (0, class_validator_1.IsString)(),
50
50
  (0, class_validator_1.IsOptional)(),
51
51
  __metadata("design:type", String)
52
- ], GetLegacyStoreItemsPayload.prototype, "searchAfter", void 0);
52
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "searchAfter", void 0);
53
53
  __decorate([
54
54
  (0, class_validator_1.IsString)(),
55
55
  (0, class_validator_1.IsOptional)(),
56
56
  __metadata("design:type", String)
57
- ], GetLegacyStoreItemsPayload.prototype, "searchBefore", void 0);
57
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "searchBefore", void 0);
58
58
  __decorate([
59
59
  (0, class_validator_1.IsNumber)(),
60
60
  __metadata("design:type", Number)
61
- ], GetLegacyStoreItemsPayload.prototype, "page", void 0);
61
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "page", void 0);
62
62
  __decorate([
63
63
  (0, class_validator_1.IsNumber)()
64
64
  /** 상품 수 */
65
65
  ,
66
66
  __metadata("design:type", Number)
67
- ], GetLegacyStoreItemsPayload.prototype, "limit", void 0);
67
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "limit", void 0);
68
68
  __decorate([
69
69
  (0, class_validator_1.IsString)(),
70
70
  (0, class_validator_1.IsEnum)(GetLegacyStoreItemsSortTypeEnum)
71
71
  /** 정렬 방법 */
72
72
  ,
73
73
  __metadata("design:type", String)
74
- ], GetLegacyStoreItemsPayload.prototype, "sortType", void 0);
74
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "sortType", void 0);
75
75
  __decorate([
76
76
  (0, class_validator_1.IsBoolean)()
77
77
  /** 솔드아웃도 보여줘? */
78
78
  ,
79
79
  __metadata("design:type", Boolean)
80
- ], GetLegacyStoreItemsPayload.prototype, "viewSoldOut", void 0);
80
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "viewSoldOut", void 0);
81
81
  __decorate([
82
82
  (0, class_validator_1.IsMongoId)(),
83
83
  (0, class_validator_1.IsOptional)()
84
84
  /** 스토어 아이디 */
85
85
  ,
86
86
  __metadata("design:type", String)
87
- ], GetLegacyStoreItemsPayload.prototype, "storeId", void 0);
87
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "storeId", void 0);
88
88
  __decorate([
89
89
  (0, class_validator_1.IsArray)(),
90
90
  (0, class_validator_1.IsOptional)(),
@@ -93,7 +93,7 @@ __decorate([
93
93
  /** 검색 카테고리 리스트 */
94
94
  ,
95
95
  __metadata("design:type", Array)
96
- ], GetLegacyStoreItemsPayload.prototype, "categoryList", void 0);
96
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "categoryList", void 0);
97
97
  __decorate([
98
98
  (0, class_validator_1.IsOptional)(),
99
99
  (0, class_validator_1.IsArray)(),
@@ -101,7 +101,7 @@ __decorate([
101
101
  /** 검색 나라 리스트 */
102
102
  ,
103
103
  __metadata("design:type", Array)
104
- ], GetLegacyStoreItemsPayload.prototype, "nationList", void 0);
104
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "nationList", void 0);
105
105
  __decorate([
106
106
  (0, class_validator_1.IsString)(),
107
107
  (0, class_validator_1.IsOptional)(),
@@ -109,70 +109,70 @@ __decorate([
109
109
  /** 배송 방법 */
110
110
  ,
111
111
  __metadata("design:type", String)
112
- ], GetLegacyStoreItemsPayload.prototype, "DType", void 0);
112
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "DType", void 0);
113
113
  __decorate([
114
114
  (0, class_validator_1.IsString)(),
115
115
  (0, class_validator_1.IsOptional)()
116
116
  /** 검색어 */
117
117
  ,
118
118
  __metadata("design:type", String)
119
- ], GetLegacyStoreItemsPayload.prototype, "inputText", void 0);
119
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "inputText", void 0);
120
120
  __decorate([
121
121
  (0, class_validator_1.IsString)(),
122
122
  (0, class_validator_1.IsOptional)()
123
123
  /** 검색 키워드로 검색한 상품 리스트인가 */
124
124
  ,
125
125
  __metadata("design:type", String)
126
- ], GetLegacyStoreItemsPayload.prototype, "searchKeywordId", void 0);
126
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "searchKeywordId", void 0);
127
127
  __decorate([
128
128
  (0, class_validator_1.IsOptional)(),
129
129
  (0, class_validator_1.IsNumber)()
130
130
  /** 최소 가격 */
131
131
  ,
132
132
  __metadata("design:type", Number)
133
- ], GetLegacyStoreItemsPayload.prototype, "minPrice", void 0);
133
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "minPrice", void 0);
134
134
  __decorate([
135
135
  (0, class_validator_1.IsOptional)(),
136
136
  (0, class_validator_1.IsNumber)()
137
137
  /** 최대 가격 */
138
138
  ,
139
139
  __metadata("design:type", Number)
140
- ], GetLegacyStoreItemsPayload.prototype, "maxPrice", void 0);
140
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "maxPrice", void 0);
141
141
  __decorate([
142
142
  (0, class_validator_1.IsBoolean)(),
143
143
  (0, class_validator_1.IsOptional)()
144
144
  /** 상품 가격 배송비 포함하여 검색할것인가 */
145
145
  ,
146
146
  __metadata("design:type", Boolean)
147
- ], GetLegacyStoreItemsPayload.prototype, "isItemPriceWithShippingFee", void 0);
147
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isItemPriceWithShippingFee", void 0);
148
148
  __decorate([
149
149
  (0, class_validator_1.IsArray)(),
150
150
  (0, class_validator_1.IsString)({ each: true }),
151
151
  (0, class_validator_1.IsOptional)(),
152
152
  __metadata("design:type", Array)
153
- ], GetLegacyStoreItemsPayload.prototype, "exceptItemIds", void 0);
153
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "exceptItemIds", void 0);
154
154
  __decorate([
155
155
  (0, class_validator_1.IsMongoId)(),
156
156
  (0, class_validator_1.IsOptional)(),
157
157
  __metadata("design:type", String)
158
- ], GetLegacyStoreItemsPayload.prototype, "selectionFrameDataId", void 0);
158
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "selectionFrameDataId", void 0);
159
159
  __decorate([
160
160
  (0, class_validator_1.IsBoolean)(),
161
161
  (0, class_validator_1.IsOptional)(),
162
162
  __metadata("design:type", Boolean)
163
- ], GetLegacyStoreItemsPayload.prototype, "isPick", void 0);
163
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isPick", void 0);
164
164
  __decorate([
165
165
  (0, class_validator_1.IsBoolean)(),
166
166
  (0, class_validator_1.IsOptional)(),
167
167
  __metadata("design:type", Boolean)
168
- ], GetLegacyStoreItemsPayload.prototype, "isShippingFeeFree", void 0);
168
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isShippingFeeFree", void 0);
169
169
  __decorate([
170
170
  (0, class_validator_1.IsBoolean)(),
171
171
  (0, class_validator_1.IsOptional)(),
172
172
  __metadata("design:type", Boolean)
173
- ], GetLegacyStoreItemsPayload.prototype, "isAllItemNameInclude", void 0);
173
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isAllItemNameInclude", void 0);
174
174
  __decorate([
175
175
  (0, class_validator_1.IsBoolean)(),
176
176
  (0, class_validator_1.IsOptional)(),
177
177
  __metadata("design:type", Boolean)
178
- ], GetLegacyStoreItemsPayload.prototype, "isExistsMaxDiscountCoupon", void 0);
178
+ ], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isExistsMaxDiscountCoupon", void 0);
@@ -2,4 +2,4 @@ export * from './get-store-item-legacies.dto';
2
2
  export * from './get-selling-item-ids-by-store-id.dto';
3
3
  export * from './search-selling-store-items.dto';
4
4
  export * from './for-es';
5
- export * from './get-legacy-store-items.dto';
5
+ export * from './get-legacy-store-items-by-atlas-search.dto';
@@ -18,4 +18,4 @@ __exportStar(require("./get-store-item-legacies.dto"), exports);
18
18
  __exportStar(require("./get-selling-item-ids-by-store-id.dto"), exports);
19
19
  __exportStar(require("./search-selling-store-items.dto"), exports);
20
20
  __exportStar(require("./for-es"), exports);
21
- __exportStar(require("./get-legacy-store-items.dto"), exports);
21
+ __exportStar(require("./get-legacy-store-items-by-atlas-search.dto"), exports);
@@ -1,11 +1,14 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult } from '../dto/store-item';
3
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
+ /** 이전 버전 */
8
9
  getStoreItemLegacies(payload: GetStoreItemLegaciesPayload, param: AbstractParam): Promise<GetStoreItemLegaciesResult>;
10
+ /** atlas 검색 */
11
+ getLegacyStoreItemsByAtlasSearch(payload: GetLegacyStoreItemsByAtlasSearchPayload, param: AbstractParam): Promise<GetLegacyStoreItemsByAtlasSearchResult>;
9
12
  getSellingItemIdsByStoreId(payload: GetSellingItemIdsByStoreIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByStoreIdResult>;
10
13
  searchSellingStoreItems(payload: SearchSellingStoreItemsPayload, param: AbstractParam): Promise<SearchSellingStoreItemsResult>;
11
14
  getStoreItemsForEs(payload: GetStoreItemsForESPayload, param: AbstractParam): Promise<GetStoreItemsForESResult>;
@@ -21,9 +21,14 @@ let AmqpStoreItemService = class AmqpStoreItemService {
21
21
  this.client = client;
22
22
  this.amqpManager = new functions_1.AmqpManagement(this.client);
23
23
  }
24
+ /** 이전 버전 */
24
25
  async getStoreItemLegacies(payload, param) {
25
26
  return this.amqpManager.call('store item 레거시 조회', 'store-item.get.store-item-leyacies', payload, param, { isErrorThrowing: true });
26
27
  }
28
+ /** atlas 검색 */
29
+ async getLegacyStoreItemsByAtlasSearch(payload, param) {
30
+ return this.amqpManager.call('store item 레거시 조회 atlas ', 'store-item.get.legacy-store-items-by-atlas-search', payload, param, { isErrorThrowing: true });
31
+ }
27
32
  async getSellingItemIdsByStoreId(payload, param) {
28
33
  return this.amqpManager.call('해당 스토어에 판매중인 상품 아이디 리스트 호출', 'store-item.get.selling-item-ids-by-store-id', payload, param, { isErrorThrowing: true });
29
34
  }