@yolo-croket-dev/amqp-access 0.7.71-sj2 → 0.7.72

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.
@@ -1 +1,2 @@
1
1
  export * from './command';
2
+ export * from './query';
@@ -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("./command"), exports);
18
+ __exportStar(require("./query"), exports);
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @author jun
3
+ * @description 관리자용 예약 구매 정보 엑셀 조회 Payload
4
+ */
5
+ export declare class GetReservationForExcelByAdminPayload {
6
+ itemId: string;
7
+ page: number;
8
+ limit: number;
9
+ }
10
+ /** @description 예약 구매 정보 엑셀 조회 결과 단건 */
11
+ export interface GetReservationForExcelByAdminResultItem {
12
+ /** 결제ID (purchasedInfo _id) */
13
+ pInfoId: string;
14
+ /** 주문번호 */
15
+ publicId: string;
16
+ /** 구매옵션 */
17
+ optionNames: string[];
18
+ /** 구매수량 */
19
+ purchaseNumber: number;
20
+ /** 구매자명 (user username) */
21
+ buyerUsername: string;
22
+ /** 구매자ID */
23
+ buyerId: string;
24
+ /** 예약 순서 */
25
+ reservationOrder: number;
26
+ /** 예약일 */
27
+ reservedDate: Date;
28
+ /** 취소일시 */
29
+ cancelledDate?: Date;
30
+ /** 취소사유 */
31
+ cancelReason?: string;
32
+ /** 수령인 이름 (buyerInfo.buyerName) */
33
+ receiverName: string;
34
+ /** 수령인 연락처 */
35
+ receiverPhoneNumber?: string;
36
+ /** 개인통관고유부호 */
37
+ PCCC?: string;
38
+ /** 우편번호 */
39
+ postCode: string;
40
+ /** 수령인주소 */
41
+ address: string;
42
+ /** 진행상태 */
43
+ process: string;
44
+ /** 결제여부 */
45
+ isPaid: boolean;
46
+ }
47
+ /** @description 예약 구매 정보 엑셀 조회 결과 */
48
+ export interface GetReservationForExcelByAdminResult {
49
+ list: GetReservationForExcelByAdminResultItem[];
50
+ allCount: number;
51
+ }
@@ -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.GetReservationForExcelByAdminPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * @author jun
16
+ * @description 관리자용 예약 구매 정보 엑셀 조회 Payload
17
+ */
18
+ class GetReservationForExcelByAdminPayload {
19
+ }
20
+ exports.GetReservationForExcelByAdminPayload = GetReservationForExcelByAdminPayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsMongoId)(),
23
+ __metadata("design:type", String)
24
+ ], GetReservationForExcelByAdminPayload.prototype, "itemId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.Min)(1),
28
+ __metadata("design:type", Number)
29
+ ], GetReservationForExcelByAdminPayload.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
+ ], GetReservationForExcelByAdminPayload.prototype, "limit", void 0);
@@ -0,0 +1 @@
1
+ export * from './get-reservation-for-excel-by-admin.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-reservation-for-excel-by-admin.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload, RetryReservationBillingPaymentPayload, RetryReservationBillingPaymentResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
3
+ import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload, RetryReservationBillingPaymentPayload, RetryReservationBillingPaymentResult, GetReservationForExcelByAdminPayload, GetReservationForExcelByAdminResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
4
4
  export declare class AmqpPurchasedInfoReservationService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -19,4 +19,6 @@ export declare class AmqpPurchasedInfoReservationService {
19
19
  changeReservationCardQuota(payload: ChangeReservationCardQuotaPayload, param: AbstractParam): Promise<void>;
20
20
  /** 예약 상품 결제 재시도 */
21
21
  retryReservationBillingPayment(payload: RetryReservationBillingPaymentPayload, param: AbstractParam): Promise<RetryReservationBillingPaymentResult>;
22
+ /** 관리자용 예약 구매 정보 엑셀 조회 */
23
+ getReservationForExcelByAdmin(payload: GetReservationForExcelByAdminPayload, param: AbstractParam): Promise<GetReservationForExcelByAdminResult>;
22
24
  }
@@ -54,6 +54,10 @@ let AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationServ
54
54
  async retryReservationBillingPayment(payload, param) {
55
55
  return this.amqpManager.call('예약 상품 결제 재시도', 'purchased-info-reservation.retry.billing-payment', payload, param, { isErrorThrowing: true });
56
56
  }
57
+ /** 관리자용 예약 구매 정보 엑셀 조회 */
58
+ async getReservationForExcelByAdmin(payload, param) {
59
+ return this.amqpManager.call('관리자용 예약 구매 정보 엑셀 조회', 'purchased-info-reservation.get.reservation-for-excel-by-admin', payload, param, { isErrorThrowing: true });
60
+ }
57
61
  };
58
62
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService;
59
63
  exports.AmqpPurchasedInfoReservationService = AmqpPurchasedInfoReservationService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.71-sj2",
3
+ "version": "0.7.72",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@nestjs/common": "^10.3.10",
21
21
  "@yolo-croket-dev/core": "^1.9.3",
22
- "@yolo-croket-dev/domain": "^0.2.29-sj",
22
+ "@yolo-croket-dev/domain": "^0.2.29",
23
23
  "@yolo-croket-dev/dto-v2": "^0.2.15",
24
- "@yolo-croket-dev/entity": "^0.2.68-sj",
25
- "@yolo-croket-dev/entity-v2": "0.2.136-sj",
24
+ "@yolo-croket-dev/entity": "^0.2.68",
25
+ "@yolo-croket-dev/entity-v2": "0.2.136",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"