@yolo-croket-dev/amqp-access 0.4.41-jun.8 → 0.4.41-jun.9
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/command/index.d.ts +1 -0
- package/store-item-server/dto/store-item/command/index.js +1 -0
- package/store-item-server/dto/store-item/command/update-is-selling-bulk.dto.d.ts +9 -0
- package/store-item-server/dto/store-item/command/update-is-selling-bulk.dto.js +41 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +3 -0
package/package.json
CHANGED
|
@@ -19,3 +19,4 @@ __exportStar(require("./reg-store-item.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./edit-store-item.dto"), exports);
|
|
20
20
|
__exportStar(require("./update-brand-infos.dto"), exports);
|
|
21
21
|
__exportStar(require("./reg-store-item-bulk.dto"), exports);
|
|
22
|
+
__exportStar(require("./update-is-selling-bulk.dto"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
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.UpdateIsSellingBulkPayload = exports.UpdateIsSellingBulkData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class UpdateIsSellingBulkData {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateIsSellingBulkData = UpdateIsSellingBulkData;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateIsSellingBulkData.prototype, "itemId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], UpdateIsSellingBulkData.prototype, "isSelling", void 0);
|
|
26
|
+
class UpdateIsSellingBulkPayload {
|
|
27
|
+
}
|
|
28
|
+
exports.UpdateIsSellingBulkPayload = UpdateIsSellingBulkPayload;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
+
(0, class_transformer_1.Type)(() => UpdateIsSellingBulkData),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], UpdateIsSellingBulkPayload.prototype, "datas", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsNumber)()
|
|
38
|
+
/** 원하는 만료 연장일 */
|
|
39
|
+
,
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], UpdateIsSellingBulkPayload.prototype, "addDueDate", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
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, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload } from '../dto/store-item';
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, UpdateIsSellingBulkPayload } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -36,4 +36,5 @@ export declare class AmqpStoreItemService {
|
|
|
36
36
|
searchStoreItemsForSeduceAddCart(payload: SearchStoreItemsForSeduceAddCartPayload, param: AbstractParam): Promise<SearchStoreItemsForSeduceAddCartResult>;
|
|
37
37
|
getStoreItemBindIssuedCouponForPayment(payload: GetStoreItemBindIssuedCouponForPaymentPayload, param: AbstractParam): Promise<GetStoreItemBindIssuedCouponForPaymentResult>;
|
|
38
38
|
getStaleStoreItemsForExcel(payload: GetStaleStoreItemsForExcelPayload, param: AbstractParam): Promise<GetStaleStoreItemsForExcelResult>;
|
|
39
|
+
updateIsSellingBulk(payload: UpdateIsSellingBulkPayload, param: AbstractParam): Promise<void>;
|
|
39
40
|
}
|
|
@@ -108,6 +108,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
108
108
|
async getStaleStoreItemsForExcel(payload, param) {
|
|
109
109
|
return this.amqpManager.call('셀러 판매 상품 관리 리스트 호출', 'store-item.get.stale-store-items-for-excel', payload, param, { isErrorThrowing: true });
|
|
110
110
|
}
|
|
111
|
+
async updateIsSellingBulk(payload, param) {
|
|
112
|
+
return this.amqpManager.call('상품 판매 상태 대량 업데이트', 'store-item.update.is-selling-bulk', payload, param, { isErrorThrowing: true });
|
|
113
|
+
}
|
|
111
114
|
};
|
|
112
115
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
113
116
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|