@yolo-croket-dev/amqp-access 0.4.72-hj-2 → 0.4.72-hj-3

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,8 @@
1
+ export declare class ChangePurchasedOptionInfo {
2
+ optionName: string;
3
+ pNums: number;
4
+ }
5
+ export declare class ChangePurchasedOptionPayload {
6
+ PInfoId: string;
7
+ changeOptions: ChangePurchasedOptionInfo[];
8
+ }
@@ -0,0 +1,38 @@
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.ChangePurchasedOptionPayload = exports.ChangePurchasedOptionInfo = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class ChangePurchasedOptionInfo {
16
+ }
17
+ exports.ChangePurchasedOptionInfo = ChangePurchasedOptionInfo;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], ChangePurchasedOptionInfo.prototype, "optionName", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ __metadata("design:type", Number)
25
+ ], ChangePurchasedOptionInfo.prototype, "pNums", void 0);
26
+ class ChangePurchasedOptionPayload {
27
+ }
28
+ exports.ChangePurchasedOptionPayload = ChangePurchasedOptionPayload;
29
+ __decorate([
30
+ (0, class_validator_1.IsMongoId)(),
31
+ __metadata("design:type", String)
32
+ ], ChangePurchasedOptionPayload.prototype, "PInfoId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsArray)(),
35
+ (0, class_validator_1.ValidateNested)({ each: true }),
36
+ (0, class_transformer_1.Type)(() => ChangePurchasedOptionInfo),
37
+ __metadata("design:type", Array)
38
+ ], ChangePurchasedOptionPayload.prototype, "changeOptions", void 0);
@@ -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 './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("./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, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult } 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, ChangePurchasedOptionPayload } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -31,4 +31,5 @@ export declare class AmqpPurchasedInfoService {
31
31
  getPurchasedInfosForUnconfirmedWaitingOrderSellersExcel(param: AbstractParam): Promise<GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult>;
32
32
  isPurchaseStoreItemByUserBulk(payload: IsPurchaseStoreItemByUserBulkPayload, param: AbstractParam): Promise<IsPurchaseStoreItemByUserBulkResponse>;
33
33
  checkCanChangePurchasedOption(payload: CheckCanChangePurchasedOptionPayload, param: AbstractParam): Promise<CheckCanChangePurchasedOptionResult>;
34
+ changePurchasedOption(payload: ChangePurchasedOptionPayload, param: AbstractParam): Promise<void>;
34
35
  }
@@ -98,7 +98,10 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
98
98
  return this.amqpManager.call('해당 유저가 구매한 상품인지 확인 Bulk', 'purchased-info.is-purchase.store-item-by-user-bulk', payload, param, { isErrorThrowing: true });
99
99
  }
100
100
  async checkCanChangePurchasedOption(payload, param) {
101
- return this.amqpManager.call('구매 옵션 변경 가능 여부 확인', 'purchased-info.check.can-change-purchased-option', payload, param);
101
+ return this.amqpManager.call('구매 옵션 변경 가능 여부 확인', 'purchased-info.check.can-change-purchased-option', payload, param, { isErrorThrowing: true });
102
+ }
103
+ async changePurchasedOption(payload, param) {
104
+ return this.amqpManager.call('구매 옵션 변경', 'purchased-info.change.purchased-option', payload, param, { isErrorThrowing: true });
102
105
  }
103
106
  };
104
107
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.72-hj-2",
3
+ "version": "0.4.72-hj-3",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",