@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.
@@ -905,6 +905,7 @@ interface PlanBuyerCanCancelUpdatedEnvelope {
905
905
  * @eventType wix.pricing_plans.plan_buyer_can_cancel_updated
906
906
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
907
907
  * @slug buyer_can_cancel_updated
908
+ * @deprecated
908
909
  */
909
910
  declare function onPlanBuyerCanCancelUpdated(handler: (event: PlanBuyerCanCancelUpdatedEnvelope) => void | Promise<void>): void;
910
911
  interface PlanCreatedEnvelope {
@@ -959,6 +960,7 @@ interface PlanArchivedEnvelope {
959
960
  * @eventType wix.pricing_plans.plan_plan_archived
960
961
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
961
962
  * @slug plan_archived
963
+ * @deprecated
962
964
  */
963
965
  declare function onPlanArchived(handler: (event: PlanArchivedEnvelope) => void | Promise<void>): void;
964
966
  interface PlanUpdatedEnvelope {
@@ -991,7 +993,6 @@ interface PlanUpdatedEnvelope {
991
993
  * @targetRemovalDate 2025-12-31
992
994
  */
993
995
  declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | Promise<void>): void;
994
- type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
995
996
  /**
996
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.
997
998
  * @public
@@ -1000,8 +1001,11 @@ type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycle
1000
1001
  * @applicableIdentity APP
1001
1002
  * @applicableIdentity VISITOR
1002
1003
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
1004
+ * @deprecated
1005
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1006
+ * @targetRemovalDate 2025-12-31
1003
1007
  */
1004
- 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`> & {
1008
+ 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> & {
1005
1009
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
1006
1010
  }>;
1007
1011
  interface ListPublicPlansOptions {
@@ -1042,6 +1046,9 @@ interface ListPublicPlansOptions {
1042
1046
  * @applicableIdentity APP
1043
1047
  * @applicableIdentity VISITOR
1044
1048
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
1049
+ * @deprecated
1050
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1051
+ * @targetRemovalDate 2025-12-31
1045
1052
  */
1046
1053
  declare function queryPublicPlans(): PlansQueryBuilder;
1047
1054
  interface QueryOffsetResult {
@@ -1113,8 +1120,11 @@ interface PlansQueryBuilder {
1113
1120
  * @applicableIdentity APP
1114
1121
  * @returns Pricing plan.
1115
1122
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
1123
+ * @deprecated
1124
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.GetPlan
1125
+ * @targetRemovalDate 2025-12-31
1116
1126
  */
1117
- declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1127
+ 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> & {
1118
1128
  __applicationErrorsType?: GetPlanApplicationErrors;
1119
1129
  }>;
1120
1130
  /**
@@ -1124,10 +1134,11 @@ declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNul
1124
1134
  * @permissionId PRICING_PLANS.READ_PLANS
1125
1135
  * @applicableIdentity APP
1126
1136
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
1137
+ * @deprecated
1138
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.SearchPlans
1139
+ * @targetRemovalDate 2025-12-31
1127
1140
  */
1128
- declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1129
- [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
1130
- }[PlanNonNullablePaths]> & {
1141
+ 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> & {
1131
1142
  __applicationErrorsType?: ListPlansApplicationErrors;
1132
1143
  __validationErrorsType?: ListPlansValidationErrors;
1133
1144
  }>;
@@ -1157,8 +1168,11 @@ interface ListPlansOptions {
1157
1168
  * @permissionId PRICING_PLANS.READ_PLANS
1158
1169
  * @applicableIdentity APP
1159
1170
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
1171
+ * @deprecated
1172
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.CountPlans
1173
+ * @targetRemovalDate 2025-12-31
1160
1174
  */
1161
- declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
1175
+ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`, 2> & {
1162
1176
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
1163
1177
  }>;
1164
1178
  /**
@@ -1181,8 +1195,11 @@ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse,
1181
1195
  * @applicableIdentity APP
1182
1196
  * @returns Created plan.
1183
1197
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
1198
+ * @deprecated
1199
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.CreatePlan
1200
+ * @targetRemovalDate 2025-12-31
1184
1201
  */
1185
- 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> & {
1202
+ 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> & {
1186
1203
  __applicationErrorsType?: CreatePlanApplicationErrors;
1187
1204
  __validationErrorsType?: CreatePlanValidationErrors;
1188
1205
  }>;
@@ -1198,8 +1215,11 @@ declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `p
1198
1215
  * @applicableIdentity APP
1199
1216
  * @returns Updated plan.
1200
1217
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
1218
+ * @deprecated
1219
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1220
+ * @targetRemovalDate 2025-12-31
1201
1221
  */
1202
- declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1222
+ 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> & {
1203
1223
  __applicationErrorsType?: UpdatePlanApplicationErrors;
1204
1224
  __validationErrorsType?: UpdatePlanValidationErrors;
1205
1225
  }>;
@@ -1300,10 +1320,11 @@ interface UpdatePlan {
1300
1320
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1301
1321
  * @applicableIdentity APP
1302
1322
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
1323
+ * @deprecated
1324
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1325
+ * @targetRemovalDate 2025-12-31
1303
1326
  */
1304
- declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1305
- [P in PlanNonNullablePaths]: `plan.${P}`;
1306
- }[PlanNonNullablePaths]> & {
1327
+ 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> & {
1307
1328
  __applicationErrorsType?: SetPlanVisibilityApplicationErrors;
1308
1329
  }>;
1309
1330
  /**
@@ -1314,10 +1335,11 @@ declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNu
1314
1335
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1315
1336
  * @applicableIdentity APP
1316
1337
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
1338
+ * @deprecated
1339
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1340
+ * @targetRemovalDate 2025-12-31
1317
1341
  */
1318
- declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1319
- [P in PlanNonNullablePaths]: `plan.${P}`;
1320
- }[PlanNonNullablePaths]> & {
1342
+ 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> & {
1321
1343
  __applicationErrorsType?: MakePlanPrimaryApplicationErrors;
1322
1344
  }>;
1323
1345
  /**
@@ -1326,6 +1348,9 @@ declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlan
1326
1348
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1327
1349
  * @applicableIdentity APP
1328
1350
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
1351
+ * @deprecated
1352
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1353
+ * @targetRemovalDate 2025-12-31
1329
1354
  */
1330
1355
  declare function clearPrimary(): Promise<void & {
1331
1356
  __applicationErrorsType?: ClearPrimaryApplicationErrors;
@@ -1344,10 +1369,11 @@ declare function clearPrimary(): Promise<void & {
1344
1369
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1345
1370
  * @applicableIdentity APP
1346
1371
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
1372
+ * @deprecated
1373
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1374
+ * @targetRemovalDate 2025-12-31
1347
1375
  */
1348
- declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1349
- [P in PlanNonNullablePaths]: `plan.${P}`;
1350
- }[PlanNonNullablePaths]> & {
1376
+ 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> & {
1351
1377
  __applicationErrorsType?: ArchivePlanApplicationErrors;
1352
1378
  }>;
1353
1379