@wix/auto_sdk_pricing-plans_plans 1.0.72 → 1.0.74

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.
@@ -993,20 +993,18 @@ interface PlanUpdatedEnvelope {
993
993
  * @targetRemovalDate 2025-12-31
994
994
  */
995
995
  declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | Promise<void>): void;
996
- type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
997
996
  /**
998
997
  * 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.
999
998
  * @public
1000
999
  * @param options - Options for filtering and paging the list of public plans.
1001
1000
  * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
1002
1001
  * @applicableIdentity APP
1003
- * @applicableIdentity VISITOR
1004
1002
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
1005
1003
  * @deprecated
1006
1004
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1007
1005
  * @targetRemovalDate 2025-12-31
1008
1006
  */
1009
- declare function listPublicPlans(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`> & {
1007
+ declare function listPublicPlans(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> & {
1010
1008
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
1011
1009
  }>;
1012
1010
  interface ListPublicPlansOptions {
@@ -1045,7 +1043,6 @@ interface ListPublicPlansOptions {
1045
1043
  * @public
1046
1044
  * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
1047
1045
  * @applicableIdentity APP
1048
- * @applicableIdentity VISITOR
1049
1046
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
1050
1047
  * @deprecated
1051
1048
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
@@ -1125,7 +1122,7 @@ interface PlansQueryBuilder {
1125
1122
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.GetPlan
1126
1123
  * @targetRemovalDate 2025-12-31
1127
1124
  */
1128
- declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1125
+ declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
1129
1126
  __applicationErrorsType?: GetPlanApplicationErrors;
1130
1127
  }>;
1131
1128
  /**
@@ -1139,9 +1136,7 @@ declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNul
1139
1136
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.SearchPlans
1140
1137
  * @targetRemovalDate 2025-12-31
1141
1138
  */
1142
- declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1143
- [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
1144
- }[PlanNonNullablePaths]> & {
1139
+ declare function listPlans(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> & {
1145
1140
  __applicationErrorsType?: ListPlansApplicationErrors;
1146
1141
  __validationErrorsType?: ListPlansValidationErrors;
1147
1142
  }>;
@@ -1175,7 +1170,7 @@ interface ListPlansOptions {
1175
1170
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.CountPlans
1176
1171
  * @targetRemovalDate 2025-12-31
1177
1172
  */
1178
- declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
1173
+ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 2> & {
1179
1174
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
1180
1175
  }>;
1181
1176
  /**
@@ -1202,7 +1197,7 @@ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse,
1202
1197
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.CreatePlan
1203
1198
  * @targetRemovalDate 2025-12-31
1204
1199
  */
1205
- declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1200
+ declare function createPlan(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> & {
1206
1201
  __applicationErrorsType?: CreatePlanApplicationErrors;
1207
1202
  __validationErrorsType?: CreatePlanValidationErrors;
1208
1203
  }>;
@@ -1222,7 +1217,7 @@ declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `p
1222
1217
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1223
1218
  * @targetRemovalDate 2025-12-31
1224
1219
  */
1225
- declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1220
+ declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`, 5> & {
1226
1221
  __applicationErrorsType?: UpdatePlanApplicationErrors;
1227
1222
  __validationErrorsType?: UpdatePlanValidationErrors;
1228
1223
  }>;
@@ -1327,9 +1322,7 @@ interface UpdatePlan {
1327
1322
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1328
1323
  * @targetRemovalDate 2025-12-31
1329
1324
  */
1330
- declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1331
- [P in PlanNonNullablePaths]: `plan.${P}`;
1332
- }[PlanNonNullablePaths]> & {
1325
+ declare function setPlanVisibility(_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> & {
1333
1326
  __applicationErrorsType?: SetPlanVisibilityApplicationErrors;
1334
1327
  }>;
1335
1328
  /**
@@ -1344,9 +1337,7 @@ declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNu
1344
1337
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1345
1338
  * @targetRemovalDate 2025-12-31
1346
1339
  */
1347
- declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1348
- [P in PlanNonNullablePaths]: `plan.${P}`;
1349
- }[PlanNonNullablePaths]> & {
1340
+ declare function makePlanPrimary(_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> & {
1350
1341
  __applicationErrorsType?: MakePlanPrimaryApplicationErrors;
1351
1342
  }>;
1352
1343
  /**
@@ -1380,9 +1371,7 @@ declare function clearPrimary(): Promise<void & {
1380
1371
  * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1381
1372
  * @targetRemovalDate 2025-12-31
1382
1373
  */
1383
- declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1384
- [P in PlanNonNullablePaths]: `plan.${P}`;
1385
- }[PlanNonNullablePaths]> & {
1374
+ declare function archivePlan(_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> & {
1386
1375
  __applicationErrorsType?: ArchivePlanApplicationErrors;
1387
1376
  }>;
1388
1377