@wix/bookings 1.0.1741 → 1.0.1743

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 (78) hide show
  1. package/_sdk-exports/context-booking-checkout-context/runtime.d.ts +2784 -0
  2. package/_sdk-exports/context-booking-checkout-context/runtime.js +2 -0
  3. package/_sdk-exports/context-categories-context/runtime.d.ts +144 -0
  4. package/_sdk-exports/context-categories-context/runtime.js +1 -0
  5. package/_sdk-exports/context-locations-context/runtime.d.ts +282 -0
  6. package/_sdk-exports/context-locations-context/runtime.js +1 -0
  7. package/_sdk-exports/context-service-addons-context/runtime.d.ts +264 -0
  8. package/_sdk-exports/context-service-addons-context/runtime.js +1 -0
  9. package/_sdk-exports/context-service-context/runtime.d.ts +3667 -0
  10. package/_sdk-exports/context-service-context/runtime.js +2 -0
  11. package/_sdk-exports/context-services-context/runtime.d.ts +2863 -0
  12. package/_sdk-exports/context-services-context/runtime.js +2 -0
  13. package/_sdk-exports/context-time-slots-context/runtime.d.ts +660 -0
  14. package/_sdk-exports/context-time-slots-context/runtime.js +2 -0
  15. package/build/cjs/context-booking-checkout-context.d.ts +2784 -0
  16. package/build/cjs/context-booking-checkout-context.js +3940 -0
  17. package/build/cjs/context-booking-checkout-context.js.map +1 -0
  18. package/build/cjs/context-categories-context.d.ts +144 -0
  19. package/build/cjs/context-categories-context.js +1188 -0
  20. package/build/cjs/context-categories-context.js.map +1 -0
  21. package/build/cjs/context-locations-context.d.ts +282 -0
  22. package/build/cjs/context-locations-context.js +1252 -0
  23. package/build/cjs/context-locations-context.js.map +1 -0
  24. package/build/cjs/context-service-addons-context.d.ts +264 -0
  25. package/build/cjs/context-service-addons-context.js +1324 -0
  26. package/build/cjs/context-service-addons-context.js.map +1 -0
  27. package/build/cjs/context-service-context.d.ts +3667 -0
  28. package/build/cjs/context-service-context.js +5336 -0
  29. package/build/cjs/context-service-context.js.map +1 -0
  30. package/build/cjs/context-services-context.d.ts +2863 -0
  31. package/build/cjs/context-services-context.js +2203 -0
  32. package/build/cjs/context-services-context.js.map +1 -0
  33. package/build/cjs/context-time-slots-context.d.ts +660 -0
  34. package/build/cjs/context-time-slots-context.js +2822 -0
  35. package/build/cjs/context-time-slots-context.js.map +1 -0
  36. package/build/es/context-booking-checkout-context.d.mts +2784 -0
  37. package/build/es/context-booking-checkout-context.mjs +3898 -0
  38. package/build/es/context-booking-checkout-context.mjs.map +1 -0
  39. package/build/es/context-categories-context.d.mts +144 -0
  40. package/build/es/context-categories-context.mjs +1157 -0
  41. package/build/es/context-categories-context.mjs.map +1 -0
  42. package/build/es/context-locations-context.d.mts +282 -0
  43. package/build/es/context-locations-context.mjs +1221 -0
  44. package/build/es/context-locations-context.mjs.map +1 -0
  45. package/build/es/context-service-addons-context.d.mts +264 -0
  46. package/build/es/context-service-addons-context.mjs +1294 -0
  47. package/build/es/context-service-addons-context.mjs.map +1 -0
  48. package/build/es/context-service-context.d.mts +3667 -0
  49. package/build/es/context-service-context.mjs +5304 -0
  50. package/build/es/context-service-context.mjs.map +1 -0
  51. package/build/es/context-services-context.d.mts +2863 -0
  52. package/build/es/context-services-context.mjs +2172 -0
  53. package/build/es/context-services-context.mjs.map +1 -0
  54. package/build/es/context-time-slots-context.d.mts +660 -0
  55. package/build/es/context-time-slots-context.mjs +2792 -0
  56. package/build/es/context-time-slots-context.mjs.map +1 -0
  57. package/build/internal/cjs/context-booking-checkout-context.d.ts +2784 -0
  58. package/build/internal/cjs/context-categories-context.d.ts +144 -0
  59. package/build/internal/cjs/context-locations-context.d.ts +282 -0
  60. package/build/internal/cjs/context-service-addons-context.d.ts +264 -0
  61. package/build/internal/cjs/context-service-context.d.ts +3667 -0
  62. package/build/internal/cjs/context-services-context.d.ts +2863 -0
  63. package/build/internal/cjs/context-time-slots-context.d.ts +660 -0
  64. package/build/internal/es/context-booking-checkout-context.d.mts +2784 -0
  65. package/build/internal/es/context-categories-context.d.mts +144 -0
  66. package/build/internal/es/context-locations-context.d.mts +282 -0
  67. package/build/internal/es/context-service-addons-context.d.mts +264 -0
  68. package/build/internal/es/context-service-context.d.mts +3667 -0
  69. package/build/internal/es/context-services-context.d.mts +2863 -0
  70. package/build/internal/es/context-time-slots-context.d.mts +660 -0
  71. package/context/booking-checkout-context/package.json +3 -0
  72. package/context/categories-context/package.json +3 -0
  73. package/context/locations-context/package.json +3 -0
  74. package/context/service-addons-context/package.json +3 -0
  75. package/context/service-context/package.json +3 -0
  76. package/context/services-context/package.json +3 -0
  77. package/context/time-slots-context/package.json +3 -0
  78. package/package.json +69 -8
@@ -0,0 +1,3667 @@
1
+ import React, { ReactNode } from 'react';
2
+
3
+ //#region ../../node_modules/@wix/editor-react-types/dist/links.d.ts
4
+ type LinkTarget = '_self' | '_blank';
5
+ /**
6
+ * A link to a URL, used for navigation within components.
7
+ *
8
+ * @example
9
+ * ```tsx
10
+ * import type { Link } from '@wix/editor-react-types';
11
+ *
12
+ * interface MyComponentProps {
13
+ * link?: Link;
14
+ * }
15
+ * ```
16
+ */
17
+ type Link = {
18
+ /**
19
+ * The link URL. For partial links (see `pageRole`), this is the router prefix
20
+ * (e.g. `https://www.my-site.com/prefix`) rather than a fully resolved URL.
21
+ */
22
+ href?: string;
23
+ /**
24
+ * Where this link should open.
25
+ * - `'_self'` — opens in the same page.
26
+ * - `'_blank'` — opens in a new tab.
27
+ */
28
+ target?: LinkTarget; /** The `rel` attribute of the link. Accepts LinkRel values separated by a space. */
29
+ rel?: string;
30
+ /**
31
+ * Page role identifier. Present only on partial links, where only the router prefix is
32
+ * known and the full URL format is owned by the Router/App. Applications can use such
33
+ * links in functions to resolve the complete URL at runtime (e.g. for binding links).
34
+ * Resolved links will not have this field.
35
+ */
36
+ pageRole?: string;
37
+ };
38
+ //#endregion
39
+ //#region ../../node_modules/@wix/editor-react-types/dist/image.d.ts
40
+ type Point = {
41
+ x: number;
42
+ y: number;
43
+ };
44
+ type Crop = Point & {
45
+ width: number;
46
+ height: number;
47
+ };
48
+ /**
49
+ * An image from Wix Media.
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * import type { Image } from '@wix/editor-react-types';
54
+ *
55
+ * interface MyComponentProps {
56
+ * image?: Image;
57
+ * }
58
+ *
59
+ * const MyComponent = ({ image }: MyComponentProps) => (
60
+ * <img src={image?.url} alt={image?.alt} />
61
+ * );
62
+ * ```
63
+ */
64
+ type Image = {
65
+ /** The image URI. */uri?: string; /** The image URL. */
66
+ url: string; /** The image file name. */
67
+ name?: string; /** The image height in pixels. */
68
+ height?: number; /** The image width in pixels. */
69
+ width?: number; /** Whether the image is animated (e.g. GIF). */
70
+ animated?: boolean; /** The crop region applied to the image. */
71
+ crop?: Crop; /** The image quality, as a percentage from 0 to 100. */
72
+ quality?: number; /** The image alt text for accessibility. */
73
+ alt?: string;
74
+ };
75
+ //#endregion
76
+ //#region ../../node_modules/@wix/editor-react-types/dist/base.d.ts
77
+ /**
78
+ * A standard email address according to RFC 5321, section 4.1.2.
79
+ *
80
+ * @example
81
+ * ```tsx
82
+ * import type { Email } from '@wix/editor-react-types';
83
+ *
84
+ * interface MyComponentProps {
85
+ * contactEmail?: Email;
86
+ * }
87
+ * ```
88
+ */
89
+ type Email = string;
90
+ /**
91
+ * A phone number string, accepting common phone number characters.
92
+ *
93
+ * @example
94
+ * ```tsx
95
+ * import type { Phone } from '@wix/editor-react-types';
96
+ *
97
+ * interface MyComponentProps {
98
+ * phoneNumber?: Phone;
99
+ * }
100
+ * ```
101
+ */
102
+ type Phone = string;
103
+ //#endregion
104
+ //#region ../../node_modules/@wix/editor-react-types/dist/visualMedia.d.ts
105
+ interface VisualMediaBase {
106
+ /** The URL of the media file */
107
+ src: string;
108
+ /** The slug for the media */
109
+ slug?: string;
110
+ /** Description of the media for accessibility purposes */
111
+ description?: string;
112
+ /** The title of the media */
113
+ title?: string;
114
+ /** The height of the media in pixels */
115
+ height?: number;
116
+ /** The width of the media in pixels */
117
+ width?: number;
118
+ /** An action when the item is clicked */
119
+ action?: {
120
+ /** The URL to navigate to when the media is clicked */link: Link | Phone | Email;
121
+ };
122
+ }
123
+ type VisualMedia = (VisualMediaBase & {
124
+ type: 'image'; /** Additional parameters specific to images, such as focal point and alt text. */
125
+ parameters?: ImageParameters;
126
+ }) | (VisualMediaBase & {
127
+ type: 'video'; /** Additional parameters specific to videos, such as thumbnail, alt text, and whether the video has audio. */
128
+ parameters?: VideoParameters;
129
+ });
130
+ type VideoParameters = {
131
+ /** The URL of the video thumbnail */thumbnail?: string; /** Alternative text for the video */
132
+ alt?: string; /** Whether the video has audio */
133
+ hasAudio?: boolean;
134
+ };
135
+ type ImageParameters = {
136
+ /** The focal point for the image */focalPoint?: [number, number]; /** The alt text for the image */
137
+ alt?: string;
138
+ };
139
+ //#endregion
140
+ //#region ../../node_modules/type-fest/source/observable-like.d.ts
141
+ declare global {
142
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
143
+ interface SymbolConstructor {
144
+ readonly observable: symbol;
145
+ }
146
+ }
147
+ /**
148
+ @remarks
149
+ The TC39 observable proposal defines a `closed` property, but some implementations (such as xstream) do not as of 10/08/2021.
150
+ As well, some guidance on making an `Observable` to not include `closed` property.
151
+ @see https://github.com/tc39/proposal-observable/blob/master/src/Observable.js#L129-L130
152
+ @see https://github.com/staltz/xstream/blob/6c22580c1d84d69773ee4b0905df44ad464955b3/src/index.ts#L79-L85
153
+ @see https://github.com/benlesh/symbol-observable#making-an-object-observable
154
+
155
+ @category Observable
156
+ */
157
+ //#endregion
158
+ //#region ../../node_modules/@wix/sdk-types/internal/build/index.d.ts
159
+ declare global {
160
+ interface ContextualClient {}
161
+ }
162
+ /**
163
+ * Creates concrete types from SDK descriptors when a contextual client is
164
+ * available.
165
+ *
166
+ * For a REST descriptor the built (bound) API is intersected with the original
167
+ * descriptor, matching what `contextualizeRESTModuleV2` returns at runtime — a
168
+ * value callable as the bound API and still usable as a descriptor. Keeping the
169
+ * descriptor half lets contextual modules be passed to descriptor-constrained
170
+ * helpers such as `elevate` from `@wix/sdk/context` (FEDINF-14092).
171
+ *
172
+ * The `& T` is scoped to REST descriptors — the only shape codegen wraps in
173
+ * `MaybeContext` — so `BuildDescriptors` (used by `createClient().use`) is left
174
+ * unchanged and stays bound-only. The fix lives here rather than in `elevate`,
175
+ * which is kept strict on purpose (see #941) so it still rejects bound-only
176
+ * functions that are unsafe through `createRESTModule`.
177
+ */
178
+ declare global {
179
+ /**
180
+ * A global interface to set the exposure toggle for the SDK.
181
+ * @example
182
+ * ```ts
183
+ * declare global {
184
+ * interface SDKExposureToggle {
185
+ * alpha: true;
186
+ * }
187
+ * }
188
+ */
189
+ interface SDKExposureToggle {}
190
+ }
191
+ declare global {
192
+ /**
193
+ * A global interface to set the type mode for the SDK.
194
+ * @example
195
+ * ```ts
196
+ * declare global {
197
+ * interface SDKTypeMode {
198
+ * strict: true;
199
+ * }
200
+ * }
201
+ */
202
+ interface SDKTypeMode {}
203
+ }
204
+ //#endregion
205
+ //#region ../../node_modules/@wix/auto_sdk_bookings_multi-service-availability-time-slots/build/es/index.typings.d.mts
206
+ interface AvailableResources {
207
+ /**
208
+ * [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
209
+ * @format GUID
210
+ */
211
+ resourceTypeId?: string | null;
212
+ /**
213
+ * Details about resources available during the time slot.
214
+ *
215
+ * Behavior varies by method:
216
+ *
217
+ * List methods (List Availability Time Slots and List Multi Service Availability Time Slots):
218
+ * - Empty by default.
219
+ * - Up to 10 resources when specifying `includeResourceTypeIds` or `resourceIds` in the request.
220
+ *
221
+ * Get methods (Get Availability Time Slots and Get Multi Service Availability Time Slots):
222
+ * - All resources by default.
223
+ * - Filtered resources when specifying `includeResourceTypeIds` or `resourceIds` in the request.
224
+ */
225
+ resources?: Resource$1[];
226
+ /**
227
+ * Whether there are more available resources for the slot than those listed in `resources`.
228
+ * @readonly
229
+ */
230
+ hasMoreAvailableResources?: boolean | null;
231
+ }
232
+ interface Resource$1 {
233
+ /**
234
+ * Resource ID.
235
+ * @format GUID
236
+ */
237
+ _id?: string;
238
+ /**
239
+ * Resource name.
240
+ * @minLength 1
241
+ */
242
+ name?: string | null;
243
+ }
244
+ interface NestedTimeSlot {
245
+ /**
246
+ * Service ID of the nested time slot.
247
+ * @format GUID
248
+ */
249
+ serviceId?: string;
250
+ /**
251
+ * Local start date of the nested time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
252
+ * For example, `2026-01-30T13:30:00`.
253
+ * @format LOCAL_DATE_TIME
254
+ */
255
+ localStartDate?: string;
256
+ /**
257
+ * Local end date of the nested time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
258
+ * For example, `2026-01-30T13:30:00`.
259
+ * @format LOCAL_DATE_TIME
260
+ */
261
+ localEndDate?: string;
262
+ /**
263
+ * List of [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) available during the nested time slot.
264
+ * @maxSize 10
265
+ */
266
+ availableResources?: AvailableResources[];
267
+ /**
268
+ * The schedule ID associated with this nested time slot.
269
+ * Same as the service's schedule ID.
270
+ * @format GUID
271
+ */
272
+ scheduleId?: string | null;
273
+ }
274
+ //#endregion
275
+ //#region ../../node_modules/@wix/auto_sdk_bookings_service-options-and-variants/build/es/index.typings.d.mts
276
+ /**
277
+ * The `serviceOptionsAndVariants` object links a [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction)
278
+ * to its variants.
279
+ * You can use it to offer customers different prices for a service,
280
+ * depending on which choices they book.
281
+ */
282
+ interface ServiceOptionsAndVariants$1 {
283
+ /**
284
+ * ID of the `serviceOptionsAndVariants` object.
285
+ * @format GUID
286
+ * @readonly
287
+ */
288
+ _id?: string | null;
289
+ /**
290
+ * ID of the service related to these options and variants.
291
+ * @format GUID
292
+ * @immutable
293
+ */
294
+ serviceId?: string | null;
295
+ /** Service options. Note that currently only a single option is supported per service. */
296
+ options?: ServiceOptions;
297
+ /** Information about the service's variants. */
298
+ variants?: ServiceVariants;
299
+ /**
300
+ * Price of the cheapest service variant.
301
+ * @readonly
302
+ */
303
+ minPrice?: Money$1;
304
+ /**
305
+ * Price of the most expensive service variant.
306
+ * @readonly
307
+ */
308
+ maxPrice?: Money$1;
309
+ /**
310
+ * Revision number, which increments by 1 each time the `serviceOptionsAndVariants` object is updated.
311
+ * To prevent conflicting changes,
312
+ * the current revision must be passed when updating and deleting the `serviceOptionsAndVariants` object.
313
+ *
314
+ * Ignored when creating a `serviceOptionsAndVariants` object.
315
+ * @immutable
316
+ */
317
+ revision?: string | null;
318
+ /** Extensions enabling users to save custom data related to service options and variants. */
319
+ extendedFields?: ExtendedFields$2;
320
+ }
321
+ interface ServiceOption extends ServiceOptionOptionSpecificDataOneOf {
322
+ /** Details about the custom option. Available only for `CUSTOM` options. */
323
+ customData?: CustomServiceOption;
324
+ durationData?: DurationServiceOption;
325
+ /**
326
+ * ID of the service option.
327
+ * @format GUID
328
+ */
329
+ _id?: string;
330
+ /** Type of the service option. */
331
+ type?: ServiceOptionTypeWithLiterals;
332
+ }
333
+ /** @oneof */
334
+ interface ServiceOptionOptionSpecificDataOneOf {
335
+ /** Details about the custom option. Available only for `CUSTOM` options. */
336
+ customData?: CustomServiceOption;
337
+ durationData?: DurationServiceOption;
338
+ }
339
+ declare enum ServiceOptionType {
340
+ /** There is no information about the option type. */
341
+ UNKNOWN = "UNKNOWN",
342
+ /**
343
+ * The service option is based on a custom parameter. For example, age group,
344
+ * booked equipment, or appointment timing.
345
+ */
346
+ CUSTOM = "CUSTOM",
347
+ /**
348
+ * It's a [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)
349
+ * based option.
350
+ */
351
+ STAFF_MEMBER = "STAFF_MEMBER",
352
+ /** It's a duration-based option. */
353
+ DURATION = "DURATION",
354
+ /**
355
+ * The price is resolved from rules based on when the service is booked
356
+ * (days and hours, months, or a date range).
357
+ * @documentationMaturity preview
358
+ */
359
+ DATE_TIME = "DATE_TIME",
360
+ /**
361
+ * The price is resolved from rules based on the number of participants.
362
+ * @documentationMaturity preview
363
+ */
364
+ NUMBER_OF_PARTICIPANTS = "NUMBER_OF_PARTICIPANTS",
365
+ /**
366
+ * The price is resolved from pricing tiers based on the booking duration range.
367
+ * @documentationMaturity preview
368
+ */
369
+ DURATION_RANGE = "DURATION_RANGE"
370
+ }
371
+ /** @enumType */
372
+ type ServiceOptionTypeWithLiterals = ServiceOptionType | 'UNKNOWN' | 'CUSTOM' | 'STAFF_MEMBER' | 'DURATION' | 'DATE_TIME' | 'NUMBER_OF_PARTICIPANTS' | 'DURATION_RANGE';
373
+ interface CustomServiceOption {
374
+ /**
375
+ * Name of the service option. For example, `Age group`, `Location`, `Equipment`,
376
+ * or `Time`.
377
+ * @maxLength 255
378
+ */
379
+ name?: string;
380
+ /**
381
+ * Available choices for the service option. For example, `child`, `student`,
382
+ * `adult`, and `senior` for a service option named `Age group`. Each value must
383
+ * be unique. The value's case is ignored, meaning `Child` and `child` are
384
+ * considered to be identical. Currently, only a single choice is supported
385
+ * because a service can have only a single option.
386
+ *
387
+ * Max: 1 choice
388
+ * @maxSize 100
389
+ * @maxLength 255
390
+ */
391
+ choices?: string[];
392
+ }
393
+ interface DurationServiceOption {
394
+ /**
395
+ * Optional name of the duration option. For example, `Short Class`, or
396
+ * `Extended Class`.
397
+ * @maxLength 255
398
+ */
399
+ name?: string | null;
400
+ }
401
+ interface ServiceVariant {
402
+ /**
403
+ * Choices for the service option. Currently, only a single choice is supported
404
+ * because a service can have only a single option.
405
+ *
406
+ * Max: 1 choice
407
+ * @minSize 1
408
+ * @maxSize 1
409
+ */
410
+ choices?: ServiceChoice$1[];
411
+ /** Information about the service variant's price. */
412
+ price?: Money$1;
413
+ }
414
+ interface ServiceChoice$1 extends ServiceChoiceChoiceOneOf$1 {
415
+ /**
416
+ * Name of the custom choice.
417
+ * @maxLength 255
418
+ */
419
+ custom?: string;
420
+ /**
421
+ * ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
422
+ * associated with the [staff member](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/introduction)
423
+ * providing the service.
424
+ * @format GUID
425
+ */
426
+ staffMemberId?: string;
427
+ /** Information about the option's duration. */
428
+ duration?: Duration$1;
429
+ /** A rule resolving the price by when the service is booked. Available only for `DATE_TIME` options. */
430
+ dateTime?: DateTimeRule$1;
431
+ /** A rule resolving the price by the number of participants. Available only for `NUMBER_OF_PARTICIPANTS` options. */
432
+ participantRange?: ParticipantsRange$1;
433
+ /**
434
+ * A duration range tier resolving the price by how long the booking is.
435
+ * Available only for `DURATION_RANGE` options.
436
+ */
437
+ durationRange?: DurationRange$1;
438
+ /**
439
+ * ID of the service option.
440
+ * @format GUID
441
+ */
442
+ optionId?: string;
443
+ }
444
+ /** @oneof */
445
+ interface ServiceChoiceChoiceOneOf$1 {
446
+ /**
447
+ * Name of the custom choice.
448
+ * @maxLength 255
449
+ */
450
+ custom?: string;
451
+ /**
452
+ * ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
453
+ * associated with the [staff member](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/introduction)
454
+ * providing the service.
455
+ * @format GUID
456
+ */
457
+ staffMemberId?: string;
458
+ /** Information about the option's duration. */
459
+ duration?: Duration$1;
460
+ /** A rule resolving the price by when the service is booked. Available only for `DATE_TIME` options. */
461
+ dateTime?: DateTimeRule$1;
462
+ /** A rule resolving the price by the number of participants. Available only for `NUMBER_OF_PARTICIPANTS` options. */
463
+ participantRange?: ParticipantsRange$1;
464
+ /**
465
+ * A duration range tier resolving the price by how long the booking is.
466
+ * Available only for `DURATION_RANGE` options.
467
+ */
468
+ durationRange?: DurationRange$1;
469
+ }
470
+ interface Duration$1 {
471
+ /**
472
+ * Duration of the service in minutes.
473
+ *
474
+ * Min: `1` minute
475
+ * Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
476
+ * @min 1
477
+ * @max 44639
478
+ */
479
+ minutes?: number;
480
+ /**
481
+ * Name of the duration option.
482
+ *
483
+ * Default: Human-readable text of `minutes`. For example, `1 hr 30 min`.
484
+ * @maxLength 255
485
+ */
486
+ name?: string | null;
487
+ }
488
+ interface DateTimeRule$1 extends DateTimeRuleRuleOneOf {
489
+ /** Matches when the booked slot falls on one of the given days within the time window. */
490
+ hoursAndDaysRule?: HoursAndDaysRule;
491
+ /** Matches when the booked slot falls in one of the given months. */
492
+ monthsRule?: MonthsRule;
493
+ /** Matches when the booked slot falls within the date range. */
494
+ dateRangeRule?: DateRangeRule;
495
+ /** Which kind of rule this is. Must match the populated `rule` case. */
496
+ ruleType?: DateTimeRuleTypeWithLiterals;
497
+ /**
498
+ * Optional name of the rule. For example, `Weekend mornings`, or `Holiday season`.
499
+ * @maxLength 255
500
+ */
501
+ name?: string | null;
502
+ }
503
+ /** @oneof */
504
+ interface DateTimeRuleRuleOneOf {
505
+ /** Matches when the booked slot falls on one of the given days within the time window. */
506
+ hoursAndDaysRule?: HoursAndDaysRule;
507
+ /** Matches when the booked slot falls in one of the given months. */
508
+ monthsRule?: MonthsRule;
509
+ /** Matches when the booked slot falls within the date range. */
510
+ dateRangeRule?: DateRangeRule;
511
+ }
512
+ declare enum DateTimeRuleType {
513
+ HOURS_AND_DAYS = "HOURS_AND_DAYS",
514
+ MONTHS = "MONTHS",
515
+ DATE_RANGE = "DATE_RANGE"
516
+ }
517
+ /** @enumType */
518
+ type DateTimeRuleTypeWithLiterals = DateTimeRuleType | 'HOURS_AND_DAYS' | 'MONTHS' | 'DATE_RANGE';
519
+ interface HoursAndDaysRule {
520
+ /**
521
+ * Days the rule applies to. The time window is evaluated in the business time zone.
522
+ * @minSize 1
523
+ * @maxSize 7
524
+ */
525
+ days?: DayWithLiterals$1[];
526
+ /**
527
+ * Start of the time window in `HH:mm` format, inclusive. Evaluated in the business time zone.
528
+ * @format LOCAL_TIME
529
+ */
530
+ startTime?: string | null;
531
+ /**
532
+ * End of the time window in `HH:mm` format, exclusive. When earlier than `start_time` the window wraps past midnight.
533
+ * @format LOCAL_TIME
534
+ */
535
+ endTime?: string | null;
536
+ }
537
+ declare enum Day$1 {
538
+ MONDAY = "MONDAY",
539
+ TUESDAY = "TUESDAY",
540
+ WEDNESDAY = "WEDNESDAY",
541
+ THURSDAY = "THURSDAY",
542
+ FRIDAY = "FRIDAY",
543
+ SATURDAY = "SATURDAY",
544
+ SUNDAY = "SUNDAY"
545
+ }
546
+ /** @enumType */
547
+ type DayWithLiterals$1 = Day$1 | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
548
+ interface MonthsRule {
549
+ /**
550
+ * Months the rule applies to, as numbers `1`-`12`. Each value must be unique.
551
+ *
552
+ * Min: 1 month
553
+ * Max: 12 months
554
+ * @minSize 1
555
+ * @maxSize 12
556
+ * @min 1
557
+ * @max 12
558
+ */
559
+ months?: number[];
560
+ }
561
+ interface DateRangeRule {
562
+ /**
563
+ * Start of the date range in `YYYY-MM-DDThh:mm:ss` format, inclusive. Evaluated in the business time zone.
564
+ * @format LOCAL_DATE_TIME
565
+ */
566
+ localStartDate?: string | null;
567
+ /**
568
+ * End of the date range in `YYYY-MM-DDThh:mm:ss` format, inclusive. Evaluated in the business time zone.
569
+ * @format LOCAL_DATE_TIME
570
+ */
571
+ localEndDate?: string | null;
572
+ /**
573
+ * Whether the date range repeats every year on the same month and day.
574
+ * The range dates define both the window (month and day) and the first occurrence.
575
+ *
576
+ * Changing this field from `true` to `false` pins the range to the current year:
577
+ * `local_start_date` and `local_end_date` then apply to a single concrete year
578
+ * instead of repeating annually.
579
+ */
580
+ repeatsAnnually?: boolean | null;
581
+ }
582
+ interface ParticipantsRange$1 {
583
+ /**
584
+ * Lower bound of the participants range, inclusive.
585
+ *
586
+ * Min: `1`
587
+ * Max: `999`
588
+ * @min 1
589
+ * @max 999
590
+ */
591
+ minParticipants?: number | null;
592
+ /**
593
+ * Upper bound of the participants range, inclusive.
594
+ *
595
+ * Min: `1`
596
+ * Max: `999`
597
+ * @min 1
598
+ * @max 999
599
+ */
600
+ maxParticipants?: number | null;
601
+ /**
602
+ * Optional name of the range. For example, `Small group`, or `Large group`.
603
+ * @maxLength 255
604
+ */
605
+ name?: string | null;
606
+ }
607
+ interface DurationRange$1 extends DurationRangeConfigOneOf$1 {
608
+ /** Tier bounds in minutes. Set when `unit_type` is `HOUR`. */
609
+ hourOptions?: HourlyConfig$1;
610
+ /** Tier bounds in days. Set when `unit_type` is `DAY`. */
611
+ dayOptions?: DailyConfig$1;
612
+ /**
613
+ * Display name for this tier. For example, `1–3 hours` or `4–7 days`.
614
+ * @maxLength 255
615
+ */
616
+ name?: string | null;
617
+ /** Unit type for this tier. */
618
+ unitType?: DurationUnitTypeWithLiterals;
619
+ }
620
+ /** @oneof */
621
+ interface DurationRangeConfigOneOf$1 {
622
+ /** Tier bounds in minutes. Set when `unit_type` is `HOUR`. */
623
+ hourOptions?: HourlyConfig$1;
624
+ /** Tier bounds in days. Set when `unit_type` is `DAY`. */
625
+ dayOptions?: DailyConfig$1;
626
+ }
627
+ declare enum DurationUnitType {
628
+ /** Duration is expressed in minutes (hourly services). */
629
+ HOUR = "HOUR",
630
+ /** Duration is expressed in days (daily services). */
631
+ DAY = "DAY"
632
+ }
633
+ /** @enumType */
634
+ type DurationUnitTypeWithLiterals = DurationUnitType | 'HOUR' | 'DAY';
635
+ /** Hourly bounds for a duration range tier. Durations are in minutes. */
636
+ interface HourlyConfig$1 {
637
+ /**
638
+ * @min 30
639
+ * @max 1440
640
+ */
641
+ minDurationInMinutes?: number;
642
+ /**
643
+ * @min 30
644
+ * @max 1440
645
+ */
646
+ maxDurationInMinutes?: number;
647
+ }
648
+ /** Daily bounds for a duration range tier. Durations are in days. */
649
+ interface DailyConfig$1 {
650
+ /**
651
+ * @min 1
652
+ * @max 40
653
+ */
654
+ minDurationInDays?: number;
655
+ /**
656
+ * @min 1
657
+ * @max 40
658
+ */
659
+ maxDurationInDays?: number;
660
+ }
661
+ /**
662
+ * Money.
663
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
664
+ */
665
+ interface Money$1 {
666
+ /**
667
+ * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
668
+ * @format DECIMAL_VALUE
669
+ * @decimalValue options { gte:0, maxScale:2 }
670
+ */
671
+ value?: string;
672
+ /**
673
+ * Currency code. Must be valid ISO 4217 currency code (e.g., USD).
674
+ * @format CURRENCY
675
+ */
676
+ currency?: string;
677
+ /**
678
+ * Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.
679
+ * @maxLength 50
680
+ */
681
+ formattedValue?: string | null;
682
+ }
683
+ interface ServiceOptions {
684
+ /**
685
+ * Values of the service options.
686
+ *
687
+ * Max: 1 service option
688
+ * @minSize 1
689
+ * @maxSize 1
690
+ */
691
+ values?: ServiceOption[];
692
+ }
693
+ interface ServiceVariants {
694
+ /**
695
+ * Values of the service variants.
696
+ * @minSize 1
697
+ * @maxSize 100
698
+ */
699
+ values?: ServiceVariant[];
700
+ }
701
+ interface ExtendedFields$2 {
702
+ /**
703
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
704
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
705
+ *
706
+ * You can only access fields for which you have the appropriate permissions.
707
+ *
708
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
709
+ */
710
+ namespaces?: Record<string, Record<string, any>>;
711
+ }
712
+ //#endregion
713
+ //#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-Bf4TC5aj.d.mts
714
+ /** The `service` object represents an offering that a business provides to its customers. */
715
+ interface Service$1 {
716
+ /**
717
+ * Service ID.
718
+ * @format GUID
719
+ * @readonly
720
+ */
721
+ _id?: string | null;
722
+ /**
723
+ * ID of the app associated with the service. You can't update `appId`.
724
+ * Services are displayed in Wix Bookings only if they are associated with the Wix Bookings appId or have no associated app ID.
725
+ * Default: `13d21c63-b5ec-5912-8397-c3a5ddb27a97` (Wix Bookings app ID)
726
+ * For services from Wix apps, the following values apply:
727
+ * - Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
728
+ * - Wix Services: `"cc552162-24a4-45e0-9695-230c4931ef40"`
729
+ * - Wix Meetings: `"6646a75c-2027-4f49-976c-58f3d713ed0f"`.<!-- [Scheduling Form Fields](https://dev.wix.com/docs/api-reference/business-solutions/bookings/about-scheduling-form-fields) services also use this app ID. Use `createdByAppId` to distinguish between Wix Meetings and Scheduling Form Fields services.-->
730
+ * [Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).
731
+ * <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform). -->
732
+ * @format GUID
733
+ * @immutable
734
+ */
735
+ appId?: string | null;
736
+ /**
737
+ * ID of the app that created the service. This field is used for analytics, auditing, and tracking creation sources.
738
+ * This read-only field is automatically populated during service creation by checking these sources in order:
739
+ * 1. The caller's App ID from the request identity context.
740
+ * 2. The service's `appId` field.
741
+ * 3. The Wix Bookings App ID (`13d21c63-b5ec-5912-8397-c3a5ddb27a97`) as the final fallback.
742
+ * <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform). -->
743
+ * @format GUID
744
+ * @readonly
745
+ */
746
+ createdByAppId?: string | null;
747
+ /**
748
+ * Service type.
749
+ * Learn more about [service types](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-types).
750
+ */
751
+ type?: ServiceTypeWithLiterals;
752
+ /** Order of the service within a [category](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v1/category-object). */
753
+ sortOrder?: number | null;
754
+ /**
755
+ * Service name.
756
+ * @maxLength 400
757
+ * @minLength 1
758
+ */
759
+ name?: string | null;
760
+ /**
761
+ * Service description. For example, `High-class hair styling, cuts, straightening and color`.
762
+ * @maxLength 7000
763
+ */
764
+ description?: string | null;
765
+ /**
766
+ * Short service description, such as `Hair styling`.
767
+ * @maxLength 6000
768
+ */
769
+ tagLine?: string | null;
770
+ /**
771
+ * Default maximum number of customers that can book the service. The service cannot be booked beyond this capacity.
772
+ * @min 1
773
+ * @max 1000
774
+ */
775
+ defaultCapacity?: number | null;
776
+ /** Media associated with the service. */
777
+ media?: Media;
778
+ /** Whether the service is hidden from Wix Bookings pages and widgets. */
779
+ hidden?: boolean | null;
780
+ /**
781
+ * [Category](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/introduction)
782
+ * the service is associated with. Services aren't automatically assigned to a category.
783
+ * Without an associated category, the service isn't visible on the live site.
784
+ */
785
+ category?: V2Category;
786
+ /** Form the customer filled out when booking the service. */
787
+ form?: Form;
788
+ /**
789
+ * Payment options for booking the service.
790
+ * Learn more about [service payments](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments).
791
+ */
792
+ payment?: Payment;
793
+ /** Online booking settings. */
794
+ onlineBooking?: OnlineBooking;
795
+ /** Conferencing options for the service. */
796
+ conferencing?: Conferencing;
797
+ /**
798
+ * The locations this service is offered at. Read more about [service locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations).
799
+ * @immutable
800
+ * @maxSize 500
801
+ */
802
+ locations?: V2Location[];
803
+ /**
804
+ * [Policy](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)
805
+ * determining under what conditions this service can be booked. For example, whether the service can only be booked up to 30 minutes before it begins.
806
+ */
807
+ bookingPolicy?: BookingPolicy;
808
+ /**
809
+ * The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),
810
+ * which can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction).
811
+ */
812
+ schedule?: Schedule;
813
+ /**
814
+ * IDs of the [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the [staff members](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction) providing the service.
815
+ * Note that these are the resource IDs, not the staff member IDs.
816
+ *
817
+ * For appointment-based services, set this field when creating or updating the service.
818
+ * For classes and courses, this field is read-only and is automatically derived from staff assigned to the service's recurring scheduled sessions.
819
+ * Staff assigned only to single, non-recurring events are not included.
820
+ * Once all of a staff member's upcoming recurring sessions have ended, their ID is removed from this field.
821
+ * To retrieve the full list of staff for classes or courses, query the service's calendar events instead.
822
+ * Learn more about [retrieving staff for classes and courses](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/sample-flows#retrieve-staff-members-for-a-class-or-course).
823
+ * @maxSize 220
824
+ * @format GUID
825
+ */
826
+ staffMemberIds?: string[];
827
+ /** Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified. */
828
+ staffMemberDetails?: StaffMemberDetails;
829
+ /**
830
+ * Information about which resources must be available so customers can book the service.
831
+ * For example, a meeting room or equipment.
832
+ * Some nested fields are only returned when specific conditional fields are requested:
833
+ * pass `RESOURCE_TYPE_DETAILS` to retrieve `resourceType.name`, and `RESOURCE_DETAILS` to retrieve `resourceDetails.resources`.
834
+ * @maxSize 8
835
+ */
836
+ serviceResources?: ServiceResource[];
837
+ /**
838
+ * A slug is the last part of the URL address that serves as a unique identifier of the service.
839
+ * The list of supported slugs includes past service names for backwards compatibility, and a custom slug if one was set by the business owner.
840
+ * @readonly
841
+ * @maxSize 100
842
+ */
843
+ supportedSlugs?: Slug[];
844
+ /**
845
+ * Active slug for the service.
846
+ * Learn more about [service slugs](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-slugs).
847
+ * @readonly
848
+ */
849
+ mainSlug?: Slug;
850
+ /**
851
+ * URLs to various service-related pages, such as the calendar page and the booking page.
852
+ * @readonly
853
+ */
854
+ urls?: URLs;
855
+ /** Extensions enabling users to save custom data related to the service. */
856
+ extendedFields?: ExtendedFields$1;
857
+ /** Custom SEO data for the service. */
858
+ seoData?: SeoSchema;
859
+ /**
860
+ * Date and time the service was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
861
+ * @readonly
862
+ */
863
+ _createdDate?: Date | null;
864
+ /**
865
+ * Date and time the service was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
866
+ * @readonly
867
+ */
868
+ _updatedDate?: Date | null;
869
+ /**
870
+ * Revision number, which increments by 1 each time the service is updated. To
871
+ * prevent conflicting changes, the existing revision must be used when updating
872
+ * a service.
873
+ * @readonly
874
+ */
875
+ revision?: string | null;
876
+ /**
877
+ * Information about the [add-on groups](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-add-on-groups) associated with the service.
878
+ * @maxSize 3
879
+ */
880
+ addOnGroups?: AddOnGroup[];
881
+ /**
882
+ * Details about all [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) customers can choose when booking the service.
883
+ * @readonly
884
+ * @maxSize 50
885
+ */
886
+ addOnDetails?: AddOnDetails[];
887
+ /** Taxable address used to calculate tax */
888
+ taxableAddress?: TaxableAddress;
889
+ /**
890
+ * ID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction)
891
+ * that serves as the primary resource for this appointment service. The primary resource type
892
+ * determines which resources drive slot assignment and availability resolution.
893
+ *
894
+ * For example, when set to a "Meeting Rooms" resource type, availability is calculated
895
+ * based on the rooms' schedules rather than staff schedules.
896
+ *
897
+ * Default: The staff resource type.
898
+ * @format GUID
899
+ */
900
+ primaryResourceType?: string | null;
901
+ }
902
+ declare enum ServiceType {
903
+ /** Appointment-based service. */
904
+ APPOINTMENT = "APPOINTMENT",
905
+ /** Class service. */
906
+ CLASS = "CLASS",
907
+ /** Course service. */
908
+ COURSE = "COURSE"
909
+ }
910
+ /** @enumType */
911
+ type ServiceTypeWithLiterals = ServiceType | 'APPOINTMENT' | 'CLASS' | 'COURSE';
912
+ interface Media {
913
+ /**
914
+ * Media items associated with the service.
915
+ * @maxSize 100
916
+ */
917
+ items?: MediaItem[];
918
+ /** Primary media associated with the service. */
919
+ mainMedia?: MediaItem;
920
+ /** Cover media associated with the service. */
921
+ coverMedia?: MediaItem;
922
+ }
923
+ interface MediaItem extends MediaItemItemOneOf {
924
+ /** Details of the image associated with the service, such as URL and size. */
925
+ image?: string;
926
+ }
927
+ /** @oneof */
928
+ interface MediaItemItemOneOf {
929
+ /** Details of the image associated with the service, such as URL and size. */
930
+ image?: string;
931
+ }
932
+ interface V2Category {
933
+ /**
934
+ * Category ID.
935
+ * @format GUID
936
+ */
937
+ _id?: string;
938
+ /**
939
+ * Category name.
940
+ * @maxLength 500
941
+ * @readonly
942
+ */
943
+ name?: string | null;
944
+ /**
945
+ * Order of a category within a category list.
946
+ * @readonly
947
+ */
948
+ sortOrder?: number | null;
949
+ }
950
+ interface Form {
951
+ /**
952
+ * ID of the form associated with the service.
953
+ * The form information that you submit when booking includes contact details, participants, and other form fields set up for the service.
954
+ * You can manage the service booking form fields using the Bookings Forms API.
955
+ * @format GUID
956
+ */
957
+ _id?: string;
958
+ }
959
+ interface Payment extends PaymentRateOneOf {
960
+ /**
961
+ * The details for the fixed price of the service.
962
+ *
963
+ * Required when: `rateType` is `FIXED`
964
+ */
965
+ fixed?: FixedPayment;
966
+ /**
967
+ * The details for the custom price of the service.
968
+ *
969
+ * Required when: `rateType` is `CUSTOM`
970
+ */
971
+ custom?: CustomPayment;
972
+ /**
973
+ * The details for the varied pricing of the service.
974
+ * Read more about [varied price options](https://support.wix.com/en/article/wix-bookings-about-getting-paid-online#offering-varied-price-options).
975
+ *
976
+ * Required when: `rateType` is `VARIED`
977
+ */
978
+ varied?: VariedPayment;
979
+ /**
980
+ * Subscription pricing details for the service. Supported for course services only.
981
+ * The business charges recurring monthly payments instead of a one-time fee.
982
+ *
983
+ * Required when: `rateType` is `SUBSCRIPTION`.
984
+ */
985
+ subscription?: SubscriptionPayment;
986
+ /** The rate the customer is expected to pay for the service. */
987
+ rateType?: RateTypeWithLiterals;
988
+ /** The payment options a customer can use to pay for the service. */
989
+ options?: PaymentOptions;
990
+ /**
991
+ * IDs of pricing plans that can be used as payment for the service.
992
+ * Read more about [service payment options](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-payments).
993
+ * @readonly
994
+ * @maxSize 75
995
+ * @format GUID
996
+ */
997
+ pricingPlanIds?: string[];
998
+ /**
999
+ * How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).
1000
+ * If customers pay for the booking using any method other than a pricing plan, the value of this field is ignored.
1001
+ */
1002
+ addOnOption?: AddOnPaymentOptionsWithLiterals;
1003
+ /**
1004
+ * Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).
1005
+ * The final discount is determined during eCommerce checkout and may differ from the estimate,
1006
+ * for example when discounts depend on cart totals.
1007
+ *
1008
+ * A discount is considered active when its start time has passed and its end time hasn't.
1009
+ * If multiple active discounts apply, one is returned:
1010
+ * + Services with subscription pricing: the most recently updated discount that the business set to cover subscription purchases.
1011
+ * + Other services, when at least one discount's price can be estimated: the discount with the lowest estimated price.
1012
+ * + Other services, when no discount's price can be estimated: the most recently updated discount.
1013
+ *
1014
+ * The returned discount is an estimate and isn't guaranteed to be the one applied at checkout.
1015
+ *
1016
+ * Returned only when `DISCOUNT_INFO_DETAILS` is requested.
1017
+ * @readonly
1018
+ */
1019
+ discountInfo?: DiscountInfo;
1020
+ }
1021
+ /** @oneof */
1022
+ interface PaymentRateOneOf {
1023
+ /**
1024
+ * The details for the fixed price of the service.
1025
+ *
1026
+ * Required when: `rateType` is `FIXED`
1027
+ */
1028
+ fixed?: FixedPayment;
1029
+ /**
1030
+ * The details for the custom price of the service.
1031
+ *
1032
+ * Required when: `rateType` is `CUSTOM`
1033
+ */
1034
+ custom?: CustomPayment;
1035
+ /**
1036
+ * The details for the varied pricing of the service.
1037
+ * Read more about [varied price options](https://support.wix.com/en/article/wix-bookings-about-getting-paid-online#offering-varied-price-options).
1038
+ *
1039
+ * Required when: `rateType` is `VARIED`
1040
+ */
1041
+ varied?: VariedPayment;
1042
+ /**
1043
+ * Subscription pricing details for the service. Supported for course services only.
1044
+ * The business charges recurring monthly payments instead of a one-time fee.
1045
+ *
1046
+ * Required when: `rateType` is `SUBSCRIPTION`.
1047
+ */
1048
+ subscription?: SubscriptionPayment;
1049
+ }
1050
+ declare enum RateType {
1051
+ /** The service has a fixed price. */
1052
+ FIXED = "FIXED",
1053
+ /** The service has a custom price, expressed as a price description. */
1054
+ CUSTOM = "CUSTOM",
1055
+ /** This service is offered with a set of different prices based on different terms. */
1056
+ VARIED = "VARIED",
1057
+ /** This service is offered free of charge. */
1058
+ NO_FEE = "NO_FEE",
1059
+ /**
1060
+ * The service charges recurring monthly payments. Supported for course services only.
1061
+ * @documentationMaturity preview
1062
+ */
1063
+ SUBSCRIPTION = "SUBSCRIPTION"
1064
+ }
1065
+ /** @enumType */
1066
+ type RateTypeWithLiterals = RateType | 'FIXED' | 'CUSTOM' | 'VARIED' | 'NO_FEE' | 'SUBSCRIPTION';
1067
+ interface FixedPayment {
1068
+ /**
1069
+ * The fixed price required to book the service.
1070
+ *
1071
+ * Required when: `rateType` is `FIXED`
1072
+ */
1073
+ price?: Money;
1074
+ /**
1075
+ * The deposit price required to book the service.
1076
+ *
1077
+ * Required when: `rateType` is `FIXED` and `paymentOptions.deposit` is `true`
1078
+ */
1079
+ deposit?: Money;
1080
+ /**
1081
+ * Whether customers can choose to pay the full service price upfront instead of only the deposit.
1082
+ *
1083
+ * Used only when a `deposit` amount is set.
1084
+ *
1085
+ * Default: `false`.
1086
+ */
1087
+ fullUpfrontPaymentAllowed?: boolean | null;
1088
+ }
1089
+ /**
1090
+ * Money.
1091
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
1092
+ */
1093
+ interface Money {
1094
+ /**
1095
+ * Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`.
1096
+ * @format DECIMAL_VALUE
1097
+ * @decimalValue options { gt:0, maxScale:2 }
1098
+ */
1099
+ value?: string;
1100
+ /**
1101
+ * Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`.
1102
+ * @format CURRENCY
1103
+ * @readonly
1104
+ */
1105
+ currency?: string;
1106
+ /**
1107
+ * Monetary amount. Decimal string in local format. For example, `1 000,30`.
1108
+ * @maxLength 50
1109
+ */
1110
+ formattedValue?: string | null;
1111
+ }
1112
+ /**
1113
+ * A deposit expressed as exactly one of a fixed monetary amount or a percentage of the full service price.
1114
+ * Structurally exclusive: at most one of `amount` or `percentage` may be set.
1115
+ */
1116
+ interface CustomPayment {
1117
+ /**
1118
+ * A custom description explaining to the customer how to pay for the service.
1119
+ * @maxLength 50
1120
+ */
1121
+ description?: string | null;
1122
+ }
1123
+ interface VariedPayment {
1124
+ /** The default price for the service without any variants. It will also be used as the default price for any new variant. */
1125
+ defaultPrice?: Money;
1126
+ /**
1127
+ * The deposit price required to book the service.
1128
+ *
1129
+ * Required when: `rateType` is `VARIED` and `paymentOptions.deposit` is `true`
1130
+ */
1131
+ deposit?: Money;
1132
+ /**
1133
+ * The minimal price a customer may pay for this service, based on its variants.
1134
+ * @readonly
1135
+ */
1136
+ minPrice?: Money;
1137
+ /**
1138
+ * The maximum price a customer may pay for this service, based on its variants.
1139
+ * @readonly
1140
+ */
1141
+ maxPrice?: Money;
1142
+ /**
1143
+ * Whether customers can choose to pay the full service price upfront instead of only the deposit.
1144
+ *
1145
+ * Used only when a `deposit` amount is set.
1146
+ *
1147
+ * Default: `false`.
1148
+ */
1149
+ fullUpfrontPaymentAllowed?: boolean | null;
1150
+ }
1151
+ interface SubscriptionPayment {
1152
+ /**
1153
+ * Base price charged per billing cycle before tax and discounts.
1154
+ * The actual amount charged may differ after checkout applies tax and discounts.
1155
+ */
1156
+ amountPerBillingCycle?: Money;
1157
+ /**
1158
+ * Billing frequency for recurring subscription charges.
1159
+ * Reflected as `billingFrequency` in the booking's subscription info.
1160
+ *
1161
+ * Currently supports `MONTHLY` only.
1162
+ */
1163
+ frequency?: FrequencyTypeWithLiterals;
1164
+ /**
1165
+ * Total number of billing cycles in the subscription. For example, `12` for a 12-month subscription with monthly payments.
1166
+ * Reflected as `totalCycles` in the booking's subscription info.
1167
+ *
1168
+ * Required when: `rateType` is `SUBSCRIPTION`.
1169
+ * @min 2
1170
+ */
1171
+ totalPayments?: number | null;
1172
+ /** Determines when the first billing cycle payment is charged. Used together with `recurringStartDate` to define the subscription billing schedule. */
1173
+ firstChargeDate?: FirstChargeDateTypeWithLiterals;
1174
+ /**
1175
+ * Date and time when recurring billing starts.
1176
+ *
1177
+ * When `firstChargeDate` is `CHECKOUT`, the first charge occurs at checkout and subsequent billing cycles start from this date.
1178
+ *
1179
+ * When `firstChargeDate` is `SCHEDULED`, the first charge occurs on this date.
1180
+ *
1181
+ * Customers who book after recurring billing starts are billed for the remaining billing cycles only.
1182
+ *
1183
+ * Required when: `rateType` is `SUBSCRIPTION`.
1184
+ */
1185
+ recurringStartDate?: Date | null;
1186
+ /**
1187
+ * Deprecated.
1188
+ * @deprecated Deprecated.
1189
+ * @targetRemovalDate 2026-07-01
1190
+ */
1191
+ enrollmentFeeAmount?: Money;
1192
+ }
1193
+ declare enum FrequencyType {
1194
+ /** Billing cycle repeats once per month. */
1195
+ MONTHLY = "MONTHLY"
1196
+ }
1197
+ /** @enumType */
1198
+ type FrequencyTypeWithLiterals = FrequencyType | 'MONTHLY';
1199
+ declare enum FirstChargeDateType {
1200
+ /** The first billing cycle is charged at checkout. Recurring billing continues from the `recurringStartDate`. */
1201
+ CHECKOUT = "CHECKOUT",
1202
+ /** The first billing cycle is charged on the `recurringStartDate`. */
1203
+ SCHEDULED = "SCHEDULED"
1204
+ }
1205
+ /** @enumType */
1206
+ type FirstChargeDateTypeWithLiterals = FirstChargeDateType | 'CHECKOUT' | 'SCHEDULED';
1207
+ /**
1208
+ * The payment options a customer can use to pay for the service.
1209
+ * For payments of type `FIXED` or `VARIED`, at least one of `online`, `inPerson`, or `pricingPlan` must be `true`.
1210
+ */
1211
+ interface PaymentOptions {
1212
+ /**
1213
+ * Customers can pay for the service online.
1214
+ * When `true`:
1215
+ * + `rateType` must be `FIXED`, `VARIED`, or `SUBSCRIPTION`.
1216
+ * + `fixed.price`, `varied.defaultPrice`, or `subscription.amountPerBillingCycle` must be specified respectively.
1217
+ *
1218
+ * Required when: `rateType` is `SUBSCRIPTION`.
1219
+ * Read more about [getting paid online](https://support.wix.com/en/article/wix-bookings-about-getting-paid-online).
1220
+ */
1221
+ online?: boolean | null;
1222
+ /** Customers can pay for the service in person. */
1223
+ inPerson?: boolean | null;
1224
+ /**
1225
+ * This service requires a deposit to be made online in order to book it.
1226
+ * When `true`:
1227
+ * + `rateType` must be `VARIED` or `FIXED`.
1228
+ * + A `deposit` must be specified.
1229
+ * + `online` must be `true`.
1230
+ * + `inPerson` must be `false`.
1231
+ */
1232
+ deposit?: boolean | null;
1233
+ /**
1234
+ * Whether customers can pay for the service using a pricing plan.
1235
+ * Read more about [service payment options](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-payments).
1236
+ */
1237
+ pricingPlan?: boolean | null;
1238
+ }
1239
+ declare enum AddOnPaymentOptions {
1240
+ /** Customers are required to pay online for add-ons when the booking is paid for with a pricing plan. */
1241
+ ONLINE = "ONLINE",
1242
+ /** Customers are required to pay in person for add-ons when the booking is paid for with a pricing plan. */
1243
+ IN_PERSON = "IN_PERSON"
1244
+ }
1245
+ /** @enumType */
1246
+ type AddOnPaymentOptionsWithLiterals = AddOnPaymentOptions | 'ONLINE' | 'IN_PERSON';
1247
+ /** Estimated discount information for a service based on active eCommerce discounts. */
1248
+ interface DiscountInfo {
1249
+ /**
1250
+ * Name of the discount. For example, `Summer Sale - 20% Off`.
1251
+ * @minLength 1
1252
+ * @maxLength 50
1253
+ */
1254
+ discountName?: string;
1255
+ /**
1256
+ * Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.
1257
+ * For services with subscription pricing, this is the estimated price per billing cycle for the discounted cycles (see `discountedCycleCount`).
1258
+ *
1259
+ * Not returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout.
1260
+ */
1261
+ priceAfterDiscount?: Money;
1262
+ }
1263
+ /** A mandatory fee the customer pays in addition to the service price. */
1264
+ interface OnlineBooking {
1265
+ /**
1266
+ * Whether the service can be booked online.
1267
+ * When set to `true`, customers can book the service online. Configure the payment options via the `service.payment` property.
1268
+ * When set to `false`, customers cannot book the service online, and the service can only be paid for in person.
1269
+ */
1270
+ enabled?: boolean | null;
1271
+ /** Booking the service requires approval by the Wix user. */
1272
+ requireManualApproval?: boolean | null;
1273
+ /** Multiple customers can request to book the same time slot. This is relevant when `requireManualApproval` is `true`. */
1274
+ allowMultipleRequests?: boolean | null;
1275
+ }
1276
+ interface Conferencing {
1277
+ /** Whether a conference link is generated for the service's sessions. */
1278
+ enabled?: boolean | null;
1279
+ }
1280
+ interface V2Location extends V2LocationOptionsOneOf {
1281
+ /** Information about business locations. Required when `type` is `BUSINESS`. */
1282
+ business?: BusinessLocationOptions;
1283
+ /** Information about custom locations. Required when `type` is `CUSTOM`. */
1284
+ custom?: CustomLocationOptions;
1285
+ /**
1286
+ * Location ID.
1287
+ * @format GUID
1288
+ * @readonly
1289
+ */
1290
+ _id?: string;
1291
+ /**
1292
+ * Location type.
1293
+ *
1294
+ * Default: `CUSTOM`
1295
+ */
1296
+ type?: LocationTypeEnumLocationTypeWithLiterals;
1297
+ /**
1298
+ * Location address. Empty for `{"type": "CUSTOMER"}`.
1299
+ * @readonly
1300
+ */
1301
+ calculatedAddress?: CommonAddress;
1302
+ }
1303
+ /** @oneof */
1304
+ interface V2LocationOptionsOneOf {
1305
+ /** Information about business locations. Required when `type` is `BUSINESS`. */
1306
+ business?: BusinessLocationOptions;
1307
+ /** Information about custom locations. Required when `type` is `CUSTOM`. */
1308
+ custom?: CustomLocationOptions;
1309
+ }
1310
+ declare enum LocationTypeEnumLocationType {
1311
+ /** Location set by the business that is not a standard business [location](https://dev.wix.com/docs/api-reference/business-management/locations/introduction). */
1312
+ CUSTOM = "CUSTOM",
1313
+ /** Business [location](https://dev.wix.com/docs/api-reference/business-management/locations/introduction). */
1314
+ BUSINESS = "BUSINESS",
1315
+ /**
1316
+ * The customer specifies any address when booking. Available only for
1317
+ * appointment-based services.
1318
+ */
1319
+ CUSTOMER = "CUSTOMER"
1320
+ }
1321
+ /** @enumType */
1322
+ type LocationTypeEnumLocationTypeWithLiterals = LocationTypeEnumLocationType | 'CUSTOM' | 'BUSINESS' | 'CUSTOMER';
1323
+ interface CommonAddress extends CommonAddressStreetOneOf {
1324
+ /** Street name and number. */
1325
+ streetAddress?: CommonStreetAddress;
1326
+ /** @maxLength 255 */
1327
+ addressLine1?: string | null;
1328
+ /**
1329
+ * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
1330
+ * @format COUNTRY
1331
+ */
1332
+ country?: string | null;
1333
+ /**
1334
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
1335
+ * @maxLength 255
1336
+ */
1337
+ subdivision?: string | null;
1338
+ /**
1339
+ * City name.
1340
+ * @maxLength 255
1341
+ */
1342
+ city?: string | null;
1343
+ /**
1344
+ * Postal or zip code.
1345
+ * @maxLength 255
1346
+ */
1347
+ postalCode?: string | null;
1348
+ /**
1349
+ * Full address of the location.
1350
+ * @maxLength 512
1351
+ */
1352
+ formatted?: string | null;
1353
+ }
1354
+ /** @oneof */
1355
+ interface CommonAddressStreetOneOf {
1356
+ /** Street name and number. */
1357
+ streetAddress?: CommonStreetAddress;
1358
+ /** @maxLength 255 */
1359
+ addressLine?: string | null;
1360
+ }
1361
+ /** Street address. Includes street name, number, and apartment number in separate fields. */
1362
+ interface CommonStreetAddress {
1363
+ /**
1364
+ * Street number.
1365
+ * @maxLength 255
1366
+ */
1367
+ number?: string;
1368
+ /**
1369
+ * Street name.
1370
+ * @maxLength 255
1371
+ */
1372
+ name?: string;
1373
+ /**
1374
+ * Apartment number.
1375
+ * @maxLength 255
1376
+ */
1377
+ apt?: string;
1378
+ }
1379
+ interface BusinessLocationOptions {
1380
+ /**
1381
+ * ID of the business [location](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
1382
+ * When setting a business location, specify only the location ID. Other location details are overwritten.
1383
+ * @format GUID
1384
+ */
1385
+ _id?: string;
1386
+ /**
1387
+ * Business location name.
1388
+ * @readonly
1389
+ * @maxLength 150
1390
+ */
1391
+ name?: string;
1392
+ /**
1393
+ * Whether this is the default location. There can only be a single default location per site.
1394
+ * @readonly
1395
+ */
1396
+ default?: boolean | null;
1397
+ /**
1398
+ * Business location address.
1399
+ * @readonly
1400
+ */
1401
+ address?: CommonAddress;
1402
+ /**
1403
+ * Business location email.
1404
+ * @format EMAIL
1405
+ * @readonly
1406
+ */
1407
+ email?: string | null;
1408
+ /**
1409
+ * Business location phone.
1410
+ * @format PHONE
1411
+ * @readonly
1412
+ */
1413
+ phone?: string | null;
1414
+ }
1415
+ interface CustomLocationOptions {
1416
+ /**
1417
+ * ID of the custom location.
1418
+ * @format GUID
1419
+ * @readonly
1420
+ */
1421
+ _id?: string;
1422
+ /** Address of the custom location. */
1423
+ address?: CommonAddress;
1424
+ }
1425
+ /**
1426
+ * `BookingPolicy` is the main entity of `BookingPolicyService` and specifies a set of rules for booking a service
1427
+ * by visitors and members.
1428
+ *
1429
+ * Each `BookingPolicy` consists of a number of sub-policies. When the Bookings App is provisioned to a meta site then a
1430
+ * default `BookingPolicy` will be created with defaults for each of these sub-policies. This also applies when a request
1431
+ * is received to create a new `BookingPolicy` and one or more of these sub-policies are not provided.
1432
+ *
1433
+ * Sub-policies are defined in separate objects as specified below.
1434
+ *
1435
+ * - The `LimitEarlyBookingPolicy` object defines the policy for limiting early bookings.
1436
+ * - The `LimitLateBookingPolicy` object defines the policy for limiting late bookings.
1437
+ * - The `BookAfterStartPolicy` object defines the policy for booking after the start of the schedule.
1438
+ * - The `CancellationPolicy` object defines the policy for canceling a booked entity.
1439
+ * - The `ReschedulePolicy` object defines the policy for rescheduling booked entity.
1440
+ * - The `WaitlistPolicy` object defines the policy for a waitlist.
1441
+ * - The `ParticipantsPolicy` object defines the policy regarding the participants per booking.
1442
+ * - The `ResourcesPolicy` object defines the policy regarding the resources per booking.
1443
+ * - The `CancellationFeePolicy` object defines the policy regarding cancellation fees.
1444
+ * - The `SaveCreditCardPolicy` object defines the policy for saving credit card details.
1445
+ *
1446
+ * By default each sub-policy is disabled. A more detailed specification of the default settings of each sub-policy
1447
+ * can be found in the description of the corresponding object.
1448
+ *
1449
+ * Partial updates are supported on the main entity level, however in order to update a sub-policy the client needs to provide the whole sub-policy object.
1450
+ */
1451
+ interface BookingPolicy {
1452
+ /**
1453
+ * The ID to the policy for the booking.
1454
+ * @format GUID
1455
+ */
1456
+ _id?: string;
1457
+ /**
1458
+ * Date and time the policy was created.
1459
+ * @readonly
1460
+ */
1461
+ _createdDate?: Date | null;
1462
+ /**
1463
+ * Date and time the policy was updated.
1464
+ * @readonly
1465
+ */
1466
+ _updatedDate?: Date | null;
1467
+ /**
1468
+ * Name of the policy.
1469
+ * @maxLength 400
1470
+ * @readonly
1471
+ */
1472
+ name?: string | null;
1473
+ /**
1474
+ * Custom description for the policy. This policy is displayed to the participant.
1475
+ * @readonly
1476
+ */
1477
+ customPolicyDescription?: PolicyDescription;
1478
+ /**
1479
+ * Whether the policy is the default for the meta site.
1480
+ * @readonly
1481
+ */
1482
+ default?: boolean | null;
1483
+ /**
1484
+ * Policy for limiting early bookings.
1485
+ * @readonly
1486
+ */
1487
+ limitEarlyBookingPolicy?: LimitEarlyBookingPolicy;
1488
+ /**
1489
+ * Policy for limiting late bookings.
1490
+ * @readonly
1491
+ */
1492
+ limitLateBookingPolicy?: LimitLateBookingPolicy;
1493
+ /**
1494
+ * Policy on booking an entity after the start of the schedule.
1495
+ * @readonly
1496
+ */
1497
+ bookAfterStartPolicy?: BookAfterStartPolicy;
1498
+ /**
1499
+ * Policy for canceling a booked entity.
1500
+ * @readonly
1501
+ */
1502
+ cancellationPolicy?: CancellationPolicy;
1503
+ /**
1504
+ * Policy for rescheduling a booked entity.
1505
+ * @readonly
1506
+ */
1507
+ reschedulePolicy?: ReschedulePolicy;
1508
+ /**
1509
+ * Waitlist policy for the service.
1510
+ * @readonly
1511
+ */
1512
+ waitlistPolicy?: WaitlistPolicy;
1513
+ /**
1514
+ * Policy regarding the participants per booking.
1515
+ * @readonly
1516
+ */
1517
+ participantsPolicy?: ParticipantsPolicy;
1518
+ /**
1519
+ * Policy for allocating resources.
1520
+ * @readonly
1521
+ */
1522
+ resourcesPolicy?: ResourcesPolicy;
1523
+ /**
1524
+ * Rules for cancellation fees.
1525
+ * @readonly
1526
+ */
1527
+ cancellationFeePolicy?: CancellationFeePolicy;
1528
+ /**
1529
+ * Rule for saving credit card.
1530
+ * @readonly
1531
+ */
1532
+ saveCreditCardPolicy?: SaveCreditCardPolicy;
1533
+ /** Rule for requiring customers to complete an [intake form](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/introduction) during or after booking. */
1534
+ intakeFormPolicy?: IntakeFormPolicy;
1535
+ }
1536
+ /** A description of the policy to display to participants. */
1537
+ interface PolicyDescription {
1538
+ /**
1539
+ * Whether the description should be displayed. If `true`, the description is displayed.
1540
+ *
1541
+ * Default: `false`
1542
+ */
1543
+ enabled?: boolean;
1544
+ /**
1545
+ * The description to display.
1546
+ *
1547
+ * Default: Empty
1548
+ * Max length: 2500 characters
1549
+ * @maxLength 2500
1550
+ */
1551
+ description?: string;
1552
+ }
1553
+ /** The policy for limiting early bookings. */
1554
+ interface LimitEarlyBookingPolicy {
1555
+ /**
1556
+ * Whether there is a limit on how early a customer
1557
+ * can book. When `false`, there is no limit on the earliest
1558
+ * booking time and customers can book in advance, as early as they like.
1559
+ *
1560
+ * Default: `false`
1561
+ */
1562
+ enabled?: boolean;
1563
+ /**
1564
+ * Maximum number of minutes before the start of the session that a booking can be made. This value must be greater
1565
+ * than `latest_booking_in_minutes` in the `LimitLateBookingPolicy` policy.
1566
+ *
1567
+ * Default: 10080 minutes (7 days)
1568
+ * Min: 1 minute
1569
+ * @min 1
1570
+ */
1571
+ earliestBookingInMinutes?: number;
1572
+ }
1573
+ /**
1574
+ * The policy for limiting late bookings.
1575
+ *
1576
+ * This policy and the `BookAfterStartPolicy` policy cannot be enabled at the same time. So if this policy
1577
+ * is enabled, `BookAfterStartPolicy` must be disabled.
1578
+ */
1579
+ interface LimitLateBookingPolicy {
1580
+ /**
1581
+ * Whether there is a limit on how late a customer
1582
+ * can book. When `false`, there is no limit on the latest
1583
+ * booking time and customers can book up to the last minute.
1584
+ *
1585
+ * Default: `false`
1586
+ */
1587
+ enabled?: boolean;
1588
+ /**
1589
+ * Minimum number of minutes before the start of the session that a booking can be made.
1590
+ * For a schedule, this is relative to the start time of the next booked session, excluding past-booked sessions.
1591
+ * This value must be less than `earliest_booking_in_minutes` in the `LimitEarlyBookingPolicy` policy.
1592
+ *
1593
+ * Default: 1440 minutes (1 day)
1594
+ * Min: 1 minute
1595
+ * @min 1
1596
+ */
1597
+ latestBookingInMinutes?: number;
1598
+ }
1599
+ /**
1600
+ * The policy for whether a session can be booked after the start of the schedule.
1601
+ * This policy and `LimitLateBookingPolicy` cannot be enabled at the same time. So if this policy
1602
+ * is enabled, the `LimitLateBookingPolicy` policy must be disabled.
1603
+ */
1604
+ interface BookAfterStartPolicy {
1605
+ /**
1606
+ * Whether booking is allowed after the start of the schedule. When `true`,
1607
+ * customers can book after the start of the schedule.
1608
+ *
1609
+ * Default: `false`
1610
+ */
1611
+ enabled?: boolean;
1612
+ }
1613
+ /** The policy for canceling a booked session. */
1614
+ interface CancellationPolicy {
1615
+ /**
1616
+ * Whether canceling a booking is allowed. When `true`, customers
1617
+ * can cancel the booking.
1618
+ *
1619
+ * Default: `false`
1620
+ */
1621
+ enabled?: boolean;
1622
+ /**
1623
+ * Whether there is a limit on the latest cancellation time. When `true`,
1624
+ * a time limit is enforced.
1625
+ *
1626
+ * Default: `false`
1627
+ */
1628
+ limitLatestCancellation?: boolean;
1629
+ /**
1630
+ * Minimum number of minutes before the start of the booked session that the booking can be canceled.
1631
+ *
1632
+ * Default: 1440 minutes (1 day)
1633
+ * Min: 1 minute
1634
+ * @min 1
1635
+ */
1636
+ latestCancellationInMinutes?: number;
1637
+ /**
1638
+ * Whether this cancellation policy allows anonymous cancellations.
1639
+ *
1640
+ * **Important**: This flag only applies when `enabled` is `true`. If the cancellation
1641
+ * policy itself is disabled (`enabled` = `false`), anonymous users cannot cancel
1642
+ * regardless of this flag's value.
1643
+ *
1644
+ * When not set (null), defaults to enabled. Anonymous cancellations are allowed by default
1645
+ * so that customers aren't required to be site members to cancel their bookings.
1646
+ *
1647
+ * Default: `null` (treated as `true`)
1648
+ */
1649
+ allowAnonymous?: boolean | null;
1650
+ }
1651
+ /** The policy for rescheduling a booked session. */
1652
+ interface ReschedulePolicy {
1653
+ /**
1654
+ * Whether rescheduling a booking is allowed. When `true`, customers
1655
+ * can reschedule the booking.
1656
+ *
1657
+ * Default: `false`
1658
+ */
1659
+ enabled?: boolean;
1660
+ /**
1661
+ * Whether there is a limit on the latest reschedule time. When `true`,
1662
+ * a time limit is enforced.
1663
+ *
1664
+ * Default: `false`
1665
+ */
1666
+ limitLatestReschedule?: boolean;
1667
+ /**
1668
+ * Minimum number of minutes before the start of the booked session that the booking can be rescheduled.
1669
+ *
1670
+ * Default: 1440 minutes (1 day)
1671
+ * Min: 1 minute
1672
+ * @min 1
1673
+ */
1674
+ latestRescheduleInMinutes?: number;
1675
+ /**
1676
+ * Whether this reschedule policy allows anonymous rescheduling.
1677
+ *
1678
+ * **Important**: This flag only applies when `enabled` is `true`. If the reschedule
1679
+ * policy itself is disabled (`enabled` = `false`), anonymous users cannot reschedule
1680
+ * regardless of this flag's value.
1681
+ *
1682
+ * When not set (null), defaults to enabled. Anonymous rescheduling is allowed by default
1683
+ * so that customers aren't required to be site members to reschedule their bookings.
1684
+ *
1685
+ * Default: `null` (treated as `true`)
1686
+ */
1687
+ allowAnonymous?: boolean | null;
1688
+ }
1689
+ /** The policy for the waitlist. */
1690
+ interface WaitlistPolicy {
1691
+ /**
1692
+ * Whether the session has a waitlist. If `true`, there is a waitlist.
1693
+ *
1694
+ * Default: `false`
1695
+ */
1696
+ enabled?: boolean;
1697
+ /**
1698
+ * Number of spots available in the waitlist.
1699
+ *
1700
+ * Default: 10 spots
1701
+ * Min: 1 spot
1702
+ * @min 1
1703
+ */
1704
+ capacity?: number;
1705
+ /**
1706
+ * Amount of time a participant is given to book, once notified that a spot is available.
1707
+ *
1708
+ * Default: 10 minutes
1709
+ * Min: 1 spot
1710
+ * @min 1
1711
+ */
1712
+ reservationTimeInMinutes?: number;
1713
+ }
1714
+ /** The policy for the maximum number of participants per booking. */
1715
+ interface ParticipantsPolicy {
1716
+ /**
1717
+ * Maximum number of participants allowed.
1718
+ *
1719
+ * Default: 1 participant
1720
+ * Min: 1 participant
1721
+ * @min 1
1722
+ */
1723
+ maxParticipantsPerBooking?: number;
1724
+ }
1725
+ /** The policy regarding the allocation of resources (e.g. staff members). */
1726
+ interface ResourcesPolicy {
1727
+ /**
1728
+ * `true` if this policy is enabled, `false` otherwise.
1729
+ * When `false` then the client must always select a resource when booking an appointment.
1730
+ */
1731
+ enabled?: boolean;
1732
+ /**
1733
+ * `true`, if it is allowed to automatically assign a resource when booking an appointment,
1734
+ * `false`, if the client must always select a resource.
1735
+ *
1736
+ * Default: `false`
1737
+ */
1738
+ autoAssignAllowed?: boolean;
1739
+ }
1740
+ interface CancellationFeePolicy {
1741
+ /**
1742
+ * Whether canceling a booking will result in a cancellation fee
1743
+ *
1744
+ * Default: `false`
1745
+ */
1746
+ enabled?: boolean;
1747
+ /**
1748
+ * Cancellation windows describing the time of cancellation and the fee to charge.
1749
+ * @maxSize 2
1750
+ */
1751
+ cancellationWindows?: CancellationWindow[];
1752
+ /**
1753
+ * Whether the cancellation fee should not be automatically collected when customer cancels the booking.
1754
+ *
1755
+ * Default: `true`
1756
+ */
1757
+ autoCollectFeeEnabled?: boolean | null;
1758
+ }
1759
+ interface CancellationWindow extends CancellationWindowFeeOneOf {
1760
+ /** Amount to be charged as a cancellation fee. */
1761
+ amount?: Money;
1762
+ /**
1763
+ * Percentage of the original price to be charged as a cancellation fee.
1764
+ * @decimalValue options { gt:0, lte:100, maxScale:2 }
1765
+ */
1766
+ percentage?: string;
1767
+ /**
1768
+ * The fee will be applied if the booked session starts within this start time in minutes.
1769
+ * @min 1
1770
+ */
1771
+ startInMinutes?: number | null;
1772
+ }
1773
+ /** @oneof */
1774
+ interface CancellationWindowFeeOneOf {
1775
+ /** Amount to be charged as a cancellation fee. */
1776
+ amount?: Money;
1777
+ /**
1778
+ * Percentage of the original price to be charged as a cancellation fee.
1779
+ * @decimalValue options { gt:0, lte:100, maxScale:2 }
1780
+ */
1781
+ percentage?: string;
1782
+ }
1783
+ interface SaveCreditCardPolicy {
1784
+ /** Default: `false` */
1785
+ enabled?: boolean;
1786
+ }
1787
+ /**
1788
+ * Policy for determining how staff members are sorted and selected during the booking process.
1789
+ * This affects which staff member is chosen when multiple staff members are available for a service.
1790
+ */
1791
+ /** Policy for integrating with Intake form. Stores which form to use and when to present it. */
1792
+ interface IntakeFormPolicy {
1793
+ /**
1794
+ * Whether intake form integration is enabled for the service.
1795
+ * Default: `false`
1796
+ */
1797
+ enabled?: boolean;
1798
+ /**
1799
+ * ID of the intake form to integrate with the service.
1800
+ * @format GUID
1801
+ */
1802
+ formId?: string | null;
1803
+ /** When to present the intake form to the customer. */
1804
+ timing?: TimingWithLiterals;
1805
+ completionRequirement?: CompletionRequirementWithLiterals;
1806
+ }
1807
+ declare enum Timing {
1808
+ /** Send form after booking. */
1809
+ AFTER_BOOKING = "AFTER_BOOKING",
1810
+ /** Show form during booking flow. */
1811
+ BEFORE_BOOKING = "BEFORE_BOOKING"
1812
+ }
1813
+ /** @enumType */
1814
+ type TimingWithLiterals = Timing | 'AFTER_BOOKING' | 'BEFORE_BOOKING';
1815
+ /** Requirement for completing the intake form. */
1816
+ declare enum CompletionRequirement {
1817
+ /** Form completion is optional and can be skipped entirely. */
1818
+ OPTIONAL = "OPTIONAL",
1819
+ /**
1820
+ * Form must be completed before the booking can be finalized.
1821
+ * can used only if timing is BEFORE_BOOKING.
1822
+ */
1823
+ REQUIRED_BEFORE_BOOKING = "REQUIRED_BEFORE_BOOKING"
1824
+ }
1825
+ /** @enumType */
1826
+ type CompletionRequirementWithLiterals = CompletionRequirement | 'OPTIONAL' | 'REQUIRED_BEFORE_BOOKING';
1827
+ /**
1828
+ * Rule limiting how many times the same customer can book a service within a given period.
1829
+ * The first booking is always allowed; the limit constrains additional bookings.
1830
+ */
1831
+ interface Schedule {
1832
+ /**
1833
+ * ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
1834
+ * to which the service's events belong.
1835
+ * @format GUID
1836
+ * @readonly
1837
+ */
1838
+ _id?: string | null;
1839
+ /**
1840
+ * Start time of the first session in the schedule. For courses only.
1841
+ * @readonly
1842
+ */
1843
+ firstSessionStart?: Date | null;
1844
+ /**
1845
+ * End time of the last session in the schedule. For courses only.
1846
+ * @readonly
1847
+ */
1848
+ lastSessionEnd?: Date | null;
1849
+ /** Limitations affecting the service availability. */
1850
+ availabilityConstraints?: AvailabilityConstraints;
1851
+ }
1852
+ interface AvailabilityConstraints {
1853
+ /**
1854
+ * Calculated list of all supported session durations for the service. For
1855
+ * appointment-based services without varied pricing based on session length, it
1856
+ * matches the single value in the `sessionDurations` array. For appointment-based
1857
+ * services with varied pricing based on session length, it includes session
1858
+ * durations for all [variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction),
1859
+ * while ignoring `sessionDurations`.
1860
+ * For courses and classes, it includes durations for all future
1861
+ * recurring sessions but excludes durations for one-off or past recurring sessions.
1862
+ * @readonly
1863
+ * @maxSize 50
1864
+ */
1865
+ durations?: V2Duration[];
1866
+ /**
1867
+ * List of supported session durations in minutes.
1868
+ *
1869
+ * - For appointment-based services, specify `sessionDurations` when creating a service.
1870
+ * - For appointment-based services with varied pricing by session length, you must still specify `sessionDurations`, but the values are ignored. Actual durations are taken from the [service variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction).
1871
+ * - For classes or courses, don't specify `sessionDurations` when creating a service.
1872
+ * @min 1
1873
+ * @max 44639
1874
+ * @maxSize 50
1875
+ */
1876
+ sessionDurations?: number[];
1877
+ /**
1878
+ * The number of minutes between the end of a session and the start of the next.
1879
+ * @max 720
1880
+ */
1881
+ timeBetweenSessions?: number;
1882
+ /**
1883
+ * Duration range for the service. When set, the customer picks a duration
1884
+ * within the configured min/max range instead of a fixed session duration.
1885
+ * Mutually exclusive with `sessionDurations`. A service uses one or the other.
1886
+ * Can't be combined with `workingHours`.
1887
+ *
1888
+ * Use `durationRange` for services where the customer chooses how long to book,
1889
+ * such as equipment or space rentals. The `unitType` determines whether the range
1890
+ * is measured in hours or days.
1891
+ */
1892
+ durationRange?: DurationRange;
1893
+ }
1894
+ interface V2Duration {
1895
+ /**
1896
+ * The duration of the service in minutes.
1897
+ * @min 1
1898
+ * @max 44639
1899
+ */
1900
+ minutes?: number;
1901
+ }
1902
+ /**
1903
+ * Duration range configuration for a service. Defines the minimum and maximum
1904
+ * booking duration a customer can select, and the unit of measurement.
1905
+ *
1906
+ * For hourly services, durations are configured in minutes via `hourOptions`.
1907
+ * For daily services, durations are configured in days via `dayOptions`.
1908
+ */
1909
+ interface DurationRange extends DurationRangeConfigOneOf {
1910
+ /** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
1911
+ hourOptions?: HourlyConfig;
1912
+ /** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
1913
+ dayOptions?: DailyConfig;
1914
+ /** The unit type for this duration range. Determines which configuration to use in the `config` union. */
1915
+ unitType?: UnitTypeWithLiterals;
1916
+ }
1917
+ /** @oneof */
1918
+ interface DurationRangeConfigOneOf {
1919
+ /** Configuration for hourly duration ranges. Set when `unitType` is `HOUR`. */
1920
+ hourOptions?: HourlyConfig;
1921
+ /** Configuration for daily duration ranges. Set when `unitType` is `DAY`. */
1922
+ dayOptions?: DailyConfig;
1923
+ }
1924
+ /** The booking unit for the duration range. */
1925
+ declare enum UnitType {
1926
+ /** Hourly booking unit. Durations are configured in minutes via `hourOptions`. */
1927
+ HOUR = "HOUR",
1928
+ /** Daily booking unit. Durations are configured in days via `dayOptions`. */
1929
+ DAY = "DAY"
1930
+ }
1931
+ /** @enumType */
1932
+ type UnitTypeWithLiterals = UnitType | 'HOUR' | 'DAY';
1933
+ /** Hourly duration configuration. Durations are specified in minutes. */
1934
+ interface HourlyConfig {
1935
+ /**
1936
+ * Minimum bookable duration in minutes. The customer can't book for less than this duration.
1937
+ * @min 30
1938
+ * @max 1440
1939
+ */
1940
+ minDurationInMinutes?: number;
1941
+ /**
1942
+ * Maximum bookable duration in minutes. The customer can't book for more than this duration.
1943
+ *
1944
+ * Must be greater than or equal to `minDurationInMinutes`.
1945
+ * @min 30
1946
+ * @max 1440
1947
+ */
1948
+ maxDurationInMinutes?: number;
1949
+ }
1950
+ /** Daily duration configuration. Durations are specified in days. */
1951
+ interface DailyConfig {
1952
+ /**
1953
+ * Minimum bookable duration in days. The customer can't book for less than this number of days.
1954
+ * @min 1
1955
+ * @max 40
1956
+ */
1957
+ minDurationInDays?: number;
1958
+ /**
1959
+ * Maximum bookable duration in days. The customer can't book for more than this number of days.
1960
+ *
1961
+ * Must be greater than or equal to `minDurationInDays`.
1962
+ * @min 1
1963
+ * @max 40
1964
+ */
1965
+ maxDurationInDays?: number;
1966
+ }
1967
+ /**
1968
+ * Controls how a service's own working hours combine with the working hours of its assigned
1969
+ * staff members and required resources. The hours themselves are not held here. They are the
1970
+ * `WORKING_HOURS` events on the service's schedule (`schedule.id`), and this message controls
1971
+ * only how they combine with the resources working hours.
1972
+ */
1973
+ interface StaffMember {
1974
+ /**
1975
+ * ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.
1976
+ * Despite the field name, this is the resource ID, not the staff member ID.
1977
+ * This value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)
1978
+ * and corresponds to the IDs in the service's `staffMemberIds` field.
1979
+ * @format GUID
1980
+ * @readonly
1981
+ */
1982
+ staffMemberId?: string;
1983
+ /**
1984
+ * Name of the staff member
1985
+ * @maxLength 40
1986
+ * @readonly
1987
+ */
1988
+ name?: string | null;
1989
+ /**
1990
+ * Main media associated with the service.
1991
+ * @readonly
1992
+ */
1993
+ mainMedia?: StaffMediaItem;
1994
+ }
1995
+ interface StaffMediaItem extends StaffMediaItemItemOneOf {
1996
+ /** Details of the image associated with the staff, such as URL and size. */
1997
+ image?: string;
1998
+ }
1999
+ /** @oneof */
2000
+ interface StaffMediaItemItemOneOf {
2001
+ /** Details of the image associated with the staff, such as URL and size. */
2002
+ image?: string;
2003
+ }
2004
+ /**
2005
+ * Working hours location coverage derived from Calendar v3 WORKING_HOURS events
2006
+ * (`NONE` and `MASTER` recurrence types). The server paginates through Calendar results
2007
+ * (100 events per page) until all matching events are collected.
2008
+ *
2009
+ * Coverage states when enrichment is requested:
2010
+ * + `available_at_all_locations = true`: Staff applies to every business location. Set when the staff
2011
+ * uses default business working hours, or has any WORKING_HOURS event without a location ID
2012
+ * (including when mixed with location-specific events).
2013
+ * + `available_at_all_locations = false` with non-empty `location_ids`: Staff has location-specific
2014
+ * WORKING_HOURS only. Show the staff member only when the selected location is in `location_ids`.
2015
+ * + `available_at_all_locations = false` with empty `location_ids`: Staff has working-hours schedules
2016
+ * but no applicable location coverage was found.
2017
+ *
2018
+ * Recommended client filter:
2019
+ * `availableAtAllLocations || locationIds.includes(selectedLocationId)`
2020
+ *
2021
+ * Omitted when `STAFF_WORKING_HOURS_LOCATIONS` is not requested.
2022
+ */
2023
+ interface StaffMemberDetails {
2024
+ /**
2025
+ * Staff members providing the service. For appointments only.
2026
+ * @maxSize 220
2027
+ */
2028
+ staffMembers?: StaffMember[];
2029
+ }
2030
+ interface ResourceIds {
2031
+ /**
2032
+ * Values of the resource IDs.
2033
+ * @maxSize 100
2034
+ * @format GUID
2035
+ */
2036
+ values?: string[];
2037
+ }
2038
+ interface ServiceResource extends ServiceResourceSelectionOneOf {
2039
+ /**
2040
+ * IDs of specific [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
2041
+ * assigned to this service resource. Each ID must reference a resource within the specified `resourceType`.
2042
+ *
2043
+ * When set, only these resources are considered for availability and booking.
2044
+ * When not set, all resources of the specified resource type are eligible.
2045
+ */
2046
+ resourceIds?: ResourceIds;
2047
+ /** Details about the required [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction). */
2048
+ resourceType?: ResourceType;
2049
+ }
2050
+ /** @oneof */
2051
+ interface ServiceResourceSelectionOneOf {
2052
+ /**
2053
+ * IDs of specific [resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction)
2054
+ * assigned to this service resource. Each ID must reference a resource within the specified `resourceType`.
2055
+ *
2056
+ * When set, only these resources are considered for availability and booking.
2057
+ * When not set, all resources of the specified resource type are eligible.
2058
+ */
2059
+ resourceIds?: ResourceIds;
2060
+ }
2061
+ interface ResourceType {
2062
+ /**
2063
+ * The type of the resource.
2064
+ * @format GUID
2065
+ */
2066
+ _id?: string | null;
2067
+ /**
2068
+ * The name of the resource type.
2069
+ * @readonly
2070
+ * @maxLength 40
2071
+ * @minLength 1
2072
+ */
2073
+ name?: string | null;
2074
+ }
2075
+ /** Details about the individual resources assigned to a service resource. */
2076
+ interface Slug {
2077
+ /**
2078
+ * The unique part of service's URL that identifies the service's information page. For example, `service-1` in `https:/example.com/services/service-1`.
2079
+ * @maxLength 500
2080
+ */
2081
+ name?: string;
2082
+ /**
2083
+ * Whether the slug was generated or customized. If `true`, the slug was customized manually by the business owner. Otherwise, the slug was automatically generated from the service name.
2084
+ * @readonly
2085
+ */
2086
+ custom?: boolean | null;
2087
+ /**
2088
+ * Date and time the slug was created. This is a system field.
2089
+ * @readonly
2090
+ */
2091
+ _createdDate?: Date | null;
2092
+ }
2093
+ interface URLs {
2094
+ /**
2095
+ * The URL for the service page.
2096
+ * @readonly
2097
+ */
2098
+ servicePage?: string;
2099
+ /**
2100
+ * The URL for the booking entry point. It can be either to the calendar or to the service page.
2101
+ * @readonly
2102
+ */
2103
+ bookingPage?: string;
2104
+ /**
2105
+ * The URL for the calendar. Can be empty if no calendar exists.
2106
+ * @readonly
2107
+ */
2108
+ calendarPage?: string;
2109
+ }
2110
+ interface ExtendedFields$1 {
2111
+ /**
2112
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
2113
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
2114
+ *
2115
+ * You can only access fields for which you have the appropriate permissions.
2116
+ *
2117
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
2118
+ */
2119
+ namespaces?: Record<string, Record<string, any>>;
2120
+ }
2121
+ /**
2122
+ * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
2123
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
2124
+ * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
2125
+ */
2126
+ interface SeoSchema {
2127
+ /** SEO tag information. */
2128
+ tags?: Tag[];
2129
+ /** SEO general settings. */
2130
+ settings?: Settings;
2131
+ }
2132
+ interface Keyword {
2133
+ /** Keyword value. */
2134
+ term?: string;
2135
+ /** Whether the keyword is the main focus keyword. */
2136
+ isMain?: boolean;
2137
+ /**
2138
+ * The source that added the keyword terms to the SEO settings.
2139
+ * @maxLength 1000
2140
+ */
2141
+ origin?: string | null;
2142
+ }
2143
+ interface Tag {
2144
+ /**
2145
+ * SEO tag type.
2146
+ *
2147
+ *
2148
+ * Supported values: `title`, `meta`, `script`, `link`.
2149
+ *
2150
+ * Which of these an API actually accepts depends on where the tag is being set: this
2151
+ * list is not a blanket guarantee across every API that reuses this message. Site SEO
2152
+ * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
2153
+ * `title`/`script`/`link` with a validation error even though they appear here —
2154
+ * check the field description of the specific `tags`-typed field you're writing to
2155
+ * for the types it actually supports and the error it returns.
2156
+ *
2157
+ * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
2158
+ * `"application/ld+json"` carrying structured data) are supported only when
2159
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
2160
+ * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
2161
+ * write through the site's Advanced/Custom Tags list. To write structured data,
2162
+ * omit `custom` (or set it to `false`).
2163
+ */
2164
+ type?: string;
2165
+ /**
2166
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
2167
+ * For example: `{"name": "description", "content": "the description itself"}`.
2168
+ */
2169
+ props?: Record<string, any> | null;
2170
+ /** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
2171
+ meta?: Record<string, any> | null;
2172
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
2173
+ children?: string;
2174
+ /**
2175
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
2176
+ * i.e. an entry from the site's Advanced/Custom Tags list.
2177
+ *
2178
+ * Setting this to `true` on a write restricts which `type` values are accepted
2179
+ * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
2180
+ * `script` tags (including JSON-LD structured data) must be sent with `custom`
2181
+ * omitted or `false`; sending them with `custom: true` is rejected with
2182
+ * `TAG_TYPE_NOT_ALLOWED`.
2183
+ *
2184
+ * Note this is a separate restriction from Site SEO Tags' own type restriction on
2185
+ * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
2186
+ * for site-wide structured data) unconditionally. There is currently no way to set
2187
+ * site-wide, every-page structured data through any of these APIs — write a per-page
2188
+ * `script` tag through the Item SEO Tags API instead.
2189
+ *
2190
+ * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
2191
+ * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
2192
+ * default/pattern — standard tags always resolve with `custom: false`, even when their content comes
2193
+ * from a page's manually saved SEO title/description override. Don't use this field to verify whether
2194
+ * a live page reflects a manual per-page SEO edit.
2195
+ *
2196
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
2197
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
2198
+ * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
2199
+ * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
2200
+ * Pass `seoData` explicitly to resolve against a known set of tags.
2201
+ */
2202
+ custom?: boolean;
2203
+ /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
2204
+ disabled?: boolean;
2205
+ }
2206
+ interface Settings {
2207
+ /**
2208
+ * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.
2209
+ *
2210
+ *
2211
+ * Default: `false` (automatical redirect is enabled).
2212
+ */
2213
+ preventAutoRedirect?: boolean;
2214
+ /**
2215
+ * User-selected keyword terms for a specific page.
2216
+ * @maxSize 5
2217
+ */
2218
+ keywords?: Keyword[];
2219
+ }
2220
+ interface AddOnGroup {
2221
+ /**
2222
+ * ID of the add-on group.
2223
+ * Wix Bookings automatically populates this field when creating or updating an add-on group.
2224
+ * @readonly
2225
+ * @format GUID
2226
+ */
2227
+ _id?: string | null;
2228
+ /**
2229
+ * Name of the add-on group.
2230
+ * @maxLength 100
2231
+ */
2232
+ name?: string | null;
2233
+ /**
2234
+ * Maximum number of different [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) from the group customers can add when booking the service.
2235
+ * When empty, there's no upper limit.
2236
+ */
2237
+ maxNumberOfAddOns?: number | null;
2238
+ /**
2239
+ * List of IDs of all [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) included in the group.
2240
+ * @format GUID
2241
+ * @maxSize 7
2242
+ */
2243
+ addOnIds?: string[] | null;
2244
+ /**
2245
+ * Description or instructional prompt of the add-on group that's displayed to customers when booking the service.
2246
+ * @maxLength 200
2247
+ */
2248
+ prompt?: string | null;
2249
+ }
2250
+ interface AddOnDetails {
2251
+ /**
2252
+ * ID of the add-on.
2253
+ * @format GUID
2254
+ */
2255
+ addOnId?: string | null;
2256
+ /**
2257
+ * Duration in minutes for add-ons that extend service time.
2258
+ * Empty for [quantity-based add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction#terminology).
2259
+ */
2260
+ durationInMinutes?: number | null;
2261
+ }
2262
+ /** `TaxableAddress` defines the taxable address used for the service. */
2263
+ interface TaxableAddress {
2264
+ /** Taxable address type. */
2265
+ taxableAddressType?: TaxableAddressTypeWithLiterals;
2266
+ }
2267
+ declare enum TaxableAddressType {
2268
+ BUSINESS = "BUSINESS",
2269
+ BILLING = "BILLING"
2270
+ }
2271
+ /** @enumType */
2272
+ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING';
2273
+ interface ServiceChoices {
2274
+ /**
2275
+ * Number of participants for this [variant](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
2276
+ * @min 1
2277
+ */
2278
+ numberOfParticipants?: number | null;
2279
+ /**
2280
+ * Service choices for these participants.
2281
+ * @maxSize 5
2282
+ */
2283
+ choices?: ServiceChoice[];
2284
+ }
2285
+ interface ServiceChoice extends ServiceChoiceChoiceOneOf {
2286
+ /**
2287
+ * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
2288
+ * Choices are specific values for an option the customer can choose to book. For example,
2289
+ * the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
2290
+ * Each choice may have a different price.
2291
+ */
2292
+ custom?: string;
2293
+ duration?: Duration;
2294
+ /** The matched date-time pricing rule. Available only for `DATE_TIME` options. */
2295
+ dateTime?: DateTimeRule;
2296
+ /** The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options. */
2297
+ participantRange?: ParticipantsRange;
2298
+ /**
2299
+ * ID of the corresponding option for the choice. For example, the choice `child`
2300
+ * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
2301
+ * for the `ageGroup` option.
2302
+ * @format GUID
2303
+ */
2304
+ optionId?: string;
2305
+ /**
2306
+ * ID of the service choice. When provided, the choice details are automatically populated based on this ID.
2307
+ * @format GUID
2308
+ */
2309
+ choiceId?: string | null;
2310
+ }
2311
+ /** @oneof */
2312
+ interface ServiceChoiceChoiceOneOf {
2313
+ /**
2314
+ * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
2315
+ * Choices are specific values for an option the customer can choose to book. For example,
2316
+ * the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
2317
+ * Each choice may have a different price.
2318
+ */
2319
+ custom?: string;
2320
+ duration?: Duration;
2321
+ /** The matched date-time pricing rule. Available only for `DATE_TIME` options. */
2322
+ dateTime?: DateTimeRule;
2323
+ /** The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options. */
2324
+ participantRange?: ParticipantsRange;
2325
+ }
2326
+ interface Duration {
2327
+ /**
2328
+ * Duration of the service in minutes.
2329
+ * Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
2330
+ * @min 1
2331
+ * @max 44639
2332
+ */
2333
+ minutes?: number;
2334
+ /**
2335
+ * Name of the duration option.
2336
+ * Defaults to the formatted duration e.g. "1 hour, 30 minutes".
2337
+ * @maxLength 255
2338
+ */
2339
+ name?: string | null;
2340
+ }
2341
+ interface DateTimeRule {
2342
+ /**
2343
+ * Name of the date-time rule. For example, "Weekend mornings".
2344
+ * @maxLength 255
2345
+ */
2346
+ name?: string | null;
2347
+ }
2348
+ interface ParticipantsRange {
2349
+ /**
2350
+ * Name of the participants range. For example, "Large group".
2351
+ * @maxLength 255
2352
+ */
2353
+ name?: string | null;
2354
+ }
2355
+ interface BookedAddOn {
2356
+ /**
2357
+ * The ID of the add-on.
2358
+ * @format GUID
2359
+ */
2360
+ _id?: string;
2361
+ /**
2362
+ * The ID of the add-on group.
2363
+ * @format GUID
2364
+ */
2365
+ groupId?: string;
2366
+ /**
2367
+ * The add-on duration in minutes at the time of booking.
2368
+ * Populated for duration-based add-ons.
2369
+ * @min 1
2370
+ * @max 1440
2371
+ * @readonly
2372
+ */
2373
+ durationInMinutes?: number | null;
2374
+ /**
2375
+ * The quantity of booked add-ons.
2376
+ * For duration-based add-ons, `quantity` is not applicable.
2377
+ * If `quantity` is provided as `1` for a duration-based add-on, it will be accepted but the value will be cleared.
2378
+ * If any other value is provided, an `INVALID_ARGUMENT` error will be returned with the message: "Invalid AddOn details: either duration or quantity must be set correctly".
2379
+ * @min 1
2380
+ * @max 1000
2381
+ */
2382
+ quantity?: number | null;
2383
+ /**
2384
+ * Add-on `name` at the time of booking.
2385
+ * @maxLength 100
2386
+ * @readonly
2387
+ */
2388
+ name?: string | null;
2389
+ /**
2390
+ * Add-on name translated to the language the customer used during booking.
2391
+ * @maxLength 100
2392
+ * @readonly
2393
+ */
2394
+ nameTranslated?: string | null;
2395
+ }
2396
+ /** Server-computed datetime adjusted to a requested timezone. */
2397
+ //#endregion
2398
+ //#region ../../node_modules/@wix/auto_sdk_bookings_bookings/build/es/index.typings.d.mts
2399
+ declare enum ResourceTransparency {
2400
+ OPAQUE = "OPAQUE",
2401
+ TRANSPARENT = "TRANSPARENT"
2402
+ }
2403
+ /** @enumType */
2404
+ type ResourceTransparencyWithLiterals = ResourceTransparency | 'OPAQUE' | 'TRANSPARENT';
2405
+ interface ResourceSelection$1 {
2406
+ /**
2407
+ * ID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
2408
+ * @format GUID
2409
+ */
2410
+ resourceTypeId?: string | null;
2411
+ /** Information about how the customer has selected the resource for this resource type. */
2412
+ selectionMethod?: SelectionMethodWithLiterals;
2413
+ /**
2414
+ * Gender the customer narrowed "any available resource" to, for a staff member resource type.
2415
+ *
2416
+ * Populated only when `selectionMethod` is `ANY_RESOURCE`, the resource type is the staff member resource type, and the business allows customers to narrow "any available" by gender.
2417
+ *
2418
+ * Omit the field for a plain "any available staff member" with no gender narrowing.
2419
+ *
2420
+ * Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). Creating a booking with this field fails when it's disabled.
2421
+ */
2422
+ requestedGender?: RequestedGenderValue;
2423
+ }
2424
+ declare enum SelectionMethod {
2425
+ /** The customer explicitly chose a particular resource. */
2426
+ SPECIFIC_RESOURCE = "SPECIFIC_RESOURCE",
2427
+ /** The customer explicitly chose "any available resource" for this resource type. */
2428
+ ANY_RESOURCE = "ANY_RESOURCE",
2429
+ /** The customer wasn't offered a resource selection or agreement option for this resource type. */
2430
+ NO_SELECTION = "NO_SELECTION"
2431
+ }
2432
+ /** @enumType */
2433
+ type SelectionMethodWithLiterals = SelectionMethod | 'SPECIFIC_RESOURCE' | 'ANY_RESOURCE' | 'NO_SELECTION';
2434
+ /** Gender a customer requested when narrowing "any available staff member" to a gender. */
2435
+ interface RequestedGenderValue {
2436
+ /** Requested gender. */
2437
+ gender?: RequestedGenderWithLiterals;
2438
+ }
2439
+ declare enum RequestedGender$1 {
2440
+ /** The customer requested any available male staff member. */
2441
+ ANY_MALE = "ANY_MALE",
2442
+ /** The customer requested any available female staff member. */
2443
+ ANY_FEMALE = "ANY_FEMALE"
2444
+ }
2445
+ /** @enumType */
2446
+ type RequestedGenderWithLiterals = RequestedGender$1 | 'ANY_MALE' | 'ANY_FEMALE';
2447
+ interface V2Slot {
2448
+ /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
2449
+ sessionId?: string | null;
2450
+ /** Service identifier. Required. */
2451
+ serviceId?: string;
2452
+ /** Schedule identifier. Required. */
2453
+ scheduleId?: string;
2454
+ /** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
2455
+ startDate?: string | null;
2456
+ /** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
2457
+ endDate?: string | null;
2458
+ /** The timezone according to which the slot is calculated and presented. */
2459
+ timezone?: string | null;
2460
+ /**
2461
+ * The resource required for this slot.
2462
+ * When populated, the specified resource will be assigned to the slot upon confirmation according to its availability.
2463
+ * When empty, if `skip_availability_validation` is `false`, a random available resource will be assigned to the slot upon confirmation.
2464
+ * Otherwise, one of the service resources will be assigned to the slot randomly upon confirmation.
2465
+ */
2466
+ resource?: SlotSlotResource;
2467
+ /** Geographic location of the slot. */
2468
+ location?: SlotLocation;
2469
+ /**
2470
+ * Calendar event ID - not supported.
2471
+ * If not empty, on all write flows (create/update), it takes priority over `sessionId`.
2472
+ * So if both `sessionId` and `eventId` are provided, the `sessionId` will be based on the `eventId`.
2473
+ * Otherwise, if `eventId` is empty on write flow,
2474
+ * @minLength 36
2475
+ * @maxLength 250
2476
+ */
2477
+ eventId?: string | null;
2478
+ /**
2479
+ * Information about how the customer has selected resources for the booking.
2480
+ * Each resource type may have a different selection method.
2481
+ * Check `resource` for resource details.
2482
+ * @maxSize 3
2483
+ */
2484
+ resourceSelections?: ResourceSelection$1[];
2485
+ /**
2486
+ * Whether the slot spans one or more full days.
2487
+ * For class bookings, this value is derived from the linked calendar event.
2488
+ * For appointment bookings, this value is derived from the availability slot. Any caller-provided value is ignored.
2489
+ *
2490
+ * When `true`, `startDate` is set to `00:00:00` of the first day and `endDate` is set to `00:00:00` of the day after the last day (exclusive). Midnight boundaries are interpreted in the slot's `timezone`.
2491
+ *
2492
+ * Default: `false`
2493
+ */
2494
+ allDay?: boolean | null;
2495
+ }
2496
+ declare enum LocationLocationType {
2497
+ /** Undefined location type. */
2498
+ UNDEFINED = "UNDEFINED",
2499
+ /** The business address as set in the site’s general settings. */
2500
+ OWNER_BUSINESS = "OWNER_BUSINESS",
2501
+ /** The address set when creating the service. */
2502
+ OWNER_CUSTOM = "OWNER_CUSTOM",
2503
+ /** The address set for the individual session. */
2504
+ CUSTOM = "CUSTOM"
2505
+ }
2506
+ /** @enumType */
2507
+ type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
2508
+ interface SlotSlotResource {
2509
+ /**
2510
+ * Resource ID.
2511
+ * @format GUID
2512
+ * @readonly
2513
+ */
2514
+ _id?: string | null;
2515
+ /**
2516
+ * Resource name.
2517
+ * @maxLength 1200
2518
+ */
2519
+ name?: string | null;
2520
+ /**
2521
+ * The desired transparency for this resource in the calendar event.
2522
+ *
2523
+ * Supported values:
2524
+ * + `OPAQUE`: The schedule is blocked during the booking, preventing other bookings involving the same resource from being scheduled at the same time.
2525
+ * + `TRANSPARENT`: The schedule remains open during the booking, allowing other bookings to be scheduled concurrently.
2526
+ *
2527
+ * Default: `UNKNOWN_TRANSPARENCY`.
2528
+ */
2529
+ transparency?: ResourceTransparencyWithLiterals;
2530
+ }
2531
+ interface SlotLocation {
2532
+ /**
2533
+ * Business Location ID. Present if the location is a business location.
2534
+ * @format GUID
2535
+ */
2536
+ _id?: string | null;
2537
+ /** Location name. */
2538
+ name?: string | null;
2539
+ /** A string containing the full address of this location. */
2540
+ formattedAddress?: string | null;
2541
+ /** Location type. */
2542
+ locationType?: LocationLocationTypeWithLiterals;
2543
+ }
2544
+ /** Response for RescheduleBookingAnonymously */
2545
+ //#endregion
2546
+ //#region ../../node_modules/@wix/auto_sdk_bookings_bookings-settings/build/es/index.typings.d.mts
2547
+ declare enum BasedOn {
2548
+ /** Times are displayed in the business's time zone. */
2549
+ BUSINESS_TIME_ZONE = "BUSINESS_TIME_ZONE",
2550
+ /** Times are displayed in the customer's time zone. */
2551
+ CUSTOMER_TIME_ZONE = "CUSTOMER_TIME_ZONE"
2552
+ }
2553
+ /** @enumType */
2554
+ type BasedOnWithLiterals = BasedOn | 'BUSINESS_TIME_ZONE' | 'CUSTOMER_TIME_ZONE';
2555
+ //#endregion
2556
+ //#region src/api/adapters/service/service.d.ts
2557
+ type Service = Service$1;
2558
+ //#endregion
2559
+ //#region src/domains/states/service-cta-states.d.ts
2560
+ declare const SERVICE_CTA_STATES: {
2561
+ readonly BOOK: "book";
2562
+ readonly REQUEST_TO_BOOK: "requestToBook";
2563
+ readonly VIEW_COURSE: "viewCourse";
2564
+ };
2565
+ type ServiceCtaState = (typeof SERVICE_CTA_STATES)[keyof typeof SERVICE_CTA_STATES];
2566
+ //#endregion
2567
+ //#region ../bookings-flow-data/dist/types.d.ts
2568
+ /** Whether the Booking Preferences hold one service or a Multi-Service Appointment. Derived,
2569
+ * not chosen: the bookings-uou writer sets it from the service count on every encode (2+
2570
+ * services is `multi`). Readers should count `services` rather than read it. */
2571
+ type BookingMode = 'single' | 'multi';
2572
+ /** A committed resource selection for one resource *type* (staff, room, equipment…).
2573
+ * Carried as ids — the server accepts ids via `resourceSelections`, so the full resource
2574
+ * object (name, schedule) is never needed in the contract.
2575
+ *
2576
+ * Not `bookings.ResourceSelection` (API shape is `resourceTypeId` + `selectionMethod`). */
2577
+ interface ResourceSelection {
2578
+ type: string;
2579
+ ids: string[];
2580
+ /** The user picked "any available" rather than a specific resource of this type. */
2581
+ anyResource?: boolean;
2582
+ }
2583
+ /** A chosen service variant (dynamic pricing): participant count and/or option choices. */
2584
+ type SelectedVariant = Pick<ServiceChoices, 'numberOfParticipants'> & {
2585
+ /** Selected option values (wire carries string ids / custom values, not full `ServiceChoice` objects). */choices?: string[];
2586
+ };
2587
+ /** Genders a visitor can narrow "any staff member" to, in display order. Same literals as the
2588
+ * availability API's `requestedGender.gender`, single- and multi-service alike. */
2589
+ declare const REQUESTED_GENDERS: readonly ["ANY_FEMALE", "ANY_MALE"];
2590
+ type RequestedGender = (typeof REQUESTED_GENDERS)[number];
2591
+ /** A chosen add-on with its quantity — maps SDK `BookedAddOn` fields to flow names (`id` ↔ `_id`). */
2592
+ type AddOn = {
2593
+ id: NonNullable<BookedAddOn['_id']>;
2594
+ quantity: NonNullable<BookedAddOn['quantity']>;
2595
+ };
2596
+ /** One service's committed selections. Slot/schedule fields align with `bookings.V2Slot`. */
2597
+ type ServicePreference = {
2598
+ serviceId: NonNullable<V2Slot['serviceId']>;
2599
+ slug?: NonNullable<Slug['name']>;
2600
+ serviceType?: Service$1['type']; /** ISO local datetimes — per service (services in a bundle can start at different times). */
2601
+ slotStart?: V2Slot['startDate'];
2602
+ slotEnd?: V2Slot['endDate'];
2603
+ eventId?: V2Slot['eventId'];
2604
+ scheduleId?: V2Slot['scheduleId']; /** Needed to rehydrate class sessions in the OOI form. */
2605
+ sessionId?: V2Slot['sessionId']; /** Id only — maps to `SlotLocation._id` / location refetch at the destination. */
2606
+ locationId?: NonNullable<SlotLocation['_id']>; /** Availability naming (`BUSINESS` | `CUSTOM` | `CUSTOMER`); the booking step translates it to the bookings enum. */
2607
+ locationType?: 'BUSINESS' | 'CUSTOM' | 'CUSTOMER';
2608
+ resources?: ResourceSelection[];
2609
+ selectedVariants?: SelectedVariant[];
2610
+ addOns?: AddOn[]; /** The duration variant choice's id, sent to availability as `customerChoices.durationChoiceId`. */
2611
+ durationChoiceId?: string;
2612
+ /** A chosen duration in minutes, sent as `customerChoices.durationInMinutes`. With add-ons the
2613
+ * API requires it to equal the service duration plus theirs, so writers usually omit it. */
2614
+ durationInMinutes?: number; /** Narrows "any staff member" to a gender, sent as `customerChoices.requestedGender`. */
2615
+ requestedGender?: RequestedGender;
2616
+ };
2617
+ /** One accumulating object; each destination builder projects the slice it needs. */
2618
+ interface BookingPreferences {
2619
+ mode: BookingMode;
2620
+ timezone?: V2Slot['timezone'];
2621
+ services: ServicePreference[];
2622
+ /** The visitor ticked "I have a coupon" in the Booking Summary, so checkout must not be skipped.
2623
+ * Absent means unticked; writers omit `false`. */
2624
+ wantsPromoCode?: boolean;
2625
+ }
2626
+ //#endregion
2627
+ //#region src/domains/url-builder/service-selection-url.d.ts
2628
+ type CourseNavigationTarget = 'servicePage' | 'bookingForm';
2629
+ type ClassAppointmentNavigationTarget = 'servicePage' | 'bookingCalendar' | 'bookingForm';
2630
+ interface ServiceSelectionNavigationConfig {
2631
+ courseNavigationTarget: CourseNavigationTarget;
2632
+ classAppointmentNavigationTarget: ClassAppointmentNavigationTarget;
2633
+ }
2634
+ //#endregion
2635
+ //#region src/hooks/use-bi-logger/bi-consts.d.ts
2636
+ declare const BI_WIDGET_NAME: {
2637
+ readonly SERVICES: "services_context";
2638
+ readonly SERVICE: "service_context";
2639
+ readonly TIME_SLOTS: "time_slots_context";
2640
+ readonly BOOKING_CHECKOUT: "booking_checkout_context";
2641
+ readonly CATEGORIES: "categories_context";
2642
+ readonly LOCATIONS: "locations_context";
2643
+ readonly SERVICE_ADD_ONS: "service_addons_context";
2644
+ readonly PREFERENCES: "preferences_context";
2645
+ };
2646
+ type BiWidgetName = (typeof BI_WIDGET_NAME)[keyof typeof BI_WIDGET_NAME];
2647
+ declare const BI_REFERRAL_INFO: {
2648
+ readonly WIDGET_BUTTON: "widget_button";
2649
+ readonly WIDGET_MORE_INFO_LABEL: "widget_more_info_label";
2650
+ readonly EXPLORE_PLANS: "explore_plans";
2651
+ };
2652
+ type BiReferralInfo = (typeof BI_REFERRAL_INFO)[keyof typeof BI_REFERRAL_INFO];
2653
+ //#endregion
2654
+ //#region src/hooks/use-bi-logger/use-bi-logger.d.ts
2655
+ interface BiEvent {
2656
+ src: number;
2657
+ evid: number;
2658
+ endpoint: string;
2659
+ params: Record<string, unknown>;
2660
+ }
2661
+ declare const useBiLogger: (widgetName: BiWidgetName) => (event: BiEvent) => void;
2662
+ //#endregion
2663
+ //#region src/api/adapters/service-options-and-variants/service-options-and-variants.d.ts
2664
+ type ServiceOptionsAndVariants = ServiceOptionsAndVariants$1;
2665
+ //#endregion
2666
+ //#region ../../node_modules/@wix/auto_sdk_calendar_events/build/es/index.typings.d.mts
2667
+ /**
2668
+ * An event is a scheduled entry on a calendar that includes details like timing,
2669
+ * location, and participants. Each event is associated with
2670
+ * a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),
2671
+ * from which it may [inherit default values](https://dev.wix.com/docs/rest/business-management/calendar/default-values).
2672
+ * Events can either be standalone, part of a recurring series, or define a
2673
+ * recurrence pattern. You can also specify whether events block time on the
2674
+ * schedule or allow other events to be scheduled concurrently.
2675
+ */
2676
+ interface Event {
2677
+ /**
2678
+ * Event ID.
2679
+ * @minLength 36
2680
+ * @maxLength 250
2681
+ * @readonly
2682
+ */
2683
+ _id?: string | null;
2684
+ /**
2685
+ * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
2686
+ * the event belongs to.
2687
+ * After creating an event, you can't assign it to a different schedule.
2688
+ * @format GUID
2689
+ * @immutable
2690
+ */
2691
+ scheduleId?: string | null;
2692
+ /**
2693
+ * ID of the external schedule the event belongs to.
2694
+ *
2695
+ * For example, if the event belongs to a Bookings staff member, identical to the ID of the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction). If the schedule belongs to a Bookings service, identical to the ID of the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).
2696
+ * @format GUID
2697
+ * @readonly
2698
+ */
2699
+ externalScheduleId?: string | null;
2700
+ /**
2701
+ * Schedule name.
2702
+ * @readonly
2703
+ */
2704
+ scheduleName?: string | null;
2705
+ /**
2706
+ * Event type. You can set the event type but you can't update it.
2707
+ *
2708
+ * Supported values:
2709
+ * + `DEFAULT`: A standard event that's not further specified.
2710
+ * + `WORKING_HOURS`: The event adds working hours to a schedule. By default not returned in [queryEvents()](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/query-events).
2711
+ *
2712
+ * Additional supported values, if Wix Bookings is installed:
2713
+ * + `APPOINTMENT`: Bookings appointment event.
2714
+ * + `CLASS`: Bookings class event.
2715
+ * + `COURSE`: Bookings course event.
2716
+ * @immutable
2717
+ */
2718
+ type?: string | null;
2719
+ /**
2720
+ * Event status.
2721
+ *
2722
+ * Supported values:
2723
+ * + `CONFIRMED`: Event is scheduled to happen or has happened.
2724
+ * + `CANCELLED`: Event has been canceled.
2725
+ *
2726
+ * Default: `CONFIRMED`
2727
+ * @readonly
2728
+ */
2729
+ status?: StatusWithLiterals;
2730
+ /**
2731
+ * Event title.
2732
+ *
2733
+ * Min: 1 character
2734
+ * Max: 200 characters
2735
+ * @minLength 1
2736
+ * @maxLength 200
2737
+ */
2738
+ title?: string | null;
2739
+ /** Information about when the event starts. */
2740
+ start?: ZonedDate;
2741
+ /**
2742
+ * Information about when the event ends.
2743
+ *
2744
+ * Maximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).
2745
+ */
2746
+ end?: ZonedDate;
2747
+ /**
2748
+ * Information about when the event starts adjusted to the `timeZone` of the
2749
+ * business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
2750
+ * or a different `timeZone` you provide in the call's request.
2751
+ * @readonly
2752
+ */
2753
+ adjustedStart?: ZonedDate;
2754
+ /**
2755
+ * Information about when the event ends adjusted to the `timeZone` of the
2756
+ * business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
2757
+ * or a different `timeZone` you provide in the call's request.
2758
+ * @readonly
2759
+ */
2760
+ adjustedEnd?: ZonedDate;
2761
+ /**
2762
+ * Time zone the event is associated with in
2763
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
2764
+ * Only regional time zones and UTC are supported.
2765
+ * For example, `America/New_York` or `UTC`.
2766
+ *
2767
+ * Default: `timeZone` of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction).
2768
+ */
2769
+ timeZone?: string | null;
2770
+ /**
2771
+ * Whether the event spans one or more full days.
2772
+ *
2773
+ * When `true`, `start` and `end` represent full-day boundaries:
2774
+ * + `start.localDate`: First day at `00:00:00`.
2775
+ * + `end.localDate`: Day after the last day at `00:00:00` (exclusive).
2776
+ * Midnight boundaries are interpreted in the event's `timeZone`.
2777
+ *
2778
+ * Default: `false`
2779
+ */
2780
+ allDay?: boolean | null;
2781
+ /**
2782
+ * Information about whether the event is a single occurrence or part of a
2783
+ * recurring series.
2784
+ *
2785
+ * Supported values:
2786
+ * + `NONE`: The event occurs only once and doesn't repeat.
2787
+ * + `MASTER`: Defines the recurrence pattern for a series of recurring events.
2788
+ * + `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{"recurrenceType": "INSTANCE"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.
2789
+ * + `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.
2790
+ *
2791
+ * Default: `NONE`
2792
+ * @readonly
2793
+ */
2794
+ recurrenceType?: RecurrenceTypeWithLiterals;
2795
+ /**
2796
+ * Recurrence pattern for a series of events. This field is required when
2797
+ * creating a `MASTER` event and isn't available for non-recurring events.
2798
+ * You can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.
2799
+ *
2800
+ * For example, an event that repeats every second Monday until January 7, 2026,
2801
+ * at 8:00 AM has the following `recurrenceRule`:
2802
+ * - `frequency = WEEKLY`
2803
+ * - `interval = 2`
2804
+ * - `days = [MONDAY]`
2805
+ * - `until = 20260107T08:00:00Z`
2806
+ */
2807
+ recurrenceRule?: RecurrenceRule;
2808
+ /**
2809
+ * ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`
2810
+ * and `EXCEPTION` events.
2811
+ * @minLength 64
2812
+ * @maxLength 64
2813
+ * @readonly
2814
+ */
2815
+ recurringEventId?: string | null;
2816
+ /**
2817
+ * Specifies whether the event blocks time in the schedule it belongs to.
2818
+ *
2819
+ * Supported values:
2820
+ * + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.
2821
+ * + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
2822
+ *
2823
+ * Default: `OPAQUE`
2824
+ */
2825
+ transparency?: TransparencyWithLiterals;
2826
+ /**
2827
+ * Event location.
2828
+ *
2829
+ * Default: `defaultLocation` of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) the event belongs to
2830
+ */
2831
+ location?: Location;
2832
+ /**
2833
+ * List of [Wix Bookings resources](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction)
2834
+ * affected by the event. This could include, for example, the
2835
+ * [Wix Bookings staff member](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction)
2836
+ * providing the service or the room where the appointment takes place.
2837
+ *
2838
+ * Max: 100 resources
2839
+ * @maxSize 100
2840
+ */
2841
+ resources?: Resource[];
2842
+ /**
2843
+ * Maximum number of participants who can participate in the event.
2844
+ *
2845
+ * Default: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) the event belongs to.
2846
+ */
2847
+ totalCapacity?: number | null;
2848
+ /**
2849
+ * Number of participants who can still be added to the event.
2850
+ * @readonly
2851
+ */
2852
+ remainingCapacity?: number | null;
2853
+ /**
2854
+ * Information about the event's participants.
2855
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
2856
+ * @readonly
2857
+ */
2858
+ participants?: Participants;
2859
+ /**
2860
+ * Information about the event's online conferencing.
2861
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
2862
+ *
2863
+ * Default: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) the event belongs to.
2864
+ */
2865
+ conferencingDetails?: ConferencingDetails;
2866
+ /**
2867
+ * Additional notes about the event.
2868
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
2869
+ *
2870
+ * Min: 1 character
2871
+ * Max: 5000 characters
2872
+ * @minLength 1
2873
+ * @maxLength 5000
2874
+ */
2875
+ notes?: string | null;
2876
+ /**
2877
+ * List of fields whose values are inherited.
2878
+ * + For single-occurrence events, values are inherited from the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction).
2879
+ * + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related `MASTER` event.
2880
+ * @readonly
2881
+ */
2882
+ inheritedFields?: FieldWithLiterals[];
2883
+ /**
2884
+ * ID of the app that owns the event. Identical to `appId` of the
2885
+ * [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
2886
+ * to which the event belongs.
2887
+ * @format GUID
2888
+ * @readonly
2889
+ */
2890
+ appId?: string | null;
2891
+ /**
2892
+ * List of permissions associated with the event. Refer to the
2893
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)
2894
+ * for more information.
2895
+ * @readonly
2896
+ */
2897
+ permissions?: Permission[];
2898
+ /** Extensions enabling applications or users to save custom data related to the event. */
2899
+ extendedFields?: ExtendedFields;
2900
+ /**
2901
+ * Revision number, which increments each time the event is updated.
2902
+ * To prevent conflicting changes, the current revision must be passed when updating the event.
2903
+ * Ignored when creating an event.
2904
+ * @readonly
2905
+ */
2906
+ revision?: string | null;
2907
+ /**
2908
+ * Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
2909
+ * @readonly
2910
+ */
2911
+ _createdDate?: Date | null;
2912
+ /**
2913
+ * Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
2914
+ * @readonly
2915
+ */
2916
+ _updatedDate?: Date | null;
2917
+ }
2918
+ declare enum Status {
2919
+ /** Event is scheduled to happen or has happened. */
2920
+ CONFIRMED = "CONFIRMED",
2921
+ /** Event has been canceled. */
2922
+ CANCELLED = "CANCELLED"
2923
+ }
2924
+ /** @enumType */
2925
+ type StatusWithLiterals = Status | 'CONFIRMED' | 'CANCELLED';
2926
+ /** A date time with a time zone, having the UTC offset and date determined by the server. */
2927
+ interface ZonedDate {
2928
+ /**
2929
+ * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
2930
+ * For example, `2024-01-30T13:30:00`.
2931
+ * Wix Calendar APIs ignore seconds.
2932
+ * @format LOCAL_DATE_TIME
2933
+ */
2934
+ localDate?: string | null;
2935
+ /**
2936
+ * Time zone in
2937
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
2938
+ * For example, `America/New_York`.
2939
+ * @readonly
2940
+ */
2941
+ timeZone?: string | null;
2942
+ /**
2943
+ * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
2944
+ * For example, `2024-01-30T13:30:00`.
2945
+ * Not available for adjusted date fields.
2946
+ * @readonly
2947
+ */
2948
+ utcDate?: Date | null;
2949
+ }
2950
+ declare enum RecurrenceType {
2951
+ /** The event occurs only once and doesn't repeat. */
2952
+ NONE = "NONE",
2953
+ /** Defines the recurrence pattern for a series of recurring events. */
2954
+ MASTER = "MASTER",
2955
+ /** A specific occurrence of a recurring event. You can't create an event with `{"recurrenceType": "INSTANCE"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`. */
2956
+ INSTANCE = "INSTANCE",
2957
+ /** A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event. */
2958
+ EXCEPTION = "EXCEPTION"
2959
+ }
2960
+ /** @enumType */
2961
+ type RecurrenceTypeWithLiterals = RecurrenceType | 'NONE' | 'MASTER' | 'INSTANCE' | 'EXCEPTION';
2962
+ interface RecurrenceRule {
2963
+ /**
2964
+ * Frequency how often the event repeats. Works together with `interval`.
2965
+ *
2966
+ * Supported values:
2967
+ * + `WEEKLY`: The event's recurrence pattern is based on weeks.
2968
+ */
2969
+ frequency?: FrequencyWithLiterals;
2970
+ /**
2971
+ * Interval how often the event repeats. Works together with `frequency`.
2972
+ * For example, `frequency` set to `WEEKLY` and `interval` set to `2` means
2973
+ * the event repeats every 2 weeks.
2974
+ *
2975
+ * Min: `1`
2976
+ * Max: `4`
2977
+ * Default: `1`
2978
+ * @min 1
2979
+ * @max 4
2980
+ */
2981
+ interval?: number | null;
2982
+ /**
2983
+ * Days of the week when the recurring event takes place.
2984
+ * Currently, only a single day is supported.
2985
+ *
2986
+ * Min: 1 day
2987
+ * Max: 1 day
2988
+ * @minSize 1
2989
+ * @maxSize 1
2990
+ */
2991
+ days?: DayWithLiterals[];
2992
+ /**
2993
+ * Date until when the event repeats.
2994
+ * If not specified, the event repeats forever.
2995
+ */
2996
+ until?: ZonedDate;
2997
+ /**
2998
+ * Date until when the event repeats
2999
+ * adjusted to the `timeZone` of the business
3000
+ * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
3001
+ * or a different `timeZone` you provide in the call's request.
3002
+ * @readonly
3003
+ */
3004
+ adjustedUntil?: ZonedDate;
3005
+ }
3006
+ declare enum Frequency {
3007
+ UNKNOWN_FREQUENCY = "UNKNOWN_FREQUENCY",
3008
+ /** The event's recurrence pattern is based on weeks. */
3009
+ WEEKLY = "WEEKLY"
3010
+ }
3011
+ /** @enumType */
3012
+ type FrequencyWithLiterals = Frequency | 'UNKNOWN_FREQUENCY' | 'WEEKLY';
3013
+ declare enum Day {
3014
+ /** The recurring event takes place on Mondays. */
3015
+ MONDAY = "MONDAY",
3016
+ /** The recurring event takes place on Tuesdays. */
3017
+ TUESDAY = "TUESDAY",
3018
+ /** The recurring event takes place on Wednesday. */
3019
+ WEDNESDAY = "WEDNESDAY",
3020
+ /** The recurring event takes place on Thursdays. */
3021
+ THURSDAY = "THURSDAY",
3022
+ /** The recurring event takes place on Fridays. */
3023
+ FRIDAY = "FRIDAY",
3024
+ /** The recurring event takes place on Saturdays. */
3025
+ SATURDAY = "SATURDAY",
3026
+ /** The recurring event takes place on Sundays. */
3027
+ SUNDAY = "SUNDAY"
3028
+ }
3029
+ /** @enumType */
3030
+ type DayWithLiterals = Day | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
3031
+ declare enum Transparency {
3032
+ UNKNOWN_TRANSPARENCY = "UNKNOWN_TRANSPARENCY",
3033
+ /** The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time. */
3034
+ OPAQUE = "OPAQUE",
3035
+ /** The schedule remains open during the event, allowing other events to be scheduled concurrently. */
3036
+ TRANSPARENT = "TRANSPARENT"
3037
+ }
3038
+ /** @enumType */
3039
+ type TransparencyWithLiterals = Transparency | 'UNKNOWN_TRANSPARENCY' | 'OPAQUE' | 'TRANSPARENT';
3040
+ interface Location {
3041
+ /**
3042
+ * [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
3043
+ * ID. Available only for `BUSINESS` locations.
3044
+ * @format GUID
3045
+ */
3046
+ _id?: string | null;
3047
+ /**
3048
+ * Location type.
3049
+ *
3050
+ * Supported values:
3051
+ * + `BUSINESS`: The event is held at a business location.
3052
+ * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
3053
+ * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
3054
+ */
3055
+ type?: LocationTypeWithLiterals;
3056
+ /**
3057
+ * Location name. For `BUSINESS` locations, it's identical to the
3058
+ * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
3059
+ * `name`.
3060
+ *
3061
+ * Min: 1 character
3062
+ * Max: 150 characters
3063
+ * @minLength 1
3064
+ * @maxLength 150
3065
+ */
3066
+ name?: string | null;
3067
+ /**
3068
+ * Location address. For `BUSINESS` locations, it's identical to the
3069
+ * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
3070
+ * `formattedAddress`.
3071
+ * @minLength 1
3072
+ * @maxLength 300
3073
+ */
3074
+ address?: string | null;
3075
+ }
3076
+ declare enum LocationType {
3077
+ /** The event is held at a business location. */
3078
+ BUSINESS = "BUSINESS",
3079
+ /** The event is held at the customer's location, such as their home or office. */
3080
+ CUSTOMER = "CUSTOMER",
3081
+ /** The event is held at an address or venue not tied to the business or customer. */
3082
+ CUSTOM = "CUSTOM"
3083
+ }
3084
+ /** @enumType */
3085
+ type LocationTypeWithLiterals = LocationType | 'BUSINESS' | 'CUSTOMER' | 'CUSTOM';
3086
+ interface Resource {
3087
+ /**
3088
+ * Resource ID.
3089
+ * @format GUID
3090
+ */
3091
+ _id?: string | null;
3092
+ /**
3093
+ * Resource name.
3094
+ * @readonly
3095
+ */
3096
+ name?: string | null;
3097
+ /**
3098
+ * Resource type.
3099
+ * @readonly
3100
+ */
3101
+ type?: string | null;
3102
+ /**
3103
+ * Specifies whether the event blocks time in the resource's schedule.
3104
+ *
3105
+ * Supported values:
3106
+ * + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.
3107
+ * + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
3108
+ *
3109
+ * Default: `OPAQUE`.
3110
+ */
3111
+ transparency?: TransparencyWithLiterals;
3112
+ /**
3113
+ * Permission role associated with the resource. Refer to the
3114
+ * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
3115
+ * for more information.
3116
+ */
3117
+ permissionRole?: RoleWithLiterals;
3118
+ }
3119
+ declare enum Role {
3120
+ /** Full read and write access. */
3121
+ WRITER = "WRITER",
3122
+ /** Full read access, write access limited to `event.notes`. */
3123
+ COMMENTER = "COMMENTER"
3124
+ }
3125
+ /** @enumType */
3126
+ type RoleWithLiterals = Role | 'WRITER' | 'COMMENTER';
3127
+ interface Participants {
3128
+ /**
3129
+ * Total number of participants.
3130
+ *
3131
+ * Min: `0`
3132
+ */
3133
+ total?: number | null;
3134
+ /**
3135
+ * Full or partial list of the participants.
3136
+ *
3137
+ * Max: 50 participants
3138
+ * @maxSize 50
3139
+ */
3140
+ list?: Participant[];
3141
+ /**
3142
+ * Whether there are more participants for the event than listed.
3143
+ *
3144
+ * + `false`: The list includes all participants.
3145
+ * + `true`: The list doesn't include all participants.
3146
+ */
3147
+ hasMore?: boolean | null;
3148
+ /**
3149
+ * Participant's status.
3150
+ *
3151
+ * Supported values:
3152
+ * + `CONFIRMED`: All participants are confirmed.
3153
+ * + `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.
3154
+ */
3155
+ status?: ParticipantsStatusWithLiterals;
3156
+ }
3157
+ interface Participant {
3158
+ /**
3159
+ * Participant name.
3160
+ *
3161
+ * Min: 1 character
3162
+ * Max: 200 characters
3163
+ * @minLength 1
3164
+ * @maxLength 200
3165
+ */
3166
+ name?: string | null;
3167
+ /**
3168
+ * Participant's phone number.
3169
+ * @format PHONE
3170
+ */
3171
+ phone?: string | null;
3172
+ /**
3173
+ * Participant's email address.
3174
+ * @format EMAIL
3175
+ */
3176
+ email?: string | null;
3177
+ /**
3178
+ * [Contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)
3179
+ * ID of the participant.
3180
+ * @format GUID
3181
+ */
3182
+ contactId?: string | null;
3183
+ }
3184
+ declare enum ParticipantsStatus {
3185
+ /** All participants are confirmed. */
3186
+ CONFIRMED = "CONFIRMED",
3187
+ /** At least one participant isn't confirmed yet. */
3188
+ PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
3189
+ }
3190
+ /** @enumType */
3191
+ type ParticipantsStatusWithLiterals = ParticipantsStatus | 'CONFIRMED' | 'PENDING_CONFIRMATION';
3192
+ interface ConferencingDetails {
3193
+ /**
3194
+ * Conference type. For example, `Zoom`.
3195
+ * @deprecated Conference type. For example, `Zoom`.
3196
+ * @replacedBy provider
3197
+ * @targetRemovalDate 2026-12-01
3198
+ */
3199
+ type?: TypeWithLiterals;
3200
+ /**
3201
+ * URL used by the host to start the conference.
3202
+ *
3203
+ * Min: 1 character
3204
+ * Max: 2000 characters
3205
+ * @minLength 1
3206
+ * @maxLength 2000
3207
+ */
3208
+ hostUrl?: string | null;
3209
+ /**
3210
+ * URL used by a guest to join the conference.
3211
+ *
3212
+ * Min: 1 character
3213
+ * Max: 2000 characters
3214
+ * @minLength 1
3215
+ * @maxLength 2000
3216
+ */
3217
+ guestUrl?: string | null;
3218
+ /**
3219
+ * Conference password.
3220
+ *
3221
+ * Min: 1 character
3222
+ * Max: 100 characters
3223
+ * @minLength 1
3224
+ * @maxLength 100
3225
+ */
3226
+ password?: string | null;
3227
+ /**
3228
+ * Conference ID in an external system.
3229
+ *
3230
+ * Min: 1 character
3231
+ * Max: 150 characters
3232
+ * @minLength 1
3233
+ * @maxLength 150
3234
+ */
3235
+ externalId?: string | null;
3236
+ /** Conferencing provider information. */
3237
+ provider?: Provider;
3238
+ }
3239
+ declare enum ProviderType {
3240
+ /** Custom conferencing link manually configured by the user. */
3241
+ CUSTOM = "CUSTOM",
3242
+ /** Online meeting provider integrated via an app. */
3243
+ ONLINE_MEETING = "ONLINE_MEETING"
3244
+ }
3245
+ /** @enumType */
3246
+ type ProviderTypeWithLiterals = ProviderType | 'CUSTOM' | 'ONLINE_MEETING';
3247
+ interface OnlineMeetingInfo {
3248
+ /** @format GUID */
3249
+ appId?: string;
3250
+ }
3251
+ declare enum Type {
3252
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
3253
+ ZOOM = "ZOOM",
3254
+ CUSTOM = "CUSTOM"
3255
+ }
3256
+ /** @enumType */
3257
+ type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';
3258
+ interface Provider extends ProviderProviderInfoOneOf {
3259
+ /** Information about online meeting providers. */
3260
+ onlineMeetingInfo?: OnlineMeetingInfo;
3261
+ providerType?: ProviderTypeWithLiterals;
3262
+ }
3263
+ /** @oneof */
3264
+ interface ProviderProviderInfoOneOf {
3265
+ /** Information about online meeting providers. */
3266
+ onlineMeetingInfo?: OnlineMeetingInfo;
3267
+ }
3268
+ declare enum Field$1 {
3269
+ /** `title` is inherited from the schedule or `MASTER` event. */
3270
+ TITLE = "TITLE",
3271
+ /** `timeZone` is inherited from the schedule or `MASTER` event. */
3272
+ TIME_ZONE = "TIME_ZONE",
3273
+ /** `start` and `end` are inherited from the `MASTER` event. */
3274
+ TIME = "TIME",
3275
+ /** `location` is inherited from the schedule or `MASTER` event. */
3276
+ LOCATION = "LOCATION",
3277
+ /** `resources` is inherited from the `MASTER` event. */
3278
+ RESOURCES = "RESOURCES",
3279
+ /** `capacity` is inherited from the schedule or `MASTER` event. */
3280
+ CAPACITY = "CAPACITY",
3281
+ /** `participants` is inherited from the `MASTER` event. */
3282
+ PARTICIPANTS = "PARTICIPANTS",
3283
+ /** `conferencingDetails` is inherited from the schedule or `MASTER` event. */
3284
+ CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
3285
+ }
3286
+ /** @enumType */
3287
+ type FieldWithLiterals = Field$1 | 'TITLE' | 'TIME_ZONE' | 'TIME' | 'LOCATION' | 'RESOURCES' | 'CAPACITY' | 'PARTICIPANTS' | 'CONFERENCING_DETAILS';
3288
+ interface Permission {
3289
+ /**
3290
+ * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
3291
+ * granted the permission.
3292
+ */
3293
+ identity?: CommonIdentificationData;
3294
+ /**
3295
+ * Permission role.
3296
+ *
3297
+ * Supported values:
3298
+ * + `WRITER`: Full read and write access.
3299
+ * + `COMMENTER`: Full read access, write access limited to `event.notes`.
3300
+ */
3301
+ role?: RoleWithLiterals;
3302
+ }
3303
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
3304
+ /**
3305
+ * ID of a Wix user. For example, the site owner or a
3306
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
3307
+ * @format GUID
3308
+ */
3309
+ wixUserId?: string;
3310
+ }
3311
+ /** @oneof */
3312
+ interface CommonIdentificationDataIdOneOf {
3313
+ /**
3314
+ * ID of a Wix user. For example, the site owner or a
3315
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
3316
+ * @format GUID
3317
+ */
3318
+ wixUserId?: string;
3319
+ }
3320
+ interface ExtendedFields {
3321
+ /**
3322
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
3323
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
3324
+ *
3325
+ * You can only access fields for which you have the appropriate permissions.
3326
+ *
3327
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
3328
+ */
3329
+ namespaces?: Record<string, Record<string, any>>;
3330
+ }
3331
+ //#endregion
3332
+ //#region src/domains/offered-days/offered-days.d.ts
3333
+ interface OfferedDay {
3334
+ day: string;
3335
+ }
3336
+ //#endregion
3337
+ //#region src/domains/service-price/format-service-price.d.ts
3338
+ interface ServicePriceData {
3339
+ rateType: RateTypeWithLiterals | null;
3340
+ price: string | null;
3341
+ priceAfterDiscount: string | null;
3342
+ discountName: string | null;
3343
+ calculatedAtCheckout: boolean;
3344
+ subscriptionFrequency: FrequencyTypeWithLiterals | null;
3345
+ isFree: boolean;
3346
+ }
3347
+ //#endregion
3348
+ //#region src/domains/service-locations/service-locations.d.ts
3349
+ /** Where a service takes place. */
3350
+ interface ServiceLocationItem {
3351
+ /** `business`: one of the business locations. `custom`: an address. `customer`: the customer's place. */
3352
+ type: 'business' | 'custom' | 'customer';
3353
+ /** The business location's name or the address. Null for the customer's place: label it in your own words. */
3354
+ text: string | null;
3355
+ }
3356
+ //#endregion
3357
+ //#region src/domains/service-bookability/service-bookability.d.ts
3358
+ declare const AVAILABILITY_STATES: {
3359
+ readonly AVAILABLE: "available";
3360
+ readonly FULLY_BOOKED: "fullyBooked";
3361
+ readonly BOOKING_NOT_OPEN_YET: "bookingNotOpenYet";
3362
+ readonly BOOKING_CLOSED: "bookingClosed";
3363
+ readonly COURSE_IN_PROGRESS: "courseInProgress";
3364
+ readonly NO_UPCOMING_SESSIONS: "noUpcomingSessions";
3365
+ };
3366
+ type AvailabilityState = (typeof AVAILABILITY_STATES)[keyof typeof AVAILABILITY_STATES];
3367
+ interface ServiceBookability {
3368
+ state: AvailabilityState;
3369
+ isAvailableForBooking: boolean;
3370
+ bookingOpensAt: Date | null;
3371
+ }
3372
+ //#endregion
3373
+ //#region src/api/adapters/staff-member/staff-member.d.ts
3374
+ interface StaffMemberItem {
3375
+ staffMemberId: string;
3376
+ name: string | null;
3377
+ image: Image | null;
3378
+ isSelected: boolean;
3379
+ }
3380
+ //#endregion
3381
+ //#region src/domains/course-availability/course-availability.d.ts
3382
+ interface CourseAvailability {
3383
+ totalCapacity: number | null;
3384
+ remainingCapacity: number | null;
3385
+ }
3386
+ //#endregion
3387
+ //#region src/domains/service-item-fields/service-item-fields.d.ts
3388
+ type ServiceItemStaffMember = Omit<StaffMemberItem, 'isSelected'>;
3389
+ //#endregion
3390
+ //#region src/domains/url-builder/booking-preferences-blob.types.d.ts
3391
+ type SelectStaffMember = (staffMemberId: string) => void;
3392
+ /** Sets an explicit "any available staff", of `requestedGender` when given, else of any gender. */
3393
+ type ClearSelection = (requestedGender?: RequestedGender) => void;
3394
+ /** Back to "not collected". */
3395
+ type ClearStaffMember = () => void;
3396
+ /** Empty clears. */
3397
+ type SetVariant = (choices: string[]) => void;
3398
+ /** 0 removes a variant; clamped to participant limits and published once. */
3399
+ type SetVariantCounts = (counts: Readonly<Record<string, number>>) => void;
3400
+ type ToggleAddOn = (addOnId: string) => void;
3401
+ /** 0 removes. */
3402
+ type SetAddOnQuantity = (addOnId: string, quantity: number) => void;
3403
+ /** Staff picked with the slot stays in `resources`. */
3404
+ type SlotSelection = Pick<ServicePreference, 'slotStart' | 'slotEnd' | 'eventId' | 'scheduleId' | 'sessionId' | 'locationId' | 'locationType'>;
3405
+ interface SlotPickDetails {
3406
+ /** `null` = explicit "any available" (slot lists several); omitted keeps the current staff. */
3407
+ staffId?: string | null;
3408
+ /** Zone of the slot's local times; written as the blob's `timezone`. */
3409
+ timezone?: string;
3410
+ /** `false` for a waitlist slot, which reports no slot selection (34) on Book. */
3411
+ bookable?: boolean;
3412
+ /** The slot's staff can't be left to the server, so a named staff member must be chosen. */
3413
+ staffChoiceRequired?: boolean;
3414
+ /**
3415
+ * The slot's first staff member, whom a reschedule books without a named pick unless the
3416
+ * visitor may choose "any" (OOI rescheduleBooking).
3417
+ */
3418
+ rescheduleStaffId?: string;
3419
+ }
3420
+ type SetSlot = (slot: SlotSelection, details?: SlotPickDetails) => void;
3421
+ /**
3422
+ * Appends this service's selection as `b=`. `handoff` (booking form) keeps only this service's
3423
+ * entry and the live timezone. `staffId` (null = "any") leaves the selection.
3424
+ */
3425
+ type WithSelectionParam = (path: string, opts?: {
3426
+ handoff?: boolean;
3427
+ staffId?: string | null;
3428
+ }) => string;
3429
+ /** Keeps the location. */
3430
+ type ClearSlot = () => void;
3431
+ /** A Multi-Service Appointment slot's part for one service. */
3432
+ type NestedSlotPart = Pick<NestedTimeSlot, 'serviceId' | 'localStartDate' | 'localEndDate' | 'scheduleId'>;
3433
+ /**
3434
+ * Gives entry `i` of a Multi-Service Appointment `nestedTimeSlots[i]`. False, picking nothing, when
3435
+ * the slot doesn't line up with the entries.
3436
+ */
3437
+ type SetMultiServiceSlot = (nestedTimeSlots: ReadonlyArray<NestedSlotPart>, timezone?: string) => boolean;
3438
+ /** Drops a Multi-Service Appointment's picked time from every entry; locations stay. */
3439
+ type ClearMultiServiceSlot = () => void;
3440
+ //#endregion
3441
+ //#region src/api/adapters/bookings-settings/bookings-settings.d.ts
3442
+ /** A policy, not an IANA zone: the real zone needs the business zone from site properties. */
3443
+ type DisplayTimeZonePolicy = {
3444
+ basedOn: BasedOnWithLiterals;
3445
+ customerCanChange: boolean;
3446
+ };
3447
+ interface ExposedBookingsSettings {
3448
+ displayTimeZonePolicy: DisplayTimeZonePolicy;
3449
+ multiServiceAppointmentsEnabled: boolean;
3450
+ }
3451
+ //#endregion
3452
+ //#region src/extensions/contexts/services-context/services-context.d.ts
3453
+ /** Raw data only; the nested service-context derives display values. Not for direct binding. */
3454
+ interface ServiceItem {
3455
+ serviceId: string | null;
3456
+ refreshSignal: number;
3457
+ service: Service;
3458
+ masterEvents: Event[];
3459
+ /** Null when not VARIED, not loaded yet, or failed (a failed refetch keeps the last value). */
3460
+ serviceOptionsAndVariants: ServiceOptionsAndVariants | null;
3461
+ bookingsSettings: ExposedBookingsSettings;
3462
+ /**
3463
+ * The service page, resolved like every in-app link to it (custom URL structure first). Read by
3464
+ * the gallery converter (data-conversions), which has no site services to resolve it itself.
3465
+ * Runtime-only: not declared in the manifest, so it is not a bindable field (the full item rides
3466
+ * through regardless). Null when the page can't be resolved (no slug, no service page section).
3467
+ */
3468
+ servicePageLink: Link | null;
3469
+ }
3470
+ //#endregion
3471
+ //#region src/domains/reschedule/reschedule.d.ts
3472
+ /** The booking being moved, as the calendar needs it. */
3473
+ interface RescheduledBooking {
3474
+ bookingId: string;
3475
+ revision: string | null;
3476
+ serviceId: string | null;
3477
+ kind: 'appointment' | 'class' | 'other';
3478
+ participants: number;
3479
+ addOnIds: string[];
3480
+ locationId: string | null;
3481
+ /** A customer's own address, which the new slot keeps (OOI copyClientsLocation). */
3482
+ customAddress: string | null;
3483
+ }
3484
+ /**
3485
+ * `loading` until the booking is read. The rest but `ready` block the calendar: nothing is
3486
+ * listed or booked, and time-slots-context reports why.
3487
+ */
3488
+ type RescheduleStatus = 'loading' | 'ready' | 'loginRequired' | 'notFound' | 'accessDenied' | 'failed' | 'wrongService' | 'notReschedulable';
3489
+ interface Reschedule {
3490
+ status: RescheduleStatus;
3491
+ booking: RescheduledBooking | null;
3492
+ /** The plan the booking was paid with expires then (an instant); null without one. */
3493
+ validUntil: string | null;
3494
+ }
3495
+ //#endregion
3496
+ //#region src/api/adapters/booking/reschedule-booking.d.ts
3497
+ /** Who and where the moved booking is with, as the server assigned them. */
3498
+ interface RescheduledSlot {
3499
+ staffName: string | null;
3500
+ locationName: string | null;
3501
+ }
3502
+ //#endregion
3503
+ //#region src/extensions/contexts/service-context/service-context.d.ts
3504
+ /** A bookable service with its display values, the visitor's booking selection and the actions to change it, plus multi-service appointment and reschedule state. */
3505
+ interface ServiceContextValue {
3506
+ service: Service | null;
3507
+ serviceName: string | null;
3508
+ serviceDescription: string | null;
3509
+ serviceTagLine: string | null;
3510
+ serviceDefaultDuration: string | null;
3511
+ serviceImage: Image | null;
3512
+ serviceSlug: string | null;
3513
+ servicePageLink: Link | null;
3514
+ serviceId: string | null;
3515
+ serviceType: string | null;
3516
+ servicePrice: ServicePriceData;
3517
+ isVariedService: boolean;
3518
+ /** Null when not VARIED, not loaded yet, or failed (a failed refetch keeps the last value). */
3519
+ serviceOptionsAndVariants: ServiceOptionsAndVariants | null;
3520
+ /** Includes empty and failed variant responses. */
3521
+ isLoadingServiceOptionsAndVariants: boolean;
3522
+ hasAddOns: boolean;
3523
+ isConferenceEnabled: boolean;
3524
+ offeredDays: OfferedDay[];
3525
+ courseAvailability: CourseAvailability | null;
3526
+ courseStartDate: string | null;
3527
+ courseEndDate: string | null;
3528
+ staffMembers: ServiceItemStaffMember[];
3529
+ coverImage: Image | undefined;
3530
+ gallery: VisualMedia[];
3531
+ serviceLocations: ServiceLocationItem[];
3532
+ policyDescription: string | null;
3533
+ serviceBookability: ServiceBookability;
3534
+ displayTimeZone: string;
3535
+ isAvailableForBooking: () => boolean;
3536
+ hasPolicyDescription: () => boolean;
3537
+ hasCoverImage: () => boolean;
3538
+ hasGalleryImages: () => boolean;
3539
+ isVariantDuration: () => boolean;
3540
+ isLoading: boolean;
3541
+ hasError: boolean;
3542
+ locale: string;
3543
+ selectStaffMember: SelectStaffMember;
3544
+ clearSelection: ClearSelection;
3545
+ /** Sets staff to neither a member nor "any". */
3546
+ clearStaffMember: ClearStaffMember;
3547
+ /**
3548
+ * Seeded from the `b=` blob. The calendar's picks change it without writing `b=`: the Service CTA
3549
+ * writes it into the next page's URL.
3550
+ */
3551
+ selection: ServicePreference;
3552
+ /** Empty clears. No participant count, so the booking form shows no count field for it. */
3553
+ setVariant: SetVariant;
3554
+ /**
3555
+ * 0 removes. Clamped to the participant limits, decreases first so a swap isn't lost to the cap.
3556
+ * Unknown choices are ignored and dropped from the selection; no-op before variants load.
3557
+ */
3558
+ setVariantCounts: SetVariantCounts;
3559
+ /** Across all variants; the cap the setters apply. */
3560
+ maxParticipantsPerBooking: number;
3561
+ toggleAddOn: ToggleAddOn;
3562
+ /** 0 removes. */
3563
+ setAddOnQuantity: SetAddOnQuantity;
3564
+ setSlot: SetSlot;
3565
+ clearSlot: ClearSlot;
3566
+ /** A Multi-Service Appointment's picked time, held like {@link setSlot}'s until the CTA. */
3567
+ setMultiServiceSlot: SetMultiServiceSlot;
3568
+ clearMultiServiceSlot: ClearMultiServiceSlot;
3569
+ /**
3570
+ * Goes up each time the drafts start over from a `b=` changed from outside, so the calendar
3571
+ * drops its picked time.
3572
+ */
3573
+ draftRevision: number;
3574
+ /** The visitor ticked "I have a promo code" in the Booking Summary (`b=`). */
3575
+ wantsPromoCode: boolean;
3576
+ /** Writes the tick into `b=` in place; no-op without a decodable blob. */
3577
+ setWantsPromoCode: (wanted: boolean) => void;
3578
+ /** Adds the live selection as `b=` to a destination path. */
3579
+ withSelectionParam: WithSelectionParam;
3580
+ serviceCtaState: ServiceCtaState;
3581
+ navigateToNextPage: (config?: ServiceSelectionNavigationConfig, referralInfo?: BiReferralInfo) => void;
3582
+ /**
3583
+ * A Multi-Service Appointment's step of navigateToNextPage, reporting the slot selections
3584
+ * through `reportBi`, so the calendar's Next reports them as the calendar.
3585
+ */
3586
+ navigateToMultiServiceForm: (reportBi: ReportBi) => void;
3587
+ resolveNextPageHref: (config?: ServiceSelectionNavigationConfig) => string | null;
3588
+ /** True from navigateToNextPage() until the navigation settles; further calls do nothing. */
3589
+ isNavigating: boolean;
3590
+ /** Opens the preferences Lightbox; rejects if it can't, so the caller can fall back. */
3591
+ openPreferences: () => Promise<void>;
3592
+ multiServiceAppointmentsEnabled: boolean;
3593
+ /** 2+ services in the Booking Preferences, so no single service loads. */
3594
+ isMultiServiceAppointment: boolean;
3595
+ /** One per Booking Preferences entry, in order (may repeat). Empty if none or failed. */
3596
+ multiServiceAppointmentServices: Service[];
3597
+ /** VARIED services only, by service id. */
3598
+ multiServiceAppointmentOptionsAndVariants: Record<string, ServiceOptionsAndVariants>;
3599
+ multiServiceAppointmentVariantsStatus: 'loading' | 'ready' | 'error';
3600
+ bookingsSettingsLoading: boolean;
3601
+ /**
3602
+ * Reschedule mode: the URL names a booking (`bookingId`) or a token. Set on the server render
3603
+ * too, from the URL; the booking itself loads in the browser.
3604
+ */
3605
+ reschedule: Reschedule | null;
3606
+ /**
3607
+ * Moves the booking to the picked time, then returns to `rescheduleRedirectUrl`, else My
3608
+ * Bookings. `succeeded`: moved with nowhere to go (or the manage-booking page, or a failed
3609
+ * return), so the caller confirms it in place, as OOI.
3610
+ */
3611
+ rescheduleBooking: () => Promise<RescheduleResult>;
3612
+ /** The success dialog's way out, as OOI's: the home page. */
3613
+ goHomeAfterReschedule: () => void;
3614
+ /**
3615
+ * The booking can move to the picked time: it is bookable, its staff is settled, and the
3616
+ * booking's pricing plan covers it.
3617
+ */
3618
+ canRescheduleToPick: boolean;
3619
+ }
3620
+ type RescheduleResult = {
3621
+ outcome: 'navigated' | 'failed';
3622
+ } | ({
3623
+ outcome: 'succeeded';
3624
+ } & RescheduledSlot);
3625
+ type ReportBi = ReturnType<typeof useBiLogger>;
3626
+ declare const serviceContext: React.Context<ServiceContextValue | null>;
3627
+ declare const SERVICE_CONTEXT_MISSING_PROVIDER_ERROR = "useServiceContext must be used within ServiceContextProvider";
3628
+ /** Reads the service state; returns null instead of throwing when `optional` is true and no provider is above. */
3629
+ declare function useServiceContext(optional: true): ServiceContextValue | null;
3630
+ /** Reads the service state; throws when no ServiceContextProvider is above. */
3631
+ declare function useServiceContext(optional?: false): ServiceContextValue;
3632
+ /** `multi`: 2+ services in the Booking Preferences. `none`: nothing asked for, not an error. */
3633
+ type ServiceTarget = {
3634
+ by: 'slug' | 'id';
3635
+ value: string;
3636
+ } | {
3637
+ by: 'multi';
3638
+ serviceIds: string[];
3639
+ } | {
3640
+ by: 'none';
3641
+ };
3642
+ declare function resolveServiceTarget(urlSlug: string | null, prefs: BookingPreferences | null, pickerServiceId?: string): ServiceTarget;
3643
+ /** The `servicePicker` panel control's WQL filter: `{ serviceId: { $eq: '<service-id>' } }`. */
3644
+ interface ServicePickerFilter {
3645
+ serviceId?: {
3646
+ $eq?: string;
3647
+ };
3648
+ }
3649
+ /** Props accepted by {@link ServiceContextProvider}. */
3650
+ interface ServiceContextProviderProps {
3651
+ serviceData?: Partial<ServiceItem>;
3652
+ servicePicker?: ServicePickerFilter;
3653
+ refreshSignal?: number;
3654
+ /** Set by the editor entry on its canvas (not preview), which never enters reschedule mode. */
3655
+ editingSurface?: boolean;
3656
+ children: ReactNode;
3657
+ }
3658
+ /** Loads a service from a services-list item, else from the page URL, else from the service picker, and holds the booking selection for it (or for a multi-service appointment's services). */
3659
+ declare function ServiceContextProvider({
3660
+ serviceData,
3661
+ servicePicker,
3662
+ refreshSignal,
3663
+ editingSurface,
3664
+ children
3665
+ }: ServiceContextProviderProps): React.JSX.Element;
3666
+
3667
+ export { type RescheduleResult, SERVICE_CONTEXT_MISSING_PROVIDER_ERROR, ServiceContextProvider, type ServiceContextProviderProps, type ServiceContextValue, ServiceContextProvider as default, resolveServiceTarget, serviceContext, useServiceContext };