@wix/auto_sdk_bookings_attendance 1.0.6 → 1.0.8
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 +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js +14 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js +288 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js +104 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js +34 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.mts → cjs/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js +31 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js +296 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.js +8 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.js +281 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.js +74 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/es/src/bookings-v2-attendance-attendance.public.js +24 -0
- package/build/es/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.ts → es/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/es/src/bookings-v2-attendance-attendance.types.js +28 -0
- package/build/es/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.js +266 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js +14 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js +288 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js +104 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js +34 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/internal/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.mts → cjs/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js +31 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js +296 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js +8 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js +281 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js +74 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js +24 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/internal/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.ts → es/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js +28 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js +266 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -458
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -428
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -458
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -428
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -255
- package/build/internal/meta.d.ts +0 -255
- package/build/internal/meta.js +0 -339
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -309
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -255
- package/build/meta.d.ts +0 -255
- package/build/meta.js +0 -339
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -309
- package/build/meta.mjs.map +0 -1
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { G as GetAttendanceRequest$1, f as GetAttendanceResponse$1, g as SetAttendanceRequest$1, a as SetAttendanceResponse$1, i as BulkSetAttendanceRequest$1, b as BulkSetAttendanceResponse$1, Q as QueryAttendanceRequest$1, r as QueryAttendanceResponse$1 } from './bookings-v2-attendance-attendance.universal-Bpl5-MB6.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The `attendance` object represents the attendance information
|
|
5
|
-
* for a booked session, such as:
|
|
6
|
-
*
|
|
7
|
-
* + Did anyone attend the session?
|
|
8
|
-
* + How many people attended the session?
|
|
9
|
-
*
|
|
10
|
-
* The number of session `attendance` objects available depends on the booking type:
|
|
11
|
-
* + Appointment bookings have 1 `attendance` object per appointment session.
|
|
12
|
-
* + Class bookings have 1 `attendance` object for each session of the class. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.
|
|
13
|
-
* + Course bookings have an `attendance` object for each session of the course. For example, if there are 12 sessions in a course, there are 12 `attendance` objects. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.
|
|
14
|
-
*/
|
|
15
|
-
interface Attendance {
|
|
16
|
-
/**
|
|
17
|
-
* ID of the `attendance` object.
|
|
18
|
-
* @format GUID
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
id?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Corresponding booking ID.
|
|
24
|
-
* @format GUID
|
|
25
|
-
*/
|
|
26
|
-
bookingId?: string | null;
|
|
27
|
-
/** Corresponding session ID. */
|
|
28
|
-
sessionId?: string | null;
|
|
29
|
-
/** Status indicating if any participants attended the session. */
|
|
30
|
-
status?: AttendanceStatus;
|
|
31
|
-
/**
|
|
32
|
-
* Total number of participants that attended the session. By default, the number
|
|
33
|
-
* of attendees is set to `1`, but you can set a number to greater than `1` if multiple
|
|
34
|
-
* participants attended.
|
|
35
|
-
*
|
|
36
|
-
* Do not set to `0` to indicate that no one attended the session. Instead, set the `status` field to `NOT_ATTENDED`.
|
|
37
|
-
*
|
|
38
|
-
* Default: 1
|
|
39
|
-
*/
|
|
40
|
-
numberOfAttendees?: number;
|
|
41
|
-
}
|
|
42
|
-
declare enum AttendanceStatus {
|
|
43
|
-
/** There is no available attendance information. */
|
|
44
|
-
NOT_SET = "NOT_SET",
|
|
45
|
-
/** At least a single participant attended the session. */
|
|
46
|
-
ATTENDED = "ATTENDED",
|
|
47
|
-
/** No participants attended the session. */
|
|
48
|
-
NOT_ATTENDED = "NOT_ATTENDED"
|
|
49
|
-
}
|
|
50
|
-
interface GetAttendanceRequest {
|
|
51
|
-
/**
|
|
52
|
-
* ID of the attendance object to retrieve.
|
|
53
|
-
* @format GUID
|
|
54
|
-
*/
|
|
55
|
-
attendanceId: string;
|
|
56
|
-
}
|
|
57
|
-
interface GetAttendanceResponse {
|
|
58
|
-
/** Retrieved attendance. */
|
|
59
|
-
attendance?: Attendance;
|
|
60
|
-
}
|
|
61
|
-
interface SetAttendanceRequest {
|
|
62
|
-
/** Attendance to create or update. */
|
|
63
|
-
attendance: Attendance;
|
|
64
|
-
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
65
|
-
participantNotification?: ParticipantNotification;
|
|
66
|
-
}
|
|
67
|
-
interface ParticipantNotification {
|
|
68
|
-
/**
|
|
69
|
-
* Specify whether to send the message about the changes to the customer.
|
|
70
|
-
*
|
|
71
|
-
* Default: `false`
|
|
72
|
-
*/
|
|
73
|
-
notifyParticipants?: boolean | null;
|
|
74
|
-
/**
|
|
75
|
-
* Optional custom message to send to the participants about the changes to the booking.
|
|
76
|
-
* @minLength 1
|
|
77
|
-
* @maxLength 5000
|
|
78
|
-
*/
|
|
79
|
-
message?: string | null;
|
|
80
|
-
}
|
|
81
|
-
interface SetAttendanceResponse {
|
|
82
|
-
/** Created or updated attendance. */
|
|
83
|
-
attendance?: Attendance;
|
|
84
|
-
}
|
|
85
|
-
interface BulkSetAttendanceRequest {
|
|
86
|
-
returnFullEntity?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* List of attendance details for booking sessions to create or update.
|
|
89
|
-
* @maxSize 8
|
|
90
|
-
*/
|
|
91
|
-
attendanceDetails?: AttendanceDetails[];
|
|
92
|
-
}
|
|
93
|
-
interface AttendanceDetails {
|
|
94
|
-
/** Created or updated attendance information for a booking session. */
|
|
95
|
-
attendance?: Attendance;
|
|
96
|
-
/** Information about whether to send a message to the customer after their attendance was set. */
|
|
97
|
-
participantNotification?: ParticipantNotification;
|
|
98
|
-
}
|
|
99
|
-
interface BulkSetAttendanceResponse {
|
|
100
|
-
/**
|
|
101
|
-
* List of created or updated `attendance` objects.
|
|
102
|
-
* @minSize 1
|
|
103
|
-
* @maxSize 8
|
|
104
|
-
*/
|
|
105
|
-
results?: BulkAttendanceResult[];
|
|
106
|
-
/** Information about the total number of successes and failures for the Bulk Set Attendance call. */
|
|
107
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
108
|
-
}
|
|
109
|
-
interface BulkAttendanceResult {
|
|
110
|
-
/** Created or updated `attendance` object. */
|
|
111
|
-
item?: Attendance;
|
|
112
|
-
/** Metadata for the created or updated `attendance` object. */
|
|
113
|
-
itemMetadata?: ItemMetadata;
|
|
114
|
-
}
|
|
115
|
-
interface ItemMetadata {
|
|
116
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
117
|
-
id?: string | null;
|
|
118
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
119
|
-
originalIndex?: number;
|
|
120
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
121
|
-
success?: boolean;
|
|
122
|
-
/** Details about the error in case of failure. */
|
|
123
|
-
error?: ApplicationError;
|
|
124
|
-
}
|
|
125
|
-
interface ApplicationError {
|
|
126
|
-
/** Error code. */
|
|
127
|
-
code?: string;
|
|
128
|
-
/** Description of the error. */
|
|
129
|
-
description?: string;
|
|
130
|
-
/** Data related to the error. */
|
|
131
|
-
data?: Record<string, any> | null;
|
|
132
|
-
}
|
|
133
|
-
interface BulkActionMetadata {
|
|
134
|
-
/** Number of items that were successfully processed. */
|
|
135
|
-
totalSuccesses?: number;
|
|
136
|
-
/** Number of items that couldn't be processed. */
|
|
137
|
-
totalFailures?: number;
|
|
138
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
139
|
-
undetailedFailures?: number;
|
|
140
|
-
}
|
|
141
|
-
interface QueryAttendanceRequest {
|
|
142
|
-
/** Query options. */
|
|
143
|
-
query: QueryV2;
|
|
144
|
-
}
|
|
145
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
146
|
-
/**
|
|
147
|
-
* Cursor token pointing to a page of results. In the first request,
|
|
148
|
-
* specify `cursorPaging.limit`. For following requests, specify the
|
|
149
|
-
* retrieved `cursorPaging.cursor` token and not `query.filter` or
|
|
150
|
-
* `query.sort`.
|
|
151
|
-
*/
|
|
152
|
-
cursorPaging?: CursorPaging;
|
|
153
|
-
/**
|
|
154
|
-
* Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
155
|
-
*
|
|
156
|
-
* For a detailed list of supported fields and operators, see [Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/attendance/supported-filters).
|
|
157
|
-
*
|
|
158
|
-
* Max: 1 filter
|
|
159
|
-
*/
|
|
160
|
-
filter?: Record<string, any> | null;
|
|
161
|
-
/**
|
|
162
|
-
* Sort object in the following format:
|
|
163
|
-
* `[ {"fieldName":"sortField1","order":"ASC"}, {"fieldName":"sortField2","order":"DESC"} ]`
|
|
164
|
-
*
|
|
165
|
-
* For details about sorting, see [Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/attendance/supported-filters).
|
|
166
|
-
*/
|
|
167
|
-
sort?: Sorting[];
|
|
168
|
-
}
|
|
169
|
-
/** @oneof */
|
|
170
|
-
interface QueryV2PagingMethodOneOf {
|
|
171
|
-
/**
|
|
172
|
-
* Cursor token pointing to a page of results. In the first request,
|
|
173
|
-
* specify `cursorPaging.limit`. For following requests, specify the
|
|
174
|
-
* retrieved `cursorPaging.cursor` token and not `query.filter` or
|
|
175
|
-
* `query.sort`.
|
|
176
|
-
*/
|
|
177
|
-
cursorPaging?: CursorPaging;
|
|
178
|
-
}
|
|
179
|
-
interface Sorting {
|
|
180
|
-
/** Name of the field to sort by. */
|
|
181
|
-
fieldName?: string;
|
|
182
|
-
/** Sort order. */
|
|
183
|
-
order?: SortOrder;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
187
|
-
*
|
|
188
|
-
* Default: `ASC`.
|
|
189
|
-
*/
|
|
190
|
-
declare enum SortOrder {
|
|
191
|
-
ASC = "ASC",
|
|
192
|
-
DESC = "DESC"
|
|
193
|
-
}
|
|
194
|
-
interface CursorPaging {
|
|
195
|
-
/**
|
|
196
|
-
* Number of `Attendance` objects to return.
|
|
197
|
-
*
|
|
198
|
-
* Default: `50`
|
|
199
|
-
* Maximum: `1000`
|
|
200
|
-
* @max 1000
|
|
201
|
-
*/
|
|
202
|
-
limit?: number | null;
|
|
203
|
-
/**
|
|
204
|
-
* Pointer to the next or previous page in the list of results.
|
|
205
|
-
*
|
|
206
|
-
* You can get the relevant cursor token
|
|
207
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
208
|
-
*
|
|
209
|
-
* Not relevant for the first request.
|
|
210
|
-
*/
|
|
211
|
-
cursor?: string | null;
|
|
212
|
-
}
|
|
213
|
-
/** List of objects that contain attendance information. */
|
|
214
|
-
interface QueryAttendanceResponse {
|
|
215
|
-
/** List of `attendance` objects that contain attendance information for a booked session. */
|
|
216
|
-
attendances?: Attendance[];
|
|
217
|
-
/** Metadata for the paged set of results. */
|
|
218
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
219
|
-
}
|
|
220
|
-
/** This is the preferred message for cursor-paging enabled services */
|
|
221
|
-
interface CursorPagingMetadata {
|
|
222
|
-
/** Use these cursors to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
223
|
-
cursors?: Cursors;
|
|
224
|
-
/**
|
|
225
|
-
* Indicates if there are more results after the current page.
|
|
226
|
-
* If `true`, another page of results can be retrieved.
|
|
227
|
-
* If `false`, this is the last page.
|
|
228
|
-
*/
|
|
229
|
-
hasNext?: boolean | null;
|
|
230
|
-
}
|
|
231
|
-
interface Cursors {
|
|
232
|
-
/** Cursor pointing to next page in the list of results. */
|
|
233
|
-
next?: string | null;
|
|
234
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
235
|
-
prev?: string | null;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
239
|
-
getUrl: (context: any) => string;
|
|
240
|
-
httpMethod: K;
|
|
241
|
-
path: string;
|
|
242
|
-
pathParams: M;
|
|
243
|
-
__requestType: T;
|
|
244
|
-
__originalRequestType: S;
|
|
245
|
-
__responseType: Q;
|
|
246
|
-
__originalResponseType: R;
|
|
247
|
-
};
|
|
248
|
-
declare function getAttendance(): __PublicMethodMetaInfo<'GET', {
|
|
249
|
-
attendanceId: string;
|
|
250
|
-
}, GetAttendanceRequest$1, GetAttendanceRequest, GetAttendanceResponse$1, GetAttendanceResponse>;
|
|
251
|
-
declare function setAttendance(): __PublicMethodMetaInfo<'POST', {}, SetAttendanceRequest$1, SetAttendanceRequest, SetAttendanceResponse$1, SetAttendanceResponse>;
|
|
252
|
-
declare function bulkSetAttendance(): __PublicMethodMetaInfo<'POST', {}, BulkSetAttendanceRequest$1, BulkSetAttendanceRequest, BulkSetAttendanceResponse$1, BulkSetAttendanceResponse>;
|
|
253
|
-
declare function queryAttendance(): __PublicMethodMetaInfo<'POST', {}, QueryAttendanceRequest$1, QueryAttendanceRequest, QueryAttendanceResponse$1, QueryAttendanceResponse>;
|
|
254
|
-
|
|
255
|
-
export { type __PublicMethodMetaInfo, bulkSetAttendance, getAttendance, queryAttendance, setAttendance };
|
package/build/internal/meta.d.ts
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { G as GetAttendanceRequest$1, f as GetAttendanceResponse$1, g as SetAttendanceRequest$1, a as SetAttendanceResponse$1, i as BulkSetAttendanceRequest$1, b as BulkSetAttendanceResponse$1, Q as QueryAttendanceRequest$1, r as QueryAttendanceResponse$1 } from './bookings-v2-attendance-attendance.universal-Bpl5-MB6.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The `attendance` object represents the attendance information
|
|
5
|
-
* for a booked session, such as:
|
|
6
|
-
*
|
|
7
|
-
* + Did anyone attend the session?
|
|
8
|
-
* + How many people attended the session?
|
|
9
|
-
*
|
|
10
|
-
* The number of session `attendance` objects available depends on the booking type:
|
|
11
|
-
* + Appointment bookings have 1 `attendance` object per appointment session.
|
|
12
|
-
* + Class bookings have 1 `attendance` object for each session of the class. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.
|
|
13
|
-
* + Course bookings have an `attendance` object for each session of the course. For example, if there are 12 sessions in a course, there are 12 `attendance` objects. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.
|
|
14
|
-
*/
|
|
15
|
-
interface Attendance {
|
|
16
|
-
/**
|
|
17
|
-
* ID of the `attendance` object.
|
|
18
|
-
* @format GUID
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
id?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Corresponding booking ID.
|
|
24
|
-
* @format GUID
|
|
25
|
-
*/
|
|
26
|
-
bookingId?: string | null;
|
|
27
|
-
/** Corresponding session ID. */
|
|
28
|
-
sessionId?: string | null;
|
|
29
|
-
/** Status indicating if any participants attended the session. */
|
|
30
|
-
status?: AttendanceStatus;
|
|
31
|
-
/**
|
|
32
|
-
* Total number of participants that attended the session. By default, the number
|
|
33
|
-
* of attendees is set to `1`, but you can set a number to greater than `1` if multiple
|
|
34
|
-
* participants attended.
|
|
35
|
-
*
|
|
36
|
-
* Do not set to `0` to indicate that no one attended the session. Instead, set the `status` field to `NOT_ATTENDED`.
|
|
37
|
-
*
|
|
38
|
-
* Default: 1
|
|
39
|
-
*/
|
|
40
|
-
numberOfAttendees?: number;
|
|
41
|
-
}
|
|
42
|
-
declare enum AttendanceStatus {
|
|
43
|
-
/** There is no available attendance information. */
|
|
44
|
-
NOT_SET = "NOT_SET",
|
|
45
|
-
/** At least a single participant attended the session. */
|
|
46
|
-
ATTENDED = "ATTENDED",
|
|
47
|
-
/** No participants attended the session. */
|
|
48
|
-
NOT_ATTENDED = "NOT_ATTENDED"
|
|
49
|
-
}
|
|
50
|
-
interface GetAttendanceRequest {
|
|
51
|
-
/**
|
|
52
|
-
* ID of the attendance object to retrieve.
|
|
53
|
-
* @format GUID
|
|
54
|
-
*/
|
|
55
|
-
attendanceId: string;
|
|
56
|
-
}
|
|
57
|
-
interface GetAttendanceResponse {
|
|
58
|
-
/** Retrieved attendance. */
|
|
59
|
-
attendance?: Attendance;
|
|
60
|
-
}
|
|
61
|
-
interface SetAttendanceRequest {
|
|
62
|
-
/** Attendance to create or update. */
|
|
63
|
-
attendance: Attendance;
|
|
64
|
-
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
65
|
-
participantNotification?: ParticipantNotification;
|
|
66
|
-
}
|
|
67
|
-
interface ParticipantNotification {
|
|
68
|
-
/**
|
|
69
|
-
* Specify whether to send the message about the changes to the customer.
|
|
70
|
-
*
|
|
71
|
-
* Default: `false`
|
|
72
|
-
*/
|
|
73
|
-
notifyParticipants?: boolean | null;
|
|
74
|
-
/**
|
|
75
|
-
* Optional custom message to send to the participants about the changes to the booking.
|
|
76
|
-
* @minLength 1
|
|
77
|
-
* @maxLength 5000
|
|
78
|
-
*/
|
|
79
|
-
message?: string | null;
|
|
80
|
-
}
|
|
81
|
-
interface SetAttendanceResponse {
|
|
82
|
-
/** Created or updated attendance. */
|
|
83
|
-
attendance?: Attendance;
|
|
84
|
-
}
|
|
85
|
-
interface BulkSetAttendanceRequest {
|
|
86
|
-
returnFullEntity?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* List of attendance details for booking sessions to create or update.
|
|
89
|
-
* @maxSize 8
|
|
90
|
-
*/
|
|
91
|
-
attendanceDetails?: AttendanceDetails[];
|
|
92
|
-
}
|
|
93
|
-
interface AttendanceDetails {
|
|
94
|
-
/** Created or updated attendance information for a booking session. */
|
|
95
|
-
attendance?: Attendance;
|
|
96
|
-
/** Information about whether to send a message to the customer after their attendance was set. */
|
|
97
|
-
participantNotification?: ParticipantNotification;
|
|
98
|
-
}
|
|
99
|
-
interface BulkSetAttendanceResponse {
|
|
100
|
-
/**
|
|
101
|
-
* List of created or updated `attendance` objects.
|
|
102
|
-
* @minSize 1
|
|
103
|
-
* @maxSize 8
|
|
104
|
-
*/
|
|
105
|
-
results?: BulkAttendanceResult[];
|
|
106
|
-
/** Information about the total number of successes and failures for the Bulk Set Attendance call. */
|
|
107
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
108
|
-
}
|
|
109
|
-
interface BulkAttendanceResult {
|
|
110
|
-
/** Created or updated `attendance` object. */
|
|
111
|
-
item?: Attendance;
|
|
112
|
-
/** Metadata for the created or updated `attendance` object. */
|
|
113
|
-
itemMetadata?: ItemMetadata;
|
|
114
|
-
}
|
|
115
|
-
interface ItemMetadata {
|
|
116
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
117
|
-
id?: string | null;
|
|
118
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
119
|
-
originalIndex?: number;
|
|
120
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
121
|
-
success?: boolean;
|
|
122
|
-
/** Details about the error in case of failure. */
|
|
123
|
-
error?: ApplicationError;
|
|
124
|
-
}
|
|
125
|
-
interface ApplicationError {
|
|
126
|
-
/** Error code. */
|
|
127
|
-
code?: string;
|
|
128
|
-
/** Description of the error. */
|
|
129
|
-
description?: string;
|
|
130
|
-
/** Data related to the error. */
|
|
131
|
-
data?: Record<string, any> | null;
|
|
132
|
-
}
|
|
133
|
-
interface BulkActionMetadata {
|
|
134
|
-
/** Number of items that were successfully processed. */
|
|
135
|
-
totalSuccesses?: number;
|
|
136
|
-
/** Number of items that couldn't be processed. */
|
|
137
|
-
totalFailures?: number;
|
|
138
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
139
|
-
undetailedFailures?: number;
|
|
140
|
-
}
|
|
141
|
-
interface QueryAttendanceRequest {
|
|
142
|
-
/** Query options. */
|
|
143
|
-
query: QueryV2;
|
|
144
|
-
}
|
|
145
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
146
|
-
/**
|
|
147
|
-
* Cursor token pointing to a page of results. In the first request,
|
|
148
|
-
* specify `cursorPaging.limit`. For following requests, specify the
|
|
149
|
-
* retrieved `cursorPaging.cursor` token and not `query.filter` or
|
|
150
|
-
* `query.sort`.
|
|
151
|
-
*/
|
|
152
|
-
cursorPaging?: CursorPaging;
|
|
153
|
-
/**
|
|
154
|
-
* Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
155
|
-
*
|
|
156
|
-
* For a detailed list of supported fields and operators, see [Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/attendance/supported-filters).
|
|
157
|
-
*
|
|
158
|
-
* Max: 1 filter
|
|
159
|
-
*/
|
|
160
|
-
filter?: Record<string, any> | null;
|
|
161
|
-
/**
|
|
162
|
-
* Sort object in the following format:
|
|
163
|
-
* `[ {"fieldName":"sortField1","order":"ASC"}, {"fieldName":"sortField2","order":"DESC"} ]`
|
|
164
|
-
*
|
|
165
|
-
* For details about sorting, see [Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/attendance/supported-filters).
|
|
166
|
-
*/
|
|
167
|
-
sort?: Sorting[];
|
|
168
|
-
}
|
|
169
|
-
/** @oneof */
|
|
170
|
-
interface QueryV2PagingMethodOneOf {
|
|
171
|
-
/**
|
|
172
|
-
* Cursor token pointing to a page of results. In the first request,
|
|
173
|
-
* specify `cursorPaging.limit`. For following requests, specify the
|
|
174
|
-
* retrieved `cursorPaging.cursor` token and not `query.filter` or
|
|
175
|
-
* `query.sort`.
|
|
176
|
-
*/
|
|
177
|
-
cursorPaging?: CursorPaging;
|
|
178
|
-
}
|
|
179
|
-
interface Sorting {
|
|
180
|
-
/** Name of the field to sort by. */
|
|
181
|
-
fieldName?: string;
|
|
182
|
-
/** Sort order. */
|
|
183
|
-
order?: SortOrder;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
187
|
-
*
|
|
188
|
-
* Default: `ASC`.
|
|
189
|
-
*/
|
|
190
|
-
declare enum SortOrder {
|
|
191
|
-
ASC = "ASC",
|
|
192
|
-
DESC = "DESC"
|
|
193
|
-
}
|
|
194
|
-
interface CursorPaging {
|
|
195
|
-
/**
|
|
196
|
-
* Number of `Attendance` objects to return.
|
|
197
|
-
*
|
|
198
|
-
* Default: `50`
|
|
199
|
-
* Maximum: `1000`
|
|
200
|
-
* @max 1000
|
|
201
|
-
*/
|
|
202
|
-
limit?: number | null;
|
|
203
|
-
/**
|
|
204
|
-
* Pointer to the next or previous page in the list of results.
|
|
205
|
-
*
|
|
206
|
-
* You can get the relevant cursor token
|
|
207
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
208
|
-
*
|
|
209
|
-
* Not relevant for the first request.
|
|
210
|
-
*/
|
|
211
|
-
cursor?: string | null;
|
|
212
|
-
}
|
|
213
|
-
/** List of objects that contain attendance information. */
|
|
214
|
-
interface QueryAttendanceResponse {
|
|
215
|
-
/** List of `attendance` objects that contain attendance information for a booked session. */
|
|
216
|
-
attendances?: Attendance[];
|
|
217
|
-
/** Metadata for the paged set of results. */
|
|
218
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
219
|
-
}
|
|
220
|
-
/** This is the preferred message for cursor-paging enabled services */
|
|
221
|
-
interface CursorPagingMetadata {
|
|
222
|
-
/** Use these cursors to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
223
|
-
cursors?: Cursors;
|
|
224
|
-
/**
|
|
225
|
-
* Indicates if there are more results after the current page.
|
|
226
|
-
* If `true`, another page of results can be retrieved.
|
|
227
|
-
* If `false`, this is the last page.
|
|
228
|
-
*/
|
|
229
|
-
hasNext?: boolean | null;
|
|
230
|
-
}
|
|
231
|
-
interface Cursors {
|
|
232
|
-
/** Cursor pointing to next page in the list of results. */
|
|
233
|
-
next?: string | null;
|
|
234
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
235
|
-
prev?: string | null;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
239
|
-
getUrl: (context: any) => string;
|
|
240
|
-
httpMethod: K;
|
|
241
|
-
path: string;
|
|
242
|
-
pathParams: M;
|
|
243
|
-
__requestType: T;
|
|
244
|
-
__originalRequestType: S;
|
|
245
|
-
__responseType: Q;
|
|
246
|
-
__originalResponseType: R;
|
|
247
|
-
};
|
|
248
|
-
declare function getAttendance(): __PublicMethodMetaInfo<'GET', {
|
|
249
|
-
attendanceId: string;
|
|
250
|
-
}, GetAttendanceRequest$1, GetAttendanceRequest, GetAttendanceResponse$1, GetAttendanceResponse>;
|
|
251
|
-
declare function setAttendance(): __PublicMethodMetaInfo<'POST', {}, SetAttendanceRequest$1, SetAttendanceRequest, SetAttendanceResponse$1, SetAttendanceResponse>;
|
|
252
|
-
declare function bulkSetAttendance(): __PublicMethodMetaInfo<'POST', {}, BulkSetAttendanceRequest$1, BulkSetAttendanceRequest, BulkSetAttendanceResponse$1, BulkSetAttendanceResponse>;
|
|
253
|
-
declare function queryAttendance(): __PublicMethodMetaInfo<'POST', {}, QueryAttendanceRequest$1, QueryAttendanceRequest, QueryAttendanceResponse$1, QueryAttendanceResponse>;
|
|
254
|
-
|
|
255
|
-
export { type __PublicMethodMetaInfo, bulkSetAttendance, getAttendance, queryAttendance, setAttendance };
|