@yolo-croket-dev/amqp-access 0.5.181-beta.33 → 0.5.181-beta.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.181-beta.33",
3
+ "version": "0.5.181-beta.34",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -27,4 +27,4 @@
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
29
29
  }
30
- }
30
+ }
@@ -9,6 +9,7 @@ export declare class GetBrandsForAdminPayload {
9
9
  limit: number;
10
10
  searchKeyword?: string;
11
11
  searchType?: BrandSearchTypeEnum;
12
+ isBrandHall?: boolean;
12
13
  }
13
14
  export interface GetBrandsForAdminResult {
14
15
  brands: BrandForAdminEntity[];
@@ -38,3 +38,8 @@ __decorate([
38
38
  (0, class_validator_1.IsOptional)(),
39
39
  __metadata("design:type", String)
40
40
  ], GetBrandsForAdminPayload.prototype, "searchType", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsBoolean)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ __metadata("design:type", Boolean)
45
+ ], GetBrandsForAdminPayload.prototype, "isBrandHall", void 0);
@@ -0,0 +1,6 @@
1
+ import { BrandEntity } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetSimilarBrandsForAdminPayload {
3
+ brandName: string;
4
+ }
5
+ export interface GetSimilarBrandsForAdminResult extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName'> {
6
+ }
@@ -0,0 +1,20 @@
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.GetSimilarBrandsForAdminPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetSimilarBrandsForAdminPayload {
15
+ }
16
+ exports.GetSimilarBrandsForAdminPayload = GetSimilarBrandsForAdminPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], GetSimilarBrandsForAdminPayload.prototype, "brandName", void 0);
@@ -8,3 +8,4 @@ export * from './get-brand-by-name-or-sub-name-for-admin.dto';
8
8
  export * from './get-brand-hall-for-buyer.dto';
9
9
  export * from './get-brand-halls-by-search-keyword.dto';
10
10
  export * from './get-brand-halls-for-buyer.dto';
11
+ export * from './get-similar-brands-for-admin.dto';
@@ -24,3 +24,4 @@ __exportStar(require("./get-brand-by-name-or-sub-name-for-admin.dto"), exports);
24
24
  __exportStar(require("./get-brand-hall-for-buyer.dto"), exports);
25
25
  __exportStar(require("./get-brand-halls-by-search-keyword.dto"), exports);
26
26
  __exportStar(require("./get-brand-halls-for-buyer.dto"), exports);
27
+ __exportStar(require("./get-similar-brands-for-admin.dto"), exports);
@@ -19,3 +19,4 @@ export * from './reg-regular-price-bulk-by-admin.dto';
19
19
  export * from './update-regular-price-by-admin.dto';
20
20
  export * from './delete-regular-price-by-admin.dto';
21
21
  export * from './reg-item-name-eng-bulk-by-admin.dto';
22
+ export * from './update-naver-enabled-bulk.dto';
@@ -35,3 +35,4 @@ __exportStar(require("./reg-regular-price-bulk-by-admin.dto"), exports);
35
35
  __exportStar(require("./update-regular-price-by-admin.dto"), exports);
36
36
  __exportStar(require("./delete-regular-price-by-admin.dto"), exports);
37
37
  __exportStar(require("./reg-item-name-eng-bulk-by-admin.dto"), exports);
38
+ __exportStar(require("./update-naver-enabled-bulk.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export declare class UpdateNaverEnabledBulkPayload {
2
+ itemIds: string[];
3
+ isNaverEnabled: boolean;
4
+ }
@@ -0,0 +1,25 @@
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.UpdateNaverEnabledBulkPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class UpdateNaverEnabledBulkPayload {
15
+ }
16
+ exports.UpdateNaverEnabledBulkPayload = UpdateNaverEnabledBulkPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsArray)(),
19
+ (0, class_validator_1.IsMongoId)({ each: true }),
20
+ __metadata("design:type", Array)
21
+ ], UpdateNaverEnabledBulkPayload.prototype, "itemIds", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsBoolean)(),
24
+ __metadata("design:type", Boolean)
25
+ ], UpdateNaverEnabledBulkPayload.prototype, "isNaverEnabled", 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, 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, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload } 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, 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, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -66,4 +66,5 @@ export declare class AmqpStoreItemService {
66
66
  searchSecretItemsForAdmin(payload: SearchSecretItemsForAdminPayload, param: AbstractParam): Promise<SearchSecretItemsForAdminResult>;
67
67
  regItemNameEngBulkByAdmin(payload: RegItemNameEngBulkByAdminPayload, param: AbstractParam): Promise<void>;
68
68
  updateStoreItemGlobalInfoBulk(payload: UpdateStoreItemGlobalInfoBulkPayload, param: AbstractParam): Promise<string>;
69
+ updateNaverEnabledBulk(payload: UpdateNaverEnabledBulkPayload, param: AbstractParam): Promise<void>;
69
70
  }
@@ -198,6 +198,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
198
198
  async updateStoreItemGlobalInfoBulk(payload, param) {
199
199
  return this.amqpManager.call('상품 전역 정보 대량 업데이트', 'store-item.update.global-info-bulk', payload, param, { isErrorThrowing: true });
200
200
  }
201
+ async updateNaverEnabledBulk(payload, param) {
202
+ return this.amqpManager.call('상품 네이버 상품 시트 연동 여부 대량 업데이트', 'store-item.update.naver-enabled-bulk', payload, param, { isErrorThrowing: true });
203
+ }
201
204
  };
202
205
  exports.AmqpStoreItemService = AmqpStoreItemService;
203
206
  exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload, UpdateBrandSubNamesPayload, GetBrandByNameOrSubNameForAdminResult, GetBrandByNameOrSubNameForAdminPayload, UpdateBrandInfoByAdminPayload, UpdateBrandHallByAdminPayload, GetBrandHallForBuyerPayload, GetBrandHallForBuyerResult, GetBrandHallsBySearchKeywordPayload, GetBrandHallsBySearchKeywordResult, GetBrandHallsForBuyerPayload, GetBrandHallsForBuyerResult } from '../../dto/brand.modules/brand';
3
+ import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload, UpdateBrandSubNamesPayload, GetBrandByNameOrSubNameForAdminResult, GetBrandByNameOrSubNameForAdminPayload, UpdateBrandInfoByAdminPayload, UpdateBrandHallByAdminPayload, GetBrandHallForBuyerPayload, GetBrandHallForBuyerResult, GetBrandHallsBySearchKeywordPayload, GetBrandHallsBySearchKeywordResult, GetBrandHallsForBuyerPayload, GetBrandHallsForBuyerResult, GetSimilarBrandsForAdminPayload, GetSimilarBrandsForAdminResult } from '../../dto/brand.modules/brand';
4
4
  export declare class AmqpBrandService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -25,4 +25,5 @@ export declare class AmqpBrandService {
25
25
  getBrandHallsForBuyer(payload: GetBrandHallsForBuyerPayload, param: AbstractParam): Promise<GetBrandHallsForBuyerResult>;
26
26
  updateBrandHallByScheduler(param: AbstractParam): Promise<void>;
27
27
  updateBrandSearchKeywordCountByScheduler(param: AbstractParam): Promise<void>;
28
+ getSimilarBrandsForAdmin(payload: GetSimilarBrandsForAdminPayload, param: AbstractParam): Promise<GetSimilarBrandsForAdminResult>;
28
29
  }
@@ -81,6 +81,9 @@ let AmqpBrandService = class AmqpBrandService {
81
81
  async updateBrandSearchKeywordCountByScheduler(param) {
82
82
  return this.amqpManager.call('브랜드 검색어 카운트 자동 업데이트 (1시간마다) -크론-', 'brand.update.search-keyword-count-by-scheduler', {}, param, { isErrorThrowing: true });
83
83
  }
84
+ async getSimilarBrandsForAdmin(payload, param) {
85
+ return this.amqpManager.call('브랜드 유사 브랜드 조회 -관리자-', 'brand.get.similar-brands-for-admin', payload, param, { isErrorThrowing: true });
86
+ }
84
87
  };
85
88
  exports.AmqpBrandService = AmqpBrandService;
86
89
  exports.AmqpBrandService = AmqpBrandService = __decorate([