@wix/packages 1.0.0 → 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.0",
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.0"
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": "540c492a9c2506d800dc783fa93b072f4603c83f7d47becbf375a927"
45
+ "falconPackageHash": "5b3500d9d0d292c9b2f10ad6eef07cb687177e9594ab4e08807c6129"
47
46
  }
@@ -39,6 +39,13 @@ interface Package {
39
39
  * @readonly
40
40
  */
41
41
  _updatedDate?: Date;
42
+ /**
43
+ * Revision number of the `Package` object .
44
+ * The `Package` object is only modified when the specified number
45
+ * matches the latest revision.
46
+ * @readonly
47
+ */
48
+ revision?: string | null;
42
49
  }
43
50
  /**
44
51
  * A product instance is a specific instance of a Wix service that a reseller
@@ -315,6 +322,12 @@ interface AdjustProductInstanceSpecificationsResponse {
315
322
  /** Updated package that includes the adjusted product instance. */
316
323
  package?: Package;
317
324
  }
325
+ interface UpdatePackageResponse {
326
+ /** Idempotency Key */
327
+ idempotencyKey?: string | null;
328
+ /** Updated Package */
329
+ package?: Package;
330
+ }
318
331
  interface CreatePackageResponseNonNullableFields {
319
332
  package?: {
320
333
  _id: string;
@@ -491,6 +504,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
491
504
  }[];
492
505
  };
493
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
+ }
494
529
  interface CreatePackageOptions {
495
530
  /** Idempotency key. */
496
531
  idempotencyKey?: string | null;
@@ -560,10 +595,17 @@ interface AdjustProductInstanceSpecificationsOptions {
560
595
  */
561
596
  discountCode?: string | null;
562
597
  }
598
+ interface UpdatePackageOptions {
599
+ /** Idempotency Key */
600
+ idempotencyKey?: string | null;
601
+ /** Updated Package */
602
+ package?: Package;
603
+ }
563
604
 
564
605
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
565
606
  interface HttpClient {
566
607
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
608
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
567
609
  }
568
610
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
569
611
  type HttpResponse<T = any> = {
@@ -586,6 +628,13 @@ type APIMetadata = {
586
628
  };
587
629
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
588
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
+
589
638
  declare function createPackage$1(httpClient: HttpClient): (options?: CreatePackageOptions) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
590
639
  declare function createPackageV2$1(httpClient: HttpClient): (options?: CreatePackageV2Options) => Promise<CreatePackageResponse & CreatePackageResponseNonNullableFields>;
591
640
  declare function cancelPackage$1(httpClient: HttpClient): (_id: string, options?: CancelPackageOptions) => Promise<CancelPackageResponse & CancelPackageResponseNonNullableFields>;
@@ -595,6 +644,7 @@ declare function assignProductInstanceToSite$1(httpClient: HttpClient): (identif
595
644
  declare function unassignProductInstanceFromSite$1(httpClient: HttpClient): (instanceId: string, options?: UnassignProductInstanceFromSiteOptions) => Promise<UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields>;
596
645
  declare function cancelProductInstance$1(httpClient: HttpClient): (instanceId: string, options?: CancelProductInstanceOptions) => Promise<CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields>;
597
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>;
598
648
 
599
649
  declare const createPackage: BuildRESTFunction<typeof createPackage$1>;
600
650
  declare const createPackageV2: BuildRESTFunction<typeof createPackageV2$1>;
@@ -605,6 +655,7 @@ declare const assignProductInstanceToSite: BuildRESTFunction<typeof assignProduc
605
655
  declare const unassignProductInstanceFromSite: BuildRESTFunction<typeof unassignProductInstanceFromSite$1>;
606
656
  declare const cancelProductInstance: BuildRESTFunction<typeof cancelProductInstance$1>;
607
657
  declare const adjustProductInstanceSpecifications: BuildRESTFunction<typeof adjustProductInstanceSpecifications$1>;
658
+ declare const updatePackage: BuildRESTFunction<typeof updatePackage$1>;
608
659
 
609
660
  declare const context_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
610
661
  declare const context_assignProductInstanceToSite: typeof assignProductInstanceToSite;
@@ -615,8 +666,9 @@ declare const context_createPackageV2: typeof createPackageV2;
615
666
  declare const context_getPackage: typeof getPackage;
616
667
  declare const context_queryPackages: typeof queryPackages;
617
668
  declare const context_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
669
+ declare const context_updatePackage: typeof updatePackage;
618
670
  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 };
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 };
620
672
  }
621
673
 
622
674
  export { context as packages };
@@ -39,6 +39,13 @@ interface Package {
39
39
  * @readonly
40
40
  */
41
41
  _updatedDate?: Date;
42
+ /**
43
+ * Revision number of the `Package` object .
44
+ * The `Package` object is only modified when the specified number
45
+ * matches the latest revision.
46
+ * @readonly
47
+ */
48
+ revision?: string | null;
42
49
  }
43
50
  /**
44
51
  * A product instance is a specific instance of a Wix service that a reseller
@@ -1047,6 +1054,9 @@ interface DomainEventBodyOneOf {
1047
1054
  interface EntityCreatedEvent {
1048
1055
  entity?: string;
1049
1056
  }
1057
+ interface RestoreInfo {
1058
+ deletedDate?: Date;
1059
+ }
1050
1060
  interface EntityUpdatedEvent {
1051
1061
  /**
1052
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.
@@ -1121,12 +1131,27 @@ declare enum FieldToUpdate {
1121
1131
  COUNTRY_CODE = "COUNTRY_CODE"
1122
1132
  }
1123
1133
  interface UpdateProductInstanceResponse {
1134
+ /** Updated Product Instance */
1124
1135
  productInstance?: ProductInstance;
1125
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
+ }
1126
1149
  interface CountPackagesRequest {
1150
+ /** Filter on what packages to count */
1127
1151
  filter?: Record<string, any> | null;
1128
1152
  }
1129
1153
  interface CountPackagesResponse {
1154
+ /** Number of packages */
1130
1155
  count?: number;
1131
1156
  }
1132
1157
  interface MessageEnvelope {
@@ -1345,6 +1370,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
1345
1370
  }[];
1346
1371
  };
1347
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
+ }
1348
1395
  interface CreatePackageOptions {
1349
1396
  /** Idempotency key. */
1350
1397
  idempotencyKey?: string | null;
@@ -1414,9 +1461,16 @@ interface AdjustProductInstanceSpecificationsOptions {
1414
1461
  */
1415
1462
  discountCode?: string | null;
1416
1463
  }
1464
+ interface UpdatePackageOptions {
1465
+ /** Idempotency Key */
1466
+ idempotencyKey?: string | null;
1467
+ /** Updated Package */
1468
+ package?: Package;
1469
+ }
1417
1470
 
1418
1471
  interface HttpClient {
1419
1472
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1473
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1420
1474
  }
1421
1475
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1422
1476
  type HttpResponse<T = any> = {
@@ -1438,6 +1492,13 @@ type APIMetadata = {
1438
1492
  packageName?: string;
1439
1493
  };
1440
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
+
1441
1502
  declare const __metadata: {
1442
1503
  PACKAGE_NAME: string;
1443
1504
  };
@@ -1450,6 +1511,7 @@ declare function assignProductInstanceToSite(httpClient: HttpClient): (identifie
1450
1511
  declare function unassignProductInstanceFromSite(httpClient: HttpClient): (instanceId: string, options?: UnassignProductInstanceFromSiteOptions) => Promise<UnassignProductInstanceFromSiteResponse & UnassignProductInstanceFromSiteResponseNonNullableFields>;
1451
1512
  declare function cancelProductInstance(httpClient: HttpClient): (instanceId: string, options?: CancelProductInstanceOptions) => Promise<CancelProductInstanceResponse & CancelProductInstanceResponseNonNullableFields>;
1452
1513
  declare function adjustProductInstanceSpecifications(httpClient: HttpClient): (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions) => Promise<AdjustProductInstanceSpecificationsResponse & AdjustProductInstanceSpecificationsResponseNonNullableFields>;
1514
+ declare function updatePackage(httpClient: HttpClient): (options?: UpdatePackageOptions) => Promise<UpdatePackageResponse & UpdatePackageResponseNonNullableFields>;
1453
1515
 
1454
1516
  type index_d_ActionEvent = ActionEvent;
1455
1517
  type index_d_AdjustProductInstanceSpecificationsOptions = AdjustProductInstanceSpecificationsOptions;
@@ -1549,6 +1611,7 @@ type index_d_ReactivationReasonEnum = ReactivationReasonEnum;
1549
1611
  declare const index_d_ReactivationReasonEnum: typeof ReactivationReasonEnum;
1550
1612
  type index_d_RecurringChargeSucceeded = RecurringChargeSucceeded;
1551
1613
  type index_d_Reschedule = Reschedule;
1614
+ type index_d_RestoreInfo = RestoreInfo;
1552
1615
  type index_d_SortOrder = SortOrder;
1553
1616
  declare const index_d_SortOrder: typeof SortOrder;
1554
1617
  type index_d_Sorting = Sorting;
@@ -1579,6 +1642,10 @@ type index_d_UnassignProductInstanceFromSiteResponseNonNullableFields = Unassign
1579
1642
  type index_d_UnassignReason = UnassignReason;
1580
1643
  declare const index_d_UnassignReason: typeof UnassignReason;
1581
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;
1582
1649
  type index_d_UpdateProductInstanceRequest = UpdateProductInstanceRequest;
1583
1650
  type index_d_UpdateProductInstanceResponse = UpdateProductInstanceResponse;
1584
1651
  type index_d_WebhookIdentityType = WebhookIdentityType;
@@ -1593,8 +1660,9 @@ declare const index_d_createPackageV2: typeof createPackageV2;
1593
1660
  declare const index_d_getPackage: typeof getPackage;
1594
1661
  declare const index_d_queryPackages: typeof queryPackages;
1595
1662
  declare const index_d_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1663
+ declare const index_d_updatePackage: typeof updatePackage;
1596
1664
  declare namespace index_d {
1597
- 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 };
1598
1666
  }
1599
1667
 
1600
1668
  export { index_d as packages };
@@ -39,6 +39,13 @@ interface Package$1 {
39
39
  * @readonly
40
40
  */
41
41
  updatedDate?: Date;
42
+ /**
43
+ * Revision number of the `Package` object .
44
+ * The `Package` object is only modified when the specified number
45
+ * matches the latest revision.
46
+ * @readonly
47
+ */
48
+ revision?: string | null;
42
49
  }
43
50
  /**
44
51
  * A product instance is a specific instance of a Wix service that a reseller
@@ -390,6 +397,18 @@ interface AdjustProductInstanceSpecificationsResponse$1 {
390
397
  /** Updated package that includes the adjusted product instance. */
391
398
  package?: Package$1;
392
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
+ }
393
412
  interface CreatePackageResponseNonNullableFields$1 {
394
413
  package?: {
395
414
  id: string;
@@ -566,6 +585,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields$1 {
566
585
  }[];
567
586
  };
568
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
+ }
569
610
 
570
611
  /**
571
612
  * A package is group of instances of Wix services that a reseller offers to a
@@ -608,6 +649,13 @@ interface Package {
608
649
  * @readonly
609
650
  */
610
651
  _updatedDate?: Date;
652
+ /**
653
+ * Revision number of the `Package` object .
654
+ * The `Package` object is only modified when the specified number
655
+ * matches the latest revision.
656
+ * @readonly
657
+ */
658
+ revision?: string | null;
611
659
  }
612
660
  /**
613
661
  * A product instance is a specific instance of a Wix service that a reseller
@@ -959,6 +1007,18 @@ interface AdjustProductInstanceSpecificationsResponse {
959
1007
  /** Updated package that includes the adjusted product instance. */
960
1008
  package?: Package;
961
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
+ }
962
1022
  interface CreatePackageResponseNonNullableFields {
963
1023
  package?: {
964
1024
  _id: string;
@@ -1135,6 +1195,28 @@ interface AdjustProductInstanceSpecificationsResponseNonNullableFields {
1135
1195
  }[];
1136
1196
  };
1137
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
+ }
1138
1220
 
1139
1221
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1140
1222
  getUrl: (context: any) => string;
@@ -1168,6 +1250,7 @@ declare function cancelProductInstance(): __PublicMethodMetaInfo<'DELETE', {
1168
1250
  declare function adjustProductInstanceSpecifications(): __PublicMethodMetaInfo<'PATCH', {
1169
1251
  instanceId: string;
1170
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>;
1171
1254
 
1172
1255
  type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
1173
1256
  declare const meta_adjustProductInstanceSpecifications: typeof adjustProductInstanceSpecifications;
@@ -1179,8 +1262,9 @@ declare const meta_createPackageV2: typeof createPackageV2;
1179
1262
  declare const meta_getPackage: typeof getPackage;
1180
1263
  declare const meta_queryPackages: typeof queryPackages;
1181
1264
  declare const meta_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1265
+ declare const meta_updatePackage: typeof updatePackage;
1182
1266
  declare namespace meta {
1183
- 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 };
1184
1268
  }
1185
1269
 
1186
1270
  export { meta as packages };