@yolo-croket-dev/amqp-access 0.7.308 → 0.7.309-sj1
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 +3 -3
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/user-service/dto/signup-certification/command/claim-signup-certification.dto.d.ts +0 -16
- package/user-service/dto/signup-certification/command/claim-signup-certification.dto.js +0 -35
- package/user-service/dto/signup-certification/command/index.d.ts +0 -1
- package/user-service/dto/signup-certification/command/index.js +0 -17
- package/user-service/dto/signup-certification/index.d.ts +0 -1
- package/user-service/dto/signup-certification/index.js +0 -17
- package/user-service/services/amqp.signup-certification.service.d.ts +0 -14
- package/user-service/services/amqp.signup-certification.service.js +0 -38
|
@@ -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-sj1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,10 +22,10 @@
|
|
|
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",
|
|
29
29
|
"dotenv": "^16.3.1"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author 홍준
|
|
3
|
-
* @description 가입 전 완료한 본인인증을 현재 사용자에게 귀속하는 요청
|
|
4
|
-
* @process 서버가 발급한 고엔트로피 식별자를 일회성으로 소비한다.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ClaimSignupCertificationPayload {
|
|
7
|
-
signupCertificationId: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @author 홍준
|
|
11
|
-
* @description 가입 전 본인인증 귀속 결과
|
|
12
|
-
* @process 민감정보를 반환하지 않고 CI 인증 반영 여부만 반환한다.
|
|
13
|
-
*/
|
|
14
|
-
export declare class ClaimSignupCertificationResult {
|
|
15
|
-
ciCertified: boolean;
|
|
16
|
-
}
|
|
@@ -1,35 +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.ClaimSignupCertificationResult = exports.ClaimSignupCertificationPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* @author 홍준
|
|
16
|
-
* @description 가입 전 완료한 본인인증을 현재 사용자에게 귀속하는 요청
|
|
17
|
-
* @process 서버가 발급한 고엔트로피 식별자를 일회성으로 소비한다.
|
|
18
|
-
*/
|
|
19
|
-
class ClaimSignupCertificationPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.ClaimSignupCertificationPayload = ClaimSignupCertificationPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{43}$/),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], ClaimSignupCertificationPayload.prototype, "signupCertificationId", void 0);
|
|
28
|
-
/**
|
|
29
|
-
* @author 홍준
|
|
30
|
-
* @description 가입 전 본인인증 귀속 결과
|
|
31
|
-
* @process 민감정보를 반환하지 않고 CI 인증 반영 여부만 반환한다.
|
|
32
|
-
*/
|
|
33
|
-
class ClaimSignupCertificationResult {
|
|
34
|
-
}
|
|
35
|
-
exports.ClaimSignupCertificationResult = ClaimSignupCertificationResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './claim-signup-certification.dto';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./claim-signup-certification.dto"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './command';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./command"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { ClaimSignupCertificationPayload, ClaimSignupCertificationResult } from '../dto/signup-certification';
|
|
4
|
-
/**
|
|
5
|
-
* @author 홍준
|
|
6
|
-
* @description 가입 전 본인인증 귀속 AMQP client
|
|
7
|
-
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
8
|
-
*/
|
|
9
|
-
export declare class AmqpSignupCertificationService {
|
|
10
|
-
private readonly client;
|
|
11
|
-
private readonly amqpManager;
|
|
12
|
-
constructor(client: ClientProxy);
|
|
13
|
-
claim(payload: ClaimSignupCertificationPayload, param: AbstractParam): Promise<ClaimSignupCertificationResult>;
|
|
14
|
-
}
|
|
@@ -1,38 +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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AmqpSignupCertificationService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
-
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
-
/**
|
|
20
|
-
* @author 홍준
|
|
21
|
-
* @description 가입 전 본인인증 귀속 AMQP client
|
|
22
|
-
* @process 가입 완료 후 로그인된 사용자에게 일회성 인증 결과를 연결한다.
|
|
23
|
-
*/
|
|
24
|
-
let AmqpSignupCertificationService = class AmqpSignupCertificationService {
|
|
25
|
-
constructor(client) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
-
}
|
|
29
|
-
async claim(payload, param) {
|
|
30
|
-
return this.amqpManager.call('가입 전 본인인증 사용자 귀속', 'signup-certification.claim', payload, param, { isErrorThrowing: true });
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.AmqpSignupCertificationService = AmqpSignupCertificationService;
|
|
34
|
-
exports.AmqpSignupCertificationService = AmqpSignupCertificationService = __decorate([
|
|
35
|
-
(0, common_1.Injectable)(),
|
|
36
|
-
__param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
|
|
37
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
38
|
-
], AmqpSignupCertificationService);
|