Skip to content

Commit 97ca89a

Browse files
committed
docs
1 parent 7743129 commit 97ca89a

8 files changed

+67
-15
lines changed
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [dummy](./js-client-sdk.dummy.md)
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [AttributeValueType](./js-client-sdk.attributevaluetype.md)
44

5-
## dummy() function
6-
7-
Test documentation
5+
## AttributeValueType type
86

97
<b>Signature:</b>
108

119
```typescript
12-
export declare function dummy(): string;
10+
export declare type AttributeValueType = string | number;
1311
```
14-
<b>Returns:</b>
15-
16-
string
17-

docs/js-client-sdk.getinstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export declare function getInstance(): IEppoClient;
1313
```
1414
<b>Returns:</b>
1515

16-
IEppoClient
16+
[IEppoClient](./js-client-sdk.ieppoclient.md)
1717

1818
a singleton client instance
1919

docs/js-client-sdk.iclientconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export interface IClientConfig
1818
| --- | --- | --- |
1919
| [apiKey](./js-client-sdk.iclientconfig.apikey.md) | string | Eppo API key |
2020
| [baseUrl?](./js-client-sdk.iclientconfig.baseurl.md) | string | <i>(Optional)</i> Base URL of the Eppo API. Clients should use the default setting in most cases. |
21-
| [subjectAttributes?](./js-client-sdk.iclientconfig.subjectattributes.md) | Record&lt;string, AttributeValueType&gt; | <i>(Optional)</i> Optional attributes associated with the subject, for example name and email. The subject attributes are used for evaluating any targeting rules tied to the experiment. |
21+
| [subjectAttributes?](./js-client-sdk.iclientconfig.subjectattributes.md) | Record&lt;string, [AttributeValueType](./js-client-sdk.attributevaluetype.md)<!-- -->&gt; | <i>(Optional)</i> Optional attributes associated with the subject, for example name and email. The subject attributes are used for evaluating any targeting rules tied to the experiment. |
2222
| [subjectKey](./js-client-sdk.iclientconfig.subjectkey.md) | string | An identifier of the experiment subject, for example a user ID. |
2323

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [IEppoClient](./js-client-sdk.ieppoclient.md) &gt; [getAssignment](./js-client-sdk.ieppoclient.getassignment.md)
4+
5+
## IEppoClient.getAssignment() method
6+
7+
Maps a subject to a variation for a given experiment.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
getAssignment(experimentKey: string): string;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| experimentKey | string | experiment identifier |
20+
21+
<b>Returns:</b>
22+
23+
string
24+
25+
a variation value if the subject is part of the experiment sample, otherwise null
26+

docs/js-client-sdk.ieppoclient.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [IEppoClient](./js-client-sdk.ieppoclient.md)
4+
5+
## IEppoClient interface
6+
7+
Client for assigning experiment variations.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export interface IEppoClient
13+
```
14+
15+
## Methods
16+
17+
| Method | Description |
18+
| --- | --- |
19+
| [getAssignment(experimentKey)](./js-client-sdk.ieppoclient.getassignment.md) | Maps a subject to a variation for a given experiment. |
20+

docs/js-client-sdk.init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export declare function init(config: IClientConfig): Promise<IEppoClient>;
2020

2121
<b>Returns:</b>
2222

23-
Promise&lt;IEppoClient&gt;
23+
Promise&lt;[IEppoClient](./js-client-sdk.ieppoclient.md)<!-- -->&gt;
2424

docs/js-client-sdk.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@
1616
| Interface | Description |
1717
| --- | --- |
1818
| [IClientConfig](./js-client-sdk.iclientconfig.md) | Configuration used for initializing the Eppo client |
19+
| [IEppoClient](./js-client-sdk.ieppoclient.md) | Client for assigning experiment variations. |
20+
21+
## Type Aliases
22+
23+
| Type Alias | Description |
24+
| --- | --- |
25+
| [AttributeValueType](./js-client-sdk.attributevaluetype.md) | |
1926

js-client-sdk.api.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@
44
55
```ts
66

7-
// Warning: (ae-forgotten-export) The symbol "IEppoClient" needs to be exported by the entry point index.d.ts
8-
//
7+
// @public (undocumented)
8+
export type AttributeValueType = string | number;
9+
910
// @public
1011
export function getInstance(): IEppoClient;
1112

1213
// @public
1314
export interface IClientConfig {
1415
apiKey: string;
1516
baseUrl?: string;
16-
// Warning: (ae-forgotten-export) The symbol "AttributeValueType" needs to be exported by the entry point index.d.ts
1717
subjectAttributes?: Record<string, AttributeValueType>;
1818
subjectKey: string;
1919
}
2020

21+
// @public
22+
export interface IEppoClient {
23+
getAssignment(experimentKey: string): string;
24+
}
25+
2126
// @public
2227
export function init(config: IClientConfig): Promise<IEppoClient>;
2328

0 commit comments

Comments
 (0)