@yolo-croket-dev/amqp-access 0.2.1 → 0.2.2-hj-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-hj-2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,21 @@
1
+ import { PartialRefundAuthorTypeEnum } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetPartialRefundsForMailPayload {
3
+ sellerId: string;
4
+ startedAt: Date;
5
+ endedAt: Date;
6
+ }
7
+ export declare class PartialRefundForMail {
8
+ PInfoId: string;
9
+ partialRefundId: string;
10
+ itemImg: string;
11
+ publicId: string;
12
+ itemName: string;
13
+ authorType: PartialRefundAuthorTypeEnum;
14
+ /** @description 현재 결제 프로세스 */
15
+ process: string;
16
+ }
17
+ export declare class GetPartialRefundsForMailResult {
18
+ beforeDelivery: PartialRefundForMail[];
19
+ afterDeliveryAndwaitingReceive: PartialRefundForMail[];
20
+ withdrawal: PartialRefundForMail[];
21
+ }
@@ -9,15 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
12
+ exports.GetPartialRefundsForMailResult = exports.PartialRefundForMail = exports.GetPartialRefundsForMailPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
14
+ const class_transformer_1 = require("class-transformer");
15
+ class GetPartialRefundsForMailPayload {
15
16
  }
16
- exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
17
+ exports.GetPartialRefundsForMailPayload = GetPartialRefundsForMailPayload;
17
18
  __decorate([
18
19
  (0, class_validator_1.IsMongoId)(),
19
20
  __metadata("design:type", String)
20
- ], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
21
- class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
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 PartialRefundForMail {
33
+ }
34
+ exports.PartialRefundForMail = PartialRefundForMail;
35
+ class GetPartialRefundsForMailResult {
22
36
  }
23
- exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
37
+ 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);
@@ -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([
@@ -1,7 +0,0 @@
1
- import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
2
- export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
3
- targetSelectionDataId: string;
4
- }
5
- export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
6
- selectionFrameDatas: SelectionFrameDataEntity[];
7
- }
@@ -1,11 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
4
- import { GetStoreMDThemeByIdPayload, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult } from '../dto/store-md-theme';
5
- export declare class AmqpStoreMdThemeService {
6
- private readonly client;
7
- private readonly amqpManager;
8
- constructor(client: ClientProxy);
9
- getStoreMDThemeById(payload: GetStoreMDThemeByIdPayload, param: AbstractParam): Promise<StoreMDThemeEntity>;
10
- searchStoreMDThemeDetailById(payload: SearchStoreMDThemeDetailByIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeDetailByIdResult>;
11
- }
@@ -1,36 +0,0 @@
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.AmqpStoreMdThemeService = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const microservices_1 = require("@nestjs/microservices");
18
- const functions_1 = require("@yolo-croket-dev/core/functions");
19
- let AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
20
- constructor(client) {
21
- this.client = client;
22
- this.amqpManager = new functions_1.AmqpManagement(this.client);
23
- }
24
- async getStoreMDThemeById(payload, param) {
25
- return this.amqpManager.call('MDTheme 조회', 'storemdtheme.get.by-id', payload, param, { isErrorThrowing: true });
26
- }
27
- async searchStoreMDThemeDetailById(payload, param) {
28
- return this.amqpManager.call('MDTheme 상세 조회', 'store-md-theme.get.detail-by-id', payload, param, { isErrorThrowing: true });
29
- }
30
- };
31
- AmqpStoreMdThemeService = __decorate([
32
- (0, common_1.Injectable)(),
33
- __param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
34
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
35
- ], AmqpStoreMdThemeService);
36
- exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService;