@wix/auto_sdk_packages_packages 1.0.18 → 1.0.20

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.
@@ -1,3 +1,4 @@
1
+ import * as _wix_sdk_types from '@wix/sdk-types';
1
2
  import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
3
 
3
4
  /**
@@ -1471,10 +1472,9 @@ interface FixBrokenMigrationResponse {
1471
1472
  * Required Fields:
1472
1473
  * - CreatePackageRequest.products
1473
1474
  *
1474
- * Maturity: BETA
1475
+ * Maturity: GA
1475
1476
  * Exposure: PUBLIC
1476
1477
  * @public
1477
- * @documentationMaturity preview
1478
1478
  * @requiredField options.products
1479
1479
  * @permissionId premium.reseller-package.manage
1480
1480
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage
@@ -1531,7 +1531,6 @@ interface CreatePackageOptions {
1531
1531
  * > **Important**: This call requires an account level API key and cannot be
1532
1532
  * > authenticated with the standard authorization header.
1533
1533
  * @public
1534
- * @documentationMaturity preview
1535
1534
  * @requiredField options.products
1536
1535
  * @requiredField options.products.countryCode
1537
1536
  * @permissionId premium.reseller-package.manage
@@ -1574,7 +1573,6 @@ interface CreatePackageV2Options {
1574
1573
  * > authenticated with the standard authorization header.
1575
1574
  * @param _id - ID of the package to cancel.
1576
1575
  * @public
1577
- * @documentationMaturity preview
1578
1576
  * @requiredField _id
1579
1577
  * @permissionId premium.reseller-package.manage
1580
1578
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage
@@ -1599,7 +1597,6 @@ interface CancelPackageOptions {
1599
1597
  * > authenticated with the standard authorization header.
1600
1598
  * @param _id - Package ID.
1601
1599
  * @public
1602
- * @documentationMaturity preview
1603
1600
  * @requiredField _id
1604
1601
  * @permissionId premium.reseller-package.read
1605
1602
  * @returns Retrieved package.
@@ -1644,9 +1641,6 @@ declare function getPackage(_id: string): Promise<NonNullablePaths<Package, `_id
1644
1641
  * for sort and filter. Changing the sort and filter properties during the span of
1645
1642
  * a cursor query isn't supported. But you can provide a different limit.
1646
1643
  *
1647
- * For field support for filters and sorting,
1648
- * see [Query Packages: Supported Filters and Sorting](https://dev.wix.com/api/rest/account-level-apis/resellers/supported-filters).
1649
- *
1650
1644
  * To learn about working with _Query_ endpoints, see
1651
1645
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
1652
1646
  * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
@@ -1655,7 +1649,6 @@ declare function getPackage(_id: string): Promise<NonNullablePaths<Package, `_id
1655
1649
  * > **Important**: This call requires an account level API key and cannot be
1656
1650
  * > authenticated with the standard authorization header.
1657
1651
  * @public
1658
- * @documentationMaturity preview
1659
1652
  * @permissionId premium.reseller-package.read
1660
1653
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages
1661
1654
  */
@@ -1674,15 +1667,10 @@ interface PackagesQueryResult extends QueryCursorResult {
1674
1667
  prev: () => Promise<PackagesQueryResult>;
1675
1668
  }
1676
1669
  interface PackagesQueryBuilder {
1677
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1678
- * @documentationMaturity preview
1679
- */
1670
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
1680
1671
  limit: (limit: number) => PackagesQueryBuilder;
1681
- /** @param cursor - A pointer to specific record
1682
- * @documentationMaturity preview
1683
- */
1672
+ /** @param cursor - A pointer to specific record */
1684
1673
  skipTo: (cursor: string) => PackagesQueryBuilder;
1685
- /** @documentationMaturity preview */
1686
1674
  find: () => Promise<PackagesQueryResult>;
1687
1675
  }
1688
1676
  /**
@@ -1738,6 +1726,13 @@ type PackageQuery = {
1738
1726
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1739
1727
  }[];
1740
1728
  };
1729
+ declare const utils: {
1730
+ query: {
1731
+ QueryBuilder: () => _wix_sdk_types.QueryBuilder<Package, PackageQuerySpec, PackageQuery>;
1732
+ Filter: _wix_sdk_types.FilterFactory<Package, PackageQuerySpec>;
1733
+ Sort: _wix_sdk_types.SortFactory<PackageQuerySpec>;
1734
+ };
1735
+ };
1741
1736
  /**
1742
1737
  * Assigns a product instance to a site.
1743
1738
  *
@@ -1749,7 +1744,6 @@ type PackageQuery = {
1749
1744
  *
1750
1745
  * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
1751
1746
  * @public
1752
- * @documentationMaturity preview
1753
1747
  * @requiredField identifiers
1754
1748
  * @requiredField identifiers.instanceId
1755
1749
  * @requiredField identifiers.siteId
@@ -1790,7 +1784,6 @@ interface AssignProductInstanceToSiteOptions {
1790
1784
  * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
1791
1785
  * @param instanceId - ID of the product instance to unassign from a site.
1792
1786
  * @public
1793
- * @documentationMaturity preview
1794
1787
  * @requiredField instanceId
1795
1788
  * @permissionId premium.reseller-package.manage
1796
1789
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite
@@ -1825,7 +1818,6 @@ interface UnassignProductInstanceFromSiteOptions {
1825
1818
  * > authenticated with the standard authorization header.
1826
1819
  * @param instanceId - ID of the product instance to cancel.
1827
1820
  * @public
1828
- * @documentationMaturity preview
1829
1821
  * @requiredField instanceId
1830
1822
  * @permissionId premium.reseller-package.manage
1831
1823
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance
@@ -1872,7 +1864,6 @@ interface CancelProductInstanceOptions {
1872
1864
  * > authenticated with the standard authorization header.
1873
1865
  * @param instanceId - ID of the product instance to adjust.
1874
1866
  * @public
1875
- * @documentationMaturity preview
1876
1867
  * @requiredField instanceId
1877
1868
  * @permissionId premium.reseller-package.manage
1878
1869
  * @fqn com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications
@@ -1916,7 +1907,6 @@ interface AdjustProductInstanceSpecificationsOptions {
1916
1907
  /**
1917
1908
  * Updates a package's external ID field.
1918
1909
  * @public
1919
- * @documentationMaturity preview
1920
1910
  * @requiredField identifiers
1921
1911
  * @requiredField identifiers.externalId
1922
1912
  * @requiredField identifiers.packageId
@@ -1937,4 +1927,4 @@ interface UpdatePackageExternalIdIdentifiers {
1937
1927
  externalId: string;
1938
1928
  }
1939
1929
 
1940
- export { type AccountInfo, type ActionEvent, type AdjustProductInstanceSpecificationsOptions, type AdjustProductInstanceSpecificationsRequest, type AdjustProductInstanceSpecificationsResponse, type AdjustedProductInstanceSpecifications, type AssignProductInstanceToSiteIdentifiers, type AssignProductInstanceToSiteOptions, type AssignProductInstanceToSiteRequest, type AssignProductInstanceToSiteResponse, type AssignedProductInstanceToSite, type BillingReference, type Cancel, type CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type CommonQueryWithEntityContext, type Complete, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type CountPackagesRequest, type CountPackagesResponse, type CreatePackageOptions, type CreatePackageRequest, type CreatePackageResponse, type CreatePackageV2Options, type CursorPaging, type Cursors, type Cycle, type CycleCycleSelectorOneOf, CycleDescriptorType, type CycleDescriptorTypeWithLiterals, type CycleInterval, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailureReason, FailureReasonCode, type FailureReasonCodeWithLiterals, type FailureReportRequest, FieldToUpdate, type FieldToUpdateWithLiterals, type FixBrokenMigrationRequest, type FixBrokenMigrationResponse, type GetPackageRequest, type GetPackageResponse, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalIntervalUnit, type IntervalIntervalUnitWithLiterals, IntervalUnit, type IntervalUnitWithLiterals, type MessageEnvelope, type MigrateSubscriptionToPackagesRequest, type MigrateSubscriptionToPackagesResponse, type OneTime, type Package, type PackageCanceled, type PackageQuery, type PackageQuerySpec, type PackagesQueryBuilder, type PackagesQueryResult, type Paging, type PagingMetadataV2, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductInstance, type ProductInstanceCanceled, type ProductInstanceContractDetailsOneOf, type ProductInstanceCycle, type ProductInstanceFailed, type ProductInstanceUpdated, type ProductPriceIncreaseData, ProviderName, type ProviderNameWithLiterals, type QueryPackagesRequest, type QueryPackagesResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, RefundType, type RefundTypeWithLiterals, type Reschedule, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type Task, type TaskAction, type TaskActionActionOneOf, type TaskKey, type UnassignProductInstanceFromSiteOptions, type UnassignProductInstanceFromSiteRequest, type UnassignProductInstanceFromSiteResponse, UnassignReason, type UnassignReasonWithLiterals, type UnassignedProductInstanceFromSite, type UpdatePackageExternalIdIdentifiers, type UpdatePackageExternalIdRequest, type UpdatePackageExternalIdResponse, type UpdateProductInstanceRequest, type UpdateProductInstanceResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, typedQueryPackages, unassignProductInstanceFromSite, updatePackageExternalId };
1930
+ export { type AccountInfo, type ActionEvent, type AdjustProductInstanceSpecificationsOptions, type AdjustProductInstanceSpecificationsRequest, type AdjustProductInstanceSpecificationsResponse, type AdjustedProductInstanceSpecifications, type AssignProductInstanceToSiteIdentifiers, type AssignProductInstanceToSiteOptions, type AssignProductInstanceToSiteRequest, type AssignProductInstanceToSiteResponse, type AssignedProductInstanceToSite, type BillingReference, type Cancel, type CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type CommonQueryWithEntityContext, type Complete, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type CountPackagesRequest, type CountPackagesResponse, type CreatePackageOptions, type CreatePackageRequest, type CreatePackageResponse, type CreatePackageV2Options, type CursorPaging, type Cursors, type Cycle, type CycleCycleSelectorOneOf, CycleDescriptorType, type CycleDescriptorTypeWithLiterals, type CycleInterval, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailureReason, FailureReasonCode, type FailureReasonCodeWithLiterals, type FailureReportRequest, FieldToUpdate, type FieldToUpdateWithLiterals, type FixBrokenMigrationRequest, type FixBrokenMigrationResponse, type GetPackageRequest, type GetPackageResponse, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalIntervalUnit, type IntervalIntervalUnitWithLiterals, IntervalUnit, type IntervalUnitWithLiterals, type MessageEnvelope, type MigrateSubscriptionToPackagesRequest, type MigrateSubscriptionToPackagesResponse, type OneTime, type Package, type PackageCanceled, type PackageQuery, type PackageQuerySpec, type PackagesQueryBuilder, type PackagesQueryResult, type Paging, type PagingMetadataV2, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductInstance, type ProductInstanceCanceled, type ProductInstanceContractDetailsOneOf, type ProductInstanceCycle, type ProductInstanceFailed, type ProductInstanceUpdated, type ProductPriceIncreaseData, ProviderName, type ProviderNameWithLiterals, type QueryPackagesRequest, type QueryPackagesResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, RefundType, type RefundTypeWithLiterals, type Reschedule, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type Task, type TaskAction, type TaskActionActionOneOf, type TaskKey, type UnassignProductInstanceFromSiteOptions, type UnassignProductInstanceFromSiteRequest, type UnassignProductInstanceFromSiteResponse, UnassignReason, type UnassignReasonWithLiterals, type UnassignedProductInstanceFromSite, type UpdatePackageExternalIdIdentifiers, type UpdatePackageExternalIdRequest, type UpdatePackageExternalIdResponse, type UpdateProductInstanceRequest, type UpdateProductInstanceResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, typedQueryPackages, unassignProductInstanceFromSite, updatePackageExternalId, utils };
@@ -48,7 +48,8 @@ __export(index_typings_exports, {
48
48
  queryPackages: () => queryPackages2,
49
49
  typedQueryPackages: () => typedQueryPackages,
50
50
  unassignProductInstanceFromSite: () => unassignProductInstanceFromSite2,
51
- updatePackageExternalId: () => updatePackageExternalId2
51
+ updatePackageExternalId: () => updatePackageExternalId2,
52
+ utils: () => utils
52
53
  });
53
54
  module.exports = __toCommonJS(index_typings_exports);
54
55
 
@@ -432,6 +433,7 @@ function updatePackageExternalId(payload) {
432
433
 
433
434
  // src/premium-reseller-v1-packages-packages.universal.ts
434
435
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
436
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
435
437
  var FailureReasonCode = /* @__PURE__ */ ((FailureReasonCode2) => {
436
438
  FailureReasonCode2["UNKNOWN"] = "UNKNOWN";
437
439
  FailureReasonCode2["DELIVERY_TIMEOUT"] = "DELIVERY_TIMEOUT";
@@ -741,6 +743,11 @@ async function typedQueryPackages(query) {
741
743
  throw transformedError;
742
744
  }
743
745
  }
746
+ var utils = {
747
+ query: {
748
+ ...(0, import_query_builder_utils.createQueryUtils)()
749
+ }
750
+ };
744
751
  async function assignProductInstanceToSite2(identifiers, options) {
745
752
  const { httpClient, sideEffects } = arguments[2];
746
753
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -928,6 +935,7 @@ async function updatePackageExternalId2(identifiers) {
928
935
  queryPackages,
929
936
  typedQueryPackages,
930
937
  unassignProductInstanceFromSite,
931
- updatePackageExternalId
938
+ updatePackageExternalId,
939
+ utils
932
940
  });
933
941
  //# sourceMappingURL=index.typings.js.map