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-CSm3CgP7.js'; export { bR as AccountInfo, cY as AccountInfoMetadata, bN as ActionEvent, br as Address, bs as AddressHint, ci as Aggregation, cw as AggregationData, cj as AggregationKindOneOf, cP as AggregationResults, cQ as AggregationResultsResultOneOf, cD as AggregationResultsScalarResult, ag as AggregationType, dB as AggregationTypeWithLiterals, b_ as ApplicationError, E as AppliedAt, d2 as AppliedAtWithLiterals, cW as BaseEventMetadata, aM as BenefitDistributionSettings, aN as BenefitDistributionSettingsDistributionStrategyOneOf, aq as BillingTerms, ar as BillingTermsEndOptionOneOf, c0 as BulkActionMetadata, b$ as BulkPlanResult, c3 as BulkUpdatePlanTagsByFilterRequest, c1 as BulkUpdatePlanTagsRequest, c2 as BulkUpdatePlanTagsResult, bY as BulkUpdatePlansRequest, bu as BusinessSchedule, a8 as Cascade, dt as CascadeWithLiterals, bp as Categories, bB as ChangeContext, bC as ChangeContextPayloadOneOf, cS as ChangePriceRequest, cT as ChangePriceResponse, cU as ClonePlanRequest, cV as ClonePlanResponse, dD as CommonQueryWithEntityContext, dE as CommonSearchWithEntityContext, bz as ConsentPolicy, cR as CountPlansRequest, bS as CreatePlanRequest, bT as CreatePlanResponse, cb as CursorPaging, cv as CursorPagingMetadata, cg as CursorSearch, ch as CursorSearchPagingMethodOneOf, ce as Cursors, al as CustomAmount, aP as CustomScheduleOptions, ak as CustomerChosenPrice, b4 as CustomerChosenPriceOptions, J as CustomerEligibility, d6 as CustomerEligibilityWithLiterals, at as CyclesCompletedDetails, cq as DateHistogramAggregation, cL as DateHistogramResult, cN as DateHistogramResults, aU as DateRangeOptions, aT as DayOfMonthOptions, a5 as DayOfWeek, dq as DayOfWeekWithLiterals, c4 as DeletePlanRequest, c5 as DeletePlanResponse, T as DistributionStrategyType, dd as DistributionStrategyTypeWithLiterals, bH as DomainEvent, bI as DomainEventBodyOneOf, aO as Duration, R as DurationUnit, dc as DurationUnitWithLiterals, bG as Empty, I as EndType, d5 as EndTypeWithLiterals, bJ as EntityCreatedEvent, bM as EntityDeletedEvent, bL as EntityUpdatedEvent, cX 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, bb as FixedDatesOptions, aC as FixedPriceOptions, aj as FlatRate, a0 as FreeTrialPolicy, dk as FreeTrialPolicyWithLiterals, bt as GeoCoordinates, b7 as GetPlanConfigurationConstraintsRequest, bj as GetPlanPreviewRequest, bU as GetPlanRequest, bV as GetPlanResponse, cM as GroupByValueResults, bP as IdentificationData, bQ as IdentificationDataIdOneOf, cl as IncludeMissingValuesOptions, af as Interval, dA as IntervalWithLiterals, bZ as ItemMetadata, bg as ListPlanConfigurationConstraintsRequest, bh as ListPlanConfigurationConstraintsResponse, bk as ListPlanPreviewsRequest, bq as Locale, bO as MessageEnvelope, ac as MissingValues, dx as MissingValuesWithLiterals, ah as Mode, dC as ModeWithLiterals, bf as MonthlyRecurrence, bx as Multilingual, ct as NestedAggregation, cr as NestedAggregationItem, cs as NestedAggregationItemKindOneOf, cz as NestedAggregationResults, cA as NestedAggregationResultsResultOneOf, ae as NestedAggregationType, dz as NestedAggregationTypeWithLiterals, cI as NestedResultValue, cJ as NestedResultValueResultOneOf, cO as NestedResults, cE as NestedValueAggregationResult, b0 as Options, b1 as OptionsOptionsOneOf, O as OverrideType, d8 as OverrideTypeWithLiterals, ca as Paging, cd as PagingMetadataV2, aD as PercentageDiscountOptions, F as Period, d3 as PeriodWithLiterals, aI as Perk, a4 as PlacementType, dp as PlacementTypeWithLiterals, bi as PlanConstraintsResult, b2 as PlanOptions, b3 as PlanOptionsPricingStrategyOptionsOneOf, bl as PlanPreviewSelector, c_ as PlanQuerySpec, c$ as PlanSearchSpec, a_ as PlanTagsModified, aY as PlanTranslated, aZ as PlanTranslationDeleted, cZ as PlansQueryResult, am as PredefinedAmounts, ax as PriceOverride, ay as PriceOverrideOverrideOptionOneOf, K as PriceOverrideOverrideType, d7 as PriceOverrideOverrideTypeWithLiterals, aw as PriceOverrides, D as PriceType, d1 as PriceTypeWithLiterals, au as PricingStrategy, av as PricingStrategyStrategyOneOf, $ as PricingStrategyType, dj as PricingStrategyTypeWithLiterals, ai as PricingVariant, bo as Properties, bD as PropertiesChange, az as PurchaseConditions, aA as PurchaseConditionsCustomerEligibilityOptionOneOf, _ as PurchaseFlow, di as PurchaseFlowWithLiterals, aL as PurchaseLimit, Q as PurchaseLimitType, db as PurchaseLimitTypeWithLiterals, c6 as QueryPlansRequest, cc as QueryPlansResponse, c7 as QueryV2, c8 as QueryV2PagingMethodOneOf, co as RangeAggregation, cy as RangeAggregationResult, ck as RangeBucket, cG as RangeResult, cC as RangeResults, bc as RecurrenceOptions, bd as RecurrenceOptionsRecurrenceOneOf, a2 as RecurrenceType, dm as RecurrenceTypeWithLiterals, a6 as ResolutionMethod, dr as ResolutionMethodWithLiterals, bK as RestoreInfo, cK as Results, a1 as RulesType, dl as RulesTypeWithLiterals, cp as ScalarAggregation, cH as ScalarResult, ad as ScalarType, dy as ScalarTypeWithLiterals, cu as SearchDetails, cf as SearchPlansRequest, bF as SiteCloned, bE as SiteCreated, bn as SitePropertiesEvent, bm as SitePropertiesNotification, ab as SortDirection, dw as SortDirectionWithLiterals, a9 as SortOrder, du as SortOrderWithLiterals, aa as SortType, dv as SortTypeWithLiterals, c9 as Sorting, bw as SpecialHourPeriod, aB as SpecificMembersOptions, b8 as StartDateLimits, b9 as StartDateRules, ba as StartDateRulesDateRulesOneOf, aQ as StartDateSettings, aR as StartDateSettingsStartDateOptionOneOf, W as StartDateType, de as StartDateTypeWithLiterals, H as StartType, d4 as StartTypeWithLiterals, N as Status, da as StatusWithLiterals, by as SupportedLanguage, aW as TagList, aV as Tags, Y as TaxableAddress, dg as TaxableAddressWithLiterals, aJ as TermsAndConditionsSettings, aK as ThankYouPageSettings, bv as TimePeriod, bA as Translation, X as Type, df as TypeWithLiterals, bW as UpdatePlanRequest, bX as UpdatePlanResponse, a3 as V1DayOfWeek, dn as V1DayOfWeekWithLiterals, as as V3Duration, a$ as ValidateOptionsRequest, b5 as ValidateOptionsResponse, Z as ValidationStrategy, dh as ValidationStrategyWithLiterals, cm as ValueAggregation, cn as ValueAggregationOptionsOneOf, cx as ValueAggregationResult, cF as ValueResult, cB as ValueResults, b6 as Violation, V as Visibility, d9 as VisibilityWithLiterals, a7 as WebhookIdentityType, ds as WebhookIdentityTypeWithLiterals, be as WeeklyRecurrence, d0 as utils } from './pricing-plans-v3-plan-plans-v-3.universal-CSm3CgP7.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 };