@yolo-croket-dev/amqp-access 0.7.380 → 0.7.382

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 (39) 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 +110 -0
  26. package/order-server/dto/buyma-order/command/buyma-order.dto.js +476 -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 +79 -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/user-service/services/amqp.signup-certification.service.d.ts +0 -14
  39. package/user-service/services/amqp.signup-certification.service.js +0 -38
@@ -0,0 +1,476 @@
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.IsString)(),
194
+ (0, class_validator_1.MaxLength)(100),
195
+ __metadata("design:type", Object)
196
+ ], BuymaProcurementDetailsPayload.prototype, "sourceStatus", void 0);
197
+ __decorate([
198
+ (0, class_validator_1.IsOptional)(),
199
+ (0, class_validator_1.ValidateNested)(),
200
+ (0, class_transformer_1.Type)(() => BuymaLocalShipmentPayload),
201
+ __metadata("design:type", Object)
202
+ ], BuymaProcurementDetailsPayload.prototype, "localShipment", void 0);
203
+ class BuymaInternationalShipmentPayload {
204
+ }
205
+ exports.BuymaInternationalShipmentPayload = BuymaInternationalShipmentPayload;
206
+ __decorate([
207
+ (0, class_validator_1.IsString)(),
208
+ (0, class_validator_1.MaxLength)(100),
209
+ __metadata("design:type", String)
210
+ ], BuymaInternationalShipmentPayload.prototype, "carrierName", void 0);
211
+ __decorate([
212
+ (0, class_validator_1.IsString)(),
213
+ (0, class_validator_1.MaxLength)(200),
214
+ __metadata("design:type", String)
215
+ ], BuymaInternationalShipmentPayload.prototype, "trackingNumber", void 0);
216
+ __decorate([
217
+ (0, class_validator_1.IsOptional)(),
218
+ (0, class_validator_1.IsString)(),
219
+ (0, class_validator_1.MaxLength)(1000),
220
+ __metadata("design:type", Object)
221
+ ], BuymaInternationalShipmentPayload.prototype, "trackingUrl", void 0);
222
+ __decorate([
223
+ (0, class_validator_1.IsOptional)(),
224
+ (0, class_validator_1.ValidateNested)(),
225
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
226
+ __metadata("design:type", Object)
227
+ ], BuymaInternationalShipmentPayload.prototype, "shippingCost", void 0);
228
+ class BuymaManualFieldsPayload {
229
+ }
230
+ exports.BuymaManualFieldsPayload = BuymaManualFieldsPayload;
231
+ __decorate([
232
+ (0, class_validator_1.IsOptional)(),
233
+ (0, class_validator_1.IsString)(),
234
+ (0, class_validator_1.MaxLength)(200),
235
+ __metadata("design:type", Object)
236
+ ], BuymaManualFieldsPayload.prototype, "buyerName", void 0);
237
+ __decorate([
238
+ (0, class_validator_1.IsOptional)(),
239
+ (0, class_validator_1.ValidateNested)(),
240
+ (0, class_transformer_1.Type)(() => BuymaRecipientPayload),
241
+ __metadata("design:type", BuymaRecipientPayload)
242
+ ], BuymaManualFieldsPayload.prototype, "recipient", void 0);
243
+ __decorate([
244
+ (0, class_validator_1.IsOptional)(),
245
+ (0, class_validator_1.ValidateNested)(),
246
+ (0, class_transformer_1.Type)(() => BuymaProductMetadataPayload),
247
+ __metadata("design:type", BuymaProductMetadataPayload)
248
+ ], BuymaManualFieldsPayload.prototype, "productMetadata", 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, "productRevenue", 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, "shippingRevenue", void 0);
261
+ __decorate([
262
+ (0, class_validator_1.IsOptional)(),
263
+ (0, class_validator_1.ValidateNested)(),
264
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
265
+ __metadata("design:type", Object)
266
+ ], BuymaManualFieldsPayload.prototype, "reportedTotalRevenue", void 0);
267
+ __decorate([
268
+ (0, class_validator_1.IsOptional)(),
269
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_PROCUREMENT_WORK_STATUSES),
270
+ __metadata("design:type", String)
271
+ ], BuymaManualFieldsPayload.prototype, "procurementWorkStatus", void 0);
272
+ __decorate([
273
+ (0, class_validator_1.IsOptional)(),
274
+ (0, class_validator_1.ValidateNested)(),
275
+ (0, class_transformer_1.Type)(() => BuymaProcurementDetailsPayload),
276
+ __metadata("design:type", BuymaProcurementDetailsPayload)
277
+ ], BuymaManualFieldsPayload.prototype, "procurementDetails", void 0);
278
+ __decorate([
279
+ (0, class_validator_1.IsOptional)(),
280
+ (0, class_validator_1.ValidateNested)(),
281
+ (0, class_transformer_1.Type)(() => BuymaInternationalShipmentPayload),
282
+ __metadata("design:type", Object)
283
+ ], BuymaManualFieldsPayload.prototype, "internationalShipment", void 0);
284
+ __decorate([
285
+ (0, class_validator_1.IsOptional)(),
286
+ (0, class_validator_1.IsBoolean)(),
287
+ __metadata("design:type", Object)
288
+ ], BuymaManualFieldsPayload.prototype, "stockSecuredNotified", void 0);
289
+ __decorate([
290
+ (0, class_validator_1.IsOptional)(),
291
+ (0, class_validator_1.IsBoolean)(),
292
+ __metadata("design:type", Object)
293
+ ], BuymaManualFieldsPayload.prototype, "forwarderDispatchNotified", void 0);
294
+ __decorate([
295
+ (0, class_validator_1.IsOptional)(),
296
+ (0, class_validator_1.IsString)(),
297
+ (0, class_validator_1.MaxLength)(2000),
298
+ __metadata("design:type", Object)
299
+ ], BuymaManualFieldsPayload.prototype, "holdReason", void 0);
300
+ __decorate([
301
+ (0, class_validator_1.IsOptional)(),
302
+ (0, class_validator_1.IsString)(),
303
+ (0, class_validator_1.MaxLength)(10000),
304
+ __metadata("design:type", Object)
305
+ ], BuymaManualFieldsPayload.prototype, "memo", void 0);
306
+ __decorate([
307
+ (0, class_validator_1.IsOptional)(),
308
+ (0, class_validator_1.IsArray)(),
309
+ (0, class_validator_1.ArrayMaxSize)(20),
310
+ (0, class_validator_1.ArrayUnique)(),
311
+ (0, class_validator_1.IsString)({ each: true }),
312
+ (0, class_validator_1.MaxLength)(1000, { each: true }),
313
+ __metadata("design:type", Array)
314
+ ], BuymaManualFieldsPayload.prototype, "slackThreadUrls", void 0);
315
+ class BuymaOrderCommandPayload {
316
+ }
317
+ exports.BuymaOrderCommandPayload = BuymaOrderCommandPayload;
318
+ __decorate([
319
+ (0, class_validator_1.IsMongoId)(),
320
+ __metadata("design:type", String)
321
+ ], BuymaOrderCommandPayload.prototype, "orderId", void 0);
322
+ __decorate([
323
+ (0, class_validator_1.IsInt)(),
324
+ (0, class_validator_1.Min)(0),
325
+ (0, class_validator_1.Max)(Number.MAX_SAFE_INTEGER),
326
+ __metadata("design:type", Number)
327
+ ], BuymaOrderCommandPayload.prototype, "expectedRevision", void 0);
328
+ __decorate([
329
+ (0, class_validator_1.IsMongoId)(),
330
+ __metadata("design:type", String)
331
+ ], BuymaOrderCommandPayload.prototype, "actorId", void 0);
332
+ __decorate([
333
+ (0, class_validator_1.IsString)(),
334
+ (0, class_validator_1.MaxLength)(2000),
335
+ __metadata("design:type", String)
336
+ ], BuymaOrderCommandPayload.prototype, "reason", void 0);
337
+ class UpdateBuymaOrderPayload extends BuymaOrderCommandPayload {
338
+ }
339
+ exports.UpdateBuymaOrderPayload = UpdateBuymaOrderPayload;
340
+ __decorate([
341
+ (0, class_validator_1.IsDefined)(),
342
+ (0, class_validator_1.ValidateNested)(),
343
+ (0, class_transformer_1.Type)(() => BuymaManualFieldsPayload),
344
+ __metadata("design:type", BuymaManualFieldsPayload)
345
+ ], UpdateBuymaOrderPayload.prototype, "fields", void 0);
346
+ class ConfirmBuymaPaymentPayload extends BuymaOrderCommandPayload {
347
+ }
348
+ exports.ConfirmBuymaPaymentPayload = ConfirmBuymaPaymentPayload;
349
+ __decorate([
350
+ (0, class_validator_1.IsOptional)(),
351
+ (0, class_validator_1.IsString)(),
352
+ (0, class_validator_1.MaxLength)(40),
353
+ __metadata("design:type", Object)
354
+ ], ConfirmBuymaPaymentPayload.prototype, "paidAt", void 0);
355
+ class ConnectBuymaProcurementPayload extends BuymaOrderCommandPayload {
356
+ }
357
+ exports.ConnectBuymaProcurementPayload = ConnectBuymaProcurementPayload;
358
+ __decorate([
359
+ (0, class_validator_1.IsOptional)(),
360
+ (0, class_validator_1.IsIn)([
361
+ 'LINK',
362
+ 'REPLACE',
363
+ 'RELEASE',
364
+ ]),
365
+ __metadata("design:type", String)
366
+ ], ConnectBuymaProcurementPayload.prototype, "operation", void 0);
367
+ __decorate([
368
+ (0, class_validator_1.IsOptional)(),
369
+ (0, class_validator_1.IsString)(),
370
+ (0, class_validator_1.MaxLength)(500),
371
+ __metadata("design:type", String)
372
+ ], ConnectBuymaProcurementPayload.prototype, "croketOptionName", void 0);
373
+ __decorate([
374
+ (0, class_validator_1.IsOptional)(),
375
+ (0, class_validator_1.IsBoolean)(),
376
+ __metadata("design:type", Boolean)
377
+ ], ConnectBuymaProcurementPayload.prototype, "stockReusableConfirmed", void 0);
378
+ __decorate([
379
+ (0, class_validator_1.IsOptional)(),
380
+ (0, class_validator_1.IsString)(),
381
+ (0, class_validator_1.MaxLength)(500),
382
+ __metadata("design:type", String)
383
+ ], ConnectBuymaProcurementPayload.prototype, "previousCroketOptionName", void 0);
384
+ __decorate([
385
+ (0, class_validator_1.IsIn)([
386
+ 'CROKET',
387
+ 'MANUAL',
388
+ ]),
389
+ __metadata("design:type", String)
390
+ ], ConnectBuymaProcurementPayload.prototype, "source", void 0);
391
+ __decorate([
392
+ (0, class_validator_1.IsString)(),
393
+ (0, class_validator_1.MaxLength)(1000),
394
+ __metadata("design:type", String)
395
+ ], ConnectBuymaProcurementPayload.prototype, "orderUrl", void 0);
396
+ __decorate([
397
+ (0, class_validator_1.IsOptional)(),
398
+ (0, class_validator_1.IsMongoId)(),
399
+ __metadata("design:type", String)
400
+ ], ConnectBuymaProcurementPayload.prototype, "purchasedInfoId", void 0);
401
+ __decorate([
402
+ (0, class_validator_1.IsOptional)(),
403
+ (0, class_validator_1.IsBoolean)(),
404
+ __metadata("design:type", Boolean)
405
+ ], ConnectBuymaProcurementPayload.prototype, "alternative", void 0);
406
+ __decorate([
407
+ (0, class_validator_1.IsBoolean)(),
408
+ __metadata("design:type", Boolean)
409
+ ], ConnectBuymaProcurementPayload.prototype, "productAndOptionConfirmed", void 0);
410
+ __decorate([
411
+ (0, class_validator_1.IsOptional)(),
412
+ (0, class_validator_1.ValidateNested)(),
413
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
414
+ __metadata("design:type", Object)
415
+ ], ConnectBuymaProcurementPayload.prototype, "purchaseCost", void 0);
416
+ class ChangeBuymaOrderStatusPayload extends BuymaOrderCommandPayload {
417
+ }
418
+ exports.ChangeBuymaOrderStatusPayload = ChangeBuymaOrderStatusPayload;
419
+ __decorate([
420
+ (0, class_validator_1.IsIn)(entity_v2_1.BUYMA_ORDER_STATUSES.filter((value) => value !== 'REFUNDED')),
421
+ __metadata("design:type", Object)
422
+ ], ChangeBuymaOrderStatusPayload.prototype, "orderStatus", void 0);
423
+ __decorate([
424
+ (0, class_validator_1.IsOptional)(),
425
+ (0, class_validator_1.IsBoolean)(),
426
+ __metadata("design:type", Boolean)
427
+ ], ChangeBuymaOrderStatusPayload.prototype, "fullQuantityDelivered", void 0);
428
+ __decorate([
429
+ (0, class_validator_1.IsOptional)(),
430
+ (0, class_validator_1.IsString)(),
431
+ (0, class_validator_1.MaxLength)(40),
432
+ __metadata("design:type", Object)
433
+ ], ChangeBuymaOrderStatusPayload.prototype, "deliveredAt", void 0);
434
+ class RecordBuymaRefundPayload extends BuymaOrderCommandPayload {
435
+ }
436
+ exports.RecordBuymaRefundPayload = RecordBuymaRefundPayload;
437
+ __decorate([
438
+ (0, class_validator_1.IsDefined)(),
439
+ (0, class_validator_1.ValidateNested)(),
440
+ (0, class_transformer_1.Type)(() => BuymaMoneyPayload),
441
+ __metadata("design:type", BuymaMoneyPayload)
442
+ ], RecordBuymaRefundPayload.prototype, "amount", void 0);
443
+ __decorate([
444
+ (0, class_validator_1.IsString)(),
445
+ (0, class_validator_1.MaxLength)(40),
446
+ __metadata("design:type", String)
447
+ ], RecordBuymaRefundPayload.prototype, "refundedAt", void 0);
448
+ __decorate([
449
+ (0, class_validator_1.IsBoolean)(),
450
+ __metadata("design:type", Boolean)
451
+ ], RecordBuymaRefundPayload.prototype, "fullRefundConfirmed", void 0);
452
+ class ReceiveBuymaWebhookPayload {
453
+ }
454
+ exports.ReceiveBuymaWebhookPayload = ReceiveBuymaWebhookPayload;
455
+ __decorate([
456
+ (0, class_validator_1.IsString)(),
457
+ (0, class_validator_1.MaxLength)(100),
458
+ __metadata("design:type", String)
459
+ ], ReceiveBuymaWebhookPayload.prototype, "buymaAccountId", void 0);
460
+ __decorate([
461
+ (0, class_validator_1.IsIn)([
462
+ 'order/create',
463
+ 'order/update',
464
+ ]),
465
+ __metadata("design:type", String)
466
+ ], ReceiveBuymaWebhookPayload.prototype, "eventType", void 0);
467
+ __decorate([
468
+ (0, class_validator_1.IsString)(),
469
+ (0, class_validator_1.MaxLength)(2000000),
470
+ __metadata("design:type", String)
471
+ ], ReceiveBuymaWebhookPayload.prototype, "rawJson", void 0);
472
+ __decorate([
473
+ (0, class_validator_1.IsString)(),
474
+ (0, class_validator_1.Matches)(/^[a-f0-9]{64}$/),
475
+ __metadata("design:type", String)
476
+ ], 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,79 @@
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
+ sharedProcurementOrders?: BuymaSharedProcurementOrder[];
43
+ sharedProcurementOverflow?: boolean;
44
+ item: BuymaOrderEntity;
45
+ sharedTrackingOrders: BuymaSharedTrackingOrder[];
46
+ }
47
+ export interface GetBuymaOrderHistoryResult {
48
+ items: BuymaOrderEventEntity[];
49
+ nextCursor: string | null;
50
+ }
51
+ export interface BuymaProcurementOption {
52
+ name: string;
53
+ quantity: number;
54
+ allocatedQuantity: number;
55
+ availableQuantity: number;
56
+ eligible: boolean;
57
+ }
58
+ export interface BuymaProcurementCandidate {
59
+ options?: BuymaProcurementOption[];
60
+ allocatedQuantity?: number;
61
+ availableQuantity?: number;
62
+ purchaseReceiptId: string;
63
+ purchasedInfoId: string;
64
+ publicId: string | null;
65
+ itemId: string;
66
+ itemName: string | null;
67
+ optionName: string | null;
68
+ quantity: number;
69
+ paymentStatus: string | null;
70
+ sourceStatus: string | null;
71
+ productPrice: BuymaMoney | null;
72
+ shippingCost: BuymaMoney | null;
73
+ eligible: boolean;
74
+ blockingReasons: string[];
75
+ reviewReasons: string[];
76
+ }
77
+ export interface GetBuymaProcurementCandidatesResult {
78
+ items: BuymaProcurementCandidate[];
79
+ }