@yolo-croket-dev/amqp-access 0.7.135 → 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
11
|
issuedCoupon?: IssueCouponResult;
|
|
8
|
-
errorCode?:
|
|
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 = {}));
|