import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { G as GetPlanConfigurationConstraintsOptions, a as GetPlanConfigurationConstraintsResponse, b as GetPlanPreviewOptions, c as GetPlanPreviewResponse, d as GetPlanPreviewApplicationErrors, L as ListPlanPreviewsOptions, e as ListPlanPreviewsResponse, P as Plan, C as CreatePlanOptions, f as CreatePlanApplicationErrors, g as CreatePlanValidationErrors, U as UpdatePlan, h as UpdatePlanOptions, i as UpdatePlanValidationErrors, M as MaskedPlan, B as BulkUpdatePlansOptions, j as BulkUpdatePlansResponse, k as BulkUpdatePlansValidationErrors, l as BulkUpdatePlanTagsOptions, m as BulkUpdatePlanTagsResponse, n as BulkUpdatePlanTagsApplicationErrors, o as BulkUpdatePlanTagsByFilterOptions, p as BulkUpdatePlanTagsByFilterResponse, q as BulkUpdatePlanTagsByFilterApplicationErrors, r as PlanSearch, S as SearchPlansResponse, s as CountPlansOptions, t as CountPlansResponse, u as PlanCreatedEnvelope, v as PlanDeletedEnvelope, w as PlanTagsModifiedEnvelope, x as PlanUpdatedEnvelope, y as PlansQueryBuilder, z as PlanQuery, A as typedQueryPlans } from './pricing-plans-v3-plan-plans-v-3.universal-DQ44opyY.js'; export { bS as AccountInfo, cZ as AccountInfoMetadata, bO as ActionEvent, bs as Address, bt as AddressHint, cj as Aggregation, cx as AggregationData, ck as AggregationKindOneOf, cQ as AggregationResults, cR as AggregationResultsResultOneOf, cE as AggregationResultsScalarResult, ag as AggregationType, dC as AggregationTypeWithLiterals, b$ as ApplicationError, E as AppliedAt, d3 as AppliedAtWithLiterals, cX as BaseEventMetadata, aM as BenefitDistributionSettings, aN as BenefitDistributionSettingsDistributionStrategyOneOf, aq as BillingTerms, ar as BillingTermsEndOptionOneOf, c1 as BulkActionMetadata, c0 as BulkPlanResult, c4 as BulkUpdatePlanTagsByFilterRequest, c2 as BulkUpdatePlanTagsRequest, c3 as BulkUpdatePlanTagsResult, bZ as BulkUpdatePlansRequest, bv as BusinessSchedule, a8 as Cascade, du as CascadeWithLiterals, bq as Categories, bC as ChangeContext, bD as ChangeContextPayloadOneOf, cT as ChangePriceRequest, cU as ChangePriceResponse, cV as ClonePlanRequest, cW as ClonePlanResponse, dE as CommonQueryWithEntityContext, dF as CommonSearchWithEntityContext, bA as ConsentPolicy, cS as CountPlansRequest, bT as CreatePlanRequest, bU as CreatePlanResponse, cc as CursorPaging, cw as CursorPagingMetadata, ch as CursorSearch, ci as CursorSearchPagingMethodOneOf, cf as Cursors, al as CustomAmount, aP as CustomScheduleOptions, ak as CustomerChosenPrice, b4 as CustomerChosenPriceOptions, J as CustomerEligibility, d7 as CustomerEligibilityWithLiterals, at as CyclesCompletedDetails, cr as DateHistogramAggregation, cM as DateHistogramResult, cO as DateHistogramResults, aU as DateRangeOptions, aT as DayOfMonthOptions, a5 as DayOfWeek, dr as DayOfWeekWithLiterals, c5 as DeletePlanRequest, c6 as DeletePlanResponse, T as DistributionStrategyType, de as DistributionStrategyTypeWithLiterals, bI as DomainEvent, bJ as DomainEventBodyOneOf, aO as Duration, R as DurationUnit, dd as DurationUnitWithLiterals, bH as Empty, I as EndType, d6 as EndTypeWithLiterals, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, cY as EventMetadata, aX as ExtendedFields, an as Fee, aF as FeeOverride, aG as FeeOverrideOverrideOptionOneOf, aE as FeeOverrides, ao as FeePriceOptionOneOf, ap as FixedAmountOption, aH as FixedAmountOptions, aS as FixedDateOptions, bc as FixedDatesOptions, aC as FixedPriceOptions, aj as FlatRate, a0 as FreeTrialPolicy, dl as FreeTrialPolicyWithLiterals, bu as GeoCoordinates, b8 as GetPlanConfigurationConstraintsRequest, bk as GetPlanPreviewRequest, bV as GetPlanRequest, bW as GetPlanResponse, cN as GroupByValueResults, bQ as IdentificationData, bR as IdentificationDataIdOneOf, cm as IncludeMissingValuesOptions, af as Interval, dB as IntervalWithLiterals, b_ as ItemMetadata, bh as ListPlanConfigurationConstraintsRequest, bi as ListPlanConfigurationConstraintsResponse, bl as ListPlanPreviewsRequest, br as Locale, bP as MessageEnvelope, ac as MissingValues, dy as MissingValuesWithLiterals, ah as Mode, dD as ModeWithLiterals, bg as MonthlyRecurrence, by as Multilingual, cu as NestedAggregation, cs as NestedAggregationItem, ct as NestedAggregationItemKindOneOf, cA as NestedAggregationResults, cB as NestedAggregationResultsResultOneOf, ae as NestedAggregationType, dA as NestedAggregationTypeWithLiterals, cJ as NestedResultValue, cK as NestedResultValueResultOneOf, cP as NestedResults, cF as NestedValueAggregationResult, b0 as Options, b1 as OptionsOptionsOneOf, O as OverrideType, d9 as OverrideTypeWithLiterals, cb as Paging, ce as PagingMetadataV2, aD as PercentageDiscountOptions, F as Period, d4 as PeriodWithLiterals, aI as Perk, a4 as PlacementType, dq as PlacementTypeWithLiterals, bj as PlanConstraintsResult, b2 as PlanOptions, b3 as PlanOptionsPricingStrategyOptionsOneOf, bm as PlanPreviewSelector, c$ as PlanQuerySpec, d0 as PlanSearchSpec, a_ as PlanTagsModified, aY as PlanTranslated, aZ as PlanTranslationDeleted, c_ as PlansQueryResult, am as PredefinedAmounts, ax as PriceOverride, ay as PriceOverrideOverrideOptionOneOf, K as PriceOverrideOverrideType, d8 as PriceOverrideOverrideTypeWithLiterals, aw as PriceOverrides, D as PriceType, d2 as PriceTypeWithLiterals, au as PricingStrategy, av as PricingStrategyStrategyOneOf, $ as PricingStrategyType, dk as PricingStrategyTypeWithLiterals, ai as PricingVariant, bp as Properties, bE as PropertiesChange, az as PurchaseConditions, aA as PurchaseConditionsCustomerEligibilityOptionOneOf, _ as PurchaseFlow, dj as PurchaseFlowWithLiterals, aL as PurchaseLimit, Q as PurchaseLimitType, dc as PurchaseLimitTypeWithLiterals, c7 as QueryPlansRequest, cd as QueryPlansResponse, c8 as QueryV2, c9 as QueryV2PagingMethodOneOf, cp as RangeAggregation, cz as RangeAggregationResult, cl as RangeBucket, cH as RangeResult, cD as RangeResults, bd as RecurrenceOptions, be as RecurrenceOptionsRecurrenceOneOf, a2 as RecurrenceType, dn as RecurrenceTypeWithLiterals, a6 as ResolutionMethod, ds as ResolutionMethodWithLiterals, bL as RestoreInfo, cL as Results, a1 as RulesType, dm as RulesTypeWithLiterals, cq as ScalarAggregation, cI as ScalarResult, ad as ScalarType, dz as ScalarTypeWithLiterals, cv as SearchDetails, cg as SearchPlansRequest, bG as SiteCloned, bF as SiteCreated, bo as SitePropertiesEvent, bn as SitePropertiesNotification, ab as SortDirection, dx as SortDirectionWithLiterals, a9 as SortOrder, dv as SortOrderWithLiterals, aa as SortType, dw as SortTypeWithLiterals, ca as Sorting, bx as SpecialHourPeriod, aB as SpecificMembersOptions, b9 as StartDateLimits, ba as StartDateRules, bb as StartDateRulesDateRulesOneOf, aQ as StartDateSettings, aR as StartDateSettingsStartDateOptionOneOf, W as StartDateType, df as StartDateTypeWithLiterals, H as StartType, d5 as StartTypeWithLiterals, N as Status, db as StatusWithLiterals, bz as SupportedLanguage, aW as TagList, aV as Tags, Y as TaxableAddress, dh as TaxableAddressWithLiterals, aJ as TermsAndConditionsSettings, aK as ThankYouPageSettings, bw as TimePeriod, b5 as TopUpOptions, bB as Translation, X as Type, dg as TypeWithLiterals, bX as UpdatePlanRequest, bY as UpdatePlanResponse, a3 as V1DayOfWeek, dp as V1DayOfWeekWithLiterals, as as V3Duration, a$ as ValidateOptionsRequest, b6 as ValidateOptionsResponse, Z as ValidationStrategy, di as ValidationStrategyWithLiterals, cn as ValueAggregation, co as ValueAggregationOptionsOneOf, cy as ValueAggregationResult, cG as ValueResult, cC as ValueResults, b7 as Violation, V as Visibility, da as VisibilityWithLiterals, a7 as WebhookIdentityType, dt as WebhookIdentityTypeWithLiterals, bf as WeeklyRecurrence, d1 as utils } from './pricing-plans-v3-plan-plans-v-3.universal-DQ44opyY.js'; declare function getPlanConfigurationConstraints$1(httpClient: HttpClient): GetPlanConfigurationConstraintsSignature; interface GetPlanConfigurationConstraintsSignature { /** * TODO: exposure must go back to PRIVATE. It's PUBLIC only so the storefront can call it directly * while the Pricing Plans frontend server isn't serving this call yet. * @param - The plan id, which corresponds to catalogItemId in catalog item reference */ (planId: string, options?: GetPlanConfigurationConstraintsOptions): Promise>; } declare function getPlanPreview$1(httpClient: HttpClient): GetPlanPreviewSignature; interface GetPlanPreviewSignature { /** * Retrieves a plan with the pricing that applies to a specific member. * * The returned plan is the stored plan with the member-specific price and fee overrides configured on * it applied to the selected pricing variant, so it shows what this member would actually be charged * rather than the plan's list price. A plan with no overrides is returned unchanged. * * Use this to render a plan on a storefront before the member adds it to the cart. * @param - ID of the plan to preview. Corresponds to `catalogReference.catalogItemId`. */ (planId: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: GetPlanPreviewApplicationErrors; }>; } declare function listPlanPreviews$1(httpClient: HttpClient): ListPlanPreviewsSignature; interface ListPlanPreviewsSignature { /** * Retrieves several plans at once with the pricing that applies to a specific member. * * The batch form of Get Plan Preview. Use it to render a plan list or pricing table in a single call * rather than one call per plan. * * Pass a selector per plan. Leave `variantId` unset to apply overrides to every variant of that plan, * or set it to apply them to one. A plan is returned once even if several selectors reference it. */ (options?: ListPlanPreviewsOptions): Promise>; } declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature; interface CreatePlanSignature { /** * Creates a plan with specified billing terms and a pricing strategy. * * * To create the most common types of plans: * - **One-time**: Specify a `billingCycle` that's the desired duration and set `endType` to `CYCLES_COMPLETED` and `cyclesCompletedDetails.billingCycleCount` to `1`. * - **Recurring**: Define the recurrence rule using the plan's `billingCycle` object. * - **Free plan**: Set the plan's `flatRate.amount` to `0` and `maxPurchasesPerBuyer` to `1`. * @param - Plan to create. * @returns Created plan. */ (plan: NonNullablePaths, options?: CreatePlanOptions): Promise & { __applicationErrorsType?: CreatePlanApplicationErrors; __validationErrorsType?: CreatePlanValidationErrors; }>; } declare function getPlan$1(httpClient: HttpClient): GetPlanSignature; interface GetPlanSignature { /** * Retrieves a plan by ID. * @param - ID of the plan to retrieve. * @returns Requested plan. */ (planId: string): Promise>; } declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature; interface UpdatePlanSignature { /** * Updates a single plan. * * To update multiple plans at once, call Bulk Update Plans. * @param - Plan ID. * @returns Updated plan. */ (_id: string, plan: NonNullablePaths, options?: UpdatePlanOptions): Promise & { __validationErrorsType?: UpdatePlanValidationErrors; }>; } declare function bulkUpdatePlans$1(httpClient: HttpClient): BulkUpdatePlansSignature; interface BulkUpdatePlansSignature { /** * Updates multiple plans at once. * * You can't change plan names with this method. * * To update a single plan, call Update Plan. * @param - Plans to update. */ (plans: NonNullablePaths[], options?: BulkUpdatePlansOptions): Promise & { __validationErrorsType?: BulkUpdatePlansValidationErrors; }>; } declare function bulkUpdatePlanTags$1(httpClient: HttpClient): BulkUpdatePlanTagsSignature; interface BulkUpdatePlanTagsSignature { /** * Adds or removes tags on multiple plans. * * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to * assign and the list to unassign is assigned. Tags that don't exist are ignored. * @param - IDs of plans whose tags to update. */ (planIds: string[], options?: BulkUpdatePlanTagsOptions): Promise & { __applicationErrorsType?: BulkUpdatePlanTagsApplicationErrors; }>; } declare function bulkUpdatePlanTagsByFilter$1(httpClient: HttpClient): BulkUpdatePlanTagsByFilterSignature; interface BulkUpdatePlanTagsByFilterSignature { /** * Asynchronously updates tags on multiple plans that match the provided filter criteria. * * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to * assign and the list to unassign is assigned. Tags that don't exist are ignored. An empty filter * updates all plans. * * To check the status of the bulk update, pass the returned `jobId` to * [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job). * @param - WQL filter that selects plans whose tags to update. An empty filter selects all plans. */ (filter: Record, options?: BulkUpdatePlanTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdatePlanTagsByFilterApplicationErrors; }>; } declare function deletePlan$1(httpClient: HttpClient): DeletePlanSignature; interface DeletePlanSignature { /** * Deletes a plan. * @param - ID of the plan to delete. */ (planId: string): Promise; } declare function searchPlans$1(httpClient: HttpClient): SearchPlansSignature; interface SearchPlansSignature { /** * Retrieves a list of plans that match the provided search query and optionally performs aggregations on the data queried. * * To learn about working with queries, see [Search, Query and List Methods](https://dev.wix.com/docs/rest/articles/get-started/search-query-and-list-methods). * @param - Search options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */ (search: PlanSearch): Promise>; } declare function countPlans$1(httpClient: HttpClient): CountPlansSignature; interface CountPlansSignature { /** * Counts plans by the provided filter. * * To learn about working with queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */ (options?: CountPlansOptions): Promise>; } declare const onPlanCreated$1: EventDefinition; declare const onPlanDeleted$1: EventDefinition; declare const onPlanTagsModified$1: EventDefinition; declare const onPlanUpdated$1: EventDefinition; declare function customQueryPlans(httpClient: HttpClient): { (): PlansQueryBuilder; (query: PlanQuery): ReturnType; }; declare const getPlanConfigurationConstraints: MaybeContext & typeof getPlanConfigurationConstraints$1>; declare const getPlanPreview: MaybeContext & typeof getPlanPreview$1>; declare const listPlanPreviews: MaybeContext & typeof listPlanPreviews$1>; declare const createPlan: MaybeContext & typeof createPlan$1>; declare const getPlan: MaybeContext & typeof getPlan$1>; declare const updatePlan: MaybeContext & typeof updatePlan$1>; declare const bulkUpdatePlans: MaybeContext & typeof bulkUpdatePlans$1>; declare const bulkUpdatePlanTags: MaybeContext & typeof bulkUpdatePlanTags$1>; declare const bulkUpdatePlanTagsByFilter: MaybeContext & typeof bulkUpdatePlanTagsByFilter$1>; declare const deletePlan: MaybeContext & typeof deletePlan$1>; declare const searchPlans: MaybeContext & typeof searchPlans$1>; declare const countPlans: MaybeContext & typeof countPlans$1>; declare const queryPlans: MaybeContext & typeof customQueryPlans>; /** * Triggered when a plan is created. */ declare const onPlanCreated: BuildEventDefinition & typeof onPlanCreated$1; /** * Triggered when a plan is deleted. */ declare const onPlanDeleted: BuildEventDefinition & typeof onPlanDeleted$1; /** * Triggered when tags are assigned to or unassigned from a plan. */ declare const onPlanTagsModified: BuildEventDefinition & typeof onPlanTagsModified$1; /** * Triggered when a plan is updated. */ declare const onPlanUpdated: BuildEventDefinition & typeof onPlanUpdated$1; export { BulkUpdatePlanTagsApplicationErrors, BulkUpdatePlanTagsByFilterApplicationErrors, BulkUpdatePlanTagsByFilterOptions, BulkUpdatePlanTagsByFilterResponse, BulkUpdatePlanTagsOptions, BulkUpdatePlanTagsResponse, BulkUpdatePlansOptions, BulkUpdatePlansResponse, BulkUpdatePlansValidationErrors, CountPlansOptions, CountPlansResponse, CreatePlanApplicationErrors, CreatePlanOptions, CreatePlanValidationErrors, GetPlanConfigurationConstraintsOptions, GetPlanConfigurationConstraintsResponse, GetPlanPreviewApplicationErrors, GetPlanPreviewOptions, GetPlanPreviewResponse, ListPlanPreviewsOptions, ListPlanPreviewsResponse, MaskedPlan, Plan, PlanCreatedEnvelope, PlanDeletedEnvelope, PlanQuery, PlanSearch, PlanTagsModifiedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, SearchPlansResponse, UpdatePlan, UpdatePlanOptions, UpdatePlanValidationErrors, bulkUpdatePlanTags, bulkUpdatePlanTagsByFilter, bulkUpdatePlans, countPlans, createPlan, deletePlan, getPlan, getPlanConfigurationConstraints, getPlanPreview, listPlanPreviews, onPlanCreated, onPlanDeleted, onPlanTagsModified, onPlanUpdated, queryPlans, searchPlans, updatePlan };