@mivis/petmart-api 1.2.100 → 1.2.102

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +13 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.100",
3
+ "version": "1.2.102",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -679,12 +679,14 @@ declare namespace Components {
679
679
  '_id' | 'name' | 'tel' | 'email'
680
680
  >;
681
681
 
682
+ export type TPopulatedProductId = Pick<
683
+ IProduct,
684
+ '_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
685
+ >;
686
+
682
687
  export interface IPopulatedOrderItem
683
688
  extends Omit<IOrderItem, 'product_id'> {
684
- product_id: Pick<
685
- IProduct,
686
- '_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
687
- >;
689
+ product_id: TPopulatedProductId;
688
690
  }
689
691
 
690
692
  export type IPopulatedOrder = Omit<
@@ -724,7 +726,7 @@ declare namespace Components {
724
726
  delivery_info: Partial<IAdminDeliveryInfo>;
725
727
  cdek_info?: Partial<IAdminCdekInfo>;
726
728
  invoice?: File;
727
- items: IOrderItem[];
729
+ items: IPopulatedOrderItem[];
728
730
  }
729
731
 
730
732
  export type OrderAddress = Omit<
@@ -959,11 +961,16 @@ declare namespace Components {
959
961
  updatedAt: Date;
960
962
  }
961
963
 
964
+ export interface IAdminMultiOrderResponse
965
+ extends Omit<IMultiOrder, 'orders'> {
966
+ orders: IPopulatedOrder[];
967
+ }
968
+
962
969
  export interface IMultiOrder {
963
970
  user_id: string;
964
971
  sum: number;
965
972
  orders: string[];
966
- number?: number;
973
+ number: number;
967
974
  status: EMultiOrderStatus;
968
975
  createdAt: Date;
969
976
  updatedAt: Date;