@yolo-croket-dev/amqp-access 0.4.89 → 0.4.90

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 (36) hide show
  1. package/order-server/amqp.order-server.module.js +2 -0
  2. package/order-server/dto/changed-purchased-option-log/command/create-changed-purchased-option-log.dto.d.ts +19 -0
  3. package/order-server/dto/changed-purchased-option-log/command/create-changed-purchased-option-log.dto.js +72 -0
  4. package/order-server/dto/changed-purchased-option-log/command/index.d.ts +1 -0
  5. package/order-server/dto/changed-purchased-option-log/command/index.js +17 -0
  6. package/order-server/dto/changed-purchased-option-log/index.d.ts +1 -0
  7. package/order-server/dto/changed-purchased-option-log/index.js +17 -0
  8. package/order-server/dto/index.d.ts +1 -0
  9. package/order-server/dto/index.js +1 -0
  10. package/order-server/dto/purchasedinfos/command/change-purchased-option.dto.d.ts +8 -0
  11. package/order-server/dto/purchasedinfos/command/change-purchased-option.dto.js +38 -0
  12. package/order-server/dto/purchasedinfos/command/index.d.ts +1 -0
  13. package/order-server/dto/purchasedinfos/command/index.js +1 -0
  14. package/order-server/dto/purchasedinfos/query/check-can-change-purchased-option.dto.d.ts +6 -0
  15. package/order-server/dto/purchasedinfos/query/check-can-change-purchased-option.dto.js +23 -0
  16. package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
  17. package/order-server/dto/purchasedinfos/query/index.js +1 -0
  18. package/order-server/services/amqp-changed-purchased-option-log.service.d.ts +9 -0
  19. package/order-server/services/amqp-changed-purchased-option-log.service.js +33 -0
  20. package/order-server/services/amqp.purchased-info.service.d.ts +3 -1
  21. package/order-server/services/amqp.purchased-info.service.js +6 -0
  22. package/order-server/services/index.d.ts +1 -0
  23. package/order-server/services/index.js +1 -0
  24. package/package.json +2 -2
  25. package/store-item-server/dto/store-item/command/index.d.ts +1 -0
  26. package/store-item-server/dto/store-item/command/index.js +1 -0
  27. package/store-item-server/dto/store-item/command/patch-store-item-option-remain-count-by-change-purchased-option.service.d.ts +16 -0
  28. package/store-item-server/dto/store-item/command/patch-store-item-option-remain-count-by-change-purchased-option.service.js +67 -0
  29. package/store-item-server/services/amqp.store-item.service.d.ts +2 -1
  30. package/store-item-server/services/amqp.store-item.service.js +3 -0
  31. package/user-service/dto/redis-db/command/index.d.ts +1 -0
  32. package/user-service/dto/redis-db/command/index.js +1 -0
  33. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-change-purchased-options.dto.d.ts +19 -0
  34. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-change-purchased-options.dto.js +70 -0
  35. package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.d.ts +2 -1
  36. package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.js +3 -0
@@ -29,6 +29,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
29
29
  services_1.AmqpDirectPaymentTosspaymentsService,
30
30
  services_1.AmqpPurchaseReceiptService,
31
31
  services_1.AmqpPurchasedInfoAdminService,
32
+ services_1.AmqpChangedPurchasedOptionLogService,
32
33
  ],
33
34
  exports: [
34
35
  amqp_order_server_provider_1.OrderServerProvider,
@@ -43,6 +44,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
43
44
  services_1.AmqpDirectPaymentTosspaymentsService,
44
45
  services_1.AmqpPurchaseReceiptService,
45
46
  services_1.AmqpPurchasedInfoAdminService,
47
+ services_1.AmqpChangedPurchasedOptionLogService,
46
48
  ],
47
49
  })
48
50
  ], AmqpOrderServerModule);
@@ -0,0 +1,19 @@
1
+ import { PInfoPOptionInfo, POption, POptionTypeEnum } from '@yolo-croket-dev/entity-v2';
2
+ declare class POptionForCreateChangedPurchasedOptionLog implements POption {
3
+ optionName: string;
4
+ optionNameList: string[];
5
+ pNums?: number | undefined;
6
+ }
7
+ declare class PInfoPOptionInfoForCreateChangedPurchasedOptionLog implements PInfoPOptionInfo {
8
+ pOptionType: POptionTypeEnum;
9
+ pOptionList: POptionForCreateChangedPurchasedOptionLog[];
10
+ }
11
+ export declare class CreateChangedPurchasedOptionLogPayload {
12
+ PInfoId: string;
13
+ itemId: string;
14
+ sellerId: string;
15
+ buyerId: string;
16
+ beforeOptions: PInfoPOptionInfoForCreateChangedPurchasedOptionLog;
17
+ afterOptions: PInfoPOptionInfoForCreateChangedPurchasedOptionLog;
18
+ }
19
+ export {};
@@ -0,0 +1,72 @@
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.CreateChangedPurchasedOptionLogPayload = void 0;
13
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ class POptionForCreateChangedPurchasedOptionLog {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], POptionForCreateChangedPurchasedOptionLog.prototype, "optionName", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsArray)(),
24
+ (0, class_validator_1.IsString)({ each: true }),
25
+ __metadata("design:type", Array)
26
+ ], POptionForCreateChangedPurchasedOptionLog.prototype, "optionNameList", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNumber)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", Object)
31
+ ], POptionForCreateChangedPurchasedOptionLog.prototype, "pNums", void 0);
32
+ class PInfoPOptionInfoForCreateChangedPurchasedOptionLog {
33
+ }
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(entity_v2_1.POptionTypeEnum),
36
+ __metadata("design:type", String)
37
+ ], PInfoPOptionInfoForCreateChangedPurchasedOptionLog.prototype, "pOptionType", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsArray)(),
40
+ (0, class_validator_1.ValidateNested)({ each: true }),
41
+ (0, class_transformer_1.Type)(() => POptionForCreateChangedPurchasedOptionLog),
42
+ __metadata("design:type", Array)
43
+ ], PInfoPOptionInfoForCreateChangedPurchasedOptionLog.prototype, "pOptionList", void 0);
44
+ class CreateChangedPurchasedOptionLogPayload {
45
+ }
46
+ exports.CreateChangedPurchasedOptionLogPayload = CreateChangedPurchasedOptionLogPayload;
47
+ __decorate([
48
+ (0, class_validator_1.IsMongoId)(),
49
+ __metadata("design:type", String)
50
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "PInfoId", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsMongoId)(),
53
+ __metadata("design:type", String)
54
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "itemId", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsMongoId)(),
57
+ __metadata("design:type", String)
58
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "sellerId", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsMongoId)(),
61
+ __metadata("design:type", String)
62
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "buyerId", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.ValidateNested)(),
65
+ (0, class_transformer_1.Type)(() => PInfoPOptionInfoForCreateChangedPurchasedOptionLog),
66
+ __metadata("design:type", PInfoPOptionInfoForCreateChangedPurchasedOptionLog)
67
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "beforeOptions", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.ValidateNested)(),
70
+ (0, class_transformer_1.Type)(() => PInfoPOptionInfoForCreateChangedPurchasedOptionLog),
71
+ __metadata("design:type", PInfoPOptionInfoForCreateChangedPurchasedOptionLog)
72
+ ], CreateChangedPurchasedOptionLogPayload.prototype, "afterOptions", void 0);
@@ -0,0 +1 @@
1
+ export * from './create-changed-purchased-option-log.dto';
@@ -0,0 +1,17 @@
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("./create-changed-purchased-option-log.dto"), exports);
@@ -0,0 +1 @@
1
+ export * from './command';
@@ -0,0 +1,17 @@
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("./command"), exports);
@@ -3,3 +3,4 @@ export * from './purchasedinfos';
3
3
  export * from './pay-try-log';
4
4
  export * from './data-payment-method';
5
5
  export * from './direct-payment-tosspayments';
6
+ export * from './changed-purchased-option-log';
@@ -19,3 +19,4 @@ __exportStar(require("./purchasedinfos"), exports);
19
19
  __exportStar(require("./pay-try-log"), exports);
20
20
  __exportStar(require("./data-payment-method"), exports);
21
21
  __exportStar(require("./direct-payment-tosspayments"), exports);
22
+ __exportStar(require("./changed-purchased-option-log"), 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
+ }
@@ -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);
@@ -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;
@@ -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,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { CreateChangedPurchasedOptionLogPayload } from '../dto';
4
+ export declare class AmqpChangedPurchasedOptionLogService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ createChangedPurchasedOptionLog(payload: CreateChangedPurchasedOptionLogPayload, param: AbstractParam): Promise<void>;
9
+ }
@@ -0,0 +1,33 @@
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.AmqpChangedPurchasedOptionLogService = 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 AmqpChangedPurchasedOptionLogService = class AmqpChangedPurchasedOptionLogService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async createChangedPurchasedOptionLog(payload, param) {
25
+ return this.amqpManager.call('구매 옵션 변경 로그 생성', 'changed-purchased-option-log.create', payload, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpChangedPurchasedOptionLogService = AmqpChangedPurchasedOptionLogService;
29
+ exports.AmqpChangedPurchasedOptionLogService = AmqpChangedPurchasedOptionLogService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpChangedPurchasedOptionLogService);
@@ -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([
@@ -8,3 +8,4 @@ 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
10
  export * from './purchased-info.modules';
11
+ export * from './amqp-changed-purchased-option-log.service';
@@ -24,3 +24,4 @@ __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
26
  __exportStar(require("./purchased-info.modules"), exports);
27
+ __exportStar(require("./amqp-changed-purchased-option-log.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.89",
3
+ "version": "0.4.90",
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.43",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -8,3 +8,4 @@ export * from './update-brand-eng-name-bulk.dto';
8
8
  export * from './delete-brand-info-bulk.dto';
9
9
  export * from './dalpha-update-brand-name-bulk.dto';
10
10
  export * from './sync-seduce-add-cart-item-ids.dto';
11
+ export * from './patch-store-item-option-remain-count-by-change-purchased-option.service';
@@ -24,3 +24,4 @@ __exportStar(require("./update-brand-eng-name-bulk.dto"), exports);
24
24
  __exportStar(require("./delete-brand-info-bulk.dto"), exports);
25
25
  __exportStar(require("./dalpha-update-brand-name-bulk.dto"), exports);
26
26
  __exportStar(require("./sync-seduce-add-cart-item-ids.dto"), exports);
27
+ __exportStar(require("./patch-store-item-option-remain-count-by-change-purchased-option.service"), exports);
@@ -0,0 +1,16 @@
1
+ import { PInfoPOptionInfo, POption, POptionTypeEnum } from '@yolo-croket-dev/entity-v2';
2
+ import { ChangePurchasedOptionInfo } from '../../../../order-server';
3
+ export declare class POptionByPatchStoreItemOptionRemainCount implements POption {
4
+ optionName: string;
5
+ optionNameList: string[];
6
+ pNums?: number;
7
+ }
8
+ export declare class PInfoPOptionInfoByPatchStoreItemOptionRemainCount implements PInfoPOptionInfo {
9
+ pOptionList: POptionByPatchStoreItemOptionRemainCount[];
10
+ pOptionType?: POptionTypeEnum;
11
+ }
12
+ export declare class PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload {
13
+ storeItemId: string;
14
+ changeOptions: ChangePurchasedOptionInfo[];
15
+ pOptionInfo?: PInfoPOptionInfoByPatchStoreItemOptionRemainCount;
16
+ }
@@ -0,0 +1,67 @@
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.PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload = exports.PInfoPOptionInfoByPatchStoreItemOptionRemainCount = exports.POptionByPatchStoreItemOptionRemainCount = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
16
+ const order_server_1 = require("../../../../order-server");
17
+ class POptionByPatchStoreItemOptionRemainCount {
18
+ }
19
+ exports.POptionByPatchStoreItemOptionRemainCount = POptionByPatchStoreItemOptionRemainCount;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], POptionByPatchStoreItemOptionRemainCount.prototype, "optionName", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsArray)(),
27
+ (0, class_validator_1.IsString)({ each: true }),
28
+ __metadata("design:type", Array)
29
+ ], POptionByPatchStoreItemOptionRemainCount.prototype, "optionNameList", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNumber)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ __metadata("design:type", Number)
34
+ ], POptionByPatchStoreItemOptionRemainCount.prototype, "pNums", void 0);
35
+ class PInfoPOptionInfoByPatchStoreItemOptionRemainCount {
36
+ }
37
+ exports.PInfoPOptionInfoByPatchStoreItemOptionRemainCount = PInfoPOptionInfoByPatchStoreItemOptionRemainCount;
38
+ __decorate([
39
+ (0, class_validator_1.IsArray)(),
40
+ (0, class_validator_1.ValidateNested)({ each: true }),
41
+ (0, class_transformer_1.Type)(() => POptionByPatchStoreItemOptionRemainCount),
42
+ __metadata("design:type", Array)
43
+ ], PInfoPOptionInfoByPatchStoreItemOptionRemainCount.prototype, "pOptionList", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsEnum)(entity_v2_1.POptionTypeEnum),
46
+ __metadata("design:type", String)
47
+ ], PInfoPOptionInfoByPatchStoreItemOptionRemainCount.prototype, "pOptionType", void 0);
48
+ class PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload {
49
+ }
50
+ exports.PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload = PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload;
51
+ __decorate([
52
+ (0, class_validator_1.IsMongoId)(),
53
+ __metadata("design:type", String)
54
+ ], PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload.prototype, "storeItemId", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsArray)(),
57
+ (0, class_validator_1.ValidateNested)({ each: true }),
58
+ (0, class_transformer_1.Type)(() => order_server_1.ChangePurchasedOptionInfo),
59
+ __metadata("design:type", Array)
60
+ ], PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload.prototype, "changeOptions", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsObject)(),
63
+ (0, class_validator_1.ValidateNested)({}),
64
+ (0, class_transformer_1.Type)(() => PInfoPOptionInfoByPatchStoreItemOptionRemainCount),
65
+ (0, class_validator_1.IsOptional)(),
66
+ __metadata("design:type", PInfoPOptionInfoByPatchStoreItemOptionRemainCount)
67
+ ], PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload.prototype, "pOptionInfo", void 0);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload } from '../dto/store-item';
3
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -40,6 +40,7 @@ export declare class AmqpStoreItemService {
40
40
  getStoreItemsByBrandName(payload: GetStoreItemsByBrandNamePayload, param: AbstractParam): Promise<GetStoreItemsByBrandNameResult>;
41
41
  searchStoreItemsForTestApi(payload: SearchStoreItemsForTestApiPayload, param: AbstractParam): Promise<SearchStoreItemsForTestApiResult[]>;
42
42
  updateBrandNameBulk(payload: UpdateBrandNameBulkPayload, param: AbstractParam): Promise<void>;
43
+ patchStoreItemOptionRemainCountByChangePurchasedOption(payload: PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, param: AbstractParam): Promise<void>;
43
44
  updateBrandEngNameBulk(payload: UpdateBrandEngNameBulkPayload, param: AbstractParam): Promise<void>;
44
45
  deleteBrandInfoBulk(payload: DeleteBrandInfoBulkPayload, param: AbstractParam): Promise<void>;
45
46
  dalphaUpdateBrandNameBulk(payload: DalphaUpdateBrandNameBulkPayload, param: AbstractParam): Promise<void>;
@@ -120,6 +120,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
120
120
  async updateBrandNameBulk(payload, param) {
121
121
  return this.amqpManager.call('브랜드 이름 대량 업데이트', 'store-item.update.brand-name-bulk', payload, param, { isErrorThrowing: true });
122
122
  }
123
+ async patchStoreItemOptionRemainCountByChangePurchasedOption(payload, param) {
124
+ return this.amqpManager.call('상품 옵션 재고 수정 - 결제 후 옵션 변경', 'store-item.patch.store-item-option-remain-count-by-change-purchased-option', payload, param, { isErrorThrowing: true });
125
+ }
123
126
  async updateBrandEngNameBulk(payload, param) {
124
127
  return this.amqpManager.call('브랜드 영문 이름 대량 업데이트', 'store-item.update.brand-eng-name-bulk', payload, param, { isErrorThrowing: true });
125
128
  }
@@ -10,3 +10,4 @@ export * from './redis-db.app-batch-push.set-data-store-item-select-shipping.dto
10
10
  export * from './redis-db.app-batch-push.set-data-auto-recieve-to-buyer.dto';
11
11
  export * from './redis-db.app-batch-push.set-data-auto-change-waiting-receive-process-to-buyer.dto';
12
12
  export * from './delete-app-batch-push-data-by-key.dto';
13
+ export * from './redis-db.app-batch-push.set-data-change-purchased-options.dto';
@@ -26,3 +26,4 @@ __exportStar(require("./redis-db.app-batch-push.set-data-store-item-select-shipp
26
26
  __exportStar(require("./redis-db.app-batch-push.set-data-auto-recieve-to-buyer.dto"), exports);
27
27
  __exportStar(require("./redis-db.app-batch-push.set-data-auto-change-waiting-receive-process-to-buyer.dto"), exports);
28
28
  __exportStar(require("./delete-app-batch-push-data-by-key.dto"), exports);
29
+ __exportStar(require("./redis-db.app-batch-push.set-data-change-purchased-options.dto"), exports);
@@ -0,0 +1,19 @@
1
+ export declare class SetDataChangePurchasedOptionsMethodAppBatchPushActivityData {
2
+ otherUserId?: string;
3
+ relatePInfoId?: string;
4
+ previewImg?: string;
5
+ }
6
+ export declare class SetDataChangePurchasedOptionsMethodAppBatchPushData {
7
+ userId: string;
8
+ PInfoId: string;
9
+ itemName: string;
10
+ buyerName: string;
11
+ activityData: SetDataChangePurchasedOptionsMethodAppBatchPushActivityData;
12
+ }
13
+ export declare class SetDataChangePurchasedOptionsMethodAppBatchPushPayload {
14
+ data: SetDataChangePurchasedOptionsMethodAppBatchPushData;
15
+ ttl: number;
16
+ }
17
+ export interface SetDataChangePurchasedOptionsMethodAppBatchPushResult {
18
+ result: string | null;
19
+ }
@@ -0,0 +1,70 @@
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.SetDataChangePurchasedOptionsMethodAppBatchPushPayload = exports.SetDataChangePurchasedOptionsMethodAppBatchPushData = exports.SetDataChangePurchasedOptionsMethodAppBatchPushActivityData = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class SetDataChangePurchasedOptionsMethodAppBatchPushActivityData {
16
+ }
17
+ exports.SetDataChangePurchasedOptionsMethodAppBatchPushActivityData = SetDataChangePurchasedOptionsMethodAppBatchPushActivityData;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ __metadata("design:type", String)
22
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushActivityData.prototype, "otherUserId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsMongoId)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ __metadata("design:type", String)
27
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushActivityData.prototype, "relatePInfoId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushActivityData.prototype, "previewImg", void 0);
33
+ class SetDataChangePurchasedOptionsMethodAppBatchPushData {
34
+ }
35
+ exports.SetDataChangePurchasedOptionsMethodAppBatchPushData = SetDataChangePurchasedOptionsMethodAppBatchPushData;
36
+ __decorate([
37
+ (0, class_validator_1.IsMongoId)(),
38
+ __metadata("design:type", String)
39
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushData.prototype, "userId", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsMongoId)(),
42
+ __metadata("design:type", String)
43
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushData.prototype, "PInfoId", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushData.prototype, "itemName", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ __metadata("design:type", String)
51
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushData.prototype, "buyerName", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsObject)(),
54
+ (0, class_validator_1.ValidateNested)({}),
55
+ (0, class_transformer_1.Type)(() => SetDataChangePurchasedOptionsMethodAppBatchPushActivityData),
56
+ __metadata("design:type", SetDataChangePurchasedOptionsMethodAppBatchPushActivityData)
57
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushData.prototype, "activityData", void 0);
58
+ class SetDataChangePurchasedOptionsMethodAppBatchPushPayload {
59
+ }
60
+ exports.SetDataChangePurchasedOptionsMethodAppBatchPushPayload = SetDataChangePurchasedOptionsMethodAppBatchPushPayload;
61
+ __decorate([
62
+ (0, class_validator_1.IsObject)(),
63
+ (0, class_validator_1.ValidateNested)({}),
64
+ (0, class_transformer_1.Type)(() => SetDataChangePurchasedOptionsMethodAppBatchPushData),
65
+ __metadata("design:type", SetDataChangePurchasedOptionsMethodAppBatchPushData)
66
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushPayload.prototype, "data", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsNumber)(),
69
+ __metadata("design:type", Number)
70
+ ], SetDataChangePurchasedOptionsMethodAppBatchPushPayload.prototype, "ttl", void 0);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { DeleteAppBatchPushDataByKeyPayload, DeleteAppBatchPushDataByKeyResult, GetAppBatchPushDataByKeyPayload, GetAppBatchPushDataByKeyResult, GetAppBatchPushKeysResult, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushPayload, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushResult, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushPayload, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushResult, SetDataAutoRecieveToBuyerMethodAppBatchPushPayload, SetDataAutoRecieveToBuyerMethodAppBatchPushResult, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushPayload, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushResult, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushPayload, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushResult, SetDataStoreRefundToBuyerMethodAppBatchPushPayload, SetDataStoreRefundToBuyerMethodAppBatchPushResult } from '../../dto/redis-db';
3
+ import { DeleteAppBatchPushDataByKeyPayload, DeleteAppBatchPushDataByKeyResult, GetAppBatchPushDataByKeyPayload, GetAppBatchPushDataByKeyResult, GetAppBatchPushKeysResult, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushPayload, SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushResult, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushPayload, SetDataAutoChangeWaitingReceiveProcessToBuyerMethodAppBatchPushResult, SetDataAutoRecieveToBuyerMethodAppBatchPushPayload, SetDataAutoRecieveToBuyerMethodAppBatchPushResult, SetDataChangePurchasedOptionsMethodAppBatchPushPayload, SetDataChangePurchasedOptionsMethodAppBatchPushResult, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushPayload, SetDataCheckingStockFromSellerToBuyerMethodAppBatchPushResult, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushPayload, SetDataStoreImmediateRefundToBuyerMethodAppBatchPushResult, SetDataStoreRefundToBuyerMethodAppBatchPushPayload, SetDataStoreRefundToBuyerMethodAppBatchPushResult } from '../../dto/redis-db';
4
4
  export declare class AmqpRedisDbAppBatchPushService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -14,4 +14,5 @@ export declare class AmqpRedisDbAppBatchPushService {
14
14
  setDataStoreRefundToBuyerMethod(payload: SetDataStoreRefundToBuyerMethodAppBatchPushPayload, param: AbstractParam): Promise<SetDataStoreRefundToBuyerMethodAppBatchPushResult>;
15
15
  setDataStoreImmediateRefundToBuyerMethod(payload: SetDataStoreImmediateRefundToBuyerMethodAppBatchPushPayload, param: AbstractParam): Promise<SetDataStoreImmediateRefundToBuyerMethodAppBatchPushResult>;
16
16
  setDataAskRefundPInfoNoReturnFromSellerToBuyerMethod(payload: SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushPayload, param: AbstractParam): Promise<SetDataAskRefundPInfoNoReturnFromSellerToBuyerMethodAppBatchPushResult>;
17
+ setDataChangePurchasedOptionsMethod(payload: SetDataChangePurchasedOptionsMethodAppBatchPushPayload, param: AbstractParam): Promise<SetDataChangePurchasedOptionsMethodAppBatchPushResult>;
17
18
  }
@@ -48,6 +48,9 @@ let AmqpRedisDbAppBatchPushService = class AmqpRedisDbAppBatchPushService {
48
48
  async setDataAskRefundPInfoNoReturnFromSellerToBuyerMethod(payload, param) {
49
49
  return this.amqpManager.call('redis에 askRefundPInfoNoReturnFromSellerToBuyer method 등록 및 수정', 'redis-db.set-data.app-batch-push-ask-refund-p-info-no-return-from-seller-to-buyer', payload, param, { isErrorThrowing: true });
50
50
  }
51
+ async setDataChangePurchasedOptionsMethod(payload, param) {
52
+ return this.amqpManager.call('redis에 changePurchasedOptions method 등록 및 수정', 'redis-db.set-data.app-batch-push-change-purchased-options', payload, param, { isErrorThrowing: true });
53
+ }
51
54
  };
52
55
  exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService;
53
56
  exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService = __decorate([