@wix/redirects 1.0.13 → 1.0.15
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 -12
- 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 -14
- 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 -12
- 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 -14
- package/build/es/src/headless-v1-redirect-session.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -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
|
*/
|
|
@@ -205,10 +207,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
205
207
|
}
|
|
206
208
|
export interface RedirectSessionLoginParams {
|
|
207
209
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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;
|
|
212
217
|
}
|
|
213
218
|
/**
|
|
214
219
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -266,14 +271,6 @@ export interface AuthorizeRequest {
|
|
|
266
271
|
/** Session token of the site visitor to authorize. */
|
|
267
272
|
sessionToken?: string | null;
|
|
268
273
|
}
|
|
269
|
-
export interface RedirectSessionLogoutParams {
|
|
270
|
-
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
271
|
-
clientId?: string;
|
|
272
|
-
}
|
|
273
|
-
export interface RedirectSessionAuthParams {
|
|
274
|
-
/** *Required.** The authorization request to send to the authorization server. */
|
|
275
|
-
authRequest?: AuthorizeRequest;
|
|
276
|
-
}
|
|
277
274
|
export interface RedirectSessionMembersAccountParams {
|
|
278
275
|
/**
|
|
279
276
|
* The member account page to redirect to.
|
|
@@ -297,6 +294,18 @@ export declare enum MembersAccountSection {
|
|
|
297
294
|
export interface CallbackParams {
|
|
298
295
|
/**
|
|
299
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
|
+
*
|
|
300
309
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
301
310
|
*
|
|
302
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`.
|
|
@@ -328,6 +337,9 @@ export interface CallbackParams {
|
|
|
328
337
|
cartPageUrl?: string | null;
|
|
329
338
|
/**
|
|
330
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.
|
|
331
343
|
*
|
|
332
344
|
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
333
345
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -211,10 +211,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
211
211
|
}
|
|
212
212
|
export interface RedirectSessionLoginParams {
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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;
|
|
218
221
|
}
|
|
219
222
|
/**
|
|
220
223
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -272,14 +275,6 @@ export interface AuthorizeRequest {
|
|
|
272
275
|
/** Session token of the site visitor to authorize. */
|
|
273
276
|
sessionToken?: string | null;
|
|
274
277
|
}
|
|
275
|
-
export interface RedirectSessionLogoutParams {
|
|
276
|
-
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
277
|
-
clientId?: string;
|
|
278
|
-
}
|
|
279
|
-
export interface RedirectSessionAuthParams {
|
|
280
|
-
/** __Required.__ The authorization request to send to the authorization server. */
|
|
281
|
-
authRequest?: AuthorizeRequest;
|
|
282
|
-
}
|
|
283
278
|
export interface RedirectSessionMembersAccountParams {
|
|
284
279
|
/**
|
|
285
280
|
* The member account page to redirect to.
|
|
@@ -303,6 +298,18 @@ export declare enum MembersAccountSection {
|
|
|
303
298
|
export interface CallbackParams {
|
|
304
299
|
/**
|
|
305
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
|
+
*
|
|
306
313
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
307
314
|
*
|
|
308
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`.
|
|
@@ -333,9 +340,11 @@ export interface CallbackParams {
|
|
|
333
340
|
*/
|
|
334
341
|
cartPageUrl?: string | null;
|
|
335
342
|
/**
|
|
336
|
-
* 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.
|
|
337
346
|
*
|
|
338
|
-
*
|
|
347
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
339
348
|
*/
|
|
340
349
|
planListUrl?: string | null;
|
|
341
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;AA6K5B,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AA6K5B,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;AAsFD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,8BAA8B;IAC9B,mCAAmB,CAAA;IACnB,mDAAmD;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CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,iDAAiD,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE7E,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,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
|
*/
|
|
@@ -205,10 +207,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
205
207
|
}
|
|
206
208
|
export interface RedirectSessionLoginParams {
|
|
207
209
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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;
|
|
212
217
|
}
|
|
213
218
|
/**
|
|
214
219
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -266,14 +271,6 @@ export interface AuthorizeRequest {
|
|
|
266
271
|
/** Session token of the site visitor to authorize. */
|
|
267
272
|
sessionToken?: string | null;
|
|
268
273
|
}
|
|
269
|
-
export interface RedirectSessionLogoutParams {
|
|
270
|
-
/** *Required.** ID of the OAuth app authorizing the client. */
|
|
271
|
-
clientId?: string;
|
|
272
|
-
}
|
|
273
|
-
export interface RedirectSessionAuthParams {
|
|
274
|
-
/** *Required.** The authorization request to send to the authorization server. */
|
|
275
|
-
authRequest?: AuthorizeRequest;
|
|
276
|
-
}
|
|
277
274
|
export interface RedirectSessionMembersAccountParams {
|
|
278
275
|
/**
|
|
279
276
|
* The member account page to redirect to.
|
|
@@ -297,6 +294,18 @@ export declare enum MembersAccountSection {
|
|
|
297
294
|
export interface CallbackParams {
|
|
298
295
|
/**
|
|
299
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
|
+
*
|
|
300
309
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
301
310
|
*
|
|
302
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`.
|
|
@@ -328,6 +337,9 @@ export interface CallbackParams {
|
|
|
328
337
|
cartPageUrl?: string | null;
|
|
329
338
|
/**
|
|
330
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.
|
|
331
343
|
*
|
|
332
344
|
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
333
345
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-redirect-session.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session.types.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -211,10 +211,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
|
|
|
211
211
|
}
|
|
212
212
|
export interface RedirectSessionLoginParams {
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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;
|
|
218
221
|
}
|
|
219
222
|
/**
|
|
220
223
|
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
@@ -272,14 +275,6 @@ export interface AuthorizeRequest {
|
|
|
272
275
|
/** Session token of the site visitor to authorize. */
|
|
273
276
|
sessionToken?: string | null;
|
|
274
277
|
}
|
|
275
|
-
export interface RedirectSessionLogoutParams {
|
|
276
|
-
/** __Required.__ ID of the OAuth app authorizing the client. */
|
|
277
|
-
clientId?: string;
|
|
278
|
-
}
|
|
279
|
-
export interface RedirectSessionAuthParams {
|
|
280
|
-
/** __Required.__ The authorization request to send to the authorization server. */
|
|
281
|
-
authRequest?: AuthorizeRequest;
|
|
282
|
-
}
|
|
283
278
|
export interface RedirectSessionMembersAccountParams {
|
|
284
279
|
/**
|
|
285
280
|
* The member account page to redirect to.
|
|
@@ -303,6 +298,18 @@ export declare enum MembersAccountSection {
|
|
|
303
298
|
export interface CallbackParams {
|
|
304
299
|
/**
|
|
305
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
|
+
*
|
|
306
313
|
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
307
314
|
*
|
|
308
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`.
|
|
@@ -333,9 +340,11 @@ export interface CallbackParams {
|
|
|
333
340
|
*/
|
|
334
341
|
cartPageUrl?: string | null;
|
|
335
342
|
/**
|
|
336
|
-
* 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.
|
|
337
346
|
*
|
|
338
|
-
*
|
|
347
|
+
* Default: If you don't pass a URL, a Wix pricing plans page is used.
|
|
339
348
|
*/
|
|
340
349
|
planListUrl?: string | null;
|
|
341
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;AA6K5B,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":";;;;;;;;;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,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,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
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@wix/metro-runtime": "^1.0.0",
|
|
18
|
-
"@wix/
|
|
19
|
-
"@wix/
|
|
18
|
+
"@wix/motion-edm-autogen-query-wrapper": "^1.0.0",
|
|
19
|
+
"@wix/sdk-types": "^1.0.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@wix/typescript-to-service-json": "^1.0.0"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "f0befc30d0ea2352825e0aea27f9e8d4ee26541d2abe40ef0ca4611b"
|
|
37
37
|
}
|