@wix/auto_sdk_bookings_attendance 1.0.13 → 1.0.15

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.
Files changed (129) hide show
  1. package/build/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.mts} +131 -48
  2. package/build/{cjs/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +131 -48
  3. package/build/{internal/cjs/src/bookings-v2-attendance-attendance.public.d.ts → index.d.mts} +15 -10
  4. package/build/{cjs/src/bookings-v2-attendance-attendance.public.d.ts → index.d.ts} +15 -10
  5. package/build/index.js +461 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +431 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.mts} +131 -48
  10. package/build/internal/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +131 -48
  11. package/build/internal/{es/src/bookings-v2-attendance-attendance.public.d.ts → index.d.mts} +15 -10
  12. package/build/{es/src/bookings-v2-attendance-attendance.public.d.ts → internal/index.d.ts} +15 -10
  13. package/build/internal/index.js +461 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +431 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +259 -0
  18. package/build/internal/meta.d.ts +259 -0
  19. package/build/internal/meta.js +339 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +309 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +259 -0
  24. package/build/meta.d.ts +259 -0
  25. package/build/meta.js +339 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +309 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
  40. package/build/cjs/src/bookings-v2-attendance-attendance.context.js +0 -14
  41. package/build/cjs/src/bookings-v2-attendance-attendance.context.js.map +0 -1
  42. package/build/cjs/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
  43. package/build/cjs/src/bookings-v2-attendance-attendance.http.js +0 -288
  44. package/build/cjs/src/bookings-v2-attendance-attendance.http.js.map +0 -1
  45. package/build/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
  46. package/build/cjs/src/bookings-v2-attendance-attendance.meta.js +0 -104
  47. package/build/cjs/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-v2-attendance-attendance.public.js +0 -34
  49. package/build/cjs/src/bookings-v2-attendance-attendance.public.js.map +0 -1
  50. package/build/cjs/src/bookings-v2-attendance-attendance.types.js +0 -31
  51. package/build/cjs/src/bookings-v2-attendance-attendance.types.js.map +0 -1
  52. package/build/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +0 -584
  53. package/build/cjs/src/bookings-v2-attendance-attendance.universal.js +0 -302
  54. package/build/cjs/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
  65. package/build/es/src/bookings-v2-attendance-attendance.context.js +0 -8
  66. package/build/es/src/bookings-v2-attendance-attendance.context.js.map +0 -1
  67. package/build/es/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
  68. package/build/es/src/bookings-v2-attendance-attendance.http.js +0 -281
  69. package/build/es/src/bookings-v2-attendance-attendance.http.js.map +0 -1
  70. package/build/es/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
  71. package/build/es/src/bookings-v2-attendance-attendance.meta.js +0 -74
  72. package/build/es/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
  73. package/build/es/src/bookings-v2-attendance-attendance.public.js +0 -24
  74. package/build/es/src/bookings-v2-attendance-attendance.public.js.map +0 -1
  75. package/build/es/src/bookings-v2-attendance-attendance.types.js +0 -28
  76. package/build/es/src/bookings-v2-attendance-attendance.types.js.map +0 -1
  77. package/build/es/src/bookings-v2-attendance-attendance.universal.d.ts +0 -584
  78. package/build/es/src/bookings-v2-attendance-attendance.universal.js +0 -272
  79. package/build/es/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
  90. package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js +0 -14
  91. package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js.map +0 -1
  92. package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
  93. package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js +0 -288
  94. package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js.map +0 -1
  95. package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
  96. package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js +0 -104
  97. package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
  98. package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js +0 -34
  99. package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js.map +0 -1
  100. package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js +0 -31
  101. package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js.map +0 -1
  102. package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +0 -584
  103. package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js +0 -302
  104. package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
  115. package/build/internal/es/src/bookings-v2-attendance-attendance.context.js +0 -8
  116. package/build/internal/es/src/bookings-v2-attendance-attendance.context.js.map +0 -1
  117. package/build/internal/es/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
  118. package/build/internal/es/src/bookings-v2-attendance-attendance.http.js +0 -281
  119. package/build/internal/es/src/bookings-v2-attendance-attendance.http.js.map +0 -1
  120. package/build/internal/es/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
  121. package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js +0 -74
  122. package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
  123. package/build/internal/es/src/bookings-v2-attendance-attendance.public.js +0 -24
  124. package/build/internal/es/src/bookings-v2-attendance-attendance.public.js.map +0 -1
  125. package/build/internal/es/src/bookings-v2-attendance-attendance.types.js +0 -28
  126. package/build/internal/es/src/bookings-v2-attendance-attendance.types.js.map +0 -1
  127. package/build/internal/es/src/bookings-v2-attendance-attendance.universal.d.ts +0 -584
  128. package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js +0 -272
  129. package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
@@ -1,584 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- /**
3
- * The `attendance` object represents the attendance information
4
- * for a booked session, such as:
5
- *
6
- * + Did anyone attend the session?
7
- * + How many people attended the session?
8
- *
9
- * The number of session `attendance` objects available depends on the booking type:
10
- * + Appointment bookings have 1 `attendance` object per appointment session.
11
- * + 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.
12
- * + 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.
13
- */
14
- export interface Attendance {
15
- /**
16
- * ID of the `attendance` object.
17
- * @format GUID
18
- * @readonly
19
- */
20
- _id?: string | null;
21
- /**
22
- * Corresponding booking ID.
23
- * @format GUID
24
- */
25
- bookingId?: string | null;
26
- /** Corresponding session ID. */
27
- sessionId?: string | null;
28
- /** Status indicating if any participants attended the session. */
29
- status?: AttendanceStatus;
30
- /**
31
- * Total number of participants that attended the session. By default, the number
32
- * of attendees is set to `1`, but you can set a number to greater than `1` if multiple
33
- * participants attended.
34
- *
35
- * Do not set to `0` to indicate that no one attended the session. Instead, set the `status` field to `NOT_ATTENDED`.
36
- *
37
- * Default: 1
38
- */
39
- numberOfAttendees?: number;
40
- }
41
- export declare enum AttendanceStatus {
42
- /** There is no available attendance information. */
43
- NOT_SET = "NOT_SET",
44
- /** At least a single participant attended the session. */
45
- ATTENDED = "ATTENDED",
46
- /** No participants attended the session. */
47
- NOT_ATTENDED = "NOT_ATTENDED"
48
- }
49
- export interface GetAttendanceRequest {
50
- /**
51
- * ID of the attendance object to retrieve.
52
- * @format GUID
53
- */
54
- attendanceId: string;
55
- }
56
- export interface GetAttendanceResponse {
57
- /** Retrieved attendance. */
58
- attendance?: Attendance;
59
- }
60
- export interface SetAttendanceRequest {
61
- /** Attendance to create or update. */
62
- attendance: Attendance;
63
- /** Information about whether to send a message to a customer after their attendance was set. */
64
- participantNotification?: ParticipantNotification;
65
- }
66
- export interface ParticipantNotification {
67
- /**
68
- * Specify whether to send the message about the changes to the customer.
69
- *
70
- * Default: `false`
71
- */
72
- notifyParticipants?: boolean | null;
73
- /**
74
- * Optional custom message to send to the participants about the changes to the booking.
75
- * @minLength 1
76
- * @maxLength 5000
77
- */
78
- message?: string | null;
79
- }
80
- export interface SetAttendanceResponse {
81
- /** Created or updated attendance. */
82
- attendance?: Attendance;
83
- }
84
- export interface AttendanceMarkedAsNotAttended {
85
- /** The attendance information for a booked session that you want to create or update. */
86
- attendance?: Attendance;
87
- /** Information about whether to send a message to a customer after their attendance was set. */
88
- participantNotification?: ParticipantNotification;
89
- }
90
- export interface BulkSetAttendanceRequest {
91
- returnFullEntity?: boolean;
92
- /**
93
- * List of attendance details for booking sessions to create or update.
94
- * @maxSize 8
95
- */
96
- attendanceDetails?: AttendanceDetails[];
97
- }
98
- export interface AttendanceDetails {
99
- /** Created or updated attendance information for a booking session. */
100
- attendance?: Attendance;
101
- /** Information about whether to send a message to the customer after their attendance was set. */
102
- participantNotification?: ParticipantNotification;
103
- }
104
- export interface BulkSetAttendanceResponse {
105
- /**
106
- * List of created or updated `attendance` objects.
107
- * @minSize 1
108
- * @maxSize 8
109
- */
110
- results?: BulkAttendanceResult[];
111
- /** Information about the total number of successes and failures for the Bulk Set Attendance call. */
112
- bulkActionMetadata?: BulkActionMetadata;
113
- }
114
- export interface BulkAttendanceResult {
115
- /** Created or updated `attendance` object. */
116
- item?: Attendance;
117
- /** Metadata for the created or updated `attendance` object. */
118
- itemMetadata?: ItemMetadata;
119
- }
120
- export interface ItemMetadata {
121
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
122
- _id?: string | null;
123
- /** Index of the item within the request array. Allows for correlation between request and response items. */
124
- originalIndex?: number;
125
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
126
- success?: boolean;
127
- /** Details about the error in case of failure. */
128
- error?: ApplicationError;
129
- }
130
- export interface ApplicationError {
131
- /** Error code. */
132
- code?: string;
133
- /** Description of the error. */
134
- description?: string;
135
- /** Data related to the error. */
136
- data?: Record<string, any> | null;
137
- }
138
- export interface BulkActionMetadata {
139
- /** Number of items that were successfully processed. */
140
- totalSuccesses?: number;
141
- /** Number of items that couldn't be processed. */
142
- totalFailures?: number;
143
- /** Number of failures without details because detailed failure threshold was exceeded. */
144
- undetailedFailures?: number;
145
- }
146
- export interface QueryAttendanceRequest {
147
- /** Query options. */
148
- query: QueryV2;
149
- }
150
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
151
- /**
152
- * Cursor token pointing to a page of results. In the first request,
153
- * specify `cursorPaging.limit`. For following requests, specify the
154
- * retrieved `cursorPaging.cursor` token and not `query.filter` or
155
- * `query.sort`.
156
- */
157
- cursorPaging?: CursorPaging;
158
- /**
159
- * Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
160
- *
161
- * 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).
162
- *
163
- * Max: 1 filter
164
- */
165
- filter?: Record<string, any> | null;
166
- /**
167
- * Sort object in the following format:
168
- * `[ {"fieldName":"sortField1","order":"ASC"}, {"fieldName":"sortField2","order":"DESC"} ]`
169
- *
170
- * For details about sorting, see [Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/attendance/supported-filters).
171
- */
172
- sort?: Sorting[];
173
- }
174
- /** @oneof */
175
- export interface QueryV2PagingMethodOneOf {
176
- /**
177
- * Cursor token pointing to a page of results. In the first request,
178
- * specify `cursorPaging.limit`. For following requests, specify the
179
- * retrieved `cursorPaging.cursor` token and not `query.filter` or
180
- * `query.sort`.
181
- */
182
- cursorPaging?: CursorPaging;
183
- }
184
- export interface Sorting {
185
- /** Name of the field to sort by. */
186
- fieldName?: string;
187
- /** Sort order. */
188
- order?: SortOrder;
189
- }
190
- /**
191
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
192
- *
193
- * Default: `ASC`.
194
- */
195
- export declare enum SortOrder {
196
- ASC = "ASC",
197
- DESC = "DESC"
198
- }
199
- export interface Paging {
200
- /** Number of items to load. */
201
- limit?: number | null;
202
- /** Number of items to skip in the current sort order. */
203
- offset?: number | null;
204
- }
205
- export interface CursorPaging {
206
- /**
207
- * Number of `Attendance` objects to return.
208
- *
209
- * Default: `50`
210
- * Maximum: `1000`
211
- * @max 1000
212
- */
213
- limit?: number | null;
214
- /**
215
- * Pointer to the next or previous page in the list of results.
216
- *
217
- * You can get the relevant cursor token
218
- * from the `pagingMetadata` object in the previous call's response.
219
- *
220
- * Not relevant for the first request.
221
- */
222
- cursor?: string | null;
223
- }
224
- /** List of objects that contain attendance information. */
225
- export interface QueryAttendanceResponse {
226
- /** List of `attendance` objects that contain attendance information for a booked session. */
227
- attendances?: Attendance[];
228
- /** Metadata for the paged set of results. */
229
- pagingMetadata?: CursorPagingMetadata;
230
- }
231
- /** This is the preferred message for cursor-paging enabled services */
232
- export interface CursorPagingMetadata {
233
- /** 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). */
234
- cursors?: Cursors;
235
- /**
236
- * Indicates if there are more results after the current page.
237
- * If `true`, another page of results can be retrieved.
238
- * If `false`, this is the last page.
239
- */
240
- hasNext?: boolean | null;
241
- }
242
- export interface Cursors {
243
- /** Cursor pointing to next page in the list of results. */
244
- next?: string | null;
245
- /** Cursor pointing to previous page in the list of results. */
246
- prev?: string | null;
247
- }
248
- export interface DomainEvent extends DomainEventBodyOneOf {
249
- createdEvent?: EntityCreatedEvent;
250
- updatedEvent?: EntityUpdatedEvent;
251
- deletedEvent?: EntityDeletedEvent;
252
- actionEvent?: ActionEvent;
253
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
254
- _id?: string;
255
- /**
256
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
257
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
258
- */
259
- entityFqdn?: string;
260
- /**
261
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
262
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
263
- */
264
- slug?: string;
265
- /** ID of the entity associated with the event. */
266
- entityId?: string;
267
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
268
- eventTime?: Date | null;
269
- /**
270
- * Whether the event was triggered as a result of a privacy regulation application
271
- * (for example, GDPR).
272
- */
273
- triggeredByAnonymizeRequest?: boolean | null;
274
- /** If present, indicates the action that triggered the event. */
275
- originatedFrom?: string | null;
276
- /**
277
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
278
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
279
- */
280
- entityEventSequence?: string | null;
281
- }
282
- /** @oneof */
283
- export interface DomainEventBodyOneOf {
284
- createdEvent?: EntityCreatedEvent;
285
- updatedEvent?: EntityUpdatedEvent;
286
- deletedEvent?: EntityDeletedEvent;
287
- actionEvent?: ActionEvent;
288
- }
289
- export interface EntityCreatedEvent {
290
- entity?: string;
291
- }
292
- export interface RestoreInfo {
293
- deletedDate?: Date | null;
294
- }
295
- export interface EntityUpdatedEvent {
296
- /**
297
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
298
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
299
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
300
- */
301
- currentEntity?: string;
302
- }
303
- export interface EntityDeletedEvent {
304
- /** Entity that was deleted. */
305
- deletedEntity?: string | null;
306
- }
307
- export interface ActionEvent {
308
- body?: string;
309
- }
310
- export interface MessageEnvelope {
311
- /**
312
- * App instance ID.
313
- * @format GUID
314
- */
315
- instanceId?: string | null;
316
- /**
317
- * Event type.
318
- * @maxLength 150
319
- */
320
- eventType?: string;
321
- /** The identification type and identity data. */
322
- identity?: IdentificationData;
323
- /** Stringify payload. */
324
- data?: string;
325
- }
326
- export interface IdentificationData extends IdentificationDataIdOneOf {
327
- /**
328
- * ID of a site visitor that has not logged in to the site.
329
- * @format GUID
330
- */
331
- anonymousVisitorId?: string;
332
- /**
333
- * ID of a site visitor that has logged in to the site.
334
- * @format GUID
335
- */
336
- memberId?: string;
337
- /**
338
- * ID of a Wix user (site owner, contributor, etc.).
339
- * @format GUID
340
- */
341
- wixUserId?: string;
342
- /**
343
- * ID of an app.
344
- * @format GUID
345
- */
346
- appId?: string;
347
- /** @readonly */
348
- identityType?: WebhookIdentityType;
349
- }
350
- /** @oneof */
351
- export interface IdentificationDataIdOneOf {
352
- /**
353
- * ID of a site visitor that has not logged in to the site.
354
- * @format GUID
355
- */
356
- anonymousVisitorId?: string;
357
- /**
358
- * ID of a site visitor that has logged in to the site.
359
- * @format GUID
360
- */
361
- memberId?: string;
362
- /**
363
- * ID of a Wix user (site owner, contributor, etc.).
364
- * @format GUID
365
- */
366
- wixUserId?: string;
367
- /**
368
- * ID of an app.
369
- * @format GUID
370
- */
371
- appId?: string;
372
- }
373
- export declare enum WebhookIdentityType {
374
- UNKNOWN = "UNKNOWN",
375
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
376
- MEMBER = "MEMBER",
377
- WIX_USER = "WIX_USER",
378
- APP = "APP"
379
- }
380
- type AttendanceNonNullablePaths = `status` | `numberOfAttendees`;
381
- /**
382
- * Retrieves attendance information.
383
- * @param attendanceId - ID of the attendance object to retrieve.
384
- * @public
385
- * @documentationMaturity preview
386
- * @requiredField attendanceId
387
- * @permissionId BOOKINGS.ATTENDANCE_READ
388
- * @permissionScope Manage Stores
389
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
390
- * @permissionScope Manage Bookings Services and Settings
391
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
392
- * @permissionScope Manage Bookings
393
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
394
- * @permissionScope Read Bookings - Including Participants
395
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
396
- * @permissionScope Read Bookings - all read permissions
397
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
398
- * @permissionScope Manage Bookings - all permissions
399
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
400
- * @applicableIdentity APP
401
- * @applicableIdentity VISITOR
402
- * @returns Retrieved attendance.
403
- * @fqn com.wixpress.bookings.attendance.v2.AttendanceService.GetAttendance
404
- */
405
- export declare function getAttendance(attendanceId: string): Promise<NonNullablePaths<Attendance, AttendanceNonNullablePaths>>;
406
- /**
407
- * Sets or updates attendance information for a booking session. This
408
- * information is stored in an `attendance` object.
409
- *
410
- * If an `attendance` object already exists for the session, it's updated.
411
- * Otherwise, a new object is created.
412
- *
413
- * By default, `numberOfAttendees` is set to `1`, but you can specify a higher
414
- * number if multiple participants attended. Do not set `numberOfAttendees` to
415
- * `0` to indicate no attendance, instead specify `{"status": "NOT_ATTENDED"}`.
416
- *
417
- * Validation guidelines:
418
- *
419
- * + The call succeeds for mismatches between `numberOfAttendees`
420
- * and `status`. For example, make sure that your code doesn't specify
421
- * `{"status": "NOT_ATTENDED"}` with `{"numberOfAttendees": 5}`.
422
- * + The API also allows `numberOfAttendees` to exceed the booking's
423
- * `numberOfParticipants`. Use higher values only when scenarios like
424
- * walk-ins justify the exception.
425
- * @param attendance - Attendance to create or update.
426
- * @public
427
- * @documentationMaturity preview
428
- * @requiredField attendance
429
- * @requiredField attendance.bookingId
430
- * @requiredField attendance.status
431
- * @param options - Options to use when setting an attendance.
432
- * @permissionId BOOKINGS.ATTENDANCE_SET
433
- * @permissionScope Manage Bookings
434
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
435
- * @permissionScope Manage Bookings - all permissions
436
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
437
- * @applicableIdentity APP
438
- * @fqn com.wixpress.bookings.attendance.v2.AttendanceService.SetAttendance
439
- */
440
- export declare function setAttendance(attendance: NonNullablePaths<Attendance, `bookingId` | `status`>, options?: SetAttendanceOptions): Promise<NonNullablePaths<SetAttendanceResponse, {
441
- [P in AttendanceNonNullablePaths]: `attendance.${P}`;
442
- }[AttendanceNonNullablePaths]>>;
443
- export interface SetAttendanceOptions {
444
- /** Information about whether to send a message to a customer after their attendance was set. */
445
- participantNotification?: ParticipantNotification;
446
- }
447
- /**
448
- * Sets or updates attendance information for multiple booking sessions.
449
- *
450
- *
451
- * Refer to Set Attendance for detailed behavior of individual attendance
452
- * entries.
453
- *
454
- * The call fails entirely if any entry in `attendanceDetails` is missing a
455
- * required field.
456
- *
457
- * If attendance details are provided for a non-existent session, the call
458
- * succeeds for valid sessions while marking the unavailable session as a
459
- * failure in the response.
460
- * @public
461
- * @documentationMaturity preview
462
- * @param options - Options to use when setting multiple attendances in bulk.
463
- * @permissionId BOOKINGS.ATTENDANCE_SET
464
- * @permissionScope Manage Bookings
465
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
466
- * @permissionScope Manage Bookings - all permissions
467
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
468
- * @applicableIdentity APP
469
- * @fqn com.wixpress.bookings.attendance.v2.AttendanceService.BulkSetAttendance
470
- */
471
- export declare function bulkSetAttendance(options?: BulkSetAttendanceOptions): Promise<NonNullablePaths<BulkSetAttendanceResponse, `results` | {
472
- [P in AttendanceNonNullablePaths]: `results.${number}.item.${P}`;
473
- }[AttendanceNonNullablePaths] | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
474
- export interface BulkSetAttendanceOptions {
475
- returnFullEntity?: boolean;
476
- /**
477
- * List of attendance details for booking sessions to create or update.
478
- * @maxSize 8
479
- */
480
- attendanceDetails?: AttendanceDetails[];
481
- }
482
- /**
483
- * Creates a query to retrieve a list of attendances.
484
- *
485
- * The `queryAttendances()` function builds a query to retrieve a list of attendances and returns a `AttendancesQueryBuilder` object.
486
- *
487
- * The returned object contains the query definition, which is typically used to call the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-builder/find) function.
488
- *
489
- * You can refine the query by chaining `AttendancesQueryBuilder` functions onto the query. `AttendancesQueryBuilder` functions enable you to sort, filter, and control the results that `queryAttendances()` returns.
490
- *
491
- * `queryAttendances()` uses the following `AttendancesQueryBuilder` default values that you can override:
492
- *
493
- * + `limit` is `50`.
494
- * + Sorted by `id` in ascending order.
495
- *
496
- * The functions that are chained to `queryAttendances()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("numberOfAttendees")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"numberOfAttendees"`.
497
- *
498
- * The following `AttendancesQueryBuilder` functions are supported for the `queryAttendances()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-result/items) property in `AttendancesQueryResult`.
499
- * @public
500
- * @documentationMaturity preview
501
- * @permissionScope Manage Stores
502
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
503
- * @permissionScope Manage Bookings Services and Settings
504
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
505
- * @permissionScope Manage Bookings
506
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
507
- * @permissionScope Read Bookings - Including Participants
508
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
509
- * @permissionScope Read Bookings - all read permissions
510
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
511
- * @permissionScope Manage Bookings - all permissions
512
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
513
- * @permissionId BOOKINGS.ATTENDANCE_READ
514
- * @applicableIdentity APP
515
- * @applicableIdentity VISITOR
516
- * @fqn com.wixpress.bookings.attendance.v2.AttendanceService.QueryAttendance
517
- */
518
- export declare function queryAttendance(): AttendancesQueryBuilder;
519
- interface QueryCursorResult {
520
- cursors: Cursors;
521
- hasNext: () => boolean;
522
- hasPrev: () => boolean;
523
- length: number;
524
- pageSize: number;
525
- }
526
- export interface AttendancesQueryResult extends QueryCursorResult {
527
- items: Attendance[];
528
- query: AttendancesQueryBuilder;
529
- next: () => Promise<AttendancesQueryResult>;
530
- prev: () => Promise<AttendancesQueryResult>;
531
- }
532
- export interface AttendancesQueryBuilder {
533
- /** @param propertyName - Property whose value is compared with `value`.
534
- * @param value - Value to compare against.
535
- * @documentationMaturity preview
536
- */
537
- eq: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
538
- /** @param propertyName - Property whose value is compared with `value`.
539
- * @param value - Value to compare against.
540
- * @documentationMaturity preview
541
- */
542
- ne: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
543
- /** @param propertyName - Property whose value is compared with `value`.
544
- * @param value - Value to compare against.
545
- * @documentationMaturity preview
546
- */
547
- ge: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
548
- /** @param propertyName - Property whose value is compared with `value`.
549
- * @param value - Value to compare against.
550
- * @documentationMaturity preview
551
- */
552
- gt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
553
- /** @param propertyName - Property whose value is compared with `value`.
554
- * @param value - Value to compare against.
555
- * @documentationMaturity preview
556
- */
557
- le: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
558
- /** @param propertyName - Property whose value is compared with `value`.
559
- * @param value - Value to compare against.
560
- * @documentationMaturity preview
561
- */
562
- lt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
563
- /** @documentationMaturity preview */
564
- in: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
565
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
566
- * @documentationMaturity preview
567
- */
568
- ascending: (...propertyNames: Array<'_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees'>) => AttendancesQueryBuilder;
569
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
570
- * @documentationMaturity preview
571
- */
572
- descending: (...propertyNames: Array<'numberOfAttendees'>) => AttendancesQueryBuilder;
573
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
574
- * @documentationMaturity preview
575
- */
576
- limit: (limit: number) => AttendancesQueryBuilder;
577
- /** @param cursor - A pointer to specific record
578
- * @documentationMaturity preview
579
- */
580
- skipTo: (cursor: string) => AttendancesQueryBuilder;
581
- /** @documentationMaturity preview */
582
- find: () => Promise<AttendancesQueryResult>;
583
- }
584
- export {};