@mivis/petmart-api 1.2.133 → 1.2.135

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 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.133",
3
+ "version": "1.2.135",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -142,7 +142,7 @@ declare namespace Components {
142
142
 
143
143
  export interface IAdminUsersQueryRequest extends FilterBaseQuery {
144
144
  tel?: string;
145
- name?: string;
145
+ full_name?: string;
146
146
  email?: string;
147
147
  number?: string;
148
148
  all_fields?: string;
@@ -537,7 +537,10 @@ declare namespace Components {
537
537
  user_id: {
538
538
  _id: string;
539
539
  tel: number;
540
+ full_name: string;
540
541
  name: string;
542
+ surname: string;
543
+ patronymic?: string;
541
544
  email: string;
542
545
  };
543
546
  shops_info: IShop[];
@@ -569,7 +572,7 @@ declare namespace Components {
569
572
  export interface IAdminSellersQueryRequest extends FilterBaseQuery {
570
573
  number?: string;
571
574
  status?: string;
572
- name?: string;
575
+ full_name?: string;
573
576
  shop_name?: string;
574
577
  tel?: string;
575
578
  all_fields?: string;
@@ -588,6 +591,7 @@ declare namespace Components {
588
591
  tel: number;
589
592
  type: ESellerTypes;
590
593
  opt_otch: boolean;
594
+ birthday?: Date;
591
595
  }
592
596
 
593
597
  export interface ICreateSellerInfo extends ISellerInfo {
@@ -620,10 +624,14 @@ declare namespace Components {
620
624
  seller_info: ISellerInfo;
621
625
  banking_details: IBankingDetails;
622
626
  shop_details: ICreateShopDetails;
627
+ company_info: ISellerCompanyInfo;
623
628
  logo: File | File[] | string;
624
629
  banner: File | File[] | string;
625
630
  seller_id: string;
626
631
  toDeletePhotos?: string[];
632
+ passport_details?: string;
633
+ passport_photo?: File | File[] | string;
634
+ card_number?: string;
627
635
  }
628
636
 
629
637
  export interface IActionsSellersRequest {
@@ -681,7 +689,7 @@ declare namespace Components {
681
689
 
682
690
  export type IPopulatedOrderUser = Pick<
683
691
  IUser,
684
- '_id' | 'name' | 'tel' | 'email'
692
+ '_id' | 'full_name' | 'name' | 'surname' | 'patronymic' | 'tel' | 'email'
685
693
  >;
686
694
 
687
695
  export type TPopulatedProductId = Pick<
@@ -833,7 +841,10 @@ declare namespace Components {
833
841
  product_id: Pick<IProduct, '_id' | 'name' | 'photo' | 'discount'>;
834
842
  }
835
843
 
836
- export type IPopulatedOrderUserApp = Pick<IUser, '_id' | 'name' | 'tel'>;
844
+ export type IPopulatedOrderUserApp = Pick<
845
+ IUser,
846
+ '_id' | 'name' | 'full_name' | 'surname' | 'patronymic' | 'tel'
847
+ >;
837
848
 
838
849
  export type IPopulatedOrderApp = Omit<
839
850
  IOrder,
@@ -1267,7 +1278,7 @@ declare namespace Components {
1267
1278
  }
1268
1279
 
1269
1280
  export interface ICreatePhysicalSellerRequest extends ICreateSellerRequest {
1270
- birthday: Date;
1281
+ birthday: string;
1271
1282
  passport_details: string;
1272
1283
  passport_photo: File;
1273
1284
  }
@@ -1319,10 +1330,19 @@ declare namespace Components {
1319
1330
 
1320
1331
  export interface IAdminCreatePhysicalSellerRequest
1321
1332
  extends IAdminCreateSellerRequest {
1322
- birthday: Date;
1323
1333
  passport_details: string;
1324
1334
  passport_photo: File | File[];
1325
1335
  card_number?: string;
1326
1336
  }
1337
+
1338
+ export interface IUserWithSellerType extends IUser {
1339
+ type: EUserSellerType;
1340
+ }
1341
+
1342
+ export enum EUserSellerType {
1343
+ 'PHYSICAL' = 'PHYSICAL',
1344
+ 'LEGAL' = 'LEGAL',
1345
+ 'NOT_SELLER' = 'NOT_SELLER',
1346
+ }
1327
1347
  }
1328
1348
  }