@mivis/petmart-api 1.2.124 → 1.2.126

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 +93 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.124",
3
+ "version": "1.2.126",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -63,7 +63,7 @@ declare namespace Components {
63
63
  }
64
64
 
65
65
  export interface ISignUpGoogleRequest {
66
- email: string;
66
+ access_token: string;
67
67
  auth_type: ELoginTypes;
68
68
  }
69
69
 
@@ -113,6 +113,9 @@ declare namespace Components {
113
113
  _id: string;
114
114
  tel?: number;
115
115
  name?: string;
116
+ surname?: string;
117
+ patronymic?: string;
118
+ full_name?: string;
116
119
  birthday?: Date;
117
120
  email?: string;
118
121
  role: ERoles;
@@ -530,6 +533,7 @@ declare namespace Components {
530
533
 
531
534
  export interface ISeller {
532
535
  _id: string;
536
+ type: ESellerTypes;
533
537
  user_id: {
534
538
  _id: string;
535
539
  tel: number;
@@ -539,6 +543,8 @@ declare namespace Components {
539
543
  shops_info: IShop[];
540
544
  nearest_point_of_cdek: INearestPointOfCdek;
541
545
  banking_details: IBankingDetails;
546
+ additional_info: ISellerAdditionalInfo;
547
+ company_info: ISellerCompanyInfo;
542
548
  shop_details: IShopDetails;
543
549
  delivery_ways: IDeliveryWays;
544
550
  balance_info: IBalanceInfo;
@@ -595,7 +601,10 @@ declare namespace Components {
595
601
  }
596
602
 
597
603
  export interface ICreateSellerRequest {
604
+ type: ESellerTypes;
598
605
  name: string;
606
+ surname: string;
607
+ patronymic?: string;
599
608
  tel: number;
600
609
  INN: number;
601
610
  shop_name: string;
@@ -1182,5 +1191,88 @@ declare namespace Components {
1182
1191
  export interface IAdminChangeSellerStatusRequest {
1183
1192
  status: ESellerStatus.APPROVED | ESellerStatus.DECLINED;
1184
1193
  }
1194
+
1195
+ export enum ESellerTypes {
1196
+ PHYSICAL = 'PHYSICAL', // Физическое лицо
1197
+ LEGAL = 'LEGAL', // Юридическое лицо
1198
+ }
1199
+
1200
+ export enum ESellerLegalTypes {
1201
+ LEGAL = 'LEGAL',
1202
+ INDIVIDUAL = 'INDIVIDUAL',
1203
+ }
1204
+
1205
+ export enum ESellerLocaleTypes {
1206
+ PHYSICAL = 'Физическое лицо',
1207
+ LEGAL = 'Юридическое лицо',
1208
+ }
1209
+
1210
+ export interface IGetInfoOfLegalRequest {
1211
+ INN: string;
1212
+ }
1213
+
1214
+ export interface ICleanPassportResponse {
1215
+ source: string;
1216
+ series: string;
1217
+ number: string;
1218
+ qc: number; // Check EPassportQc
1219
+ }
1220
+
1221
+ export enum EPassportQc {
1222
+ 'Действующий паспорт' = 0,
1223
+ 'Неправильный формат серии или номера' = 1,
1224
+ 'Исходное значение пустое' = 2,
1225
+ 'Недействительный паспорт' = 10,
1226
+ }
1227
+
1228
+ export enum ECompanyStatus {
1229
+ 'ACTIVE' = 'ACTIVE',
1230
+ 'LIQUIDATING' = 'LIQUIDATING',
1231
+ 'LIQUIDATED' = 'LIQUIDATED',
1232
+ 'BANKRUPT' = 'BANKRUPT',
1233
+ 'REORGANIZING' = 'REORGANIZING',
1234
+ }
1235
+
1236
+ export interface ISuggestion {
1237
+ value: string; // Название компании
1238
+ unrestricted_value: string;
1239
+ data: {
1240
+ kpp: string;
1241
+ branch_type: string;
1242
+ type: ESellerLegalTypes;
1243
+ state: {
1244
+ status: ECompanyStatus;
1245
+ code: null;
1246
+ };
1247
+ name: {
1248
+ full_with_opf: string;
1249
+ short_with_opf: string;
1250
+ };
1251
+ inn: string;
1252
+ ogrn: string;
1253
+ okpo: string;
1254
+ address: {
1255
+ value: string;
1256
+ };
1257
+ };
1258
+ }
1259
+
1260
+ export interface ICreatePhysicalSellerRequest extends ICreateSellerRequest {
1261
+ birthday: Date;
1262
+ passport_details: string;
1263
+ passport_photo: File;
1264
+ }
1265
+
1266
+ export interface ISellerAdditionalInfo {
1267
+ passport_details?: string;
1268
+ passport_photo?: string;
1269
+ }
1270
+
1271
+ export interface ISellerCompanyInfo {
1272
+ name: string;
1273
+ okpo: string;
1274
+ ogrn: string;
1275
+ type: ESellerLegalTypes;
1276
+ }
1185
1277
  }
1186
1278
  }