@wix/redirects 1.0.6 → 1.0.7

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.
@@ -4,12 +4,12 @@ import { CreateRedirectSessionRequest, CreateRedirectSessionResponse } from './h
4
4
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
5
5
  *
6
6
  *
7
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
7
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
8
8
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
9
9
  *
10
10
  * To initiate a redirect session:
11
11
  *
12
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
12
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
13
13
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
14
14
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
15
15
  */
@@ -26,12 +26,12 @@ function resolveWixHeadlessV1RedirectSessionServiceUrl(opts) {
26
26
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
27
27
  *
28
28
  *
29
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
29
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
30
30
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
31
31
  *
32
32
  * To initiate a redirect session:
33
33
  *
34
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
34
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
35
35
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
36
36
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
37
37
  */
@@ -62,9 +62,9 @@ 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 [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
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
66
  serviceId?: string;
67
- /** *Required.** The calendar slot to check out. */
67
+ /** **Required.** The calendar slot to check out. */
68
68
  slotAvailability?: SlotAvailability;
69
69
  }
70
70
  export interface SlotAvailability {
@@ -113,7 +113,7 @@ export interface Slot {
113
113
  *
114
114
  * If `timezone` is specified,
115
115
  * dates are based on the local date/time. This means that the timezone offset
116
- * in the `start_date` is ignored.
116
+ * in the `startDate` is ignored.
117
117
  */
118
118
  startDate?: string | null;
119
119
  /**
@@ -122,13 +122,13 @@ export interface Slot {
122
122
  *
123
123
  * If `timezone` is specified,
124
124
  * dates are based on the local date/time. This means that the timezone offset
125
- * in the `end_date` is ignored.
125
+ * in the `endDate` is ignored.
126
126
  */
127
127
  endDate?: string | null;
128
128
  /**
129
129
  * The timezone for which slot availability is to be calculated.
130
130
  *
131
- * Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_handling-daylight-savings-time-dst-for-local-time-zones)
131
+ * Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/sdk/bookings/availabilitycalendar/queryavailability#bookings_availabilitycalendar_queryavailability_handling-daylight-savings-time-dst-for-local-time-zones)
132
132
  * when calculating availability.
133
133
  */
134
134
  timezone?: string | null;
@@ -193,17 +193,17 @@ export interface BookingPolicyViolations {
193
193
  bookOnlineDisabled?: boolean | null;
194
194
  }
195
195
  export interface RedirectSessionEcomCheckoutParams {
196
- /** *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. */
196
+ /** **Required.** ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
197
197
  checkoutId?: string;
198
198
  }
199
199
  export interface RedirectSessionEventsCheckoutParams {
200
- /** *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. */
200
+ /** **Required.** ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
201
201
  reservationId?: string;
202
- /** *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. */
202
+ /** **Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
203
203
  eventSlug?: string;
204
204
  }
205
205
  export interface RedirectSessionPaidPlansCheckoutParams {
206
- /** *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. */
206
+ /** **Required.** ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
207
207
  planId?: string;
208
208
  /**
209
209
  * For use when pricing plan selection is part of a checkout flow, only if the paid plan selection page is implemented on an external Wix Headless client site.
@@ -268,11 +268,11 @@ export interface AuthorizeRequest {
268
268
  errorDescription?: string | null;
269
269
  }
270
270
  export interface RedirectSessionLogoutParams {
271
- /** *Required.** ID of the OAuth app authorizing the client. */
271
+ /** **Required.** ID of the OAuth app authorizing the client. */
272
272
  clientId?: string;
273
273
  }
274
274
  export interface RedirectSessionAuthParams {
275
- /** *Required.** The authorization request to send to the authorization server. */
275
+ /** **Required.** The authorization request to send to the authorization server. */
276
276
  authRequest?: AuthorizeRequest;
277
277
  }
278
278
  export interface RedirectSessionMembersAccountParams {
@@ -386,12 +386,12 @@ export interface SignInURLResponse {
386
386
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
387
387
  *
388
388
  *
389
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
389
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
390
390
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
391
391
  *
392
392
  * To initiate a redirect session:
393
393
  *
394
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
394
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
395
395
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
396
396
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
397
397
  * @public
@@ -83,12 +83,12 @@ const _createRedirectSessionResponse = {};
83
83
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
84
84
  *
85
85
  *
86
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
86
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
87
87
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
88
88
  *
89
89
  * To initiate a redirect session:
90
90
  *
91
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
91
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
92
92
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
93
93
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
94
94
  * @public
@@ -4,12 +4,12 @@ import { CreateRedirectSessionRequest, CreateRedirectSessionResponse } from './h
4
4
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
5
5
  *
6
6
  *
7
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
7
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
8
8
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
9
9
  *
10
10
  * To initiate a redirect session:
11
11
  *
12
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
12
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
13
13
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
14
14
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
15
15
  */
@@ -23,12 +23,12 @@ function resolveWixHeadlessV1RedirectSessionServiceUrl(opts) {
23
23
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
24
24
  *
25
25
  *
26
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
26
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
27
27
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
28
28
  *
29
29
  * To initiate a redirect session:
30
30
  *
31
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
31
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
32
32
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
33
33
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
34
34
  */
@@ -62,9 +62,9 @@ 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 [Query Services](https://dev.wix.com/api/rest/wix-bookings/services-v2/query-services) to obtain a service ID. */
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
66
  serviceId?: string;
67
- /** *Required.** The calendar slot to check out. */
67
+ /** **Required.** The calendar slot to check out. */
68
68
  slotAvailability?: SlotAvailability;
69
69
  }
70
70
  export interface SlotAvailability {
@@ -113,7 +113,7 @@ export interface Slot {
113
113
  *
114
114
  * If `timezone` is specified,
115
115
  * dates are based on the local date/time. This means that the timezone offset
116
- * in the `start_date` is ignored.
116
+ * in the `startDate` is ignored.
117
117
  */
118
118
  startDate?: string | null;
119
119
  /**
@@ -122,13 +122,13 @@ export interface Slot {
122
122
  *
123
123
  * If `timezone` is specified,
124
124
  * dates are based on the local date/time. This means that the timezone offset
125
- * in the `end_date` is ignored.
125
+ * in the `endDate` is ignored.
126
126
  */
127
127
  endDate?: string | null;
128
128
  /**
129
129
  * The timezone for which slot availability is to be calculated.
130
130
  *
131
- * Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_handling-daylight-savings-time-dst-for-local-time-zones)
131
+ * Learn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/sdk/bookings/availabilitycalendar/queryavailability#bookings_availabilitycalendar_queryavailability_handling-daylight-savings-time-dst-for-local-time-zones)
132
132
  * when calculating availability.
133
133
  */
134
134
  timezone?: string | null;
@@ -193,17 +193,17 @@ export interface BookingPolicyViolations {
193
193
  bookOnlineDisabled?: boolean | null;
194
194
  }
195
195
  export interface RedirectSessionEcomCheckoutParams {
196
- /** *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. */
196
+ /** **Required.** ID of the checkout to process. Use [`createCheckout()`](https://dev.wix.com/api/sdk/ecom/checkout/createcheckout) or [`createCheckoutFromCurrentCart()`](https://dev.wix.com/api/sdk/ecom/currentcart/createcheckoutfromcurrentcart) to create a checkout and obtain an ID. */
197
197
  checkoutId?: string;
198
198
  }
199
199
  export interface RedirectSessionEventsCheckoutParams {
200
- /** *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. */
200
+ /** **Required.** ID of the temporary event reservation. Use [`createReservation()`](https://dev.wix.com/api/sdk/events/checkout/createreservation) to reserve a ticket temporarily and obtain a reservation ID. */
201
201
  reservationId?: string;
202
- /** *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. */
202
+ /** **Required.** URL-friendly event slug, generated from the event title of the event. For example, `my-event-4`. Use [`listEvents()`](https://dev.wix.com/api/sdk/events/wixevents/listevents) to obtain an event slug. */
203
203
  eventSlug?: string;
204
204
  }
205
205
  export interface RedirectSessionPaidPlansCheckoutParams {
206
- /** *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. */
206
+ /** **Required.** ID of the paid plan selected. Use [`queryPublicPlans()`](https://dev.wix.com/api/sdk/pricing-plans/plans/querypublicplans) to obtain a paid plan ID. */
207
207
  planId?: string;
208
208
  /**
209
209
  * For use when pricing plan selection is part of a checkout flow, only if the paid plan selection page is implemented on an external Wix Headless client site.
@@ -268,11 +268,11 @@ export interface AuthorizeRequest {
268
268
  errorDescription?: string | null;
269
269
  }
270
270
  export interface RedirectSessionLogoutParams {
271
- /** *Required.** ID of the OAuth app authorizing the client. */
271
+ /** **Required.** ID of the OAuth app authorizing the client. */
272
272
  clientId?: string;
273
273
  }
274
274
  export interface RedirectSessionAuthParams {
275
- /** *Required.** The authorization request to send to the authorization server. */
275
+ /** **Required.** The authorization request to send to the authorization server. */
276
276
  authRequest?: AuthorizeRequest;
277
277
  }
278
278
  export interface RedirectSessionMembersAccountParams {
@@ -386,12 +386,12 @@ export interface SignInURLResponse {
386
386
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
387
387
  *
388
388
  *
389
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
389
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
390
390
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
391
391
  *
392
392
  * To initiate a redirect session:
393
393
  *
394
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
394
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
395
395
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
396
396
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
397
397
  * @public
@@ -61,12 +61,12 @@ const _createRedirectSessionResponse = {};
61
61
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
62
62
  *
63
63
  *
64
- * The Create Redirect Session endpoint enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
64
+ * The `createRedirectSession()` function enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
65
65
  * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for a bookings, eCommerce, events, or paid plans transaction.
66
66
  *
67
67
  * To initiate a redirect session:
68
68
  *
69
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
69
+ * 1. Call `createRedirectSession()` with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the user back to your site as appropriate when the process is over.
70
70
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
71
71
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
72
72
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/redirects",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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": "a74a67c990c0c234cda33d3003415f726c512aa418860ecffc78e13f"
36
+ "falconPackageHash": "b5220ae9722216ca90271d9aa83aaad3c9f3f4766386babe53a0cb90"
37
37
  }