import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace AdConversionValueRulesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A conversion value rule changes the conversion values Whop sends to ad networks while Whop keeps recording the accurate values. Each rule belongs to an account and applies one value adjustment to a set of targets (the account, an ad campaign, an ad group, or an ad) and events. Every selected event applies to every selected target, and the most specific rule applies. * * Use the Ad Conversion Value Rules API to create, edit, pause, resume, and delete rules, and to find the rules that cover a campaign, ad group, or ad. Each write succeeds or fails as one transaction, and each conversion send uses the rules saved at that moment. */ export declare class AdConversionValueRulesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AdConversionValueRulesClient.Options); /** * Lists the conversion value rules you can read. * * @param {Whop.ListAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.list() */ list(request?: Whop.ListAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): Promise>; /** * Creates one rule covering every selected target and event combination. Active rules cannot overlap for the same platform and event. Customer prices and Whop revenue stay unchanged. * * @param {Whop.CreateAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.create({ * account_id: "biz_xxxxxxxxxxxxxx", * adjustment_type: "fixed", * events: [{ * event_name: "purchase" * }], * targets: [{ * platform: "tiktok", * scope: "business" * }] * }) */ create(request: Whop.CreateAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a conversion value rule with its targets, events, and value adjustment. * * @param {Whop.RetrieveAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Deletes a rule and deactivates all its coverage. The rule's stored settings are preserved. * * @param {Whop.DeleteAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.delete({ * id: "id" * }) */ delete(request: Whop.DeleteAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Edits a rule without changing its status. Supplied `targets` or `events` replace that selection in full, and omitted fields stay unchanged. All changes succeed or fail together. * * @param {Whop.UpdateAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.update({ * id: "id" * }) */ update(request: Whop.UpdateAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Pauses the rule across all selected targets and events. * * @param {Whop.PauseAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.pause({ * id: "id" * }) */ pause(request: Whop.PauseAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __pause; /** * Resumes the rule and automatically replaces overlapping selections in the same transaction. Other selections keep their values, and broader rules remain as defaults. Rules with no remaining selections are paused. Resuming an already-active rule makes no changes. * * @param {Whop.UnpauseAdConversionValueRulesRequest} request * @param {AdConversionValueRulesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adConversionValueRules.unpause({ * id: "id" * }) */ unpause(request: Whop.UnpauseAdConversionValueRulesRequest, requestOptions?: AdConversionValueRulesClient.RequestOptions): core.HttpResponsePromise; private __unpause; }