@wix/auto_sdk_events_orders 1.0.22 → 1.0.24
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 +17 -7
- package/build/cjs/index.js +2 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{events-v1-order-orders.universal-C56YAmFe.d.ts → index.typings.d.ts} +402 -1
- package/build/cjs/index.typings.js +2438 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +17 -7
- package/build/es/index.mjs +2 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{events-v1-order-orders.universal-C56YAmFe.d.mts → index.typings.d.mts} +402 -1
- package/build/es/index.typings.mjs +2381 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +17 -7
- package/build/internal/cjs/index.js +2 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{events-v1-order-orders.universal-C56YAmFe.d.ts → index.typings.d.ts} +402 -1
- package/build/internal/cjs/index.typings.js +2438 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +17 -7
- package/build/internal/es/index.mjs +2 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{events-v1-order-orders.universal-C56YAmFe.d.mts → index.typings.d.mts} +402 -1
- package/build/internal/es/index.typings.mjs +2381 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { ListOrdersOptions, ListOrdersResponse, GetOrderIdentifiers, GetOrderOptions, Order, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, UpdateOrderApplicationErrors, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, BulkUpdateOrdersApplicationErrors, ConfirmOrderOptions, ConfirmOrderResponse, ConfirmOrderApplicationErrors, GetSummaryOptions, GetSummaryResponse, CaptureAuthorizedPaymentOptions, CaptureAuthorizedPaymentApplicationErrors, VoidAuthorizedPaymentOptions, VoidAuthorizedPaymentApplicationErrors, GetCheckoutOptionsResponse, ListAvailableTicketsOptions, ListAvailableTicketsResponse, QueryAvailableTicketsOptions, QueryAvailableTicketsResponse, CreateReservationOptions, CreateReservationResponse, GetInvoiceOptions, GetInvoiceResponse, CheckoutOptionsForRequest, CheckoutResponse, UpdateCheckoutOptions, UpdateCheckoutResponse, PosCheckoutOptions, PosCheckoutResponse, OrderDeletedEnvelope, OrderUpdatedEnvelope, OrderConfirmedEnvelope, OrderInitiatedEnvelope, OrderReservationCreatedEnvelope, OrderReservationUpdatedEnvelope } from './index.typings.mjs';
|
|
3
|
+
export { Action, Address, AddressLocation, AddressStreetOneOf, BalanceSummary, BaseEventMetadata, BulkUpdateOrdersRequest, Buyer, CalendarLinks, CancelReservationRequest, CancelReservationResponse, CaptureAuthorizedPaymentRequest, CaptureAuthorizedPaymentResponse, ChannelType, CheckIn, CheckoutOptions, CheckoutRequest, ConfirmOrderRequest, ConfirmReservationRequest, ConfirmReservationResponse, Counts, CouponDiscount, CreateReservationRequest, Dashboard, Discount, DiscountErrors, DiscountItem, DiscountItemDiscountOneOf, DiscountRequest, Error, EventKey, ExpireReservationRequest, ExpireReservationResponse, FacetCounts, Fee, FeeName, FeeType, FindOrderByReservationIdRequest, FindOrderByReservationIdResponse, FormResponse, FormattedAddress, GetCheckoutOptionsRequest, GetInvoicePreviewRequest, GetInvoiceRequest, GetOrderRequest, GetOrderResponse, GetPaymentInfoRequest, GetPaymentInfoResponse, GetReservationRequest, GetReservationResponse, GetSummaryRequest, GiftCardErrors, GiftCardErrorsError, GiftCardPaymentDetails, Guest, GuestDetails, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InputValue, Invoice, Item, ListAvailableTicketsRequest, ListOrdersRequest, MessageEnvelope, Money, OnlineConferencingLogin, OrderConfirmed, OrderDeleted, OrderFacetCounts, OrderFacets, OrderFieldset, OrderInitiated, OrderPageUrls, OrderPaid, OrderStatus, OrderTag, OrderType, OrderUpdated, PaidPlanBenefit, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PaymentDetails, PaymentTransaction, PaymentTransactionEvent, PaymentTransactionSummary, PercentDiscount, PosCheckoutRequest, PricingOption, PricingOptions, QueryAvailableTicketsRequest, QueryEventsWithPaidReservationsRequest, QueryEventsWithPaidReservationsResponse, RawHttpResponse, Reservation, ReservationCount, ReservationCreated, ReservationStatus, ReservationUpdated, ResponseMetaData, ScheduledActionEnumAction, StandardDetails, State, StreetAddress, Subdivision, SubdivisionType, Tax, TaxType, Ticket, TicketDefinition, TicketDefinitionFieldset, TicketDetails, TicketPricing, TicketPricingPriceOneOf, TicketQuantity, TicketReservation, TicketReservationQuantity, TicketSalePeriod, TicketSaleStatus, TicketSales, TicketingTicket, Type, UpdateCheckoutRequest, UpdateOrderRequest, VoidAuthorizedPaymentRequest, VoidAuthorizedPaymentResponse, WebhookIdentityType, WixFeeConfig } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature;
|
|
6
6
|
interface ListOrdersSignature {
|
|
@@ -30,7 +30,9 @@ interface UpdateOrderSignature {
|
|
|
30
30
|
* @param - An object representing the available options for updating an order.
|
|
31
31
|
* @param - An object containing identifiers for the order to be updated.
|
|
32
32
|
*/
|
|
33
|
-
(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions | undefined): Promise<UpdateOrderResponse
|
|
33
|
+
(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions | undefined): Promise<UpdateOrderResponse & {
|
|
34
|
+
__applicationErrorsType?: UpdateOrderApplicationErrors | undefined;
|
|
35
|
+
}>;
|
|
34
36
|
}
|
|
35
37
|
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
36
38
|
interface BulkUpdateOrdersSignature {
|
|
@@ -39,7 +41,9 @@ interface BulkUpdateOrdersSignature {
|
|
|
39
41
|
* @param - An object representing the available options for confirming an order.
|
|
40
42
|
* @param - Event ID to which the order belongs.
|
|
41
43
|
*/
|
|
42
|
-
(eventId: string, options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse
|
|
44
|
+
(eventId: string, options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse & {
|
|
45
|
+
__applicationErrorsType?: BulkUpdateOrdersApplicationErrors | undefined;
|
|
46
|
+
}>;
|
|
43
47
|
}
|
|
44
48
|
declare function confirmOrder$1(httpClient: HttpClient): ConfirmOrderSignature;
|
|
45
49
|
interface ConfirmOrderSignature {
|
|
@@ -52,7 +56,9 @@ interface ConfirmOrderSignature {
|
|
|
52
56
|
* @param - An object representing the available options for confirming an order.
|
|
53
57
|
* @param - Event ID to which the order belongs.
|
|
54
58
|
*/
|
|
55
|
-
(eventId: string, options?: ConfirmOrderOptions | undefined): Promise<ConfirmOrderResponse
|
|
59
|
+
(eventId: string, options?: ConfirmOrderOptions | undefined): Promise<ConfirmOrderResponse & {
|
|
60
|
+
__applicationErrorsType?: ConfirmOrderApplicationErrors | undefined;
|
|
61
|
+
}>;
|
|
56
62
|
}
|
|
57
63
|
declare function getSummary$1(httpClient: HttpClient): GetSummarySignature;
|
|
58
64
|
interface GetSummarySignature {
|
|
@@ -73,7 +79,9 @@ interface CaptureAuthorizedPaymentSignature {
|
|
|
73
79
|
* For orders with non-authorized payments request will fail.
|
|
74
80
|
* @param - Order number.
|
|
75
81
|
*/
|
|
76
|
-
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions | undefined): Promise<void
|
|
82
|
+
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions | undefined): Promise<void & {
|
|
83
|
+
__applicationErrorsType?: CaptureAuthorizedPaymentApplicationErrors | undefined;
|
|
84
|
+
}>;
|
|
77
85
|
}
|
|
78
86
|
declare function voidAuthorizedPayment$1(httpClient: HttpClient): VoidAuthorizedPaymentSignature;
|
|
79
87
|
interface VoidAuthorizedPaymentSignature {
|
|
@@ -83,7 +91,9 @@ interface VoidAuthorizedPaymentSignature {
|
|
|
83
91
|
* For orders with non-authorized payments request will fail.
|
|
84
92
|
* @param - Order number.
|
|
85
93
|
*/
|
|
86
|
-
(orderNumber: string, options?: VoidAuthorizedPaymentOptions | undefined): Promise<void
|
|
94
|
+
(orderNumber: string, options?: VoidAuthorizedPaymentOptions | undefined): Promise<void & {
|
|
95
|
+
__applicationErrorsType?: VoidAuthorizedPaymentApplicationErrors | undefined;
|
|
96
|
+
}>;
|
|
87
97
|
}
|
|
88
98
|
declare function getCheckoutOptions$1(httpClient: HttpClient): GetCheckoutOptionsSignature;
|
|
89
99
|
interface GetCheckoutOptionsSignature {
|
|
@@ -1954,6 +1954,7 @@ async function captureAuthorizedPayment2(orderNumber, options) {
|
|
|
1954
1954
|
try {
|
|
1955
1955
|
const result = await httpClient.request(reqOpts);
|
|
1956
1956
|
sideEffects?.onSuccess?.(result);
|
|
1957
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1957
1958
|
} catch (err) {
|
|
1958
1959
|
const transformedError = sdkTransformError(
|
|
1959
1960
|
err,
|
|
@@ -1982,6 +1983,7 @@ async function voidAuthorizedPayment2(orderNumber, options) {
|
|
|
1982
1983
|
try {
|
|
1983
1984
|
const result = await httpClient.request(reqOpts);
|
|
1984
1985
|
sideEffects?.onSuccess?.(result);
|
|
1986
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1985
1987
|
} catch (err) {
|
|
1986
1988
|
const transformedError = sdkTransformError(
|
|
1987
1989
|
err,
|