-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tests for precomputed init * Update js common dependency * Fix import * v3.7.1-alpha.0 * Export getPrecomputedInstance method * Docs updates * v3.7.1-alpha.1 * v3.8.0
- Loading branch information
Showing
31 changed files
with
584 additions
and
167 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
docs/js-client-sdk.eppoprecomputedjsclient.getbooleanassignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [getBooleanAssignment](./js-client-sdk.eppoprecomputedjsclient.getbooleanassignment.md) | ||
|
||
## EppoPrecomputedJSClient.getBooleanAssignment() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getBooleanAssignment(flagKey: string, defaultValue: boolean): boolean; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| flagKey | string | | | ||
| defaultValue | boolean | | | ||
|
||
**Returns:** | ||
|
||
boolean | ||
|
23 changes: 23 additions & 0 deletions
23
docs/js-client-sdk.eppoprecomputedjsclient.getintegerassignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [getIntegerAssignment](./js-client-sdk.eppoprecomputedjsclient.getintegerassignment.md) | ||
|
||
## EppoPrecomputedJSClient.getIntegerAssignment() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getIntegerAssignment(flagKey: string, defaultValue: number): number; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| flagKey | string | | | ||
| defaultValue | number | | | ||
|
||
**Returns:** | ||
|
||
number | ||
|
23 changes: 23 additions & 0 deletions
23
docs/js-client-sdk.eppoprecomputedjsclient.getjsonassignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [getJSONAssignment](./js-client-sdk.eppoprecomputedjsclient.getjsonassignment.md) | ||
|
||
## EppoPrecomputedJSClient.getJSONAssignment() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getJSONAssignment(flagKey: string, defaultValue: object): object; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| flagKey | string | | | ||
| defaultValue | object | | | ||
|
||
**Returns:** | ||
|
||
object | ||
|
23 changes: 23 additions & 0 deletions
23
docs/js-client-sdk.eppoprecomputedjsclient.getnumericassignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [getNumericAssignment](./js-client-sdk.eppoprecomputedjsclient.getnumericassignment.md) | ||
|
||
## EppoPrecomputedJSClient.getNumericAssignment() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getNumericAssignment(flagKey: string, defaultValue: number): number; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| flagKey | string | | | ||
| defaultValue | number | | | ||
|
||
**Returns:** | ||
|
||
number | ||
|
23 changes: 23 additions & 0 deletions
23
docs/js-client-sdk.eppoprecomputedjsclient.getstringassignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [getStringAssignment](./js-client-sdk.eppoprecomputedjsclient.getstringassignment.md) | ||
|
||
## EppoPrecomputedJSClient.getStringAssignment() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getStringAssignment(flagKey: string, defaultValue: string): string; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| flagKey | string | | | ||
| defaultValue | string | | | ||
|
||
**Returns:** | ||
|
||
string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [initialized](./js-client-sdk.eppoprecomputedjsclient.initialized.md) | ||
|
||
## EppoPrecomputedJSClient.initialized property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
static initialized: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) > [instance](./js-client-sdk.eppoprecomputedjsclient.instance.md) | ||
|
||
## EppoPrecomputedJSClient.instance property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
static instance: EppoPrecomputedJSClient; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) | ||
|
||
## EppoPrecomputedJSClient class | ||
|
||
Client for assigning precomputed experiment variations. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare class EppoPrecomputedJSClient extends EppoPrecomputedClient | ||
``` | ||
**Extends:** EppoPrecomputedClient | ||
## Properties | ||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [initialized](./js-client-sdk.eppoprecomputedjsclient.initialized.md) | <code>static</code> | boolean | | | ||
| [instance](./js-client-sdk.eppoprecomputedjsclient.instance.md) | <code>static</code> | [EppoPrecomputedJSClient](./js-client-sdk.eppoprecomputedjsclient.md) | | | ||
## Methods | ||
| Method | Modifiers | Description | | ||
| --- | --- | --- | | ||
| [getBooleanAssignment(flagKey, defaultValue)](./js-client-sdk.eppoprecomputedjsclient.getbooleanassignment.md) | | | | ||
| [getIntegerAssignment(flagKey, defaultValue)](./js-client-sdk.eppoprecomputedjsclient.getintegerassignment.md) | | | | ||
| [getJSONAssignment(flagKey, defaultValue)](./js-client-sdk.eppoprecomputedjsclient.getjsonassignment.md) | | | | ||
| [getNumericAssignment(flagKey, defaultValue)](./js-client-sdk.eppoprecomputedjsclient.getnumericassignment.md) | | | | ||
| [getStringAssignment(flagKey, defaultValue)](./js-client-sdk.eppoprecomputedjsclient.getstringassignment.md) | | | | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [getPrecomputedInstance](./js-client-sdk.getprecomputedinstance.md) | ||
|
||
## getPrecomputedInstance() function | ||
|
||
Used to access a singleton SDK precomputed client instance. Use the method after calling precomputedInit() to initialize the client. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare function getPrecomputedInstance(): EppoPrecomputedClient; | ||
``` | ||
**Returns:** | ||
|
||
EppoPrecomputedClient | ||
|
||
a singleton precomputed client instance | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
docs/js-client-sdk.iclientconfig.numinitialrequestretries.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
docs/js-client-sdk.iclientconfig.pollafterfailedinitialization.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
docs/js-client-sdk.iclientconfig.pollaftersuccessfulinitialization.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [IPrecomputedClientConfig](./js-client-sdk.iprecomputedclientconfig.md) | ||
|
||
## IPrecomputedClientConfig interface | ||
|
||
Configuration for Eppo precomputed client initialization | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface IPrecomputedClientConfig extends IBaseRequestConfig | ||
``` | ||
**Extends:** IBaseRequestConfig | ||
## Properties | ||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [subjectAttributes?](./js-client-sdk.iprecomputedclientconfig.subjectattributes.md) | | Record<string, AttributeType> | _(Optional)_ Subject attributes to use for precomputed flag assignments. | | ||
| [subjectKey](./js-client-sdk.iprecomputedclientconfig.subjectkey.md) | | string | Subject key to use for precomputed flag assignments. | | ||
Oops, something went wrong.