@wix/redirects 1.0.47 → 1.0.49
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/context/package.json +2 -1
- package/meta/package.json +2 -1
- package/package.json +11 -5
- package/type-bundles/context.bundle.d.ts +533 -0
- package/type-bundles/index.bundle.d.ts +791 -0
- package/type-bundles/meta.bundle.d.ts +832 -0
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
/** Information for redirecting a visitor from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
2
|
+
interface RedirectSession {
|
|
3
|
+
/** ID of the redirect session created. */
|
|
4
|
+
_id?: string;
|
|
5
|
+
/**
|
|
6
|
+
* The full URL of the Wix page to redirect the visitor to. This URL includes query parameters informing Wix where to redirect the visitor back to on the Wix Headless client site.
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
fullUrl?: string;
|
|
10
|
+
/** Details about the URL of the RedirectSession */
|
|
11
|
+
urlDetails?: URLDetails;
|
|
12
|
+
/**
|
|
13
|
+
* The session token to pass to the Wix page to maintain the visitor's identity.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
sessionToken?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* The short URL of the Wix page to redirect the visitor to. This URL includes query parameters informing Wix where to redirect the visitor back to on the Wix Headless client site.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
shortUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
interface URLDetails {
|
|
24
|
+
/**
|
|
25
|
+
* The endpoint of the url (includes the base url and the path to the endpoint, without the query parameters)
|
|
26
|
+
* For example: `https://mysite.com/_api/oauth2/authorize`
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
endpoint?: string;
|
|
30
|
+
/** The query parameters of the url */
|
|
31
|
+
searchParams?: Record<string, string>;
|
|
32
|
+
}
|
|
33
|
+
interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
34
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
35
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
36
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
37
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
38
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
39
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
40
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
41
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
42
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
43
|
+
login?: RedirectSessionLoginParams;
|
|
44
|
+
/** Information required for generating a custom URL to log out from a Wix account. This process invalidates the visitor or member token and clears cookies associated with the Wix domain from their browser. */
|
|
45
|
+
logout?: RedirectSessionLogoutParams;
|
|
46
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
47
|
+
auth?: RedirectSessionAuthParams;
|
|
48
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
49
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
50
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
51
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
52
|
+
/**
|
|
53
|
+
* Details of pages to redirect the visitor back to on the Wix Headless client site.
|
|
54
|
+
*
|
|
55
|
+
* **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
|
|
56
|
+
*/
|
|
57
|
+
callbacks?: CallbackParams;
|
|
58
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
59
|
+
preferences?: RedirectSessionPreferences;
|
|
60
|
+
}
|
|
61
|
+
/** @oneof */
|
|
62
|
+
interface CreateRedirectSessionRequestIntentOneOf {
|
|
63
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
64
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
65
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
66
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
67
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
68
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
69
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
70
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
71
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
72
|
+
login?: RedirectSessionLoginParams;
|
|
73
|
+
/** Information required for generating a custom URL to log out from a Wix account. This process invalidates the visitor or member token and clears cookies associated with the Wix domain from their browser. */
|
|
74
|
+
logout?: RedirectSessionLogoutParams;
|
|
75
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
76
|
+
auth?: RedirectSessionAuthParams;
|
|
77
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
78
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
79
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
80
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
81
|
+
}
|
|
82
|
+
interface RedirectSessionBookingsCheckoutParams {
|
|
83
|
+
/**
|
|
84
|
+
* The timezone to use when presenting the selected slot to users, in [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format. For example, `America/Santiago`.
|
|
85
|
+
*
|
|
86
|
+
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
87
|
+
*/
|
|
88
|
+
timezone?: string;
|
|
89
|
+
/** __Required.__ The calendar slot to check out. */
|
|
90
|
+
slotAvailability?: SlotAvailability;
|
|
91
|
+
}
|
|
92
|
+
interface SlotAvailability {
|
|
93
|
+
/**
|
|
94
|
+
* The slot for the corresponding session, when the session is either a single session
|
|
95
|
+
* or a specific session generated from a recurring session.
|
|
96
|
+
*/
|
|
97
|
+
slot?: Slot;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the slot is bookable. Bookability is determined by checking a
|
|
100
|
+
* session's open slots and booking policies. Locks are not taken into
|
|
101
|
+
* account.
|
|
102
|
+
*/
|
|
103
|
+
bookable?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Total number of spots for this slot.
|
|
106
|
+
* For example, if a session has a total of 10 spots and 3 spots are booked,
|
|
107
|
+
* `spotsTotal` is 10 and `openSpots` is 7.
|
|
108
|
+
*/
|
|
109
|
+
totalSpots?: number | null;
|
|
110
|
+
/** Number of open spots for this slot. */
|
|
111
|
+
openSpots?: number | null;
|
|
112
|
+
/** An object describing the slot's waitlist and its occupancy. */
|
|
113
|
+
waitingList?: WaitingList;
|
|
114
|
+
/** Booking policy violations for the slot. */
|
|
115
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
116
|
+
/**
|
|
117
|
+
* Indicates whether the slot is locked because a waitlist exists.
|
|
118
|
+
* When a slot frees up, the slot is offered to the next customer on the waitlist. Read-only.
|
|
119
|
+
*/
|
|
120
|
+
locked?: boolean | null;
|
|
121
|
+
isFromV2?: boolean;
|
|
122
|
+
}
|
|
123
|
+
interface Slot {
|
|
124
|
+
/**
|
|
125
|
+
* ID for the slot's corresponding session, when the session is either a single session
|
|
126
|
+
* or a specific session generated from a recurring session.
|
|
127
|
+
*/
|
|
128
|
+
sessionId?: string | null;
|
|
129
|
+
/** Service ID. */
|
|
130
|
+
serviceId?: string;
|
|
131
|
+
/** Schedule ID. */
|
|
132
|
+
scheduleId?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
135
|
+
* format.
|
|
136
|
+
*
|
|
137
|
+
* If `timezone` is specified,
|
|
138
|
+
* dates are based on the local date/time. This means that the timezone offset
|
|
139
|
+
* in the `startDate` is ignored.
|
|
140
|
+
*/
|
|
141
|
+
startDate?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* The end time of this slot in
|
|
144
|
+
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
145
|
+
*
|
|
146
|
+
* If `timezone` is specified,
|
|
147
|
+
* dates are based on the local date/time. This means that the timezone offset
|
|
148
|
+
* in the `endDate` is ignored.
|
|
149
|
+
*/
|
|
150
|
+
endDate?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The timezone for which slot availability is to be calculated.
|
|
153
|
+
*
|
|
154
|
+
* Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/sdk/bookings/availabilitycalendar/queryavailability#bookings_availabilitycalendar_queryavailability_handling-daylight-savings-time-dst-for-local-time-zones)
|
|
155
|
+
* when calculating availability.
|
|
156
|
+
*/
|
|
157
|
+
timezone?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* The resource required for this slot. Currently, the only supported resource
|
|
160
|
+
* is the relevant staff member for the slot.
|
|
161
|
+
*/
|
|
162
|
+
resource?: SlotResource;
|
|
163
|
+
/** Geographic location of the slot. */
|
|
164
|
+
location?: Location;
|
|
165
|
+
}
|
|
166
|
+
interface SlotResource {
|
|
167
|
+
/**
|
|
168
|
+
* Resource ID.
|
|
169
|
+
* @readonly
|
|
170
|
+
*/
|
|
171
|
+
_id?: string | null;
|
|
172
|
+
/** Resource name. Read only. */
|
|
173
|
+
name?: string | null;
|
|
174
|
+
}
|
|
175
|
+
interface Location {
|
|
176
|
+
/**
|
|
177
|
+
* Business location ID. Available only for locations that are business locations,
|
|
178
|
+
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
179
|
+
*/
|
|
180
|
+
_id?: string | null;
|
|
181
|
+
/** Location name. */
|
|
182
|
+
name?: string | null;
|
|
183
|
+
/** The full address of this location. */
|
|
184
|
+
formattedAddress?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Location type.
|
|
187
|
+
*
|
|
188
|
+
* - `"OWNER_BUSINESS"`: The business address, as set in the site’s general settings.
|
|
189
|
+
* - `"OWNER_CUSTOM"`: The address as set when creating the service.
|
|
190
|
+
* - `"CUSTOM"`: The address as set for the individual session.
|
|
191
|
+
*/
|
|
192
|
+
locationType?: LocationType;
|
|
193
|
+
}
|
|
194
|
+
declare enum LocationType {
|
|
195
|
+
UNDEFINED = "UNDEFINED",
|
|
196
|
+
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
197
|
+
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
198
|
+
CUSTOM = "CUSTOM"
|
|
199
|
+
}
|
|
200
|
+
interface WaitingList {
|
|
201
|
+
/**
|
|
202
|
+
* Total number of spots and open spots for this waitlist.
|
|
203
|
+
* For example, a Yoga class with 10 waitlist spots and 3 registered
|
|
204
|
+
* on the waitlist has 10 `total_spots` and 7 `open_spots`.
|
|
205
|
+
*/
|
|
206
|
+
totalSpots?: number | null;
|
|
207
|
+
/** Number of open spots for this waitlist. */
|
|
208
|
+
openSpots?: number | null;
|
|
209
|
+
}
|
|
210
|
+
interface BookingPolicyViolations {
|
|
211
|
+
/** Bookings policy violation. Too early to book this slot. */
|
|
212
|
+
tooEarlyToBook?: boolean | null;
|
|
213
|
+
/** Bookings policy violation. Too late to book this slot. */
|
|
214
|
+
tooLateToBook?: boolean | null;
|
|
215
|
+
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
216
|
+
bookOnlineDisabled?: boolean | null;
|
|
217
|
+
}
|
|
218
|
+
interface NestedTimeSlot {
|
|
219
|
+
serviceId?: string;
|
|
220
|
+
start?: string;
|
|
221
|
+
end?: string;
|
|
222
|
+
resource?: SlotResource;
|
|
223
|
+
/** Schedule ID. */
|
|
224
|
+
scheduleId?: string;
|
|
225
|
+
}
|
|
226
|
+
interface RedirectSessionEcomCheckoutParams {
|
|
227
|
+
/** __Required.__ ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
|
|
228
|
+
checkoutId?: string;
|
|
229
|
+
}
|
|
230
|
+
interface RedirectSessionEventsCheckoutParams {
|
|
231
|
+
/** __Required.__ ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
|
|
232
|
+
reservationId?: string;
|
|
233
|
+
/** __Required.__ URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
|
|
234
|
+
eventSlug?: string;
|
|
235
|
+
}
|
|
236
|
+
interface RedirectSessionPaidPlansCheckoutParams {
|
|
237
|
+
/** __Required.__ ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
|
|
238
|
+
planId?: string;
|
|
239
|
+
/**
|
|
240
|
+
* For use when pricing plan selection is part of a checkout flow, only if the paid plan selection page is implemented on an external Wix Headless client site.
|
|
241
|
+
* In this case, a string is received by the external pricing plans page as a `checkoutData` query parameter. Pass this string back here when redirecting back to Wix for checkout.
|
|
242
|
+
*/
|
|
243
|
+
checkoutData?: string | null;
|
|
244
|
+
}
|
|
245
|
+
interface RedirectSessionLoginParams {
|
|
246
|
+
}
|
|
247
|
+
interface RedirectSessionLogoutParams {
|
|
248
|
+
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
249
|
+
clientId?: string;
|
|
250
|
+
}
|
|
251
|
+
interface RedirectSessionAuthParams {
|
|
252
|
+
/** __Required.__ The authorization request to send to the authorization server. */
|
|
253
|
+
authRequest?: AuthorizeRequest;
|
|
254
|
+
prompt?: Prompt;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
258
|
+
* the authorization process.
|
|
259
|
+
*/
|
|
260
|
+
interface AuthorizeRequest {
|
|
261
|
+
/** ID of the Wix OAuth app requesting authorization. */
|
|
262
|
+
clientId?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
|
|
265
|
+
*
|
|
266
|
+
* Supported values:
|
|
267
|
+
* + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
|
|
268
|
+
*/
|
|
269
|
+
responseType?: string;
|
|
270
|
+
/** URI to redirect the browser to after authentication and authorization. The browser is redirected to this URI whether the authentication and authorization process is successful or not. */
|
|
271
|
+
redirectUri?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Desired scope of access. If this field is left empty, only an access token is granted.
|
|
274
|
+
* To received a refresh token, pass `offline_access` as the value of this field.
|
|
275
|
+
*/
|
|
276
|
+
scope?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* A value used to confirm the state of an application before and after it makes an authorization
|
|
279
|
+
* request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
|
|
280
|
+
* is redirected there.
|
|
281
|
+
* Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
|
|
282
|
+
*/
|
|
283
|
+
state?: string;
|
|
284
|
+
/**
|
|
285
|
+
* esired response format.
|
|
286
|
+
*
|
|
287
|
+
* Supported values:
|
|
288
|
+
* + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
|
|
289
|
+
* + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
|
|
290
|
+
* + `web_message`: The response parameters are encoded as a JSON object and added to the body of a [web message response](https://datatracker.ietf.org/doc/html/draft-sakimura-oauth-wmrm-00).
|
|
291
|
+
*
|
|
292
|
+
* Default value: `query`
|
|
293
|
+
*/
|
|
294
|
+
responseMode?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Code challenge to use for PKCE verification.
|
|
297
|
+
* This field is only used if `responseType` is set to `code`.
|
|
298
|
+
*/
|
|
299
|
+
codeChallenge?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Code challenge method to use for PKCE verification.
|
|
302
|
+
* This field is only used if `responseType` is set to `code`.
|
|
303
|
+
*
|
|
304
|
+
* Supported values:
|
|
305
|
+
* + `S256`: The code challenge is transformed using SHA-256 encyption.
|
|
306
|
+
* + `S512`: The code challenge is transformed using SHA-512 encyption.
|
|
307
|
+
*/
|
|
308
|
+
codeChallengeMethod?: string | null;
|
|
309
|
+
/** Session token of the site visitor to authorize. */
|
|
310
|
+
sessionToken?: string | null;
|
|
311
|
+
}
|
|
312
|
+
/** Currently only `none` and `login` are supported. */
|
|
313
|
+
declare enum Prompt {
|
|
314
|
+
login = "login",
|
|
315
|
+
none = "none",
|
|
316
|
+
consent = "consent",
|
|
317
|
+
select_account = "select_account"
|
|
318
|
+
}
|
|
319
|
+
interface RedirectSessionMembersAccountParams {
|
|
320
|
+
/**
|
|
321
|
+
* The member account page to redirect to.
|
|
322
|
+
*
|
|
323
|
+
* Default: `ACCOUNT_INFO`
|
|
324
|
+
*/
|
|
325
|
+
section?: MembersAccountSection;
|
|
326
|
+
}
|
|
327
|
+
declare enum MembersAccountSection {
|
|
328
|
+
/** default - account info section in "my account" */
|
|
329
|
+
ACCOUNT_INFO = "ACCOUNT_INFO",
|
|
330
|
+
/** My Bookings section in "my account" */
|
|
331
|
+
BOOKINGS = "BOOKINGS",
|
|
332
|
+
/** My Orders section in "my account" */
|
|
333
|
+
ORDERS = "ORDERS",
|
|
334
|
+
/** Subscriptions section in "my account" */
|
|
335
|
+
SUBSCRIPTIONS = "SUBSCRIPTIONS",
|
|
336
|
+
/** Events section in "my account" */
|
|
337
|
+
EVENTS = "EVENTS"
|
|
338
|
+
}
|
|
339
|
+
interface RedirectSessionStoresProductParams {
|
|
340
|
+
/** *Required.** Slug of the product to navigate to. */
|
|
341
|
+
productSlug?: string;
|
|
342
|
+
}
|
|
343
|
+
interface RedirectSessionBookingsBookParams {
|
|
344
|
+
/** For use when filtering the bookings page by a specific resource. */
|
|
345
|
+
resourceId?: string;
|
|
346
|
+
}
|
|
347
|
+
interface CallbackParams {
|
|
348
|
+
/**
|
|
349
|
+
* The URL for a custom thank you page implemented on a site outside of Wix. The visitor is directed to this page after the Wix-managed process is completed.
|
|
350
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
351
|
+
*
|
|
352
|
+
* After a pricing plans checkout:
|
|
353
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
354
|
+
*
|
|
355
|
+
* After an eCommerce checkout:
|
|
356
|
+
* + `orderId`: ID of an eCommerce order.
|
|
357
|
+
*
|
|
358
|
+
* After an Events checkout
|
|
359
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
360
|
+
* + `eventId`: ID of the event.
|
|
361
|
+
*
|
|
362
|
+
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
363
|
+
*
|
|
364
|
+
* Default: If you don't pass a URL, the visitor is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
365
|
+
*/
|
|
366
|
+
thankYouPageUrl?: string | null;
|
|
367
|
+
/**
|
|
368
|
+
* The URL Wix should redirect the visitor to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
369
|
+
*
|
|
370
|
+
* **Note**: For an authentication redirect, don't pass a URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
|
|
371
|
+
*/
|
|
372
|
+
postFlowUrl?: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
375
|
+
*
|
|
376
|
+
* Default: If you don't pass a URL, a Wix login page is used.
|
|
377
|
+
*/
|
|
378
|
+
loginUrl?: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
381
|
+
*
|
|
382
|
+
* Default: If you don't pass a URL, a Wix bookings services page is used.
|
|
383
|
+
*/
|
|
384
|
+
bookingsServiceListUrl?: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
387
|
+
*
|
|
388
|
+
* Default: If you don't pass a URL, a Wix cart page is used.
|
|
389
|
+
*/
|
|
390
|
+
cartPageUrl?: string | null;
|
|
391
|
+
/**
|
|
392
|
+
* The URL for a custom pricing plans page implemented outside of Wix. When redirecting to this URL, Wix passes the following query parameters:
|
|
393
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
394
|
+
* + `checkoutData`: Pass this string back in `options.paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
395
|
+
*
|
|
396
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
397
|
+
*/
|
|
398
|
+
planListUrl?: string | null;
|
|
399
|
+
}
|
|
400
|
+
interface RedirectSessionPreferences {
|
|
401
|
+
/**
|
|
402
|
+
* Whether to use a standard Wix template for Wix-managed pages the visitor is redirected to. Set to `false` only if your client site connects with a Wix site that has custom pages.
|
|
403
|
+
*
|
|
404
|
+
* Default: `true`
|
|
405
|
+
*/
|
|
406
|
+
useGenericWixPages?: boolean | null;
|
|
407
|
+
/**
|
|
408
|
+
* Whether to maintain the identity used in the redirect to wix (not relevant for "logout" and "auth" intents), or to use a new visitor identity.
|
|
409
|
+
*
|
|
410
|
+
* Default: `true`
|
|
411
|
+
*/
|
|
412
|
+
maintainIdentity?: boolean | null;
|
|
413
|
+
/**
|
|
414
|
+
* A map of additional query parameters to pass to the created Wix URL.
|
|
415
|
+
* Global query parameters to be passed to Wix, for example campaign parameters (UTM params).
|
|
416
|
+
*/
|
|
417
|
+
additionalQueryParameters?: Record<string, string>;
|
|
418
|
+
}
|
|
419
|
+
interface CustomMemberPaths {
|
|
420
|
+
/** Path of the account page in the site's members area. Required if `useGenericWixPages` is `false` and the account page path has been changed in the Wix editor. */
|
|
421
|
+
accountPagePath?: string | null;
|
|
422
|
+
/** Path of the member profile page in the site's members area. Required if `useGenericWixPages` is `false` and the member profile page path has been changed in the Wix editor. */
|
|
423
|
+
profilePagePath?: string | null;
|
|
424
|
+
}
|
|
425
|
+
interface CreateRedirectSessionResponse {
|
|
426
|
+
/** Details for redirecting the visitor to a Wix page. */
|
|
427
|
+
redirectSession?: RedirectSession;
|
|
428
|
+
}
|
|
429
|
+
interface CreateAnonymousRedirectSessionRequest extends CreateAnonymousRedirectSessionRequestIntentOneOf {
|
|
430
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
431
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
432
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
433
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
434
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
435
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
436
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
437
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
438
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
439
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
440
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
441
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
442
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
443
|
+
preferences?: RedirectSessionPreferences;
|
|
444
|
+
}
|
|
445
|
+
/** @oneof */
|
|
446
|
+
interface CreateAnonymousRedirectSessionRequestIntentOneOf {
|
|
447
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
448
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
449
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
450
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
451
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
452
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
453
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
454
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
455
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
456
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
457
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
458
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
459
|
+
}
|
|
460
|
+
interface CreateAnonymousRedirectSessionResponse {
|
|
461
|
+
/** Details for redirecting the visitor to a Wix page. */
|
|
462
|
+
redirectSession?: RedirectSession;
|
|
463
|
+
}
|
|
464
|
+
interface ValidateCallbackURLRequest {
|
|
465
|
+
/** An external URL to validate */
|
|
466
|
+
callbackUrl?: string;
|
|
467
|
+
/** The type of the callback URL */
|
|
468
|
+
callbackType?: CallbackType;
|
|
469
|
+
/** The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context */
|
|
470
|
+
clientId?: string;
|
|
471
|
+
}
|
|
472
|
+
declare enum CallbackType {
|
|
473
|
+
/** Invalid value - default */
|
|
474
|
+
UNKNOWN = "UNKNOWN",
|
|
475
|
+
/** The callback URL is used for the logout flow */
|
|
476
|
+
LOGOUT = "LOGOUT",
|
|
477
|
+
/** The callback URL is used for a checkout flow */
|
|
478
|
+
CHECKOUT = "CHECKOUT",
|
|
479
|
+
/** The callback URL is used for the authorize flow */
|
|
480
|
+
AUTHORIZE = "AUTHORIZE"
|
|
481
|
+
}
|
|
482
|
+
interface ValidateCallbackURLResponse {
|
|
483
|
+
/** is the provided url allowed for the given client id */
|
|
484
|
+
isValid?: boolean;
|
|
485
|
+
}
|
|
486
|
+
interface SignInURLRequest {
|
|
487
|
+
/** The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context */
|
|
488
|
+
clientId?: string;
|
|
489
|
+
}
|
|
490
|
+
interface SignInURLResponse {
|
|
491
|
+
/** The Wix URL details to redirect into */
|
|
492
|
+
redirectSession?: RedirectSession;
|
|
493
|
+
}
|
|
494
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
495
|
+
createdEvent?: EntityCreatedEvent;
|
|
496
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
497
|
+
deletedEvent?: EntityDeletedEvent;
|
|
498
|
+
actionEvent?: ActionEvent;
|
|
499
|
+
/**
|
|
500
|
+
* Unique event ID.
|
|
501
|
+
* Allows clients to ignore duplicate webhooks.
|
|
502
|
+
*/
|
|
503
|
+
_id?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Assumes actions are also always typed to an entity_type
|
|
506
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
507
|
+
*/
|
|
508
|
+
entityFqdn?: string;
|
|
509
|
+
/**
|
|
510
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
511
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
512
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
513
|
+
*/
|
|
514
|
+
slug?: string;
|
|
515
|
+
/** ID of the entity associated with the event. */
|
|
516
|
+
entityId?: string;
|
|
517
|
+
/** Event timestamp. */
|
|
518
|
+
eventTime?: Date;
|
|
519
|
+
/**
|
|
520
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
521
|
+
* (for example, GDPR).
|
|
522
|
+
*/
|
|
523
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
524
|
+
/** If present, indicates the action that triggered the event. */
|
|
525
|
+
originatedFrom?: string | null;
|
|
526
|
+
/**
|
|
527
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
528
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
529
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
530
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
531
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
532
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
533
|
+
*/
|
|
534
|
+
entityEventSequence?: string | null;
|
|
535
|
+
}
|
|
536
|
+
/** @oneof */
|
|
537
|
+
interface DomainEventBodyOneOf {
|
|
538
|
+
createdEvent?: EntityCreatedEvent;
|
|
539
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
540
|
+
deletedEvent?: EntityDeletedEvent;
|
|
541
|
+
actionEvent?: ActionEvent;
|
|
542
|
+
}
|
|
543
|
+
interface EntityCreatedEvent {
|
|
544
|
+
entity?: string;
|
|
545
|
+
}
|
|
546
|
+
interface EntityUpdatedEvent {
|
|
547
|
+
/**
|
|
548
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
549
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
550
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
551
|
+
*/
|
|
552
|
+
currentEntity?: string;
|
|
553
|
+
}
|
|
554
|
+
interface EntityDeletedEvent {
|
|
555
|
+
/** Entity that was deleted */
|
|
556
|
+
deletedEntity?: string | null;
|
|
557
|
+
}
|
|
558
|
+
interface ActionEvent {
|
|
559
|
+
body?: string;
|
|
560
|
+
}
|
|
561
|
+
interface MessageEnvelope {
|
|
562
|
+
/** App instance ID. */
|
|
563
|
+
instanceId?: string | null;
|
|
564
|
+
/** Event type. */
|
|
565
|
+
eventType?: string;
|
|
566
|
+
/** The identification type and identity data. */
|
|
567
|
+
identity?: IdentificationData;
|
|
568
|
+
/** Stringify payload. */
|
|
569
|
+
data?: string;
|
|
570
|
+
}
|
|
571
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
572
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
573
|
+
anonymousVisitorId?: string;
|
|
574
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
575
|
+
memberId?: string;
|
|
576
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
577
|
+
wixUserId?: string;
|
|
578
|
+
/** ID of an app. */
|
|
579
|
+
appId?: string;
|
|
580
|
+
/** @readonly */
|
|
581
|
+
identityType?: WebhookIdentityType;
|
|
582
|
+
}
|
|
583
|
+
/** @oneof */
|
|
584
|
+
interface IdentificationDataIdOneOf {
|
|
585
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
586
|
+
anonymousVisitorId?: string;
|
|
587
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
588
|
+
memberId?: string;
|
|
589
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
590
|
+
wixUserId?: string;
|
|
591
|
+
/** ID of an app. */
|
|
592
|
+
appId?: string;
|
|
593
|
+
}
|
|
594
|
+
declare enum WebhookIdentityType {
|
|
595
|
+
UNKNOWN = "UNKNOWN",
|
|
596
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
597
|
+
MEMBER = "MEMBER",
|
|
598
|
+
WIX_USER = "WIX_USER",
|
|
599
|
+
APP = "APP"
|
|
600
|
+
}
|
|
601
|
+
interface CreateRedirectSessionResponseNonNullableFields {
|
|
602
|
+
redirectSession?: {
|
|
603
|
+
_id: string;
|
|
604
|
+
fullUrl: string;
|
|
605
|
+
urlDetails?: {
|
|
606
|
+
endpoint: string;
|
|
607
|
+
};
|
|
608
|
+
shortUrl: string;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
interface BaseEventMetadata {
|
|
612
|
+
/** App instance ID. */
|
|
613
|
+
instanceId?: string | null;
|
|
614
|
+
/** Event type. */
|
|
615
|
+
eventType?: string;
|
|
616
|
+
/** The identification type and identity data. */
|
|
617
|
+
identity?: IdentificationData;
|
|
618
|
+
}
|
|
619
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
620
|
+
/**
|
|
621
|
+
* Unique event ID.
|
|
622
|
+
* Allows clients to ignore duplicate webhooks.
|
|
623
|
+
*/
|
|
624
|
+
_id?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Assumes actions are also always typed to an entity_type
|
|
627
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
628
|
+
*/
|
|
629
|
+
entityFqdn?: string;
|
|
630
|
+
/**
|
|
631
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
632
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
633
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
634
|
+
*/
|
|
635
|
+
slug?: string;
|
|
636
|
+
/** ID of the entity associated with the event. */
|
|
637
|
+
entityId?: string;
|
|
638
|
+
/** Event timestamp. */
|
|
639
|
+
eventTime?: Date;
|
|
640
|
+
/**
|
|
641
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
642
|
+
* (for example, GDPR).
|
|
643
|
+
*/
|
|
644
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
645
|
+
/** If present, indicates the action that triggered the event. */
|
|
646
|
+
originatedFrom?: string | null;
|
|
647
|
+
/**
|
|
648
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
649
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
650
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
651
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
652
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
653
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
654
|
+
*/
|
|
655
|
+
entityEventSequence?: string | null;
|
|
656
|
+
}
|
|
657
|
+
interface RedirectSessionCreatedEnvelope {
|
|
658
|
+
entity: RedirectSession;
|
|
659
|
+
metadata: EventMetadata;
|
|
660
|
+
}
|
|
661
|
+
interface CreateRedirectSessionOptions extends CreateRedirectSessionRequestIntentOneOf {
|
|
662
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
663
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
664
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
665
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
666
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
667
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
668
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
669
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
670
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
671
|
+
login?: RedirectSessionLoginParams;
|
|
672
|
+
/** Information required for generating a custom URL to log out from a Wix account. This process invalidates the visitor or member token and clears cookies associated with the Wix domain from their browser. */
|
|
673
|
+
logout?: RedirectSessionLogoutParams;
|
|
674
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
675
|
+
auth?: RedirectSessionAuthParams;
|
|
676
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
677
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
678
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
679
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
680
|
+
/**
|
|
681
|
+
* Details of pages to redirect the visitor back to on the Wix Headless client site.
|
|
682
|
+
*
|
|
683
|
+
* **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `options.auth.authRequest.redirectUri`.
|
|
684
|
+
*/
|
|
685
|
+
callbacks?: CallbackParams;
|
|
686
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
687
|
+
preferences?: RedirectSessionPreferences;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
interface HttpClient {
|
|
691
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
692
|
+
}
|
|
693
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
694
|
+
type HttpResponse<T = any> = {
|
|
695
|
+
data: T;
|
|
696
|
+
status: number;
|
|
697
|
+
statusText: string;
|
|
698
|
+
headers: any;
|
|
699
|
+
request?: any;
|
|
700
|
+
};
|
|
701
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
702
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
703
|
+
url: string;
|
|
704
|
+
data?: Data;
|
|
705
|
+
params?: URLSearchParams;
|
|
706
|
+
} & APIMetadata;
|
|
707
|
+
type APIMetadata = {
|
|
708
|
+
methodFqn?: string;
|
|
709
|
+
entityFqdn?: string;
|
|
710
|
+
packageName?: string;
|
|
711
|
+
};
|
|
712
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
713
|
+
__type: 'event-definition';
|
|
714
|
+
type: Type;
|
|
715
|
+
isDomainEvent?: boolean;
|
|
716
|
+
transformations?: unknown;
|
|
717
|
+
__payload: Payload;
|
|
718
|
+
};
|
|
719
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
720
|
+
|
|
721
|
+
declare const __metadata: {
|
|
722
|
+
PACKAGE_NAME: string;
|
|
723
|
+
};
|
|
724
|
+
declare function createRedirectSession(httpClient: HttpClient): (options?: CreateRedirectSessionOptions) => Promise<CreateRedirectSessionResponse & CreateRedirectSessionResponseNonNullableFields>;
|
|
725
|
+
declare const onRedirectSessionCreated: EventDefinition<RedirectSessionCreatedEnvelope, "wix.headless.v1.redirect_session_created">;
|
|
726
|
+
|
|
727
|
+
type index_d_ActionEvent = ActionEvent;
|
|
728
|
+
type index_d_AuthorizeRequest = AuthorizeRequest;
|
|
729
|
+
type index_d_BaseEventMetadata = BaseEventMetadata;
|
|
730
|
+
type index_d_BookingPolicyViolations = BookingPolicyViolations;
|
|
731
|
+
type index_d_CallbackParams = CallbackParams;
|
|
732
|
+
type index_d_CallbackType = CallbackType;
|
|
733
|
+
declare const index_d_CallbackType: typeof CallbackType;
|
|
734
|
+
type index_d_CreateAnonymousRedirectSessionRequest = CreateAnonymousRedirectSessionRequest;
|
|
735
|
+
type index_d_CreateAnonymousRedirectSessionRequestIntentOneOf = CreateAnonymousRedirectSessionRequestIntentOneOf;
|
|
736
|
+
type index_d_CreateAnonymousRedirectSessionResponse = CreateAnonymousRedirectSessionResponse;
|
|
737
|
+
type index_d_CreateRedirectSessionOptions = CreateRedirectSessionOptions;
|
|
738
|
+
type index_d_CreateRedirectSessionRequest = CreateRedirectSessionRequest;
|
|
739
|
+
type index_d_CreateRedirectSessionRequestIntentOneOf = CreateRedirectSessionRequestIntentOneOf;
|
|
740
|
+
type index_d_CreateRedirectSessionResponse = CreateRedirectSessionResponse;
|
|
741
|
+
type index_d_CreateRedirectSessionResponseNonNullableFields = CreateRedirectSessionResponseNonNullableFields;
|
|
742
|
+
type index_d_CustomMemberPaths = CustomMemberPaths;
|
|
743
|
+
type index_d_DomainEvent = DomainEvent;
|
|
744
|
+
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
745
|
+
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
|
746
|
+
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
|
747
|
+
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
748
|
+
type index_d_EventMetadata = EventMetadata;
|
|
749
|
+
type index_d_IdentificationData = IdentificationData;
|
|
750
|
+
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
751
|
+
type index_d_Location = Location;
|
|
752
|
+
type index_d_LocationType = LocationType;
|
|
753
|
+
declare const index_d_LocationType: typeof LocationType;
|
|
754
|
+
type index_d_MembersAccountSection = MembersAccountSection;
|
|
755
|
+
declare const index_d_MembersAccountSection: typeof MembersAccountSection;
|
|
756
|
+
type index_d_MessageEnvelope = MessageEnvelope;
|
|
757
|
+
type index_d_NestedTimeSlot = NestedTimeSlot;
|
|
758
|
+
type index_d_Prompt = Prompt;
|
|
759
|
+
declare const index_d_Prompt: typeof Prompt;
|
|
760
|
+
type index_d_RedirectSession = RedirectSession;
|
|
761
|
+
type index_d_RedirectSessionAuthParams = RedirectSessionAuthParams;
|
|
762
|
+
type index_d_RedirectSessionBookingsBookParams = RedirectSessionBookingsBookParams;
|
|
763
|
+
type index_d_RedirectSessionBookingsCheckoutParams = RedirectSessionBookingsCheckoutParams;
|
|
764
|
+
type index_d_RedirectSessionCreatedEnvelope = RedirectSessionCreatedEnvelope;
|
|
765
|
+
type index_d_RedirectSessionEcomCheckoutParams = RedirectSessionEcomCheckoutParams;
|
|
766
|
+
type index_d_RedirectSessionEventsCheckoutParams = RedirectSessionEventsCheckoutParams;
|
|
767
|
+
type index_d_RedirectSessionLoginParams = RedirectSessionLoginParams;
|
|
768
|
+
type index_d_RedirectSessionLogoutParams = RedirectSessionLogoutParams;
|
|
769
|
+
type index_d_RedirectSessionMembersAccountParams = RedirectSessionMembersAccountParams;
|
|
770
|
+
type index_d_RedirectSessionPaidPlansCheckoutParams = RedirectSessionPaidPlansCheckoutParams;
|
|
771
|
+
type index_d_RedirectSessionPreferences = RedirectSessionPreferences;
|
|
772
|
+
type index_d_RedirectSessionStoresProductParams = RedirectSessionStoresProductParams;
|
|
773
|
+
type index_d_SignInURLRequest = SignInURLRequest;
|
|
774
|
+
type index_d_SignInURLResponse = SignInURLResponse;
|
|
775
|
+
type index_d_Slot = Slot;
|
|
776
|
+
type index_d_SlotAvailability = SlotAvailability;
|
|
777
|
+
type index_d_SlotResource = SlotResource;
|
|
778
|
+
type index_d_URLDetails = URLDetails;
|
|
779
|
+
type index_d_ValidateCallbackURLRequest = ValidateCallbackURLRequest;
|
|
780
|
+
type index_d_ValidateCallbackURLResponse = ValidateCallbackURLResponse;
|
|
781
|
+
type index_d_WaitingList = WaitingList;
|
|
782
|
+
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
783
|
+
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
784
|
+
declare const index_d___metadata: typeof __metadata;
|
|
785
|
+
declare const index_d_createRedirectSession: typeof createRedirectSession;
|
|
786
|
+
declare const index_d_onRedirectSessionCreated: typeof onRedirectSessionCreated;
|
|
787
|
+
declare namespace index_d {
|
|
788
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_AuthorizeRequest as AuthorizeRequest, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BookingPolicyViolations as BookingPolicyViolations, type index_d_CallbackParams as CallbackParams, index_d_CallbackType as CallbackType, type index_d_CreateAnonymousRedirectSessionRequest as CreateAnonymousRedirectSessionRequest, type index_d_CreateAnonymousRedirectSessionRequestIntentOneOf as CreateAnonymousRedirectSessionRequestIntentOneOf, type index_d_CreateAnonymousRedirectSessionResponse as CreateAnonymousRedirectSessionResponse, type index_d_CreateRedirectSessionOptions as CreateRedirectSessionOptions, type index_d_CreateRedirectSessionRequest as CreateRedirectSessionRequest, type index_d_CreateRedirectSessionRequestIntentOneOf as CreateRedirectSessionRequestIntentOneOf, type index_d_CreateRedirectSessionResponse as CreateRedirectSessionResponse, type index_d_CreateRedirectSessionResponseNonNullableFields as CreateRedirectSessionResponseNonNullableFields, type index_d_CustomMemberPaths as CustomMemberPaths, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Location as Location, index_d_LocationType as LocationType, index_d_MembersAccountSection as MembersAccountSection, type index_d_MessageEnvelope as MessageEnvelope, type index_d_NestedTimeSlot as NestedTimeSlot, index_d_Prompt as Prompt, type index_d_RedirectSession as RedirectSession, type index_d_RedirectSessionAuthParams as RedirectSessionAuthParams, type index_d_RedirectSessionBookingsBookParams as RedirectSessionBookingsBookParams, type index_d_RedirectSessionBookingsCheckoutParams as RedirectSessionBookingsCheckoutParams, type index_d_RedirectSessionCreatedEnvelope as RedirectSessionCreatedEnvelope, type index_d_RedirectSessionEcomCheckoutParams as RedirectSessionEcomCheckoutParams, type index_d_RedirectSessionEventsCheckoutParams as RedirectSessionEventsCheckoutParams, type index_d_RedirectSessionLoginParams as RedirectSessionLoginParams, type index_d_RedirectSessionLogoutParams as RedirectSessionLogoutParams, type index_d_RedirectSessionMembersAccountParams as RedirectSessionMembersAccountParams, type index_d_RedirectSessionPaidPlansCheckoutParams as RedirectSessionPaidPlansCheckoutParams, type index_d_RedirectSessionPreferences as RedirectSessionPreferences, type index_d_RedirectSessionStoresProductParams as RedirectSessionStoresProductParams, type index_d_SignInURLRequest as SignInURLRequest, type index_d_SignInURLResponse as SignInURLResponse, type index_d_Slot as Slot, type index_d_SlotAvailability as SlotAvailability, type index_d_SlotResource as SlotResource, type index_d_URLDetails as URLDetails, type index_d_ValidateCallbackURLRequest as ValidateCallbackURLRequest, type index_d_ValidateCallbackURLResponse as ValidateCallbackURLResponse, type index_d_WaitingList as WaitingList, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createRedirectSession as createRedirectSession, index_d_onRedirectSessionCreated as onRedirectSessionCreated };
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export { index_d as redirects };
|