@yolo-croket-dev/amqp-access 0.4.69 → 0.4.71

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.
@@ -28,6 +28,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
28
28
  services_1.AmqpDataPaymentMethodService,
29
29
  services_1.AmqpDirectPaymentTosspaymentsService,
30
30
  services_1.AmqpPurchaseReceiptService,
31
+ services_1.AmqpPurchasedInfoAdminService,
31
32
  ],
32
33
  exports: [
33
34
  amqp_order_server_provider_1.OrderServerProvider,
@@ -41,6 +42,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
41
42
  services_1.AmqpDataPaymentMethodService,
42
43
  services_1.AmqpDirectPaymentTosspaymentsService,
43
44
  services_1.AmqpPurchaseReceiptService,
45
+ services_1.AmqpPurchasedInfoAdminService,
44
46
  ],
45
47
  })
46
48
  ], AmqpOrderServerModule);
@@ -8,6 +8,10 @@ export declare enum GetPurchasedInfosForAdminSearchTypeEnum {
8
8
  'imp_uid 기준' = "imp_uid \uAE30\uC900",
9
9
  '결제로그 아이디 기준' = "\uACB0\uC81C\uB85C\uADF8 \uC544\uC774\uB514 \uAE30\uC900"
10
10
  }
11
+ export declare enum GetPurchasedInfosForAdminSortTypeEnum {
12
+ '최근 결제일순' = "\uCD5C\uADFC \uACB0\uC81C\uC77C\uC21C",
13
+ '오래된 결제일순' = "\uC624\uB798\uB41C \uACB0\uC81C\uC77C\uC21C"
14
+ }
11
15
  export declare enum SettleStatusEnum {
12
16
  '전체' = "\uC804\uCCB4",
13
17
  '정산함' = "\uC815\uC0B0\uD568",
@@ -20,6 +24,7 @@ export declare enum AbroadSettleStatusEnum {
20
24
  }
21
25
  export declare class GetPurchasedInfosForAdminPayload {
22
26
  searchType: GetPurchasedInfosForAdminSearchTypeEnum;
27
+ sortType: GetPurchasedInfosForAdminSortTypeEnum;
23
28
  paymentSDate?: string | Date;
24
29
  paymentEDate?: string | Date;
25
30
  receiveSDate?: string | Date;
@@ -33,13 +38,18 @@ export declare class GetPurchasedInfosForAdminPayload {
33
38
  itemName?: string;
34
39
  storeTitle?: string;
35
40
  buyerName?: string;
36
- receivcerName?: string;
41
+ receiverName?: string;
37
42
  receiverPhoneNumber?: string;
38
43
  imp_uid?: string;
39
44
  payTryLogId?: string;
45
+ isExistPaymentMemo?: boolean;
40
46
  paymentMemo?: string;
47
+ isExistSettleMemo?: boolean;
48
+ settleMemo?: string;
41
49
  shippingInvoice?: string;
42
50
  buyerPhoneNumber?: string;
51
+ couponName?: string;
52
+ couponCode?: string;
43
53
  limit: number;
44
54
  searchAfter?: string;
45
55
  searchBefore?: string;
@@ -1,6 +1,16 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPurchasedInfosForAdminResult = exports.GetPurchasedInfosForAdminPayload = exports.AbroadSettleStatusEnum = exports.SettleStatusEnum = exports.GetPurchasedInfosForAdminSearchTypeEnum = void 0;
12
+ exports.GetPurchasedInfosForAdminResult = exports.GetPurchasedInfosForAdminPayload = exports.AbroadSettleStatusEnum = exports.SettleStatusEnum = exports.GetPurchasedInfosForAdminSortTypeEnum = exports.GetPurchasedInfosForAdminSearchTypeEnum = void 0;
13
+ const class_validator_1 = require("class-validator");
4
14
  var GetPurchasedInfosForAdminSearchTypeEnum;
5
15
  (function (GetPurchasedInfosForAdminSearchTypeEnum) {
6
16
  // 결제일 기준 (2그룹 하위 노출)
@@ -18,6 +28,11 @@ var GetPurchasedInfosForAdminSearchTypeEnum;
18
28
  // payTryLogId (2그룹 노출 X)
19
29
  GetPurchasedInfosForAdminSearchTypeEnum["\uACB0\uC81C\uB85C\uADF8 \uC544\uC774\uB514 \uAE30\uC900"] = "\uACB0\uC81C\uB85C\uADF8 \uC544\uC774\uB514 \uAE30\uC900";
20
30
  })(GetPurchasedInfosForAdminSearchTypeEnum || (exports.GetPurchasedInfosForAdminSearchTypeEnum = GetPurchasedInfosForAdminSearchTypeEnum = {}));
31
+ var GetPurchasedInfosForAdminSortTypeEnum;
32
+ (function (GetPurchasedInfosForAdminSortTypeEnum) {
33
+ GetPurchasedInfosForAdminSortTypeEnum["\uCD5C\uADFC \uACB0\uC81C\uC77C\uC21C"] = "\uCD5C\uADFC \uACB0\uC81C\uC77C\uC21C";
34
+ GetPurchasedInfosForAdminSortTypeEnum["\uC624\uB798\uB41C \uACB0\uC81C\uC77C\uC21C"] = "\uC624\uB798\uB41C \uACB0\uC81C\uC77C\uC21C";
35
+ })(GetPurchasedInfosForAdminSortTypeEnum || (exports.GetPurchasedInfosForAdminSortTypeEnum = GetPurchasedInfosForAdminSortTypeEnum = {}));
21
36
  var SettleStatusEnum;
22
37
  (function (SettleStatusEnum) {
23
38
  SettleStatusEnum["\uC804\uCCB4"] = "\uC804\uCCB4";
@@ -33,6 +48,169 @@ var AbroadSettleStatusEnum;
33
48
  class GetPurchasedInfosForAdminPayload {
34
49
  }
35
50
  exports.GetPurchasedInfosForAdminPayload = GetPurchasedInfosForAdminPayload;
51
+ __decorate([
52
+ (0, class_validator_1.IsEnum)(GetPurchasedInfosForAdminSearchTypeEnum),
53
+ __metadata("design:type", String)
54
+ ], GetPurchasedInfosForAdminPayload.prototype, "searchType", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsEnum)(GetPurchasedInfosForAdminSortTypeEnum),
57
+ __metadata("design:type", String)
58
+ ], GetPurchasedInfosForAdminPayload.prototype, "sortType", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsDateString)(),
61
+ (0, class_validator_1.IsOptional)(),
62
+ __metadata("design:type", Object)
63
+ ], GetPurchasedInfosForAdminPayload.prototype, "paymentSDate", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsDateString)(),
66
+ (0, class_validator_1.IsOptional)(),
67
+ __metadata("design:type", Object)
68
+ ], GetPurchasedInfosForAdminPayload.prototype, "paymentEDate", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsDateString)(),
71
+ (0, class_validator_1.IsOptional)(),
72
+ __metadata("design:type", Object)
73
+ ], GetPurchasedInfosForAdminPayload.prototype, "receiveSDate", void 0);
74
+ __decorate([
75
+ (0, class_validator_1.IsDateString)(),
76
+ (0, class_validator_1.IsOptional)(),
77
+ __metadata("design:type", Object)
78
+ ], GetPurchasedInfosForAdminPayload.prototype, "receiveEDate", void 0);
79
+ __decorate([
80
+ (0, class_validator_1.IsString)(),
81
+ (0, class_validator_1.IsOptional)(),
82
+ __metadata("design:type", String)
83
+ ], GetPurchasedInfosForAdminPayload.prototype, "publicId", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsString)(),
86
+ (0, class_validator_1.IsOptional)(),
87
+ __metadata("design:type", String)
88
+ ], GetPurchasedInfosForAdminPayload.prototype, "buyerId", void 0);
89
+ __decorate([
90
+ (0, class_validator_1.IsString)(),
91
+ (0, class_validator_1.IsOptional)(),
92
+ __metadata("design:type", String)
93
+ ], GetPurchasedInfosForAdminPayload.prototype, "storeId", void 0);
94
+ __decorate([
95
+ (0, class_validator_1.IsString)(),
96
+ (0, class_validator_1.IsOptional)(),
97
+ __metadata("design:type", String)
98
+ ], GetPurchasedInfosForAdminPayload.prototype, "pInfoId", void 0);
99
+ __decorate([
100
+ (0, class_validator_1.IsString)(),
101
+ (0, class_validator_1.IsOptional)(),
102
+ __metadata("design:type", String)
103
+ ], GetPurchasedInfosForAdminPayload.prototype, "refundId", void 0);
104
+ __decorate([
105
+ (0, class_validator_1.IsString)(),
106
+ (0, class_validator_1.IsOptional)(),
107
+ __metadata("design:type", String)
108
+ ], GetPurchasedInfosForAdminPayload.prototype, "itemId", void 0);
109
+ __decorate([
110
+ (0, class_validator_1.IsString)(),
111
+ (0, class_validator_1.IsOptional)(),
112
+ __metadata("design:type", String)
113
+ ], GetPurchasedInfosForAdminPayload.prototype, "itemName", void 0);
114
+ __decorate([
115
+ (0, class_validator_1.IsString)(),
116
+ (0, class_validator_1.IsOptional)(),
117
+ __metadata("design:type", String)
118
+ ], GetPurchasedInfosForAdminPayload.prototype, "storeTitle", void 0);
119
+ __decorate([
120
+ (0, class_validator_1.IsString)(),
121
+ (0, class_validator_1.IsOptional)(),
122
+ __metadata("design:type", String)
123
+ ], GetPurchasedInfosForAdminPayload.prototype, "buyerName", void 0);
124
+ __decorate([
125
+ (0, class_validator_1.IsString)(),
126
+ (0, class_validator_1.IsOptional)(),
127
+ __metadata("design:type", String)
128
+ ], GetPurchasedInfosForAdminPayload.prototype, "receiverName", void 0);
129
+ __decorate([
130
+ (0, class_validator_1.IsString)(),
131
+ (0, class_validator_1.IsOptional)(),
132
+ __metadata("design:type", String)
133
+ ], GetPurchasedInfosForAdminPayload.prototype, "receiverPhoneNumber", void 0);
134
+ __decorate([
135
+ (0, class_validator_1.IsString)(),
136
+ (0, class_validator_1.IsOptional)(),
137
+ __metadata("design:type", String)
138
+ ], GetPurchasedInfosForAdminPayload.prototype, "imp_uid", void 0);
139
+ __decorate([
140
+ (0, class_validator_1.IsString)(),
141
+ (0, class_validator_1.IsOptional)(),
142
+ __metadata("design:type", String)
143
+ ], GetPurchasedInfosForAdminPayload.prototype, "payTryLogId", void 0);
144
+ __decorate([
145
+ (0, class_validator_1.IsBoolean)(),
146
+ (0, class_validator_1.IsOptional)(),
147
+ __metadata("design:type", Boolean)
148
+ ], GetPurchasedInfosForAdminPayload.prototype, "isExistPaymentMemo", void 0);
149
+ __decorate([
150
+ (0, class_validator_1.IsString)(),
151
+ (0, class_validator_1.IsOptional)(),
152
+ __metadata("design:type", String)
153
+ ], GetPurchasedInfosForAdminPayload.prototype, "paymentMemo", void 0);
154
+ __decorate([
155
+ (0, class_validator_1.IsBoolean)(),
156
+ (0, class_validator_1.IsOptional)(),
157
+ __metadata("design:type", Boolean)
158
+ ], GetPurchasedInfosForAdminPayload.prototype, "isExistSettleMemo", void 0);
159
+ __decorate([
160
+ (0, class_validator_1.IsString)(),
161
+ (0, class_validator_1.IsOptional)(),
162
+ __metadata("design:type", String)
163
+ ], GetPurchasedInfosForAdminPayload.prototype, "settleMemo", void 0);
164
+ __decorate([
165
+ (0, class_validator_1.IsString)(),
166
+ (0, class_validator_1.IsOptional)(),
167
+ __metadata("design:type", String)
168
+ ], GetPurchasedInfosForAdminPayload.prototype, "shippingInvoice", void 0);
169
+ __decorate([
170
+ (0, class_validator_1.IsString)(),
171
+ (0, class_validator_1.IsOptional)(),
172
+ __metadata("design:type", String)
173
+ ], GetPurchasedInfosForAdminPayload.prototype, "buyerPhoneNumber", void 0);
174
+ __decorate([
175
+ (0, class_validator_1.IsString)(),
176
+ (0, class_validator_1.IsOptional)(),
177
+ __metadata("design:type", String)
178
+ ], GetPurchasedInfosForAdminPayload.prototype, "couponName", void 0);
179
+ __decorate([
180
+ (0, class_validator_1.IsString)(),
181
+ (0, class_validator_1.IsOptional)(),
182
+ __metadata("design:type", String)
183
+ ], GetPurchasedInfosForAdminPayload.prototype, "couponCode", void 0);
184
+ __decorate([
185
+ (0, class_validator_1.IsNumber)(),
186
+ __metadata("design:type", Number)
187
+ ], GetPurchasedInfosForAdminPayload.prototype, "limit", void 0);
188
+ __decorate([
189
+ (0, class_validator_1.IsString)(),
190
+ (0, class_validator_1.IsOptional)(),
191
+ __metadata("design:type", String)
192
+ ], GetPurchasedInfosForAdminPayload.prototype, "searchAfter", void 0);
193
+ __decorate([
194
+ (0, class_validator_1.IsString)(),
195
+ (0, class_validator_1.IsOptional)(),
196
+ __metadata("design:type", String)
197
+ ], GetPurchasedInfosForAdminPayload.prototype, "searchBefore", void 0);
198
+ __decorate([
199
+ (0, class_validator_1.IsArray)(),
200
+ (0, class_validator_1.IsOptional)(),
201
+ (0, class_validator_1.IsString)({ each: true }),
202
+ __metadata("design:type", Array)
203
+ ], GetPurchasedInfosForAdminPayload.prototype, "pInfoProcessList", void 0);
204
+ __decorate([
205
+ (0, class_validator_1.IsEnum)(SettleStatusEnum),
206
+ (0, class_validator_1.IsOptional)(),
207
+ __metadata("design:type", String)
208
+ ], GetPurchasedInfosForAdminPayload.prototype, "settleStatus", void 0);
209
+ __decorate([
210
+ (0, class_validator_1.IsEnum)(AbroadSettleStatusEnum),
211
+ (0, class_validator_1.IsOptional)(),
212
+ __metadata("design:type", String)
213
+ ], GetPurchasedInfosForAdminPayload.prototype, "abroadSettleStatus", void 0);
36
214
  class GetPurchasedInfosForAdminResult {
37
215
  }
38
216
  exports.GetPurchasedInfosForAdminResult = GetPurchasedInfosForAdminResult;
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult } 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
+ }
@@ -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.AmqpPurchasedInfoAdminService = 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 AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async getPurchasedInfosForAdmin(payload, param) {
25
+ return this.amqpManager.call('결제 리스트 조회 (관리자)', 'purchased-info-admin.get.list', payload, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
29
+ exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpPurchasedInfoAdminService);
@@ -7,3 +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 './amqp.purchased-info-admin.service';
@@ -23,3 +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("./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.69",
3
+ "version": "0.4.71",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@nestjs/common": "^10.3.10",
21
21
  "@yolo-croket-dev/core": "1.7.17",
22
- "@yolo-croket-dev/domain": "0.1.0",
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
25
  "@yolo-croket-dev/entity-v2": "^0.1.24",
@@ -2,7 +2,7 @@ import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
3
  import { GetAskUserAndCountByDatePayload, GetAskUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/ask/query';
4
4
  import { GetPurchasedInfoUserAndCountByDatePayload, GetPurchasedInfoUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/purchased-info/query';
5
- import { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult } from './dto';
5
+ import { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult, GetPurchasedInfosPayload, GetPurchasedInfosResult } from './dto';
6
6
  export declare class AmqpPaymentService {
7
7
  private readonly client;
8
8
  private readonly amqpManager;
@@ -15,4 +15,6 @@ export declare class AmqpPaymentService {
15
15
  deleteSettles(payload: DeleteSettlesPayload, param: AbstractParam): Promise<DeleteSettlesResult>;
16
16
  /** 유저의 가장 마지막 정상 상태의 거래건 조회 */
17
17
  getLastSteadyStateTransaction(payload: GetLastSteadyStateTransactionPayload, param: AbstractParam): Promise<GetLastSteadyStateTransactionResult | null>;
18
+ /** PurchasedInfo 필터에 맞게 목록 조회 */
19
+ getPurchasedInfos<PurchasedInfoEntityGenericType>(payload: GetPurchasedInfosPayload, param: AbstractParam): Promise<GetPurchasedInfosResult<PurchasedInfoEntityGenericType>>;
18
20
  }
@@ -37,6 +37,10 @@ let AmqpPaymentService = class AmqpPaymentService {
37
37
  async getLastSteadyStateTransaction(payload, param) {
38
38
  return this.amqpManager.call('유저의 가장 마지막 정상 상태의 거래건 조회', 'purchasedinfos.get.last-steady-state-transaction', payload, param, { isErrorThrowing: true });
39
39
  }
40
+ /** PurchasedInfo 필터에 맞게 목록 조회 */
41
+ async getPurchasedInfos(payload, param) {
42
+ return this.amqpManager.call('PurchasedInfo 필터에 맞게 목록 조회', 'purchasedinfos.get', payload, param, { isErrorThrowing: true });
43
+ }
40
44
  };
41
45
  exports.AmqpPaymentService = AmqpPaymentService;
42
46
  exports.AmqpPaymentService = AmqpPaymentService = __decorate([
@@ -0,0 +1,11 @@
1
+ import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info';
2
+ import { FilterQuery } from '../../../../user-service/dto';
3
+ export declare class GetPurchasedInfosPayload {
4
+ query?: FilterQuery[];
5
+ projection?: string[];
6
+ lastId?: string;
7
+ sort?: number;
8
+ order?: string;
9
+ limit: number;
10
+ }
11
+ export type GetPurchasedInfosResult<T> = Partial<PurchasedInfoEntity[]> | T[];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetPurchasedInfosPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const dto_1 = require("../../../../user-service/dto");
16
+ class GetPurchasedInfosPayload {
17
+ }
18
+ exports.GetPurchasedInfosPayload = GetPurchasedInfosPayload;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.ValidateNested)({ each: true }),
22
+ (0, class_transformer_1.Type)(() => dto_1.FilterQuery),
23
+ __metadata("design:type", Array)
24
+ ], GetPurchasedInfosPayload.prototype, "query", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)({ each: true }),
28
+ __metadata("design:type", Array)
29
+ ], GetPurchasedInfosPayload.prototype, "projection", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsMongoId)(),
33
+ __metadata("design:type", String)
34
+ ], GetPurchasedInfosPayload.prototype, "lastId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsIn)([
38
+ 1,
39
+ -1,
40
+ ]),
41
+ __metadata("design:type", Number)
42
+ ], GetPurchasedInfosPayload.prototype, "sort", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.IsOptional)(),
46
+ __metadata("design:type", String)
47
+ ], GetPurchasedInfosPayload.prototype, "order", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsNumber)(),
50
+ __metadata("design:type", Number)
51
+ ], GetPurchasedInfosPayload.prototype, "limit", void 0);
@@ -1 +1,2 @@
1
1
  export * from './get-purchased-info-for-partial-refund.dto';
2
+ export * from './get-purchased-infos.dto';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-purchased-info-for-partial-refund.dto"), exports);
18
+ __exportStar(require("./get-purchased-infos.dto"), exports);
@@ -0,0 +1,3 @@
1
+ import { PushRedisDBPayload } from './push-redis-db.dto';
2
+ export declare class PullRedisDBPayload extends PushRedisDBPayload {
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PullRedisDBPayload = void 0;
4
+ const push_redis_db_dto_1 = require("./push-redis-db.dto");
5
+ class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
6
+ }
7
+ exports.PullRedisDBPayload = PullRedisDBPayload;
@@ -0,0 +1,4 @@
1
+ export declare class PushRedisDBPayload {
2
+ redisDBKey: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,26 @@
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.PushRedisDBPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class PushRedisDBPayload {
15
+ }
16
+ exports.PushRedisDBPayload = PushRedisDBPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MinLength)(1),
20
+ __metadata("design:type", String)
21
+ ], PushRedisDBPayload.prototype, "redisDBKey", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.MinLength)(1),
25
+ __metadata("design:type", String)
26
+ ], PushRedisDBPayload.prototype, "value", void 0);
@@ -39,6 +39,7 @@ __decorate([
39
39
  __metadata("design:type", String)
40
40
  ], FilterQuery.prototype, "operator", void 0);
41
41
  __decorate([
42
+ (0, class_validator_1.IsOptional)(),
42
43
  (0, class_validator_1.IsString)()
43
44
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
45
  ,