@wix/auto_sdk_bookings_attendance 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js +14 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js +288 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js +104 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js +34 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.mts → cjs/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js +31 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js +296 -0
- package/build/cjs/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.js +8 -0
- package/build/es/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.js +281 -0
- package/build/es/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.js +74 -0
- package/build/es/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/es/src/bookings-v2-attendance-attendance.public.js +24 -0
- package/build/es/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.ts → es/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/es/src/bookings-v2-attendance-attendance.types.js +28 -0
- package/build/es/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.js +266 -0
- package/build/es/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js +14 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js +288 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js +104 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js +34 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/internal/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.mts → cjs/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js +31 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js +296 -0
- package/build/internal/cjs/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.d.ts +8 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js +8 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.context.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.d.ts +58 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js +281 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.http.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.d.ts +18 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js +74 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/bookings-v2-attendance-attendance.public.d.ts} +10 -15
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js +24 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.public.js.map +1 -0
- package/build/internal/{bookings-v2-attendance-attendance.universal-Bpl5-MB6.d.ts → es/src/bookings-v2-attendance-attendance.types.d.ts} +45 -122
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js +28 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.types.js.map +1 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.d.ts +588 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js +266 -0
- package/build/internal/es/src/bookings-v2-attendance-attendance.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.js +0 -458
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -428
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -458
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -428
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -255
- package/build/internal/meta.d.ts +0 -255
- package/build/internal/meta.js +0 -339
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -309
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -255
- package/build/meta.d.ts +0 -255
- package/build/meta.js +0 -339
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -309
- package/build/meta.mjs.map +0 -1
|
@@ -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
|
-
interface Attendance {
|
|
13
|
+
export 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 @@ interface Attendance {
|
|
|
37
37
|
*/
|
|
38
38
|
numberOfAttendees?: number;
|
|
39
39
|
}
|
|
40
|
-
declare enum AttendanceStatus {
|
|
40
|
+
export 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,24 @@ declare enum AttendanceStatus {
|
|
|
45
45
|
/** No participants attended the session. */
|
|
46
46
|
NOT_ATTENDED = "NOT_ATTENDED"
|
|
47
47
|
}
|
|
48
|
-
interface GetAttendanceRequest {
|
|
48
|
+
export interface GetAttendanceRequest {
|
|
49
49
|
/**
|
|
50
50
|
* ID of the attendance object to retrieve.
|
|
51
51
|
* @format GUID
|
|
52
52
|
*/
|
|
53
53
|
attendanceId: string;
|
|
54
54
|
}
|
|
55
|
-
interface GetAttendanceResponse {
|
|
55
|
+
export interface GetAttendanceResponse {
|
|
56
56
|
/** Retrieved attendance. */
|
|
57
57
|
attendance?: Attendance;
|
|
58
58
|
}
|
|
59
|
-
interface SetAttendanceRequest {
|
|
59
|
+
export interface SetAttendanceRequest {
|
|
60
60
|
/** Attendance to create or update. */
|
|
61
61
|
attendance: Attendance;
|
|
62
62
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
63
63
|
participantNotification?: ParticipantNotification;
|
|
64
64
|
}
|
|
65
|
-
interface ParticipantNotification {
|
|
65
|
+
export interface ParticipantNotification {
|
|
66
66
|
/**
|
|
67
67
|
* Specify whether to send the message about the changes to the customer.
|
|
68
68
|
*
|
|
@@ -76,17 +76,17 @@ interface ParticipantNotification {
|
|
|
76
76
|
*/
|
|
77
77
|
message?: string | null;
|
|
78
78
|
}
|
|
79
|
-
interface SetAttendanceResponse {
|
|
79
|
+
export interface SetAttendanceResponse {
|
|
80
80
|
/** Created or updated attendance. */
|
|
81
81
|
attendance?: Attendance;
|
|
82
82
|
}
|
|
83
|
-
interface AttendanceMarkedAsNotAttended {
|
|
83
|
+
export interface AttendanceMarkedAsNotAttended {
|
|
84
84
|
/** The attendance information for a booked session that you want to create or update. */
|
|
85
85
|
attendance?: Attendance;
|
|
86
86
|
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
87
87
|
participantNotification?: ParticipantNotification;
|
|
88
88
|
}
|
|
89
|
-
interface BulkSetAttendanceRequest {
|
|
89
|
+
export interface BulkSetAttendanceRequest {
|
|
90
90
|
returnFullEntity?: boolean;
|
|
91
91
|
/**
|
|
92
92
|
* List of attendance details for booking sessions to create or update.
|
|
@@ -94,13 +94,13 @@ interface BulkSetAttendanceRequest {
|
|
|
94
94
|
*/
|
|
95
95
|
attendanceDetails?: AttendanceDetails[];
|
|
96
96
|
}
|
|
97
|
-
interface AttendanceDetails {
|
|
97
|
+
export interface AttendanceDetails {
|
|
98
98
|
/** Created or updated attendance information for a booking session. */
|
|
99
99
|
attendance?: Attendance;
|
|
100
100
|
/** Information about whether to send a message to the customer after their attendance was set. */
|
|
101
101
|
participantNotification?: ParticipantNotification;
|
|
102
102
|
}
|
|
103
|
-
interface BulkSetAttendanceResponse {
|
|
103
|
+
export interface BulkSetAttendanceResponse {
|
|
104
104
|
/**
|
|
105
105
|
* List of created or updated `attendance` objects.
|
|
106
106
|
* @minSize 1
|
|
@@ -110,15 +110,15 @@ interface BulkSetAttendanceResponse {
|
|
|
110
110
|
/** Information about the total number of successes and failures for the Bulk Set Attendance call. */
|
|
111
111
|
bulkActionMetadata?: BulkActionMetadata;
|
|
112
112
|
}
|
|
113
|
-
interface BulkAttendanceResult {
|
|
113
|
+
export interface BulkAttendanceResult {
|
|
114
114
|
/** Created or updated `attendance` object. */
|
|
115
115
|
item?: Attendance;
|
|
116
116
|
/** Metadata for the created or updated `attendance` object. */
|
|
117
117
|
itemMetadata?: ItemMetadata;
|
|
118
118
|
}
|
|
119
|
-
interface ItemMetadata {
|
|
119
|
+
export interface ItemMetadata {
|
|
120
120
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
121
|
-
|
|
121
|
+
id?: string | null;
|
|
122
122
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
123
123
|
originalIndex?: number;
|
|
124
124
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -126,7 +126,7 @@ interface ItemMetadata {
|
|
|
126
126
|
/** Details about the error in case of failure. */
|
|
127
127
|
error?: ApplicationError;
|
|
128
128
|
}
|
|
129
|
-
interface ApplicationError {
|
|
129
|
+
export interface ApplicationError {
|
|
130
130
|
/** Error code. */
|
|
131
131
|
code?: string;
|
|
132
132
|
/** Description of the error. */
|
|
@@ -134,7 +134,7 @@ interface ApplicationError {
|
|
|
134
134
|
/** Data related to the error. */
|
|
135
135
|
data?: Record<string, any> | null;
|
|
136
136
|
}
|
|
137
|
-
interface BulkActionMetadata {
|
|
137
|
+
export interface BulkActionMetadata {
|
|
138
138
|
/** Number of items that were successfully processed. */
|
|
139
139
|
totalSuccesses?: number;
|
|
140
140
|
/** Number of items that couldn't be processed. */
|
|
@@ -142,11 +142,11 @@ interface BulkActionMetadata {
|
|
|
142
142
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
143
143
|
undetailedFailures?: number;
|
|
144
144
|
}
|
|
145
|
-
interface QueryAttendanceRequest {
|
|
145
|
+
export interface QueryAttendanceRequest {
|
|
146
146
|
/** Query options. */
|
|
147
147
|
query: QueryV2;
|
|
148
148
|
}
|
|
149
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
149
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
150
150
|
/**
|
|
151
151
|
* Cursor token pointing to a page of results. In the first request,
|
|
152
152
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -171,7 +171,7 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
171
171
|
sort?: Sorting[];
|
|
172
172
|
}
|
|
173
173
|
/** @oneof */
|
|
174
|
-
interface QueryV2PagingMethodOneOf {
|
|
174
|
+
export interface QueryV2PagingMethodOneOf {
|
|
175
175
|
/**
|
|
176
176
|
* Cursor token pointing to a page of results. In the first request,
|
|
177
177
|
* specify `cursorPaging.limit`. For following requests, specify the
|
|
@@ -180,7 +180,7 @@ interface QueryV2PagingMethodOneOf {
|
|
|
180
180
|
*/
|
|
181
181
|
cursorPaging?: CursorPaging;
|
|
182
182
|
}
|
|
183
|
-
interface Sorting {
|
|
183
|
+
export interface Sorting {
|
|
184
184
|
/** Name of the field to sort by. */
|
|
185
185
|
fieldName?: string;
|
|
186
186
|
/** Sort order. */
|
|
@@ -191,17 +191,17 @@ interface Sorting {
|
|
|
191
191
|
*
|
|
192
192
|
* Default: `ASC`.
|
|
193
193
|
*/
|
|
194
|
-
declare enum SortOrder {
|
|
194
|
+
export declare enum SortOrder {
|
|
195
195
|
ASC = "ASC",
|
|
196
196
|
DESC = "DESC"
|
|
197
197
|
}
|
|
198
|
-
interface Paging {
|
|
198
|
+
export interface Paging {
|
|
199
199
|
/** Number of items to load. */
|
|
200
200
|
limit?: number | null;
|
|
201
201
|
/** Number of items to skip in the current sort order. */
|
|
202
202
|
offset?: number | null;
|
|
203
203
|
}
|
|
204
|
-
interface CursorPaging {
|
|
204
|
+
export interface CursorPaging {
|
|
205
205
|
/**
|
|
206
206
|
* Number of `Attendance` objects to return.
|
|
207
207
|
*
|
|
@@ -221,14 +221,14 @@ interface CursorPaging {
|
|
|
221
221
|
cursor?: string | null;
|
|
222
222
|
}
|
|
223
223
|
/** List of objects that contain attendance information. */
|
|
224
|
-
interface QueryAttendanceResponse {
|
|
224
|
+
export interface QueryAttendanceResponse {
|
|
225
225
|
/** List of `attendance` objects that contain attendance information for a booked session. */
|
|
226
226
|
attendances?: Attendance[];
|
|
227
227
|
/** Metadata for the paged set of results. */
|
|
228
228
|
pagingMetadata?: CursorPagingMetadata;
|
|
229
229
|
}
|
|
230
230
|
/** This is the preferred message for cursor-paging enabled services */
|
|
231
|
-
interface CursorPagingMetadata {
|
|
231
|
+
export interface CursorPagingMetadata {
|
|
232
232
|
/** 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
233
|
cursors?: Cursors;
|
|
234
234
|
/**
|
|
@@ -238,13 +238,13 @@ interface CursorPagingMetadata {
|
|
|
238
238
|
*/
|
|
239
239
|
hasNext?: boolean | null;
|
|
240
240
|
}
|
|
241
|
-
interface Cursors {
|
|
241
|
+
export interface Cursors {
|
|
242
242
|
/** Cursor pointing to next page in the list of results. */
|
|
243
243
|
next?: string | null;
|
|
244
244
|
/** Cursor pointing to previous page in the list of results. */
|
|
245
245
|
prev?: string | null;
|
|
246
246
|
}
|
|
247
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
247
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
248
248
|
createdEvent?: EntityCreatedEvent;
|
|
249
249
|
updatedEvent?: EntityUpdatedEvent;
|
|
250
250
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -253,7 +253,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
253
253
|
* Unique event ID.
|
|
254
254
|
* Allows clients to ignore duplicate webhooks.
|
|
255
255
|
*/
|
|
256
|
-
|
|
256
|
+
id?: string;
|
|
257
257
|
/**
|
|
258
258
|
* Assumes actions are also always typed to an entity_type
|
|
259
259
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -287,34 +287,36 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
287
287
|
entityEventSequence?: string | null;
|
|
288
288
|
}
|
|
289
289
|
/** @oneof */
|
|
290
|
-
interface DomainEventBodyOneOf {
|
|
290
|
+
export interface DomainEventBodyOneOf {
|
|
291
291
|
createdEvent?: EntityCreatedEvent;
|
|
292
292
|
updatedEvent?: EntityUpdatedEvent;
|
|
293
293
|
deletedEvent?: EntityDeletedEvent;
|
|
294
294
|
actionEvent?: ActionEvent;
|
|
295
295
|
}
|
|
296
|
-
interface EntityCreatedEvent {
|
|
297
|
-
|
|
296
|
+
export interface EntityCreatedEvent {
|
|
297
|
+
entityAsJson?: string;
|
|
298
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
299
|
+
restoreInfo?: RestoreInfo;
|
|
298
300
|
}
|
|
299
|
-
interface RestoreInfo {
|
|
301
|
+
export interface RestoreInfo {
|
|
300
302
|
deletedDate?: Date | null;
|
|
301
303
|
}
|
|
302
|
-
interface EntityUpdatedEvent {
|
|
304
|
+
export interface EntityUpdatedEvent {
|
|
303
305
|
/**
|
|
304
306
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
305
307
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
306
308
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
307
309
|
*/
|
|
308
|
-
|
|
310
|
+
currentEntityAsJson?: string;
|
|
309
311
|
}
|
|
310
|
-
interface EntityDeletedEvent {
|
|
312
|
+
export interface EntityDeletedEvent {
|
|
311
313
|
/** Entity that was deleted */
|
|
312
|
-
|
|
314
|
+
deletedEntityAsJson?: string | null;
|
|
313
315
|
}
|
|
314
|
-
interface ActionEvent {
|
|
315
|
-
|
|
316
|
+
export interface ActionEvent {
|
|
317
|
+
bodyAsJson?: string;
|
|
316
318
|
}
|
|
317
|
-
interface MessageEnvelope {
|
|
319
|
+
export interface MessageEnvelope {
|
|
318
320
|
/**
|
|
319
321
|
* App instance ID.
|
|
320
322
|
* @format GUID
|
|
@@ -330,7 +332,7 @@ interface MessageEnvelope {
|
|
|
330
332
|
/** Stringify payload. */
|
|
331
333
|
data?: string;
|
|
332
334
|
}
|
|
333
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
335
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
334
336
|
/**
|
|
335
337
|
* ID of a site visitor that has not logged in to the site.
|
|
336
338
|
* @format GUID
|
|
@@ -355,7 +357,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
355
357
|
identityType?: WebhookIdentityType;
|
|
356
358
|
}
|
|
357
359
|
/** @oneof */
|
|
358
|
-
interface IdentificationDataIdOneOf {
|
|
360
|
+
export interface IdentificationDataIdOneOf {
|
|
359
361
|
/**
|
|
360
362
|
* ID of a site visitor that has not logged in to the site.
|
|
361
363
|
* @format GUID
|
|
@@ -377,89 +379,10 @@ interface IdentificationDataIdOneOf {
|
|
|
377
379
|
*/
|
|
378
380
|
appId?: string;
|
|
379
381
|
}
|
|
380
|
-
declare enum WebhookIdentityType {
|
|
382
|
+
export declare enum WebhookIdentityType {
|
|
381
383
|
UNKNOWN = "UNKNOWN",
|
|
382
384
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
383
385
|
MEMBER = "MEMBER",
|
|
384
386
|
WIX_USER = "WIX_USER",
|
|
385
387
|
APP = "APP"
|
|
386
388
|
}
|
|
387
|
-
interface SetAttendanceOptions {
|
|
388
|
-
/** Information about whether to send a message to a customer after their attendance was set. */
|
|
389
|
-
participantNotification?: ParticipantNotification;
|
|
390
|
-
}
|
|
391
|
-
interface BulkSetAttendanceOptions {
|
|
392
|
-
returnFullEntity?: boolean;
|
|
393
|
-
/**
|
|
394
|
-
* List of attendance details for booking sessions to create or update.
|
|
395
|
-
* @maxSize 8
|
|
396
|
-
*/
|
|
397
|
-
attendanceDetails?: AttendanceDetails[];
|
|
398
|
-
}
|
|
399
|
-
interface QueryCursorResult {
|
|
400
|
-
cursors: Cursors;
|
|
401
|
-
hasNext: () => boolean;
|
|
402
|
-
hasPrev: () => boolean;
|
|
403
|
-
length: number;
|
|
404
|
-
pageSize: number;
|
|
405
|
-
}
|
|
406
|
-
interface AttendancesQueryResult extends QueryCursorResult {
|
|
407
|
-
items: Attendance[];
|
|
408
|
-
query: AttendancesQueryBuilder;
|
|
409
|
-
next: () => Promise<AttendancesQueryResult>;
|
|
410
|
-
prev: () => Promise<AttendancesQueryResult>;
|
|
411
|
-
}
|
|
412
|
-
interface AttendancesQueryBuilder {
|
|
413
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
414
|
-
* @param value - Value to compare against.
|
|
415
|
-
* @documentationMaturity preview
|
|
416
|
-
*/
|
|
417
|
-
eq: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
418
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
419
|
-
* @param value - Value to compare against.
|
|
420
|
-
* @documentationMaturity preview
|
|
421
|
-
*/
|
|
422
|
-
ne: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
423
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
424
|
-
* @param value - Value to compare against.
|
|
425
|
-
* @documentationMaturity preview
|
|
426
|
-
*/
|
|
427
|
-
ge: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
428
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
429
|
-
* @param value - Value to compare against.
|
|
430
|
-
* @documentationMaturity preview
|
|
431
|
-
*/
|
|
432
|
-
gt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
433
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
434
|
-
* @param value - Value to compare against.
|
|
435
|
-
* @documentationMaturity preview
|
|
436
|
-
*/
|
|
437
|
-
le: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
438
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
439
|
-
* @param value - Value to compare against.
|
|
440
|
-
* @documentationMaturity preview
|
|
441
|
-
*/
|
|
442
|
-
lt: (propertyName: 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
443
|
-
/** @documentationMaturity preview */
|
|
444
|
-
in: (propertyName: '_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees', value: any) => AttendancesQueryBuilder;
|
|
445
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
446
|
-
* @documentationMaturity preview
|
|
447
|
-
*/
|
|
448
|
-
ascending: (...propertyNames: Array<'_id' | 'bookingId' | 'sessionId' | 'status' | 'numberOfAttendees'>) => AttendancesQueryBuilder;
|
|
449
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
450
|
-
* @documentationMaturity preview
|
|
451
|
-
*/
|
|
452
|
-
descending: (...propertyNames: Array<'numberOfAttendees'>) => AttendancesQueryBuilder;
|
|
453
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
454
|
-
* @documentationMaturity preview
|
|
455
|
-
*/
|
|
456
|
-
limit: (limit: number) => AttendancesQueryBuilder;
|
|
457
|
-
/** @param cursor - A pointer to specific record
|
|
458
|
-
* @documentationMaturity preview
|
|
459
|
-
*/
|
|
460
|
-
skipTo: (cursor: string) => AttendancesQueryBuilder;
|
|
461
|
-
/** @documentationMaturity preview */
|
|
462
|
-
find: () => Promise<AttendancesQueryResult>;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
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 };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export var AttendanceStatus;
|
|
2
|
+
(function (AttendanceStatus) {
|
|
3
|
+
/** There is no available attendance information. */
|
|
4
|
+
AttendanceStatus["NOT_SET"] = "NOT_SET";
|
|
5
|
+
/** At least a single participant attended the session. */
|
|
6
|
+
AttendanceStatus["ATTENDED"] = "ATTENDED";
|
|
7
|
+
/** No participants attended the session. */
|
|
8
|
+
AttendanceStatus["NOT_ATTENDED"] = "NOT_ATTENDED";
|
|
9
|
+
})(AttendanceStatus || (AttendanceStatus = {}));
|
|
10
|
+
/**
|
|
11
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
12
|
+
*
|
|
13
|
+
* Default: `ASC`.
|
|
14
|
+
*/
|
|
15
|
+
export var SortOrder;
|
|
16
|
+
(function (SortOrder) {
|
|
17
|
+
SortOrder["ASC"] = "ASC";
|
|
18
|
+
SortOrder["DESC"] = "DESC";
|
|
19
|
+
})(SortOrder || (SortOrder = {}));
|
|
20
|
+
export var WebhookIdentityType;
|
|
21
|
+
(function (WebhookIdentityType) {
|
|
22
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
23
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
24
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
25
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
26
|
+
WebhookIdentityType["APP"] = "APP";
|
|
27
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
28
|
+
//# sourceMappingURL=bookings-v2-attendance-attendance.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-attendance-attendance.types.js","sourceRoot":"","sources":["../../../../src/bookings-v2-attendance-attendance.types.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,oDAAoD;IACpD,uCAAmB,CAAA;IACnB,0DAA0D;IAC1D,yCAAqB,CAAA;IACrB,4CAA4C;IAC5C,iDAA6B,CAAA;AAC/B,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AAgKD;;;;GAIG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAyMD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|