@wix/bookings 1.0.293 → 1.0.294

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 (129) hide show
  1. package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +6 -2
  2. package/build/cjs/src/bookings-availability-v1-slot-availability.types.js +14 -12
  3. package/build/cjs/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
  4. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +6 -2
  5. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +14 -12
  6. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +6 -6
  8. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +39 -12
  9. package/build/cjs/src/bookings-calendar-v1-session.types.js +100 -88
  10. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
  11. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +40 -14
  12. package/build/cjs/src/bookings-calendar-v1-session.universal.js +100 -88
  13. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  14. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +60 -19
  15. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js +160 -141
  16. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  17. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +59 -19
  18. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +160 -141
  19. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  20. package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +42 -13
  21. package/build/cjs/src/bookings-calendar-v2-session-view.types.js +111 -98
  22. package/build/cjs/src/bookings-calendar-v2-session-view.types.js.map +1 -1
  23. package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +42 -13
  24. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +111 -98
  25. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  26. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +2 -2
  27. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +67 -21
  28. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +169 -148
  29. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  30. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +67 -22
  31. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +169 -148
  32. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  33. package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +44 -11
  34. package/build/cjs/src/bookings-reader-v2-extended-booking.types.js +87 -76
  35. package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
  36. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +43 -11
  37. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +87 -76
  38. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  39. package/build/cjs/src/bookings-services-v2-service.public.d.ts +9 -9
  40. package/build/cjs/src/bookings-services-v2-service.types.d.ts +83 -27
  41. package/build/cjs/src/bookings-services-v2-service.types.js +217 -190
  42. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  43. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +83 -28
  44. package/build/cjs/src/bookings-services-v2-service.universal.js +217 -190
  45. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  46. package/build/cjs/src/bookings-v2-attendance.public.d.ts +1 -1
  47. package/build/cjs/src/bookings-v2-attendance.types.d.ts +11 -2
  48. package/build/cjs/src/bookings-v2-attendance.types.js +13 -11
  49. package/build/cjs/src/bookings-v2-attendance.types.js.map +1 -1
  50. package/build/cjs/src/bookings-v2-attendance.universal.d.ts +11 -3
  51. package/build/cjs/src/bookings-v2-attendance.universal.js +13 -11
  52. package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
  53. package/build/cjs/src/bookings-v2-booking.types.d.ts +46 -12
  54. package/build/cjs/src/bookings-v2-booking.types.js +97 -85
  55. package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
  56. package/build/cjs/src/bookings-v2-booking.universal.d.ts +45 -12
  57. package/build/cjs/src/bookings-v2-booking.universal.js +97 -85
  58. package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
  59. package/build/cjs/src/bookings-v2-price-info.types.d.ts +37 -9
  60. package/build/cjs/src/bookings-v2-price-info.types.js +74 -65
  61. package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
  62. package/build/cjs/src/bookings-v2-price-info.universal.d.ts +37 -9
  63. package/build/cjs/src/bookings-v2-price-info.universal.js +74 -65
  64. package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
  65. package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +6 -2
  66. package/build/es/src/bookings-availability-v1-slot-availability.types.js +14 -12
  67. package/build/es/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
  68. package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +6 -2
  69. package/build/es/src/bookings-availability-v1-slot-availability.universal.js +14 -12
  70. package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  71. package/build/es/src/bookings-calendar-v1-session.public.d.ts +6 -6
  72. package/build/es/src/bookings-calendar-v1-session.types.d.ts +39 -12
  73. package/build/es/src/bookings-calendar-v1-session.types.js +100 -88
  74. package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
  75. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +40 -14
  76. package/build/es/src/bookings-calendar-v1-session.universal.js +100 -88
  77. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  78. package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +60 -19
  79. package/build/es/src/bookings-calendar-v2-external-calendar.types.js +160 -141
  80. package/build/es/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  81. package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +59 -19
  82. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +160 -141
  83. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  84. package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +42 -13
  85. package/build/es/src/bookings-calendar-v2-session-view.types.js +111 -98
  86. package/build/es/src/bookings-calendar-v2-session-view.types.js.map +1 -1
  87. package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +42 -13
  88. package/build/es/src/bookings-calendar-v2-session-view.universal.js +111 -98
  89. package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  90. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +2 -2
  91. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +67 -21
  92. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js +169 -148
  93. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  94. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +67 -22
  95. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +169 -148
  96. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  97. package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +44 -11
  98. package/build/es/src/bookings-reader-v2-extended-booking.types.js +87 -76
  99. package/build/es/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
  100. package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +43 -11
  101. package/build/es/src/bookings-reader-v2-extended-booking.universal.js +87 -76
  102. package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  103. package/build/es/src/bookings-services-v2-service.public.d.ts +9 -9
  104. package/build/es/src/bookings-services-v2-service.types.d.ts +83 -27
  105. package/build/es/src/bookings-services-v2-service.types.js +217 -190
  106. package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
  107. package/build/es/src/bookings-services-v2-service.universal.d.ts +83 -28
  108. package/build/es/src/bookings-services-v2-service.universal.js +217 -190
  109. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  110. package/build/es/src/bookings-v2-attendance.public.d.ts +1 -1
  111. package/build/es/src/bookings-v2-attendance.types.d.ts +11 -2
  112. package/build/es/src/bookings-v2-attendance.types.js +13 -11
  113. package/build/es/src/bookings-v2-attendance.types.js.map +1 -1
  114. package/build/es/src/bookings-v2-attendance.universal.d.ts +11 -3
  115. package/build/es/src/bookings-v2-attendance.universal.js +13 -11
  116. package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
  117. package/build/es/src/bookings-v2-booking.types.d.ts +46 -12
  118. package/build/es/src/bookings-v2-booking.types.js +97 -85
  119. package/build/es/src/bookings-v2-booking.types.js.map +1 -1
  120. package/build/es/src/bookings-v2-booking.universal.d.ts +45 -12
  121. package/build/es/src/bookings-v2-booking.universal.js +97 -85
  122. package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
  123. package/build/es/src/bookings-v2-price-info.types.d.ts +37 -9
  124. package/build/es/src/bookings-v2-price-info.types.js +74 -65
  125. package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
  126. package/build/es/src/bookings-v2-price-info.universal.d.ts +37 -9
  127. package/build/es/src/bookings-v2-price-info.universal.js +74 -65
  128. package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
  129. package/package.json +2 -2
@@ -4,7 +4,7 @@ export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function createService(httpClient: HttpClient): (service: Service) => Promise<Service & {
7
- type: import("./bookings-services-v2-service.universal").ServiceType;
7
+ type: "UNKNOWN_SERVICE_TYPE" | "APPOINTMENT" | "CLASS" | "COURSE";
8
8
  media?: {
9
9
  items: {
10
10
  image: string;
@@ -51,7 +51,7 @@ export declare function createService(httpClient: HttpClient): (service: Service
51
51
  currency: string;
52
52
  } | undefined;
53
53
  } | undefined;
54
- rateType: import("./bookings-services-v2-service.universal").RateType;
54
+ rateType: "CUSTOM" | "UNKNOWN_RATE_TYPE" | "FIXED" | "VARIED" | "NO_FEE";
55
55
  pricingPlanIds: string[];
56
56
  } | undefined;
57
57
  locations: {
@@ -59,7 +59,7 @@ export declare function createService(httpClient: HttpClient): (service: Service
59
59
  _id: string;
60
60
  name: string;
61
61
  } | undefined;
62
- type: import("./bookings-services-v2-service.universal").LocationType;
62
+ type: "CUSTOM" | "BUSINESS" | "CUSTOMER" | "UNKNOWN_LOCATION_TYPE";
63
63
  }[];
64
64
  bookingPolicy?: {
65
65
  _id: string;
@@ -136,7 +136,7 @@ export declare function createService(httpClient: HttpClient): (service: Service
136
136
  } | undefined;
137
137
  }>;
138
138
  export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<Service & {
139
- type: import("./bookings-services-v2-service.universal").ServiceType;
139
+ type: "UNKNOWN_SERVICE_TYPE" | "APPOINTMENT" | "CLASS" | "COURSE";
140
140
  media?: {
141
141
  items: {
142
142
  image: string;
@@ -183,7 +183,7 @@ export declare function getService(httpClient: HttpClient): (serviceId: string)
183
183
  currency: string;
184
184
  } | undefined;
185
185
  } | undefined;
186
- rateType: import("./bookings-services-v2-service.universal").RateType;
186
+ rateType: "CUSTOM" | "UNKNOWN_RATE_TYPE" | "FIXED" | "VARIED" | "NO_FEE";
187
187
  pricingPlanIds: string[];
188
188
  } | undefined;
189
189
  locations: {
@@ -191,7 +191,7 @@ export declare function getService(httpClient: HttpClient): (serviceId: string)
191
191
  _id: string;
192
192
  name: string;
193
193
  } | undefined;
194
- type: import("./bookings-services-v2-service.universal").LocationType;
194
+ type: "CUSTOM" | "BUSINESS" | "CUSTOMER" | "UNKNOWN_LOCATION_TYPE";
195
195
  }[];
196
196
  bookingPolicy?: {
197
197
  _id: string;
@@ -268,7 +268,7 @@ export declare function getService(httpClient: HttpClient): (serviceId: string)
268
268
  } | undefined;
269
269
  }>;
270
270
  export declare function updateService(httpClient: HttpClient): (_id: string | null, service: UpdateService) => Promise<Service & {
271
- type: import("./bookings-services-v2-service.universal").ServiceType;
271
+ type: "UNKNOWN_SERVICE_TYPE" | "APPOINTMENT" | "CLASS" | "COURSE";
272
272
  media?: {
273
273
  items: {
274
274
  image: string;
@@ -315,7 +315,7 @@ export declare function updateService(httpClient: HttpClient): (_id: string | nu
315
315
  currency: string;
316
316
  } | undefined;
317
317
  } | undefined;
318
- rateType: import("./bookings-services-v2-service.universal").RateType;
318
+ rateType: "CUSTOM" | "UNKNOWN_RATE_TYPE" | "FIXED" | "VARIED" | "NO_FEE";
319
319
  pricingPlanIds: string[];
320
320
  } | undefined;
321
321
  locations: {
@@ -323,7 +323,7 @@ export declare function updateService(httpClient: HttpClient): (_id: string | nu
323
323
  _id: string;
324
324
  name: string;
325
325
  } | undefined;
326
- type: import("./bookings-services-v2-service.universal").LocationType;
326
+ type: "CUSTOM" | "BUSINESS" | "CUSTOMER" | "UNKNOWN_LOCATION_TYPE";
327
327
  }[];
328
328
  bookingPolicy?: {
329
329
  _id: string;
@@ -84,7 +84,7 @@ export interface Service {
84
84
  */
85
85
  revision?: string | null;
86
86
  }
87
- export declare enum ServiceType {
87
+ declare enum ServiceTypeEnum {
88
88
  UNKNOWN_SERVICE_TYPE = "UNKNOWN_SERVICE_TYPE",
89
89
  /** The service is an appointment. */
90
90
  APPOINTMENT = "APPOINTMENT",
@@ -93,6 +93,8 @@ export declare enum ServiceType {
93
93
  /** The service is a course. */
94
94
  COURSE = "COURSE"
95
95
  }
96
+ declare type ServiceType = `${ServiceTypeEnum}`;
97
+ export { ServiceTypeEnum as ServiceType };
96
98
  export interface Media {
97
99
  /** Media items associated with the service. */
98
100
  items?: MediaItem[];
@@ -212,7 +214,7 @@ export interface PaymentRateOneOf {
212
214
  */
213
215
  varied?: VariedPayment;
214
216
  }
215
- export declare enum RateType {
217
+ declare enum RateTypeEnum {
216
218
  UNKNOWN_RATE_TYPE = "UNKNOWN_RATE_TYPE",
217
219
  /** The service has a fixed price. */
218
220
  FIXED = "FIXED",
@@ -223,6 +225,8 @@ export declare enum RateType {
223
225
  /** This service is offered free of charge. */
224
226
  NO_FEE = "NO_FEE"
225
227
  }
228
+ declare type RateType = `${RateTypeEnum}`;
229
+ export { RateTypeEnum as RateType };
226
230
  export interface FixedPayment {
227
231
  /**
228
232
  * The fixed price required to book the service.
@@ -334,7 +338,7 @@ export interface LocationOptionsOneOf {
334
338
  /** The service is offered at a custom location. */
335
339
  custom?: CustomLocationOptions;
336
340
  }
337
- export declare enum LocationType {
341
+ declare enum LocationTypeEnum {
338
342
  UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
339
343
  /** The location is unique to this service and isn't defined as one of the business locations. `CUSTOM` is the equivalent of the `OWNER_CUSTOM` location type in [Schedules & Sessions API](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions). */
340
344
  CUSTOM = "CUSTOM",
@@ -343,6 +347,8 @@ export declare enum LocationType {
343
347
  /** The location can be determined by the customer and is not set up beforehand. This is applicable to services of type `APPOINTMENT` only. */
344
348
  CUSTOMER = "CUSTOMER"
345
349
  }
350
+ declare type LocationType = `${LocationTypeEnum}`;
351
+ export { LocationTypeEnum as LocationType };
346
352
  export interface Address extends AddressStreetOneOf {
347
353
  /** Street name and number. */
348
354
  streetAddress?: StreetAddress;
@@ -936,13 +942,14 @@ export interface GetServiceRequest {
936
942
  /** ID of the service to retrieve. */
937
943
  serviceId: string;
938
944
  }
939
- export declare enum RequestedFields {
945
+ declare enum RequestedFieldsEnum {
940
946
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
941
947
  /** When passed, `service.staff_members` is returned */
942
948
  STAFF_MEMBER_DETAILS = "STAFF_MEMBER_DETAILS",
943
949
  /** When passed, `service.service_resources.resource_type.name` is returned */
944
950
  RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS"
945
951
  }
952
+ export { RequestedFieldsEnum as RequestedFields };
946
953
  export interface GetServiceResponse {
947
954
  /** The retrieved service. */
948
955
  service?: Service;
@@ -1101,10 +1108,12 @@ export interface Sorting {
1101
1108
  /** Sort order. */
1102
1109
  order?: SortOrder;
1103
1110
  }
1104
- export declare enum SortOrder {
1111
+ declare enum SortOrderEnum {
1105
1112
  ASC = "ASC",
1106
1113
  DESC = "DESC"
1107
1114
  }
1115
+ declare type SortOrder = `${SortOrderEnum}`;
1116
+ export { SortOrderEnum as SortOrder };
1108
1117
  export interface Paging {
1109
1118
  /** Number of items to load. */
1110
1119
  limit?: number | null;
@@ -1246,17 +1255,21 @@ export interface Category {
1246
1255
  /** Sorting order of the category for Wix Bookings UI. */
1247
1256
  sortOrder?: number | null;
1248
1257
  }
1249
- export declare enum Status {
1258
+ declare enum StatusEnum {
1250
1259
  /** Default status. */
1251
1260
  CREATED = "CREATED",
1252
1261
  /** Category is deleted. */
1253
1262
  DELETED = "DELETED"
1254
1263
  }
1255
- export declare enum Event {
1264
+ declare type Status = `${StatusEnum}`;
1265
+ export { StatusEnum as Status };
1266
+ declare enum EventEnum {
1256
1267
  Updated = "Updated",
1257
1268
  Deleted = "Deleted",
1258
1269
  Created = "Created"
1259
1270
  }
1271
+ declare type Event = `${EventEnum}`;
1272
+ export { EventEnum as Event };
1260
1273
  export interface Empty {
1261
1274
  }
1262
1275
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1476,7 +1489,7 @@ export interface Interval {
1476
1489
  /** The duration of the interval in minutes. Required. Part of the session end time calculation. minimum: 1, maximum: 86400. */
1477
1490
  duration?: number;
1478
1491
  }
1479
- export declare enum Day {
1492
+ declare enum DayEnum {
1480
1493
  /** Undefined. */
1481
1494
  UNDEFINED = "UNDEFINED",
1482
1495
  /** Monday. */
@@ -1494,6 +1507,8 @@ export declare enum Day {
1494
1507
  /** Sunday. */
1495
1508
  SUN = "SUN"
1496
1509
  }
1510
+ declare type Day = `${DayEnum}`;
1511
+ export { DayEnum as Day };
1497
1512
  export interface Frequency {
1498
1513
  /** The frequency of the recurrence in weeks. i.e. when this value is 4, the interval occurs every 4 weeks. Optional. The default is 1. minimum: 1, maximum: 52. */
1499
1514
  repetition?: number | null;
@@ -1521,14 +1536,16 @@ export interface LinkedSchedule {
1521
1536
  */
1522
1537
  scheduleOwnerId?: string;
1523
1538
  }
1524
- export declare enum Transparency {
1539
+ declare enum TransparencyEnum {
1525
1540
  UNDEFINED = "UNDEFINED",
1526
1541
  /** The schedule can have available slots during the session. */
1527
1542
  FREE = "FREE",
1528
1543
  /** The schedule cannot have available slots during the session. Default value. */
1529
1544
  BUSY = "BUSY"
1530
1545
  }
1531
- export declare enum RecurringIntervalType {
1546
+ declare type Transparency = `${TransparencyEnum}`;
1547
+ export { TransparencyEnum as Transparency };
1548
+ declare enum RecurringIntervalTypeEnum {
1532
1549
  /** The default value. Sessions for this interval will be of type EVENT. */
1533
1550
  UNDEFINED = "UNDEFINED",
1534
1551
  /** A recurring interval of events */
@@ -1538,6 +1555,8 @@ export declare enum RecurringIntervalType {
1538
1555
  /** A recurring interval for availability */
1539
1556
  AVAILABILITY = "AVAILABILITY"
1540
1557
  }
1558
+ declare type RecurringIntervalType = `${RecurringIntervalTypeEnum}`;
1559
+ export { RecurringIntervalTypeEnum as RecurringIntervalType };
1541
1560
  export interface V1Location {
1542
1561
  /**
1543
1562
  * Location type.
@@ -1552,12 +1571,14 @@ export interface V1Location {
1552
1571
  /** Custom address, used when locationType is `"OWNER_CUSTOM"`. Might be used when locationType is `"CUSTOM"` in case the owner sets a custom address for the session which is different from the default. */
1553
1572
  customAddress?: CommonAddress;
1554
1573
  }
1555
- export declare enum LocationLocationType {
1574
+ declare enum LocationLocationTypeEnum {
1556
1575
  UNDEFINED = "UNDEFINED",
1557
1576
  OWNER_BUSINESS = "OWNER_BUSINESS",
1558
1577
  OWNER_CUSTOM = "OWNER_CUSTOM",
1559
1578
  CUSTOM = "CUSTOM"
1560
1579
  }
1580
+ declare type LocationLocationType = `${LocationLocationTypeEnum}`;
1581
+ export { LocationLocationTypeEnum as LocationLocationType };
1561
1582
  /** Physical address */
1562
1583
  export interface CommonAddress extends CommonAddressStreetOneOf {
1563
1584
  /** Street name, number and apartment number. */
@@ -1671,12 +1692,15 @@ export interface LocationsLocation {
1671
1692
  locationTypes?: LocationsLocationType[];
1672
1693
  }
1673
1694
  /** For future use */
1674
- export declare enum LocationStatus {
1695
+ declare enum LocationStatusEnum {
1675
1696
  ACTIVE = "ACTIVE",
1676
1697
  INACTIVE = "INACTIVE"
1677
1698
  }
1678
1699
  /** For future use */
1679
- export declare enum LocationsLocationType {
1700
+ declare type LocationStatus = `${LocationStatusEnum}`;
1701
+ export { LocationStatusEnum as LocationStatus };
1702
+ /** For future use */
1703
+ declare enum LocationsLocationTypeEnum {
1680
1704
  UNKNOWN = "UNKNOWN",
1681
1705
  BRANCH = "BRANCH",
1682
1706
  OFFICES = "OFFICES",
@@ -1684,6 +1708,9 @@ export declare enum LocationsLocationType {
1684
1708
  HEADQUARTERS = "HEADQUARTERS",
1685
1709
  INVENTORY = "INVENTORY"
1686
1710
  }
1711
+ /** For future use */
1712
+ declare type LocationsLocationType = `${LocationsLocationTypeEnum}`;
1713
+ export { LocationsLocationTypeEnum as LocationsLocationType };
1687
1714
  export interface LocationsAddress {
1688
1715
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
1689
1716
  country?: string | null;
@@ -1745,7 +1772,7 @@ export interface TimePeriod {
1745
1772
  closeTime?: string;
1746
1773
  }
1747
1774
  /** Enumerates the days of the week. */
1748
- export declare enum DayOfWeek {
1775
+ declare enum DayOfWeekEnum {
1749
1776
  MONDAY = "MONDAY",
1750
1777
  TUESDAY = "TUESDAY",
1751
1778
  WEDNESDAY = "WEDNESDAY",
@@ -1754,6 +1781,9 @@ export declare enum DayOfWeek {
1754
1781
  SATURDAY = "SATURDAY",
1755
1782
  SUNDAY = "SUNDAY"
1756
1783
  }
1784
+ /** Enumerates the days of the week. */
1785
+ declare type DayOfWeek = `${DayOfWeekEnum}`;
1786
+ export { DayOfWeekEnum as DayOfWeek };
1757
1787
  /** Exception to the business's regular hours. The business can be open or closed during the exception. */
1758
1788
  export interface SpecialHourPeriod {
1759
1789
  /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
@@ -1870,7 +1900,7 @@ export interface Participant {
1870
1900
  */
1871
1901
  inherited?: boolean;
1872
1902
  }
1873
- export declare enum ApprovalStatus {
1903
+ declare enum ApprovalStatusEnum {
1874
1904
  /** Default. */
1875
1905
  UNDEFINED = "UNDEFINED",
1876
1906
  /** Pending business approval. */
@@ -1880,19 +1910,23 @@ export declare enum ApprovalStatus {
1880
1910
  /** Declined by the business. */
1881
1911
  DECLINED = "DECLINED"
1882
1912
  }
1913
+ declare type ApprovalStatus = `${ApprovalStatusEnum}`;
1914
+ export { ApprovalStatusEnum as ApprovalStatus };
1883
1915
  export interface ExternalCalendarOverrides {
1884
1916
  /** Synced title of the external calendar event. */
1885
1917
  title?: string | null;
1886
1918
  /** Synced description of the external calendar event. */
1887
1919
  description?: string | null;
1888
1920
  }
1889
- export declare enum ScheduleStatus {
1921
+ declare enum ScheduleStatusEnum {
1890
1922
  UNDEFINED = "UNDEFINED",
1891
1923
  /** The default value when the schedule is created. */
1892
1924
  CREATED = "CREATED",
1893
1925
  /** The schedule has been canceled. */
1894
1926
  CANCELLED = "CANCELLED"
1895
1927
  }
1928
+ declare type ScheduleStatus = `${ScheduleStatusEnum}`;
1929
+ export { ScheduleStatusEnum as ScheduleStatus };
1896
1930
  export interface Version {
1897
1931
  /** Schedule version number, updated each time the schedule is updated. */
1898
1932
  scheduleVersion?: number | null;
@@ -1930,13 +1964,15 @@ export interface CalendarConference {
1930
1964
  /** ID of the account owner in the video conferencing service. */
1931
1965
  accountOwnerId?: string | null;
1932
1966
  }
1933
- export declare enum ConferenceType {
1967
+ declare enum ConferenceTypeEnum {
1934
1968
  UNDEFINED = "UNDEFINED",
1935
1969
  /** API-generated online meeting. */
1936
1970
  ONLINE_MEETING_PROVIDER = "ONLINE_MEETING_PROVIDER",
1937
1971
  /** User-defined meeting. */
1938
1972
  CUSTOM = "CUSTOM"
1939
1973
  }
1974
+ declare type ConferenceType = `${ConferenceTypeEnum}`;
1975
+ export { ConferenceTypeEnum as ConferenceType };
1940
1976
  export interface ScheduleUpdated {
1941
1977
  /** The old schedule before the update. */
1942
1978
  oldSchedule?: V1Schedule;
@@ -2162,7 +2198,7 @@ export interface ExternalCalendarInfo {
2162
2198
  /** The external calendar type (e.g. Google Calendar, iCal, etc). */
2163
2199
  calendarType?: CalendarType;
2164
2200
  }
2165
- export declare enum CalendarType {
2201
+ declare enum CalendarTypeEnum {
2166
2202
  UNDEFINED = "UNDEFINED",
2167
2203
  GOOGLE = "GOOGLE",
2168
2204
  I_CAL = "I_CAL",
@@ -2173,7 +2209,9 @@ export declare enum CalendarType {
2173
2209
  MICROSOFT = "MICROSOFT",
2174
2210
  OTHER = "OTHER"
2175
2211
  }
2176
- export declare enum SessionStatus {
2212
+ declare type CalendarType = `${CalendarTypeEnum}`;
2213
+ export { CalendarTypeEnum as CalendarType };
2214
+ declare enum SessionStatusEnum {
2177
2215
  UNDEFINED = "UNDEFINED",
2178
2216
  /** The session is confirmed. Default status. */
2179
2217
  CONFIRMED = "CONFIRMED",
@@ -2184,7 +2222,9 @@ export declare enum SessionStatus {
2184
2222
  */
2185
2223
  CANCELLED = "CANCELLED"
2186
2224
  }
2187
- export declare enum SessionType {
2225
+ declare type SessionStatus = `${SessionStatusEnum}`;
2226
+ export { SessionStatusEnum as SessionStatus };
2227
+ declare enum SessionTypeEnum {
2188
2228
  UNDEFINED = "UNDEFINED",
2189
2229
  /**
2190
2230
  * The session creates an event on the calendar for the owner of the schedule that the session belongs to.
@@ -2198,6 +2238,8 @@ export declare enum SessionType {
2198
2238
  /** Deprecated. The session represents a resource's available hours. please use WORKING_HOURS */
2199
2239
  AVAILABILITY = "AVAILABILITY"
2200
2240
  }
2241
+ declare type SessionType = `${SessionTypeEnum}`;
2242
+ export { SessionTypeEnum as SessionType };
2201
2243
  export interface SessionVersion {
2202
2244
  /** Incremental version number, which is updated on each change to the session or on changes affecting the session. */
2203
2245
  number?: string | null;
@@ -2371,7 +2413,7 @@ export interface CommonImage {
2371
2413
  */
2372
2414
  filename?: string | null;
2373
2415
  }
2374
- export declare enum ResourceStatus {
2416
+ declare enum ResourceStatusEnum {
2375
2417
  UNDEFINED = "UNDEFINED",
2376
2418
  /** Default status. */
2377
2419
  CREATED = "CREATED",
@@ -2380,17 +2422,21 @@ export declare enum ResourceStatus {
2380
2422
  /** The resource was updated. */
2381
2423
  UPDATED = "UPDATED"
2382
2424
  }
2425
+ declare type ResourceStatus = `${ResourceStatusEnum}`;
2426
+ export { ResourceStatusEnum as ResourceStatus };
2383
2427
  export interface BusinessLocation {
2384
2428
  /** The ID of the business location. Has to be non-empty */
2385
2429
  locationId?: string;
2386
2430
  }
2387
- export declare enum ResourceNotificationEvent {
2431
+ declare enum ResourceNotificationEventEnum {
2388
2432
  UNDEFINED = "UNDEFINED",
2389
2433
  Updated = "Updated",
2390
2434
  Deleted = "Deleted",
2391
2435
  Created = "Created",
2392
2436
  Schedule_Updated = "Schedule_Updated"
2393
2437
  }
2438
+ declare type ResourceNotificationEvent = `${ResourceNotificationEventEnum}`;
2439
+ export { ResourceNotificationEventEnum as ResourceNotificationEvent };
2394
2440
  export interface BenefitNotification {
2395
2441
  /** Plan unique ID */
2396
2442
  planId?: string;
@@ -2442,7 +2488,7 @@ export interface DiscountDiscountOneOf {
2442
2488
  /** Absolute amount discount */
2443
2489
  moneyOffAmount?: string;
2444
2490
  }
2445
- export declare enum BenefitType {
2491
+ declare enum BenefitTypeEnum {
2446
2492
  /** Should never be used */
2447
2493
  UNDEFINED = "UNDEFINED",
2448
2494
  /** Limited benefit type */
@@ -2450,6 +2496,8 @@ export declare enum BenefitType {
2450
2496
  /** Unlimited benefit type */
2451
2497
  UNLIMITED = "UNLIMITED"
2452
2498
  }
2499
+ declare type BenefitType = `${BenefitTypeEnum}`;
2500
+ export { BenefitTypeEnum as BenefitType };
2453
2501
  export interface Behavior extends BehaviorBehaviorOneOf {
2454
2502
  /** Entry pass for resources, e.g. a ticket for Bookings service or a ticket for Events. */
2455
2503
  defaultBehavior?: EntryPass;
@@ -2463,11 +2511,13 @@ export interface BehaviorBehaviorOneOf {
2463
2511
  /** Discount applied to paid resources */
2464
2512
  discount?: Discount;
2465
2513
  }
2466
- export declare enum BenefitNotificationEvent {
2514
+ declare enum BenefitNotificationEventEnum {
2467
2515
  Updated = "Updated",
2468
2516
  Deleted = "Deleted",
2469
2517
  Created = "Created"
2470
2518
  }
2519
+ declare type BenefitNotificationEvent = `${BenefitNotificationEventEnum}`;
2520
+ export { BenefitNotificationEventEnum as BenefitNotificationEvent };
2471
2521
  export interface SetServiceLocationsRequest {
2472
2522
  /** ID of the service. */
2473
2523
  serviceId?: string;
@@ -2489,7 +2539,7 @@ export interface RemovedLocationSessionsActionActionOptionsOneOf {
2489
2539
  /** Options related to the action, such as a new location to move existing sessions to. */
2490
2540
  moveToLocationOptions?: MoveToNewLocationsOptions;
2491
2541
  }
2492
- export declare enum Action {
2542
+ declare enum ActionEnum {
2493
2543
  UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
2494
2544
  /**
2495
2545
  * Keep future sessions at their current location. This is the default.
@@ -2507,6 +2557,8 @@ export declare enum Action {
2507
2557
  */
2508
2558
  DELETE = "DELETE"
2509
2559
  }
2560
+ declare type Action = `${ActionEnum}`;
2561
+ export { ActionEnum as Action };
2510
2562
  export interface MoveToNewLocationsOptions {
2511
2563
  /** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
2512
2564
  newLocation?: Location;
@@ -2567,13 +2619,15 @@ export interface ValidateSlugResponse {
2567
2619
  /** If the slug is invalid, this field is populated with the reasons why the slug is invalid. Validation errors may include `SLUG_IS_TOO_LONG`, `SLUG_CONTAIN_ILLEGAL_CHARACTERS`, and `SLUG_ALREADY_EXISTS`. */
2568
2620
  errors?: InvalidSlugError[];
2569
2621
  }
2570
- export declare enum InvalidSlugError {
2622
+ declare enum InvalidSlugErrorEnum {
2571
2623
  UNKNOWN_SLUG_ERROR = "UNKNOWN_SLUG_ERROR",
2572
2624
  /** The provided slug name contains illegal characters. */
2573
2625
  SLUG_CONTAINS_ILLEGAL_CHARACTERS = "SLUG_CONTAINS_ILLEGAL_CHARACTERS",
2574
2626
  /** The provided slug name already exists for another service. */
2575
2627
  SLUG_ALREADY_EXISTS = "SLUG_ALREADY_EXISTS"
2576
2628
  }
2629
+ declare type InvalidSlugError = `${InvalidSlugErrorEnum}`;
2630
+ export { InvalidSlugErrorEnum as InvalidSlugError };
2577
2631
  export interface CloneServiceRequest {
2578
2632
  /** ID of a source service */
2579
2633
  sourceServiceId?: string;
@@ -2592,7 +2646,7 @@ export interface CloneServiceResponse {
2592
2646
  /** List of entity types that we failed to clone */
2593
2647
  errors?: CloneErrors[];
2594
2648
  }
2595
- export declare enum CloneErrors {
2649
+ declare enum CloneErrorsEnum {
2596
2650
  UNKNOWN_CLONE_ERROR = "UNKNOWN_CLONE_ERROR",
2597
2651
  /** Failed to clone sessions of active service's schedule */
2598
2652
  SESSIONS = "SESSIONS",
@@ -2603,6 +2657,8 @@ export declare enum CloneErrors {
2603
2657
  /** Failed to clone pricing plans connected to the source service */
2604
2658
  PRICING_PLANS = "PRICING_PLANS"
2605
2659
  }
2660
+ declare type CloneErrors = `${CloneErrorsEnum}`;
2661
+ export { CloneErrorsEnum as CloneErrors };
2606
2662
  export interface CreateServiceResponseNonNullableFields {
2607
2663
  service?: {
2608
2664
  type: ServiceType;