@wix/auto_sdk_bookings_event-time-slots 1.0.57 → 1.0.59
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.js +6 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +6 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +418 -1
- package/build/cjs/meta.js +17 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +6 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +6 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +418 -1
- package/build/es/meta.mjs +16 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +6 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +6 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +418 -1
- package/build/internal/cjs/meta.js +17 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +6 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +6 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +418 -1
- package/build/internal/es/meta.mjs +16 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -252,6 +252,150 @@ interface NonBookableReasons {
|
|
|
252
252
|
/** Whether the related event is cancelled. */
|
|
253
253
|
eventCancelled?: boolean | null;
|
|
254
254
|
}
|
|
255
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
256
|
+
/**
|
|
257
|
+
* Services for which the multi-service time slots are returned.
|
|
258
|
+
* Each service can include its own resource filters.
|
|
259
|
+
*
|
|
260
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
261
|
+
*
|
|
262
|
+
* Min: 2 services
|
|
263
|
+
* Max: 8 services
|
|
264
|
+
* @maxSize 8
|
|
265
|
+
*/
|
|
266
|
+
services?: Service[];
|
|
267
|
+
/**
|
|
268
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
269
|
+
* For example, `2026-01-30T13:30:00`.
|
|
270
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
271
|
+
*
|
|
272
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
273
|
+
* @format LOCAL_DATE_TIME
|
|
274
|
+
*/
|
|
275
|
+
fromLocalDate?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
278
|
+
* For example, `2026-01-30T13:30:00`.
|
|
279
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
280
|
+
*
|
|
281
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
282
|
+
* @format LOCAL_DATE_TIME
|
|
283
|
+
*/
|
|
284
|
+
toLocalDate?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values. For example, `America/New_York` or `UTC`.
|
|
287
|
+
*
|
|
288
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
289
|
+
*
|
|
290
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
291
|
+
* @minLength 1
|
|
292
|
+
* @maxLength 150
|
|
293
|
+
*/
|
|
294
|
+
timeZone?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. Filters for `location.name` and `location.formattedAddress` are ignored.
|
|
297
|
+
*
|
|
298
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
299
|
+
*/
|
|
300
|
+
location?: Location;
|
|
301
|
+
/**
|
|
302
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
303
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
304
|
+
*/
|
|
305
|
+
bookable?: boolean | null;
|
|
306
|
+
/**
|
|
307
|
+
* Indicators for service's booking policy violations.
|
|
308
|
+
* Allows filtering for time slots with specific violation types based on booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
309
|
+
*/
|
|
310
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
311
|
+
/**
|
|
312
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
313
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
314
|
+
*/
|
|
315
|
+
timeSlotsPerDay?: number | null;
|
|
316
|
+
/**
|
|
317
|
+
* Cursor-based paging configuration.
|
|
318
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
319
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
320
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
321
|
+
*/
|
|
322
|
+
cursorPaging?: CursorPaging;
|
|
323
|
+
}
|
|
324
|
+
interface Service {
|
|
325
|
+
/**
|
|
326
|
+
* Service ID.
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
serviceId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Resource type IDs ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)) to include in returned time slots.
|
|
332
|
+
* This is in addition to the specifically requested resources.
|
|
333
|
+
*
|
|
334
|
+
* <blockquote>
|
|
335
|
+
* Currently supported only for Staff Member resource type.
|
|
336
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
337
|
+
* </blockquote>
|
|
338
|
+
* @format GUID
|
|
339
|
+
* @maxSize 100
|
|
340
|
+
*/
|
|
341
|
+
includeResourceTypeIds?: string[];
|
|
342
|
+
/**
|
|
343
|
+
* Selected customer choices.
|
|
344
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
345
|
+
* If not specified, the service default configuration is used.
|
|
346
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
347
|
+
*/
|
|
348
|
+
customerChoices?: V2CustomerChoices;
|
|
349
|
+
/**
|
|
350
|
+
* Resource types to filter time slots.
|
|
351
|
+
* Only returns time slots that have these specific resource types available.
|
|
352
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
353
|
+
* @maxSize 3
|
|
354
|
+
*/
|
|
355
|
+
resourceTypes?: ResourceType[];
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Selected customer choices.
|
|
359
|
+
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
360
|
+
*/
|
|
361
|
+
interface V2CustomerChoices {
|
|
362
|
+
/**
|
|
363
|
+
* Selected customer duration in minutes.
|
|
364
|
+
* Min: `1` minute
|
|
365
|
+
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
366
|
+
* Default: `15` minutes
|
|
367
|
+
* @min 1
|
|
368
|
+
* @max 44639
|
|
369
|
+
*/
|
|
370
|
+
durationInMinutes?: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Selected add-on IDs.
|
|
373
|
+
*
|
|
374
|
+
* Max: Calculated as the product of the maximum number of add-on groups multiplied by the maximum number of add-ons per group. Currently 21 (3 groups × 7 add-ons per group), but may change in the future.
|
|
375
|
+
* @format GUID
|
|
376
|
+
* @maxSize 21
|
|
377
|
+
*/
|
|
378
|
+
addOnIds?: string[] | null;
|
|
379
|
+
/**
|
|
380
|
+
* Selected duration choice ID.
|
|
381
|
+
* @format GUID
|
|
382
|
+
*/
|
|
383
|
+
durationChoiceId?: string | null;
|
|
384
|
+
}
|
|
385
|
+
interface ResourceType {
|
|
386
|
+
/**
|
|
387
|
+
* Resource type ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)).
|
|
388
|
+
* @format GUID
|
|
389
|
+
*/
|
|
390
|
+
resourceTypeId?: string | null;
|
|
391
|
+
/**
|
|
392
|
+
* Resource IDs.
|
|
393
|
+
* Available only if there is at least 1 resource available for the slot.
|
|
394
|
+
* @format GUID
|
|
395
|
+
* @maxSize 135
|
|
396
|
+
*/
|
|
397
|
+
resourceIds?: string[] | null;
|
|
398
|
+
}
|
|
255
399
|
interface CursorPaging {
|
|
256
400
|
/**
|
|
257
401
|
* Number of results to load.
|
|
@@ -270,6 +414,27 @@ interface CursorPaging {
|
|
|
270
414
|
*/
|
|
271
415
|
cursor?: string | null;
|
|
272
416
|
}
|
|
417
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
418
|
+
/**
|
|
419
|
+
* Retrieved time slots.
|
|
420
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
421
|
+
* @maxSize 1000
|
|
422
|
+
*/
|
|
423
|
+
timeSlots?: TimeSlot[];
|
|
424
|
+
/**
|
|
425
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
426
|
+
* For example, `America/New_York` or `UTC`.
|
|
427
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
428
|
+
* @minLength 1
|
|
429
|
+
* @maxLength 150
|
|
430
|
+
*/
|
|
431
|
+
timeZone?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* Paging metadata for the next page of results.
|
|
434
|
+
* Contains a cursor if there are more than 1000 results.
|
|
435
|
+
*/
|
|
436
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
437
|
+
}
|
|
273
438
|
interface CursorPagingMetadata {
|
|
274
439
|
/** Offset that was requested. */
|
|
275
440
|
cursors?: Cursors;
|
|
@@ -286,6 +451,258 @@ interface Cursors {
|
|
|
286
451
|
/** Cursor pointing to previous page in the list of results. */
|
|
287
452
|
prev?: string | null;
|
|
288
453
|
}
|
|
454
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
455
|
+
/**
|
|
456
|
+
* Services for which the multi-service time slots are returned.
|
|
457
|
+
* You can specify resource filters for each service.
|
|
458
|
+
* @minSize 2
|
|
459
|
+
* @maxSize 8
|
|
460
|
+
*/
|
|
461
|
+
services?: Service[];
|
|
462
|
+
/**
|
|
463
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
464
|
+
* For example, `2026-01-30T13:30:00`.
|
|
465
|
+
* @format LOCAL_DATE_TIME
|
|
466
|
+
*/
|
|
467
|
+
localStartDate?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
470
|
+
* For example, `2026-01-30T13:30:00`.
|
|
471
|
+
* @format LOCAL_DATE_TIME
|
|
472
|
+
*/
|
|
473
|
+
localEndDate?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
476
|
+
* For example, `America/New_York` or `UTC`.
|
|
477
|
+
*
|
|
478
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
479
|
+
* @minLength 1
|
|
480
|
+
* @maxLength 150
|
|
481
|
+
*/
|
|
482
|
+
timeZone?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. A filter for `location.name` is ignored.
|
|
485
|
+
*
|
|
486
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
487
|
+
*/
|
|
488
|
+
location?: Location;
|
|
489
|
+
}
|
|
490
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
491
|
+
/** Retrieved time slot. */
|
|
492
|
+
timeSlot?: TimeSlot;
|
|
493
|
+
/**
|
|
494
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
495
|
+
* For example, `America/New_York` or `UTC`.
|
|
496
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
497
|
+
* @minLength 1
|
|
498
|
+
* @maxLength 150
|
|
499
|
+
*/
|
|
500
|
+
timeZone?: string | null;
|
|
501
|
+
}
|
|
502
|
+
interface ListAvailabilityTimeSlotsRequest {
|
|
503
|
+
/**
|
|
504
|
+
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
505
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
506
|
+
* @format GUID
|
|
507
|
+
*/
|
|
508
|
+
serviceId?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* Lower boundary for `localStartDate` to include in response.
|
|
511
|
+
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
512
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
513
|
+
*
|
|
514
|
+
* Local start date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
515
|
+
* For example, `2026-01-30T13:30:00`.
|
|
516
|
+
* @format LOCAL_DATE_TIME
|
|
517
|
+
*/
|
|
518
|
+
fromLocalDate?: string | null;
|
|
519
|
+
/**
|
|
520
|
+
* Upper boundary for `localStartDate` to include in response.
|
|
521
|
+
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
522
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
523
|
+
*
|
|
524
|
+
* Local end date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
525
|
+
* For example, `2026-01-30T13:30:00`.
|
|
526
|
+
* @format LOCAL_DATE_TIME
|
|
527
|
+
*/
|
|
528
|
+
toLocalDate?: string | null;
|
|
529
|
+
/**
|
|
530
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
531
|
+
* For example, `America/New_York` or `UTC`.
|
|
532
|
+
*
|
|
533
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
534
|
+
* @minLength 1
|
|
535
|
+
* @maxLength 150
|
|
536
|
+
*/
|
|
537
|
+
timeZone?: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* Locations to include in response.
|
|
540
|
+
* If not specified, returns time slots for all locations where the service is available.
|
|
541
|
+
* @maxSize 5
|
|
542
|
+
*/
|
|
543
|
+
locations?: Location[];
|
|
544
|
+
/**
|
|
545
|
+
* Resource type IDs to include in the response.
|
|
546
|
+
* If specified, returns up to 10 `availableResources` with matching `resourceTypeId`.
|
|
547
|
+
* This controls which resource details are included in the response but doesn't filter the time slots themselves.
|
|
548
|
+
* @format GUID
|
|
549
|
+
* @maxSize 100
|
|
550
|
+
*/
|
|
551
|
+
includeResourceTypeIds?: string[];
|
|
552
|
+
/**
|
|
553
|
+
* Whether the time slot is bookable according to the service's booking policies.
|
|
554
|
+
* If not specified, returns both bookable and un-bookable time slots.
|
|
555
|
+
*/
|
|
556
|
+
bookable?: boolean | null;
|
|
557
|
+
/**
|
|
558
|
+
* Indicators for service's booking policy violations.
|
|
559
|
+
* Allows filtering for time slots with specific violation types based on booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
560
|
+
*/
|
|
561
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
562
|
+
/**
|
|
563
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
564
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
565
|
+
*/
|
|
566
|
+
timeSlotsPerDay?: number | null;
|
|
567
|
+
/**
|
|
568
|
+
* Cursor-based paging configuration.
|
|
569
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
570
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
571
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
572
|
+
*/
|
|
573
|
+
cursorPaging?: CursorPaging;
|
|
574
|
+
/**
|
|
575
|
+
* Resource types to filter time slots.
|
|
576
|
+
* Only returns time slots that have these specific resource types available.
|
|
577
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
578
|
+
* @maxSize 3
|
|
579
|
+
*/
|
|
580
|
+
resourceTypes?: ResourceType[];
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Selected customer choices.
|
|
584
|
+
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
585
|
+
*/
|
|
586
|
+
interface CustomerChoices {
|
|
587
|
+
/**
|
|
588
|
+
* The selected customer duration in minutes.
|
|
589
|
+
* Min: `1 minute`
|
|
590
|
+
* Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
|
|
591
|
+
* @min 1
|
|
592
|
+
* @max 44639
|
|
593
|
+
*/
|
|
594
|
+
durationInMinutes?: number | null;
|
|
595
|
+
/**
|
|
596
|
+
* The selected add-ons IDs.
|
|
597
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
598
|
+
* @format GUID
|
|
599
|
+
* @maxSize 21
|
|
600
|
+
*/
|
|
601
|
+
addOnIds?: string[] | null;
|
|
602
|
+
/**
|
|
603
|
+
* The selected duration choice ID.
|
|
604
|
+
* @format GUID
|
|
605
|
+
*/
|
|
606
|
+
durationChoiceId?: string | null;
|
|
607
|
+
}
|
|
608
|
+
interface ListAvailabilityTimeSlotsResponse {
|
|
609
|
+
/**
|
|
610
|
+
* Retrieved time slots.
|
|
611
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
612
|
+
* @maxSize 1000
|
|
613
|
+
*/
|
|
614
|
+
timeSlots?: TimeSlot[];
|
|
615
|
+
/**
|
|
616
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
617
|
+
* For example, `America/New_York` or `UTC`.
|
|
618
|
+
*
|
|
619
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
620
|
+
* @minLength 1
|
|
621
|
+
* @maxLength 150
|
|
622
|
+
*/
|
|
623
|
+
timeZone?: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* Paging metadata for the next page of results.
|
|
626
|
+
* Contains a cursor if there are more than 1000 results.
|
|
627
|
+
*/
|
|
628
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
629
|
+
}
|
|
630
|
+
interface GetAvailabilityTimeSlotRequest {
|
|
631
|
+
/**
|
|
632
|
+
* Service ID of the time slot.
|
|
633
|
+
* You must specify the ID of an appointment-based service.
|
|
634
|
+
* @format GUID
|
|
635
|
+
*/
|
|
636
|
+
serviceId?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
639
|
+
* For example, `2026-01-30T13:30:00`.
|
|
640
|
+
* @format LOCAL_DATE_TIME
|
|
641
|
+
*/
|
|
642
|
+
localStartDate?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
645
|
+
* For example, `2026-01-30T13:30:00`.
|
|
646
|
+
* @format LOCAL_DATE_TIME
|
|
647
|
+
*/
|
|
648
|
+
localEndDate?: string;
|
|
649
|
+
/**
|
|
650
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
651
|
+
* For example, `America/New_York` or `UTC`.
|
|
652
|
+
*
|
|
653
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
654
|
+
* @minLength 1
|
|
655
|
+
* @maxLength 150
|
|
656
|
+
*/
|
|
657
|
+
timeZone?: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* Location to filter time slots by.
|
|
660
|
+
*
|
|
661
|
+
* For business locations, you must specify a location ID.
|
|
662
|
+
* When specifying a location ID, all other location field filters are ignored.
|
|
663
|
+
*/
|
|
664
|
+
location?: Location;
|
|
665
|
+
/**
|
|
666
|
+
* IDs of the resource types ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)) to check availability for.
|
|
667
|
+
* @format GUID
|
|
668
|
+
* @maxSize 100
|
|
669
|
+
*/
|
|
670
|
+
includeResourceTypeIds?: string[];
|
|
671
|
+
/**
|
|
672
|
+
* Resource types to filter time slots.
|
|
673
|
+
* Only returns time slots that have these specific resource types available.
|
|
674
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
675
|
+
* @maxSize 3
|
|
676
|
+
*/
|
|
677
|
+
resourceTypes?: ResourceType[];
|
|
678
|
+
}
|
|
679
|
+
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
680
|
+
/**
|
|
681
|
+
* Selected add-on IDs.
|
|
682
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
683
|
+
* @format GUID
|
|
684
|
+
* @maxSize 21
|
|
685
|
+
*/
|
|
686
|
+
addOnIds?: string[] | null;
|
|
687
|
+
/**
|
|
688
|
+
* Selected duration choice ID.
|
|
689
|
+
* @format GUID
|
|
690
|
+
*/
|
|
691
|
+
durationChoiceId?: string | null;
|
|
692
|
+
}
|
|
693
|
+
interface GetAvailabilityTimeSlotResponse {
|
|
694
|
+
/** Retrieved time slot. */
|
|
695
|
+
timeSlot?: TimeSlot;
|
|
696
|
+
/**
|
|
697
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
698
|
+
* For example, `America/New_York` or `UTC`.
|
|
699
|
+
*
|
|
700
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
701
|
+
* @minLength 1
|
|
702
|
+
* @maxLength 150
|
|
703
|
+
*/
|
|
704
|
+
timeZone?: string | null;
|
|
705
|
+
}
|
|
289
706
|
interface ListEventTimeSlotsRequest {
|
|
290
707
|
/**
|
|
291
708
|
* Lower boundary for `localStartDate` to include in the response.
|
|
@@ -424,4 +841,4 @@ declare function getEventTimeSlot(): __PublicMethodMetaInfo<'GET', {
|
|
|
424
841
|
eventId: string;
|
|
425
842
|
}, GetEventTimeSlotRequest$1, GetEventTimeSlotRequest, GetEventTimeSlotResponse$1, GetEventTimeSlotResponse>;
|
|
426
843
|
|
|
427
|
-
export { type __PublicMethodMetaInfo, getEventTimeSlot, listEventTimeSlots };
|
|
844
|
+
export { type AvailableResources as AvailableResourcesOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomerChoices as CustomerChoicesOriginal, type EventInfo as EventInfoOriginal, type GetAvailabilityTimeSlotRequestCustomerChoices as GetAvailabilityTimeSlotRequestCustomerChoicesOriginal, type GetAvailabilityTimeSlotRequest as GetAvailabilityTimeSlotRequestOriginal, type GetAvailabilityTimeSlotResponse as GetAvailabilityTimeSlotResponseOriginal, type GetEventTimeSlotRequest as GetEventTimeSlotRequestOriginal, type GetEventTimeSlotResponse as GetEventTimeSlotResponseOriginal, type GetMultiServiceAvailabilityTimeSlotRequest as GetMultiServiceAvailabilityTimeSlotRequestOriginal, type GetMultiServiceAvailabilityTimeSlotResponse as GetMultiServiceAvailabilityTimeSlotResponseOriginal, type ListAvailabilityTimeSlotsRequest as ListAvailabilityTimeSlotsRequestOriginal, type ListAvailabilityTimeSlotsResponse as ListAvailabilityTimeSlotsResponseOriginal, type ListEventTimeSlotsRequest as ListEventTimeSlotsRequestOriginal, type ListEventTimeSlotsResponse as ListEventTimeSlotsResponseOriginal, type ListMultiServiceAvailabilityTimeSlotsRequest as ListMultiServiceAvailabilityTimeSlotsRequestOriginal, type ListMultiServiceAvailabilityTimeSlotsResponse as ListMultiServiceAvailabilityTimeSlotsResponseOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type NestedTimeSlot as NestedTimeSlotOriginal, type NonBookableReasons as NonBookableReasonsOriginal, type Resource as ResourceOriginal, type ResourceType as ResourceTypeOriginal, type Service as ServiceOriginal, type TimeSlot as TimeSlotOriginal, type V2CustomerChoices as V2CustomerChoicesOriginal, type WaitingList as WaitingListOriginal, type __PublicMethodMetaInfo, getEventTimeSlot, listEventTimeSlots };
|
|
@@ -149,6 +149,9 @@ function listEventTimeSlots(payload) {
|
|
|
149
149
|
method: "POST",
|
|
150
150
|
methodFqn: "com.wixpress.bookings.availability.v2.EventTimeSlots.ListEventTimeSlots",
|
|
151
151
|
packageName: PACKAGE_NAME,
|
|
152
|
+
migrationOptions: {
|
|
153
|
+
optInTransformResponse: true
|
|
154
|
+
},
|
|
152
155
|
url: resolveComWixpressBookingsAvailabilityV2EventTimeSlotsUrl({
|
|
153
156
|
protoPath: "/v2/time-slots/event",
|
|
154
157
|
data: serializedData,
|
|
@@ -175,6 +178,9 @@ function getEventTimeSlot(payload) {
|
|
|
175
178
|
method: "GET",
|
|
176
179
|
methodFqn: "com.wixpress.bookings.availability.v2.EventTimeSlots.GetEventTimeSlot",
|
|
177
180
|
packageName: PACKAGE_NAME,
|
|
181
|
+
migrationOptions: {
|
|
182
|
+
optInTransformResponse: true
|
|
183
|
+
},
|
|
178
184
|
url: resolveComWixpressBookingsAvailabilityV2EventTimeSlotsUrl({
|
|
179
185
|
protoPath: "/v2/time-slots/event/{eventId}",
|
|
180
186
|
data: payload,
|
|
@@ -195,6 +201,15 @@ function getEventTimeSlot(payload) {
|
|
|
195
201
|
return __getEventTimeSlot;
|
|
196
202
|
}
|
|
197
203
|
|
|
204
|
+
// src/bookings-availability-v2-time-slot-event-time-slots.types.ts
|
|
205
|
+
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
206
|
+
LocationType2["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
|
|
207
|
+
LocationType2["BUSINESS"] = "BUSINESS";
|
|
208
|
+
LocationType2["CUSTOM"] = "CUSTOM";
|
|
209
|
+
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
210
|
+
return LocationType2;
|
|
211
|
+
})(LocationType || {});
|
|
212
|
+
|
|
198
213
|
// src/bookings-availability-v2-time-slot-event-time-slots.meta.ts
|
|
199
214
|
function listEventTimeSlots2() {
|
|
200
215
|
const payload = {};
|
|
@@ -233,6 +248,7 @@ function getEventTimeSlot2() {
|
|
|
233
248
|
};
|
|
234
249
|
}
|
|
235
250
|
export {
|
|
251
|
+
LocationType as LocationTypeOriginal,
|
|
236
252
|
getEventTimeSlot2 as getEventTimeSlot,
|
|
237
253
|
listEventTimeSlots2 as listEventTimeSlots
|
|
238
254
|
};
|