@sendhome/common 1.0.213 → 1.0.215
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/build/events/publishers/order-created-event.d.ts +4 -5
- package/build/events/publishers/order-updated-event.d.ts +4 -5
- package/build/events/publishers/productItem-created-event.d.ts +1 -0
- package/build/events/publishers/productItem-updated-event.d.ts +1 -0
- package/build/events/types/cart-item-status.d.ts +1 -0
- package/build/events/types/cart-item-status.js +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { Category } from "../types/category";
|
|
4
|
-
import { ReceiveCountry } from "../types/receive-country";
|
|
5
|
-
import { SendCountry } from "../types/send-country";
|
|
6
4
|
export interface OrderCreatedEvent {
|
|
7
5
|
subject: Subjects.OrderCreated;
|
|
8
6
|
data: {
|
|
@@ -26,8 +24,8 @@ export interface OrderCreatedEvent {
|
|
|
26
24
|
fee: number;
|
|
27
25
|
commission_ratio: number;
|
|
28
26
|
commission: number;
|
|
29
|
-
send_country:
|
|
30
|
-
receive_country:
|
|
27
|
+
send_country: string;
|
|
28
|
+
receive_country: string;
|
|
31
29
|
delivery_method: "Delivery" | "Self-Collect";
|
|
32
30
|
delivery_address: string;
|
|
33
31
|
payment_method: "card" | "paypal" | "applePay" | "bankTransfer";
|
|
@@ -36,10 +34,11 @@ export interface OrderCreatedEvent {
|
|
|
36
34
|
module: string;
|
|
37
35
|
company: string;
|
|
38
36
|
transport_module: string;
|
|
39
|
-
|
|
37
|
+
city: string;
|
|
40
38
|
delete_date: Date;
|
|
41
39
|
warning_date: Date;
|
|
42
40
|
expire_date: Date;
|
|
41
|
+
order_type: "shopping" | "voucher";
|
|
43
42
|
status: OrderStatus;
|
|
44
43
|
created_at: Date;
|
|
45
44
|
updated_at: Date;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { Category } from "../types/category";
|
|
4
|
-
import { ReceiveCountry } from "../types/receive-country";
|
|
5
|
-
import { SendCountry } from "../types/send-country";
|
|
6
4
|
export interface OrderUpdatedEvent {
|
|
7
5
|
subject: Subjects.OrderUpdated;
|
|
8
6
|
data: {
|
|
@@ -26,8 +24,8 @@ export interface OrderUpdatedEvent {
|
|
|
26
24
|
fee: number;
|
|
27
25
|
commission_ratio: number;
|
|
28
26
|
commission: number;
|
|
29
|
-
send_country:
|
|
30
|
-
receive_country:
|
|
27
|
+
send_country: string;
|
|
28
|
+
receive_country: string;
|
|
31
29
|
delivery_method: "Delivery" | "Self-Collect";
|
|
32
30
|
delivery_address: string;
|
|
33
31
|
payment_method: "card" | "paypal" | "applePay" | "bankTransfer";
|
|
@@ -36,10 +34,11 @@ export interface OrderUpdatedEvent {
|
|
|
36
34
|
module: string;
|
|
37
35
|
company: string;
|
|
38
36
|
transport_module: string;
|
|
39
|
-
|
|
37
|
+
city: string;
|
|
40
38
|
delete_date: Date;
|
|
41
39
|
warning_date: Date;
|
|
42
40
|
expire_date: Date;
|
|
41
|
+
order_type: "shopping" | "voucher";
|
|
43
42
|
status: OrderStatus;
|
|
44
43
|
created_at: Date;
|
|
45
44
|
updated_at: Date;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CartItemStatus = void 0;
|
|
4
4
|
var CartItemStatus;
|
|
5
5
|
(function (CartItemStatus) {
|
|
6
|
+
// Cart item cancelled
|
|
7
|
+
CartItemStatus["Cancelled"] = "cancelled";
|
|
6
8
|
// Cart item created
|
|
7
9
|
CartItemStatus["Created"] = "created";
|
|
8
10
|
// Cart item collected
|