@yolo-croket-dev/amqp-access 0.7.380 → 0.7.382-beta.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 (40) hide show
  1. package/excel-upload-server/dto/ad-performance-report/command/create-ad-performance-report-excel.dto.d.ts +9 -0
  2. package/excel-upload-server/dto/ad-performance-report/index.d.ts +1 -0
  3. package/excel-upload-server/dto/ad-performance-report/index.js +1 -0
  4. package/excel-upload-server/dto/ad-performance-report/query/get-ad-performance-report-job.dto.d.ts +28 -0
  5. package/excel-upload-server/dto/ad-performance-report/query/get-ad-performance-report-job.dto.js +25 -0
  6. package/excel-upload-server/dto/ad-performance-report/query/index.d.ts +1 -0
  7. package/excel-upload-server/dto/ad-performance-report/query/index.js +17 -0
  8. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/command/create-naver-search-ad-excel-job.dto.d.ts +14 -0
  9. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/command/create-naver-search-ad-excel-job.dto.js +28 -0
  10. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/command/index.d.ts +1 -0
  11. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/command/index.js +1 -0
  12. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/index.d.ts +1 -0
  13. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/index.js +1 -0
  14. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/get-naver-search-ad-excel-external-job.dto.d.ts +9 -0
  15. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/get-naver-search-ad-excel-external-job.dto.js +29 -0
  16. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/get-naver-search-ad-excel-job.dto.d.ts +26 -0
  17. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/get-naver-search-ad-excel-job.dto.js +43 -0
  18. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/index.d.ts +2 -0
  19. package/excel-upload-server/dto/naver-search-ad.modules/naver-search-ad-excel/query/index.js +18 -0
  20. package/excel-upload-server/services/amqp.ad-performance-report.service.d.ts +5 -1
  21. package/excel-upload-server/services/amqp.ad-performance-report.service.js +8 -0
  22. package/excel-upload-server/services/naver-search-ad.modules/amqp.naver-search-ad-excel.service.d.ts +7 -1
  23. package/excel-upload-server/services/naver-search-ad.modules/amqp.naver-search-ad-excel.service.js +12 -0
  24. package/order-server/amqp.order-server.module.js +3 -0
  25. package/order-server/dto/buyma-order/command/buyma-order.dto.d.ts +109 -0
  26. package/order-server/dto/buyma-order/command/buyma-order.dto.js +470 -0
  27. package/order-server/dto/buyma-order/index.d.ts +2 -0
  28. package/order-server/dto/buyma-order/index.js +18 -0
  29. package/order-server/dto/buyma-order/query/buyma-order.dto.d.ts +81 -0
  30. package/order-server/dto/buyma-order/query/buyma-order.dto.js +115 -0
  31. package/order-server/dto/index.d.ts +1 -0
  32. package/order-server/dto/index.js +1 -0
  33. package/order-server/services/amqp.buyma-order.service.d.ts +17 -0
  34. package/order-server/services/amqp.buyma-order.service.js +60 -0
  35. package/order-server/services/index.d.ts +1 -0
  36. package/order-server/services/index.js +1 -0
  37. package/package.json +2 -2
  38. package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
  39. package/user-service/services/amqp.signup-certification.service.d.ts +0 -14
  40. package/user-service/services/amqp.signup-certification.service.js +0 -38
@@ -0,0 +1,470 @@
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.ReceiveBuymaWebhookPayload = exports.RecordBuymaRefundPayload = exports.ChangeBuymaOrderStatusPayload = exports.ConnectBuymaProcurementPayload = exports.ConfirmBuymaPaymentPayload = exports.UpdateBuymaOrderPayload = exports.BuymaOrderCommandPayload = exports.BuymaManualFieldsPayload = exports.BuymaInternationalShipmentPayload = exports.BuymaProcurementDetailsPayload = exports.BuymaLocalShipmentPayload = exports.BuymaProductMetadataPayload = exports.BuymaRecipientPayload = exports.BuymaMoneyPayload = void 0;
13
+ /** @author jun @description Buyma 변경 계약. @process 허용 필드·수정 버전·담당자·근거를 명시한다. */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
17
+ class BuymaMoneyPayload {
18
+ }
19
+ exports.BuymaMoneyPayload = BuymaMoneyPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsNumber)({
22
+ allowNaN: false,
23
+ allowInfinity: false,
24
+ }),
25
+ (0, class_validator_1.Min)(0),
26
+ (0, class_validator_1.Max)(Number.MAX_SAFE_INTEGER),
27
+ __metadata("design:type", Number)
28
+ ], BuymaMoneyPayload.prototype, "amount", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.Matches)(/^[A-Z]{3}$/),
32
+ __metadata("design:type", String)
33
+ ], BuymaMoneyPayload.prototype, "currency", void 0);
34
+ class BuymaRecipientPayload {
35
+ }
36
+ exports.BuymaRecipientPayload = BuymaRecipientPayload;
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.MaxLength)(200),
41
+ __metadata("design:type", Object)
42
+ ], BuymaRecipientPayload.prototype, "name", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.MaxLength)(100),
47
+ __metadata("design:type", Object)
48
+ ], BuymaRecipientPayload.prototype, "phone", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)(),
52
+ (0, class_validator_1.MaxLength)(30),
53
+ __metadata("design:type", Object)
54
+ ], BuymaRecipientPayload.prototype, "countryCode", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.MaxLength)(50),
59
+ __metadata("design:type", Object)
60
+ ], BuymaRecipientPayload.prototype, "postalCode", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsString)(),
64
+ (0, class_validator_1.MaxLength)(500),
65
+ __metadata("design:type", Object)
66
+ ], BuymaRecipientPayload.prototype, "address1", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsString)(),
70
+ (0, class_validator_1.MaxLength)(500),
71
+ __metadata("design:type", Object)
72
+ ], BuymaRecipientPayload.prototype, "address2", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsString)(),
76
+ (0, class_validator_1.MaxLength)(500),
77
+ __metadata("design:type", Object)
78
+ ], BuymaRecipientPayload.prototype, "address3", void 0);
79
+ __decorate([
80
+ (0, class_validator_1.IsOptional)(),
81
+ (0, class_validator_1.IsString)(),
82
+ (0, class_validator_1.MaxLength)(500),
83
+ __metadata("design:type", Object)
84
+ ], BuymaRecipientPayload.prototype, "address4", void 0);
85
+ class BuymaProductMetadataPayload {
86
+ }
87
+ exports.BuymaProductMetadataPayload = BuymaProductMetadataPayload;
88
+ __decorate([
89
+ (0, class_validator_1.IsOptional)(),
90
+ (0, class_validator_1.IsString)(),
91
+ (0, class_validator_1.MaxLength)(200),
92
+ __metadata("design:type", Object)
93
+ ], BuymaProductMetadataPayload.prototype, "storeName", void 0);
94
+ __decorate([
95
+ (0, class_validator_1.IsOptional)(),
96
+ (0, class_validator_1.IsString)(),
97
+ (0, class_validator_1.MaxLength)(100),
98
+ __metadata("design:type", Object)
99
+ ], BuymaProductMetadataPayload.prototype, "sourceCountry", void 0);
100
+ __decorate([
101
+ (0, class_validator_1.IsOptional)(),
102
+ (0, class_validator_1.IsString)(),
103
+ (0, class_validator_1.MaxLength)(1000),
104
+ __metadata("design:type", Object)
105
+ ], BuymaProductMetadataPayload.prototype, "croketName", void 0);
106
+ __decorate([
107
+ (0, class_validator_1.IsOptional)(),
108
+ (0, class_validator_1.IsString)(),
109
+ (0, class_validator_1.MaxLength)(1000),
110
+ __metadata("design:type", Object)
111
+ ], BuymaProductMetadataPayload.prototype, "buymaName", void 0);
112
+ __decorate([
113
+ (0, class_validator_1.IsOptional)(),
114
+ (0, class_validator_1.IsString)(),
115
+ (0, class_validator_1.MaxLength)(200),
116
+ __metadata("design:type", Object)
117
+ ], BuymaProductMetadataPayload.prototype, "brandName", void 0);
118
+ __decorate([
119
+ (0, class_validator_1.IsOptional)(),
120
+ (0, class_validator_1.IsString)(),
121
+ (0, class_validator_1.MaxLength)(500),
122
+ __metadata("design:type", Object)
123
+ ], BuymaProductMetadataPayload.prototype, "optionName", void 0);
124
+ __decorate([
125
+ (0, class_validator_1.IsOptional)(),
126
+ (0, class_validator_1.IsNumber)(),
127
+ (0, class_validator_1.Min)(0),
128
+ (0, class_validator_1.Max)(1000000),
129
+ __metadata("design:type", Object)
130
+ ], BuymaProductMetadataPayload.prototype, "weightGrams", void 0);
131
+ __decorate([
132
+ (0, class_validator_1.IsOptional)(),
133
+ (0, class_validator_1.IsString)(),
134
+ (0, class_validator_1.MaxLength)(1000),
135
+ __metadata("design:type", Object)
136
+ ], BuymaProductMetadataPayload.prototype, "croketItemUrl", void 0);
137
+ __decorate([
138
+ (0, class_validator_1.IsOptional)(),
139
+ (0, class_validator_1.IsString)(),
140
+ (0, class_validator_1.MaxLength)(1000),
141
+ __metadata("design:type", Object)
142
+ ], BuymaProductMetadataPayload.prototype, "buymaItemUrl", void 0);
143
+ class BuymaLocalShipmentPayload {
144
+ }
145
+ exports.BuymaLocalShipmentPayload = BuymaLocalShipmentPayload;
146
+ __decorate([
147
+ (0, class_validator_1.IsOptional)(),
148
+ (0, class_validator_1.IsString)(),
149
+ (0, class_validator_1.MaxLength)(40),
150
+ __metadata("design:type", Object)
151
+ ], BuymaLocalShipmentPayload.prototype, "invoiceRegisteredAt", void 0);
152
+ __decorate([
153
+ (0, class_validator_1.IsOptional)(),
154
+ (0, class_validator_1.IsString)(),
155
+ (0, class_validator_1.MaxLength)(100),
156
+ __metadata("design:type", Object)
157
+ ], BuymaLocalShipmentPayload.prototype, "carrierName", void 0);
158
+ __decorate([
159
+ (0, class_validator_1.IsOptional)(),
160
+ (0, class_validator_1.IsString)(),
161
+ (0, class_validator_1.MaxLength)(200),
162
+ __metadata("design:type", Object)
163
+ ], BuymaLocalShipmentPayload.prototype, "trackingNumber", void 0);
164
+ class BuymaProcurementDetailsPayload {
165
+ }
166
+ exports.BuymaProcurementDetailsPayload = BuymaProcurementDetailsPayload;
167
+ __decorate([
168
+ (0, class_validator_1.IsOptional)(),
169
+ (0, class_validator_1.ValidateNested)(),
170
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
171
+ __metadata("design:type", Object)
172
+ ], BuymaProcurementDetailsPayload.prototype, "croketProductPrice", void 0);
173
+ __decorate([
174
+ (0, class_validator_1.IsOptional)(),
175
+ (0, class_validator_1.ValidateNested)(),
176
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
177
+ __metadata("design:type", Object)
178
+ ], BuymaProcurementDetailsPayload.prototype, "croketShippingCost", void 0);
179
+ __decorate([
180
+ (0, class_validator_1.IsOptional)(),
181
+ (0, class_validator_1.ValidateNested)(),
182
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
183
+ __metadata("design:type", Object)
184
+ ], BuymaProcurementDetailsPayload.prototype, "purchaseCost", void 0);
185
+ __decorate([
186
+ (0, class_validator_1.IsOptional)(),
187
+ (0, class_validator_1.ValidateNested)(),
188
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
189
+ __metadata("design:type", Object)
190
+ ], BuymaProcurementDetailsPayload.prototype, "sellerSettlementCost", void 0);
191
+ __decorate([
192
+ (0, class_validator_1.IsOptional)(),
193
+ (0, class_validator_1.ValidateNested)(),
194
+ (0, class_transformer_1.Type)(() => BuymaLocalShipmentPayload),
195
+ __metadata("design:type", Object)
196
+ ], BuymaProcurementDetailsPayload.prototype, "localShipment", void 0);
197
+ class BuymaInternationalShipmentPayload {
198
+ }
199
+ exports.BuymaInternationalShipmentPayload = BuymaInternationalShipmentPayload;
200
+ __decorate([
201
+ (0, class_validator_1.IsString)(),
202
+ (0, class_validator_1.MaxLength)(100),
203
+ __metadata("design:type", String)
204
+ ], BuymaInternationalShipmentPayload.prototype, "carrierName", void 0);
205
+ __decorate([
206
+ (0, class_validator_1.IsString)(),
207
+ (0, class_validator_1.MaxLength)(200),
208
+ __metadata("design:type", String)
209
+ ], BuymaInternationalShipmentPayload.prototype, "trackingNumber", void 0);
210
+ __decorate([
211
+ (0, class_validator_1.IsOptional)(),
212
+ (0, class_validator_1.IsString)(),
213
+ (0, class_validator_1.MaxLength)(1000),
214
+ __metadata("design:type", Object)
215
+ ], BuymaInternationalShipmentPayload.prototype, "trackingUrl", void 0);
216
+ __decorate([
217
+ (0, class_validator_1.IsOptional)(),
218
+ (0, class_validator_1.ValidateNested)(),
219
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
220
+ __metadata("design:type", Object)
221
+ ], BuymaInternationalShipmentPayload.prototype, "shippingCost", void 0);
222
+ class BuymaManualFieldsPayload {
223
+ }
224
+ exports.BuymaManualFieldsPayload = BuymaManualFieldsPayload;
225
+ __decorate([
226
+ (0, class_validator_1.IsOptional)(),
227
+ (0, class_validator_1.IsString)(),
228
+ (0, class_validator_1.MaxLength)(200),
229
+ __metadata("design:type", Object)
230
+ ], BuymaManualFieldsPayload.prototype, "buyerName", void 0);
231
+ __decorate([
232
+ (0, class_validator_1.IsOptional)(),
233
+ (0, class_validator_1.ValidateNested)(),
234
+ (0, class_transformer_1.Type)(() => BuymaRecipientPayload),
235
+ __metadata("design:type", BuymaRecipientPayload)
236
+ ], BuymaManualFieldsPayload.prototype, "recipient", void 0);
237
+ __decorate([
238
+ (0, class_validator_1.IsOptional)(),
239
+ (0, class_validator_1.ValidateNested)(),
240
+ (0, class_transformer_1.Type)(() => BuymaProductMetadataPayload),
241
+ __metadata("design:type", BuymaProductMetadataPayload)
242
+ ], BuymaManualFieldsPayload.prototype, "productMetadata", void 0);
243
+ __decorate([
244
+ (0, class_validator_1.IsOptional)(),
245
+ (0, class_validator_1.ValidateNested)(),
246
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
247
+ __metadata("design:type", Object)
248
+ ], BuymaManualFieldsPayload.prototype, "productRevenue", void 0);
249
+ __decorate([
250
+ (0, class_validator_1.IsOptional)(),
251
+ (0, class_validator_1.ValidateNested)(),
252
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
253
+ __metadata("design:type", Object)
254
+ ], BuymaManualFieldsPayload.prototype, "shippingRevenue", void 0);
255
+ __decorate([
256
+ (0, class_validator_1.IsOptional)(),
257
+ (0, class_validator_1.ValidateNested)(),
258
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
259
+ __metadata("design:type", Object)
260
+ ], BuymaManualFieldsPayload.prototype, "reportedTotalRevenue", void 0);
261
+ __decorate([
262
+ (0, class_validator_1.IsOptional)(),
263
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_PROCUREMENT_WORK_STATUSES),
264
+ __metadata("design:type", String)
265
+ ], BuymaManualFieldsPayload.prototype, "procurementWorkStatus", void 0);
266
+ __decorate([
267
+ (0, class_validator_1.IsOptional)(),
268
+ (0, class_validator_1.ValidateNested)(),
269
+ (0, class_transformer_1.Type)(() => BuymaProcurementDetailsPayload),
270
+ __metadata("design:type", BuymaProcurementDetailsPayload)
271
+ ], BuymaManualFieldsPayload.prototype, "procurementDetails", void 0);
272
+ __decorate([
273
+ (0, class_validator_1.IsOptional)(),
274
+ (0, class_validator_1.ValidateNested)(),
275
+ (0, class_transformer_1.Type)(() => BuymaInternationalShipmentPayload),
276
+ __metadata("design:type", Object)
277
+ ], BuymaManualFieldsPayload.prototype, "internationalShipment", void 0);
278
+ __decorate([
279
+ (0, class_validator_1.IsOptional)(),
280
+ (0, class_validator_1.IsBoolean)(),
281
+ __metadata("design:type", Object)
282
+ ], BuymaManualFieldsPayload.prototype, "stockSecuredNotified", void 0);
283
+ __decorate([
284
+ (0, class_validator_1.IsOptional)(),
285
+ (0, class_validator_1.IsBoolean)(),
286
+ __metadata("design:type", Object)
287
+ ], BuymaManualFieldsPayload.prototype, "forwarderDispatchNotified", void 0);
288
+ __decorate([
289
+ (0, class_validator_1.IsOptional)(),
290
+ (0, class_validator_1.IsString)(),
291
+ (0, class_validator_1.MaxLength)(2000),
292
+ __metadata("design:type", Object)
293
+ ], BuymaManualFieldsPayload.prototype, "holdReason", void 0);
294
+ __decorate([
295
+ (0, class_validator_1.IsOptional)(),
296
+ (0, class_validator_1.IsString)(),
297
+ (0, class_validator_1.MaxLength)(10000),
298
+ __metadata("design:type", Object)
299
+ ], BuymaManualFieldsPayload.prototype, "memo", void 0);
300
+ __decorate([
301
+ (0, class_validator_1.IsOptional)(),
302
+ (0, class_validator_1.IsArray)(),
303
+ (0, class_validator_1.ArrayMaxSize)(20),
304
+ (0, class_validator_1.ArrayUnique)(),
305
+ (0, class_validator_1.IsString)({ each: true }),
306
+ (0, class_validator_1.MaxLength)(1000, { each: true }),
307
+ __metadata("design:type", Array)
308
+ ], BuymaManualFieldsPayload.prototype, "slackThreadUrls", void 0);
309
+ class BuymaOrderCommandPayload {
310
+ }
311
+ exports.BuymaOrderCommandPayload = BuymaOrderCommandPayload;
312
+ __decorate([
313
+ (0, class_validator_1.IsMongoId)(),
314
+ __metadata("design:type", String)
315
+ ], BuymaOrderCommandPayload.prototype, "orderId", void 0);
316
+ __decorate([
317
+ (0, class_validator_1.IsInt)(),
318
+ (0, class_validator_1.Min)(0),
319
+ (0, class_validator_1.Max)(Number.MAX_SAFE_INTEGER),
320
+ __metadata("design:type", Number)
321
+ ], BuymaOrderCommandPayload.prototype, "expectedRevision", void 0);
322
+ __decorate([
323
+ (0, class_validator_1.IsMongoId)(),
324
+ __metadata("design:type", String)
325
+ ], BuymaOrderCommandPayload.prototype, "actorId", void 0);
326
+ __decorate([
327
+ (0, class_validator_1.IsString)(),
328
+ (0, class_validator_1.MaxLength)(2000),
329
+ __metadata("design:type", String)
330
+ ], BuymaOrderCommandPayload.prototype, "reason", void 0);
331
+ class UpdateBuymaOrderPayload extends BuymaOrderCommandPayload {
332
+ }
333
+ exports.UpdateBuymaOrderPayload = UpdateBuymaOrderPayload;
334
+ __decorate([
335
+ (0, class_validator_1.IsDefined)(),
336
+ (0, class_validator_1.ValidateNested)(),
337
+ (0, class_transformer_1.Type)(() => BuymaManualFieldsPayload),
338
+ __metadata("design:type", BuymaManualFieldsPayload)
339
+ ], UpdateBuymaOrderPayload.prototype, "fields", void 0);
340
+ class ConfirmBuymaPaymentPayload extends BuymaOrderCommandPayload {
341
+ }
342
+ exports.ConfirmBuymaPaymentPayload = ConfirmBuymaPaymentPayload;
343
+ __decorate([
344
+ (0, class_validator_1.IsOptional)(),
345
+ (0, class_validator_1.IsString)(),
346
+ (0, class_validator_1.MaxLength)(40),
347
+ __metadata("design:type", Object)
348
+ ], ConfirmBuymaPaymentPayload.prototype, "paidAt", void 0);
349
+ class ConnectBuymaProcurementPayload extends BuymaOrderCommandPayload {
350
+ }
351
+ exports.ConnectBuymaProcurementPayload = ConnectBuymaProcurementPayload;
352
+ __decorate([
353
+ (0, class_validator_1.IsOptional)(),
354
+ (0, class_validator_1.IsIn)([
355
+ 'LINK',
356
+ 'REPLACE',
357
+ 'RELEASE',
358
+ ]),
359
+ __metadata("design:type", String)
360
+ ], ConnectBuymaProcurementPayload.prototype, "operation", void 0);
361
+ __decorate([
362
+ (0, class_validator_1.IsOptional)(),
363
+ (0, class_validator_1.IsString)(),
364
+ (0, class_validator_1.MaxLength)(500),
365
+ __metadata("design:type", String)
366
+ ], ConnectBuymaProcurementPayload.prototype, "croketOptionName", void 0);
367
+ __decorate([
368
+ (0, class_validator_1.IsOptional)(),
369
+ (0, class_validator_1.IsBoolean)(),
370
+ __metadata("design:type", Boolean)
371
+ ], ConnectBuymaProcurementPayload.prototype, "stockReusableConfirmed", void 0);
372
+ __decorate([
373
+ (0, class_validator_1.IsOptional)(),
374
+ (0, class_validator_1.IsString)(),
375
+ (0, class_validator_1.MaxLength)(500),
376
+ __metadata("design:type", String)
377
+ ], ConnectBuymaProcurementPayload.prototype, "previousCroketOptionName", void 0);
378
+ __decorate([
379
+ (0, class_validator_1.IsIn)([
380
+ 'CROKET',
381
+ 'MANUAL',
382
+ ]),
383
+ __metadata("design:type", String)
384
+ ], ConnectBuymaProcurementPayload.prototype, "source", void 0);
385
+ __decorate([
386
+ (0, class_validator_1.IsString)(),
387
+ (0, class_validator_1.MaxLength)(1000),
388
+ __metadata("design:type", String)
389
+ ], ConnectBuymaProcurementPayload.prototype, "orderUrl", void 0);
390
+ __decorate([
391
+ (0, class_validator_1.IsOptional)(),
392
+ (0, class_validator_1.IsMongoId)(),
393
+ __metadata("design:type", String)
394
+ ], ConnectBuymaProcurementPayload.prototype, "purchasedInfoId", void 0);
395
+ __decorate([
396
+ (0, class_validator_1.IsOptional)(),
397
+ (0, class_validator_1.IsBoolean)(),
398
+ __metadata("design:type", Boolean)
399
+ ], ConnectBuymaProcurementPayload.prototype, "alternative", void 0);
400
+ __decorate([
401
+ (0, class_validator_1.IsBoolean)(),
402
+ __metadata("design:type", Boolean)
403
+ ], ConnectBuymaProcurementPayload.prototype, "productAndOptionConfirmed", void 0);
404
+ __decorate([
405
+ (0, class_validator_1.IsOptional)(),
406
+ (0, class_validator_1.ValidateNested)(),
407
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
408
+ __metadata("design:type", Object)
409
+ ], ConnectBuymaProcurementPayload.prototype, "purchaseCost", void 0);
410
+ class ChangeBuymaOrderStatusPayload extends BuymaOrderCommandPayload {
411
+ }
412
+ exports.ChangeBuymaOrderStatusPayload = ChangeBuymaOrderStatusPayload;
413
+ __decorate([
414
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_ORDER_STATUSES.filter((value) => value !== 'REFUNDED')),
415
+ __metadata("design:type", Object)
416
+ ], ChangeBuymaOrderStatusPayload.prototype, "orderStatus", void 0);
417
+ __decorate([
418
+ (0, class_validator_1.IsOptional)(),
419
+ (0, class_validator_1.IsBoolean)(),
420
+ __metadata("design:type", Boolean)
421
+ ], ChangeBuymaOrderStatusPayload.prototype, "fullQuantityDelivered", void 0);
422
+ __decorate([
423
+ (0, class_validator_1.IsOptional)(),
424
+ (0, class_validator_1.IsString)(),
425
+ (0, class_validator_1.MaxLength)(40),
426
+ __metadata("design:type", Object)
427
+ ], ChangeBuymaOrderStatusPayload.prototype, "deliveredAt", void 0);
428
+ class RecordBuymaRefundPayload extends BuymaOrderCommandPayload {
429
+ }
430
+ exports.RecordBuymaRefundPayload = RecordBuymaRefundPayload;
431
+ __decorate([
432
+ (0, class_validator_1.IsDefined)(),
433
+ (0, class_validator_1.ValidateNested)(),
434
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
435
+ __metadata("design:type", BuymaMoneyPayload)
436
+ ], RecordBuymaRefundPayload.prototype, "amount", void 0);
437
+ __decorate([
438
+ (0, class_validator_1.IsString)(),
439
+ (0, class_validator_1.MaxLength)(40),
440
+ __metadata("design:type", String)
441
+ ], RecordBuymaRefundPayload.prototype, "refundedAt", void 0);
442
+ __decorate([
443
+ (0, class_validator_1.IsBoolean)(),
444
+ __metadata("design:type", Boolean)
445
+ ], RecordBuymaRefundPayload.prototype, "fullRefundConfirmed", void 0);
446
+ class ReceiveBuymaWebhookPayload {
447
+ }
448
+ exports.ReceiveBuymaWebhookPayload = ReceiveBuymaWebhookPayload;
449
+ __decorate([
450
+ (0, class_validator_1.IsString)(),
451
+ (0, class_validator_1.MaxLength)(100),
452
+ __metadata("design:type", String)
453
+ ], ReceiveBuymaWebhookPayload.prototype, "buymaAccountId", void 0);
454
+ __decorate([
455
+ (0, class_validator_1.IsIn)([
456
+ 'order/create',
457
+ 'order/update',
458
+ ]),
459
+ __metadata("design:type", String)
460
+ ], ReceiveBuymaWebhookPayload.prototype, "eventType", void 0);
461
+ __decorate([
462
+ (0, class_validator_1.IsString)(),
463
+ (0, class_validator_1.MaxLength)(2000000),
464
+ __metadata("design:type", String)
465
+ ], ReceiveBuymaWebhookPayload.prototype, "rawJson", void 0);
466
+ __decorate([
467
+ (0, class_validator_1.IsString)(),
468
+ (0, class_validator_1.Matches)(/^[a-f0-9]{64}$/),
469
+ __metadata("design:type", String)
470
+ ], ReceiveBuymaWebhookPayload.prototype, "rawSha256", void 0);
@@ -0,0 +1,2 @@
1
+ export * from './query/buyma-order.dto';
2
+ export * from './command/buyma-order.dto';
@@ -0,0 +1,18 @@
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("./query/buyma-order.dto"), exports);
18
+ __exportStar(require("./command/buyma-order.dto"), exports);
@@ -0,0 +1,81 @@
1
+ import { BuymaMoney, BuymaOrderEntity, BuymaOrderEventEntity, BuymaOrderStatus, BuymaPaymentStatus } from '@yolo-croket-dev/entity-v2';
2
+ export declare class GetBuymaOrdersPayload {
3
+ buymaAccountId?: string;
4
+ search?: string;
5
+ paymentStatus?: BuymaPaymentStatus;
6
+ orderStatus?: BuymaOrderStatus;
7
+ procurement?: 'LINKED' | 'UNLINKED';
8
+ review?: 'true' | 'false';
9
+ trackingNumber?: string;
10
+ page: number;
11
+ limit: number;
12
+ }
13
+ export declare class GetBuymaOrderPayload {
14
+ orderId: string;
15
+ }
16
+ export declare class GetBuymaOrderHistoryPayload extends GetBuymaOrderPayload {
17
+ cursor?: string;
18
+ limit: number;
19
+ }
20
+ export declare class GetBuymaProcurementCandidatesPayload extends GetBuymaOrderPayload {
21
+ orderUrl: string;
22
+ }
23
+ export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'createdAt' | 'quantity' | 'productRevenue' | 'orderStatus' | 'holdReason'> {
24
+ productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'buymaName' | 'croketName' | 'optionName'>;
25
+ payment: Pick<BuymaOrderEntity['payment'], 'status'>;
26
+ procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'source' | 'croketPurchasedInfoPublicId' | 'allocationStatus'> | null;
27
+ internationalShipment: Pick<NonNullable<BuymaOrderEntity['internationalShipment']>, 'trackingNumber'> | null;
28
+ }
29
+ export interface BuymaSharedTrackingOrder extends Pick<BuymaOrderEntity, '_id' | 'buymaOrderNumber' | 'quantity'> {
30
+ internationalShipment: Pick<NonNullable<BuymaOrderEntity['internationalShipment']>, 'shippingCost'> | null;
31
+ }
32
+ export interface GetBuymaOrdersResult {
33
+ items: BuymaOrderListItem[];
34
+ total: number;
35
+ page: number;
36
+ limit: number;
37
+ }
38
+ export interface BuymaSharedProcurementOrder extends Pick<BuymaOrderEntity, '_id' | 'buymaOrderNumber' | 'quantity' | 'orderStatus'> {
39
+ procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'allocationStatus' | 'croketOptionName'> | null;
40
+ }
41
+ export interface GetBuymaOrderResult {
42
+ /** 조회 시 연결된 Croket 구매 건에서 읽은 process. 주문에 저장하지 않는다. */
43
+ croketPurchaseProcess?: string | null;
44
+ sharedProcurementOrders?: BuymaSharedProcurementOrder[];
45
+ sharedProcurementOverflow?: boolean;
46
+ item: BuymaOrderEntity;
47
+ sharedTrackingOrders: BuymaSharedTrackingOrder[];
48
+ }
49
+ export interface GetBuymaOrderHistoryResult {
50
+ items: BuymaOrderEventEntity[];
51
+ nextCursor: string | null;
52
+ }
53
+ export interface BuymaProcurementOption {
54
+ name: string;
55
+ quantity: number;
56
+ allocatedQuantity: number;
57
+ availableQuantity: number;
58
+ eligible: boolean;
59
+ }
60
+ export interface BuymaProcurementCandidate {
61
+ options?: BuymaProcurementOption[];
62
+ allocatedQuantity?: number;
63
+ availableQuantity?: number;
64
+ purchaseReceiptId: string;
65
+ purchasedInfoId: string;
66
+ publicId: string | null;
67
+ itemId: string;
68
+ itemName: string | null;
69
+ optionName: string | null;
70
+ quantity: number;
71
+ paymentStatus: string | null;
72
+ sourceStatus: string | null;
73
+ productPrice: BuymaMoney | null;
74
+ shippingCost: BuymaMoney | null;
75
+ eligible: boolean;
76
+ blockingReasons: string[];
77
+ reviewReasons: string[];
78
+ }
79
+ export interface GetBuymaProcurementCandidatesResult {
80
+ items: BuymaProcurementCandidate[];
81
+ }
@@ -0,0 +1,115 @@
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.GetBuymaProcurementCandidatesPayload = exports.GetBuymaOrderHistoryPayload = exports.GetBuymaOrderPayload = exports.GetBuymaOrdersPayload = void 0;
13
+ /** @author jun @description Buyma 관리자 조회 계약. @process 페이지 상한과 정확한 구매 건 후보를 공개한다. */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
17
+ class GetBuymaOrdersPayload {
18
+ constructor() {
19
+ this.page = 1;
20
+ this.limit = 30;
21
+ }
22
+ }
23
+ exports.GetBuymaOrdersPayload = GetBuymaOrdersPayload;
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.MaxLength)(100),
28
+ __metadata("design:type", String)
29
+ ], GetBuymaOrdersPayload.prototype, "buymaAccountId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.MaxLength)(120),
34
+ __metadata("design:type", String)
35
+ ], GetBuymaOrdersPayload.prototype, "search", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_PAYMENT_STATUSES),
39
+ __metadata("design:type", String)
40
+ ], GetBuymaOrdersPayload.prototype, "paymentStatus", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_ORDER_STATUSES),
44
+ __metadata("design:type", String)
45
+ ], GetBuymaOrdersPayload.prototype, "orderStatus", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsIn)([
49
+ 'LINKED',
50
+ 'UNLINKED',
51
+ ]),
52
+ __metadata("design:type", String)
53
+ ], GetBuymaOrdersPayload.prototype, "procurement", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsIn)([
57
+ 'true',
58
+ 'false',
59
+ ]),
60
+ __metadata("design:type", String)
61
+ ], GetBuymaOrdersPayload.prototype, "review", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsString)(),
65
+ (0, class_validator_1.MaxLength)(100),
66
+ __metadata("design:type", String)
67
+ ], GetBuymaOrdersPayload.prototype, "trackingNumber", void 0);
68
+ __decorate([
69
+ (0, class_transformer_1.Type)(() => Number),
70
+ (0, class_validator_1.IsInt)(),
71
+ (0, class_validator_1.Min)(1),
72
+ (0, class_validator_1.Max)(10000),
73
+ __metadata("design:type", Number)
74
+ ], GetBuymaOrdersPayload.prototype, "page", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Type)(() => Number),
77
+ (0, class_validator_1.IsInt)(),
78
+ (0, class_validator_1.Min)(1),
79
+ (0, class_validator_1.Max)(100),
80
+ __metadata("design:type", Number)
81
+ ], GetBuymaOrdersPayload.prototype, "limit", void 0);
82
+ class GetBuymaOrderPayload {
83
+ }
84
+ exports.GetBuymaOrderPayload = GetBuymaOrderPayload;
85
+ __decorate([
86
+ (0, class_validator_1.IsMongoId)(),
87
+ __metadata("design:type", String)
88
+ ], GetBuymaOrderPayload.prototype, "orderId", void 0);
89
+ class GetBuymaOrderHistoryPayload extends GetBuymaOrderPayload {
90
+ constructor() {
91
+ super(...arguments);
92
+ this.limit = 30;
93
+ }
94
+ }
95
+ exports.GetBuymaOrderHistoryPayload = GetBuymaOrderHistoryPayload;
96
+ __decorate([
97
+ (0, class_validator_1.IsOptional)(),
98
+ (0, class_validator_1.IsMongoId)(),
99
+ __metadata("design:type", String)
100
+ ], GetBuymaOrderHistoryPayload.prototype, "cursor", void 0);
101
+ __decorate([
102
+ (0, class_transformer_1.Type)(() => Number),
103
+ (0, class_validator_1.IsInt)(),
104
+ (0, class_validator_1.Min)(1),
105
+ (0, class_validator_1.Max)(100),
106
+ __metadata("design:type", Number)
107
+ ], GetBuymaOrderHistoryPayload.prototype, "limit", void 0);
108
+ class GetBuymaProcurementCandidatesPayload extends GetBuymaOrderPayload {
109
+ }
110
+ exports.GetBuymaProcurementCandidatesPayload = GetBuymaProcurementCandidatesPayload;
111
+ __decorate([
112
+ (0, class_validator_1.IsString)(),
113
+ (0, class_validator_1.MaxLength)(1000),
114
+ __metadata("design:type", String)
115
+ ], GetBuymaProcurementCandidatesPayload.prototype, "orderUrl", void 0);