@yolo-croket-dev/amqp-access 0.4.70 → 0.4.72-hj-1

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.
@@ -0,0 +1,6 @@
1
+ export declare class CheckCanChangePurchasedOptionPayload {
2
+ PInfoId: string;
3
+ }
4
+ export declare class CheckCanChangePurchasedOptionResult {
5
+ isCanChange: boolean;
6
+ }
@@ -0,0 +1,23 @@
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.CheckCanChangePurchasedOptionResult = exports.CheckCanChangePurchasedOptionPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CheckCanChangePurchasedOptionPayload {
15
+ }
16
+ exports.CheckCanChangePurchasedOptionPayload = CheckCanChangePurchasedOptionPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], CheckCanChangePurchasedOptionPayload.prototype, "PInfoId", void 0);
21
+ class CheckCanChangePurchasedOptionResult {
22
+ }
23
+ exports.CheckCanChangePurchasedOptionResult = CheckCanChangePurchasedOptionResult;
@@ -3,3 +3,4 @@ export * from './update-done-ad-center-coupon-infos.dto';
3
3
  export * from './cancel-done-ad-center-coupon-infos.dto';
4
4
  export * from './request-create-ad-center-coupon-settle.dto';
5
5
  export * from './patch-process-v2-to-checking-stock.dto';
6
+ export * from './check-can-change-purchased-option.dto';
@@ -19,3 +19,4 @@ __exportStar(require("./update-done-ad-center-coupon-infos.dto"), exports);
19
19
  __exportStar(require("./cancel-done-ad-center-coupon-infos.dto"), exports);
20
20
  __exportStar(require("./request-create-ad-center-coupon-settle.dto"), exports);
21
21
  __exportStar(require("./patch-process-v2-to-checking-stock.dto"), exports);
22
+ __exportStar(require("./check-can-change-purchased-option.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowPayload, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse } from '../dto/purchasedinfos';
3
+ import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowPayload, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -30,4 +30,5 @@ export declare class AmqpPurchasedInfoService {
30
30
  migrationPayTryLogIdV2(param: AbstractParam): Promise<void>;
31
31
  getPurchasedInfosForUnconfirmedWaitingOrderSellersExcel(param: AbstractParam): Promise<GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult>;
32
32
  isPurchaseStoreItemByUserBulk(payload: IsPurchaseStoreItemByUserBulkPayload, param: AbstractParam): Promise<IsPurchaseStoreItemByUserBulkResponse>;
33
+ checkCanChangePurchasedOption(payload: CheckCanChangePurchasedOptionPayload, param: AbstractParam): Promise<CheckCanChangePurchasedOptionResult>;
33
34
  }
@@ -97,6 +97,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
97
97
  async isPurchaseStoreItemByUserBulk(payload, param) {
98
98
  return this.amqpManager.call('해당 유저가 구매한 상품인지 확인 Bulk', 'purchased-info.is-purchase.store-item-by-user-bulk', payload, param, { isErrorThrowing: true });
99
99
  }
100
+ async checkCanChangePurchasedOption(payload, param) {
101
+ return this.amqpManager.call('구매 옵션 변경 가능 여부 확인', 'purchased-info.check.can-change-purchased-option', payload, param);
102
+ }
100
103
  };
101
104
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
102
105
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.70",
3
+ "version": "0.4.72-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -2,7 +2,7 @@ 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 { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult } from './dto';
5
+ import { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult, GetPurchasedInfosPayload, GetPurchasedInfosResult } from './dto';
6
6
  export declare class AmqpPaymentService {
7
7
  private readonly client;
8
8
  private readonly amqpManager;
@@ -15,4 +15,6 @@ export declare class AmqpPaymentService {
15
15
  deleteSettles(payload: DeleteSettlesPayload, param: AbstractParam): Promise<DeleteSettlesResult>;
16
16
  /** 유저의 가장 마지막 정상 상태의 거래건 조회 */
17
17
  getLastSteadyStateTransaction(payload: GetLastSteadyStateTransactionPayload, param: AbstractParam): Promise<GetLastSteadyStateTransactionResult | null>;
18
+ /** PurchasedInfo 필터에 맞게 목록 조회 */
19
+ getPurchasedInfos<PurchasedInfoEntityGenericType>(payload: GetPurchasedInfosPayload, param: AbstractParam): Promise<GetPurchasedInfosResult<PurchasedInfoEntityGenericType>>;
18
20
  }
@@ -37,6 +37,10 @@ let AmqpPaymentService = class AmqpPaymentService {
37
37
  async getLastSteadyStateTransaction(payload, param) {
38
38
  return this.amqpManager.call('유저의 가장 마지막 정상 상태의 거래건 조회', 'purchasedinfos.get.last-steady-state-transaction', payload, param, { isErrorThrowing: true });
39
39
  }
40
+ /** PurchasedInfo 필터에 맞게 목록 조회 */
41
+ async getPurchasedInfos(payload, param) {
42
+ return this.amqpManager.call('PurchasedInfo 필터에 맞게 목록 조회', 'purchasedinfos.get', payload, param, { isErrorThrowing: true });
43
+ }
40
44
  };
41
45
  exports.AmqpPaymentService = AmqpPaymentService;
42
46
  exports.AmqpPaymentService = AmqpPaymentService = __decorate([
@@ -0,0 +1,11 @@
1
+ import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info';
2
+ import { FilterQuery } from '../../../../user-service/dto';
3
+ export declare class GetPurchasedInfosPayload {
4
+ query?: FilterQuery[];
5
+ projection?: string[];
6
+ lastId?: string;
7
+ sort?: number;
8
+ order?: string;
9
+ limit: number;
10
+ }
11
+ export type GetPurchasedInfosResult<T> = Partial<PurchasedInfoEntity[]> | T[];
@@ -0,0 +1,51 @@
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.GetPurchasedInfosPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const dto_1 = require("../../../../user-service/dto");
16
+ class GetPurchasedInfosPayload {
17
+ }
18
+ exports.GetPurchasedInfosPayload = GetPurchasedInfosPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.ValidateNested)({ each: true }),
22
+ (0, class_transformer_1.Type)(() => dto_1.FilterQuery),
23
+ __metadata("design:type", Array)
24
+ ], GetPurchasedInfosPayload.prototype, "query", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)({ each: true }),
28
+ __metadata("design:type", Array)
29
+ ], GetPurchasedInfosPayload.prototype, "projection", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsMongoId)(),
33
+ __metadata("design:type", String)
34
+ ], GetPurchasedInfosPayload.prototype, "lastId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsIn)([
38
+ 1,
39
+ -1,
40
+ ]),
41
+ __metadata("design:type", Number)
42
+ ], GetPurchasedInfosPayload.prototype, "sort", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.IsOptional)(),
46
+ __metadata("design:type", String)
47
+ ], GetPurchasedInfosPayload.prototype, "order", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsNumber)(),
50
+ __metadata("design:type", Number)
51
+ ], GetPurchasedInfosPayload.prototype, "limit", void 0);
@@ -1 +1,2 @@
1
1
  export * from './get-purchased-info-for-partial-refund.dto';
2
+ export * from './get-purchased-infos.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("./get-purchased-info-for-partial-refund.dto"), exports);
18
+ __exportStar(require("./get-purchased-infos.dto"), exports);
@@ -39,6 +39,7 @@ __decorate([
39
39
  __metadata("design:type", String)
40
40
  ], FilterQuery.prototype, "operator", void 0);
41
41
  __decorate([
42
+ (0, class_validator_1.IsOptional)(),
42
43
  (0, class_validator_1.IsString)()
43
44
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
45
  ,