@yolo-croket-dev/amqp-access 0.4.112-sj1 → 0.4.113
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/coupon-server/dto/coupon-template/query/get-store-item-coupons-for-extraction-by-type.dto.d.ts +14 -0
- package/{store-item-server/dto/brand-cohort/command/create-brand-cohort.dto.js → coupon-server/dto/coupon-template/query/get-store-item-coupons-for-extraction-by-type.dto.js} +11 -14
- package/coupon-server/dto/coupon-template/query/index.d.ts +1 -0
- package/coupon-server/dto/coupon-template/query/index.js +1 -0
- package/coupon-server/services/amqp.coupon-template.service.d.ts +2 -1
- package/coupon-server/services/amqp.coupon-template.service.js +3 -0
- package/order-server/dto/purchasedinfos/query/get-purchased-info-items-for-extraction-by-type.dto.d.ts +11 -0
- package/order-server/dto/purchasedinfos/query/get-purchased-info-items-for-extraction-by-type.dto.js +6 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +2 -1
- package/order-server/services/amqp.purchased-info.service.js +3 -0
- package/package.json +2 -2
- package/store-item-server/amqp.store-item-server.module.js +0 -4
- package/store-item-server/dto/index.d.ts +0 -2
- package/store-item-server/dto/index.js +0 -2
- package/store-item-server/dto/store-item/command/index.d.ts +0 -1
- package/store-item-server/dto/store-item/command/index.js +0 -1
- package/store-item-server/dto/store-item/query/get-store-items-for-extraction-by-type.dto.d.ts +9 -0
- package/store-item-server/dto/store-item/query/get-store-items-for-extraction-by-type.dto.js +6 -0
- package/store-item-server/dto/store-item/query/index.d.ts +2 -1
- package/store-item-server/dto/store-item/query/index.js +2 -1
- package/store-item-server/dto/store-item/query/resize-item-img.dto.d.ts +3 -0
- package/store-item-server/dto/{brand/command/delete-brand.dto.js → store-item/query/resize-item-img.dto.js} +4 -5
- package/store-item-server/services/amqp.store-item.service.d.ts +3 -1
- package/store-item-server/services/amqp.store-item.service.js +6 -0
- package/store-item-server/services/index.d.ts +0 -2
- package/store-item-server/services/index.js +0 -2
- package/store-item-server/dto/brand/command/auto-create-brand.dto.d.ts +0 -8
- package/store-item-server/dto/brand/command/auto-create-brand.dto.js +0 -30
- package/store-item-server/dto/brand/command/create-brand.dto.d.ts +0 -3
- package/store-item-server/dto/brand/command/create-brand.dto.js +0 -21
- package/store-item-server/dto/brand/command/delete-brand.dto.d.ts +0 -3
- package/store-item-server/dto/brand/command/index.d.ts +0 -5
- package/store-item-server/dto/brand/command/index.js +0 -21
- package/store-item-server/dto/brand/command/update-brand-eng-name.dto.d.ts +0 -4
- package/store-item-server/dto/brand/command/update-brand-eng-name.dto.js +0 -26
- package/store-item-server/dto/brand/command/update-brand-name.dto.d.ts +0 -4
- package/store-item-server/dto/brand/command/update-brand-name.dto.js +0 -26
- package/store-item-server/dto/brand/index.d.ts +0 -2
- package/store-item-server/dto/brand/index.js +0 -18
- package/store-item-server/dto/brand/query/get-brands-by-brand-names.dto.d.ts +0 -6
- package/store-item-server/dto/brand/query/get-brands-by-brand-names.dto.js +0 -21
- package/store-item-server/dto/brand/query/get-brands-for-admin.dto.d.ts +0 -9
- package/store-item-server/dto/brand/query/get-brands-for-admin.dto.js +0 -34
- package/store-item-server/dto/brand/query/index.d.ts +0 -2
- package/store-item-server/dto/brand/query/index.js +0 -18
- package/store-item-server/dto/brand-cohort/command/create-brand-cohort.dto.d.ts +0 -5
- package/store-item-server/dto/brand-cohort/command/delete-brand-cohort.dto.d.ts +0 -3
- package/store-item-server/dto/brand-cohort/command/delete-brand-cohort.dto.js +0 -21
- package/store-item-server/dto/brand-cohort/command/index.d.ts +0 -3
- package/store-item-server/dto/brand-cohort/command/index.js +0 -19
- package/store-item-server/dto/brand-cohort/command/update-brand-cohort.dto.d.ts +0 -6
- package/store-item-server/dto/brand-cohort/command/update-brand-cohort.dto.js +0 -36
- package/store-item-server/dto/brand-cohort/index.d.ts +0 -2
- package/store-item-server/dto/brand-cohort/index.js +0 -18
- package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.d.ts +0 -11
- package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.js +0 -34
- package/store-item-server/dto/brand-cohort/query/index.d.ts +0 -1
- package/store-item-server/dto/brand-cohort/query/index.js +0 -17
- package/store-item-server/dto/store-item/command/update-brand-id-bulk.dto.d.ts +0 -4
- package/store-item-server/dto/store-item/command/update-brand-id-bulk.dto.js +0 -26
- package/store-item-server/dto/store-item/query/get-store-item-count-for-brand.dto.d.ts +0 -6
- package/store-item-server/dto/store-item/query/get-store-item-count-for-brand.dto.js +0 -23
- package/store-item-server/services/amqp.brand-cohort.service.d.ts +0 -13
- package/store-item-server/services/amqp.brand-cohort.service.js +0 -42
- package/store-item-server/services/amqp.brand.service.d.ts +0 -14
- package/store-item-server/services/amqp.brand.service.js +0 -48
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CouponTemplateCondition, CouponTemplateEntity } from '@yolo-croket-dev/entity/src/coupon-template';
|
|
2
|
+
export declare class GetStoreItemCouponsForExtractionByTypePayload {
|
|
3
|
+
storeItemIds: string[];
|
|
4
|
+
startDate: Date;
|
|
5
|
+
}
|
|
6
|
+
interface PickedUseConditionInfo extends Pick<CouponTemplateCondition, 'ableStoreItemList'> {
|
|
7
|
+
}
|
|
8
|
+
interface PickedCoupon extends Pick<CouponTemplateEntity, 'isAdCenterCoupon'> {
|
|
9
|
+
useConditionInfo: PickedUseConditionInfo;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetStoreItemCouponsForExtractionByTypeResult {
|
|
12
|
+
[storeItemId: string]: PickedCoupon[];
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -9,23 +9,20 @@ 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.GetStoreItemCouponsForExtractionByTypeResult = exports.GetStoreItemCouponsForExtractionByTypePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class GetStoreItemCouponsForExtractionByTypePayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreateBrandCohortPayload.prototype, "cohortName", void 0);
|
|
16
|
+
exports.GetStoreItemCouponsForExtractionByTypePayload = GetStoreItemCouponsForExtractionByTypePayload;
|
|
22
17
|
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
23
19
|
(0, class_validator_1.IsArray)(),
|
|
24
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
25
20
|
__metadata("design:type", Array)
|
|
26
|
-
],
|
|
21
|
+
], GetStoreItemCouponsForExtractionByTypePayload.prototype, "storeItemIds", void 0);
|
|
27
22
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
(0, class_validator_1.IsDate)(),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], GetStoreItemCouponsForExtractionByTypePayload.prototype, "startDate", void 0);
|
|
26
|
+
class GetStoreItemCouponsForExtractionByTypeResult {
|
|
27
|
+
}
|
|
28
|
+
exports.GetStoreItemCouponsForExtractionByTypeResult = GetStoreItemCouponsForExtractionByTypeResult;
|
|
@@ -2,3 +2,4 @@ export * from './item-max-discount-coupon';
|
|
|
2
2
|
export * from './get-seleted-coupon-templates-by-codes.dto';
|
|
3
3
|
export * from './get-coupon-template-by-code.dto';
|
|
4
4
|
export * from './search-coupon-templates-for-admin.dto';
|
|
5
|
+
export * from './get-store-item-coupons-for-extraction-by-type.dto';
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./item-max-discount-coupon"), exports);
|
|
|
18
18
|
__exportStar(require("./get-seleted-coupon-templates-by-codes.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-coupon-template-by-code.dto"), exports);
|
|
20
20
|
__exportStar(require("./search-coupon-templates-for-admin.dto"), exports);
|
|
21
|
+
__exportStar(require("./get-store-item-coupons-for-extraction-by-type.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult } from '../dto/coupon-template';
|
|
3
|
+
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult, GetStoreItemCouponsForExtractionByTypePayload, GetStoreItemCouponsForExtractionByTypeResult } from '../dto/coupon-template';
|
|
4
4
|
export declare class AmqpCouponTemplateService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -13,4 +13,5 @@ export declare class AmqpCouponTemplateService {
|
|
|
13
13
|
getSeletedCouponTemplatesByCodes(payload: GetSeletedCouponTemplatesByCodesPayload, param: AbstractParam): Promise<any>;
|
|
14
14
|
getCouponTemplateByCode(payload: GetCouponTemplateByCodePayload, param: AbstractParam): Promise<any>;
|
|
15
15
|
searchCouponTemplatesForAdmin(payload: SearchCouponTemplatesForAdminPayload, param: AbstractParam): Promise<SearchCouponTemplatesForAdminResult>;
|
|
16
|
+
getStoreItemCouponsForExtractionByType(payload: GetStoreItemCouponsForExtractionByTypePayload, param: AbstractParam): Promise<GetStoreItemCouponsForExtractionByTypeResult>;
|
|
16
17
|
}
|
|
@@ -45,6 +45,9 @@ let AmqpCouponTemplateService = class AmqpCouponTemplateService {
|
|
|
45
45
|
async searchCouponTemplatesForAdmin(payload, param) {
|
|
46
46
|
return this.amqpManager.call('쿠폰 템플릿 리스트 관리자 조회', 'coupon-template.get.coupon-templates-for-admin', payload, param, { isErrorThrowing: true });
|
|
47
47
|
}
|
|
48
|
+
async getStoreItemCouponsForExtractionByType(payload, param) {
|
|
49
|
+
return this.amqpManager.call('상품 쿠폰 추출 타입별 조회', 'coupon-template.get.store-item-coupons-for-extraction-by-type', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
48
51
|
};
|
|
49
52
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService;
|
|
50
53
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService = __decorate([
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class GetPurchasedInfoItemsForExtractionByTypeResult {
|
|
2
|
+
[itemId: string]: {
|
|
3
|
+
itemId: string;
|
|
4
|
+
before30DaysTotalPrice: number;
|
|
5
|
+
before7DaysTotalPrice: number;
|
|
6
|
+
pNums: number;
|
|
7
|
+
refundReasons: {
|
|
8
|
+
[refundReason: string]: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}
|
package/order-server/dto/purchasedinfos/query/get-purchased-info-items-for-extraction-by-type.dto.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPurchasedInfoItemsForExtractionByTypeResult = void 0;
|
|
4
|
+
class GetPurchasedInfoItemsForExtractionByTypeResult {
|
|
5
|
+
}
|
|
6
|
+
exports.GetPurchasedInfoItemsForExtractionByTypeResult = GetPurchasedInfoItemsForExtractionByTypeResult;
|
|
@@ -8,3 +8,4 @@ export * from './get-purchased-infos-for-unconfirmed-waiting-order-sellers-excel
|
|
|
8
8
|
export * from './is-purchase-store-item-by-user-bulk.dto';
|
|
9
9
|
export * from './check-can-change-purchased-option.dto';
|
|
10
10
|
export * from './check-can-change-purchased-options-by-pay-try-log-id.dto';
|
|
11
|
+
export * from './get-purchased-info-items-for-extraction-by-type.dto';
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./get-purchased-infos-for-unconfirmed-waiting-order-seller
|
|
|
24
24
|
__exportStar(require("./is-purchase-store-item-by-user-bulk.dto"), exports);
|
|
25
25
|
__exportStar(require("./check-can-change-purchased-option.dto"), exports);
|
|
26
26
|
__exportStar(require("./check-can-change-purchased-options-by-pay-try-log-id.dto"), exports);
|
|
27
|
+
__exportStar(require("./get-purchased-info-items-for-extraction-by-type.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowPayload, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult } from '../dto/purchasedinfos';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowPayload, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult, GetPurchasedInfoItemsForExtractionByTypeResult } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -33,4 +33,5 @@ export declare class AmqpPurchasedInfoService {
|
|
|
33
33
|
checkCanChangePurchasedOption(payload: CheckCanChangePurchasedOptionPayload, param: AbstractParam): Promise<CheckCanChangePurchasedOptionResult>;
|
|
34
34
|
changePurchasedOption(payload: ChangePurchasedOptionPayload, param: AbstractParam): Promise<void>;
|
|
35
35
|
checkCanChangePurchasedOptionsByPayTryLogId(payload: CheckCanChangePurchasedOptionsByPayTryLogIdPayload, param: AbstractParam): Promise<CheckCanChangePurchasedOptionsByPayTryLogIdResult>;
|
|
36
|
+
getPurchasedInfoItemsForExtractionByType(param: AbstractParam): Promise<GetPurchasedInfoItemsForExtractionByTypeResult>;
|
|
36
37
|
}
|
|
@@ -106,6 +106,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
106
106
|
async checkCanChangePurchasedOptionsByPayTryLogId(payload, param) {
|
|
107
107
|
return this.amqpManager.call('구매 옵션 변경 가능 여부 확인', 'purchased-info.check.can-change-purchased-options-by-pay-try-log-id', payload, param, { isErrorThrowing: true });
|
|
108
108
|
}
|
|
109
|
+
async getPurchasedInfoItemsForExtractionByType(param) {
|
|
110
|
+
return this.amqpManager.call('구매 정보 아이템 추출 타입별 조회', 'purchased-info.get.purchased-info-items-for-extraction-by-type', {}, param, { isErrorThrowing: true });
|
|
111
|
+
}
|
|
109
112
|
};
|
|
110
113
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
111
114
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.113",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "0.1.4",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.10",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.2.10",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.1.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.1.46",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -30,8 +30,6 @@ exports.AmqpStoreItemServerModule = AmqpStoreItemServerModule = __decorate([
|
|
|
30
30
|
services_1.AmqpStoreItemPriceFluctuationService,
|
|
31
31
|
services_1.AmqpReviewService,
|
|
32
32
|
services_1.AmqpStoreItemSabangService,
|
|
33
|
-
services_1.AmqpBrandService,
|
|
34
|
-
services_1.AmqpBrandCohortService,
|
|
35
33
|
],
|
|
36
34
|
exports: [
|
|
37
35
|
amqp_store_item_server_provider_1.StoreItemServerProvider,
|
|
@@ -48,8 +46,6 @@ exports.AmqpStoreItemServerModule = AmqpStoreItemServerModule = __decorate([
|
|
|
48
46
|
services_1.AmqpStoreItemPriceFluctuationService,
|
|
49
47
|
services_1.AmqpReviewService,
|
|
50
48
|
services_1.AmqpStoreItemSabangService,
|
|
51
|
-
services_1.AmqpBrandService,
|
|
52
|
-
services_1.AmqpBrandCohortService,
|
|
53
49
|
],
|
|
54
50
|
})
|
|
55
51
|
], AmqpStoreItemServerModule);
|
|
@@ -21,5 +21,3 @@ __exportStar(require("./time-deal"), exports);
|
|
|
21
21
|
__exportStar(require("./auto-sold-out-store-item-log"), exports);
|
|
22
22
|
__exportStar(require("./store-item-log-v2"), exports);
|
|
23
23
|
__exportStar(require("./selling-info-log"), exports);
|
|
24
|
-
__exportStar(require("./brand"), exports);
|
|
25
|
-
__exportStar(require("./brand-cohort"), exports);
|
|
@@ -10,4 +10,3 @@ export * from './dalpha-update-brand-name-bulk.dto';
|
|
|
10
10
|
export * from './sync-seduce-add-cart-item-ids.dto';
|
|
11
11
|
export * from './patch-store-item-option-remain-count-by-change-purchased-option.service';
|
|
12
12
|
export * from './update-is-selling-bulk.dto';
|
|
13
|
-
export * from './update-brand-id-bulk.dto';
|
|
@@ -26,4 +26,3 @@ __exportStar(require("./dalpha-update-brand-name-bulk.dto"), exports);
|
|
|
26
26
|
__exportStar(require("./sync-seduce-add-cart-item-ids.dto"), exports);
|
|
27
27
|
__exportStar(require("./patch-store-item-option-remain-count-by-change-purchased-option.service"), exports);
|
|
28
28
|
__exportStar(require("./update-is-selling-bulk.dto"), exports);
|
|
29
|
-
__exportStar(require("./update-brand-id-bulk.dto"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetStoreItemsForExtractionByTypeResult = void 0;
|
|
4
|
+
class GetStoreItemsForExtractionByTypeResult {
|
|
5
|
+
}
|
|
6
|
+
exports.GetStoreItemsForExtractionByTypeResult = GetStoreItemsForExtractionByTypeResult;
|
|
@@ -17,4 +17,5 @@ export * from './get-store-item-tooltip-for-cart.dto';
|
|
|
17
17
|
export * from './get-store-items-by-brand-name.dto';
|
|
18
18
|
export * from './search-store-items-for-test-api.dto';
|
|
19
19
|
export * from '../../store-item.moduels/store-item-data/query/area-nation-city';
|
|
20
|
-
export * from './get-store-
|
|
20
|
+
export * from './get-store-items-for-extraction-by-type.dto';
|
|
21
|
+
export * from './resize-item-img.dto';
|
|
@@ -33,4 +33,5 @@ __exportStar(require("./get-store-item-tooltip-for-cart.dto"), exports);
|
|
|
33
33
|
__exportStar(require("./get-store-items-by-brand-name.dto"), exports);
|
|
34
34
|
__exportStar(require("./search-store-items-for-test-api.dto"), exports);
|
|
35
35
|
__exportStar(require("../../store-item.moduels/store-item-data/query/area-nation-city"), exports);
|
|
36
|
-
__exportStar(require("./get-store-
|
|
36
|
+
__exportStar(require("./get-store-items-for-extraction-by-type.dto"), exports);
|
|
37
|
+
__exportStar(require("./resize-item-img.dto"), exports);
|
|
@@ -9,13 +9,12 @@ 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.ResizeItemImgPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class ResizeItemImgPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.ResizeItemImgPayload = ResizeItemImgPayload;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
19
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
20
|
+
], ResizeItemImgPayload.prototype, "itemId", 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, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult } 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, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -49,4 +49,6 @@ export declare class AmqpStoreItemService {
|
|
|
49
49
|
getNation(payload: GetNationPayload, param: AbstractParam): Promise<GetNationResult>;
|
|
50
50
|
dalphaUpdateBrandNameBulk(payload: DalphaUpdateBrandNameBulkPayload, param: AbstractParam): Promise<void>;
|
|
51
51
|
syncSeduceAddCartItemIds(param: AbstractParam): Promise<void>;
|
|
52
|
+
getStoreItemsForExtractionByType(param: AbstractParam): Promise<GetStoreItemsForExtractionByTypeResult>;
|
|
53
|
+
resizeItemImg(payload: ResizeItemImgPayload, param: AbstractParam): Promise<void>;
|
|
52
54
|
}
|
|
@@ -147,6 +147,12 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
147
147
|
async syncSeduceAddCartItemIds(param) {
|
|
148
148
|
return this.amqpManager.call('장바구니 추가 추천 상품 아이디 동기화', 'store-item.sync.seduce-add-cart-item-ids', undefined, param, { isErrorThrowing: true });
|
|
149
149
|
}
|
|
150
|
+
async getStoreItemsForExtractionByType(param) {
|
|
151
|
+
return this.amqpManager.call('상품 추출 타입별 조회', 'store-item.get.store-items-for-extraction-by-type', {}, param, { isErrorThrowing: true });
|
|
152
|
+
}
|
|
153
|
+
async resizeItemImg(payload, param) {
|
|
154
|
+
return this.amqpManager.call('상품 썸네일 이미지 리사이징 (version 0)', 'store-item.resize.item-img', payload, param, { isErrorThrowing: true });
|
|
155
|
+
}
|
|
150
156
|
};
|
|
151
157
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
152
158
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|
|
@@ -11,5 +11,3 @@ export * from './amqp.store-item-bookmark.service';
|
|
|
11
11
|
export * from './amqp.store-item-price-fluctuation.service';
|
|
12
12
|
export * from './amqp.review.service';
|
|
13
13
|
export * from './store-item.moduels';
|
|
14
|
-
export * from './amqp.brand.service';
|
|
15
|
-
export * from './amqp.brand-cohort.service';
|
|
@@ -27,5 +27,3 @@ __exportStar(require("./amqp.store-item-bookmark.service"), exports);
|
|
|
27
27
|
__exportStar(require("./amqp.store-item-price-fluctuation.service"), exports);
|
|
28
28
|
__exportStar(require("./amqp.review.service"), exports);
|
|
29
29
|
__exportStar(require("./store-item.moduels"), exports);
|
|
30
|
-
__exportStar(require("./amqp.brand.service"), exports);
|
|
31
|
-
__exportStar(require("./amqp.brand-cohort.service"), exports);
|
|
@@ -1,30 +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.AutoCreateBrandPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class AutoCreateBrandPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.AutoCreateBrandPayload = AutoCreateBrandPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], AutoCreateBrandPayload.prototype, "brandName", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsOptional)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], AutoCreateBrandPayload.prototype, "engBrandName", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], AutoCreateBrandPayload.prototype, "excelItemCount", void 0);
|
|
@@ -1,21 +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.CreateBrandPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreateBrandPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.CreateBrandPayload = CreateBrandPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreateBrandPayload.prototype, "brandName", void 0);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./auto-create-brand.dto"), exports);
|
|
18
|
-
__exportStar(require("./update-brand-eng-name.dto"), exports);
|
|
19
|
-
__exportStar(require("./update-brand-name.dto"), exports);
|
|
20
|
-
__exportStar(require("./delete-brand.dto"), exports);
|
|
21
|
-
__exportStar(require("./create-brand.dto"), exports);
|
|
@@ -1,26 +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.UpdateBrandEngNamePayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class UpdateBrandEngNamePayload {
|
|
15
|
-
}
|
|
16
|
-
exports.UpdateBrandEngNamePayload = UpdateBrandEngNamePayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], UpdateBrandEngNamePayload.prototype, "brandName", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UpdateBrandEngNamePayload.prototype, "newEngBrandName", void 0);
|
|
@@ -1,26 +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.UpdateBrandNamePayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class UpdateBrandNamePayload {
|
|
15
|
-
}
|
|
16
|
-
exports.UpdateBrandNamePayload = UpdateBrandNamePayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], UpdateBrandNamePayload.prototype, "pastBrandName", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UpdateBrandNamePayload.prototype, "newBrandName", void 0);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./query"), exports);
|
|
18
|
-
__exportStar(require("./command"), exports);
|
|
@@ -1,21 +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.GetBrandsByBrandNamesPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GetBrandsByBrandNamesPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.GetBrandsByBrandNamesPayload = GetBrandsByBrandNamesPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsArray)(),
|
|
19
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
20
|
-
__metadata("design:type", Array)
|
|
21
|
-
], GetBrandsByBrandNamesPayload.prototype, "brandNames", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BrandEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
-
export declare class GetBrandsForAdminPayload {
|
|
3
|
-
page: number;
|
|
4
|
-
limit: number;
|
|
5
|
-
brandName?: string;
|
|
6
|
-
engBrandName?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetBrandsForAdminResult extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName' | 'regDate'> {
|
|
9
|
-
}
|
|
@@ -1,34 +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.GetBrandsForAdminPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GetBrandsForAdminPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.GetBrandsForAdminPayload = GetBrandsForAdminPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], GetBrandsForAdminPayload.prototype, "page", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], GetBrandsForAdminPayload.prototype, "limit", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], GetBrandsForAdminPayload.prototype, "brandName", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.IsOptional)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], GetBrandsForAdminPayload.prototype, "engBrandName", void 0);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-brands-by-brand-names.dto"), exports);
|
|
18
|
-
__exportStar(require("./get-brands-for-admin.dto"), exports);
|
|
@@ -1,21 +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.DeleteBrandCohortPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class DeleteBrandCohortPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.DeleteBrandCohortPayload = DeleteBrandCohortPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], DeleteBrandCohortPayload.prototype, "brandCohortId", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./update-brand-cohort.dto"), exports);
|
|
18
|
-
__exportStar(require("./delete-brand-cohort.dto"), exports);
|
|
19
|
-
__exportStar(require("./create-brand-cohort.dto"), exports);
|
|
@@ -1,36 +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.UpdateBrandCohortPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class UpdateBrandCohortPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.UpdateBrandCohortPayload = UpdateBrandCohortPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], UpdateBrandCohortPayload.prototype, "brandCohortId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UpdateBrandCohortPayload.prototype, "cohortName", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsArray)(),
|
|
29
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
30
|
-
__metadata("design:type", Array)
|
|
31
|
-
], UpdateBrandCohortPayload.prototype, "brandNames", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], UpdateBrandCohortPayload.prototype, "memo", void 0);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./command"), exports);
|
|
18
|
-
__exportStar(require("./query"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
-
export declare class GetBrandCohortsForAdminPayload {
|
|
3
|
-
cohortName?: string;
|
|
4
|
-
brandName?: string;
|
|
5
|
-
page: number;
|
|
6
|
-
limit: number;
|
|
7
|
-
}
|
|
8
|
-
export interface GetBrandCohortsForAdminResult {
|
|
9
|
-
brandCohorts: BrandCohortForAdminEntity[];
|
|
10
|
-
maxPage: number;
|
|
11
|
-
}
|
|
@@ -1,34 +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.GetBrandCohortsForAdminPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GetBrandCohortsForAdminPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.GetBrandCohortsForAdminPayload = GetBrandCohortsForAdminPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], GetBrandCohortsForAdminPayload.prototype, "cohortName", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsOptional)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], GetBrandCohortsForAdminPayload.prototype, "brandName", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], GetBrandCohortsForAdminPayload.prototype, "page", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsNumber)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], GetBrandCohortsForAdminPayload.prototype, "limit", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-brand-cohorts-for-admin.dto';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-brand-cohorts-for-admin.dto"), exports);
|
|
@@ -1,26 +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.UpdateBrandIdBulkPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class UpdateBrandIdBulkPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.UpdateBrandIdBulkPayload = UpdateBrandIdBulkPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], UpdateBrandIdBulkPayload.prototype, "brandId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UpdateBrandIdBulkPayload.prototype, "brandName", void 0);
|
|
@@ -1,23 +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.GetStoreItemCountForBrandResult = exports.GetStoreItemCountForBrandPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GetStoreItemCountForBrandPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.GetStoreItemCountForBrandPayload = GetStoreItemCountForBrandPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], GetStoreItemCountForBrandPayload.prototype, "brandName", void 0);
|
|
21
|
-
class GetStoreItemCountForBrandResult {
|
|
22
|
-
}
|
|
23
|
-
exports.GetStoreItemCountForBrandResult = GetStoreItemCountForBrandResult;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
-
import { CreateBrandCohortPayload, DeleteBrandCohortPayload, UpdateBrandCohortPayload, GetBrandCohortsForAdminPayload } from '../dto/brand-cohort';
|
|
5
|
-
export declare class AmqpBrandCohortService {
|
|
6
|
-
private readonly client;
|
|
7
|
-
private readonly amqpManager;
|
|
8
|
-
constructor(client: ClientProxy);
|
|
9
|
-
createBrandCohort(payload: CreateBrandCohortPayload, param: AbstractParam): Promise<void>;
|
|
10
|
-
updateBrandCohort(payload: UpdateBrandCohortPayload, param: AbstractParam): Promise<void>;
|
|
11
|
-
deleteBrandCohort(payload: DeleteBrandCohortPayload, param: AbstractParam): Promise<void>;
|
|
12
|
-
getBrandCohortsForAdmin(payload: GetBrandCohortsForAdminPayload, param: AbstractParam): Promise<BrandCohortForAdminEntity[]>;
|
|
13
|
-
}
|
|
@@ -1,42 +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.AmqpBrandCohortService = 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 AmqpBrandCohortService = class AmqpBrandCohortService {
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
-
}
|
|
24
|
-
async createBrandCohort(payload, param) {
|
|
25
|
-
return this.amqpManager.call('브랜드 코호트 생성', 'brand-cohort.create', payload, param, { isErrorThrowing: true });
|
|
26
|
-
}
|
|
27
|
-
async updateBrandCohort(payload, param) {
|
|
28
|
-
return this.amqpManager.call('브랜드 코호트 수정', 'brand-cohort.update', payload, param, { isErrorThrowing: true });
|
|
29
|
-
}
|
|
30
|
-
async deleteBrandCohort(payload, param) {
|
|
31
|
-
return this.amqpManager.call('브랜드 코호트 삭제', 'brand-cohort.delete', payload, param, { isErrorThrowing: true });
|
|
32
|
-
}
|
|
33
|
-
async getBrandCohortsForAdmin(payload, param) {
|
|
34
|
-
return this.amqpManager.call('브랜드 코호트 조회', 'brand-cohort.get-for-admin', payload, param, { isErrorThrowing: true });
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.AmqpBrandCohortService = AmqpBrandCohortService;
|
|
38
|
-
exports.AmqpBrandCohortService = AmqpBrandCohortService = __decorate([
|
|
39
|
-
(0, common_1.Injectable)(),
|
|
40
|
-
__param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
|
|
41
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
42
|
-
], AmqpBrandCohortService);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult } from '../dto/brand';
|
|
4
|
-
export declare class AmqpBrandService {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly amqpManager;
|
|
7
|
-
constructor(client: ClientProxy);
|
|
8
|
-
createBrand(payload: CreateBrandPayload, param: AbstractParam): Promise<void>;
|
|
9
|
-
updateBrandName(payload: UpdateBrandNamePayload, param: AbstractParam): Promise<void>;
|
|
10
|
-
updateBrandEngName(payload: UpdateBrandEngNamePayload, param: AbstractParam): Promise<void>;
|
|
11
|
-
deleteBrand(payload: DeleteBrandPayload, param: AbstractParam): Promise<void>;
|
|
12
|
-
getBrandsByBrandNames(payload: GetBrandsByBrandNamesPayload, param: AbstractParam): Promise<GetBrandsByBrandNamesResult>;
|
|
13
|
-
getBrandsForAdmin(payload: GetBrandsForAdminPayload, param: AbstractParam): Promise<GetBrandsForAdminResult>;
|
|
14
|
-
}
|
|
@@ -1,48 +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.AmqpBrandService = 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 AmqpBrandService = class AmqpBrandService {
|
|
20
|
-
constructor(client) {
|
|
21
|
-
this.client = client;
|
|
22
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
-
}
|
|
24
|
-
async createBrand(payload, param) {
|
|
25
|
-
return this.amqpManager.call('브랜드 생성', 'brand.create', payload, param, { isErrorThrowing: true });
|
|
26
|
-
}
|
|
27
|
-
async updateBrandName(payload, param) {
|
|
28
|
-
return this.amqpManager.call('브랜드 이름 수정', 'brand.update.name', payload, param);
|
|
29
|
-
}
|
|
30
|
-
async updateBrandEngName(payload, param) {
|
|
31
|
-
return this.amqpManager.call('브랜드 영문 이름 수정', 'brand.update.eng-name', payload, param);
|
|
32
|
-
}
|
|
33
|
-
async deleteBrand(payload, param) {
|
|
34
|
-
return this.amqpManager.call('브랜드 삭제', 'brand.delete', payload, param);
|
|
35
|
-
}
|
|
36
|
-
async getBrandsByBrandNames(payload, param) {
|
|
37
|
-
return this.amqpManager.call('브랜드명으로 브랜드 리스트 조회', 'brand.get.by-brand-names', payload, param);
|
|
38
|
-
}
|
|
39
|
-
async getBrandsForAdmin(payload, param) {
|
|
40
|
-
return this.amqpManager.call('브랜드 리스트 조회 -관리자-', 'brand.get.for-admin', payload, param);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.AmqpBrandService = AmqpBrandService;
|
|
44
|
-
exports.AmqpBrandService = AmqpBrandService = __decorate([
|
|
45
|
-
(0, common_1.Injectable)(),
|
|
46
|
-
__param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
|
|
47
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
48
|
-
], AmqpBrandService);
|