@yolo-croket-dev/amqp-access 0.4.80-jun.3 → 0.4.81-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.
Files changed (34) hide show
  1. package/order-server/dto/purchased-info.modules/purchased-info-admin/index.d.ts +0 -1
  2. package/order-server/dto/purchased-info.modules/purchased-info-admin/index.js +0 -1
  3. package/order-server/dto/purchasedinfos/command/change-purchased-option.dto.d.ts +8 -0
  4. package/order-server/dto/{purchased-info.modules/purchased-info-admin/command/edit-p-info-receiver-info.dto.js → purchasedinfos/command/change-purchased-option.dto.js} +18 -20
  5. package/order-server/dto/purchasedinfos/command/index.d.ts +1 -0
  6. package/order-server/dto/purchasedinfos/command/index.js +1 -0
  7. package/order-server/dto/purchasedinfos/query/check-can-change-purchased-option.dto.d.ts +6 -0
  8. package/order-server/dto/{purchased-info.modules/purchased-info-admin/command/edit-p-info-memo.dto.js → purchasedinfos/query/check-can-change-purchased-option.dto.js} +7 -8
  9. package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
  10. package/order-server/dto/purchasedinfos/query/index.js +1 -0
  11. package/order-server/services/amqp.purchased-info-admin.service.d.ts +10 -0
  12. package/order-server/services/{purchased-info.modules/amqp.purchased-info-admin.service.js → amqp.purchased-info-admin.service.js} +0 -18
  13. package/order-server/services/amqp.purchased-info.service.d.ts +3 -1
  14. package/order-server/services/amqp.purchased-info.service.js +6 -0
  15. package/order-server/services/index.d.ts +1 -1
  16. package/order-server/services/index.js +1 -1
  17. package/package.json +2 -2
  18. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-change-purchased-option.dto.d.ts +21 -0
  19. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-change-purchased-option.dto.js +78 -0
  20. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-etc-data.dto.d.ts +0 -6
  21. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-etc-data.dto.js +0 -32
  22. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-memo.dto.d.ts +0 -4
  23. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-price.dto.d.ts +0 -25
  24. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-price.dto.js +0 -109
  25. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-process.dto.d.ts +0 -5
  26. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-process.dto.js +0 -26
  27. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-receiver-info.dto.d.ts +0 -8
  28. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-waiting-receive-info.dto.d.ts +0 -5
  29. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/edit-p-info-waiting-receive-info.dto.js +0 -29
  30. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +0 -6
  31. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +0 -22
  32. package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +0 -16
  33. package/order-server/services/purchased-info.modules/index.d.ts +0 -1
  34. package/order-server/services/purchased-info.modules/index.js +0 -17
@@ -1,2 +1 @@
1
1
  export * from './query';
2
- export * from './command';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./query"), exports);
18
- __exportStar(require("./command"), exports);
@@ -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
+ }
@@ -9,32 +9,30 @@ 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.EditPInfoReceiverInfoPayload = void 0;
12
+ exports.ChangePurchasedOptionPayload = exports.ChangePurchasedOptionInfo = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const class_validator_1 = require("class-validator");
14
- class EditPInfoReceiverInfoPayload {
15
+ class ChangePurchasedOptionInfo {
15
16
  }
16
- exports.EditPInfoReceiverInfoPayload = EditPInfoReceiverInfoPayload;
17
- __decorate([
18
- (0, class_validator_1.IsMongoId)(),
19
- __metadata("design:type", String)
20
- ], EditPInfoReceiverInfoPayload.prototype, "pInfoId", void 0);
17
+ exports.ChangePurchasedOptionInfo = ChangePurchasedOptionInfo;
21
18
  __decorate([
22
19
  (0, class_validator_1.IsString)(),
23
20
  __metadata("design:type", String)
24
- ], EditPInfoReceiverInfoPayload.prototype, "postCode", void 0);
21
+ ], ChangePurchasedOptionInfo.prototype, "optionName", void 0);
25
22
  __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], EditPInfoReceiverInfoPayload.prototype, "address", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], EditPInfoReceiverInfoPayload.prototype, "receiverName", void 0);
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;
33
29
  __decorate([
34
- (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsMongoId)(),
35
31
  __metadata("design:type", String)
36
- ], EditPInfoReceiverInfoPayload.prototype, "receiverPhoneNumber", void 0);
32
+ ], ChangePurchasedOptionPayload.prototype, "PInfoId", void 0);
37
33
  __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], EditPInfoReceiverInfoPayload.prototype, "PCCC", void 0);
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);
@@ -0,0 +1,6 @@
1
+ export declare class CheckCanChangePurchasedOptionPayload {
2
+ PInfoId: string;
3
+ }
4
+ export declare class CheckCanChangePurchasedOptionResult {
5
+ isCanChange: boolean;
6
+ }
@@ -9,16 +9,15 @@ 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.EditPInfoMemoPayload = void 0;
12
+ exports.CheckCanChangePurchasedOptionResult = exports.CheckCanChangePurchasedOptionPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class EditPInfoMemoPayload {
14
+ class CheckCanChangePurchasedOptionPayload {
15
15
  }
16
- exports.EditPInfoMemoPayload = EditPInfoMemoPayload;
16
+ exports.CheckCanChangePurchasedOptionPayload = CheckCanChangePurchasedOptionPayload;
17
17
  __decorate([
18
18
  (0, class_validator_1.IsMongoId)(),
19
19
  __metadata("design:type", String)
20
- ], EditPInfoMemoPayload.prototype, "pInfoId", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- __metadata("design:type", String)
24
- ], EditPInfoMemoPayload.prototype, "editMemo", void 0);
20
+ ], CheckCanChangePurchasedOptionPayload.prototype, "PInfoId", void 0);
21
+ class CheckCanChangePurchasedOptionResult {
22
+ }
23
+ exports.CheckCanChangePurchasedOptionResult = CheckCanChangePurchasedOptionResult;
@@ -6,3 +6,4 @@ export * from './get-p-nums-for-show-ad-center-inflow.dto';
6
6
  export * from './get-p-infos-for-before-delivery-excel.dto';
7
7
  export * from './get-purchased-infos-for-unconfirmed-waiting-order-sellers-excel.dto';
8
8
  export * from './is-purchase-store-item-by-user-bulk.dto';
9
+ export * from './check-can-change-purchased-option.dto';
@@ -22,3 +22,4 @@ __exportStar(require("./get-p-nums-for-show-ad-center-inflow.dto"), exports);
22
22
  __exportStar(require("./get-p-infos-for-before-delivery-excel.dto"), exports);
23
23
  __exportStar(require("./get-purchased-infos-for-unconfirmed-waiting-order-sellers-excel.dto"), exports);
24
24
  __exportStar(require("./is-purchase-store-item-by-user-bulk.dto"), exports);
25
+ __exportStar(require("./check-can-change-purchased-option.dto"), exports);
@@ -0,0 +1,10 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult } from '../dto/purchased-info.modules';
4
+ export declare class AmqpPurchasedInfoAdminService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ getPurchasedInfosForAdmin(payload: GetPurchasedInfosForAdminPayload, param: AbstractParam): Promise<GetPurchasedInfosForAdminResult>;
9
+ getPurchasedInfoDetailForAdminEdit(payload: GetPurchasedInfoDetailForAdminEditPayload, param: AbstractParam): Promise<GetPurchasedInfoDetailForAdminEditResult>;
10
+ }
@@ -27,24 +27,6 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
27
27
  async getPurchasedInfoDetailForAdminEdit(payload, param) {
28
28
  return this.amqpManager.call('결제 상세 조회 (관리자 수정용)', 'purchased-info-admin.get.detail-for-edit', payload, param, { isErrorThrowing: true });
29
29
  }
30
- async editPInfoEtcData(payload, param) {
31
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.etc-data', payload, param, { isErrorThrowing: true });
32
- }
33
- async editPInfoMemo(payload, param) {
34
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.memo', payload, param, { isErrorThrowing: true });
35
- }
36
- async editPInfoPrice(payload, param) {
37
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.price', payload, param, { isErrorThrowing: true });
38
- }
39
- async editPInfoProcess(payload, param) {
40
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.process', payload, param, { isErrorThrowing: true });
41
- }
42
- async editPInfoReceiverInfo(payload, param) {
43
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.receiver-info', payload, param, { isErrorThrowing: true });
44
- }
45
- async editPInfoWaitingReceiveInfo(payload, param) {
46
- return this.amqpManager.call('결제 상세 수정 (관리자)', 'purchased-info-admin.edit.waiting-receive-info', payload, param, { isErrorThrowing: true });
47
- }
48
30
  };
49
31
  exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
50
32
  exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
@@ -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, ChangePurchasedOptionPayload } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -30,4 +30,6 @@ 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>;
34
+ changePurchasedOption(payload: ChangePurchasedOptionPayload, param: AbstractParam): Promise<void>;
33
35
  }
@@ -97,6 +97,12 @@ 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, { isErrorThrowing: true });
102
+ }
103
+ async changePurchasedOption(payload, param) {
104
+ return this.amqpManager.call('구매 옵션 변경', 'purchased-info.change.purchased-option', payload, param, { isErrorThrowing: true });
105
+ }
100
106
  };
101
107
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
102
108
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
@@ -7,4 +7,4 @@ export * from './amqp.pay-try-test-log.service';
7
7
  export * from './amqp-data-payment-method.service';
8
8
  export * from './amqp.direct-payment-tosspayments.service';
9
9
  export * from './amqp.purchase-receipt.service';
10
- export * from './purchased-info.modules';
10
+ export * from './amqp.purchased-info-admin.service';
@@ -23,4 +23,4 @@ __exportStar(require("./amqp.pay-try-test-log.service"), exports);
23
23
  __exportStar(require("./amqp-data-payment-method.service"), exports);
24
24
  __exportStar(require("./amqp.direct-payment-tosspayments.service"), exports);
25
25
  __exportStar(require("./amqp.purchase-receipt.service"), exports);
26
- __exportStar(require("./purchased-info.modules"), exports);
26
+ __exportStar(require("./amqp.purchased-info-admin.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.80-jun.3",
3
+ "version": "0.4.81-hj-1",
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/domain": "0.1.4",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.7",
24
24
  "@yolo-croket-dev/entity": "^0.2.1",
25
- "@yolo-croket-dev/entity-v2": "^0.1.24",
25
+ "@yolo-croket-dev/entity-v2": "0.1.36-hj-1",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -0,0 +1,21 @@
1
+ export declare class SetDataChangePurchasedOptionMethodAppBatchPushActivityData {
2
+ otherUserId?: string;
3
+ relatePInfoId?: string;
4
+ previewImg?: string;
5
+ }
6
+ export declare class SetDataChangePurchasedOptionMethodAppBatchPushData {
7
+ purchaseReceiptId: string;
8
+ itemName: string;
9
+ buyerName: string;
10
+ storeTitle: string;
11
+ buyerUsername: string;
12
+ userId: string;
13
+ activityData: SetDataChangePurchasedOptionMethodAppBatchPushActivityData;
14
+ }
15
+ export declare class SetDataChangePurchasedOptionMethodAppBatchPushPayload {
16
+ data: SetDataChangePurchasedOptionMethodAppBatchPushData;
17
+ ttl: number;
18
+ }
19
+ export interface SetDataChangePurchasedOptionMethodAppBatchPushResult {
20
+ result: string | null;
21
+ }
@@ -0,0 +1,78 @@
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.SetDataChangePurchasedOptionMethodAppBatchPushPayload = exports.SetDataChangePurchasedOptionMethodAppBatchPushData = exports.SetDataChangePurchasedOptionMethodAppBatchPushActivityData = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class SetDataChangePurchasedOptionMethodAppBatchPushActivityData {
16
+ }
17
+ exports.SetDataChangePurchasedOptionMethodAppBatchPushActivityData = SetDataChangePurchasedOptionMethodAppBatchPushActivityData;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ __metadata("design:type", String)
22
+ ], SetDataChangePurchasedOptionMethodAppBatchPushActivityData.prototype, "otherUserId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsMongoId)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ __metadata("design:type", String)
27
+ ], SetDataChangePurchasedOptionMethodAppBatchPushActivityData.prototype, "relatePInfoId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], SetDataChangePurchasedOptionMethodAppBatchPushActivityData.prototype, "previewImg", void 0);
33
+ class SetDataChangePurchasedOptionMethodAppBatchPushData {
34
+ }
35
+ exports.SetDataChangePurchasedOptionMethodAppBatchPushData = SetDataChangePurchasedOptionMethodAppBatchPushData;
36
+ __decorate([
37
+ (0, class_validator_1.IsMongoId)(),
38
+ __metadata("design:type", String)
39
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "purchaseReceiptId", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "itemName", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "buyerName", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ __metadata("design:type", String)
51
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "storeTitle", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "buyerUsername", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsMongoId)(),
58
+ __metadata("design:type", String)
59
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "userId", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsObject)(),
62
+ (0, class_validator_1.ValidateNested)({}),
63
+ (0, class_transformer_1.Type)(() => SetDataChangePurchasedOptionMethodAppBatchPushActivityData),
64
+ __metadata("design:type", SetDataChangePurchasedOptionMethodAppBatchPushActivityData)
65
+ ], SetDataChangePurchasedOptionMethodAppBatchPushData.prototype, "activityData", void 0);
66
+ class SetDataChangePurchasedOptionMethodAppBatchPushPayload {
67
+ }
68
+ exports.SetDataChangePurchasedOptionMethodAppBatchPushPayload = SetDataChangePurchasedOptionMethodAppBatchPushPayload;
69
+ __decorate([
70
+ (0, class_validator_1.IsObject)(),
71
+ (0, class_validator_1.ValidateNested)({}),
72
+ (0, class_transformer_1.Type)(() => SetDataChangePurchasedOptionMethodAppBatchPushData),
73
+ __metadata("design:type", SetDataChangePurchasedOptionMethodAppBatchPushData)
74
+ ], SetDataChangePurchasedOptionMethodAppBatchPushPayload.prototype, "data", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsNumber)(),
77
+ __metadata("design:type", Number)
78
+ ], SetDataChangePurchasedOptionMethodAppBatchPushPayload.prototype, "ttl", void 0);
@@ -1,6 +0,0 @@
1
- export declare class EditPInfoEtcDataPayload {
2
- pInfoId: string;
3
- editPastName: string;
4
- editPastImg: string;
5
- editRequirement: string;
6
- }
@@ -1,32 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EditPInfoEtcDataPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class EditPInfoEtcDataPayload {
15
- }
16
- exports.EditPInfoEtcDataPayload = EditPInfoEtcDataPayload;
17
- __decorate([
18
- (0, class_validator_1.IsMongoId)(),
19
- __metadata("design:type", String)
20
- ], EditPInfoEtcDataPayload.prototype, "pInfoId", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- __metadata("design:type", String)
24
- ], EditPInfoEtcDataPayload.prototype, "editPastName", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], EditPInfoEtcDataPayload.prototype, "editPastImg", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], EditPInfoEtcDataPayload.prototype, "editRequirement", void 0);
@@ -1,4 +0,0 @@
1
- export declare class EditPInfoMemoPayload {
2
- pInfoId: string;
3
- editMemo: string;
4
- }
@@ -1,25 +0,0 @@
1
- export declare class EditPInfoPriceOptionInfo {
2
- optionName: string;
3
- pNums: number;
4
- }
5
- export declare class EditPInfoPricePayload {
6
- pInfoId: string;
7
- editAllPurchaseNumber: number;
8
- editPastPrice: number;
9
- editPastPriceForBuyer: number;
10
- editInsurancePrice?: number;
11
- editIsPrepay: boolean;
12
- editShippingFee?: number;
13
- editBundleShippingFee?: number;
14
- editOptionInfoList: EditPInfoPriceOptionInfo[];
15
- editUsedCredit: number;
16
- editPaymentFeeNumber: number;
17
- clientTotalPrice: number;
18
- clientOriginPrice: number;
19
- clientPaidPrice: number;
20
- clientExpectedProceeds: number;
21
- clientServiceFee: number;
22
- clientServiceFeePercent: number;
23
- clientProceedsVersion: string;
24
- isRemoveIC: boolean;
25
- }
@@ -1,109 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EditPInfoPricePayload = exports.EditPInfoPriceOptionInfo = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- class EditPInfoPriceOptionInfo {
16
- }
17
- exports.EditPInfoPriceOptionInfo = EditPInfoPriceOptionInfo;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], EditPInfoPriceOptionInfo.prototype, "optionName", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsNumber)(),
24
- __metadata("design:type", Number)
25
- ], EditPInfoPriceOptionInfo.prototype, "pNums", void 0);
26
- class EditPInfoPricePayload {
27
- }
28
- exports.EditPInfoPricePayload = EditPInfoPricePayload;
29
- __decorate([
30
- (0, class_validator_1.IsMongoId)(),
31
- __metadata("design:type", String)
32
- ], EditPInfoPricePayload.prototype, "pInfoId", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsNumber)(),
35
- __metadata("design:type", Number)
36
- ], EditPInfoPricePayload.prototype, "editAllPurchaseNumber", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsNumber)(),
39
- __metadata("design:type", Number)
40
- ], EditPInfoPricePayload.prototype, "editPastPrice", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsNumber)(),
43
- __metadata("design:type", Number)
44
- ], EditPInfoPricePayload.prototype, "editPastPriceForBuyer", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsNumber)(),
47
- (0, class_validator_1.IsOptional)(),
48
- __metadata("design:type", Number)
49
- ], EditPInfoPricePayload.prototype, "editInsurancePrice", void 0);
50
- __decorate([
51
- (0, class_validator_1.IsBoolean)(),
52
- __metadata("design:type", Boolean)
53
- ], EditPInfoPricePayload.prototype, "editIsPrepay", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsNumber)(),
56
- (0, class_validator_1.IsOptional)(),
57
- __metadata("design:type", Number)
58
- ], EditPInfoPricePayload.prototype, "editShippingFee", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsNumber)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", Number)
63
- ], EditPInfoPricePayload.prototype, "editBundleShippingFee", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsArray)(),
66
- (0, class_validator_1.ValidateNested)({ each: true }),
67
- (0, class_transformer_1.Type)(() => EditPInfoPriceOptionInfo),
68
- __metadata("design:type", Array)
69
- ], EditPInfoPricePayload.prototype, "editOptionInfoList", void 0);
70
- __decorate([
71
- (0, class_validator_1.IsNumber)(),
72
- __metadata("design:type", Number)
73
- ], EditPInfoPricePayload.prototype, "editUsedCredit", void 0);
74
- __decorate([
75
- (0, class_validator_1.IsNumber)(),
76
- __metadata("design:type", Number)
77
- ], EditPInfoPricePayload.prototype, "editPaymentFeeNumber", void 0);
78
- __decorate([
79
- (0, class_validator_1.IsNumber)(),
80
- __metadata("design:type", Number)
81
- ], EditPInfoPricePayload.prototype, "clientTotalPrice", void 0);
82
- __decorate([
83
- (0, class_validator_1.IsNumber)(),
84
- __metadata("design:type", Number)
85
- ], EditPInfoPricePayload.prototype, "clientOriginPrice", void 0);
86
- __decorate([
87
- (0, class_validator_1.IsNumber)(),
88
- __metadata("design:type", Number)
89
- ], EditPInfoPricePayload.prototype, "clientPaidPrice", void 0);
90
- __decorate([
91
- (0, class_validator_1.IsNumber)(),
92
- __metadata("design:type", Number)
93
- ], EditPInfoPricePayload.prototype, "clientExpectedProceeds", void 0);
94
- __decorate([
95
- (0, class_validator_1.IsNumber)(),
96
- __metadata("design:type", Number)
97
- ], EditPInfoPricePayload.prototype, "clientServiceFee", void 0);
98
- __decorate([
99
- (0, class_validator_1.IsNumber)(),
100
- __metadata("design:type", Number)
101
- ], EditPInfoPricePayload.prototype, "clientServiceFeePercent", void 0);
102
- __decorate([
103
- (0, class_validator_1.IsString)(),
104
- __metadata("design:type", String)
105
- ], EditPInfoPricePayload.prototype, "clientProceedsVersion", void 0);
106
- __decorate([
107
- (0, class_validator_1.IsBoolean)(),
108
- __metadata("design:type", Boolean)
109
- ], EditPInfoPricePayload.prototype, "isRemoveIC", void 0);
@@ -1,5 +0,0 @@
1
- import { PurchasedProcessEnum } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
- export declare class EditPInfoProcessPayload {
3
- pInfoId: string;
4
- editProcess: PurchasedProcessEnum;
5
- }
@@ -1,26 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EditPInfoProcessPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const purchased_info_entity_1 = require("@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity");
15
- class EditPInfoProcessPayload {
16
- }
17
- exports.EditPInfoProcessPayload = EditPInfoProcessPayload;
18
- __decorate([
19
- (0, class_validator_1.IsMongoId)(),
20
- __metadata("design:type", String)
21
- ], EditPInfoProcessPayload.prototype, "pInfoId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsEnum)(purchased_info_entity_1.PurchasedProcessEnum),
25
- __metadata("design:type", String)
26
- ], EditPInfoProcessPayload.prototype, "editProcess", void 0);
@@ -1,8 +0,0 @@
1
- export declare class EditPInfoReceiverInfoPayload {
2
- pInfoId: string;
3
- postCode: string;
4
- address: string;
5
- receiverName: string;
6
- receiverPhoneNumber: string;
7
- PCCC: string;
8
- }
@@ -1,5 +0,0 @@
1
- export declare class EditPInfoWaitingReceiveInfoPayload {
2
- pInfoId: string;
3
- autoReceiveExpectedDate: Date;
4
- extendReason?: string;
5
- }
@@ -1,29 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EditPInfoWaitingReceiveInfoPayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class EditPInfoWaitingReceiveInfoPayload {
15
- }
16
- exports.EditPInfoWaitingReceiveInfoPayload = EditPInfoWaitingReceiveInfoPayload;
17
- __decorate([
18
- (0, class_validator_1.IsMongoId)(),
19
- __metadata("design:type", String)
20
- ], EditPInfoWaitingReceiveInfoPayload.prototype, "pInfoId", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsDateString)(),
23
- __metadata("design:type", Date)
24
- ], EditPInfoWaitingReceiveInfoPayload.prototype, "autoReceiveExpectedDate", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsOptional)(),
28
- __metadata("design:type", String)
29
- ], EditPInfoWaitingReceiveInfoPayload.prototype, "extendReason", void 0);
@@ -1,6 +0,0 @@
1
- export * from './edit-p-info-etc-data.dto';
2
- export * from './edit-p-info-memo.dto';
3
- export * from './edit-p-info-price.dto';
4
- export * from './edit-p-info-process.dto';
5
- export * from './edit-p-info-receiver-info.dto';
6
- export * from './edit-p-info-waiting-receive-info.dto';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./edit-p-info-etc-data.dto"), exports);
18
- __exportStar(require("./edit-p-info-memo.dto"), exports);
19
- __exportStar(require("./edit-p-info-price.dto"), exports);
20
- __exportStar(require("./edit-p-info-process.dto"), exports);
21
- __exportStar(require("./edit-p-info-receiver-info.dto"), exports);
22
- __exportStar(require("./edit-p-info-waiting-receive-info.dto"), exports);
@@ -1,16 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload } from '../../dto/purchased-info.modules';
4
- export declare class AmqpPurchasedInfoAdminService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- getPurchasedInfosForAdmin(payload: GetPurchasedInfosForAdminPayload, param: AbstractParam): Promise<GetPurchasedInfosForAdminResult>;
9
- getPurchasedInfoDetailForAdminEdit(payload: GetPurchasedInfoDetailForAdminEditPayload, param: AbstractParam): Promise<GetPurchasedInfoDetailForAdminEditResult>;
10
- editPInfoEtcData(payload: EditPInfoEtcDataPayload, param: AbstractParam): Promise<void>;
11
- editPInfoMemo(payload: EditPInfoMemoPayload, param: AbstractParam): Promise<void>;
12
- editPInfoPrice(payload: EditPInfoPricePayload, param: AbstractParam): Promise<void>;
13
- editPInfoProcess(payload: EditPInfoProcessPayload, param: AbstractParam): Promise<void>;
14
- editPInfoReceiverInfo(payload: EditPInfoReceiverInfoPayload, param: AbstractParam): Promise<void>;
15
- editPInfoWaitingReceiveInfo(payload: EditPInfoWaitingReceiveInfoPayload, param: AbstractParam): Promise<void>;
16
- }
@@ -1 +0,0 @@
1
- export * from './amqp.purchased-info-admin.service';
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./amqp.purchased-info-admin.service"), exports);