@yolo-croket-dev/amqp-access 0.5.147-sj2 → 0.5.147

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.
@@ -12,7 +12,7 @@ export declare enum SearchTypeEnum {
12
12
  export declare class GetSecretCheckListPayload {
13
13
  limit: number;
14
14
  page: number;
15
- searchType?: SearchTypeEnum;
15
+ searchType: SearchTypeEnum;
16
16
  userId?: string;
17
17
  memo?: string;
18
18
  type?: string;
@@ -34,8 +34,7 @@ __decorate([
34
34
  __metadata("design:type", Number)
35
35
  ], GetSecretCheckListPayload.prototype, "page", void 0);
36
36
  __decorate([
37
- (0, class_validator_1.IsEnum)(SearchTypeEnum),
38
- (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
39
38
  __metadata("design:type", String)
40
39
  ], GetSecretCheckListPayload.prototype, "searchType", void 0);
41
40
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.147-sj2",
3
+ "version": "0.5.147",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,9 +22,9 @@
22
22
  "@yolo-croket-dev/domain": "^0.2.12",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.10",
24
24
  "@yolo-croket-dev/entity": "^0.2.29",
25
- "@yolo-croket-dev/entity-v2": "^0.2.48-sj",
25
+ "@yolo-croket-dev/entity-v2": "^0.2.44",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
29
29
  }
30
- }
30
+ }
@@ -3,4 +3,3 @@ export * from './update-brand-name.dto';
3
3
  export * from './delete-brand.dto';
4
4
  export * from './create-brand.dto';
5
5
  export * from './brand-store-item-count.dto';
6
- export * from './update-brand-sub-names.dto';
@@ -19,4 +19,3 @@ __exportStar(require("./update-brand-name.dto"), exports);
19
19
  __exportStar(require("./delete-brand.dto"), exports);
20
20
  __exportStar(require("./create-brand.dto"), exports);
21
21
  __exportStar(require("./brand-store-item-count.dto"), exports);
22
- __exportStar(require("./update-brand-sub-names.dto"), exports);
@@ -4,4 +4,3 @@ export * from './get-brands-by-item-ids.dto';
4
4
  export * from './get-brand-required-categories.dto';
5
5
  export * from './get-brand-by-brand-name.dto';
6
6
  export * from './autocomplete-brands.dto';
7
- export * from './get-brand-by-name-or-sub-name-for-admin.dto';
@@ -20,4 +20,3 @@ __exportStar(require("./get-brands-by-item-ids.dto"), exports);
20
20
  __exportStar(require("./get-brand-required-categories.dto"), exports);
21
21
  __exportStar(require("./get-brand-by-brand-name.dto"), exports);
22
22
  __exportStar(require("./autocomplete-brands.dto"), exports);
23
- __exportStar(require("./get-brand-by-name-or-sub-name-for-admin.dto"), exports);
@@ -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 } from '../../dto/brand.modules/brand';
3
+ import { CreateBrandPayload, UpdateBrandNamePayload, UpdateBrandEngNamePayload, DeleteBrandPayload, GetBrandsByBrandNamesPayload, GetBrandsByBrandNamesResult, GetBrandsForAdminPayload, GetBrandsForAdminResult, GetBrandsByItemIdsResult, GetBrandsByItemIdsPayload, GetBrandRequiredCategoriesResult, GetBrandByBrandNamePayload, GetBrandByBrandNameResult, AutocompleteBrandsResult, AutocompleteBrandsPayload } from '../../dto/brand.modules/brand';
4
4
  export declare class AmqpBrandService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -15,6 +15,4 @@ export declare class AmqpBrandService {
15
15
  getBrandRequiredCategories(param: AbstractParam): Promise<GetBrandRequiredCategoriesResult>;
16
16
  getBrandByBrandName(payload: GetBrandByBrandNamePayload, param: AbstractParam): Promise<GetBrandByBrandNameResult>;
17
17
  autocompleteBrands(payload: AutocompleteBrandsPayload, param: AbstractParam): Promise<AutocompleteBrandsResult>;
18
- updateBrandSubNames(payload: UpdateBrandSubNamesPayload, param: AbstractParam): Promise<void>;
19
- getBrandByNameOrSubNameForAdmin(payload: GetBrandByNameOrSubNameForAdminPayload, param: AbstractParam): Promise<GetBrandByNameOrSubNameForAdminResult>;
20
18
  }
@@ -51,12 +51,6 @@ let AmqpBrandService = class AmqpBrandService {
51
51
  async autocompleteBrands(payload, param) {
52
52
  return this.amqpManager.call('자동완성 브랜드 리스트 조회', 'brand.get.autocomplete', payload, param);
53
53
  }
54
- async updateBrandSubNames(payload, param) {
55
- return this.amqpManager.call('브랜드 유의어 수정', 'brand.update.sub-names', payload, param);
56
- }
57
- async getBrandByNameOrSubNameForAdmin(payload, param) {
58
- return this.amqpManager.call('브랜드 이름 또는 유의어로 조회 -관리자-', 'brand.get.by-name-or-sub-name-for-admin', payload, param);
59
- }
60
54
  };
61
55
  exports.AmqpBrandService = AmqpBrandService;
62
56
  exports.AmqpBrandService = AmqpBrandService = __decorate([
@@ -1,4 +0,0 @@
1
- export declare class UpdateBrandSubNamesPayload {
2
- brandName: string;
3
- subBrandNames: string[];
4
- }
@@ -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.UpdateBrandSubNamesPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class UpdateBrandSubNamesPayload {
15
- }
16
- exports.UpdateBrandSubNamesPayload = UpdateBrandSubNamesPayload;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], UpdateBrandSubNamesPayload.prototype, "brandName", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsArray)(),
24
- (0, class_validator_1.IsString)({ each: true }),
25
- __metadata("design:type", Array)
26
- ], UpdateBrandSubNamesPayload.prototype, "subBrandNames", void 0);
@@ -1,6 +0,0 @@
1
- import { BrandEntity } from '@yolo-croket-dev/entity-v2';
2
- export declare class GetBrandByNameOrSubNameForAdminPayload {
3
- brandName: string;
4
- }
5
- export interface GetBrandByNameOrSubNameForAdminResult extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName' | 'subBrandNames'> {
6
- }
@@ -1,20 +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.GetBrandByNameOrSubNameForAdminPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GetBrandByNameOrSubNameForAdminPayload {
15
- }
16
- exports.GetBrandByNameOrSubNameForAdminPayload = GetBrandByNameOrSubNameForAdminPayload;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- __metadata("design:type", String)
20
- ], GetBrandByNameOrSubNameForAdminPayload.prototype, "brandName", void 0);