Skip to content

Commit 216a9e3

Browse files
Move code to configs-client repo
AI-Session-Id: 32df18f1-ed0a-4979-bd0d-eb46df9d5c91 AI-Tool: claude-code AI-Model: unknown
1 parent d47ec73 commit 216a9e3

6 files changed

Lines changed: 11 additions & 126 deletions

File tree

src/sdkConfigs/index.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/sdkFactory/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ export interface ISdkFactoryContextAsync extends ISdkFactoryContext {
6969
/**
7070
* Object parameter with the modules required to create an SDK factory instance
7171
*/
72-
export interface ISdkFactoryParams<TSettings extends ISettings = ISettings> {
72+
export interface ISdkFactoryParams {
7373
// If true, the `sdkFactory` is pure (no side effects), and the SDK instance includes a `init` method to run initialization side effects
7474
lazyInit?: boolean,
7575

7676
// The settings must be already validated
77-
settings: TSettings,
77+
settings: ISettings,
7878

7979
// Platform dependencies
8080
platform: IPlatform,

src/storages/KeyBuilderSS.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const METHOD_NAMES: Record<Method, string> = {
1111
tfs: 'treatmentsByFlagSets',
1212
tcf: 'treatmentsWithConfigByFlagSet',
1313
tcfs: 'treatmentsWithConfigByFlagSets',
14-
c: 'config',
1514
tr: 'track'
1615
};
1716

src/sync/submitters/types.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,16 @@ export type LastSync = Partial<Record<OperationType, number | undefined>>
109109
export type HttpErrors = Partial<Record<OperationType, { [statusCode: string]: number }>>
110110
export type HttpLatencies = Partial<Record<OperationType, Array<number>>>
111111

112-
export type GET_TREATMENT = 't';
113-
export type GET_TREATMENTS = 'ts';
114-
export type GET_TREATMENT_WITH_CONFIG = 'tc';
115-
export type GET_TREATMENTS_WITH_CONFIG = 'tcs';
112+
export type TREATMENT = 't';
113+
export type TREATMENTS = 'ts';
114+
export type TREATMENT_WITH_CONFIG = 'tc';
115+
export type TREATMENTS_WITH_CONFIG = 'tcs';
116116
export type TRACK = 'tr';
117-
export type GET_TREATMENTS_BY_FLAGSET = 'tf'
118-
export type GET_TREATMENTS_BY_FLAGSETS = 'tfs'
119-
export type GET_TREATMENTS_WITH_CONFIG_BY_FLAGSET = 'tcf'
120-
export type GET_TREATMENTS_WITH_CONFIG_BY_FLAGSETS = 'tcfs'
121-
export type GET_CONFIG = 'c';
122-
export type Method = GET_TREATMENT | GET_TREATMENTS | GET_TREATMENT_WITH_CONFIG | GET_TREATMENTS_WITH_CONFIG | TRACK | GET_TREATMENTS_BY_FLAGSET | GET_TREATMENTS_BY_FLAGSETS | GET_TREATMENTS_WITH_CONFIG_BY_FLAGSET | GET_TREATMENTS_WITH_CONFIG_BY_FLAGSETS | GET_CONFIG;
117+
export type TREATMENTS_BY_FLAGSET = 'tf'
118+
export type TREATMENTS_BY_FLAGSETS = 'tfs'
119+
export type TREATMENTS_WITH_CONFIG_BY_FLAGSET = 'tcf'
120+
export type TREATMENTS_WITH_CONFIG_BY_FLAGSETS = 'tcfs'
121+
export type Method = TREATMENT | TREATMENTS | TREATMENT_WITH_CONFIG | TREATMENTS_WITH_CONFIG | TRACK | TREATMENTS_BY_FLAGSET | TREATMENTS_BY_FLAGSETS | TREATMENTS_WITH_CONFIG_BY_FLAGSET | TREATMENTS_WITH_CONFIG_BY_FLAGSETS;
123122

124123
export type MethodLatencies = Partial<Record<Method, Array<number>>>;
125124

src/utils/constants/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export const GET_TREATMENTS_BY_FLAG_SET = 'getTreatmentsByFlagSet';
4747
export const GET_TREATMENTS_BY_FLAG_SETS = 'getTreatmentsByFlagSets';
4848
export const GET_TREATMENTS_WITH_CONFIG_BY_FLAG_SET = 'getTreatmentsWithConfigByFlagSet';
4949
export const GET_TREATMENTS_WITH_CONFIG_BY_FLAG_SETS = 'getTreatmentsWithConfigByFlagSets';
50-
export const GET_CONFIG = 'getConfig';
5150
export const TRACK_FN_LABEL = 'track';
5251

5352
// Manager method names
@@ -86,7 +85,6 @@ export const TREATMENTS_BY_FLAGSET = 'tf';
8685
export const TREATMENTS_BY_FLAGSETS = 'tfs';
8786
export const TREATMENTS_WITH_CONFIG_BY_FLAGSET = 'tcf';
8887
export const TREATMENTS_WITH_CONFIG_BY_FLAGSETS = 'tcfs';
89-
export const CONFIG = 'c';
9088
export const TRACK = 'tr';
9189

9290
export const CONNECTION_ESTABLISHED = 0;

src/utils/inputValidation/target.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)