@wix/auto_sdk_pricing-plans_plans 1.0.68 → 1.0.70
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.
- package/build/cjs/index.d.ts +7 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -11
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +7 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -11
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSigna
|
|
|
7
7
|
interface ListPublicPlansSignature {
|
|
8
8
|
/**
|
|
9
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.
|
|
11
10
|
* @param - Options for filtering and paging the list of public plans.
|
|
12
11
|
* @deprecated
|
|
13
12
|
*/
|
|
@@ -54,7 +53,6 @@ declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
|
|
|
54
53
|
interface ListPlansSignature {
|
|
55
54
|
/**
|
|
56
55
|
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
57
|
-
* Deprecated: use QueryPlans or SearchPlans instead.
|
|
58
56
|
* @param - Options for filtering and paging the list of plans.
|
|
59
57
|
* @deprecated
|
|
60
58
|
*/
|
|
@@ -69,7 +67,6 @@ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
|
|
|
69
67
|
interface GetPlanStatsSignature {
|
|
70
68
|
/**
|
|
71
69
|
* 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
70
|
* @deprecated
|
|
74
71
|
*/
|
|
75
72
|
(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
|
|
@@ -115,7 +112,6 @@ interface SetPlanVisibilitySignature {
|
|
|
115
112
|
* By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
|
|
116
113
|
* 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.)
|
|
117
114
|
* 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.
|
|
119
115
|
* @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
|
|
120
116
|
* @param - The ID of the plan to either display or hide on the site page.
|
|
121
117
|
* @param - Plan visibility options.
|
|
@@ -131,9 +127,6 @@ declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySigna
|
|
|
131
127
|
interface MakePlanPrimarySignature {
|
|
132
128
|
/**
|
|
133
129
|
* 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.
|
|
137
130
|
* @param - ID of the pricing plan to set as the primary plan.
|
|
138
131
|
* @deprecated
|
|
139
132
|
*/
|
|
@@ -147,9 +140,6 @@ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
|
|
|
147
140
|
interface ClearPrimarySignature {
|
|
148
141
|
/**
|
|
149
142
|
* 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
143
|
* @deprecated
|
|
154
144
|
*/
|
|
155
145
|
(): Promise<void & {
|
|
@@ -159,7 +149,13 @@ interface ClearPrimarySignature {
|
|
|
159
149
|
declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
|
|
160
150
|
interface ArchivePlanSignature {
|
|
161
151
|
/**
|
|
162
|
-
*
|
|
152
|
+
* Archives a single plan.
|
|
153
|
+
* When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
|
|
154
|
+
* This is because the plan's `public` property is automatically set to `false`.
|
|
155
|
+
* Archived plans can't be purchased or reactivated.
|
|
156
|
+
* 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.
|
|
157
|
+
* Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
|
|
158
|
+
* > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
163
159
|
* @param - ID of the active plan to archive.
|
|
164
160
|
* @deprecated
|
|
165
161
|
*/
|