/** * @example * { * id: "id" * } */ export interface UpdateEconomicIntelligenceRequest { /** Recommendation ID, prefixed `reca_`. */ id: string; /** Account ID, prefixed `biz_`. Defaults to the API key's own account. */ account_id?: string; /** What you want the replacement recommendation for, in your own words. Up to 1000 characters. Sent when superseding, it directs the generation that replaces the rejected recommendation. */ input?: string; /** With `status: executed`, the ID of what the run produced or changed, and the recommendation's `result_url` becomes where to view it: an ad (`ad_`), ad group (`adgrp_`) or ad campaign (`adcamp_`), a website (`app_`), a product (`prod_`), a plan (`plan_`), a checkout link (`ch_`), a promo code (`promo_`), or an experience (`exp_`). Without `result_id` or `result_page`, `result_url` links to the resource the recommendation was about, when it names one. Send only one of `result_id`, `result_page` and `result_url`. */ result_id?: string; /** With `status: executed`, the page where the run's result can be seen when it is not one resource, such as the checkout links list or the store page. The recommendation's `result_url` becomes that page on the account's dashboard, or its store page for `store_page`. */ result_page?: UpdateEconomicIntelligenceRequest.ResultPage; /** With `status: executed`, where to view what was produced when it is outside Whop. An http or https URL. Prefer `result_id` for anything on Whop. */ result_url?: string; /** A signed-in user can rate a recommendation as `positive` or `negative`. Can be sent alone or together with status. */ sentiment?: UpdateEconomicIntelligenceRequest.Sentiment; /** Use `running` to start a run of a ready recommendation, `executed` to record that it was carried out, `incomplete` to record that a running recommendation's run ended without carrying it out, `superseded` to reject a ready recommendation, or `acknowledged` to mark an executed run as seen; the recommendation stays `executed` and records `acknowledged_at`. */ status?: UpdateEconomicIntelligenceRequest.Status; /** An optional explanation of the rating or rejection. Negative feedback informs replacement recommendations. */ user_feedback?: string; } export declare namespace UpdateEconomicIntelligenceRequest { /** With `status: executed`, the page where the run's result can be seen when it is not one resource, such as the checkout links list or the store page. The recommendation's `result_url` becomes that page on the account's dashboard, or its store page for `store_page`. */ const ResultPage: { readonly Home: "home"; readonly Products: "products"; readonly Ads: "ads"; readonly Websites: "websites"; readonly CheckoutLinks: "checkout_links"; readonly TrackingLinks: "tracking_links"; readonly PromoCodes: "promo_codes"; readonly Payments: "payments"; readonly Customers: "customers"; readonly Affiliates: "affiliates"; readonly Analytics: "analytics"; readonly StorePage: "store_page"; }; type ResultPage = (typeof ResultPage)[keyof typeof ResultPage]; /** A signed-in user can rate a recommendation as `positive` or `negative`. Can be sent alone or together with status. */ const Sentiment: { readonly Positive: "positive"; readonly Negative: "negative"; }; type Sentiment = (typeof Sentiment)[keyof typeof Sentiment]; /** Use `running` to start a run of a ready recommendation, `executed` to record that it was carried out, `incomplete` to record that a running recommendation's run ended without carrying it out, `superseded` to reject a ready recommendation, or `acknowledged` to mark an executed run as seen; the recommendation stays `executed` and records `acknowledged_at`. */ const Status: { readonly Running: "running"; readonly Executed: "executed"; readonly Incomplete: "incomplete"; readonly Superseded: "superseded"; readonly Acknowledged: "acknowledged"; }; type Status = (typeof Status)[keyof typeof Status]; }