@wix/bookings 1.0.131 → 1.0.133
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.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +0 -8
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +0 -26
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +0 -8
- package/build/cjs/src/bookings-v2-attendance.http.d.ts +40 -0
- package/build/cjs/src/bookings-v2-attendance.http.js +166 -0
- package/build/cjs/src/bookings-v2-attendance.http.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance.public.d.ts +10 -0
- package/build/cjs/src/bookings-v2-attendance.public.js +27 -0
- package/build/cjs/src/bookings-v2-attendance.public.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance.types.d.ts +112 -0
- package/build/cjs/src/bookings-v2-attendance.types.js +15 -0
- package/build/cjs/src/bookings-v2-attendance.types.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance.universal.d.ts +245 -0
- package/build/cjs/src/bookings-v2-attendance.universal.js +258 -0
- package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -0
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +5 -5
- package/build/cjs/src/bookings-v2-booking.universal.js +5 -5
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js +1 -1
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +0 -8
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +0 -26
- package/build/es/src/bookings-services-v2-service.universal.d.ts +0 -8
- package/build/es/src/bookings-v2-attendance.http.d.ts +40 -0
- package/build/es/src/bookings-v2-attendance.http.js +160 -0
- package/build/es/src/bookings-v2-attendance.http.js.map +1 -0
- package/build/es/src/bookings-v2-attendance.public.d.ts +10 -0
- package/build/es/src/bookings-v2-attendance.public.js +19 -0
- package/build/es/src/bookings-v2-attendance.public.js.map +1 -0
- package/build/es/src/bookings-v2-attendance.types.d.ts +112 -0
- package/build/es/src/bookings-v2-attendance.types.js +12 -0
- package/build/es/src/bookings-v2-attendance.types.js.map +1 -0
- package/build/es/src/bookings-v2-attendance.universal.d.ts +245 -0
- package/build/es/src/bookings-v2-attendance.universal.js +233 -0
- package/build/es/src/bookings-v2-attendance.universal.js.map +1 -0
- package/build/es/src/bookings-v2-booking.universal.d.ts +5 -5
- package/build/es/src/bookings-v2-booking.universal.js +5 -5
- package/package.json +2 -2
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Attendance is the main entity of AttendanceService.
|
|
9
|
+
* It contains the attendance information for a given booking in a given session.
|
|
10
|
+
*/
|
|
11
|
+
export interface Attendance {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the attendance object.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
_id?: string | null;
|
|
17
|
+
/** Booking ID. */
|
|
18
|
+
bookingId?: string | null;
|
|
19
|
+
/** Session ID. */
|
|
20
|
+
sessionId?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the booked contact attended the session, might be one of the following:
|
|
23
|
+
*
|
|
24
|
+
* + `NOT_SET`: There is no available attendance information.
|
|
25
|
+
* + `ATTENDED`: At least a single participant has attended the session.
|
|
26
|
+
* + `NOT_ATTENDED`: No participant has attended the session.
|
|
27
|
+
*/
|
|
28
|
+
status?: AttendanceStatus;
|
|
29
|
+
/** Total number of participants who have that attended the session. Can be greater than `1` for bookings with multiple participants. */
|
|
30
|
+
numberOfAttendees?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare enum AttendanceStatus {
|
|
33
|
+
NOT_SET = "NOT_SET",
|
|
34
|
+
ATTENDED = "ATTENDED",
|
|
35
|
+
NOT_ATTENDED = "NOT_ATTENDED"
|
|
36
|
+
}
|
|
37
|
+
export interface GetAttendanceRequest {
|
|
38
|
+
/** Id of the Attendance to retrieve. */
|
|
39
|
+
attendanceId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface GetAttendanceResponse {
|
|
42
|
+
/** The retrieved Attendance. */
|
|
43
|
+
attendance?: Attendance;
|
|
44
|
+
}
|
|
45
|
+
export interface SetAttendanceRequest {
|
|
46
|
+
/** Attendance to create or updated. */
|
|
47
|
+
attendance: Attendance;
|
|
48
|
+
}
|
|
49
|
+
export interface SetAttendanceResponse {
|
|
50
|
+
/** The updated Attendance. */
|
|
51
|
+
attendance?: Attendance;
|
|
52
|
+
}
|
|
53
|
+
export interface QueryAttendanceRequest {
|
|
54
|
+
/** WQL expression. */
|
|
55
|
+
query: QueryV2;
|
|
56
|
+
}
|
|
57
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
58
|
+
cursorPaging?: CursorPaging;
|
|
59
|
+
filter?: Record<string, any> | null;
|
|
60
|
+
sort?: Sorting[];
|
|
61
|
+
fields?: string[];
|
|
62
|
+
}
|
|
63
|
+
/** @oneof */
|
|
64
|
+
export interface QueryV2PagingMethodOneOf {
|
|
65
|
+
cursorPaging?: CursorPaging;
|
|
66
|
+
}
|
|
67
|
+
export interface Sorting {
|
|
68
|
+
/** Name of the field to sort by. */
|
|
69
|
+
fieldName?: string;
|
|
70
|
+
/** Sort order. */
|
|
71
|
+
order?: SortOrder;
|
|
72
|
+
}
|
|
73
|
+
export declare enum SortOrder {
|
|
74
|
+
ASC = "ASC",
|
|
75
|
+
DESC = "DESC"
|
|
76
|
+
}
|
|
77
|
+
export interface Paging {
|
|
78
|
+
/** Number of items to load. */
|
|
79
|
+
limit?: number | null;
|
|
80
|
+
/** Number of items to skip in the current sort order. */
|
|
81
|
+
offset?: number | null;
|
|
82
|
+
}
|
|
83
|
+
export interface CursorPaging {
|
|
84
|
+
/**
|
|
85
|
+
* Number of attendances to return.
|
|
86
|
+
* Defaults to `50`. Maximum `1000`.
|
|
87
|
+
*/
|
|
88
|
+
limit?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
* Pointer to the next or previous page in the list of results.
|
|
91
|
+
* You can get the relevant cursor token
|
|
92
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
93
|
+
* Not relevant for the first request.
|
|
94
|
+
*/
|
|
95
|
+
cursor?: string | null;
|
|
96
|
+
}
|
|
97
|
+
export interface QueryAttendanceResponse {
|
|
98
|
+
/** The retrieved Attendances. */
|
|
99
|
+
attendances?: Attendance[];
|
|
100
|
+
/** Paging Metadata. Cursor pagination is supported. */
|
|
101
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
102
|
+
}
|
|
103
|
+
export interface CursorPagingMetadata {
|
|
104
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
105
|
+
cursors?: Cursors;
|
|
106
|
+
/**
|
|
107
|
+
* Indicates if there are more results after the current page.
|
|
108
|
+
* If `true`, another page of results can be retrieved.
|
|
109
|
+
* If `false`, this is the last page.
|
|
110
|
+
*/
|
|
111
|
+
hasNext?: boolean | null;
|
|
112
|
+
}
|
|
113
|
+
export interface Cursors {
|
|
114
|
+
/** Cursor pointing to next page in the list of results. */
|
|
115
|
+
next?: string | null;
|
|
116
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
117
|
+
prev?: string | null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Get an Attendance by attendance id.
|
|
121
|
+
* @param attendanceId - Id of the Attendance to retrieve.
|
|
122
|
+
* @public
|
|
123
|
+
* @documentationMaturity preview
|
|
124
|
+
* @requiredField attendanceId
|
|
125
|
+
* @returns The retrieved Attendance.
|
|
126
|
+
*/
|
|
127
|
+
export declare function getAttendance(attendanceId: string): Promise<Attendance>;
|
|
128
|
+
/**
|
|
129
|
+
* Create an Attendance or Update the status/numberOfAttendees in an existing Attendance of a given booking.
|
|
130
|
+
* It is not allowed to set the Attendance's status as NOT_SET. In such case a proper error will be thrown.
|
|
131
|
+
* The number of attendees can be greater than 1 when the booking is made for a group of people.
|
|
132
|
+
*
|
|
133
|
+
* *Notes:**
|
|
134
|
+
* + Pass the latest `revision` for a successful update.
|
|
135
|
+
* + There is no validation on the number of attendees or on the relationship between `numberOfAttendees` and `attendanceStatus`.
|
|
136
|
+
* + There is no validation on the number of attendees or on the relationship between `numberOfAttendees` and the booking's `numberOfParticipants`.
|
|
137
|
+
* @param attendance - Attendance to create or updated.
|
|
138
|
+
* @public
|
|
139
|
+
* @documentationMaturity preview
|
|
140
|
+
* @requiredField attendance
|
|
141
|
+
* @requiredField attendance.bookingId
|
|
142
|
+
* @requiredField attendance.sessionId
|
|
143
|
+
*/
|
|
144
|
+
export declare function setAttendance(attendance: Attendance): Promise<SetAttendanceResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Retrieves a list of bookings Attendances, according to the provided paging, filtering, and sorting.
|
|
147
|
+
*
|
|
148
|
+
* Up to 100 bookings can be returned per request.
|
|
149
|
+
*
|
|
150
|
+
* Query Attendance runs with the following defaults, which you can override:
|
|
151
|
+
*
|
|
152
|
+
* - `id` sorted in `ASC` order
|
|
153
|
+
* - `cursorPaging.limit` is `50`
|
|
154
|
+
*
|
|
155
|
+
* For field support see
|
|
156
|
+
* [supported filters](https://dev.wix.com/api/rest/wix-bookings/bookings-attendance-v2/supported-filters)
|
|
157
|
+
* for more information.
|
|
158
|
+
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
* You can only specify a filter only once per query. If a filter is provided
|
|
162
|
+
* more than once, only the first occurrence affects the returned bookings.
|
|
163
|
+
*
|
|
164
|
+
* To learn about working with _Query_ endpoints, see
|
|
165
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
166
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
167
|
+
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
168
|
+
* @public
|
|
169
|
+
* @documentationMaturity preview
|
|
170
|
+
*/
|
|
171
|
+
export declare function queryAttendance(): AttendancesQueryBuilder;
|
|
172
|
+
interface QueryCursorResult {
|
|
173
|
+
cursors: Cursors;
|
|
174
|
+
hasNext: () => boolean;
|
|
175
|
+
hasPrev: () => boolean;
|
|
176
|
+
length: number;
|
|
177
|
+
pageSize: number;
|
|
178
|
+
}
|
|
179
|
+
export interface AttendancesQueryResult extends QueryCursorResult {
|
|
180
|
+
items: Attendance[];
|
|
181
|
+
query: AttendancesQueryBuilder;
|
|
182
|
+
next: () => Promise<AttendancesQueryResult>;
|
|
183
|
+
prev: () => Promise<AttendancesQueryResult>;
|
|
184
|
+
}
|
|
185
|
+
export interface AttendancesQueryBuilder {
|
|
186
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
187
|
+
* @param value - Value to compare against.
|
|
188
|
+
* @documentationMaturity preview
|
|
189
|
+
*/
|
|
190
|
+
eq: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
191
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
192
|
+
* @param value - Value to compare against.
|
|
193
|
+
* @documentationMaturity preview
|
|
194
|
+
*/
|
|
195
|
+
ne: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
196
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
197
|
+
* @param value - Value to compare against.
|
|
198
|
+
* @documentationMaturity preview
|
|
199
|
+
*/
|
|
200
|
+
ge: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
201
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
202
|
+
* @param value - Value to compare against.
|
|
203
|
+
* @documentationMaturity preview
|
|
204
|
+
*/
|
|
205
|
+
gt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
206
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
207
|
+
* @param value - Value to compare against.
|
|
208
|
+
* @documentationMaturity preview
|
|
209
|
+
*/
|
|
210
|
+
le: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
211
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
212
|
+
* @param value - Value to compare against.
|
|
213
|
+
* @documentationMaturity preview
|
|
214
|
+
*/
|
|
215
|
+
lt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
216
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
217
|
+
* @param string - String to compare against. Case-insensitive.
|
|
218
|
+
* @documentationMaturity preview
|
|
219
|
+
*/
|
|
220
|
+
startsWith: (propertyName: '_id' | 'bookingId' | 'sessionId', value: string) => AttendancesQueryBuilder;
|
|
221
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
222
|
+
* @param values - List of values to compare against.
|
|
223
|
+
* @documentationMaturity preview
|
|
224
|
+
*/
|
|
225
|
+
hasSome: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any[]) => AttendancesQueryBuilder;
|
|
226
|
+
/** @documentationMaturity preview */
|
|
227
|
+
in: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
228
|
+
/** @documentationMaturity preview */
|
|
229
|
+
exists: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: boolean) => AttendancesQueryBuilder;
|
|
230
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
231
|
+
* @documentationMaturity preview
|
|
232
|
+
*/
|
|
233
|
+
ascending: (...propertyNames: Array<'_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees'>) => AttendancesQueryBuilder;
|
|
234
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
235
|
+
* @documentationMaturity preview
|
|
236
|
+
*/
|
|
237
|
+
limit: (limit: number) => AttendancesQueryBuilder;
|
|
238
|
+
/** @param cursor - A pointer to specific record
|
|
239
|
+
* @documentationMaturity preview
|
|
240
|
+
*/
|
|
241
|
+
skipTo: (cursor: string) => AttendancesQueryBuilder;
|
|
242
|
+
/** @documentationMaturity preview */
|
|
243
|
+
find: () => Promise<AttendancesQueryResult>;
|
|
244
|
+
}
|
|
245
|
+
export {};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.queryAttendance = exports.setAttendance = exports.getAttendance = exports.SortOrder = exports.AttendanceStatus = exports.__debug = void 0;
|
|
32
|
+
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
|
+
const ambassadorWixBookingsV2Attendance = __importStar(require("./bookings-v2-attendance.http"));
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
36
|
+
let __verbose = false;
|
|
37
|
+
function __log(...args) {
|
|
38
|
+
__verbose && console.log(...args);
|
|
39
|
+
}
|
|
40
|
+
function __inspect(obj) {
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
exports.__debug = {
|
|
44
|
+
verboseLogging: {
|
|
45
|
+
on: () => (__verbose = true),
|
|
46
|
+
off: () => (__verbose = false),
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const _toVeloEntity = '$';
|
|
50
|
+
const _fromVeloEntity = '$';
|
|
51
|
+
var AttendanceStatus;
|
|
52
|
+
(function (AttendanceStatus) {
|
|
53
|
+
AttendanceStatus["NOT_SET"] = "NOT_SET";
|
|
54
|
+
AttendanceStatus["ATTENDED"] = "ATTENDED";
|
|
55
|
+
AttendanceStatus["NOT_ATTENDED"] = "NOT_ATTENDED";
|
|
56
|
+
})(AttendanceStatus = exports.AttendanceStatus || (exports.AttendanceStatus = {}));
|
|
57
|
+
var SortOrder;
|
|
58
|
+
(function (SortOrder) {
|
|
59
|
+
SortOrder["ASC"] = "ASC";
|
|
60
|
+
SortOrder["DESC"] = "DESC";
|
|
61
|
+
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
62
|
+
const _getAttendanceRequest = {};
|
|
63
|
+
const _getAttendanceResponse = {};
|
|
64
|
+
const _queryAttendanceRequest = {};
|
|
65
|
+
const _queryAttendanceResponse = {};
|
|
66
|
+
const _setAttendanceRequest = {};
|
|
67
|
+
const _setAttendanceResponse = {};
|
|
68
|
+
/**
|
|
69
|
+
* Get an Attendance by attendance id.
|
|
70
|
+
* @param attendanceId - Id of the Attendance to retrieve.
|
|
71
|
+
* @public
|
|
72
|
+
* @documentationMaturity preview
|
|
73
|
+
* @requiredField attendanceId
|
|
74
|
+
* @returns The retrieved Attendance.
|
|
75
|
+
*/
|
|
76
|
+
function getAttendance(attendanceId) {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
79
|
+
const requestTransformation = { attendanceId: '$[0]' };
|
|
80
|
+
const responseTransformation = '$.attendance';
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
83
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
84
|
+
rootSchema: _getAttendanceRequest,
|
|
85
|
+
depSchemas: {},
|
|
86
|
+
fqdnTransformation: {
|
|
87
|
+
paths: [],
|
|
88
|
+
transformation: _fromVeloEntity,
|
|
89
|
+
},
|
|
90
|
+
customTransformation: requestTransformation,
|
|
91
|
+
});
|
|
92
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
93
|
+
rootSchema: _getAttendanceResponse,
|
|
94
|
+
depSchemas: {},
|
|
95
|
+
fqdnTransformation: {
|
|
96
|
+
paths: [...['attendance']],
|
|
97
|
+
transformation: _toVeloEntity,
|
|
98
|
+
},
|
|
99
|
+
customTransformation: responseTransformation,
|
|
100
|
+
});
|
|
101
|
+
const payload = toAmbassadorRequest([attendanceId]);
|
|
102
|
+
const reqOpts = ambassadorWixBookingsV2Attendance.getAttendance(payload);
|
|
103
|
+
__log(`"GetAttendance" sending request with: ${__inspect(reqOpts)}`);
|
|
104
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
105
|
+
try {
|
|
106
|
+
const result = yield httpClient.request(reqOpts);
|
|
107
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
108
|
+
return fromJSON(result.data);
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
112
|
+
'attendanceId',
|
|
113
|
+
]);
|
|
114
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
115
|
+
throw transformedError;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
exports.getAttendance = getAttendance;
|
|
120
|
+
/**
|
|
121
|
+
* Create an Attendance or Update the status/numberOfAttendees in an existing Attendance of a given booking.
|
|
122
|
+
* It is not allowed to set the Attendance's status as NOT_SET. In such case a proper error will be thrown.
|
|
123
|
+
* The number of attendees can be greater than 1 when the booking is made for a group of people.
|
|
124
|
+
*
|
|
125
|
+
* *Notes:**
|
|
126
|
+
* + Pass the latest `revision` for a successful update.
|
|
127
|
+
* + There is no validation on the number of attendees or on the relationship between `numberOfAttendees` and `attendanceStatus`.
|
|
128
|
+
* + There is no validation on the number of attendees or on the relationship between `numberOfAttendees` and the booking's `numberOfParticipants`.
|
|
129
|
+
* @param attendance - Attendance to create or updated.
|
|
130
|
+
* @public
|
|
131
|
+
* @documentationMaturity preview
|
|
132
|
+
* @requiredField attendance
|
|
133
|
+
* @requiredField attendance.bookingId
|
|
134
|
+
* @requiredField attendance.sessionId
|
|
135
|
+
*/
|
|
136
|
+
function setAttendance(attendance) {
|
|
137
|
+
var _a, _b, _c;
|
|
138
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
139
|
+
const requestTransformation = { attendance: '$[0]' };
|
|
140
|
+
const responseTransformation = '$';
|
|
141
|
+
// @ts-ignore
|
|
142
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
143
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
144
|
+
rootSchema: _setAttendanceRequest,
|
|
145
|
+
depSchemas: {},
|
|
146
|
+
fqdnTransformation: {
|
|
147
|
+
paths: [...['attendance']],
|
|
148
|
+
transformation: _fromVeloEntity,
|
|
149
|
+
},
|
|
150
|
+
customTransformation: requestTransformation,
|
|
151
|
+
});
|
|
152
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
153
|
+
rootSchema: _setAttendanceResponse,
|
|
154
|
+
depSchemas: {},
|
|
155
|
+
fqdnTransformation: {
|
|
156
|
+
paths: [...['attendance']],
|
|
157
|
+
transformation: _toVeloEntity,
|
|
158
|
+
},
|
|
159
|
+
customTransformation: responseTransformation,
|
|
160
|
+
});
|
|
161
|
+
const payload = toAmbassadorRequest([attendance]);
|
|
162
|
+
const reqOpts = ambassadorWixBookingsV2Attendance.setAttendance(payload);
|
|
163
|
+
__log(`"SetAttendance" sending request with: ${__inspect(reqOpts)}`);
|
|
164
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
165
|
+
try {
|
|
166
|
+
const result = yield httpClient.request(reqOpts);
|
|
167
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
168
|
+
return fromJSON(result.data);
|
|
169
|
+
}
|
|
170
|
+
catch (err) {
|
|
171
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
172
|
+
'attendance',
|
|
173
|
+
]);
|
|
174
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
175
|
+
throw transformedError;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
exports.setAttendance = setAttendance;
|
|
180
|
+
/**
|
|
181
|
+
* Retrieves a list of bookings Attendances, according to the provided paging, filtering, and sorting.
|
|
182
|
+
*
|
|
183
|
+
* Up to 100 bookings can be returned per request.
|
|
184
|
+
*
|
|
185
|
+
* Query Attendance runs with the following defaults, which you can override:
|
|
186
|
+
*
|
|
187
|
+
* - `id` sorted in `ASC` order
|
|
188
|
+
* - `cursorPaging.limit` is `50`
|
|
189
|
+
*
|
|
190
|
+
* For field support see
|
|
191
|
+
* [supported filters](https://dev.wix.com/api/rest/wix-bookings/bookings-attendance-v2/supported-filters)
|
|
192
|
+
* for more information.
|
|
193
|
+
* __Note__: `fields` and `fieldsets` aren't supported.
|
|
194
|
+
*
|
|
195
|
+
*
|
|
196
|
+
* You can only specify a filter only once per query. If a filter is provided
|
|
197
|
+
* more than once, only the first occurrence affects the returned bookings.
|
|
198
|
+
*
|
|
199
|
+
* To learn about working with _Query_ endpoints, see
|
|
200
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
201
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging),
|
|
202
|
+
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
203
|
+
* @public
|
|
204
|
+
* @documentationMaturity preview
|
|
205
|
+
*/
|
|
206
|
+
function queryAttendance() {
|
|
207
|
+
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
208
|
+
const responseTransformation = {
|
|
209
|
+
items: '$.attendances',
|
|
210
|
+
pagingMetadata: '$.pagingMetadata',
|
|
211
|
+
};
|
|
212
|
+
// @ts-ignore
|
|
213
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
214
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
215
|
+
rootSchema: _queryAttendanceRequest,
|
|
216
|
+
depSchemas: {},
|
|
217
|
+
fqdnTransformation: {
|
|
218
|
+
paths: [],
|
|
219
|
+
transformation: _fromVeloEntity,
|
|
220
|
+
},
|
|
221
|
+
customTransformation: requestTransformation,
|
|
222
|
+
});
|
|
223
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
224
|
+
rootSchema: _queryAttendanceResponse,
|
|
225
|
+
depSchemas: {},
|
|
226
|
+
fqdnTransformation: {
|
|
227
|
+
paths: [...['Array#attendances']],
|
|
228
|
+
transformation: _toVeloEntity,
|
|
229
|
+
},
|
|
230
|
+
customTransformation: responseTransformation,
|
|
231
|
+
});
|
|
232
|
+
return (0, motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder)({
|
|
233
|
+
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
var _a, _b, _c;
|
|
235
|
+
const reqOpts = ambassadorWixBookingsV2Attendance.queryAttendance(payload);
|
|
236
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
237
|
+
try {
|
|
238
|
+
const result = yield httpClient.request(reqOpts);
|
|
239
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
240
|
+
return result;
|
|
241
|
+
}
|
|
242
|
+
catch (err) {
|
|
243
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
244
|
+
throw err;
|
|
245
|
+
}
|
|
246
|
+
}),
|
|
247
|
+
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
248
|
+
responseTransformer: ({ data }) => fromJSON(data),
|
|
249
|
+
errorTransformer: (err) => {
|
|
250
|
+
const transformedError = (0, velo_1.transformError)(err, requestTransformation);
|
|
251
|
+
throw transformedError;
|
|
252
|
+
},
|
|
253
|
+
pagingMethod: 'CURSOR',
|
|
254
|
+
transformationPaths: (0, velo_1.resolveQueryFieldsTransformationPaths)(_toVeloEntity),
|
|
255
|
+
})({ cursorWithEmptyFilterAndSort: true });
|
|
256
|
+
}
|
|
257
|
+
exports.queryAttendance = queryAttendance;
|
|
258
|
+
//# sourceMappingURL=bookings-v2-attendance.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-attendance.universal.js","sourceRoot":"","sources":["../../../src/bookings-v2-attendance.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,iGAAmF;AACnF,aAAa;AACb,4FAA6E;AAE7E,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,C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;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA1DD,0CA0DC"}
|
|
@@ -1741,7 +1741,7 @@ export interface BulkCreateBookingOptions {
|
|
|
1741
1741
|
* ensures that the rescheduling is validated against the service's rescheduling
|
|
1742
1742
|
* policy.
|
|
1743
1743
|
*
|
|
1744
|
-
* This function is not a universal function and runs only on the backend
|
|
1744
|
+
* This function is not a universal function and runs only on the backend.
|
|
1745
1745
|
* @param bookingId - Id of the booking to reschedule.
|
|
1746
1746
|
* @param slot - Information about the new slot.
|
|
1747
1747
|
* @public
|
|
@@ -1813,7 +1813,7 @@ export interface RescheduleBookingOptions extends RescheduleBookingRequestPartic
|
|
|
1813
1813
|
* has been approved. The slot's or schedule's availability is checked just
|
|
1814
1814
|
* before confirming the booking as part of the automatic flow.
|
|
1815
1815
|
*
|
|
1816
|
-
* This function is not a universal function and runs only on the backend
|
|
1816
|
+
* This function is not a universal function and runs only on the backend.
|
|
1817
1817
|
* @param bookingId - ID of the booking to confirm.
|
|
1818
1818
|
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
1819
1819
|
* To prevent conflicting changes, the current revision must be passed when
|
|
@@ -1847,7 +1847,7 @@ export interface ConfirmBookingOptions {
|
|
|
1847
1847
|
* the decline. You also need to pass `participantNotification.notifyParticipants`
|
|
1848
1848
|
* as `true` to actually send the message.
|
|
1849
1849
|
*
|
|
1850
|
-
* This function is not a universal function and runs only on the backend
|
|
1850
|
+
* This function is not a universal function and runs only on the backend.
|
|
1851
1851
|
* @param bookingId - ID of the booking to decline.
|
|
1852
1852
|
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
1853
1853
|
* To prevent conflicting changes, the current revision must be passed when
|
|
@@ -1888,7 +1888,7 @@ export interface DeclineBookingOptions {
|
|
|
1888
1888
|
* ensures that the cancelation is validated against the service's cancelation
|
|
1889
1889
|
* policy.
|
|
1890
1890
|
*
|
|
1891
|
-
* This function is not a universal function and runs only on the backend
|
|
1891
|
+
* This function is not a universal function and runs only on the backend.
|
|
1892
1892
|
* @param bookingId - ID of the booking to cancel.
|
|
1893
1893
|
* @public
|
|
1894
1894
|
* @documentationMaturity preview
|
|
@@ -1935,7 +1935,7 @@ export interface CancelBookingOptions {
|
|
|
1935
1935
|
* all of the provided choices must exist for the service. Otherwise, the
|
|
1936
1936
|
* call returns an `INVALID_SERVICE_CHOICES` error.
|
|
1937
1937
|
*
|
|
1938
|
-
* This function is not a universal function and runs only on the backend
|
|
1938
|
+
* This function is not a universal function and runs only on the backend.
|
|
1939
1939
|
* @param bookingId - ID of the booking to update the number of participants for.
|
|
1940
1940
|
* @public
|
|
1941
1941
|
* @documentationMaturity preview
|
|
@@ -351,7 +351,7 @@ exports.bulkCreateBooking = bulkCreateBooking;
|
|
|
351
351
|
* ensures that the rescheduling is validated against the service's rescheduling
|
|
352
352
|
* policy.
|
|
353
353
|
*
|
|
354
|
-
* This function is not a universal function and runs only on the backend
|
|
354
|
+
* This function is not a universal function and runs only on the backend.
|
|
355
355
|
* @param bookingId - Id of the booking to reschedule.
|
|
356
356
|
* @param slot - Information about the new slot.
|
|
357
357
|
* @public
|
|
@@ -444,7 +444,7 @@ exports.rescheduleBooking = rescheduleBooking;
|
|
|
444
444
|
* has been approved. The slot's or schedule's availability is checked just
|
|
445
445
|
* before confirming the booking as part of the automatic flow.
|
|
446
446
|
*
|
|
447
|
-
* This function is not a universal function and runs only on the backend
|
|
447
|
+
* This function is not a universal function and runs only on the backend.
|
|
448
448
|
* @param bookingId - ID of the booking to confirm.
|
|
449
449
|
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
450
450
|
* To prevent conflicting changes, the current revision must be passed when
|
|
@@ -520,7 +520,7 @@ exports.confirmBooking = confirmBooking;
|
|
|
520
520
|
* the decline. You also need to pass `participantNotification.notifyParticipants`
|
|
521
521
|
* as `true` to actually send the message.
|
|
522
522
|
*
|
|
523
|
-
* This function is not a universal function and runs only on the backend
|
|
523
|
+
* This function is not a universal function and runs only on the backend.
|
|
524
524
|
* @param bookingId - ID of the booking to decline.
|
|
525
525
|
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
526
526
|
* To prevent conflicting changes, the current revision must be passed when
|
|
@@ -603,7 +603,7 @@ exports.declineBooking = declineBooking;
|
|
|
603
603
|
* ensures that the cancelation is validated against the service's cancelation
|
|
604
604
|
* policy.
|
|
605
605
|
*
|
|
606
|
-
* This function is not a universal function and runs only on the backend
|
|
606
|
+
* This function is not a universal function and runs only on the backend.
|
|
607
607
|
* @param bookingId - ID of the booking to cancel.
|
|
608
608
|
* @public
|
|
609
609
|
* @documentationMaturity preview
|
|
@@ -679,7 +679,7 @@ exports.cancelBooking = cancelBooking;
|
|
|
679
679
|
* all of the provided choices must exist for the service. Otherwise, the
|
|
680
680
|
* call returns an `INVALID_SERVICE_CHOICES` error.
|
|
681
681
|
*
|
|
682
|
-
* This function is not a universal function and runs only on the backend
|
|
682
|
+
* This function is not a universal function and runs only on the backend.
|
|
683
683
|
* @param bookingId - ID of the booking to update the number of participants for.
|
|
684
684
|
* @public
|
|
685
685
|
* @documentationMaturity preview
|
package/build/es/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
|
10
|
+
export * as attendance from './src/bookings-v2-attendance.public';
|
|
10
11
|
export * as bookings from './src/bookings-v2-booking.public';
|
|
11
12
|
export * as pricing from './src/bookings-v2-price-info.public';
|
package/build/es/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
|
10
|
+
export * as attendance from './src/bookings-v2-attendance.public';
|
|
10
11
|
export * as bookings from './src/bookings-v2-booking.public';
|
|
11
12
|
export * as pricing from './src/bookings-v2-price-info.public';
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sDAAsD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,oBAAoB,MAAM,yDAAyD,CAAC;AAChG,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,iBAAiB,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,YAAY,MAAM,gDAAgD,CAAC;AAC/E,OAAO,KAAK,yBAAyB,MAAM,+DAA+D,CAAC;AAC3G,OAAO,KAAK,gBAAgB,MAAM,kDAAkD,CAAC;AACrF,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sDAAsD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,oBAAoB,MAAM,yDAAyD,CAAC;AAChG,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,iBAAiB,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,YAAY,MAAM,gDAAgD,CAAC;AAC/E,OAAO,KAAK,yBAAyB,MAAM,+DAA+D,CAAC;AAC3G,OAAO,KAAK,gBAAgB,MAAM,kDAAkD,CAAC;AACrF,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAC"}
|
|
@@ -293,7 +293,7 @@ export interface ScheduleAvailability {
|
|
|
293
293
|
* and an `endDate` of `2021-09-06T00:00:02.000`, `2021-09-05T01:00:01.000` is used in the query
|
|
294
294
|
* instead. The start time shifts one hour forward and the end time remains the same.
|
|
295
295
|
*
|
|
296
|
-
* This function is not a universal function and runs only on the backend
|
|
296
|
+
* This function is not a universal function and runs only on the backend.
|
|
297
297
|
* @param query - Query options.
|
|
298
298
|
* @public
|
|
299
299
|
* @documentationMaturity preview
|
|
@@ -86,7 +86,7 @@ const _queryAvailabilityResponse = {};
|
|
|
86
86
|
* and an `endDate` of `2021-09-06T00:00:02.000`, `2021-09-05T01:00:01.000` is used in the query
|
|
87
87
|
* instead. The start time shifts one hour forward and the end time remains the same.
|
|
88
88
|
*
|
|
89
|
-
* This function is not a universal function and runs only on the backend
|
|
89
|
+
* This function is not a universal function and runs only on the backend.
|
|
90
90
|
* @param query - Query options.
|
|
91
91
|
* @public
|
|
92
92
|
* @documentationMaturity preview
|
|
@@ -1381,14 +1381,6 @@ export interface SessionsQueryBuilder {
|
|
|
1381
1381
|
hasAll: (propertyName: 'tags' | 'inheritedFields', value: any[]) => SessionsQueryBuilder;
|
|
1382
1382
|
/** @documentationMaturity preview */
|
|
1383
1383
|
exists: (propertyName: 'location' | 'location.customAddress' | 'location.businessLocation' | 'recurringSessionId' | 'calendarConference' | 'instanceOfRecurrence', value: boolean) => SessionsQueryBuilder;
|
|
1384
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1385
|
-
* @documentationMaturity preview
|
|
1386
|
-
*/
|
|
1387
|
-
ascending: (...propertyNames: Array<string>) => SessionsQueryBuilder;
|
|
1388
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1389
|
-
* @documentationMaturity preview
|
|
1390
|
-
*/
|
|
1391
|
-
descending: (...propertyNames: Array<string>) => SessionsQueryBuilder;
|
|
1392
1384
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1393
1385
|
* @documentationMaturity preview
|
|
1394
1386
|
*/
|