@wix/auto_sdk_bookings_attendance 1.0.14 → 1.0.16
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/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.mts} +125 -48
- package/build/{cjs/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +125 -48
- package/build/{internal/cjs/src/bookings-v2-attendance-attendance.public.d.ts → index.d.mts} +15 -10
- package/build/{cjs/src/bookings-v2-attendance-attendance.public.d.ts → index.d.ts} +15 -10
- package/build/index.js +461 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +431 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.mts} +125 -48
- package/build/internal/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +125 -48
- package/build/internal/{es/src/bookings-v2-attendance-attendance.public.d.ts → index.d.mts} +15 -10
- package/build/{es/src/bookings-v2-attendance-attendance.public.d.ts → internal/index.d.ts} +15 -10
- package/build/internal/index.js +461 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +431 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +259 -0
- package/build/internal/meta.d.ts +259 -0
- package/build/internal/meta.js +339 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +309 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +259 -0
- package/build/meta.d.ts +259 -0
- package/build/meta.js +339 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +309 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js +0 -14
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js +0 -288
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js +0 -104
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js +0 -34
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js +0 -31
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js.map +0 -1
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +0 -590
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js +0 -302
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
- package/build/es/src/bookings-v2-attendance-attendance.context.js +0 -8
- package/build/es/src/bookings-v2-attendance-attendance.context.js.map +0 -1
- package/build/es/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
- package/build/es/src/bookings-v2-attendance-attendance.http.js +0 -281
- package/build/es/src/bookings-v2-attendance-attendance.http.js.map +0 -1
- package/build/es/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
- package/build/es/src/bookings-v2-attendance-attendance.meta.js +0 -74
- package/build/es/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
- package/build/es/src/bookings-v2-attendance-attendance.public.js +0 -24
- package/build/es/src/bookings-v2-attendance-attendance.public.js.map +0 -1
- package/build/es/src/bookings-v2-attendance-attendance.types.js +0 -28
- package/build/es/src/bookings-v2-attendance-attendance.types.js.map +0 -1
- package/build/es/src/bookings-v2-attendance-attendance.universal.d.ts +0 -590
- package/build/es/src/bookings-v2-attendance-attendance.universal.js +0 -272
- package/build/es/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js +0 -14
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js +0 -288
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js +0 -104
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js +0 -34
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js +0 -31
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +0 -590
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js +0 -302
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.d.ts +0 -8
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js +0 -8
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.d.ts +0 -58
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js +0 -281
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.d.ts +0 -18
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js +0 -74
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js +0 -24
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js +0 -28
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js.map +0 -1
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.d.ts +0 -590
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js +0 -272
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js.map +0 -1
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* + 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.
|
|
11
11
|
* + 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.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
interface Attendance {
|
|
14
14
|
/**
|
|
15
15
|
* ID of the `attendance` object.
|
|
16
16
|
* @format GUID
|
|
17
17
|
* @readonly
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
_id?: string | null;
|
|
20
20
|
/**
|
|
21
21
|
* Corresponding booking ID.
|
|
22
22
|
* @format GUID
|
|
@@ -37,7 +37,7 @@ export interface Attendance {
|
|
|
37
37
|
*/
|
|
38
38
|
numberOfAttendees?: number;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
declare enum AttendanceStatus {
|
|
41
41
|
/** There is no available attendance information. */
|
|
42
42
|
NOT_SET = "NOT_SET",
|
|
43
43
|
/** At least a single participant attended the session. */
|
|
@@ -46,25 +46,25 @@ export declare enum AttendanceStatus {
|
|
|
46
46
|
NOT_ATTENDED = "NOT_ATTENDED"
|
|
47
47
|
}
|
|
48
48
|
/** @enumType */
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
type AttendanceStatusWithLiterals = AttendanceStatus | 'NOT_SET' | 'ATTENDED' | 'NOT_ATTENDED';
|
|
50
|
+
interface GetAttendanceRequest {
|
|
51
51
|
/**
|
|
52
52
|
* ID of the attendance object to retrieve.
|
|
53
53
|
* @format GUID
|
|
54
54
|
*/
|
|
55
55
|
attendanceId: string;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
interface GetAttendanceResponse {
|
|
58
58
|
/** Retrieved attendance. */
|
|
59
59
|
attendance?: Attendance;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
interface SetAttendanceRequest {
|
|
62
62
|
/** Attendance to create or update. */
|
|
63
63
|
attendance: Attendance;
|
|
64
64
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
65
65
|
participantNotification?: ParticipantNotification;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
interface ParticipantNotification {
|
|
68
68
|
/**
|
|
69
69
|
* Specify whether to send the message about the changes to the customer.
|
|
70
70
|
*
|
|
@@ -78,17 +78,17 @@ export interface ParticipantNotification {
|
|
|
78
78
|
*/
|
|
79
79
|
message?: string | null;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
interface SetAttendanceResponse {
|
|
82
82
|
/** Created or updated attendance. */
|
|
83
83
|
attendance?: Attendance;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
interface AttendanceMarkedAsNotAttended {
|
|
86
86
|
/** The attendance information for a booked session that you want to create or update. */
|
|
87
87
|
attendance?: Attendance;
|
|
88
88
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
89
89
|
participantNotification?: ParticipantNotification;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
interface BulkSetAttendanceRequest {
|
|
92
92
|
returnFullEntity?: boolean;
|
|
93
93
|
/**
|
|
94
94
|
* List of attendance details for booking sessions to create or update.
|
|
@@ -96,13 +96,13 @@ export interface BulkSetAttendanceRequest {
|
|
|
96
96
|
*/
|
|
97
97
|
attendanceDetails?: AttendanceDetails[];
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
interface AttendanceDetails {
|
|
100
100
|
/** Created or updated attendance information for a booking session. */
|
|
101
101
|
attendance?: Attendance;
|
|
102
102
|
/** Information about whether to send a message to the customer after their attendance was set. */
|
|
103
103
|
participantNotification?: ParticipantNotification;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
interface BulkSetAttendanceResponse {
|
|
106
106
|
/**
|
|
107
107
|
* List of created or updated `attendance` objects.
|
|
108
108
|
* @minSize 1
|
|
@@ -112,15 +112,15 @@ export interface BulkSetAttendanceResponse {
|
|
|
112
112
|
/** Information about the total number of successes and failures for the Bulk Set Attendance call. */
|
|
113
113
|
bulkActionMetadata?: BulkActionMetadata;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
interface BulkAttendanceResult {
|
|
116
116
|
/** Created or updated `attendance` object. */
|
|
117
117
|
item?: Attendance;
|
|
118
118
|
/** Metadata for the created or updated `attendance` object. */
|
|
119
119
|
itemMetadata?: ItemMetadata;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
interface ItemMetadata {
|
|
122
122
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
123
|
-
|
|
123
|
+
_id?: string | null;
|
|
124
124
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
125
125
|
originalIndex?: number;
|
|
126
126
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -128,7 +128,7 @@ export interface ItemMetadata {
|
|
|
128
128
|
/** Details about the error in case of failure. */
|
|
129
129
|
error?: ApplicationError;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
interface ApplicationError {
|
|
132
132
|
/** Error code. */
|
|
133
133
|
code?: string;
|
|
134
134
|
/** Description of the error. */
|
|
@@ -136,7 +136,7 @@ export interface ApplicationError {
|
|
|
136
136
|
/** Data related to the error. */
|
|
137
137
|
data?: Record<string, any> | null;
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
interface BulkActionMetadata {
|
|
140
140
|
/** Number of items that were successfully processed. */
|
|
141
141
|
totalSuccesses?: number;
|
|
142
142
|
/** Number of items that couldn't be processed. */
|
|
@@ -144,11 +144,11 @@ export interface BulkActionMetadata {
|
|
|
144
144
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
145
145
|
undetailedFailures?: number;
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
interface QueryAttendanceRequest {
|
|
148
148
|
/** Query options. */
|
|
149
149
|
query: QueryV2;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
152
152
|
/**
|
|
153
153
|
* Cursor token pointing to a page of results. In the first request,
|
|
154
154
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -173,7 +173,7 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
173
173
|
sort?: Sorting[];
|
|
174
174
|
}
|
|
175
175
|
/** @oneof */
|
|
176
|
-
|
|
176
|
+
interface QueryV2PagingMethodOneOf {
|
|
177
177
|
/**
|
|
178
178
|
* Cursor token pointing to a page of results. In the first request,
|
|
179
179
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -182,7 +182,7 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
182
182
|
*/
|
|
183
183
|
cursorPaging?: CursorPaging;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface Sorting {
|
|
186
186
|
/** Name of the field to sort by. */
|
|
187
187
|
fieldName?: string;
|
|
188
188
|
/** Sort order. */
|
|
@@ -193,19 +193,19 @@ export interface Sorting {
|
|
|
193
193
|
*
|
|
194
194
|
* Default: `ASC`.
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
declare enum SortOrder {
|
|
197
197
|
ASC = "ASC",
|
|
198
198
|
DESC = "DESC"
|
|
199
199
|
}
|
|
200
200
|
/** @enumType */
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
202
|
+
interface Paging {
|
|
203
203
|
/** Number of items to load. */
|
|
204
204
|
limit?: number | null;
|
|
205
205
|
/** Number of items to skip in the current sort order. */
|
|
206
206
|
offset?: number | null;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
interface CursorPaging {
|
|
209
209
|
/**
|
|
210
210
|
* Number of `Attendance` objects to return.
|
|
211
211
|
*
|
|
@@ -225,14 +225,14 @@ export interface CursorPaging {
|
|
|
225
225
|
cursor?: string | null;
|
|
226
226
|
}
|
|
227
227
|
/** List of objects that contain attendance information. */
|
|
228
|
-
|
|
228
|
+
interface QueryAttendanceResponse {
|
|
229
229
|
/** List of `attendance` objects that contain attendance information for a booked session. */
|
|
230
230
|
attendances?: Attendance[];
|
|
231
231
|
/** Metadata for the paged set of results. */
|
|
232
232
|
pagingMetadata?: CursorPagingMetadata;
|
|
233
233
|
}
|
|
234
234
|
/** This is the preferred message for cursor-paging enabled services */
|
|
235
|
-
|
|
235
|
+
interface CursorPagingMetadata {
|
|
236
236
|
/** 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). */
|
|
237
237
|
cursors?: Cursors;
|
|
238
238
|
/**
|
|
@@ -242,19 +242,19 @@ export interface CursorPagingMetadata {
|
|
|
242
242
|
*/
|
|
243
243
|
hasNext?: boolean | null;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
interface Cursors {
|
|
246
246
|
/** Cursor pointing to next page in the list of results. */
|
|
247
247
|
next?: string | null;
|
|
248
248
|
/** Cursor pointing to previous page in the list of results. */
|
|
249
249
|
prev?: string | null;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
252
252
|
createdEvent?: EntityCreatedEvent;
|
|
253
253
|
updatedEvent?: EntityUpdatedEvent;
|
|
254
254
|
deletedEvent?: EntityDeletedEvent;
|
|
255
255
|
actionEvent?: ActionEvent;
|
|
256
256
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
257
|
-
|
|
257
|
+
_id?: string;
|
|
258
258
|
/**
|
|
259
259
|
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
260
260
|
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
@@ -283,36 +283,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
283
283
|
entityEventSequence?: string | null;
|
|
284
284
|
}
|
|
285
285
|
/** @oneof */
|
|
286
|
-
|
|
286
|
+
interface DomainEventBodyOneOf {
|
|
287
287
|
createdEvent?: EntityCreatedEvent;
|
|
288
288
|
updatedEvent?: EntityUpdatedEvent;
|
|
289
289
|
deletedEvent?: EntityDeletedEvent;
|
|
290
290
|
actionEvent?: ActionEvent;
|
|
291
291
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
295
|
-
restoreInfo?: RestoreInfo;
|
|
292
|
+
interface EntityCreatedEvent {
|
|
293
|
+
entity?: string;
|
|
296
294
|
}
|
|
297
|
-
|
|
295
|
+
interface RestoreInfo {
|
|
298
296
|
deletedDate?: Date | null;
|
|
299
297
|
}
|
|
300
|
-
|
|
298
|
+
interface EntityUpdatedEvent {
|
|
301
299
|
/**
|
|
302
300
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
303
301
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
304
302
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
305
303
|
*/
|
|
306
|
-
|
|
304
|
+
currentEntity?: string;
|
|
307
305
|
}
|
|
308
|
-
|
|
306
|
+
interface EntityDeletedEvent {
|
|
309
307
|
/** Entity that was deleted. */
|
|
310
|
-
|
|
308
|
+
deletedEntity?: string | null;
|
|
311
309
|
}
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
interface ActionEvent {
|
|
311
|
+
body?: string;
|
|
314
312
|
}
|
|
315
|
-
|
|
313
|
+
interface MessageEnvelope {
|
|
316
314
|
/**
|
|
317
315
|
* App instance ID.
|
|
318
316
|
* @format GUID
|
|
@@ -328,7 +326,7 @@ export interface MessageEnvelope {
|
|
|
328
326
|
/** Stringify payload. */
|
|
329
327
|
data?: string;
|
|
330
328
|
}
|
|
331
|
-
|
|
329
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
332
330
|
/**
|
|
333
331
|
* ID of a site visitor that has not logged in to the site.
|
|
334
332
|
* @format GUID
|
|
@@ -353,7 +351,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
353
351
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
354
352
|
}
|
|
355
353
|
/** @oneof */
|
|
356
|
-
|
|
354
|
+
interface IdentificationDataIdOneOf {
|
|
357
355
|
/**
|
|
358
356
|
* ID of a site visitor that has not logged in to the site.
|
|
359
357
|
* @format GUID
|
|
@@ -375,7 +373,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
375
373
|
*/
|
|
376
374
|
appId?: string;
|
|
377
375
|
}
|
|
378
|
-
|
|
376
|
+
declare enum WebhookIdentityType {
|
|
379
377
|
UNKNOWN = "UNKNOWN",
|
|
380
378
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
381
379
|
MEMBER = "MEMBER",
|
|
@@ -383,4 +381,83 @@ export declare enum WebhookIdentityType {
|
|
|
383
381
|
APP = "APP"
|
|
384
382
|
}
|
|
385
383
|
/** @enumType */
|
|
386
|
-
|
|
384
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
385
|
+
interface SetAttendanceOptions {
|
|
386
|
+
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
387
|
+
participantNotification?: ParticipantNotification;
|
|
388
|
+
}
|
|
389
|
+
interface BulkSetAttendanceOptions {
|
|
390
|
+
returnFullEntity?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* List of attendance details for booking sessions to create or update.
|
|
393
|
+
* @maxSize 8
|
|
394
|
+
*/
|
|
395
|
+
attendanceDetails?: AttendanceDetails[];
|
|
396
|
+
}
|
|
397
|
+
interface QueryCursorResult {
|
|
398
|
+
cursors: Cursors;
|
|
399
|
+
hasNext: () => boolean;
|
|
400
|
+
hasPrev: () => boolean;
|
|
401
|
+
length: number;
|
|
402
|
+
pageSize: number;
|
|
403
|
+
}
|
|
404
|
+
interface AttendancesQueryResult extends QueryCursorResult {
|
|
405
|
+
items: Attendance[];
|
|
406
|
+
query: AttendancesQueryBuilder;
|
|
407
|
+
next: () => Promise<AttendancesQueryResult>;
|
|
408
|
+
prev: () => Promise<AttendancesQueryResult>;
|
|
409
|
+
}
|
|
410
|
+
interface AttendancesQueryBuilder {
|
|
411
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
412
|
+
* @param value - Value to compare against.
|
|
413
|
+
* @documentationMaturity preview
|
|
414
|
+
*/
|
|
415
|
+
eq: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
416
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
417
|
+
* @param value - Value to compare against.
|
|
418
|
+
* @documentationMaturity preview
|
|
419
|
+
*/
|
|
420
|
+
ne: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
421
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
422
|
+
* @param value - Value to compare against.
|
|
423
|
+
* @documentationMaturity preview
|
|
424
|
+
*/
|
|
425
|
+
ge: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
426
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
427
|
+
* @param value - Value to compare against.
|
|
428
|
+
* @documentationMaturity preview
|
|
429
|
+
*/
|
|
430
|
+
gt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
431
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
432
|
+
* @param value - Value to compare against.
|
|
433
|
+
* @documentationMaturity preview
|
|
434
|
+
*/
|
|
435
|
+
le: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
436
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
437
|
+
* @param value - Value to compare against.
|
|
438
|
+
* @documentationMaturity preview
|
|
439
|
+
*/
|
|
440
|
+
lt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
441
|
+
/** @documentationMaturity preview */
|
|
442
|
+
in: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
443
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
444
|
+
* @documentationMaturity preview
|
|
445
|
+
*/
|
|
446
|
+
ascending: (...propertyNames: Array<'_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees'>) => AttendancesQueryBuilder;
|
|
447
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
448
|
+
* @documentationMaturity preview
|
|
449
|
+
*/
|
|
450
|
+
descending: (...propertyNames: Array<'numberOfAttendees'>) => AttendancesQueryBuilder;
|
|
451
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
452
|
+
* @documentationMaturity preview
|
|
453
|
+
*/
|
|
454
|
+
limit: (limit: number) => AttendancesQueryBuilder;
|
|
455
|
+
/** @param cursor - A pointer to specific record
|
|
456
|
+
* @documentationMaturity preview
|
|
457
|
+
*/
|
|
458
|
+
skipTo: (cursor: string) => AttendancesQueryBuilder;
|
|
459
|
+
/** @documentationMaturity preview */
|
|
460
|
+
find: () => Promise<AttendancesQueryResult>;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export { type Attendance as A, type BulkSetAttendanceOptions as B, type CursorPaging as C, type DomainEvent as D, type EntityCreatedEvent as E, type AttendancesQueryResult as F, type GetAttendanceRequest as G, type ItemMetadata as I, type MessageEnvelope as M, type ParticipantNotification as P, type QueryAttendanceRequest as Q, type RestoreInfo as R, type SetAttendanceOptions as S, WebhookIdentityType as W, type SetAttendanceResponse as a, type BulkSetAttendanceResponse as b, type AttendancesQueryBuilder as c, AttendanceStatus as d, SortOrder as e, type GetAttendanceResponse as f, type SetAttendanceRequest as g, type AttendanceMarkedAsNotAttended as h, type BulkSetAttendanceRequest as i, type AttendanceDetails as j, type BulkAttendanceResult as k, type ApplicationError as l, type BulkActionMetadata as m, type QueryV2 as n, type QueryV2PagingMethodOneOf as o, type Sorting as p, type Paging as q, type QueryAttendanceResponse as r, type CursorPagingMetadata as s, type Cursors as t, type DomainEventBodyOneOf as u, type EntityUpdatedEvent as v, type EntityDeletedEvent as w, type ActionEvent as x, type IdentificationData as y, type IdentificationDataIdOneOf as z };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Attendance,
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function getAttendance(httpClient: HttpClient): GetAttendanceSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { A as Attendance, S as SetAttendanceOptions, a as SetAttendanceResponse, B as BulkSetAttendanceOptions, b as BulkSetAttendanceResponse, c as AttendancesQueryBuilder } from './bookings-v2-attendance-attendance.universal-BKW7diO6.mjs';
|
|
3
|
+
export { x as ActionEvent, l as ApplicationError, j as AttendanceDetails, h as AttendanceMarkedAsNotAttended, d as AttendanceStatus, F as AttendancesQueryResult, m as BulkActionMetadata, k as BulkAttendanceResult, i as BulkSetAttendanceRequest, C as CursorPaging, s as CursorPagingMetadata, t as Cursors, D as DomainEvent, u as DomainEventBodyOneOf, E as EntityCreatedEvent, w as EntityDeletedEvent, v as EntityUpdatedEvent, G as GetAttendanceRequest, f as GetAttendanceResponse, y as IdentificationData, z as IdentificationDataIdOneOf, I as ItemMetadata, M as MessageEnvelope, q as Paging, P as ParticipantNotification, Q as QueryAttendanceRequest, r as QueryAttendanceResponse, n as QueryV2, o as QueryV2PagingMethodOneOf, R as RestoreInfo, g as SetAttendanceRequest, e as SortOrder, p as Sorting, W as WebhookIdentityType } from './bookings-v2-attendance-attendance.universal-BKW7diO6.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getAttendance$1(httpClient: HttpClient): GetAttendanceSignature;
|
|
7
6
|
interface GetAttendanceSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves attendance information.
|
|
@@ -12,7 +11,7 @@ interface GetAttendanceSignature {
|
|
|
12
11
|
*/
|
|
13
12
|
(attendanceId: string): Promise<Attendance>;
|
|
14
13
|
}
|
|
15
|
-
|
|
14
|
+
declare function setAttendance$1(httpClient: HttpClient): SetAttendanceSignature;
|
|
16
15
|
interface SetAttendanceSignature {
|
|
17
16
|
/**
|
|
18
17
|
* Sets or updates attendance information for a booking session. This
|
|
@@ -38,7 +37,7 @@ interface SetAttendanceSignature {
|
|
|
38
37
|
*/
|
|
39
38
|
(attendance: Attendance, options?: SetAttendanceOptions | undefined): Promise<SetAttendanceResponse>;
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
declare function bulkSetAttendance$1(httpClient: HttpClient): BulkSetAttendanceSignature;
|
|
42
41
|
interface BulkSetAttendanceSignature {
|
|
43
42
|
/**
|
|
44
43
|
* Sets or updates attendance information for multiple booking sessions.
|
|
@@ -57,7 +56,7 @@ interface BulkSetAttendanceSignature {
|
|
|
57
56
|
*/
|
|
58
57
|
(options?: BulkSetAttendanceOptions | undefined): Promise<BulkSetAttendanceResponse>;
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
declare function queryAttendance$1(httpClient: HttpClient): QueryAttendanceSignature;
|
|
61
60
|
interface QueryAttendanceSignature {
|
|
62
61
|
/**
|
|
63
62
|
* Creates a query to retrieve a list of attendances.
|
|
@@ -79,4 +78,10 @@ interface QueryAttendanceSignature {
|
|
|
79
78
|
*/
|
|
80
79
|
(): AttendancesQueryBuilder;
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
|
|
82
|
+
declare const getAttendance: MaybeContext<BuildRESTFunction<typeof getAttendance$1> & typeof getAttendance$1>;
|
|
83
|
+
declare const setAttendance: MaybeContext<BuildRESTFunction<typeof setAttendance$1> & typeof setAttendance$1>;
|
|
84
|
+
declare const bulkSetAttendance: MaybeContext<BuildRESTFunction<typeof bulkSetAttendance$1> & typeof bulkSetAttendance$1>;
|
|
85
|
+
declare const queryAttendance: MaybeContext<BuildRESTFunction<typeof queryAttendance$1> & typeof queryAttendance$1>;
|
|
86
|
+
|
|
87
|
+
export { Attendance, AttendancesQueryBuilder, BulkSetAttendanceOptions, BulkSetAttendanceResponse, SetAttendanceOptions, SetAttendanceResponse, bulkSetAttendance, getAttendance, queryAttendance, setAttendance };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Attendance,
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function getAttendance(httpClient: HttpClient): GetAttendanceSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { A as Attendance, S as SetAttendanceOptions, a as SetAttendanceResponse, B as BulkSetAttendanceOptions, b as BulkSetAttendanceResponse, c as AttendancesQueryBuilder } from './bookings-v2-attendance-attendance.universal-BKW7diO6.js';
|
|
3
|
+
export { x as ActionEvent, l as ApplicationError, j as AttendanceDetails, h as AttendanceMarkedAsNotAttended, d as AttendanceStatus, F as AttendancesQueryResult, m as BulkActionMetadata, k as BulkAttendanceResult, i as BulkSetAttendanceRequest, C as CursorPaging, s as CursorPagingMetadata, t as Cursors, D as DomainEvent, u as DomainEventBodyOneOf, E as EntityCreatedEvent, w as EntityDeletedEvent, v as EntityUpdatedEvent, G as GetAttendanceRequest, f as GetAttendanceResponse, y as IdentificationData, z as IdentificationDataIdOneOf, I as ItemMetadata, M as MessageEnvelope, q as Paging, P as ParticipantNotification, Q as QueryAttendanceRequest, r as QueryAttendanceResponse, n as QueryV2, o as QueryV2PagingMethodOneOf, R as RestoreInfo, g as SetAttendanceRequest, e as SortOrder, p as Sorting, W as WebhookIdentityType } from './bookings-v2-attendance-attendance.universal-BKW7diO6.js';
|
|
4
|
+
|
|
5
|
+
declare function getAttendance$1(httpClient: HttpClient): GetAttendanceSignature;
|
|
7
6
|
interface GetAttendanceSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves attendance information.
|
|
@@ -12,7 +11,7 @@ interface GetAttendanceSignature {
|
|
|
12
11
|
*/
|
|
13
12
|
(attendanceId: string): Promise<Attendance>;
|
|
14
13
|
}
|
|
15
|
-
|
|
14
|
+
declare function setAttendance$1(httpClient: HttpClient): SetAttendanceSignature;
|
|
16
15
|
interface SetAttendanceSignature {
|
|
17
16
|
/**
|
|
18
17
|
* Sets or updates attendance information for a booking session. This
|
|
@@ -38,7 +37,7 @@ interface SetAttendanceSignature {
|
|
|
38
37
|
*/
|
|
39
38
|
(attendance: Attendance, options?: SetAttendanceOptions | undefined): Promise<SetAttendanceResponse>;
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
declare function bulkSetAttendance$1(httpClient: HttpClient): BulkSetAttendanceSignature;
|
|
42
41
|
interface BulkSetAttendanceSignature {
|
|
43
42
|
/**
|
|
44
43
|
* Sets or updates attendance information for multiple booking sessions.
|
|
@@ -57,7 +56,7 @@ interface BulkSetAttendanceSignature {
|
|
|
57
56
|
*/
|
|
58
57
|
(options?: BulkSetAttendanceOptions | undefined): Promise<BulkSetAttendanceResponse>;
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
declare function queryAttendance$1(httpClient: HttpClient): QueryAttendanceSignature;
|
|
61
60
|
interface QueryAttendanceSignature {
|
|
62
61
|
/**
|
|
63
62
|
* Creates a query to retrieve a list of attendances.
|
|
@@ -79,4 +78,10 @@ interface QueryAttendanceSignature {
|
|
|
79
78
|
*/
|
|
80
79
|
(): AttendancesQueryBuilder;
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
|
|
82
|
+
declare const getAttendance: MaybeContext<BuildRESTFunction<typeof getAttendance$1> & typeof getAttendance$1>;
|
|
83
|
+
declare const setAttendance: MaybeContext<BuildRESTFunction<typeof setAttendance$1> & typeof setAttendance$1>;
|
|
84
|
+
declare const bulkSetAttendance: MaybeContext<BuildRESTFunction<typeof bulkSetAttendance$1> & typeof bulkSetAttendance$1>;
|
|
85
|
+
declare const queryAttendance: MaybeContext<BuildRESTFunction<typeof queryAttendance$1> & typeof queryAttendance$1>;
|
|
86
|
+
|
|
87
|
+
export { Attendance, AttendancesQueryBuilder, BulkSetAttendanceOptions, BulkSetAttendanceResponse, SetAttendanceOptions, SetAttendanceResponse, bulkSetAttendance, getAttendance, queryAttendance, setAttendance };
|