@yolo-croket-dev/amqp-access 0.0.65 → 0.0.67
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 +1 -1
- package/store-item-server/dto/store-item/query/{get-legacy-store-items.dto.d.ts → get-legacy-store-items-by-atlas-search.dto.d.ts} +2 -2
- package/store-item-server/dto/store-item/query/{get-legacy-store-items.dto.js → get-legacy-store-items-by-atlas-search.dto.js} +24 -24
- package/store-item-server/dto/store-item/query/index.d.ts +1 -1
- package/store-item-server/dto/store-item/query/index.js +1 -1
- package/store-item-server/services/amqp.store-item.service.d.ts +4 -1
- package/store-item-server/services/amqp.store-item.service.js +5 -0
- package/user-service/dto/store/query/get-stores-for-toss-payment.dto.d.ts +5 -0
- package/user-service/dto/store/query/get-stores-for-toss-payment.dto.js +10 -0
- package/elastic-service/services/amqp.es-store-item.service.d.ts +0 -18
- package/elastic-service/services/amqp.es-store-item.service.js +0 -60
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export declare class LegacyStoreItemCategoty {
|
|
|
19
19
|
mainCategory: string;
|
|
20
20
|
subCategory?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare class
|
|
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
|
|
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.
|
|
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
|
|
45
|
+
class GetLegacyStoreItemsByAtlasSearchPayload {
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
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
|
-
],
|
|
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
|
-
],
|
|
57
|
+
], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "searchBefore", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, class_validator_1.IsNumber)(),
|
|
60
60
|
__metadata("design:type", Number)
|
|
61
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
}
|
|
@@ -26,7 +26,12 @@
|
|
|
26
26
|
import { Types } from 'mongoose';
|
|
27
27
|
export declare class GetStoresForTossPaymentPayload {
|
|
28
28
|
userIds?: (string | Types.ObjectId)[];
|
|
29
|
+
/** @description userIds 값 존재하면 무시 */
|
|
29
30
|
page?: number;
|
|
31
|
+
/** @description 입정승인된 날짜 시작일 */
|
|
32
|
+
startVerificationApprovedUpdatedAt?: Date;
|
|
33
|
+
/** @description 입정승인된 날짜 끝일 */
|
|
34
|
+
endVerificationApprovedUpdatedAt?: Date;
|
|
30
35
|
}
|
|
31
36
|
export declare enum GetStoresForTossPaymentErrorTypeEnum {
|
|
32
37
|
/** @description 스토어가 존재하지 않는 userId들이 있을 때 - message에 userId list 반환 */
|
|
@@ -24,6 +24,16 @@ __decorate([
|
|
|
24
24
|
(0, class_validator_1.IsOptional)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], GetStoresForTossPaymentPayload.prototype, "page", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsDate)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], GetStoresForTossPaymentPayload.prototype, "startVerificationApprovedUpdatedAt", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsDate)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], GetStoresForTossPaymentPayload.prototype, "endVerificationApprovedUpdatedAt", void 0);
|
|
27
37
|
var GetStoresForTossPaymentErrorTypeEnum;
|
|
28
38
|
(function (GetStoresForTossPaymentErrorTypeEnum) {
|
|
29
39
|
/** @description 스토어가 존재하지 않는 userId들이 있을 때 - message에 userId list 반환 */
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { ESStoreItemSearchDataPayload, ESStoreItemSearchDataResult, ESStoreItemCountGroupPayloadDto, ESStoreItemCountGroupResultDto, ESStoreItemRandomSearchDataPayload, ESStoreItemRandomSearchDataResult, ESStoreItemDeleteDataPayloadDto, ESStoreItemDeleteDataResultDto, ESStoreItemUpdateDataByItemNamePayloadDto, ESStoreItemUpdateDataByItemNameResultDto, ESStoreItemCreateDataPayload, ESStoreItemCreateDataResult, ESStoreItemUpdateDataPayload, ESStoreItemUpdateDataResult, ESStoreItemCreateAndUpdateDataBulkPayload } from '../dto/es-store-item-v1';
|
|
4
|
-
export declare class AmqpEsStoreItemV2Service {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly amqpManager;
|
|
7
|
-
constructor(client: ClientProxy);
|
|
8
|
-
refreshIndex(payload: void, param: AbstractParam): Promise<void>;
|
|
9
|
-
refreshAllDataOnlyPublish(payload: void, param: AbstractParam): Promise<void>;
|
|
10
|
-
searchData(payload: ESStoreItemSearchDataPayload, param: AbstractParam): Promise<ESStoreItemSearchDataResult>;
|
|
11
|
-
countGroup(payload: ESStoreItemCountGroupPayloadDto, param: AbstractParam): Promise<ESStoreItemCountGroupResultDto>;
|
|
12
|
-
createData(payload: ESStoreItemCreateDataPayload, param: AbstractParam): Promise<ESStoreItemCreateDataResult>;
|
|
13
|
-
createAndUpdateBulk(payload: ESStoreItemCreateAndUpdateDataBulkPayload, param: AbstractParam): Promise<void>;
|
|
14
|
-
deleteData(payload: ESStoreItemDeleteDataPayloadDto, param: AbstractParam): Promise<ESStoreItemDeleteDataResultDto>;
|
|
15
|
-
updateData(payload: ESStoreItemUpdateDataPayload, param: AbstractParam): Promise<ESStoreItemUpdateDataResult>;
|
|
16
|
-
updateDataByItemName(payload: ESStoreItemUpdateDataByItemNamePayloadDto, param: AbstractParam): Promise<ESStoreItemUpdateDataByItemNameResultDto>;
|
|
17
|
-
searchRandomData(payload: ESStoreItemRandomSearchDataPayload, param: AbstractParam): Promise<ESStoreItemRandomSearchDataResult>;
|
|
18
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AmqpEsStoreItemV2Service = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
-
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
-
let AmqpEsStoreItemV2Service = class AmqpEsStoreItemV2Service {
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
-
}
|
|
24
|
-
async refreshIndex(payload, param) {
|
|
25
|
-
return this.amqpManager.call('es store item v1 index 갱신', 'ES_STORE_ITEM_REFRESH_INDEX', payload, param, { isErrorThrowing: true });
|
|
26
|
-
}
|
|
27
|
-
async refreshAllDataOnlyPublish(payload, param) {
|
|
28
|
-
this.amqpManager.onlyPublish('es store item v1 전체 데이터 갱신', 'ES_STORE_ITEM_REFRESH_DATA_SUCCESS', payload, param);
|
|
29
|
-
}
|
|
30
|
-
async searchData(payload, param) {
|
|
31
|
-
return this.amqpManager.call('es store item v1 상품 검색', 'ES_STORE_ITEM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
32
|
-
}
|
|
33
|
-
async countGroup(payload, param) {
|
|
34
|
-
return this.amqpManager.call('es store item v1 상품 개수 group 검색', 'ES_STORE_ITEM_COUNT_GROUP', payload, param, { isErrorThrowing: true });
|
|
35
|
-
}
|
|
36
|
-
async createData(payload, param) {
|
|
37
|
-
return this.amqpManager.call('es store item v1 상품 생성', 'ES_STORE_ITEM_CREATE_DATA', payload, param, { isErrorThrowing: true });
|
|
38
|
-
}
|
|
39
|
-
async createAndUpdateBulk(payload, param) {
|
|
40
|
-
return this.amqpManager.call('es store item v1 데이터 대량 업데이트', 'ES_STORE_ITEM_CREATE_AND_UPDATE_BULK', payload, param, { isErrorThrowing: true });
|
|
41
|
-
}
|
|
42
|
-
async deleteData(payload, param) {
|
|
43
|
-
return this.amqpManager.call('es store item v1 데이터 삭제', 'ES_STORE_ITEM_DELETE_DATA', payload, param, { isErrorThrowing: true });
|
|
44
|
-
}
|
|
45
|
-
async updateData(payload, param) {
|
|
46
|
-
return this.amqpManager.call('es store item v1 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA', payload, param, { isErrorThrowing: true });
|
|
47
|
-
}
|
|
48
|
-
async updateDataByItemName(payload, param) {
|
|
49
|
-
return this.amqpManager.call('es store item v1 상품명으로 부터 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA_BY_ITEM_NAME', payload, param, { isErrorThrowing: true });
|
|
50
|
-
}
|
|
51
|
-
async searchRandomData(payload, param) {
|
|
52
|
-
return this.amqpManager.call('es store item v1 랜덤 검색', 'ES_STORE_ITEM_RANDOM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service;
|
|
56
|
-
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service = __decorate([
|
|
57
|
-
(0, common_1.Injectable)(),
|
|
58
|
-
__param(0, (0, common_1.Inject)('ELASTIC_SERVICE_PROVIDER')),
|
|
59
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
60
|
-
], AmqpEsStoreItemV2Service);
|