@yolo-croket-dev/amqp-access 0.7.134 → 0.7.136

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.
@@ -2,8 +2,12 @@ import { IssueCouponResult } from '@yolo-croket-dev/dto-v2/coupon-server';
2
2
  export declare class IssueDailyRandomCouponPayload {
3
3
  dailyRandomCouponId: string;
4
4
  }
5
+ export declare enum IssueDailyRandomCouponErrorCode {
6
+ COUPON_ALREADY_ISSUED = "COUPON_ALREADY_ISSUED",
7
+ DAILY_COUPON_SOLD_OUT = "DAILY_COUPON_SOLD_OUT"
8
+ }
5
9
  export interface IssueDailyRandomCouponResult {
6
10
  isSuccess: boolean;
7
- issuedCoupon: IssueCouponResult;
8
- errorCode?: string;
11
+ issuedCoupon?: IssueCouponResult;
12
+ errorCode?: IssueDailyRandomCouponErrorCode;
9
13
  }
@@ -9,7 +9,7 @@ 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.IssueDailyRandomCouponPayload = void 0;
12
+ exports.IssueDailyRandomCouponErrorCode = exports.IssueDailyRandomCouponPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class IssueDailyRandomCouponPayload {
15
15
  }
@@ -18,3 +18,8 @@ __decorate([
18
18
  (0, class_validator_1.IsMongoId)(),
19
19
  __metadata("design:type", String)
20
20
  ], IssueDailyRandomCouponPayload.prototype, "dailyRandomCouponId", void 0);
21
+ var IssueDailyRandomCouponErrorCode;
22
+ (function (IssueDailyRandomCouponErrorCode) {
23
+ IssueDailyRandomCouponErrorCode["COUPON_ALREADY_ISSUED"] = "COUPON_ALREADY_ISSUED";
24
+ IssueDailyRandomCouponErrorCode["DAILY_COUPON_SOLD_OUT"] = "DAILY_COUPON_SOLD_OUT";
25
+ })(IssueDailyRandomCouponErrorCode || (exports.IssueDailyRandomCouponErrorCode = IssueDailyRandomCouponErrorCode = {}));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsIso8601Utc = IsIso8601Utc;
3
+ exports.IsIso8601Utc = void 0;
4
4
  const class_validator_1 = require("class-validator");
5
5
  /**
6
6
  * @author jun
@@ -42,3 +42,4 @@ function IsIso8601Utc(validationOptions) {
42
42
  });
43
43
  };
44
44
  }
45
+ exports.IsIso8601Utc = IsIso8601Utc;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsYyyyMmDd = IsYyyyMmDd;
3
+ exports.IsYyyyMmDd = void 0;
4
4
  const class_validator_1 = require("class-validator");
5
5
  /**
6
6
  * @author jun
@@ -43,3 +43,4 @@ function IsYyyyMmDd(validationOptions) {
43
43
  });
44
44
  };
45
45
  }
46
+ exports.IsYyyyMmDd = IsYyyyMmDd;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.134",
3
+ "version": "0.7.136",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -8,10 +8,10 @@
8
8
  "croket"
9
9
  ],
10
10
  "scripts": {
11
- "build": "tsc",
11
+ "build": "node ../../node_modules/typescript/bin/tsc",
12
12
  "lint": "eslint src/**/*.ts",
13
13
  "fix": "eslint --fix src/**/*.ts",
14
- "clean": "tsc --build --clean",
14
+ "clean": "node ../../node_modules/typescript/bin/tsc --build --clean",
15
15
  "prepublishOnly": "npm run build",
16
16
  "postpublish": "npm run clean"
17
17
  },
@@ -27,4 +27,4 @@
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
29
29
  }
30
- }
30
+ }