@yolo-croket-dev/amqp-access 0.0.169 → 0.0.170-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.
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPurchasedInfoByIdsPayload, GetPurchasedInfosForBulkNotiPayload, GetPurchasedInfosForBulkNotiResult } from '@yolo-croket-dev/dto-v2/order-server';
3
+ import { GetPurchasedInfoByIdsPayload, GetPurchasedInfosForBulkNotiPayload, GetPurchasedInfosForBulkNotiResult, GetPurchasedInfoForAdminExcelPayload, GetPurchasedInfoForAdminExcelResult } from '@yolo-croket-dev/dto-v2/order-server';
4
4
  import { PurchasedInfoEntity } from '@yolo-croket-dev/entity/src/purchased-info';
5
5
  import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
6
6
  export declare class AmqpOrderServer {
@@ -11,4 +11,6 @@ export declare class AmqpOrderServer {
11
11
  getPurchasedInfosForBulkNoti(payload: GetPurchasedInfosForBulkNotiPayload, param: AbstractParam): Promise<GetPurchasedInfosForBulkNotiResult>;
12
12
  /** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
13
13
  searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
14
+ /** 결제 내역 추출 */
15
+ getPurchasedInfoForAdminExcel(payload: GetPurchasedInfoForAdminExcelPayload, param: AbstractParam): Promise<GetPurchasedInfoForAdminExcelResult>;
14
16
  }
@@ -32,6 +32,10 @@ let AmqpOrderServer = class AmqpOrderServer {
32
32
  async searchSellerTransactionHistoryByProcess(payload, param) {
33
33
  return this.amqpManager.call('셀러 거래 내역 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
34
34
  }
35
+ /** 결제 내역 추출 */
36
+ async getPurchasedInfoForAdminExcel(payload, param) {
37
+ return this.amqpManager.call('결제 내역 엑셀 다운로드용 데이터 조회', 'purchased-info.search.for-admin-excel', payload, param, { isErrorThrowing: true });
38
+ }
35
39
  };
36
40
  AmqpOrderServer = __decorate([
37
41
  (0, common_1.Injectable)(),
@@ -1,3 +1,4 @@
1
1
  export * from './search-seller-transaction-history-by-process.dto';
2
2
  export * from './atlas';
3
3
  export * from './get-partial-refund-processes-by-public-ids.dto';
4
+ export * from './reload-p-infos-for-manage-buyer.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
18
18
  __exportStar(require("./atlas"), exports);
19
19
  __exportStar(require("./get-partial-refund-processes-by-public-ids.dto"), exports);
20
+ __exportStar(require("./reload-p-infos-for-manage-buyer.dto"), exports);
@@ -0,0 +1,7 @@
1
+ import { PurchasedInfoForSeller } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info-for-seller.entity';
2
+ export declare class ReloadPInfosForManageBuyerPayload {
3
+ pInfoIds: string[];
4
+ }
5
+ export declare class ReloadPInfosForManageBuyerResult {
6
+ datas: PurchasedInfoForSeller[];
7
+ }
@@ -0,0 +1,24 @@
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.ReloadPInfosForManageBuyerResult = exports.ReloadPInfosForManageBuyerPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class ReloadPInfosForManageBuyerPayload {
15
+ }
16
+ __decorate([
17
+ (0, class_validator_1.IsMongoId)({ each: true }),
18
+ (0, class_validator_1.IsArray)(),
19
+ __metadata("design:type", Array)
20
+ ], ReloadPInfosForManageBuyerPayload.prototype, "pInfoIds", void 0);
21
+ exports.ReloadPInfosForManageBuyerPayload = ReloadPInfosForManageBuyerPayload;
22
+ class ReloadPInfosForManageBuyerResult {
23
+ }
24
+ exports.ReloadPInfosForManageBuyerResult = ReloadPInfosForManageBuyerResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.169",
3
+ "version": "0.0.170-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -20,7 +20,7 @@
20
20
  "@nestjs/common": "^10.3.10",
21
21
  "@nestjs/microservices": "9.0.8",
22
22
  "@yolo-croket-dev/core": "^1.4.52",
23
- "@yolo-croket-dev/dto-v2": "^0.0.158",
23
+ "@yolo-croket-dev/dto-v2": "^0.0.159",
24
24
  "@yolo-croket-dev/entity": "^0.1.128",
25
25
  "@yolo-croket-dev/entity-v2": "^0.0.71",
26
26
  "class-transformer": "^0.5.1",
@@ -0,0 +1,14 @@
1
+ import { PurchasedInfoForAdminExcelEntity } from '@yolo-croket-dev/entity';
2
+ export declare class GetCompleteProcessByPaymentedAtForAdminPayload {
3
+ startedAt: string;
4
+ endedAt: string;
5
+ skip: number;
6
+ limit: number;
7
+ }
8
+ export interface PurchasedInfoWithPartialRefundForAdminExcelEntity extends PurchasedInfoForAdminExcelEntity {
9
+ partialRefundDate?: string;
10
+ }
11
+ export interface GetCompleteProcessByPaymentedAtForAdminResult {
12
+ totalCount: number;
13
+ purchasedInfos: PurchasedInfoWithPartialRefundForAdminExcelEntity[];
14
+ }
@@ -0,0 +1,35 @@
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.GetCompleteProcessByPaymentedAtForAdminPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class GetCompleteProcessByPaymentedAtForAdminPayload {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsDateString)(),
19
+ __metadata("design:type", String)
20
+ ], GetCompleteProcessByPaymentedAtForAdminPayload.prototype, "startedAt", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsDateString)(),
23
+ __metadata("design:type", String)
24
+ ], GetCompleteProcessByPaymentedAtForAdminPayload.prototype, "endedAt", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Type)(() => Number),
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], GetCompleteProcessByPaymentedAtForAdminPayload.prototype, "skip", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Type)(() => Number),
32
+ (0, class_validator_1.IsNumber)(),
33
+ __metadata("design:type", Number)
34
+ ], GetCompleteProcessByPaymentedAtForAdminPayload.prototype, "limit", void 0);
35
+ exports.GetCompleteProcessByPaymentedAtForAdminPayload = GetCompleteProcessByPaymentedAtForAdminPayload;
@@ -1 +1,2 @@
1
1
  export * from './search-partial-refunds-for-admin.dto';
2
+ export * from './get-complete-process-by-paymented-at-for-admin.dto';
@@ -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("./search-partial-refunds-for-admin.dto"), exports);
18
+ __exportStar(require("./get-complete-process-by-paymented-at-for-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 { CreatePartialRefundPayload, EditPartialRefundPricePayload, PatchPartialRefundProcessPayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessWithdrawalPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult, PatchPartialRefundProcessCompletedPayload } from '../dto';
3
+ import { CreatePartialRefundPayload, EditPartialRefundPricePayload, PatchPartialRefundProcessPayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessWithdrawalPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult, PatchPartialRefundProcessCompletedPayload, GetCompleteProcessByPaymentedAtForAdminPayload, GetCompleteProcessByPaymentedAtForAdminResult } from '../dto';
4
4
  export declare class AmqpPartialRefundService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -12,4 +12,5 @@ export declare class AmqpPartialRefundService {
12
12
  editPartialRefundPrice(payload: EditPartialRefundPricePayload, param: AbstractParam): Promise<void>;
13
13
  patchPartialRefundProcessCompleted(payload: PatchPartialRefundProcessCompletedPayload, param: AbstractParam): Promise<void>;
14
14
  patchPartialRefundProcessWithdrawal(payload: PatchPartialRefundProcessWithdrawalPayload, param: AbstractParam): Promise<void>;
15
+ getCompleteProcessByPaymentedAtForAdmin(payload: GetCompleteProcessByPaymentedAtForAdminPayload, param: AbstractParam): Promise<GetCompleteProcessByPaymentedAtForAdminResult>;
15
16
  }
@@ -42,6 +42,9 @@ let AmqpPartialRefundService = class AmqpPartialRefundService {
42
42
  async patchPartialRefundProcessWithdrawal(payload, param) {
43
43
  return this.amqpManager.call('부분환불 - 접수 철회', 'partial-refund.patch.process-withdrawal', payload, param, { isErrorThrowing: true });
44
44
  }
45
+ async getCompleteProcessByPaymentedAtForAdmin(payload, param) {
46
+ return this.amqpManager.call('부분환불 - 완료된 부분환불 결제건 조회 (관리자용)', 'partial-refund.get.complete-process-by-paymented-at-for-admin', payload, param, { isErrorThrowing: true });
47
+ }
45
48
  };
46
49
  AmqpPartialRefundService = __decorate([
47
50
  (0, common_1.Injectable)(),