@wix/bookings 1.0.294 → 1.0.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.meta.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.meta.js +5 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.meta.js.map +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +2 -6
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.js +12 -14
- 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 +2 -6
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +17 -15
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.meta.d.ts +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.meta.js +5 -1
- package/build/cjs/src/bookings-calendar-v1-session.meta.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +9 -9
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +12 -39
- package/build/cjs/src/bookings-calendar-v1-session.types.js +88 -100
- package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +14 -40
- package/build/cjs/src/bookings-calendar-v1-session.universal.js +93 -101
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.d.ts +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.js +5 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +2 -2
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +19 -60
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js +141 -160
- 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 +19 -59
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +146 -161
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-feed-event.types.js +13 -13
- package/build/cjs/src/bookings-calendar-v2-session-feed-event.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-feed-event.universal.js +18 -14
- package/build/cjs/src/bookings-calendar-v2-session-feed-event.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.meta.d.ts +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.meta.js +5 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.meta.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +13 -42
- package/build/cjs/src/bookings-calendar-v2-session-view.types.js +98 -111
- 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 +13 -42
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +103 -112
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.meta.d.ts +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.meta.js +5 -1
- package/build/cjs/src/bookings-catalog-v1-resource.meta.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +3 -3
- package/build/cjs/src/bookings-catalog-v1-resource.types.js +13 -13
- package/build/cjs/src/bookings-catalog-v1-resource.types.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js +18 -14
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.d.ts +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.js +5 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +21 -67
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +148 -169
- 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 +22 -67
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +153 -170
- 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.meta.d.ts +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.meta.js +5 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.meta.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.public.d.ts +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +11 -44
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js +76 -87
- 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 +11 -43
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +81 -88
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.meta.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service.meta.js +5 -1
- package/build/cjs/src/bookings-services-v2-service.meta.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +11 -11
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +27 -83
- package/build/cjs/src/bookings-services-v2-service.types.js +190 -217
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +28 -83
- package/build/cjs/src/bookings-services-v2-service.universal.js +195 -218
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v1-category.meta.d.ts +1 -1
- package/build/cjs/src/bookings-v1-category.meta.js +5 -1
- package/build/cjs/src/bookings-v1-category.meta.js.map +1 -1
- package/build/cjs/src/bookings-v1-category.public.d.ts +2 -2
- package/build/cjs/src/bookings-v1-category.types.js +2 -2
- package/build/cjs/src/bookings-v1-category.types.js.map +1 -1
- package/build/cjs/src/bookings-v1-category.universal.js +7 -3
- package/build/cjs/src/bookings-v1-category.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.meta.d.ts +1 -1
- package/build/cjs/src/bookings-v2-attendance.meta.js +5 -1
- package/build/cjs/src/bookings-v2-attendance.meta.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.public.d.ts +2 -2
- package/build/cjs/src/bookings-v2-attendance.types.d.ts +2 -11
- package/build/cjs/src/bookings-v2-attendance.types.js +11 -13
- package/build/cjs/src/bookings-v2-attendance.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.universal.d.ts +3 -11
- package/build/cjs/src/bookings-v2-attendance.universal.js +16 -14
- package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.meta.d.ts +1 -1
- package/build/cjs/src/bookings-v2-booking.meta.js +5 -1
- package/build/cjs/src/bookings-v2-booking.meta.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.public.d.ts +9 -9
- package/build/cjs/src/bookings-v2-booking.types.d.ts +12 -46
- package/build/cjs/src/bookings-v2-booking.types.js +85 -97
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +12 -45
- package/build/cjs/src/bookings-v2-booking.universal.js +90 -98
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.meta.d.ts +1 -1
- package/build/cjs/src/bookings-v2-price-info.meta.js +5 -1
- package/build/cjs/src/bookings-v2-price-info.meta.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +9 -37
- package/build/cjs/src/bookings-v2-price-info.types.js +65 -74
- package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +9 -37
- package/build/cjs/src/bookings-v2-price-info.universal.js +70 -75
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.meta.d.ts +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +2 -6
- package/build/es/src/bookings-availability-v1-slot-availability.types.js +12 -14
- 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 +2 -6
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js +12 -14
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.meta.d.ts +1 -1
- package/build/es/src/bookings-calendar-v1-session.public.d.ts +9 -9
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +12 -39
- package/build/es/src/bookings-calendar-v1-session.types.js +88 -100
- package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +14 -40
- package/build/es/src/bookings-calendar-v1-session.universal.js +88 -100
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.meta.d.ts +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +2 -2
- package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +19 -60
- package/build/es/src/bookings-calendar-v2-external-calendar.types.js +141 -160
- 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 +19 -59
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +141 -160
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-feed-event.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.meta.d.ts +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +13 -42
- package/build/es/src/bookings-calendar-v2-session-view.types.js +98 -111
- 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 +13 -42
- package/build/es/src/bookings-calendar-v2-session-view.universal.js +98 -111
- package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.meta.d.ts +1 -1
- package/build/es/src/bookings-catalog-v1-resource.public.d.ts +3 -3
- package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.meta.d.ts +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +21 -67
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js +148 -169
- 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 +22 -67
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +148 -169
- 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.meta.d.ts +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.public.d.ts +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +11 -44
- package/build/es/src/bookings-reader-v2-extended-booking.types.js +76 -87
- 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 +11 -43
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js +76 -87
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.meta.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +11 -11
- package/build/es/src/bookings-services-v2-service.types.d.ts +27 -83
- package/build/es/src/bookings-services-v2-service.types.js +190 -217
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +28 -83
- package/build/es/src/bookings-services-v2-service.universal.js +190 -217
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v1-category.meta.d.ts +1 -1
- package/build/es/src/bookings-v1-category.public.d.ts +2 -2
- package/build/es/src/bookings-v1-category.universal.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.meta.d.ts +1 -1
- package/build/es/src/bookings-v2-attendance.public.d.ts +2 -2
- package/build/es/src/bookings-v2-attendance.types.d.ts +2 -11
- package/build/es/src/bookings-v2-attendance.types.js +11 -13
- package/build/es/src/bookings-v2-attendance.types.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.universal.d.ts +3 -11
- package/build/es/src/bookings-v2-attendance.universal.js +11 -13
- package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.meta.d.ts +1 -1
- package/build/es/src/bookings-v2-booking.public.d.ts +9 -9
- package/build/es/src/bookings-v2-booking.types.d.ts +12 -46
- package/build/es/src/bookings-v2-booking.types.js +85 -97
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +12 -45
- package/build/es/src/bookings-v2-booking.universal.js +85 -97
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.meta.d.ts +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +9 -37
- package/build/es/src/bookings-v2-price-info.types.js +65 -74
- package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +9 -37
- package/build/es/src/bookings-v2-price-info.universal.js +65 -74
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- 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: "
|
|
7
|
+
type: import("./bookings-services-v2-service.universal").ServiceType;
|
|
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: "
|
|
54
|
+
rateType: import("./bookings-services-v2-service.universal").RateType;
|
|
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: "
|
|
62
|
+
type: import("./bookings-services-v2-service.universal").LocationType;
|
|
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: "
|
|
139
|
+
type: import("./bookings-services-v2-service.universal").ServiceType;
|
|
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: "
|
|
186
|
+
rateType: import("./bookings-services-v2-service.universal").RateType;
|
|
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: "
|
|
194
|
+
type: import("./bookings-services-v2-service.universal").LocationType;
|
|
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: "
|
|
271
|
+
type: import("./bookings-services-v2-service.universal").ServiceType;
|
|
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: "
|
|
318
|
+
rateType: import("./bookings-services-v2-service.universal").RateType;
|
|
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: "
|
|
326
|
+
type: import("./bookings-services-v2-service.universal").LocationType;
|
|
327
327
|
}[];
|
|
328
328
|
bookingPolicy?: {
|
|
329
329
|
_id: string;
|
|
@@ -399,7 +399,7 @@ export declare function updateService(httpClient: HttpClient): (_id: string | nu
|
|
|
399
399
|
} | undefined;
|
|
400
400
|
} | undefined;
|
|
401
401
|
}>;
|
|
402
|
-
export declare function deleteService(httpClient: HttpClient): (serviceId: string, options?: DeleteServiceOptions
|
|
403
|
-
export declare function queryServices(httpClient: HttpClient): (options?: QueryServicesOptions
|
|
402
|
+
export declare function deleteService(httpClient: HttpClient): (serviceId: string, options?: DeleteServiceOptions) => Promise<void>;
|
|
403
|
+
export declare function queryServices(httpClient: HttpClient): (options?: QueryServicesOptions) => import("./bookings-services-v2-service.universal").ServicesQueryBuilder;
|
|
404
404
|
export { ServiceType, RateType, LocationType, RequestedFields, SortOrder, Status, Event, Day, Transparency, RecurringIntervalType, LocationLocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, CalendarType, SessionStatus, SessionType, ResourceStatus, ResourceNotificationEvent, BenefitType, BenefitNotificationEvent, Action, InvalidSlugError, CloneErrors, } from './bookings-services-v2-service.universal';
|
|
405
405
|
export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, ResourcesPolicy, Schedule, AvailabilityConstraints, StaffMember, ResourceGroup, ResourceIds, ServiceResource, ServiceResourceSelectionOneOf, ResourceType, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, SetCustomSlugEvent, DiffmatokyPayload, ErrorInformation, CreateServiceRequest, CreateServiceResponse, BulkCreateServicesRequest, BulkCreateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetServiceRequest, GetServiceResponse, GetServiceAvailabilityConstraintsRequest, GetServiceAvailabilityConstraintsResponse, ServiceAvailabilityConstraints, V1SplitInterval, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, SearchServicesRequest, SearchServicesResponse, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BusinessLocation, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, CloneServiceRequest, CloneServiceResponse, CreateServiceResponseNonNullableFields, GetServiceResponseNonNullableFields, UpdateServiceResponseNonNullableFields, QueryServicesResponseNonNullableFields, UpdateService, DeleteServiceOptions, QueryServicesOptions, ServicesQueryResult, ServicesQueryBuilder, } from './bookings-services-v2-service.universal';
|
|
@@ -84,7 +84,7 @@ export interface Service {
|
|
|
84
84
|
*/
|
|
85
85
|
revision?: string | null;
|
|
86
86
|
}
|
|
87
|
-
declare enum
|
|
87
|
+
export declare enum ServiceType {
|
|
88
88
|
UNKNOWN_SERVICE_TYPE = "UNKNOWN_SERVICE_TYPE",
|
|
89
89
|
/** The service is an appointment. */
|
|
90
90
|
APPOINTMENT = "APPOINTMENT",
|
|
@@ -93,8 +93,6 @@ declare enum ServiceTypeEnum {
|
|
|
93
93
|
/** The service is a course. */
|
|
94
94
|
COURSE = "COURSE"
|
|
95
95
|
}
|
|
96
|
-
declare type ServiceType = `${ServiceTypeEnum}`;
|
|
97
|
-
export { ServiceTypeEnum as ServiceType };
|
|
98
96
|
export interface Media {
|
|
99
97
|
/** Media items associated with the service. */
|
|
100
98
|
items?: MediaItem[];
|
|
@@ -214,7 +212,7 @@ export interface PaymentRateOneOf {
|
|
|
214
212
|
*/
|
|
215
213
|
varied?: VariedPayment;
|
|
216
214
|
}
|
|
217
|
-
declare enum
|
|
215
|
+
export declare enum RateType {
|
|
218
216
|
UNKNOWN_RATE_TYPE = "UNKNOWN_RATE_TYPE",
|
|
219
217
|
/** The service has a fixed price. */
|
|
220
218
|
FIXED = "FIXED",
|
|
@@ -225,8 +223,6 @@ declare enum RateTypeEnum {
|
|
|
225
223
|
/** This service is offered free of charge. */
|
|
226
224
|
NO_FEE = "NO_FEE"
|
|
227
225
|
}
|
|
228
|
-
declare type RateType = `${RateTypeEnum}`;
|
|
229
|
-
export { RateTypeEnum as RateType };
|
|
230
226
|
export interface FixedPayment {
|
|
231
227
|
/**
|
|
232
228
|
* The fixed price required to book the service.
|
|
@@ -338,7 +334,7 @@ export interface LocationOptionsOneOf {
|
|
|
338
334
|
/** The service is offered at a custom location. */
|
|
339
335
|
custom?: CustomLocationOptions;
|
|
340
336
|
}
|
|
341
|
-
declare enum
|
|
337
|
+
export declare enum LocationType {
|
|
342
338
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
|
343
339
|
/** 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). */
|
|
344
340
|
CUSTOM = "CUSTOM",
|
|
@@ -347,8 +343,6 @@ declare enum LocationTypeEnum {
|
|
|
347
343
|
/** The location can be determined by the customer and is not set up beforehand. This is applicable to services of type `APPOINTMENT` only. */
|
|
348
344
|
CUSTOMER = "CUSTOMER"
|
|
349
345
|
}
|
|
350
|
-
declare type LocationType = `${LocationTypeEnum}`;
|
|
351
|
-
export { LocationTypeEnum as LocationType };
|
|
352
346
|
export interface Address extends AddressStreetOneOf {
|
|
353
347
|
/** Street name and number. */
|
|
354
348
|
streetAddress?: StreetAddress;
|
|
@@ -942,14 +936,13 @@ export interface GetServiceRequest {
|
|
|
942
936
|
/** ID of the service to retrieve. */
|
|
943
937
|
serviceId: string;
|
|
944
938
|
}
|
|
945
|
-
declare enum
|
|
939
|
+
export declare enum RequestedFields {
|
|
946
940
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
947
941
|
/** When passed, `service.staff_members` is returned */
|
|
948
942
|
STAFF_MEMBER_DETAILS = "STAFF_MEMBER_DETAILS",
|
|
949
943
|
/** When passed, `service.service_resources.resource_type.name` is returned */
|
|
950
944
|
RESOURCE_TYPE_DETAILS = "RESOURCE_TYPE_DETAILS"
|
|
951
945
|
}
|
|
952
|
-
export { RequestedFieldsEnum as RequestedFields };
|
|
953
946
|
export interface GetServiceResponse {
|
|
954
947
|
/** The retrieved service. */
|
|
955
948
|
service?: Service;
|
|
@@ -1108,12 +1101,10 @@ export interface Sorting {
|
|
|
1108
1101
|
/** Sort order. */
|
|
1109
1102
|
order?: SortOrder;
|
|
1110
1103
|
}
|
|
1111
|
-
declare enum
|
|
1104
|
+
export declare enum SortOrder {
|
|
1112
1105
|
ASC = "ASC",
|
|
1113
1106
|
DESC = "DESC"
|
|
1114
1107
|
}
|
|
1115
|
-
declare type SortOrder = `${SortOrderEnum}`;
|
|
1116
|
-
export { SortOrderEnum as SortOrder };
|
|
1117
1108
|
export interface Paging {
|
|
1118
1109
|
/** Number of items to load. */
|
|
1119
1110
|
limit?: number | null;
|
|
@@ -1255,21 +1246,17 @@ export interface Category {
|
|
|
1255
1246
|
/** Sorting order of the category for Wix Bookings UI. */
|
|
1256
1247
|
sortOrder?: number | null;
|
|
1257
1248
|
}
|
|
1258
|
-
declare enum
|
|
1249
|
+
export declare enum Status {
|
|
1259
1250
|
/** Default status. */
|
|
1260
1251
|
CREATED = "CREATED",
|
|
1261
1252
|
/** Category is deleted. */
|
|
1262
1253
|
DELETED = "DELETED"
|
|
1263
1254
|
}
|
|
1264
|
-
declare
|
|
1265
|
-
export { StatusEnum as Status };
|
|
1266
|
-
declare enum EventEnum {
|
|
1255
|
+
export declare enum Event {
|
|
1267
1256
|
Updated = "Updated",
|
|
1268
1257
|
Deleted = "Deleted",
|
|
1269
1258
|
Created = "Created"
|
|
1270
1259
|
}
|
|
1271
|
-
declare type Event = `${EventEnum}`;
|
|
1272
|
-
export { EventEnum as Event };
|
|
1273
1260
|
export interface Empty {
|
|
1274
1261
|
}
|
|
1275
1262
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1489,7 +1476,7 @@ export interface Interval {
|
|
|
1489
1476
|
/** The duration of the interval in minutes. Required. Part of the session end time calculation. minimum: 1, maximum: 86400. */
|
|
1490
1477
|
duration?: number;
|
|
1491
1478
|
}
|
|
1492
|
-
declare enum
|
|
1479
|
+
export declare enum Day {
|
|
1493
1480
|
/** Undefined. */
|
|
1494
1481
|
UNDEFINED = "UNDEFINED",
|
|
1495
1482
|
/** Monday. */
|
|
@@ -1507,8 +1494,6 @@ declare enum DayEnum {
|
|
|
1507
1494
|
/** Sunday. */
|
|
1508
1495
|
SUN = "SUN"
|
|
1509
1496
|
}
|
|
1510
|
-
declare type Day = `${DayEnum}`;
|
|
1511
|
-
export { DayEnum as Day };
|
|
1512
1497
|
export interface Frequency {
|
|
1513
1498
|
/** 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. */
|
|
1514
1499
|
repetition?: number | null;
|
|
@@ -1536,16 +1521,14 @@ export interface LinkedSchedule {
|
|
|
1536
1521
|
*/
|
|
1537
1522
|
scheduleOwnerId?: string;
|
|
1538
1523
|
}
|
|
1539
|
-
declare enum
|
|
1524
|
+
export declare enum Transparency {
|
|
1540
1525
|
UNDEFINED = "UNDEFINED",
|
|
1541
1526
|
/** The schedule can have available slots during the session. */
|
|
1542
1527
|
FREE = "FREE",
|
|
1543
1528
|
/** The schedule cannot have available slots during the session. Default value. */
|
|
1544
1529
|
BUSY = "BUSY"
|
|
1545
1530
|
}
|
|
1546
|
-
declare
|
|
1547
|
-
export { TransparencyEnum as Transparency };
|
|
1548
|
-
declare enum RecurringIntervalTypeEnum {
|
|
1531
|
+
export declare enum RecurringIntervalType {
|
|
1549
1532
|
/** The default value. Sessions for this interval will be of type EVENT. */
|
|
1550
1533
|
UNDEFINED = "UNDEFINED",
|
|
1551
1534
|
/** A recurring interval of events */
|
|
@@ -1555,8 +1538,6 @@ declare enum RecurringIntervalTypeEnum {
|
|
|
1555
1538
|
/** A recurring interval for availability */
|
|
1556
1539
|
AVAILABILITY = "AVAILABILITY"
|
|
1557
1540
|
}
|
|
1558
|
-
declare type RecurringIntervalType = `${RecurringIntervalTypeEnum}`;
|
|
1559
|
-
export { RecurringIntervalTypeEnum as RecurringIntervalType };
|
|
1560
1541
|
export interface V1Location {
|
|
1561
1542
|
/**
|
|
1562
1543
|
* Location type.
|
|
@@ -1571,14 +1552,12 @@ export interface V1Location {
|
|
|
1571
1552
|
/** 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. */
|
|
1572
1553
|
customAddress?: CommonAddress;
|
|
1573
1554
|
}
|
|
1574
|
-
declare enum
|
|
1555
|
+
export declare enum LocationLocationType {
|
|
1575
1556
|
UNDEFINED = "UNDEFINED",
|
|
1576
1557
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
1577
1558
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
1578
1559
|
CUSTOM = "CUSTOM"
|
|
1579
1560
|
}
|
|
1580
|
-
declare type LocationLocationType = `${LocationLocationTypeEnum}`;
|
|
1581
|
-
export { LocationLocationTypeEnum as LocationLocationType };
|
|
1582
1561
|
/** Physical address */
|
|
1583
1562
|
export interface CommonAddress extends CommonAddressStreetOneOf {
|
|
1584
1563
|
/** Street name, number and apartment number. */
|
|
@@ -1692,15 +1671,12 @@ export interface LocationsLocation {
|
|
|
1692
1671
|
locationTypes?: LocationsLocationType[];
|
|
1693
1672
|
}
|
|
1694
1673
|
/** For future use */
|
|
1695
|
-
declare enum
|
|
1674
|
+
export declare enum LocationStatus {
|
|
1696
1675
|
ACTIVE = "ACTIVE",
|
|
1697
1676
|
INACTIVE = "INACTIVE"
|
|
1698
1677
|
}
|
|
1699
1678
|
/** For future use */
|
|
1700
|
-
declare
|
|
1701
|
-
export { LocationStatusEnum as LocationStatus };
|
|
1702
|
-
/** For future use */
|
|
1703
|
-
declare enum LocationsLocationTypeEnum {
|
|
1679
|
+
export declare enum LocationsLocationType {
|
|
1704
1680
|
UNKNOWN = "UNKNOWN",
|
|
1705
1681
|
BRANCH = "BRANCH",
|
|
1706
1682
|
OFFICES = "OFFICES",
|
|
@@ -1708,9 +1684,6 @@ declare enum LocationsLocationTypeEnum {
|
|
|
1708
1684
|
HEADQUARTERS = "HEADQUARTERS",
|
|
1709
1685
|
INVENTORY = "INVENTORY"
|
|
1710
1686
|
}
|
|
1711
|
-
/** For future use */
|
|
1712
|
-
declare type LocationsLocationType = `${LocationsLocationTypeEnum}`;
|
|
1713
|
-
export { LocationsLocationTypeEnum as LocationsLocationType };
|
|
1714
1687
|
export interface LocationsAddress {
|
|
1715
1688
|
/** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
1716
1689
|
country?: string | null;
|
|
@@ -1772,7 +1745,7 @@ export interface TimePeriod {
|
|
|
1772
1745
|
closeTime?: string;
|
|
1773
1746
|
}
|
|
1774
1747
|
/** Enumerates the days of the week. */
|
|
1775
|
-
declare enum
|
|
1748
|
+
export declare enum DayOfWeek {
|
|
1776
1749
|
MONDAY = "MONDAY",
|
|
1777
1750
|
TUESDAY = "TUESDAY",
|
|
1778
1751
|
WEDNESDAY = "WEDNESDAY",
|
|
@@ -1781,9 +1754,6 @@ declare enum DayOfWeekEnum {
|
|
|
1781
1754
|
SATURDAY = "SATURDAY",
|
|
1782
1755
|
SUNDAY = "SUNDAY"
|
|
1783
1756
|
}
|
|
1784
|
-
/** Enumerates the days of the week. */
|
|
1785
|
-
declare type DayOfWeek = `${DayOfWeekEnum}`;
|
|
1786
|
-
export { DayOfWeekEnum as DayOfWeek };
|
|
1787
1757
|
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
1788
1758
|
export interface SpecialHourPeriod {
|
|
1789
1759
|
/** 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). */
|
|
@@ -1900,7 +1870,7 @@ export interface Participant {
|
|
|
1900
1870
|
*/
|
|
1901
1871
|
inherited?: boolean;
|
|
1902
1872
|
}
|
|
1903
|
-
declare enum
|
|
1873
|
+
export declare enum ApprovalStatus {
|
|
1904
1874
|
/** Default. */
|
|
1905
1875
|
UNDEFINED = "UNDEFINED",
|
|
1906
1876
|
/** Pending business approval. */
|
|
@@ -1910,23 +1880,19 @@ declare enum ApprovalStatusEnum {
|
|
|
1910
1880
|
/** Declined by the business. */
|
|
1911
1881
|
DECLINED = "DECLINED"
|
|
1912
1882
|
}
|
|
1913
|
-
declare type ApprovalStatus = `${ApprovalStatusEnum}`;
|
|
1914
|
-
export { ApprovalStatusEnum as ApprovalStatus };
|
|
1915
1883
|
export interface ExternalCalendarOverrides {
|
|
1916
1884
|
/** Synced title of the external calendar event. */
|
|
1917
1885
|
title?: string | null;
|
|
1918
1886
|
/** Synced description of the external calendar event. */
|
|
1919
1887
|
description?: string | null;
|
|
1920
1888
|
}
|
|
1921
|
-
declare enum
|
|
1889
|
+
export declare enum ScheduleStatus {
|
|
1922
1890
|
UNDEFINED = "UNDEFINED",
|
|
1923
1891
|
/** The default value when the schedule is created. */
|
|
1924
1892
|
CREATED = "CREATED",
|
|
1925
1893
|
/** The schedule has been canceled. */
|
|
1926
1894
|
CANCELLED = "CANCELLED"
|
|
1927
1895
|
}
|
|
1928
|
-
declare type ScheduleStatus = `${ScheduleStatusEnum}`;
|
|
1929
|
-
export { ScheduleStatusEnum as ScheduleStatus };
|
|
1930
1896
|
export interface Version {
|
|
1931
1897
|
/** Schedule version number, updated each time the schedule is updated. */
|
|
1932
1898
|
scheduleVersion?: number | null;
|
|
@@ -1964,15 +1930,13 @@ export interface CalendarConference {
|
|
|
1964
1930
|
/** ID of the account owner in the video conferencing service. */
|
|
1965
1931
|
accountOwnerId?: string | null;
|
|
1966
1932
|
}
|
|
1967
|
-
declare enum
|
|
1933
|
+
export declare enum ConferenceType {
|
|
1968
1934
|
UNDEFINED = "UNDEFINED",
|
|
1969
1935
|
/** API-generated online meeting. */
|
|
1970
1936
|
ONLINE_MEETING_PROVIDER = "ONLINE_MEETING_PROVIDER",
|
|
1971
1937
|
/** User-defined meeting. */
|
|
1972
1938
|
CUSTOM = "CUSTOM"
|
|
1973
1939
|
}
|
|
1974
|
-
declare type ConferenceType = `${ConferenceTypeEnum}`;
|
|
1975
|
-
export { ConferenceTypeEnum as ConferenceType };
|
|
1976
1940
|
export interface ScheduleUpdated {
|
|
1977
1941
|
/** The old schedule before the update. */
|
|
1978
1942
|
oldSchedule?: V1Schedule;
|
|
@@ -2198,7 +2162,7 @@ export interface ExternalCalendarInfo {
|
|
|
2198
2162
|
/** The external calendar type (e.g. Google Calendar, iCal, etc). */
|
|
2199
2163
|
calendarType?: CalendarType;
|
|
2200
2164
|
}
|
|
2201
|
-
declare enum
|
|
2165
|
+
export declare enum CalendarType {
|
|
2202
2166
|
UNDEFINED = "UNDEFINED",
|
|
2203
2167
|
GOOGLE = "GOOGLE",
|
|
2204
2168
|
I_CAL = "I_CAL",
|
|
@@ -2209,9 +2173,7 @@ declare enum CalendarTypeEnum {
|
|
|
2209
2173
|
MICROSOFT = "MICROSOFT",
|
|
2210
2174
|
OTHER = "OTHER"
|
|
2211
2175
|
}
|
|
2212
|
-
declare
|
|
2213
|
-
export { CalendarTypeEnum as CalendarType };
|
|
2214
|
-
declare enum SessionStatusEnum {
|
|
2176
|
+
export declare enum SessionStatus {
|
|
2215
2177
|
UNDEFINED = "UNDEFINED",
|
|
2216
2178
|
/** The session is confirmed. Default status. */
|
|
2217
2179
|
CONFIRMED = "CONFIRMED",
|
|
@@ -2222,9 +2184,7 @@ declare enum SessionStatusEnum {
|
|
|
2222
2184
|
*/
|
|
2223
2185
|
CANCELLED = "CANCELLED"
|
|
2224
2186
|
}
|
|
2225
|
-
declare
|
|
2226
|
-
export { SessionStatusEnum as SessionStatus };
|
|
2227
|
-
declare enum SessionTypeEnum {
|
|
2187
|
+
export declare enum SessionType {
|
|
2228
2188
|
UNDEFINED = "UNDEFINED",
|
|
2229
2189
|
/**
|
|
2230
2190
|
* The session creates an event on the calendar for the owner of the schedule that the session belongs to.
|
|
@@ -2238,8 +2198,6 @@ declare enum SessionTypeEnum {
|
|
|
2238
2198
|
/** Deprecated. The session represents a resource's available hours. please use WORKING_HOURS */
|
|
2239
2199
|
AVAILABILITY = "AVAILABILITY"
|
|
2240
2200
|
}
|
|
2241
|
-
declare type SessionType = `${SessionTypeEnum}`;
|
|
2242
|
-
export { SessionTypeEnum as SessionType };
|
|
2243
2201
|
export interface SessionVersion {
|
|
2244
2202
|
/** Incremental version number, which is updated on each change to the session or on changes affecting the session. */
|
|
2245
2203
|
number?: string | null;
|
|
@@ -2413,7 +2371,7 @@ export interface CommonImage {
|
|
|
2413
2371
|
*/
|
|
2414
2372
|
filename?: string | null;
|
|
2415
2373
|
}
|
|
2416
|
-
declare enum
|
|
2374
|
+
export declare enum ResourceStatus {
|
|
2417
2375
|
UNDEFINED = "UNDEFINED",
|
|
2418
2376
|
/** Default status. */
|
|
2419
2377
|
CREATED = "CREATED",
|
|
@@ -2422,21 +2380,17 @@ declare enum ResourceStatusEnum {
|
|
|
2422
2380
|
/** The resource was updated. */
|
|
2423
2381
|
UPDATED = "UPDATED"
|
|
2424
2382
|
}
|
|
2425
|
-
declare type ResourceStatus = `${ResourceStatusEnum}`;
|
|
2426
|
-
export { ResourceStatusEnum as ResourceStatus };
|
|
2427
2383
|
export interface BusinessLocation {
|
|
2428
2384
|
/** The ID of the business location. Has to be non-empty */
|
|
2429
2385
|
locationId?: string;
|
|
2430
2386
|
}
|
|
2431
|
-
declare enum
|
|
2387
|
+
export declare enum ResourceNotificationEvent {
|
|
2432
2388
|
UNDEFINED = "UNDEFINED",
|
|
2433
2389
|
Updated = "Updated",
|
|
2434
2390
|
Deleted = "Deleted",
|
|
2435
2391
|
Created = "Created",
|
|
2436
2392
|
Schedule_Updated = "Schedule_Updated"
|
|
2437
2393
|
}
|
|
2438
|
-
declare type ResourceNotificationEvent = `${ResourceNotificationEventEnum}`;
|
|
2439
|
-
export { ResourceNotificationEventEnum as ResourceNotificationEvent };
|
|
2440
2394
|
export interface BenefitNotification {
|
|
2441
2395
|
/** Plan unique ID */
|
|
2442
2396
|
planId?: string;
|
|
@@ -2488,7 +2442,7 @@ export interface DiscountDiscountOneOf {
|
|
|
2488
2442
|
/** Absolute amount discount */
|
|
2489
2443
|
moneyOffAmount?: string;
|
|
2490
2444
|
}
|
|
2491
|
-
declare enum
|
|
2445
|
+
export declare enum BenefitType {
|
|
2492
2446
|
/** Should never be used */
|
|
2493
2447
|
UNDEFINED = "UNDEFINED",
|
|
2494
2448
|
/** Limited benefit type */
|
|
@@ -2496,8 +2450,6 @@ declare enum BenefitTypeEnum {
|
|
|
2496
2450
|
/** Unlimited benefit type */
|
|
2497
2451
|
UNLIMITED = "UNLIMITED"
|
|
2498
2452
|
}
|
|
2499
|
-
declare type BenefitType = `${BenefitTypeEnum}`;
|
|
2500
|
-
export { BenefitTypeEnum as BenefitType };
|
|
2501
2453
|
export interface Behavior extends BehaviorBehaviorOneOf {
|
|
2502
2454
|
/** Entry pass for resources, e.g. a ticket for Bookings service or a ticket for Events. */
|
|
2503
2455
|
defaultBehavior?: EntryPass;
|
|
@@ -2511,13 +2463,11 @@ export interface BehaviorBehaviorOneOf {
|
|
|
2511
2463
|
/** Discount applied to paid resources */
|
|
2512
2464
|
discount?: Discount;
|
|
2513
2465
|
}
|
|
2514
|
-
declare enum
|
|
2466
|
+
export declare enum BenefitNotificationEvent {
|
|
2515
2467
|
Updated = "Updated",
|
|
2516
2468
|
Deleted = "Deleted",
|
|
2517
2469
|
Created = "Created"
|
|
2518
2470
|
}
|
|
2519
|
-
declare type BenefitNotificationEvent = `${BenefitNotificationEventEnum}`;
|
|
2520
|
-
export { BenefitNotificationEventEnum as BenefitNotificationEvent };
|
|
2521
2471
|
export interface SetServiceLocationsRequest {
|
|
2522
2472
|
/** ID of the service. */
|
|
2523
2473
|
serviceId?: string;
|
|
@@ -2539,7 +2489,7 @@ export interface RemovedLocationSessionsActionActionOptionsOneOf {
|
|
|
2539
2489
|
/** Options related to the action, such as a new location to move existing sessions to. */
|
|
2540
2490
|
moveToLocationOptions?: MoveToNewLocationsOptions;
|
|
2541
2491
|
}
|
|
2542
|
-
declare enum
|
|
2492
|
+
export declare enum Action {
|
|
2543
2493
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
2544
2494
|
/**
|
|
2545
2495
|
* Keep future sessions at their current location. This is the default.
|
|
@@ -2557,8 +2507,6 @@ declare enum ActionEnum {
|
|
|
2557
2507
|
*/
|
|
2558
2508
|
DELETE = "DELETE"
|
|
2559
2509
|
}
|
|
2560
|
-
declare type Action = `${ActionEnum}`;
|
|
2561
|
-
export { ActionEnum as Action };
|
|
2562
2510
|
export interface MoveToNewLocationsOptions {
|
|
2563
2511
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2564
2512
|
newLocation?: Location;
|
|
@@ -2619,15 +2567,13 @@ export interface ValidateSlugResponse {
|
|
|
2619
2567
|
/** 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`. */
|
|
2620
2568
|
errors?: InvalidSlugError[];
|
|
2621
2569
|
}
|
|
2622
|
-
declare enum
|
|
2570
|
+
export declare enum InvalidSlugError {
|
|
2623
2571
|
UNKNOWN_SLUG_ERROR = "UNKNOWN_SLUG_ERROR",
|
|
2624
2572
|
/** The provided slug name contains illegal characters. */
|
|
2625
2573
|
SLUG_CONTAINS_ILLEGAL_CHARACTERS = "SLUG_CONTAINS_ILLEGAL_CHARACTERS",
|
|
2626
2574
|
/** The provided slug name already exists for another service. */
|
|
2627
2575
|
SLUG_ALREADY_EXISTS = "SLUG_ALREADY_EXISTS"
|
|
2628
2576
|
}
|
|
2629
|
-
declare type InvalidSlugError = `${InvalidSlugErrorEnum}`;
|
|
2630
|
-
export { InvalidSlugErrorEnum as InvalidSlugError };
|
|
2631
2577
|
export interface CloneServiceRequest {
|
|
2632
2578
|
/** ID of a source service */
|
|
2633
2579
|
sourceServiceId?: string;
|
|
@@ -2646,7 +2592,7 @@ export interface CloneServiceResponse {
|
|
|
2646
2592
|
/** List of entity types that we failed to clone */
|
|
2647
2593
|
errors?: CloneErrors[];
|
|
2648
2594
|
}
|
|
2649
|
-
declare enum
|
|
2595
|
+
export declare enum CloneErrors {
|
|
2650
2596
|
UNKNOWN_CLONE_ERROR = "UNKNOWN_CLONE_ERROR",
|
|
2651
2597
|
/** Failed to clone sessions of active service's schedule */
|
|
2652
2598
|
SESSIONS = "SESSIONS",
|
|
@@ -2657,8 +2603,6 @@ declare enum CloneErrorsEnum {
|
|
|
2657
2603
|
/** Failed to clone pricing plans connected to the source service */
|
|
2658
2604
|
PRICING_PLANS = "PRICING_PLANS"
|
|
2659
2605
|
}
|
|
2660
|
-
declare type CloneErrors = `${CloneErrorsEnum}`;
|
|
2661
|
-
export { CloneErrorsEnum as CloneErrors };
|
|
2662
2606
|
export interface CreateServiceResponseNonNullableFields {
|
|
2663
2607
|
service?: {
|
|
2664
2608
|
type: ServiceType;
|