@wix/auto_sdk_pricing-plans_plans 1.0.71 → 1.0.73
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 +24 -20
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +44 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +24 -20
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +44 -18
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +24 -20
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +44 -18
- 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 +24 -20
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +44 -18
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
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
|
-
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';
|
|
3
|
+
export { ActionEvent, ApplicationError, AppliedAt, AppliedAtWithLiterals, ArchivePlanRequest, ArchivedFilter, ArchivedFilterWithLiterals, 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, PeriodUnitWithLiterals, PlanArchived, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicFilterWithLiterals, PublicPlan, QueryPublicPlansApplicationErrors, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryPublicPlansValidationErrors, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SortOrder, SortOrderWithLiterals, Sorting, StringList, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } 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`;
|
|
6
5
|
declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
|
|
7
6
|
interface ListPublicPlansSignature {
|
|
8
7
|
/**
|
|
9
8
|
* 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
9
|
* @param - Options for filtering and paging the list of public plans.
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
|
-
(options?: ListPublicPlansOptions): Promise<NonNullablePaths<ListPublicPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.
|
|
12
|
+
(options?: ListPublicPlansOptions): Promise<NonNullablePaths<ListPublicPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.singlePaymentForDuration.unit` | `plans.${number}.pricing.price.value` | `plans.${number}.pricing.price.currency` | `plans.${number}.primary`, 6> & {
|
|
13
13
|
__applicationErrorsType?: ListPublicPlansApplicationErrors;
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
@@ -32,6 +32,7 @@ interface QueryPublicPlansSignature {
|
|
|
32
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.
|
|
33
33
|
*
|
|
34
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).
|
|
35
|
+
* @deprecated
|
|
35
36
|
*/
|
|
36
37
|
(): PlansQueryBuilder;
|
|
37
38
|
}
|
|
@@ -41,8 +42,9 @@ interface GetPlanSignature {
|
|
|
41
42
|
* Retrieves a pricing plan by ID.
|
|
42
43
|
* @param - Plan ID.
|
|
43
44
|
* @returns Pricing plan.
|
|
45
|
+
* @deprecated
|
|
44
46
|
*/
|
|
45
|
-
(_id: string): Promise<NonNullablePaths<Plan,
|
|
47
|
+
(_id: string): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
|
|
46
48
|
__applicationErrorsType?: GetPlanApplicationErrors;
|
|
47
49
|
}>;
|
|
48
50
|
}
|
|
@@ -51,10 +53,9 @@ interface ListPlansSignature {
|
|
|
51
53
|
/**
|
|
52
54
|
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
53
55
|
* @param - Options for filtering and paging the list of plans.
|
|
56
|
+
* @deprecated
|
|
54
57
|
*/
|
|
55
|
-
(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
|
|
56
|
-
[P in PlanNonNullablePaths]: `plans.${number}.${P}`;
|
|
57
|
-
}[PlanNonNullablePaths]> & {
|
|
58
|
+
(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.singlePaymentForDuration.unit` | `plans.${number}.pricing.price.value` | `plans.${number}.pricing.price.currency` | `plans.${number}.archived` | `plans.${number}.primary` | `plans.${number}.hasOrders`, 6> & {
|
|
58
59
|
__applicationErrorsType?: ListPlansApplicationErrors;
|
|
59
60
|
__validationErrorsType?: ListPlansValidationErrors;
|
|
60
61
|
}>;
|
|
@@ -63,8 +64,9 @@ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
|
|
|
63
64
|
interface GetPlanStatsSignature {
|
|
64
65
|
/**
|
|
65
66
|
* Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
|
|
67
|
+
* @deprecated
|
|
66
68
|
*/
|
|
67
|
-
(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans
|
|
69
|
+
(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 2> & {
|
|
68
70
|
__applicationErrorsType?: GetPlanStatsApplicationErrors;
|
|
69
71
|
}>;
|
|
70
72
|
}
|
|
@@ -78,8 +80,9 @@ interface CreatePlanSignature {
|
|
|
78
80
|
* Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
|
|
79
81
|
* @param - Information for the plan being created.
|
|
80
82
|
* @returns Created plan.
|
|
83
|
+
* @deprecated
|
|
81
84
|
*/
|
|
82
|
-
(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count
|
|
85
|
+
(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`, 5>): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
|
|
83
86
|
__applicationErrorsType?: CreatePlanApplicationErrors;
|
|
84
87
|
__validationErrorsType?: CreatePlanValidationErrors;
|
|
85
88
|
}>;
|
|
@@ -92,8 +95,9 @@ interface UpdatePlanSignature {
|
|
|
92
95
|
* @param - ID of the plan to update.
|
|
93
96
|
* @param - Options for updating the plan.
|
|
94
97
|
* @returns Updated plan.
|
|
98
|
+
* @deprecated
|
|
95
99
|
*/
|
|
96
|
-
(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan,
|
|
100
|
+
(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
|
|
97
101
|
__applicationErrorsType?: UpdatePlanApplicationErrors;
|
|
98
102
|
__validationErrorsType?: UpdatePlanValidationErrors;
|
|
99
103
|
}>;
|
|
@@ -108,10 +112,9 @@ interface SetPlanVisibilitySignature {
|
|
|
108
112
|
* @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
|
|
109
113
|
* @param - The ID of the plan to either display or hide on the site page.
|
|
110
114
|
* @param - Plan visibility options.
|
|
115
|
+
* @deprecated
|
|
111
116
|
*/
|
|
112
|
-
(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
|
|
113
|
-
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
114
|
-
}[PlanNonNullablePaths]> & {
|
|
117
|
+
(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, `plan._id` | `plan.perks.values` | `plan.pricing.subscription.cycleDuration.unit` | `plan.pricing.price.value` | `plan.pricing.price.currency` | `plan.archived` | `plan.primary` | `plan.hasOrders`, 6> & {
|
|
115
118
|
__applicationErrorsType?: SetPlanVisibilityApplicationErrors;
|
|
116
119
|
}>;
|
|
117
120
|
}
|
|
@@ -120,10 +123,9 @@ interface MakePlanPrimarySignature {
|
|
|
120
123
|
/**
|
|
121
124
|
* 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
125
|
* @param - ID of the pricing plan to set as the primary plan.
|
|
126
|
+
* @deprecated
|
|
123
127
|
*/
|
|
124
|
-
(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
|
|
125
|
-
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
126
|
-
}[PlanNonNullablePaths]> & {
|
|
128
|
+
(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, `plan._id` | `plan.perks.values` | `plan.pricing.subscription.cycleDuration.unit` | `plan.pricing.price.value` | `plan.pricing.price.currency` | `plan.archived` | `plan.primary` | `plan.hasOrders`, 6> & {
|
|
127
129
|
__applicationErrorsType?: MakePlanPrimaryApplicationErrors;
|
|
128
130
|
}>;
|
|
129
131
|
}
|
|
@@ -131,6 +133,7 @@ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
|
|
|
131
133
|
interface ClearPrimarySignature {
|
|
132
134
|
/**
|
|
133
135
|
* Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
|
|
136
|
+
* @deprecated
|
|
134
137
|
*/
|
|
135
138
|
(): Promise<void & {
|
|
136
139
|
__applicationErrorsType?: ClearPrimaryApplicationErrors;
|
|
@@ -147,10 +150,9 @@ interface ArchivePlanSignature {
|
|
|
147
150
|
* Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
|
|
148
151
|
* > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
149
152
|
* @param - ID of the active plan to archive.
|
|
153
|
+
* @deprecated
|
|
150
154
|
*/
|
|
151
|
-
(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
|
|
152
|
-
[P in PlanNonNullablePaths]: `plan.${P}`;
|
|
153
|
-
}[PlanNonNullablePaths]> & {
|
|
155
|
+
(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, `plan._id` | `plan.perks.values` | `plan.pricing.subscription.cycleDuration.unit` | `plan.pricing.price.value` | `plan.pricing.price.currency` | `plan.archived` | `plan.primary` | `plan.hasOrders`, 6> & {
|
|
154
156
|
__applicationErrorsType?: ArchivePlanApplicationErrors;
|
|
155
157
|
}>;
|
|
156
158
|
}
|
|
@@ -172,6 +174,7 @@ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1
|
|
|
172
174
|
declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
|
|
173
175
|
/**
|
|
174
176
|
* Triggered when a plan's `buyerCanCancel` field is updated.
|
|
177
|
+
* @deprecated
|
|
175
178
|
*/
|
|
176
179
|
declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
|
|
177
180
|
/**
|
|
@@ -180,6 +183,7 @@ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuy
|
|
|
180
183
|
declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
|
|
181
184
|
/**
|
|
182
185
|
* Triggered when a pricing plan is archived.
|
|
186
|
+
* @deprecated
|
|
183
187
|
*/
|
|
184
188
|
declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
|
|
185
189
|
/**
|
|
@@ -188,4 +192,4 @@ declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
|
|
|
188
192
|
*/
|
|
189
193
|
declare const onPlanUpdated: BuildEventDefinition<typeof onPlanUpdated$1>;
|
|
190
194
|
|
|
191
|
-
export { ArchivePlanResponse, GetPlanStatsResponse, ListPlansOptions, ListPlansResponse, ListPublicPlansOptions, ListPublicPlansResponse, MakePlanPrimaryResponse, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityResponse, UpdatePlan, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, onPlanArchived, onPlanBuyerCanCancelUpdated, onPlanCreated, onPlanUpdated, queryPublicPlans, setPlanVisibility, updatePlan };
|
|
195
|
+
export { ArchivePlanApplicationErrors, ArchivePlanResponse, ClearPrimaryApplicationErrors, CreatePlanApplicationErrors, CreatePlanValidationErrors, GetPlanApplicationErrors, GetPlanStatsApplicationErrors, GetPlanStatsResponse, ListPlansApplicationErrors, ListPlansOptions, ListPlansResponse, ListPlansValidationErrors, ListPublicPlansApplicationErrors, ListPublicPlansOptions, ListPublicPlansResponse, MakePlanPrimaryApplicationErrors, MakePlanPrimaryResponse, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityApplicationErrors, SetPlanVisibilityResponse, UpdatePlan, UpdatePlanApplicationErrors, UpdatePlanValidationErrors, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, onPlanArchived, onPlanBuyerCanCancelUpdated, onPlanCreated, onPlanUpdated, queryPublicPlans, setPlanVisibility, updatePlan };
|