Skip to content

Commit 798963c

Browse files
abbaseyaConvert Bot
authored andcommitted
feat: automated TS Serving API update
1 parent 095b70f commit 798963c

1 file changed

Lines changed: 48 additions & 11 deletions

File tree

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

Lines changed: 48 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.
@@ -1627,7 +1656,7 @@ export type ConfigExperience = {
16271656
/**
16281657
* Experience readable key that uniquely identifies this experience
16291658
*/
1630-
key?: string;
1659+
key?: (string) | null;
16311660
/**
16321661
* List of locations IDs on which this experience is presented. Either this or **site_area** is given but should not be both.
16331662
*/
@@ -1769,7 +1798,7 @@ export type ExperienceVariationConfig = {
17691798
/**
17701799
* Variation Key
17711800
*/
1772-
key?: string;
1801+
key?: (string) | null;
17731802
/**
17741803
* Percentage of traffic allocation for this variation, as a number from 0 to 10000.
17751804
* For an experience, the sum of the traffic allocations for all variations cannot be greater than 10000.
@@ -1827,7 +1856,7 @@ export type ConfigFeature = {
18271856
/**
18281857
* A unique per project level identifier
18291858
*/
1830-
key?: string;
1859+
key?: (string) | null;
18311860
/**
18321861
* An array of user-defined variables of a feature.
18331862
*/
@@ -1874,7 +1903,7 @@ export type ConfigGoalBase = {
18741903
/**
18751904
* Goal Key
18761905
*/
1877-
key?: string;
1906+
key?: (string) | null;
18781907
/**
18791908
* List of goal types to be returned
18801909
*/
@@ -2165,7 +2194,7 @@ export type ConfigLocation = {
21652194
/**
21662195
* Location unique key
21672196
*/
2168-
key?: string;
2197+
key?: (string) | null;
21692198
/**
21702199
* Location Name
21712200
*/
@@ -2391,6 +2420,10 @@ export type ProjectGASettingsBase = GA_SettingsBase & {
23912420
* Attempt to pull revenue data from Google Analytics Revenue Tracking code.
23922421
*/
23932422
auto_revenue_tracking?: boolean;
2423+
/**
2424+
* 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.
2425+
*/
2426+
track_first_exposure_only?: boolean;
23942427
};
23952428

23962429
export type ProjectIntegrationGA3 = ProjectGASettingsBase & IntegrationGA3;
@@ -2415,7 +2448,7 @@ export type ConfigSegment = {
24152448
/**
24162449
* Segment unique key
24172450
*/
2418-
key?: string;
2451+
key?: (string) | null;
24192452
/**
24202453
* Segment Name
24212454
*/
@@ -2558,6 +2591,10 @@ export type VisitorSegments = {
25582591
* Campaign string
25592592
*/
25602593
campaign?: string;
2594+
/**
2595+
* Content string (ad-creative identifier from utm_content)
2596+
*/
2597+
content?: string;
25612598
/**
25622599
* Type of the visitor
25632600
*/

0 commit comments

Comments
 (0)