@yolo-croket-dev/amqp-access 0.7.380-beta.3 → 0.7.380-beta.4
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.
|
@@ -73,6 +73,10 @@ export declare class ConfirmBuymaPaymentPayload extends BuymaOrderCommandPayload
|
|
|
73
73
|
paidAt?: string | null;
|
|
74
74
|
}
|
|
75
75
|
export declare class ConnectBuymaProcurementPayload extends BuymaOrderCommandPayload {
|
|
76
|
+
operation?: 'LINK' | 'REPLACE' | 'RELEASE';
|
|
77
|
+
croketOptionName?: string;
|
|
78
|
+
stockReusableConfirmed?: boolean;
|
|
79
|
+
previousCroketOptionName?: string;
|
|
76
80
|
source: 'CROKET' | 'MANUAL';
|
|
77
81
|
orderUrl: string;
|
|
78
82
|
purchasedInfoId?: string;
|
|
@@ -355,6 +355,32 @@ __decorate([
|
|
|
355
355
|
class ConnectBuymaProcurementPayload extends BuymaOrderCommandPayload {
|
|
356
356
|
}
|
|
357
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);
|
|
358
384
|
__decorate([
|
|
359
385
|
(0, class_validator_1.IsIn)([
|
|
360
386
|
'CROKET',
|
|
@@ -23,7 +23,7 @@ export declare class GetBuymaProcurementCandidatesPayload extends GetBuymaOrderP
|
|
|
23
23
|
export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'createdAt' | 'quantity' | 'productRevenue' | 'orderStatus' | 'holdReason'> {
|
|
24
24
|
productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'buymaName' | 'croketName' | 'optionName'>;
|
|
25
25
|
payment: Pick<BuymaOrderEntity['payment'], 'status'>;
|
|
26
|
-
procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'source' | 'croketPurchasedInfoPublicId'> | null;
|
|
26
|
+
procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'source' | 'croketPurchasedInfoPublicId' | 'allocationStatus'> | null;
|
|
27
27
|
internationalShipment: Pick<NonNullable<BuymaOrderEntity['internationalShipment']>, 'trackingNumber'> | null;
|
|
28
28
|
}
|
|
29
29
|
export interface BuymaSharedTrackingOrder extends Pick<BuymaOrderEntity, '_id' | 'buymaOrderNumber' | 'quantity'> {
|
|
@@ -35,7 +35,12 @@ export interface GetBuymaOrdersResult {
|
|
|
35
35
|
page: number;
|
|
36
36
|
limit: number;
|
|
37
37
|
}
|
|
38
|
+
export interface BuymaSharedProcurementOrder extends Pick<BuymaOrderEntity, '_id' | 'buymaOrderNumber' | 'quantity' | 'orderStatus'> {
|
|
39
|
+
procurement: Pick<NonNullable<BuymaOrderEntity['procurement']>, 'allocationStatus' | 'croketOptionName'> | null;
|
|
40
|
+
}
|
|
38
41
|
export interface GetBuymaOrderResult {
|
|
42
|
+
sharedProcurementOrders?: BuymaSharedProcurementOrder[];
|
|
43
|
+
sharedProcurementOverflow?: boolean;
|
|
39
44
|
item: BuymaOrderEntity;
|
|
40
45
|
sharedTrackingOrders: BuymaSharedTrackingOrder[];
|
|
41
46
|
}
|
|
@@ -43,7 +48,17 @@ export interface GetBuymaOrderHistoryResult {
|
|
|
43
48
|
items: BuymaOrderEventEntity[];
|
|
44
49
|
nextCursor: string | null;
|
|
45
50
|
}
|
|
51
|
+
export interface BuymaProcurementOption {
|
|
52
|
+
name: string;
|
|
53
|
+
quantity: number;
|
|
54
|
+
allocatedQuantity: number;
|
|
55
|
+
availableQuantity: number;
|
|
56
|
+
eligible: boolean;
|
|
57
|
+
}
|
|
46
58
|
export interface BuymaProcurementCandidate {
|
|
59
|
+
options?: BuymaProcurementOption[];
|
|
60
|
+
allocatedQuantity?: number;
|
|
61
|
+
availableQuantity?: number;
|
|
47
62
|
purchaseReceiptId: string;
|
|
48
63
|
purchasedInfoId: string;
|
|
49
64
|
publicId: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.380-beta.
|
|
3
|
+
"version": "0.7.380-beta.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.50",
|
|
25
25
|
"@yolo-croket-dev/dto-v2": "0.2.35",
|
|
26
26
|
"@yolo-croket-dev/entity": "0.2.110",
|
|
27
|
-
"@yolo-croket-dev/entity-v2": "0.3.58-beta.
|
|
27
|
+
"@yolo-croket-dev/entity-v2": "0.3.58-beta.4",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"class-validator": "^0.13.2",
|
|
30
30
|
"dotenv": "^16.3.1"
|