@mivis/petmart-api 1.2.65 → 1.2.66

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 +34 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.65",
3
+ "version": "1.2.66",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -544,10 +544,43 @@ declare namespace Components {
544
544
  seller: ISeller;
545
545
  }
546
546
 
547
- export interface ISellerQueryRequest {
547
+ export interface ISellerSearchQueryRequest {
548
548
  name?: string;
549
549
  }
550
550
 
551
+ export interface IAdminSellersQueryRequest {
552
+ skip: string;
553
+ limit: string;
554
+ number?: string;
555
+ name?: string;
556
+ shop_name?: string;
557
+ tel?: string;
558
+ all_fields?: string;
559
+ }
560
+
561
+ export interface IAdminSellersQueryResponse {
562
+ sellers: ISeller[];
563
+ count: number;
564
+ }
565
+
566
+ export interface ISellerInfo {
567
+ name: string;
568
+ email: string;
569
+ tel: number;
570
+ password: string;
571
+ }
572
+
573
+ export type ICreateShopDetails = Omit<IShopDetails, 'logo' | 'banner'> & {
574
+ logo: File;
575
+ banner: File;
576
+ };
577
+
578
+ export interface IAdminCreateSellerRequest {
579
+ seller_info: ISellerInfo;
580
+ banking_details: IBankingDetails;
581
+ shop_details: ICreateShopDetails;
582
+ }
583
+
551
584
  export interface ICreateSellerRequest {
552
585
  name: string;
553
586
  tel: number;