@wix/redirects 1.0.1 → 1.0.3
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/src/headless-v1-redirect-session.http.d.ts +12 -1
- package/build/cjs/src/headless-v1-redirect-session.http.js +12 -1
- package/build/cjs/src/headless-v1-redirect-session.http.js.map +1 -1
- package/build/cjs/src/headless-v1-redirect-session.types.d.ts +76 -40
- package/build/cjs/src/headless-v1-redirect-session.types.js.map +1 -1
- package/build/cjs/src/headless-v1-redirect-session.universal.d.ts +95 -50
- package/build/cjs/src/headless-v1-redirect-session.universal.js +10 -1
- package/build/cjs/src/headless-v1-redirect-session.universal.js.map +1 -1
- package/build/es/src/headless-v1-redirect-session.http.d.ts +12 -1
- package/build/es/src/headless-v1-redirect-session.http.js +12 -1
- package/build/es/src/headless-v1-redirect-session.http.js.map +1 -1
- package/build/es/src/headless-v1-redirect-session.types.d.ts +76 -40
- package/build/es/src/headless-v1-redirect-session.types.js.map +1 -1
- package/build/es/src/headless-v1-redirect-session.universal.d.ts +95 -50
- package/build/es/src/headless-v1-redirect-session.universal.js +10 -1
- package/build/es/src/headless-v1-redirect-session.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
import { CreateRedirectSessionRequest, CreateRedirectSessionResponse } from './headless-v1-redirect-session.types';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
8
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
9
|
+
*
|
|
10
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
11
|
+
* the user back to the appropriate page on your site.
|
|
12
|
+
*
|
|
13
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
14
|
+
*/
|
|
4
15
|
export declare function createRedirectSession(payload: CreateRedirectSessionRequest): RequestOptionsFactory<CreateRedirectSessionResponse>;
|
|
@@ -22,7 +22,18 @@ function resolveWixHeadlessV1RedirectSessionServiceUrl(opts) {
|
|
|
22
22
|
};
|
|
23
23
|
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
30
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
31
|
+
*
|
|
32
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
33
|
+
* the user back to the appropriate page on your site.
|
|
34
|
+
*
|
|
35
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
36
|
+
*/
|
|
26
37
|
function createRedirectSession(payload) {
|
|
27
38
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createRedirectSessionRequest, {});
|
|
28
39
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_createRedirectSessionResponse, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.http.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.http.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,qBAAqB,CACnC,OAAqC;IAErC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,6BAA6B,EAC7B,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;IAE7E,SAAS,uBAAuB,CAAC,EAAE,IAAI,EAAO;QAC5C,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,8DAA8D;YACzE,GAAG,EAAE,6CAA6C,CAAC;gBACjD,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,uBAAuB,CAAC,OAAO,GAAG,OAAO,CAAC;IAE1C,OAAO,uBAAuB,CAAC;AACjC,CAAC;AA9BD,sDA8BC"}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Information for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
2
2
|
export interface RedirectSession {
|
|
3
|
-
/**
|
|
3
|
+
/** ID of the redirect session created. */
|
|
4
4
|
id?: string;
|
|
5
5
|
/**
|
|
6
|
-
* The Wix URL to redirect
|
|
6
|
+
* The full URL of the Wix page to redirect the visitor or member to. This URL includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site.
|
|
7
7
|
* @readonly
|
|
8
8
|
*/
|
|
9
9
|
fullUrl?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
12
|
-
/**
|
|
12
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
13
13
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
14
|
-
/**
|
|
14
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
15
15
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
16
|
-
/**
|
|
16
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
17
17
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
18
|
-
/**
|
|
18
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
19
19
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
20
|
-
/**
|
|
20
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
21
21
|
login?: RedirectSessionLoginParams;
|
|
22
|
-
/**
|
|
22
|
+
/** 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. */
|
|
23
23
|
logout?: RedirectSessionLogoutParams;
|
|
24
|
-
/**
|
|
24
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
25
25
|
auth?: RedirectSessionAuthParams;
|
|
26
|
-
/**
|
|
26
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
27
27
|
callbacks?: CallbackParams;
|
|
28
|
-
/**
|
|
28
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
29
29
|
preferences?: RedirectSessionPreferences;
|
|
30
30
|
}
|
|
31
31
|
/** @oneof */
|
|
32
32
|
export interface CreateRedirectSessionRequestIntentOneOf {
|
|
33
|
-
/**
|
|
33
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
34
34
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
35
|
-
/**
|
|
35
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
36
36
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
37
|
-
/**
|
|
37
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
38
38
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
39
|
-
/**
|
|
39
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
40
40
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
41
|
-
/**
|
|
41
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
42
42
|
login?: RedirectSessionLoginParams;
|
|
43
|
-
/**
|
|
43
|
+
/** 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. */
|
|
44
44
|
logout?: RedirectSessionLogoutParams;
|
|
45
|
-
/**
|
|
45
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
46
46
|
auth?: RedirectSessionAuthParams;
|
|
47
47
|
}
|
|
48
48
|
export interface RedirectSessionBookingsCheckoutParams {
|
|
49
|
-
/** The timezone
|
|
49
|
+
/** 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`. */
|
|
50
50
|
timezone?: string;
|
|
51
|
-
/**
|
|
51
|
+
/** *Required.** ID of the service for which to select the slot. Use [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
|
|
52
52
|
serviceId?: string;
|
|
53
|
-
/**
|
|
53
|
+
/** *Required.** The calendar slot to check out. */
|
|
54
54
|
slotAvailability?: SlotAvailability;
|
|
55
55
|
}
|
|
56
56
|
export interface SlotAvailability {
|
|
@@ -179,19 +179,22 @@ export interface BookingPolicyViolations {
|
|
|
179
179
|
bookOnlineDisabled?: boolean | null;
|
|
180
180
|
}
|
|
181
181
|
export interface RedirectSessionEcomCheckoutParams {
|
|
182
|
-
/**
|
|
182
|
+
/** *Required.** ID of the checkout to process. Use [Create Checkout From Cart](https://dev.wix.com/api/rest/wix-ecommerce/cart/create-checkout-from-cart) to create a checkout and obtain an ID. */
|
|
183
183
|
checkoutId?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RedirectSessionEventsCheckoutParams {
|
|
186
|
-
/**
|
|
186
|
+
/** *Required.** ID of the temporary event reservation. Use [Create Reservation](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/create-reservation) to reserve a ticket temporarily and obtain a reservation ID. */
|
|
187
187
|
reservationId?: string;
|
|
188
|
-
/**
|
|
188
|
+
/** *Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [Query Events](https://dev.wix.com/api/rest/wix-events/wix-events/event/query-events) to obtain an event slug. */
|
|
189
189
|
eventSlug?: string;
|
|
190
190
|
}
|
|
191
191
|
export interface RedirectSessionPaidPlansCheckoutParams {
|
|
192
|
-
/**
|
|
192
|
+
/** *Required.** ID of the paid plan selected. Use [Query Public Plans](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/query-public-plans) to obtain a paid plan ID. */
|
|
193
193
|
planId?: string;
|
|
194
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* For use when pricing plan selection is part of a checkout flow and the paid plan selection page is implemented on the external Wix Headless client site.
|
|
196
|
+
* In this case, a string is passed to the external pricing plans page as `checkoutData` query parameter. Pass this string here when redirecting back to Wix.
|
|
197
|
+
*/
|
|
195
198
|
checkoutData?: string | null;
|
|
196
199
|
}
|
|
197
200
|
export interface RedirectSessionLoginParams {
|
|
@@ -251,15 +254,19 @@ export interface AuthorizeRequest {
|
|
|
251
254
|
errorDescription?: string | null;
|
|
252
255
|
}
|
|
253
256
|
export interface RedirectSessionLogoutParams {
|
|
254
|
-
/**
|
|
257
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
255
258
|
clientId?: string;
|
|
256
259
|
}
|
|
257
260
|
export interface RedirectSessionAuthParams {
|
|
258
|
-
/**
|
|
261
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
259
262
|
authRequest?: AuthorizeRequest;
|
|
260
263
|
}
|
|
261
264
|
export interface RedirectSessionMembersAccountParams {
|
|
262
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* The member account page to redirect to.
|
|
267
|
+
*
|
|
268
|
+
* Default: `ACCOUNT_INFO`
|
|
269
|
+
*/
|
|
263
270
|
section?: MembersAccountSection;
|
|
264
271
|
}
|
|
265
272
|
export declare enum MembersAccountSection {
|
|
@@ -275,31 +282,60 @@ export declare enum MembersAccountSection {
|
|
|
275
282
|
EVENTS = "EVENTS"
|
|
276
283
|
}
|
|
277
284
|
export interface CallbackParams {
|
|
278
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* The URL for a custom thank you page implemented on a site outside of Wix. The visitor or member is directed to this page at the end of the Wix-managed process.
|
|
287
|
+
* If the process is abandoned or interrupted, the visitor or member is redirected to the URL specified in `postFlowUrl`.
|
|
288
|
+
*
|
|
289
|
+
* Default: If you don't pass a URL, the visitor or member is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
290
|
+
*/
|
|
279
291
|
thankYouPageUrl?: string | null;
|
|
280
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* The URL Wix should redirect the visitor or member to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
294
|
+
*
|
|
295
|
+
* **Note**: For an authentication redirect, you don't need to pass a URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
296
|
+
*/
|
|
281
297
|
postFlowUrl?: string | null;
|
|
282
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
300
|
+
*
|
|
301
|
+
* Default: If you don't pass a URL, a Wix login page is used.
|
|
302
|
+
*/
|
|
283
303
|
loginUrl?: string | null;
|
|
284
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
306
|
+
*
|
|
307
|
+
* Default: If you don't pass a URL, a Wix bookings services page is used.
|
|
308
|
+
*/
|
|
285
309
|
bookingsServiceListUrl?: string | null;
|
|
286
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
312
|
+
*
|
|
313
|
+
* Default: If you don't pass a URL, a Wix cart page is used.
|
|
314
|
+
*/
|
|
287
315
|
cartPageUrl?: string | null;
|
|
288
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
318
|
+
*
|
|
319
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
320
|
+
*/
|
|
289
321
|
planListUrl?: string | null;
|
|
290
322
|
}
|
|
291
323
|
export interface RedirectSessionPreferences {
|
|
292
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Whether to use a standard Wix template for Wix pages the visitor is redirected to. Set to `false` only if your client connects with a Wix site that has custom pages.
|
|
326
|
+
*
|
|
327
|
+
* Default: `true`
|
|
328
|
+
*/
|
|
293
329
|
useGenericWixPages?: boolean | null;
|
|
294
330
|
}
|
|
295
331
|
export interface CustomMemberPaths {
|
|
296
|
-
/**
|
|
332
|
+
/** 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. */
|
|
297
333
|
accountPagePath?: string | null;
|
|
298
|
-
/**
|
|
334
|
+
/** 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. */
|
|
299
335
|
profilePagePath?: string | null;
|
|
300
336
|
}
|
|
301
337
|
export interface CreateRedirectSessionResponse {
|
|
302
|
-
/**
|
|
338
|
+
/** Details for redirecting the visitor or member to a Wix page. */
|
|
303
339
|
redirectSession?: RedirectSession;
|
|
304
340
|
}
|
|
305
341
|
export interface ValidateCallbackURLRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":";;;AAqKA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":";;;AAqKA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAyHD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,qDAAqD;IACrD,sDAA6B,CAAA;IAC7B,0CAA0C;IAC1C,8CAAqB,CAAA;IACrB,wCAAwC;IACxC,0CAAiB,CAAA;IACjB,4CAA4C;IAC5C,wDAA+B,CAAA;IAC/B,qCAAqC;IACrC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAWhC;AAwED,IAAY,YASX;AATD,WAAY,YAAY;IACtB,8BAA8B;IAC9B,mCAAmB,CAAA;IACnB,mDAAmD;IACnD,iCAAiB,CAAA;IACjB,mDAAmD;IACnD,qCAAqB,CAAA;IACrB,sDAAsD;IACtD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB"}
|
|
@@ -4,59 +4,59 @@ export declare const __debug: {
|
|
|
4
4
|
off: () => boolean;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
7
|
+
/** Information for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
8
8
|
export interface RedirectSession {
|
|
9
|
-
/**
|
|
9
|
+
/** ID of the redirect session created. */
|
|
10
10
|
_id?: string;
|
|
11
11
|
/**
|
|
12
|
-
* The Wix URL to redirect
|
|
12
|
+
* The full URL of the Wix page to redirect the visitor or member to. This URL includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site.
|
|
13
13
|
* @readonly
|
|
14
14
|
*/
|
|
15
15
|
fullUrl?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
18
|
-
/**
|
|
18
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
19
19
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
20
|
-
/**
|
|
20
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
21
21
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
22
|
-
/**
|
|
22
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
23
23
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
24
|
-
/**
|
|
24
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
25
25
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
26
|
-
/**
|
|
26
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
27
27
|
login?: RedirectSessionLoginParams;
|
|
28
|
-
/**
|
|
28
|
+
/** 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. */
|
|
29
29
|
logout?: RedirectSessionLogoutParams;
|
|
30
|
-
/**
|
|
30
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
31
31
|
auth?: RedirectSessionAuthParams;
|
|
32
|
-
/**
|
|
32
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
33
33
|
callbacks?: CallbackParams;
|
|
34
|
-
/**
|
|
34
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
35
35
|
preferences?: RedirectSessionPreferences;
|
|
36
36
|
}
|
|
37
37
|
/** @oneof */
|
|
38
38
|
export interface CreateRedirectSessionRequestIntentOneOf {
|
|
39
|
-
/**
|
|
39
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
40
40
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
41
|
-
/**
|
|
41
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
42
42
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
43
|
-
/**
|
|
43
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
44
44
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
45
|
-
/**
|
|
45
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
46
46
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
47
|
-
/**
|
|
47
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
48
48
|
login?: RedirectSessionLoginParams;
|
|
49
|
-
/**
|
|
49
|
+
/** 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. */
|
|
50
50
|
logout?: RedirectSessionLogoutParams;
|
|
51
|
-
/**
|
|
51
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
52
52
|
auth?: RedirectSessionAuthParams;
|
|
53
53
|
}
|
|
54
54
|
export interface RedirectSessionBookingsCheckoutParams {
|
|
55
|
-
/** The timezone
|
|
55
|
+
/** 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`. */
|
|
56
56
|
timezone?: string;
|
|
57
|
-
/**
|
|
57
|
+
/** *Required.** ID of the service for which to select the slot. Use [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
|
|
58
58
|
serviceId?: string;
|
|
59
|
-
/**
|
|
59
|
+
/** *Required.** The calendar slot to check out. */
|
|
60
60
|
slotAvailability?: SlotAvailability;
|
|
61
61
|
}
|
|
62
62
|
export interface SlotAvailability {
|
|
@@ -185,19 +185,22 @@ export interface BookingPolicyViolations {
|
|
|
185
185
|
bookOnlineDisabled?: boolean | null;
|
|
186
186
|
}
|
|
187
187
|
export interface RedirectSessionEcomCheckoutParams {
|
|
188
|
-
/**
|
|
188
|
+
/** *Required.** ID of the checkout to process. Use [Create Checkout From Cart](https://dev.wix.com/api/rest/wix-ecommerce/cart/create-checkout-from-cart) to create a checkout and obtain an ID. */
|
|
189
189
|
checkoutId?: string;
|
|
190
190
|
}
|
|
191
191
|
export interface RedirectSessionEventsCheckoutParams {
|
|
192
|
-
/**
|
|
192
|
+
/** *Required.** ID of the temporary event reservation. Use [Create Reservation](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/create-reservation) to reserve a ticket temporarily and obtain a reservation ID. */
|
|
193
193
|
reservationId?: string;
|
|
194
|
-
/**
|
|
194
|
+
/** *Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [Query Events](https://dev.wix.com/api/rest/wix-events/wix-events/event/query-events) to obtain an event slug. */
|
|
195
195
|
eventSlug?: string;
|
|
196
196
|
}
|
|
197
197
|
export interface RedirectSessionPaidPlansCheckoutParams {
|
|
198
|
-
/**
|
|
198
|
+
/** *Required.** ID of the paid plan selected. Use [Query Public Plans](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/query-public-plans) to obtain a paid plan ID. */
|
|
199
199
|
planId?: string;
|
|
200
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* For use when pricing plan selection is part of a checkout flow and the paid plan selection page is implemented on the external Wix Headless client site.
|
|
202
|
+
* In this case, a string is passed to the external pricing plans page as `checkoutData` query parameter. Pass this string here when redirecting back to Wix.
|
|
203
|
+
*/
|
|
201
204
|
checkoutData?: string | null;
|
|
202
205
|
}
|
|
203
206
|
export interface RedirectSessionLoginParams {
|
|
@@ -257,15 +260,19 @@ export interface AuthorizeRequest {
|
|
|
257
260
|
errorDescription?: string | null;
|
|
258
261
|
}
|
|
259
262
|
export interface RedirectSessionLogoutParams {
|
|
260
|
-
/**
|
|
263
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
261
264
|
clientId?: string;
|
|
262
265
|
}
|
|
263
266
|
export interface RedirectSessionAuthParams {
|
|
264
|
-
/**
|
|
267
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
265
268
|
authRequest?: AuthorizeRequest;
|
|
266
269
|
}
|
|
267
270
|
export interface RedirectSessionMembersAccountParams {
|
|
268
|
-
/**
|
|
271
|
+
/**
|
|
272
|
+
* The member account page to redirect to.
|
|
273
|
+
*
|
|
274
|
+
* Default: `ACCOUNT_INFO`
|
|
275
|
+
*/
|
|
269
276
|
section?: MembersAccountSection;
|
|
270
277
|
}
|
|
271
278
|
export declare enum MembersAccountSection {
|
|
@@ -281,31 +288,60 @@ export declare enum MembersAccountSection {
|
|
|
281
288
|
EVENTS = "EVENTS"
|
|
282
289
|
}
|
|
283
290
|
export interface CallbackParams {
|
|
284
|
-
/**
|
|
291
|
+
/**
|
|
292
|
+
* The URL for a custom thank you page implemented on a site outside of Wix. The visitor or member is directed to this page at the end of the Wix-managed process.
|
|
293
|
+
* If the process is abandoned or interrupted, the visitor or member is redirected to the URL specified in `postFlowUrl`.
|
|
294
|
+
*
|
|
295
|
+
* Default: If you don't pass a URL, the visitor or member is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
296
|
+
*/
|
|
285
297
|
thankYouPageUrl?: string | null;
|
|
286
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* The URL Wix should redirect the visitor or member to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
300
|
+
*
|
|
301
|
+
* **Note**: For an authentication redirect, you don't need to pass a URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
302
|
+
*/
|
|
287
303
|
postFlowUrl?: string | null;
|
|
288
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
306
|
+
*
|
|
307
|
+
* Default: If you don't pass a URL, a Wix login page is used.
|
|
308
|
+
*/
|
|
289
309
|
loginUrl?: string | null;
|
|
290
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
312
|
+
*
|
|
313
|
+
* Default: If you don't pass a URL, a Wix bookings services page is used.
|
|
314
|
+
*/
|
|
291
315
|
bookingsServiceListUrl?: string | null;
|
|
292
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
318
|
+
*
|
|
319
|
+
* Default: If you don't pass a URL, a Wix cart page is used.
|
|
320
|
+
*/
|
|
293
321
|
cartPageUrl?: string | null;
|
|
294
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
324
|
+
*
|
|
325
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
326
|
+
*/
|
|
295
327
|
planListUrl?: string | null;
|
|
296
328
|
}
|
|
297
329
|
export interface RedirectSessionPreferences {
|
|
298
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Whether to use a standard Wix template for Wix pages the visitor is redirected to. Set to `false` only if your client connects with a Wix site that has custom pages.
|
|
332
|
+
*
|
|
333
|
+
* Default: `true`
|
|
334
|
+
*/
|
|
299
335
|
useGenericWixPages?: boolean | null;
|
|
300
336
|
}
|
|
301
337
|
export interface CustomMemberPaths {
|
|
302
|
-
/**
|
|
338
|
+
/** 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. */
|
|
303
339
|
accountPagePath?: string | null;
|
|
304
|
-
/**
|
|
340
|
+
/** 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. */
|
|
305
341
|
profilePagePath?: string | null;
|
|
306
342
|
}
|
|
307
343
|
export interface CreateRedirectSessionResponse {
|
|
308
|
-
/**
|
|
344
|
+
/** Details for redirecting the visitor or member to a Wix page. */
|
|
309
345
|
redirectSession?: RedirectSession;
|
|
310
346
|
}
|
|
311
347
|
export interface ValidateCallbackURLRequest {
|
|
@@ -339,29 +375,38 @@ export interface SignInURLResponse {
|
|
|
339
375
|
redirectSession?: RedirectSession;
|
|
340
376
|
}
|
|
341
377
|
/**
|
|
342
|
-
* Creates a
|
|
378
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
379
|
+
*
|
|
380
|
+
*
|
|
381
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
382
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
383
|
+
*
|
|
384
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
385
|
+
* the user back to the appropriate page on your site.
|
|
386
|
+
*
|
|
387
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
343
388
|
* @public
|
|
344
389
|
* @documentationMaturity preview
|
|
345
390
|
* @requiredField CreateRedirectSessionRequest
|
|
346
391
|
*/
|
|
347
392
|
export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<CreateRedirectSessionResponse>;
|
|
348
393
|
export interface CreateRedirectSessionOptions extends CreateRedirectSessionRequestIntentOneOf {
|
|
349
|
-
/**
|
|
394
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
350
395
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
351
|
-
/**
|
|
396
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
352
397
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
353
|
-
/**
|
|
398
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
354
399
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
355
|
-
/**
|
|
400
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
356
401
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
357
|
-
/**
|
|
402
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
358
403
|
login?: RedirectSessionLoginParams;
|
|
359
|
-
/**
|
|
404
|
+
/** 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. */
|
|
360
405
|
logout?: RedirectSessionLogoutParams;
|
|
361
|
-
/**
|
|
406
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
362
407
|
auth?: RedirectSessionAuthParams;
|
|
363
|
-
/**
|
|
408
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
364
409
|
callbacks?: CallbackParams;
|
|
365
|
-
/**
|
|
410
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
366
411
|
preferences?: RedirectSessionPreferences;
|
|
367
412
|
}
|
|
@@ -80,7 +80,16 @@ var CallbackType;
|
|
|
80
80
|
const _createRedirectSessionRequest = {};
|
|
81
81
|
const _createRedirectSessionResponse = {};
|
|
82
82
|
/**
|
|
83
|
-
* Creates a
|
|
83
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
87
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
88
|
+
*
|
|
89
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
90
|
+
* the user back to the appropriate page on your site.
|
|
91
|
+
*
|
|
92
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
84
93
|
* @public
|
|
85
94
|
* @documentationMaturity preview
|
|
86
95
|
* @requiredField CreateRedirectSessionRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAuK5B,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
import { CreateRedirectSessionRequest, CreateRedirectSessionResponse } from './headless-v1-redirect-session.types';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
8
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
9
|
+
*
|
|
10
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
11
|
+
* the user back to the appropriate page on your site.
|
|
12
|
+
*
|
|
13
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
14
|
+
*/
|
|
4
15
|
export declare function createRedirectSession(payload: CreateRedirectSessionRequest): RequestOptionsFactory<CreateRedirectSessionResponse>;
|
|
@@ -19,7 +19,18 @@ function resolveWixHeadlessV1RedirectSessionServiceUrl(opts) {
|
|
|
19
19
|
};
|
|
20
20
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
27
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
28
|
+
*
|
|
29
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
30
|
+
* the user back to the appropriate page on your site.
|
|
31
|
+
*
|
|
32
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
33
|
+
*/
|
|
23
34
|
export function createRedirectSession(payload) {
|
|
24
35
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_createRedirectSessionRequest, {});
|
|
25
36
|
const { fromJSON: fromRes } = serializer(_createRedirectSessionResponse, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.http.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.http.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,MAAM,6BAA6B,GAAG,EAAE,CAAC;AACzC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAqC;IAErC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,6BAA6B,EAC7B,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;IAE7E,SAAS,uBAAuB,CAAC,EAAE,IAAI,EAAO;QAC5C,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,8DAA8D;YACzE,GAAG,EAAE,6CAA6C,CAAC;gBACjD,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,uBAAuB,CAAC,OAAO,GAAG,OAAO,CAAC;IAE1C,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Information for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
2
2
|
export interface RedirectSession {
|
|
3
|
-
/**
|
|
3
|
+
/** ID of the redirect session created. */
|
|
4
4
|
id?: string;
|
|
5
5
|
/**
|
|
6
|
-
* The Wix URL to redirect
|
|
6
|
+
* The full URL of the Wix page to redirect the visitor or member to. This URL includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site.
|
|
7
7
|
* @readonly
|
|
8
8
|
*/
|
|
9
9
|
fullUrl?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
12
|
-
/**
|
|
12
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
13
13
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
14
|
-
/**
|
|
14
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
15
15
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
16
|
-
/**
|
|
16
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
17
17
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
18
|
-
/**
|
|
18
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
19
19
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
20
|
-
/**
|
|
20
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
21
21
|
login?: RedirectSessionLoginParams;
|
|
22
|
-
/**
|
|
22
|
+
/** 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. */
|
|
23
23
|
logout?: RedirectSessionLogoutParams;
|
|
24
|
-
/**
|
|
24
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
25
25
|
auth?: RedirectSessionAuthParams;
|
|
26
|
-
/**
|
|
26
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
27
27
|
callbacks?: CallbackParams;
|
|
28
|
-
/**
|
|
28
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
29
29
|
preferences?: RedirectSessionPreferences;
|
|
30
30
|
}
|
|
31
31
|
/** @oneof */
|
|
32
32
|
export interface CreateRedirectSessionRequestIntentOneOf {
|
|
33
|
-
/**
|
|
33
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
34
34
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
35
|
-
/**
|
|
35
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
36
36
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
37
|
-
/**
|
|
37
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
38
38
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
39
|
-
/**
|
|
39
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
40
40
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
41
|
-
/**
|
|
41
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
42
42
|
login?: RedirectSessionLoginParams;
|
|
43
|
-
/**
|
|
43
|
+
/** 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. */
|
|
44
44
|
logout?: RedirectSessionLogoutParams;
|
|
45
|
-
/**
|
|
45
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
46
46
|
auth?: RedirectSessionAuthParams;
|
|
47
47
|
}
|
|
48
48
|
export interface RedirectSessionBookingsCheckoutParams {
|
|
49
|
-
/** The timezone
|
|
49
|
+
/** 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`. */
|
|
50
50
|
timezone?: string;
|
|
51
|
-
/**
|
|
51
|
+
/** *Required.** ID of the service for which to select the slot. Use [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
|
|
52
52
|
serviceId?: string;
|
|
53
|
-
/**
|
|
53
|
+
/** *Required.** The calendar slot to check out. */
|
|
54
54
|
slotAvailability?: SlotAvailability;
|
|
55
55
|
}
|
|
56
56
|
export interface SlotAvailability {
|
|
@@ -179,19 +179,22 @@ export interface BookingPolicyViolations {
|
|
|
179
179
|
bookOnlineDisabled?: boolean | null;
|
|
180
180
|
}
|
|
181
181
|
export interface RedirectSessionEcomCheckoutParams {
|
|
182
|
-
/**
|
|
182
|
+
/** *Required.** ID of the checkout to process. Use [Create Checkout From Cart](https://dev.wix.com/api/rest/wix-ecommerce/cart/create-checkout-from-cart) to create a checkout and obtain an ID. */
|
|
183
183
|
checkoutId?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RedirectSessionEventsCheckoutParams {
|
|
186
|
-
/**
|
|
186
|
+
/** *Required.** ID of the temporary event reservation. Use [Create Reservation](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/create-reservation) to reserve a ticket temporarily and obtain a reservation ID. */
|
|
187
187
|
reservationId?: string;
|
|
188
|
-
/**
|
|
188
|
+
/** *Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [Query Events](https://dev.wix.com/api/rest/wix-events/wix-events/event/query-events) to obtain an event slug. */
|
|
189
189
|
eventSlug?: string;
|
|
190
190
|
}
|
|
191
191
|
export interface RedirectSessionPaidPlansCheckoutParams {
|
|
192
|
-
/**
|
|
192
|
+
/** *Required.** ID of the paid plan selected. Use [Query Public Plans](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/query-public-plans) to obtain a paid plan ID. */
|
|
193
193
|
planId?: string;
|
|
194
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* For use when pricing plan selection is part of a checkout flow and the paid plan selection page is implemented on the external Wix Headless client site.
|
|
196
|
+
* In this case, a string is passed to the external pricing plans page as `checkoutData` query parameter. Pass this string here when redirecting back to Wix.
|
|
197
|
+
*/
|
|
195
198
|
checkoutData?: string | null;
|
|
196
199
|
}
|
|
197
200
|
export interface RedirectSessionLoginParams {
|
|
@@ -251,15 +254,19 @@ export interface AuthorizeRequest {
|
|
|
251
254
|
errorDescription?: string | null;
|
|
252
255
|
}
|
|
253
256
|
export interface RedirectSessionLogoutParams {
|
|
254
|
-
/**
|
|
257
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
255
258
|
clientId?: string;
|
|
256
259
|
}
|
|
257
260
|
export interface RedirectSessionAuthParams {
|
|
258
|
-
/**
|
|
261
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
259
262
|
authRequest?: AuthorizeRequest;
|
|
260
263
|
}
|
|
261
264
|
export interface RedirectSessionMembersAccountParams {
|
|
262
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* The member account page to redirect to.
|
|
267
|
+
*
|
|
268
|
+
* Default: `ACCOUNT_INFO`
|
|
269
|
+
*/
|
|
263
270
|
section?: MembersAccountSection;
|
|
264
271
|
}
|
|
265
272
|
export declare enum MembersAccountSection {
|
|
@@ -275,31 +282,60 @@ export declare enum MembersAccountSection {
|
|
|
275
282
|
EVENTS = "EVENTS"
|
|
276
283
|
}
|
|
277
284
|
export interface CallbackParams {
|
|
278
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* The URL for a custom thank you page implemented on a site outside of Wix. The visitor or member is directed to this page at the end of the Wix-managed process.
|
|
287
|
+
* If the process is abandoned or interrupted, the visitor or member is redirected to the URL specified in `postFlowUrl`.
|
|
288
|
+
*
|
|
289
|
+
* Default: If you don't pass a URL, the visitor or member is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
290
|
+
*/
|
|
279
291
|
thankYouPageUrl?: string | null;
|
|
280
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* The URL Wix should redirect the visitor or member to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
294
|
+
*
|
|
295
|
+
* **Note**: For an authentication redirect, you don't need to pass a URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
296
|
+
*/
|
|
281
297
|
postFlowUrl?: string | null;
|
|
282
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
300
|
+
*
|
|
301
|
+
* Default: If you don't pass a URL, a Wix login page is used.
|
|
302
|
+
*/
|
|
283
303
|
loginUrl?: string | null;
|
|
284
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
306
|
+
*
|
|
307
|
+
* Default: If you don't pass a URL, a Wix bookings services page is used.
|
|
308
|
+
*/
|
|
285
309
|
bookingsServiceListUrl?: string | null;
|
|
286
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
312
|
+
*
|
|
313
|
+
* Default: If you don't pass a URL, a Wix cart page is used.
|
|
314
|
+
*/
|
|
287
315
|
cartPageUrl?: string | null;
|
|
288
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
318
|
+
*
|
|
319
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
320
|
+
*/
|
|
289
321
|
planListUrl?: string | null;
|
|
290
322
|
}
|
|
291
323
|
export interface RedirectSessionPreferences {
|
|
292
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Whether to use a standard Wix template for Wix pages the visitor is redirected to. Set to `false` only if your client connects with a Wix site that has custom pages.
|
|
326
|
+
*
|
|
327
|
+
* Default: `true`
|
|
328
|
+
*/
|
|
293
329
|
useGenericWixPages?: boolean | null;
|
|
294
330
|
}
|
|
295
331
|
export interface CustomMemberPaths {
|
|
296
|
-
/**
|
|
332
|
+
/** 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. */
|
|
297
333
|
accountPagePath?: string | null;
|
|
298
|
-
/**
|
|
334
|
+
/** 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. */
|
|
299
335
|
profilePagePath?: string | null;
|
|
300
336
|
}
|
|
301
337
|
export interface CreateRedirectSessionResponse {
|
|
302
|
-
/**
|
|
338
|
+
/** Details for redirecting the visitor or member to a Wix page. */
|
|
303
339
|
redirectSession?: RedirectSession;
|
|
304
340
|
}
|
|
305
341
|
export interface ValidateCallbackURLRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":"AAqKA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":"AAqKA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAyHD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,qDAAqD;IACrD,sDAA6B,CAAA;IAC7B,0CAA0C;IAC1C,8CAAqB,CAAA;IACrB,wCAAwC;IACxC,0CAAiB,CAAA;IACjB,4CAA4C;IAC5C,wDAA+B,CAAA;IAC/B,qCAAqC;IACrC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AAwED,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,8BAA8B;IAC9B,mCAAmB,CAAA;IACnB,mDAAmD;IACnD,iCAAiB,CAAA;IACjB,mDAAmD;IACnD,qCAAqB,CAAA;IACrB,sDAAsD;IACtD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB"}
|
|
@@ -4,59 +4,59 @@ export declare const __debug: {
|
|
|
4
4
|
off: () => boolean;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
7
|
+
/** Information for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
8
8
|
export interface RedirectSession {
|
|
9
|
-
/**
|
|
9
|
+
/** ID of the redirect session created. */
|
|
10
10
|
_id?: string;
|
|
11
11
|
/**
|
|
12
|
-
* The Wix URL to redirect
|
|
12
|
+
* The full URL of the Wix page to redirect the visitor or member to. This URL includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site.
|
|
13
13
|
* @readonly
|
|
14
14
|
*/
|
|
15
15
|
fullUrl?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
18
|
-
/**
|
|
18
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
19
19
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
20
|
-
/**
|
|
20
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
21
21
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
22
|
-
/**
|
|
22
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
23
23
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
24
|
-
/**
|
|
24
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
25
25
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
26
|
-
/**
|
|
26
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
27
27
|
login?: RedirectSessionLoginParams;
|
|
28
|
-
/**
|
|
28
|
+
/** 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. */
|
|
29
29
|
logout?: RedirectSessionLogoutParams;
|
|
30
|
-
/**
|
|
30
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
31
31
|
auth?: RedirectSessionAuthParams;
|
|
32
|
-
/**
|
|
32
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
33
33
|
callbacks?: CallbackParams;
|
|
34
|
-
/**
|
|
34
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
35
35
|
preferences?: RedirectSessionPreferences;
|
|
36
36
|
}
|
|
37
37
|
/** @oneof */
|
|
38
38
|
export interface CreateRedirectSessionRequestIntentOneOf {
|
|
39
|
-
/**
|
|
39
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
40
40
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
41
|
-
/**
|
|
41
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
42
42
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
43
|
-
/**
|
|
43
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
44
44
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
45
|
-
/**
|
|
45
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
46
46
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
47
|
-
/**
|
|
47
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
48
48
|
login?: RedirectSessionLoginParams;
|
|
49
|
-
/**
|
|
49
|
+
/** 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. */
|
|
50
50
|
logout?: RedirectSessionLogoutParams;
|
|
51
|
-
/**
|
|
51
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
52
52
|
auth?: RedirectSessionAuthParams;
|
|
53
53
|
}
|
|
54
54
|
export interface RedirectSessionBookingsCheckoutParams {
|
|
55
|
-
/** The timezone
|
|
55
|
+
/** 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`. */
|
|
56
56
|
timezone?: string;
|
|
57
|
-
/**
|
|
57
|
+
/** *Required.** ID of the service for which to select the slot. Use [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
|
|
58
58
|
serviceId?: string;
|
|
59
|
-
/**
|
|
59
|
+
/** *Required.** The calendar slot to check out. */
|
|
60
60
|
slotAvailability?: SlotAvailability;
|
|
61
61
|
}
|
|
62
62
|
export interface SlotAvailability {
|
|
@@ -185,19 +185,22 @@ export interface BookingPolicyViolations {
|
|
|
185
185
|
bookOnlineDisabled?: boolean | null;
|
|
186
186
|
}
|
|
187
187
|
export interface RedirectSessionEcomCheckoutParams {
|
|
188
|
-
/**
|
|
188
|
+
/** *Required.** ID of the checkout to process. Use [Create Checkout From Cart](https://dev.wix.com/api/rest/wix-ecommerce/cart/create-checkout-from-cart) to create a checkout and obtain an ID. */
|
|
189
189
|
checkoutId?: string;
|
|
190
190
|
}
|
|
191
191
|
export interface RedirectSessionEventsCheckoutParams {
|
|
192
|
-
/**
|
|
192
|
+
/** *Required.** ID of the temporary event reservation. Use [Create Reservation](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/create-reservation) to reserve a ticket temporarily and obtain a reservation ID. */
|
|
193
193
|
reservationId?: string;
|
|
194
|
-
/**
|
|
194
|
+
/** *Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [Query Events](https://dev.wix.com/api/rest/wix-events/wix-events/event/query-events) to obtain an event slug. */
|
|
195
195
|
eventSlug?: string;
|
|
196
196
|
}
|
|
197
197
|
export interface RedirectSessionPaidPlansCheckoutParams {
|
|
198
|
-
/**
|
|
198
|
+
/** *Required.** ID of the paid plan selected. Use [Query Public Plans](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/query-public-plans) to obtain a paid plan ID. */
|
|
199
199
|
planId?: string;
|
|
200
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* For use when pricing plan selection is part of a checkout flow and the paid plan selection page is implemented on the external Wix Headless client site.
|
|
202
|
+
* In this case, a string is passed to the external pricing plans page as `checkoutData` query parameter. Pass this string here when redirecting back to Wix.
|
|
203
|
+
*/
|
|
201
204
|
checkoutData?: string | null;
|
|
202
205
|
}
|
|
203
206
|
export interface RedirectSessionLoginParams {
|
|
@@ -257,15 +260,19 @@ export interface AuthorizeRequest {
|
|
|
257
260
|
errorDescription?: string | null;
|
|
258
261
|
}
|
|
259
262
|
export interface RedirectSessionLogoutParams {
|
|
260
|
-
/**
|
|
263
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
261
264
|
clientId?: string;
|
|
262
265
|
}
|
|
263
266
|
export interface RedirectSessionAuthParams {
|
|
264
|
-
/**
|
|
267
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
265
268
|
authRequest?: AuthorizeRequest;
|
|
266
269
|
}
|
|
267
270
|
export interface RedirectSessionMembersAccountParams {
|
|
268
|
-
/**
|
|
271
|
+
/**
|
|
272
|
+
* The member account page to redirect to.
|
|
273
|
+
*
|
|
274
|
+
* Default: `ACCOUNT_INFO`
|
|
275
|
+
*/
|
|
269
276
|
section?: MembersAccountSection;
|
|
270
277
|
}
|
|
271
278
|
export declare enum MembersAccountSection {
|
|
@@ -281,31 +288,60 @@ export declare enum MembersAccountSection {
|
|
|
281
288
|
EVENTS = "EVENTS"
|
|
282
289
|
}
|
|
283
290
|
export interface CallbackParams {
|
|
284
|
-
/**
|
|
291
|
+
/**
|
|
292
|
+
* The URL for a custom thank you page implemented on a site outside of Wix. The visitor or member is directed to this page at the end of the Wix-managed process.
|
|
293
|
+
* If the process is abandoned or interrupted, the visitor or member is redirected to the URL specified in `postFlowUrl`.
|
|
294
|
+
*
|
|
295
|
+
* Default: If you don't pass a URL, the visitor or member is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
296
|
+
*/
|
|
285
297
|
thankYouPageUrl?: string | null;
|
|
286
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* The URL Wix should redirect the visitor or member to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
300
|
+
*
|
|
301
|
+
* **Note**: For an authentication redirect, you don't need to pass a URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
302
|
+
*/
|
|
287
303
|
postFlowUrl?: string | null;
|
|
288
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
306
|
+
*
|
|
307
|
+
* Default: If you don't pass a URL, a Wix login page is used.
|
|
308
|
+
*/
|
|
289
309
|
loginUrl?: string | null;
|
|
290
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
312
|
+
*
|
|
313
|
+
* Default: If you don't pass a URL, a Wix bookings services page is used.
|
|
314
|
+
*/
|
|
291
315
|
bookingsServiceListUrl?: string | null;
|
|
292
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
318
|
+
*
|
|
319
|
+
* Default: If you don't pass a URL, a Wix cart page is used.
|
|
320
|
+
*/
|
|
293
321
|
cartPageUrl?: string | null;
|
|
294
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
324
|
+
*
|
|
325
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
326
|
+
*/
|
|
295
327
|
planListUrl?: string | null;
|
|
296
328
|
}
|
|
297
329
|
export interface RedirectSessionPreferences {
|
|
298
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Whether to use a standard Wix template for Wix pages the visitor is redirected to. Set to `false` only if your client connects with a Wix site that has custom pages.
|
|
332
|
+
*
|
|
333
|
+
* Default: `true`
|
|
334
|
+
*/
|
|
299
335
|
useGenericWixPages?: boolean | null;
|
|
300
336
|
}
|
|
301
337
|
export interface CustomMemberPaths {
|
|
302
|
-
/**
|
|
338
|
+
/** 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. */
|
|
303
339
|
accountPagePath?: string | null;
|
|
304
|
-
/**
|
|
340
|
+
/** 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. */
|
|
305
341
|
profilePagePath?: string | null;
|
|
306
342
|
}
|
|
307
343
|
export interface CreateRedirectSessionResponse {
|
|
308
|
-
/**
|
|
344
|
+
/** Details for redirecting the visitor or member to a Wix page. */
|
|
309
345
|
redirectSession?: RedirectSession;
|
|
310
346
|
}
|
|
311
347
|
export interface ValidateCallbackURLRequest {
|
|
@@ -339,29 +375,38 @@ export interface SignInURLResponse {
|
|
|
339
375
|
redirectSession?: RedirectSession;
|
|
340
376
|
}
|
|
341
377
|
/**
|
|
342
|
-
* Creates a
|
|
378
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
379
|
+
*
|
|
380
|
+
*
|
|
381
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
382
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
383
|
+
*
|
|
384
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
385
|
+
* the user back to the appropriate page on your site.
|
|
386
|
+
*
|
|
387
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
343
388
|
* @public
|
|
344
389
|
* @documentationMaturity preview
|
|
345
390
|
* @requiredField CreateRedirectSessionRequest
|
|
346
391
|
*/
|
|
347
392
|
export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<CreateRedirectSessionResponse>;
|
|
348
393
|
export interface CreateRedirectSessionOptions extends CreateRedirectSessionRequestIntentOneOf {
|
|
349
|
-
/**
|
|
394
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
350
395
|
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
351
|
-
/**
|
|
396
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
352
397
|
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
353
|
-
/**
|
|
398
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
354
399
|
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
355
|
-
/**
|
|
400
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
356
401
|
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
357
|
-
/**
|
|
402
|
+
/** Pass an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
358
403
|
login?: RedirectSessionLoginParams;
|
|
359
|
-
/**
|
|
404
|
+
/** 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. */
|
|
360
405
|
logout?: RedirectSessionLogoutParams;
|
|
361
|
-
/**
|
|
406
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
362
407
|
auth?: RedirectSessionAuthParams;
|
|
363
|
-
/**
|
|
408
|
+
/** Details of pages to redirect the visitor or member back to on the Wix Headless client site. **Note:** When redirecting for authentication, do not pass a callback URL here. */
|
|
364
409
|
callbacks?: CallbackParams;
|
|
365
|
-
/**
|
|
410
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
366
411
|
preferences?: RedirectSessionPreferences;
|
|
367
412
|
}
|
|
@@ -58,7 +58,16 @@ export var CallbackType;
|
|
|
58
58
|
const _createRedirectSessionRequest = {};
|
|
59
59
|
const _createRedirectSessionResponse = {};
|
|
60
60
|
/**
|
|
61
|
-
* Creates a
|
|
61
|
+
* Creates a URL for redirecting a visitor or member from an external Wix Headless client site to a Wix page for Wix-managed functionality.
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to let Wix take care of frontend functionality for specific processes,
|
|
65
|
+
* including authentication, as well as checkouts for bookings, eCommerce, events, and paid plans.
|
|
66
|
+
*
|
|
67
|
+
* For each purpose, call Create Redirect Session with the relevant information to enable Wix to take care of one specific process, and provide a callback URL, so Wix can redirect
|
|
68
|
+
* the user back to the appropriate page on your site.
|
|
69
|
+
*
|
|
70
|
+
* Redirect your visitor or member to the URL provided in the response, which includes query parameters informing Wix where to redirect the visitor or member back to on the Wix Headless client site
|
|
62
71
|
* @public
|
|
63
72
|
* @documentationMaturity preview
|
|
64
73
|
* @requiredField CreateRedirectSessionRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAuK5B,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;
|
|
1
|
+
{"version":3,"file":"headless-v1-redirect-session.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.universal.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/redirects",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "bbf5255d73cfa59ce4626a66e4aa3743dca691a91d56375ea707f92c"
|
|
37
37
|
}
|