@foxford/sdk 8.0.1 → 8.1.1
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/api.d.cts +4 -19
- package/api.d.ts +4 -19
- package/api.js.flow +3 -26
- package/entities.cjs +557 -7
- package/entities.d.cts +524 -7
- package/entities.d.ts +524 -7
- package/entities.js +557 -7
- package/entities.js.flow +564 -7
- package/index.cjs +557 -7
- package/index.d.cts +697 -185
- package/index.d.ts +697 -185
- package/index.js +557 -7
- package/index.js.flow +817 -263
- package/package.json +6 -4
- package/plugins/autocomplete-email.d.cts +1 -1
- package/plugins/confirm-phone.d.cts +1 -1
- package/plugins/types-sRHKQ8xU.d.cts +1269 -0
- package/plugins/types-sRHKQ8xU.d.ts +1269 -0
- package/types-3Yq2Uj51.d.cts +33 -0
- package/types-BrKJGAOa.d.ts +33 -0
package/api.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { RequestPlugin, ApiRequestConfigExtended, ApiInstance,
|
|
2
|
-
import {
|
|
1
|
+
import { RequestPlugin, ApiRequestConfigExtended, ApiInstance, ResponseFailPlugin, CaptchaService, ApiErrorExtended, RequestPluginInterface, ResponseSuccessPluginInterface } from '@foxford/services';
|
|
2
|
+
import { F as FoxfordConfig } from './types-3Yq2Uj51.cjs';
|
|
3
|
+
import './antibot.cjs';
|
|
4
|
+
import '@foxford/types';
|
|
3
5
|
|
|
4
6
|
declare const apiBaseConfig: {
|
|
5
7
|
headers: {
|
|
@@ -26,23 +28,6 @@ declare class CamelizeRequestPlugin implements RequestPlugin {
|
|
|
26
28
|
isApplicable(config: ApiRequestConfigExtended): boolean;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
type WidgetsInitConfig = {
|
|
30
|
-
version?: 'latest' | string;
|
|
31
|
-
locale?: 'ru';
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type FoxfordConfig = {
|
|
35
|
-
host?: string;
|
|
36
|
-
/** @deprecated */
|
|
37
|
-
widgetsVersion?: 'latest' | string;
|
|
38
|
-
antibot?: boolean;
|
|
39
|
-
antibotConfig?: FoxfordAntibotConfig;
|
|
40
|
-
api?: ApiConfig;
|
|
41
|
-
captchaConfig?: () => CaptchaConfig;
|
|
42
|
-
/** @deprecated Не используйте инициализацию виджетов через SDK */
|
|
43
|
-
widgetsConfig?: WidgetsInitConfig;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
31
|
declare class CaptchaPlugin implements ResponseFailPlugin {
|
|
47
32
|
pluginType: "responseFail";
|
|
48
33
|
pluginName: string;
|
package/api.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { RequestPlugin, ApiRequestConfigExtended, ApiInstance,
|
|
2
|
-
import {
|
|
1
|
+
import { RequestPlugin, ApiRequestConfigExtended, ApiInstance, ResponseFailPlugin, CaptchaService, ApiErrorExtended, RequestPluginInterface, ResponseSuccessPluginInterface } from '@foxford/services';
|
|
2
|
+
import { F as FoxfordConfig } from './types-BrKJGAOa.js';
|
|
3
|
+
import './antibot.js';
|
|
4
|
+
import '@foxford/types';
|
|
3
5
|
|
|
4
6
|
declare const apiBaseConfig: {
|
|
5
7
|
headers: {
|
|
@@ -26,23 +28,6 @@ declare class CamelizeRequestPlugin implements RequestPlugin {
|
|
|
26
28
|
isApplicable(config: ApiRequestConfigExtended): boolean;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
type WidgetsInitConfig = {
|
|
30
|
-
version?: 'latest' | string;
|
|
31
|
-
locale?: 'ru';
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type FoxfordConfig = {
|
|
35
|
-
host?: string;
|
|
36
|
-
/** @deprecated */
|
|
37
|
-
widgetsVersion?: 'latest' | string;
|
|
38
|
-
antibot?: boolean;
|
|
39
|
-
antibotConfig?: FoxfordAntibotConfig;
|
|
40
|
-
api?: ApiConfig;
|
|
41
|
-
captchaConfig?: () => CaptchaConfig;
|
|
42
|
-
/** @deprecated Не используйте инициализацию виджетов через SDK */
|
|
43
|
-
widgetsConfig?: WidgetsInitConfig;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
31
|
declare class CaptchaPlugin implements ResponseFailPlugin {
|
|
47
32
|
pluginType: "responseFail";
|
|
48
33
|
pluginName: string;
|
package/api.js.flow
CHANGED
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
RequestPlugin,
|
|
4
4
|
ApiRequestConfigExtended,
|
|
5
5
|
ApiInstance,
|
|
6
|
-
type ApiConfig,
|
|
7
|
-
type CaptchaConfig,
|
|
8
6
|
ResponseFailPlugin,
|
|
9
7
|
CaptchaService,
|
|
10
8
|
ApiErrorExtended,
|
|
11
9
|
RequestPluginInterface,
|
|
12
10
|
ResponseSuccessPluginInterface,
|
|
13
11
|
} from "@foxford/services";
|
|
14
|
-
import {
|
|
12
|
+
import { F as FoxfordConfig } from "./types-BrKJGAOa.js";
|
|
13
|
+
import "./antibot.js";
|
|
14
|
+
import "@foxford/types";
|
|
15
15
|
declare var apiBaseConfig: {
|
|
16
16
|
headers: {
|
|
17
17
|
"X-Requested-With": string,
|
|
@@ -42,29 +42,6 @@ declare class CamelizeRequestPlugin mixins RequestPlugin {
|
|
|
42
42
|
): Promise<ApiRequestConfigExtended>;
|
|
43
43
|
isApplicable(config: ApiRequestConfigExtended): boolean;
|
|
44
44
|
}
|
|
45
|
-
declare type WidgetsInitConfig = {
|
|
46
|
-
version?: "latest" | string,
|
|
47
|
-
locale?: "ru",
|
|
48
|
-
...
|
|
49
|
-
};
|
|
50
|
-
declare type FoxfordConfig = {
|
|
51
|
-
host?: string,
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated
|
|
55
|
-
*/
|
|
56
|
-
widgetsVersion?: "latest" | string,
|
|
57
|
-
antibot?: boolean,
|
|
58
|
-
antibotConfig?: FoxfordAntibotConfig,
|
|
59
|
-
api?: ApiConfig,
|
|
60
|
-
captchaConfig?: () => CaptchaConfig,
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Не используйте инициализацию виджетов через SDK
|
|
64
|
-
*/
|
|
65
|
-
widgetsConfig?: WidgetsInitConfig,
|
|
66
|
-
...
|
|
67
|
-
};
|
|
68
45
|
declare class CaptchaPlugin mixins ResponseFailPlugin {
|
|
69
46
|
pluginType: "responseFail";
|
|
70
47
|
pluginName: string;
|