@wix/auto_sdk_packages_packages 1.0.19 → 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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +10 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -19
- package/build/cjs/index.typings.js +10 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +8 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -19
- package/build/es/index.typings.mjs +8 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +10 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -19
- package/build/internal/cjs/index.typings.js +10 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +8 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -19
- package/build/internal/es/index.typings.mjs +8 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -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:
|
|
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.
|
|
@@ -1652,7 +1649,6 @@ declare function getPackage(_id: string): Promise<NonNullablePaths<Package, `_id
|
|
|
1652
1649
|
* > **Important**: This call requires an account level API key and cannot be
|
|
1653
1650
|
* > authenticated with the standard authorization header.
|
|
1654
1651
|
* @public
|
|
1655
|
-
* @documentationMaturity preview
|
|
1656
1652
|
* @permissionId premium.reseller-package.read
|
|
1657
1653
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages
|
|
1658
1654
|
*/
|
|
@@ -1671,15 +1667,10 @@ interface PackagesQueryResult extends QueryCursorResult {
|
|
|
1671
1667
|
prev: () => Promise<PackagesQueryResult>;
|
|
1672
1668
|
}
|
|
1673
1669
|
interface PackagesQueryBuilder {
|
|
1674
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1675
|
-
* @documentationMaturity preview
|
|
1676
|
-
*/
|
|
1670
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1677
1671
|
limit: (limit: number) => PackagesQueryBuilder;
|
|
1678
|
-
/** @param cursor - A pointer to specific record
|
|
1679
|
-
* @documentationMaturity preview
|
|
1680
|
-
*/
|
|
1672
|
+
/** @param cursor - A pointer to specific record */
|
|
1681
1673
|
skipTo: (cursor: string) => PackagesQueryBuilder;
|
|
1682
|
-
/** @documentationMaturity preview */
|
|
1683
1674
|
find: () => Promise<PackagesQueryResult>;
|
|
1684
1675
|
}
|
|
1685
1676
|
/**
|
|
@@ -1735,6 +1726,13 @@ type PackageQuery = {
|
|
|
1735
1726
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1736
1727
|
}[];
|
|
1737
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
|
+
};
|
|
1738
1736
|
/**
|
|
1739
1737
|
* Assigns a product instance to a site.
|
|
1740
1738
|
*
|
|
@@ -1746,7 +1744,6 @@ type PackageQuery = {
|
|
|
1746
1744
|
*
|
|
1747
1745
|
* > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
|
|
1748
1746
|
* @public
|
|
1749
|
-
* @documentationMaturity preview
|
|
1750
1747
|
* @requiredField identifiers
|
|
1751
1748
|
* @requiredField identifiers.instanceId
|
|
1752
1749
|
* @requiredField identifiers.siteId
|
|
@@ -1787,7 +1784,6 @@ interface AssignProductInstanceToSiteOptions {
|
|
|
1787
1784
|
* > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
|
|
1788
1785
|
* @param instanceId - ID of the product instance to unassign from a site.
|
|
1789
1786
|
* @public
|
|
1790
|
-
* @documentationMaturity preview
|
|
1791
1787
|
* @requiredField instanceId
|
|
1792
1788
|
* @permissionId premium.reseller-package.manage
|
|
1793
1789
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite
|
|
@@ -1822,7 +1818,6 @@ interface UnassignProductInstanceFromSiteOptions {
|
|
|
1822
1818
|
* > authenticated with the standard authorization header.
|
|
1823
1819
|
* @param instanceId - ID of the product instance to cancel.
|
|
1824
1820
|
* @public
|
|
1825
|
-
* @documentationMaturity preview
|
|
1826
1821
|
* @requiredField instanceId
|
|
1827
1822
|
* @permissionId premium.reseller-package.manage
|
|
1828
1823
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance
|
|
@@ -1869,7 +1864,6 @@ interface CancelProductInstanceOptions {
|
|
|
1869
1864
|
* > authenticated with the standard authorization header.
|
|
1870
1865
|
* @param instanceId - ID of the product instance to adjust.
|
|
1871
1866
|
* @public
|
|
1872
|
-
* @documentationMaturity preview
|
|
1873
1867
|
* @requiredField instanceId
|
|
1874
1868
|
* @permissionId premium.reseller-package.manage
|
|
1875
1869
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications
|
|
@@ -1913,7 +1907,6 @@ interface AdjustProductInstanceSpecificationsOptions {
|
|
|
1913
1907
|
/**
|
|
1914
1908
|
* Updates a package's external ID field.
|
|
1915
1909
|
* @public
|
|
1916
|
-
* @documentationMaturity preview
|
|
1917
1910
|
* @requiredField identifiers
|
|
1918
1911
|
* @requiredField identifiers.externalId
|
|
1919
1912
|
* @requiredField identifiers.packageId
|
|
@@ -1934,4 +1927,4 @@ interface UpdatePackageExternalIdIdentifiers {
|
|
|
1934
1927
|
externalId: string;
|
|
1935
1928
|
}
|
|
1936
1929
|
|
|
1937
|
-
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 };
|
|
@@ -381,6 +381,7 @@ function updatePackageExternalId(payload) {
|
|
|
381
381
|
|
|
382
382
|
// src/premium-reseller-v1-packages-packages.universal.ts
|
|
383
383
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
384
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
384
385
|
var FailureReasonCode = /* @__PURE__ */ ((FailureReasonCode2) => {
|
|
385
386
|
FailureReasonCode2["UNKNOWN"] = "UNKNOWN";
|
|
386
387
|
FailureReasonCode2["DELIVERY_TIMEOUT"] = "DELIVERY_TIMEOUT";
|
|
@@ -690,6 +691,11 @@ async function typedQueryPackages(query) {
|
|
|
690
691
|
throw transformedError;
|
|
691
692
|
}
|
|
692
693
|
}
|
|
694
|
+
var utils = {
|
|
695
|
+
query: {
|
|
696
|
+
...createQueryUtils()
|
|
697
|
+
}
|
|
698
|
+
};
|
|
693
699
|
async function assignProductInstanceToSite2(identifiers, options) {
|
|
694
700
|
const { httpClient, sideEffects } = arguments[2];
|
|
695
701
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -876,6 +882,7 @@ export {
|
|
|
876
882
|
queryPackages2 as queryPackages,
|
|
877
883
|
typedQueryPackages,
|
|
878
884
|
unassignProductInstanceFromSite2 as unassignProductInstanceFromSite,
|
|
879
|
-
updatePackageExternalId2 as updatePackageExternalId
|
|
885
|
+
updatePackageExternalId2 as updatePackageExternalId,
|
|
886
|
+
utils
|
|
880
887
|
};
|
|
881
888
|
//# sourceMappingURL=index.typings.mjs.map
|