@yolo-croket-dev/amqp-access 0.5.163 → 0.5.164-sj1

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.163",
3
+ "version": "0.5.164-sj1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -21,10 +21,10 @@
21
21
  "@yolo-croket-dev/core": "1.7.17",
22
22
  "@yolo-croket-dev/domain": "^0.2.12",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.19",
24
- "@yolo-croket-dev/entity": "^0.2.37",
24
+ "@yolo-croket-dev/entity": "^0.2.38-sj",
25
25
  "@yolo-croket-dev/entity-v2": "^0.2.49",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
29
29
  }
30
- }
30
+ }
@@ -25,3 +25,4 @@ export * from './get-coupon-codes-by-selling-item.dto';
25
25
  export * from './get-selling-store-items-for-chat.dto';
26
26
  export * from './get-store-items-by-pre-black-friday-title.dto';
27
27
  export * from './search-regular-price-items-for-admin.dto';
28
+ export * from './search-secret-items-for-admin.dto';
@@ -41,3 +41,4 @@ __exportStar(require("./get-coupon-codes-by-selling-item.dto"), exports);
41
41
  __exportStar(require("./get-selling-store-items-for-chat.dto"), exports);
42
42
  __exportStar(require("./get-store-items-by-pre-black-friday-title.dto"), exports);
43
43
  __exportStar(require("./search-regular-price-items-for-admin.dto"), exports);
44
+ __exportStar(require("./search-secret-items-for-admin.dto"), exports);
@@ -0,0 +1,18 @@
1
+ import { StoreItem as StoreItemEntity } from '@yolo-croket-dev/entity/src/store-item/store-item.entity';
2
+ export declare enum SearchSecretItemsForAdminSearchTypeEnum {
3
+ 'ITEM_ID' = "ITEM_ID",
4
+ 'ITEM_NAME' = "ITEM_NAME"
5
+ }
6
+ export declare class SearchSecretItemsForAdminPayload {
7
+ page: number;
8
+ limit: number;
9
+ searchType: SearchSecretItemsForAdminSearchTypeEnum;
10
+ itemId?: string;
11
+ itemName?: string;
12
+ }
13
+ export interface SearchSecretItemsForAdminItem extends Pick<StoreItemEntity, '_id' | 'itemName' | 'isSecret' | 'secretedDate'> {
14
+ }
15
+ export declare class SearchSecretItemsForAdminResult {
16
+ storeItems: SearchSecretItemsForAdminItem[];
17
+ totalCount: number;
18
+ }
@@ -0,0 +1,46 @@
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.SearchSecretItemsForAdminResult = exports.SearchSecretItemsForAdminPayload = exports.SearchSecretItemsForAdminSearchTypeEnum = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ var SearchSecretItemsForAdminSearchTypeEnum;
15
+ (function (SearchSecretItemsForAdminSearchTypeEnum) {
16
+ SearchSecretItemsForAdminSearchTypeEnum["ITEM_ID"] = "ITEM_ID";
17
+ SearchSecretItemsForAdminSearchTypeEnum["ITEM_NAME"] = "ITEM_NAME";
18
+ })(SearchSecretItemsForAdminSearchTypeEnum || (exports.SearchSecretItemsForAdminSearchTypeEnum = SearchSecretItemsForAdminSearchTypeEnum = {}));
19
+ class SearchSecretItemsForAdminPayload {
20
+ }
21
+ exports.SearchSecretItemsForAdminPayload = SearchSecretItemsForAdminPayload;
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ __metadata("design:type", Number)
25
+ ], SearchSecretItemsForAdminPayload.prototype, "page", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], SearchSecretItemsForAdminPayload.prototype, "limit", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(SearchSecretItemsForAdminSearchTypeEnum),
32
+ __metadata("design:type", String)
33
+ ], SearchSecretItemsForAdminPayload.prototype, "searchType", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsMongoId)(),
36
+ (0, class_validator_1.IsOptional)(),
37
+ __metadata("design:type", String)
38
+ ], SearchSecretItemsForAdminPayload.prototype, "itemId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", String)
43
+ ], SearchSecretItemsForAdminPayload.prototype, "itemName", void 0);
44
+ class SearchSecretItemsForAdminResult {
45
+ }
46
+ exports.SearchSecretItemsForAdminResult = SearchSecretItemsForAdminResult;
@@ -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 } 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 } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -63,4 +63,5 @@ export declare class AmqpStoreItemService {
63
63
  updateRegularPriceByAdmin(payload: UpdateRegularPriceByAdminPayload, param: AbstractParam): Promise<void>;
64
64
  regRegularPriceBulkByAdmin(payload: RegRegularPriceBulkByAdminPayload, param: AbstractParam): Promise<void>;
65
65
  deleteRegularPriceByAdmin(payload: DeleteRegularPriceByAdminPayload, param: AbstractParam): Promise<void>;
66
+ searchSecretItemsForAdmin(payload: SearchSecretItemsForAdminPayload, param: AbstractParam): Promise<SearchSecretItemsForAdminResult>;
66
67
  }
@@ -189,6 +189,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
189
189
  async deleteRegularPriceByAdmin(payload, param) {
190
190
  return this.amqpManager.call('상품 정가 삭제 -관리자-', 'store-item.delete.regular-price-by-admin', payload, param, { isErrorThrowing: true });
191
191
  }
192
+ async searchSecretItemsForAdmin(payload, param) {
193
+ return this.amqpManager.call('상품 비밀 검색 -관리자-', 'store-item.get.secret-items-for-admin', payload, param, { isErrorThrowing: true });
194
+ }
192
195
  };
193
196
  exports.AmqpStoreItemService = AmqpStoreItemService;
194
197
  exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([