@yolo-croket-dev/amqp-access 0.7.307 → 0.7.309-sj
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/coupon-template/command/index.d.ts +1 -0
- package/coupon-server/dto/coupon-template/command/index.js +1 -0
- package/coupon-server/dto/coupon-template/command/seller-coupon-template.dto.d.ts +29 -0
- package/coupon-server/dto/coupon-template/command/seller-coupon-template.dto.js +100 -0
- package/coupon-server/dto/coupon-template/query/get-seller-coupon-templates.dto.d.ts +14 -0
- package/coupon-server/dto/coupon-template/query/get-seller-coupon-templates.dto.js +49 -0
- package/coupon-server/dto/coupon-template/query/index.d.ts +1 -0
- package/coupon-server/dto/coupon-template/query/index.js +1 -0
- package/coupon-server/dto/coupon-template/query/search-coupon-templates-for-admin.dto.d.ts +6 -0
- package/coupon-server/dto/coupon-template/query/search-coupon-templates-for-admin.dto.js +12 -1
- package/coupon-server/services/amqp.coupon-template.service.d.ts +5 -1
- package/coupon-server/services/amqp.coupon-template.service.js +12 -0
- package/package.json +2 -2
- package/store-item-server/dto/store-item/query/atlas-search/facet/get-item-group-nums.dto.d.ts +7 -1
- package/store-item-server/dto/store-item/query/atlas-search/facet/get-item-group-nums.dto.js +7 -0
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./pause-coupon-template.dto"), exports);
|
|
18
|
+
__exportStar(require("./seller-coupon-template.dto"), exports);
|
|
18
19
|
__exportStar(require("./create-coupon-template.dto"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CouponDiscountTypeEnum } from '@yolo-croket-dev/entity/src/coupon-template';
|
|
2
|
+
export declare enum SellerCouponTargetTypeEnum {
|
|
3
|
+
STORE_ALL = "STORE_ALL",
|
|
4
|
+
STORE_ITEMS = "STORE_ITEMS"
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateSellerCouponTemplatePayload {
|
|
7
|
+
targetType: SellerCouponTargetTypeEnum;
|
|
8
|
+
storeItemIds?: string[];
|
|
9
|
+
couponName: string;
|
|
10
|
+
discountType: CouponDiscountTypeEnum;
|
|
11
|
+
discountValue?: number;
|
|
12
|
+
discountRate?: number;
|
|
13
|
+
maxDiscountValue?: number;
|
|
14
|
+
isInfinity: boolean;
|
|
15
|
+
isLimitPrice: boolean;
|
|
16
|
+
minPrice?: number;
|
|
17
|
+
maxPrice?: number;
|
|
18
|
+
sDate: string;
|
|
19
|
+
eDate: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class EditSellerCouponTemplatePayload extends CreateSellerCouponTemplatePayload {
|
|
22
|
+
couponTemplateId: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class PauseSellerCouponTemplatePayload {
|
|
25
|
+
couponTemplateId: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class SellerCouponTemplateCommandResult {
|
|
28
|
+
couponTemplateId: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.SellerCouponTemplateCommandResult = exports.PauseSellerCouponTemplatePayload = exports.EditSellerCouponTemplatePayload = exports.CreateSellerCouponTemplatePayload = exports.SellerCouponTargetTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const coupon_template_1 = require("@yolo-croket-dev/entity/src/coupon-template");
|
|
15
|
+
var SellerCouponTargetTypeEnum;
|
|
16
|
+
(function (SellerCouponTargetTypeEnum) {
|
|
17
|
+
SellerCouponTargetTypeEnum["STORE_ALL"] = "STORE_ALL";
|
|
18
|
+
SellerCouponTargetTypeEnum["STORE_ITEMS"] = "STORE_ITEMS";
|
|
19
|
+
})(SellerCouponTargetTypeEnum || (exports.SellerCouponTargetTypeEnum = SellerCouponTargetTypeEnum = {}));
|
|
20
|
+
class CreateSellerCouponTemplatePayload {
|
|
21
|
+
}
|
|
22
|
+
exports.CreateSellerCouponTemplatePayload = CreateSellerCouponTemplatePayload;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEnum)(SellerCouponTargetTypeEnum),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateSellerCouponTemplatePayload.prototype, "targetType", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsArray)(),
|
|
29
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], CreateSellerCouponTemplatePayload.prototype, "storeItemIds", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateSellerCouponTemplatePayload.prototype, "couponName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsEnum)(coupon_template_1.CouponDiscountTypeEnum),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateSellerCouponTemplatePayload.prototype, "discountType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], CreateSellerCouponTemplatePayload.prototype, "discountValue", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsNumber)(),
|
|
48
|
+
(0, class_validator_1.Min)(0),
|
|
49
|
+
(0, class_validator_1.Max)(100),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CreateSellerCouponTemplatePayload.prototype, "discountRate", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CreateSellerCouponTemplatePayload.prototype, "maxDiscountValue", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsBoolean)(),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], CreateSellerCouponTemplatePayload.prototype, "isInfinity", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], CreateSellerCouponTemplatePayload.prototype, "isLimitPrice", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CreateSellerCouponTemplatePayload.prototype, "minPrice", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsNumber)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], CreateSellerCouponTemplatePayload.prototype, "maxPrice", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateSellerCouponTemplatePayload.prototype, "sDate", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreateSellerCouponTemplatePayload.prototype, "eDate", void 0);
|
|
84
|
+
class EditSellerCouponTemplatePayload extends CreateSellerCouponTemplatePayload {
|
|
85
|
+
}
|
|
86
|
+
exports.EditSellerCouponTemplatePayload = EditSellerCouponTemplatePayload;
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsMongoId)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], EditSellerCouponTemplatePayload.prototype, "couponTemplateId", void 0);
|
|
91
|
+
class PauseSellerCouponTemplatePayload {
|
|
92
|
+
}
|
|
93
|
+
exports.PauseSellerCouponTemplatePayload = PauseSellerCouponTemplatePayload;
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsMongoId)(),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], PauseSellerCouponTemplatePayload.prototype, "couponTemplateId", void 0);
|
|
98
|
+
class SellerCouponTemplateCommandResult {
|
|
99
|
+
}
|
|
100
|
+
exports.SellerCouponTemplateCommandResult = SellerCouponTemplateCommandResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum SellerCouponIssuanceStatusEnum {
|
|
2
|
+
ALL = "ALL",
|
|
3
|
+
SCHEDULED = "SCHEDULED",
|
|
4
|
+
ISSUING = "ISSUING",
|
|
5
|
+
PAUSED = "PAUSED",
|
|
6
|
+
EXPIRED = "EXPIRED"
|
|
7
|
+
}
|
|
8
|
+
export declare class GetSellerCouponTemplatesPayload {
|
|
9
|
+
page: number;
|
|
10
|
+
limit: number;
|
|
11
|
+
issuanceStatus?: SellerCouponIssuanceStatusEnum;
|
|
12
|
+
couponName?: string;
|
|
13
|
+
storeItemId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.GetSellerCouponTemplatesPayload = exports.SellerCouponIssuanceStatusEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var SellerCouponIssuanceStatusEnum;
|
|
15
|
+
(function (SellerCouponIssuanceStatusEnum) {
|
|
16
|
+
SellerCouponIssuanceStatusEnum["ALL"] = "ALL";
|
|
17
|
+
SellerCouponIssuanceStatusEnum["SCHEDULED"] = "SCHEDULED";
|
|
18
|
+
SellerCouponIssuanceStatusEnum["ISSUING"] = "ISSUING";
|
|
19
|
+
SellerCouponIssuanceStatusEnum["PAUSED"] = "PAUSED";
|
|
20
|
+
SellerCouponIssuanceStatusEnum["EXPIRED"] = "EXPIRED";
|
|
21
|
+
})(SellerCouponIssuanceStatusEnum || (exports.SellerCouponIssuanceStatusEnum = SellerCouponIssuanceStatusEnum = {}));
|
|
22
|
+
class GetSellerCouponTemplatesPayload {
|
|
23
|
+
}
|
|
24
|
+
exports.GetSellerCouponTemplatesPayload = GetSellerCouponTemplatesPayload;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
(0, class_validator_1.Min)(1),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GetSellerCouponTemplatesPayload.prototype, "page", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_validator_1.Min)(1),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], GetSellerCouponTemplatesPayload.prototype, "limit", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsEnum)(SellerCouponIssuanceStatusEnum),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], GetSellerCouponTemplatesPayload.prototype, "issuanceStatus", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GetSellerCouponTemplatesPayload.prototype, "couponName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsMongoId)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], GetSellerCouponTemplatesPayload.prototype, "storeItemId", void 0);
|
|
@@ -5,3 +5,4 @@ export * from './search-coupon-templates-for-admin.dto';
|
|
|
5
5
|
export * from './get-store-item-coupons-for-extraction-by-type.dto';
|
|
6
6
|
export * from './get-coupon-templates-by-theme-id.dto';
|
|
7
7
|
export * from './get-first-purchase-coupon-templates-for-product-feed.dto';
|
|
8
|
+
export * from './get-seller-coupon-templates.dto';
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./search-coupon-templates-for-admin.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./get-store-item-coupons-for-extraction-by-type.dto"), exports);
|
|
22
22
|
__exportStar(require("./get-coupon-templates-by-theme-id.dto"), exports);
|
|
23
23
|
__exportStar(require("./get-first-purchase-coupon-templates-for-product-feed.dto"), exports);
|
|
24
|
+
__exportStar(require("./get-seller-coupon-templates.dto"), exports);
|
|
@@ -4,6 +4,11 @@ export declare enum CouponTemplateUseEnum {
|
|
|
4
4
|
CAN_USE = "CAN_USE",
|
|
5
5
|
CANNOT_USE = "CANNOT_USE"
|
|
6
6
|
}
|
|
7
|
+
export declare enum CouponTemplateCreatorTypeEnum {
|
|
8
|
+
ALL = "ALL",
|
|
9
|
+
SELLER = "SELLER",
|
|
10
|
+
ADMIN = "ADMIN"
|
|
11
|
+
}
|
|
7
12
|
export declare class SearchCouponTemplatesForAdminPayload {
|
|
8
13
|
limit: number;
|
|
9
14
|
page: number;
|
|
@@ -15,6 +20,7 @@ export declare class SearchCouponTemplatesForAdminPayload {
|
|
|
15
20
|
storeItemId?: string;
|
|
16
21
|
storeId?: string;
|
|
17
22
|
firstPurchaseTarget?: FirstPurchaseTargetEnum;
|
|
23
|
+
creatorType?: CouponTemplateCreatorTypeEnum;
|
|
18
24
|
}
|
|
19
25
|
export declare class SearchCouponTemplatesForAdminResult {
|
|
20
26
|
couponTemplates: CouponTemplateEntity[];
|
|
@@ -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.SearchCouponTemplatesForAdminResult = exports.SearchCouponTemplatesForAdminPayload = exports.CouponTemplateUseEnum = void 0;
|
|
12
|
+
exports.SearchCouponTemplatesForAdminResult = exports.SearchCouponTemplatesForAdminPayload = exports.CouponTemplateCreatorTypeEnum = exports.CouponTemplateUseEnum = void 0;
|
|
13
13
|
const coupon_template_1 = require("@yolo-croket-dev/entity/src/coupon-template");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
var CouponTemplateUseEnum;
|
|
@@ -18,6 +18,12 @@ var CouponTemplateUseEnum;
|
|
|
18
18
|
CouponTemplateUseEnum["CAN_USE"] = "CAN_USE";
|
|
19
19
|
CouponTemplateUseEnum["CANNOT_USE"] = "CANNOT_USE";
|
|
20
20
|
})(CouponTemplateUseEnum || (exports.CouponTemplateUseEnum = CouponTemplateUseEnum = {}));
|
|
21
|
+
var CouponTemplateCreatorTypeEnum;
|
|
22
|
+
(function (CouponTemplateCreatorTypeEnum) {
|
|
23
|
+
CouponTemplateCreatorTypeEnum["ALL"] = "ALL";
|
|
24
|
+
CouponTemplateCreatorTypeEnum["SELLER"] = "SELLER";
|
|
25
|
+
CouponTemplateCreatorTypeEnum["ADMIN"] = "ADMIN";
|
|
26
|
+
})(CouponTemplateCreatorTypeEnum || (exports.CouponTemplateCreatorTypeEnum = CouponTemplateCreatorTypeEnum = {}));
|
|
21
27
|
class SearchCouponTemplatesForAdminPayload {
|
|
22
28
|
}
|
|
23
29
|
exports.SearchCouponTemplatesForAdminPayload = SearchCouponTemplatesForAdminPayload;
|
|
@@ -69,6 +75,11 @@ __decorate([
|
|
|
69
75
|
(0, class_validator_1.IsOptional)(),
|
|
70
76
|
__metadata("design:type", String)
|
|
71
77
|
], SearchCouponTemplatesForAdminPayload.prototype, "firstPurchaseTarget", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsEnum)(CouponTemplateCreatorTypeEnum),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "creatorType", void 0);
|
|
72
83
|
class SearchCouponTemplatesForAdminResult {
|
|
73
84
|
}
|
|
74
85
|
exports.SearchCouponTemplatesForAdminResult = SearchCouponTemplatesForAdminResult;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateCouponTemplatePayload, PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult, GetStoreItemCouponsForExtractionByTypePayload, GetStoreItemCouponsForExtractionByTypeResult, GetCouponTemplatesByThemeIdResult, GetCouponTemplatesByThemeIdPayload, GetFirstPurchaseCouponTemplatesForProductFeedResult } from '../dto/coupon-template';
|
|
3
|
+
import { CreateCouponTemplatePayload, PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult, GetStoreItemCouponsForExtractionByTypePayload, GetStoreItemCouponsForExtractionByTypeResult, GetCouponTemplatesByThemeIdResult, GetCouponTemplatesByThemeIdPayload, GetFirstPurchaseCouponTemplatesForProductFeedResult, CreateSellerCouponTemplatePayload, EditSellerCouponTemplatePayload, PauseSellerCouponTemplatePayload, SellerCouponTemplateCommandResult, GetSellerCouponTemplatesPayload } from '../dto/coupon-template';
|
|
4
4
|
export declare class AmqpCouponTemplateService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
createCouponTemplate(payload: CreateCouponTemplatePayload, param: AbstractParam): Promise<void>;
|
|
9
|
+
createSellerCouponTemplate(payload: CreateSellerCouponTemplatePayload, param: AbstractParam): Promise<SellerCouponTemplateCommandResult>;
|
|
10
|
+
editSellerCouponTemplate(payload: EditSellerCouponTemplatePayload, param: AbstractParam): Promise<SellerCouponTemplateCommandResult>;
|
|
11
|
+
pauseSellerCouponTemplate(payload: PauseSellerCouponTemplatePayload, param: AbstractParam): Promise<void>;
|
|
12
|
+
getSellerCouponTemplates(payload: GetSellerCouponTemplatesPayload, param: AbstractParam): Promise<any>;
|
|
9
13
|
getCouponTemplatesForItemMaxDiscountCoupon(payload: GetCouponTemplatesForItemMaxDiscountCouponPayload, param: AbstractParam): Promise<GetCouponTemplatesForItemMaxDiscountCouponResult>;
|
|
10
14
|
updateStoreItemConnectedCouponByAllTemplates(payload: void, param: AbstractParam): Promise<void>;
|
|
11
15
|
pauseCouponTemplate(payload: PauseCouponTemplatePayload, param: AbstractParam): Promise<void>;
|
|
@@ -24,6 +24,18 @@ let AmqpCouponTemplateService = class AmqpCouponTemplateService {
|
|
|
24
24
|
async createCouponTemplate(payload, param) {
|
|
25
25
|
return this.amqpManager.call('쿠폰 템플릿 생성', 'coupon-template.create', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
async createSellerCouponTemplate(payload, param) {
|
|
28
|
+
return this.amqpManager.call('셀러 쿠폰 템플릿 생성', 'coupon-template.seller.create', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
async editSellerCouponTemplate(payload, param) {
|
|
31
|
+
return this.amqpManager.call('셀러 쿠폰 템플릿 재발급', 'coupon-template.seller.edit', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
async pauseSellerCouponTemplate(payload, param) {
|
|
34
|
+
return this.amqpManager.call('셀러 쿠폰 템플릿 중지', 'coupon-template.seller.pause', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
async getSellerCouponTemplates(payload, param) {
|
|
37
|
+
return this.amqpManager.call('셀러 쿠폰 템플릿 목록 조회', 'coupon-template.seller.search', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
27
39
|
async getCouponTemplatesForItemMaxDiscountCoupon(payload, param) {
|
|
28
40
|
return this.amqpManager.call('쿠폰 템플릿 리스트 조회 (상품의 최대 할인 금액을 위해)', 'coupon-template.get.datas-for-item-max-discount-coupon', payload, param, { isErrorThrowing: true });
|
|
29
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.309-sj",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
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.
|
|
25
|
+
"@yolo-croket-dev/entity": "0.2.106-sj",
|
|
26
26
|
"@yolo-croket-dev/entity-v2": "0.3.39",
|
|
27
27
|
"class-transformer": "^0.5.1",
|
|
28
28
|
"class-validator": "^0.13.2",
|
package/store-item-server/dto/store-item/query/atlas-search/facet/get-item-group-nums.dto.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum GetItemGroupNumsGroupTypeEnum {
|
|
2
2
|
'category' = "category",
|
|
3
3
|
'nation' = "nation",
|
|
4
|
-
'price' = "price"
|
|
4
|
+
'price' = "price",
|
|
5
|
+
'brand' = "brand"
|
|
5
6
|
}
|
|
6
7
|
export declare class CategoryInfo {
|
|
7
8
|
mainCategory: string;
|
|
@@ -18,6 +19,7 @@ export declare class GetItemGroupNumsPayload {
|
|
|
18
19
|
maxPrice?: number;
|
|
19
20
|
includeItemIds?: string[];
|
|
20
21
|
brandName?: string;
|
|
22
|
+
brandNames?: string[];
|
|
21
23
|
includeUsedItems?: boolean;
|
|
22
24
|
}
|
|
23
25
|
interface CategoryGroup {
|
|
@@ -31,10 +33,14 @@ interface NationGroup {
|
|
|
31
33
|
interface PriceGroup {
|
|
32
34
|
price: string;
|
|
33
35
|
}
|
|
36
|
+
interface BrandGroup {
|
|
37
|
+
brandName: string;
|
|
38
|
+
}
|
|
34
39
|
interface ItemCountGroup {
|
|
35
40
|
categoryGroup?: CategoryGroup;
|
|
36
41
|
nationGroup?: NationGroup;
|
|
37
42
|
priceGroup?: PriceGroup;
|
|
43
|
+
brandGroup?: BrandGroup;
|
|
38
44
|
count: number;
|
|
39
45
|
}
|
|
40
46
|
export declare class GetItemGroupNumsResult {
|
package/store-item-server/dto/store-item/query/atlas-search/facet/get-item-group-nums.dto.js
CHANGED
|
@@ -17,6 +17,7 @@ var GetItemGroupNumsGroupTypeEnum;
|
|
|
17
17
|
GetItemGroupNumsGroupTypeEnum["category"] = "category";
|
|
18
18
|
GetItemGroupNumsGroupTypeEnum["nation"] = "nation";
|
|
19
19
|
GetItemGroupNumsGroupTypeEnum["price"] = "price";
|
|
20
|
+
GetItemGroupNumsGroupTypeEnum["brand"] = "brand";
|
|
20
21
|
})(GetItemGroupNumsGroupTypeEnum || (exports.GetItemGroupNumsGroupTypeEnum = GetItemGroupNumsGroupTypeEnum = {}));
|
|
21
22
|
class CategoryInfo {
|
|
22
23
|
}
|
|
@@ -85,6 +86,12 @@ __decorate([
|
|
|
85
86
|
(0, class_validator_1.IsOptional)(),
|
|
86
87
|
__metadata("design:type", String)
|
|
87
88
|
], GetItemGroupNumsPayload.prototype, "brandName", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsArray)(),
|
|
91
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], GetItemGroupNumsPayload.prototype, "brandNames", void 0);
|
|
88
95
|
__decorate([
|
|
89
96
|
(0, class_validator_1.IsBoolean)(),
|
|
90
97
|
(0, class_validator_1.IsOptional)(),
|