@mivis/petmart-api 1.2.100 → 1.2.101

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 +7 -5
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.101",
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<