@wix/auto_sdk_packages_packages 1.0.28 → 1.0.30
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 +1 -1
- package/build/cjs/index.js +27 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +34 -3
- package/build/cjs/index.typings.js +27 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -3
- package/build/cjs/meta.js +27 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +26 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +34 -3
- package/build/es/index.typings.mjs +26 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -3
- package/build/es/meta.mjs +26 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +27 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +75 -3
- package/build/internal/cjs/index.typings.js +27 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +98 -3
- package/build/internal/cjs/meta.js +27 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +26 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +75 -3
- package/build/internal/es/index.typings.mjs +26 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +98 -3
- package/build/internal/es/meta.mjs +26 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -305,6 +305,11 @@ interface Sorting {
|
|
|
305
305
|
fieldName?: string;
|
|
306
306
|
/** Sort order. */
|
|
307
307
|
order?: SortOrderWithLiterals;
|
|
308
|
+
/**
|
|
309
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
310
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
311
|
+
*/
|
|
312
|
+
origin?: AddressLocation;
|
|
308
313
|
}
|
|
309
314
|
declare enum SortOrder {
|
|
310
315
|
ASC = "ASC",
|
|
@@ -312,6 +317,12 @@ declare enum SortOrder {
|
|
|
312
317
|
}
|
|
313
318
|
/** @enumType */
|
|
314
319
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
320
|
+
interface AddressLocation {
|
|
321
|
+
/** Address latitude. */
|
|
322
|
+
latitude?: number | null;
|
|
323
|
+
/** Address longitude. */
|
|
324
|
+
longitude?: number | null;
|
|
325
|
+
}
|
|
315
326
|
interface Paging {
|
|
316
327
|
/** Number of items to load. */
|
|
317
328
|
limit?: number | null;
|
|
@@ -1112,10 +1123,11 @@ declare enum ContractSwitchType {
|
|
|
1112
1123
|
PENDING_CHANGES = "PENDING_CHANGES",
|
|
1113
1124
|
DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL",
|
|
1114
1125
|
FIXED_BILLING_DATE_PRORATION = "FIXED_BILLING_DATE_PRORATION",
|
|
1115
|
-
IMMEDIATE_SWITCH = "IMMEDIATE_SWITCH"
|
|
1126
|
+
IMMEDIATE_SWITCH = "IMMEDIATE_SWITCH",
|
|
1127
|
+
FLAT_PRICE_DIFFERENCE = "FLAT_PRICE_DIFFERENCE"
|
|
1116
1128
|
}
|
|
1117
1129
|
/** @enumType */
|
|
1118
|
-
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL' | 'FIXED_BILLING_DATE_PRORATION' | 'IMMEDIATE_SWITCH';
|
|
1130
|
+
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL' | 'FIXED_BILLING_DATE_PRORATION' | 'IMMEDIATE_SWITCH' | 'FLAT_PRICE_DIFFERENCE';
|
|
1119
1131
|
declare enum ContractSwitchReason {
|
|
1120
1132
|
EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
|
|
1121
1133
|
PRICE_INCREASE = "PRICE_INCREASE"
|
|
@@ -1175,7 +1187,21 @@ interface SubscriptionPendingChange {
|
|
|
1175
1187
|
interface RecurringChargeAttemptFailed {
|
|
1176
1188
|
/** Subscription for which the recurring charge attempt has failed. */
|
|
1177
1189
|
subscription?: Subscription;
|
|
1190
|
+
/** Reason the recurring charge attempt failed or could not be made. */
|
|
1191
|
+
reason?: RecurringChargeFailureReasonWithLiterals;
|
|
1192
|
+
/**
|
|
1193
|
+
* ID of the invoice associated with the recurring charge failure.
|
|
1194
|
+
* @maxLength 36
|
|
1195
|
+
*/
|
|
1196
|
+
invoiceId?: string | null;
|
|
1178
1197
|
}
|
|
1198
|
+
declare enum RecurringChargeFailureReason {
|
|
1199
|
+
CHARGE_FAILURE = "CHARGE_FAILURE",
|
|
1200
|
+
CREDIT_CARD_EXPIRED = "CREDIT_CARD_EXPIRED",
|
|
1201
|
+
NO_ACTIVE_BILLING_ACCOUNT = "NO_ACTIVE_BILLING_ACCOUNT"
|
|
1202
|
+
}
|
|
1203
|
+
/** @enumType */
|
|
1204
|
+
type RecurringChargeFailureReasonWithLiterals = RecurringChargeFailureReason | 'CHARGE_FAILURE' | 'CREDIT_CARD_EXPIRED' | 'NO_ACTIVE_BILLING_ACCOUNT';
|
|
1179
1205
|
/** Triggered when a subscription is updated. */
|
|
1180
1206
|
interface SubscriptionUpdated {
|
|
1181
1207
|
/** Updated subscription. */
|
|
@@ -1822,6 +1848,11 @@ type PackageQuery = {
|
|
|
1822
1848
|
Sort order.
|
|
1823
1849
|
*/
|
|
1824
1850
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1851
|
+
/**
|
|
1852
|
+
Origin point for geo-distance sorting on a GEO field
|
|
1853
|
+
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
1854
|
+
*/
|
|
1855
|
+
origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
|
|
1825
1856
|
}[];
|
|
1826
1857
|
};
|
|
1827
1858
|
declare const utils: {
|
|
@@ -2025,4 +2056,4 @@ interface UpdatePackageExternalIdIdentifiers {
|
|
|
2025
2056
|
externalId: string;
|
|
2026
2057
|
}
|
|
2027
2058
|
|
|
2028
|
-
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 SubscriptionMigratedFromVista, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type SubscriptionUpdated, type SubscriptionVistaMigrationReverted, 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 };
|
|
2059
|
+
export { type AccountInfo, type ActionEvent, type AddressLocation, 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, RecurringChargeFailureReason, type RecurringChargeFailureReasonWithLiterals, 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 SubscriptionMigratedFromVista, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, type SubscriptionUpdated, type SubscriptionVistaMigrationReverted, 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 };
|
|
@@ -32,6 +32,7 @@ __export(index_typings_exports, {
|
|
|
32
32
|
ProductAdjustment: () => ProductAdjustment,
|
|
33
33
|
ProviderName: () => ProviderName,
|
|
34
34
|
ReactivationReasonEnum: () => ReactivationReasonEnum,
|
|
35
|
+
RecurringChargeFailureReason: () => RecurringChargeFailureReason,
|
|
35
36
|
RefundType: () => RefundType,
|
|
36
37
|
SortOrder: () => SortOrder,
|
|
37
38
|
Status: () => Status,
|
|
@@ -60,6 +61,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
60
61
|
|
|
61
62
|
// src/premium-reseller-v1-packages-packages.http.ts
|
|
62
63
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
64
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
63
65
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
64
66
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
65
67
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -75,6 +77,12 @@ function resolveComWixpressPremiumResellerPackagesV1PackagesUrl(opts) {
|
|
|
75
77
|
srcPath: "/resellers/v2/packages",
|
|
76
78
|
destPath: "/v2/packages"
|
|
77
79
|
}
|
|
80
|
+
],
|
|
81
|
+
"api._api_base_domain_": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/premium-reseller-packages",
|
|
84
|
+
destPath: ""
|
|
85
|
+
}
|
|
78
86
|
]
|
|
79
87
|
};
|
|
80
88
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -234,6 +242,15 @@ function getPackage(payload) {
|
|
|
234
242
|
}
|
|
235
243
|
function queryPackages(payload) {
|
|
236
244
|
function __queryPackages({ host }) {
|
|
245
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
246
|
+
{
|
|
247
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
248
|
+
paths: [
|
|
249
|
+
{ path: "query.sort.origin.latitude" },
|
|
250
|
+
{ path: "query.sort.origin.longitude" }
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
]);
|
|
237
254
|
const metadata = {
|
|
238
255
|
entityFqdn: "wix.premium.reseller.v1.packages",
|
|
239
256
|
method: "POST",
|
|
@@ -244,10 +261,10 @@ function queryPackages(payload) {
|
|
|
244
261
|
},
|
|
245
262
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
246
263
|
protoPath: "/v1/packages/query",
|
|
247
|
-
data:
|
|
264
|
+
data: serializedData,
|
|
248
265
|
host
|
|
249
266
|
}),
|
|
250
|
-
data:
|
|
267
|
+
data: serializedData,
|
|
251
268
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
252
269
|
{
|
|
253
270
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -529,6 +546,7 @@ var ContractSwitchType = /* @__PURE__ */ ((ContractSwitchType2) => {
|
|
|
529
546
|
ContractSwitchType2["DOWNGRADE_RENEWAL"] = "DOWNGRADE_RENEWAL";
|
|
530
547
|
ContractSwitchType2["FIXED_BILLING_DATE_PRORATION"] = "FIXED_BILLING_DATE_PRORATION";
|
|
531
548
|
ContractSwitchType2["IMMEDIATE_SWITCH"] = "IMMEDIATE_SWITCH";
|
|
549
|
+
ContractSwitchType2["FLAT_PRICE_DIFFERENCE"] = "FLAT_PRICE_DIFFERENCE";
|
|
532
550
|
return ContractSwitchType2;
|
|
533
551
|
})(ContractSwitchType || {});
|
|
534
552
|
var ContractSwitchReason = /* @__PURE__ */ ((ContractSwitchReason2) => {
|
|
@@ -547,6 +565,12 @@ var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
|
|
|
547
565
|
ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
|
|
548
566
|
return ProductAdjustment2;
|
|
549
567
|
})(ProductAdjustment || {});
|
|
568
|
+
var RecurringChargeFailureReason = /* @__PURE__ */ ((RecurringChargeFailureReason2) => {
|
|
569
|
+
RecurringChargeFailureReason2["CHARGE_FAILURE"] = "CHARGE_FAILURE";
|
|
570
|
+
RecurringChargeFailureReason2["CREDIT_CARD_EXPIRED"] = "CREDIT_CARD_EXPIRED";
|
|
571
|
+
RecurringChargeFailureReason2["NO_ACTIVE_BILLING_ACCOUNT"] = "NO_ACTIVE_BILLING_ACCOUNT";
|
|
572
|
+
return RecurringChargeFailureReason2;
|
|
573
|
+
})(RecurringChargeFailureReason || {});
|
|
550
574
|
var FieldToUpdate = /* @__PURE__ */ ((FieldToUpdate2) => {
|
|
551
575
|
FieldToUpdate2["STATUS"] = "STATUS";
|
|
552
576
|
FieldToUpdate2["COUNTRY_CODE"] = "COUNTRY_CODE";
|
|
@@ -916,6 +940,7 @@ async function updatePackageExternalId2(identifiers) {
|
|
|
916
940
|
ProductAdjustment,
|
|
917
941
|
ProviderName,
|
|
918
942
|
ReactivationReasonEnum,
|
|
943
|
+
RecurringChargeFailureReason,
|
|
919
944
|
RefundType,
|
|
920
945
|
SortOrder,
|
|
921
946
|
Status,
|