@mivis/petmart-api 1.2.314 → 1.2.316
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 +62 -46
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -337,6 +337,7 @@ declare namespace Components {
|
|
|
337
337
|
PUBLISHED = 'PUBLISHED',
|
|
338
338
|
REJECTED = 'REJECTED',
|
|
339
339
|
ARCHIVED = 'ARCHIVED',
|
|
340
|
+
DISABLED = 'DISABLED',
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
export interface IProductResponse {
|
|
@@ -422,7 +423,8 @@ declare namespace Components {
|
|
|
422
423
|
>;
|
|
423
424
|
|
|
424
425
|
export interface IProductDraftResponse
|
|
425
|
-
extends
|
|
426
|
+
extends
|
|
427
|
+
TRemainingProductResponseProperties,
|
|
426
428
|
Partial<TOptionalProperties> {}
|
|
427
429
|
|
|
428
430
|
export interface IProductWithReviewResponse {
|
|
@@ -453,17 +455,16 @@ declare namespace Components {
|
|
|
453
455
|
variations?: IAddVariation[];
|
|
454
456
|
}
|
|
455
457
|
|
|
456
|
-
export interface ICreateVariation
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
> {
|
|
458
|
+
export interface ICreateVariation extends Omit<
|
|
459
|
+
ICreateProduct,
|
|
460
|
+
| 'status'
|
|
461
|
+
| 'category_id'
|
|
462
|
+
| 'subCategory_id'
|
|
463
|
+
| 'variations'
|
|
464
|
+
| 'photo'
|
|
465
|
+
| 'desc'
|
|
466
|
+
| 'characteristic'
|
|
467
|
+
> {
|
|
467
468
|
photo?: File[];
|
|
468
469
|
desc?: string;
|
|
469
470
|
seller_id: string;
|
|
@@ -610,8 +611,7 @@ declare namespace Components {
|
|
|
610
611
|
photo: File;
|
|
611
612
|
}
|
|
612
613
|
|
|
613
|
-
export interface IUpdateCategoryRequest
|
|
614
|
-
extends Partial<ICreateCategoryRequest> {
|
|
614
|
+
export interface IUpdateCategoryRequest extends Partial<ICreateCategoryRequest> {
|
|
615
615
|
toDeletePhoto?: string;
|
|
616
616
|
}
|
|
617
617
|
|
|
@@ -650,8 +650,7 @@ declare namespace Components {
|
|
|
650
650
|
values: string[];
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
-
export interface IUpdateSubCategoryRequest
|
|
654
|
-
extends Partial<ICreateSubCategoryRequest> {}
|
|
653
|
+
export interface IUpdateSubCategoryRequest extends Partial<ICreateSubCategoryRequest> {}
|
|
655
654
|
|
|
656
655
|
export enum ESubCategoryStatus {
|
|
657
656
|
MODERATION = 'MODERATION',
|
|
@@ -879,8 +878,7 @@ declare namespace Components {
|
|
|
879
878
|
work_time?: IShopWorkTime[];
|
|
880
879
|
}
|
|
881
880
|
|
|
882
|
-
export interface IAdminUpdateNearestPointOfCdekRequest
|
|
883
|
-
extends INearestPointOfCdek {
|
|
881
|
+
export interface IAdminUpdateNearestPointOfCdekRequest extends INearestPointOfCdek {
|
|
884
882
|
seller_id: string;
|
|
885
883
|
}
|
|
886
884
|
|
|
@@ -940,8 +938,10 @@ declare namespace Components {
|
|
|
940
938
|
'_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
|
|
941
939
|
>;
|
|
942
940
|
|
|
943
|
-
export interface IPopulatedOrderItem
|
|
944
|
-
|
|
941
|
+
export interface IPopulatedOrderItem extends Omit<
|
|
942
|
+
IOrderItem,
|
|
943
|
+
'product_id'
|
|
944
|
+
> {
|
|
945
945
|
product_id: IProductResponse;
|
|
946
946
|
}
|
|
947
947
|
|
|
@@ -1036,7 +1036,7 @@ declare namespace Components {
|
|
|
1036
1036
|
phones: [
|
|
1037
1037
|
{
|
|
1038
1038
|
number: string;
|
|
1039
|
-
}
|
|
1039
|
+
},
|
|
1040
1040
|
];
|
|
1041
1041
|
email: string;
|
|
1042
1042
|
delivery_sum: number;
|
|
@@ -1087,8 +1087,10 @@ declare namespace Components {
|
|
|
1087
1087
|
|
|
1088
1088
|
export type IPopulatedOrderShop = IShop;
|
|
1089
1089
|
|
|
1090
|
-
export interface IPopulatedOrderItemApp
|
|
1091
|
-
|
|
1090
|
+
export interface IPopulatedOrderItemApp extends Omit<
|
|
1091
|
+
IOrderItem,
|
|
1092
|
+
'product_id'
|
|
1093
|
+
> {
|
|
1092
1094
|
product_id: IProductResponse;
|
|
1093
1095
|
}
|
|
1094
1096
|
|
|
@@ -1156,7 +1158,7 @@ declare namespace Components {
|
|
|
1156
1158
|
phones: [
|
|
1157
1159
|
{
|
|
1158
1160
|
number: string;
|
|
1159
|
-
}
|
|
1161
|
+
},
|
|
1160
1162
|
];
|
|
1161
1163
|
email: string;
|
|
1162
1164
|
note: string;
|
|
@@ -1175,7 +1177,7 @@ declare namespace Components {
|
|
|
1175
1177
|
{
|
|
1176
1178
|
day: number;
|
|
1177
1179
|
time: string;
|
|
1178
|
-
}
|
|
1180
|
+
},
|
|
1179
1181
|
];
|
|
1180
1182
|
weight_min: number;
|
|
1181
1183
|
weight_max: number;
|
|
@@ -1213,7 +1215,7 @@ declare namespace Components {
|
|
|
1213
1215
|
{
|
|
1214
1216
|
code: string;
|
|
1215
1217
|
sum: number;
|
|
1216
|
-
}
|
|
1218
|
+
},
|
|
1217
1219
|
];
|
|
1218
1220
|
total_sum: number;
|
|
1219
1221
|
currency: string;
|
|
@@ -1246,8 +1248,10 @@ declare namespace Components {
|
|
|
1246
1248
|
promo_codes?: string[];
|
|
1247
1249
|
}
|
|
1248
1250
|
|
|
1249
|
-
export interface IAdminMultiOrderResponse
|
|
1250
|
-
|
|
1251
|
+
export interface IAdminMultiOrderResponse extends Omit<
|
|
1252
|
+
IMultiOrder,
|
|
1253
|
+
'orders'
|
|
1254
|
+
> {
|
|
1251
1255
|
orders: IPopulatedOrder[];
|
|
1252
1256
|
}
|
|
1253
1257
|
|
|
@@ -1368,8 +1372,9 @@ declare namespace Components {
|
|
|
1368
1372
|
creator_type: ECreatorType;
|
|
1369
1373
|
}
|
|
1370
1374
|
|
|
1371
|
-
export interface IGetReviewsRequest
|
|
1372
|
-
|
|
1375
|
+
export interface IGetReviewsRequest extends Partial<
|
|
1376
|
+
FilterBaseQuery & IReviewsRequest
|
|
1377
|
+
> {}
|
|
1373
1378
|
|
|
1374
1379
|
export interface IReviewResponse {
|
|
1375
1380
|
_id: string;
|
|
@@ -1626,8 +1631,10 @@ declare namespace Components {
|
|
|
1626
1631
|
'INN_NOT_FOUND' = 'INN_NOT_FOUND',
|
|
1627
1632
|
}
|
|
1628
1633
|
|
|
1629
|
-
export interface IAdminCreatePhysicalSellerRequest
|
|
1630
|
-
|
|
1634
|
+
export interface IAdminCreatePhysicalSellerRequest extends Omit<
|
|
1635
|
+
IAdminCreateSellerRequest,
|
|
1636
|
+
'banking_details'
|
|
1637
|
+
> {
|
|
1631
1638
|
banking_details: IPhysicalBankingDetails;
|
|
1632
1639
|
passport_details: string;
|
|
1633
1640
|
passport_photo: File | File[];
|
|
@@ -1893,8 +1900,10 @@ declare namespace Components {
|
|
|
1893
1900
|
fileName: string;
|
|
1894
1901
|
}
|
|
1895
1902
|
|
|
1896
|
-
export interface IPopulatedHorse
|
|
1897
|
-
|
|
1903
|
+
export interface IPopulatedHorse extends Omit<
|
|
1904
|
+
IHorse,
|
|
1905
|
+
'user_id' | 'breed' | 'suit' | 'category'
|
|
1906
|
+
> {
|
|
1898
1907
|
user_id: IPopulatedOrderUserApp;
|
|
1899
1908
|
breed: IBreed;
|
|
1900
1909
|
suit: ISuit;
|
|
@@ -2010,8 +2019,10 @@ declare namespace Components {
|
|
|
2010
2019
|
PUBLISHED = 'PUBLISHED',
|
|
2011
2020
|
ARCHIVED = 'ARCHIVED',
|
|
2012
2021
|
}
|
|
2013
|
-
export interface IPopulatedCollection
|
|
2014
|
-
|
|
2022
|
+
export interface IPopulatedCollection extends Omit<
|
|
2023
|
+
ICollection,
|
|
2024
|
+
'products'
|
|
2025
|
+
> {
|
|
2015
2026
|
products: IProductResponse[];
|
|
2016
2027
|
}
|
|
2017
2028
|
|
|
@@ -2212,11 +2223,15 @@ declare namespace Components {
|
|
|
2212
2223
|
REMOVED = 'REMOVED', // Убран из базы
|
|
2213
2224
|
}
|
|
2214
2225
|
|
|
2215
|
-
export interface IToggleFavoriteRequest
|
|
2216
|
-
|
|
2226
|
+
export interface IToggleFavoriteRequest extends Omit<
|
|
2227
|
+
IFavorite,
|
|
2228
|
+
'user_id' | 'session_id'
|
|
2229
|
+
> {}
|
|
2217
2230
|
|
|
2218
|
-
export interface IGetFavoritesRequest
|
|
2219
|
-
|
|
2231
|
+
export interface IGetFavoritesRequest extends Omit<
|
|
2232
|
+
IFavorite,
|
|
2233
|
+
'entity_id' | 'user_id' | 'session_id'
|
|
2234
|
+
> {}
|
|
2220
2235
|
|
|
2221
2236
|
export interface IToggleFavoriteResponse {
|
|
2222
2237
|
action: EFavoriteToggleActions;
|
|
@@ -2289,8 +2304,10 @@ declare namespace Components {
|
|
|
2289
2304
|
reviewsData: IReviewsData;
|
|
2290
2305
|
}
|
|
2291
2306
|
|
|
2292
|
-
export interface IPopulatedService
|
|
2293
|
-
|
|
2307
|
+
export interface IPopulatedService extends Omit<
|
|
2308
|
+
IService,
|
|
2309
|
+
'category' | 'user_id'
|
|
2310
|
+
> {
|
|
2294
2311
|
_id: string;
|
|
2295
2312
|
category: IServiceCategory;
|
|
2296
2313
|
user_id: IPopulatedOrderUserApp;
|
|
@@ -2314,12 +2331,10 @@ declare namespace Components {
|
|
|
2314
2331
|
}
|
|
2315
2332
|
|
|
2316
2333
|
export interface OptionalUserLocationQuery
|
|
2317
|
-
extends OptionalUserQuery,
|
|
2318
|
-
OptionalLocationQuery {}
|
|
2334
|
+
extends OptionalUserQuery, OptionalLocationQuery {}
|
|
2319
2335
|
|
|
2320
2336
|
export interface CombinedUserLocationFilterQuery
|
|
2321
|
-
extends OptionalUserLocationQuery,
|
|
2322
|
-
FilterBaseQuery {}
|
|
2337
|
+
extends OptionalUserLocationQuery, FilterBaseQuery {}
|
|
2323
2338
|
|
|
2324
2339
|
export interface ISavePushToken {
|
|
2325
2340
|
token: string;
|
|
@@ -2472,6 +2487,7 @@ declare namespace Components {
|
|
|
2472
2487
|
end_date: Date;
|
|
2473
2488
|
status: EPromoStatus;
|
|
2474
2489
|
usage_limit_user: number;
|
|
2490
|
+
usage_limit_total: number;
|
|
2475
2491
|
used_count: number;
|
|
2476
2492
|
target_type: EPromoTargetType;
|
|
2477
2493
|
target_sellers: {
|