@wix/auto_sdk_pricing-plans_plans 1.0.70 → 1.0.71

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