@wix/auto_sdk_pricing-plans_plans 1.0.59 → 1.0.61

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.
Files changed (129) hide show
  1. package/build/{cjs/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.mts} +49 -21
  2. package/build/{internal/cjs/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.ts} +49 -21
  3. package/build/index.js +965 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +921 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.mts} +49 -21
  8. package/build/{es/src/pricing-plans-v2-plan-plans.public.d.ts → internal/index.d.ts} +49 -21
  9. package/build/internal/index.js +965 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +921 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +457 -0
  14. package/build/internal/meta.d.ts +457 -0
  15. package/build/internal/meta.js +635 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +598 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
  20. package/build/{cjs/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
  21. package/build/meta.d.mts +457 -0
  22. package/build/meta.d.ts +457 -0
  23. package/build/meta.js +635 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +598 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
  28. package/build/{internal/es/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  40. package/build/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
  41. package/build/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  42. package/build/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  43. package/build/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
  44. package/build/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  45. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  46. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
  47. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  48. package/build/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
  49. package/build/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  50. package/build/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
  51. package/build/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  52. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  53. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
  54. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  65. package/build/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
  66. package/build/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  67. package/build/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  68. package/build/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
  69. package/build/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  70. package/build/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  71. package/build/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
  72. package/build/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  73. package/build/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
  74. package/build/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  75. package/build/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
  76. package/build/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  77. package/build/es/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  78. package/build/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
  79. package/build/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  90. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
  91. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  92. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  93. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
  94. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  95. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  96. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
  97. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  98. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
  99. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  100. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
  101. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  102. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  103. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
  104. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  115. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
  116. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  117. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  118. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
  119. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  120. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  121. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
  122. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  123. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
  124. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  125. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
  126. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  127. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  128. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
  129. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
@@ -1,9 +1,8 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { ArchivePlanResponse, GetPlanStatsResponse, ListPlansOptions, ListPlansResponse, ListPublicPlansOptions, ListPublicPlansResponse, MakePlanPrimaryResponse, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityResponse, UpdatePlan } from './pricing-plans-v2-plan-plans.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function listPublicPlans(httpClient: HttpClient): ListPublicPlansSignature;
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { L as ListPublicPlansOptions, a as ListPublicPlansResponse, P as PlansQueryBuilder, b as Plan, c as ListPlansOptions, d as ListPlansResponse, G as GetPlanStatsResponse, U as UpdatePlan, S as SetPlanVisibilityResponse, M as MakePlanPrimaryResponse, A as ArchivePlanResponse, e as PlanBuyerCanCancelUpdatedEnvelope, f as PlanCreatedEnvelope, g as PlanArchivedEnvelope, h as PlanUpdatedEnvelope } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.mjs';
3
+ export { aj as ActionEvent, a3 as ApplicationError, j as AppliedAt, Z as ArchivePlanRequest, l as ArchivedFilter, a5 as ArrangePlansRequest, a6 as ArrangePlansResponse, an as BaseEventMetadata, a4 as BulkActionMetadata, $ as BulkArchivePlanRequest, a0 as BulkArchivePlanResponse, a1 as BulkPlanResult, O as BuyerCanCancelUpdated, X as ClearPrimaryRequest, Y as ClearPrimaryResponse, a7 as CountPlansRequest, a8 as CountPlansResponse, I as CreatePlanRequest, J as CreatePlanResponse, C as Cursors, ad as DomainEvent, ae as DomainEventBodyOneOf, D as Duration, af as EntityCreatedEvent, ai as EntityDeletedEvent, ah as EntityUpdatedEvent, ao as EventMetadata, r as Fee, F as FeeConfig, z as GetPlanRequest, B as GetPlanResponse, H as GetPlanStatsRequest, a9 as GetPlansPremiumStatusRequest, aa as GetPlansPremiumStatusResponse, al as IdentificationData, am as IdentificationDataIdOneOf, a2 as ItemMetadata, E as ListPlansRequest, s as ListPublicPlansRequest, V as MakePlanPrimaryRequest, ak as MessageEnvelope, q as Money, x as Paging, u as PagingMetadataV2, i as PeriodUnit, _ as PlanArchived, ap as PlansQueryResult, o as Pricing, p as PricingPricingModelOneOf, m as PublicFilter, t as PublicPlan, Q as QueryPublicPlansRequest, y as QueryPublicPlansResponse, v as QueryV2, R as Recurrence, ag as RestoreInfo, ab as SearchPlansRequest, ac as SearchPlansResponse, T as SetPlanVisibilityRequest, k as SortOrder, w as Sorting, n as StringList, K as UpdatePlanRequest, N as UpdatePlanResponse, W as WebhookIdentityType } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.mjs';
4
+
5
+ declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
7
6
  interface ListPublicPlansSignature {
8
7
  /**
9
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.
@@ -11,7 +10,7 @@ interface ListPublicPlansSignature {
11
10
  */
12
11
  (options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse>;
13
12
  }
14
- export declare function queryPublicPlans(httpClient: HttpClient): QueryPublicPlansSignature;
13
+ declare function queryPublicPlans$1(httpClient: HttpClient): QueryPublicPlansSignature;
15
14
  interface QueryPublicPlansSignature {
16
15
  /**
17
16
  * Creates a query to retrieve a list of public pricing plans.
@@ -33,7 +32,7 @@ interface QueryPublicPlansSignature {
33
32
  */
34
33
  (): PlansQueryBuilder;
35
34
  }
36
- export declare function getPlan(httpClient: HttpClient): GetPlanSignature;
35
+ declare function getPlan$1(httpClient: HttpClient): GetPlanSignature;
37
36
  interface GetPlanSignature {
38
37
  /**
39
38
  * Retrieves a pricing plan by ID.
@@ -42,7 +41,7 @@ interface GetPlanSignature {
42
41
  */
43
42
  (_id: string): Promise<Plan>;
44
43
  }
45
- export declare function listPlans(httpClient: HttpClient): ListPlansSignature;
44
+ declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
46
45
  interface ListPlansSignature {
47
46
  /**
48
47
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
@@ -50,14 +49,14 @@ interface ListPlansSignature {
50
49
  */
51
50
  (options?: ListPlansOptions | undefined): Promise<ListPlansResponse>;
52
51
  }
53
- export declare function getPlanStats(httpClient: HttpClient): GetPlanStatsSignature;
52
+ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
54
53
  interface GetPlanStatsSignature {
55
54
  /**
56
55
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
57
56
  */
58
57
  (): Promise<GetPlanStatsResponse>;
59
58
  }
60
- export declare function createPlan(httpClient: HttpClient): CreatePlanSignature;
59
+ declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
61
60
  interface CreatePlanSignature {
62
61
  /**
63
62
  * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:
@@ -70,7 +69,7 @@ interface CreatePlanSignature {
70
69
  */
71
70
  (plan: Plan): Promise<Plan>;
72
71
  }
73
- export declare function updatePlan(httpClient: HttpClient): UpdatePlanSignature;
72
+ declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
74
73
  interface UpdatePlanSignature {
75
74
  /**
76
75
  * Updates a pricing plan.
@@ -81,7 +80,7 @@ interface UpdatePlanSignature {
81
80
  */
82
81
  (_id: string, plan: UpdatePlan): Promise<Plan>;
83
82
  }
84
- export declare function setPlanVisibility(httpClient: HttpClient): SetPlanVisibilitySignature;
83
+ declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilitySignature;
85
84
  interface SetPlanVisibilitySignature {
86
85
  /**
87
86
  * Sets visibility for pricing plans. Visible plans are considered public plans.
@@ -94,7 +93,7 @@ interface SetPlanVisibilitySignature {
94
93
  */
95
94
  (_id: string, visible: boolean): Promise<SetPlanVisibilityResponse>;
96
95
  }
97
- export declare function makePlanPrimary(httpClient: HttpClient): MakePlanPrimarySignature;
96
+ declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature;
98
97
  interface MakePlanPrimarySignature {
99
98
  /**
100
99
  * 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.
@@ -102,14 +101,14 @@ interface MakePlanPrimarySignature {
102
101
  */
103
102
  (_id: string): Promise<MakePlanPrimaryResponse>;
104
103
  }
105
- export declare function clearPrimary(httpClient: HttpClient): ClearPrimarySignature;
104
+ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
106
105
  interface ClearPrimarySignature {
107
106
  /**
108
107
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
109
108
  */
110
109
  (): Promise<void>;
111
110
  }
112
- export declare function archivePlan(httpClient: HttpClient): ArchivePlanSignature;
111
+ declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
113
112
  interface ArchivePlanSignature {
114
113
  /**
115
114
  * Archives a single plan.
@@ -123,8 +122,37 @@ interface ArchivePlanSignature {
123
122
  */
124
123
  (_id: string): Promise<ArchivePlanResponse>;
125
124
  }
126
- export declare const onPlanBuyerCanCancelUpdated: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
127
- export declare const onPlanCreated: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
128
- export declare const onPlanArchived: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
129
- export declare const onPlanUpdated: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
130
- export { ActionEvent, ApplicationError, AppliedAt, ArchivePlanRequest, ArchivePlanResponse, 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, GetPlanStatsResponse, GetPlansPremiumStatusRequest, GetPlansPremiumStatusResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListPlansOptions, ListPlansRequest, ListPlansResponse, ListPublicPlansOptions, ListPublicPlansRequest, ListPublicPlansResponse, MakePlanPrimaryRequest, MakePlanPrimaryResponse, MessageEnvelope, Money, Paging, PagingMetadataV2, PeriodUnit, Plan, PlanArchived, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicPlan, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SetPlanVisibilityResponse, SortOrder, Sorting, StringList, UpdatePlan, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, } from './pricing-plans-v2-plan-plans.universal.js';
125
+ declare const onPlanBuyerCanCancelUpdated$1: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
126
+ declare const onPlanCreated$1: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
127
+ declare const onPlanArchived$1: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
128
+ declare const onPlanUpdated$1: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
129
+
130
+ declare const listPublicPlans: MaybeContext<BuildRESTFunction<typeof listPublicPlans$1> & typeof listPublicPlans$1>;
131
+ declare const queryPublicPlans: MaybeContext<BuildRESTFunction<typeof queryPublicPlans$1> & typeof queryPublicPlans$1>;
132
+ declare const getPlan: MaybeContext<BuildRESTFunction<typeof getPlan$1> & typeof getPlan$1>;
133
+ declare const listPlans: MaybeContext<BuildRESTFunction<typeof listPlans$1> & typeof listPlans$1>;
134
+ declare const getPlanStats: MaybeContext<BuildRESTFunction<typeof getPlanStats$1> & typeof getPlanStats$1>;
135
+ declare const createPlan: MaybeContext<BuildRESTFunction<typeof createPlan$1> & typeof createPlan$1>;
136
+ declare const updatePlan: MaybeContext<BuildRESTFunction<typeof updatePlan$1> & typeof updatePlan$1>;
137
+ declare const setPlanVisibility: MaybeContext<BuildRESTFunction<typeof setPlanVisibility$1> & typeof setPlanVisibility$1>;
138
+ declare const makePlanPrimary: MaybeContext<BuildRESTFunction<typeof makePlanPrimary$1> & typeof makePlanPrimary$1>;
139
+ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1> & typeof clearPrimary$1>;
140
+ declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
141
+ /**
142
+ * Triggered when a plan's `buyerCanCancel` field is updated.
143
+ */
144
+ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
145
+ /**
146
+ * Triggered when a pricing plan is created.
147
+ */
148
+ declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
149
+ /**
150
+ * Triggered when a pricing plan is archived.
151
+ */
152
+ declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
153
+ /**
154
+ * Triggered when a pricing plan is updated.
155
+ */
156
+ declare const onPlanUpdated: BuildEventDefinition<typeof onPlanUpdated$1>;
157
+
158
+ 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 };
@@ -1,9 +1,8 @@
1
- import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { ArchivePlanResponse, GetPlanStatsResponse, ListPlansOptions, ListPlansResponse, ListPublicPlansOptions, ListPublicPlansResponse, MakePlanPrimaryResponse, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityResponse, UpdatePlan } from './pricing-plans-v2-plan-plans.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function listPublicPlans(httpClient: HttpClient): ListPublicPlansSignature;
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { L as ListPublicPlansOptions, a as ListPublicPlansResponse, P as PlansQueryBuilder, b as Plan, c as ListPlansOptions, d as ListPlansResponse, G as GetPlanStatsResponse, U as UpdatePlan, S as SetPlanVisibilityResponse, M as MakePlanPrimaryResponse, A as ArchivePlanResponse, e as PlanBuyerCanCancelUpdatedEnvelope, f as PlanCreatedEnvelope, g as PlanArchivedEnvelope, h as PlanUpdatedEnvelope } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.js';
3
+ export { aj as ActionEvent, a3 as ApplicationError, j as AppliedAt, Z as ArchivePlanRequest, l as ArchivedFilter, a5 as ArrangePlansRequest, a6 as ArrangePlansResponse, an as BaseEventMetadata, a4 as BulkActionMetadata, $ as BulkArchivePlanRequest, a0 as BulkArchivePlanResponse, a1 as BulkPlanResult, O as BuyerCanCancelUpdated, X as ClearPrimaryRequest, Y as ClearPrimaryResponse, a7 as CountPlansRequest, a8 as CountPlansResponse, I as CreatePlanRequest, J as CreatePlanResponse, C as Cursors, ad as DomainEvent, ae as DomainEventBodyOneOf, D as Duration, af as EntityCreatedEvent, ai as EntityDeletedEvent, ah as EntityUpdatedEvent, ao as EventMetadata, r as Fee, F as FeeConfig, z as GetPlanRequest, B as GetPlanResponse, H as GetPlanStatsRequest, a9 as GetPlansPremiumStatusRequest, aa as GetPlansPremiumStatusResponse, al as IdentificationData, am as IdentificationDataIdOneOf, a2 as ItemMetadata, E as ListPlansRequest, s as ListPublicPlansRequest, V as MakePlanPrimaryRequest, ak as MessageEnvelope, q as Money, x as Paging, u as PagingMetadataV2, i as PeriodUnit, _ as PlanArchived, ap as PlansQueryResult, o as Pricing, p as PricingPricingModelOneOf, m as PublicFilter, t as PublicPlan, Q as QueryPublicPlansRequest, y as QueryPublicPlansResponse, v as QueryV2, R as Recurrence, ag as RestoreInfo, ab as SearchPlansRequest, ac as SearchPlansResponse, T as SetPlanVisibilityRequest, k as SortOrder, w as Sorting, n as StringList, K as UpdatePlanRequest, N as UpdatePlanResponse, W as WebhookIdentityType } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.js';
4
+
5
+ declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
7
6
  interface ListPublicPlansSignature {
8
7
  /**
9
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.
@@ -11,7 +10,7 @@ interface ListPublicPlansSignature {
11
10
  */
12
11
  (options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse>;
13
12
  }
14
- export declare function queryPublicPlans(httpClient: HttpClient): QueryPublicPlansSignature;
13
+ declare function queryPublicPlans$1(httpClient: HttpClient): QueryPublicPlansSignature;
15
14
  interface QueryPublicPlansSignature {
16
15
  /**
17
16
  * Creates a query to retrieve a list of public pricing plans.
@@ -33,7 +32,7 @@ interface QueryPublicPlansSignature {
33
32
  */
34
33
  (): PlansQueryBuilder;
35
34
  }
36
- export declare function getPlan(httpClient: HttpClient): GetPlanSignature;
35
+ declare function getPlan$1(httpClient: HttpClient): GetPlanSignature;
37
36
  interface GetPlanSignature {
38
37
  /**
39
38
  * Retrieves a pricing plan by ID.
@@ -42,7 +41,7 @@ interface GetPlanSignature {
42
41
  */
43
42
  (_id: string): Promise<Plan>;
44
43
  }
45
- export declare function listPlans(httpClient: HttpClient): ListPlansSignature;
44
+ declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
46
45
  interface ListPlansSignature {
47
46
  /**
48
47
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
@@ -50,14 +49,14 @@ interface ListPlansSignature {
50
49
  */
51
50
  (options?: ListPlansOptions | undefined): Promise<ListPlansResponse>;
52
51
  }
53
- export declare function getPlanStats(httpClient: HttpClient): GetPlanStatsSignature;
52
+ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
54
53
  interface GetPlanStatsSignature {
55
54
  /**
56
55
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
57
56
  */
58
57
  (): Promise<GetPlanStatsResponse>;
59
58
  }
60
- export declare function createPlan(httpClient: HttpClient): CreatePlanSignature;
59
+ declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
61
60
  interface CreatePlanSignature {
62
61
  /**
63
62
  * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:
@@ -70,7 +69,7 @@ interface CreatePlanSignature {
70
69
  */
71
70
  (plan: Plan): Promise<Plan>;
72
71
  }
73
- export declare function updatePlan(httpClient: HttpClient): UpdatePlanSignature;
72
+ declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
74
73
  interface UpdatePlanSignature {
75
74
  /**
76
75
  * Updates a pricing plan.
@@ -81,7 +80,7 @@ interface UpdatePlanSignature {
81
80
  */
82
81
  (_id: string, plan: UpdatePlan): Promise<Plan>;
83
82
  }
84
- export declare function setPlanVisibility(httpClient: HttpClient): SetPlanVisibilitySignature;
83
+ declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilitySignature;
85
84
  interface SetPlanVisibilitySignature {
86
85
  /**
87
86
  * Sets visibility for pricing plans. Visible plans are considered public plans.
@@ -94,7 +93,7 @@ interface SetPlanVisibilitySignature {
94
93
  */
95
94
  (_id: string, visible: boolean): Promise<SetPlanVisibilityResponse>;
96
95
  }
97
- export declare function makePlanPrimary(httpClient: HttpClient): MakePlanPrimarySignature;
96
+ declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature;
98
97
  interface MakePlanPrimarySignature {
99
98
  /**
100
99
  * 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.
@@ -102,14 +101,14 @@ interface MakePlanPrimarySignature {
102
101
  */
103
102
  (_id: string): Promise<MakePlanPrimaryResponse>;
104
103
  }
105
- export declare function clearPrimary(httpClient: HttpClient): ClearPrimarySignature;
104
+ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
106
105
  interface ClearPrimarySignature {
107
106
  /**
108
107
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
109
108
  */
110
109
  (): Promise<void>;
111
110
  }
112
- export declare function archivePlan(httpClient: HttpClient): ArchivePlanSignature;
111
+ declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
113
112
  interface ArchivePlanSignature {
114
113
  /**
115
114
  * Archives a single plan.
@@ -123,8 +122,37 @@ interface ArchivePlanSignature {
123
122
  */
124
123
  (_id: string): Promise<ArchivePlanResponse>;
125
124
  }
126
- export declare const onPlanBuyerCanCancelUpdated: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
127
- export declare const onPlanCreated: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
128
- export declare const onPlanArchived: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
129
- export declare const onPlanUpdated: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
130
- export { ActionEvent, ApplicationError, AppliedAt, ArchivePlanRequest, ArchivePlanResponse, 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, GetPlanStatsResponse, GetPlansPremiumStatusRequest, GetPlansPremiumStatusResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListPlansOptions, ListPlansRequest, ListPlansResponse, ListPublicPlansOptions, ListPublicPlansRequest, ListPublicPlansResponse, MakePlanPrimaryRequest, MakePlanPrimaryResponse, MessageEnvelope, Money, Paging, PagingMetadataV2, PeriodUnit, Plan, PlanArchived, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicPlan, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SetPlanVisibilityResponse, SortOrder, Sorting, StringList, UpdatePlan, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, } from './pricing-plans-v2-plan-plans.universal.js';
125
+ declare const onPlanBuyerCanCancelUpdated$1: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
126
+ declare const onPlanCreated$1: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
127
+ declare const onPlanArchived$1: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
128
+ declare const onPlanUpdated$1: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
129
+
130
+ declare const listPublicPlans: MaybeContext<BuildRESTFunction<typeof listPublicPlans$1> & typeof listPublicPlans$1>;
131
+ declare const queryPublicPlans: MaybeContext<BuildRESTFunction<typeof queryPublicPlans$1> & typeof queryPublicPlans$1>;
132
+ declare const getPlan: MaybeContext<BuildRESTFunction<typeof getPlan$1> & typeof getPlan$1>;
133
+ declare const listPlans: MaybeContext<BuildRESTFunction<typeof listPlans$1> & typeof listPlans$1>;
134
+ declare const getPlanStats: MaybeContext<BuildRESTFunction<typeof getPlanStats$1> & typeof getPlanStats$1>;
135
+ declare const createPlan: MaybeContext<BuildRESTFunction<typeof createPlan$1> & typeof createPlan$1>;
136
+ declare const updatePlan: MaybeContext<BuildRESTFunction<typeof updatePlan$1> & typeof updatePlan$1>;
137
+ declare const setPlanVisibility: MaybeContext<BuildRESTFunction<typeof setPlanVisibility$1> & typeof setPlanVisibility$1>;
138
+ declare const makePlanPrimary: MaybeContext<BuildRESTFunction<typeof makePlanPrimary$1> & typeof makePlanPrimary$1>;
139
+ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1> & typeof clearPrimary$1>;
140
+ declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
141
+ /**
142
+ * Triggered when a plan's `buyerCanCancel` field is updated.
143
+ */
144
+ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
145
+ /**
146
+ * Triggered when a pricing plan is created.
147
+ */
148
+ declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
149
+ /**
150
+ * Triggered when a pricing plan is archived.
151
+ */
152
+ declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
153
+ /**
154
+ * Triggered when a pricing plan is updated.
155
+ */
156
+ declare const onPlanUpdated: BuildEventDefinition<typeof onPlanUpdated$1>;
157
+
158
+ 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 };