@yolo-croket-dev/amqp-access 0.4.91-jun.9 → 0.4.92-slowquery.0
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/order-server/amqp.order-server.module.js +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +0 -2
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +0 -2
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-uniq-transaction-user.dto.d.ts +12 -0
- package/{payment-service/dto/ad-center-settle/command/delete-ad-center-settles.dto.js → order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-uniq-transaction-user.dto.js} +9 -10
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js +17 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +1 -3
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +0 -6
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.d.ts +9 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.js +33 -0
- package/order-server/services/purchased-info.modules/index.d.ts +1 -0
- package/order-server/services/purchased-info.modules/index.js +1 -0
- package/package.json +3 -3
- package/payment-service/dto/ad-center-settle/command/index.d.ts +0 -3
- package/payment-service/dto/ad-center-settle/command/index.js +0 -3
- package/payment-service/services/amqp.ad-center-settle.service.d.ts +1 -4
- package/payment-service/services/amqp.ad-center-settle.service.js +0 -9
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/{payment-service/dto/ad-center-settle/command/delete-ad-center-coupon-settle.dto.js → user-service/dto/redis-db/command/push-redis-db.dto.js} +11 -7
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-p-info-used-coupon.dto.d.ts +0 -10
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-p-info-used-coupon.dto.js +0 -31
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-used-coupon.dto.d.ts +0 -38
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-used-coupon.dto.js +0 -89
- package/payment-service/dto/ad-center-settle/command/delete-ad-center-coupon-settle.dto.d.ts +0 -4
- package/payment-service/dto/ad-center-settle/command/delete-ad-center-settles.dto.d.ts +0 -5
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-coupon-settle.dto.d.ts +0 -8
- package/payment-service/dto/ad-center-settle/command/edit-ad-center-coupon-settle.dto.js +0 -34
|
@@ -30,6 +30,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
30
30
|
services_1.AmqpPurchaseReceiptService,
|
|
31
31
|
services_1.AmqpPurchasedInfoAdminService,
|
|
32
32
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
33
|
+
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
33
34
|
],
|
|
34
35
|
exports: [
|
|
35
36
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -45,6 +46,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
45
46
|
services_1.AmqpPurchaseReceiptService,
|
|
46
47
|
services_1.AmqpPurchasedInfoAdminService,
|
|
47
48
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
49
|
+
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
48
50
|
],
|
|
49
51
|
})
|
|
50
52
|
], AmqpOrderServerModule);
|
|
@@ -4,5 +4,3 @@ export * from './edit-p-info-price.dto';
|
|
|
4
4
|
export * from './edit-p-info-process.dto';
|
|
5
5
|
export * from './edit-p-info-receiver-info.dto';
|
|
6
6
|
export * from './edit-p-info-waiting-receive-info.dto';
|
|
7
|
-
export * from './edit-p-info-used-coupon.dto';
|
|
8
|
-
export * from './delete-p-info-used-coupon.dto';
|
|
@@ -20,5 +20,3 @@ __exportStar(require("./edit-p-info-price.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./edit-p-info-process.dto"), exports);
|
|
21
21
|
__exportStar(require("./edit-p-info-receiver-info.dto"), exports);
|
|
22
22
|
__exportStar(require("./edit-p-info-waiting-receive-info.dto"), exports);
|
|
23
|
-
__exportStar(require("./edit-p-info-used-coupon.dto"), exports);
|
|
24
|
-
__exportStar(require("./delete-p-info-used-coupon.dto"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GetAnalyticsAggregationUniqTransactionUserPayload {
|
|
2
|
+
/** 조회 시작 시간 */
|
|
3
|
+
startedAt: string;
|
|
4
|
+
/** 조회 끝 시간 */
|
|
5
|
+
endedAt: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetAnalyticsAggregationUniqTransactionUserResult {
|
|
8
|
+
/** 구매자 수 */
|
|
9
|
+
totalUniqueBuyerCount: number;
|
|
10
|
+
/** 1건이라도 판매한 셀러 수 */
|
|
11
|
+
totalUniqueSellerCount: number;
|
|
12
|
+
}
|
|
@@ -9,17 +9,16 @@ 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.
|
|
12
|
+
exports.GetAnalyticsAggregationUniqTransactionUserPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
-
class DeleteAdCenterSettlesPayload {
|
|
14
|
+
class GetAnalyticsAggregationUniqTransactionUserPayload {
|
|
16
15
|
}
|
|
17
|
-
exports.
|
|
16
|
+
exports.GetAnalyticsAggregationUniqTransactionUserPayload = GetAnalyticsAggregationUniqTransactionUserPayload;
|
|
18
17
|
__decorate([
|
|
19
|
-
(0, class_validator_1.
|
|
20
|
-
__metadata("design:type",
|
|
21
|
-
],
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetAnalyticsAggregationUniqTransactionUserPayload.prototype, "startedAt", void 0);
|
|
22
21
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
24
|
-
__metadata("design:type",
|
|
25
|
-
],
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetAnalyticsAggregationUniqTransactionUserPayload.prototype, "endedAt", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-analytics-aggregation-uniq-transaction-user.dto';
|
package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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("./get-analytics-aggregation-uniq-transaction-user.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload
|
|
3
|
+
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload } from '../../dto/purchased-info.modules';
|
|
4
4
|
export declare class AmqpPurchasedInfoAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -13,6 +13,4 @@ export declare class AmqpPurchasedInfoAdminService {
|
|
|
13
13
|
editPInfoProcess(payload: EditPInfoProcessPayload, param: AbstractParam): Promise<void>;
|
|
14
14
|
editPInfoReceiverInfo(payload: EditPInfoReceiverInfoPayload, param: AbstractParam): Promise<void>;
|
|
15
15
|
editPInfoWaitingReceiveInfo(payload: EditPInfoWaitingReceiveInfoPayload, param: AbstractParam): Promise<void>;
|
|
16
|
-
editPInfoUsedCouponInfo(payload: EditPInfoUsedCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
17
|
-
deletePInfoUsedCouponInfo(payload: DeletePInfoUsedCouponInfoPayload, param: AbstractParam): Promise<void>;
|
|
18
16
|
}
|
|
@@ -45,12 +45,6 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
|
|
|
45
45
|
async editPInfoWaitingReceiveInfo(payload, param) {
|
|
46
46
|
return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.waiting-receive-info', payload, param, { isErrorThrowing: true });
|
|
47
47
|
}
|
|
48
|
-
async editPInfoUsedCouponInfo(payload, param) {
|
|
49
|
-
return this.amqpManager.call('결제 상세 사용 쿠폰 정보 수정 (관리자)', 'purchased-info-admin.edit.used-coupon-info', payload, param, { isErrorThrowing: true });
|
|
50
|
-
}
|
|
51
|
-
async deletePInfoUsedCouponInfo(payload, param) {
|
|
52
|
-
return this.amqpManager.call('결제 상세 사용 쿠폰 정보 삭제 (관리자)', 'purchased-info-admin.delete.used-coupon-info', payload, param, { isErrorThrowing: true });
|
|
53
|
-
}
|
|
54
48
|
};
|
|
55
49
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
|
|
56
50
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetAnalyticsAggregationUniqTransactionUserPayload, GetAnalyticsAggregationUniqTransactionUserResult } from '../../dto/purchased-info.modules/purchased-info-analytics-aggregation/query';
|
|
4
|
+
export declare class AmqpPurchasedInfoAnalyticsAggregationService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
getUniqTransactionUser(payload: GetAnalyticsAggregationUniqTransactionUserPayload, param: AbstractParam): Promise<GetAnalyticsAggregationUniqTransactionUserResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpPurchasedInfoAnalyticsAggregationService = 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
|
+
let AmqpPurchasedInfoAnalyticsAggregationService = class AmqpPurchasedInfoAnalyticsAggregationService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getUniqTransactionUser(payload, param) {
|
|
25
|
+
return this.amqpManager.call('구매자, 셀러 유니크 수 조회', 'purchased-info-analytics-aggregation.get.uniq-transaction-user', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService;
|
|
29
|
+
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpPurchasedInfoAnalyticsAggregationService);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.purchased-info-admin.service"), exports);
|
|
18
|
+
__exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.92-slowquery.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@yolo-croket-dev/core": "1.7.17",
|
|
22
22
|
"@yolo-croket-dev/domain": "0.1.4",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.1.7",
|
|
24
|
-
"@yolo-croket-dev/entity": "0.2.
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.1.44
|
|
24
|
+
"@yolo-croket-dev/entity": "^0.2.1",
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.1.44",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -15,6 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-ad-center-coupon-settles.dto"), exports);
|
|
18
|
-
__exportStar(require("./edit-ad-center-coupon-settle.dto"), exports);
|
|
19
|
-
__exportStar(require("./delete-ad-center-settles.dto"), exports);
|
|
20
|
-
__exportStar(require("./delete-ad-center-coupon-settle.dto"), exports);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreateAdCenterCouponSettlesPayload
|
|
3
|
+
import { CreateAdCenterCouponSettlesPayload } from '../dto/ad-center-settle';
|
|
4
4
|
export declare class AmqpAdCenterSettleService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
createAdCenterCouponSettles(payload: CreateAdCenterCouponSettlesPayload, param: AbstractParam): Promise<void>;
|
|
9
|
-
deleteAdCenterSettles(payload: DeleteAdCenterSettlesPayload, param: AbstractParam): Promise<void>;
|
|
10
|
-
editAdCenterCouponSettle(payload: EditAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
|
|
11
|
-
deleteAdCenterCouponSettle(payload: DeleteAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
|
|
12
9
|
}
|
|
@@ -25,15 +25,6 @@ let AmqpAdCenterSettleService = class AmqpAdCenterSettleService {
|
|
|
25
25
|
// eslint-disable-next-line max-len
|
|
26
26
|
return this.amqpManager.call('광고센터쿠폰 정산 데이터 생성', 'ad-center-settle.create.ad-center-coupon', payload, param, { isErrorThrowing: true });
|
|
27
27
|
}
|
|
28
|
-
async deleteAdCenterSettles(payload, param) {
|
|
29
|
-
return this.amqpManager.call('광고센터쿠폰 정산 데이터 삭제', 'ad-center-settle.delete', payload, param);
|
|
30
|
-
}
|
|
31
|
-
async editAdCenterCouponSettle(payload, param) {
|
|
32
|
-
return this.amqpManager.call('광고센터쿠폰 정산 데이터 수정', 'ad-center-settle.edit.ad-center-coupon', payload, param);
|
|
33
|
-
}
|
|
34
|
-
async deleteAdCenterCouponSettle(payload, param) {
|
|
35
|
-
return this.amqpManager.call('광고센터쿠폰 정산 데이터 삭제', 'ad-center-settle.delete.ad-center-coupon', payload, param);
|
|
36
|
-
}
|
|
37
28
|
};
|
|
38
29
|
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService;
|
|
39
30
|
exports.AmqpAdCenterSettleService = AmqpAdCenterSettleService = __decorate([
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -9,14 +9,18 @@ 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.
|
|
12
|
+
exports.PushRedisDBPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class PushRedisDBPayload {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
|
|
20
|
-
,
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
21
20
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
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);
|
|
@@ -1,31 +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.DeletePInfoUsedCouponInfoPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
16
|
-
*/
|
|
17
|
-
class DeletePInfoUsedCouponInfoPayload {
|
|
18
|
-
}
|
|
19
|
-
exports.DeletePInfoUsedCouponInfoPayload = DeletePInfoUsedCouponInfoPayload;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsMongoId)({ message: '구매 정보 ID는 유효한 MongoDB ID여야 합니다' }),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], DeletePInfoUsedCouponInfoPayload.prototype, "pInfoId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsBoolean)({ message: '일반 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
26
|
-
__metadata("design:type", Boolean)
|
|
27
|
-
], DeletePInfoUsedCouponInfoPayload.prototype, "isRemoveCoupon", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsBoolean)({ message: '주문서 쿠폰 삭제 여부는 boolean 값이어야 합니다' }),
|
|
30
|
-
__metadata("design:type", Boolean)
|
|
31
|
-
], DeletePInfoUsedCouponInfoPayload.prototype, "isRemoveReceiptCoupon", void 0);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 구매 정보 사용 쿠폰 할인 비율 정보
|
|
3
|
-
*/
|
|
4
|
-
export declare class EditPInfoUsedCouponRateInfo {
|
|
5
|
-
/** 총 할인 비율 from discountRate */
|
|
6
|
-
allRate: number;
|
|
7
|
-
/** 셀러 부담 쿠폰 비율 */
|
|
8
|
-
sellerRate: number;
|
|
9
|
-
/** 크로켓 부담 쿠폰 비율 */
|
|
10
|
-
croketRate: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 구매 정보 사용 쿠폰 할인 금액 정보
|
|
14
|
-
*/
|
|
15
|
-
export declare class EditPInfoUsedCouponPriceInfo {
|
|
16
|
-
/** 총 할인 금액 from discountValue */
|
|
17
|
-
allPrice: number;
|
|
18
|
-
/** 셀러 부담 쿠폰 금액 */
|
|
19
|
-
sellerPrice: number;
|
|
20
|
-
/** 크로켓 부담 쿠폰 금액 */
|
|
21
|
-
croketPrice: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
25
|
-
*/
|
|
26
|
-
export declare class EditPInfoUsedCouponInfoPayload {
|
|
27
|
-
pInfoId: string;
|
|
28
|
-
/** 변경할 일반 쿠폰 금액 */
|
|
29
|
-
itemCouponPrice?: number;
|
|
30
|
-
/** 변경할 주문서 쿠폰 금액 */
|
|
31
|
-
receiptCouponPrice?: number;
|
|
32
|
-
/** 광고센터 일 경우의 쿠폰 할인 비율 */
|
|
33
|
-
clientAdCenterCouponRateInfo?: EditPInfoUsedCouponRateInfo;
|
|
34
|
-
/** 광고센터 일 경우의 쿠폰 할인 금액 */
|
|
35
|
-
clientAdCenterCouponPriceInfo?: EditPInfoUsedCouponPriceInfo;
|
|
36
|
-
/** 광고센터 일 경우의 예상 정산 금액 */
|
|
37
|
-
clientAdCenterCouponExpectedSettlePrice?: number;
|
|
38
|
-
}
|
|
@@ -1,89 +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.EditPInfoUsedCouponInfoPayload = exports.EditPInfoUsedCouponPriceInfo = exports.EditPInfoUsedCouponRateInfo = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
/**
|
|
16
|
-
* 구매 정보 사용 쿠폰 할인 비율 정보
|
|
17
|
-
*/
|
|
18
|
-
class EditPInfoUsedCouponRateInfo {
|
|
19
|
-
}
|
|
20
|
-
exports.EditPInfoUsedCouponRateInfo = EditPInfoUsedCouponRateInfo;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)({}, { message: '총 할인 비율은 숫자여야 합니다' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], EditPInfoUsedCouponRateInfo.prototype, "allRate", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsNumber)({}, { message: '셀러 부담 쿠폰 비율은 숫자여야 합니다' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], EditPInfoUsedCouponRateInfo.prototype, "sellerRate", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsNumber)({}, { message: '크로켓 부담 쿠폰 비율은 숫자여야 합니다' }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], EditPInfoUsedCouponRateInfo.prototype, "croketRate", void 0);
|
|
33
|
-
/**
|
|
34
|
-
* 구매 정보 사용 쿠폰 할인 금액 정보
|
|
35
|
-
*/
|
|
36
|
-
class EditPInfoUsedCouponPriceInfo {
|
|
37
|
-
}
|
|
38
|
-
exports.EditPInfoUsedCouponPriceInfo = EditPInfoUsedCouponPriceInfo;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsNumber)({}, { message: '총 할인 금액은 숫자여야 합니다' }),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], EditPInfoUsedCouponPriceInfo.prototype, "allPrice", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsNumber)({}, { message: '셀러 부담 쿠폰 금액은 숫자여야 합니다' }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], EditPInfoUsedCouponPriceInfo.prototype, "sellerPrice", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsNumber)({}, { message: '크로켓 부담 쿠폰 금액은 숫자여야 합니다' }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], EditPInfoUsedCouponPriceInfo.prototype, "croketPrice", void 0);
|
|
51
|
-
/**
|
|
52
|
-
* 구매 정보 사용 쿠폰 정보 수정 페이로드
|
|
53
|
-
*/
|
|
54
|
-
class EditPInfoUsedCouponInfoPayload {
|
|
55
|
-
}
|
|
56
|
-
exports.EditPInfoUsedCouponInfoPayload = EditPInfoUsedCouponInfoPayload;
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsMongoId)({ message: '구매 정보 ID는 유효한 MongoDB ID여야 합니다' }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "pInfoId", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsNumber)({}, { message: '일반 쿠폰 금액은 숫자여야 합니다' }),
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
__metadata("design:type", Number)
|
|
65
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "itemCouponPrice", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsNumber)({}, { message: '주문서 쿠폰 금액은 숫자여야 합니다' }),
|
|
68
|
-
(0, class_validator_1.IsOptional)(),
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "receiptCouponPrice", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 비율 정보는 객체여야 합니다' }),
|
|
73
|
-
(0, class_validator_1.ValidateNested)(),
|
|
74
|
-
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponRateInfo),
|
|
75
|
-
(0, class_validator_1.IsOptional)(),
|
|
76
|
-
__metadata("design:type", EditPInfoUsedCouponRateInfo)
|
|
77
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponRateInfo", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, class_validator_1.IsObject)({ message: '광고센터 쿠폰 할인 금액 정보는 객체여야 합니다' }),
|
|
80
|
-
(0, class_validator_1.ValidateNested)(),
|
|
81
|
-
(0, class_transformer_1.Type)(() => EditPInfoUsedCouponPriceInfo),
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
__metadata("design:type", EditPInfoUsedCouponPriceInfo)
|
|
84
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponPriceInfo", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsNumber)({}, { message: '예상 정산 금액은 숫자여야 합니다' }),
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
__metadata("design:type", Number)
|
|
89
|
-
], EditPInfoUsedCouponInfoPayload.prototype, "clientAdCenterCouponExpectedSettlePrice", void 0);
|
|
@@ -1,34 +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.EditAdCenterCouponSettlePayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class EditAdCenterCouponSettlePayload {
|
|
15
|
-
}
|
|
16
|
-
exports.EditAdCenterCouponSettlePayload = EditAdCenterCouponSettlePayload;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)()
|
|
19
|
-
/** 광고센터 정산 데이터 ID */
|
|
20
|
-
,
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], EditAdCenterCouponSettlePayload.prototype, "pInfoId", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsNumber)()
|
|
25
|
-
/** 변경될 쿠폰 할인 금액 */
|
|
26
|
-
,
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], EditAdCenterCouponSettlePayload.prototype, "editCouponDiscountAmount", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsNumber)()
|
|
31
|
-
/** 변경될 쿠폰 차감 정산 금액 */
|
|
32
|
-
,
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], EditAdCenterCouponSettlePayload.prototype, "editSubtractionSettleAmount", void 0);
|