@yolo-croket-dev/amqp-access 0.5.6-sj4 → 0.5.7-jun.0
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/brand-bookmark/query/index.d.ts +0 -1
- package/store-item-server/dto/brand-bookmark/query/index.js +0 -1
- package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.d.ts +3 -7
- package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.js +4 -9
- package/store-item-server/dto/brand-cohort/query/index.d.ts +0 -1
- package/store-item-server/dto/brand-cohort/query/index.js +0 -1
- package/store-item-server/dto/store-item/query/get-store-infos-by-item-ids.dto.d.ts +9 -0
- package/store-item-server/dto/{brand-cohort/query/get-users-by-brand-cohort.dto.js → store-item/query/get-store-infos-by-item-ids.dto.js} +9 -9
- package/store-item-server/dto/store-item/query/index.d.ts +1 -0
- package/store-item-server/dto/store-item/query/index.js +1 -0
- package/store-item-server/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.d.ts +8 -0
- package/store-item-server/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.js +8 -0
- package/store-item-server/services/amqp.brand-cohort.service.d.ts +1 -2
- package/store-item-server/services/amqp.brand-cohort.service.js +1 -4
- 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/user-service/amqp.user-service.module.js +4 -0
- package/user-service/dto/store.modules/index.d.ts +2 -0
- package/user-service/dto/store.modules/index.js +2 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/create-store-brand-fixed-content.dto.d.ts +12 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/create-store-brand-fixed-content.dto.js +51 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/delete-store-brand-fixed-content.dto.d.ts +9 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/delete-store-brand-fixed-content.dto.js +39 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/index.d.ts +2 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/command/index.js +18 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/index.d.ts +1 -0
- package/user-service/dto/store.modules/store-brand-fixed-content/index.js +17 -0
- package/user-service/dto/store.modules/store-fixed-content/command/create-store-fixed-content.dto.d.ts +8 -0
- package/user-service/dto/store.modules/store-fixed-content/command/create-store-fixed-content.dto.js +38 -0
- package/user-service/dto/store.modules/store-fixed-content/command/delete-store-fixed-content.dto.d.ts +5 -0
- package/{store-item-server/dto/brand-bookmark/query/get-brand-bookmarks-by-brand-ids.dto.js → user-service/dto/store.modules/store-fixed-content/command/delete-store-fixed-content.dto.js} +9 -4
- package/user-service/dto/store.modules/store-fixed-content/command/index.d.ts +2 -0
- package/user-service/dto/store.modules/store-fixed-content/command/index.js +18 -0
- package/user-service/dto/store.modules/store-fixed-content/index.d.ts +1 -0
- package/user-service/dto/store.modules/store-fixed-content/index.js +17 -0
- package/user-service/services/store.modules/amqp.store-brand-fixed-content.service.d.ts +14 -0
- package/user-service/services/store.modules/amqp.store-brand-fixed-content.service.js +40 -0
- package/user-service/services/store.modules/amqp.store-fixed-content.service.d.ts +14 -0
- package/user-service/services/store.modules/amqp.store-fixed-content.service.js +40 -0
- package/user-service/services/store.modules/index.d.ts +2 -0
- package/user-service/services/store.modules/index.js +2 -0
- package/store-item-server/dto/brand-bookmark/query/get-brand-bookmarks-by-brand-ids.dto.d.ts +0 -7
- package/store-item-server/dto/brand-cohort/query/get-users-by-brand-cohort.dto.d.ts +0 -15
package/package.json
CHANGED
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-bookmarked-brands-for-buyer.dto"), exports);
|
|
18
|
-
__exportStar(require("./get-brand-bookmarks-by-brand-ids.dto"), exports);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
-
export declare enum BrandCohortSearchTypeEnum {
|
|
3
|
-
COHORT_NAME = "COHORT_NAME",
|
|
4
|
-
RELATED_BRAND = "RELATED_BRAND"
|
|
5
|
-
}
|
|
6
2
|
export declare class GetBrandCohortsForAdminPayload {
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
cohortName?: string;
|
|
4
|
+
brandName?: string;
|
|
9
5
|
page: number;
|
|
10
6
|
limit: number;
|
|
11
7
|
}
|
|
12
8
|
export interface GetBrandCohortsForAdminResult {
|
|
13
9
|
brandCohorts: BrandCohortForAdminEntity[];
|
|
14
|
-
|
|
10
|
+
maxPage: number;
|
|
15
11
|
}
|
|
@@ -9,13 +9,8 @@ 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.GetBrandCohortsForAdminPayload =
|
|
12
|
+
exports.GetBrandCohortsForAdminPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
var BrandCohortSearchTypeEnum;
|
|
15
|
-
(function (BrandCohortSearchTypeEnum) {
|
|
16
|
-
BrandCohortSearchTypeEnum["COHORT_NAME"] = "COHORT_NAME";
|
|
17
|
-
BrandCohortSearchTypeEnum["RELATED_BRAND"] = "RELATED_BRAND";
|
|
18
|
-
})(BrandCohortSearchTypeEnum || (exports.BrandCohortSearchTypeEnum = BrandCohortSearchTypeEnum = {}));
|
|
19
14
|
class GetBrandCohortsForAdminPayload {
|
|
20
15
|
}
|
|
21
16
|
exports.GetBrandCohortsForAdminPayload = GetBrandCohortsForAdminPayload;
|
|
@@ -23,12 +18,12 @@ __decorate([
|
|
|
23
18
|
(0, class_validator_1.IsString)(),
|
|
24
19
|
(0, class_validator_1.IsOptional)(),
|
|
25
20
|
__metadata("design:type", String)
|
|
26
|
-
], GetBrandCohortsForAdminPayload.prototype, "
|
|
21
|
+
], GetBrandCohortsForAdminPayload.prototype, "cohortName", void 0);
|
|
27
22
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
29
24
|
(0, class_validator_1.IsOptional)(),
|
|
30
25
|
__metadata("design:type", String)
|
|
31
|
-
], GetBrandCohortsForAdminPayload.prototype, "
|
|
26
|
+
], GetBrandCohortsForAdminPayload.prototype, "brandName", void 0);
|
|
32
27
|
__decorate([
|
|
33
28
|
(0, class_validator_1.IsNumber)(),
|
|
34
29
|
__metadata("design:type", Number)
|
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-brand-cohorts-for-admin.dto"), exports);
|
|
18
|
-
__exportStar(require("./get-users-by-brand-cohort.dto"), exports);
|
|
@@ -9,16 +9,16 @@ 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.GetStoreInfosByItemIdsResult = exports.GetStoreInfosByItemIdsPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class GetStoreInfosByItemIdsPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.GetStoreInfosByItemIdsPayload = GetStoreInfosByItemIdsPayload;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class
|
|
18
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetStoreInfosByItemIdsPayload.prototype, "itemIds", void 0);
|
|
21
|
+
/** @description isArray */
|
|
22
|
+
class GetStoreInfosByItemIdsResult {
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.GetStoreInfosByItemIdsResult = GetStoreInfosByItemIdsResult;
|
|
@@ -20,3 +20,4 @@ export * from '../../store-item.moduels/store-item-data/query/area-nation-city';
|
|
|
20
20
|
export * from './get-store-items-for-extraction-by-type.dto';
|
|
21
21
|
export * from './resize-item-img.dto';
|
|
22
22
|
export * from './get-store-item-count-for-brand.dto';
|
|
23
|
+
export * from './get-store-infos-by-item-ids.dto';
|
|
@@ -36,3 +36,4 @@ __exportStar(require("../../store-item.moduels/store-item-data/query/area-nation
|
|
|
36
36
|
__exportStar(require("./get-store-items-for-extraction-by-type.dto"), exports);
|
|
37
37
|
__exportStar(require("./resize-item-img.dto"), exports);
|
|
38
38
|
__exportStar(require("./get-store-item-count-for-brand.dto"), exports);
|
|
39
|
+
__exportStar(require("./get-store-infos-by-item-ids.dto"), exports);
|
|
@@ -28,6 +28,14 @@ import { Types } from 'mongoose';
|
|
|
28
28
|
export declare class WeeklyMegaDealPeriodItemDataDto implements WeeklyMegaDealPeriodItemData {
|
|
29
29
|
itemId: string | Types.ObjectId;
|
|
30
30
|
isShowNow: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description 판매 개수 제한
|
|
33
|
+
*/
|
|
34
|
+
sellingNumsLimit?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @description 현재 판매된 수 초기화 여부
|
|
37
|
+
*/
|
|
38
|
+
isCurrentSoldNumsInit?: boolean;
|
|
31
39
|
}
|
|
32
40
|
export declare class ExternalPriceInfoDto implements ExternalPriceInfo {
|
|
33
41
|
name: ExternalPriceNameEnum;
|
|
@@ -25,6 +25,14 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsBoolean)(),
|
|
26
26
|
__metadata("design:type", Boolean)
|
|
27
27
|
], WeeklyMegaDealPeriodItemDataDto.prototype, "isShowNow", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], WeeklyMegaDealPeriodItemDataDto.prototype, "sellingNumsLimit", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], WeeklyMegaDealPeriodItemDataDto.prototype, "isCurrentSoldNumsInit", void 0);
|
|
28
36
|
class ExternalPriceInfoDto {
|
|
29
37
|
}
|
|
30
38
|
exports.ExternalPriceInfoDto = ExternalPriceInfoDto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
-
import { CreateBrandCohortPayload, DeleteBrandCohortPayload, UpdateBrandCohortPayload, GetBrandCohortsForAdminPayload
|
|
4
|
+
import { CreateBrandCohortPayload, DeleteBrandCohortPayload, UpdateBrandCohortPayload, GetBrandCohortsForAdminPayload } from '../dto/brand-cohort';
|
|
5
5
|
export declare class AmqpBrandCohortService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -10,5 +10,4 @@ export declare class AmqpBrandCohortService {
|
|
|
10
10
|
updateBrandCohort(payload: UpdateBrandCohortPayload, param: AbstractParam): Promise<void>;
|
|
11
11
|
deleteBrandCohort(payload: DeleteBrandCohortPayload, param: AbstractParam): Promise<void>;
|
|
12
12
|
getBrandCohortsForAdmin(payload: GetBrandCohortsForAdminPayload, param: AbstractParam): Promise<BrandCohortForAdminEntity[]>;
|
|
13
|
-
getUsersByBrandCohort(payload: GetUsersByBrandCohortPayload, param: AbstractParam): Promise<GetUsersByBrandCohortResult>;
|
|
14
13
|
}
|
|
@@ -31,10 +31,7 @@ let AmqpBrandCohortService = class AmqpBrandCohortService {
|
|
|
31
31
|
return this.amqpManager.call('브랜드 코호트 삭제', 'brand-cohort.delete', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
33
|
async getBrandCohortsForAdmin(payload, param) {
|
|
34
|
-
return this.amqpManager.call('브랜드 코호트 조회', 'brand-cohort.get
|
|
35
|
-
}
|
|
36
|
-
async getUsersByBrandCohort(payload, param) {
|
|
37
|
-
return this.amqpManager.call('브랜드 코호트 유저 조회', 'brand-cohort.get.users-by-brand-cohort', payload, param, { isErrorThrowing: true });
|
|
34
|
+
return this.amqpManager.call('브랜드 코호트 조회', 'brand-cohort.get-for-admin', payload, param, { isErrorThrowing: true });
|
|
38
35
|
}
|
|
39
36
|
};
|
|
40
37
|
exports.AmqpBrandCohortService = AmqpBrandCohortService;
|
|
@@ -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, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload } 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, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -52,4 +52,5 @@ export declare class AmqpStoreItemService {
|
|
|
52
52
|
getStoreItemsForExtractionByType(param: AbstractParam): Promise<GetStoreItemsForExtractionByTypeResult>;
|
|
53
53
|
resizeItemImg(payload: ResizeItemImgPayload, param: AbstractParam): Promise<void>;
|
|
54
54
|
resizeItemImgOnlyPublish(payload: ResizeItemImgPayload, param: AbstractParam): Promise<boolean>;
|
|
55
|
+
getStoreInfosByItemIds(payload: GetStoreInfosByItemIdsPayload, param: AbstractParam): Promise<GetStoreInfosByItemIdsResult[]>;
|
|
55
56
|
}
|
|
@@ -156,6 +156,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
156
156
|
async resizeItemImgOnlyPublish(payload, param) {
|
|
157
157
|
return this.amqpManager.onlyPublish('상품 썸네일 이미지 리사이징 (version 0)', 'store-item.resize.item-img', payload, param);
|
|
158
158
|
}
|
|
159
|
+
async getStoreInfosByItemIds(payload, param) {
|
|
160
|
+
return this.amqpManager.call('상품 아이디 리스트로 해당 상품 스토어 정보 검색', 'store-item.get.store-infos-by-item-ids', payload, param, { isErrorThrowing: true });
|
|
161
|
+
}
|
|
159
162
|
};
|
|
160
163
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
161
164
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|
|
@@ -46,6 +46,8 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
46
46
|
services_1.AmqpLegacyApiService,
|
|
47
47
|
services_1.AmqpBrandBlackFridayCouponServiceByUserService,
|
|
48
48
|
services_1.AmqpCouponEventZoneService,
|
|
49
|
+
services_1.AmqpStoreBrandFixedContentService,
|
|
50
|
+
services_1.AmqpStoreFixedContentService,
|
|
49
51
|
],
|
|
50
52
|
exports: [
|
|
51
53
|
amqp_user_service_provider_1.UserServiceProvider,
|
|
@@ -77,6 +79,8 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
|
|
|
77
79
|
services_1.AmqpLegacyApiService,
|
|
78
80
|
services_1.AmqpBrandBlackFridayCouponServiceByUserService,
|
|
79
81
|
services_1.AmqpCouponEventZoneService,
|
|
82
|
+
services_1.AmqpStoreBrandFixedContentService,
|
|
83
|
+
services_1.AmqpStoreFixedContentService,
|
|
80
84
|
],
|
|
81
85
|
})
|
|
82
86
|
], AmqpUserServiceModule);
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./store-admin"), exports);
|
|
18
|
+
__exportStar(require("./store-brand-fixed-content"), exports);
|
|
19
|
+
__exportStar(require("./store-fixed-content"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FixedContentsPositionEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
export declare class CreateStoreBrandFixedContentPayloadData {
|
|
3
|
+
brandName: string;
|
|
4
|
+
sellerId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateStoreBrandFixedContentPayload {
|
|
7
|
+
imgUrl: string;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
datas: CreateStoreBrandFixedContentPayloadData[];
|
|
11
|
+
position: FixedContentsPositionEnum;
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CreateStoreBrandFixedContentPayload = exports.CreateStoreBrandFixedContentPayloadData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
16
|
+
class CreateStoreBrandFixedContentPayloadData {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateStoreBrandFixedContentPayloadData = CreateStoreBrandFixedContentPayloadData;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateStoreBrandFixedContentPayloadData.prototype, "brandName", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateStoreBrandFixedContentPayloadData.prototype, "sellerId", void 0);
|
|
27
|
+
class CreateStoreBrandFixedContentPayload {
|
|
28
|
+
}
|
|
29
|
+
exports.CreateStoreBrandFixedContentPayload = CreateStoreBrandFixedContentPayload;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateStoreBrandFixedContentPayload.prototype, "imgUrl", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], CreateStoreBrandFixedContentPayload.prototype, "width", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CreateStoreBrandFixedContentPayload.prototype, "height", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsArray)(),
|
|
44
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
45
|
+
(0, class_transformer_1.Type)(() => CreateStoreBrandFixedContentPayloadData),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], CreateStoreBrandFixedContentPayload.prototype, "datas", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsEnum)(store_item_1.FixedContentsPositionEnum),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateStoreBrandFixedContentPayload.prototype, "position", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FixedContentsPositionEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
export declare class DeleteStoreBrandFixedContentPayloadData {
|
|
3
|
+
brandName: string;
|
|
4
|
+
sellerId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class DeleteStoreBrandFixedContentPayload {
|
|
7
|
+
datas: DeleteStoreBrandFixedContentPayloadData[];
|
|
8
|
+
position: FixedContentsPositionEnum;
|
|
9
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.DeleteStoreBrandFixedContentPayload = exports.DeleteStoreBrandFixedContentPayloadData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
16
|
+
class DeleteStoreBrandFixedContentPayloadData {
|
|
17
|
+
}
|
|
18
|
+
exports.DeleteStoreBrandFixedContentPayloadData = DeleteStoreBrandFixedContentPayloadData;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DeleteStoreBrandFixedContentPayloadData.prototype, "brandName", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DeleteStoreBrandFixedContentPayloadData.prototype, "sellerId", void 0);
|
|
27
|
+
class DeleteStoreBrandFixedContentPayload {
|
|
28
|
+
}
|
|
29
|
+
exports.DeleteStoreBrandFixedContentPayload = DeleteStoreBrandFixedContentPayload;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
33
|
+
(0, class_transformer_1.Type)(() => DeleteStoreBrandFixedContentPayloadData),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], DeleteStoreBrandFixedContentPayload.prototype, "datas", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsEnum)(store_item_1.FixedContentsPositionEnum),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DeleteStoreBrandFixedContentPayload.prototype, "position", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./create-store-brand-fixed-content.dto"), exports);
|
|
18
|
+
__exportStar(require("./delete-store-brand-fixed-content.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
package/user-service/dto/store.modules/store-fixed-content/command/create-store-fixed-content.dto.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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.CreateStoreFixedContentPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
15
|
+
class CreateStoreFixedContentPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateStoreFixedContentPayload = CreateStoreFixedContentPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateStoreFixedContentPayload.prototype, "imgUrl", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], CreateStoreFixedContentPayload.prototype, "width", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CreateStoreFixedContentPayload.prototype, "height", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], CreateStoreFixedContentPayload.prototype, "sellerIds", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsEnum)(store_item_1.FixedContentsPositionEnum),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateStoreFixedContentPayload.prototype, "position", void 0);
|
|
@@ -9,13 +9,18 @@ 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.DeleteStoreFixedContentPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const store_item_1 = require("@yolo-croket-dev/entity/src/store-item");
|
|
15
|
+
class DeleteStoreFixedContentPayload {
|
|
15
16
|
}
|
|
16
|
-
exports.
|
|
17
|
+
exports.DeleteStoreFixedContentPayload = DeleteStoreFixedContentPayload;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsArray)(),
|
|
19
20
|
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
20
21
|
__metadata("design:type", Array)
|
|
21
|
-
],
|
|
22
|
+
], DeleteStoreFixedContentPayload.prototype, "sellerIds", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEnum)(store_item_1.FixedContentsPositionEnum),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DeleteStoreFixedContentPayload.prototype, "position", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./create-store-fixed-content.dto"), exports);
|
|
18
|
+
__exportStar(require("./delete-store-fixed-content.dto"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateStoreBrandFixedContentPayload, DeleteStoreBrandFixedContentPayload } from '../../dto/store.modules/store-brand-fixed-content';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description 스토어 브랜드 고정 콘텐츠 관련 AMQP 서비스
|
|
7
|
+
*/
|
|
8
|
+
export declare class AmqpStoreBrandFixedContentService {
|
|
9
|
+
private readonly client;
|
|
10
|
+
private readonly amqpManager;
|
|
11
|
+
constructor(client: ClientProxy);
|
|
12
|
+
createStoreBrandFixedContent(payload: CreateStoreBrandFixedContentPayload, param: AbstractParam): Promise<void>;
|
|
13
|
+
deleteStoreBrandFixedContent(payload: DeleteStoreBrandFixedContentPayload, param: AbstractParam): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.AmqpStoreBrandFixedContentService = 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
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description 스토어 브랜드 고정 콘텐츠 관련 AMQP 서비스
|
|
22
|
+
*/
|
|
23
|
+
let AmqpStoreBrandFixedContentService = class AmqpStoreBrandFixedContentService {
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
27
|
+
}
|
|
28
|
+
async createStoreBrandFixedContent(payload, param) {
|
|
29
|
+
return this.amqpManager.call('스토어 브랜드 고정 콘텐츠 생성', 'store-brand-fixed-content.create', payload, param, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
31
|
+
async deleteStoreBrandFixedContent(payload, param) {
|
|
32
|
+
return this.amqpManager.call('스토어 브랜드 고정 콘텐츠 삭제', 'store-brand-fixed-content.delete', payload, param, { isErrorThrowing: true });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.AmqpStoreBrandFixedContentService = AmqpStoreBrandFixedContentService;
|
|
36
|
+
exports.AmqpStoreBrandFixedContentService = AmqpStoreBrandFixedContentService = __decorate([
|
|
37
|
+
(0, common_1.Injectable)(),
|
|
38
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
39
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
40
|
+
], AmqpStoreBrandFixedContentService);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateStoreFixedContentPayload, DeleteStoreFixedContentPayload } from '../../dto/store.modules/store-fixed-content';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description 스토어 고정 콘텐츠 관련 AMQP 서비스
|
|
7
|
+
*/
|
|
8
|
+
export declare class AmqpStoreFixedContentService {
|
|
9
|
+
private readonly client;
|
|
10
|
+
private readonly amqpManager;
|
|
11
|
+
constructor(client: ClientProxy);
|
|
12
|
+
createStoreFixedContent(payload: CreateStoreFixedContentPayload, param: AbstractParam): Promise<void>;
|
|
13
|
+
deleteStoreFixedContent(payload: DeleteStoreFixedContentPayload, param: AbstractParam): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.AmqpStoreFixedContentService = 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
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description 스토어 고정 콘텐츠 관련 AMQP 서비스
|
|
22
|
+
*/
|
|
23
|
+
let AmqpStoreFixedContentService = class AmqpStoreFixedContentService {
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
27
|
+
}
|
|
28
|
+
async createStoreFixedContent(payload, param) {
|
|
29
|
+
return this.amqpManager.call('스토어 고정 콘텐츠 생성', 'store-fixed-content.create', payload, param, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
31
|
+
async deleteStoreFixedContent(payload, param) {
|
|
32
|
+
return this.amqpManager.call('스토어 고정 콘텐츠 삭제', 'store-fixed-content.delete', payload, param, { isErrorThrowing: true });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.AmqpStoreFixedContentService = AmqpStoreFixedContentService;
|
|
36
|
+
exports.AmqpStoreFixedContentService = AmqpStoreFixedContentService = __decorate([
|
|
37
|
+
(0, common_1.Injectable)(),
|
|
38
|
+
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
39
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
40
|
+
], AmqpStoreFixedContentService);
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.store-admin.service"), exports);
|
|
18
|
+
__exportStar(require("./amqp.store-brand-fixed-content.service"), exports);
|
|
19
|
+
__exportStar(require("./amqp.store-fixed-content.service"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class GetUsersByBrandCohortPayload {
|
|
2
|
-
brandCohortId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare class BrandCohortUser {
|
|
5
|
-
userId: string;
|
|
6
|
-
appPush: boolean;
|
|
7
|
-
brandNewsAppPush: boolean;
|
|
8
|
-
phone: boolean;
|
|
9
|
-
phoneNumber: string;
|
|
10
|
-
brandName: string;
|
|
11
|
-
brandLatestBookmarkDate: Date;
|
|
12
|
-
}
|
|
13
|
-
export interface GetUsersByBrandCohortResult {
|
|
14
|
-
users: BrandCohortUser[];
|
|
15
|
-
}
|