@mivis/petmart-api 1.2.64 → 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 +39 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.64",
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
@@ -129,6 +129,11 @@ declare namespace Components {
129
129
  number: number;
130
130
  }
131
131
 
132
+ export interface IAdminUserQueryResponse {
133
+ users: IShortUser[];
134
+ count: number;
135
+ }
136
+
132
137
  export interface IAdminUsersQueryRequest {
133
138
  skip: string;
134
139
  limit: string;
@@ -539,8 +544,41 @@ declare namespace Components {
539
544
  seller: ISeller;
540
545
  }
541
546
 
542
- export interface ISellerQueryRequest {
547
+ export interface ISellerSearchQueryRequest {
548
+ name?: string;
549
+ }
550
+
551
+ export interface IAdminSellersQueryRequest {
552
+ skip: string;
553
+ limit: string;
554
+ number?: string;
543
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;
544
582
  }
545
583
 
546
584
  export interface ICreateSellerRequest {