-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
61 lines (57 loc) · 1.72 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* Returns a Promise that resolves with a new ExperienceLaunchAPI object.
* @param imsOrgId - the IMS Org Id
* @param apiKey - the API key for your integration
* @param accessToken - the access token for your integration
* @returns a Promise with a ExperienceLaunchAPI object
*/
declare function init(imsOrgId: string, apiKey: string, accessToken: string): Promise<ExperienceLaunchAPI>;
/**
* This class provides methods to call your ExperienceLaunchAPI APIs.
* Before calling any method initialize the instance by calling the `init` method on it
* with valid values for imsOrgId, apiKey and accessToken
*/
declare class ExperienceLaunchAPI {
/**
* Initializes a ExperienceLaunchAPI object and returns it.
* @param imsOrgId - the IMS Org Id
* @param apiKey - the API key for your integration
* @param accessToken - the access token for your integration
* @returns a ExperienceLaunchAPI object
*/
init(imsOrgId: string, apiKey: string, accessToken: string): Promise<ExperienceLaunchAPI>;
/**
* The IMS Org Id
*/
imsOrgId: string;
/**
* The api key from your integration
*/
apiKey: string;
/**
* The access token from your integration
*/
accessToken: string;
/**
* Get an Environment by Id.
* @param id - the environment id
* @returns the response
*/
getEnvironment(id: string): Promise<Response>;
}
/**
* An example of a typed object.
* @property optionA - some option
* @property optionB - another option
*/
declare type MyParameters = {
optionA: string;
optionB: string;
};
/**
* Another typed object.
* @property mayBeSomething - an option
*/
declare type AnotherThing = {
mayBeSomething: boolean;
};