@yolo-croket-dev/amqp-access 0.3.22-receipt-coupon-4 → 0.3.22
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.
- package/coupon-server/dto/issued-coupon/query/index.d.ts +0 -1
- package/coupon-server/dto/issued-coupon/query/index.js +0 -1
- package/coupon-server/dto/receipt-coupon-template/query/search-receipt-coupon-templates-for-admin.dto.d.ts +7 -10
- package/coupon-server/dto/receipt-coupon-template/query/search-receipt-coupon-templates-for-admin.dto.js +10 -18
- package/coupon-server/services/amqp.issued-coupon.service.d.ts +1 -2
- package/coupon-server/services/amqp.issued-coupon.service.js +0 -3
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.d.ts +1 -0
- package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.js +5 -0
- package/package.json +1 -1
- package/coupon-server/dto/issued-coupon/query/get-my-limit-item-issued-coupons.dto.d.ts +0 -22
- package/coupon-server/dto/issued-coupon/query/get-my-limit-item-issued-coupons.dto.js +0 -37
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./check-can-use-coupon-for-payment.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-selected-issued-coupons-by-ids.dto"), exports);
|
|
19
|
-
__exportStar(require("./get-my-limit-item-issued-coupons.dto"), exports);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReceiptCouponTemplateEntity } from '@yolo-croket-dev/entity-v2/receipt-coupon-template/receipt-coupon-template.entity';
|
|
2
|
-
export declare enum
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
STORE_ITEM_ID = "STORE_ITEM_ID"
|
|
2
|
+
export declare enum SearchReceiptCouponTemplatesForAdminType {
|
|
3
|
+
GENERAL = "GENERAL",
|
|
4
|
+
COUPON_CODE = "COUPON_CODE"
|
|
6
5
|
}
|
|
7
6
|
export declare enum ReceiptCouponTemplateCanUseTypeEnum {
|
|
8
7
|
CAN_USE = "CAN_USE",
|
|
@@ -10,15 +9,13 @@ export declare enum ReceiptCouponTemplateCanUseTypeEnum {
|
|
|
10
9
|
ALL = "ALL"
|
|
11
10
|
}
|
|
12
11
|
export declare class SearchReceiptCouponTemplatesForAdminPayload {
|
|
13
|
-
searchType:
|
|
12
|
+
searchType: SearchReceiptCouponTemplatesForAdminType;
|
|
14
13
|
limit: number;
|
|
15
14
|
page: number;
|
|
16
|
-
canUseType
|
|
17
|
-
regStartDate
|
|
18
|
-
regEndDate
|
|
15
|
+
canUseType?: ReceiptCouponTemplateCanUseTypeEnum;
|
|
16
|
+
regStartDate?: Date;
|
|
17
|
+
regEndDate?: Date;
|
|
19
18
|
couponCode?: string;
|
|
20
|
-
storeId?: string;
|
|
21
|
-
storeItemId?: string;
|
|
22
19
|
}
|
|
23
20
|
export declare class SearchReceiptCouponTemplatesForAdminResult {
|
|
24
21
|
datas: ReceiptCouponTemplateEntity[];
|
|
@@ -9,14 +9,13 @@ 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.SearchReceiptCouponTemplatesForAdminResult = exports.SearchReceiptCouponTemplatesForAdminPayload = exports.ReceiptCouponTemplateCanUseTypeEnum = exports.
|
|
12
|
+
exports.SearchReceiptCouponTemplatesForAdminResult = exports.SearchReceiptCouponTemplatesForAdminPayload = exports.ReceiptCouponTemplateCanUseTypeEnum = exports.SearchReceiptCouponTemplatesForAdminType = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
var
|
|
15
|
-
(function (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})(SearchReceiptCouponTemplatesForAdminSearchType || (exports.SearchReceiptCouponTemplatesForAdminSearchType = SearchReceiptCouponTemplatesForAdminSearchType = {}));
|
|
14
|
+
var SearchReceiptCouponTemplatesForAdminType;
|
|
15
|
+
(function (SearchReceiptCouponTemplatesForAdminType) {
|
|
16
|
+
SearchReceiptCouponTemplatesForAdminType["GENERAL"] = "GENERAL";
|
|
17
|
+
SearchReceiptCouponTemplatesForAdminType["COUPON_CODE"] = "COUPON_CODE";
|
|
18
|
+
})(SearchReceiptCouponTemplatesForAdminType || (exports.SearchReceiptCouponTemplatesForAdminType = SearchReceiptCouponTemplatesForAdminType = {}));
|
|
20
19
|
var ReceiptCouponTemplateCanUseTypeEnum;
|
|
21
20
|
(function (ReceiptCouponTemplateCanUseTypeEnum) {
|
|
22
21
|
ReceiptCouponTemplateCanUseTypeEnum["CAN_USE"] = "CAN_USE";
|
|
@@ -27,7 +26,7 @@ class SearchReceiptCouponTemplatesForAdminPayload {
|
|
|
27
26
|
}
|
|
28
27
|
exports.SearchReceiptCouponTemplatesForAdminPayload = SearchReceiptCouponTemplatesForAdminPayload;
|
|
29
28
|
__decorate([
|
|
30
|
-
(0, class_validator_1.IsEnum)(
|
|
29
|
+
(0, class_validator_1.IsEnum)(SearchReceiptCouponTemplatesForAdminType),
|
|
31
30
|
__metadata("design:type", String)
|
|
32
31
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "searchType", void 0);
|
|
33
32
|
__decorate([
|
|
@@ -40,14 +39,17 @@ __decorate([
|
|
|
40
39
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "page", void 0);
|
|
41
40
|
__decorate([
|
|
42
41
|
(0, class_validator_1.IsEnum)(ReceiptCouponTemplateCanUseTypeEnum),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "canUseType", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, class_validator_1.IsDateString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
48
|
__metadata("design:type", Date)
|
|
48
49
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "regStartDate", void 0);
|
|
49
50
|
__decorate([
|
|
50
51
|
(0, class_validator_1.IsDateString)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
53
|
__metadata("design:type", Date)
|
|
52
54
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "regEndDate", void 0);
|
|
53
55
|
__decorate([
|
|
@@ -55,16 +57,6 @@ __decorate([
|
|
|
55
57
|
(0, class_validator_1.IsOptional)(),
|
|
56
58
|
__metadata("design:type", String)
|
|
57
59
|
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "couponCode", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsMongoId)(),
|
|
60
|
-
(0, class_validator_1.IsOptional)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "storeId", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsMongoId)(),
|
|
65
|
-
(0, class_validator_1.IsOptional)(),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], SearchReceiptCouponTemplatesForAdminPayload.prototype, "storeItemId", void 0);
|
|
68
60
|
class SearchReceiptCouponTemplatesForAdminResult {
|
|
69
61
|
}
|
|
70
62
|
exports.SearchReceiptCouponTemplatesForAdminResult = SearchReceiptCouponTemplatesForAdminResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { GetUseableIssuedCouponsPayload, GetUseableIssuedCouponsResult } from '@yolo-croket-dev/dto-v2/coupon-server';
|
|
4
|
-
import { CheckCanUseCouponForPaymentPayload, GetSelectedIssuedCouponsByIdsPayload, GetSelectedIssuedCouponsByIdsResult
|
|
4
|
+
import { CheckCanUseCouponForPaymentPayload, GetSelectedIssuedCouponsByIdsPayload, GetSelectedIssuedCouponsByIdsResult } from '../dto/issued-coupon';
|
|
5
5
|
export declare class AmqpIssuedCouponService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -9,5 +9,4 @@ export declare class AmqpIssuedCouponService {
|
|
|
9
9
|
checkCanUseCouponForPayment(payload: CheckCanUseCouponForPaymentPayload, param: AbstractParam): Promise<void>;
|
|
10
10
|
getSelectedIssuedCouponsByIds(payload: GetSelectedIssuedCouponsByIdsPayload, param: AbstractParam): Promise<GetSelectedIssuedCouponsByIdsResult>;
|
|
11
11
|
getUseableIssuedCoupons(payload: GetUseableIssuedCouponsPayload, param: AbstractParam): Promise<GetUseableIssuedCouponsResult>;
|
|
12
|
-
getMyLimitItemIssuedCoupons(payload: GetMyLimitItemIssuedCouponsPayload, param: AbstractParam): Promise<GetMyLimitItemIssuedCouponsResult>;
|
|
13
12
|
}
|
|
@@ -30,9 +30,6 @@ let AmqpIssuedCouponService = class AmqpIssuedCouponService {
|
|
|
30
30
|
async getUseableIssuedCoupons(payload, param) {
|
|
31
31
|
return this.amqpManager.call('사용가능한 쿠폰 조회', 'coupon-user.get.useable-issued-coupons', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
-
async getMyLimitItemIssuedCoupons(payload, param) {
|
|
34
|
-
return this.amqpManager.call('내 쿠폰 중 상품 제한 쿠폰만 가져오기', 'issued-coupon.get.my-limit-item-issued-coupons', payload, param, { isErrorThrowing: true });
|
|
35
|
-
}
|
|
36
33
|
};
|
|
37
34
|
exports.AmqpIssuedCouponService = AmqpIssuedCouponService;
|
|
38
35
|
exports.AmqpIssuedCouponService = AmqpIssuedCouponService = __decorate([
|
package/order-server/dto/pay-try-log/command/write-normal-store-item-pay-try-log-after.dto.js
CHANGED
|
@@ -56,6 +56,11 @@ __decorate([
|
|
|
56
56
|
(0, class_validator_1.IsOptional)(),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "bundlePInfoId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsMongoId)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], WriteNormalStoreItemPayTryLogAfterPayload.prototype, "ICId", void 0);
|
|
59
64
|
__decorate([
|
|
60
65
|
(0, class_validator_1.IsBoolean)(),
|
|
61
66
|
(0, class_validator_1.IsOptional)(),
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare class GetMyLimitItemIssuedCouponData {
|
|
2
|
-
itemId: string;
|
|
3
|
-
basePrice: number;
|
|
4
|
-
}
|
|
5
|
-
export declare class GetMyLimitItemIssuedCouponsPayload {
|
|
6
|
-
itemInfos: GetMyLimitItemIssuedCouponData[];
|
|
7
|
-
}
|
|
8
|
-
export interface LimitItemIssuedCoupon {
|
|
9
|
-
/** 상품 아이디 */
|
|
10
|
-
itemId: string;
|
|
11
|
-
/** 발급된 쿠폰 아이디 */
|
|
12
|
-
ICId: string;
|
|
13
|
-
/** 주문서 쿠폰과 중복 사용 가능 여부 */
|
|
14
|
-
isCanUseWithReceiptCoupon: boolean;
|
|
15
|
-
/** 할인 값 */
|
|
16
|
-
discountValue: number;
|
|
17
|
-
/** 할인 결과 값 */
|
|
18
|
-
discountResult: number;
|
|
19
|
-
}
|
|
20
|
-
export declare class GetMyLimitItemIssuedCouponsResult {
|
|
21
|
-
limitItemIssuedCoupons: LimitItemIssuedCoupon[];
|
|
22
|
-
}
|
|
@@ -1,37 +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.GetMyLimitItemIssuedCouponsResult = exports.GetMyLimitItemIssuedCouponsPayload = exports.GetMyLimitItemIssuedCouponData = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
class GetMyLimitItemIssuedCouponData {
|
|
16
|
-
}
|
|
17
|
-
exports.GetMyLimitItemIssuedCouponData = GetMyLimitItemIssuedCouponData;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsMongoId)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], GetMyLimitItemIssuedCouponData.prototype, "itemId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsNumber)(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], GetMyLimitItemIssuedCouponData.prototype, "basePrice", void 0);
|
|
26
|
-
class GetMyLimitItemIssuedCouponsPayload {
|
|
27
|
-
}
|
|
28
|
-
exports.GetMyLimitItemIssuedCouponsPayload = GetMyLimitItemIssuedCouponsPayload;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsArray)(),
|
|
31
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
-
(0, class_transformer_1.Type)(() => GetMyLimitItemIssuedCouponData),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], GetMyLimitItemIssuedCouponsPayload.prototype, "itemInfos", void 0);
|
|
35
|
-
class GetMyLimitItemIssuedCouponsResult {
|
|
36
|
-
}
|
|
37
|
-
exports.GetMyLimitItemIssuedCouponsResult = GetMyLimitItemIssuedCouponsResult;
|