fansunited-sdk-esm 1.18.1 → 1.18.3
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/Core/Global/Constants/TestConstants.d.ts +1 -0
- package/Core/Global/Helper.d.ts +8 -1
- package/Core/Https/ProfileHttps.d.ts +1 -0
- package/index.js +13 -13
- package/index.js.map +2 -2
- package/package.json +1 -1
package/Core/Global/Helper.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
export declare const requestChunkBuild: (ids: string[]) => any;
|
|
2
|
-
export declare const limitIds: (ids: string[]) => any;
|
|
2
|
+
export declare const limitIds: (ids: string[], limit: number) => any;
|
|
3
3
|
export declare const setBaseUrl: (environment: string, namespace: string) => string;
|
|
4
4
|
export declare const transformIdsToBeUnique: (ids: string[]) => string[];
|
|
5
5
|
export declare const remapKeysToCamelCase: (obj: any) => any;
|
|
6
6
|
export declare const isDisabledCache: (disableCache: boolean) => boolean;
|
|
7
7
|
export declare const initDisableCache: () => string;
|
|
8
8
|
export declare const sortArrayInAscOrder: (array: string[]) => string[];
|
|
9
|
+
/**
|
|
10
|
+
* Used for test cases when we want an array with more than X length
|
|
11
|
+
* @param value The value that will contain in the array
|
|
12
|
+
* @param length The length of the array
|
|
13
|
+
* @returns New array with provided length and values
|
|
14
|
+
*/
|
|
15
|
+
export declare const constructStringArrayWithProvidedLength: (value: string, length: number) => string[];
|
|
@@ -11,6 +11,7 @@ export default class ProfileHttps extends Https {
|
|
|
11
11
|
private followingRemapper;
|
|
12
12
|
private followersRemapper;
|
|
13
13
|
private lang;
|
|
14
|
+
private limitIds;
|
|
14
15
|
constructor(configuration: SDKConfiguraitonModel);
|
|
15
16
|
getCountries: (disableCache: boolean) => Promise<ProfileCountryModel[]>;
|
|
16
17
|
getProfile: (id?: string) => Promise<ProfileModel>;
|