@flexbe/sdk 0.2.40 → 0.2.42
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.
|
@@ -3,9 +3,12 @@ export declare class ApiClient {
|
|
|
3
3
|
private readonly config;
|
|
4
4
|
private readonly tokenManager;
|
|
5
5
|
constructor(config: FlexbeConfig);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
getAuthHeaders(): Promise<Record<string, string>>;
|
|
7
|
+
buildUrl(path: string, params?: object): string;
|
|
8
|
+
request<T>(config: RequestInit & {
|
|
9
|
+
url: string;
|
|
10
|
+
params?: object;
|
|
11
|
+
}): Promise<FlexbeResponse<T>>;
|
|
9
12
|
get<T>(url: string, config?: RequestInit & {
|
|
10
13
|
params?: object;
|
|
11
14
|
}): Promise<FlexbeResponse<T>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ApiClient } from './api-client';
|
|
1
2
|
import { MetaApi } from './meta-api';
|
|
2
3
|
import { SiteApi } from './site-api';
|
|
3
4
|
import type { FlexbeConfig } from '../types';
|
|
4
5
|
export declare class FlexbeClient {
|
|
5
6
|
private readonly config;
|
|
6
|
-
private readonly api;
|
|
7
7
|
private readonly siteApis;
|
|
8
|
+
readonly api: ApiClient;
|
|
8
9
|
readonly meta: MetaApi;
|
|
9
10
|
constructor(config?: Partial<FlexbeConfig>);
|
|
10
11
|
/**
|
|
@@ -347,6 +347,7 @@ export interface PageDataStructure {
|
|
|
347
347
|
}
|
|
348
348
|
export interface PageVersionDataResponse extends PageVersionItem {
|
|
349
349
|
data: PageDataStructure;
|
|
350
|
+
abtests?: PageABTest[];
|
|
350
351
|
}
|
|
351
352
|
/**
|
|
352
353
|
* @deprecated This type is deprecated and will be removed in a future release. Use PageDataStructure or related types instead.
|