Skip to content

Commit 420a408

Browse files
authored
Merge pull request #370 from convertcom/api-serving-update-6390
Update Serving API - from backend PR #6390
2 parents 2462887 + 9f981db commit 420a408

1 file changed

Lines changed: 82 additions & 4 deletions

File tree

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

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,44 @@ export const ConfigAudienceTypes = {
3939
TRANSIENT: 'transient'
4040
} as const;
4141

42+
/**
43+
* Account billing status
44+
*/
45+
export type PlanStatus = 'paid' | 'trial' | 'trialExpired' | 'canceled' | 'paused';
46+
47+
/**
48+
* Account billing status
49+
*/
50+
export const PlanStatus = {
51+
PAID: 'paid',
52+
TRIAL: 'trial',
53+
TRIAL_EXPIRED: 'trialExpired',
54+
CANCELED: 'canceled',
55+
PAUSED: 'paused'
56+
} as const;
57+
58+
/**
59+
* The Convert product line this billing plan pertains to.
60+
* - `experiences`: Relates to A/B testing, MVT, Split URL, and personalization features.
61+
* - `deploy`: Relates to the "Deploy" feature for rolling out changes to specific audiences without A/B testing reports. Knowledge Base: "Deployments have the potential to contain small segments...and this could be interpreted by Privacy Authorities in Europe as identification of data subjects."
62+
* - `addons`: Relates to add-on products that extend the core platform capabilities.
63+
*
64+
*/
65+
export type Products = 'experiences' | 'deploy' | 'addons';
66+
67+
/**
68+
* The Convert product line this billing plan pertains to.
69+
* - `experiences`: Relates to A/B testing, MVT, Split URL, and personalization features.
70+
* - `deploy`: Relates to the "Deploy" feature for rolling out changes to specific audiences without A/B testing reports. Knowledge Base: "Deployments have the potential to contain small segments...and this could be interpreted by Privacy Authorities in Europe as identification of data subjects."
71+
* - `addons`: Relates to add-on products that extend the core platform capabilities.
72+
*
73+
*/
74+
export const Products = {
75+
EXPERIENCES: 'experiences',
76+
DEPLOY: 'deploy',
77+
ADDONS: 'addons'
78+
} as const;
79+
4280
export type PageNumber = {
4381
/**
4482
* The page number for paginated results. For example, if `results_per_page` is 30, `page: 2` will retrieve items 31-60.
@@ -933,8 +971,35 @@ export type VisitorInsightsBase = {
933971
*
934972
*/
935973
obfuscate_text?: boolean;
974+
/**
975+
* The percentage of visitors included in sampling for Convert Signals session recordings and Heatmaps for this project.
976+
* Higher values collect data from a larger share of traffic and consume allocation faster.
977+
*
978+
*/
979+
sampling_rate?: 5 | 10 | 20 | 30 | 40 | 50;
936980
};
937981

982+
/**
983+
* The percentage of visitors included in sampling for Convert Signals session recordings and Heatmaps for this project.
984+
* Higher values collect data from a larger share of traffic and consume allocation faster.
985+
*
986+
*/
987+
export type sampling_rate = 5 | 10 | 20 | 30 | 40 | 50;
988+
989+
/**
990+
* The percentage of visitors included in sampling for Convert Signals session recordings and Heatmaps for this project.
991+
* Higher values collect data from a larger share of traffic and consume allocation faster.
992+
*
993+
*/
994+
export const sampling_rate = {
995+
'_5': 5,
996+
'_10': 10,
997+
'_20': 20,
998+
'_30': 30,
999+
'_40': 40,
1000+
'_50': 50
1001+
} as const;
1002+
9381003
/**
9391004
* The method used for detecting and handling order outliers in revenue or product count tracking:
9401005
* - `none`: No outlier detection is applied.
@@ -1597,7 +1662,7 @@ export type UpdateExperienceChangeRequestData = ExperienceChangeAdd;
15971662
* Knowledge Base has many articles on integrations, e.g., "Integrate Convert Experiences with Google Analytics", "Hotjar Integration".
15981663
*
15991664
*/
1600-
export type IntegrationProvider = 'baidu' | 'clicktale' | 'clicky' | 'cnzz' | 'crazyegg' | 'econda' | 'eulerian' | 'google_analytics' | 'gosquared' | 'heapanalytics' | 'hotjar' | 'mixpanel' | 'mouseflow' | 'piwik' | 'segmentio' | 'sitecatalyst' | 'woopra' | 'ysance';
1665+
export type IntegrationProvider = 'baidu' | 'clicktale' | 'clicky' | 'cnzz' | 'crazyegg' | 'econda' | 'eulerian' | 'google_analytics' | 'gosquared' | 'heapanalytics' | 'hotjar' | 'microsoft_clarity' | 'mixpanel' | 'mouseflow' | 'piwik' | 'segmentio' | 'sitecatalyst' | 'woopra' | 'ysance';
16011666

16021667
/**
16031668
* Identifies the third-party analytics, heatmap, or data platform with which Convert Experiences is integrated for this specific experience.
@@ -1617,6 +1682,7 @@ export const IntegrationProvider = {
16171682
GOSQUARED: 'gosquared',
16181683
HEAPANALYTICS: 'heapanalytics',
16191684
HOTJAR: 'hotjar',
1685+
MICROSOFT_CLARITY: 'microsoft_clarity',
16201686
MIXPANEL: 'mixpanel',
16211687
MOUSEFLOW: 'mouseflow',
16221688
PIWIK: 'piwik',
@@ -1692,6 +1758,13 @@ export type ExperienceIntegrationHeapanalytics = ExperienceIntegrationBase;
16921758

16931759
export type ExperienceIntegrationHotjar = ExperienceIntegrationBase;
16941760

1761+
/**
1762+
* Configuration for Microsoft Clarity. When enabled, experiment context can be sent for segmentation in Clarity recordings and heatmaps.
1763+
* No provider-specific settings beyond `enabled` are required; the Clarity project ID is configured in your site’s global JavaScript.
1764+
*
1765+
*/
1766+
export type ExperienceIntegrationMicrosoftClarity = ExperienceIntegrationBase;
1767+
16951768
export type ExperienceIntegrationMixpanel = ExperienceIntegrationBase;
16961769

16971770
export type ExperienceIntegrationMouseflow = ExperienceIntegrationBase;
@@ -2400,6 +2473,10 @@ export type ConfigProject = {
24002473
* Custom domain to be used instead of standard Convert's one
24012474
*/
24022475
domain?: string;
2476+
/**
2477+
* The version of the custom domain.
2478+
*/
2479+
readonly version?: string;
24032480
} | null;
24042481
/**
24052482
* List of domains allowed to be tracked under this project
@@ -2752,7 +2829,7 @@ export type VisitorSegments = {
27522829
/**
27532830
* Traffic source
27542831
*/
2755-
source?: 'campaign' | 'search' | 'referral' | 'direct';
2832+
source?: 'campaign' | 'search' | 'referral' | 'direct' | 'ai_tool';
27562833
/**
27572834
* Campaign string
27582835
*/
@@ -2805,7 +2882,7 @@ export const browser = {
28052882
/**
28062883
* Traffic source
28072884
*/
2808-
export type source = 'campaign' | 'search' | 'referral' | 'direct';
2885+
export type source = 'campaign' | 'search' | 'referral' | 'direct' | 'ai_tool';
28092886

28102887
/**
28112888
* Traffic source
@@ -2814,7 +2891,8 @@ export const source = {
28142891
CAMPAIGN: 'campaign',
28152892
SEARCH: 'search',
28162893
REFERRAL: 'referral',
2817-
DIRECT: 'direct'
2894+
DIRECT: 'direct',
2895+
AI_TOOL: 'ai_tool'
28182896
} as const;
28192897

28202898
/**

0 commit comments

Comments
 (0)