@wix/auto_sdk_pricing-plans_plans 1.0.72 → 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.
@@ -1,8 +1,7 @@
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
  /**
@@ -10,7 +9,7 @@ interface ListPublicPlansSignature {
10
9
  * @param - Options for filtering and paging the list of public plans.
11
10
  * @deprecated
12
11
  */
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`> & {
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> & {
14
13
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
15
14
  }>;
16
15
  }
@@ -45,7 +44,7 @@ interface GetPlanSignature {
45
44
  * @returns Pricing plan.
46
45
  * @deprecated
47
46
  */
48
- (_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
47
+ (_id: string): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
49
48
  __applicationErrorsType?: GetPlanApplicationErrors;
50
49
  }>;
51
50
  }
@@ -56,9 +55,7 @@ interface ListPlansSignature {
56
55
  * @param - Options for filtering and paging the list of plans.
57
56
  * @deprecated
58
57
  */
59
- (options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
60
- [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
61
- }[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> & {
62
59
  __applicationErrorsType?: ListPlansApplicationErrors;
63
60
  __validationErrorsType?: ListPlansValidationErrors;
64
61
  }>;
@@ -69,7 +66,7 @@ interface GetPlanStatsSignature {
69
66
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
70
67
  * @deprecated
71
68
  */
72
- (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
69
+ (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 2> & {
73
70
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
74
71
  }>;
75
72
  }
@@ -85,7 +82,7 @@ interface CreatePlanSignature {
85
82
  * @returns Created plan.
86
83
  * @deprecated
87
84
  */
88
- (plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
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> & {
89
86
  __applicationErrorsType?: CreatePlanApplicationErrors;
90
87
  __validationErrorsType?: CreatePlanValidationErrors;
91
88
  }>;
@@ -100,7 +97,7 @@ interface UpdatePlanSignature {
100
97
  * @returns Updated plan.
101
98
  * @deprecated
102
99
  */
103
- (_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
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> & {
104
101
  __applicationErrorsType?: UpdatePlanApplicationErrors;
105
102
  __validationErrorsType?: UpdatePlanValidationErrors;
106
103
  }>;
@@ -117,9 +114,7 @@ interface SetPlanVisibilitySignature {
117
114
  * @param - Plan visibility options.
118
115
  * @deprecated
119
116
  */
120
- (_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
121
- [P in PlanNonNullablePaths]: `plan.${P}`;
122
- }[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> & {
123
118
  __applicationErrorsType?: SetPlanVisibilityApplicationErrors;
124
119
  }>;
125
120
  }
@@ -130,9 +125,7 @@ interface MakePlanPrimarySignature {
130
125
  * @param - ID of the pricing plan to set as the primary plan.
131
126
  * @deprecated
132
127
  */
133
- (_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
134
- [P in PlanNonNullablePaths]: `plan.${P}`;
135
- }[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> & {
136
129
  __applicationErrorsType?: MakePlanPrimaryApplicationErrors;
137
130
  }>;
138
131
  }
@@ -159,9 +152,7 @@ interface ArchivePlanSignature {
159
152
  * @param - ID of the active plan to archive.
160
153
  * @deprecated
161
154
  */
162
- (_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
163
- [P in PlanNonNullablePaths]: `plan.${P}`;
164
- }[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> & {
165
156
  __applicationErrorsType?: ArchivePlanApplicationErrors;
166
157
  }>;
167
158
  }
@@ -201,4 +192,4 @@ declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
201
192
  */
202
193
  declare const onPlanUpdated: BuildEventDefinition<typeof onPlanUpdated$1>;
203
194
 
204
- 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 };