Skip to content

Commit 672a26c

Browse files
DmytroConvertConvert Bot
authored andcommitted
feat: automated TS Serving API update
1 parent 97bb34a commit 672a26c

1 file changed

Lines changed: 53 additions & 11 deletions

File tree

packages/types/src/config/types.gen.ts

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type ConfigAudience = {
1111
/**
1212
* Audience unique key
1313
*/
14-
key?: string;
14+
key?: (string) | null;
1515
/**
1616
* Audience Name
1717
*/
@@ -409,6 +409,10 @@ export enum SegmentBucketedMatchRulesTypes {
409409
BUCKETED_INTO_SEGMENT = 'bucketed_into_segment'
410410
}
411411

412+
export enum ExperienceKeyBucketedMatchRulesTypes {
413+
BUCKETED_INTO_EXPERIENCE_KEY = 'bucketed_into_experience_key'
414+
}
415+
412416
export enum DayOfWeekMatchRulesTypes {
413417
LOCAL_TIME_DAY_OF_WEEK = 'local_time_day_of_week',
414418
PROJECT_TIME_DAY_OF_WEEK = 'project_time_day_of_week'
@@ -436,7 +440,7 @@ export enum WeatherConditionMatchRulesTypes {
436440
WEATHER_CONDITION = 'weather_condition'
437441
}
438442

439-
export type RulesTypes = TextMatchRulesTypes & NumericMatchRulesTypes & BoolMatchRulesTypes & KeyValueMatchRulesTypes & VisitorDataExistsMatchRulesTypes & CookieMatchRulesTypes & CountryMatchRulesTypes & VisitorTypeMatchRulesTypes & LanguageMatchRulesTypes & GoalTriggeredMatchRulesTypes & SegmentBucketedMatchRulesTypes & DayOfWeekMatchRulesTypes & HourOfDayMatchRulesTypes & MinuteOfHourMatchRulesTypes & BrowserNameMatchRulesTypes & OsMatchRulesTypes & WeatherConditionMatchRulesTypes;
443+
export type RulesTypes = TextMatchRulesTypes & NumericMatchRulesTypes & BoolMatchRulesTypes & KeyValueMatchRulesTypes & VisitorDataExistsMatchRulesTypes & CookieMatchRulesTypes & CountryMatchRulesTypes & VisitorTypeMatchRulesTypes & LanguageMatchRulesTypes & GoalTriggeredMatchRulesTypes & SegmentBucketedMatchRulesTypes & ExperienceKeyBucketedMatchRulesTypes & DayOfWeekMatchRulesTypes & HourOfDayMatchRulesTypes & MinuteOfHourMatchRulesTypes & BrowserNameMatchRulesTypes & OsMatchRulesTypes & WeatherConditionMatchRulesTypes;
440444

441445
export type GenericTextMatchRule = BaseRuleWithStringValue & {
442446
rule_type: TextMatchRulesTypes;
@@ -554,6 +558,13 @@ export type SegmentBucketedMatchRule = BaseRuleWithSegmentBucketedValue & {
554558
});
555559
};
556560

561+
export type ExperienceKeyBucketedMatchRule = BaseRuleWithStringValue & {
562+
rule_type: ExperienceKeyBucketedMatchRulesTypes;
563+
matching?: (BaseMatch & {
564+
match_type?: ChoiceMatchingOptions;
565+
});
566+
};
567+
557568
export type ExperienceBucketedMatchRule = BaseRuleWithExperienceBucketedValue & {
558569
rule_type: string;
559570
matching?: (BaseMatch & {
@@ -603,11 +614,11 @@ export type WeatherConditionMatchRule = BaseRuleWithWeatherConditionValue & {
603614
});
604615
};
605616

606-
export type RuleElementNoUrl = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | CookieMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule | VisitorDataExistsMatchRule;
617+
export type RuleElementNoUrl = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | CookieMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | ExperienceKeyBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule | VisitorDataExistsMatchRule;
607618

608-
export type RuleElement = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CookieMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule;
619+
export type RuleElement = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CookieMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | ExperienceKeyBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule;
609620

610-
export type RuleElementAudience = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CookieMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule | VisitorDataExistsMatchRule;
621+
export type RuleElementAudience = GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CookieMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | ExperienceKeyBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule | VisitorDataExistsMatchRule;
611622

612623
export enum TextMatchingOptions {
613624
MATCHES = 'matches',
@@ -849,6 +860,12 @@ export type VisitorInsightsBase = {
849860
*
850861
*/
851862
sampling_rate?: 5 | 10 | 20 | 30 | 40 | 50;
863+
/**
864+
* Maximum number of visits per variation used when generating a heatmap for this project.
865+
* Applies to newly created heatmaps when an experience is activated.
866+
*
867+
*/
868+
heatmap_visits_limit?: 2500 | 5000 | 10000 | 15000;
852869
};
853870

854871
/**
@@ -865,6 +882,18 @@ export enum sampling_rate {
865882
'_50' = 50
866883
}
867884

885+
/**
886+
* Maximum number of visits per variation used when generating a heatmap for this project.
887+
* Applies to newly created heatmaps when an experience is activated.
888+
*
889+
*/
890+
export enum heatmap_visits_limit {
891+
'_2500' = 2500,
892+
'_5000' = 5000,
893+
'_10000' = 10000,
894+
'_15000' = 15000
895+
}
896+
868897
/**
869898
* The method used for detecting and handling order outliers in revenue or product count tracking:
870899
* - `none`: No outlier detection is applied.
@@ -970,6 +999,11 @@ export type UploadedFileData = {
970999
*/
9711000
export type ConcurrencyKey = (string) | null;
9721001

1002+
/**
1003+
* Device fingerprint computed by client-side.
1004+
*/
1005+
export type UserAuthMetaData = string;
1006+
9731007
/**
9741008
* Response containing project's config data needed in order to serve experiences
9751009
*/
@@ -1627,7 +1661,7 @@ export type ConfigExperience = {
16271661
/**
16281662
* Experience readable key that uniquely identifies this experience
16291663
*/
1630-
key?: string;
1664+
key?: (string) | null;
16311665
/**
16321666
* List of locations IDs on which this experience is presented. Either this or **site_area** is given but should not be both.
16331667
*/
@@ -1769,7 +1803,7 @@ export type ExperienceVariationConfig = {
17691803
/**
17701804
* Variation Key
17711805
*/
1772-
key?: string;
1806+
key?: (string) | null;
17731807
/**
17741808
* Percentage of traffic allocation for this variation, as a number from 0 to 10000.
17751809
* For an experience, the sum of the traffic allocations for all variations cannot be greater than 10000.
@@ -1827,7 +1861,7 @@ export type ConfigFeature = {
18271861
/**
18281862
* A unique per project level identifier
18291863
*/
1830-
key?: string;
1864+
key?: (string) | null;
18311865
/**
18321866
* An array of user-defined variables of a feature.
18331867
*/
@@ -1874,7 +1908,7 @@ export type ConfigGoalBase = {
18741908
/**
18751909
* Goal Key
18761910
*/
1877-
key?: string;
1911+
key?: (string) | null;
18781912
/**
18791913
* List of goal types to be returned
18801914
*/
@@ -2165,7 +2199,7 @@ export type ConfigLocation = {
21652199
/**
21662200
* Location unique key
21672201
*/
2168-
key?: string;
2202+
key?: (string) | null;
21692203
/**
21702204
* Location Name
21712205
*/
@@ -2391,6 +2425,10 @@ export type ProjectGASettingsBase = GA_SettingsBase & {
23912425
* Attempt to pull revenue data from Google Analytics Revenue Tracking code.
23922426
*/
23932427
auto_revenue_tracking?: boolean;
2428+
/**
2429+
* When enabled, the experience_impression event is sent only the first time a visitor is exposed to an experience, instead of on every subsequent qualifying page view. Opt-in and disabled by default.
2430+
*/
2431+
track_first_exposure_only?: boolean;
23942432
};
23952433

23962434
export type ProjectIntegrationGA3 = ProjectGASettingsBase & IntegrationGA3;
@@ -2415,7 +2453,7 @@ export type ConfigSegment = {
24152453
/**
24162454
* Segment unique key
24172455
*/
2418-
key?: string;
2456+
key?: (string) | null;
24192457
/**
24202458
* Segment Name
24212459
*/
@@ -2558,6 +2596,10 @@ export type VisitorSegments = {
25582596
* Campaign string
25592597
*/
25602598
campaign?: string;
2599+
/**
2600+
* Content string (ad-creative identifier from utm_content)
2601+
*/
2602+
content?: string;
25612603
/**
25622604
* Type of the visitor
25632605
*/

0 commit comments

Comments
 (0)