@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.
- package/build/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.mts} +131 -48
- package/build/{cjs/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +131 -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} +131 -48
- package/build/internal/{es/src/bookings-v2-attendance-attendance.types.d.ts → bookings-v2-attendance-attendance.universal-BKW7diO6.d.ts} +131 -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 +13 -12
- 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 -584
- 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/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 -584
- 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 -584
- 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 -584
- 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
|
|
@@ -25,7 +25,7 @@ export interface Attendance {
|
|
|
25
25
|
/** Corresponding session ID. */
|
|
26
26
|
sessionId?: string | null;
|
|
27
27
|
/** Status indicating if any participants attended the session. */
|
|
28
|
-
status?:
|
|
28
|
+
status?: AttendanceStatusWithLiterals;
|
|
29
29
|
/**
|
|
30
30
|
* Total number of participants that attended the session. By default, the number
|
|
31
31
|
* of attendees is set to `1`, but you can set a number to greater than `1` if multiple
|
|
@@ -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. */
|
|
@@ -45,24 +45,26 @@ export declare enum AttendanceStatus {
|
|
|
45
45
|
/** No participants attended the session. */
|
|
46
46
|
NOT_ATTENDED = "NOT_ATTENDED"
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
/** @enumType */
|
|
49
|
+
type AttendanceStatusWithLiterals = AttendanceStatus | 'NOT_SET' | 'ATTENDED' | 'NOT_ATTENDED';
|
|
50
|
+
interface GetAttendanceRequest {
|
|
49
51
|
/**
|
|
50
52
|
* ID of the attendance object to retrieve.
|
|
51
53
|
* @format GUID
|
|
52
54
|
*/
|
|
53
55
|
attendanceId: string;
|
|
54
56
|
}
|
|
55
|
-
|
|
57
|
+
interface GetAttendanceResponse {
|
|
56
58
|
/** Retrieved attendance. */
|
|
57
59
|
attendance?: Attendance;
|
|
58
60
|
}
|
|
59
|
-
|
|
61
|
+
interface SetAttendanceRequest {
|
|
60
62
|
/** Attendance to create or update. */
|
|
61
63
|
attendance: Attendance;
|
|
62
64
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
63
65
|
participantNotification?: ParticipantNotification;
|
|
64
66
|
}
|
|
65
|
-
|
|
67
|
+
interface ParticipantNotification {
|
|
66
68
|
/**
|
|
67
69
|
* Specify whether to send the message about the changes to the customer.
|
|
68
70
|
*
|
|
@@ -76,17 +78,17 @@ export interface ParticipantNotification {
|
|
|
76
78
|
*/
|
|
77
79
|
message?: string | null;
|
|
78
80
|
}
|
|
79
|
-
|
|
81
|
+
interface SetAttendanceResponse {
|
|
80
82
|
/** Created or updated attendance. */
|
|
81
83
|
attendance?: Attendance;
|
|
82
84
|
}
|
|
83
|
-
|
|
85
|
+
interface AttendanceMarkedAsNotAttended {
|
|
84
86
|
/** The attendance information for a booked session that you want to create or update. */
|
|
85
87
|
attendance?: Attendance;
|
|
86
88
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
87
89
|
participantNotification?: ParticipantNotification;
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
interface BulkSetAttendanceRequest {
|
|
90
92
|
returnFullEntity?: boolean;
|
|
91
93
|
/**
|
|
92
94
|
* List of attendance details for booking sessions to create or update.
|
|
@@ -94,13 +96,13 @@ export interface BulkSetAttendanceRequest {
|
|
|
94
96
|
*/
|
|
95
97
|
attendanceDetails?: AttendanceDetails[];
|
|
96
98
|
}
|
|
97
|
-
|
|
99
|
+
interface AttendanceDetails {
|
|
98
100
|
/** Created or updated attendance information for a booking session. */
|
|
99
101
|
attendance?: Attendance;
|
|
100
102
|
/** Information about whether to send a message to the customer after their attendance was set. */
|
|
101
103
|
participantNotification?: ParticipantNotification;
|
|
102
104
|
}
|
|
103
|
-
|
|
105
|
+
interface BulkSetAttendanceResponse {
|
|
104
106
|
/**
|
|
105
107
|
* List of created or updated `attendance` objects.
|
|
106
108
|
* @minSize 1
|
|
@@ -110,15 +112,15 @@ export interface BulkSetAttendanceResponse {
|
|
|
110
112
|
/** Information about the total number of successes and failures for the Bulk Set Attendance call. */
|
|
111
113
|
bulkActionMetadata?: BulkActionMetadata;
|
|
112
114
|
}
|
|
113
|
-
|
|
115
|
+
interface BulkAttendanceResult {
|
|
114
116
|
/** Created or updated `attendance` object. */
|
|
115
117
|
item?: Attendance;
|
|
116
118
|
/** Metadata for the created or updated `attendance` object. */
|
|
117
119
|
itemMetadata?: ItemMetadata;
|
|
118
120
|
}
|
|
119
|
-
|
|
121
|
+
interface ItemMetadata {
|
|
120
122
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
121
|
-
|
|
123
|
+
_id?: string | null;
|
|
122
124
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
123
125
|
originalIndex?: number;
|
|
124
126
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -126,7 +128,7 @@ export interface ItemMetadata {
|
|
|
126
128
|
/** Details about the error in case of failure. */
|
|
127
129
|
error?: ApplicationError;
|
|
128
130
|
}
|
|
129
|
-
|
|
131
|
+
interface ApplicationError {
|
|
130
132
|
/** Error code. */
|
|
131
133
|
code?: string;
|
|
132
134
|
/** Description of the error. */
|
|
@@ -134,7 +136,7 @@ export interface ApplicationError {
|
|
|
134
136
|
/** Data related to the error. */
|
|
135
137
|
data?: Record<string, any> | null;
|
|
136
138
|
}
|
|
137
|
-
|
|
139
|
+
interface BulkActionMetadata {
|
|
138
140
|
/** Number of items that were successfully processed. */
|
|
139
141
|
totalSuccesses?: number;
|
|
140
142
|
/** Number of items that couldn't be processed. */
|
|
@@ -142,11 +144,11 @@ export interface BulkActionMetadata {
|
|
|
142
144
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
143
145
|
undetailedFailures?: number;
|
|
144
146
|
}
|
|
145
|
-
|
|
147
|
+
interface QueryAttendanceRequest {
|
|
146
148
|
/** Query options. */
|
|
147
149
|
query: QueryV2;
|
|
148
150
|
}
|
|
149
|
-
|
|
151
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
150
152
|
/**
|
|
151
153
|
* Cursor token pointing to a page of results. In the first request,
|
|
152
154
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -171,7 +173,7 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
171
173
|
sort?: Sorting[];
|
|
172
174
|
}
|
|
173
175
|
/** @oneof */
|
|
174
|
-
|
|
176
|
+
interface QueryV2PagingMethodOneOf {
|
|
175
177
|
/**
|
|
176
178
|
* Cursor token pointing to a page of results. In the first request,
|
|
177
179
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -180,28 +182,30 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
180
182
|
*/
|
|
181
183
|
cursorPaging?: CursorPaging;
|
|
182
184
|
}
|
|
183
|
-
|
|
185
|
+
interface Sorting {
|
|
184
186
|
/** Name of the field to sort by. */
|
|
185
187
|
fieldName?: string;
|
|
186
188
|
/** Sort order. */
|
|
187
|
-
order?:
|
|
189
|
+
order?: SortOrderWithLiterals;
|
|
188
190
|
}
|
|
189
191
|
/**
|
|
190
192
|
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
191
193
|
*
|
|
192
194
|
* Default: `ASC`.
|
|
193
195
|
*/
|
|
194
|
-
|
|
196
|
+
declare enum SortOrder {
|
|
195
197
|
ASC = "ASC",
|
|
196
198
|
DESC = "DESC"
|
|
197
199
|
}
|
|
198
|
-
|
|
200
|
+
/** @enumType */
|
|
201
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
202
|
+
interface Paging {
|
|
199
203
|
/** Number of items to load. */
|
|
200
204
|
limit?: number | null;
|
|
201
205
|
/** Number of items to skip in the current sort order. */
|
|
202
206
|
offset?: number | null;
|
|
203
207
|
}
|
|
204
|
-
|
|
208
|
+
interface CursorPaging {
|
|
205
209
|
/**
|
|
206
210
|
* Number of `Attendance` objects to return.
|
|
207
211
|
*
|
|
@@ -221,14 +225,14 @@ export interface CursorPaging {
|
|
|
221
225
|
cursor?: string | null;
|
|
222
226
|
}
|
|
223
227
|
/** List of objects that contain attendance information. */
|
|
224
|
-
|
|
228
|
+
interface QueryAttendanceResponse {
|
|
225
229
|
/** List of `attendance` objects that contain attendance information for a booked session. */
|
|
226
230
|
attendances?: Attendance[];
|
|
227
231
|
/** Metadata for the paged set of results. */
|
|
228
232
|
pagingMetadata?: CursorPagingMetadata;
|
|
229
233
|
}
|
|
230
234
|
/** This is the preferred message for cursor-paging enabled services */
|
|
231
|
-
|
|
235
|
+
interface CursorPagingMetadata {
|
|
232
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). */
|
|
233
237
|
cursors?: Cursors;
|
|
234
238
|
/**
|
|
@@ -238,19 +242,19 @@ export interface CursorPagingMetadata {
|
|
|
238
242
|
*/
|
|
239
243
|
hasNext?: boolean | null;
|
|
240
244
|
}
|
|
241
|
-
|
|
245
|
+
interface Cursors {
|
|
242
246
|
/** Cursor pointing to next page in the list of results. */
|
|
243
247
|
next?: string | null;
|
|
244
248
|
/** Cursor pointing to previous page in the list of results. */
|
|
245
249
|
prev?: string | null;
|
|
246
250
|
}
|
|
247
|
-
|
|
251
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
248
252
|
createdEvent?: EntityCreatedEvent;
|
|
249
253
|
updatedEvent?: EntityUpdatedEvent;
|
|
250
254
|
deletedEvent?: EntityDeletedEvent;
|
|
251
255
|
actionEvent?: ActionEvent;
|
|
252
256
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
253
|
-
|
|
257
|
+
_id?: string;
|
|
254
258
|
/**
|
|
255
259
|
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
256
260
|
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
@@ -279,36 +283,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
279
283
|
entityEventSequence?: string | null;
|
|
280
284
|
}
|
|
281
285
|
/** @oneof */
|
|
282
|
-
|
|
286
|
+
interface DomainEventBodyOneOf {
|
|
283
287
|
createdEvent?: EntityCreatedEvent;
|
|
284
288
|
updatedEvent?: EntityUpdatedEvent;
|
|
285
289
|
deletedEvent?: EntityDeletedEvent;
|
|
286
290
|
actionEvent?: ActionEvent;
|
|
287
291
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
291
|
-
restoreInfo?: RestoreInfo;
|
|
292
|
+
interface EntityCreatedEvent {
|
|
293
|
+
entity?: string;
|
|
292
294
|
}
|
|
293
|
-
|
|
295
|
+
interface RestoreInfo {
|
|
294
296
|
deletedDate?: Date | null;
|
|
295
297
|
}
|
|
296
|
-
|
|
298
|
+
interface EntityUpdatedEvent {
|
|
297
299
|
/**
|
|
298
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.
|
|
299
301
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
300
302
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
301
303
|
*/
|
|
302
|
-
|
|
304
|
+
currentEntity?: string;
|
|
303
305
|
}
|
|
304
|
-
|
|
306
|
+
interface EntityDeletedEvent {
|
|
305
307
|
/** Entity that was deleted. */
|
|
306
|
-
|
|
308
|
+
deletedEntity?: string | null;
|
|
307
309
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
+
interface ActionEvent {
|
|
311
|
+
body?: string;
|
|
310
312
|
}
|
|
311
|
-
|
|
313
|
+
interface MessageEnvelope {
|
|
312
314
|
/**
|
|
313
315
|
* App instance ID.
|
|
314
316
|
* @format GUID
|
|
@@ -324,7 +326,7 @@ export interface MessageEnvelope {
|
|
|
324
326
|
/** Stringify payload. */
|
|
325
327
|
data?: string;
|
|
326
328
|
}
|
|
327
|
-
|
|
329
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
328
330
|
/**
|
|
329
331
|
* ID of a site visitor that has not logged in to the site.
|
|
330
332
|
* @format GUID
|
|
@@ -346,10 +348,10 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
346
348
|
*/
|
|
347
349
|
appId?: string;
|
|
348
350
|
/** @readonly */
|
|
349
|
-
identityType?:
|
|
351
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
350
352
|
}
|
|
351
353
|
/** @oneof */
|
|
352
|
-
|
|
354
|
+
interface IdentificationDataIdOneOf {
|
|
353
355
|
/**
|
|
354
356
|
* ID of a site visitor that has not logged in to the site.
|
|
355
357
|
* @format GUID
|
|
@@ -371,10 +373,91 @@ export interface IdentificationDataIdOneOf {
|
|
|
371
373
|
*/
|
|
372
374
|
appId?: string;
|
|
373
375
|
}
|
|
374
|
-
|
|
376
|
+
declare enum WebhookIdentityType {
|
|
375
377
|
UNKNOWN = "UNKNOWN",
|
|
376
378
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
377
379
|
MEMBER = "MEMBER",
|
|
378
380
|
WIX_USER = "WIX_USER",
|
|
379
381
|
APP = "APP"
|
|
380
382
|
}
|
|
383
|
+
/** @enumType */
|
|
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 };
|