@wix/auto_sdk_redirects_redirects 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.context.d.ts +11 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.context.js +21 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.context.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.http.d.ts +14 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.http.js +58 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.http.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +13 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.meta.js +47 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +24 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.public.js +30 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.public.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +673 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.types.js +71 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +796 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js +171 -0
- package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/headless-v1-redirect-session-redirects.context.d.ts +11 -0
- package/build/es/src/headless-v1-redirect-session-redirects.context.js +11 -0
- package/build/es/src/headless-v1-redirect-session-redirects.context.js.map +1 -0
- package/build/es/src/headless-v1-redirect-session-redirects.http.d.ts +14 -0
- package/build/es/src/headless-v1-redirect-session-redirects.http.js +54 -0
- package/build/es/src/headless-v1-redirect-session-redirects.http.js.map +1 -0
- package/build/es/src/headless-v1-redirect-session-redirects.meta.d.ts +13 -0
- package/build/es/src/headless-v1-redirect-session-redirects.meta.js +20 -0
- package/build/es/src/headless-v1-redirect-session-redirects.meta.js.map +1 -0
- package/build/es/src/headless-v1-redirect-session-redirects.public.d.ts +24 -0
- package/build/es/src/headless-v1-redirect-session-redirects.public.js +19 -0
- package/build/es/src/headless-v1-redirect-session-redirects.public.js.map +1 -0
- package/build/es/src/headless-v1-redirect-session-redirects.types.d.ts +673 -0
- package/build/es/src/headless-v1-redirect-session-redirects.types.js +68 -0
- package/build/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -0
- package/build/es/src/headless-v1-redirect-session-redirects.universal.d.ts +796 -0
- package/build/es/src/headless-v1-redirect-session-redirects.universal.js +144 -0
- package/build/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.d.ts +11 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.js +21 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.d.ts +14 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.js +58 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +13 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.js +47 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +24 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.js +30 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +673 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js +71 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +796 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js +171 -0
- package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.context.d.ts +11 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.context.js +11 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.context.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.http.d.ts +14 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.http.js +54 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.http.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.d.ts +13 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.js +20 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.public.d.ts +24 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.public.js +19 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.public.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.types.d.ts +673 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js +68 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.d.ts +796 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js +144 -0
- package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
/** Information for redirecting a visitor from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
|
|
2
|
+
export interface RedirectSession {
|
|
3
|
+
/** ID of the redirect session created. */
|
|
4
|
+
id?: string;
|
|
5
|
+
/**
|
|
6
|
+
* The full URL of the Wix page to redirect the visitor to. This URL includes query parameters informing Wix where to redirect the visitor back to on the Wix Headless client site.
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
fullUrl?: string;
|
|
10
|
+
/** Details about the URL of the redirect session. */
|
|
11
|
+
urlDetails?: URLDetails;
|
|
12
|
+
/**
|
|
13
|
+
* The session token to pass to the Wix page to maintain the visitor's identity.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
sessionToken?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* The short URL of the Wix page to redirect the visitor to. This URL includes query parameters informing Wix where to redirect the visitor back to on the Wix Headless client site.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
shortUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface URLDetails {
|
|
24
|
+
/**
|
|
25
|
+
* Endpoint of the url. This includes the base URL and the path to the endpoint, without query parameters.
|
|
26
|
+
* For example: `https://mysite.com/_api/oauth2/authorize`.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
endpoint?: string;
|
|
30
|
+
/** URL query parameters. */
|
|
31
|
+
searchParams?: Record<string, string>;
|
|
32
|
+
}
|
|
33
|
+
export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
|
|
34
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
35
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
36
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
37
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
38
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
39
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
40
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
41
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
42
|
+
/** Specify an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
43
|
+
login?: RedirectSessionLoginParams;
|
|
44
|
+
/** Information required for generating a custom URL to log out from a Wix account. This process invalidates the visitor or member token and clears cookies associated with the Wix domain from their browser. */
|
|
45
|
+
logout?: RedirectSessionLogoutParams;
|
|
46
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
47
|
+
auth?: RedirectSessionAuthParams;
|
|
48
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
49
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
50
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
51
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
52
|
+
/**
|
|
53
|
+
* Details of pages to redirect the visitor back to on the Wix Headless client site.
|
|
54
|
+
* When redirecting to any callback URL, Wix specifies the boolean `wixMemberLoggedIn` parameter.
|
|
55
|
+
* If `true`, a member logged in during the preceding Wix-managed process.
|
|
56
|
+
*
|
|
57
|
+
* **Note**: For an authentication redirect, don't specify a post-flow URL here. Instead, specify one in `auth.authRequest.redirectUri`.
|
|
58
|
+
*/
|
|
59
|
+
callbacks?: CallbackParams;
|
|
60
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
61
|
+
preferences?: RedirectSessionPreferences;
|
|
62
|
+
}
|
|
63
|
+
/** @oneof */
|
|
64
|
+
export interface CreateRedirectSessionRequestIntentOneOf {
|
|
65
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
66
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
67
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
68
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
69
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
70
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
71
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
72
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
73
|
+
/** Specify an empty object in this parameter to generate a URL for Wix login without first checking whether the visitor is authenticated. */
|
|
74
|
+
login?: RedirectSessionLoginParams;
|
|
75
|
+
/** 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. */
|
|
76
|
+
logout?: RedirectSessionLogoutParams;
|
|
77
|
+
/** Information required for generating a custom URL for Wix authentication. */
|
|
78
|
+
auth?: RedirectSessionAuthParams;
|
|
79
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
80
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
81
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
82
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
83
|
+
}
|
|
84
|
+
export interface RedirectSessionBookingsCheckoutParams {
|
|
85
|
+
/**
|
|
86
|
+
* 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`.
|
|
87
|
+
*
|
|
88
|
+
* Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
|
|
89
|
+
*/
|
|
90
|
+
timezone?: string;
|
|
91
|
+
slotAvailability?: SlotAvailability;
|
|
92
|
+
}
|
|
93
|
+
export interface SlotAvailability {
|
|
94
|
+
/**
|
|
95
|
+
* The slot for the corresponding session, when the session is either a single session
|
|
96
|
+
* or a specific session generated from a recurring session.
|
|
97
|
+
*/
|
|
98
|
+
slot?: Slot;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the slot is bookable. Bookability is determined by checking a
|
|
101
|
+
* session's open slots and booking policies. Locks are not taken into
|
|
102
|
+
* account.
|
|
103
|
+
*/
|
|
104
|
+
bookable?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Total number of spots for this slot.
|
|
107
|
+
* For example, if a session has a total of 10 spots and 3 spots are booked,
|
|
108
|
+
* `spotsTotal` is 10 and `openSpots` is 7.
|
|
109
|
+
*/
|
|
110
|
+
totalSpots?: number | null;
|
|
111
|
+
/** Number of open spots for this slot. */
|
|
112
|
+
openSpots?: number | null;
|
|
113
|
+
/** An object describing the slot's waitlist and its occupancy. */
|
|
114
|
+
waitingList?: WaitingList;
|
|
115
|
+
/** Booking policy violations for the slot. */
|
|
116
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the slot is locked because a waitlist exists.
|
|
119
|
+
* When a slot frees up, the slot is offered to the next customer on the waitlist. Read-only.
|
|
120
|
+
*/
|
|
121
|
+
locked?: boolean | null;
|
|
122
|
+
isFromV2?: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface Slot {
|
|
125
|
+
/**
|
|
126
|
+
* ID for the slot's corresponding session, when the session is either a single session
|
|
127
|
+
* or a specific session generated from a recurring session.
|
|
128
|
+
*
|
|
129
|
+
* Deprecated. Please use `eventId` instead.
|
|
130
|
+
* @deprecated ID for the slot's corresponding session, when the session is either a single session
|
|
131
|
+
* or a specific session generated from a recurring session.
|
|
132
|
+
*
|
|
133
|
+
* Deprecated. Please use `eventId` instead.
|
|
134
|
+
* @replacedBy event_id
|
|
135
|
+
* @targetRemovalDate 2025-09-30
|
|
136
|
+
*/
|
|
137
|
+
sessionId?: string | null;
|
|
138
|
+
/** Service ID. */
|
|
139
|
+
serviceId?: string;
|
|
140
|
+
/** Schedule ID. */
|
|
141
|
+
scheduleId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
144
|
+
* format.
|
|
145
|
+
*
|
|
146
|
+
* If `timezone` is specified,
|
|
147
|
+
* dates are based on the local date/time. This means that the timezone offset
|
|
148
|
+
* in the `start_date` is ignored.
|
|
149
|
+
*/
|
|
150
|
+
startDate?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The end time of this slot in
|
|
153
|
+
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
154
|
+
*
|
|
155
|
+
* If `timezone` is specified,
|
|
156
|
+
* dates are based on the local date/time. This means that the timezone offset
|
|
157
|
+
* in the `end_date` is ignored.
|
|
158
|
+
*/
|
|
159
|
+
endDate?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The timezone for which slot availability is to be calculated.
|
|
162
|
+
*
|
|
163
|
+
* 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)
|
|
164
|
+
* when calculating availability.
|
|
165
|
+
*/
|
|
166
|
+
timezone?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* The resource required for this slot. Currently, the only supported resource
|
|
169
|
+
* is the relevant staff member for the slot.
|
|
170
|
+
*/
|
|
171
|
+
resource?: SlotResource;
|
|
172
|
+
/** Geographic location of the slot. */
|
|
173
|
+
location?: Location;
|
|
174
|
+
/**
|
|
175
|
+
* ID for the slot's corresponding event, when the event is either a single event
|
|
176
|
+
* or a specific event generated from a recurring event.
|
|
177
|
+
*/
|
|
178
|
+
eventId?: string | null;
|
|
179
|
+
}
|
|
180
|
+
export interface SlotResource {
|
|
181
|
+
/**
|
|
182
|
+
* Resource ID.
|
|
183
|
+
* @readonly
|
|
184
|
+
*/
|
|
185
|
+
id?: string | null;
|
|
186
|
+
/** Resource name. Read only. */
|
|
187
|
+
name?: string | null;
|
|
188
|
+
}
|
|
189
|
+
export interface Location {
|
|
190
|
+
/**
|
|
191
|
+
* Business location ID. Available only for locations that are business locations,
|
|
192
|
+
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
193
|
+
*/
|
|
194
|
+
id?: string | null;
|
|
195
|
+
/** Location name. */
|
|
196
|
+
name?: string | null;
|
|
197
|
+
/** The full address of this location. */
|
|
198
|
+
formattedAddress?: string | null;
|
|
199
|
+
/** The full translated address of this location. */
|
|
200
|
+
formattedAddressTranslated?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Location type.
|
|
203
|
+
*
|
|
204
|
+
* - `"OWNER_BUSINESS"`: The business address, as set in the site’s general settings.
|
|
205
|
+
* - `"OWNER_CUSTOM"`: The address as set when creating the service.
|
|
206
|
+
* - `"CUSTOM"`: The address as set for the individual session.
|
|
207
|
+
*/
|
|
208
|
+
locationType?: LocationType;
|
|
209
|
+
}
|
|
210
|
+
export declare enum LocationType {
|
|
211
|
+
UNDEFINED = "UNDEFINED",
|
|
212
|
+
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
213
|
+
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
214
|
+
CUSTOM = "CUSTOM"
|
|
215
|
+
}
|
|
216
|
+
export interface WaitingList {
|
|
217
|
+
/**
|
|
218
|
+
* Total number of spots and open spots for this waitlist.
|
|
219
|
+
* For example, a Yoga class with 10 waitlist spots and 3 registered
|
|
220
|
+
* on the waitlist has 10 `total_spots` and 7 `open_spots`.
|
|
221
|
+
*/
|
|
222
|
+
totalSpots?: number | null;
|
|
223
|
+
/** Number of open spots for this waitlist. */
|
|
224
|
+
openSpots?: number | null;
|
|
225
|
+
}
|
|
226
|
+
export interface BookingPolicyViolations {
|
|
227
|
+
/** Bookings policy violation. Too early to book this slot. */
|
|
228
|
+
tooEarlyToBook?: boolean | null;
|
|
229
|
+
/** Bookings policy violation. Too late to book this slot. */
|
|
230
|
+
tooLateToBook?: boolean | null;
|
|
231
|
+
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
232
|
+
bookOnlineDisabled?: boolean | null;
|
|
233
|
+
}
|
|
234
|
+
export interface NestedTimeSlot {
|
|
235
|
+
serviceId?: string;
|
|
236
|
+
start?: string;
|
|
237
|
+
end?: string;
|
|
238
|
+
resource?: SlotResource;
|
|
239
|
+
/** Schedule ID. */
|
|
240
|
+
scheduleId?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface RedirectSessionEcomCheckoutParams {
|
|
243
|
+
/**
|
|
244
|
+
* - SDK: Use [Create Checkout](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/create-checkout) or [Create Checkout From Current Cart](https://dev.wix.com/docs/sdk/backend-modules/ecom/current-cart/create-checkout-from-current-cart).
|
|
245
|
+
* - REST: Use [Create Checkout From Cart](https://dev.wix.com/docs/rest/business-solutions/e-commerce/cart/create-checkout-from-cart).
|
|
246
|
+
*/
|
|
247
|
+
checkoutId?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface RedirectSessionEventsCheckoutParams {
|
|
250
|
+
reservationId?: string;
|
|
251
|
+
eventSlug?: string;
|
|
252
|
+
}
|
|
253
|
+
export interface RedirectSessionPaidPlansCheckoutParams {
|
|
254
|
+
planId?: string;
|
|
255
|
+
/**
|
|
256
|
+
* 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.
|
|
257
|
+
* In this case, a string is received by the external pricing plans page as a `checkoutData` query parameter. Pass this string back here when redirecting back to Wix for checkout.
|
|
258
|
+
*/
|
|
259
|
+
checkoutData?: string | null;
|
|
260
|
+
}
|
|
261
|
+
export interface RedirectSessionLoginParams {
|
|
262
|
+
}
|
|
263
|
+
export interface RedirectSessionLogoutParams {
|
|
264
|
+
clientId?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface RedirectSessionAuthParams {
|
|
267
|
+
authRequest?: AuthorizeRequest;
|
|
268
|
+
/** prompt type */
|
|
269
|
+
prompt?: Prompt;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* AuthorizeRequest is sent by the client to the authorization server to initiate
|
|
273
|
+
* the authorization process.
|
|
274
|
+
*/
|
|
275
|
+
export interface AuthorizeRequest {
|
|
276
|
+
/** ID of the Wix OAuth app requesting authorization. */
|
|
277
|
+
clientId?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
|
|
280
|
+
*
|
|
281
|
+
* Supported values:
|
|
282
|
+
* + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
|
|
283
|
+
*/
|
|
284
|
+
responseType?: string;
|
|
285
|
+
/** URI to redirect the browser to after authentication and authorization. The browser is redirected to this URI whether the authentication and authorization process is successful or not. */
|
|
286
|
+
redirectUri?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Desired scope of access. If this field is left empty, only an access token is granted.
|
|
289
|
+
* To received a refresh token, pass `offline_access` as the value of this field.
|
|
290
|
+
*/
|
|
291
|
+
scope?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* A value used to confirm the state of an application before and after it makes an authorization
|
|
294
|
+
* request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
|
|
295
|
+
* is redirected there.
|
|
296
|
+
* Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
|
|
297
|
+
*/
|
|
298
|
+
state?: string;
|
|
299
|
+
/**
|
|
300
|
+
* esired response format.
|
|
301
|
+
*
|
|
302
|
+
* Supported values:
|
|
303
|
+
* + `query`: The response parameters are encoded as query string parameters and added to the `redirectUri` when redirecting.
|
|
304
|
+
* + `fragment`: The response parameters are encoded as URI fragment parameters and added to the `redirectUri` when redirecting.
|
|
305
|
+
* + `web_message`: The response parameters are encoded as a JSON object and added to the body of a [web message response](https://datatracker.ietf.org/doc/html/draft-sakimura-oauth-wmrm-00).
|
|
306
|
+
*
|
|
307
|
+
* Default value: `query`
|
|
308
|
+
*/
|
|
309
|
+
responseMode?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Code challenge to use for PKCE verification.
|
|
312
|
+
* This field is only used if `responseType` is set to `code`.
|
|
313
|
+
*/
|
|
314
|
+
codeChallenge?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* Code challenge method to use for PKCE verification.
|
|
317
|
+
* This field is only used if `responseType` is set to `code`.
|
|
318
|
+
*
|
|
319
|
+
* Supported values:
|
|
320
|
+
* + `S256`: The code challenge is transformed using SHA-256 encyption.
|
|
321
|
+
* + `S512`: The code challenge is transformed using SHA-512 encyption.
|
|
322
|
+
*/
|
|
323
|
+
codeChallengeMethod?: string | null;
|
|
324
|
+
/** Session token of the site visitor to authorize. */
|
|
325
|
+
sessionToken?: string | null;
|
|
326
|
+
/** URL to redirect user to sign in */
|
|
327
|
+
signInUrl?: string | null;
|
|
328
|
+
}
|
|
329
|
+
/** Currently only `none` and `login` are supported. */
|
|
330
|
+
export declare enum Prompt {
|
|
331
|
+
login = "login",
|
|
332
|
+
none = "none",
|
|
333
|
+
consent = "consent",
|
|
334
|
+
select_account = "select_account"
|
|
335
|
+
}
|
|
336
|
+
export interface RedirectSessionMembersAccountParams {
|
|
337
|
+
/**
|
|
338
|
+
* The member account page to redirect to.
|
|
339
|
+
*
|
|
340
|
+
* Default: `ACCOUNT_INFO`
|
|
341
|
+
*/
|
|
342
|
+
section?: MembersAccountSection;
|
|
343
|
+
}
|
|
344
|
+
export declare enum MembersAccountSection {
|
|
345
|
+
/** Account info section in "my account". */
|
|
346
|
+
ACCOUNT_INFO = "ACCOUNT_INFO",
|
|
347
|
+
/** My Bookings section in "my account". */
|
|
348
|
+
BOOKINGS = "BOOKINGS",
|
|
349
|
+
/** My Orders section in "my account". */
|
|
350
|
+
ORDERS = "ORDERS",
|
|
351
|
+
/** Subscriptions section in "my account". */
|
|
352
|
+
SUBSCRIPTIONS = "SUBSCRIPTIONS",
|
|
353
|
+
/** Events section in "my account". */
|
|
354
|
+
EVENTS = "EVENTS"
|
|
355
|
+
}
|
|
356
|
+
export interface RedirectSessionStoresProductParams {
|
|
357
|
+
productSlug?: string;
|
|
358
|
+
}
|
|
359
|
+
export interface RedirectSessionBookingsBookParams {
|
|
360
|
+
/** For use when filtering the bookings page by a specific resource. */
|
|
361
|
+
resourceId?: string;
|
|
362
|
+
}
|
|
363
|
+
export interface CallbackParams {
|
|
364
|
+
/**
|
|
365
|
+
* 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.
|
|
366
|
+
* When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
|
|
367
|
+
*
|
|
368
|
+
* After a pricing plans checkout:
|
|
369
|
+
* + `planOrderId`: ID of a pricing plan order.
|
|
370
|
+
*
|
|
371
|
+
* After an eCommerce checkout:
|
|
372
|
+
* + `orderId`: ID of an eCommerce order.
|
|
373
|
+
*
|
|
374
|
+
* After an Events checkout:
|
|
375
|
+
* + `orderNumber`: Unique order number for the transaction.
|
|
376
|
+
* + `eventId`: ID of the event.
|
|
377
|
+
*
|
|
378
|
+
* If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
|
|
379
|
+
*
|
|
380
|
+
* Default: If you don't specify a URL, the visitor is redirected to a Wix thank you page, and from there to the URL specified in `postFlowUrl`.
|
|
381
|
+
*/
|
|
382
|
+
thankYouPageUrl?: string | null;
|
|
383
|
+
/**
|
|
384
|
+
* The URL Wix should redirect the visitor to when the Wix-managed process is completed, abandoned, or interrupted.
|
|
385
|
+
*
|
|
386
|
+
* **Note**: For an authentication redirect, don't specify a URL here. Instead, specify one in `auth.authRequest.redirectUri`.
|
|
387
|
+
*/
|
|
388
|
+
postFlowUrl?: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* The URL for a custom login page implemented outside of Wix.
|
|
391
|
+
*
|
|
392
|
+
* Default: If you don't specify a URL, a Wix login page is used.
|
|
393
|
+
*/
|
|
394
|
+
loginUrl?: string | null;
|
|
395
|
+
/**
|
|
396
|
+
* The URL for a custom bookings services page implemented outside of Wix.
|
|
397
|
+
*
|
|
398
|
+
* Default: If you don't specify a URL, a Wix bookings services page is used.
|
|
399
|
+
*/
|
|
400
|
+
bookingsServiceListUrl?: string | null;
|
|
401
|
+
/**
|
|
402
|
+
* The URL for a custom eCommerce cart page implemented outside of Wix.
|
|
403
|
+
*
|
|
404
|
+
* Default: If you don't specify a URL, a Wix cart page is used.
|
|
405
|
+
*/
|
|
406
|
+
cartPageUrl?: string | null;
|
|
407
|
+
/**
|
|
408
|
+
* The URL for a custom pricing plans page implemented outside of Wix.
|
|
409
|
+
* When redirecting to this URL, Wix specifies the following query parameters:
|
|
410
|
+
* + `planIds`: IDs of the pricing plans on the custom page.
|
|
411
|
+
* + `checkoutData`: Pass this string back in `paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
|
|
412
|
+
*
|
|
413
|
+
* Default: If you don't specify a URL, a Wix pricing plans page is used.
|
|
414
|
+
*/
|
|
415
|
+
planListUrl?: string | null;
|
|
416
|
+
}
|
|
417
|
+
export interface RedirectSessionPreferences {
|
|
418
|
+
/**
|
|
419
|
+
* Whether to use a standard Wix template for Wix-managed pages the visitor is redirected to. Set to `false` only if your client site connects with a Wix site that has custom pages.
|
|
420
|
+
*
|
|
421
|
+
* Default: `true`
|
|
422
|
+
*/
|
|
423
|
+
useGenericWixPages?: boolean | null;
|
|
424
|
+
/**
|
|
425
|
+
* Whether to maintain the identity used in the redirect to Wix (not relevant for `logout` and `auth` intents), or to use a new visitor identity.
|
|
426
|
+
*
|
|
427
|
+
* Default: `true`
|
|
428
|
+
*/
|
|
429
|
+
maintainIdentity?: boolean | null;
|
|
430
|
+
/**
|
|
431
|
+
* Map of additional global query parameters to add to the created Wix URL.
|
|
432
|
+
* For example, [UTM parameters](https://en.wikipedia.org/wiki/UTM_parameters).
|
|
433
|
+
*/
|
|
434
|
+
additionalQueryParameters?: Record<string, string>;
|
|
435
|
+
}
|
|
436
|
+
export interface CustomMemberPaths {
|
|
437
|
+
/** 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. */
|
|
438
|
+
accountPagePath?: string | null;
|
|
439
|
+
/** 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. */
|
|
440
|
+
profilePagePath?: string | null;
|
|
441
|
+
}
|
|
442
|
+
export interface CreateRedirectSessionResponse {
|
|
443
|
+
/** Details for redirecting the visitor to a Wix page. */
|
|
444
|
+
redirectSession?: RedirectSession;
|
|
445
|
+
}
|
|
446
|
+
export interface CreateAnonymousRedirectSessionRequest extends CreateAnonymousRedirectSessionRequestIntentOneOf {
|
|
447
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
448
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
449
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
450
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
451
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
452
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
453
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
454
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
455
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
456
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
457
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
458
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
459
|
+
/** Optional preferences for customizing redirection to Wix pages. */
|
|
460
|
+
preferences?: RedirectSessionPreferences;
|
|
461
|
+
}
|
|
462
|
+
/** @oneof */
|
|
463
|
+
export interface CreateAnonymousRedirectSessionRequestIntentOneOf {
|
|
464
|
+
/** Information required for generating a custom URL for a Wix Bookings checkout. */
|
|
465
|
+
bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
|
|
466
|
+
/** Information required for generating a custom URL for a Wix eCommerce checkout. */
|
|
467
|
+
ecomCheckout?: RedirectSessionEcomCheckoutParams;
|
|
468
|
+
/** Information required for generating a custom URL for a Wix Events checkout. */
|
|
469
|
+
eventsCheckout?: RedirectSessionEventsCheckoutParams;
|
|
470
|
+
/** Information required for generating a custom URL for a Wix Paid Plans checkout. */
|
|
471
|
+
paidPlansCheckout?: RedirectSessionPaidPlansCheckoutParams;
|
|
472
|
+
/** Information required for generating a custom URL for a Wix stores product page. */
|
|
473
|
+
storesProduct?: RedirectSessionStoresProductParams;
|
|
474
|
+
/** Information required for generating a custom URL for Wix bookings book page. */
|
|
475
|
+
bookingsBook?: RedirectSessionBookingsBookParams;
|
|
476
|
+
}
|
|
477
|
+
export interface CreateAnonymousRedirectSessionResponse {
|
|
478
|
+
/** Details for redirecting the visitor to a Wix page. */
|
|
479
|
+
redirectSession?: RedirectSession;
|
|
480
|
+
}
|
|
481
|
+
export interface AttachPagesRequest {
|
|
482
|
+
/** App ID that we want to inherit pages for. */
|
|
483
|
+
appDefId?: string;
|
|
484
|
+
}
|
|
485
|
+
export interface AttachPagesResponse {
|
|
486
|
+
/** The status of the operation. */
|
|
487
|
+
status?: AttachPagesResponseStatus;
|
|
488
|
+
/** A descriptive message about the operation */
|
|
489
|
+
message?: string;
|
|
490
|
+
/** True if pages were attached, false otherwise */
|
|
491
|
+
pagesAttached?: boolean;
|
|
492
|
+
/** True if the site was already published */
|
|
493
|
+
sitePublished?: boolean;
|
|
494
|
+
}
|
|
495
|
+
export declare enum AttachPagesResponseStatus {
|
|
496
|
+
/** Invalid value. */
|
|
497
|
+
UNKNOWN = "UNKNOWN",
|
|
498
|
+
/** Pages were successfully attached. */
|
|
499
|
+
SUCCESS = "SUCCESS",
|
|
500
|
+
/** No pages were attached because the site is already published. */
|
|
501
|
+
NO_ACTION = "NO_ACTION",
|
|
502
|
+
/** An error occurred, such as when the site or app is not found. */
|
|
503
|
+
ERROR = "ERROR"
|
|
504
|
+
}
|
|
505
|
+
export interface ValidateCallbackURLRequest {
|
|
506
|
+
/** An external URL to validate */
|
|
507
|
+
callbackUrl?: string;
|
|
508
|
+
/** Type of the callback URL. */
|
|
509
|
+
callbackType?: CallbackType;
|
|
510
|
+
/** The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context */
|
|
511
|
+
clientId?: string;
|
|
512
|
+
}
|
|
513
|
+
export declare enum CallbackType {
|
|
514
|
+
/** Invalid value. */
|
|
515
|
+
UNKNOWN = "UNKNOWN",
|
|
516
|
+
/** Callback URL is used for the logout flow. */
|
|
517
|
+
LOGOUT = "LOGOUT",
|
|
518
|
+
/** Callback URL is used for a checkout flow. */
|
|
519
|
+
CHECKOUT = "CHECKOUT",
|
|
520
|
+
/** Callback URL is used for the authorize flow. */
|
|
521
|
+
AUTHORIZE = "AUTHORIZE"
|
|
522
|
+
}
|
|
523
|
+
export interface ValidateCallbackURLResponse {
|
|
524
|
+
/** Indicates if the provided URL is allowed for the given client id */
|
|
525
|
+
isValid?: boolean;
|
|
526
|
+
}
|
|
527
|
+
export interface SignInURLRequest {
|
|
528
|
+
/** The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context */
|
|
529
|
+
clientId?: string;
|
|
530
|
+
}
|
|
531
|
+
export interface SignInURLResponse {
|
|
532
|
+
/** The Wix URL details to redirect into */
|
|
533
|
+
redirectSession?: RedirectSession;
|
|
534
|
+
}
|
|
535
|
+
export interface AttachAllTemplatesRequest {
|
|
536
|
+
}
|
|
537
|
+
export interface AttachAllTemplatesResponse {
|
|
538
|
+
/** The status of the operation. */
|
|
539
|
+
status?: Status;
|
|
540
|
+
}
|
|
541
|
+
export declare enum Status {
|
|
542
|
+
/** Invalid value. */
|
|
543
|
+
UNKNOWN = "UNKNOWN",
|
|
544
|
+
/** Templates were successfully attached. */
|
|
545
|
+
SUCCESS = "SUCCESS",
|
|
546
|
+
/** An error occurred. */
|
|
547
|
+
ERROR = "ERROR"
|
|
548
|
+
}
|
|
549
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
550
|
+
createdEvent?: EntityCreatedEvent;
|
|
551
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
552
|
+
deletedEvent?: EntityDeletedEvent;
|
|
553
|
+
actionEvent?: ActionEvent;
|
|
554
|
+
/**
|
|
555
|
+
* Unique event ID.
|
|
556
|
+
* Allows clients to ignore duplicate webhooks.
|
|
557
|
+
*/
|
|
558
|
+
id?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Assumes actions are also always typed to an entity_type
|
|
561
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
562
|
+
*/
|
|
563
|
+
entityFqdn?: string;
|
|
564
|
+
/**
|
|
565
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
566
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
567
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
568
|
+
*/
|
|
569
|
+
slug?: string;
|
|
570
|
+
/** ID of the entity associated with the event. */
|
|
571
|
+
entityId?: string;
|
|
572
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
573
|
+
eventTime?: Date | null;
|
|
574
|
+
/**
|
|
575
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
576
|
+
* (for example, GDPR).
|
|
577
|
+
*/
|
|
578
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
579
|
+
/** If present, indicates the action that triggered the event. */
|
|
580
|
+
originatedFrom?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
583
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
584
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
585
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
586
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
587
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
588
|
+
*/
|
|
589
|
+
entityEventSequence?: string | null;
|
|
590
|
+
}
|
|
591
|
+
/** @oneof */
|
|
592
|
+
export interface DomainEventBodyOneOf {
|
|
593
|
+
createdEvent?: EntityCreatedEvent;
|
|
594
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
595
|
+
deletedEvent?: EntityDeletedEvent;
|
|
596
|
+
actionEvent?: ActionEvent;
|
|
597
|
+
}
|
|
598
|
+
export interface EntityCreatedEvent {
|
|
599
|
+
entityAsJson?: string;
|
|
600
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
601
|
+
restoreInfo?: RestoreInfo;
|
|
602
|
+
}
|
|
603
|
+
export interface RestoreInfo {
|
|
604
|
+
deletedDate?: Date | null;
|
|
605
|
+
}
|
|
606
|
+
export interface EntityUpdatedEvent {
|
|
607
|
+
/**
|
|
608
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
609
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
610
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
611
|
+
*/
|
|
612
|
+
currentEntityAsJson?: string;
|
|
613
|
+
}
|
|
614
|
+
export interface EntityDeletedEvent {
|
|
615
|
+
/** Entity that was deleted */
|
|
616
|
+
deletedEntityAsJson?: string | null;
|
|
617
|
+
}
|
|
618
|
+
export interface ActionEvent {
|
|
619
|
+
bodyAsJson?: string;
|
|
620
|
+
}
|
|
621
|
+
export interface MessageEnvelope {
|
|
622
|
+
/** App instance ID. */
|
|
623
|
+
instanceId?: string | null;
|
|
624
|
+
/** Event type. */
|
|
625
|
+
eventType?: string;
|
|
626
|
+
/** The identification type and identity data. */
|
|
627
|
+
identity?: IdentificationData;
|
|
628
|
+
/** Stringify payload. */
|
|
629
|
+
data?: string;
|
|
630
|
+
}
|
|
631
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
632
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
633
|
+
anonymousVisitorId?: string;
|
|
634
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
635
|
+
memberId?: string;
|
|
636
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
637
|
+
wixUserId?: string;
|
|
638
|
+
/** ID of an app. */
|
|
639
|
+
appId?: string;
|
|
640
|
+
/** @readonly */
|
|
641
|
+
identityType?: WebhookIdentityType;
|
|
642
|
+
}
|
|
643
|
+
/** @oneof */
|
|
644
|
+
export interface IdentificationDataIdOneOf {
|
|
645
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
646
|
+
anonymousVisitorId?: string;
|
|
647
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
648
|
+
memberId?: string;
|
|
649
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
650
|
+
wixUserId?: string;
|
|
651
|
+
/** ID of an app. */
|
|
652
|
+
appId?: string;
|
|
653
|
+
}
|
|
654
|
+
export declare enum WebhookIdentityType {
|
|
655
|
+
UNKNOWN = "UNKNOWN",
|
|
656
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
657
|
+
MEMBER = "MEMBER",
|
|
658
|
+
WIX_USER = "WIX_USER",
|
|
659
|
+
APP = "APP"
|
|
660
|
+
}
|
|
661
|
+
interface URLDetailsNonNullableFields {
|
|
662
|
+
endpoint: string;
|
|
663
|
+
}
|
|
664
|
+
interface RedirectSessionNonNullableFields {
|
|
665
|
+
id: string;
|
|
666
|
+
fullUrl: string;
|
|
667
|
+
urlDetails?: URLDetailsNonNullableFields;
|
|
668
|
+
shortUrl: string;
|
|
669
|
+
}
|
|
670
|
+
export interface CreateRedirectSessionResponseNonNullableFields {
|
|
671
|
+
redirectSession?: RedirectSessionNonNullableFields;
|
|
672
|
+
}
|
|
673
|
+
export {};
|