import { af as CreatePlanRequest$1, ag as CreatePlanResponse$1, ah as GetPlanRequest$1, ai as GetPlanResponse$1, aj as UpdatePlanRequest$1, ak as UpdatePlanResponse$1, al as BulkUpdatePlansRequest$1, a as BulkUpdatePlansResponse$1, aq as DeletePlanRequest$1, ar as DeletePlanResponse$1, as as QueryPlansRequest$1, ay as QueryPlansResponse$1, aB as SearchPlansRequest$1, S as SearchPlansResponse$1, aS as CountPlansRequest$1, e as CountPlansResponse$1, aT as UpdateExtendedFieldsRequest$1, g as UpdateExtendedFieldsResponse$1 } from './pricing-plans-v3-plan-plansv-3.universal-Caq1J-FR.js'; import '@wix/sdk-types'; interface Plan { /** * Plan ID. * @format GUID * @readonly */ id?: string | null; /** * Revision number, which increments by 1 each time the plan is updated. * @readonly */ revision?: string | null; /** * Date and time the plan was created. * @readonly */ createdDate?: Date | null; /** * Date and time the plan was last updated. * @readonly */ updatedDate?: Date | null; /** * Plan name displayed to customers. * @minLength 1 * @maxLength 50 */ name?: string; /** * Plan description that explains what customers get with this plan. * @maxLength 450 */ description?: string | null; /** Visual information representing the plan. */ image?: Image; /** * Unique identifier for this plan within the Wix site. If not provided, generated automatically from the plan name. * @format URL_SLUG * @maxLength 255 */ slug?: string | null; /** * Terms and conditions text that customers must agree to when purchasing this plan. * @maxLength 3000 */ termsAndConditions?: string | null; /** * Maximum number of times the same customer can purchase this plan. Use `0` for unlimited purchases or `1` to limit to one purchase per customer. * @max 10 */ maxPurchasesPerBuyer?: number; /** * Pricing variants that define different billing and pricing options for this plan. Currently limited to 1 variant per plan. * @minSize 1 * @maxSize 1 */ pricingVariants?: PricingVariant[]; /** * List of benefits or features included with this plan. * @maxSize 500 */ perks?: Perk[]; /** Plan visibility. */ visibility?: VisibilityWithLiterals; /** Whether customers can currently purchase this plan. */ buyable?: boolean; /** * ID of the form associated with the plan at checkout. * @format GUID */ formId?: string | null; /** Whether the customer is allowed to cancel their plan. */ buyerCanCancel?: boolean; /** * Payment currency. * @readonly * @format CURRENCY */ currency?: string; /** Data extensions. */ extendedFields?: ExtendedFields; } interface Image { /** * WixMedia image ID. * @maxLength 255 */ id?: string; /** * Original image height. * @readonly */ height?: number; /** * Original image width. * @readonly */ width?: number; /** * Image alt text. * @maxLength 1000 */ altText?: string | null; } interface PricingVariant { /** * Pricing variant ID. * @format GUID */ id?: string; /** * Name for this pricing variant, such as "Monthly" or "Yearly". * @minLength 1 * @maxLength 255 */ name?: string; /** * Number of days customers can use the plan for free before the first charge. Set to `0` for no free trial. * @max 999 */ freeTrialDays?: number; /** * Additional fees applied to this pricing variant. * @maxSize 10 */ fees?: Fee[]; /** Billing configuration that defines when and how often customers are charged. */ billingTerms?: BillingTerms; /** * Promotional message displayed with this pricing variant. * @maxLength 255 */ promotion?: string | null; /** * Pricing strategies that determine how much customers pay. Currently limited to 1 strategy per variant. * @minSize 1 * @maxSize 1 */ pricingStrategies?: PricingStrategy[]; } interface FlatRate { /** * Fixed monetary amount. * @decimalValue options { gte:0, maxScale:4 } */ amount?: string; } interface Fee extends FeePriceOptionOneOf { /** Fixed monetary amount for the fee. */ fixedAmountOptions?: FixedAmountOption; /** @format GUID */ id?: string; /** Pricing type used for this fee. */ priceType?: PriceTypeWithLiterals; /** * Fee name displayed to customers, such as "Setup Fee" or "Processing Fee". * @minLength 1 * @maxLength 40 */ name?: string; /** When this fee is charged during the customer's plan lifecycle. */ appliedAt?: AppliedAtWithLiterals; } /** @oneof */ interface FeePriceOptionOneOf { /** Fixed monetary amount for the fee. */ fixedAmountOptions?: FixedAmountOption; } declare enum PriceType { /** Unknown price type. This value isn't used. */ UNKNOWN_PRICE_TYPE = "UNKNOWN_PRICE_TYPE", /** Fee is charged as a fixed monetary amount. */ FIXED_AMOUNT = "FIXED_AMOUNT" } /** @enumType */ type PriceTypeWithLiterals = PriceType | 'UNKNOWN_PRICE_TYPE' | 'FIXED_AMOUNT'; interface FixedAmountOption { /** * Fixed monetary amount. * @decimalValue options { gt:0, maxScale:4 } */ amount?: string; } declare enum AppliedAt { UNKNOWN_APPLIED_AT = "UNKNOWN_APPLIED_AT", /** Fee is added to the first payment. */ FIRST_PAYMENT = "FIRST_PAYMENT" } /** @enumType */ type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_APPLIED_AT' | 'FIRST_PAYMENT'; interface BillingTerms extends BillingTermsEndOptionOneOf { /** How many billing cycles the plan lasts. */ cyclesCompletedDetails?: CyclesCompletedDetails; /** Duration of each billing cycle, such as 1 month or 2 weeks. Can't be less than 7 days. Only applicable for recurring plans. */ billingCycle?: Duration; /** When the billing starts. */ startType?: StartTypeWithLiterals; /** How long the plan remains active. Plans can run until cancelled or for a specific number of billing cycles. Plan duration can't exceed 10 years. */ endType?: EndTypeWithLiterals; } /** @oneof */ interface BillingTermsEndOptionOneOf { /** How many billing cycles the plan lasts. */ cyclesCompletedDetails?: CyclesCompletedDetails; } interface Duration { /** Duration of period. */ period?: PeriodWithLiterals; /** * Number of periods. * @min 1 */ count?: string; } declare enum Period { /** Unknown period. This value isn't used. */ UNKNOWN_PERIOD = "UNKNOWN_PERIOD", DAY = "DAY", WEEK = "WEEK", MONTH = "MONTH", YEAR = "YEAR" } /** @enumType */ type PeriodWithLiterals = Period | 'UNKNOWN_PERIOD' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR'; declare enum StartType { /** Unknown start type. This value isn't used. */ UNKNOWN_START_TYPE = "UNKNOWN_START_TYPE", /** Billing starts immediately after purchase. */ ON_PURCHASE = "ON_PURCHASE", /** Customer can choose when billing starts. */ CUSTOM = "CUSTOM" } /** @enumType */ type StartTypeWithLiterals = StartType | 'UNKNOWN_START_TYPE' | 'ON_PURCHASE' | 'CUSTOM'; declare enum EndType { /** Unknown end type. This value isn't used. */ UNKNOWN_END_TYPE = "UNKNOWN_END_TYPE", /** Plan continues until customer cancels. */ UNTIL_CANCELLED = "UNTIL_CANCELLED", /** Plan ends after a specified number of billing cycles. */ CYCLES_COMPLETED = "CYCLES_COMPLETED" } /** @enumType */ type EndTypeWithLiterals = EndType | 'UNKNOWN_END_TYPE' | 'UNTIL_CANCELLED' | 'CYCLES_COMPLETED'; interface CyclesCompletedDetails { /** * Number of billing cycles before the plan automatically ends. For example, if `billingCycle` is 3 months and `billingCycleCount` is 4, the customer will be charged 4 times over 12 months before the plan expires. Only applicable if `endType` is `CYCLES_COMPLETED`. * @min 1 * @max 2000 */ billingCycleCount?: string; } interface PricingStrategy extends PricingStrategyStrategyOneOf { /** Single fixed cost charged regardless of usage. */ flatRate?: FlatRate; } /** @oneof */ interface PricingStrategyStrategyOneOf { /** Single fixed cost charged regardless of usage. */ flatRate?: FlatRate; } interface Perk { /** * Perk ID. * @format GUID */ id?: string; /** * Perk description. * @minLength 1 * @maxLength 1400 */ description?: string; } declare enum Visibility { /** Unknown visibility. This value isn't used. */ UNKNOWN_VISIBILITY = "UNKNOWN_VISIBILITY", /** Plan is visible and available for purchase by all customers. */ PUBLIC = "PUBLIC", /** Plan is not visible to new customers, unles they get a specific link to the plan. Existing subscribers can continue using it. */ PRIVATE = "PRIVATE" } /** @enumType */ type VisibilityWithLiterals = Visibility | 'UNKNOWN_VISIBILITY' | 'PUBLIC' | 'PRIVATE'; interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } interface CreatePlanRequest { /** plan to create. */ plan: Plan; /** * Unique key to prevent duplicate plan creation. If the same key is used within a short time period, the original plan will be returned instead of creating a duplicate. * @format GUID */ idempotencyKey?: string | null; } interface CreatePlanResponse { /** Created plan. */ plan?: Plan; } interface GetPlanRequest { /** * ID of the plan to retrieve. * @format GUID */ planId: string; } interface GetPlanResponse { /** Requested plan. */ plan?: Plan; } interface UpdatePlanRequest { /** plan to update. */ plan: Plan; } interface UpdatePlanResponse { /** Updated plan. */ plan?: Plan; } interface BulkUpdatePlansRequest { /** * Plans to update. * @minSize 1 * @maxSize 100 */ plans: MaskedPlan[]; /** Set the value to `true` to receive details of the updated plans. */ returnEntity?: boolean; } interface MaskedPlan { /** Plan to update. */ plan?: Plan; } interface BulkUpdatePlansResponse { /** * Updated plans. * @minSize 1 * @maxSize 100 */ results?: BulkPlanResult[]; /** Action metadata. */ bulkActionMetadata?: BulkActionMetadata; } interface ItemMetadata { /** * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). * @format GUID */ id?: string | null; /** Index of the item within the request array. Allows for correlation between request and response items. */ originalIndex?: number; /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ success?: boolean; /** Details about the error in case of failure. */ error?: ApplicationError; } interface ApplicationError { /** Error code. */ code?: string; /** Description of the error. */ description?: string; /** Data related to the error. */ data?: Record | null; } interface BulkPlanResult { /** Metadata for a specific updated item. */ itemMetadata?: ItemMetadata; /** Updated plan details. Only returned if the `returnEntity` field was set to `true`. */ item?: Plan; } interface BulkActionMetadata { /** Number of items that were successfully processed. */ totalSuccesses?: number; /** Number of items that couldn't be processed. */ totalFailures?: number; /** Number of failures without details because detailed failure threshold was exceeded. */ undetailedFailures?: number; } interface DeletePlanRequest { /** * ID of the plan to delete. * @format GUID */ planId: string; } interface DeletePlanResponse { } interface QueryPlansRequest { /** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */ query?: QueryV2; } interface QueryV2 extends QueryV2PagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; /** * Filter object. * * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). */ filter?: Record | null; /** * Sort object. * * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). * @maxSize 5 */ sort?: Sorting[]; } /** @oneof */ interface QueryV2PagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; } interface Sorting { /** * Name of the field to sort by. * @maxLength 512 */ fieldName?: string; /** Sort order. */ order?: SortOrderWithLiterals; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface CursorPaging { /** * Maximum number of items to return in the results. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. * @maxLength 16000 */ cursor?: string | null; } interface QueryPlansResponse { /** List of plans. */ plans?: Plan[]; /** Paging metadata. */ pagingMetadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } interface SearchPlansRequest { /** Search options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */ search?: CursorSearch; } interface CursorSearch extends CursorSearchPagingMethodOneOf { /** * Cursor pointing to page of results. * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided. */ cursorPaging?: CursorPaging; /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */ filter?: Record | null; /** * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] * @maxSize 10 */ sort?: Sorting[]; /** * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. * @maxSize 10 */ aggregations?: Aggregation[]; /** Free text to match in searchable fields */ search?: SearchDetails; /** * UTC offset or IANA time zone. Valid values are * ISO 8601 UTC offsets, such as +02:00 or -06:00, * and IANA time zone IDs, such as Europe/Rome * * Affects all filters and aggregations returned values. * You may override this behavior in a specific filter by providing * timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"` * @maxLength 50 */ timeZone?: string | null; } /** @oneof */ interface CursorSearchPagingMethodOneOf { /** * Cursor pointing to page of results. * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided. */ cursorPaging?: CursorPaging; } interface Aggregation extends AggregationKindOneOf { /** Value aggregation */ value?: ValueAggregation; /** Range aggregation */ range?: RangeAggregation; /** Scalar aggregation */ scalar?: ScalarAggregation; /** Date histogram aggregation */ dateHistogram?: DateHistogramAggregation; /** Nested aggregation */ nested?: NestedAggregation; /** * User-defined name of aggregation, should be unique, will appear in aggregation results * @maxLength 100 */ name?: string | null; /** Type of aggregation, client must provide matching aggregation field below */ type?: AggregationTypeWithLiterals; /** * Field to aggregate by, use dot notation to specify json path * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface AggregationKindOneOf { /** Value aggregation */ value?: ValueAggregation; /** Range aggregation */ range?: RangeAggregation; /** Scalar aggregation */ scalar?: ScalarAggregation; /** Date histogram aggregation */ dateHistogram?: DateHistogramAggregation; /** Nested aggregation */ nested?: NestedAggregation; } interface RangeBucket { /** Inclusive lower bound of the range. Required if to is not given */ from?: number | null; /** Exclusive upper bound of the range. Required if from is not given */ to?: number | null; } declare enum SortType { /** Should sort by number of matches */ COUNT = "COUNT", /** Should sort by value of the field alphabetically */ VALUE = "VALUE" } /** @enumType */ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE'; declare enum SortDirection { /** Should sort in descending order */ DESC = "DESC", /** Should sort in ascending order */ ASC = "ASC" } /** @enumType */ type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC'; declare enum MissingValues { /** Should missing values be excluded from the aggregation results */ EXCLUDE = "EXCLUDE", /** Should missing values be included in the aggregation results */ INCLUDE = "INCLUDE" } /** @enumType */ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE'; interface IncludeMissingValuesOptions { /** * Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... * @maxLength 20 */ addToBucket?: string; } declare enum ScalarType { UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE", /** Count of distinct values */ COUNT_DISTINCT = "COUNT_DISTINCT", /** Minimum value */ MIN = "MIN", /** Maximum value */ MAX = "MAX" } /** @enumType */ type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX'; interface ValueAggregation extends ValueAggregationOptionsOneOf { /** Options for including missing values */ includeOptions?: IncludeMissingValuesOptions; /** Should sort by number of matches or value of the field */ sortType?: SortTypeWithLiterals; /** Should sort in ascending or descending order */ sortDirection?: SortDirectionWithLiterals; /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */ limit?: number | null; /** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */ missingValues?: MissingValuesWithLiterals; } /** @oneof */ interface ValueAggregationOptionsOneOf { /** Options for including missing values */ includeOptions?: IncludeMissingValuesOptions; } declare enum NestedAggregationType { UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE", /** An aggregation where result buckets are dynamically built - one per unique value */ VALUE = "VALUE", /** An aggregation, where user can define set of ranges - each representing a bucket */ RANGE = "RANGE", /** A single-value metric aggregation - e.g. min, max, sum, avg */ SCALAR = "SCALAR", /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */ DATE_HISTOGRAM = "DATE_HISTOGRAM" } /** @enumType */ type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM'; interface RangeAggregation { /** * List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds * @maxSize 50 */ buckets?: RangeBucket[]; } interface ScalarAggregation { /** Define the operator for the scalar aggregation */ type?: ScalarTypeWithLiterals; } interface DateHistogramAggregation { /** Interval for date histogram aggregation */ interval?: IntervalWithLiterals; } declare enum Interval { UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL", /** Yearly interval */ YEAR = "YEAR", /** Monthly interval */ MONTH = "MONTH", /** Weekly interval */ WEEK = "WEEK", /** Daily interval */ DAY = "DAY", /** Hourly interval */ HOUR = "HOUR", /** Minute interval */ MINUTE = "MINUTE", /** Second interval */ SECOND = "SECOND" } /** @enumType */ type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND'; interface NestedAggregationItem extends NestedAggregationItemKindOneOf { /** Value aggregation */ value?: ValueAggregation; /** Range aggregation */ range?: RangeAggregation; /** Scalar aggregation */ scalar?: ScalarAggregation; /** Date histogram aggregation */ dateHistogram?: DateHistogramAggregation; /** * User-defined name of aggregation, should be unique, will appear in aggregation results * @maxLength 100 */ name?: string | null; /** Type of aggregation, client must provide matching aggregation field below */ type?: NestedAggregationTypeWithLiterals; /** * Field to aggregate by, use dont notation to specify json path * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface NestedAggregationItemKindOneOf { /** Value aggregation */ value?: ValueAggregation; /** Range aggregation */ range?: RangeAggregation; /** Scalar aggregation */ scalar?: ScalarAggregation; /** Date histogram aggregation */ dateHistogram?: DateHistogramAggregation; } declare enum AggregationType { UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE", /** An aggregation where result buckets are dynamically built - one per unique value */ VALUE = "VALUE", /** An aggregation, where user can define set of ranges - each representing a bucket */ RANGE = "RANGE", /** A single-value metric aggregation - e.g. min, max, sum, avg */ SCALAR = "SCALAR", /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */ DATE_HISTOGRAM = "DATE_HISTOGRAM", /** Multi-level aggregation, where each next aggregation is nested within previous one */ NESTED = "NESTED" } /** @enumType */ type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED'; /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */ interface NestedAggregation { /** * Flattened list of aggregations, where each next aggregation is nested within previous one * @minSize 2 * @maxSize 3 */ nestedAggregations?: NestedAggregationItem[]; } interface SearchDetails { /** Defines how separate search terms in `expression` are combined */ mode?: ModeWithLiterals; /** * Search term or expression * @maxLength 100 */ expression?: string | null; /** * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path * @maxLength 200 * @maxSize 20 */ fields?: string[]; /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */ fuzzy?: boolean; } declare enum Mode { /** Any of the search terms must be present */ OR = "OR", /** All search terms must be present */ AND = "AND" } /** @enumType */ type ModeWithLiterals = Mode | 'OR' | 'AND'; interface SearchPlansResponse { /** List of plans. */ plans?: Plan[]; /** Paging metadata. */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Cursor strings that point to the next page, previous page, or both. */ cursors?: Cursors; /** * Whether there are more pages to retrieve following the current page. * * + `true`: Another page of results can be retrieved. * + `false`: This is the last page. */ hasNext?: boolean | null; } interface CountPlansRequest { /** * Filter object in the following format: * `"filter" : { * "fieldName1": "value1", * "fieldName2":{"$operator":"value2"} * }` * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` */ filter?: Record | null; /** Free text to match in searchable fields. When specified, the method uses search instead of filter, and may be less consistent. */ search?: SearchDetails; } interface CountPlansResponse { /** The number of plans. */ count?: number; } interface UpdateExtendedFieldsRequest { /** ID of the entity to update. */ id: string; /** Identifier for the app whose extended fields are being updated. */ namespace: string; /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */ namespaceData: Record | null; } interface UpdateExtendedFieldsResponse { /** Updated Plan. */ plan?: Plan; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function createPlan(): __PublicMethodMetaInfo<'POST', {}, CreatePlanRequest$1, CreatePlanRequest, CreatePlanResponse$1, CreatePlanResponse>; declare function getPlan(): __PublicMethodMetaInfo<'GET', { planId: string; }, GetPlanRequest$1, GetPlanRequest, GetPlanResponse$1, GetPlanResponse>; declare function updatePlan(): __PublicMethodMetaInfo<'PATCH', { planId: string; }, UpdatePlanRequest$1, UpdatePlanRequest, UpdatePlanResponse$1, UpdatePlanResponse>; declare function bulkUpdatePlans(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePlansRequest$1, BulkUpdatePlansRequest, BulkUpdatePlansResponse$1, BulkUpdatePlansResponse>; declare function deletePlan(): __PublicMethodMetaInfo<'DELETE', { planId: string; }, DeletePlanRequest$1, DeletePlanRequest, DeletePlanResponse$1, DeletePlanResponse>; declare function queryPlans(): __PublicMethodMetaInfo<'GET', {}, QueryPlansRequest$1, QueryPlansRequest, QueryPlansResponse$1, QueryPlansResponse>; declare function searchPlans(): __PublicMethodMetaInfo<'GET', {}, SearchPlansRequest$1, SearchPlansRequest, SearchPlansResponse$1, SearchPlansResponse>; declare function countPlans(): __PublicMethodMetaInfo<'POST', {}, CountPlansRequest$1, CountPlansRequest, CountPlansResponse$1, CountPlansResponse>; declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', { id: string; }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>; export { type __PublicMethodMetaInfo, bulkUpdatePlans, countPlans, createPlan, deletePlan, getPlan, queryPlans, searchPlans, updateExtendedFields, updatePlan };