@yolo-croket-dev/amqp-access 0.6.35 → 0.6.36-jun.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.
@@ -29,6 +29,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
29
29
  services_1.AmqpDirectPaymentTosspaymentsService,
30
30
  services_1.AmqpPurchaseReceiptService,
31
31
  services_1.AmqpPurchasedInfoAdminService,
32
+ services_1.AmqpPurchasedInfoCouponService,
32
33
  services_1.AmqpChangedPurchasedOptionLogService,
33
34
  services_1.AmqpPurchasedInfoAnalyticsAggregationService,
34
35
  services_1.AmqpPurchaseReceiptSabangService,
@@ -47,6 +48,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
47
48
  services_1.AmqpDirectPaymentTosspaymentsService,
48
49
  services_1.AmqpPurchaseReceiptService,
49
50
  services_1.AmqpPurchasedInfoAdminService,
51
+ services_1.AmqpPurchasedInfoCouponService,
50
52
  services_1.AmqpChangedPurchasedOptionLogService,
51
53
  services_1.AmqpPurchasedInfoAnalyticsAggregationService,
52
54
  services_1.AmqpPurchaseReceiptSabangService,
@@ -1,2 +1,3 @@
1
1
  export * from './purchased-info-admin';
2
+ export * from './purchased-info-coupon';
2
3
  export * from './purchased-info-sabang';
@@ -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("./purchased-info-admin"), exports);
18
+ __exportStar(require("./purchased-info-coupon"), exports);
18
19
  __exportStar(require("./purchased-info-sabang"), exports);
@@ -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("./query"), exports);
@@ -0,0 +1,56 @@
1
+ export declare class GetCouponAggregationPayload {
2
+ /** 조회 시작일 (ISO 8601) */
3
+ startDate: string;
4
+ /** 조회 종료일 (ISO 8601) */
5
+ endDate: string;
6
+ /** 제외할 쿠폰 코드 패턴 */
7
+ excludeCodes?: string[];
8
+ /** 메모 AND 검색 키워드 */
9
+ memoKeywords?: string[];
10
+ /** 쿠폰 생성일 시작 */
11
+ couponCreatedStartDate?: string;
12
+ /** 쿠폰 생성일 종료 */
13
+ couponCreatedEndDate?: string;
14
+ }
15
+ export interface GrandTotal {
16
+ /** 총 쿠폰 할인 금액 */
17
+ grandTotalCouponDiscountPrice: number;
18
+ /** 총 크로켓 분담액 */
19
+ grandTotalCroketPrice: number;
20
+ /** 총 셀러 분담액 */
21
+ grandTotalSellerPrice: number;
22
+ /** 총 거래액 */
23
+ grandTotalPaidPrice: number;
24
+ /** 총 사용 건수 */
25
+ grandTotalUsageCount: number;
26
+ /** 고유 쿠폰 종류 수 */
27
+ uniqueCouponCount: number;
28
+ }
29
+ export interface CouponDetail {
30
+ /** 쿠폰 코드 */
31
+ couponCode: string;
32
+ /** 쿠폰명 */
33
+ couponName: string;
34
+ /** 담당자(메모) */
35
+ memo?: string;
36
+ /** 쿠폰 생성일 */
37
+ couponCreatedDate?: Date;
38
+ /** 쿠폰 할인 금액 합계 */
39
+ totalCouponDiscountPrice: number;
40
+ /** 크로켓 분담액 합계 */
41
+ totalCroketPrice: number;
42
+ /** 셀러 분담액 합계 */
43
+ totalSellerPrice: number;
44
+ /** 거래액 합계 */
45
+ totalPaidPrice: number;
46
+ /** 사용 건수 */
47
+ usageCount: number;
48
+ /** 광고센터 쿠폰 여부 */
49
+ isAdCenterCoupon?: boolean;
50
+ }
51
+ export interface GetCouponAggregationResult {
52
+ /** 전체 총합계 */
53
+ grandTotal: GrandTotal;
54
+ /** 쿠폰별 상세 목록 */
55
+ couponDetails: CouponDetail[];
56
+ }
@@ -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.GetCouponAggregationPayload = void 0;
13
+ /**
14
+ * @description 쿠폰 집계 조회 DTO
15
+ */
16
+ const class_validator_1 = require("class-validator");
17
+ class GetCouponAggregationPayload {
18
+ }
19
+ exports.GetCouponAggregationPayload = GetCouponAggregationPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsDateString)(),
22
+ __metadata("design:type", String)
23
+ ], GetCouponAggregationPayload.prototype, "startDate", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsDateString)(),
26
+ __metadata("design:type", String)
27
+ ], GetCouponAggregationPayload.prototype, "endDate", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsArray)(),
31
+ (0, class_validator_1.IsString)({ each: true }),
32
+ __metadata("design:type", Array)
33
+ ], GetCouponAggregationPayload.prototype, "excludeCodes", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsArray)(),
37
+ (0, class_validator_1.IsString)({ each: true }),
38
+ __metadata("design:type", Array)
39
+ ], GetCouponAggregationPayload.prototype, "memoKeywords", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsDateString)(),
43
+ __metadata("design:type", String)
44
+ ], GetCouponAggregationPayload.prototype, "couponCreatedStartDate", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsDateString)(),
48
+ __metadata("design:type", String)
49
+ ], GetCouponAggregationPayload.prototype, "couponCreatedEndDate", void 0);
@@ -0,0 +1 @@
1
+ export * from './get-coupon-aggregation.dto';
@@ -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-coupon-aggregation.dto"), exports);
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,44 @@
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);
@@ -1,3 +1,4 @@
1
1
  export * from './amqp.purchased-info-admin.service';
2
2
  export * from './amqp.purchased-info-analytics-aggregation.service';
3
+ export * from './amqp.purchased-info-coupon.service';
3
4
  export * from './amqp.purchased-info-sabang.service';
@@ -16,4 +16,5 @@ 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);
19
20
  __exportStar(require("./amqp.purchased-info-sabang.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.6.35",
3
+ "version": "0.6.36-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,5 +1,5 @@
1
1
  import { StoreItemLegacyEntity } from '@yolo-croket-dev/entity/src/store-item';
2
- import { StoreMDThemeLinkImgList, StoreMDThemeTabStyle } from '@yolo-croket-dev/entity/src/storemdtheme';
2
+ import { StoreMDThemeLinkImgList, StoreMDThemeTabStyleEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
3
3
  export declare class SearchStoreMDThemeDetailByIdPayload {
4
4
  storeMDThemeId: string;
5
5
  }
@@ -10,6 +10,6 @@ export declare class SearchStoreMDThemeDetailByIdResult {
10
10
  MDThemeSubTitle: string;
11
11
  MDThemeLinkImgList: StoreMDThemeLinkImgList[];
12
12
  MDThemeItemList: StoreItemLegacyEntity[];
13
- MDThemeTabStyle?: StoreMDThemeTabStyle;
13
+ MDThemeTabStyle?: StoreMDThemeTabStyleEntity;
14
14
  appLink: string;
15
15
  }