@wix/packages 1.0.0

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.
@@ -0,0 +1,622 @@
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 {
6
+ /**
7
+ * Package ID.
8
+ * @readonly
9
+ */
10
+ _id?: string;
11
+ /**
12
+ * Wix account ID. See
13
+ * [Account Level APIs](https://dev.wix.com/api/rest/account-level-apis/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[];
32
+ /**
33
+ * Date and time the package was created.
34
+ * @readonly
35
+ */
36
+ _createdDate?: Date;
37
+ /**
38
+ * Date and time the package was last updated.
39
+ * @readonly
40
+ */
41
+ _updatedDate?: Date;
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 extends ProductInstanceContractDetailsOneOf {
48
+ /** Billing information for the contract between the reseller and Wix. */
49
+ billingInfo?: ProductInstanceCycle;
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
+ *
72
+ * + `PENDING`: The product instance isn't yet available to the customer.
73
+ * + `ENABLED`: The customer can use the product instance.
74
+ * + `CANCELED`: The product instance isn't any longer available to the customer.
75
+ * + `FAILED`: The product instance couldn't be delivered successfully and has never been available to the customer.
76
+ * + `AWAITING_ACTION`: The product instance isn't yet available to the customer, because an external provider or the customer must take an action.
77
+ * @readonly
78
+ */
79
+ status?: Status;
80
+ /**
81
+ * Failure object. Only present for status `FAILED`. Describes why the product instance `FAILED`.
82
+ * @readonly
83
+ */
84
+ failure?: FailureReason;
85
+ /**
86
+ * Date and time the product instance was created.
87
+ * @readonly
88
+ */
89
+ _createdDate?: Date;
90
+ /**
91
+ * Date and time the product instance was last updated.
92
+ * @readonly
93
+ */
94
+ _updatedDate?: Date;
95
+ /**
96
+ * Two-letter country code in
97
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
98
+ * format. Specifies where customers can claim vouchers that may come with the
99
+ * product. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) to get more
100
+ * information about vouchers and supported locations.
101
+ */
102
+ countryCode?: string | null;
103
+ /**
104
+ * Date and time the product instance expires in `YYYY-MM-DDThh:mm:ss.sssZ` format.
105
+ * Used only for instances that don't auto renew at the end of the current billing cycle.
106
+ * @readonly
107
+ */
108
+ expirationDate?: Date;
109
+ /**
110
+ * Discount code indicating that the reseller provisioned the product instance
111
+ * during a sale. Wix doesn't guarantee that a discount code reduces the
112
+ * price between Wix and the reseller, even when it's valid. Contact the
113
+ * [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
114
+ *
115
+ * Max: 25 characters
116
+ */
117
+ discountCode?: string | null;
118
+ /**
119
+ * ID of a different product instance that you can use to offer your customers
120
+ * time-limited free access to an additional product or service. For example,
121
+ * Wix offers a 1-year free domain registration to all customers who purchase a
122
+ * Premium plan. The referenced product instance must have either status `"PENDING"` or
123
+ * `"ACTIVE"`. You can use each product instance only a single time as reference
124
+ * instance.
125
+ */
126
+ referenceProductInstanceId?: string | null;
127
+ }
128
+ /** @oneof */
129
+ interface ProductInstanceContractDetailsOneOf {
130
+ /** Billing information for the contract between the reseller and Wix. */
131
+ billingInfo?: ProductInstanceCycle;
132
+ }
133
+ declare enum FailureReasonFailureReason {
134
+ UNKNOWN = "UNKNOWN",
135
+ /** The delivery of the product took too long */
136
+ DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
137
+ /** An external process failed */
138
+ EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
139
+ }
140
+ declare enum IntervalIntervalUnit {
141
+ /** unknown interval unit */
142
+ UNKNOWN = "UNKNOWN",
143
+ /** day */
144
+ DAY = "DAY",
145
+ /** week */
146
+ WEEK = "WEEK",
147
+ /** month */
148
+ MONTH = "MONTH",
149
+ /** year */
150
+ YEAR = "YEAR"
151
+ }
152
+ declare enum CycleDescriptorType {
153
+ UNKNOWN = "UNKNOWN",
154
+ ONE_TIME = "ONE_TIME",
155
+ RECURRING = "RECURRING"
156
+ }
157
+ interface CycleInterval {
158
+ /** Unit of the billing cycle. */
159
+ unit?: IntervalIntervalUnit;
160
+ /** Count of units that make up the billing cycle. */
161
+ count?: number;
162
+ }
163
+ declare enum Status {
164
+ PENDING = "PENDING",
165
+ ENABLED = "ENABLED",
166
+ CANCELED = "CANCELED",
167
+ FAILED = "FAILED",
168
+ AWAITING_ACTION = "AWAITING_ACTION"
169
+ }
170
+ interface FailureReason {
171
+ /**
172
+ * Failure code.
173
+ *
174
+ * + `DELIVERY_TIMEOUT`: The product instance couldn't be created because the Resellers API timed out.
175
+ * + `EXTERNAL_FAILURE`: The product instance couldn't be created because an external process failed. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
176
+ */
177
+ code?: FailureReasonFailureReason;
178
+ /** Failure message. */
179
+ message?: string;
180
+ }
181
+ interface ProductInstanceCycle {
182
+ /**
183
+ * Payment type.
184
+ * + `UNKNOWN`: The payment type hasn't been set.
185
+ * + `ONE_TIME`: The reseller pays Wix in a single payment.
186
+ * + `RECURRING`: The reseller pays Wix on a recurring schedule.
187
+ */
188
+ type?: CycleDescriptorType;
189
+ /** Duration of the billing cycle. Available only for `RECURRING` payments. */
190
+ cycleDuration?: CycleInterval;
191
+ }
192
+ interface CreatePackageResponse {
193
+ /** Idempotency key. */
194
+ idempotencyKey?: string | null;
195
+ /** Created package. */
196
+ package?: Package;
197
+ }
198
+ interface CancelPackageResponse {
199
+ /** Idempotency key. */
200
+ idempotencyKey?: string | null;
201
+ /** Canceled package. */
202
+ package?: Package;
203
+ }
204
+ interface GetPackageResponse {
205
+ /** Retrieved package. */
206
+ package?: Package;
207
+ }
208
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
209
+ /** Paging options to limit and skip the number of items. */
210
+ paging?: Paging;
211
+ /** 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`. */
212
+ cursorPaging?: CursorPaging;
213
+ /**
214
+ * Filter object in the following format:
215
+ * `"filter" : {
216
+ * "fieldName1": "value1",
217
+ * "fieldName2":{"$operator":"value2"}
218
+ * }`
219
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
220
+ */
221
+ filter?: Record<string, any> | null;
222
+ /**
223
+ * Sort object in the following format:
224
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
225
+ */
226
+ sort?: Sorting[];
227
+ /** 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. */
228
+ fields?: string[];
229
+ /** 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. */
230
+ fieldsets?: string[];
231
+ }
232
+ /** @oneof */
233
+ interface QueryV2PagingMethodOneOf {
234
+ /** Paging options to limit and skip the number of items. */
235
+ paging?: Paging;
236
+ /** 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`. */
237
+ cursorPaging?: CursorPaging;
238
+ }
239
+ interface Sorting {
240
+ /** Name of the field to sort by. */
241
+ fieldName?: string;
242
+ /** Sort order. */
243
+ order?: SortOrder;
244
+ }
245
+ declare enum SortOrder {
246
+ ASC = "ASC",
247
+ DESC = "DESC"
248
+ }
249
+ interface Paging {
250
+ /** Number of items to load. */
251
+ limit?: number | null;
252
+ /** Number of items to skip in the current sort order. */
253
+ offset?: number | null;
254
+ }
255
+ interface CursorPaging {
256
+ /** Maximum number of items to return in the results. */
257
+ limit?: number | null;
258
+ /**
259
+ * Pointer to the next or previous page in the list of results.
260
+ *
261
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
262
+ * Not relevant for the first request.
263
+ */
264
+ cursor?: string | null;
265
+ }
266
+ interface QueryPackagesResponse {
267
+ /** Paging metadata. */
268
+ metadata?: PagingMetadataV2;
269
+ /**
270
+ * Retrieved packages.
271
+ *
272
+ * Max: 1000 packages
273
+ */
274
+ packages?: Package[];
275
+ }
276
+ interface PagingMetadataV2 {
277
+ /** Number of items returned in the response. */
278
+ count?: number | null;
279
+ /** Offset that was requested. */
280
+ offset?: number | null;
281
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
282
+ total?: number | null;
283
+ /** Flag that indicates the server failed to calculate the `total` field. */
284
+ tooManyToCount?: boolean | null;
285
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
286
+ cursors?: Cursors;
287
+ }
288
+ interface Cursors {
289
+ /** Cursor string pointing to the next page in the list of results. */
290
+ next?: string | null;
291
+ /** Cursor pointing to the previous page in the list of results. */
292
+ prev?: string | null;
293
+ }
294
+ interface AssignProductInstanceToSiteResponse {
295
+ /** Idempotency key. */
296
+ idempotencyKey?: string | null;
297
+ /** Updated package that includes the assigned product instance. */
298
+ package?: Package;
299
+ }
300
+ interface UnassignProductInstanceFromSiteResponse {
301
+ /** Idempotency key. */
302
+ idempotencyKey?: string | null;
303
+ /** Updated package that includes the unassigned product instance. */
304
+ package?: Package;
305
+ }
306
+ interface CancelProductInstanceResponse {
307
+ /** Idempotency key. */
308
+ idempotencyKey?: string | null;
309
+ /** Updated package that includes the previously included the canceled product instance. */
310
+ package?: Package;
311
+ }
312
+ interface AdjustProductInstanceSpecificationsResponse {
313
+ /** Idempotency key. */
314
+ idempotencyKey?: string | null;
315
+ /** Updated package that includes the adjusted product instance. */
316
+ package?: Package;
317
+ }
318
+ interface CreatePackageResponseNonNullableFields {
319
+ package?: {
320
+ _id: string;
321
+ accountId: string;
322
+ productInstances: {
323
+ billingInfo?: {
324
+ type: CycleDescriptorType;
325
+ cycleDuration?: {
326
+ unit: IntervalIntervalUnit;
327
+ count: number;
328
+ };
329
+ };
330
+ instanceId: string;
331
+ catalogProductId: string;
332
+ status: Status;
333
+ failure?: {
334
+ code: FailureReasonFailureReason;
335
+ message: string;
336
+ };
337
+ }[];
338
+ };
339
+ }
340
+ interface CancelPackageResponseNonNullableFields {
341
+ package?: {
342
+ _id: string;
343
+ accountId: string;
344
+ productInstances: {
345
+ billingInfo?: {
346
+ type: CycleDescriptorType;
347
+ cycleDuration?: {
348
+ unit: IntervalIntervalUnit;
349
+ count: number;
350
+ };
351
+ };
352
+ instanceId: string;
353
+ catalogProductId: string;
354
+ status: Status;
355
+ failure?: {
356
+ code: FailureReasonFailureReason;
357
+ message: string;
358
+ };
359
+ }[];
360
+ };
361
+ }
362
+ interface GetPackageResponseNonNullableFields {
363
+ package?: {
364
+ _id: string;
365
+ accountId: string;
366
+ productInstances: {
367
+ billingInfo?: {
368
+ type: CycleDescriptorType;
369
+ cycleDuration?: {
370
+ unit: IntervalIntervalUnit;
371
+ count: number;
372
+ };
373
+ };
374
+ instanceId: string;
375
+ catalogProductId: string;
376
+ status: Status;
377
+ failure?: {
378
+ code: FailureReasonFailureReason;
379
+ message: string;
380
+ };
381
+ }[];
382
+ };
383
+ }
384
+ interface QueryPackagesResponseNonNullableFields {
385
+ packages: {
386
+ _id: string;
387
+ accountId: string;
388
+ productInstances: {
389
+ billingInfo?: {
390
+ type: CycleDescriptorType;
391
+ cycleDuration?: {
392
+ unit: IntervalIntervalUnit;
393
+ count: number;
394
+ };
395
+ };
396
+ instanceId: string;
397
+ catalogProductId: string;
398
+ status: Status;
399
+ failure?: {
400
+ code: FailureReasonFailureReason;
401
+ message: string;
402
+ };
403
+ }[];
404
+ }[];
405
+ }
406
+ interface AssignProductInstanceToSiteResponseNonNullableFields {
407
+ package?: {
408
+ _id: string;
409
+ accountId: string;
410
+ productInstances: {
411
+ billingInfo?: {
412
+ type: CycleDescriptorType;
413
+ cycleDuration?: {
414
+ unit: IntervalIntervalUnit;
415
+ count: number;
416
+ };
417
+ };
418
+ instanceId: string;
419
+ catalogProductId: string;
420
+ status: Status;
421
+ failure?: {
422
+ code: FailureReasonFailureReason;
423
+ message: string;
424
+ };
425
+ }[];
426
+ };
427
+ }
428
+ interface UnassignProductInstanceFromSiteResponseNonNullableFields {
429
+ package?: {
430
+ _id: string;
431
+ accountId: string;
432
+ productInstances: {
433
+ billingInfo?: {
434
+ type: CycleDescriptorType;
435
+ cycleDuration?: {
436
+ unit: IntervalIntervalUnit;
437
+ count: number;
438
+ };
439
+ };
440
+ instanceId: string;
441
+ catalogProductId: string;
442
+ status: Status;
443
+ failure?: {
444
+ code: FailureReasonFailureReason;
445
+ message: string;
446
+ };
447
+ }[];
448
+ };
449
+ }
450
+ interface CancelProductInstanceResponseNonNullableFields {
451
+ package?: {
452
+ _id: string;
453
+ accountId: string;
454
+ productInstances: {
455
+ billingInfo?: {
456
+ type: CycleDescriptorType;
457
+ cycleDuration?: {
458
+ unit: IntervalIntervalUnit;
459
+ count: number;
460
+ };
461
+ };
462
+ instanceId: string;
463
+ catalogProductId: string;
464
+ status: Status;
465
+ failure?: {
466
+ code: FailureReasonFailureReason;
467
+ message: string;
468
+ };
469
+ }[];
470
+ };
471
+ }
472
+ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
473
+ package?: {
474
+ _id: string;
475
+ accountId: string;
476
+ productInstances: {
477
+ billingInfo?: {
478
+ type: CycleDescriptorType;
479
+ cycleDuration?: {
480
+ unit: IntervalIntervalUnit;
481
+ count: number;
482
+ };
483
+ };
484
+ instanceId: string;
485
+ catalogProductId: string;
486
+ status: Status;
487
+ failure?: {
488
+ code: FailureReasonFailureReason;
489
+ message: string;
490
+ };
491
+ }[];
492
+ };
493
+ }
494
+ interface CreatePackageOptions {
495
+ /** Idempotency key. */
496
+ idempotencyKey?: string | null;
497
+ /** External reference. For example, an external subscription ID. **Note:** This field is not validated by Wix. */
498
+ externalId?: string | null;
499
+ /** Wix services that are resold. */
500
+ products: ProductInstance[];
501
+ }
502
+ interface CreatePackageV2Options {
503
+ /** Idempotency key. */
504
+ idempotencyKey?: string | null;
505
+ /** External reference. For example, an external subscription ID. **Note:** This field is not validated by Wix. */
506
+ externalId?: string | null;
507
+ /** Wix services that are resold. */
508
+ products: ProductInstance[];
509
+ }
510
+ interface CancelPackageOptions {
511
+ /** Idempotency key. */
512
+ idempotencyKey?: string | null;
513
+ }
514
+ interface AssignProductInstanceToSiteIdentifiers {
515
+ /** ID of the product instance to assign to a site. */
516
+ instanceId: string;
517
+ /** ID of the site to which the product instance is assigned. */
518
+ siteId: string;
519
+ }
520
+ interface AssignProductInstanceToSiteOptions {
521
+ /** Idempotency key. */
522
+ idempotencyKey?: string | null;
523
+ }
524
+ interface UnassignProductInstanceFromSiteOptions {
525
+ /** Idempotency key. */
526
+ idempotencyKey?: string | null;
527
+ }
528
+ interface CancelProductInstanceOptions {
529
+ /** Idempotency key. */
530
+ idempotencyKey?: string | null;
531
+ }
532
+ interface AdjustProductInstanceSpecificationsOptions {
533
+ /** Idempotency key. */
534
+ idempotencyKey?: string | null;
535
+ /**
536
+ * ID of the product to replace the original instance. Required in case you don't
537
+ * provide a new `billingInfo` object.
538
+ */
539
+ catalogProductId?: string | null;
540
+ /**
541
+ * Information about the billing cycle. Required in case you don't provide a new
542
+ * `catalogProductId`. The new billing cycle must be supported for the service.
543
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
544
+ * information about a service's supported billing cycles. If
545
+ * you adjust the billing cycle for a product instance with `RECURRING`
546
+ * payments, you must also provide `billingInfo.cycleDuration.unit`.
547
+ */
548
+ billingInfo?: ProductInstanceCycle;
549
+ /**
550
+ * Discount code indicating that the reseller provisioned the product instance
551
+ * during a sale. Ignored when you don't pass a new `catalogProductId` as well.
552
+ * In case you pass a code that isn't valid, the call succeeds and
553
+ * no discount is applied to the product instance. Wix doesn't guarantee that a
554
+ * discount code reduces the price between Wix and the reseller, even when it's
555
+ * valid. You can't add a discount code after you've created the
556
+ * product instance. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for
557
+ * more information about supported codes.
558
+ *
559
+ * Max: 25 characters
560
+ */
561
+ discountCode?: string | null;
562
+ }
563
+
564
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
565
+ interface HttpClient {
566
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
567
+ }
568
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
569
+ type HttpResponse<T = any> = {
570
+ data: T;
571
+ status: number;
572
+ statusText: string;
573
+ headers: any;
574
+ request?: any;
575
+ };
576
+ type RequestOptions<_TResponse = any, Data = any> = {
577
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
578
+ url: string;
579
+ data?: Data;
580
+ params?: URLSearchParams;
581
+ } & APIMetadata;
582
+ type APIMetadata = {
583
+ methodFqn?: string;
584
+ entityFqdn?: string;
585
+ packageName?: string;
586
+ };
587
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
588
+
589
+ declare function createPackage$1(httpClient: HttpClient): (options?: CreatePackageOptions) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
590
+ declare function createPackageV2$1(httpClient: HttpClient): (options?: CreatePackageV2Options) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
591
+ declare function cancelPackage$1(httpClient: HttpClient): (_id: string, options?: CancelPackageOptions) => Promise<CancelPackageResponse & CancelPackageResponseNonNullableFields>;
592
+ declare function getPackage$1(httpClient: HttpClient): (_id: string) => Promise<GetPackageResponse & GetPackageResponseNonNullableFields>;
593
+ declare function queryPackages$1(httpClient: HttpClient): (query: QueryV2) => Promise<QueryPackagesResponse & QueryPackagesResponseNonNullableFields>;
594
+ declare function assignProductInstanceToSite$1(httpClient: HttpClient): (identifiers: AssignProductInstanceToSiteIdentifiers, options?: AssignProductInstanceToSiteOptions) => Promise<AssignProductInstanceToSiteResponse & AssignProductInstanceToSiteResponseNonNullableFields>;
595
+ declare function unassignProductInstanceFromSite$1(httpClient: HttpClient): (instanceId: string, options?: UnassignProductInstanceFromSiteOptions) => Promise<UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields>;
596
+ declare function cancelProductInstance$1(httpClient: HttpClient): (instanceId: string, options?: CancelProductInstanceOptions) => Promise<CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields>;
597
+ declare function adjustProductInstanceSpecifications$1(httpClient: HttpClient): (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions) => Promise<AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields>;
598
+
599
+ declare const createPackage: BuildRESTFunction<typeof createPackage$1>;
600
+ declare const createPackageV2: BuildRESTFunction<typeof createPackageV2$1>;
601
+ declare const cancelPackage: BuildRESTFunction<typeof cancelPackage$1>;
602
+ declare const getPackage: BuildRESTFunction<typeof getPackage$1>;
603
+ declare const queryPackages: BuildRESTFunction<typeof queryPackages$1>;
604
+ declare const assignProductInstanceToSite: BuildRESTFunction<typeof assignProductInstanceToSite$1>;
605
+ declare const unassignProductInstanceFromSite: BuildRESTFunction<typeof unassignProductInstanceFromSite$1>;
606
+ declare const cancelProductInstance: BuildRESTFunction<typeof cancelProductInstance$1>;
607
+ declare const adjustProductInstanceSpecifications: BuildRESTFunction<typeof adjustProductInstanceSpecifications$1>;
608
+
609
+ declare const context_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
610
+ declare const context_assignProductInstanceToSite: typeof assignProductInstanceToSite;
611
+ declare const context_cancelPackage: typeof cancelPackage;
612
+ declare const context_cancelProductInstance: typeof cancelProductInstance;
613
+ declare const context_createPackage: typeof createPackage;
614
+ declare const context_createPackageV2: typeof createPackageV2;
615
+ declare const context_getPackage: typeof getPackage;
616
+ declare const context_queryPackages: typeof queryPackages;
617
+ declare const context_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
618
+ declare namespace context {
619
+ export { context_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, context_assignProductInstanceToSite as assignProductInstanceToSite, context_cancelPackage as cancelPackage, context_cancelProductInstance as cancelProductInstance, context_createPackage as createPackage, context_createPackageV2 as createPackageV2, context_getPackage as getPackage, context_queryPackages as queryPackages, context_unassignProductInstanceFromSite as unassignProductInstanceFromSite };
620
+ }
621
+
622
+ export { context as packages };