@wix/packages 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/packages",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,10 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/packages_packages": "1.0.1"
21
+ "@wix/packages_packages": "1.0.2"
22
22
  },
23
23
  "devDependencies": {
24
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
25
24
  "glob": "^10.4.1",
26
25
  "rollup": "^4.18.0",
27
26
  "rollup-plugin-dts": "^6.1.1",
@@ -43,5 +42,5 @@
43
42
  "fqdn": ""
44
43
  }
45
44
  },
46
- "falconPackageHash": "fee002c7a51e5b0c8c5f6530efe3c5c5753ec69e68baade44d66e1f5"
45
+ "falconPackageHash": "5b3500d9d0d292c9b2f10ad6eef07cb687177e9594ab4e08807c6129"
47
46
  }
@@ -322,6 +322,12 @@ interface AdjustProductInstanceSpecificationsResponse {
322
322
  /** Updated package that includes the adjusted product instance. */
323
323
  package?: Package;
324
324
  }
325
+ interface UpdatePackageResponse {
326
+ /** Idempotency Key */
327
+ idempotencyKey?: string | null;
328
+ /** Updated Package */
329
+ package?: Package;
330
+ }
325
331
  interface CreatePackageResponseNonNullableFields {
326
332
  package?: {
327
333
  _id: string;
@@ -498,6 +504,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
498
504
  }[];
499
505
  };
500
506
  }
507
+ interface UpdatePackageResponseNonNullableFields {
508
+ package?: {
509
+ _id: string;
510
+ accountId: string;
511
+ productInstances: {
512
+ billingInfo?: {
513
+ type: CycleDescriptorType;
514
+ cycleDuration?: {
515
+ unit: IntervalIntervalUnit;
516
+ count: number;
517
+ };
518
+ };
519
+ instanceId: string;
520
+ catalogProductId: string;
521
+ status: Status;
522
+ failure?: {
523
+ code: FailureReasonFailureReason;
524
+ message: string;
525
+ };
526
+ }[];
527
+ };
528
+ }
501
529
  interface CreatePackageOptions {
502
530
  /** Idempotency key. */
503
531
  idempotencyKey?: string | null;
@@ -567,10 +595,17 @@ interface AdjustProductInstanceSpecificationsOptions {
567
595
  */
568
596
  discountCode?: string | null;
569
597
  }
598
+ interface UpdatePackageOptions {
599
+ /** Idempotency Key */
600
+ idempotencyKey?: string | null;
601
+ /** Updated Package */
602
+ package?: Package;
603
+ }
570
604
 
571
605
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
572
606
  interface HttpClient {
573
607
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
608
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
574
609
  }
575
610
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
576
611
  type HttpResponse<T = any> = {
@@ -593,6 +628,13 @@ type APIMetadata = {
593
628
  };
594
629
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
595
630
 
631
+ declare global {
632
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
633
+ interface SymbolConstructor {
634
+ readonly observable: symbol;
635
+ }
636
+ }
637
+
596
638
  declare function createPackage$1(httpClient: HttpClient): (options?: CreatePackageOptions) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
597
639
  declare function createPackageV2$1(httpClient: HttpClient): (options?: CreatePackageV2Options) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
598
640
  declare function cancelPackage$1(httpClient: HttpClient): (_id: string, options?: CancelPackageOptions) => Promise<CancelPackageResponse & CancelPackageResponseNonNullableFields>;
@@ -602,6 +644,7 @@ declare function assignProductInstanceToSite$1(httpClient: HttpClient): (identif
602
644
  declare function unassignProductInstanceFromSite$1(httpClient: HttpClient): (instanceId: string, options?: UnassignProductInstanceFromSiteOptions) => Promise<UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields>;
603
645
  declare function cancelProductInstance$1(httpClient: HttpClient): (instanceId: string, options?: CancelProductInstanceOptions) => Promise<CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields>;
604
646
  declare function adjustProductInstanceSpecifications$1(httpClient: HttpClient): (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions) => Promise<AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields>;
647
+ declare function updatePackage$1(httpClient: HttpClient): (options?: UpdatePackageOptions) => Promise<UpdatePackageResponse & UpdatePackageResponseNonNullableFields>;
605
648
 
606
649
  declare const createPackage: BuildRESTFunction<typeof createPackage$1>;
607
650
  declare const createPackageV2: BuildRESTFunction<typeof createPackageV2$1>;
@@ -612,6 +655,7 @@ declare const assignProductInstanceToSite: BuildRESTFunction<typeof assignProduc
612
655
  declare const unassignProductInstanceFromSite: BuildRESTFunction<typeof unassignProductInstanceFromSite$1>;
613
656
  declare const cancelProductInstance: BuildRESTFunction<typeof cancelProductInstance$1>;
614
657
  declare const adjustProductInstanceSpecifications: BuildRESTFunction<typeof adjustProductInstanceSpecifications$1>;
658
+ declare const updatePackage: BuildRESTFunction<typeof updatePackage$1>;
615
659
 
616
660
  declare const context_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
617
661
  declare const context_assignProductInstanceToSite: typeof assignProductInstanceToSite;
@@ -622,8 +666,9 @@ declare const context_createPackageV2: typeof createPackageV2;
622
666
  declare const context_getPackage: typeof getPackage;
623
667
  declare const context_queryPackages: typeof queryPackages;
624
668
  declare const context_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
669
+ declare const context_updatePackage: typeof updatePackage;
625
670
  declare namespace context {
626
- 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 };
671
+ 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, context_updatePackage as updatePackage };
627
672
  }
628
673
 
629
674
  export { context as packages };
@@ -1054,6 +1054,9 @@ interface DomainEventBodyOneOf {
1054
1054
  interface EntityCreatedEvent {
1055
1055
  entity?: string;
1056
1056
  }
1057
+ interface RestoreInfo {
1058
+ deletedDate?: Date;
1059
+ }
1057
1060
  interface EntityUpdatedEvent {
1058
1061
  /**
1059
1062
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -1128,12 +1131,27 @@ declare enum FieldToUpdate {
1128
1131
  COUNTRY_CODE = "COUNTRY_CODE"
1129
1132
  }
1130
1133
  interface UpdateProductInstanceResponse {
1134
+ /** Updated Product Instance */
1131
1135
  productInstance?: ProductInstance;
1132
1136
  }
1137
+ interface UpdatePackageRequest {
1138
+ /** Idempotency Key */
1139
+ idempotencyKey?: string | null;
1140
+ /** Updated Package */
1141
+ package?: Package;
1142
+ }
1143
+ interface UpdatePackageResponse {
1144
+ /** Idempotency Key */
1145
+ idempotencyKey?: string | null;
1146
+ /** Updated Package */
1147
+ package?: Package;
1148
+ }
1133
1149
  interface CountPackagesRequest {
1150
+ /** Filter on what packages to count */
1134
1151
  filter?: Record<string, any> | null;
1135
1152
  }
1136
1153
  interface CountPackagesResponse {
1154
+ /** Number of packages */
1137
1155
  count?: number;
1138
1156
  }
1139
1157
  interface MessageEnvelope {
@@ -1352,6 +1370,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
1352
1370
  }[];
1353
1371
  };
1354
1372
  }
1373
+ interface UpdatePackageResponseNonNullableFields {
1374
+ package?: {
1375
+ _id: string;
1376
+ accountId: string;
1377
+ productInstances: {
1378
+ billingInfo?: {
1379
+ type: CycleDescriptorType;
1380
+ cycleDuration?: {
1381
+ unit: IntervalIntervalUnit;
1382
+ count: number;
1383
+ };
1384
+ };
1385
+ instanceId: string;
1386
+ catalogProductId: string;
1387
+ status: Status;
1388
+ failure?: {
1389
+ code: FailureReasonFailureReason;
1390
+ message: string;
1391
+ };
1392
+ }[];
1393
+ };
1394
+ }
1355
1395
  interface CreatePackageOptions {
1356
1396
  /** Idempotency key. */
1357
1397
  idempotencyKey?: string | null;
@@ -1421,9 +1461,16 @@ interface AdjustProductInstanceSpecificationsOptions {
1421
1461
  */
1422
1462
  discountCode?: string | null;
1423
1463
  }
1464
+ interface UpdatePackageOptions {
1465
+ /** Idempotency Key */
1466
+ idempotencyKey?: string | null;
1467
+ /** Updated Package */
1468
+ package?: Package;
1469
+ }
1424
1470
 
1425
1471
  interface HttpClient {
1426
1472
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1473
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1427
1474
  }
1428
1475
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1429
1476
  type HttpResponse<T = any> = {
@@ -1445,6 +1492,13 @@ type APIMetadata = {
1445
1492
  packageName?: string;
1446
1493
  };
1447
1494
 
1495
+ declare global {
1496
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1497
+ interface SymbolConstructor {
1498
+ readonly observable: symbol;
1499
+ }
1500
+ }
1501
+
1448
1502
  declare const __metadata: {
1449
1503
  PACKAGE_NAME: string;
1450
1504
  };
@@ -1457,6 +1511,7 @@ declare function assignProductInstanceToSite(httpClient: HttpClient): (identifie
1457
1511
  declare function unassignProductInstanceFromSite(httpClient: HttpClient): (instanceId: string, options?: UnassignProductInstanceFromSiteOptions) => Promise<UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields>;
1458
1512
  declare function cancelProductInstance(httpClient: HttpClient): (instanceId: string, options?: CancelProductInstanceOptions) => Promise<CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields>;
1459
1513
  declare function adjustProductInstanceSpecifications(httpClient: HttpClient): (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions) => Promise<AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields>;
1514
+ declare function updatePackage(httpClient: HttpClient): (options?: UpdatePackageOptions) => Promise<UpdatePackageResponse & UpdatePackageResponseNonNullableFields>;
1460
1515
 
1461
1516
  type index_d_ActionEvent = ActionEvent;
1462
1517
  type index_d_AdjustProductInstanceSpecificationsOptions = AdjustProductInstanceSpecificationsOptions;
@@ -1556,6 +1611,7 @@ type index_d_ReactivationReasonEnum = ReactivationReasonEnum;
1556
1611
  declare const index_d_ReactivationReasonEnum: typeof ReactivationReasonEnum;
1557
1612
  type index_d_RecurringChargeSucceeded = RecurringChargeSucceeded;
1558
1613
  type index_d_Reschedule = Reschedule;
1614
+ type index_d_RestoreInfo = RestoreInfo;
1559
1615
  type index_d_SortOrder = SortOrder;
1560
1616
  declare const index_d_SortOrder: typeof SortOrder;
1561
1617
  type index_d_Sorting = Sorting;
@@ -1586,6 +1642,10 @@ type index_d_UnassignProductInstanceFromSiteResponseNonNullableFields = Unassign
1586
1642
  type index_d_UnassignReason = UnassignReason;
1587
1643
  declare const index_d_UnassignReason: typeof UnassignReason;
1588
1644
  type index_d_UnassignedProductInstanceFromSite = UnassignedProductInstanceFromSite;
1645
+ type index_d_UpdatePackageOptions = UpdatePackageOptions;
1646
+ type index_d_UpdatePackageRequest = UpdatePackageRequest;
1647
+ type index_d_UpdatePackageResponse = UpdatePackageResponse;
1648
+ type index_d_UpdatePackageResponseNonNullableFields = UpdatePackageResponseNonNullableFields;
1589
1649
  type index_d_UpdateProductInstanceRequest = UpdateProductInstanceRequest;
1590
1650
  type index_d_UpdateProductInstanceResponse = UpdateProductInstanceResponse;
1591
1651
  type index_d_WebhookIdentityType = WebhookIdentityType;
@@ -1600,8 +1660,9 @@ declare const index_d_createPackageV2: typeof createPackageV2;
1600
1660
  declare const index_d_getPackage: typeof getPackage;
1601
1661
  declare const index_d_queryPackages: typeof queryPackages;
1602
1662
  declare const index_d_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1663
+ declare const index_d_updatePackage: typeof updatePackage;
1603
1664
  declare namespace index_d {
1604
- export { type index_d_ActionEvent as ActionEvent, type index_d_AdjustProductInstanceSpecificationsOptions as AdjustProductInstanceSpecificationsOptions, type index_d_AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequest, type index_d_AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponse, type index_d_AdjustProductInstanceSpecificationsResponseNonNullableFields as AdjustProductInstanceSpecificationsResponseNonNullableFields, type index_d_AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecifications, type index_d_AssignProductInstanceToSiteIdentifiers as AssignProductInstanceToSiteIdentifiers, type index_d_AssignProductInstanceToSiteOptions as AssignProductInstanceToSiteOptions, type index_d_AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequest, type index_d_AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponse, type index_d_AssignProductInstanceToSiteResponseNonNullableFields as AssignProductInstanceToSiteResponseNonNullableFields, type index_d_AssignedProductInstanceToSite as AssignedProductInstanceToSite, type index_d_BillingReference as BillingReference, type index_d_Cancel as Cancel, type index_d_CancelPackageOptions as CancelPackageOptions, type index_d_CancelPackageRequest as CancelPackageRequest, type index_d_CancelPackageResponse as CancelPackageResponse, type index_d_CancelPackageResponseNonNullableFields as CancelPackageResponseNonNullableFields, type index_d_CancelProductInstanceOptions as CancelProductInstanceOptions, type index_d_CancelProductInstanceRequest as CancelProductInstanceRequest, type index_d_CancelProductInstanceResponse as CancelProductInstanceResponse, type index_d_CancelProductInstanceResponseNonNullableFields as CancelProductInstanceResponseNonNullableFields, type index_d_CancellationDetails as CancellationDetails, type index_d_Complete as Complete, index_d_ContractSwitchReason as ContractSwitchReason, index_d_ContractSwitchType as ContractSwitchType, type index_d_ContractSwitched as ContractSwitched, type index_d_CountPackagesRequest as CountPackagesRequest, type index_d_CountPackagesResponse as CountPackagesResponse, type index_d_CreatePackageOptions as CreatePackageOptions, type index_d_CreatePackageRequest as CreatePackageRequest, type index_d_CreatePackageResponse as CreatePackageResponse, type index_d_CreatePackageResponseNonNullableFields as CreatePackageResponseNonNullableFields, type index_d_CreatePackageV2Options as CreatePackageV2Options, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_Cycle as Cycle, type index_d_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, index_d_CycleDescriptorType as CycleDescriptorType, type index_d_CycleInterval as CycleInterval, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_FailureReason as FailureReason, index_d_FailureReasonFailureReason as FailureReasonFailureReason, type index_d_FailureReportRequest as FailureReportRequest, index_d_FieldToUpdate as FieldToUpdate, type index_d_GetPackageRequest as GetPackageRequest, type index_d_GetPackageResponse as GetPackageResponse, type index_d_GetPackageResponseNonNullableFields as GetPackageResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_Initiator as Initiator, type index_d_Interval as Interval, index_d_IntervalIntervalUnit as IntervalIntervalUnit, index_d_IntervalUnit as IntervalUnit, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequest, type index_d_MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponse, type index_d_OneTime as OneTime, type index_d_Package as Package, type index_d_PackageCanceled as PackageCanceled, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d_ProductAdjustment as ProductAdjustment, type index_d_ProductInstance as ProductInstance, type index_d_ProductInstanceCanceled as ProductInstanceCanceled, type index_d_ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOf, type index_d_ProductInstanceCycle as ProductInstanceCycle, type index_d_ProductInstanceFailed as ProductInstanceFailed, type index_d_ProductInstanceUpdated as ProductInstanceUpdated, type index_d_ProductPriceIncreaseData as ProductPriceIncreaseData, index_d_ProviderName as ProviderName, type index_d_QueryPackagesRequest as QueryPackagesRequest, type index_d_QueryPackagesResponse as QueryPackagesResponse, type index_d_QueryPackagesResponseNonNullableFields as QueryPackagesResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ReactivationData as ReactivationData, index_d_ReactivationReasonEnum as ReactivationReasonEnum, type index_d_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d_Reschedule as Reschedule, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Status as Status, type index_d_Subscription as Subscription, type index_d_SubscriptionAssigned as SubscriptionAssigned, type index_d_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d_SubscriptionCancelled as SubscriptionCancelled, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d_SubscriptionPendingChange as SubscriptionPendingChange, index_d_SubscriptionStatus as SubscriptionStatus, type index_d_SubscriptionTransferred as SubscriptionTransferred, type index_d_SubscriptionUnassigned as SubscriptionUnassigned, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_UnassignProductInstanceFromSiteOptions as UnassignProductInstanceFromSiteOptions, type index_d_UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequest, type index_d_UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponse, type index_d_UnassignProductInstanceFromSiteResponseNonNullableFields as UnassignProductInstanceFromSiteResponseNonNullableFields, index_d_UnassignReason as UnassignReason, type index_d_UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSite, type index_d_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type index_d_UpdateProductInstanceResponse as UpdateProductInstanceResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, index_d_assignProductInstanceToSite as assignProductInstanceToSite, index_d_cancelPackage as cancelPackage, index_d_cancelProductInstance as cancelProductInstance, index_d_createPackage as createPackage, index_d_createPackageV2 as createPackageV2, index_d_getPackage as getPackage, index_d_queryPackages as queryPackages, index_d_unassignProductInstanceFromSite as unassignProductInstanceFromSite };
1665
+ export { type index_d_ActionEvent as ActionEvent, type index_d_AdjustProductInstanceSpecificationsOptions as AdjustProductInstanceSpecificationsOptions, type index_d_AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequest, type index_d_AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponse, type index_d_AdjustProductInstanceSpecificationsResponseNonNullableFields as AdjustProductInstanceSpecificationsResponseNonNullableFields, type index_d_AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecifications, type index_d_AssignProductInstanceToSiteIdentifiers as AssignProductInstanceToSiteIdentifiers, type index_d_AssignProductInstanceToSiteOptions as AssignProductInstanceToSiteOptions, type index_d_AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequest, type index_d_AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponse, type index_d_AssignProductInstanceToSiteResponseNonNullableFields as AssignProductInstanceToSiteResponseNonNullableFields, type index_d_AssignedProductInstanceToSite as AssignedProductInstanceToSite, type index_d_BillingReference as BillingReference, type index_d_Cancel as Cancel, type index_d_CancelPackageOptions as CancelPackageOptions, type index_d_CancelPackageRequest as CancelPackageRequest, type index_d_CancelPackageResponse as CancelPackageResponse, type index_d_CancelPackageResponseNonNullableFields as CancelPackageResponseNonNullableFields, type index_d_CancelProductInstanceOptions as CancelProductInstanceOptions, type index_d_CancelProductInstanceRequest as CancelProductInstanceRequest, type index_d_CancelProductInstanceResponse as CancelProductInstanceResponse, type index_d_CancelProductInstanceResponseNonNullableFields as CancelProductInstanceResponseNonNullableFields, type index_d_CancellationDetails as CancellationDetails, type index_d_Complete as Complete, index_d_ContractSwitchReason as ContractSwitchReason, index_d_ContractSwitchType as ContractSwitchType, type index_d_ContractSwitched as ContractSwitched, type index_d_CountPackagesRequest as CountPackagesRequest, type index_d_CountPackagesResponse as CountPackagesResponse, type index_d_CreatePackageOptions as CreatePackageOptions, type index_d_CreatePackageRequest as CreatePackageRequest, type index_d_CreatePackageResponse as CreatePackageResponse, type index_d_CreatePackageResponseNonNullableFields as CreatePackageResponseNonNullableFields, type index_d_CreatePackageV2Options as CreatePackageV2Options, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_Cycle as Cycle, type index_d_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, index_d_CycleDescriptorType as CycleDescriptorType, type index_d_CycleInterval as CycleInterval, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_FailureReason as FailureReason, index_d_FailureReasonFailureReason as FailureReasonFailureReason, type index_d_FailureReportRequest as FailureReportRequest, index_d_FieldToUpdate as FieldToUpdate, type index_d_GetPackageRequest as GetPackageRequest, type index_d_GetPackageResponse as GetPackageResponse, type index_d_GetPackageResponseNonNullableFields as GetPackageResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_Initiator as Initiator, type index_d_Interval as Interval, index_d_IntervalIntervalUnit as IntervalIntervalUnit, index_d_IntervalUnit as IntervalUnit, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequest, type index_d_MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponse, type index_d_OneTime as OneTime, type index_d_Package as Package, type index_d_PackageCanceled as PackageCanceled, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d_ProductAdjustment as ProductAdjustment, type index_d_ProductInstance as ProductInstance, type index_d_ProductInstanceCanceled as ProductInstanceCanceled, type index_d_ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOf, type index_d_ProductInstanceCycle as ProductInstanceCycle, type index_d_ProductInstanceFailed as ProductInstanceFailed, type index_d_ProductInstanceUpdated as ProductInstanceUpdated, type index_d_ProductPriceIncreaseData as ProductPriceIncreaseData, index_d_ProviderName as ProviderName, type index_d_QueryPackagesRequest as QueryPackagesRequest, type index_d_QueryPackagesResponse as QueryPackagesResponse, type index_d_QueryPackagesResponseNonNullableFields as QueryPackagesResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ReactivationData as ReactivationData, index_d_ReactivationReasonEnum as ReactivationReasonEnum, type index_d_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d_Reschedule as Reschedule, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Status as Status, type index_d_Subscription as Subscription, type index_d_SubscriptionAssigned as SubscriptionAssigned, type index_d_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d_SubscriptionCancelled as SubscriptionCancelled, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d_SubscriptionPendingChange as SubscriptionPendingChange, index_d_SubscriptionStatus as SubscriptionStatus, type index_d_SubscriptionTransferred as SubscriptionTransferred, type index_d_SubscriptionUnassigned as SubscriptionUnassigned, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_UnassignProductInstanceFromSiteOptions as UnassignProductInstanceFromSiteOptions, type index_d_UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequest, type index_d_UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponse, type index_d_UnassignProductInstanceFromSiteResponseNonNullableFields as UnassignProductInstanceFromSiteResponseNonNullableFields, index_d_UnassignReason as UnassignReason, type index_d_UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSite, type index_d_UpdatePackageOptions as UpdatePackageOptions, type index_d_UpdatePackageRequest as UpdatePackageRequest, type index_d_UpdatePackageResponse as UpdatePackageResponse, type index_d_UpdatePackageResponseNonNullableFields as UpdatePackageResponseNonNullableFields, type index_d_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type index_d_UpdateProductInstanceResponse as UpdateProductInstanceResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_adjustProductInstanceSpecifications as adjustProductInstanceSpecifications, index_d_assignProductInstanceToSite as assignProductInstanceToSite, index_d_cancelPackage as cancelPackage, index_d_cancelProductInstance as cancelProductInstance, index_d_createPackage as createPackage, index_d_createPackageV2 as createPackageV2, index_d_getPackage as getPackage, index_d_queryPackages as queryPackages, index_d_unassignProductInstanceFromSite as unassignProductInstanceFromSite, index_d_updatePackage as updatePackage };
1605
1666
  }
1606
1667
 
1607
1668
  export { index_d as packages };
@@ -397,6 +397,18 @@ interface AdjustProductInstanceSpecificationsResponse$1 {
397
397
  /** Updated package that includes the adjusted product instance. */
398
398
  package?: Package$1;
399
399
  }
400
+ interface UpdatePackageRequest$1 {
401
+ /** Idempotency Key */
402
+ idempotencyKey?: string | null;
403
+ /** Updated Package */
404
+ package?: Package$1;
405
+ }
406
+ interface UpdatePackageResponse$1 {
407
+ /** Idempotency Key */
408
+ idempotencyKey?: string | null;
409
+ /** Updated Package */
410
+ package?: Package$1;
411
+ }
400
412
  interface CreatePackageResponseNonNullableFields$1 {
401
413
  package?: {
402
414
  id: string;
@@ -573,6 +585,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields$1 {
573
585
  }[];
574
586
  };
575
587
  }
588
+ interface UpdatePackageResponseNonNullableFields$1 {
589
+ package?: {
590
+ id: string;
591
+ accountId: string;
592
+ productInstances: {
593
+ billingInfo?: {
594
+ type: CycleDescriptorType$1;
595
+ cycleDuration?: {
596
+ unit: IntervalIntervalUnit$1;
597
+ count: number;
598
+ };
599
+ };
600
+ instanceId: string;
601
+ catalogProductId: string;
602
+ status: Status$1;
603
+ failure?: {
604
+ code: FailureReasonFailureReason$1;
605
+ message: string;
606
+ };
607
+ }[];
608
+ };
609
+ }
576
610
 
577
611
  /**
578
612
  * A package is group of instances of Wix services that a reseller offers to a
@@ -973,6 +1007,18 @@ interface AdjustProductInstanceSpecificationsResponse {
973
1007
  /** Updated package that includes the adjusted product instance. */
974
1008
  package?: Package;
975
1009
  }
1010
+ interface UpdatePackageRequest {
1011
+ /** Idempotency Key */
1012
+ idempotencyKey?: string | null;
1013
+ /** Updated Package */
1014
+ package?: Package;
1015
+ }
1016
+ interface UpdatePackageResponse {
1017
+ /** Idempotency Key */
1018
+ idempotencyKey?: string | null;
1019
+ /** Updated Package */
1020
+ package?: Package;
1021
+ }
976
1022
  interface CreatePackageResponseNonNullableFields {
977
1023
  package?: {
978
1024
  _id: string;
@@ -1149,6 +1195,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
1149
1195
  }[];
1150
1196
  };
1151
1197
  }
1198
+ interface UpdatePackageResponseNonNullableFields {
1199
+ package?: {
1200
+ _id: string;
1201
+ accountId: string;
1202
+ productInstances: {
1203
+ billingInfo?: {
1204
+ type: CycleDescriptorType;
1205
+ cycleDuration?: {
1206
+ unit: IntervalIntervalUnit;
1207
+ count: number;
1208
+ };
1209
+ };
1210
+ instanceId: string;
1211
+ catalogProductId: string;
1212
+ status: Status;
1213
+ failure?: {
1214
+ code: FailureReasonFailureReason;
1215
+ message: string;
1216
+ };
1217
+ }[];
1218
+ };
1219
+ }
1152
1220
 
1153
1221
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1154
1222
  getUrl: (context: any) => string;
@@ -1182,6 +1250,7 @@ declare function cancelProductInstance(): __PublicMethodMetaInfo<'DELETE', {
1182
1250
  declare function adjustProductInstanceSpecifications(): __PublicMethodMetaInfo<'PATCH', {
1183
1251
  instanceId: string;
1184
1252
  }, AdjustProductInstanceSpecificationsRequest, AdjustProductInstanceSpecificationsRequest$1, AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields, AdjustProductInstanceSpecificationsResponse$1 & AdjustProductInstanceSpecificationsResponseNonNullableFields$1>;
1253
+ declare function updatePackage(): __PublicMethodMetaInfo<'POST', {}, UpdatePackageRequest, UpdatePackageRequest$1, UpdatePackageResponse & UpdatePackageResponseNonNullableFields, UpdatePackageResponse$1 & UpdatePackageResponseNonNullableFields$1>;
1185
1254
 
1186
1255
  type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
1187
1256
  declare const meta_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
@@ -1193,8 +1262,9 @@ declare const meta_createPackageV2: typeof createPackageV2;
1193
1262
  declare const meta_getPackage: typeof getPackage;
1194
1263
  declare const meta_queryPackages: typeof queryPackages;
1195
1264
  declare const meta_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1265
+ declare const meta_updatePackage: typeof updatePackage;
1196
1266
  declare namespace meta {
1197
- 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 };
1267
+ 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_updatePackage as updatePackage };
1198
1268
  }
1199
1269
 
1200
1270
  export { meta as packages };