@wix/auto_sdk_packages_packages 1.0.19 → 1.0.21
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 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +15 -56
- package/build/cjs/index.typings.js +10 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -38
- package/build/cjs/meta.js +0 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +8 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +15 -56
- package/build/es/index.typings.mjs +8 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -38
- package/build/es/meta.mjs +0 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +10 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -56
- package/build/internal/cjs/index.typings.js +10 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -38
- package/build/internal/cjs/meta.js +0 -3
- 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 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +15 -56
- package/build/internal/es/index.typings.mjs +8 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -38
- package/build/internal/es/meta.mjs +0 -3
- 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
|
/**
|
|
@@ -138,17 +139,14 @@ interface ProductInstanceContractDetailsOneOf {
|
|
|
138
139
|
billingInfo?: ProductInstanceCycle;
|
|
139
140
|
}
|
|
140
141
|
declare enum FailureReasonCode {
|
|
141
|
-
UNKNOWN = "UNKNOWN",
|
|
142
142
|
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
143
143
|
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
144
144
|
/** The product instance couldn't be created because an external process failed. */
|
|
145
145
|
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
146
146
|
}
|
|
147
147
|
/** @enumType */
|
|
148
|
-
type FailureReasonCodeWithLiterals = FailureReasonCode | '
|
|
148
|
+
type FailureReasonCodeWithLiterals = FailureReasonCode | 'DELIVERY_TIMEOUT' | 'EXTERNAL_FAILURE';
|
|
149
149
|
declare enum IntervalIntervalUnit {
|
|
150
|
-
/** unknown interval unit */
|
|
151
|
-
UNKNOWN = "UNKNOWN",
|
|
152
150
|
/** Day */
|
|
153
151
|
DAY = "DAY",
|
|
154
152
|
/** Week */
|
|
@@ -159,17 +157,15 @@ declare enum IntervalIntervalUnit {
|
|
|
159
157
|
YEAR = "YEAR"
|
|
160
158
|
}
|
|
161
159
|
/** @enumType */
|
|
162
|
-
type IntervalIntervalUnitWithLiterals = IntervalIntervalUnit | '
|
|
160
|
+
type IntervalIntervalUnitWithLiterals = IntervalIntervalUnit | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
163
161
|
declare enum CycleDescriptorType {
|
|
164
|
-
/** The payment type hasn't been set. */
|
|
165
|
-
UNKNOWN = "UNKNOWN",
|
|
166
162
|
/** The reseller pays Wix in a single payment. */
|
|
167
163
|
ONE_TIME = "ONE_TIME",
|
|
168
164
|
/** The reseller pays Wix on a recurring schedule. */
|
|
169
165
|
RECURRING = "RECURRING"
|
|
170
166
|
}
|
|
171
167
|
/** @enumType */
|
|
172
|
-
type CycleDescriptorTypeWithLiterals = CycleDescriptorType | '
|
|
168
|
+
type CycleDescriptorTypeWithLiterals = CycleDescriptorType | 'ONE_TIME' | 'RECURRING';
|
|
173
169
|
interface CycleInterval {
|
|
174
170
|
/** Unit of the billing cycle. */
|
|
175
171
|
unit?: IntervalIntervalUnitWithLiterals;
|
|
@@ -1189,35 +1185,6 @@ interface ProductInstanceFailed {
|
|
|
1189
1185
|
/** Failure reason. */
|
|
1190
1186
|
reason?: FailureReason;
|
|
1191
1187
|
}
|
|
1192
|
-
interface Task {
|
|
1193
|
-
key?: TaskKey;
|
|
1194
|
-
executeAt?: Date | null;
|
|
1195
|
-
payload?: string | null;
|
|
1196
|
-
}
|
|
1197
|
-
interface TaskKey {
|
|
1198
|
-
appId?: string;
|
|
1199
|
-
instanceId?: string;
|
|
1200
|
-
subjectId?: string | null;
|
|
1201
|
-
}
|
|
1202
|
-
interface TaskAction extends TaskActionActionOneOf {
|
|
1203
|
-
complete?: Complete;
|
|
1204
|
-
cancel?: Cancel;
|
|
1205
|
-
reschedule?: Reschedule;
|
|
1206
|
-
}
|
|
1207
|
-
/** @oneof */
|
|
1208
|
-
interface TaskActionActionOneOf {
|
|
1209
|
-
complete?: Complete;
|
|
1210
|
-
cancel?: Cancel;
|
|
1211
|
-
reschedule?: Reschedule;
|
|
1212
|
-
}
|
|
1213
|
-
interface Complete {
|
|
1214
|
-
}
|
|
1215
|
-
interface Cancel {
|
|
1216
|
-
}
|
|
1217
|
-
interface Reschedule {
|
|
1218
|
-
executeAt?: Date | null;
|
|
1219
|
-
payload?: string | null;
|
|
1220
|
-
}
|
|
1221
1188
|
interface UpdateProductInstanceRequest {
|
|
1222
1189
|
/**
|
|
1223
1190
|
* ID of the product instance to update.
|
|
@@ -1471,10 +1438,9 @@ interface FixBrokenMigrationResponse {
|
|
|
1471
1438
|
* Required Fields:
|
|
1472
1439
|
* - CreatePackageRequest.products
|
|
1473
1440
|
*
|
|
1474
|
-
* Maturity:
|
|
1441
|
+
* Maturity: GA
|
|
1475
1442
|
* Exposure: PUBLIC
|
|
1476
1443
|
* @public
|
|
1477
|
-
* @documentationMaturity preview
|
|
1478
1444
|
* @requiredField options.products
|
|
1479
1445
|
* @permissionId premium.reseller-package.manage
|
|
1480
1446
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.CreatePackage
|
|
@@ -1531,7 +1497,6 @@ interface CreatePackageOptions {
|
|
|
1531
1497
|
* > **Important**: This call requires an account level API key and cannot be
|
|
1532
1498
|
* > authenticated with the standard authorization header.
|
|
1533
1499
|
* @public
|
|
1534
|
-
* @documentationMaturity preview
|
|
1535
1500
|
* @requiredField options.products
|
|
1536
1501
|
* @requiredField options.products.countryCode
|
|
1537
1502
|
* @permissionId premium.reseller-package.manage
|
|
@@ -1574,7 +1539,6 @@ interface CreatePackageV2Options {
|
|
|
1574
1539
|
* > authenticated with the standard authorization header.
|
|
1575
1540
|
* @param _id - ID of the package to cancel.
|
|
1576
1541
|
* @public
|
|
1577
|
-
* @documentationMaturity preview
|
|
1578
1542
|
* @requiredField _id
|
|
1579
1543
|
* @permissionId premium.reseller-package.manage
|
|
1580
1544
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelPackage
|
|
@@ -1599,7 +1563,6 @@ interface CancelPackageOptions {
|
|
|
1599
1563
|
* > authenticated with the standard authorization header.
|
|
1600
1564
|
* @param _id - Package ID.
|
|
1601
1565
|
* @public
|
|
1602
|
-
* @documentationMaturity preview
|
|
1603
1566
|
* @requiredField _id
|
|
1604
1567
|
* @permissionId premium.reseller-package.read
|
|
1605
1568
|
* @returns Retrieved package.
|
|
@@ -1652,7 +1615,6 @@ declare function getPackage(_id: string): Promise<NonNullablePaths<Package, `_id
|
|
|
1652
1615
|
* > **Important**: This call requires an account level API key and cannot be
|
|
1653
1616
|
* > authenticated with the standard authorization header.
|
|
1654
1617
|
* @public
|
|
1655
|
-
* @documentationMaturity preview
|
|
1656
1618
|
* @permissionId premium.reseller-package.read
|
|
1657
1619
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.QueryPackages
|
|
1658
1620
|
*/
|
|
@@ -1671,15 +1633,10 @@ interface PackagesQueryResult extends QueryCursorResult {
|
|
|
1671
1633
|
prev: () => Promise<PackagesQueryResult>;
|
|
1672
1634
|
}
|
|
1673
1635
|
interface PackagesQueryBuilder {
|
|
1674
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1675
|
-
* @documentationMaturity preview
|
|
1676
|
-
*/
|
|
1636
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1677
1637
|
limit: (limit: number) => PackagesQueryBuilder;
|
|
1678
|
-
/** @param cursor - A pointer to specific record
|
|
1679
|
-
* @documentationMaturity preview
|
|
1680
|
-
*/
|
|
1638
|
+
/** @param cursor - A pointer to specific record */
|
|
1681
1639
|
skipTo: (cursor: string) => PackagesQueryBuilder;
|
|
1682
|
-
/** @documentationMaturity preview */
|
|
1683
1640
|
find: () => Promise<PackagesQueryResult>;
|
|
1684
1641
|
}
|
|
1685
1642
|
/**
|
|
@@ -1735,6 +1692,13 @@ type PackageQuery = {
|
|
|
1735
1692
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1736
1693
|
}[];
|
|
1737
1694
|
};
|
|
1695
|
+
declare const utils: {
|
|
1696
|
+
query: {
|
|
1697
|
+
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Package, PackageQuerySpec, PackageQuery>;
|
|
1698
|
+
Filter: _wix_sdk_types.FilterFactory<Package, PackageQuerySpec>;
|
|
1699
|
+
Sort: _wix_sdk_types.SortFactory<PackageQuerySpec>;
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1738
1702
|
/**
|
|
1739
1703
|
* Assigns a product instance to a site.
|
|
1740
1704
|
*
|
|
@@ -1746,7 +1710,6 @@ type PackageQuery = {
|
|
|
1746
1710
|
*
|
|
1747
1711
|
* > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
|
|
1748
1712
|
* @public
|
|
1749
|
-
* @documentationMaturity preview
|
|
1750
1713
|
* @requiredField identifiers
|
|
1751
1714
|
* @requiredField identifiers.instanceId
|
|
1752
1715
|
* @requiredField identifiers.siteId
|
|
@@ -1787,7 +1750,6 @@ interface AssignProductInstanceToSiteOptions {
|
|
|
1787
1750
|
* > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
|
|
1788
1751
|
* @param instanceId - ID of the product instance to unassign from a site.
|
|
1789
1752
|
* @public
|
|
1790
|
-
* @documentationMaturity preview
|
|
1791
1753
|
* @requiredField instanceId
|
|
1792
1754
|
* @permissionId premium.reseller-package.manage
|
|
1793
1755
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.UnassignProductInstanceFromSite
|
|
@@ -1822,7 +1784,6 @@ interface UnassignProductInstanceFromSiteOptions {
|
|
|
1822
1784
|
* > authenticated with the standard authorization header.
|
|
1823
1785
|
* @param instanceId - ID of the product instance to cancel.
|
|
1824
1786
|
* @public
|
|
1825
|
-
* @documentationMaturity preview
|
|
1826
1787
|
* @requiredField instanceId
|
|
1827
1788
|
* @permissionId premium.reseller-package.manage
|
|
1828
1789
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.CancelProductInstance
|
|
@@ -1869,7 +1830,6 @@ interface CancelProductInstanceOptions {
|
|
|
1869
1830
|
* > authenticated with the standard authorization header.
|
|
1870
1831
|
* @param instanceId - ID of the product instance to adjust.
|
|
1871
1832
|
* @public
|
|
1872
|
-
* @documentationMaturity preview
|
|
1873
1833
|
* @requiredField instanceId
|
|
1874
1834
|
* @permissionId premium.reseller-package.manage
|
|
1875
1835
|
* @fqn com.wixpress.premium.reseller.packages.v1.Packages.AdjustProductInstanceSpecifications
|
|
@@ -1913,7 +1873,6 @@ interface AdjustProductInstanceSpecificationsOptions {
|
|
|
1913
1873
|
/**
|
|
1914
1874
|
* Updates a package's external ID field.
|
|
1915
1875
|
* @public
|
|
1916
|
-
* @documentationMaturity preview
|
|
1917
1876
|
* @requiredField identifiers
|
|
1918
1877
|
* @requiredField identifiers.externalId
|
|
1919
1878
|
* @requiredField identifiers.packageId
|
|
@@ -1934,4 +1893,4 @@ interface UpdatePackageExternalIdIdentifiers {
|
|
|
1934
1893
|
externalId: string;
|
|
1935
1894
|
}
|
|
1936
1895
|
|
|
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
|
|
1896
|
+
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 CancelPackageOptions, type CancelPackageRequest, type CancelPackageResponse, type CancelProductInstanceOptions, type CancelProductInstanceRequest, type CancelProductInstanceResponse, type CancellationDetails, type CommonQueryWithEntityContext, 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 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 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,14 +381,13 @@ 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
|
-
FailureReasonCode2["UNKNOWN"] = "UNKNOWN";
|
|
386
386
|
FailureReasonCode2["DELIVERY_TIMEOUT"] = "DELIVERY_TIMEOUT";
|
|
387
387
|
FailureReasonCode2["EXTERNAL_FAILURE"] = "EXTERNAL_FAILURE";
|
|
388
388
|
return FailureReasonCode2;
|
|
389
389
|
})(FailureReasonCode || {});
|
|
390
390
|
var IntervalIntervalUnit = /* @__PURE__ */ ((IntervalIntervalUnit2) => {
|
|
391
|
-
IntervalIntervalUnit2["UNKNOWN"] = "UNKNOWN";
|
|
392
391
|
IntervalIntervalUnit2["DAY"] = "DAY";
|
|
393
392
|
IntervalIntervalUnit2["WEEK"] = "WEEK";
|
|
394
393
|
IntervalIntervalUnit2["MONTH"] = "MONTH";
|
|
@@ -396,7 +395,6 @@ var IntervalIntervalUnit = /* @__PURE__ */ ((IntervalIntervalUnit2) => {
|
|
|
396
395
|
return IntervalIntervalUnit2;
|
|
397
396
|
})(IntervalIntervalUnit || {});
|
|
398
397
|
var CycleDescriptorType = /* @__PURE__ */ ((CycleDescriptorType2) => {
|
|
399
|
-
CycleDescriptorType2["UNKNOWN"] = "UNKNOWN";
|
|
400
398
|
CycleDescriptorType2["ONE_TIME"] = "ONE_TIME";
|
|
401
399
|
CycleDescriptorType2["RECURRING"] = "RECURRING";
|
|
402
400
|
return CycleDescriptorType2;
|
|
@@ -690,6 +688,11 @@ async function typedQueryPackages(query) {
|
|
|
690
688
|
throw transformedError;
|
|
691
689
|
}
|
|
692
690
|
}
|
|
691
|
+
var utils = {
|
|
692
|
+
query: {
|
|
693
|
+
...createQueryUtils()
|
|
694
|
+
}
|
|
695
|
+
};
|
|
693
696
|
async function assignProductInstanceToSite2(identifiers, options) {
|
|
694
697
|
const { httpClient, sideEffects } = arguments[2];
|
|
695
698
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -876,6 +879,7 @@ export {
|
|
|
876
879
|
queryPackages2 as queryPackages,
|
|
877
880
|
typedQueryPackages,
|
|
878
881
|
unassignProductInstanceFromSite2 as unassignProductInstanceFromSite,
|
|
879
|
-
updatePackageExternalId2 as updatePackageExternalId
|
|
882
|
+
updatePackageExternalId2 as updatePackageExternalId,
|
|
883
|
+
utils
|
|
880
884
|
};
|
|
881
885
|
//# sourceMappingURL=index.typings.mjs.map
|