@wix/bookings 1.0.64 → 1.0.66
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-reader-v2-extended-booking.types.d.ts +27 -28
- 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 +27 -28
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.http.d.ts +11 -12
- package/build/cjs/src/bookings-v2-booking.http.js +11 -12
- package/build/cjs/src/bookings-v2-booking.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +30 -31
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +28 -29
- package/build/cjs/src/bookings-v2-booking.universal.js +12 -13
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +27 -28
- package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +27 -28
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +27 -28
- 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 +27 -28
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.http.d.ts +11 -12
- package/build/es/src/bookings-v2-booking.http.js +11 -12
- package/build/es/src/bookings-v2-booking.http.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +30 -31
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +28 -29
- package/build/es/src/bookings-v2-booking.universal.js +12 -13
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +27 -28
- package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +27 -28
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -36,25 +36,24 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
36
36
|
* One of:
|
|
37
37
|
* - `"CREATED"` - The booking was created.
|
|
38
38
|
* - `"UPDATED"` - The booking was updated.
|
|
39
|
-
* - `"CONFIRMED"` - The booking
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar.
|
|
40
|
+
* A booking can be manually confirmed using the [`Confirm Or Decline API`](www.example.com).
|
|
41
|
+
* A booking can be automatically confirmed when the following requirements are met:
|
|
42
42
|
* + The service is configured as automatically confirmed.
|
|
43
|
-
* +
|
|
44
|
-
* - `"CANCELED"` - The booking has been canceled and synced to bookings calendar.
|
|
45
|
-
* The booking can be canceled using
|
|
46
|
-
* - `"PENDING"` - The booking waiting to be confirmed or declined
|
|
47
|
-
* Bookings can be manually set as
|
|
48
|
-
*
|
|
49
|
-
* + The
|
|
43
|
+
* + The system invoked the eCommerce checkout API and created an order.
|
|
44
|
+
* - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
|
|
45
|
+
* The booking can be canceled using [`Cancel Booking API`](www.example.com).
|
|
46
|
+
* - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
|
|
47
|
+
* Bookings can be manually set as `PENDING` using the [`setAsPending` API](www.example.com), by those with Manage Booking Status permissions scopes.
|
|
48
|
+
* Bookings can be automatically set as `PENDING` when the following requirements are met:
|
|
49
|
+
* + The service is configured as manually confirmed.
|
|
50
50
|
* + Invoking the eCommerce checkout API and an order has been created.
|
|
51
|
-
* - `"WAITING_LIST"` - The booking is
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Booking can be
|
|
55
|
-
*
|
|
56
|
-
* + Invoking eCommerce checkout API and
|
|
57
|
-
* + Invoking eCommerce checkout API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
51
|
+
* - `"WAITING_LIST"` - The booking is on a waiting list.
|
|
52
|
+
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar.
|
|
53
|
+
* Bookings can be manually declined using the [`Decline Booking` API](www.example.com) by those with Manage Booking Status permissions scopes.
|
|
54
|
+
* Booking can be automatically declined when one of the following requirements are met:
|
|
55
|
+
* + Invoking the `eCommerce checkout` API and the order declined event has been sent.
|
|
56
|
+
* + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
58
57
|
*/
|
|
59
58
|
status?: BookingStatus;
|
|
60
59
|
/**
|
|
@@ -80,21 +79,21 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
80
79
|
createdDate?: Date;
|
|
81
80
|
/** External ID provided by the client app on creation. */
|
|
82
81
|
externalUserId?: string | null;
|
|
83
|
-
/** Revision number to be used when updating, rescheduling, or cancelling the booking.
|
|
82
|
+
/** Revision number to be used when updating, rescheduling, or cancelling the booking. Revision number, which increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes,the current revision must be passed when updating the booking. */
|
|
84
83
|
revision?: string | null;
|
|
85
84
|
/**
|
|
86
|
-
* ID of the creator of the Booking
|
|
85
|
+
* ID of the creator of the Booking.
|
|
87
86
|
* If `appId` and another ID are present, the other ID takes precedence.
|
|
88
87
|
* @readonly
|
|
89
88
|
*/
|
|
90
89
|
createdBy?: IdentificationData;
|
|
91
90
|
/**
|
|
92
|
-
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, the start date of the first session.
|
|
91
|
+
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.
|
|
93
92
|
* @readonly
|
|
94
93
|
*/
|
|
95
94
|
startDate?: Date;
|
|
96
95
|
/**
|
|
97
|
-
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, the end date of the last session.
|
|
96
|
+
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.
|
|
98
97
|
* @readonly
|
|
99
98
|
*/
|
|
100
99
|
endDate?: Date;
|
|
@@ -110,7 +109,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
110
109
|
*/
|
|
111
110
|
extendedFields?: ExtendedFields;
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
112
|
+
* Whether this booking overlaps another existing confirmed booking. Returned when: `true`
|
|
114
113
|
* @readonly
|
|
115
114
|
*/
|
|
116
115
|
doubleBooked?: boolean | null;
|
|
@@ -143,14 +142,14 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
143
142
|
* + "COURSE" Courses.
|
|
144
143
|
*/
|
|
145
144
|
tags?: string[] | null;
|
|
146
|
-
/** The booked slot,
|
|
145
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
147
146
|
slot?: BookedSlot;
|
|
148
147
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
149
148
|
schedule?: BookedSchedule;
|
|
150
149
|
}
|
|
151
150
|
/** @oneof */
|
|
152
151
|
export interface BookedEntityItemOneOf {
|
|
153
|
-
/** The booked slot,
|
|
152
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
154
153
|
slot?: BookedSlot;
|
|
155
154
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
156
155
|
schedule?: BookedSchedule;
|
|
@@ -158,7 +157,7 @@ export interface BookedEntityItemOneOf {
|
|
|
158
157
|
export interface BookedSlot {
|
|
159
158
|
/**
|
|
160
159
|
* ID of the underlying session when session is a single session or generated from a recurring session.
|
|
161
|
-
* If `sessionId` is defined in the Create Booking request, the `startDate`, `endDate`, timezone
|
|
160
|
+
* If `sessionId` is defined in the `Create Booking` request, the `startDate`, `endDate`, `timezone`, `resource`, and `location` fields are ignored and populated from the existing session's information.
|
|
162
161
|
*/
|
|
163
162
|
sessionId?: string | null;
|
|
164
163
|
/** Service ID. */
|
|
@@ -177,7 +176,7 @@ export interface BookedSlot {
|
|
|
177
176
|
endDate?: string | null;
|
|
178
177
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in future. */
|
|
179
178
|
timezone?: string | null;
|
|
180
|
-
/** The resource
|
|
179
|
+
/** The resource assigned to the slot. */
|
|
181
180
|
resource?: BookedResource;
|
|
182
181
|
/** Location where the slot's session takes place. */
|
|
183
182
|
location?: Location;
|
|
@@ -189,7 +188,7 @@ export interface BookedResource {
|
|
|
189
188
|
name?: string | null;
|
|
190
189
|
/** Resource's email at the time of booking. */
|
|
191
190
|
email?: string | null;
|
|
192
|
-
/**
|
|
191
|
+
/** Resource's schedule ID. */
|
|
193
192
|
scheduleId?: string | null;
|
|
194
193
|
}
|
|
195
194
|
export interface Location {
|
|
@@ -220,7 +219,7 @@ export declare enum LocationType {
|
|
|
220
219
|
export interface BookedSchedule {
|
|
221
220
|
/** Schedule ID. */
|
|
222
221
|
scheduleId?: string;
|
|
223
|
-
/**
|
|
222
|
+
/** Booked service ID. */
|
|
224
223
|
serviceId?: string | null;
|
|
225
224
|
/**
|
|
226
225
|
* Location where the schedule's sessions take place. Read only.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-ext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BAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAiCD,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,qDAAyC,CAAA;IACzC,uBAAW,CAAA;IACX,qCAAyB,CAAA;AAC3B,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAED,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4CAAmC,CAAA;IACnC,8BAAqB,CAAA;IACrB,8BAAqB,CAAA;AACvB,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAyCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AA4KD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -42,25 +42,24 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
42
42
|
* One of:
|
|
43
43
|
* - `"CREATED"` - The booking was created.
|
|
44
44
|
* - `"UPDATED"` - The booking was updated.
|
|
45
|
-
* - `"CONFIRMED"` - The booking
|
|
46
|
-
*
|
|
47
|
-
*
|
|
45
|
+
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar.
|
|
46
|
+
* A booking can be manually confirmed using the [`Confirm Or Decline API`](www.example.com).
|
|
47
|
+
* A booking can be automatically confirmed when the following requirements are met:
|
|
48
48
|
* + The service is configured as automatically confirmed.
|
|
49
|
-
* +
|
|
50
|
-
* - `"CANCELED"` - The booking has been canceled and synced to bookings calendar.
|
|
51
|
-
* The booking can be canceled using
|
|
52
|
-
* - `"PENDING"` - The booking waiting to be confirmed or declined
|
|
53
|
-
* Bookings can be manually set as
|
|
54
|
-
*
|
|
55
|
-
* + The
|
|
49
|
+
* + The system invoked the eCommerce checkout API and created an order.
|
|
50
|
+
* - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
|
|
51
|
+
* The booking can be canceled using [`Cancel Booking API`](www.example.com).
|
|
52
|
+
* - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
|
|
53
|
+
* Bookings can be manually set as `PENDING` using the [`setAsPending` API](www.example.com), by those with Manage Booking Status permissions scopes.
|
|
54
|
+
* Bookings can be automatically set as `PENDING` when the following requirements are met:
|
|
55
|
+
* + The service is configured as manually confirmed.
|
|
56
56
|
* + Invoking the eCommerce checkout API and an order has been created.
|
|
57
|
-
* - `"WAITING_LIST"` - The booking is
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* Booking can be
|
|
61
|
-
*
|
|
62
|
-
* + Invoking eCommerce checkout API and
|
|
63
|
-
* + Invoking eCommerce checkout API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
57
|
+
* - `"WAITING_LIST"` - The booking is on a waiting list.
|
|
58
|
+
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar.
|
|
59
|
+
* Bookings can be manually declined using the [`Decline Booking` API](www.example.com) by those with Manage Booking Status permissions scopes.
|
|
60
|
+
* Booking can be automatically declined when one of the following requirements are met:
|
|
61
|
+
* + Invoking the `eCommerce checkout` API and the order declined event has been sent.
|
|
62
|
+
* + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
64
63
|
*/
|
|
65
64
|
status?: BookingStatus;
|
|
66
65
|
/**
|
|
@@ -86,21 +85,21 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
86
85
|
_createdDate?: Date;
|
|
87
86
|
/** External ID provided by the client app on creation. */
|
|
88
87
|
externalUserId?: string | null;
|
|
89
|
-
/** Revision number to be used when updating, rescheduling, or cancelling the booking.
|
|
88
|
+
/** Revision number to be used when updating, rescheduling, or cancelling the booking. Revision number, which increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes,the current revision must be passed when updating the booking. */
|
|
90
89
|
revision?: string | null;
|
|
91
90
|
/**
|
|
92
|
-
* ID of the creator of the Booking
|
|
91
|
+
* ID of the creator of the Booking.
|
|
93
92
|
* If `appId` and another ID are present, the other ID takes precedence.
|
|
94
93
|
* @readonly
|
|
95
94
|
*/
|
|
96
95
|
createdBy?: IdentificationData;
|
|
97
96
|
/**
|
|
98
|
-
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, the start date of the first session.
|
|
97
|
+
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.
|
|
99
98
|
* @readonly
|
|
100
99
|
*/
|
|
101
100
|
startDate?: Date;
|
|
102
101
|
/**
|
|
103
|
-
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, the end date of the last session.
|
|
102
|
+
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.
|
|
104
103
|
* @readonly
|
|
105
104
|
*/
|
|
106
105
|
endDate?: Date;
|
|
@@ -116,7 +115,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
116
115
|
*/
|
|
117
116
|
extendedFields?: ExtendedFields;
|
|
118
117
|
/**
|
|
119
|
-
*
|
|
118
|
+
* Whether this booking overlaps another existing confirmed booking. Returned when: `true`
|
|
120
119
|
* @readonly
|
|
121
120
|
*/
|
|
122
121
|
doubleBooked?: boolean | null;
|
|
@@ -149,14 +148,14 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
149
148
|
* + "COURSE" Courses.
|
|
150
149
|
*/
|
|
151
150
|
tags?: string[] | null;
|
|
152
|
-
/** The booked slot,
|
|
151
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
153
152
|
slot?: BookedSlot;
|
|
154
153
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
155
154
|
schedule?: BookedSchedule;
|
|
156
155
|
}
|
|
157
156
|
/** @oneof */
|
|
158
157
|
export interface BookedEntityItemOneOf {
|
|
159
|
-
/** The booked slot,
|
|
158
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
160
159
|
slot?: BookedSlot;
|
|
161
160
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
162
161
|
schedule?: BookedSchedule;
|
|
@@ -164,7 +163,7 @@ export interface BookedEntityItemOneOf {
|
|
|
164
163
|
export interface BookedSlot {
|
|
165
164
|
/**
|
|
166
165
|
* ID of the underlying session when session is a single session or generated from a recurring session.
|
|
167
|
-
* If `sessionId` is defined in the Create Booking request, the `startDate`, `endDate`, timezone
|
|
166
|
+
* If `sessionId` is defined in the `Create Booking` request, the `startDate`, `endDate`, `timezone`, `resource`, and `location` fields are ignored and populated from the existing session's information.
|
|
168
167
|
*/
|
|
169
168
|
sessionId?: string | null;
|
|
170
169
|
/** Service ID. */
|
|
@@ -183,7 +182,7 @@ export interface BookedSlot {
|
|
|
183
182
|
endDate?: string | null;
|
|
184
183
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in future. */
|
|
185
184
|
timezone?: string | null;
|
|
186
|
-
/** The resource
|
|
185
|
+
/** The resource assigned to the slot. */
|
|
187
186
|
resource?: BookedResource;
|
|
188
187
|
/** Location where the slot's session takes place. */
|
|
189
188
|
location?: Location;
|
|
@@ -195,7 +194,7 @@ export interface BookedResource {
|
|
|
195
194
|
name?: string | null;
|
|
196
195
|
/** Resource's email at the time of booking. */
|
|
197
196
|
email?: string | null;
|
|
198
|
-
/**
|
|
197
|
+
/** Resource's schedule ID. */
|
|
199
198
|
scheduleId?: string | null;
|
|
200
199
|
}
|
|
201
200
|
export interface Location {
|
|
@@ -226,7 +225,7 @@ export declare enum LocationType {
|
|
|
226
225
|
export interface BookedSchedule {
|
|
227
226
|
/** Schedule ID. */
|
|
228
227
|
scheduleId?: string;
|
|
229
|
-
/**
|
|
228
|
+
/** Booked service ID. */
|
|
230
229
|
serviceId?: string | null;
|
|
231
230
|
/**
|
|
232
231
|
* Location where the schedule's sessions take place. Read only.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-reader-v2-extended-booking.universal.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,yHAA2G;AAE3G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAkB5B,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;
|
|
1
|
+
{"version":3,"file":"bookings-reader-v2-extended-booking.universal.js","sourceRoot":"","sources":["../../../src/bookings-reader-v2-extended-booking.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,yHAA2G;AAE3G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B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AC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,OAAO;gBACP,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA3DD,sDA2DC"}
|
|
@@ -165,28 +165,27 @@ export declare function bookingsUpdateNumberOfParticipants(payload: UpdateNumber
|
|
|
165
165
|
* Call `Confirm Or Decline Booking` after checkout or after calling `Create Booking` to verify the booking.
|
|
166
166
|
*
|
|
167
167
|
* + If a session is valid and payment is received, the booking is visible on the calendar.
|
|
168
|
-
* + If a session is double
|
|
168
|
+
* + If a session is double booked, `Confirm Or Decline Booking` can catch this and decline the duplicate booking, the booking is not visible on the calendar.
|
|
169
169
|
*
|
|
170
170
|
* ## Examples of Invalid Bookings
|
|
171
171
|
*
|
|
172
172
|
* Here are some examples of bookings that are considered to be invalid.
|
|
173
173
|
*
|
|
174
|
-
* + **Double
|
|
175
|
-
* + **Non-paid bookings**. Non-paid bookings
|
|
176
|
-
* + **
|
|
177
|
-
*
|
|
178
|
-
* The number of participants is determined by the `totalParticipants` or `participantsChoices` fields.
|
|
179
|
-
* + **For appointment bookings:** If there are overlapping bookings for the same staff member and service.
|
|
180
|
-
*
|
|
181
|
-
* It's also important to remember that if the booking has `skipAvailabilityValidation` set to `true`, it will never be considered a double booking.*
|
|
174
|
+
* + **Double bookings**. Double bookings occur if the total number of bookings for a period of time is greater than the number of spots or resources for the same period of time.
|
|
175
|
+
* + **Non-paid bookings**. Non-paid bookings that are a `doubleBooking`
|
|
176
|
+
* + **Lack of a capacity for the booking:**. Session or schedule does not have enough capacity to accommodate the booking's participants.
|
|
177
|
+
* + **Overlaping Bookings**. Overlapping appointment bookings for the same staff member and service.
|
|
182
178
|
*
|
|
183
179
|
*
|
|
184
180
|
* ## How Bookings Are Confirmed or Declined
|
|
185
181
|
*
|
|
186
|
-
* Bookings are confirmed or denied based on their status. The
|
|
182
|
+
* Bookings are confirmed or denied based on their status. The following flow presents how `Confirm Or Decline Booking` determines the booking status.
|
|
183
|
+
*
|
|
184
|
+
* 
|
|
185
|
+
*
|
|
187
186
|
* + **Whether confirmation is required for the booking**. You can bypass the confirmation check by setting the `skipBusinessConfirmation` property to `true` when [creating a booking](https://example.com).
|
|
188
|
-
* + **Whether
|
|
189
|
-
*
|
|
187
|
+
* + **Whether the booking is paid for**.If the payment status is `PAID` or `PARTIALLY_PAID`, the booking is confirmed regardless of the `doubleBooking` parameter.
|
|
188
|
+
*
|
|
190
189
|
*
|
|
191
190
|
*
|
|
192
191
|
* If a booking requires business confirmation, the status is set to `PENDING`. This happens when `skipBusinessConfirmation` is `false` and the booking would not cause a `doublebooking`.
|
|
@@ -390,28 +390,27 @@ exports.bookingsUpdateNumberOfParticipants = bookingsUpdateNumberOfParticipants;
|
|
|
390
390
|
* Call `Confirm Or Decline Booking` after checkout or after calling `Create Booking` to verify the booking.
|
|
391
391
|
*
|
|
392
392
|
* + If a session is valid and payment is received, the booking is visible on the calendar.
|
|
393
|
-
* + If a session is double
|
|
393
|
+
* + If a session is double booked, `Confirm Or Decline Booking` can catch this and decline the duplicate booking, the booking is not visible on the calendar.
|
|
394
394
|
*
|
|
395
395
|
* ## Examples of Invalid Bookings
|
|
396
396
|
*
|
|
397
397
|
* Here are some examples of bookings that are considered to be invalid.
|
|
398
398
|
*
|
|
399
|
-
* + **Double
|
|
400
|
-
* + **Non-paid bookings**. Non-paid bookings
|
|
401
|
-
* + **
|
|
402
|
-
*
|
|
403
|
-
* The number of participants is determined by the `totalParticipants` or `participantsChoices` fields.
|
|
404
|
-
* + **For appointment bookings:** If there are overlapping bookings for the same staff member and service.
|
|
405
|
-
*
|
|
406
|
-
* It's also important to remember that if the booking has `skipAvailabilityValidation` set to `true`, it will never be considered a double booking.*
|
|
399
|
+
* + **Double bookings**. Double bookings occur if the total number of bookings for a period of time is greater than the number of spots or resources for the same period of time.
|
|
400
|
+
* + **Non-paid bookings**. Non-paid bookings that are a `doubleBooking`
|
|
401
|
+
* + **Lack of a capacity for the booking:**. Session or schedule does not have enough capacity to accommodate the booking's participants.
|
|
402
|
+
* + **Overlaping Bookings**. Overlapping appointment bookings for the same staff member and service.
|
|
407
403
|
*
|
|
408
404
|
*
|
|
409
405
|
* ## How Bookings Are Confirmed or Declined
|
|
410
406
|
*
|
|
411
|
-
* Bookings are confirmed or denied based on their status. The
|
|
407
|
+
* Bookings are confirmed or denied based on their status. The following flow presents how `Confirm Or Decline Booking` determines the booking status.
|
|
408
|
+
*
|
|
409
|
+
* 
|
|
410
|
+
*
|
|
412
411
|
* + **Whether confirmation is required for the booking**. You can bypass the confirmation check by setting the `skipBusinessConfirmation` property to `true` when [creating a booking](https://example.com).
|
|
413
|
-
* + **Whether
|
|
414
|
-
*
|
|
412
|
+
* + **Whether the booking is paid for**.If the payment status is `PAID` or `PARTIALLY_PAID`, the booking is confirmed regardless of the `doubleBooking` parameter.
|
|
413
|
+
*
|
|
415
414
|
*
|
|
416
415
|
*
|
|
417
416
|
* If a booking requires business confirmation, the status is set to `PENDING`. This happens when `skipBusinessConfirmation` is `false` and the booking would not cause a `doublebooking`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAoBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW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iCC"}
|
|
@@ -16,25 +16,24 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
16
16
|
* One of:
|
|
17
17
|
* - `"CREATED"` - The booking was created.
|
|
18
18
|
* - `"UPDATED"` - The booking was updated.
|
|
19
|
-
* - `"CONFIRMED"` - The booking
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar.
|
|
20
|
+
* A booking can be manually confirmed using the [`Confirm Or Decline API`](www.example.com).
|
|
21
|
+
* A booking can be automatically confirmed when the following requirements are met:
|
|
22
22
|
* + The service is configured as automatically confirmed.
|
|
23
|
-
* +
|
|
24
|
-
* - `"CANCELED"` - The booking has been canceled and synced to bookings calendar.
|
|
25
|
-
* The booking can be canceled using
|
|
26
|
-
* - `"PENDING"` - The booking waiting to be confirmed or declined
|
|
27
|
-
* Bookings can be manually set as
|
|
28
|
-
*
|
|
29
|
-
* + The
|
|
23
|
+
* + The system invoked the eCommerce checkout API and created an order.
|
|
24
|
+
* - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
|
|
25
|
+
* The booking can be canceled using [`Cancel Booking API`](www.example.com).
|
|
26
|
+
* - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
|
|
27
|
+
* Bookings can be manually set as `PENDING` using the [`setAsPending` API](www.example.com), by those with Manage Booking Status permissions scopes.
|
|
28
|
+
* Bookings can be automatically set as `PENDING` when the following requirements are met:
|
|
29
|
+
* + The service is configured as manually confirmed.
|
|
30
30
|
* + Invoking the eCommerce checkout API and an order has been created.
|
|
31
|
-
* - `"WAITING_LIST"` - The booking is
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* Booking can be
|
|
35
|
-
*
|
|
36
|
-
* + Invoking eCommerce checkout API and
|
|
37
|
-
* + Invoking eCommerce checkout API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
31
|
+
* - `"WAITING_LIST"` - The booking is on a waiting list.
|
|
32
|
+
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar.
|
|
33
|
+
* Bookings can be manually declined using the [`Decline Booking` API](www.example.com) by those with Manage Booking Status permissions scopes.
|
|
34
|
+
* Booking can be automatically declined when one of the following requirements are met:
|
|
35
|
+
* + Invoking the `eCommerce checkout` API and the order declined event has been sent.
|
|
36
|
+
* + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
38
37
|
*/
|
|
39
38
|
status?: BookingStatus;
|
|
40
39
|
/**
|
|
@@ -60,21 +59,21 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
60
59
|
createdDate?: Date;
|
|
61
60
|
/** External ID provided by the client app on creation. */
|
|
62
61
|
externalUserId?: string | null;
|
|
63
|
-
/** Revision number to be used when updating, rescheduling, or cancelling the booking.
|
|
62
|
+
/** Revision number to be used when updating, rescheduling, or cancelling the booking. Revision number, which increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes,the current revision must be passed when updating the booking. */
|
|
64
63
|
revision?: string | null;
|
|
65
64
|
/**
|
|
66
|
-
* ID of the creator of the Booking
|
|
65
|
+
* ID of the creator of the Booking.
|
|
67
66
|
* If `appId` and another ID are present, the other ID takes precedence.
|
|
68
67
|
* @readonly
|
|
69
68
|
*/
|
|
70
69
|
createdBy?: CommonIdentificationData;
|
|
71
70
|
/**
|
|
72
|
-
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, the start date of the first session.
|
|
71
|
+
* The start date of this booking. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.
|
|
73
72
|
* @readonly
|
|
74
73
|
*/
|
|
75
74
|
startDate?: Date;
|
|
76
75
|
/**
|
|
77
|
-
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, the end date of the last session.
|
|
76
|
+
* The end date of this booking. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.
|
|
78
77
|
* @readonly
|
|
79
78
|
*/
|
|
80
79
|
endDate?: Date;
|
|
@@ -90,7 +89,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
90
89
|
*/
|
|
91
90
|
extendedFields?: ExtendedFields;
|
|
92
91
|
/**
|
|
93
|
-
*
|
|
92
|
+
* Whether this booking overlaps another existing confirmed booking. Returned when: `true`
|
|
94
93
|
* @readonly
|
|
95
94
|
*/
|
|
96
95
|
doubleBooked?: boolean | null;
|
|
@@ -123,14 +122,14 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
123
122
|
* + "COURSE" Courses.
|
|
124
123
|
*/
|
|
125
124
|
tags?: string[] | null;
|
|
126
|
-
/** The booked slot,
|
|
125
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
127
126
|
slot?: BookedSlot;
|
|
128
127
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
129
128
|
schedule?: BookedSchedule;
|
|
130
129
|
}
|
|
131
130
|
/** @oneof */
|
|
132
131
|
export interface BookedEntityItemOneOf {
|
|
133
|
-
/** The booked slot,
|
|
132
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
134
133
|
slot?: BookedSlot;
|
|
135
134
|
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
136
135
|
schedule?: BookedSchedule;
|
|
@@ -138,7 +137,7 @@ export interface BookedEntityItemOneOf {
|
|
|
138
137
|
export interface BookedSlot {
|
|
139
138
|
/**
|
|
140
139
|
* ID of the underlying session when session is a single session or generated from a recurring session.
|
|
141
|
-
* If `sessionId` is defined in the Create Booking request, the `startDate`, `endDate`, timezone
|
|
140
|
+
* If `sessionId` is defined in the `Create Booking` request, the `startDate`, `endDate`, `timezone`, `resource`, and `location` fields are ignored and populated from the existing session's information.
|
|
142
141
|
*/
|
|
143
142
|
sessionId?: string | null;
|
|
144
143
|
/** Service ID. */
|
|
@@ -157,7 +156,7 @@ export interface BookedSlot {
|
|
|
157
156
|
endDate?: string | null;
|
|
158
157
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in future. */
|
|
159
158
|
timezone?: string | null;
|
|
160
|
-
/** The resource
|
|
159
|
+
/** The resource assigned to the slot. */
|
|
161
160
|
resource?: BookedResource;
|
|
162
161
|
/** Location where the slot's session takes place. */
|
|
163
162
|
location?: Location;
|
|
@@ -169,7 +168,7 @@ export interface BookedResource {
|
|
|
169
168
|
name?: string | null;
|
|
170
169
|
/** Resource's email at the time of booking. */
|
|
171
170
|
email?: string | null;
|
|
172
|
-
/**
|
|
171
|
+
/** Resource's schedule ID. */
|
|
173
172
|
scheduleId?: string | null;
|
|
174
173
|
}
|
|
175
174
|
export interface Location {
|
|
@@ -200,7 +199,7 @@ export declare enum LocationType {
|
|
|
200
199
|
export interface BookedSchedule {
|
|
201
200
|
/** Schedule ID. */
|
|
202
201
|
scheduleId?: string;
|
|
203
|
-
/**
|
|
202
|
+
/** Booked service ID. */
|
|
204
203
|
serviceId?: string | null;
|
|
205
204
|
/**
|
|
206
205
|
* Location where the schedule's sessions take place. Read only.
|
|
@@ -1240,11 +1239,11 @@ export interface ScheduleAvailability {
|
|
|
1240
1239
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
1241
1240
|
}
|
|
1242
1241
|
export interface ConfirmOrDeclineBookingRequest {
|
|
1243
|
-
/** ID of the booking to
|
|
1242
|
+
/** ID of the booking to confirm or decline. */
|
|
1244
1243
|
bookingId: string;
|
|
1245
|
-
/** Current payment status of the booking */
|
|
1244
|
+
/** Current payment status of the booking. */
|
|
1246
1245
|
paymentStatus?: PaymentStatus;
|
|
1247
|
-
/** Contact
|
|
1246
|
+
/** Contact ID. */
|
|
1248
1247
|
contactId?: string | null;
|
|
1249
1248
|
}
|
|
1250
1249
|
export interface ConfirmOrDeclineBookingResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;AAuMA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AA+HD,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,gBAAgB;IAChB,oCAAuB,CAAA;IACvB,qGAAqG;IACrG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAED,sBAAsB;AACtB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;AAC/B,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED;;;GAGG;AACH,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,yBAAyB;IACzB,kDAAiC,CAAA;IACjC,wBAAwB;IACxB,sCAAqB,CAAA;AACvB,CAAC,EARW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAQxB;AAED;;;;;GAKG;AACH,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,kDAAyB,CAAA;IACzB,oHAAoH;IACpH,kEAAyC,CAAA;AAC3C,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAiCD,IAAY,QAIX;AAJD,WAAY,QA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