@wix/auto_sdk_redirects_redirects 1.0.1 → 1.0.2

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.
Files changed (21) hide show
  1. package/build/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +123 -24
  2. package/build/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  3. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +157 -27
  4. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js +2 -0
  5. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  6. package/build/es/src/headless-v1-redirect-session-redirects.types.d.ts +123 -24
  7. package/build/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  8. package/build/es/src/headless-v1-redirect-session-redirects.universal.d.ts +157 -27
  9. package/build/es/src/headless-v1-redirect-session-redirects.universal.js +2 -0
  10. package/build/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  11. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +123 -24
  12. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  13. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +157 -27
  14. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js +2 -0
  15. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  16. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.d.ts +123 -24
  17. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  18. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.d.ts +157 -27
  19. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js +2 -0
  20. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  21. package/package.json +2 -2
@@ -1,9 +1,13 @@
1
1
  /** Information for redirecting a visitor from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
2
2
  export interface RedirectSession {
3
- /** ID of the redirect session created. */
3
+ /**
4
+ * ID of the redirect session created.
5
+ * @format GUID
6
+ */
4
7
  id?: string;
5
8
  /**
6
9
  * 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.
10
+ * @maxLength 2048
7
11
  * @readonly
8
12
  */
9
13
  fullUrl?: string;
@@ -11,11 +15,13 @@ export interface RedirectSession {
11
15
  urlDetails?: URLDetails;
12
16
  /**
13
17
  * The session token to pass to the Wix page to maintain the visitor's identity.
18
+ * @maxLength 2048
14
19
  * @readonly
15
20
  */
16
21
  sessionToken?: string | null;
17
22
  /**
18
23
  * 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.
24
+ * @maxLength 2048
19
25
  * @readonly
20
26
  */
21
27
  shortUrl?: string;
@@ -24,6 +30,7 @@ export interface URLDetails {
24
30
  /**
25
31
  * Endpoint of the url. This includes the base URL and the path to the endpoint, without query parameters.
26
32
  * For example: `https://mysite.com/_api/oauth2/authorize`.
33
+ * @maxLength 2048
27
34
  * @readonly
28
35
  */
29
36
  endpoint?: string;
@@ -86,6 +93,7 @@ export interface RedirectSessionBookingsCheckoutParams {
86
93
  * 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
94
  *
88
95
  * Default: If you don't specify a timezone, the timezone in `slotAvailability.slot.timezone` is used.
96
+ * @maxLength 40
89
97
  */
90
98
  timezone?: string;
91
99
  slotAvailability?: SlotAvailability;
@@ -174,29 +182,39 @@ export interface Slot {
174
182
  /**
175
183
  * ID for the slot's corresponding event, when the event is either a single event
176
184
  * or a specific event generated from a recurring event.
185
+ * @minLength 36
186
+ * @maxLength 250
177
187
  */
178
188
  eventId?: string | null;
179
189
  }
180
190
  export interface SlotResource {
181
191
  /**
182
192
  * Resource ID.
193
+ * @format GUID
183
194
  * @readonly
184
195
  */
185
196
  id?: string | null;
186
- /** Resource name. Read only. */
197
+ /**
198
+ * Resource name. Read only.
199
+ * @maxLength 1200
200
+ */
187
201
  name?: string | null;
188
202
  }
189
203
  export interface Location {
190
204
  /**
191
205
  * Business location ID. Available only for locations that are business locations,
192
206
  * meaning the `location_type` is `"OWNER_BUSINESS"`.
207
+ * @format GUID
193
208
  */
194
209
  id?: string | null;
195
210
  /** Location name. */
196
211
  name?: string | null;
197
212
  /** The full address of this location. */
198
213
  formattedAddress?: string | null;
199
- /** The full translated address of this location. */
214
+ /**
215
+ * The full translated address of this location.
216
+ * @maxLength 512
217
+ */
200
218
  formattedAddressTranslated?: string | null;
201
219
  /**
202
220
  * Location type.
@@ -232,8 +250,11 @@ export interface BookingPolicyViolations {
232
250
  bookOnlineDisabled?: boolean | null;
233
251
  }
234
252
  export interface NestedTimeSlot {
253
+ /** @format GUID */
235
254
  serviceId?: string;
255
+ /** @maxLength 30 */
236
256
  start?: string;
257
+ /** @maxLength 30 */
237
258
  end?: string;
238
259
  resource?: SlotResource;
239
260
  /** Schedule ID. */
@@ -243,24 +264,30 @@ export interface RedirectSessionEcomCheckoutParams {
243
264
  /**
244
265
  * - 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
266
  * - REST: Use [Create Checkout From Cart](https://dev.wix.com/docs/rest/business-solutions/e-commerce/cart/create-checkout-from-cart).
267
+ * @format GUID
246
268
  */
247
269
  checkoutId?: string;
248
270
  }
249
271
  export interface RedirectSessionEventsCheckoutParams {
272
+ /** @format GUID */
250
273
  reservationId?: string;
274
+ /** @maxLength 150 */
251
275
  eventSlug?: string;
252
276
  }
253
277
  export interface RedirectSessionPaidPlansCheckoutParams {
278
+ /** @format GUID */
254
279
  planId?: string;
255
280
  /**
256
281
  * 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
282
  * 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.
283
+ * @maxLength 2048
258
284
  */
259
285
  checkoutData?: string | null;
260
286
  }
261
287
  export interface RedirectSessionLoginParams {
262
288
  }
263
289
  export interface RedirectSessionLogoutParams {
290
+ /** @format GUID */
264
291
  clientId?: string;
265
292
  }
266
293
  export interface RedirectSessionAuthParams {
@@ -273,16 +300,23 @@ export interface RedirectSessionAuthParams {
273
300
  * the authorization process.
274
301
  */
275
302
  export interface AuthorizeRequest {
276
- /** ID of the Wix OAuth app requesting authorization. */
303
+ /**
304
+ * ID of the Wix OAuth app requesting authorization.
305
+ * @format GUID
306
+ */
277
307
  clientId?: string;
278
308
  /**
279
309
  * Desired authorization [grant type](https://auth0.com/docs/authenticate/protocols/oauth#grant-types).
280
310
  *
281
311
  * Supported values:
282
312
  * + `code`: The endpoint returns an authorization code that can be used to obtain an access token.
313
+ * @minLength 1
283
314
  */
284
315
  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. */
316
+ /**
317
+ * 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.
318
+ * @minLength 1
319
+ */
286
320
  redirectUri?: string | null;
287
321
  /**
288
322
  * Desired scope of access. If this field is left empty, only an access token is granted.
@@ -294,6 +328,7 @@ export interface AuthorizeRequest {
294
328
  * request. If a value for this field is set in the request, it's added to the `redirectUri` when the browser
295
329
  * is redirected there.
296
330
  * Learn more about [using the state parameter](https://auth0.com/docs/secure/attack-protection/state-parameters).
331
+ * @minLength 1
297
332
  */
298
333
  state?: string;
299
334
  /**
@@ -323,7 +358,10 @@ export interface AuthorizeRequest {
323
358
  codeChallengeMethod?: string | null;
324
359
  /** Session token of the site visitor to authorize. */
325
360
  sessionToken?: string | null;
326
- /** URL to redirect user to sign in */
361
+ /**
362
+ * URL to redirect user to sign in
363
+ * @format SECURE_WEB_URL
364
+ */
327
365
  signInUrl?: string | null;
328
366
  }
329
367
  /** Specifies the behavior of the authorization flow regarding site member authentication and consent. */
@@ -358,10 +396,14 @@ export declare enum MembersAccountSection {
358
396
  EVENTS = "EVENTS"
359
397
  }
360
398
  export interface RedirectSessionStoresProductParams {
399
+ /** @maxLength 150 */
361
400
  productSlug?: string;
362
401
  }
363
402
  export interface RedirectSessionBookingsBookParams {
364
- /** For use when filtering the bookings page by a specific resource. */
403
+ /**
404
+ * For use when filtering the bookings page by a specific resource.
405
+ * @format GUID
406
+ */
365
407
  resourceId?: string;
366
408
  }
367
409
  export interface CallbackParams {
@@ -382,30 +424,35 @@ export interface CallbackParams {
382
424
  * If the process is abandoned or interrupted, the visitor is redirected to the URL specified in `postFlowUrl` instead.
383
425
  *
384
426
  * 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`.
427
+ * @maxLength 2048
385
428
  */
386
429
  thankYouPageUrl?: string | null;
387
430
  /**
388
431
  * The URL Wix should redirect the visitor to when the Wix-managed process is completed, abandoned, or interrupted.
389
432
  *
390
433
  * **Note**: For an authentication redirect, don't specify a URL here. Instead, specify one in `auth.authRequest.redirectUri`.
434
+ * @maxLength 2048
391
435
  */
392
436
  postFlowUrl?: string | null;
393
437
  /**
394
438
  * The URL for a custom login page implemented outside of Wix.
395
439
  *
396
440
  * Default: If you don't specify a URL, a Wix login page is used.
441
+ * @maxLength 2048
397
442
  */
398
443
  loginUrl?: string | null;
399
444
  /**
400
445
  * The URL for a custom bookings services page implemented outside of Wix.
401
446
  *
402
447
  * Default: If you don't specify a URL, a Wix bookings services page is used.
448
+ * @maxLength 2048
403
449
  */
404
450
  bookingsServiceListUrl?: string | null;
405
451
  /**
406
452
  * The URL for a custom eCommerce cart page implemented outside of Wix.
407
453
  *
408
454
  * Default: If you don't specify a URL, a Wix cart page is used.
455
+ * @maxLength 2048
409
456
  */
410
457
  cartPageUrl?: string | null;
411
458
  /**
@@ -415,6 +462,7 @@ export interface CallbackParams {
415
462
  * + `checkoutData`: Pass this string back in `paidPlansCheckout.checkoutData` when redirecting back to Wix for checkout.
416
463
  *
417
464
  * Default: If you don't specify a URL, a Wix pricing plans page is used.
465
+ * @maxLength 2048
418
466
  */
419
467
  planListUrl?: string | null;
420
468
  }
@@ -438,9 +486,15 @@ export interface RedirectSessionPreferences {
438
486
  additionalQueryParameters?: Record<string, string>;
439
487
  }
440
488
  export interface CustomMemberPaths {
441
- /** 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. */
489
+ /**
490
+ * 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.
491
+ * @format URL_SLUG
492
+ */
442
493
  accountPagePath?: string | null;
443
- /** 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. */
494
+ /**
495
+ * 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.
496
+ * @format URL_SLUG
497
+ */
444
498
  profilePagePath?: string | null;
445
499
  }
446
500
  export interface CreateRedirectSessionResponse {
@@ -483,13 +537,19 @@ export interface CreateAnonymousRedirectSessionResponse {
483
537
  redirectSession?: RedirectSession;
484
538
  }
485
539
  export interface AttachPagesRequest {
486
- /** App ID that we want to inherit pages for. */
540
+ /**
541
+ * App ID that we want to inherit pages for.
542
+ * @format GUID
543
+ */
487
544
  appDefId?: string;
488
545
  }
489
546
  export interface AttachPagesResponse {
490
547
  /** The status of the operation. */
491
548
  status?: AttachPagesResponseStatus;
492
- /** A descriptive message about the operation */
549
+ /**
550
+ * A descriptive message about the operation
551
+ * @maxLength 2048
552
+ */
493
553
  message?: string;
494
554
  /** True if pages were attached, false otherwise */
495
555
  pagesAttached?: boolean;
@@ -507,11 +567,17 @@ export declare enum AttachPagesResponseStatus {
507
567
  ERROR = "ERROR"
508
568
  }
509
569
  export interface ValidateCallbackURLRequest {
510
- /** An external URL to validate */
570
+ /**
571
+ * An external URL to validate
572
+ * @maxLength 2048
573
+ */
511
574
  callbackUrl?: string;
512
575
  /** Type of the callback URL. */
513
576
  callbackType?: CallbackType;
514
- /** 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 */
577
+ /**
578
+ * 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
579
+ * @format GUID
580
+ */
515
581
  clientId?: string;
516
582
  }
517
583
  export declare enum CallbackType {
@@ -529,7 +595,10 @@ export interface ValidateCallbackURLResponse {
529
595
  isValid?: boolean;
530
596
  }
531
597
  export interface SignInURLRequest {
532
- /** 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 */
598
+ /**
599
+ * 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
600
+ * @format GUID
601
+ */
533
602
  clientId?: string;
534
603
  }
535
604
  export interface SignInURLResponse {
@@ -623,9 +692,15 @@ export interface ActionEvent {
623
692
  bodyAsJson?: string;
624
693
  }
625
694
  export interface MessageEnvelope {
626
- /** App instance ID. */
695
+ /**
696
+ * App instance ID.
697
+ * @format GUID
698
+ */
627
699
  instanceId?: string | null;
628
- /** Event type. */
700
+ /**
701
+ * Event type.
702
+ * @maxLength 150
703
+ */
629
704
  eventType?: string;
630
705
  /** The identification type and identity data. */
631
706
  identity?: IdentificationData;
@@ -633,26 +708,50 @@ export interface MessageEnvelope {
633
708
  data?: string;
634
709
  }
635
710
  export interface IdentificationData extends IdentificationDataIdOneOf {
636
- /** ID of a site visitor that has not logged in to the site. */
711
+ /**
712
+ * ID of a site visitor that has not logged in to the site.
713
+ * @format GUID
714
+ */
637
715
  anonymousVisitorId?: string;
638
- /** ID of a site visitor that has logged in to the site. */
716
+ /**
717
+ * ID of a site visitor that has logged in to the site.
718
+ * @format GUID
719
+ */
639
720
  memberId?: string;
640
- /** ID of a Wix user (site owner, contributor, etc.). */
721
+ /**
722
+ * ID of a Wix user (site owner, contributor, etc.).
723
+ * @format GUID
724
+ */
641
725
  wixUserId?: string;
642
- /** ID of an app. */
726
+ /**
727
+ * ID of an app.
728
+ * @format GUID
729
+ */
643
730
  appId?: string;
644
731
  /** @readonly */
645
732
  identityType?: WebhookIdentityType;
646
733
  }
647
734
  /** @oneof */
648
735
  export interface IdentificationDataIdOneOf {
649
- /** ID of a site visitor that has not logged in to the site. */
736
+ /**
737
+ * ID of a site visitor that has not logged in to the site.
738
+ * @format GUID
739
+ */
650
740
  anonymousVisitorId?: string;
651
- /** ID of a site visitor that has logged in to the site. */
741
+ /**
742
+ * ID of a site visitor that has logged in to the site.
743
+ * @format GUID
744
+ */
652
745
  memberId?: string;
653
- /** ID of a Wix user (site owner, contributor, etc.). */
746
+ /**
747
+ * ID of a Wix user (site owner, contributor, etc.).
748
+ * @format GUID
749
+ */
654
750
  wixUserId?: string;
655
- /** ID of an app. */
751
+ /**
752
+ * ID of an app.
753
+ * @format GUID
754
+ */
656
755
  appId?: string;
657
756
  }
658
757
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA2NA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AA4HD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AAyJD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAWD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAwBD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAqHD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA6OA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA+KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAmJD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}