nana800-remote-config 1.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/dist/main.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ declare class Nana800RemoteConfig {
2
+ private nana800Api;
3
+ private storage;
4
+ isFetched: boolean;
5
+ initFetch: (config_input: FetchRemoteConfigBody) => Promise<boolean>;
6
+ getReceivedVariablesObject: () => RemoteConfigRecordsMapType;
7
+ getString: (variable_name: string) => string | undefined;
8
+ getNumber: (variable_name: string) => number | undefined;
9
+ getBoolean: (variable_name: string) => boolean | undefined;
10
+ private getVariable;
11
+ }
12
+ export type RemoteConfigRecordsMapType = Record<string, number | string | boolean | undefined>;
13
+ export declare enum RemoteConfigPlatform {
14
+ WEB = "WEB",
15
+ ANDROID = "ANDROID",
16
+ IOS = "IOS",
17
+ DESKTOP = "DESKTOP"
18
+ }
19
+ export interface FetchRemoteConfigBody {
20
+ platform: RemoteConfigPlatform;
21
+ remote_config_project_id: string;
22
+ api_key: string;
23
+ user_uniq_id?: string;
24
+ lang_key?: string;
25
+ version?: number;
26
+ }
27
+ export declare const nana800RemoteConfig: Nana800RemoteConfig;
28
+ export {};