@yolo-croket-dev/amqp-access 0.0.52 → 0.0.53-sj-2

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.
@@ -2,10 +2,13 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { GetPurchasedInfoByIdsPayload, GetPurchasedInfosForBulkNotiPayload, GetPurchasedInfosForBulkNotiResult } from '@yolo-croket-dev/dto-v2/order-server';
4
4
  import { PurchasedInfoEntity } from '@yolo-croket-dev/entity/src/purchased-info';
5
+ import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
5
6
  export declare class AmqpOrderServer {
6
7
  private readonly client;
7
8
  private readonly amqpManager;
8
9
  constructor(client: ClientProxy);
9
10
  getPurchasedInfosByIds(payload: GetPurchasedInfoByIdsPayload, param: AbstractParam): Promise<PurchasedInfoEntity[]>;
10
11
  getPurchasedInfosForBulkNoti(payload: GetPurchasedInfosForBulkNotiPayload, param: AbstractParam): Promise<GetPurchasedInfosForBulkNotiResult>;
12
+ /** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
13
+ searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
11
14
  }
@@ -28,6 +28,10 @@ let AmqpOrderServer = class AmqpOrderServer {
28
28
  async getPurchasedInfosForBulkNoti(payload, param) {
29
29
  return this.amqpManager.call('결제 아이디로 bulk noti를 위한 결제 정보 리스트를 조회합니다.', 'purchased-info.get.for-bulk-noti', payload, param, { isErrorThrowing: true });
30
30
  }
31
+ /** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
32
+ async searchSellerTransactionHistoryByProcess(payload, param) {
33
+ return this.amqpManager.call('셀러 거래 내역 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
34
+ }
31
35
  };
32
36
  exports.AmqpOrderServer = AmqpOrderServer;
33
37
  exports.AmqpOrderServer = AmqpOrderServer = __decorate([
@@ -4,6 +4,10 @@ export declare class SearchSellerTransactionHistoryByProcessPayload {
4
4
  startDate: string;
5
5
  /** 끝 날짜 */
6
6
  endDate: string;
7
+ /** 페이지 */
8
+ page: number;
9
+ /** 제한 갯수 */
10
+ limit: number;
7
11
  /** 주문 진행 상태 */
8
12
  purchasedProcess: PurchasedProcessEnum[];
9
13
  }
@@ -26,6 +26,14 @@ __decorate([
26
26
  (0, class_validator_1.IsNotEmpty)(),
27
27
  __metadata("design:type", String)
28
28
  ], SearchSellerTransactionHistoryByProcessPayload.prototype, "endDate", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsNumber)(),
31
+ __metadata("design:type", Number)
32
+ ], SearchSellerTransactionHistoryByProcessPayload.prototype, "page", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsNumber)(),
35
+ __metadata("design:type", Number)
36
+ ], SearchSellerTransactionHistoryByProcessPayload.prototype, "limit", void 0);
29
37
  __decorate([
30
38
  (0, class_validator_1.IsArray)(),
31
39
  (0, class_validator_1.ArrayNotEmpty)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.52",
3
+ "version": "0.0.53-sj-2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -2,7 +2,6 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
3
  import { GetAskUserAndCountByDatePayload, GetAskUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/ask/query';
4
4
  import { GetPurchasedInfoUserAndCountByDatePayload, GetPurchasedInfoUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/purchased-info/query';
5
- import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
6
5
  export declare class AmqpPaymentService {
7
6
  private readonly client;
8
7
  private readonly amqpManager;
@@ -11,6 +10,4 @@ export declare class AmqpPaymentService {
11
10
  getAskUserAndCountByDate(payload: GetAskUserAndCountByDatePayload, param: AbstractParam): Promise<GetAskUserAndCountByDateResult[]>;
12
11
  /** 지난달 스토어 결제 중 거래종료 상태가 된 결제목록을 유저 아이디 그룹핑하여 가져오기 */
13
12
  getStoreUserAndCountByDate(payload: GetPurchasedInfoUserAndCountByDatePayload, param: AbstractParam): Promise<GetPurchasedInfoUserAndCountByDateResult[]>;
14
- /** 셀러 거래 내역 추출 (엑셀) */
15
- searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
16
13
  }
@@ -29,10 +29,6 @@ let AmqpPaymentService = class AmqpPaymentService {
29
29
  async getStoreUserAndCountByDate(payload, param) {
30
30
  return this.amqpManager.call('지난달 스토어 결제 중 거래종료 상태가 된 결제목록을 유저 아이디 그룹핑하여 가져오기', 'purchasedinfos.get.purchase-count-by-date', payload, param, { isErrorThrowing: true });
31
31
  }
32
- /** 셀러 거래 내역 추출 (엑셀) */
33
- async searchSellerTransactionHistoryByProcess(payload, param) {
34
- return this.amqpManager.call('셀러 거래 내역 엑셀 추출을 위한 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
35
- }
36
32
  };
37
33
  exports.AmqpPaymentService = AmqpPaymentService;
38
34
  exports.AmqpPaymentService = AmqpPaymentService = __decorate([
File without changes