@wix/auto_sdk_pricing-plans_plans 1.0.115 → 1.0.117

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.
@@ -9,7 +9,7 @@ interface ListPublicPlansSignature {
9
9
  * @param - Options for filtering and paging the list of public plans.
10
10
  * @deprecated
11
11
  */
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> & {
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`, 4> & {
13
13
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
14
14
  }>;
15
15
  }
@@ -21,7 +21,7 @@ interface GetPlanSignature {
21
21
  * @returns Pricing plan.
22
22
  * @deprecated
23
23
  */
24
- (_id: string): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
24
+ (_id: string): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 3> & {
25
25
  __applicationErrorsType?: GetPlanApplicationErrors;
26
26
  }>;
27
27
  }
@@ -32,7 +32,7 @@ interface ListPlansSignature {
32
32
  * @param - Options for filtering and paging the list of plans.
33
33
  * @deprecated
34
34
  */
35
- (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> & {
35
+ (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`, 4> & {
36
36
  __applicationErrorsType?: ListPlansApplicationErrors;
37
37
  __validationErrorsType?: ListPlansValidationErrors;
38
38
  }>;
@@ -43,7 +43,7 @@ interface GetPlanStatsSignature {
43
43
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
44
44
  * @deprecated
45
45
  */
46
- (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 2> & {
46
+ (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 0> & {
47
47
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
48
48
  }>;
49
49
  }
@@ -59,7 +59,7 @@ interface CreatePlanSignature {
59
59
  * @returns Created plan.
60
60
  * @deprecated
61
61
  */
62
- (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> & {
62
+ (plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`, 3>): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 3> & {
63
63
  __applicationErrorsType?: CreatePlanApplicationErrors;
64
64
  __validationErrorsType?: CreatePlanValidationErrors;
65
65
  }>;
@@ -74,7 +74,7 @@ interface UpdatePlanSignature {
74
74
  * @returns Updated plan.
75
75
  * @deprecated
76
76
  */
77
- (_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
77
+ (_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 3> & {
78
78
  __applicationErrorsType?: UpdatePlanApplicationErrors;
79
79
  __validationErrorsType?: UpdatePlanValidationErrors;
80
80
  }>;
@@ -91,7 +91,7 @@ interface SetPlanVisibilitySignature {
91
91
  * @param - Plan visibility options.
92
92
  * @deprecated
93
93
  */
94
- (_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> & {
94
+ (_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`, 4> & {
95
95
  __applicationErrorsType?: SetPlanVisibilityApplicationErrors;
96
96
  }>;
97
97
  }
@@ -102,7 +102,7 @@ interface MakePlanPrimarySignature {
102
102
  * @param - ID of the pricing plan to set as the primary plan.
103
103
  * @deprecated
104
104
  */
105
- (_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> & {
105
+ (_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`, 4> & {
106
106
  __applicationErrorsType?: MakePlanPrimaryApplicationErrors;
107
107
  }>;
108
108
  }
@@ -129,7 +129,7 @@ interface ArchivePlanSignature {
129
129
  * @param - ID of the active plan to archive.
130
130
  * @deprecated
131
131
  */
132
- (_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> & {
132
+ (_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`, 4> & {
133
133
  __applicationErrorsType?: ArchivePlanApplicationErrors;
134
134
  }>;
135
135
  }