Skip to content

Commit 4614e36

Browse files
Fix
1 parent 56fad13 commit 4614e36

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/dtos/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ export interface IConfig {
233233
seed?: number,
234234
trafficAllocation?: number,
235235
trafficAllocationSeed?: number
236-
configurations: {
237-
[treatmentName: string]: string | null
236+
configurations?: {
237+
[treatmentName: string]: string
238238
},
239239
sets?: string[],
240240
impressionsDisabled?: boolean,
@@ -277,7 +277,7 @@ export interface ISplit {
277277
trafficAllocation?: number,
278278
trafficAllocationSeed?: number
279279
configurations?: {
280-
[treatmentName: string]: string | null
280+
[treatmentName: string]: string
281281
},
282282
sets?: string[],
283283
impressionsDisabled?: boolean

src/sync/submitters/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ export type TELEMETRY = 'te';
102102
export type TOKEN = 'to';
103103
export type SEGMENT = 'se';
104104
export type MEMBERSHIPS = 'ms';
105-
export type OperationType = SPLITS | IMPRESSIONS | IMPRESSIONS_COUNT | EVENTS | TELEMETRY | TOKEN | SEGMENT | MEMBERSHIPS;
105+
export type CONFIGS = 'cf';
106+
export type OperationType = SPLITS | IMPRESSIONS | IMPRESSIONS_COUNT | EVENTS | TELEMETRY | TOKEN | SEGMENT | MEMBERSHIPS | CONFIGS;
106107

107108
export type LastSync = Partial<Record<OperationType, number | undefined>>
108109
export type HttpErrors = Partial<Record<OperationType, { [statusCode: string]: number }>>

src/utils/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const TELEMETRY = 'te';
7575
export const TOKEN = 'to';
7676
export const SEGMENT = 'se';
7777
export const MEMBERSHIPS = 'ms';
78+
export const CONFIGS = 'cf';
7879

7980
export const TREATMENT = 't';
8081
export const TREATMENTS = 'ts';

0 commit comments

Comments
 (0)