@foxford/sdk 7.0.1 → 8.0.0

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/index.cjs CHANGED
@@ -1688,7 +1688,8 @@ var _Foxford = class _Foxford {
1688
1688
  const captchaConfig = (_b = this.config) == null ? void 0 : _b.captchaConfig;
1689
1689
  const apiInstance = import_services2.ApiService.createFoxApiInstance({
1690
1690
  config: apiConfig2.config,
1691
- plugins: getPlugins(apiConfig2, captchaConfig)
1691
+ plugins: getPlugins(apiConfig2, captchaConfig),
1692
+ retry: apiConfig2.retry
1692
1693
  });
1693
1694
  if (!((_d = (_c = this.config) == null ? void 0 : _c.api) == null ? void 0 : _d.config.baseURL) && this.config.host) apiInstance.defaults.baseURL = this.config.host;
1694
1695
  return apiInstance;
package/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiInstance, ApiConfig, CaptchaConfig, ApiResponse, ApiService, CaptchaService } from '@foxford/services';
2
- export { ApiAdapter, ApiBasicCredentials, ApiConfig, ApiError, ApiErrorExtended, ApiInstance, ApiInterceptorManager, ApiMethod, ApiPromise, ApiProxyConfig, ApiRequestConfig, ApiRequestConfigExtended, ApiResponse, ApiResponseType, ApiService, ApiServiceInterface, ApiStatic, ApiTransformer, Cancel, CancelStatic, CancelToken, CancelTokenSource, CancelTokenStatic, Canceler, CaptchaError, CaptchaService, RequestPlugin, RequestPluginInterface, ResponseError, ResponseFailPlugin, ResponseSuccessPlugin, ResponseSuccessPluginInterface } from '@foxford/services';
2
+ export { ApiAdapter, ApiBasicCredentials, ApiConfig, ApiError, ApiErrorExtended, ApiInstance, ApiInterceptorManager, ApiMethod, ApiPromise, ApiProxyConfig, ApiRequestConfig, ApiRequestConfigExtended, ApiResponse, ApiResponseType, ApiRetryConfig, ApiService, ApiServiceInterface, ApiStatic, ApiTransformer, Cancel, CancelStatic, CancelToken, CancelTokenSource, CancelTokenStatic, Canceler, CaptchaError, CaptchaService, RequestPlugin, RequestPluginInterface, ResponseError, ResponseFailPlugin, ResponseSuccessPlugin, ResponseSuccessPluginInterface } from '@foxford/services';
3
3
  import { CartItemResourceType, BusinessUnitAbbreviation, Course } from '@foxford/types';
4
4
 
5
5
  type PupilRole = '11 класс' | '10 класс' | '9 класс' | '8 класс' | '7 класс' | '6 класс' | '5 класс' | '4 класс' | '3 класс' | '2 класс' | '1 класс';
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiInstance, ApiConfig, CaptchaConfig, ApiResponse, ApiService, CaptchaService } from '@foxford/services';
2
- export { ApiAdapter, ApiBasicCredentials, ApiConfig, ApiError, ApiErrorExtended, ApiInstance, ApiInterceptorManager, ApiMethod, ApiPromise, ApiProxyConfig, ApiRequestConfig, ApiRequestConfigExtended, ApiResponse, ApiResponseType, ApiService, ApiServiceInterface, ApiStatic, ApiTransformer, Cancel, CancelStatic, CancelToken, CancelTokenSource, CancelTokenStatic, Canceler, CaptchaError, CaptchaService, RequestPlugin, RequestPluginInterface, ResponseError, ResponseFailPlugin, ResponseSuccessPlugin, ResponseSuccessPluginInterface } from '@foxford/services';
2
+ export { ApiAdapter, ApiBasicCredentials, ApiConfig, ApiError, ApiErrorExtended, ApiInstance, ApiInterceptorManager, ApiMethod, ApiPromise, ApiProxyConfig, ApiRequestConfig, ApiRequestConfigExtended, ApiResponse, ApiResponseType, ApiRetryConfig, ApiService, ApiServiceInterface, ApiStatic, ApiTransformer, Cancel, CancelStatic, CancelToken, CancelTokenSource, CancelTokenStatic, Canceler, CaptchaError, CaptchaService, RequestPlugin, RequestPluginInterface, ResponseError, ResponseFailPlugin, ResponseSuccessPlugin, ResponseSuccessPluginInterface } from '@foxford/services';
3
3
  import { CartItemResourceType, BusinessUnitAbbreviation, Course } from '@foxford/types';
4
4
 
5
5
  type PupilRole = '11 класс' | '10 класс' | '9 класс' | '8 класс' | '7 класс' | '6 класс' | '5 класс' | '4 класс' | '3 класс' | '2 класс' | '1 класс';
package/index.js CHANGED
@@ -1636,7 +1636,8 @@ var _Foxford = class _Foxford {
1636
1636
  const captchaConfig = (_b = this.config) == null ? void 0 : _b.captchaConfig;
1637
1637
  const apiInstance = ApiService.createFoxApiInstance({
1638
1638
  config: apiConfig2.config,
1639
- plugins: getPlugins(apiConfig2, captchaConfig)
1639
+ plugins: getPlugins(apiConfig2, captchaConfig),
1640
+ retry: apiConfig2.retry
1640
1641
  });
1641
1642
  if (!((_d = (_c = this.config) == null ? void 0 : _c.api) == null ? void 0 : _d.config.baseURL) && this.config.host) apiInstance.defaults.baseURL = this.config.host;
1642
1643
  return apiInstance;
package/index.js.flow CHANGED
@@ -22,6 +22,7 @@ declare export {
22
22
  ApiRequestConfigExtended,
23
23
  ApiResponse,
24
24
  ApiResponseType,
25
+ ApiRetryConfig,
25
26
  ApiService,
26
27
  ApiServiceInterface,
27
28
  ApiStatic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxford/sdk",
3
- "version": "7.0.1",
3
+ "version": "8.0.0",
4
4
  "description": "Foxford sdk for external projects",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "decamelize-keys-deep": "^0.1.1",
28
28
  "js-levenshtein": "^1.1.6",
29
29
  "lodash": "^4.18.1",
30
- "@foxford/services": "2.1.0",
30
+ "@foxford/services": "2.2.0",
31
31
  "@foxford/types": "1.2.1"
32
32
  },
33
33
  "main": "./index.cjs",
@@ -95,6 +95,6 @@
95
95
  "package.json",
96
96
  "plugins"
97
97
  ],
98
- "sha": "8ba3d93",
98
+ "sha": "7da7d38",
99
99
  "scripts": {}
100
100
  }