@wix/auto_sdk_packages_packages 1.0.28 → 1.0.29
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 +26 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -1
- package/build/cjs/index.typings.js +26 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +26 -1
- package/build/cjs/meta.js +26 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +25 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -1
- package/build/es/index.typings.mjs +25 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +26 -1
- package/build/es/meta.mjs +25 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +26 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +72 -1
- package/build/internal/cjs/index.typings.js +26 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +95 -1
- package/build/internal/cjs/meta.js +26 -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 +25 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +72 -1
- package/build/internal/es/index.typings.mjs +25 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +95 -1
- package/build/internal/es/meta.mjs +25 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -47,6 +47,12 @@ interface Package {
|
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
49
|
_updatedDate?: Date | null;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the parent Wix account. Equal to the account ID if there is no parent account.
|
|
52
|
+
* @internal
|
|
53
|
+
* @format GUID
|
|
54
|
+
*/
|
|
55
|
+
parentAccountId?: string | null;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* A product instance is a specific instance of a Wix service that a reseller
|
|
@@ -305,6 +311,25 @@ interface Sorting {
|
|
|
305
311
|
fieldName?: string;
|
|
306
312
|
/** Sort order. */
|
|
307
313
|
order?: SortOrderWithLiterals;
|
|
314
|
+
/**
|
|
315
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
316
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
317
|
+
*
|
|
318
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
319
|
+
*
|
|
320
|
+
* Example:
|
|
321
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
322
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
323
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
324
|
+
* @internal
|
|
325
|
+
* @maxSize 10
|
|
326
|
+
*/
|
|
327
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
328
|
+
/**
|
|
329
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
330
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
331
|
+
*/
|
|
332
|
+
origin?: AddressLocation;
|
|
308
333
|
}
|
|
309
334
|
declare enum SortOrder {
|
|
310
335
|
ASC = "ASC",
|
|
@@ -312,6 +337,12 @@ declare enum SortOrder {
|
|
|
312
337
|
}
|
|
313
338
|
/** @enumType */
|
|
314
339
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
340
|
+
interface AddressLocation {
|
|
341
|
+
/** Address latitude. */
|
|
342
|
+
latitude?: number | null;
|
|
343
|
+
/** Address longitude. */
|
|
344
|
+
longitude?: number | null;
|
|
345
|
+
}
|
|
315
346
|
interface Paging {
|
|
316
347
|
/** Number of items to load. */
|
|
317
348
|
limit?: number | null;
|
|
@@ -355,6 +386,13 @@ interface PagingMetadataV2 {
|
|
|
355
386
|
tooManyToCount?: boolean | null;
|
|
356
387
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
357
388
|
cursors?: Cursors;
|
|
389
|
+
/**
|
|
390
|
+
* Indicates if there are more results after the current page.
|
|
391
|
+
* If `true`, another page of results can be retrieved.
|
|
392
|
+
* If `false`, this is the last page.
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
hasNext?: boolean | null;
|
|
358
396
|
}
|
|
359
397
|
interface Cursors {
|
|
360
398
|
/**
|
|
@@ -1175,7 +1213,21 @@ interface SubscriptionPendingChange {
|
|
|
1175
1213
|
interface RecurringChargeAttemptFailed {
|
|
1176
1214
|
/** Subscription for which the recurring charge attempt has failed. */
|
|
1177
1215
|
subscription?: Subscription;
|
|
1216
|
+
/** Reason the recurring charge attempt failed or could not be made. */
|
|
1217
|
+
reason?: RecurringChargeFailureReasonWithLiterals;
|
|
1218
|
+
/**
|
|
1219
|
+
* ID of the invoice associated with the recurring charge failure.
|
|
1220
|
+
* @maxLength 36
|
|
1221
|
+
*/
|
|
1222
|
+
invoiceId?: string | null;
|
|
1178
1223
|
}
|
|
1224
|
+
declare enum RecurringChargeFailureReason {
|
|
1225
|
+
CHARGE_FAILURE = "CHARGE_FAILURE",
|
|
1226
|
+
CREDIT_CARD_EXPIRED = "CREDIT_CARD_EXPIRED",
|
|
1227
|
+
NO_ACTIVE_BILLING_ACCOUNT = "NO_ACTIVE_BILLING_ACCOUNT"
|
|
1228
|
+
}
|
|
1229
|
+
/** @enumType */
|
|
1230
|
+
type RecurringChargeFailureReasonWithLiterals = RecurringChargeFailureReason | 'CHARGE_FAILURE' | 'CREDIT_CARD_EXPIRED' | 'NO_ACTIVE_BILLING_ACCOUNT';
|
|
1179
1231
|
/** Triggered when a subscription is updated. */
|
|
1180
1232
|
interface SubscriptionUpdated {
|
|
1181
1233
|
/** Updated subscription. */
|
|
@@ -1822,6 +1874,25 @@ type PackageQuery = {
|
|
|
1822
1874
|
Sort order.
|
|
1823
1875
|
*/
|
|
1824
1876
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1877
|
+
/**
|
|
1878
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
1879
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
1880
|
+
|
|
1881
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
1882
|
+
|
|
1883
|
+
Example:
|
|
1884
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
1885
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
1886
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
1887
|
+
@internal: undefined,
|
|
1888
|
+
@maxSize: 10
|
|
1889
|
+
*/
|
|
1890
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
1891
|
+
/**
|
|
1892
|
+
Origin point for geo-distance sorting on a GEO field
|
|
1893
|
+
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
1894
|
+
*/
|
|
1895
|
+
origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
|
|
1825
1896
|
}[];
|
|
1826
1897
|
};
|
|
1827
1898
|
declare const utils: {
|
|
@@ -2025,4 +2096,4 @@ interface UpdatePackageExternalIdIdentifiers {
|
|
|
2025
2096
|
externalId: string;
|
|
2026
2097
|
}
|
|
2027
2098
|
|
|
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 };
|
|
2099
|
+
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 };
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/premium-reseller-v1-packages-packages.http.ts
|
|
10
10
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
12
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
13
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
14
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -23,6 +24,12 @@ function resolveComWixpressPremiumResellerPackagesV1PackagesUrl(opts) {
|
|
|
23
24
|
srcPath: "/resellers/v2/packages",
|
|
24
25
|
destPath: "/v2/packages"
|
|
25
26
|
}
|
|
27
|
+
],
|
|
28
|
+
"api._api_base_domain_": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/premium-reseller-packages",
|
|
31
|
+
destPath: ""
|
|
32
|
+
}
|
|
26
33
|
]
|
|
27
34
|
};
|
|
28
35
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -182,6 +189,15 @@ function getPackage(payload) {
|
|
|
182
189
|
}
|
|
183
190
|
function queryPackages(payload) {
|
|
184
191
|
function __queryPackages({ host }) {
|
|
192
|
+
const serializedData = transformPaths(payload, [
|
|
193
|
+
{
|
|
194
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
195
|
+
paths: [
|
|
196
|
+
{ path: "query.sort.origin.latitude" },
|
|
197
|
+
{ path: "query.sort.origin.longitude" }
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
]);
|
|
185
201
|
const metadata = {
|
|
186
202
|
entityFqdn: "wix.premium.reseller.v1.packages",
|
|
187
203
|
method: "POST",
|
|
@@ -192,10 +208,10 @@ function queryPackages(payload) {
|
|
|
192
208
|
},
|
|
193
209
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
194
210
|
protoPath: "/v1/packages/query",
|
|
195
|
-
data:
|
|
211
|
+
data: serializedData,
|
|
196
212
|
host
|
|
197
213
|
}),
|
|
198
|
-
data:
|
|
214
|
+
data: serializedData,
|
|
199
215
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
200
216
|
{
|
|
201
217
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -495,6 +511,12 @@ var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
|
|
|
495
511
|
ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
|
|
496
512
|
return ProductAdjustment2;
|
|
497
513
|
})(ProductAdjustment || {});
|
|
514
|
+
var RecurringChargeFailureReason = /* @__PURE__ */ ((RecurringChargeFailureReason2) => {
|
|
515
|
+
RecurringChargeFailureReason2["CHARGE_FAILURE"] = "CHARGE_FAILURE";
|
|
516
|
+
RecurringChargeFailureReason2["CREDIT_CARD_EXPIRED"] = "CREDIT_CARD_EXPIRED";
|
|
517
|
+
RecurringChargeFailureReason2["NO_ACTIVE_BILLING_ACCOUNT"] = "NO_ACTIVE_BILLING_ACCOUNT";
|
|
518
|
+
return RecurringChargeFailureReason2;
|
|
519
|
+
})(RecurringChargeFailureReason || {});
|
|
498
520
|
var FieldToUpdate = /* @__PURE__ */ ((FieldToUpdate2) => {
|
|
499
521
|
FieldToUpdate2["STATUS"] = "STATUS";
|
|
500
522
|
FieldToUpdate2["COUNTRY_CODE"] = "COUNTRY_CODE";
|
|
@@ -863,6 +885,7 @@ export {
|
|
|
863
885
|
ProductAdjustment,
|
|
864
886
|
ProviderName,
|
|
865
887
|
ReactivationReasonEnum,
|
|
888
|
+
RecurringChargeFailureReason,
|
|
866
889
|
RefundType,
|
|
867
890
|
SortOrder,
|
|
868
891
|
Status,
|