@wix/auto_sdk_packages_packages 1.0.2 → 1.0.4

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 (119) hide show
  1. package/build/cjs/index.d.ts +273 -1
  2. package/build/cjs/index.js +953 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +542 -1
  5. package/build/cjs/meta.js +574 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/{src/premium-reseller-v1-packages-packages.types.d.ts → premium-reseller-v1-packages-packages.universal-CeJKqN8_.d.ts} +321 -199
  8. package/build/{internal/cjs/src/premium-reseller-v1-packages-packages.public.d.ts → es/index.d.mts} +36 -25
  9. package/build/es/index.mjs +906 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/es/meta.d.mts +542 -0
  12. package/build/es/meta.mjs +541 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{internal/cjs/src/premium-reseller-v1-packages-packages.types.d.ts → es/premium-reseller-v1-packages-packages.universal-CeJKqN8_.d.mts} +321 -199
  15. package/build/internal/cjs/index.d.ts +273 -1
  16. package/build/internal/cjs/index.js +953 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +542 -1
  19. package/build/internal/cjs/meta.js +574 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/internal/{es/src/premium-reseller-v1-packages-packages.types.d.ts → cjs/premium-reseller-v1-packages-packages.universal-CeJKqN8_.d.ts} +321 -199
  22. package/build/{es/src/premium-reseller-v1-packages-packages.public.d.ts → internal/es/index.d.mts} +36 -25
  23. package/build/internal/es/index.mjs +906 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/es/meta.d.mts +542 -0
  26. package/build/internal/es/meta.mjs +541 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/premium-reseller-v1-packages-packages.types.d.ts → internal/es/premium-reseller-v1-packages-packages.universal-CeJKqN8_.d.mts} +321 -199
  29. package/package.json +11 -10
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  34. package/build/cjs/src/premium-reseller-v1-packages-packages.context.js +0 -34
  35. package/build/cjs/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  36. package/build/cjs/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  37. package/build/cjs/src/premium-reseller-v1-packages-packages.http.js +0 -563
  38. package/build/cjs/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  39. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  40. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.js +0 -218
  41. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  42. package/build/cjs/src/premium-reseller-v1-packages-packages.public.d.ts +0 -262
  43. package/build/cjs/src/premium-reseller-v1-packages-packages.public.js +0 -84
  44. package/build/cjs/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  45. package/build/cjs/src/premium-reseller-v1-packages-packages.types.js +0 -155
  46. package/build/cjs/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  47. package/build/cjs/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1865
  48. package/build/cjs/src/premium-reseller-v1-packages-packages.universal.js +0 -756
  49. package/build/cjs/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  60. package/build/es/src/premium-reseller-v1-packages-packages.context.js +0 -14
  61. package/build/es/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  62. package/build/es/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  63. package/build/es/src/premium-reseller-v1-packages-packages.http.js +0 -550
  64. package/build/es/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  65. package/build/es/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  66. package/build/es/src/premium-reseller-v1-packages-packages.meta.js +0 -182
  67. package/build/es/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  68. package/build/es/src/premium-reseller-v1-packages-packages.public.js +0 -54
  69. package/build/es/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  70. package/build/es/src/premium-reseller-v1-packages-packages.types.js +0 -152
  71. package/build/es/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  72. package/build/es/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1865
  73. package/build/es/src/premium-reseller-v1-packages-packages.universal.js +0 -720
  74. package/build/es/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  79. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.js +0 -34
  80. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  81. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  82. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.js +0 -563
  83. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  84. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  85. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.js +0 -218
  86. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  87. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.public.js +0 -84
  88. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  89. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.types.js +0 -155
  90. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  91. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1865
  92. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.universal.js +0 -756
  93. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  104. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.js +0 -14
  105. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  106. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  107. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.js +0 -550
  108. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  109. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  110. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.js +0 -182
  111. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  112. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.d.ts +0 -262
  113. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.js +0 -54
  114. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  115. package/build/internal/es/src/premium-reseller-v1-packages-packages.types.js +0 -152
  116. package/build/internal/es/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  117. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1865
  118. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.js +0 -720
  119. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
@@ -1 +1,273 @@
1
- export * from './src/premium-reseller-v1-packages-packages.context.js';
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { C as CreatePackageOptions, a as CreatePackageResponse, b as CreatePackageV2Options, c as CancelPackageOptions, d as CancelPackageResponse, P as Package, e as PackagesQueryBuilder, A as AssignProductInstanceToSiteIdentifiers, f as AssignProductInstanceToSiteOptions, g as AssignProductInstanceToSiteResponse, U as UnassignProductInstanceFromSiteOptions, h as UnassignProductInstanceFromSiteResponse, i as CancelProductInstanceOptions, j as CancelProductInstanceResponse, k as AdjustProductInstanceSpecificationsOptions, l as AdjustProductInstanceSpecificationsResponse, m as UpdatePackageExternalIdIdentifiers, n as UpdatePackageExternalIdResponse } from './premium-reseller-v1-packages-packages.universal-CeJKqN8_.js';
3
+ export { aR as ActionEvent, a6 as AdjustProductInstanceSpecificationsRequest, a7 as AdjustedProductInstanceSpecifications, a0 as AssignProductInstanceToSiteRequest, a1 as AssignedProductInstanceToSite, ac as BillingReference, aE as Cancel, K as CancelPackageRequest, a4 as CancelProductInstanceRequest, ak as CancellationDetails, aD as Complete, w as ContractSwitchReason, v as ContractSwitchType, aq as ContractSwitched, aJ as CountPackagesRequest, aK as CountPackagesResponse, J as CreatePackageRequest, Y as CursorPaging, $ as Cursors, ad as Cycle, ae as CycleCycleSelectorOneOf, o as CycleDescriptorType, E as CycleInterval, aL as DomainEvent, aM as DomainEventBodyOneOf, av as Empty, aN as EntityCreatedEvent, aQ as EntityDeletedEvent, aP as EntityUpdatedEvent, G as FailureReason, F as FailureReasonFailureReason, ax as FailureReportRequest, z as FieldToUpdate, aX as FixBrokenMigrationRequest, aY as FixBrokenMigrationResponse, M as GetPackageRequest, N as GetPackageResponse, aT as IdentificationData, aU as IdentificationDataIdOneOf, t as Initiator, af as Interval, I as IntervalIntervalUnit, r as IntervalUnit, aS as MessageEnvelope, aV as MigrateSubscriptionToPackagesRequest, aW as MigrateSubscriptionToPackagesResponse, ag as OneTime, L as PackageCanceled, aZ as PackagesQueryResult, X as Paging, _ as PagingMetadataV2, x as PriceIncreaseTrigger, y as ProductAdjustment, B as ProductInstance, a5 as ProductInstanceCanceled, D as ProductInstanceContractDetailsOneOf, H as ProductInstanceCycle, ay as ProductInstanceFailed, aw as ProductInstanceUpdated, ar as ProductPriceIncreaseData, q as ProviderName, Q as QueryPackagesRequest, Z as QueryPackagesResponse, O as QueryV2, T as QueryV2PagingMethodOneOf, ah as ReactivationData, R as ReactivationReasonEnum, au as RecurringChargeAttemptFailed, ap as RecurringChargeSucceeded, aF as Reschedule, aO as RestoreInfo, p as SortOrder, V as Sorting, S as Status, ab as Subscription, ai as SubscriptionAssigned, am as SubscriptionAutoRenewTurnedOff, al as SubscriptionAutoRenewTurnedOn, aj as SubscriptionCancelled, aa as SubscriptionCreated, a8 as SubscriptionEvent, a9 as SubscriptionEventEventOneOf, as as SubscriptionNearEndOfPeriod, at as SubscriptionPendingChange, s as SubscriptionStatus, ao as SubscriptionTransferred, an as SubscriptionUnassigned, az as Task, aB as TaskAction, aC as TaskActionActionOneOf, aA as TaskKey, a2 as UnassignProductInstanceFromSiteRequest, u as UnassignReason, a3 as UnassignedProductInstanceFromSite, aI as UpdatePackageExternalIdRequest, aG as UpdateProductInstanceRequest, aH as UpdateProductInstanceResponse, W as WebhookIdentityType } from './premium-reseller-v1-packages-packages.universal-CeJKqN8_.js';
4
+
5
+ declare function createPackage$1(httpClient: HttpClient): CreatePackageSignature;
6
+ interface CreatePackageSignature {
7
+ /**
8
+ * Creates a new package.
9
+ *
10
+ * Deprecated: This method is deprecated and will be removed by 2024-12-31.
11
+ * Use com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2 instead.
12
+ *
13
+ * HTTP Request:
14
+ * POST /v1/packages
15
+ *
16
+ * Permissions:
17
+ * Requires the "premium.reseller-package.manage" permission with MANUAL type.
18
+ *
19
+ * Event:
20
+ * A PRIVATE callback will be triggered when the package is successfully created.
21
+ *
22
+ * Required Fields:
23
+ * - CreatePackageRequest.products
24
+ *
25
+ * Maturity: BETA
26
+ * Exposure: PUBLIC
27
+ * @deprecated
28
+ */
29
+ (options?: CreatePackageOptions | undefined): Promise<CreatePackageResponse>;
30
+ }
31
+ declare function createPackageV2$1(httpClient: HttpClient): CreatePackageV2Signature;
32
+ interface CreatePackageV2Signature {
33
+ /**
34
+ * Creates a package of product instances.
35
+ *
36
+ *
37
+ * You must pass the relevant Wix account ID in the header of the call. In
38
+ * the DIY flow, we recommend to pass the customer's sub-account ID instead
39
+ * of your main reseller account ID.
40
+ *
41
+ * You may also pass a Wix site ID for each product in the body of the call.
42
+ * If you omit the site ID, a floating product instance is created.
43
+ *
44
+ * When Wix customers purchase a specific paid service or product, Wix may offer
45
+ * them time-limited free access to a different product. For example, customers
46
+ * get a voucher for a free 1-year domain registration when purchasing any Wix
47
+ * Premium plan. If you want to offer your customers the same benefit, create a
48
+ * package containing the original product first. Then, create a second package
49
+ * with the additional product. In the second Create Package call, pass the
50
+ * instance ID of the original product as `referenceProductInstanceId`. This way,
51
+ * Wix doesn't charge you for the additional product. Make sure that the status
52
+ * of the referenced product is either `"PENDING"` or `"ACTIVE"`. Note that you
53
+ * can use each product instance only a single time as reference instance.
54
+ *
55
+ * You need to pass a `countryCode` to specify where customers can claim
56
+ * vouchers that may come with a product. Contact the
57
+ * [Wix B2B sales team](mailto:bizdev@wix.com) to get information about
58
+ * vouchers and supported locations.
59
+ *
60
+ * > **Important**: This call requires an account level API key and cannot be
61
+ * > authenticated with the standard authorization header.
62
+ */
63
+ (options?: CreatePackageV2Options | undefined): Promise<CreatePackageResponse>;
64
+ }
65
+ declare function cancelPackage$1(httpClient: HttpClient): CancelPackageSignature;
66
+ interface CancelPackageSignature {
67
+ /**
68
+ * Cancels all product instances included in the package and the customer
69
+ * immediately loses access to the canceled functionality.
70
+ *
71
+ *
72
+ * You must pass the ID of the Wix account that the package belongs to in the
73
+ * header of the call. The call fails, if the package and Wix account don't
74
+ * match.
75
+ *
76
+ * If a canceled product instance is a requirement for another Wix service, that
77
+ * functionality is also no longer available to the customer. For example, if
78
+ * you cancel a Premium plan, a previously connected domain is automatically
79
+ * disconnected from the site.
80
+ *
81
+ * > **Important**: This call requires an account level API key and cannot be
82
+ * > authenticated with the standard authorization header.
83
+ * @param - ID of the package to cancel.
84
+ */
85
+ (_id: string, options?: CancelPackageOptions | undefined): Promise<CancelPackageResponse>;
86
+ }
87
+ declare function getPackage$1(httpClient: HttpClient): GetPackageSignature;
88
+ interface GetPackageSignature {
89
+ /**
90
+ * Retrieves a package.
91
+ *
92
+ *
93
+ * You must pass the ID of the Wix account that the package belongs to in the
94
+ * header of the call. The call fails, if the package and Wix account don't
95
+ * match.
96
+ *
97
+ * > **Important**: This call requires an account level API key and cannot be
98
+ * > authenticated with the standard authorization header.
99
+ * @param - Package ID.
100
+ * @returns Retrieved package.
101
+ */
102
+ (_id: string): Promise<Package>;
103
+ }
104
+ declare function queryPackages$1(httpClient: HttpClient): QueryPackagesSignature;
105
+ interface QueryPackagesSignature {
106
+ /**
107
+ * Retrieves a list of packages, given the provided paging, filtering, and sorting.
108
+ *
109
+ *
110
+ * You must pass the ID of the Wix account that the packages belong to in the
111
+ * header of the call. The call returns packages that belong to the parent
112
+ * account, regardless if you pass the ID of a parent or sub-account. In case
113
+ * you want to retrieve only packages that belong to a sub-account, you must
114
+ * pass the sub-account ID as `filter` in the `query` object like this:
115
+ *
116
+ * ```json
117
+ * {
118
+ * "query": {
119
+ * "filter": {
120
+ * "accountId": {
121
+ * "$eq": "<SUB_ACCOUNT_ID>"
122
+ * }
123
+ * }
124
+ * }
125
+ * }
126
+ * ```
127
+ *
128
+ * Query Packages runs with these defaults, which you can override:
129
+ *
130
+ * - `createdDate` is sorted in `DESC` order
131
+ * - `cursorPaging.limit` is `100`
132
+ *
133
+ * By default `pagingMetadata.cursors` are returned, unless you specifically pass
134
+ * `query.paging`.
135
+ *
136
+ * The maximum for `cursorPaging.limit` is `100`.
137
+ *
138
+ * If you pass a cursor token that you have received in a previous Query Package response,
139
+ * passing additional sort or filter information results in an invalid cursor
140
+ * error. Since the received cursor token already holds all the needed information
141
+ * for sort and filter. Changing the sort and filter properties during the span of
142
+ * a cursor query isn't supported. But you can provide a different limit.
143
+ *
144
+ * For field support for filters and sorting,
145
+ * see [Query Packages: Supported Filters and Sorting](https://dev.wix.com/api/rest/account-level-apis/resellers/supported-filters).
146
+ *
147
+ * To learn about working with _Query_ endpoints, see
148
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
149
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
150
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
151
+ *
152
+ * > **Important**: This call requires an account level API key and cannot be
153
+ * > authenticated with the standard authorization header.
154
+ */
155
+ (): PackagesQueryBuilder;
156
+ }
157
+ declare function assignProductInstanceToSite$1(httpClient: HttpClient): AssignProductInstanceToSiteSignature;
158
+ interface AssignProductInstanceToSiteSignature {
159
+ /**
160
+ * Assigns a product instance to a site.
161
+ *
162
+ * You must pass the ID of the Wix account that the product instance belongs to in the header of the call.
163
+ *
164
+ * The customer immediately gains access to features included in the assigned service. It's up to the reseller to decide whether assigning a product instance affects the customer’s payment.
165
+ *
166
+ * It's possible to assign a product instance that's already assigned to a site, to a different site without [unassigning](/packages/unassign-product-instance-from-site) it first. But if the call fails in such a situation, the product instance may either remain assigned to the original site or become unassigned. You can confirm the instance's status by [retrieving the relevant package](/packages/get-package).
167
+ *
168
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
169
+ */
170
+ (identifiers: AssignProductInstanceToSiteIdentifiers, options?: AssignProductInstanceToSiteOptions | undefined): Promise<AssignProductInstanceToSiteResponse>;
171
+ }
172
+ declare function unassignProductInstanceFromSite$1(httpClient: HttpClient): UnassignProductInstanceFromSiteSignature;
173
+ interface UnassignProductInstanceFromSiteSignature {
174
+ /**
175
+ * Unassigns a product instance from a site.
176
+ *
177
+ * You must pass the ID of the Wix account that the product instance belongs to in the header of the call.
178
+ *
179
+ * The product instance becomes floating and the customer immediately looses access to features included in the unassigned service. It's up to the reseller to decide whether unassigning a product instance affects the customer’s payment.
180
+ *
181
+ * If an unassigned product instance is a requirement for another service, that service may not be available to the customer any longer. For example, if you unassign a `Combo Plan` plan from a site, a previously connected domain is disconnected.
182
+ *
183
+ * You can assign floating product instances to sites using the [Assign Product Instance to Site](/packages/assign-product-instance-to-site) method.
184
+ *
185
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
186
+ * @param - ID of the product instance to unassign from a site.
187
+ */
188
+ (instanceId: string, options?: UnassignProductInstanceFromSiteOptions | undefined): Promise<UnassignProductInstanceFromSiteResponse>;
189
+ }
190
+ declare function cancelProductInstance$1(httpClient: HttpClient): CancelProductInstanceSignature;
191
+ interface CancelProductInstanceSignature {
192
+ /**
193
+ * Cancels a product instance.
194
+ *
195
+ *
196
+ * You must pass the ID of the Wix account that the product instance belongs
197
+ * to in the header of the call. The call fails, if the product instance and
198
+ * Wix account don't match.
199
+ *
200
+ * The customer immediately loses access to features included in the
201
+ * canceled service. It's up to the reseller to decide whether the adjustment
202
+ * affects the customer’s payment.
203
+ *
204
+ * If a canceled service is a requirement for another service, that service
205
+ * may not be available to the customer any longer. For example, if you cancel
206
+ * a `Combo Plan` plan, a previously connected domain is disconnected
207
+ * from the site.
208
+ *
209
+ *
210
+ * > **Important**: This call requires an account level API key and cannot be
211
+ * > authenticated with the standard authorization header.
212
+ * @param - ID of the product instance to cancel.
213
+ */
214
+ (instanceId: string, options?: CancelProductInstanceOptions | undefined): Promise<CancelProductInstanceResponse>;
215
+ }
216
+ declare function adjustProductInstanceSpecifications$1(httpClient: HttpClient): AdjustProductInstanceSpecificationsSignature;
217
+ interface AdjustProductInstanceSpecificationsSignature {
218
+ /**
219
+ * Upgrades or downgrades a product instance. For example, you can upgrade a
220
+ * customer's `Business Unlimited Premium` plan to `Business VIP` using this
221
+ * endpoint.
222
+ *
223
+ *
224
+ * You must pass the ID of the Wix account that the product instance belongs
225
+ * to in the header of the call. The call fails, if the product instance and
226
+ * Wix account don't match.
227
+ *
228
+ * The customer has immediate access to new features, while losing access to
229
+ * features not included in the new service. It's up to the reseller to
230
+ * decide whether the adjustment affects the customer’s payment.
231
+ *
232
+ * You can only exchange a product instance with a service of the same type.
233
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for details about
234
+ * which services belong to the same type.
235
+ *
236
+ * You must provide either a new `catalogProductId` or a new `billingInfo`
237
+ * object. The new billing cycle must be supported for the product. Contact the
238
+ * [Wix B2B sales team](mailto:bizdev@wix.com) for information
239
+ * about which billing cycles are supported for each product. If you adjust the
240
+ * billing cycle for a product instance with `RECURRING` payments, you must
241
+ * also provide `billingInfo.cycleDuration.unit`.
242
+ *
243
+ * If a removed feature is a requirement for another service, that service
244
+ * may not be available to the customer any longer. For example, if you downgrade a
245
+ * `Business Unlimited` plan to `Business Basic`, the site owners won’t be
246
+ * able to use `Pro eCommerce Features` any longer.
247
+ *
248
+ * > **Important**: This call requires an account level API key and cannot be
249
+ * > authenticated with the standard authorization header.
250
+ * @param - ID of the product instance to adjust.
251
+ */
252
+ (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions | undefined): Promise<AdjustProductInstanceSpecificationsResponse>;
253
+ }
254
+ declare function updatePackageExternalId$1(httpClient: HttpClient): UpdatePackageExternalIdSignature;
255
+ interface UpdatePackageExternalIdSignature {
256
+ /**
257
+ * Updates a package's external ID field.
258
+ */
259
+ (identifiers: UpdatePackageExternalIdIdentifiers): Promise<UpdatePackageExternalIdResponse>;
260
+ }
261
+
262
+ declare const createPackage: MaybeContext<BuildRESTFunction<typeof createPackage$1> & typeof createPackage$1>;
263
+ declare const createPackageV2: MaybeContext<BuildRESTFunction<typeof createPackageV2$1> & typeof createPackageV2$1>;
264
+ declare const cancelPackage: MaybeContext<BuildRESTFunction<typeof cancelPackage$1> & typeof cancelPackage$1>;
265
+ declare const getPackage: MaybeContext<BuildRESTFunction<typeof getPackage$1> & typeof getPackage$1>;
266
+ declare const queryPackages: MaybeContext<BuildRESTFunction<typeof queryPackages$1> & typeof queryPackages$1>;
267
+ declare const assignProductInstanceToSite: MaybeContext<BuildRESTFunction<typeof assignProductInstanceToSite$1> & typeof assignProductInstanceToSite$1>;
268
+ declare const unassignProductInstanceFromSite: MaybeContext<BuildRESTFunction<typeof unassignProductInstanceFromSite$1> & typeof unassignProductInstanceFromSite$1>;
269
+ declare const cancelProductInstance: MaybeContext<BuildRESTFunction<typeof cancelProductInstance$1> & typeof cancelProductInstance$1>;
270
+ declare const adjustProductInstanceSpecifications: MaybeContext<BuildRESTFunction<typeof adjustProductInstanceSpecifications$1> & typeof adjustProductInstanceSpecifications$1>;
271
+ declare const updatePackageExternalId: MaybeContext<BuildRESTFunction<typeof updatePackageExternalId$1> & typeof updatePackageExternalId$1>;
272
+
273
+ export { AdjustProductInstanceSpecificationsOptions, AdjustProductInstanceSpecificationsResponse, AssignProductInstanceToSiteIdentifiers, AssignProductInstanceToSiteOptions, AssignProductInstanceToSiteResponse, CancelPackageOptions, CancelPackageResponse, CancelProductInstanceOptions, CancelProductInstanceResponse, CreatePackageOptions, CreatePackageResponse, CreatePackageV2Options, Package, PackagesQueryBuilder, UnassignProductInstanceFromSiteOptions, UnassignProductInstanceFromSiteResponse, UpdatePackageExternalIdIdentifiers, UpdatePackageExternalIdResponse, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };