-
Notifications
You must be signed in to change notification settings - Fork 3
Update Serving API - from backend PR #6633 #386
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,44 +31,6 @@ export enum ConfigAudienceTypes { | |
| TRANSIENT = 'transient' | ||
| } | ||
|
|
||
| /** | ||
| * 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; | ||
|
|
||
| export type PageNumber = { | ||
| /** | ||
| * The page number for paginated results. For example, if `results_per_page` is 30, `page: 2` will retrieve items 31-60. | ||
|
|
@@ -1916,14 +1878,14 @@ export type ConfigGoalBase = { | |
| /** | ||
| * List of goal types to be returned | ||
| */ | ||
| type?: Array<GoalTypes>; | ||
| type?: GoalTypes; | ||
| rules?: ((RuleObject) | null); | ||
| }; | ||
|
|
||
| export type ConfigGoal = DomInteractionGoal | ScrollPercentageGoal | RevenueGoal | NoSettingsGoal | GaGoal | SubmitsFormGoal | ClicksLinkGoal | ClicksElementGoal; | ||
|
|
||
| export type DomInteractionGoal = ConfigGoalBase & { | ||
| type?: 'dom_interaction'; | ||
| type?: GoalTypes.DOM_INTERACTION; | ||
| settings?: DomInteractionGoalSettings; | ||
| }; | ||
|
|
||
|
|
@@ -1932,7 +1894,7 @@ export enum type11 { | |
| } | ||
|
|
||
| export type ScrollPercentageGoal = ConfigGoalBase & { | ||
| type?: 'scroll_percentage'; | ||
| type?: GoalTypes.SCROLL_PERCENTAGE; | ||
| settings?: ScrollPercentageGoalSettings; | ||
| }; | ||
|
|
||
|
|
@@ -1941,7 +1903,7 @@ export enum type12 { | |
| } | ||
|
|
||
| export type RevenueGoal = ConfigGoalBase & { | ||
| type?: 'revenue'; | ||
| type?: GoalTypes.REVENUE; | ||
| settings?: RevenueGoalSettings; | ||
| }; | ||
|
|
||
|
|
@@ -1950,7 +1912,7 @@ export enum type13 { | |
| } | ||
|
|
||
| export type NoSettingsGoal = ConfigGoalBase & { | ||
| type?: 'advanced' | 'visits_page' | 'code_trigger'; | ||
| type?: GoalTypes.ADVANCED | 'visits_page' | GoalTypes.CODE_TRIGGER; | ||
|
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. |
||
| }; | ||
|
|
||
| export enum type14 { | ||
|
|
@@ -2115,15 +2077,15 @@ export type LocationTriggerBase = { | |
| }; | ||
|
|
||
| export type LocationTriggerUponRun = LocationTriggerBase & { | ||
| type?: 'upon_run'; | ||
| type?: LocationTriggerTypes.UPON_RUN; | ||
| }; | ||
|
|
||
| export enum type19 { | ||
| UPON_RUN = 'upon_run' | ||
| } | ||
|
|
||
| export type LocationTriggerManual = LocationTriggerBase & { | ||
| type?: 'manual'; | ||
| type?: LocationTriggerTypes.MANUAL; | ||
| }; | ||
|
|
||
| export enum type20 { | ||
|
|
@@ -2146,7 +2108,7 @@ export enum LocationDomTriggerEvents { | |
| } | ||
|
|
||
| export type LocationTriggerDomElement = LocationTriggerBase & { | ||
| type?: 'dom_element'; | ||
| type?: LocationTriggerTypes.DOM_ELEMENT; | ||
| /** | ||
| * Describes html selector | ||
| */ | ||
|
|
@@ -2162,7 +2124,7 @@ export enum type21 { | |
| } | ||
|
|
||
| export type LocationTriggerCallback = LocationTriggerBase & { | ||
| type?: 'callback'; | ||
| type?: LocationTriggerTypes.CALLBACK; | ||
| /** | ||
| * Describes the js callback that will be executed in order to fire the experience. | ||
| * | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The change from
Array<GoalTypes>toGoalTypesis too restrictive. Several goal types that extendConfigGoalBase(such asGaGoal,SubmitsFormGoal,ClicksLinkGoal, andClicksElementGoal) use type strings that are not present in theGoalTypesenum, which will lead to TypeScript errors. Additionally, the JSDoc comment 'List of goal types to be returned' should be updated to reflect that it is now a single value.