@wix/auto_sdk_pricing-plans_plans 1.0.62 → 1.0.64
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 +35 -12
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts → index.typings.d.ts} +430 -1
- package/build/cjs/index.typings.js +791 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +35 -12
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts → index.typings.d.mts} +430 -1
- package/build/es/index.typings.mjs +751 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +35 -12
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts → index.typings.d.ts} +430 -1
- package/build/internal/cjs/index.typings.js +791 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +35 -12
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts → index.typings.d.mts} +430 -1
- package/build/internal/es/index.typings.mjs +751 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
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';
|
|
4
4
|
|
|
5
5
|
declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
|
|
6
6
|
interface ListPublicPlansSignature {
|
|
@@ -8,7 +8,9 @@ interface ListPublicPlansSignature {
|
|
|
8
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.
|
|
9
9
|
* @param - Options for filtering and paging the list of public plans.
|
|
10
10
|
*/
|
|
11
|
-
(options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse
|
|
11
|
+
(options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse & {
|
|
12
|
+
__applicationErrorsType?: ListPublicPlansApplicationErrors | undefined;
|
|
13
|
+
}>;
|
|
12
14
|
}
|
|
13
15
|
declare function queryPublicPlans$1(httpClient: HttpClient): QueryPublicPlansSignature;
|
|
14
16
|
interface QueryPublicPlansSignature {
|
|
@@ -39,7 +41,9 @@ interface GetPlanSignature {
|
|
|
39
41
|
* @param - Plan ID.
|
|
40
42
|
* @returns Pricing plan.
|
|
41
43
|
*/
|
|
42
|
-
(_id: string): Promise<Plan
|
|
44
|
+
(_id: string): Promise<Plan & {
|
|
45
|
+
__applicationErrorsType?: GetPlanApplicationErrors | undefined;
|
|
46
|
+
}>;
|
|
43
47
|
}
|
|
44
48
|
declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
|
|
45
49
|
interface ListPlansSignature {
|
|
@@ -47,14 +51,19 @@ interface ListPlansSignature {
|
|
|
47
51
|
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
48
52
|
* @param - Options for filtering and paging the list of plans.
|
|
49
53
|
*/
|
|
50
|
-
(options?: ListPlansOptions | undefined): Promise<ListPlansResponse
|
|
54
|
+
(options?: ListPlansOptions | undefined): Promise<ListPlansResponse & {
|
|
55
|
+
__applicationErrorsType?: ListPlansApplicationErrors | undefined;
|
|
56
|
+
__validationErrorsType?: ListPlansValidationErrors | undefined;
|
|
57
|
+
}>;
|
|
51
58
|
}
|
|
52
59
|
declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
|
|
53
60
|
interface GetPlanStatsSignature {
|
|
54
61
|
/**
|
|
55
62
|
* Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
|
|
56
63
|
*/
|
|
57
|
-
(): Promise<GetPlanStatsResponse
|
|
64
|
+
(): Promise<GetPlanStatsResponse & {
|
|
65
|
+
__applicationErrorsType?: GetPlanStatsApplicationErrors | undefined;
|
|
66
|
+
}>;
|
|
58
67
|
}
|
|
59
68
|
declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
|
|
60
69
|
interface CreatePlanSignature {
|
|
@@ -67,7 +76,10 @@ interface CreatePlanSignature {
|
|
|
67
76
|
* @param - Information for the plan being created.
|
|
68
77
|
* @returns Created plan.
|
|
69
78
|
*/
|
|
70
|
-
(plan: Plan): Promise<Plan
|
|
79
|
+
(plan: Plan): Promise<Plan & {
|
|
80
|
+
__applicationErrorsType?: CreatePlanApplicationErrors | undefined;
|
|
81
|
+
__validationErrorsType?: CreatePlanValidationErrors | undefined;
|
|
82
|
+
}>;
|
|
71
83
|
}
|
|
72
84
|
declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
|
|
73
85
|
interface UpdatePlanSignature {
|
|
@@ -78,7 +90,10 @@ interface UpdatePlanSignature {
|
|
|
78
90
|
* @param - Options for updating the plan.
|
|
79
91
|
* @returns Updated plan.
|
|
80
92
|
*/
|
|
81
|
-
(_id: string, plan: UpdatePlan): Promise<Plan
|
|
93
|
+
(_id: string, plan: UpdatePlan): Promise<Plan & {
|
|
94
|
+
__applicationErrorsType?: UpdatePlanApplicationErrors | undefined;
|
|
95
|
+
__validationErrorsType?: UpdatePlanValidationErrors | undefined;
|
|
96
|
+
}>;
|
|
82
97
|
}
|
|
83
98
|
declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilitySignature;
|
|
84
99
|
interface SetPlanVisibilitySignature {
|
|
@@ -91,7 +106,9 @@ interface SetPlanVisibilitySignature {
|
|
|
91
106
|
* @param - The ID of the plan to either display or hide on the site page.
|
|
92
107
|
* @param - Plan visibility options.
|
|
93
108
|
*/
|
|
94
|
-
(_id: string, visible: boolean): Promise<SetPlanVisibilityResponse
|
|
109
|
+
(_id: string, visible: boolean): Promise<SetPlanVisibilityResponse & {
|
|
110
|
+
__applicationErrorsType?: SetPlanVisibilityApplicationErrors | undefined;
|
|
111
|
+
}>;
|
|
95
112
|
}
|
|
96
113
|
declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature;
|
|
97
114
|
interface MakePlanPrimarySignature {
|
|
@@ -99,14 +116,18 @@ interface MakePlanPrimarySignature {
|
|
|
99
116
|
* 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.
|
|
100
117
|
* @param - ID of the pricing plan to set as the primary plan.
|
|
101
118
|
*/
|
|
102
|
-
(_id: string): Promise<MakePlanPrimaryResponse
|
|
119
|
+
(_id: string): Promise<MakePlanPrimaryResponse & {
|
|
120
|
+
__applicationErrorsType?: MakePlanPrimaryApplicationErrors | undefined;
|
|
121
|
+
}>;
|
|
103
122
|
}
|
|
104
123
|
declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
|
|
105
124
|
interface ClearPrimarySignature {
|
|
106
125
|
/**
|
|
107
126
|
* Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
|
|
108
127
|
*/
|
|
109
|
-
(): Promise<void
|
|
128
|
+
(): Promise<void & {
|
|
129
|
+
__applicationErrorsType?: ClearPrimaryApplicationErrors | undefined;
|
|
130
|
+
}>;
|
|
110
131
|
}
|
|
111
132
|
declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
|
|
112
133
|
interface ArchivePlanSignature {
|
|
@@ -120,7 +141,9 @@ interface ArchivePlanSignature {
|
|
|
120
141
|
* > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
121
142
|
* @param - ID of the active plan to archive.
|
|
122
143
|
*/
|
|
123
|
-
(_id: string): Promise<ArchivePlanResponse
|
|
144
|
+
(_id: string): Promise<ArchivePlanResponse & {
|
|
145
|
+
__applicationErrorsType?: ArchivePlanApplicationErrors | undefined;
|
|
146
|
+
}>;
|
|
124
147
|
}
|
|
125
148
|
declare const onPlanBuyerCanCancelUpdated$1: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
|
|
126
149
|
declare const onPlanCreated$1: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
|
package/build/cjs/index.js
CHANGED
|
@@ -740,6 +740,7 @@ async function clearPrimary2() {
|
|
|
740
740
|
try {
|
|
741
741
|
const result = await httpClient.request(reqOpts);
|
|
742
742
|
sideEffects?.onSuccess?.(result);
|
|
743
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
743
744
|
} catch (err) {
|
|
744
745
|
const transformedError = (0, import_transform_error.transformError)(
|
|
745
746
|
err,
|