@wix/auto_sdk_pricing-plans_plans 1.0.64 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/pricing-plans-v2-plan-plans.http.ts","../../src/pricing-plans-v2-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMembershipV2PlansPlansServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/plan-proxy',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n _: [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n {\n srcPath: '/_api/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_plans';\n\n/** Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased. */\nexport function listPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __listPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPublicPlans;\n}\n\n/**\n * Creates a query to retrieve a list of public pricing plans.\n *\n *\n * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.\n *\n * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.\n *\n * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:\n * - [`skip`](#plansquerybuilder/skip): `0`\n * - [`limit`](#plansquerybuilder/limit): `50`\n *\n * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.\n *\n * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).\n */\nexport function queryPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __queryPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPublicPlans;\n}\n\n/** Retrieves a pricing plan by ID. */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/** Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans). */\nexport function listPlans(payload: object): RequestOptionsFactory<any> {\n function __listPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPlans;\n}\n\n/** Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans. */\nexport function getPlanStats(payload: object): RequestOptionsFactory<any> {\n function __getPlanStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/stats',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPlanStats;\n}\n\n/**\n * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:\n * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.\n * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.\n * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).\n * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.\n */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/**\n * Updates a pricing plan.\n * Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.\n */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/**\n * Sets visibility for pricing plans. Visible plans are considered public plans.\n * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.\n * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)\n * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.\n */\nexport function setPlanVisibility(payload: object): RequestOptionsFactory<any> {\n function __setPlanVisibility({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/visibility',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setPlanVisibility;\n}\n\n/** Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status. */\nexport function makePlanPrimary(payload: object): RequestOptionsFactory<any> {\n function __makePlanPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/make-primary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __makePlanPrimary;\n}\n\n/** Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon. */\nexport function clearPrimary(payload: object): RequestOptionsFactory<any> {\n function __clearPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/clear-primary',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __clearPrimary;\n}\n\n/**\n * Archives a single plan.\n * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.\n * This is because the plan's `public` property is automatically set to `false`.\n * Archived plans can't be purchased or reactivated.\n * Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms.\n * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.\n * > **Note:** An attempt to archive an already-archived plan throws an error.\n */\nexport function archivePlan(payload: object): RequestOptionsFactory<any> {\n function __archivePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archivePlan;\n}\n","import * as ambassadorWixPricingPlansV2Plan from './pricing-plans-v2-plan-plans.http.js';\nimport * as ambassadorWixPricingPlansV2PlanTypes from './pricing-plans-v2-plan-plans.types.js';\nimport * as ambassadorWixPricingPlansV2PlanUniversalTypes from './pricing-plans-v2-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listPublicPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.listPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/public',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPublicPlans(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.queryPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/public/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.getPlanStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/stats',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setPlanVisibility(): __PublicMethodMetaInfo<\n 'PUT',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityResponse,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.setPlanVisibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v2/plans/{id}/visibility',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function makePlanPrimary(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.makePlanPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/make-primary',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function clearPrimary(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.clearPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/clear-primary',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archivePlan(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.archivePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/archive',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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A,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,gBAAgB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4B,aAAa,OAAO;AAEtD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,eAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,YAAY,OAAO;AAErD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","listPublicPlans","queryPublicPlans","getPlan","listPlans","getPlanStats","createPlan","updatePlan","setPlanVisibility","makePlanPrimary","clearPrimary","archivePlan"]}
1
+ {"version":3,"sources":["../../src/pricing-plans-v2-plan-plans.http.ts","../../src/pricing-plans-v2-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMembershipV2PlansPlansServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/plan-proxy',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n _: [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n {\n srcPath: '/_api/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_plans';\n\n/**\n * Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.\n * Deprecated: use QueryPlans or SearchPlans with visibility set to PUBLIC and archived set to false in the filter.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function listPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __listPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPublicPlans;\n}\n\n/**\n * Creates a query to retrieve a list of public pricing plans.\n *\n *\n * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.\n *\n * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.\n *\n * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:\n * - [`skip`](#plansquerybuilder/skip): `0`\n * - [`limit`](#plansquerybuilder/limit): `50`\n *\n * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.\n *\n * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function queryPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __queryPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPublicPlans;\n}\n\n/**\n * Retrieves a pricing plan by ID.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.GetPlan(), and will be removed on 2025-12-31.\n */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/**\n * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).\n * Deprecated: use QueryPlans or SearchPlans instead.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.SearchPlans(), and will be removed on 2025-12-31.\n */\nexport function listPlans(payload: object): RequestOptionsFactory<any> {\n function __listPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPlans;\n}\n\n/**\n * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.\n * Deprecated: use CountPlans instead in order to retrieve the total number of pricing plans.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CountPlans(), and will be removed on 2025-12-31.\n */\nexport function getPlanStats(payload: object): RequestOptionsFactory<any> {\n function __getPlanStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/stats',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPlanStats;\n}\n\n/**\n * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:\n * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.\n * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.\n * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).\n * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CreatePlan(), and will be removed on 2025-12-31.\n */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/**\n * Updates a pricing plan.\n * Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/**\n * Sets visibility for pricing plans. Visible plans are considered public plans.\n * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.\n * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)\n * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.\n * Deprecated: use UpdatePlan with visibility parameter in the request instead.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function setPlanVisibility(payload: object): RequestOptionsFactory<any> {\n function __setPlanVisibility({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/visibility',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setPlanVisibility;\n}\n\n/**\n * Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.\n * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.\n * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.\n * Then, use BulkUpdatePlans to set the new plan as primary and remove the primary setting from the existing one.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function makePlanPrimary(payload: object): RequestOptionsFactory<any> {\n function __makePlanPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/make-primary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __makePlanPrimary;\n}\n\n/**\n * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.\n * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.\n * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.\n * Then, use BulkUpdatePlans to remove the primary setting from all primary plans.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function clearPrimary(payload: object): RequestOptionsFactory<any> {\n function __clearPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/clear-primary',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __clearPrimary;\n}\n\n/**\n * Deprecated: Use UpdatePlan with archived set to true instead.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function archivePlan(payload: object): RequestOptionsFactory<any> {\n function __archivePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archivePlan;\n}\n","import * as ambassadorWixPricingPlansV2Plan from './pricing-plans-v2-plan-plans.http.js';\nimport * as ambassadorWixPricingPlansV2PlanTypes from './pricing-plans-v2-plan-plans.types.js';\nimport * as ambassadorWixPricingPlansV2PlanUniversalTypes from './pricing-plans-v2-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listPublicPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.listPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/public',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPublicPlans(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.queryPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/public/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.getPlanStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/stats',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setPlanVisibility(): __PublicMethodMetaInfo<\n 'PUT',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityResponse,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.setPlanVisibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v2/plans/{id}/visibility',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function makePlanPrimary(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.makePlanPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/make-primary',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function clearPrimary(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.clearPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/clear-primary',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archivePlan(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.archivePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/archive',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,MACzB;AAAA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C;AAEjB,QAAM,oBAC4B,aAAa,OAAO;AAEtD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,eAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,YAAY,OAAO;AAErD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","listPublicPlans","queryPublicPlans","getPlan","listPlans","getPlanStats","createPlan","updatePlan","setPlanVisibility","makePlanPrimary","clearPrimary","archivePlan"]}
@@ -1,15 +1,18 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { ListPublicPlansOptions, ListPublicPlansResponse, ListPublicPlansApplicationErrors, PlansQueryBuilder, Plan, GetPlanApplicationErrors, ListPlansOptions, ListPlansResponse, ListPlansApplicationErrors, ListPlansValidationErrors, GetPlanStatsResponse, GetPlanStatsApplicationErrors, CreatePlanApplicationErrors, CreatePlanValidationErrors, UpdatePlan, UpdatePlanApplicationErrors, UpdatePlanValidationErrors, SetPlanVisibilityResponse, SetPlanVisibilityApplicationErrors, MakePlanPrimaryResponse, MakePlanPrimaryApplicationErrors, ClearPrimaryApplicationErrors, ArchivePlanResponse, ArchivePlanApplicationErrors, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanArchivedEnvelope, PlanUpdatedEnvelope } from './index.typings.js';
3
3
  export { ActionEvent, ApplicationError, AppliedAt, ArchivePlanRequest, ArchivedFilter, ArrangePlansRequest, ArrangePlansResponse, BaseEventMetadata, BulkActionMetadata, BulkArchivePlanRequest, BulkArchivePlanResponse, BulkPlanResult, BuyerCanCancelUpdated, ClearPrimaryRequest, ClearPrimaryResponse, CountPlansRequest, CountPlansResponse, CreatePlanRequest, CreatePlanResponse, Cursors, DomainEvent, DomainEventBodyOneOf, Duration, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Fee, FeeConfig, GetPlanRequest, GetPlanResponse, GetPlanStatsRequest, GetPlansPremiumStatusRequest, GetPlansPremiumStatusResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListPlansRequest, ListPublicPlansRequest, MakePlanPrimaryRequest, MessageEnvelope, Money, Paging, PagingMetadataV2, PeriodUnit, PlanArchived, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicPlan, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SortOrder, Sorting, StringList, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType } from './index.typings.js';
4
4
 
5
+ type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
5
6
  declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
6
7
  interface ListPublicPlansSignature {
7
8
  /**
8
9
  * Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.
10
+ * Deprecated: use QueryPlans or SearchPlans with visibility set to PUBLIC and archived set to false in the filter.
9
11
  * @param - Options for filtering and paging the list of public plans.
12
+ * @deprecated
10
13
  */
11
- (options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse & {
12
- __applicationErrorsType?: ListPublicPlansApplicationErrors | undefined;
14
+ (options?: ListPublicPlansOptions): Promise<NonNullablePaths<ListPublicPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.subscription.cycleDuration.unit` | `plans.${number}.pricing.price.value` | `plans.${number}.pricing.price.currency` | `plans.${number}.primary`> & {
15
+ __applicationErrorsType?: ListPublicPlansApplicationErrors;
13
16
  }>;
14
17
  }
15
18
  declare function queryPublicPlans$1(httpClient: HttpClient): QueryPublicPlansSignature;
@@ -31,6 +34,7 @@ interface QueryPublicPlansSignature {
31
34
  * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.
32
35
  *
33
36
  * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).
37
+ * @deprecated
34
38
  */
35
39
  (): PlansQueryBuilder;
36
40
  }
@@ -40,29 +44,36 @@ interface GetPlanSignature {
40
44
  * Retrieves a pricing plan by ID.
41
45
  * @param - Plan ID.
42
46
  * @returns Pricing plan.
47
+ * @deprecated
43
48
  */
44
- (_id: string): Promise<Plan & {
45
- __applicationErrorsType?: GetPlanApplicationErrors | undefined;
49
+ (_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
50
+ __applicationErrorsType?: GetPlanApplicationErrors;
46
51
  }>;
47
52
  }
48
53
  declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
49
54
  interface ListPlansSignature {
50
55
  /**
51
56
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
57
+ * Deprecated: use QueryPlans or SearchPlans instead.
52
58
  * @param - Options for filtering and paging the list of plans.
59
+ * @deprecated
53
60
  */
54
- (options?: ListPlansOptions | undefined): Promise<ListPlansResponse & {
55
- __applicationErrorsType?: ListPlansApplicationErrors | undefined;
56
- __validationErrorsType?: ListPlansValidationErrors | undefined;
61
+ (options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
62
+ [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
63
+ }[PlanNonNullablePaths]> & {
64
+ __applicationErrorsType?: ListPlansApplicationErrors;
65
+ __validationErrorsType?: ListPlansValidationErrors;
57
66
  }>;
58
67
  }
59
68
  declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
60
69
  interface GetPlanStatsSignature {
61
70
  /**
62
71
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
72
+ * Deprecated: use CountPlans instead in order to retrieve the total number of pricing plans.
73
+ * @deprecated
63
74
  */
64
- (): Promise<GetPlanStatsResponse & {
65
- __applicationErrorsType?: GetPlanStatsApplicationErrors | undefined;
75
+ (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
76
+ __applicationErrorsType?: GetPlanStatsApplicationErrors;
66
77
  }>;
67
78
  }
68
79
  declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
@@ -75,10 +86,11 @@ interface CreatePlanSignature {
75
86
  * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
76
87
  * @param - Information for the plan being created.
77
88
  * @returns Created plan.
89
+ * @deprecated
78
90
  */
79
- (plan: Plan): Promise<Plan & {
80
- __applicationErrorsType?: CreatePlanApplicationErrors | undefined;
81
- __validationErrorsType?: CreatePlanValidationErrors | undefined;
91
+ (plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
92
+ __applicationErrorsType?: CreatePlanApplicationErrors;
93
+ __validationErrorsType?: CreatePlanValidationErrors;
82
94
  }>;
83
95
  }
84
96
  declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
@@ -89,10 +101,11 @@ interface UpdatePlanSignature {
89
101
  * @param - ID of the plan to update.
90
102
  * @param - Options for updating the plan.
91
103
  * @returns Updated plan.
104
+ * @deprecated
92
105
  */
93
- (_id: string, plan: UpdatePlan): Promise<Plan & {
94
- __applicationErrorsType?: UpdatePlanApplicationErrors | undefined;
95
- __validationErrorsType?: UpdatePlanValidationErrors | undefined;
106
+ (_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
107
+ __applicationErrorsType?: UpdatePlanApplicationErrors;
108
+ __validationErrorsType?: UpdatePlanValidationErrors;
96
109
  }>;
97
110
  }
98
111
  declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilitySignature;
@@ -102,47 +115,58 @@ interface SetPlanVisibilitySignature {
102
115
  * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
103
116
  * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)
104
117
  * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
118
+ * Deprecated: use UpdatePlan with visibility parameter in the request instead.
105
119
  * @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
106
120
  * @param - The ID of the plan to either display or hide on the site page.
107
121
  * @param - Plan visibility options.
122
+ * @deprecated
108
123
  */
109
- (_id: string, visible: boolean): Promise<SetPlanVisibilityResponse & {
110
- __applicationErrorsType?: SetPlanVisibilityApplicationErrors | undefined;
124
+ (_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
125
+ [P in PlanNonNullablePaths]: `plan.${P}`;
126
+ }[PlanNonNullablePaths]> & {
127
+ __applicationErrorsType?: SetPlanVisibilityApplicationErrors;
111
128
  }>;
112
129
  }
113
130
  declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature;
114
131
  interface MakePlanPrimarySignature {
115
132
  /**
116
133
  * Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.
134
+ * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
135
+ * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
136
+ * Then, use BulkUpdatePlans to set the new plan as primary and remove the primary setting from the existing one.
117
137
  * @param - ID of the pricing plan to set as the primary plan.
138
+ * @deprecated
118
139
  */
119
- (_id: string): Promise<MakePlanPrimaryResponse & {
120
- __applicationErrorsType?: MakePlanPrimaryApplicationErrors | undefined;
140
+ (_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
141
+ [P in PlanNonNullablePaths]: `plan.${P}`;
142
+ }[PlanNonNullablePaths]> & {
143
+ __applicationErrorsType?: MakePlanPrimaryApplicationErrors;
121
144
  }>;
122
145
  }
123
146
  declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
124
147
  interface ClearPrimarySignature {
125
148
  /**
126
149
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
150
+ * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
151
+ * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
152
+ * Then, use BulkUpdatePlans to remove the primary setting from all primary plans.
153
+ * @deprecated
127
154
  */
128
155
  (): Promise<void & {
129
- __applicationErrorsType?: ClearPrimaryApplicationErrors | undefined;
156
+ __applicationErrorsType?: ClearPrimaryApplicationErrors;
130
157
  }>;
131
158
  }
132
159
  declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
133
160
  interface ArchivePlanSignature {
134
161
  /**
135
- * Archives a single plan.
136
- * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
137
- * This is because the plan's `public` property is automatically set to `false`.
138
- * Archived plans can't be purchased or reactivated.
139
- * Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms.
140
- * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
141
- * > **Note:** An attempt to archive an already-archived plan throws an error.
162
+ * Deprecated: Use UpdatePlan with archived set to true instead.
142
163
  * @param - ID of the active plan to archive.
164
+ * @deprecated
143
165
  */
144
- (_id: string): Promise<ArchivePlanResponse & {
145
- __applicationErrorsType?: ArchivePlanApplicationErrors | undefined;
166
+ (_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
167
+ [P in PlanNonNullablePaths]: `plan.${P}`;
168
+ }[PlanNonNullablePaths]> & {
169
+ __applicationErrorsType?: ArchivePlanApplicationErrors;
146
170
  }>;
147
171
  }
148
172
  declare const onPlanBuyerCanCancelUpdated$1: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
@@ -163,6 +187,7 @@ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1
163
187
  declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
164
188
  /**
165
189
  * Triggered when a plan's `buyerCanCancel` field is updated.
190
+ * @deprecated
166
191
  */
167
192
  declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
168
193
  /**
@@ -171,6 +196,7 @@ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuy
171
196
  declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
172
197
  /**
173
198
  * Triggered when a pricing plan is archived.
199
+ * @deprecated
174
200
  */
175
201
  declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
176
202
  /**