@mivis/petmart-api 1.2.82 → 1.2.84
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 +41 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -387,6 +387,10 @@ declare namespace Components {
|
|
|
387
387
|
cartItem: ICart;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
+
export interface ISetCartItemCountRequest {
|
|
391
|
+
count: number;
|
|
392
|
+
}
|
|
393
|
+
|
|
390
394
|
export interface ICategory {
|
|
391
395
|
_id: string;
|
|
392
396
|
name: string;
|
|
@@ -771,6 +775,43 @@ declare namespace Components {
|
|
|
771
775
|
seller_id: string;
|
|
772
776
|
}
|
|
773
777
|
|
|
778
|
+
export interface IGetAllOrders {
|
|
779
|
+
user_id: string;
|
|
780
|
+
skip: number;
|
|
781
|
+
limit: number;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export type IPopulatedOrderShop = Pick<IShop, '_id' | 'name' | 'address'>;
|
|
785
|
+
|
|
786
|
+
export interface IPopulatedOrderItemApp
|
|
787
|
+
extends Omit<IOrderItem, 'product_id'> {
|
|
788
|
+
product_id: Pick<IProduct, '_id' | 'name' | 'photo' | 'discount'>;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export type IPopulatedOrderUserApp = Pick<IUser, '_id' | 'name' | 'tel'>;
|
|
792
|
+
|
|
793
|
+
export type IPopulatedOrderApp = Omit<
|
|
794
|
+
IOrder,
|
|
795
|
+
'items' | 'shop_id' | 'user_id'
|
|
796
|
+
> & {
|
|
797
|
+
items: IPopulatedOrderItemApp[];
|
|
798
|
+
user_id: IPopulatedOrderUserApp;
|
|
799
|
+
shop_id: IPopulatedOrderShop;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
export enum EReasonOfCancel {
|
|
803
|
+
CHANGED_DELIVERY_DATE = 'Перенесли срок доставки',
|
|
804
|
+
INCORRECT_CREATED_ORDER = 'Хочу изменить заказ и оформить заново',
|
|
805
|
+
FOUND_CHEAPER = 'Перенесли срок доставки',
|
|
806
|
+
WRONG_ADDRESS = 'Указал неверный адрес',
|
|
807
|
+
OTHER = 'Другое',
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export interface ICancelOrderRequest {
|
|
811
|
+
order_id: string;
|
|
812
|
+
reason_of_cancel: EReasonOfCancel;
|
|
813
|
+
}
|
|
814
|
+
|
|
774
815
|
export interface ICreateMultiOrder {
|
|
775
816
|
orders: ICreateOrder[];
|
|
776
817
|
sum: number;
|