@mivis/petmart-api 1.2.134 → 1.2.136
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.
- package/package.json +1 -1
- package/type.d.ts +27 -5
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -130,6 +130,8 @@ declare namespace Components {
|
|
|
130
130
|
_id: string;
|
|
131
131
|
tel?: number;
|
|
132
132
|
name?: string;
|
|
133
|
+
surname?: string;
|
|
134
|
+
full_name?: string;
|
|
133
135
|
birthday?: Date;
|
|
134
136
|
email?: string;
|
|
135
137
|
number: number;
|
|
@@ -142,7 +144,7 @@ declare namespace Components {
|
|
|
142
144
|
|
|
143
145
|
export interface IAdminUsersQueryRequest extends FilterBaseQuery {
|
|
144
146
|
tel?: string;
|
|
145
|
-
|
|
147
|
+
full_name?: string;
|
|
146
148
|
email?: string;
|
|
147
149
|
number?: string;
|
|
148
150
|
all_fields?: string;
|
|
@@ -537,7 +539,10 @@ declare namespace Components {
|
|
|
537
539
|
user_id: {
|
|
538
540
|
_id: string;
|
|
539
541
|
tel: number;
|
|
542
|
+
full_name: string;
|
|
540
543
|
name: string;
|
|
544
|
+
surname: string;
|
|
545
|
+
patronymic?: string;
|
|
541
546
|
email: string;
|
|
542
547
|
};
|
|
543
548
|
shops_info: IShop[];
|
|
@@ -569,7 +574,7 @@ declare namespace Components {
|
|
|
569
574
|
export interface IAdminSellersQueryRequest extends FilterBaseQuery {
|
|
570
575
|
number?: string;
|
|
571
576
|
status?: string;
|
|
572
|
-
|
|
577
|
+
full_name?: string;
|
|
573
578
|
shop_name?: string;
|
|
574
579
|
tel?: string;
|
|
575
580
|
all_fields?: string;
|
|
@@ -588,6 +593,7 @@ declare namespace Components {
|
|
|
588
593
|
tel: number;
|
|
589
594
|
type: ESellerTypes;
|
|
590
595
|
opt_otch: boolean;
|
|
596
|
+
birthday?: Date;
|
|
591
597
|
}
|
|
592
598
|
|
|
593
599
|
export interface ICreateSellerInfo extends ISellerInfo {
|
|
@@ -620,10 +626,14 @@ declare namespace Components {
|
|
|
620
626
|
seller_info: ISellerInfo;
|
|
621
627
|
banking_details: IBankingDetails;
|
|
622
628
|
shop_details: ICreateShopDetails;
|
|
629
|
+
company_info: ISellerCompanyInfo;
|
|
623
630
|
logo: File | File[] | string;
|
|
624
631
|
banner: File | File[] | string;
|
|
625
632
|
seller_id: string;
|
|
626
633
|
toDeletePhotos?: string[];
|
|
634
|
+
passport_details?: string;
|
|
635
|
+
passport_photo?: File | File[] | string;
|
|
636
|
+
card_number?: string;
|
|
627
637
|
}
|
|
628
638
|
|
|
629
639
|
export interface IActionsSellersRequest {
|
|
@@ -681,7 +691,7 @@ declare namespace Components {
|
|
|
681
691
|
|
|
682
692
|
export type IPopulatedOrderUser = Pick<
|
|
683
693
|
IUser,
|
|
684
|
-
'_id' | 'name' | 'tel' | 'email'
|
|
694
|
+
'_id' | 'full_name' | 'name' | 'surname' | 'patronymic' | 'tel' | 'email'
|
|
685
695
|
>;
|
|
686
696
|
|
|
687
697
|
export type TPopulatedProductId = Pick<
|
|
@@ -833,7 +843,10 @@ declare namespace Components {
|
|
|
833
843
|
product_id: Pick<IProduct, '_id' | 'name' | 'photo' | 'discount'>;
|
|
834
844
|
}
|
|
835
845
|
|
|
836
|
-
export type IPopulatedOrderUserApp = Pick<
|
|
846
|
+
export type IPopulatedOrderUserApp = Pick<
|
|
847
|
+
IUser,
|
|
848
|
+
'_id' | 'name' | 'full_name' | 'surname' | 'patronymic' | 'tel'
|
|
849
|
+
>;
|
|
837
850
|
|
|
838
851
|
export type IPopulatedOrderApp = Omit<
|
|
839
852
|
IOrder,
|
|
@@ -1319,10 +1332,19 @@ declare namespace Components {
|
|
|
1319
1332
|
|
|
1320
1333
|
export interface IAdminCreatePhysicalSellerRequest
|
|
1321
1334
|
extends IAdminCreateSellerRequest {
|
|
1322
|
-
birthday: Date;
|
|
1323
1335
|
passport_details: string;
|
|
1324
1336
|
passport_photo: File | File[];
|
|
1325
1337
|
card_number?: string;
|
|
1326
1338
|
}
|
|
1339
|
+
|
|
1340
|
+
export interface IUserWithSellerType extends IUser {
|
|
1341
|
+
type: EUserSellerType;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export enum EUserSellerType {
|
|
1345
|
+
'PHYSICAL' = 'PHYSICAL',
|
|
1346
|
+
'LEGAL' = 'LEGAL',
|
|
1347
|
+
'NOT_SELLER' = 'NOT_SELLER',
|
|
1348
|
+
}
|
|
1327
1349
|
}
|
|
1328
1350
|
}
|