@wix/bookings 1.0.9 → 1.0.10

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.
@@ -597,7 +597,7 @@ export interface Version {
597
597
  }
598
598
  export interface CreateSessionRequest {
599
599
  /** The session to create. */
600
- session?: Session;
600
+ session: Session;
601
601
  }
602
602
  export interface CreateSessionResponse {
603
603
  /** The created session. */
@@ -605,7 +605,7 @@ export interface CreateSessionResponse {
605
605
  }
606
606
  export interface UpdateSessionRequest {
607
607
  /** The session to update. */
608
- session?: Session;
608
+ session: Session;
609
609
  /** Field mask of fields to update. */
610
610
  fieldmask?: string[];
611
611
  /** Whether to notify participants about the change, and an optional custom message. */
@@ -627,7 +627,7 @@ export interface UpdateSessionResponse {
627
627
  }
628
628
  export interface DeleteSessionRequest {
629
629
  /** The ID of the session to delete. */
630
- sessionId?: string | null;
630
+ sessionId: string | null;
631
631
  /** Whether to notify participants about the change, and an optional custom message. */
632
632
  participantNotification?: ParticipantNotification;
633
633
  }
@@ -1009,6 +1009,250 @@ export interface ReplayCompleted {
1009
1009
  /** The (minimum) number of sessions that were replayed. */
1010
1010
  totalSessions?: number | null;
1011
1011
  }
1012
+ /**
1013
+ * Creates a session.
1014
+ *
1015
+ * A session is one of the following:
1016
+ * + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. Events are visible in the Dashboard in the Bookings app's [**Booking Calendar**](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
1017
+ * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
1018
+ *
1019
+ * Sessions belong to a schedule. Schedules are owned by a resource or a service.
1020
+ *
1021
+ * A session may be an individual session or a recurring session.
1022
+ * An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
1023
+ * The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
1024
+ * For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
1025
+ *
1026
+ * The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
1027
+ * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
1028
+ *
1029
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
1030
+ * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
1031
+ *
1032
+ * >**Notes:**
1033
+ * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
1034
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
1035
+ * @param session - The session to create.
1036
+ * @public
1037
+ * @documentationMaturity preview
1038
+ * @requiredField session
1039
+ * @requiredField session.end
1040
+ * @requiredField session.scheduleId
1041
+ * @requiredField session.start
1042
+ */
1043
+ export declare function createSession(session: Session): Promise<CreateSessionResponse>;
1044
+ /**
1045
+ * Updates a session.
1046
+ *
1047
+ * When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
1048
+ * |Change made to the instance | Effect of changes made to the recurrence
1049
+ * |--|--|
1050
+ * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
1051
+ * |Instance `end` time changed, changing the session's duration| Changes made to the recurring session's start time will be updated on the instance while keeping the new duration, but changes to the recurring session's `end` time not be updated on the instance.
1052
+ * |Updating a changed `start` time for an instance back to the recurring session's value.|Future changes to the recurring session `start` and `end` times will update the instance's `starts` and `end` time.
1053
+ *
1054
+ * Changes to properties on the recurring session, other than `start` and `end`, are always updated on the recurrence instance.
1055
+ *
1056
+ * Use the `options.participantNotification` object to notify participants if the session has been booked.
1057
+ *
1058
+ * >**Notes:**
1059
+ * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
1060
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
1061
+ * @param _id - Session ID.
1062
+ * @public
1063
+ * @documentationMaturity preview
1064
+ * @requiredField _id
1065
+ * @requiredField session
1066
+ */
1067
+ export declare function updateSession(_id: string | null, session: UpdateSession, options?: UpdateSessionOptions): Promise<UpdateSessionResponse>;
1068
+ export interface UpdateSession {
1069
+ /**
1070
+ * Session ID.
1071
+ * @readonly
1072
+ */
1073
+ _id?: string | null;
1074
+ /** ID of the schedule that the session belongs to. */
1075
+ scheduleId?: string;
1076
+ /**
1077
+ * ID of the resource or service that the session's schedule belongs to.
1078
+ * @readonly
1079
+ */
1080
+ scheduleOwnerId?: string | null;
1081
+ /** Original start date and time of the session in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)) format. */
1082
+ originalStart?: Date;
1083
+ /** An object specifying the start date and time of the session. If the session is a recurring session, `start` must contain a `localDateTime`. */
1084
+ start?: CalendarDateTime;
1085
+ /**
1086
+ * An object specifying the end date and time of the session. The `end` time must be after the `start` time and be same type as `start`.
1087
+ * If the session is a recurring session, `end` must contain a `localDateTime`.
1088
+ */
1089
+ end?: CalendarDateTime;
1090
+ /**
1091
+ * An object specifying a list of schedules and the way each schedule's availability is affected by the session. For example, the schedule of an instructor is affected by sessions of the class that they instruct.
1092
+ * The array is inherited from the schedule and can be overridden even if the session is a recurring session.
1093
+ */
1094
+ affectedSchedules?: LinkedSchedule[];
1095
+ /**
1096
+ * Session title.
1097
+ * The value is inherited from the schedule and can be overridden unless the session is a recurring session.
1098
+ */
1099
+ title?: string | null;
1100
+ /**
1101
+ * Tags for the session.
1102
+ * The value is inherited from the schedule and can be overridden unless the session is a recurring session.
1103
+ */
1104
+ tags?: string[] | null;
1105
+ /**
1106
+ * An object describing the location where the session takes place.
1107
+ * Defaults to the schedule location.
1108
+ * For single sessions, `session.location.businessLocation` can only be provided for locations that are defined in the schedule using `schedule.location` or `schedule.availability.locations`.
1109
+ */
1110
+ location?: Location;
1111
+ /**
1112
+ * Maximum number of participants that can be added to the session. Defaults to the schedule capacity.
1113
+ * The value is inherited from the schedule and can be overridden unless the session is a recurring session.
1114
+ */
1115
+ capacity?: number | null;
1116
+ /**
1117
+ * The price options offered for the session. Defaults to the schedule rate.
1118
+ * The value is inherited from the schedule and can be overridden unless the session is a recurring session.
1119
+ */
1120
+ rate?: Rate;
1121
+ /**
1122
+ * Time reserved after the session end time, derived from the schedule availability constraints and the time between slots. Read-only.
1123
+ * If the session is a recurring session, this field must be empty.
1124
+ */
1125
+ timeReservedAfter?: number | null;
1126
+ /**
1127
+ * Additional information about the session.
1128
+ * Notes are not supported for recurring sessions.
1129
+ */
1130
+ notes?: string;
1131
+ /**
1132
+ * The number of participants booked for the session. Read-only.
1133
+ * Calculated as the sum of the party sizes.
1134
+ * @readonly
1135
+ */
1136
+ totalNumberOfParticipants?: number;
1137
+ /**
1138
+ * List of participants booked for the session.
1139
+ * The list includes participants who have registered for this specific session, and participants who have registered for a schedule that includes this session.
1140
+ * If the session is a recurring session, this field must be empty.
1141
+ */
1142
+ participants?: Participant[];
1143
+ /**
1144
+ * A list of properties for which values were inherited from the schedule.
1145
+ * This does not include participants that were inherited from the schedule.
1146
+ * @readonly
1147
+ */
1148
+ inheritedFields?: string[];
1149
+ /**
1150
+ * Title and description values to override session defaults when syncing to an external calendar.
1151
+ * Learn more about [syncing calendars](https://support.wix.com/en/article/wix-bookings-important-information-about-syncing-google-calendars-with-wix-bookings).
1152
+ * The value is inherited from the schedule and can be overridden unless the session is a recurring session.
1153
+ */
1154
+ externalCalendarOverrides?: ExternalCalendarOverrides;
1155
+ /**
1156
+ * Session status.
1157
+ * <!--ONLY:VELO
1158
+ * One of:
1159
+ * - `"CONFIRMED"` Default value.
1160
+ * - `"CANCELLED"` The session was deleted.
1161
+ * <!--END:ONLY:VELO-->
1162
+ * @readonly
1163
+ */
1164
+ status?: Status;
1165
+ /**
1166
+ * Recurring interval ID. Defined when a session will be a recurring session. read-only. Optional.
1167
+ * For exmaple, when creating a class service with recurring sessions, you add a recurrence rule to create recurring sessions.
1168
+ * This field is omitted for single sessions or instances of recurring sessions.
1169
+ * Specified when the session was originally generated from a schedule recurring interval.
1170
+ * Deprecated. Use `recurringSessionId`.
1171
+ * @readonly
1172
+ */
1173
+ recurringIntervalId?: string | null;
1174
+ /**
1175
+ * The ID of the recurring session if this session is an instance of a recurrence. Use this ID to update the recurrence and all of the instances.
1176
+ * @readonly
1177
+ */
1178
+ recurringSessionId?: string | null;
1179
+ /**
1180
+ * Session type.
1181
+ * <!--ONLY:VELO
1182
+ * One of:
1183
+ * - `"EVENT"` Reserved period of time on the schedule. For example, an appointment, class, course, or blocked time. Events are visible in the Dashboard in the Bookings app's [Booking Calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page.
1184
+ * - `"WORKING_HOURS"` Placeholder for available time on a resource’s schedule.
1185
+ * <!--END:ONLY:VELO-->
1186
+ */
1187
+ type?: SessionType;
1188
+ /**
1189
+ * A conference created for the session according to the details set in the schedule's conference provider information.
1190
+ * If the session is a recurring session, this field is inherited from the schedule.
1191
+ */
1192
+ calendarConference?: CalendarConference;
1193
+ /**
1194
+ * A string representing a recurrence rule (RRULE) for a recurring session, as defined in [iCalendar RFC 5545](https://icalendar.org/iCalendar-RFC-5545/3-3-10-recurrence-rule.html).
1195
+ * If the session is an instance of a recurrence pattern, the `instanceOfRecurrence` property will be contain the recurrence rule and this property will be empty.
1196
+ * The RRULE defines a rule for repeating a session.
1197
+ * Supported parameters are:
1198
+ *
1199
+ * |Keyword|Description|Supported values|
1200
+ * |--|--|---|
1201
+ * |`FREQ`|The frequency at which the session is recurs. Required.|`WEEKLY`|
1202
+ * |`INTERVAL`|How often, in terms of `FREQ`, the session recurs. Default is 1. Optional.|
1203
+ * |`UNTIL`|The UTC end date and time of the recurrence. Optional.|
1204
+ * |`BYDAY`|Day of the week when the event should recur. Required.|One of: `MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`|
1205
+ *
1206
+ *
1207
+ * For example, a session that repeats every second week on a Monday until January 7, 2022 at 8 AM:
1208
+ * `"FREQ=WEEKLY;INTERVAL=2;BYDAY=MO;UNTIL=20220107T080000Z"`
1209
+ *
1210
+ * <!--ORIGINAL COMMENTS:
1211
+ * `FREQ` — The frequency with which the session should be repeated (such as DAILY or WEEKLY).
1212
+ * Supported `WEEKLY` value is supported.
1213
+ * INTERVAL — Works together with FREQ to specify how often the session should be repeated. For example, FREQ=WEEKLY;INTERVAL=2 means once every two weeks. Optional. Default value is 1.
1214
+ * COUNT — The number of times this event should be repeated. Not yet supported.
1215
+ * UNTIL — The UTC date & time until which the session should be repeated. This parameter is optional. When it is not specified, the event repeats forever.
1216
+ * The format is a short ISO date, followed by 'T' and a short time with seconds and without milliseconds, terminated by the UTC designator 'Z'. For example, until Jan. 19th 2018 at 7:00 AM: 'UNTIL=20180119T070000Z'.
1217
+ * BYDAY - The days of the week when the event should be repeated. Currently, only a single day is supported. This parameter is mandatory.
1218
+ * Possible values are: MO, TU, WE, TH, FR, SA, SU
1219
+ * Note that DTSTART and DTEND lines are not allowed in this field; session start and end times are specified in the start and end fields.
1220
+ * **Example**: FREQ=WEEKLY;INTERVAL=2;BYDAY=MO;UNTIL=20200427T070000Z
1221
+ * ORIGINAL COMMENTS-->
1222
+ */
1223
+ recurrence?: string | null;
1224
+ /**
1225
+ * A string representing a recurrence rule (RRULE) if the session is an instance of a recurrence pattern.
1226
+ * Empty when the session is not an instance of a recurrence rule, or if the session defines a recurrence pattern, and `recurrence` is not empty.
1227
+ * @readonly
1228
+ */
1229
+ instanceOfRecurrence?: string | null;
1230
+ }
1231
+ export interface UpdateSessionOptions {
1232
+ /** Field mask of fields to update. */
1233
+ fieldmask?: string[];
1234
+ /** Whether to notify participants about the change, and an optional custom message. */
1235
+ participantNotification?: ParticipantNotification;
1236
+ }
1237
+ /**
1238
+ * Deletes a session.
1239
+ *
1240
+ * Use the `participantNotification` property to send an email to the participants when the session is deleted.
1241
+ * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
1242
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
1243
+ * When deleting a recurrence, only future instances of the recurrence are deleted.
1244
+ *
1245
+ * >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
1246
+ * @param sessionId - The ID of the session to delete.
1247
+ * @public
1248
+ * @documentationMaturity preview
1249
+ * @requiredField sessionId
1250
+ */
1251
+ export declare function deleteSession(sessionId: string | null, options?: DeleteSessionOptions): Promise<void>;
1252
+ export interface DeleteSessionOptions {
1253
+ /** Whether to notify participants about the change, and an optional custom message. */
1254
+ participantNotification?: ParticipantNotification;
1255
+ }
1012
1256
  /**
1013
1257
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
1014
1258
  *
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.listSessions = exports.getSession = exports.querySessions = exports.CacheInfoStatus = exports.ConferenceType = exports.SessionType = exports.Status = exports.CalendarType = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.Transparency = exports.__debug = void 0;
31
+ exports.listSessions = exports.getSession = exports.querySessions = exports.deleteSession = exports.updateSession = exports.createSession = exports.CacheInfoStatus = exports.ConferenceType = exports.SessionType = exports.Status = exports.CalendarType = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.Transparency = exports.__debug = void 0;
32
32
  const velo_1 = require("@wix/metro-runtime/velo");
33
33
  const ambassadorWixBookingsCalendarV1Session = __importStar(require("./bookings-calendar-v1-session.http"));
34
34
  // @ts-ignore
@@ -153,6 +153,10 @@ var CacheInfoStatus;
153
153
  CacheInfoStatus["IN_PROGRESS"] = "IN_PROGRESS";
154
154
  CacheInfoStatus["ACTIVE"] = "ACTIVE";
155
155
  })(CacheInfoStatus = exports.CacheInfoStatus || (exports.CacheInfoStatus = {}));
156
+ const _createSessionRequest = { session: '_session' };
157
+ const _createSessionResponse = { session: '_session' };
158
+ const _deleteSessionRequest = {};
159
+ const _deleteSessionResponse = {};
156
160
  const _getSessionRequest = {};
157
161
  const _getSessionResponse = { session: '_session' };
158
162
  const _listSessionsRequest = {};
@@ -162,6 +166,218 @@ const _locationsLocation = { address: 'wix.common.Address' };
162
166
  const _querySessionsRequest = {};
163
167
  const _querySessionsResponse = { sessions: '_session' };
164
168
  const _session = { location: '_location' };
169
+ const _updateSessionRequest = { session: '_session' };
170
+ const _updateSessionResponse = { session: '_session' };
171
+ /**
172
+ * Creates a session.
173
+ *
174
+ * A session is one of the following:
175
+ * + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. Events are visible in the Dashboard in the Bookings app's [**Booking Calendar**](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
176
+ * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
177
+ *
178
+ * Sessions belong to a schedule. Schedules are owned by a resource or a service.
179
+ *
180
+ * A session may be an individual session or a recurring session.
181
+ * An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
182
+ * The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
183
+ * For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
184
+ *
185
+ * The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
186
+ * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
187
+ *
188
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
189
+ * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
190
+ *
191
+ * >**Notes:**
192
+ * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
193
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
194
+ * @param session - The session to create.
195
+ * @public
196
+ * @documentationMaturity preview
197
+ * @requiredField session
198
+ * @requiredField session.end
199
+ * @requiredField session.scheduleId
200
+ * @requiredField session.start
201
+ */
202
+ function createSession(session) {
203
+ var _a, _b, _c;
204
+ return __awaiter(this, arguments, void 0, function* () {
205
+ const requestTransformation = { session: '$[0]' };
206
+ const responseTransformation = '$';
207
+ // @ts-ignore
208
+ const { httpClient, sideEffects } = arguments[1];
209
+ const { toAmbassadorRequest } = velo_1.serializer({
210
+ rootSchema: _createSessionRequest,
211
+ depSchemas: { _location, _locationsLocation, _session },
212
+ fqdnTransformation: {
213
+ paths: [...['session']],
214
+ transformation: _fromVeloEntity,
215
+ },
216
+ customTransformation: requestTransformation,
217
+ });
218
+ const { fromJSON } = velo_1.serializer({
219
+ rootSchema: _createSessionResponse,
220
+ depSchemas: { _location, _locationsLocation, _session },
221
+ fqdnTransformation: {
222
+ paths: [...['session']],
223
+ transformation: _toVeloEntity,
224
+ },
225
+ customTransformation: responseTransformation,
226
+ });
227
+ const payload = toAmbassadorRequest([session]);
228
+ const reqOpts = ambassadorWixBookingsCalendarV1Session.createSession(payload);
229
+ __log(`"CreateSession" sending request with: ${__inspect(reqOpts)}`);
230
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
231
+ try {
232
+ const result = yield httpClient.request(reqOpts);
233
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
234
+ return fromJSON(result.data);
235
+ }
236
+ catch (err) {
237
+ const transformedError = velo_1.transformError(err, requestTransformation, [
238
+ 'session',
239
+ ]);
240
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
241
+ throw transformedError;
242
+ }
243
+ });
244
+ }
245
+ exports.createSession = createSession;
246
+ /**
247
+ * Updates a session.
248
+ *
249
+ * When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
250
+ * |Change made to the instance | Effect of changes made to the recurrence
251
+ * |--|--|
252
+ * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
253
+ * |Instance `end` time changed, changing the session's duration| Changes made to the recurring session's start time will be updated on the instance while keeping the new duration, but changes to the recurring session's `end` time not be updated on the instance.
254
+ * |Updating a changed `start` time for an instance back to the recurring session's value.|Future changes to the recurring session `start` and `end` times will update the instance's `starts` and `end` time.
255
+ *
256
+ * Changes to properties on the recurring session, other than `start` and `end`, are always updated on the recurrence instance.
257
+ *
258
+ * Use the `options.participantNotification` object to notify participants if the session has been booked.
259
+ *
260
+ * >**Notes:**
261
+ * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
262
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
263
+ * @param _id - Session ID.
264
+ * @public
265
+ * @documentationMaturity preview
266
+ * @requiredField _id
267
+ * @requiredField session
268
+ */
269
+ function updateSession(_id, session, options) {
270
+ var _a, _b, _c;
271
+ return __awaiter(this, arguments, void 0, function* () {
272
+ const requestTransformation = {
273
+ session: { '*': '$[1]', id: '$[0]' },
274
+ fieldmask: '$[2].fieldmask',
275
+ participantNotification: '$[2].participantNotification',
276
+ };
277
+ const responseTransformation = '$';
278
+ // @ts-ignore
279
+ const { httpClient, sideEffects } = arguments[3];
280
+ const { toAmbassadorRequest } = velo_1.serializer({
281
+ rootSchema: _updateSessionRequest,
282
+ depSchemas: { _location, _locationsLocation, _session },
283
+ fqdnTransformation: {
284
+ paths: [...['session']],
285
+ transformation: _fromVeloEntity,
286
+ },
287
+ customTransformation: requestTransformation,
288
+ });
289
+ const { fromJSON } = velo_1.serializer({
290
+ rootSchema: _updateSessionResponse,
291
+ depSchemas: { _location, _locationsLocation, _session },
292
+ fqdnTransformation: {
293
+ paths: [...['session']],
294
+ transformation: _toVeloEntity,
295
+ },
296
+ customTransformation: responseTransformation,
297
+ });
298
+ const payload = toAmbassadorRequest([_id, session, options]);
299
+ const reqOpts = ambassadorWixBookingsCalendarV1Session.updateSession(payload);
300
+ __log(`"UpdateSession" sending request with: ${__inspect(reqOpts)}`);
301
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
302
+ try {
303
+ const result = yield httpClient.request(reqOpts);
304
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
305
+ return fromJSON(result.data);
306
+ }
307
+ catch (err) {
308
+ const transformedError = velo_1.transformError(err, requestTransformation, [
309
+ '_id',
310
+ 'session',
311
+ 'options',
312
+ ]);
313
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
314
+ throw transformedError;
315
+ }
316
+ });
317
+ }
318
+ exports.updateSession = updateSession;
319
+ /**
320
+ * Deletes a session.
321
+ *
322
+ * Use the `participantNotification` property to send an email to the participants when the session is deleted.
323
+ * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
324
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
325
+ * When deleting a recurrence, only future instances of the recurrence are deleted.
326
+ *
327
+ * >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
328
+ * @param sessionId - The ID of the session to delete.
329
+ * @public
330
+ * @documentationMaturity preview
331
+ * @requiredField sessionId
332
+ */
333
+ function deleteSession(sessionId, options) {
334
+ var _a, _b, _c;
335
+ return __awaiter(this, arguments, void 0, function* () {
336
+ const requestTransformation = {
337
+ sessionId: '$[0]',
338
+ participantNotification: '$[1].participantNotification',
339
+ };
340
+ const responseTransformation = '$';
341
+ // @ts-ignore
342
+ const { httpClient, sideEffects } = arguments[2];
343
+ const { toAmbassadorRequest } = velo_1.serializer({
344
+ rootSchema: _deleteSessionRequest,
345
+ depSchemas: {},
346
+ fqdnTransformation: {
347
+ paths: [],
348
+ transformation: _fromVeloEntity,
349
+ },
350
+ customTransformation: requestTransformation,
351
+ });
352
+ const { fromJSON } = velo_1.serializer({
353
+ rootSchema: _deleteSessionResponse,
354
+ depSchemas: {},
355
+ fqdnTransformation: {
356
+ paths: [],
357
+ transformation: _toVeloEntity,
358
+ },
359
+ customTransformation: responseTransformation,
360
+ });
361
+ const payload = toAmbassadorRequest([sessionId, options]);
362
+ const reqOpts = ambassadorWixBookingsCalendarV1Session.deleteSession(payload);
363
+ __log(`"DeleteSession" sending request with: ${__inspect(reqOpts)}`);
364
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
365
+ try {
366
+ const result = yield httpClient.request(reqOpts);
367
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
368
+ return fromJSON(result.data);
369
+ }
370
+ catch (err) {
371
+ const transformedError = velo_1.transformError(err, requestTransformation, [
372
+ 'sessionId',
373
+ 'options',
374
+ ]);
375
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
376
+ throw transformedError;
377
+ }
378
+ });
379
+ }
380
+ exports.deleteSession = deleteSession;
165
381
  /**
166
382
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
167
383
  *
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAC9F,aAAa;AAEb,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;AA4N5B,IAAY,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AAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,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;AAtDD,oCAsDC"}
1
+ {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAC9F,aAAa;AAEb,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;AA4N5B,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,gEAAgE;IAChE,6BAAa,CAAA;IACb,kFAAkF;IAClF,6BAAa,CAAA;AACf,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAuBD,IAAY,YAKX;AALD,WAAY,YAAY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,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,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;AAtDD,oCAsDC"}
@@ -1,5 +1,60 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { QuerySessionsRequest, QuerySessionsResponse, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse } from './bookings-calendar-v1-session.types';
2
+ import { QuerySessionsRequest, QuerySessionsResponse, CreateSessionRequest, CreateSessionResponse, DeleteSessionRequest, DeleteSessionResponse, UpdateSessionRequest, UpdateSessionResponse, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse } from './bookings-calendar-v1-session.types';
3
+ /**
4
+ * Creates a session.
5
+ *
6
+ * A session is one of the following:
7
+ * + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. Events are visible in the Dashboard in the Bookings app's [**Booking Calendar**](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
8
+ * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
9
+ *
10
+ * Sessions belong to a schedule. Schedules are owned by a resource or a service.
11
+ *
12
+ * A session may be an individual session or a recurring session.
13
+ * An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
14
+ * The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
15
+ * For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
16
+ *
17
+ * The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
18
+ * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
19
+ *
20
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
21
+ * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
22
+ *
23
+ * >**Notes:**
24
+ * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
25
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
26
+ */
27
+ export declare function createSession(payload: CreateSessionRequest): RequestOptionsFactory<CreateSessionResponse>;
28
+ /**
29
+ * Updates a session.
30
+ *
31
+ * When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
32
+ * |Change made to the instance | Effect of changes made to the recurrence
33
+ * |--|--|
34
+ * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
35
+ * |Instance `end` time changed, changing the session's duration| Changes made to the recurring session's start time will be updated on the instance while keeping the new duration, but changes to the recurring session's `end` time not be updated on the instance.
36
+ * |Updating a changed `start` time for an instance back to the recurring session's value.|Future changes to the recurring session `start` and `end` times will update the instance's `starts` and `end` time.
37
+ *
38
+ * Changes to properties on the recurring session, other than `start` and `end`, are always updated on the recurrence instance.
39
+ *
40
+ * Use the `options.participantNotification` object to notify participants if the session has been booked.
41
+ *
42
+ * >**Notes:**
43
+ * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
44
+ * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
45
+ */
46
+ export declare function updateSession(payload: UpdateSessionRequest): RequestOptionsFactory<UpdateSessionResponse>;
47
+ /**
48
+ * Deletes a session.
49
+ *
50
+ * Use the `participantNotification` property to send an email to the participants when the session is deleted.
51
+ * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
52
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
53
+ * When deleting a recurrence, only future instances of the recurrence are deleted.
54
+ *
55
+ * >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
56
+ */
57
+ export declare function deleteSession(payload: DeleteSessionRequest): RequestOptionsFactory<DeleteSessionResponse>;
3
58
  /**
4
59
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
5
60
  *