@yolo-croket-dev/amqp-access 0.4.31 → 0.4.32
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/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 +18 -0
- package/coupon-server/dto/coupon-template/query/search-coupon-templates-for-admin.dto.js +53 -0
- package/coupon-server/services/amqp.coupon-template.service.d.ts +2 -1
- package/coupon-server/services/amqp.coupon-template.service.js +3 -0
- package/package.json +1 -1
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +0 -3
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +0 -7
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +0 -4
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +0 -26
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./item-max-discount-coupon"), exports);
|
|
18
18
|
__exportStar(require("./get-seleted-coupon-templates-by-codes.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-coupon-template-by-code.dto"), exports);
|
|
20
|
+
__exportStar(require("./search-coupon-templates-for-admin.dto"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CouponTemplateEntity } from '@yolo-croket-dev/entity/src/coupon-template';
|
|
2
|
+
export declare enum CouponTemplateUseEnum {
|
|
3
|
+
ALL = "ALL",
|
|
4
|
+
CAN_USE = "CAN_USE",
|
|
5
|
+
CANNOT_USE = "CANNOT_USE"
|
|
6
|
+
}
|
|
7
|
+
export declare class SearchCouponTemplatesForAdminPayload {
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
couponCode?: string;
|
|
11
|
+
canUseType?: CouponTemplateUseEnum;
|
|
12
|
+
sDate?: string;
|
|
13
|
+
eDate?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class SearchCouponTemplatesForAdminResult {
|
|
16
|
+
couponTemplates: CouponTemplateEntity[];
|
|
17
|
+
totalCount: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.SearchCouponTemplatesForAdminResult = exports.SearchCouponTemplatesForAdminPayload = exports.CouponTemplateUseEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var CouponTemplateUseEnum;
|
|
15
|
+
(function (CouponTemplateUseEnum) {
|
|
16
|
+
CouponTemplateUseEnum["ALL"] = "ALL";
|
|
17
|
+
CouponTemplateUseEnum["CAN_USE"] = "CAN_USE";
|
|
18
|
+
CouponTemplateUseEnum["CANNOT_USE"] = "CANNOT_USE";
|
|
19
|
+
})(CouponTemplateUseEnum || (exports.CouponTemplateUseEnum = CouponTemplateUseEnum = {}));
|
|
20
|
+
class SearchCouponTemplatesForAdminPayload {
|
|
21
|
+
}
|
|
22
|
+
exports.SearchCouponTemplatesForAdminPayload = SearchCouponTemplatesForAdminPayload;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "limit", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "page", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "couponCode", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsEnum)(CouponTemplateUseEnum),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "canUseType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsDateString)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "sDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsDateString)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], SearchCouponTemplatesForAdminPayload.prototype, "eDate", void 0);
|
|
51
|
+
class SearchCouponTemplatesForAdminResult {
|
|
52
|
+
}
|
|
53
|
+
exports.SearchCouponTemplatesForAdminResult = SearchCouponTemplatesForAdminResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload } from '../dto/coupon-template';
|
|
3
|
+
import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult } from '../dto/coupon-template';
|
|
4
4
|
export declare class AmqpCouponTemplateService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -12,4 +12,5 @@ export declare class AmqpCouponTemplateService {
|
|
|
12
12
|
getCouponTemplatesForUseableStoreMDTheme(payload: GetCouponTemplatesForUseableStoreMDThemePayload, param: AbstractParam): Promise<GetCouponTemplatesForUseableStoreMDThemeResult>;
|
|
13
13
|
getSeletedCouponTemplatesByCodes(payload: GetSeletedCouponTemplatesByCodesPayload, param: AbstractParam): Promise<any>;
|
|
14
14
|
getCouponTemplateByCode(payload: GetCouponTemplateByCodePayload, param: AbstractParam): Promise<any>;
|
|
15
|
+
searchCouponTemplatesForAdmin(payload: SearchCouponTemplatesForAdminPayload, param: AbstractParam): Promise<SearchCouponTemplatesForAdminResult>;
|
|
15
16
|
}
|
|
@@ -42,6 +42,9 @@ let AmqpCouponTemplateService = class AmqpCouponTemplateService {
|
|
|
42
42
|
async getCouponTemplateByCode(payload, param) {
|
|
43
43
|
return this.amqpManager.call('코드로 쿠폰 템플릿 조회', 'coupon-template.get.coupon-by-coupon-code', payload, param, { isErrorThrowing: true });
|
|
44
44
|
}
|
|
45
|
+
async searchCouponTemplatesForAdmin(payload, param) {
|
|
46
|
+
return this.amqpManager.call('쿠폰 템플릿 리스트 관리자 조회', 'coupon-template.get.coupon-templates-for-admin', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
45
48
|
};
|
|
46
49
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService;
|
|
47
50
|
exports.AmqpCouponTemplateService = AmqpCouponTemplateService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PullRedisDBPayload = void 0;
|
|
4
|
-
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
-
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
-
}
|
|
7
|
-
exports.PullRedisDBPayload = PullRedisDBPayload;
|
|
@@ -1,26 +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.PushRedisDBPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class PushRedisDBPayload {
|
|
15
|
-
}
|
|
16
|
-
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.MinLength)(1),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.MinLength)(1),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], PushRedisDBPayload.prototype, "value", void 0);
|