@wix/auto_sdk_packages_packages 1.0.3 → 1.0.5

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 (123) 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/index.typings.d.ts +1867 -1
  5. package/build/cjs/index.typings.js +864 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +543 -1
  8. package/build/cjs/meta.js +574 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/src/premium-reseller-v1-packages-packages.public.d.ts → es/index.d.mts} +27 -16
  11. package/build/es/index.mjs +906 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/premium-reseller-v1-packages-packages.universal.d.ts → es/index.typings.d.mts} +192 -149
  14. package/build/es/index.typings.mjs +817 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +543 -0
  17. package/build/es/meta.mjs +541 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +273 -1
  20. package/build/internal/cjs/index.js +953 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1867 -1
  23. package/build/internal/cjs/index.typings.js +864 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +543 -1
  26. package/build/internal/cjs/meta.js +574 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/{cjs/src/premium-reseller-v1-packages-packages.public.d.ts → internal/es/index.d.mts} +27 -16
  29. package/build/internal/es/index.mjs +906 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/{cjs/src/premium-reseller-v1-packages-packages.universal.d.ts → internal/es/index.typings.d.mts} +192 -149
  32. package/build/internal/es/index.typings.mjs +817 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +543 -0
  35. package/build/internal/es/meta.mjs +541 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +11 -10
  38. package/build/cjs/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  39. package/build/cjs/src/premium-reseller-v1-packages-packages.context.js +0 -34
  40. package/build/cjs/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  41. package/build/cjs/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  42. package/build/cjs/src/premium-reseller-v1-packages-packages.http.js +0 -563
  43. package/build/cjs/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  44. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  45. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.js +0 -218
  46. package/build/cjs/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  47. package/build/cjs/src/premium-reseller-v1-packages-packages.public.js +0 -84
  48. package/build/cjs/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  49. package/build/cjs/src/premium-reseller-v1-packages-packages.types.d.ts +0 -1377
  50. package/build/cjs/src/premium-reseller-v1-packages-packages.types.js +0 -155
  51. package/build/cjs/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  52. package/build/cjs/src/premium-reseller-v1-packages-packages.universal.js +0 -756
  53. package/build/cjs/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  64. package/build/es/src/premium-reseller-v1-packages-packages.context.js +0 -14
  65. package/build/es/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  66. package/build/es/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  67. package/build/es/src/premium-reseller-v1-packages-packages.http.js +0 -550
  68. package/build/es/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  69. package/build/es/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  70. package/build/es/src/premium-reseller-v1-packages-packages.meta.js +0 -182
  71. package/build/es/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  72. package/build/es/src/premium-reseller-v1-packages-packages.public.d.ts +0 -262
  73. package/build/es/src/premium-reseller-v1-packages-packages.public.js +0 -54
  74. package/build/es/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  75. package/build/es/src/premium-reseller-v1-packages-packages.types.d.ts +0 -1377
  76. package/build/es/src/premium-reseller-v1-packages-packages.types.js +0 -152
  77. package/build/es/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  78. package/build/es/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1824
  79. package/build/es/src/premium-reseller-v1-packages-packages.universal.js +0 -720
  80. package/build/es/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  81. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  82. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.js +0 -34
  83. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  84. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  85. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.js +0 -563
  86. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  87. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  88. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.js +0 -218
  89. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  90. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.public.js +0 -84
  91. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  92. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.types.d.ts +0 -1377
  93. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.types.js +0 -155
  94. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  95. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.universal.js +0 -756
  96. package/build/internal/cjs/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.d.ts +0 -14
  107. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.js +0 -14
  108. package/build/internal/es/src/premium-reseller-v1-packages-packages.context.js.map +0 -1
  109. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.d.ts +0 -219
  110. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.js +0 -550
  111. package/build/internal/es/src/premium-reseller-v1-packages-packages.http.js.map +0 -1
  112. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.d.ts +0 -38
  113. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.js +0 -182
  114. package/build/internal/es/src/premium-reseller-v1-packages-packages.meta.js.map +0 -1
  115. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.d.ts +0 -262
  116. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.js +0 -54
  117. package/build/internal/es/src/premium-reseller-v1-packages-packages.public.js.map +0 -1
  118. package/build/internal/es/src/premium-reseller-v1-packages-packages.types.d.ts +0 -1377
  119. package/build/internal/es/src/premium-reseller-v1-packages-packages.types.js +0 -152
  120. package/build/internal/es/src/premium-reseller-v1-packages-packages.types.js.map +0 -1
  121. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.d.ts +0 -1824
  122. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.js +0 -720
  123. package/build/internal/es/src/premium-reseller-v1-packages-packages.universal.js.map +0 -1
@@ -1 +1,543 @@
1
- export * from './src/premium-reseller-v1-packages-packages.meta.js';
1
+ import { CreatePackageRequest as CreatePackageRequest$1, CreatePackageResponse as CreatePackageResponse$1, CancelPackageRequest as CancelPackageRequest$1, CancelPackageResponse as CancelPackageResponse$1, GetPackageRequest as GetPackageRequest$1, GetPackageResponse as GetPackageResponse$1, QueryPackagesRequest as QueryPackagesRequest$1, QueryPackagesResponse as QueryPackagesResponse$1, AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequest$1, AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponse$1, UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequest$1, UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponse$1, CancelProductInstanceRequest as CancelProductInstanceRequest$1, CancelProductInstanceResponse as CancelProductInstanceResponse$1, AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequest$1, AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponse$1, UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequest$1, UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
3
+
4
+ /**
5
+ * A package is group of instances of Wix services that a reseller offers to a
6
+ * customer as part of a single transaction.
7
+ */
8
+ interface Package {
9
+ /**
10
+ * Package ID.
11
+ * @readonly
12
+ * @format GUID
13
+ */
14
+ id?: string;
15
+ /**
16
+ * Wix account ID. See
17
+ * [Account Level APIs](https://dev.wix.com/docs/rest/account-level/about-account-level-apis)
18
+ * for more details.
19
+ * @readonly
20
+ * @format GUID
21
+ */
22
+ accountId?: string;
23
+ /**
24
+ * External reference. For example, an external subscription ID.
25
+ * This field isn't validated by Wix.
26
+ *
27
+ * Max: 100 characters
28
+ * @maxLength 100
29
+ */
30
+ externalId?: string | null;
31
+ /**
32
+ * Product instances that are included in the package.
33
+ *
34
+ * Min: 1 product instance
35
+ * Max: 1000 product instances
36
+ * @maxSize 1000
37
+ * @minSize 1
38
+ */
39
+ productInstances?: ProductInstance[];
40
+ /**
41
+ * Date and time the package was created.
42
+ * @readonly
43
+ */
44
+ createdDate?: Date | null;
45
+ /**
46
+ * Date and time the package was last updated.
47
+ * @readonly
48
+ */
49
+ updatedDate?: Date | null;
50
+ }
51
+ /**
52
+ * A product instance is a specific instance of a Wix service that a reseller
53
+ * offers to one of their customers.
54
+ */
55
+ interface ProductInstance extends ProductInstanceContractDetailsOneOf {
56
+ /** Billing information for the contract between the reseller and Wix. */
57
+ billingInfo?: ProductInstanceCycle;
58
+ /**
59
+ * ID of the instance of the resold Wix service. **Note:** Differs from the
60
+ * `catalogProductId`. Allows you to identify different instances of the same
61
+ * product in a package.
62
+ * @readonly
63
+ * @format GUID
64
+ */
65
+ instanceId?: string;
66
+ /**
67
+ * ID of the Wix site that the product instance is assigned to.
68
+ * See the [Query Sites API](https://dev.wix.com/api/rest/account-level-apis/sites/query-sites)
69
+ * for more information.
70
+ * @format GUID
71
+ */
72
+ siteId?: string | null;
73
+ /**
74
+ * Product ID, as defined in the Wix Premium Product Catalog.
75
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com)
76
+ * for more details about available Wix services.
77
+ * @format GUID
78
+ */
79
+ catalogProductId?: string;
80
+ /**
81
+ * Status of the product instance.
82
+ * @readonly
83
+ */
84
+ status?: StatusWithLiterals;
85
+ /**
86
+ * Failure object. Only present for status `FAILED`. Describes why the product instance `FAILED`.
87
+ * @readonly
88
+ */
89
+ failure?: FailureReason;
90
+ /**
91
+ * Date and time the product instance was created.
92
+ * @readonly
93
+ */
94
+ createdDate?: Date | null;
95
+ /**
96
+ * Date and time the product instance was last updated.
97
+ * @readonly
98
+ */
99
+ updatedDate?: Date | null;
100
+ /**
101
+ * Two-letter country code in
102
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
103
+ * format. Specifies where customers can claim vouchers that may come with the
104
+ * product. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) to get more
105
+ * information about vouchers and supported locations.
106
+ * @format COUNTRY
107
+ */
108
+ countryCode?: string | null;
109
+ /**
110
+ * Date and time the product instance expires in `YYYY-MM-DDThh:mm:ss.sssZ` format.
111
+ * Used only for instances that don't auto renew at the end of the current billing cycle.
112
+ * @readonly
113
+ */
114
+ expirationDate?: Date | null;
115
+ /**
116
+ * Discount code indicating that the reseller provisioned the product instance
117
+ * during a sale. Wix doesn't guarantee that a discount code reduces the
118
+ * price between Wix and the reseller, even when it's valid. Contact the
119
+ * [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
120
+ *
121
+ * Max: 25 characters
122
+ * @maxLength 25
123
+ */
124
+ discountCode?: string | null;
125
+ /**
126
+ * ID of a different product instance that you can use to offer your customers
127
+ * time-limited free access to an additional product or service. For example,
128
+ * Wix offers a 1-year free domain registration to all customers who purchase a
129
+ * Premium plan. The referenced product instance must have either status `"PENDING"` or
130
+ * `"ACTIVE"`. You can use each product instance only a single time as reference
131
+ * instance.
132
+ * @format GUID
133
+ */
134
+ referenceProductInstanceId?: string | null;
135
+ }
136
+ /** @oneof */
137
+ interface ProductInstanceContractDetailsOneOf {
138
+ /** Billing information for the contract between the reseller and Wix. */
139
+ billingInfo?: ProductInstanceCycle;
140
+ }
141
+ declare enum FailureReasonFailureReason {
142
+ UNKNOWN = "UNKNOWN",
143
+ /** The product instance couldn't be created because the Resellers API timed out. */
144
+ DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
145
+ /** The product instance couldn't be created because an external process failed. */
146
+ EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
147
+ }
148
+ /** @enumType */
149
+ type FailureReasonFailureReasonWithLiterals = FailureReasonFailureReason | 'UNKNOWN' | 'DELIVERY_TIMEOUT' | 'EXTERNAL_FAILURE';
150
+ declare enum IntervalIntervalUnit {
151
+ /** unknown interval unit */
152
+ UNKNOWN = "UNKNOWN",
153
+ /** Day */
154
+ DAY = "DAY",
155
+ /** Week */
156
+ WEEK = "WEEK",
157
+ /** Month */
158
+ MONTH = "MONTH",
159
+ /** Year */
160
+ YEAR = "YEAR"
161
+ }
162
+ /** @enumType */
163
+ type IntervalIntervalUnitWithLiterals = IntervalIntervalUnit | 'UNKNOWN' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
164
+ declare enum CycleDescriptorType {
165
+ /** The payment type hasn't been set. */
166
+ UNKNOWN = "UNKNOWN",
167
+ /** The reseller pays Wix in a single payment. */
168
+ ONE_TIME = "ONE_TIME",
169
+ /** The reseller pays Wix on a recurring schedule. */
170
+ RECURRING = "RECURRING"
171
+ }
172
+ /** @enumType */
173
+ type CycleDescriptorTypeWithLiterals = CycleDescriptorType | 'UNKNOWN' | 'ONE_TIME' | 'RECURRING';
174
+ interface CycleInterval {
175
+ /** Unit of the billing cycle. */
176
+ unit?: IntervalIntervalUnitWithLiterals;
177
+ /**
178
+ * Count of units that make up the billing cycle.
179
+ * @min 1
180
+ */
181
+ count?: number;
182
+ }
183
+ declare enum Status {
184
+ /** The product instance isn't yet available to the customer. */
185
+ PENDING = "PENDING",
186
+ /** The customer can use the product instance. */
187
+ ENABLED = "ENABLED",
188
+ /** The product instance isn't any longer available to the customer. */
189
+ CANCELED = "CANCELED",
190
+ /** The product instance couldn't be delivered successfully and has never been available to the customer. */
191
+ FAILED = "FAILED",
192
+ /** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
193
+ AWAITING_ACTION = "AWAITING_ACTION"
194
+ }
195
+ /** @enumType */
196
+ type StatusWithLiterals = Status | 'PENDING' | 'ENABLED' | 'CANCELED' | 'FAILED' | 'AWAITING_ACTION';
197
+ interface FailureReason {
198
+ /** Failure code. */
199
+ code?: FailureReasonFailureReasonWithLiterals;
200
+ /** Failure message. */
201
+ message?: string;
202
+ }
203
+ interface ProductInstanceCycle {
204
+ /** Payment type. */
205
+ type?: CycleDescriptorTypeWithLiterals;
206
+ /** Duration of the billing cycle. Available only for `RECURRING` payments. */
207
+ cycleDuration?: CycleInterval;
208
+ }
209
+ interface CreatePackageRequest {
210
+ /**
211
+ * Idempotency key.
212
+ * @maxLength 100
213
+ */
214
+ idempotencyKey?: string | null;
215
+ /**
216
+ * External reference. For example, an external subscription ID. **Note:** This field is not validated by Wix.
217
+ * @maxLength 100
218
+ */
219
+ externalId?: string | null;
220
+ /**
221
+ * Wix services that are resold.
222
+ * @maxSize 1000
223
+ * @minSize 1
224
+ */
225
+ products: ProductInstance[];
226
+ }
227
+ interface CreatePackageResponse {
228
+ /**
229
+ * Idempotency key.
230
+ * @maxLength 100
231
+ */
232
+ idempotencyKey?: string | null;
233
+ /** Created package. */
234
+ package?: Package;
235
+ }
236
+ interface CancelPackageRequest {
237
+ /**
238
+ * Idempotency key.
239
+ * @maxLength 100
240
+ */
241
+ idempotencyKey?: string | null;
242
+ /**
243
+ * ID of the package to cancel.
244
+ * @format GUID
245
+ */
246
+ id: string;
247
+ }
248
+ interface CancelPackageResponse {
249
+ /**
250
+ * Idempotency key.
251
+ * @maxLength 100
252
+ */
253
+ idempotencyKey?: string | null;
254
+ /** Canceled package. */
255
+ package?: Package;
256
+ }
257
+ interface GetPackageRequest {
258
+ /**
259
+ * Package ID.
260
+ * @format GUID
261
+ */
262
+ id: string;
263
+ }
264
+ interface GetPackageResponse {
265
+ /** Retrieved package. */
266
+ package?: Package;
267
+ }
268
+ interface QueryPackagesRequest {
269
+ /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
270
+ query: QueryV2;
271
+ }
272
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
273
+ /** Paging options to limit and offset the number of items. */
274
+ paging?: Paging;
275
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
276
+ cursorPaging?: CursorPaging;
277
+ /**
278
+ * Filter object.
279
+ *
280
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
281
+ */
282
+ filter?: Record<string, any> | null;
283
+ /**
284
+ * Sort object.
285
+ *
286
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
287
+ */
288
+ sort?: Sorting[];
289
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
290
+ fields?: string[];
291
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
292
+ fieldsets?: string[];
293
+ }
294
+ /** @oneof */
295
+ interface QueryV2PagingMethodOneOf {
296
+ /** Paging options to limit and offset the number of items. */
297
+ paging?: Paging;
298
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
299
+ cursorPaging?: CursorPaging;
300
+ }
301
+ interface Sorting {
302
+ /**
303
+ * Name of the field to sort by.
304
+ * @maxLength 512
305
+ */
306
+ fieldName?: string;
307
+ /** Sort order. */
308
+ order?: SortOrderWithLiterals;
309
+ }
310
+ declare enum SortOrder {
311
+ ASC = "ASC",
312
+ DESC = "DESC"
313
+ }
314
+ /** @enumType */
315
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
316
+ interface Paging {
317
+ /** Number of items to load. */
318
+ limit?: number | null;
319
+ /** Number of items to skip in the current sort order. */
320
+ offset?: number | null;
321
+ }
322
+ interface CursorPaging {
323
+ /**
324
+ * Maximum number of items to return in the results.
325
+ * @max 100
326
+ */
327
+ limit?: number | null;
328
+ /**
329
+ * Pointer to the next or previous page in the list of results.
330
+ *
331
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
332
+ * Not relevant for the first request.
333
+ * @maxLength 16000
334
+ */
335
+ cursor?: string | null;
336
+ }
337
+ interface QueryPackagesResponse {
338
+ /** Paging metadata. */
339
+ metadata?: PagingMetadataV2;
340
+ /**
341
+ * Retrieved packages.
342
+ *
343
+ * Max: 1000 packages
344
+ * @maxSize 1000
345
+ */
346
+ packages?: Package[];
347
+ }
348
+ interface PagingMetadataV2 {
349
+ /** Number of items returned in the response. */
350
+ count?: number | null;
351
+ /** Offset that was requested. */
352
+ offset?: number | null;
353
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
354
+ total?: number | null;
355
+ /** Flag that indicates the server failed to calculate the `total` field. */
356
+ tooManyToCount?: boolean | null;
357
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
358
+ cursors?: Cursors;
359
+ }
360
+ interface Cursors {
361
+ /**
362
+ * Cursor string pointing to the next page in the list of results.
363
+ * @maxLength 16000
364
+ */
365
+ next?: string | null;
366
+ /**
367
+ * Cursor pointing to the previous page in the list of results.
368
+ * @maxLength 16000
369
+ */
370
+ prev?: string | null;
371
+ }
372
+ interface AssignProductInstanceToSiteRequest {
373
+ /**
374
+ * Idempotency key.
375
+ * @maxLength 100
376
+ */
377
+ idempotencyKey?: string | null;
378
+ /**
379
+ * ID of the product instance to assign to a site.
380
+ * @format GUID
381
+ */
382
+ instanceId: string;
383
+ /**
384
+ * ID of the site to which the product instance is assigned.
385
+ * @format GUID
386
+ */
387
+ siteId: string;
388
+ }
389
+ interface AssignProductInstanceToSiteResponse {
390
+ /**
391
+ * Idempotency key.
392
+ * @maxLength 100
393
+ */
394
+ idempotencyKey?: string | null;
395
+ /** Updated package that includes the assigned product instance. */
396
+ package?: Package;
397
+ }
398
+ interface UnassignProductInstanceFromSiteRequest {
399
+ /**
400
+ * Idempotency key.
401
+ * @maxLength 100
402
+ */
403
+ idempotencyKey?: string | null;
404
+ /**
405
+ * ID of the product instance to unassign from a site.
406
+ * @format GUID
407
+ */
408
+ instanceId: string;
409
+ }
410
+ interface UnassignProductInstanceFromSiteResponse {
411
+ /**
412
+ * Idempotency key.
413
+ * @maxLength 100
414
+ */
415
+ idempotencyKey?: string | null;
416
+ /** Updated package that includes the unassigned product instance. */
417
+ package?: Package;
418
+ }
419
+ interface CancelProductInstanceRequest {
420
+ /**
421
+ * Idempotency key.
422
+ * @maxLength 100
423
+ */
424
+ idempotencyKey?: string | null;
425
+ /**
426
+ * ID of the product instance to cancel.
427
+ * @format GUID
428
+ */
429
+ instanceId: string;
430
+ }
431
+ interface CancelProductInstanceResponse {
432
+ /**
433
+ * Idempotency key.
434
+ * @maxLength 100
435
+ */
436
+ idempotencyKey?: string | null;
437
+ /** Updated package that includes the previously included the canceled product instance. */
438
+ package?: Package;
439
+ }
440
+ interface AdjustProductInstanceSpecificationsRequest {
441
+ /**
442
+ * Idempotency key.
443
+ * @maxLength 100
444
+ */
445
+ idempotencyKey?: string | null;
446
+ /**
447
+ * ID of the product instance to adjust.
448
+ * @format GUID
449
+ */
450
+ instanceId: string;
451
+ /**
452
+ * ID of the product to replace the original instance. Required in case you don't
453
+ * provide a new `billingInfo` object.
454
+ * @format GUID
455
+ */
456
+ catalogProductId?: string | null;
457
+ /**
458
+ * Information about the billing cycle. Required in case you don't provide a new
459
+ * `catalogProductId`. The new billing cycle must be supported for the service.
460
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
461
+ * information about a service's supported billing cycles. If
462
+ * you adjust the billing cycle for a product instance with `RECURRING`
463
+ * payments, you must also provide `billingInfo.cycleDuration.unit`.
464
+ */
465
+ billingInfo?: ProductInstanceCycle;
466
+ /**
467
+ * Discount code indicating that the reseller provisioned the product instance
468
+ * during a sale. In case you pass a code that isn't valid, the call succeeds and
469
+ * no discount is applied to the product instance. Wix doesn't guarantee that a
470
+ * discount code reduces the price between Wix and the reseller, even when it's
471
+ * valid. You can't add a discount code after you've created the
472
+ * product instance. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
473
+ * more information about supported codes.
474
+ *
475
+ * Max: 25 characters
476
+ * @maxLength 25
477
+ */
478
+ discountCode?: string | null;
479
+ }
480
+ interface AdjustProductInstanceSpecificationsResponse {
481
+ /**
482
+ * Idempotency key.
483
+ * @maxLength 100
484
+ */
485
+ idempotencyKey?: string | null;
486
+ /** Updated package that includes the adjusted product instance. */
487
+ package?: Package;
488
+ }
489
+ interface UpdatePackageExternalIdRequest {
490
+ /**
491
+ * ID of the package to update.
492
+ * @format GUID
493
+ */
494
+ packageId: string;
495
+ /**
496
+ * External ID that will be assigned to the package.
497
+ * @maxLength 100
498
+ */
499
+ externalId: string;
500
+ }
501
+ interface UpdatePackageExternalIdResponse {
502
+ /** Updated package. */
503
+ updatedPackage?: Package;
504
+ }
505
+
506
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
507
+ getUrl: (context: any) => string;
508
+ httpMethod: K;
509
+ path: string;
510
+ pathParams: M;
511
+ __requestType: T;
512
+ __originalRequestType: S;
513
+ __responseType: Q;
514
+ __originalResponseType: R;
515
+ };
516
+ declare function createPackage(): __PublicMethodMetaInfo<'POST', {}, CreatePackageRequest$1, CreatePackageRequest, CreatePackageResponse$1, CreatePackageResponse>;
517
+ declare function createPackageV2(): __PublicMethodMetaInfo<'POST', {}, CreatePackageRequest$1, CreatePackageRequest, CreatePackageResponse$1, CreatePackageResponse>;
518
+ declare function cancelPackage(): __PublicMethodMetaInfo<'DELETE', {
519
+ id: string;
520
+ }, CancelPackageRequest$1, CancelPackageRequest, CancelPackageResponse$1, CancelPackageResponse>;
521
+ declare function getPackage(): __PublicMethodMetaInfo<'GET', {
522
+ id: string;
523
+ }, GetPackageRequest$1, GetPackageRequest, GetPackageResponse$1, GetPackageResponse>;
524
+ declare function queryPackages(): __PublicMethodMetaInfo<'POST', {}, QueryPackagesRequest$1, QueryPackagesRequest, QueryPackagesResponse$1, QueryPackagesResponse>;
525
+ declare function assignProductInstanceToSite(): __PublicMethodMetaInfo<'PATCH', {
526
+ instanceId: string;
527
+ siteId: string;
528
+ }, AssignProductInstanceToSiteRequest$1, AssignProductInstanceToSiteRequest, AssignProductInstanceToSiteResponse$1, AssignProductInstanceToSiteResponse>;
529
+ declare function unassignProductInstanceFromSite(): __PublicMethodMetaInfo<'PATCH', {
530
+ instanceId: string;
531
+ }, UnassignProductInstanceFromSiteRequest$1, UnassignProductInstanceFromSiteRequest, UnassignProductInstanceFromSiteResponse$1, UnassignProductInstanceFromSiteResponse>;
532
+ declare function cancelProductInstance(): __PublicMethodMetaInfo<'DELETE', {
533
+ instanceId: string;
534
+ }, CancelProductInstanceRequest$1, CancelProductInstanceRequest, CancelProductInstanceResponse$1, CancelProductInstanceResponse>;
535
+ declare function adjustProductInstanceSpecifications(): __PublicMethodMetaInfo<'PATCH', {
536
+ instanceId: string;
537
+ }, AdjustProductInstanceSpecificationsRequest$1, AdjustProductInstanceSpecificationsRequest, AdjustProductInstanceSpecificationsResponse$1, AdjustProductInstanceSpecificationsResponse>;
538
+ declare function updatePackageExternalId(): __PublicMethodMetaInfo<'PATCH', {
539
+ packageId: string;
540
+ externalId: string;
541
+ }, UpdatePackageExternalIdRequest$1, UpdatePackageExternalIdRequest, UpdatePackageExternalIdResponse$1, UpdatePackageExternalIdResponse>;
542
+
543
+ export { type __PublicMethodMetaInfo, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };