@wix/packages 1.0.22 → 1.0.24
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.
- package/build/es/package.json +3 -0
- package/meta/package.json +1 -5
- package/package.json +19 -16
- package/build/cjs/context.d.ts +0 -1
- package/build/cjs/context.js +0 -28
- package/build/cjs/context.js.map +0 -1
- package/build/es/context.d.ts +0 -1
- package/build/es/context.js +0 -2
- package/build/es/context.js.map +0 -1
- package/context/package.json +0 -7
- package/type-bundles/context.bundle.d.ts +0 -2240
- package/type-bundles/index.bundle.d.ts +0 -2240
- package/type-bundles/meta.bundle.d.ts +0 -939
|
@@ -1,939 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A package is group of instances of Wix services that a reseller offers to a
|
|
3
|
-
* customer as part of a single transaction.
|
|
4
|
-
*/
|
|
5
|
-
interface Package$1 {
|
|
6
|
-
/**
|
|
7
|
-
* Package ID.
|
|
8
|
-
* @readonly
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Wix account ID. See
|
|
13
|
-
* [Account Level APIs](https://dev.wix.com/docs/rest/account-level/about-account-level-apis)
|
|
14
|
-
* for more details.
|
|
15
|
-
* @readonly
|
|
16
|
-
*/
|
|
17
|
-
accountId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* External reference. For example, an external subscription ID.
|
|
20
|
-
* This field isn't validated by Wix.
|
|
21
|
-
*
|
|
22
|
-
* Max: 100 characters
|
|
23
|
-
*/
|
|
24
|
-
externalId?: string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Product instances that are included in the package.
|
|
27
|
-
*
|
|
28
|
-
* Min: 1 product instance
|
|
29
|
-
* Max: 1000 product instances
|
|
30
|
-
*/
|
|
31
|
-
productInstances?: ProductInstance$1[];
|
|
32
|
-
/**
|
|
33
|
-
* Date and time the package was created.
|
|
34
|
-
* @readonly
|
|
35
|
-
*/
|
|
36
|
-
createdDate?: Date | null;
|
|
37
|
-
/**
|
|
38
|
-
* Date and time the package was last updated.
|
|
39
|
-
* @readonly
|
|
40
|
-
*/
|
|
41
|
-
updatedDate?: Date | null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* A product instance is a specific instance of a Wix service that a reseller
|
|
45
|
-
* offers to one of their customers.
|
|
46
|
-
*/
|
|
47
|
-
interface ProductInstance$1 extends ProductInstanceContractDetailsOneOf$1 {
|
|
48
|
-
/** Billing information for the contract between the reseller and Wix. */
|
|
49
|
-
billingInfo?: ProductInstanceCycle$1;
|
|
50
|
-
/**
|
|
51
|
-
* ID of the instance of the resold Wix service. **Note:** Differs from the
|
|
52
|
-
* `catalogProductId`. Allows you to identify different instances of the same
|
|
53
|
-
* product in a package.
|
|
54
|
-
* @readonly
|
|
55
|
-
*/
|
|
56
|
-
instanceId?: string;
|
|
57
|
-
/**
|
|
58
|
-
* ID of the Wix site that the product instance is assigned to.
|
|
59
|
-
* See the [Query Sites API](https://dev.wix.com/api/rest/account-level-apis/sites/query-sites)
|
|
60
|
-
* for more information.
|
|
61
|
-
*/
|
|
62
|
-
siteId?: string | null;
|
|
63
|
-
/**
|
|
64
|
-
* Product ID, as defined in the Wix Premium Product Catalog.
|
|
65
|
-
* Contact the [Wix B2B sales team](mailto:bizdev@wix.com)
|
|
66
|
-
* for more details about available Wix services.
|
|
67
|
-
*/
|
|
68
|
-
catalogProductId?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Status of the product instance.
|
|
71
|
-
* @readonly
|
|
72
|
-
*/
|
|
73
|
-
status?: Status$1;
|
|
74
|
-
/**
|
|
75
|
-
* Failure object. Only present for status `FAILED`. Describes why the product instance `FAILED`.
|
|
76
|
-
* @readonly
|
|
77
|
-
*/
|
|
78
|
-
failure?: FailureReason$1;
|
|
79
|
-
/**
|
|
80
|
-
* Date and time the product instance was created.
|
|
81
|
-
* @readonly
|
|
82
|
-
*/
|
|
83
|
-
createdDate?: Date | null;
|
|
84
|
-
/**
|
|
85
|
-
* Date and time the product instance was last updated.
|
|
86
|
-
* @readonly
|
|
87
|
-
*/
|
|
88
|
-
updatedDate?: Date | null;
|
|
89
|
-
/**
|
|
90
|
-
* Two-letter country code in
|
|
91
|
-
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
92
|
-
* format. Specifies where customers can claim vouchers that may come with the
|
|
93
|
-
* product. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) to get more
|
|
94
|
-
* information about vouchers and supported locations.
|
|
95
|
-
*/
|
|
96
|
-
countryCode?: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* Date and time the product instance expires in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
99
|
-
* Used only for instances that don't auto renew at the end of the current billing cycle.
|
|
100
|
-
* @readonly
|
|
101
|
-
*/
|
|
102
|
-
expirationDate?: Date | null;
|
|
103
|
-
/**
|
|
104
|
-
* Discount code indicating that the reseller provisioned the product instance
|
|
105
|
-
* during a sale. Wix doesn't guarantee that a discount code reduces the
|
|
106
|
-
* price between Wix and the reseller, even when it's valid. Contact the
|
|
107
|
-
* [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
108
|
-
*
|
|
109
|
-
* Max: 25 characters
|
|
110
|
-
*/
|
|
111
|
-
discountCode?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* ID of a different product instance that you can use to offer your customers
|
|
114
|
-
* time-limited free access to an additional product or service. For example,
|
|
115
|
-
* Wix offers a 1-year free domain registration to all customers who purchase a
|
|
116
|
-
* Premium plan. The referenced product instance must have either status `"PENDING"` or
|
|
117
|
-
* `"ACTIVE"`. You can use each product instance only a single time as reference
|
|
118
|
-
* instance.
|
|
119
|
-
*/
|
|
120
|
-
referenceProductInstanceId?: string | null;
|
|
121
|
-
}
|
|
122
|
-
/** @oneof */
|
|
123
|
-
interface ProductInstanceContractDetailsOneOf$1 {
|
|
124
|
-
/** Billing information for the contract between the reseller and Wix. */
|
|
125
|
-
billingInfo?: ProductInstanceCycle$1;
|
|
126
|
-
}
|
|
127
|
-
declare enum FailureReasonFailureReason$1 {
|
|
128
|
-
UNKNOWN = "UNKNOWN",
|
|
129
|
-
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
130
|
-
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
131
|
-
/** The product instance couldn't be created because an external process failed. */
|
|
132
|
-
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
133
|
-
}
|
|
134
|
-
declare enum IntervalIntervalUnit$1 {
|
|
135
|
-
/** unknown interval unit */
|
|
136
|
-
UNKNOWN = "UNKNOWN",
|
|
137
|
-
/** Day */
|
|
138
|
-
DAY = "DAY",
|
|
139
|
-
/** Week */
|
|
140
|
-
WEEK = "WEEK",
|
|
141
|
-
/** Month */
|
|
142
|
-
MONTH = "MONTH",
|
|
143
|
-
/** Year */
|
|
144
|
-
YEAR = "YEAR"
|
|
145
|
-
}
|
|
146
|
-
declare enum CycleDescriptorType$1 {
|
|
147
|
-
/** The payment type hasn't been set. */
|
|
148
|
-
UNKNOWN = "UNKNOWN",
|
|
149
|
-
/** The reseller pays Wix in a single payment. */
|
|
150
|
-
ONE_TIME = "ONE_TIME",
|
|
151
|
-
/** The reseller pays Wix on a recurring schedule. */
|
|
152
|
-
RECURRING = "RECURRING"
|
|
153
|
-
}
|
|
154
|
-
interface CycleInterval$1 {
|
|
155
|
-
/** Unit of the billing cycle. */
|
|
156
|
-
unit?: IntervalIntervalUnit$1;
|
|
157
|
-
/** Count of units that make up the billing cycle. */
|
|
158
|
-
count?: number;
|
|
159
|
-
}
|
|
160
|
-
declare enum Status$1 {
|
|
161
|
-
/** The product instance isn't yet available to the customer. */
|
|
162
|
-
PENDING = "PENDING",
|
|
163
|
-
/** The customer can use the product instance. */
|
|
164
|
-
ENABLED = "ENABLED",
|
|
165
|
-
/** The product instance isn't any longer available to the customer. */
|
|
166
|
-
CANCELED = "CANCELED",
|
|
167
|
-
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
168
|
-
FAILED = "FAILED",
|
|
169
|
-
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
170
|
-
AWAITING_ACTION = "AWAITING_ACTION"
|
|
171
|
-
}
|
|
172
|
-
interface FailureReason$1 {
|
|
173
|
-
/** Failure code. */
|
|
174
|
-
code?: FailureReasonFailureReason$1;
|
|
175
|
-
/** Failure message. */
|
|
176
|
-
message?: string;
|
|
177
|
-
}
|
|
178
|
-
interface ProductInstanceCycle$1 {
|
|
179
|
-
/** Payment type. */
|
|
180
|
-
type?: CycleDescriptorType$1;
|
|
181
|
-
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
182
|
-
cycleDuration?: CycleInterval$1;
|
|
183
|
-
}
|
|
184
|
-
interface CreatePackageRequest$1 {
|
|
185
|
-
/** Idempotency key. */
|
|
186
|
-
idempotencyKey?: string | null;
|
|
187
|
-
/** External reference. For example, an external subscription ID. **Note:** This field is not validated by Wix. */
|
|
188
|
-
externalId?: string | null;
|
|
189
|
-
/** Wix services that are resold. */
|
|
190
|
-
products: ProductInstance$1[];
|
|
191
|
-
}
|
|
192
|
-
interface CreatePackageResponse$1 {
|
|
193
|
-
/** Idempotency key. */
|
|
194
|
-
idempotencyKey?: string | null;
|
|
195
|
-
/** Created package. */
|
|
196
|
-
package?: Package$1;
|
|
197
|
-
}
|
|
198
|
-
interface CancelPackageRequest$1 {
|
|
199
|
-
/** Idempotency key. */
|
|
200
|
-
idempotencyKey?: string | null;
|
|
201
|
-
/** ID of the package to cancel. */
|
|
202
|
-
id: string;
|
|
203
|
-
}
|
|
204
|
-
interface CancelPackageResponse$1 {
|
|
205
|
-
/** Idempotency key. */
|
|
206
|
-
idempotencyKey?: string | null;
|
|
207
|
-
/** Canceled package. */
|
|
208
|
-
package?: Package$1;
|
|
209
|
-
}
|
|
210
|
-
interface GetPackageRequest$1 {
|
|
211
|
-
/** Package ID. */
|
|
212
|
-
id: string;
|
|
213
|
-
}
|
|
214
|
-
interface GetPackageResponse$1 {
|
|
215
|
-
/** Retrieved package. */
|
|
216
|
-
package?: Package$1;
|
|
217
|
-
}
|
|
218
|
-
interface QueryPackagesRequest$1 {
|
|
219
|
-
/** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
|
|
220
|
-
query: QueryV2$1;
|
|
221
|
-
}
|
|
222
|
-
interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
|
|
223
|
-
/** Paging options to limit and skip the number of items. */
|
|
224
|
-
paging?: Paging$1;
|
|
225
|
-
/** 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`. */
|
|
226
|
-
cursorPaging?: CursorPaging$1;
|
|
227
|
-
/**
|
|
228
|
-
* Filter object.
|
|
229
|
-
*
|
|
230
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
231
|
-
*/
|
|
232
|
-
filter?: Record<string, any> | null;
|
|
233
|
-
/**
|
|
234
|
-
* Sort object.
|
|
235
|
-
*
|
|
236
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
237
|
-
*/
|
|
238
|
-
sort?: Sorting$1[];
|
|
239
|
-
/** 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. */
|
|
240
|
-
fields?: string[];
|
|
241
|
-
/** 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. */
|
|
242
|
-
fieldsets?: string[];
|
|
243
|
-
}
|
|
244
|
-
/** @oneof */
|
|
245
|
-
interface QueryV2PagingMethodOneOf$1 {
|
|
246
|
-
/** Paging options to limit and skip the number of items. */
|
|
247
|
-
paging?: Paging$1;
|
|
248
|
-
/** 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`. */
|
|
249
|
-
cursorPaging?: CursorPaging$1;
|
|
250
|
-
}
|
|
251
|
-
interface Sorting$1 {
|
|
252
|
-
/** Name of the field to sort by. */
|
|
253
|
-
fieldName?: string;
|
|
254
|
-
/** Sort order. */
|
|
255
|
-
order?: SortOrder$1;
|
|
256
|
-
}
|
|
257
|
-
declare enum SortOrder$1 {
|
|
258
|
-
ASC = "ASC",
|
|
259
|
-
DESC = "DESC"
|
|
260
|
-
}
|
|
261
|
-
interface Paging$1 {
|
|
262
|
-
/** Number of items to load. */
|
|
263
|
-
limit?: number | null;
|
|
264
|
-
/** Number of items to skip in the current sort order. */
|
|
265
|
-
offset?: number | null;
|
|
266
|
-
}
|
|
267
|
-
interface CursorPaging$1 {
|
|
268
|
-
/** Maximum number of items to return in the results. */
|
|
269
|
-
limit?: number | null;
|
|
270
|
-
/**
|
|
271
|
-
* Pointer to the next or previous page in the list of results.
|
|
272
|
-
*
|
|
273
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
274
|
-
* Not relevant for the first request.
|
|
275
|
-
*/
|
|
276
|
-
cursor?: string | null;
|
|
277
|
-
}
|
|
278
|
-
interface QueryPackagesResponse$1 {
|
|
279
|
-
/** Paging metadata. */
|
|
280
|
-
metadata?: PagingMetadataV2$1;
|
|
281
|
-
/**
|
|
282
|
-
* Retrieved packages.
|
|
283
|
-
*
|
|
284
|
-
* Max: 1000 packages
|
|
285
|
-
*/
|
|
286
|
-
packages?: Package$1[];
|
|
287
|
-
}
|
|
288
|
-
interface PagingMetadataV2$1 {
|
|
289
|
-
/** Number of items returned in the response. */
|
|
290
|
-
count?: number | null;
|
|
291
|
-
/** Offset that was requested. */
|
|
292
|
-
offset?: number | null;
|
|
293
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
294
|
-
total?: number | null;
|
|
295
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
296
|
-
tooManyToCount?: boolean | null;
|
|
297
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
298
|
-
cursors?: Cursors$1;
|
|
299
|
-
}
|
|
300
|
-
interface Cursors$1 {
|
|
301
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
302
|
-
next?: string | null;
|
|
303
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
304
|
-
prev?: string | null;
|
|
305
|
-
}
|
|
306
|
-
interface AssignProductInstanceToSiteRequest$1 {
|
|
307
|
-
/** Idempotency key. */
|
|
308
|
-
idempotencyKey?: string | null;
|
|
309
|
-
/** ID of the product instance to assign to a site. */
|
|
310
|
-
instanceId: string;
|
|
311
|
-
/** ID of the site to which the product instance is assigned. */
|
|
312
|
-
siteId: string;
|
|
313
|
-
}
|
|
314
|
-
interface AssignProductInstanceToSiteResponse$1 {
|
|
315
|
-
/** Idempotency key. */
|
|
316
|
-
idempotencyKey?: string | null;
|
|
317
|
-
/** Updated package that includes the assigned product instance. */
|
|
318
|
-
package?: Package$1;
|
|
319
|
-
}
|
|
320
|
-
interface UnassignProductInstanceFromSiteRequest$1 {
|
|
321
|
-
/** Idempotency key. */
|
|
322
|
-
idempotencyKey?: string | null;
|
|
323
|
-
/** ID of the product instance to unassign from a site. */
|
|
324
|
-
instanceId: string;
|
|
325
|
-
}
|
|
326
|
-
interface UnassignProductInstanceFromSiteResponse$1 {
|
|
327
|
-
/** Idempotency key. */
|
|
328
|
-
idempotencyKey?: string | null;
|
|
329
|
-
/** Updated package that includes the unassigned product instance. */
|
|
330
|
-
package?: Package$1;
|
|
331
|
-
}
|
|
332
|
-
interface CancelProductInstanceRequest$1 {
|
|
333
|
-
/** Idempotency key. */
|
|
334
|
-
idempotencyKey?: string | null;
|
|
335
|
-
/** ID of the product instance to cancel. */
|
|
336
|
-
instanceId: string;
|
|
337
|
-
}
|
|
338
|
-
interface CancelProductInstanceResponse$1 {
|
|
339
|
-
/** Idempotency key. */
|
|
340
|
-
idempotencyKey?: string | null;
|
|
341
|
-
/** Updated package that includes the previously included the canceled product instance. */
|
|
342
|
-
package?: Package$1;
|
|
343
|
-
}
|
|
344
|
-
interface AdjustProductInstanceSpecificationsRequest$1 {
|
|
345
|
-
/** Idempotency key. */
|
|
346
|
-
idempotencyKey?: string | null;
|
|
347
|
-
/** ID of the product instance to adjust. */
|
|
348
|
-
instanceId: string;
|
|
349
|
-
/**
|
|
350
|
-
* ID of the product to replace the original instance. Required in case you don't
|
|
351
|
-
* provide a new `billingInfo` object.
|
|
352
|
-
*/
|
|
353
|
-
catalogProductId?: string | null;
|
|
354
|
-
/**
|
|
355
|
-
* Information about the billing cycle. Required in case you don't provide a new
|
|
356
|
-
* `catalogProductId`. The new billing cycle must be supported for the service.
|
|
357
|
-
* Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
|
|
358
|
-
* information about a service's supported billing cycles. If
|
|
359
|
-
* you adjust the billing cycle for a product instance with `RECURRING`
|
|
360
|
-
* payments, you must also provide `billingInfo.cycleDuration.unit`.
|
|
361
|
-
*/
|
|
362
|
-
billingInfo?: ProductInstanceCycle$1;
|
|
363
|
-
/**
|
|
364
|
-
* Discount code indicating that the reseller provisioned the product instance
|
|
365
|
-
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
366
|
-
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
367
|
-
* discount code reduces the price between Wix and the reseller, even when it's
|
|
368
|
-
* valid. You can't add a discount code after you've created the
|
|
369
|
-
* product instance. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
|
|
370
|
-
* more information about supported codes.
|
|
371
|
-
*
|
|
372
|
-
* Max: 25 characters
|
|
373
|
-
*/
|
|
374
|
-
discountCode?: string | null;
|
|
375
|
-
}
|
|
376
|
-
interface AdjustProductInstanceSpecificationsResponse$1 {
|
|
377
|
-
/** Idempotency key. */
|
|
378
|
-
idempotencyKey?: string | null;
|
|
379
|
-
/** Updated package that includes the adjusted product instance. */
|
|
380
|
-
package?: Package$1;
|
|
381
|
-
}
|
|
382
|
-
interface UpdatePackageExternalIdRequest$1 {
|
|
383
|
-
/** ID of the package to update. */
|
|
384
|
-
packageId: string;
|
|
385
|
-
/** External ID that will be assigned to the package. */
|
|
386
|
-
externalId: string;
|
|
387
|
-
}
|
|
388
|
-
interface UpdatePackageExternalIdResponse$1 {
|
|
389
|
-
/** Updated package. */
|
|
390
|
-
updatedPackage?: Package$1;
|
|
391
|
-
}
|
|
392
|
-
interface CycleIntervalNonNullableFields$1 {
|
|
393
|
-
unit: IntervalIntervalUnit$1;
|
|
394
|
-
count: number;
|
|
395
|
-
}
|
|
396
|
-
interface ProductInstanceCycleNonNullableFields$1 {
|
|
397
|
-
type: CycleDescriptorType$1;
|
|
398
|
-
cycleDuration?: CycleIntervalNonNullableFields$1;
|
|
399
|
-
}
|
|
400
|
-
interface FailureReasonNonNullableFields$1 {
|
|
401
|
-
code: FailureReasonFailureReason$1;
|
|
402
|
-
message: string;
|
|
403
|
-
}
|
|
404
|
-
interface ProductInstanceNonNullableFields$1 {
|
|
405
|
-
billingInfo?: ProductInstanceCycleNonNullableFields$1;
|
|
406
|
-
instanceId: string;
|
|
407
|
-
catalogProductId: string;
|
|
408
|
-
status: Status$1;
|
|
409
|
-
failure?: FailureReasonNonNullableFields$1;
|
|
410
|
-
}
|
|
411
|
-
interface PackageNonNullableFields$1 {
|
|
412
|
-
id: string;
|
|
413
|
-
accountId: string;
|
|
414
|
-
productInstances: ProductInstanceNonNullableFields$1[];
|
|
415
|
-
}
|
|
416
|
-
interface CreatePackageResponseNonNullableFields$1 {
|
|
417
|
-
package?: PackageNonNullableFields$1;
|
|
418
|
-
}
|
|
419
|
-
interface CancelPackageResponseNonNullableFields$1 {
|
|
420
|
-
package?: PackageNonNullableFields$1;
|
|
421
|
-
}
|
|
422
|
-
interface GetPackageResponseNonNullableFields$1 {
|
|
423
|
-
package?: PackageNonNullableFields$1;
|
|
424
|
-
}
|
|
425
|
-
interface QueryPackagesResponseNonNullableFields$1 {
|
|
426
|
-
packages: PackageNonNullableFields$1[];
|
|
427
|
-
}
|
|
428
|
-
interface AssignProductInstanceToSiteResponseNonNullableFields$1 {
|
|
429
|
-
package?: PackageNonNullableFields$1;
|
|
430
|
-
}
|
|
431
|
-
interface UnassignProductInstanceFromSiteResponseNonNullableFields$1 {
|
|
432
|
-
package?: PackageNonNullableFields$1;
|
|
433
|
-
}
|
|
434
|
-
interface CancelProductInstanceResponseNonNullableFields$1 {
|
|
435
|
-
package?: PackageNonNullableFields$1;
|
|
436
|
-
}
|
|
437
|
-
interface AdjustProductInstanceSpecificationsResponseNonNullableFields$1 {
|
|
438
|
-
package?: PackageNonNullableFields$1;
|
|
439
|
-
}
|
|
440
|
-
interface UpdatePackageExternalIdResponseNonNullableFields$1 {
|
|
441
|
-
updatedPackage?: PackageNonNullableFields$1;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* A package is group of instances of Wix services that a reseller offers to a
|
|
446
|
-
* customer as part of a single transaction.
|
|
447
|
-
*/
|
|
448
|
-
interface Package {
|
|
449
|
-
/**
|
|
450
|
-
* Package ID.
|
|
451
|
-
* @readonly
|
|
452
|
-
*/
|
|
453
|
-
_id?: string;
|
|
454
|
-
/**
|
|
455
|
-
* Wix account ID. See
|
|
456
|
-
* [Account Level APIs](https://dev.wix.com/docs/rest/account-level/about-account-level-apis)
|
|
457
|
-
* for more details.
|
|
458
|
-
* @readonly
|
|
459
|
-
*/
|
|
460
|
-
accountId?: string;
|
|
461
|
-
/**
|
|
462
|
-
* External reference. For example, an external subscription ID.
|
|
463
|
-
* This field isn't validated by Wix.
|
|
464
|
-
*
|
|
465
|
-
* Max: 100 characters
|
|
466
|
-
*/
|
|
467
|
-
externalId?: string | null;
|
|
468
|
-
/**
|
|
469
|
-
* Product instances that are included in the package.
|
|
470
|
-
*
|
|
471
|
-
* Min: 1 product instance
|
|
472
|
-
* Max: 1000 product instances
|
|
473
|
-
*/
|
|
474
|
-
productInstances?: ProductInstance[];
|
|
475
|
-
/**
|
|
476
|
-
* Date and time the package was created.
|
|
477
|
-
* @readonly
|
|
478
|
-
*/
|
|
479
|
-
_createdDate?: Date | null;
|
|
480
|
-
/**
|
|
481
|
-
* Date and time the package was last updated.
|
|
482
|
-
* @readonly
|
|
483
|
-
*/
|
|
484
|
-
_updatedDate?: Date | null;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* A product instance is a specific instance of a Wix service that a reseller
|
|
488
|
-
* offers to one of their customers.
|
|
489
|
-
*/
|
|
490
|
-
interface ProductInstance extends ProductInstanceContractDetailsOneOf {
|
|
491
|
-
/** Billing information for the contract between the reseller and Wix. */
|
|
492
|
-
billingInfo?: ProductInstanceCycle;
|
|
493
|
-
/**
|
|
494
|
-
* ID of the instance of the resold Wix service. **Note:** Differs from the
|
|
495
|
-
* `catalogProductId`. Allows you to identify different instances of the same
|
|
496
|
-
* product in a package.
|
|
497
|
-
* @readonly
|
|
498
|
-
*/
|
|
499
|
-
instanceId?: string;
|
|
500
|
-
/**
|
|
501
|
-
* ID of the Wix site that the product instance is assigned to.
|
|
502
|
-
* See the [Query Sites API](https://dev.wix.com/api/rest/account-level-apis/sites/query-sites)
|
|
503
|
-
* for more information.
|
|
504
|
-
*/
|
|
505
|
-
siteId?: string | null;
|
|
506
|
-
/**
|
|
507
|
-
* Product ID, as defined in the Wix Premium Product Catalog.
|
|
508
|
-
* Contact the [Wix B2B sales team](mailto:bizdev@wix.com)
|
|
509
|
-
* for more details about available Wix services.
|
|
510
|
-
*/
|
|
511
|
-
catalogProductId?: string;
|
|
512
|
-
/**
|
|
513
|
-
* Status of the product instance.
|
|
514
|
-
* @readonly
|
|
515
|
-
*/
|
|
516
|
-
status?: Status;
|
|
517
|
-
/**
|
|
518
|
-
* Failure object. Only present for status `FAILED`. Describes why the product instance `FAILED`.
|
|
519
|
-
* @readonly
|
|
520
|
-
*/
|
|
521
|
-
failure?: FailureReason;
|
|
522
|
-
/**
|
|
523
|
-
* Date and time the product instance was created.
|
|
524
|
-
* @readonly
|
|
525
|
-
*/
|
|
526
|
-
_createdDate?: Date | null;
|
|
527
|
-
/**
|
|
528
|
-
* Date and time the product instance was last updated.
|
|
529
|
-
* @readonly
|
|
530
|
-
*/
|
|
531
|
-
_updatedDate?: Date | null;
|
|
532
|
-
/**
|
|
533
|
-
* Two-letter country code in
|
|
534
|
-
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
535
|
-
* format. Specifies where customers can claim vouchers that may come with the
|
|
536
|
-
* product. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) to get more
|
|
537
|
-
* information about vouchers and supported locations.
|
|
538
|
-
*/
|
|
539
|
-
countryCode?: string | null;
|
|
540
|
-
/**
|
|
541
|
-
* Date and time the product instance expires in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
542
|
-
* Used only for instances that don't auto renew at the end of the current billing cycle.
|
|
543
|
-
* @readonly
|
|
544
|
-
*/
|
|
545
|
-
expirationDate?: Date | null;
|
|
546
|
-
/**
|
|
547
|
-
* Discount code indicating that the reseller provisioned the product instance
|
|
548
|
-
* during a sale. Wix doesn't guarantee that a discount code reduces the
|
|
549
|
-
* price between Wix and the reseller, even when it's valid. Contact the
|
|
550
|
-
* [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
551
|
-
*
|
|
552
|
-
* Max: 25 characters
|
|
553
|
-
*/
|
|
554
|
-
discountCode?: string | null;
|
|
555
|
-
/**
|
|
556
|
-
* ID of a different product instance that you can use to offer your customers
|
|
557
|
-
* time-limited free access to an additional product or service. For example,
|
|
558
|
-
* Wix offers a 1-year free domain registration to all customers who purchase a
|
|
559
|
-
* Premium plan. The referenced product instance must have either status `"PENDING"` or
|
|
560
|
-
* `"ACTIVE"`. You can use each product instance only a single time as reference
|
|
561
|
-
* instance.
|
|
562
|
-
*/
|
|
563
|
-
referenceProductInstanceId?: string | null;
|
|
564
|
-
}
|
|
565
|
-
/** @oneof */
|
|
566
|
-
interface ProductInstanceContractDetailsOneOf {
|
|
567
|
-
/** Billing information for the contract between the reseller and Wix. */
|
|
568
|
-
billingInfo?: ProductInstanceCycle;
|
|
569
|
-
}
|
|
570
|
-
declare enum FailureReasonFailureReason {
|
|
571
|
-
UNKNOWN = "UNKNOWN",
|
|
572
|
-
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
573
|
-
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
574
|
-
/** The product instance couldn't be created because an external process failed. */
|
|
575
|
-
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
576
|
-
}
|
|
577
|
-
declare enum IntervalIntervalUnit {
|
|
578
|
-
/** unknown interval unit */
|
|
579
|
-
UNKNOWN = "UNKNOWN",
|
|
580
|
-
/** Day */
|
|
581
|
-
DAY = "DAY",
|
|
582
|
-
/** Week */
|
|
583
|
-
WEEK = "WEEK",
|
|
584
|
-
/** Month */
|
|
585
|
-
MONTH = "MONTH",
|
|
586
|
-
/** Year */
|
|
587
|
-
YEAR = "YEAR"
|
|
588
|
-
}
|
|
589
|
-
declare enum CycleDescriptorType {
|
|
590
|
-
/** The payment type hasn't been set. */
|
|
591
|
-
UNKNOWN = "UNKNOWN",
|
|
592
|
-
/** The reseller pays Wix in a single payment. */
|
|
593
|
-
ONE_TIME = "ONE_TIME",
|
|
594
|
-
/** The reseller pays Wix on a recurring schedule. */
|
|
595
|
-
RECURRING = "RECURRING"
|
|
596
|
-
}
|
|
597
|
-
interface CycleInterval {
|
|
598
|
-
/** Unit of the billing cycle. */
|
|
599
|
-
unit?: IntervalIntervalUnit;
|
|
600
|
-
/** Count of units that make up the billing cycle. */
|
|
601
|
-
count?: number;
|
|
602
|
-
}
|
|
603
|
-
declare enum Status {
|
|
604
|
-
/** The product instance isn't yet available to the customer. */
|
|
605
|
-
PENDING = "PENDING",
|
|
606
|
-
/** The customer can use the product instance. */
|
|
607
|
-
ENABLED = "ENABLED",
|
|
608
|
-
/** The product instance isn't any longer available to the customer. */
|
|
609
|
-
CANCELED = "CANCELED",
|
|
610
|
-
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
611
|
-
FAILED = "FAILED",
|
|
612
|
-
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
613
|
-
AWAITING_ACTION = "AWAITING_ACTION"
|
|
614
|
-
}
|
|
615
|
-
interface FailureReason {
|
|
616
|
-
/** Failure code. */
|
|
617
|
-
code?: FailureReasonFailureReason;
|
|
618
|
-
/** Failure message. */
|
|
619
|
-
message?: string;
|
|
620
|
-
}
|
|
621
|
-
interface ProductInstanceCycle {
|
|
622
|
-
/** Payment type. */
|
|
623
|
-
type?: CycleDescriptorType;
|
|
624
|
-
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
625
|
-
cycleDuration?: CycleInterval;
|
|
626
|
-
}
|
|
627
|
-
interface CreatePackageRequest {
|
|
628
|
-
/** Idempotency key. */
|
|
629
|
-
idempotencyKey?: string | null;
|
|
630
|
-
/** External reference. For example, an external subscription ID. **Note:** This field is not validated by Wix. */
|
|
631
|
-
externalId?: string | null;
|
|
632
|
-
/** Wix services that are resold. */
|
|
633
|
-
products: ProductInstance[];
|
|
634
|
-
}
|
|
635
|
-
interface CreatePackageResponse {
|
|
636
|
-
/** Idempotency key. */
|
|
637
|
-
idempotencyKey?: string | null;
|
|
638
|
-
/** Created package. */
|
|
639
|
-
package?: Package;
|
|
640
|
-
}
|
|
641
|
-
interface CancelPackageRequest {
|
|
642
|
-
/** Idempotency key. */
|
|
643
|
-
idempotencyKey?: string | null;
|
|
644
|
-
/** ID of the package to cancel. */
|
|
645
|
-
_id: string;
|
|
646
|
-
}
|
|
647
|
-
interface CancelPackageResponse {
|
|
648
|
-
/** Idempotency key. */
|
|
649
|
-
idempotencyKey?: string | null;
|
|
650
|
-
/** Canceled package. */
|
|
651
|
-
package?: Package;
|
|
652
|
-
}
|
|
653
|
-
interface GetPackageRequest {
|
|
654
|
-
/** Package ID. */
|
|
655
|
-
_id: string;
|
|
656
|
-
}
|
|
657
|
-
interface GetPackageResponse {
|
|
658
|
-
/** Retrieved package. */
|
|
659
|
-
package?: Package;
|
|
660
|
-
}
|
|
661
|
-
interface QueryPackagesRequest {
|
|
662
|
-
/** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
|
|
663
|
-
query: QueryV2;
|
|
664
|
-
}
|
|
665
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
666
|
-
/** Paging options to limit and skip the number of items. */
|
|
667
|
-
paging?: Paging;
|
|
668
|
-
/** 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`. */
|
|
669
|
-
cursorPaging?: CursorPaging;
|
|
670
|
-
/**
|
|
671
|
-
* Filter object.
|
|
672
|
-
*
|
|
673
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
674
|
-
*/
|
|
675
|
-
filter?: Record<string, any> | null;
|
|
676
|
-
/**
|
|
677
|
-
* Sort object.
|
|
678
|
-
*
|
|
679
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
680
|
-
*/
|
|
681
|
-
sort?: Sorting[];
|
|
682
|
-
/** 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. */
|
|
683
|
-
fields?: string[];
|
|
684
|
-
/** 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. */
|
|
685
|
-
fieldsets?: string[];
|
|
686
|
-
}
|
|
687
|
-
/** @oneof */
|
|
688
|
-
interface QueryV2PagingMethodOneOf {
|
|
689
|
-
/** Paging options to limit and skip the number of items. */
|
|
690
|
-
paging?: Paging;
|
|
691
|
-
/** 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`. */
|
|
692
|
-
cursorPaging?: CursorPaging;
|
|
693
|
-
}
|
|
694
|
-
interface Sorting {
|
|
695
|
-
/** Name of the field to sort by. */
|
|
696
|
-
fieldName?: string;
|
|
697
|
-
/** Sort order. */
|
|
698
|
-
order?: SortOrder;
|
|
699
|
-
}
|
|
700
|
-
declare enum SortOrder {
|
|
701
|
-
ASC = "ASC",
|
|
702
|
-
DESC = "DESC"
|
|
703
|
-
}
|
|
704
|
-
interface Paging {
|
|
705
|
-
/** Number of items to load. */
|
|
706
|
-
limit?: number | null;
|
|
707
|
-
/** Number of items to skip in the current sort order. */
|
|
708
|
-
offset?: number | null;
|
|
709
|
-
}
|
|
710
|
-
interface CursorPaging {
|
|
711
|
-
/** Maximum number of items to return in the results. */
|
|
712
|
-
limit?: number | null;
|
|
713
|
-
/**
|
|
714
|
-
* Pointer to the next or previous page in the list of results.
|
|
715
|
-
*
|
|
716
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
717
|
-
* Not relevant for the first request.
|
|
718
|
-
*/
|
|
719
|
-
cursor?: string | null;
|
|
720
|
-
}
|
|
721
|
-
interface QueryPackagesResponse {
|
|
722
|
-
/** Paging metadata. */
|
|
723
|
-
metadata?: PagingMetadataV2;
|
|
724
|
-
/**
|
|
725
|
-
* Retrieved packages.
|
|
726
|
-
*
|
|
727
|
-
* Max: 1000 packages
|
|
728
|
-
*/
|
|
729
|
-
packages?: Package[];
|
|
730
|
-
}
|
|
731
|
-
interface PagingMetadataV2 {
|
|
732
|
-
/** Number of items returned in the response. */
|
|
733
|
-
count?: number | null;
|
|
734
|
-
/** Offset that was requested. */
|
|
735
|
-
offset?: number | null;
|
|
736
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
737
|
-
total?: number | null;
|
|
738
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
739
|
-
tooManyToCount?: boolean | null;
|
|
740
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
741
|
-
cursors?: Cursors;
|
|
742
|
-
}
|
|
743
|
-
interface Cursors {
|
|
744
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
745
|
-
next?: string | null;
|
|
746
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
747
|
-
prev?: string | null;
|
|
748
|
-
}
|
|
749
|
-
interface AssignProductInstanceToSiteRequest {
|
|
750
|
-
/** Idempotency key. */
|
|
751
|
-
idempotencyKey?: string | null;
|
|
752
|
-
/** ID of the product instance to assign to a site. */
|
|
753
|
-
instanceId: string;
|
|
754
|
-
/** ID of the site to which the product instance is assigned. */
|
|
755
|
-
siteId: string;
|
|
756
|
-
}
|
|
757
|
-
interface AssignProductInstanceToSiteResponse {
|
|
758
|
-
/** Idempotency key. */
|
|
759
|
-
idempotencyKey?: string | null;
|
|
760
|
-
/** Updated package that includes the assigned product instance. */
|
|
761
|
-
package?: Package;
|
|
762
|
-
}
|
|
763
|
-
interface UnassignProductInstanceFromSiteRequest {
|
|
764
|
-
/** Idempotency key. */
|
|
765
|
-
idempotencyKey?: string | null;
|
|
766
|
-
/** ID of the product instance to unassign from a site. */
|
|
767
|
-
instanceId: string;
|
|
768
|
-
}
|
|
769
|
-
interface UnassignProductInstanceFromSiteResponse {
|
|
770
|
-
/** Idempotency key. */
|
|
771
|
-
idempotencyKey?: string | null;
|
|
772
|
-
/** Updated package that includes the unassigned product instance. */
|
|
773
|
-
package?: Package;
|
|
774
|
-
}
|
|
775
|
-
interface CancelProductInstanceRequest {
|
|
776
|
-
/** Idempotency key. */
|
|
777
|
-
idempotencyKey?: string | null;
|
|
778
|
-
/** ID of the product instance to cancel. */
|
|
779
|
-
instanceId: string;
|
|
780
|
-
}
|
|
781
|
-
interface CancelProductInstanceResponse {
|
|
782
|
-
/** Idempotency key. */
|
|
783
|
-
idempotencyKey?: string | null;
|
|
784
|
-
/** Updated package that includes the previously included the canceled product instance. */
|
|
785
|
-
package?: Package;
|
|
786
|
-
}
|
|
787
|
-
interface AdjustProductInstanceSpecificationsRequest {
|
|
788
|
-
/** Idempotency key. */
|
|
789
|
-
idempotencyKey?: string | null;
|
|
790
|
-
/** ID of the product instance to adjust. */
|
|
791
|
-
instanceId: string;
|
|
792
|
-
/**
|
|
793
|
-
* ID of the product to replace the original instance. Required in case you don't
|
|
794
|
-
* provide a new `billingInfo` object.
|
|
795
|
-
*/
|
|
796
|
-
catalogProductId?: string | null;
|
|
797
|
-
/**
|
|
798
|
-
* Information about the billing cycle. Required in case you don't provide a new
|
|
799
|
-
* `catalogProductId`. The new billing cycle must be supported for the service.
|
|
800
|
-
* Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
|
|
801
|
-
* information about a service's supported billing cycles. If
|
|
802
|
-
* you adjust the billing cycle for a product instance with `RECURRING`
|
|
803
|
-
* payments, you must also provide `billingInfo.cycleDuration.unit`.
|
|
804
|
-
*/
|
|
805
|
-
billingInfo?: ProductInstanceCycle;
|
|
806
|
-
/**
|
|
807
|
-
* Discount code indicating that the reseller provisioned the product instance
|
|
808
|
-
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
809
|
-
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
810
|
-
* discount code reduces the price between Wix and the reseller, even when it's
|
|
811
|
-
* valid. You can't add a discount code after you've created the
|
|
812
|
-
* product instance. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
|
|
813
|
-
* more information about supported codes.
|
|
814
|
-
*
|
|
815
|
-
* Max: 25 characters
|
|
816
|
-
*/
|
|
817
|
-
discountCode?: string | null;
|
|
818
|
-
}
|
|
819
|
-
interface AdjustProductInstanceSpecificationsResponse {
|
|
820
|
-
/** Idempotency key. */
|
|
821
|
-
idempotencyKey?: string | null;
|
|
822
|
-
/** Updated package that includes the adjusted product instance. */
|
|
823
|
-
package?: Package;
|
|
824
|
-
}
|
|
825
|
-
interface UpdatePackageExternalIdRequest {
|
|
826
|
-
/** ID of the package to update. */
|
|
827
|
-
packageId: string;
|
|
828
|
-
/** External ID that will be assigned to the package. */
|
|
829
|
-
externalId: string;
|
|
830
|
-
}
|
|
831
|
-
interface UpdatePackageExternalIdResponse {
|
|
832
|
-
/** Updated package. */
|
|
833
|
-
updatedPackage?: Package;
|
|
834
|
-
}
|
|
835
|
-
interface CycleIntervalNonNullableFields {
|
|
836
|
-
unit: IntervalIntervalUnit;
|
|
837
|
-
count: number;
|
|
838
|
-
}
|
|
839
|
-
interface ProductInstanceCycleNonNullableFields {
|
|
840
|
-
type: CycleDescriptorType;
|
|
841
|
-
cycleDuration?: CycleIntervalNonNullableFields;
|
|
842
|
-
}
|
|
843
|
-
interface FailureReasonNonNullableFields {
|
|
844
|
-
code: FailureReasonFailureReason;
|
|
845
|
-
message: string;
|
|
846
|
-
}
|
|
847
|
-
interface ProductInstanceNonNullableFields {
|
|
848
|
-
billingInfo?: ProductInstanceCycleNonNullableFields;
|
|
849
|
-
instanceId: string;
|
|
850
|
-
catalogProductId: string;
|
|
851
|
-
status: Status;
|
|
852
|
-
failure?: FailureReasonNonNullableFields;
|
|
853
|
-
}
|
|
854
|
-
interface PackageNonNullableFields {
|
|
855
|
-
_id: string;
|
|
856
|
-
accountId: string;
|
|
857
|
-
productInstances: ProductInstanceNonNullableFields[];
|
|
858
|
-
}
|
|
859
|
-
interface CreatePackageResponseNonNullableFields {
|
|
860
|
-
package?: PackageNonNullableFields;
|
|
861
|
-
}
|
|
862
|
-
interface CancelPackageResponseNonNullableFields {
|
|
863
|
-
package?: PackageNonNullableFields;
|
|
864
|
-
}
|
|
865
|
-
interface GetPackageResponseNonNullableFields {
|
|
866
|
-
package?: PackageNonNullableFields;
|
|
867
|
-
}
|
|
868
|
-
interface QueryPackagesResponseNonNullableFields {
|
|
869
|
-
packages: PackageNonNullableFields[];
|
|
870
|
-
}
|
|
871
|
-
interface AssignProductInstanceToSiteResponseNonNullableFields {
|
|
872
|
-
package?: PackageNonNullableFields;
|
|
873
|
-
}
|
|
874
|
-
interface UnassignProductInstanceFromSiteResponseNonNullableFields {
|
|
875
|
-
package?: PackageNonNullableFields;
|
|
876
|
-
}
|
|
877
|
-
interface CancelProductInstanceResponseNonNullableFields {
|
|
878
|
-
package?: PackageNonNullableFields;
|
|
879
|
-
}
|
|
880
|
-
interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
|
|
881
|
-
package?: PackageNonNullableFields;
|
|
882
|
-
}
|
|
883
|
-
interface UpdatePackageExternalIdResponseNonNullableFields {
|
|
884
|
-
updatedPackage?: PackageNonNullableFields;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
888
|
-
getUrl: (context: any) => string;
|
|
889
|
-
httpMethod: K;
|
|
890
|
-
path: string;
|
|
891
|
-
pathParams: M;
|
|
892
|
-
__requestType: T;
|
|
893
|
-
__originalRequestType: S;
|
|
894
|
-
__responseType: Q;
|
|
895
|
-
__originalResponseType: R;
|
|
896
|
-
};
|
|
897
|
-
declare function createPackage(): __PublicMethodMetaInfo<'POST', {}, CreatePackageRequest, CreatePackageRequest$1, CreatePackageResponse & CreatePackageResponseNonNullableFields, CreatePackageResponse$1 & CreatePackageResponseNonNullableFields$1>;
|
|
898
|
-
declare function createPackageV2(): __PublicMethodMetaInfo<'POST', {}, CreatePackageRequest, CreatePackageRequest$1, CreatePackageResponse & CreatePackageResponseNonNullableFields, CreatePackageResponse$1 & CreatePackageResponseNonNullableFields$1>;
|
|
899
|
-
declare function cancelPackage(): __PublicMethodMetaInfo<'DELETE', {
|
|
900
|
-
id: string;
|
|
901
|
-
}, CancelPackageRequest, CancelPackageRequest$1, CancelPackageResponse & CancelPackageResponseNonNullableFields, CancelPackageResponse$1 & CancelPackageResponseNonNullableFields$1>;
|
|
902
|
-
declare function getPackage(): __PublicMethodMetaInfo<'GET', {
|
|
903
|
-
id: string;
|
|
904
|
-
}, GetPackageRequest, GetPackageRequest$1, GetPackageResponse & GetPackageResponseNonNullableFields, GetPackageResponse$1 & GetPackageResponseNonNullableFields$1>;
|
|
905
|
-
declare function queryPackages(): __PublicMethodMetaInfo<'POST', {}, QueryPackagesRequest, QueryPackagesRequest$1, QueryPackagesResponse & QueryPackagesResponseNonNullableFields, QueryPackagesResponse$1 & QueryPackagesResponseNonNullableFields$1>;
|
|
906
|
-
declare function assignProductInstanceToSite(): __PublicMethodMetaInfo<'PATCH', {
|
|
907
|
-
instanceId: string;
|
|
908
|
-
siteId: string;
|
|
909
|
-
}, AssignProductInstanceToSiteRequest, AssignProductInstanceToSiteRequest$1, AssignProductInstanceToSiteResponse & AssignProductInstanceToSiteResponseNonNullableFields, AssignProductInstanceToSiteResponse$1 & AssignProductInstanceToSiteResponseNonNullableFields$1>;
|
|
910
|
-
declare function unassignProductInstanceFromSite(): __PublicMethodMetaInfo<'PATCH', {
|
|
911
|
-
instanceId: string;
|
|
912
|
-
}, UnassignProductInstanceFromSiteRequest, UnassignProductInstanceFromSiteRequest$1, UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields, UnassignProductInstanceFromSiteResponse$1 & UnassignProductInstanceFromSiteResponseNonNullableFields$1>;
|
|
913
|
-
declare function cancelProductInstance(): __PublicMethodMetaInfo<'DELETE', {
|
|
914
|
-
instanceId: string;
|
|
915
|
-
}, CancelProductInstanceRequest, CancelProductInstanceRequest$1, CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields, CancelProductInstanceResponse$1 & CancelProductInstanceResponseNonNullableFields$1>;
|
|
916
|
-
declare function adjustProductInstanceSpecifications(): __PublicMethodMetaInfo<'PATCH', {
|
|
917
|
-
instanceId: string;
|
|
918
|
-
}, AdjustProductInstanceSpecificationsRequest, AdjustProductInstanceSpecificationsRequest$1, AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields, AdjustProductInstanceSpecificationsResponse$1 & AdjustProductInstanceSpecificationsResponseNonNullableFields$1>;
|
|
919
|
-
declare function updatePackageExternalId(): __PublicMethodMetaInfo<'PATCH', {
|
|
920
|
-
packageId: string;
|
|
921
|
-
externalId: string;
|
|
922
|
-
}, UpdatePackageExternalIdRequest, UpdatePackageExternalIdRequest$1, UpdatePackageExternalIdResponse & UpdatePackageExternalIdResponseNonNullableFields, UpdatePackageExternalIdResponse$1 & UpdatePackageExternalIdResponseNonNullableFields$1>;
|
|
923
|
-
|
|
924
|
-
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
925
|
-
declare const meta_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
|
|
926
|
-
declare const meta_assignProductInstanceToSite: typeof assignProductInstanceToSite;
|
|
927
|
-
declare const meta_cancelPackage: typeof cancelPackage;
|
|
928
|
-
declare const meta_cancelProductInstance: typeof cancelProductInstance;
|
|
929
|
-
declare const meta_createPackage: typeof createPackage;
|
|
930
|
-
declare const meta_createPackageV2: typeof createPackageV2;
|
|
931
|
-
declare const meta_getPackage: typeof getPackage;
|
|
932
|
-
declare const meta_queryPackages: typeof queryPackages;
|
|
933
|
-
declare const meta_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
|
|
934
|
-
declare const meta_updatePackageExternalId: typeof updatePackageExternalId;
|
|
935
|
-
declare namespace meta {
|
|
936
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, meta_assignProductInstanceToSite as assignProductInstanceToSite, meta_cancelPackage as cancelPackage, meta_cancelProductInstance as cancelProductInstance, meta_createPackage as createPackage, meta_createPackageV2 as createPackageV2, meta_getPackage as getPackage, meta_queryPackages as queryPackages, meta_unassignProductInstanceFromSite as unassignProductInstanceFromSite, meta_updatePackageExternalId as updatePackageExternalId };
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
export { meta as packages };
|