@wix/auto_sdk_pricing-plans_plans 1.0.71 → 1.0.72
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 +13 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +35 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +13 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +35 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +35 -0
- 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 +13 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +35 -0
- 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
|
@@ -8,6 +8,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
10
|
* @param - Options for filtering and paging the list of public plans.
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
(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`> & {
|
|
13
14
|
__applicationErrorsType?: ListPublicPlansApplicationErrors;
|
|
@@ -32,6 +33,7 @@ interface QueryPublicPlansSignature {
|
|
|
32
33
|
* 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.
|
|
33
34
|
*
|
|
34
35
|
* 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).
|
|
36
|
+
* @deprecated
|
|
35
37
|
*/
|
|
36
38
|
(): PlansQueryBuilder;
|
|
37
39
|
}
|
|
@@ -41,6 +43,7 @@ interface GetPlanSignature {
|
|
|
41
43
|
* Retrieves a pricing plan by ID.
|
|
42
44
|
* @param - Plan ID.
|
|
43
45
|
* @returns Pricing plan.
|
|
46
|
+
* @deprecated
|
|
44
47
|
*/
|
|
45
48
|
(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
|
|
46
49
|
__applicationErrorsType?: GetPlanApplicationErrors;
|
|
@@ -51,6 +54,7 @@ interface ListPlansSignature {
|
|
|
51
54
|
/**
|
|
52
55
|
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
53
56
|
* @param - Options for filtering and paging the list of plans.
|
|
57
|
+
* @deprecated
|
|
54
58
|
*/
|
|
55
59
|
(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
|
|
56
60
|
[P in PlanNonNullablePaths]: `plans.${number}.${P}`;
|
|
@@ -63,6 +67,7 @@ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
|
|
|
63
67
|
interface GetPlanStatsSignature {
|
|
64
68
|
/**
|
|
65
69
|
* Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
|
|
70
|
+
* @deprecated
|
|
66
71
|
*/
|
|
67
72
|
(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
|
|
68
73
|
__applicationErrorsType?: GetPlanStatsApplicationErrors;
|
|
@@ -78,6 +83,7 @@ interface CreatePlanSignature {
|
|
|
78
83
|
* Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
|
|
79
84
|
* @param - Information for the plan being created.
|
|
80
85
|
* @returns Created plan.
|
|
86
|
+
* @deprecated
|
|
81
87
|
*/
|
|
82
88
|
(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
|
|
83
89
|
__applicationErrorsType?: CreatePlanApplicationErrors;
|
|
@@ -92,6 +98,7 @@ interface UpdatePlanSignature {
|
|
|
92
98
|
* @param - ID of the plan to update.
|
|
93
99
|
* @param - Options for updating the plan.
|
|
94
100
|
* @returns Updated plan.
|
|
101
|
+
* @deprecated
|
|
95
102
|
*/
|
|
96
103
|
(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
|
|
97
104
|
__applicationErrorsType?: UpdatePlanApplicationErrors;
|
|
@@ -108,6 +115,7 @@ interface SetPlanVisibilitySignature {
|
|
|
108
115
|
* @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
|
|
109
116
|
* @param - The ID of the plan to either display or hide on the site page.
|
|
110
117
|
* @param - Plan visibility options.
|
|
118
|
+
* @deprecated
|
|
111
119
|
*/
|
|
112
120
|
(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
|
|
113
121
|
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
@@ -120,6 +128,7 @@ interface MakePlanPrimarySignature {
|
|
|
120
128
|
/**
|
|
121
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.
|
|
122
130
|
* @param - ID of the pricing plan to set as the primary plan.
|
|
131
|
+
* @deprecated
|
|
123
132
|
*/
|
|
124
133
|
(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
|
|
125
134
|
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
@@ -131,6 +140,7 @@ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
|
|
|
131
140
|
interface ClearPrimarySignature {
|
|
132
141
|
/**
|
|
133
142
|
* Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
|
|
143
|
+
* @deprecated
|
|
134
144
|
*/
|
|
135
145
|
(): Promise<void & {
|
|
136
146
|
__applicationErrorsType?: ClearPrimaryApplicationErrors;
|
|
@@ -147,6 +157,7 @@ interface ArchivePlanSignature {
|
|
|
147
157
|
* Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
|
|
148
158
|
* > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
149
159
|
* @param - ID of the active plan to archive.
|
|
160
|
+
* @deprecated
|
|
150
161
|
*/
|
|
151
162
|
(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
|
|
152
163
|
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
@@ -172,6 +183,7 @@ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1
|
|
|
172
183
|
declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
|
|
173
184
|
/**
|
|
174
185
|
* Triggered when a plan's `buyerCanCancel` field is updated.
|
|
186
|
+
* @deprecated
|
|
175
187
|
*/
|
|
176
188
|
declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
|
|
177
189
|
/**
|
|
@@ -180,6 +192,7 @@ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuy
|
|
|
180
192
|
declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
|
|
181
193
|
/**
|
|
182
194
|
* Triggered when a pricing plan is archived.
|
|
195
|
+
* @deprecated
|
|
183
196
|
*/
|
|
184
197
|
declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
|
|
185
198
|
/**
|