-
Notifications
You must be signed in to change notification settings - Fork 3
Update Serving API - from backend PR #6302 #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main-convert
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,44 @@ export const ConfigAudienceTypes = { | |
| TRANSIENT: 'transient' | ||
| } as const; | ||
|
|
||
| /** | ||
| * Account billing status | ||
| */ | ||
| export type PlanStatus = 'paid' | 'trial' | 'trialExpired' | 'canceled' | 'paused'; | ||
|
|
||
| /** | ||
| * Account billing status | ||
| */ | ||
| export const PlanStatus = { | ||
| PAID: 'paid', | ||
| TRIAL: 'trial', | ||
| TRIAL_EXPIRED: 'trialExpired', | ||
| CANCELED: 'canceled', | ||
| PAUSED: 'paused' | ||
| } as const; | ||
|
|
||
| /** | ||
| * The Convert product line this billing plan pertains to. | ||
| * - `experiences`: Relates to A/B testing, MVT, Split URL, and personalization features. | ||
| * - `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." | ||
| * - `addons`: Relates to add-on products that extend the core platform capabilities. | ||
| * | ||
| */ | ||
| export type Products = 'experiences' | 'deploy' | 'addons'; | ||
|
|
||
| /** | ||
| * The Convert product line this billing plan pertains to. | ||
| * - `experiences`: Relates to A/B testing, MVT, Split URL, and personalization features. | ||
| * - `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." | ||
| * - `addons`: Relates to add-on products that extend the core platform capabilities. | ||
| * | ||
| */ | ||
| export const Products = { | ||
| EXPERIENCES: 'experiences', | ||
| DEPLOY: 'deploy', | ||
| ADDONS: 'addons' | ||
| } as const; | ||
|
Comment on lines
+58
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve maintainability and reduce redundancy, you can define the /**
* The Convert product line this billing plan pertains to.
* - `experiences`: Relates to A/B testing, MVT, Split URL, and personalization features.
* - `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."
* - `addons`: Relates to add-on products that extend the core platform capabilities.
*
*/
export const Products = {
EXPERIENCES: 'experiences',
DEPLOY: 'deploy',
ADDONS: 'addons'
} as const;
export type Products = (typeof Products)[keyof typeof Products]; |
||
|
|
||
| export type PageNumber = { | ||
| /** | ||
| * The page number for paginated results. For example, if `results_per_page` is 30, `page: 2` will retrieve items 31-60. | ||
|
|
@@ -2400,6 +2438,10 @@ export type ConfigProject = { | |
| * Custom domain to be used instead of standard Convert's one | ||
| */ | ||
| domain?: string; | ||
| /** | ||
| * The version of the custom domain. | ||
| */ | ||
| readonly version?: string; | ||
| } | null; | ||
| /** | ||
| * List of domains allowed to be tracked under this project | ||
|
|
@@ -2752,7 +2794,7 @@ export type VisitorSegments = { | |
| /** | ||
| * Traffic source | ||
| */ | ||
| source?: 'campaign' | 'search' | 'referral' | 'direct'; | ||
| source?: 'campaign' | 'search' | 'referral' | 'direct' | 'ai_tool'; | ||
| /** | ||
| * Campaign string | ||
| */ | ||
|
|
@@ -2805,7 +2847,7 @@ export const browser = { | |
| /** | ||
| * Traffic source | ||
| */ | ||
| export type source = 'campaign' | 'search' | 'referral' | 'direct'; | ||
| export type source = 'campaign' | 'search' | 'referral' | 'direct' | 'ai_tool'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This type definition is coupled with the For example: /**
* Traffic source
*/
export const source = {
CAMPAIGN: 'campaign',
SEARCH: 'search',
REFERRAL: 'referral',
DIRECT: 'direct',
AI_TOOL: 'ai_tool'
} as const;
export type source = (typeof source)[keyof typeof source];Since this change spans across areas not fully covered by the diff, a direct code suggestion is not provided. |
||
|
|
||
| /** | ||
| * Traffic source | ||
|
|
@@ -2814,7 +2856,8 @@ export const source = { | |
| CAMPAIGN: 'campaign', | ||
| SEARCH: 'search', | ||
| REFERRAL: 'referral', | ||
| DIRECT: 'direct' | ||
| DIRECT: 'direct', | ||
| AI_TOOL: 'ai_tool' | ||
| } as const; | ||
|
|
||
| /** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve maintainability and reduce redundancy, you can define the
PlanStatustype from the constant object. This avoids duplicating the string literals and the JSDoc comments, ensuring they are always in sync.