@wix/packages 1.0.11 → 1.0.13

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.
@@ -25,4 +25,3 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.packages = void 0;
27
27
  exports.packages = __importStar(require("@wix/packages_packages/context"));
28
- //# sourceMappingURL=context.js.map
@@ -26,4 +26,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.packages = void 0;
27
27
  const packages = __importStar(require("@wix/packages_packages"));
28
28
  exports.packages = packages;
29
- //# sourceMappingURL=index.js.map
package/build/cjs/meta.js CHANGED
@@ -25,4 +25,3 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.packages = void 0;
27
27
  exports.packages = __importStar(require("@wix/packages_packages/meta"));
28
- //# sourceMappingURL=meta.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/packages",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/packages_packages": "1.0.11"
21
+ "@wix/packages_packages": "1.0.13"
22
22
  },
23
23
  "devDependencies": {
24
24
  "glob": "^10.4.1",
@@ -43,5 +43,5 @@
43
43
  "fqdn": ""
44
44
  }
45
45
  },
46
- "falconPackageHash": "8a3165c1dc4a72564b49210b90c58373171f6805b68dab07b5844e4e"
46
+ "falconPackageHash": "eb5c544b49ab717d87eb8563a14ad30be2f179273a1f43e4d5f5fc28"
47
47
  }
@@ -1288,6 +1288,31 @@ interface CancelPackageOptions {
1288
1288
  /** Idempotency key. */
1289
1289
  idempotencyKey?: string | null;
1290
1290
  }
1291
+ interface QueryCursorResult {
1292
+ cursors: Cursors;
1293
+ hasNext: () => boolean;
1294
+ hasPrev: () => boolean;
1295
+ length: number;
1296
+ pageSize: number;
1297
+ }
1298
+ interface PackagesQueryResult extends QueryCursorResult {
1299
+ items: Package[];
1300
+ query: PackagesQueryBuilder;
1301
+ next: () => Promise<PackagesQueryResult>;
1302
+ prev: () => Promise<PackagesQueryResult>;
1303
+ }
1304
+ interface PackagesQueryBuilder {
1305
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1306
+ * @documentationMaturity preview
1307
+ */
1308
+ limit: (limit: number) => PackagesQueryBuilder;
1309
+ /** @param cursor - A pointer to specific record
1310
+ * @documentationMaturity preview
1311
+ */
1312
+ skipTo: (cursor: string) => PackagesQueryBuilder;
1313
+ /** @documentationMaturity preview */
1314
+ find: () => Promise<PackagesQueryResult>;
1315
+ }
1291
1316
  interface AssignProductInstanceToSiteIdentifiers {
1292
1317
  /** ID of the product instance to assign to a site. */
1293
1318
  instanceId: string;
@@ -1439,8 +1464,9 @@ interface GetPackageSignature {
1439
1464
  * > **Important**: This call requires an account level API key and cannot be
1440
1465
  * > authenticated with the standard authorization header.
1441
1466
  * @param - Package ID.
1467
+ * @returns Retrieved package.
1442
1468
  */
1443
- (_id: string): Promise<GetPackageResponse & GetPackageResponseNonNullableFields>;
1469
+ (_id: string): Promise<Package & PackageNonNullableFields>;
1444
1470
  }
1445
1471
  declare function queryPackages$1(httpClient: HttpClient): QueryPackagesSignature;
1446
1472
  interface QueryPackagesSignature {
@@ -1492,9 +1518,8 @@ interface QueryPackagesSignature {
1492
1518
  *
1493
1519
  * > **Important**: This call requires an account level API key and cannot be
1494
1520
  * > authenticated with the standard authorization header.
1495
- * @param - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
1496
1521
  */
1497
- (query: QueryV2): Promise<QueryPackagesResponse & QueryPackagesResponseNonNullableFields>;
1522
+ (): PackagesQueryBuilder;
1498
1523
  }
1499
1524
  declare function assignProductInstanceToSite$1(httpClient: HttpClient): AssignProductInstanceToSiteSignature;
1500
1525
  interface AssignProductInstanceToSiteSignature {
@@ -1685,6 +1710,9 @@ type context_MigrateSubscriptionToPackagesResponse = MigrateSubscriptionToPackag
1685
1710
  type context_OneTime = OneTime;
1686
1711
  type context_Package = Package;
1687
1712
  type context_PackageCanceled = PackageCanceled;
1713
+ type context_PackageNonNullableFields = PackageNonNullableFields;
1714
+ type context_PackagesQueryBuilder = PackagesQueryBuilder;
1715
+ type context_PackagesQueryResult = PackagesQueryResult;
1688
1716
  type context_Paging = Paging;
1689
1717
  type context_PagingMetadataV2 = PagingMetadataV2;
1690
1718
  type context_PriceIncreaseTrigger = PriceIncreaseTrigger;
@@ -1760,7 +1788,7 @@ declare const context_queryPackages: typeof queryPackages;
1760
1788
  declare const context_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1761
1789
  declare const context_updatePackageExternalId: typeof updatePackageExternalId;
1762
1790
  declare namespace context {
1763
- export { type context_ActionEvent as ActionEvent, type context_AdjustProductInstanceSpecificationsOptions as AdjustProductInstanceSpecificationsOptions, type context_AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequest, type context_AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponse, type context_AdjustProductInstanceSpecificationsResponseNonNullableFields as AdjustProductInstanceSpecificationsResponseNonNullableFields, type context_AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecifications, type context_AssignProductInstanceToSiteIdentifiers as AssignProductInstanceToSiteIdentifiers, type context_AssignProductInstanceToSiteOptions as AssignProductInstanceToSiteOptions, type context_AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequest, type context_AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponse, type context_AssignProductInstanceToSiteResponseNonNullableFields as AssignProductInstanceToSiteResponseNonNullableFields, type context_AssignedProductInstanceToSite as AssignedProductInstanceToSite, type context_BillingReference as BillingReference, type context_Cancel as Cancel, type context_CancelPackageOptions as CancelPackageOptions, type context_CancelPackageRequest as CancelPackageRequest, type context_CancelPackageResponse as CancelPackageResponse, type context_CancelPackageResponseNonNullableFields as CancelPackageResponseNonNullableFields, type context_CancelProductInstanceOptions as CancelProductInstanceOptions, type context_CancelProductInstanceRequest as CancelProductInstanceRequest, type context_CancelProductInstanceResponse as CancelProductInstanceResponse, type context_CancelProductInstanceResponseNonNullableFields as CancelProductInstanceResponseNonNullableFields, type context_CancellationDetails as CancellationDetails, type context_Complete as Complete, context_ContractSwitchReason as ContractSwitchReason, context_ContractSwitchType as ContractSwitchType, type context_ContractSwitched as ContractSwitched, type context_CountPackagesRequest as CountPackagesRequest, type context_CountPackagesResponse as CountPackagesResponse, type context_CreatePackageOptions as CreatePackageOptions, type context_CreatePackageRequest as CreatePackageRequest, type context_CreatePackageResponse as CreatePackageResponse, type context_CreatePackageResponseNonNullableFields as CreatePackageResponseNonNullableFields, type context_CreatePackageV2Options as CreatePackageV2Options, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_Cycle as Cycle, type context_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, context_CycleDescriptorType as CycleDescriptorType, type context_CycleInterval as CycleInterval, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_FailureReason as FailureReason, context_FailureReasonFailureReason as FailureReasonFailureReason, type context_FailureReportRequest as FailureReportRequest, context_FieldToUpdate as FieldToUpdate, type context_GetPackageRequest as GetPackageRequest, type context_GetPackageResponse as GetPackageResponse, type context_GetPackageResponseNonNullableFields as GetPackageResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_Initiator as Initiator, type context_Interval as Interval, context_IntervalIntervalUnit as IntervalIntervalUnit, context_IntervalUnit as IntervalUnit, type context_MessageEnvelope as MessageEnvelope, type context_MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequest, type context_MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponse, type context_OneTime as OneTime, type context_Package as Package, type context_PackageCanceled as PackageCanceled, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PriceIncreaseTrigger as PriceIncreaseTrigger, context_ProductAdjustment as ProductAdjustment, type context_ProductInstance as ProductInstance, type context_ProductInstanceCanceled as ProductInstanceCanceled, type context_ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOf, type context_ProductInstanceCycle as ProductInstanceCycle, type context_ProductInstanceFailed as ProductInstanceFailed, type context_ProductInstanceUpdated as ProductInstanceUpdated, type context_ProductPriceIncreaseData as ProductPriceIncreaseData, context_ProviderName as ProviderName, type context_QueryPackagesRequest as QueryPackagesRequest, type context_QueryPackagesResponse as QueryPackagesResponse, type context_QueryPackagesResponseNonNullableFields as QueryPackagesResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_ReactivationData as ReactivationData, context_ReactivationReasonEnum as ReactivationReasonEnum, type context_RecurringChargeSucceeded as RecurringChargeSucceeded, type context_Reschedule as Reschedule, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Status as Status, type context_Subscription as Subscription, type context_SubscriptionAssigned as SubscriptionAssigned, type context_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context_SubscriptionCancelled as SubscriptionCancelled, type context_SubscriptionCreated as SubscriptionCreated, type context_SubscriptionEvent as SubscriptionEvent, type context_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context_SubscriptionPendingChange as SubscriptionPendingChange, context_SubscriptionStatus as SubscriptionStatus, type context_SubscriptionTransferred as SubscriptionTransferred, type context_SubscriptionUnassigned as SubscriptionUnassigned, type context_Task as Task, type context_TaskAction as TaskAction, type context_TaskActionActionOneOf as TaskActionActionOneOf, type context_TaskKey as TaskKey, type context_UnassignProductInstanceFromSiteOptions as UnassignProductInstanceFromSiteOptions, type context_UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequest, type context_UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponse, type context_UnassignProductInstanceFromSiteResponseNonNullableFields as UnassignProductInstanceFromSiteResponseNonNullableFields, context_UnassignReason as UnassignReason, type context_UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSite, type context_UpdatePackageExternalIdIdentifiers as UpdatePackageExternalIdIdentifiers, type context_UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequest, type context_UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponse, type context_UpdatePackageExternalIdResponseNonNullableFields as UpdatePackageExternalIdResponseNonNullableFields, type context_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type context_UpdateProductInstanceResponse as UpdateProductInstanceResponse, context_WebhookIdentityType as WebhookIdentityType, 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_updatePackageExternalId as updatePackageExternalId };
1791
+ export { type context_ActionEvent as ActionEvent, type context_AdjustProductInstanceSpecificationsOptions as AdjustProductInstanceSpecificationsOptions, type context_AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequest, type context_AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponse, type context_AdjustProductInstanceSpecificationsResponseNonNullableFields as AdjustProductInstanceSpecificationsResponseNonNullableFields, type context_AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecifications, type context_AssignProductInstanceToSiteIdentifiers as AssignProductInstanceToSiteIdentifiers, type context_AssignProductInstanceToSiteOptions as AssignProductInstanceToSiteOptions, type context_AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequest, type context_AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponse, type context_AssignProductInstanceToSiteResponseNonNullableFields as AssignProductInstanceToSiteResponseNonNullableFields, type context_AssignedProductInstanceToSite as AssignedProductInstanceToSite, type context_BillingReference as BillingReference, type context_Cancel as Cancel, type context_CancelPackageOptions as CancelPackageOptions, type context_CancelPackageRequest as CancelPackageRequest, type context_CancelPackageResponse as CancelPackageResponse, type context_CancelPackageResponseNonNullableFields as CancelPackageResponseNonNullableFields, type context_CancelProductInstanceOptions as CancelProductInstanceOptions, type context_CancelProductInstanceRequest as CancelProductInstanceRequest, type context_CancelProductInstanceResponse as CancelProductInstanceResponse, type context_CancelProductInstanceResponseNonNullableFields as CancelProductInstanceResponseNonNullableFields, type context_CancellationDetails as CancellationDetails, type context_Complete as Complete, context_ContractSwitchReason as ContractSwitchReason, context_ContractSwitchType as ContractSwitchType, type context_ContractSwitched as ContractSwitched, type context_CountPackagesRequest as CountPackagesRequest, type context_CountPackagesResponse as CountPackagesResponse, type context_CreatePackageOptions as CreatePackageOptions, type context_CreatePackageRequest as CreatePackageRequest, type context_CreatePackageResponse as CreatePackageResponse, type context_CreatePackageResponseNonNullableFields as CreatePackageResponseNonNullableFields, type context_CreatePackageV2Options as CreatePackageV2Options, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_Cycle as Cycle, type context_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, context_CycleDescriptorType as CycleDescriptorType, type context_CycleInterval as CycleInterval, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_FailureReason as FailureReason, context_FailureReasonFailureReason as FailureReasonFailureReason, type context_FailureReportRequest as FailureReportRequest, context_FieldToUpdate as FieldToUpdate, type context_GetPackageRequest as GetPackageRequest, type context_GetPackageResponse as GetPackageResponse, type context_GetPackageResponseNonNullableFields as GetPackageResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_Initiator as Initiator, type context_Interval as Interval, context_IntervalIntervalUnit as IntervalIntervalUnit, context_IntervalUnit as IntervalUnit, type context_MessageEnvelope as MessageEnvelope, type context_MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequest, type context_MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponse, type context_OneTime as OneTime, type context_Package as Package, type context_PackageCanceled as PackageCanceled, type context_PackageNonNullableFields as PackageNonNullableFields, type context_PackagesQueryBuilder as PackagesQueryBuilder, type context_PackagesQueryResult as PackagesQueryResult, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PriceIncreaseTrigger as PriceIncreaseTrigger, context_ProductAdjustment as ProductAdjustment, type context_ProductInstance as ProductInstance, type context_ProductInstanceCanceled as ProductInstanceCanceled, type context_ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOf, type context_ProductInstanceCycle as ProductInstanceCycle, type context_ProductInstanceFailed as ProductInstanceFailed, type context_ProductInstanceUpdated as ProductInstanceUpdated, type context_ProductPriceIncreaseData as ProductPriceIncreaseData, context_ProviderName as ProviderName, type context_QueryPackagesRequest as QueryPackagesRequest, type context_QueryPackagesResponse as QueryPackagesResponse, type context_QueryPackagesResponseNonNullableFields as QueryPackagesResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_ReactivationData as ReactivationData, context_ReactivationReasonEnum as ReactivationReasonEnum, type context_RecurringChargeSucceeded as RecurringChargeSucceeded, type context_Reschedule as Reschedule, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Status as Status, type context_Subscription as Subscription, type context_SubscriptionAssigned as SubscriptionAssigned, type context_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context_SubscriptionCancelled as SubscriptionCancelled, type context_SubscriptionCreated as SubscriptionCreated, type context_SubscriptionEvent as SubscriptionEvent, type context_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context_SubscriptionPendingChange as SubscriptionPendingChange, context_SubscriptionStatus as SubscriptionStatus, type context_SubscriptionTransferred as SubscriptionTransferred, type context_SubscriptionUnassigned as SubscriptionUnassigned, type context_Task as Task, type context_TaskAction as TaskAction, type context_TaskActionActionOneOf as TaskActionActionOneOf, type context_TaskKey as TaskKey, type context_UnassignProductInstanceFromSiteOptions as UnassignProductInstanceFromSiteOptions, type context_UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequest, type context_UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponse, type context_UnassignProductInstanceFromSiteResponseNonNullableFields as UnassignProductInstanceFromSiteResponseNonNullableFields, context_UnassignReason as UnassignReason, type context_UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSite, type context_UpdatePackageExternalIdIdentifiers as UpdatePackageExternalIdIdentifiers, type context_UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequest, type context_UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponse, type context_UpdatePackageExternalIdResponseNonNullableFields as UpdatePackageExternalIdResponseNonNullableFields, type context_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type context_UpdateProductInstanceResponse as UpdateProductInstanceResponse, context_WebhookIdentityType as WebhookIdentityType, 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_updatePackageExternalId as updatePackageExternalId };
1764
1792
  }
1765
1793
 
1766
1794
  export { context as packages };
@@ -1288,6 +1288,31 @@ interface CancelPackageOptions {
1288
1288
  /** Idempotency key. */
1289
1289
  idempotencyKey?: string | null;
1290
1290
  }
1291
+ interface QueryCursorResult {
1292
+ cursors: Cursors;
1293
+ hasNext: () => boolean;
1294
+ hasPrev: () => boolean;
1295
+ length: number;
1296
+ pageSize: number;
1297
+ }
1298
+ interface PackagesQueryResult extends QueryCursorResult {
1299
+ items: Package[];
1300
+ query: PackagesQueryBuilder;
1301
+ next: () => Promise<PackagesQueryResult>;
1302
+ prev: () => Promise<PackagesQueryResult>;
1303
+ }
1304
+ interface PackagesQueryBuilder {
1305
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1306
+ * @documentationMaturity preview
1307
+ */
1308
+ limit: (limit: number) => PackagesQueryBuilder;
1309
+ /** @param cursor - A pointer to specific record
1310
+ * @documentationMaturity preview
1311
+ */
1312
+ skipTo: (cursor: string) => PackagesQueryBuilder;
1313
+ /** @documentationMaturity preview */
1314
+ find: () => Promise<PackagesQueryResult>;
1315
+ }
1291
1316
  interface AssignProductInstanceToSiteIdentifiers {
1292
1317
  /** ID of the product instance to assign to a site. */
1293
1318
  instanceId: string;
@@ -1439,8 +1464,9 @@ interface GetPackageSignature {
1439
1464
  * > **Important**: This call requires an account level API key and cannot be
1440
1465
  * > authenticated with the standard authorization header.
1441
1466
  * @param - Package ID.
1467
+ * @returns Retrieved package.
1442
1468
  */
1443
- (_id: string): Promise<GetPackageResponse & GetPackageResponseNonNullableFields>;
1469
+ (_id: string): Promise<Package & PackageNonNullableFields>;
1444
1470
  }
1445
1471
  declare function queryPackages$1(httpClient: HttpClient): QueryPackagesSignature;
1446
1472
  interface QueryPackagesSignature {
@@ -1492,9 +1518,8 @@ interface QueryPackagesSignature {
1492
1518
  *
1493
1519
  * > **Important**: This call requires an account level API key and cannot be
1494
1520
  * > authenticated with the standard authorization header.
1495
- * @param - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
1496
1521
  */
1497
- (query: QueryV2): Promise<QueryPackagesResponse & QueryPackagesResponseNonNullableFields>;
1522
+ (): PackagesQueryBuilder;
1498
1523
  }
1499
1524
  declare function assignProductInstanceToSite$1(httpClient: HttpClient): AssignProductInstanceToSiteSignature;
1500
1525
  interface AssignProductInstanceToSiteSignature {
@@ -1685,6 +1710,9 @@ type index_d_MigrateSubscriptionToPackagesResponse = MigrateSubscriptionToPackag
1685
1710
  type index_d_OneTime = OneTime;
1686
1711
  type index_d_Package = Package;
1687
1712
  type index_d_PackageCanceled = PackageCanceled;
1713
+ type index_d_PackageNonNullableFields = PackageNonNullableFields;
1714
+ type index_d_PackagesQueryBuilder = PackagesQueryBuilder;
1715
+ type index_d_PackagesQueryResult = PackagesQueryResult;
1688
1716
  type index_d_Paging = Paging;
1689
1717
  type index_d_PagingMetadataV2 = PagingMetadataV2;
1690
1718
  type index_d_PriceIncreaseTrigger = PriceIncreaseTrigger;
@@ -1760,7 +1788,7 @@ declare const index_d_queryPackages: typeof queryPackages;
1760
1788
  declare const index_d_unassignProductInstanceFromSite: typeof unassignProductInstanceFromSite;
1761
1789
  declare const index_d_updatePackageExternalId: typeof updatePackageExternalId;
1762
1790
  declare namespace index_d {
1763
- 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_UpdatePackageExternalIdIdentifiers as UpdatePackageExternalIdIdentifiers, type index_d_UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequest, type index_d_UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponse, type index_d_UpdatePackageExternalIdResponseNonNullableFields as UpdatePackageExternalIdResponseNonNullableFields, type index_d_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type index_d_UpdateProductInstanceResponse as UpdateProductInstanceResponse, index_d_WebhookIdentityType as WebhookIdentityType, 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_updatePackageExternalId as updatePackageExternalId };
1791
+ 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_PackageNonNullableFields as PackageNonNullableFields, type index_d_PackagesQueryBuilder as PackagesQueryBuilder, type index_d_PackagesQueryResult as PackagesQueryResult, 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_UpdatePackageExternalIdIdentifiers as UpdatePackageExternalIdIdentifiers, type index_d_UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequest, type index_d_UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponse, type index_d_UpdatePackageExternalIdResponseNonNullableFields as UpdatePackageExternalIdResponseNonNullableFields, type index_d_UpdateProductInstanceRequest as UpdateProductInstanceRequest, type index_d_UpdateProductInstanceResponse as UpdateProductInstanceResponse, index_d_WebhookIdentityType as WebhookIdentityType, 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_updatePackageExternalId as updatePackageExternalId };
1764
1792
  }
1765
1793
 
1766
1794
  export { index_d as packages };
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA2D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAE1C,4BAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAAwD"}