@yolo-croket-dev/amqp-access 0.6.36-jun.4 → 0.6.37-hj-1
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 +0 -2
- package/order-server/dto/purchased-info.modules/index.d.ts +0 -1
- package/order-server/dto/purchased-info.modules/index.js +0 -1
- package/order-server/dto/purchasedinfos/query/get-p-infos-by-ids.dto.d.ts +12 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-by-ids.dto.js +34 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/order-server/services/amqp.purchased-info.service.d.ts +2 -1
- package/order-server/services/amqp.purchased-info.service.js +3 -0
- package/order-server/services/purchased-info.modules/index.d.ts +0 -1
- package/order-server/services/purchased-info.modules/index.js +0 -1
- package/package.json +1 -1
- package/.claude/settings.local.json +0 -8
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/index.d.ts +0 -1
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/index.js +0 -17
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/query/get-coupon-aggregation.dto.d.ts +0 -68
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/query/get-coupon-aggregation.dto.js +0 -61
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/query/index.d.ts +0 -1
- package/order-server/dto/purchased-info.modules/purchased-info-coupon/query/index.js +0 -17
- package/order-server/services/purchased-info.modules/amqp.purchased-info-coupon.service.d.ts +0 -15
- package/order-server/services/purchased-info.modules/amqp.purchased-info-coupon.service.js +0 -44
|
@@ -29,7 +29,6 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
29
29
|
services_1.AmqpDirectPaymentTosspaymentsService,
|
|
30
30
|
services_1.AmqpPurchaseReceiptService,
|
|
31
31
|
services_1.AmqpPurchasedInfoAdminService,
|
|
32
|
-
services_1.AmqpPurchasedInfoCouponService,
|
|
33
32
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
34
33
|
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
35
34
|
services_1.AmqpPurchaseReceiptSabangService,
|
|
@@ -48,7 +47,6 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
48
47
|
services_1.AmqpDirectPaymentTosspaymentsService,
|
|
49
48
|
services_1.AmqpPurchaseReceiptService,
|
|
50
49
|
services_1.AmqpPurchasedInfoAdminService,
|
|
51
|
-
services_1.AmqpPurchasedInfoCouponService,
|
|
52
50
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
53
51
|
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
54
52
|
services_1.AmqpPurchaseReceiptSabangService,
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./purchased-info-admin"), exports);
|
|
18
|
-
__exportStar(require("./purchased-info-coupon"), exports);
|
|
19
18
|
__exportStar(require("./purchased-info-sabang"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class GetPInfosByIdsPayload {
|
|
3
|
+
/** 결제 정보 아이디 */
|
|
4
|
+
pInfoIds: string[];
|
|
5
|
+
/** 검색 포함 필드 */
|
|
6
|
+
includeFields?: string[];
|
|
7
|
+
/** 검색 제외 필드 */
|
|
8
|
+
excludeFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface GetPInfosByIdsResult {
|
|
11
|
+
pInfos: Partial<PurchasedInfoEntity>[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.GetPInfosByIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPInfosByIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetPInfosByIdsPayload = GetPInfosByIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.IsMongoId)({ each: true })
|
|
20
|
+
/** 결제 정보 아이디 */
|
|
21
|
+
,
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], GetPInfosByIdsPayload.prototype, "pInfoIds", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsArray)(),
|
|
26
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], GetPInfosByIdsPayload.prototype, "includeFields", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], GetPInfosByIdsPayload.prototype, "excludeFields", void 0);
|
|
@@ -11,3 +11,4 @@ export * from './check-can-change-purchased-options-by-pay-try-log-id.dto';
|
|
|
11
11
|
export * from './get-purchased-info-items-for-extraction-by-type.dto';
|
|
12
12
|
export * from './get-expect-settle-amount.dto';
|
|
13
13
|
export * from './get-changed-option-public-ids-by-ids.dto';
|
|
14
|
+
export * from './get-p-infos-by-ids.dto';
|
|
@@ -27,3 +27,4 @@ __exportStar(require("./check-can-change-purchased-options-by-pay-try-log-id.dto
|
|
|
27
27
|
__exportStar(require("./get-purchased-info-items-for-extraction-by-type.dto"), exports);
|
|
28
28
|
__exportStar(require("./get-expect-settle-amount.dto"), exports);
|
|
29
29
|
__exportStar(require("./get-changed-option-public-ids-by-ids.dto"), exports);
|
|
30
|
+
__exportStar(require("./get-p-infos-by-ids.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult, GetPurchasedInfoItemsForExtractionByTypeResult, GetPInfoForExpectSettleByAtlasResult, GetExpectSettleAmountResult, GetPInfoForExpectSettleByAtlasPayload, GetChangedOptionPublicIdsByIdsPayload, GetChangedOptionPublicIdsByIdsResult } from '../dto/purchasedinfos';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult, GetPurchasedInfoItemsForExtractionByTypeResult, GetPInfoForExpectSettleByAtlasResult, GetExpectSettleAmountResult, GetPInfoForExpectSettleByAtlasPayload, GetChangedOptionPublicIdsByIdsPayload, GetChangedOptionPublicIdsByIdsResult, GetPInfosByIdsPayload, GetPInfosByIdsResult } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -37,4 +37,5 @@ export declare class AmqpPurchasedInfoService {
|
|
|
37
37
|
getPInfoForExpectSettleByAtlas(payload: GetPInfoForExpectSettleByAtlasPayload, param: AbstractParam): Promise<GetPInfoForExpectSettleByAtlasResult[]>;
|
|
38
38
|
getExpectSettleAmount(param: AbstractParam): Promise<GetExpectSettleAmountResult>;
|
|
39
39
|
getChangedOptionPublicIdsByIds(payload: GetChangedOptionPublicIdsByIdsPayload, param: AbstractParam): Promise<GetChangedOptionPublicIdsByIdsResult[]>;
|
|
40
|
+
getPInfosByIds(payload: GetPInfosByIdsPayload, param: AbstractParam): Promise<GetPInfosByIdsResult>;
|
|
40
41
|
}
|
|
@@ -118,6 +118,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
118
118
|
async getChangedOptionPublicIdsByIds(payload, param) {
|
|
119
119
|
return this.amqpManager.call('결제 아이디 리스트로 변경된 옵션 publicId 리스트 조회', 'purchased-info.get.changed-option-public-ids-by-ids', payload, param, { isErrorThrowing: true });
|
|
120
120
|
}
|
|
121
|
+
async getPInfosByIds(payload, param) {
|
|
122
|
+
return this.amqpManager.call('결제 정보 아이디 리스트로 결제 정보 리스트 조회', 'purchased-info.get.p-infos-by-ids', payload, param, { isErrorThrowing: true });
|
|
123
|
+
}
|
|
121
124
|
};
|
|
122
125
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
|
|
123
126
|
exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./amqp.purchased-info-admin.service"), exports);
|
|
18
18
|
__exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exports);
|
|
19
|
-
__exportStar(require("./amqp.purchased-info-coupon.service"), exports);
|
|
20
19
|
__exportStar(require("./amqp.purchased-info-sabang.service"), exports);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './query';
|
|
@@ -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("./query"), exports);
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export declare class GetCouponAggregationPayload {
|
|
2
|
-
/** 조회 시작일 (ISO 8601) */
|
|
3
|
-
startDate: string;
|
|
4
|
-
/** 조회 종료일 (ISO 8601) */
|
|
5
|
-
endDate: string;
|
|
6
|
-
/** 포함할 쿠폰 코드 패턴 */
|
|
7
|
-
includeCodes?: string[];
|
|
8
|
-
/** 제외할 쿠폰 코드 패턴 */
|
|
9
|
-
excludeCodes?: string[];
|
|
10
|
-
/** 메모 AND 검색 키워드 */
|
|
11
|
-
memoKeywords?: string[];
|
|
12
|
-
/** 필터링할 상품 ID */
|
|
13
|
-
itemId?: string;
|
|
14
|
-
/** 쿠폰 생성일 시작 */
|
|
15
|
-
couponCreatedStartDate?: string;
|
|
16
|
-
/** 쿠폰 생성일 종료 */
|
|
17
|
-
couponCreatedEndDate?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface GrandTotal {
|
|
20
|
-
/** 총 쿠폰 할인 금액 */
|
|
21
|
-
grandTotalCouponDiscountPrice: number;
|
|
22
|
-
/** 총 크로켓 분담액 */
|
|
23
|
-
grandTotalCroketPrice: number;
|
|
24
|
-
/** 총 셀러 분담액 */
|
|
25
|
-
grandTotalSellerPrice: number;
|
|
26
|
-
/** 총 거래액 */
|
|
27
|
-
grandTotalPaidPrice: number;
|
|
28
|
-
/** 총 사용 건수 */
|
|
29
|
-
grandTotalUsageCount: number;
|
|
30
|
-
/** 고유 쿠폰 종류 수 */
|
|
31
|
-
uniqueCouponCount: number;
|
|
32
|
-
}
|
|
33
|
-
export interface CouponDetail {
|
|
34
|
-
/** 쿠폰 코드 */
|
|
35
|
-
couponCode: string;
|
|
36
|
-
/** 쿠폰명 */
|
|
37
|
-
couponName: string;
|
|
38
|
-
/** 담당자(메모) */
|
|
39
|
-
memo?: string;
|
|
40
|
-
/** 쿠폰 생성일 */
|
|
41
|
-
couponCreatedDate?: Date;
|
|
42
|
-
/** 쿠폰 할인 금액 합계 */
|
|
43
|
-
totalCouponDiscountPrice: number;
|
|
44
|
-
/** 크로켓 분담액 합계 */
|
|
45
|
-
totalCroketPrice: number;
|
|
46
|
-
/** 셀러 분담액 합계 */
|
|
47
|
-
totalSellerPrice: number;
|
|
48
|
-
/** 거래액 합계 */
|
|
49
|
-
totalPaidPrice: number;
|
|
50
|
-
/** 사용 건수 */
|
|
51
|
-
usageCount: number;
|
|
52
|
-
/** 광고센터 쿠폰 여부 */
|
|
53
|
-
isAdCenterCoupon?: boolean;
|
|
54
|
-
/** 광고센터 쿠폰 타입 */
|
|
55
|
-
adCenterCouponType?: string;
|
|
56
|
-
/** 테마전 제한 여부 */
|
|
57
|
-
isLimitTheme?: boolean;
|
|
58
|
-
/** 스토어 제한 여부 */
|
|
59
|
-
isLimitStore?: boolean;
|
|
60
|
-
/** 상품 제한 여부 */
|
|
61
|
-
isLimitStoreItem?: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface GetCouponAggregationResult {
|
|
64
|
-
/** 전체 총합계 */
|
|
65
|
-
grandTotal: GrandTotal;
|
|
66
|
-
/** 쿠폰별 상세 목록 */
|
|
67
|
-
couponDetails: CouponDetail[];
|
|
68
|
-
}
|
|
@@ -1,61 +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.GetCouponAggregationPayload = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* @description 쿠폰 집계 조회 DTO
|
|
15
|
-
*/
|
|
16
|
-
const class_validator_1 = require("class-validator");
|
|
17
|
-
const is_iso_8601_utc_decorator_1 = require("../../../../../decorator/is-iso-8601-utc.decorator");
|
|
18
|
-
class GetCouponAggregationPayload {
|
|
19
|
-
}
|
|
20
|
-
exports.GetCouponAggregationPayload = GetCouponAggregationPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, is_iso_8601_utc_decorator_1.IsIso8601Utc)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], GetCouponAggregationPayload.prototype, "startDate", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, is_iso_8601_utc_decorator_1.IsIso8601Utc)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], GetCouponAggregationPayload.prototype, "endDate", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.IsArray)(),
|
|
32
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], GetCouponAggregationPayload.prototype, "includeCodes", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsArray)(),
|
|
38
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
39
|
-
__metadata("design:type", Array)
|
|
40
|
-
], GetCouponAggregationPayload.prototype, "excludeCodes", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsArray)(),
|
|
44
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], GetCouponAggregationPayload.prototype, "memoKeywords", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsMongoId)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], GetCouponAggregationPayload.prototype, "itemId", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsDateString)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], GetCouponAggregationPayload.prototype, "couponCreatedStartDate", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsDateString)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], GetCouponAggregationPayload.prototype, "couponCreatedEndDate", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-coupon-aggregation.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("./get-coupon-aggregation.dto"), exports);
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-coupon.service.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
-
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetCouponAggregationPayload, GetCouponAggregationResult } from '../../dto/purchased-info.modules/purchased-info-coupon';
|
|
4
|
-
export declare class AmqpPurchasedInfoCouponService {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly amqpManager;
|
|
7
|
-
constructor(client: ClientProxy);
|
|
8
|
-
/**
|
|
9
|
-
* @description 쿠폰 집계 조회
|
|
10
|
-
* @param payload - 조회 조건
|
|
11
|
-
* @param param - 요청 파라미터 (traceId 포함)
|
|
12
|
-
* @returns 쿠폰 집계 결과
|
|
13
|
-
*/
|
|
14
|
-
getCouponAggregation(payload: GetCouponAggregationPayload, param: AbstractParam): Promise<GetCouponAggregationResult>;
|
|
15
|
-
}
|
|
@@ -1,44 +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.AmqpPurchasedInfoCouponService = void 0;
|
|
16
|
-
/**
|
|
17
|
-
* @author jun
|
|
18
|
-
* @description 쿠폰 집계 AMQP 서비스
|
|
19
|
-
* @process order-server의 purchased-info-coupon 모듈과 통신
|
|
20
|
-
*/
|
|
21
|
-
const common_1 = require("@nestjs/common");
|
|
22
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
23
|
-
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
24
|
-
let AmqpPurchasedInfoCouponService = class AmqpPurchasedInfoCouponService {
|
|
25
|
-
constructor(client) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @description 쿠폰 집계 조회
|
|
31
|
-
* @param payload - 조회 조건
|
|
32
|
-
* @param param - 요청 파라미터 (traceId 포함)
|
|
33
|
-
* @returns 쿠폰 집계 결과
|
|
34
|
-
*/
|
|
35
|
-
async getCouponAggregation(payload, param) {
|
|
36
|
-
return this.amqpManager.call('쿠폰 집계 조회', 'purchased-info-coupon.get.aggregation', payload, param, { isErrorThrowing: true });
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.AmqpPurchasedInfoCouponService = AmqpPurchasedInfoCouponService;
|
|
40
|
-
exports.AmqpPurchasedInfoCouponService = AmqpPurchasedInfoCouponService = __decorate([
|
|
41
|
-
(0, common_1.Injectable)(),
|
|
42
|
-
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
43
|
-
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
44
|
-
], AmqpPurchasedInfoCouponService);
|