@mivis/petmart-api 1.2.79 → 1.2.81
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 +6 -10
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -656,13 +656,9 @@ declare namespace Components {
|
|
|
656
656
|
seller_id?: string;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
export
|
|
660
|
-
seller_id: Pick<ISeller, '_id' | 'shop_details'>;
|
|
661
|
-
}
|
|
659
|
+
export type IPopulatedOrderSeller = Pick<ISeller, '_id' | 'shop_details'>;
|
|
662
660
|
|
|
663
|
-
export
|
|
664
|
-
user_id: Pick<IUser, '_id' | 'name'>;
|
|
665
|
-
}
|
|
661
|
+
export type IPopulatedOrderUser = Pick<IUser, '_id' | 'name'>;
|
|
666
662
|
|
|
667
663
|
export interface IPopulatedOrderItem
|
|
668
664
|
extends Omit<IOrderItem, 'product_id'> {
|
|
@@ -677,8 +673,8 @@ declare namespace Components {
|
|
|
677
673
|
'items' | 'seller_id' | 'user_id'
|
|
678
674
|
> & {
|
|
679
675
|
items: IPopulatedOrderItem[];
|
|
680
|
-
seller_id
|
|
681
|
-
user_id
|
|
676
|
+
seller_id?: IPopulatedOrderSeller;
|
|
677
|
+
user_id?: IPopulatedOrderUser;
|
|
682
678
|
};
|
|
683
679
|
|
|
684
680
|
export interface IAdminGetOrderResponse {
|
|
@@ -769,7 +765,7 @@ declare namespace Components {
|
|
|
769
765
|
}
|
|
770
766
|
|
|
771
767
|
export interface ICreateOrder {
|
|
772
|
-
items: Omit<IOrderItem[], '_id'>;
|
|
768
|
+
items: Omit<IOrderItem[], '_id' | 'items_status'>;
|
|
773
769
|
receive_method: ERecieveMethod;
|
|
774
770
|
receive_method_data: IDeliveryInfo | IPVZ | IPickUpPoint;
|
|
775
771
|
seller_id: string;
|
|
@@ -841,7 +837,7 @@ declare namespace Components {
|
|
|
841
837
|
export interface GetDeliverySum {
|
|
842
838
|
address: string;
|
|
843
839
|
type: ERecieveMethod.COURIER | ERecieveMethod.PVZ;
|
|
844
|
-
items: IOrderItem[]
|
|
840
|
+
items: Omit<IOrderItem[], '_id' | 'items_status'>;
|
|
845
841
|
}
|
|
846
842
|
|
|
847
843
|
export interface IDeliverySum {
|