@mivis/petmart-api 1.2.78 → 1.2.80
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/package.json +1 -1
- package/type.d.ts +16 -9
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ declare namespace Components {
|
|
|
303
303
|
_id: string;
|
|
304
304
|
name: string;
|
|
305
305
|
};
|
|
306
|
-
seller_id
|
|
306
|
+
seller_id?: {
|
|
307
307
|
_id: string;
|
|
308
308
|
shop_details: IShopDetails;
|
|
309
309
|
delivery_ways: IDeliveryWays;
|
|
@@ -656,6 +656,10 @@ declare namespace Components {
|
|
|
656
656
|
seller_id?: string;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
+
export type IPopulatedOrderSeller = Pick<ISeller, '_id' | 'shop_details'>;
|
|
660
|
+
|
|
661
|
+
export type IPopulatedOrderUser = Pick<IUser, '_id' | 'name'>;
|
|
662
|
+
|
|
659
663
|
export interface IPopulatedOrderItem
|
|
660
664
|
extends Omit<IOrderItem, 'product_id'> {
|
|
661
665
|
product_id: Pick<
|
|
@@ -664,8 +668,13 @@ declare namespace Components {
|
|
|
664
668
|
>;
|
|
665
669
|
}
|
|
666
670
|
|
|
667
|
-
export type IPopulatedOrder = Omit<
|
|
671
|
+
export type IPopulatedOrder = Omit<
|
|
672
|
+
IOrder,
|
|
673
|
+
'items' | 'seller_id' | 'user_id'
|
|
674
|
+
> & {
|
|
668
675
|
items: IPopulatedOrderItem[];
|
|
676
|
+
seller_id?: IPopulatedOrderSeller;
|
|
677
|
+
user_id?: IPopulatedOrderUser;
|
|
669
678
|
};
|
|
670
679
|
|
|
671
680
|
export interface IAdminGetOrderResponse {
|
|
@@ -684,14 +693,11 @@ declare namespace Components {
|
|
|
684
693
|
>;
|
|
685
694
|
|
|
686
695
|
export enum EOrderStatus {
|
|
687
|
-
DELIVERED = 'DELIVERED',
|
|
688
|
-
IN_DELIVERY = 'IN_DELIVERY',
|
|
689
696
|
ON_CONFIRMATION = 'ON_CONFIRMATION',
|
|
690
697
|
CONFIRMED_BY_SELLER = 'CONFIRMED_BY_SELLER',
|
|
691
|
-
|
|
698
|
+
IN_DELIVERY = 'IN_DELIVERY',
|
|
699
|
+
FINISHED = 'FINISHED',
|
|
692
700
|
CANCELED = 'CANCELED',
|
|
693
|
-
REFUSING = 'REFUSING',
|
|
694
|
-
DELETED = 'DELETED',
|
|
695
701
|
}
|
|
696
702
|
|
|
697
703
|
export interface IDeliveryAddress extends OrderAddress {
|
|
@@ -852,11 +858,12 @@ declare namespace Components {
|
|
|
852
858
|
}
|
|
853
859
|
|
|
854
860
|
export interface IOrder {
|
|
861
|
+
_id: string;
|
|
855
862
|
sum: number;
|
|
856
863
|
weight: number;
|
|
857
|
-
user_id
|
|
864
|
+
user_id?: string;
|
|
858
865
|
items: IOrderItem[];
|
|
859
|
-
seller_id
|
|
866
|
+
seller_id?: string;
|
|
860
867
|
receive_method: ERecieveMethod;
|
|
861
868
|
delivery_info?: Partial<IDeliveryFullInfo>;
|
|
862
869
|
shop_id?: string;
|