@mivis/petmart-api 1.2.315 → 1.2.317

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 +63 -46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.315",
3
+ "version": "1.2.317",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
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 TRemainingProductResponseProperties,
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
- extends Omit<
458
- ICreateProduct,
459
- | 'status'
460
- | 'category_id'
461
- | 'subCategory_id'
462
- | 'variations'
463
- | 'photo'
464
- | 'desc'
465
- | 'characteristic'
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',
@@ -776,6 +775,7 @@ declare namespace Components {
776
775
  moy_sklad?: IMoySklad;
777
776
  commission: number;
778
777
  status: ESellerStatus;
778
+ isFreeDeliveryToPvz?: boolean;
779
779
  telegram_message_id: number | null;
780
780
  api_token: string | null;
781
781
  slug: string;
@@ -862,6 +862,7 @@ declare namespace Components {
862
862
  passport_photo?: File | File[] | string;
863
863
  card_number?: string;
864
864
  is_disabled?: boolean;
865
+ isFreeDeliveryToPvz?: boolean;
865
866
  }
866
867
 
867
868
  export interface IActionsSellersRequest {
@@ -879,8 +880,7 @@ declare namespace Components {
879
880
  work_time?: IShopWorkTime[];
880
881
  }
881
882
 
882
- export interface IAdminUpdateNearestPointOfCdekRequest
883
- extends INearestPointOfCdek {
883
+ export interface IAdminUpdateNearestPointOfCdekRequest extends INearestPointOfCdek {
884
884
  seller_id: string;
885
885
  }
886
886
 
@@ -940,8 +940,10 @@ declare namespace Components {
940
940
  '_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
941
941
  >;
942
942
 
943
- export interface IPopulatedOrderItem
944
- extends Omit<IOrderItem, 'product_id'> {
943
+ export interface IPopulatedOrderItem extends Omit<
944
+ IOrderItem,
945
+ 'product_id'
946
+ > {
945
947
  product_id: IProductResponse;
946
948
  }
947
949
 
@@ -1036,7 +1038,7 @@ declare namespace Components {
1036
1038
  phones: [
1037
1039
  {
1038
1040
  number: string;
1039
- }
1041
+ },
1040
1042
  ];
1041
1043
  email: string;
1042
1044
  delivery_sum: number;
@@ -1087,8 +1089,10 @@ declare namespace Components {
1087
1089
 
1088
1090
  export type IPopulatedOrderShop = IShop;
1089
1091
 
1090
- export interface IPopulatedOrderItemApp
1091
- extends Omit<IOrderItem, 'product_id'> {
1092
+ export interface IPopulatedOrderItemApp extends Omit<
1093
+ IOrderItem,
1094
+ 'product_id'
1095
+ > {
1092
1096
  product_id: IProductResponse;
1093
1097
  }
1094
1098
 
@@ -1156,7 +1160,7 @@ declare namespace Components {
1156
1160
  phones: [
1157
1161
  {
1158
1162
  number: string;
1159
- }
1163
+ },
1160
1164
  ];
1161
1165
  email: string;
1162
1166
  note: string;
@@ -1175,7 +1179,7 @@ declare namespace Components {
1175
1179
  {
1176
1180
  day: number;
1177
1181
  time: string;
1178
- }
1182
+ },
1179
1183
  ];
1180
1184
  weight_min: number;
1181
1185
  weight_max: number;
@@ -1213,7 +1217,7 @@ declare namespace Components {
1213
1217
  {
1214
1218
  code: string;
1215
1219
  sum: number;
1216
- }
1220
+ },
1217
1221
  ];
1218
1222
  total_sum: number;
1219
1223
  currency: string;
@@ -1246,8 +1250,10 @@ declare namespace Components {
1246
1250
  promo_codes?: string[];
1247
1251
  }
1248
1252
 
1249
- export interface IAdminMultiOrderResponse
1250
- extends Omit<IMultiOrder, 'orders'> {
1253
+ export interface IAdminMultiOrderResponse extends Omit<
1254
+ IMultiOrder,
1255
+ 'orders'
1256
+ > {
1251
1257
  orders: IPopulatedOrder[];
1252
1258
  }
1253
1259
 
@@ -1368,8 +1374,9 @@ declare namespace Components {
1368
1374
  creator_type: ECreatorType;
1369
1375
  }
1370
1376
 
1371
- export interface IGetReviewsRequest
1372
- extends Partial<FilterBaseQuery & IReviewsRequest> {}
1377
+ export interface IGetReviewsRequest extends Partial<
1378
+ FilterBaseQuery & IReviewsRequest
1379
+ > {}
1373
1380
 
1374
1381
  export interface IReviewResponse {
1375
1382
  _id: string;
@@ -1626,8 +1633,10 @@ declare namespace Components {
1626
1633
  'INN_NOT_FOUND' = 'INN_NOT_FOUND',
1627
1634
  }
1628
1635
 
1629
- export interface IAdminCreatePhysicalSellerRequest
1630
- extends Omit<IAdminCreateSellerRequest, 'banking_details'> {
1636
+ export interface IAdminCreatePhysicalSellerRequest extends Omit<
1637
+ IAdminCreateSellerRequest,
1638
+ 'banking_details'
1639
+ > {
1631
1640
  banking_details: IPhysicalBankingDetails;
1632
1641
  passport_details: string;
1633
1642
  passport_photo: File | File[];
@@ -1893,8 +1902,10 @@ declare namespace Components {
1893
1902
  fileName: string;
1894
1903
  }
1895
1904
 
1896
- export interface IPopulatedHorse
1897
- extends Omit<IHorse, 'user_id' | 'breed' | 'suit' | 'category'> {
1905
+ export interface IPopulatedHorse extends Omit<
1906
+ IHorse,
1907
+ 'user_id' | 'breed' | 'suit' | 'category'
1908
+ > {
1898
1909
  user_id: IPopulatedOrderUserApp;
1899
1910
  breed: IBreed;
1900
1911
  suit: ISuit;
@@ -2010,8 +2021,10 @@ declare namespace Components {
2010
2021
  PUBLISHED = 'PUBLISHED',
2011
2022
  ARCHIVED = 'ARCHIVED',
2012
2023
  }
2013
- export interface IPopulatedCollection
2014
- extends Omit<ICollection, 'products'> {
2024
+ export interface IPopulatedCollection extends Omit<
2025
+ ICollection,
2026
+ 'products'
2027
+ > {
2015
2028
  products: IProductResponse[];
2016
2029
  }
2017
2030
 
@@ -2212,11 +2225,15 @@ declare namespace Components {
2212
2225
  REMOVED = 'REMOVED', // Убран из базы
2213
2226
  }
2214
2227
 
2215
- export interface IToggleFavoriteRequest
2216
- extends Omit<IFavorite, 'user_id' | 'session_id'> {}
2228
+ export interface IToggleFavoriteRequest extends Omit<
2229
+ IFavorite,
2230
+ 'user_id' | 'session_id'
2231
+ > {}
2217
2232
 
2218
- export interface IGetFavoritesRequest
2219
- extends Omit<IFavorite, 'entity_id' | 'user_id' | 'session_id'> {}
2233
+ export interface IGetFavoritesRequest extends Omit<
2234
+ IFavorite,
2235
+ 'entity_id' | 'user_id' | 'session_id'
2236
+ > {}
2220
2237
 
2221
2238
  export interface IToggleFavoriteResponse {
2222
2239
  action: EFavoriteToggleActions;
@@ -2289,8 +2306,10 @@ declare namespace Components {
2289
2306
  reviewsData: IReviewsData;
2290
2307
  }
2291
2308
 
2292
- export interface IPopulatedService
2293
- extends Omit<IService, 'category' | 'user_id'> {
2309
+ export interface IPopulatedService extends Omit<
2310
+ IService,
2311
+ 'category' | 'user_id'
2312
+ > {
2294
2313
  _id: string;
2295
2314
  category: IServiceCategory;
2296
2315
  user_id: IPopulatedOrderUserApp;
@@ -2314,12 +2333,10 @@ declare namespace Components {
2314
2333
  }
2315
2334
 
2316
2335
  export interface OptionalUserLocationQuery
2317
- extends OptionalUserQuery,
2318
- OptionalLocationQuery {}
2336
+ extends OptionalUserQuery, OptionalLocationQuery {}
2319
2337
 
2320
2338
  export interface CombinedUserLocationFilterQuery
2321
- extends OptionalUserLocationQuery,
2322
- FilterBaseQuery {}
2339
+ extends OptionalUserLocationQuery, FilterBaseQuery {}
2323
2340
 
2324
2341
  export interface ISavePushToken {
2325
2342
  token: string;