@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
|
@@ -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
|
/**
|
|
@@ -1112,10 +1150,11 @@ declare enum ContractSwitchType {
|
|
|
1112
1150
|
PENDING_CHANGES = "PENDING_CHANGES",
|
|
1113
1151
|
DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL",
|
|
1114
1152
|
FIXED_BILLING_DATE_PRORATION = "FIXED_BILLING_DATE_PRORATION",
|
|
1115
|
-
IMMEDIATE_SWITCH = "IMMEDIATE_SWITCH"
|
|
1153
|
+
IMMEDIATE_SWITCH = "IMMEDIATE_SWITCH",
|
|
1154
|
+
FLAT_PRICE_DIFFERENCE = "FLAT_PRICE_DIFFERENCE"
|
|
1116
1155
|
}
|
|
1117
1156
|
/** @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';
|
|
1157
|
+
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
1158
|
declare enum ContractSwitchReason {
|
|
1120
1159
|
EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
|
|
1121
1160
|
PRICE_INCREASE = "PRICE_INCREASE"
|
|
@@ -1175,7 +1214,21 @@ interface SubscriptionPendingChange {
|
|
|
1175
1214
|
interface RecurringChargeAttemptFailed {
|
|
1176
1215
|
/** Subscription for which the recurring charge attempt has failed. */
|
|
1177
1216
|
subscription?: Subscription;
|
|
1217
|
+
/** Reason the recurring charge attempt failed or could not be made. */
|
|
1218
|
+
reason?: RecurringChargeFailureReasonWithLiterals;
|
|
1219
|
+
/**
|
|
1220
|
+
* ID of the invoice associated with the recurring charge failure.
|
|
1221
|
+
* @maxLength 36
|
|
1222
|
+
*/
|
|
1223
|
+
invoiceId?: string | null;
|
|
1224
|
+
}
|
|
1225
|
+
declare enum RecurringChargeFailureReason {
|
|
1226
|
+
CHARGE_FAILURE = "CHARGE_FAILURE",
|
|
1227
|
+
CREDIT_CARD_EXPIRED = "CREDIT_CARD_EXPIRED",
|
|
1228
|
+
NO_ACTIVE_BILLING_ACCOUNT = "NO_ACTIVE_BILLING_ACCOUNT"
|
|
1178
1229
|
}
|
|
1230
|
+
/** @enumType */
|
|
1231
|
+
type RecurringChargeFailureReasonWithLiterals = RecurringChargeFailureReason | 'CHARGE_FAILURE' | 'CREDIT_CARD_EXPIRED' | 'NO_ACTIVE_BILLING_ACCOUNT';
|
|
1179
1232
|
/** Triggered when a subscription is updated. */
|
|
1180
1233
|
interface SubscriptionUpdated {
|
|
1181
1234
|
/** Updated subscription. */
|
|
@@ -1335,8 +1388,18 @@ interface DomainEventBodyOneOf {
|
|
|
1335
1388
|
}
|
|
1336
1389
|
interface EntityCreatedEvent {
|
|
1337
1390
|
entityAsJson?: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
1393
|
+
* @internal
|
|
1394
|
+
*/
|
|
1395
|
+
triggeredByUndelete?: boolean | null;
|
|
1338
1396
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1339
1397
|
restoreInfo?: RestoreInfo;
|
|
1398
|
+
/**
|
|
1399
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
1400
|
+
* @internal
|
|
1401
|
+
*/
|
|
1402
|
+
additionalMetadataAsJson?: string | null;
|
|
1340
1403
|
}
|
|
1341
1404
|
interface RestoreInfo {
|
|
1342
1405
|
deletedDate?: Date | null;
|
|
@@ -1348,10 +1411,42 @@ interface EntityUpdatedEvent {
|
|
|
1348
1411
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1349
1412
|
*/
|
|
1350
1413
|
currentEntityAsJson?: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
1416
|
+
* wont populate it / have any reference to it in the API.
|
|
1417
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
1418
|
+
* the developer should send only the new (current) entity.
|
|
1419
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
1420
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
1421
|
+
* @internal
|
|
1422
|
+
* @deprecated
|
|
1423
|
+
*/
|
|
1424
|
+
previousEntityAsJson?: string | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
1427
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
1428
|
+
* @internal
|
|
1429
|
+
*/
|
|
1430
|
+
modifiedFields?: Record<string, any>;
|
|
1431
|
+
/**
|
|
1432
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
1433
|
+
* @internal
|
|
1434
|
+
*/
|
|
1435
|
+
additionalMetadataAsJson?: string | null;
|
|
1351
1436
|
}
|
|
1352
1437
|
interface EntityDeletedEvent {
|
|
1438
|
+
/**
|
|
1439
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
1440
|
+
* @internal
|
|
1441
|
+
*/
|
|
1442
|
+
movedToTrash?: boolean | null;
|
|
1353
1443
|
/** Entity that was deleted. */
|
|
1354
1444
|
deletedEntityAsJson?: string | null;
|
|
1445
|
+
/**
|
|
1446
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
1447
|
+
* @internal
|
|
1448
|
+
*/
|
|
1449
|
+
additionalMetadataAsJson?: string | null;
|
|
1355
1450
|
}
|
|
1356
1451
|
interface ActionEvent {
|
|
1357
1452
|
bodyAsJson?: string;
|
|
@@ -1521,4 +1616,4 @@ declare function updatePackageExternalId(): __PublicMethodMetaInfo<'PATCH', {
|
|
|
1521
1616
|
externalId: string;
|
|
1522
1617
|
}, UpdatePackageExternalIdRequest$1, UpdatePackageExternalIdRequest, UpdatePackageExternalIdResponse$1, UpdatePackageExternalIdResponse>;
|
|
1523
1618
|
|
|
1524
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequestOriginal, type AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponseOriginal, type AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecificationsOriginal, type AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequestOriginal, type AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponseOriginal, type AssignedProductInstanceToSite as AssignedProductInstanceToSiteOriginal, type BillingReference as BillingReferenceOriginal, type CancelPackageRequest as CancelPackageRequestOriginal, type CancelPackageResponse as CancelPackageResponseOriginal, type CancelProductInstanceRequest as CancelProductInstanceRequestOriginal, type CancelProductInstanceResponse as CancelProductInstanceResponseOriginal, type CancellationDetails as CancellationDetailsOriginal, ContractSwitchReason as ContractSwitchReasonOriginal, type ContractSwitchReasonWithLiterals as ContractSwitchReasonWithLiteralsOriginal, ContractSwitchType as ContractSwitchTypeOriginal, type ContractSwitchTypeWithLiterals as ContractSwitchTypeWithLiteralsOriginal, type ContractSwitched as ContractSwitchedOriginal, type CountPackagesRequest as CountPackagesRequestOriginal, type CountPackagesResponse as CountPackagesResponseOriginal, type CreatePackageRequest as CreatePackageRequestOriginal, type CreatePackageResponse as CreatePackageResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CycleCycleSelectorOneOf as CycleCycleSelectorOneOfOriginal, CycleDescriptorType as CycleDescriptorTypeOriginal, type CycleDescriptorTypeWithLiterals as CycleDescriptorTypeWithLiteralsOriginal, type CycleInterval as CycleIntervalOriginal, type Cycle as CycleOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, FailureReasonCode as FailureReasonCodeOriginal, type FailureReasonCodeWithLiterals as FailureReasonCodeWithLiteralsOriginal, type FailureReason as FailureReasonOriginal, type FailureReportRequest as FailureReportRequestOriginal, FieldToUpdate as FieldToUpdateOriginal, type FieldToUpdateWithLiterals as FieldToUpdateWithLiteralsOriginal, type FixBrokenMigrationRequest as FixBrokenMigrationRequestOriginal, type FixBrokenMigrationResponse as FixBrokenMigrationResponseOriginal, type GetPackageRequest as GetPackageRequestOriginal, type GetPackageResponse as GetPackageResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, Initiator as InitiatorOriginal, type InitiatorWithLiterals as InitiatorWithLiteralsOriginal, IntervalIntervalUnit as IntervalIntervalUnitOriginal, type IntervalIntervalUnitWithLiterals as IntervalIntervalUnitWithLiteralsOriginal, type Interval as IntervalOriginal, IntervalUnit as IntervalUnitOriginal, type IntervalUnitWithLiterals as IntervalUnitWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequestOriginal, type MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponseOriginal, type OneTime as OneTimeOriginal, type PackageCanceled as PackageCanceledOriginal, type Package as PackageOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PriceIncreaseTrigger as PriceIncreaseTriggerOriginal, type PriceIncreaseTriggerWithLiterals as PriceIncreaseTriggerWithLiteralsOriginal, ProductAdjustment as ProductAdjustmentOriginal, type ProductAdjustmentWithLiterals as ProductAdjustmentWithLiteralsOriginal, type ProductInstanceCanceled as ProductInstanceCanceledOriginal, type ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOfOriginal, type ProductInstanceCycle as ProductInstanceCycleOriginal, type ProductInstanceFailed as ProductInstanceFailedOriginal, type ProductInstance as ProductInstanceOriginal, type ProductInstanceUpdated as ProductInstanceUpdatedOriginal, type ProductPriceIncreaseData as ProductPriceIncreaseDataOriginal, ProviderName as ProviderNameOriginal, type ProviderNameWithLiterals as ProviderNameWithLiteralsOriginal, type QueryPackagesRequest as QueryPackagesRequestOriginal, type QueryPackagesResponse as QueryPackagesResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type ReactivationData as ReactivationDataOriginal, ReactivationReasonEnum as ReactivationReasonEnumOriginal, type ReactivationReasonEnumWithLiterals as ReactivationReasonEnumWithLiteralsOriginal, type RecurringChargeAttemptFailed as RecurringChargeAttemptFailedOriginal, type RecurringChargeSucceeded as RecurringChargeSucceededOriginal, RefundType as RefundTypeOriginal, type RefundTypeWithLiterals as RefundTypeWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionAssigned as SubscriptionAssignedOriginal, type SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOffOriginal, type SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOnOriginal, type SubscriptionCancelled as SubscriptionCancelledOriginal, type SubscriptionCreated as SubscriptionCreatedOriginal, type SubscriptionEventEventOneOf as SubscriptionEventEventOneOfOriginal, type SubscriptionEvent as SubscriptionEventOriginal, type SubscriptionMigratedFromVista as SubscriptionMigratedFromVistaOriginal, type SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriodOriginal, type Subscription as SubscriptionOriginal, type SubscriptionPendingChange as SubscriptionPendingChangeOriginal, SubscriptionStatus as SubscriptionStatusOriginal, type SubscriptionStatusWithLiterals as SubscriptionStatusWithLiteralsOriginal, type SubscriptionTransferred as SubscriptionTransferredOriginal, type SubscriptionUnassigned as SubscriptionUnassignedOriginal, type SubscriptionUpdated as SubscriptionUpdatedOriginal, type SubscriptionVistaMigrationReverted as SubscriptionVistaMigrationRevertedOriginal, type UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequestOriginal, type UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponseOriginal, UnassignReason as UnassignReasonOriginal, type UnassignReasonWithLiterals as UnassignReasonWithLiteralsOriginal, type UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSiteOriginal, type UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequestOriginal, type UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponseOriginal, type UpdateProductInstanceRequest as UpdateProductInstanceRequestOriginal, type UpdateProductInstanceResponse as UpdateProductInstanceResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };
|
|
1619
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type AdjustProductInstanceSpecificationsRequest as AdjustProductInstanceSpecificationsRequestOriginal, type AdjustProductInstanceSpecificationsResponse as AdjustProductInstanceSpecificationsResponseOriginal, type AdjustedProductInstanceSpecifications as AdjustedProductInstanceSpecificationsOriginal, type AssignProductInstanceToSiteRequest as AssignProductInstanceToSiteRequestOriginal, type AssignProductInstanceToSiteResponse as AssignProductInstanceToSiteResponseOriginal, type AssignedProductInstanceToSite as AssignedProductInstanceToSiteOriginal, type BillingReference as BillingReferenceOriginal, type CancelPackageRequest as CancelPackageRequestOriginal, type CancelPackageResponse as CancelPackageResponseOriginal, type CancelProductInstanceRequest as CancelProductInstanceRequestOriginal, type CancelProductInstanceResponse as CancelProductInstanceResponseOriginal, type CancellationDetails as CancellationDetailsOriginal, ContractSwitchReason as ContractSwitchReasonOriginal, type ContractSwitchReasonWithLiterals as ContractSwitchReasonWithLiteralsOriginal, ContractSwitchType as ContractSwitchTypeOriginal, type ContractSwitchTypeWithLiterals as ContractSwitchTypeWithLiteralsOriginal, type ContractSwitched as ContractSwitchedOriginal, type CountPackagesRequest as CountPackagesRequestOriginal, type CountPackagesResponse as CountPackagesResponseOriginal, type CreatePackageRequest as CreatePackageRequestOriginal, type CreatePackageResponse as CreatePackageResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CycleCycleSelectorOneOf as CycleCycleSelectorOneOfOriginal, CycleDescriptorType as CycleDescriptorTypeOriginal, type CycleDescriptorTypeWithLiterals as CycleDescriptorTypeWithLiteralsOriginal, type CycleInterval as CycleIntervalOriginal, type Cycle as CycleOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, FailureReasonCode as FailureReasonCodeOriginal, type FailureReasonCodeWithLiterals as FailureReasonCodeWithLiteralsOriginal, type FailureReason as FailureReasonOriginal, type FailureReportRequest as FailureReportRequestOriginal, FieldToUpdate as FieldToUpdateOriginal, type FieldToUpdateWithLiterals as FieldToUpdateWithLiteralsOriginal, type FixBrokenMigrationRequest as FixBrokenMigrationRequestOriginal, type FixBrokenMigrationResponse as FixBrokenMigrationResponseOriginal, type GetPackageRequest as GetPackageRequestOriginal, type GetPackageResponse as GetPackageResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, Initiator as InitiatorOriginal, type InitiatorWithLiterals as InitiatorWithLiteralsOriginal, IntervalIntervalUnit as IntervalIntervalUnitOriginal, type IntervalIntervalUnitWithLiterals as IntervalIntervalUnitWithLiteralsOriginal, type Interval as IntervalOriginal, IntervalUnit as IntervalUnitOriginal, type IntervalUnitWithLiterals as IntervalUnitWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrateSubscriptionToPackagesRequest as MigrateSubscriptionToPackagesRequestOriginal, type MigrateSubscriptionToPackagesResponse as MigrateSubscriptionToPackagesResponseOriginal, type OneTime as OneTimeOriginal, type PackageCanceled as PackageCanceledOriginal, type Package as PackageOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PriceIncreaseTrigger as PriceIncreaseTriggerOriginal, type PriceIncreaseTriggerWithLiterals as PriceIncreaseTriggerWithLiteralsOriginal, ProductAdjustment as ProductAdjustmentOriginal, type ProductAdjustmentWithLiterals as ProductAdjustmentWithLiteralsOriginal, type ProductInstanceCanceled as ProductInstanceCanceledOriginal, type ProductInstanceContractDetailsOneOf as ProductInstanceContractDetailsOneOfOriginal, type ProductInstanceCycle as ProductInstanceCycleOriginal, type ProductInstanceFailed as ProductInstanceFailedOriginal, type ProductInstance as ProductInstanceOriginal, type ProductInstanceUpdated as ProductInstanceUpdatedOriginal, type ProductPriceIncreaseData as ProductPriceIncreaseDataOriginal, ProviderName as ProviderNameOriginal, type ProviderNameWithLiterals as ProviderNameWithLiteralsOriginal, type QueryPackagesRequest as QueryPackagesRequestOriginal, type QueryPackagesResponse as QueryPackagesResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type ReactivationData as ReactivationDataOriginal, ReactivationReasonEnum as ReactivationReasonEnumOriginal, type ReactivationReasonEnumWithLiterals as ReactivationReasonEnumWithLiteralsOriginal, type RecurringChargeAttemptFailed as RecurringChargeAttemptFailedOriginal, RecurringChargeFailureReason as RecurringChargeFailureReasonOriginal, type RecurringChargeFailureReasonWithLiterals as RecurringChargeFailureReasonWithLiteralsOriginal, type RecurringChargeSucceeded as RecurringChargeSucceededOriginal, RefundType as RefundTypeOriginal, type RefundTypeWithLiterals as RefundTypeWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionAssigned as SubscriptionAssignedOriginal, type SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOffOriginal, type SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOnOriginal, type SubscriptionCancelled as SubscriptionCancelledOriginal, type SubscriptionCreated as SubscriptionCreatedOriginal, type SubscriptionEventEventOneOf as SubscriptionEventEventOneOfOriginal, type SubscriptionEvent as SubscriptionEventOriginal, type SubscriptionMigratedFromVista as SubscriptionMigratedFromVistaOriginal, type SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriodOriginal, type Subscription as SubscriptionOriginal, type SubscriptionPendingChange as SubscriptionPendingChangeOriginal, SubscriptionStatus as SubscriptionStatusOriginal, type SubscriptionStatusWithLiterals as SubscriptionStatusWithLiteralsOriginal, type SubscriptionTransferred as SubscriptionTransferredOriginal, type SubscriptionUnassigned as SubscriptionUnassignedOriginal, type SubscriptionUpdated as SubscriptionUpdatedOriginal, type SubscriptionVistaMigrationReverted as SubscriptionVistaMigrationRevertedOriginal, type UnassignProductInstanceFromSiteRequest as UnassignProductInstanceFromSiteRequestOriginal, type UnassignProductInstanceFromSiteResponse as UnassignProductInstanceFromSiteResponseOriginal, UnassignReason as UnassignReasonOriginal, type UnassignReasonWithLiterals as UnassignReasonWithLiteralsOriginal, type UnassignedProductInstanceFromSite as UnassignedProductInstanceFromSiteOriginal, type UpdatePackageExternalIdRequest as UpdatePackageExternalIdRequestOriginal, type UpdatePackageExternalIdResponse as UpdatePackageExternalIdResponseOriginal, type UpdateProductInstanceRequest as UpdateProductInstanceRequestOriginal, type UpdateProductInstanceResponse as UpdateProductInstanceResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };
|
|
@@ -32,6 +32,7 @@ __export(meta_exports, {
|
|
|
32
32
|
ProductAdjustmentOriginal: () => ProductAdjustment,
|
|
33
33
|
ProviderNameOriginal: () => ProviderName,
|
|
34
34
|
ReactivationReasonEnumOriginal: () => ReactivationReasonEnum,
|
|
35
|
+
RecurringChargeFailureReasonOriginal: () => RecurringChargeFailureReason,
|
|
35
36
|
RefundTypeOriginal: () => RefundType,
|
|
36
37
|
SortOrderOriginal: () => SortOrder,
|
|
37
38
|
StatusOriginal: () => Status,
|
|
@@ -53,6 +54,7 @@ module.exports = __toCommonJS(meta_exports);
|
|
|
53
54
|
|
|
54
55
|
// src/premium-reseller-v1-packages-packages.http.ts
|
|
55
56
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
57
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
56
58
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
57
59
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
58
60
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -68,6 +70,12 @@ function resolveComWixpressPremiumResellerPackagesV1PackagesUrl(opts) {
|
|
|
68
70
|
srcPath: "/resellers/v2/packages",
|
|
69
71
|
destPath: "/v2/packages"
|
|
70
72
|
}
|
|
73
|
+
],
|
|
74
|
+
"api._api_base_domain_": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/premium-reseller-packages",
|
|
77
|
+
destPath: ""
|
|
78
|
+
}
|
|
71
79
|
]
|
|
72
80
|
};
|
|
73
81
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -227,6 +235,15 @@ function getPackage(payload) {
|
|
|
227
235
|
}
|
|
228
236
|
function queryPackages(payload) {
|
|
229
237
|
function __queryPackages({ host }) {
|
|
238
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
239
|
+
{
|
|
240
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
241
|
+
paths: [
|
|
242
|
+
{ path: "query.sort.origin.latitude" },
|
|
243
|
+
{ path: "query.sort.origin.longitude" }
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
]);
|
|
230
247
|
const metadata = {
|
|
231
248
|
entityFqdn: "wix.premium.reseller.v1.packages",
|
|
232
249
|
method: "POST",
|
|
@@ -237,10 +254,10 @@ function queryPackages(payload) {
|
|
|
237
254
|
},
|
|
238
255
|
url: resolveComWixpressPremiumResellerPackagesV1PackagesUrl({
|
|
239
256
|
protoPath: "/v1/packages/query",
|
|
240
|
-
data:
|
|
257
|
+
data: serializedData,
|
|
241
258
|
host
|
|
242
259
|
}),
|
|
243
|
-
data:
|
|
260
|
+
data: serializedData,
|
|
244
261
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
245
262
|
{
|
|
246
263
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -520,6 +537,7 @@ var ContractSwitchType = /* @__PURE__ */ ((ContractSwitchType2) => {
|
|
|
520
537
|
ContractSwitchType2["DOWNGRADE_RENEWAL"] = "DOWNGRADE_RENEWAL";
|
|
521
538
|
ContractSwitchType2["FIXED_BILLING_DATE_PRORATION"] = "FIXED_BILLING_DATE_PRORATION";
|
|
522
539
|
ContractSwitchType2["IMMEDIATE_SWITCH"] = "IMMEDIATE_SWITCH";
|
|
540
|
+
ContractSwitchType2["FLAT_PRICE_DIFFERENCE"] = "FLAT_PRICE_DIFFERENCE";
|
|
523
541
|
return ContractSwitchType2;
|
|
524
542
|
})(ContractSwitchType || {});
|
|
525
543
|
var ContractSwitchReason = /* @__PURE__ */ ((ContractSwitchReason2) => {
|
|
@@ -538,6 +556,12 @@ var ProductAdjustment = /* @__PURE__ */ ((ProductAdjustment2) => {
|
|
|
538
556
|
ProductAdjustment2["DOWNGRADE"] = "DOWNGRADE";
|
|
539
557
|
return ProductAdjustment2;
|
|
540
558
|
})(ProductAdjustment || {});
|
|
559
|
+
var RecurringChargeFailureReason = /* @__PURE__ */ ((RecurringChargeFailureReason2) => {
|
|
560
|
+
RecurringChargeFailureReason2["CHARGE_FAILURE"] = "CHARGE_FAILURE";
|
|
561
|
+
RecurringChargeFailureReason2["CREDIT_CARD_EXPIRED"] = "CREDIT_CARD_EXPIRED";
|
|
562
|
+
RecurringChargeFailureReason2["NO_ACTIVE_BILLING_ACCOUNT"] = "NO_ACTIVE_BILLING_ACCOUNT";
|
|
563
|
+
return RecurringChargeFailureReason2;
|
|
564
|
+
})(RecurringChargeFailureReason || {});
|
|
541
565
|
var FieldToUpdate = /* @__PURE__ */ ((FieldToUpdate2) => {
|
|
542
566
|
FieldToUpdate2["STATUS"] = "STATUS";
|
|
543
567
|
FieldToUpdate2["COUNTRY_CODE"] = "COUNTRY_CODE";
|
|
@@ -751,6 +775,7 @@ function updatePackageExternalId2() {
|
|
|
751
775
|
ProductAdjustmentOriginal,
|
|
752
776
|
ProviderNameOriginal,
|
|
753
777
|
ReactivationReasonEnumOriginal,
|
|
778
|
+
RecurringChargeFailureReasonOriginal,
|
|
754
779
|
RefundTypeOriginal,
|
|
755
780
|
SortOrderOriginal,
|
|
756
781
|
StatusOriginal,
|