@yolo-croket-dev/amqp-access 0.5.145-jun.2 → 0.5.145-jun.3

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.
@@ -1,8 +1,18 @@
1
1
  import { ApiSecretCheckEntity } from '@yolo-croket-dev/entity-v2/api-key.modules/api-secret-check/api-secret-check.entity';
2
2
  export declare const GetSecretCheckListMessagePattern = "api-secret-check.get.list";
3
+ /**
4
+ * Secret Check List 검색 타입 Enum
5
+ */
6
+ export declare enum SearchTypeEnum {
7
+ USER_ID = "userId",
8
+ MEMO = "memo",
9
+ TYPE = "type",
10
+ PROCESS = "process"
11
+ }
3
12
  export declare class GetSecretCheckListPayload {
4
13
  limit: number;
5
14
  page: number;
15
+ searchType?: SearchTypeEnum;
6
16
  userId?: string;
7
17
  memo?: string;
8
18
  type?: string;
@@ -9,9 +9,19 @@ 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.GetSecretCheckListResult = exports.GetSecretCheckListPayload = exports.GetSecretCheckListMessagePattern = void 0;
12
+ exports.GetSecretCheckListResult = exports.GetSecretCheckListPayload = exports.SearchTypeEnum = exports.GetSecretCheckListMessagePattern = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  exports.GetSecretCheckListMessagePattern = 'api-secret-check.get.list';
15
+ /**
16
+ * Secret Check List 검색 타입 Enum
17
+ */
18
+ var SearchTypeEnum;
19
+ (function (SearchTypeEnum) {
20
+ SearchTypeEnum["USER_ID"] = "userId";
21
+ SearchTypeEnum["MEMO"] = "memo";
22
+ SearchTypeEnum["TYPE"] = "type";
23
+ SearchTypeEnum["PROCESS"] = "process";
24
+ })(SearchTypeEnum || (exports.SearchTypeEnum = SearchTypeEnum = {}));
15
25
  class GetSecretCheckListPayload {
16
26
  }
17
27
  exports.GetSecretCheckListPayload = GetSecretCheckListPayload;
@@ -24,19 +34,28 @@ __decorate([
24
34
  __metadata("design:type", Number)
25
35
  ], GetSecretCheckListPayload.prototype, "page", void 0);
26
36
  __decorate([
27
- (0, class_validator_1.IsMongoId)(),
37
+ (0, class_validator_1.IsEnum)(SearchTypeEnum),
38
+ (0, class_validator_1.IsOptional)(),
39
+ __metadata("design:type", String)
40
+ ], GetSecretCheckListPayload.prototype, "searchType", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_validator_1.IsOptional)(),
28
44
  __metadata("design:type", String)
29
45
  ], GetSecretCheckListPayload.prototype, "userId", void 0);
30
46
  __decorate([
31
47
  (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.IsOptional)(),
32
49
  __metadata("design:type", String)
33
50
  ], GetSecretCheckListPayload.prototype, "memo", void 0);
34
51
  __decorate([
35
52
  (0, class_validator_1.IsString)(),
53
+ (0, class_validator_1.IsOptional)(),
36
54
  __metadata("design:type", String)
37
55
  ], GetSecretCheckListPayload.prototype, "type", void 0);
38
56
  __decorate([
39
57
  (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.IsOptional)(),
40
59
  __metadata("design:type", String)
41
60
  ], GetSecretCheckListPayload.prototype, "process", void 0);
42
61
  class GetSecretCheckListResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.145-jun.2",
3
+ "version": "0.5.145-jun.3",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",