@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.
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +6 -2
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.js +14 -12
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +6 -2
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +14 -12
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +6 -6
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +39 -12
- package/build/cjs/src/bookings-calendar-v1-session.types.js +100 -88
- package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +40 -14
- package/build/cjs/src/bookings-calendar-v1-session.universal.js +100 -88
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +60 -19
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js +160 -141
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +59 -19
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +160 -141
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +42 -13
- package/build/cjs/src/bookings-calendar-v2-session-view.types.js +111 -98
- package/build/cjs/src/bookings-calendar-v2-session-view.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +42 -13
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +111 -98
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +2 -2
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +67 -21
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +169 -148
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +67 -22
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +169 -148
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +44 -11
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js +87 -76
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +43 -11
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +87 -76
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +9 -9
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +83 -27
- package/build/cjs/src/bookings-services-v2-service.types.js +217 -190
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +83 -28
- package/build/cjs/src/bookings-services-v2-service.universal.js +217 -190
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.public.d.ts +1 -1
- package/build/cjs/src/bookings-v2-attendance.types.d.ts +11 -2
- package/build/cjs/src/bookings-v2-attendance.types.js +13 -11
- package/build/cjs/src/bookings-v2-attendance.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.universal.d.ts +11 -3
- package/build/cjs/src/bookings-v2-attendance.universal.js +13 -11
- package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +46 -12
- package/build/cjs/src/bookings-v2-booking.types.js +97 -85
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +45 -12
- package/build/cjs/src/bookings-v2-booking.universal.js +97 -85
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +37 -9
- package/build/cjs/src/bookings-v2-price-info.types.js +74 -65
- package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +37 -9
- package/build/cjs/src/bookings-v2-price-info.universal.js +74 -65
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +6 -2
- package/build/es/src/bookings-availability-v1-slot-availability.types.js +14 -12
- package/build/es/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +6 -2
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js +14 -12
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.public.d.ts +6 -6
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +39 -12
- package/build/es/src/bookings-calendar-v1-session.types.js +100 -88
- package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +40 -14
- package/build/es/src/bookings-calendar-v1-session.universal.js +100 -88
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +60 -19
- package/build/es/src/bookings-calendar-v2-external-calendar.types.js +160 -141
- package/build/es/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +59 -19
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +160 -141
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +42 -13
- package/build/es/src/bookings-calendar-v2-session-view.types.js +111 -98
- package/build/es/src/bookings-calendar-v2-session-view.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +42 -13
- package/build/es/src/bookings-calendar-v2-session-view.universal.js +111 -98
- package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +2 -2
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +67 -21
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js +169 -148
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +67 -22
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +169 -148
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +44 -11
- package/build/es/src/bookings-reader-v2-extended-booking.types.js +87 -76
- package/build/es/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +43 -11
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js +87 -76
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +9 -9
- package/build/es/src/bookings-services-v2-service.types.d.ts +83 -27
- package/build/es/src/bookings-services-v2-service.types.js +217 -190
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +83 -28
- package/build/es/src/bookings-services-v2-service.universal.js +217 -190
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.public.d.ts +1 -1
- package/build/es/src/bookings-v2-attendance.types.d.ts +11 -2
- package/build/es/src/bookings-v2-attendance.types.js +13 -11
- package/build/es/src/bookings-v2-attendance.types.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.universal.d.ts +11 -3
- package/build/es/src/bookings-v2-attendance.universal.js +13 -11
- package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +46 -12
- package/build/es/src/bookings-v2-booking.types.js +97 -85
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +45 -12
- package/build/es/src/bookings-v2-booking.universal.js +97 -85
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +37 -9
- package/build/es/src/bookings-v2-price-info.types.js +74 -65
- package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +37 -9
- package/build/es/src/bookings-v2-price-info.universal.js +74 -65
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -90,7 +90,7 @@ export interface Service {
|
|
|
90
90
|
*/
|
|
91
91
|
revision?: string | null;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
declare enum ServiceTypeEnum {
|
|
94
94
|
UNKNOWN_SERVICE_TYPE = "UNKNOWN_SERVICE_TYPE",
|
|
95
95
|
/** The service is an appointment. */
|
|
96
96
|
APPOINTMENT = "APPOINTMENT",
|
|
@@ -99,6 +99,8 @@ export declare enum ServiceType {
|
|
|
99
99
|
/** The service is a course. */
|
|
100
100
|
COURSE = "COURSE"
|
|
101
101
|
}
|
|
102
|
+
declare type ServiceType = `${ServiceTypeEnum}`;
|
|
103
|
+
export { ServiceTypeEnum as ServiceType };
|
|
102
104
|
export interface Media {
|
|
103
105
|
/** Media items associated with the service. */
|
|
104
106
|
items?: MediaItem[];
|
|
@@ -200,7 +202,7 @@ export interface PaymentRateOneOf {
|
|
|
200
202
|
*/
|
|
201
203
|
varied?: VariedPayment;
|
|
202
204
|
}
|
|
203
|
-
|
|
205
|
+
declare enum RateTypeEnum {
|
|
204
206
|
UNKNOWN_RATE_TYPE = "UNKNOWN_RATE_TYPE",
|
|
205
207
|
/** The service has a fixed price. */
|
|
206
208
|
FIXED = "FIXED",
|
|
@@ -211,6 +213,8 @@ export declare enum RateType {
|
|
|
211
213
|
/** This service is offered free of charge. */
|
|
212
214
|
NO_FEE = "NO_FEE"
|
|
213
215
|
}
|
|
216
|
+
declare type RateType = `${RateTypeEnum}`;
|
|
217
|
+
export { RateTypeEnum as RateType };
|
|
214
218
|
export interface FixedPayment {
|
|
215
219
|
/**
|
|
216
220
|
* The fixed price required to book the service.
|
|
@@ -322,7 +326,7 @@ export interface LocationOptionsOneOf {
|
|
|
322
326
|
/** The service is offered at a custom location. */
|
|
323
327
|
custom?: CustomLocationOptions;
|
|
324
328
|
}
|
|
325
|
-
|
|
329
|
+
declare enum LocationTypeEnum {
|
|
326
330
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
|
327
331
|
/** 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). */
|
|
328
332
|
CUSTOM = "CUSTOM",
|
|
@@ -331,6 +335,8 @@ export declare enum LocationType {
|
|
|
331
335
|
/** The location can be determined by the customer and is not set up beforehand. This is applicable to services of type `APPOINTMENT` only. */
|
|
332
336
|
CUSTOMER = "CUSTOMER"
|
|
333
337
|
}
|
|
338
|
+
declare type LocationType = `${LocationTypeEnum}`;
|
|
339
|
+
export { LocationTypeEnum as LocationType };
|
|
334
340
|
export interface Address extends AddressStreetOneOf {
|
|
335
341
|
/** Street name and number. */
|
|
336
342
|
streetAddress?: StreetAddress;
|
|
@@ -918,13 +924,14 @@ export interface GetServiceRequest {
|
|
|
918
924
|
/** ID of the service to retrieve. */
|
|
919
925
|
serviceId: string;
|
|
920
926
|
}
|
|
921
|
-
|
|
927
|
+
declare enum RequestedFieldsEnum {
|
|
922
928
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
923
929
|
/** When passed, `service.staff_members` is returned */
|
|
924
930
|
STAFF_MEMBER_DETAILS = "STAFF_MEMBER_DETAILS",
|
|
925
931
|
/** When passed, `service.service_resources.resource_type.name` is returned */
|
|
926
932
|
RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS"
|
|
927
933
|
}
|
|
934
|
+
export { RequestedFieldsEnum as RequestedFields };
|
|
928
935
|
export interface GetServiceResponse {
|
|
929
936
|
/** The retrieved service. */
|
|
930
937
|
service?: Service;
|
|
@@ -1083,10 +1090,12 @@ export interface Sorting {
|
|
|
1083
1090
|
/** Sort order. */
|
|
1084
1091
|
order?: SortOrder;
|
|
1085
1092
|
}
|
|
1086
|
-
|
|
1093
|
+
declare enum SortOrderEnum {
|
|
1087
1094
|
ASC = "ASC",
|
|
1088
1095
|
DESC = "DESC"
|
|
1089
1096
|
}
|
|
1097
|
+
declare type SortOrder = `${SortOrderEnum}`;
|
|
1098
|
+
export { SortOrderEnum as SortOrder };
|
|
1090
1099
|
export interface Paging {
|
|
1091
1100
|
/** Number of items to load. */
|
|
1092
1101
|
limit?: number | null;
|
|
@@ -1228,17 +1237,21 @@ export interface Category {
|
|
|
1228
1237
|
/** Sorting order of the category for Wix Bookings UI. */
|
|
1229
1238
|
sortOrder?: number | null;
|
|
1230
1239
|
}
|
|
1231
|
-
|
|
1240
|
+
declare enum StatusEnum {
|
|
1232
1241
|
/** Default status. */
|
|
1233
1242
|
CREATED = "CREATED",
|
|
1234
1243
|
/** Category is deleted. */
|
|
1235
1244
|
DELETED = "DELETED"
|
|
1236
1245
|
}
|
|
1237
|
-
|
|
1246
|
+
declare type Status = `${StatusEnum}`;
|
|
1247
|
+
export { StatusEnum as Status };
|
|
1248
|
+
declare enum EventEnum {
|
|
1238
1249
|
Updated = "Updated",
|
|
1239
1250
|
Deleted = "Deleted",
|
|
1240
1251
|
Created = "Created"
|
|
1241
1252
|
}
|
|
1253
|
+
declare type Event = `${EventEnum}`;
|
|
1254
|
+
export { EventEnum as Event };
|
|
1242
1255
|
export interface Empty {
|
|
1243
1256
|
}
|
|
1244
1257
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1458,7 +1471,7 @@ export interface Interval {
|
|
|
1458
1471
|
/** The duration of the interval in minutes. Required. Part of the session end time calculation. minimum: 1, maximum: 86400. */
|
|
1459
1472
|
duration?: number;
|
|
1460
1473
|
}
|
|
1461
|
-
|
|
1474
|
+
declare enum DayEnum {
|
|
1462
1475
|
/** Undefined. */
|
|
1463
1476
|
UNDEFINED = "UNDEFINED",
|
|
1464
1477
|
/** Monday. */
|
|
@@ -1476,6 +1489,8 @@ export declare enum Day {
|
|
|
1476
1489
|
/** Sunday. */
|
|
1477
1490
|
SUN = "SUN"
|
|
1478
1491
|
}
|
|
1492
|
+
declare type Day = `${DayEnum}`;
|
|
1493
|
+
export { DayEnum as Day };
|
|
1479
1494
|
export interface Frequency {
|
|
1480
1495
|
/** 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. */
|
|
1481
1496
|
repetition?: number | null;
|
|
@@ -1503,14 +1518,16 @@ export interface LinkedSchedule {
|
|
|
1503
1518
|
*/
|
|
1504
1519
|
scheduleOwnerId?: string;
|
|
1505
1520
|
}
|
|
1506
|
-
|
|
1521
|
+
declare enum TransparencyEnum {
|
|
1507
1522
|
UNDEFINED = "UNDEFINED",
|
|
1508
1523
|
/** The schedule can have available slots during the session. */
|
|
1509
1524
|
FREE = "FREE",
|
|
1510
1525
|
/** The schedule cannot have available slots during the session. Default value. */
|
|
1511
1526
|
BUSY = "BUSY"
|
|
1512
1527
|
}
|
|
1513
|
-
|
|
1528
|
+
declare type Transparency = `${TransparencyEnum}`;
|
|
1529
|
+
export { TransparencyEnum as Transparency };
|
|
1530
|
+
declare enum RecurringIntervalTypeEnum {
|
|
1514
1531
|
/** The default value. Sessions for this interval will be of type EVENT. */
|
|
1515
1532
|
UNDEFINED = "UNDEFINED",
|
|
1516
1533
|
/** A recurring interval of events */
|
|
@@ -1520,6 +1537,8 @@ export declare enum RecurringIntervalType {
|
|
|
1520
1537
|
/** A recurring interval for availability */
|
|
1521
1538
|
AVAILABILITY = "AVAILABILITY"
|
|
1522
1539
|
}
|
|
1540
|
+
declare type RecurringIntervalType = `${RecurringIntervalTypeEnum}`;
|
|
1541
|
+
export { RecurringIntervalTypeEnum as RecurringIntervalType };
|
|
1523
1542
|
export interface V1Location {
|
|
1524
1543
|
/**
|
|
1525
1544
|
* Location type.
|
|
@@ -1534,12 +1553,14 @@ export interface V1Location {
|
|
|
1534
1553
|
/** 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. */
|
|
1535
1554
|
customAddress?: CommonAddress;
|
|
1536
1555
|
}
|
|
1537
|
-
|
|
1556
|
+
declare enum LocationLocationTypeEnum {
|
|
1538
1557
|
UNDEFINED = "UNDEFINED",
|
|
1539
1558
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
1540
1559
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
1541
1560
|
CUSTOM = "CUSTOM"
|
|
1542
1561
|
}
|
|
1562
|
+
declare type LocationLocationType = `${LocationLocationTypeEnum}`;
|
|
1563
|
+
export { LocationLocationTypeEnum as LocationLocationType };
|
|
1543
1564
|
/** Physical address */
|
|
1544
1565
|
export interface CommonAddress extends CommonAddressStreetOneOf {
|
|
1545
1566
|
/** Street name, number and apartment number. */
|
|
@@ -1653,12 +1674,15 @@ export interface LocationsLocation {
|
|
|
1653
1674
|
locationTypes?: LocationsLocationType[];
|
|
1654
1675
|
}
|
|
1655
1676
|
/** For future use */
|
|
1656
|
-
|
|
1677
|
+
declare enum LocationStatusEnum {
|
|
1657
1678
|
ACTIVE = "ACTIVE",
|
|
1658
1679
|
INACTIVE = "INACTIVE"
|
|
1659
1680
|
}
|
|
1660
1681
|
/** For future use */
|
|
1661
|
-
|
|
1682
|
+
declare type LocationStatus = `${LocationStatusEnum}`;
|
|
1683
|
+
export { LocationStatusEnum as LocationStatus };
|
|
1684
|
+
/** For future use */
|
|
1685
|
+
declare enum LocationsLocationTypeEnum {
|
|
1662
1686
|
UNKNOWN = "UNKNOWN",
|
|
1663
1687
|
BRANCH = "BRANCH",
|
|
1664
1688
|
OFFICES = "OFFICES",
|
|
@@ -1666,6 +1690,9 @@ export declare enum LocationsLocationType {
|
|
|
1666
1690
|
HEADQUARTERS = "HEADQUARTERS",
|
|
1667
1691
|
INVENTORY = "INVENTORY"
|
|
1668
1692
|
}
|
|
1693
|
+
/** For future use */
|
|
1694
|
+
declare type LocationsLocationType = `${LocationsLocationTypeEnum}`;
|
|
1695
|
+
export { LocationsLocationTypeEnum as LocationsLocationType };
|
|
1669
1696
|
export interface LocationsAddress {
|
|
1670
1697
|
/** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
1671
1698
|
country?: string | null;
|
|
@@ -1725,7 +1752,7 @@ export interface TimePeriod {
|
|
|
1725
1752
|
closeTime?: string;
|
|
1726
1753
|
}
|
|
1727
1754
|
/** Enumerates the days of the week. */
|
|
1728
|
-
|
|
1755
|
+
declare enum DayOfWeekEnum {
|
|
1729
1756
|
MONDAY = "MONDAY",
|
|
1730
1757
|
TUESDAY = "TUESDAY",
|
|
1731
1758
|
WEDNESDAY = "WEDNESDAY",
|
|
@@ -1734,6 +1761,9 @@ export declare enum DayOfWeek {
|
|
|
1734
1761
|
SATURDAY = "SATURDAY",
|
|
1735
1762
|
SUNDAY = "SUNDAY"
|
|
1736
1763
|
}
|
|
1764
|
+
/** Enumerates the days of the week. */
|
|
1765
|
+
declare type DayOfWeek = `${DayOfWeekEnum}`;
|
|
1766
|
+
export { DayOfWeekEnum as DayOfWeek };
|
|
1737
1767
|
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
1738
1768
|
export interface SpecialHourPeriod {
|
|
1739
1769
|
/** 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). */
|
|
@@ -1850,7 +1880,7 @@ export interface Participant {
|
|
|
1850
1880
|
*/
|
|
1851
1881
|
inherited?: boolean;
|
|
1852
1882
|
}
|
|
1853
|
-
|
|
1883
|
+
declare enum ApprovalStatusEnum {
|
|
1854
1884
|
/** Default. */
|
|
1855
1885
|
UNDEFINED = "UNDEFINED",
|
|
1856
1886
|
/** Pending business approval. */
|
|
@@ -1860,19 +1890,23 @@ export declare enum ApprovalStatus {
|
|
|
1860
1890
|
/** Declined by the business. */
|
|
1861
1891
|
DECLINED = "DECLINED"
|
|
1862
1892
|
}
|
|
1893
|
+
declare type ApprovalStatus = `${ApprovalStatusEnum}`;
|
|
1894
|
+
export { ApprovalStatusEnum as ApprovalStatus };
|
|
1863
1895
|
export interface ExternalCalendarOverrides {
|
|
1864
1896
|
/** Synced title of the external calendar event. */
|
|
1865
1897
|
title?: string | null;
|
|
1866
1898
|
/** Synced description of the external calendar event. */
|
|
1867
1899
|
description?: string | null;
|
|
1868
1900
|
}
|
|
1869
|
-
|
|
1901
|
+
declare enum ScheduleStatusEnum {
|
|
1870
1902
|
UNDEFINED = "UNDEFINED",
|
|
1871
1903
|
/** The default value when the schedule is created. */
|
|
1872
1904
|
CREATED = "CREATED",
|
|
1873
1905
|
/** The schedule has been canceled. */
|
|
1874
1906
|
CANCELLED = "CANCELLED"
|
|
1875
1907
|
}
|
|
1908
|
+
declare type ScheduleStatus = `${ScheduleStatusEnum}`;
|
|
1909
|
+
export { ScheduleStatusEnum as ScheduleStatus };
|
|
1876
1910
|
export interface Version {
|
|
1877
1911
|
/** Schedule version number, updated each time the schedule is updated. */
|
|
1878
1912
|
scheduleVersion?: number | null;
|
|
@@ -1910,13 +1944,15 @@ export interface CalendarConference {
|
|
|
1910
1944
|
/** ID of the account owner in the video conferencing service. */
|
|
1911
1945
|
accountOwnerId?: string | null;
|
|
1912
1946
|
}
|
|
1913
|
-
|
|
1947
|
+
declare enum ConferenceTypeEnum {
|
|
1914
1948
|
UNDEFINED = "UNDEFINED",
|
|
1915
1949
|
/** API-generated online meeting. */
|
|
1916
1950
|
ONLINE_MEETING_PROVIDER = "ONLINE_MEETING_PROVIDER",
|
|
1917
1951
|
/** User-defined meeting. */
|
|
1918
1952
|
CUSTOM = "CUSTOM"
|
|
1919
1953
|
}
|
|
1954
|
+
declare type ConferenceType = `${ConferenceTypeEnum}`;
|
|
1955
|
+
export { ConferenceTypeEnum as ConferenceType };
|
|
1920
1956
|
export interface ScheduleUpdated {
|
|
1921
1957
|
/** The old schedule before the update. */
|
|
1922
1958
|
oldSchedule?: V1Schedule;
|
|
@@ -2142,7 +2178,7 @@ export interface ExternalCalendarInfo {
|
|
|
2142
2178
|
/** The external calendar type (e.g. Google Calendar, iCal, etc). */
|
|
2143
2179
|
calendarType?: CalendarType;
|
|
2144
2180
|
}
|
|
2145
|
-
|
|
2181
|
+
declare enum CalendarTypeEnum {
|
|
2146
2182
|
UNDEFINED = "UNDEFINED",
|
|
2147
2183
|
GOOGLE = "GOOGLE",
|
|
2148
2184
|
I_CAL = "I_CAL",
|
|
@@ -2153,7 +2189,9 @@ export declare enum CalendarType {
|
|
|
2153
2189
|
MICROSOFT = "MICROSOFT",
|
|
2154
2190
|
OTHER = "OTHER"
|
|
2155
2191
|
}
|
|
2156
|
-
|
|
2192
|
+
declare type CalendarType = `${CalendarTypeEnum}`;
|
|
2193
|
+
export { CalendarTypeEnum as CalendarType };
|
|
2194
|
+
declare enum SessionStatusEnum {
|
|
2157
2195
|
UNDEFINED = "UNDEFINED",
|
|
2158
2196
|
/** The session is confirmed. Default status. */
|
|
2159
2197
|
CONFIRMED = "CONFIRMED",
|
|
@@ -2164,7 +2202,9 @@ export declare enum SessionStatus {
|
|
|
2164
2202
|
*/
|
|
2165
2203
|
CANCELLED = "CANCELLED"
|
|
2166
2204
|
}
|
|
2167
|
-
|
|
2205
|
+
declare type SessionStatus = `${SessionStatusEnum}`;
|
|
2206
|
+
export { SessionStatusEnum as SessionStatus };
|
|
2207
|
+
declare enum SessionTypeEnum {
|
|
2168
2208
|
UNDEFINED = "UNDEFINED",
|
|
2169
2209
|
/**
|
|
2170
2210
|
* The session creates an event on the calendar for the owner of the schedule that the session belongs to.
|
|
@@ -2178,6 +2218,8 @@ export declare enum SessionType {
|
|
|
2178
2218
|
/** Deprecated. The session represents a resource's available hours. please use WORKING_HOURS */
|
|
2179
2219
|
AVAILABILITY = "AVAILABILITY"
|
|
2180
2220
|
}
|
|
2221
|
+
declare type SessionType = `${SessionTypeEnum}`;
|
|
2222
|
+
export { SessionTypeEnum as SessionType };
|
|
2181
2223
|
export interface SessionVersion {
|
|
2182
2224
|
/** Incremental version number, which is updated on each change to the session or on changes affecting the session. */
|
|
2183
2225
|
number?: string | null;
|
|
@@ -2328,7 +2370,7 @@ export interface Resource {
|
|
|
2328
2370
|
*/
|
|
2329
2371
|
wixUserId?: string | null;
|
|
2330
2372
|
}
|
|
2331
|
-
|
|
2373
|
+
declare enum ResourceStatusEnum {
|
|
2332
2374
|
UNDEFINED = "UNDEFINED",
|
|
2333
2375
|
/** Default status. */
|
|
2334
2376
|
CREATED = "CREATED",
|
|
@@ -2337,17 +2379,21 @@ export declare enum ResourceStatus {
|
|
|
2337
2379
|
/** The resource was updated. */
|
|
2338
2380
|
UPDATED = "UPDATED"
|
|
2339
2381
|
}
|
|
2382
|
+
declare type ResourceStatus = `${ResourceStatusEnum}`;
|
|
2383
|
+
export { ResourceStatusEnum as ResourceStatus };
|
|
2340
2384
|
export interface BusinessLocation {
|
|
2341
2385
|
/** The ID of the business location. Has to be non-empty */
|
|
2342
2386
|
locationId?: string;
|
|
2343
2387
|
}
|
|
2344
|
-
|
|
2388
|
+
declare enum ResourceNotificationEventEnum {
|
|
2345
2389
|
UNDEFINED = "UNDEFINED",
|
|
2346
2390
|
Updated = "Updated",
|
|
2347
2391
|
Deleted = "Deleted",
|
|
2348
2392
|
Created = "Created",
|
|
2349
2393
|
Schedule_Updated = "Schedule_Updated"
|
|
2350
2394
|
}
|
|
2395
|
+
declare type ResourceNotificationEvent = `${ResourceNotificationEventEnum}`;
|
|
2396
|
+
export { ResourceNotificationEventEnum as ResourceNotificationEvent };
|
|
2351
2397
|
export interface BenefitNotification {
|
|
2352
2398
|
/** Plan unique ID */
|
|
2353
2399
|
planId?: string;
|
|
@@ -2399,7 +2445,7 @@ export interface DiscountDiscountOneOf {
|
|
|
2399
2445
|
/** Absolute amount discount */
|
|
2400
2446
|
moneyOffAmount?: string;
|
|
2401
2447
|
}
|
|
2402
|
-
|
|
2448
|
+
declare enum BenefitTypeEnum {
|
|
2403
2449
|
/** Should never be used */
|
|
2404
2450
|
UNDEFINED = "UNDEFINED",
|
|
2405
2451
|
/** Limited benefit type */
|
|
@@ -2407,6 +2453,8 @@ export declare enum BenefitType {
|
|
|
2407
2453
|
/** Unlimited benefit type */
|
|
2408
2454
|
UNLIMITED = "UNLIMITED"
|
|
2409
2455
|
}
|
|
2456
|
+
declare type BenefitType = `${BenefitTypeEnum}`;
|
|
2457
|
+
export { BenefitTypeEnum as BenefitType };
|
|
2410
2458
|
export interface Behavior extends BehaviorBehaviorOneOf {
|
|
2411
2459
|
/** Entry pass for resources, e.g. a ticket for Bookings service or a ticket for Events. */
|
|
2412
2460
|
defaultBehavior?: EntryPass;
|
|
@@ -2420,11 +2468,13 @@ export interface BehaviorBehaviorOneOf {
|
|
|
2420
2468
|
/** Discount applied to paid resources */
|
|
2421
2469
|
discount?: Discount;
|
|
2422
2470
|
}
|
|
2423
|
-
|
|
2471
|
+
declare enum BenefitNotificationEventEnum {
|
|
2424
2472
|
Updated = "Updated",
|
|
2425
2473
|
Deleted = "Deleted",
|
|
2426
2474
|
Created = "Created"
|
|
2427
2475
|
}
|
|
2476
|
+
declare type BenefitNotificationEvent = `${BenefitNotificationEventEnum}`;
|
|
2477
|
+
export { BenefitNotificationEventEnum as BenefitNotificationEvent };
|
|
2428
2478
|
export interface SetServiceLocationsRequest {
|
|
2429
2479
|
/** ID of the service. */
|
|
2430
2480
|
serviceId?: string;
|
|
@@ -2446,7 +2496,7 @@ export interface RemovedLocationSessionsActionActionOptionsOneOf {
|
|
|
2446
2496
|
/** Options related to the action, such as a new location to move existing sessions to. */
|
|
2447
2497
|
moveToLocationOptions?: MoveToNewLocationsOptions;
|
|
2448
2498
|
}
|
|
2449
|
-
|
|
2499
|
+
declare enum ActionEnum {
|
|
2450
2500
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
2451
2501
|
/**
|
|
2452
2502
|
* Keep future sessions at their current location. This is the default.
|
|
@@ -2464,6 +2514,8 @@ export declare enum Action {
|
|
|
2464
2514
|
*/
|
|
2465
2515
|
DELETE = "DELETE"
|
|
2466
2516
|
}
|
|
2517
|
+
declare type Action = `${ActionEnum}`;
|
|
2518
|
+
export { ActionEnum as Action };
|
|
2467
2519
|
export interface MoveToNewLocationsOptions {
|
|
2468
2520
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2469
2521
|
newLocation?: Location;
|
|
@@ -2524,13 +2576,15 @@ export interface ValidateSlugResponse {
|
|
|
2524
2576
|
/** 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`. */
|
|
2525
2577
|
errors?: InvalidSlugError[];
|
|
2526
2578
|
}
|
|
2527
|
-
|
|
2579
|
+
declare enum InvalidSlugErrorEnum {
|
|
2528
2580
|
UNKNOWN_SLUG_ERROR = "UNKNOWN_SLUG_ERROR",
|
|
2529
2581
|
/** The provided slug name contains illegal characters. */
|
|
2530
2582
|
SLUG_CONTAINS_ILLEGAL_CHARACTERS = "SLUG_CONTAINS_ILLEGAL_CHARACTERS",
|
|
2531
2583
|
/** The provided slug name already exists for another service. */
|
|
2532
2584
|
SLUG_ALREADY_EXISTS = "SLUG_ALREADY_EXISTS"
|
|
2533
2585
|
}
|
|
2586
|
+
declare type InvalidSlugError = `${InvalidSlugErrorEnum}`;
|
|
2587
|
+
export { InvalidSlugErrorEnum as InvalidSlugError };
|
|
2534
2588
|
export interface CloneServiceRequest {
|
|
2535
2589
|
/** ID of a source service */
|
|
2536
2590
|
sourceServiceId?: string;
|
|
@@ -2549,7 +2603,7 @@ export interface CloneServiceResponse {
|
|
|
2549
2603
|
/** List of entity types that we failed to clone */
|
|
2550
2604
|
errors?: CloneErrors[];
|
|
2551
2605
|
}
|
|
2552
|
-
|
|
2606
|
+
declare enum CloneErrorsEnum {
|
|
2553
2607
|
UNKNOWN_CLONE_ERROR = "UNKNOWN_CLONE_ERROR",
|
|
2554
2608
|
/** Failed to clone sessions of active service's schedule */
|
|
2555
2609
|
SESSIONS = "SESSIONS",
|
|
@@ -2560,6 +2614,8 @@ export declare enum CloneErrors {
|
|
|
2560
2614
|
/** Failed to clone pricing plans connected to the source service */
|
|
2561
2615
|
PRICING_PLANS = "PRICING_PLANS"
|
|
2562
2616
|
}
|
|
2617
|
+
declare type CloneErrors = `${CloneErrorsEnum}`;
|
|
2618
|
+
export { CloneErrorsEnum as CloneErrors };
|
|
2563
2619
|
export interface CreateServiceResponseNonNullableFields {
|
|
2564
2620
|
service?: {
|
|
2565
2621
|
type: ServiceType;
|
|
@@ -3330,4 +3386,3 @@ export interface ServicesQueryBuilder {
|
|
|
3330
3386
|
/** @documentationMaturity preview */
|
|
3331
3387
|
find: () => Promise<ServicesQueryResult>;
|
|
3332
3388
|
}
|
|
3333
|
-
export {};
|