@wix/redirects 1.0.12 → 1.0.14
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.public.d.ts +1 -1
- package/build/cjs/src/headless-v1-redirect-session.types.d.ts +24 -14
- package/build/cjs/src/headless-v1-redirect-session.types.js.map +1 -1
- package/build/cjs/src/headless-v1-redirect-session.universal.d.ts +23 -16
- package/build/cjs/src/headless-v1-redirect-session.universal.js.map +1 -1
- package/build/es/src/headless-v1-redirect-session.public.d.ts +1 -1
- package/build/es/src/headless-v1-redirect-session.types.d.ts +24 -14
- package/build/es/src/headless-v1-redirect-session.types.js.map +1 -1
- package/build/es/src/headless-v1-redirect-session.universal.d.ts +23 -16
- package/build/es/src/headless-v1-redirect-session.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,4 +5,4 @@ export declare const __metadata: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function createRedirectSession(httpClient: HttpClient): (options?: CreateRedirectSessionOptions | undefined) => Promise<import("./headless-v1-redirect-session.universal").CreateRedirectSessionResponse>;
|
|
7
7
|
export { LocationType, MembersAccountSection, CallbackType, } from './headless-v1-redirect-session.universal';
|
|
8
|
-
export { RedirectSession, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams,
|
|
8
|
+
export { RedirectSession, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, CreateRedirectSessionOptions, } from './headless-v1-redirect-session.universal';
|
|
@@ -25,6 +25,8 @@ export interface CreateRedirectSessionRequest extends CreateRedirectSessionReque
|
|
|
25
25
|
auth?: RedirectSessionAuthParams;
|
|
26
26
|
/**
|
|
27
27
|
* Details of pages to redirect the visitor back to on the Wix Headless client site.
|
|
28
|
+
* When redirecting to any callback URL, Wix passes the boolean `wixMemberLoggedIn` query parameter.
|
|
29
|
+
* If `true`, a member logged in during the preceding Wix-managed process.
|
|
28
30
|
*
|
|
29
31
|
* **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
30
32
|
*/
|
|
@@ -56,8 +58,6 @@ export interface RedirectSessionBookingsCheckoutParams {
|
|
|
56
58
|
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
57
59
|
*/
|
|
58
60
|
timezone?: string;
|
|
59
|
-
/** *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. */
|
|
60
|
-
serviceId?: string;
|
|
61
61
|
/** *Required.** The calendar slot to check out. */
|
|
62
62
|
slotAvailability?: SlotAvailability;
|
|
63
63
|
}
|
|
@@ -207,10 +207,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
207
207
|
}
|
|
208
208
|
export interface RedirectSessionLoginParams {
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
export interface RedirectSessionLogoutParams {
|
|
211
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
212
|
+
clientId?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface RedirectSessionAuthParams {
|
|
215
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
216
|
+
authRequest?: AuthorizeRequest;
|
|
214
217
|
}
|
|
215
218
|
/**
|
|
216
219
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -268,14 +271,6 @@ export interface AuthorizeRequest {
|
|
|
268
271
|
/** Session token of the site visitor to authorize. */
|
|
269
272
|
sessionToken?: string | null;
|
|
270
273
|
}
|
|
271
|
-
export interface RedirectSessionLogoutParams {
|
|
272
|
-
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
273
|
-
clientId?: string;
|
|
274
|
-
}
|
|
275
|
-
export interface RedirectSessionAuthParams {
|
|
276
|
-
/** *Required.** The authorization request to send to the authorization server. */
|
|
277
|
-
authRequest?: AuthorizeRequest;
|
|
278
|
-
}
|
|
279
274
|
export interface RedirectSessionMembersAccountParams {
|
|
280
275
|
/**
|
|
281
276
|
* The member account page to redirect to.
|
|
@@ -299,6 +294,18 @@ export declare enum MembersAccountSection {
|
|
|
299
294
|
export interface CallbackParams {
|
|
300
295
|
/**
|
|
301
296
|
* 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.
|
|
297
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
298
|
+
*
|
|
299
|
+
* After a pricing plans checkout:
|
|
300
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
301
|
+
*
|
|
302
|
+
* After an eCommerce checkout:
|
|
303
|
+
* + `orderId`: ID of an eCommerce order.
|
|
304
|
+
*
|
|
305
|
+
* After an Events checkout
|
|
306
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
307
|
+
* + `eventId`: ID of the event.
|
|
308
|
+
*
|
|
302
309
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
303
310
|
*
|
|
304
311
|
* 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`.
|
|
@@ -330,6 +337,9 @@ export interface CallbackParams {
|
|
|
330
337
|
cartPageUrl?: string | null;
|
|
331
338
|
/**
|
|
332
339
|
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
340
|
+
* When redirecting to this URL, Wix passes the following query parameters:
|
|
341
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
342
|
+
* + `checkoutData`: Pass this string back in `paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
333
343
|
*
|
|
334
344
|
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
335
345
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":";;;AA6KA,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":";;;AA6KA,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;AA0HD,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;AAuFD,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"}
|
|
@@ -62,8 +62,6 @@ export interface RedirectSessionBookingsCheckoutParams {
|
|
|
62
62
|
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
63
63
|
*/
|
|
64
64
|
timezone?: string;
|
|
65
|
-
/** __Required.__ ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
|
|
66
|
-
serviceId?: string;
|
|
67
65
|
/** __Required.__ The calendar slot to check out. */
|
|
68
66
|
slotAvailability?: SlotAvailability;
|
|
69
67
|
}
|
|
@@ -213,10 +211,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
213
211
|
}
|
|
214
212
|
export interface RedirectSessionLoginParams {
|
|
215
213
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
214
|
+
export interface RedirectSessionLogoutParams {
|
|
215
|
+
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
216
|
+
clientId?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface RedirectSessionAuthParams {
|
|
219
|
+
/** __Required.__ The authorization request to send to the authorization server. */
|
|
220
|
+
authRequest?: AuthorizeRequest;
|
|
220
221
|
}
|
|
221
222
|
/**
|
|
222
223
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -274,14 +275,6 @@ export interface AuthorizeRequest {
|
|
|
274
275
|
/** Session token of the site visitor to authorize. */
|
|
275
276
|
sessionToken?: string | null;
|
|
276
277
|
}
|
|
277
|
-
export interface RedirectSessionLogoutParams {
|
|
278
|
-
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
279
|
-
clientId?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface RedirectSessionAuthParams {
|
|
282
|
-
/** __Required.__ The authorization request to send to the authorization server. */
|
|
283
|
-
authRequest?: AuthorizeRequest;
|
|
284
|
-
}
|
|
285
278
|
export interface RedirectSessionMembersAccountParams {
|
|
286
279
|
/**
|
|
287
280
|
* The member account page to redirect to.
|
|
@@ -305,6 +298,18 @@ export declare enum MembersAccountSection {
|
|
|
305
298
|
export interface CallbackParams {
|
|
306
299
|
/**
|
|
307
300
|
* 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.
|
|
301
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
302
|
+
*
|
|
303
|
+
* After a pricing plans checkout:
|
|
304
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
305
|
+
*
|
|
306
|
+
* After an eCommerce checkout:
|
|
307
|
+
* + `orderId`: ID of an eCommerce order.
|
|
308
|
+
*
|
|
309
|
+
* After an Events checkout
|
|
310
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
311
|
+
* + `eventId`: ID of the event.
|
|
312
|
+
*
|
|
308
313
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
309
314
|
*
|
|
310
315
|
* 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`.
|
|
@@ -335,9 +340,11 @@ export interface CallbackParams {
|
|
|
335
340
|
*/
|
|
336
341
|
cartPageUrl?: string | null;
|
|
337
342
|
/**
|
|
338
|
-
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
343
|
+
* The URL for a custom pricing plans page implemented outside of Wix. When redirecting to this URL, Wix passes the following query parameters:
|
|
344
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
345
|
+
* + `checkoutData`: Pass this string back in `options.paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
339
346
|
*
|
|
340
|
-
*
|
|
347
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
341
348
|
*/
|
|
342
349
|
planListUrl?: string | null;
|
|
343
350
|
}
|
|
@@ -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;
|
|
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;QAC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jB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA/DD,sDA+DC"}
|
|
@@ -5,4 +5,4 @@ export declare const __metadata: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function createRedirectSession(httpClient: HttpClient): (options?: CreateRedirectSessionOptions | undefined) => Promise<import("./headless-v1-redirect-session.universal").CreateRedirectSessionResponse>;
|
|
7
7
|
export { LocationType, MembersAccountSection, CallbackType, } from './headless-v1-redirect-session.universal';
|
|
8
|
-
export { RedirectSession, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams,
|
|
8
|
+
export { RedirectSession, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, CreateRedirectSessionOptions, } from './headless-v1-redirect-session.universal';
|
|
@@ -25,6 +25,8 @@ export interface CreateRedirectSessionRequest extends CreateRedirectSessionReque
|
|
|
25
25
|
auth?: RedirectSessionAuthParams;
|
|
26
26
|
/**
|
|
27
27
|
* Details of pages to redirect the visitor back to on the Wix Headless client site.
|
|
28
|
+
* When redirecting to any callback URL, Wix passes the boolean `wixMemberLoggedIn` query parameter.
|
|
29
|
+
* If `true`, a member logged in during the preceding Wix-managed process.
|
|
28
30
|
*
|
|
29
31
|
* **Note**: For an authentication redirect, don't pass a post-flow URL here. Instead, pass one in `auth.authRequest.redirectUri`.
|
|
30
32
|
*/
|
|
@@ -56,8 +58,6 @@ export interface RedirectSessionBookingsCheckoutParams {
|
|
|
56
58
|
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
57
59
|
*/
|
|
58
60
|
timezone?: string;
|
|
59
|
-
/** *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. */
|
|
60
|
-
serviceId?: string;
|
|
61
61
|
/** *Required.** The calendar slot to check out. */
|
|
62
62
|
slotAvailability?: SlotAvailability;
|
|
63
63
|
}
|
|
@@ -207,10 +207,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
207
207
|
}
|
|
208
208
|
export interface RedirectSessionLoginParams {
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
export interface RedirectSessionLogoutParams {
|
|
211
|
+
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
212
|
+
clientId?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface RedirectSessionAuthParams {
|
|
215
|
+
/** *Required.** The authorization request to send to the authorization server. */
|
|
216
|
+
authRequest?: AuthorizeRequest;
|
|
214
217
|
}
|
|
215
218
|
/**
|
|
216
219
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -268,14 +271,6 @@ export interface AuthorizeRequest {
|
|
|
268
271
|
/** Session token of the site visitor to authorize. */
|
|
269
272
|
sessionToken?: string | null;
|
|
270
273
|
}
|
|
271
|
-
export interface RedirectSessionLogoutParams {
|
|
272
|
-
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
273
|
-
clientId?: string;
|
|
274
|
-
}
|
|
275
|
-
export interface RedirectSessionAuthParams {
|
|
276
|
-
/** *Required.** The authorization request to send to the authorization server. */
|
|
277
|
-
authRequest?: AuthorizeRequest;
|
|
278
|
-
}
|
|
279
274
|
export interface RedirectSessionMembersAccountParams {
|
|
280
275
|
/**
|
|
281
276
|
* The member account page to redirect to.
|
|
@@ -299,6 +294,18 @@ export declare enum MembersAccountSection {
|
|
|
299
294
|
export interface CallbackParams {
|
|
300
295
|
/**
|
|
301
296
|
* 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.
|
|
297
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
298
|
+
*
|
|
299
|
+
* After a pricing plans checkout:
|
|
300
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
301
|
+
*
|
|
302
|
+
* After an eCommerce checkout:
|
|
303
|
+
* + `orderId`: ID of an eCommerce order.
|
|
304
|
+
*
|
|
305
|
+
* After an Events checkout
|
|
306
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
307
|
+
* + `eventId`: ID of the event.
|
|
308
|
+
*
|
|
302
309
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
303
310
|
*
|
|
304
311
|
* 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`.
|
|
@@ -330,6 +337,9 @@ export interface CallbackParams {
|
|
|
330
337
|
cartPageUrl?: string | null;
|
|
331
338
|
/**
|
|
332
339
|
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
340
|
+
* When redirecting to this URL, Wix passes the following query parameters:
|
|
341
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
342
|
+
* + `checkoutData`: Pass this string back in `paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
333
343
|
*
|
|
334
344
|
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
335
345
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":"AA6KA,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":"AA6KA,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;AA0HD,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;AAuFD,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"}
|
|
@@ -62,8 +62,6 @@ export interface RedirectSessionBookingsCheckoutParams {
|
|
|
62
62
|
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
63
63
|
*/
|
|
64
64
|
timezone?: string;
|
|
65
|
-
/** __Required.__ ID of the service for which to select the slot. Use [`queryServices()`](https://dev.wix.com/api/sdk/bookings/services/queryservices) to obtain a service ID. */
|
|
66
|
-
serviceId?: string;
|
|
67
65
|
/** __Required.__ The calendar slot to check out. */
|
|
68
66
|
slotAvailability?: SlotAvailability;
|
|
69
67
|
}
|
|
@@ -213,10 +211,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
213
211
|
}
|
|
214
212
|
export interface RedirectSessionLoginParams {
|
|
215
213
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
214
|
+
export interface RedirectSessionLogoutParams {
|
|
215
|
+
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
216
|
+
clientId?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface RedirectSessionAuthParams {
|
|
219
|
+
/** __Required.__ The authorization request to send to the authorization server. */
|
|
220
|
+
authRequest?: AuthorizeRequest;
|
|
220
221
|
}
|
|
221
222
|
/**
|
|
222
223
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -274,14 +275,6 @@ export interface AuthorizeRequest {
|
|
|
274
275
|
/** Session token of the site visitor to authorize. */
|
|
275
276
|
sessionToken?: string | null;
|
|
276
277
|
}
|
|
277
|
-
export interface RedirectSessionLogoutParams {
|
|
278
|
-
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
279
|
-
clientId?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface RedirectSessionAuthParams {
|
|
282
|
-
/** __Required.__ The authorization request to send to the authorization server. */
|
|
283
|
-
authRequest?: AuthorizeRequest;
|
|
284
|
-
}
|
|
285
278
|
export interface RedirectSessionMembersAccountParams {
|
|
286
279
|
/**
|
|
287
280
|
* The member account page to redirect to.
|
|
@@ -305,6 +298,18 @@ export declare enum MembersAccountSection {
|
|
|
305
298
|
export interface CallbackParams {
|
|
306
299
|
/**
|
|
307
300
|
* 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.
|
|
301
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
302
|
+
*
|
|
303
|
+
* After a pricing plans checkout:
|
|
304
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
305
|
+
*
|
|
306
|
+
* After an eCommerce checkout:
|
|
307
|
+
* + `orderId`: ID of an eCommerce order.
|
|
308
|
+
*
|
|
309
|
+
* After an Events checkout
|
|
310
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
311
|
+
* + `eventId`: ID of the event.
|
|
312
|
+
*
|
|
308
313
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
309
314
|
*
|
|
310
315
|
* 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`.
|
|
@@ -335,9 +340,11 @@ export interface CallbackParams {
|
|
|
335
340
|
*/
|
|
336
341
|
cartPageUrl?: string | null;
|
|
337
342
|
/**
|
|
338
|
-
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
343
|
+
* The URL for a custom pricing plans page implemented outside of Wix. When redirecting to this URL, Wix passes the following query parameters:
|
|
344
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
345
|
+
* + `checkoutData`: Pass this string back in `options.paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
339
346
|
*
|
|
340
|
-
*
|
|
347
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
341
348
|
*/
|
|
342
349
|
planListUrl?: string | null;
|
|
343
350
|
}
|
|
@@ -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;
|
|
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;AA6K5B,MAAM,C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5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/redirects",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
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": "2ea3879b2283d114bf3947ec3a8e06566d0c0ced50178c0ca962e163"
|
|
37
37
|
}
|