@yolo-croket-dev/amqp-access 0.7.309-sj1 → 0.7.309

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.
@@ -32,6 +32,7 @@ __decorate([
32
32
  ], CreateSellerCouponTemplatePayload.prototype, "storeItemIds", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.MaxLength)(30),
35
36
  __metadata("design:type", String)
36
37
  ], CreateSellerCouponTemplatePayload.prototype, "couponName", void 0);
37
38
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.309-sj1",
3
+ "version": "0.7.309",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,10 +22,10 @@
22
22
  "@yolo-croket-dev/core": "^1.9.3",
23
23
  "@yolo-croket-dev/domain": "0.2.47",
24
24
  "@yolo-croket-dev/dto-v2": "0.2.23",
25
- "@yolo-croket-dev/entity": "0.2.106-sj",
25
+ "@yolo-croket-dev/entity": "0.2.106",
26
26
  "@yolo-croket-dev/entity-v2": "0.3.39",
27
27
  "class-transformer": "^0.5.1",
28
28
  "class-validator": "^0.13.2",
29
29
  "dotenv": "^16.3.1"
30
30
  }
31
- }
31
+ }
@@ -0,0 +1,11 @@
1
+ import { BanWordTypeEnum } from '@yolo-croket-dev/entity/src/ban-word';
2
+ /** 쿠폰명 등 입력 문자열에 포함된 금지어를 모두 조회합니다. */
3
+ export declare class FindIncludedBanWordsPayload {
4
+ type: BanWordTypeEnum;
5
+ word: string;
6
+ isDelete: boolean;
7
+ }
8
+ export declare class FindIncludedBanWordsResult {
9
+ isExists: boolean;
10
+ banWords: string[];
11
+ }
@@ -0,0 +1,33 @@
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.FindIncludedBanWordsResult = exports.FindIncludedBanWordsPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ban_word_1 = require("@yolo-croket-dev/entity/src/ban-word");
15
+ /** 쿠폰명 등 입력 문자열에 포함된 금지어를 모두 조회합니다. */
16
+ class FindIncludedBanWordsPayload {
17
+ }
18
+ exports.FindIncludedBanWordsPayload = FindIncludedBanWordsPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsEnum)(ban_word_1.BanWordTypeEnum),
21
+ __metadata("design:type", String)
22
+ ], FindIncludedBanWordsPayload.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], FindIncludedBanWordsPayload.prototype, "word", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsBoolean)(),
29
+ __metadata("design:type", Boolean)
30
+ ], FindIncludedBanWordsPayload.prototype, "isDelete", void 0);
31
+ class FindIncludedBanWordsResult {
32
+ }
33
+ exports.FindIncludedBanWordsResult = FindIncludedBanWordsResult;
@@ -1 +1,2 @@
1
1
  export * from './is-exists-ban-words.dto';
2
+ export * from './find-included-ban-words.dto';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./is-exists-ban-words.dto"), exports);
18
+ __exportStar(require("./find-included-ban-words.dto"), exports);
@@ -1,9 +1,10 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { IsExistsBanWordsPayload } from '../dto/ban-word';
3
+ import { FindIncludedBanWordsPayload, FindIncludedBanWordsResult, IsExistsBanWordsPayload } from '../dto/ban-word';
4
4
  export declare class AmqpBanWordService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  isExistBanWords(payload: IsExistsBanWordsPayload, param: AbstractParam): Promise<boolean>;
9
+ findIncludedBanWords(payload: FindIncludedBanWordsPayload, param: AbstractParam): Promise<FindIncludedBanWordsResult>;
9
10
  }
@@ -24,6 +24,9 @@ let AmqpBanWordService = class AmqpBanWordService {
24
24
  async isExistBanWords(payload, param) {
25
25
  return this.amqpManager.call('ban word 존재 여부 확인', 'ban-word.is-exists', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ async findIncludedBanWords(payload, param) {
28
+ return this.amqpManager.call('입력 문자열에 포함된 금지어 조회', 'ban-word.find-included', payload, param, { isErrorThrowing: true });
29
+ }
27
30
  };
28
31
  exports.AmqpBanWordService = AmqpBanWordService;
29
32
  exports.AmqpBanWordService = AmqpBanWordService = __decorate([