@merkaly/api 0.39.4 → 0.39.5
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.
- package/dist/finance/refund/refund.entity.d.ts +1 -0
- package/dist/integration/supplier/order.d.ts +12 -2
- package/dist/integration/supplier/quote.d.ts +1 -0
- package/dist/logistics/shipment/shipment.d.ts +6 -0
- package/dist/logistics/shipment/shipment.entity.d.ts +14 -0
- package/dist/order/purchase/purchase.entity.d.ts +47 -0
- package/dist/order/sale/fulfillment.d.ts +1 -0
- package/dist/order/sale/procurement.d.ts +6 -2
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export declare const FinanceRefundGatewaySchema: MongoSchema<FinanceRefundGatewa
|
|
|
27
27
|
export declare class FinanceRefundEntity extends AbstractEntity {
|
|
28
28
|
payment: FinancePaymentEntity | string;
|
|
29
29
|
purchase?: OrderPurchaseEntity | string | null;
|
|
30
|
+
supplierOrderId?: string | null;
|
|
30
31
|
amount: number;
|
|
31
32
|
isPartial: boolean;
|
|
32
33
|
origin: FinanceRefundOriginEnum;
|
|
@@ -41,12 +41,22 @@ export interface SupplierOrderChargedLine {
|
|
|
41
41
|
shipping: number;
|
|
42
42
|
tax: number;
|
|
43
43
|
}
|
|
44
|
+
export interface SupplierOrderPart {
|
|
45
|
+
externalOrderId: string;
|
|
46
|
+
status?: OrderPurchaseStatusEnum;
|
|
47
|
+
rawStatus: string;
|
|
48
|
+
lines: SupplierOrderChargedLine[];
|
|
49
|
+
charged: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface SupplierOrderParcel extends LogisticsParcelInput {
|
|
52
|
+
externalOrderIds: string[];
|
|
53
|
+
}
|
|
44
54
|
export interface SupplierOrderSnapshot {
|
|
45
55
|
status?: OrderPurchaseStatusEnum;
|
|
46
56
|
received: boolean;
|
|
47
57
|
rawStatus: string;
|
|
48
|
-
|
|
49
|
-
|
|
58
|
+
orders: SupplierOrderPart[];
|
|
59
|
+
parcels: SupplierOrderParcel[];
|
|
50
60
|
payExpiryDate?: Date | null;
|
|
51
61
|
}
|
|
52
62
|
export interface SupplierOrderImportLine {
|
|
@@ -10,6 +10,11 @@ export interface LogisticsParcelInput {
|
|
|
10
10
|
trackingUrl?: string;
|
|
11
11
|
events: LogisticsTrackingInput[];
|
|
12
12
|
received?: boolean;
|
|
13
|
+
items?: LogisticsShipmentItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface LogisticsShipmentItem {
|
|
16
|
+
item: string;
|
|
17
|
+
quantity: number;
|
|
13
18
|
}
|
|
14
19
|
export interface LogisticsBuyerShipment {
|
|
15
20
|
status: LogisticsShipmentStatusEnum;
|
|
@@ -23,4 +28,5 @@ export interface LogisticsBuyerShipment {
|
|
|
23
28
|
code: LogisticsTrackingEventCodeEnum;
|
|
24
29
|
location?: string;
|
|
25
30
|
}[];
|
|
31
|
+
items: LogisticsShipmentItem[];
|
|
26
32
|
}
|
|
@@ -32,10 +32,24 @@ export declare const LogisticsShipmentTrackingSchema: MongoSchema<LogisticsShipm
|
|
|
32
32
|
} & {
|
|
33
33
|
__v: number;
|
|
34
34
|
}>;
|
|
35
|
+
export declare class LogisticsShipmentItemEntity {
|
|
36
|
+
item: string;
|
|
37
|
+
quantity: number;
|
|
38
|
+
}
|
|
39
|
+
export declare const LogisticsShipmentItemSchema: MongoSchema<LogisticsShipmentItemEntity, import("mongoose").Model<LogisticsShipmentItemEntity, any, any, any, import("mongoose").Document<unknown, any, LogisticsShipmentItemEntity, any, {}> & LogisticsShipmentItemEntity & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LogisticsShipmentItemEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LogisticsShipmentItemEntity>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<LogisticsShipmentItemEntity> & {
|
|
44
|
+
_id: import("mongoose").Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}>;
|
|
35
48
|
export declare class LogisticsShipmentEntity extends AbstractEntity {
|
|
36
49
|
sale: OrderSaleEntity;
|
|
37
50
|
purchase?: OrderPurchaseEntity | null;
|
|
38
51
|
source: LogisticsShipmentSourceEnum;
|
|
52
|
+
items: LogisticsShipmentItemEntity[];
|
|
39
53
|
tracking?: LogisticsShipmentTrackingEntity | null;
|
|
40
54
|
shippedAt?: Date | null;
|
|
41
55
|
deliveredAt?: Date | null;
|
|
@@ -18,9 +18,55 @@ export declare const OrderPurchaseSupplierErrorSchema: MongoSchema<OrderPurchase
|
|
|
18
18
|
} & {
|
|
19
19
|
__v: number;
|
|
20
20
|
}>;
|
|
21
|
+
export declare class OrderPurchaseSupplierOrderItemEntity {
|
|
22
|
+
item: string;
|
|
23
|
+
quantity: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const OrderPurchaseSupplierOrderItemSchema: MongoSchema<OrderPurchaseSupplierOrderItemEntity, import("mongoose").Model<OrderPurchaseSupplierOrderItemEntity, any, any, any, import("mongoose").Document<unknown, any, OrderPurchaseSupplierOrderItemEntity, any, {}> & OrderPurchaseSupplierOrderItemEntity & {
|
|
26
|
+
_id: import("mongoose").Types.ObjectId;
|
|
27
|
+
} & {
|
|
28
|
+
__v: number;
|
|
29
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OrderPurchaseSupplierOrderItemEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OrderPurchaseSupplierOrderItemEntity>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OrderPurchaseSupplierOrderItemEntity> & {
|
|
30
|
+
_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
} & {
|
|
32
|
+
__v: number;
|
|
33
|
+
}>;
|
|
34
|
+
export declare class OrderPurchaseSupplierOrderPartEntity {
|
|
35
|
+
id: string;
|
|
36
|
+
status?: OrderPurchaseStatusEnum | null;
|
|
37
|
+
rawStatus?: string | null;
|
|
38
|
+
items: OrderPurchaseSupplierOrderItemEntity[];
|
|
39
|
+
productCost?: number | null;
|
|
40
|
+
shippingCost?: number | null;
|
|
41
|
+
taxCost?: number | null;
|
|
42
|
+
cancelledAt?: Date | null;
|
|
43
|
+
}
|
|
44
|
+
export declare const OrderPurchaseSupplierOrderPartSchema: MongoSchema<OrderPurchaseSupplierOrderPartEntity, import("mongoose").Model<OrderPurchaseSupplierOrderPartEntity, any, any, any, import("mongoose").Document<unknown, any, OrderPurchaseSupplierOrderPartEntity, any, {}> & OrderPurchaseSupplierOrderPartEntity & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
} & {
|
|
47
|
+
__v: number;
|
|
48
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OrderPurchaseSupplierOrderPartEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OrderPurchaseSupplierOrderPartEntity>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OrderPurchaseSupplierOrderPartEntity> & {
|
|
49
|
+
_id: import("mongoose").Types.ObjectId;
|
|
50
|
+
} & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}>;
|
|
53
|
+
export declare class OrderPurchaseLogisticsEntity {
|
|
54
|
+
sku: string;
|
|
55
|
+
service: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const OrderPurchaseLogisticsSchema: MongoSchema<OrderPurchaseLogisticsEntity, import("mongoose").Model<OrderPurchaseLogisticsEntity, any, any, any, import("mongoose").Document<unknown, any, OrderPurchaseLogisticsEntity, any, {}> & OrderPurchaseLogisticsEntity & {
|
|
58
|
+
_id: import("mongoose").Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OrderPurchaseLogisticsEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OrderPurchaseLogisticsEntity>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OrderPurchaseLogisticsEntity> & {
|
|
62
|
+
_id: import("mongoose").Types.ObjectId;
|
|
63
|
+
} & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}>;
|
|
21
66
|
export declare class OrderPurchaseSupplierOrderEntity {
|
|
22
67
|
provider: SupplierProviderEnum;
|
|
23
68
|
orderIds: string[];
|
|
69
|
+
orders?: OrderPurchaseSupplierOrderPartEntity[];
|
|
24
70
|
reference?: string;
|
|
25
71
|
rawStatus?: string;
|
|
26
72
|
placedAt: Date;
|
|
@@ -45,5 +91,6 @@ export declare class OrderPurchaseEntity extends TransactionEntity<OrderPurchase
|
|
|
45
91
|
shippingCost?: number;
|
|
46
92
|
taxCost?: number;
|
|
47
93
|
chargedAt?: Date;
|
|
94
|
+
logistics?: OrderPurchaseLogisticsEntity[];
|
|
48
95
|
supplierOrder?: OrderPurchaseSupplierOrderEntity;
|
|
49
96
|
}
|
|
@@ -7,6 +7,10 @@ export interface ProcurementLine {
|
|
|
7
7
|
name: string;
|
|
8
8
|
};
|
|
9
9
|
variant: string;
|
|
10
|
+
vendor: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
10
14
|
quantity: number;
|
|
11
15
|
retailUnit: number;
|
|
12
16
|
storedUnitCost: number;
|
|
@@ -20,10 +24,10 @@ export interface ProcurementGroup {
|
|
|
20
24
|
id: string;
|
|
21
25
|
provider: SupplierProviderEnum;
|
|
22
26
|
};
|
|
23
|
-
|
|
27
|
+
vendors: {
|
|
24
28
|
id: string;
|
|
25
29
|
name: string;
|
|
26
|
-
}
|
|
30
|
+
}[];
|
|
27
31
|
items: ProcurementLine[];
|
|
28
32
|
totals: {
|
|
29
33
|
retail: number;
|