@yolo-croket-dev/amqp-access 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/core": "^1.4.52",
23
23
  "@yolo-croket-dev/dto-v2": "^0.0.162",
24
24
  "@yolo-croket-dev/entity": "^0.1.133",
25
- "@yolo-croket-dev/entity-v2": "^0.0.94",
25
+ "@yolo-croket-dev/entity-v2": "^0.0.96",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -0,0 +1,19 @@
1
+ import { PartialRefundEntity, PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetPartialRefundsForMailPayload {
3
+ sellerId: string;
4
+ startedAt: Date;
5
+ endedAt: Date;
6
+ }
7
+ export interface PastPInfoForMail extends Pick<PurchasedInfoEntity, '_id' | 'pastName' | 'pastImg' | 'publicId'> {
8
+ }
9
+ export interface PartialRefundForMail extends Pick<PartialRefundEntity, '_id' | 'authorType'> {
10
+ }
11
+ export interface PartialRefundInfoForMail {
12
+ partialRefund: PartialRefundForMail;
13
+ purchasedInfo: Pick<PurchasedInfoEntity, 'process_v2'>;
14
+ }
15
+ export declare class GetPartialRefundsForMailResult {
16
+ beforeDelivery: PartialRefundInfoForMail[];
17
+ afterDeliveryAndWaitingReceive: PartialRefundInfoForMail[];
18
+ withdrawal: PartialRefundInfoForMail[];
19
+ }
@@ -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.GetPartialRefundsForMailResult = exports.GetPartialRefundsForMailPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class GetPartialRefundsForMailPayload {
16
+ }
17
+ exports.GetPartialRefundsForMailPayload = GetPartialRefundsForMailPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], GetPartialRefundsForMailPayload.prototype, "sellerId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsDate)(),
24
+ (0, class_transformer_1.Type)(() => Date),
25
+ __metadata("design:type", Date)
26
+ ], GetPartialRefundsForMailPayload.prototype, "startedAt", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsDate)(),
29
+ (0, class_transformer_1.Type)(() => Date),
30
+ __metadata("design:type", Date)
31
+ ], GetPartialRefundsForMailPayload.prototype, "endedAt", void 0);
32
+ class GetPartialRefundsForMailResult {
33
+ }
34
+ exports.GetPartialRefundsForMailResult = GetPartialRefundsForMailResult;
@@ -2,3 +2,4 @@ export * from './search-partial-refunds-for-admin.dto';
2
2
  export * from './get-complete-process-by-paymented-at-for-admin.dto';
3
3
  export * from './get-partial-refund-info.dto';
4
4
  export * from './get-partial-refunds.dto';
5
+ export * from './get-partial-refunds-for-mail.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./search-partial-refunds-for-admin.dto"), exports);
18
18
  __exportStar(require("./get-complete-process-by-paymented-at-for-admin.dto"), exports);
19
19
  __exportStar(require("./get-partial-refund-info.dto"), exports);
20
20
  __exportStar(require("./get-partial-refunds.dto"), exports);
21
+ __exportStar(require("./get-partial-refunds-for-mail.dto"), exports);
@@ -21,7 +21,7 @@ export declare class SearchPartialRefundsForAdminPayload {
21
21
  page: number;
22
22
  limit: number;
23
23
  payTryLogId?: string;
24
- approveFitler?: ApproveFilterEnum;
24
+ approveFilter?: ApproveFilterEnum;
25
25
  }
26
26
  export declare class TotalCountByProcessType {
27
27
  SUBMISSION: number;
@@ -92,7 +92,7 @@ __decorate([
92
92
  (0, class_validator_1.IsEnum)(ApproveFilterEnum),
93
93
  (0, class_validator_1.IsOptional)(),
94
94
  __metadata("design:type", String)
95
- ], SearchPartialRefundsForAdminPayload.prototype, "approveFitler", void 0);
95
+ ], SearchPartialRefundsForAdminPayload.prototype, "approveFilter", void 0);
96
96
  class TotalCountByProcessType {
97
97
  }
98
98
  exports.TotalCountByProcessType = TotalCountByProcessType;
@@ -1,7 +1,7 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { PartialRefundInfoEntity } from '@yolo-croket-dev/entity-v2';
4
- import { CreatePartialRefundPayload, EditPartialRefundPricePayload, PatchPartialRefundProcessPayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessWithdrawalPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult, PatchPartialRefundProcessCompletedPayload, GetCompleteProcessByPaymentedAtForAdminPayload, GetCompleteProcessByPaymentedAtForAdminResult, WritePartialRefundCSMemoPayload, GetPartialRefundInfoPayload, GetPartialRefundsPayload, GetPartialRefundsResult, ApprovePartialRefundPayload, WithdrawalPartialRefundPayload } from '../dto';
4
+ import { CreatePartialRefundPayload, EditPartialRefundPricePayload, PatchPartialRefundProcessPayload, PatchPartialRefundCSCheckPayload, PatchPartialRefundProcessWithdrawalPayload, SearchPartialRefundsForAdminPayload, SearchPartialRefundsForAdminResult, PatchPartialRefundProcessCompletedPayload, GetCompleteProcessByPaymentedAtForAdminPayload, GetCompleteProcessByPaymentedAtForAdminResult, WritePartialRefundCSMemoPayload, GetPartialRefundInfoPayload, GetPartialRefundsPayload, GetPartialRefundsResult, ApprovePartialRefundPayload, WithdrawalPartialRefundPayload, GetPartialRefundsForMailPayload, GetPartialRefundsForMailResult } from '../dto';
5
5
  export declare class AmqpPartialRefundService {
6
6
  private readonly client;
7
7
  private readonly amqpManager;
@@ -19,4 +19,5 @@ export declare class AmqpPartialRefundService {
19
19
  getPartialRefunds(payload: GetPartialRefundsPayload, param: AbstractParam): Promise<GetPartialRefundsResult>;
20
20
  approvePartialRefund(payload: ApprovePartialRefundPayload, param: AbstractParam): Promise<void>;
21
21
  withdrawalPartialRefund(payload: WithdrawalPartialRefundPayload, param: AbstractParam): Promise<void>;
22
+ getPartialRefundsForMail(payload: GetPartialRefundsForMailPayload, param: AbstractParam): Promise<GetPartialRefundsForMailResult>;
22
23
  }
@@ -60,6 +60,9 @@ let AmqpPartialRefundService = class AmqpPartialRefundService {
60
60
  async withdrawalPartialRefund(payload, param) {
61
61
  return this.amqpManager.call('부분환불 철회', 'partial-refund.patch.withdrawal', payload, param, { isErrorThrowing: true });
62
62
  }
63
+ async getPartialRefundsForMail(payload, param) {
64
+ return this.amqpManager.call('부분환불 철회', 'partial-refund.get.list-for-mail', payload, param, { isErrorThrowing: true });
65
+ }
63
66
  };
64
67
  exports.AmqpPartialRefundService = AmqpPartialRefundService;
65
68
  exports.AmqpPartialRefundService = AmqpPartialRefundService = __decorate([