@mivis/petmart-api 1.2.85 → 1.2.86
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 +28 -2
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -653,6 +653,11 @@ declare namespace Components {
|
|
|
653
653
|
item_id: string;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
+
export interface IAdminDenyItemResponse {
|
|
657
|
+
order: IPopulatedOrder;
|
|
658
|
+
commission: number;
|
|
659
|
+
}
|
|
660
|
+
|
|
656
661
|
export interface IAdminOrdersQueryRequest extends FilterBaseQuery {
|
|
657
662
|
name?: string;
|
|
658
663
|
from?: string;
|
|
@@ -678,16 +683,17 @@ declare namespace Components {
|
|
|
678
683
|
|
|
679
684
|
export type IPopulatedOrder = Omit<
|
|
680
685
|
IOrder,
|
|
681
|
-
'items' | 'seller_id' | 'user_id'
|
|
686
|
+
'items' | 'seller_id' | 'user_id' | 'shop_id'
|
|
682
687
|
> & {
|
|
683
688
|
items: IPopulatedOrderItem[];
|
|
684
689
|
seller_id?: IPopulatedOrderSeller;
|
|
685
690
|
user_id?: IPopulatedOrderUser;
|
|
691
|
+
shop_id: IShop;
|
|
686
692
|
};
|
|
687
693
|
|
|
688
694
|
export interface IAdminGetOrderResponse {
|
|
689
695
|
order: IPopulatedOrder;
|
|
690
|
-
|
|
696
|
+
commission: number;
|
|
691
697
|
}
|
|
692
698
|
|
|
693
699
|
export interface IAdminOrdersQueryResponse {
|
|
@@ -695,6 +701,26 @@ declare namespace Components {
|
|
|
695
701
|
count: number;
|
|
696
702
|
}
|
|
697
703
|
|
|
704
|
+
export interface IAdminDeliveryInfo {
|
|
705
|
+
receive_method: ERecieveMethod;
|
|
706
|
+
preparation_date: Date;
|
|
707
|
+
address?: string;
|
|
708
|
+
shop_id?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export interface IAdminCdekInfo {
|
|
712
|
+
delivery_sum: number;
|
|
713
|
+
tracking: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export interface IAdminUpdateOrderRequest {
|
|
717
|
+
note?: string;
|
|
718
|
+
delivery_info: IAdminDeliveryInfo;
|
|
719
|
+
cdek_info?: IAdminCdekInfo;
|
|
720
|
+
invoice: File;
|
|
721
|
+
items: IOrderItem[];
|
|
722
|
+
}
|
|
723
|
+
|
|
698
724
|
export type OrderAddress = Omit<
|
|
699
725
|
IAddress,
|
|
700
726
|
'user_id' | '_id' | 'createdAt' | 'updatedAt'
|