@mivis/petmart-api 1.2.75 → 1.2.77

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 +26 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.75",
3
+ "version": "1.2.77",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -516,6 +516,23 @@ declare namespace Components {
516
516
  updatedAt: Date;
517
517
  }
518
518
 
519
+ export interface INearestPointOfCdek {
520
+ code: string;
521
+ name: string;
522
+ location: {
523
+ country_code: string;
524
+ region_code: number;
525
+ region: string;
526
+ city_code: number;
527
+ city: string;
528
+ postal_code: string;
529
+ longitude: number;
530
+ latitude: number;
531
+ address: string;
532
+ address_full: string;
533
+ };
534
+ }
535
+
519
536
  export interface ISeller {
520
537
  _id: string;
521
538
  user_id: {
@@ -525,6 +542,7 @@ declare namespace Components {
525
542
  email: string;
526
543
  };
527
544
  shops_info: IShop[];
545
+ nearest_point_of_cdek: INearestPointOfCdek;
528
546
  banking_details: IBankingDetails;
529
547
  shop_details: IShopDetails;
530
548
  delivery_ways: IDeliveryWays;
@@ -612,6 +630,11 @@ declare namespace Components {
612
630
  };
613
631
  }
614
632
 
633
+ export interface IAdminUpdateNearestPointOfCdekRequest
634
+ extends INearestPointOfCdek {
635
+ seller_id: string;
636
+ }
637
+
615
638
  export interface IAdminUpdateDeliveryWaysRequest extends IDeliveryWays {
616
639
  seller_id: string;
617
640
  }
@@ -719,6 +742,7 @@ declare namespace Components {
719
742
  }
720
743
 
721
744
  export interface IOrderItem {
745
+ _id: string;
722
746
  product_id: string;
723
747
  count: number;
724
748
  price: number;
@@ -731,7 +755,7 @@ declare namespace Components {
731
755
  }
732
756
 
733
757
  export interface ICreateOrder {
734
- items: IOrderItem[];
758
+ items: Omit<IOrderItem[], '_id'>;
735
759
  receive_method: ERecieveMethod;
736
760
  receive_method_data: IDeliveryInfo | IPVZ | IPickUpPoint;
737
761
  seller_id: string;
@@ -748,7 +772,7 @@ declare namespace Components {
748
772
  }
749
773
 
750
774
  export interface IGetCDEKOffices {
751
- weight_max: string;
775
+ weight_max?: string;
752
776
  }
753
777
 
754
778
  export interface ICDEKOffice {