@wix/auto_sdk_seatings_seating-reservation 1.0.0
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/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +28 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +232 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +142 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +67 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +77 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +330 -0
- package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.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/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js +17 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js +223 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +110 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js +50 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js +74 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +298 -0
- package/build/es/src/seating-v1-seating-reservation-seating-reservation.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/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +28 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +232 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +142 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +67 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +77 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +330 -0
- package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.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/seating-v1-seating-reservation-seating-reservation.context.d.ts +17 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js +17 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +1 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +11 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js +223 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +1 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +24 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +110 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +1 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +50 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js +50 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +1 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +923 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js +74 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +1 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts +1098 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +298 -0
- package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,1098 @@
|
|
|
1
|
+
export interface SeatingReservation {
|
|
2
|
+
/**
|
|
3
|
+
* The id of the reservation
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
_id?: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* The seating plan id
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
seatingPlanId?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* The external seating plan id
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
externalSeatingPlanId?: string | null;
|
|
17
|
+
/** Reserved places */
|
|
18
|
+
reservedPlaces?: PlaceReservation[];
|
|
19
|
+
/**
|
|
20
|
+
* A client defined external id for cross referencing.
|
|
21
|
+
* Can reference external entities.
|
|
22
|
+
* Format: "{fqdn}:{entity guid}"
|
|
23
|
+
*/
|
|
24
|
+
externalId?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Revision number, which increments by 1 each time the reservation is updated.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
revision?: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface PlaceReservation {
|
|
32
|
+
/** The place id. */
|
|
33
|
+
_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of places in the spot. If not provided - defaults to 1.
|
|
36
|
+
* Used to reserve for more that one place in areas.
|
|
37
|
+
*/
|
|
38
|
+
capacity?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Optional section label.
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
sectionLabel?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Area label.
|
|
46
|
+
* @readonly
|
|
47
|
+
*/
|
|
48
|
+
areaLabel?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Table label.
|
|
51
|
+
* @readonly
|
|
52
|
+
*/
|
|
53
|
+
tableLabel?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Row label.
|
|
56
|
+
* @readonly
|
|
57
|
+
*/
|
|
58
|
+
rowLabel?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Seat label in a row or table.
|
|
61
|
+
* @readonly
|
|
62
|
+
*/
|
|
63
|
+
seatLabel?: string | null;
|
|
64
|
+
}
|
|
65
|
+
export interface SeatingPlanCategoriesSummaryUpdated {
|
|
66
|
+
/** Seating plan id */
|
|
67
|
+
seatingPlanId?: string;
|
|
68
|
+
/** External seating plan id */
|
|
69
|
+
externalSeatingPlanId?: string | null;
|
|
70
|
+
/** Ticket counts by category */
|
|
71
|
+
categories?: CategoryDetails[];
|
|
72
|
+
/**
|
|
73
|
+
* Summary revision.
|
|
74
|
+
* @readonly
|
|
75
|
+
*/
|
|
76
|
+
revision?: string | null;
|
|
77
|
+
}
|
|
78
|
+
export interface CategoryDetails {
|
|
79
|
+
/**
|
|
80
|
+
* Seating plan id
|
|
81
|
+
* @readonly
|
|
82
|
+
*/
|
|
83
|
+
seatingPlanId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* External seating plan id
|
|
86
|
+
* @readonly
|
|
87
|
+
*/
|
|
88
|
+
externalSeatingPlanId?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* External category id
|
|
91
|
+
* @readonly
|
|
92
|
+
*/
|
|
93
|
+
externalCategoryId?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Total capacity in the category
|
|
96
|
+
* @readonly
|
|
97
|
+
*/
|
|
98
|
+
totalCapacity?: number | null;
|
|
99
|
+
/**
|
|
100
|
+
* Already reserved capacity
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
reserved?: number | null;
|
|
104
|
+
}
|
|
105
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
106
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
107
|
+
metaSiteId?: string;
|
|
108
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
109
|
+
siteId?: string;
|
|
110
|
+
/** Invalidate by App */
|
|
111
|
+
app?: App;
|
|
112
|
+
/** Invalidate by page id */
|
|
113
|
+
page?: Page;
|
|
114
|
+
/** Invalidate by URI path */
|
|
115
|
+
uri?: URI;
|
|
116
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
117
|
+
file?: File;
|
|
118
|
+
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
119
|
+
reason?: string | null;
|
|
120
|
+
/** Is local DS */
|
|
121
|
+
localDc?: boolean;
|
|
122
|
+
hardPurge?: boolean;
|
|
123
|
+
}
|
|
124
|
+
/** @oneof */
|
|
125
|
+
export interface InvalidateCacheGetByOneOf {
|
|
126
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
127
|
+
metaSiteId?: string;
|
|
128
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
129
|
+
siteId?: string;
|
|
130
|
+
/** Invalidate by App */
|
|
131
|
+
app?: App;
|
|
132
|
+
/** Invalidate by page id */
|
|
133
|
+
page?: Page;
|
|
134
|
+
/** Invalidate by URI path */
|
|
135
|
+
uri?: URI;
|
|
136
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
137
|
+
file?: File;
|
|
138
|
+
}
|
|
139
|
+
export interface App {
|
|
140
|
+
/** The AppDefId */
|
|
141
|
+
appDefId?: string;
|
|
142
|
+
/** The instance Id */
|
|
143
|
+
instanceId?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface Page {
|
|
146
|
+
/** the msid the page is on */
|
|
147
|
+
metaSiteId?: string;
|
|
148
|
+
/** Invalidate by Page ID */
|
|
149
|
+
pageId?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface URI {
|
|
152
|
+
/** the msid the URI is on */
|
|
153
|
+
metaSiteId?: string;
|
|
154
|
+
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
155
|
+
uriPath?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface File {
|
|
158
|
+
/** the msid the file is related to */
|
|
159
|
+
metaSiteId?: string;
|
|
160
|
+
/** Invalidate by filename (for media files such as PDFs) */
|
|
161
|
+
fileName?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface CreateSeatingReservationRequest {
|
|
164
|
+
/** A reservation to create */
|
|
165
|
+
reservation?: SeatingReservation;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateSeatingReservationResponse {
|
|
168
|
+
/** Created reservation */
|
|
169
|
+
reservation?: SeatingReservation;
|
|
170
|
+
}
|
|
171
|
+
export interface Places {
|
|
172
|
+
/** Places */
|
|
173
|
+
places?: string[];
|
|
174
|
+
}
|
|
175
|
+
export interface UnavailablePlaces {
|
|
176
|
+
/** Places that cannot be reserved */
|
|
177
|
+
unavailablePlaces?: string[];
|
|
178
|
+
/** Reservation error details */
|
|
179
|
+
reservationErrorDetails?: ReservationErrorDetails[];
|
|
180
|
+
}
|
|
181
|
+
export interface ReservationErrorDetails {
|
|
182
|
+
/** Place */
|
|
183
|
+
_id?: string;
|
|
184
|
+
/** Available capacity */
|
|
185
|
+
available?: number;
|
|
186
|
+
/** Requested capacity */
|
|
187
|
+
requested?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface GetReservationRequest {
|
|
190
|
+
/** The id of the reservation to return */
|
|
191
|
+
_id: string | null;
|
|
192
|
+
}
|
|
193
|
+
export interface GetReservationResponse {
|
|
194
|
+
/** Created reservation */
|
|
195
|
+
reservation?: SeatingReservation;
|
|
196
|
+
}
|
|
197
|
+
export interface QuerySeatingReservationRequest {
|
|
198
|
+
/** A query object */
|
|
199
|
+
query: QueryV2;
|
|
200
|
+
}
|
|
201
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
202
|
+
/** Paging options to limit and skip the number of items. */
|
|
203
|
+
paging?: Paging;
|
|
204
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
205
|
+
cursorPaging?: CursorPaging;
|
|
206
|
+
/**
|
|
207
|
+
* Filter object.
|
|
208
|
+
*
|
|
209
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
210
|
+
*/
|
|
211
|
+
filter?: Record<string, any> | null;
|
|
212
|
+
/**
|
|
213
|
+
* Sort object.
|
|
214
|
+
*
|
|
215
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
216
|
+
*/
|
|
217
|
+
sort?: Sorting[];
|
|
218
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
219
|
+
fields?: string[];
|
|
220
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
221
|
+
fieldsets?: string[];
|
|
222
|
+
}
|
|
223
|
+
/** @oneof */
|
|
224
|
+
export interface QueryV2PagingMethodOneOf {
|
|
225
|
+
/** Paging options to limit and skip the number of items. */
|
|
226
|
+
paging?: Paging;
|
|
227
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
228
|
+
cursorPaging?: CursorPaging;
|
|
229
|
+
}
|
|
230
|
+
export interface Sorting {
|
|
231
|
+
/** Name of the field to sort by. */
|
|
232
|
+
fieldName?: string;
|
|
233
|
+
/** Sort order. */
|
|
234
|
+
order?: SortOrder;
|
|
235
|
+
}
|
|
236
|
+
export declare enum SortOrder {
|
|
237
|
+
ASC = "ASC",
|
|
238
|
+
DESC = "DESC"
|
|
239
|
+
}
|
|
240
|
+
export interface Paging {
|
|
241
|
+
/** Number of items to load. */
|
|
242
|
+
limit?: number | null;
|
|
243
|
+
/** Number of items to skip in the current sort order. */
|
|
244
|
+
offset?: number | null;
|
|
245
|
+
}
|
|
246
|
+
export interface CursorPaging {
|
|
247
|
+
/** Maximum number of items to return in the results. */
|
|
248
|
+
limit?: number | null;
|
|
249
|
+
/**
|
|
250
|
+
* Pointer to the next or previous page in the list of results.
|
|
251
|
+
*
|
|
252
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
253
|
+
* Not relevant for the first request.
|
|
254
|
+
*/
|
|
255
|
+
cursor?: string | null;
|
|
256
|
+
}
|
|
257
|
+
export interface QuerySeatingReservationResponse {
|
|
258
|
+
/** Found reservations */
|
|
259
|
+
reservations?: SeatingReservation[];
|
|
260
|
+
/** Paging meta data */
|
|
261
|
+
metadata?: PagingMetadataV2;
|
|
262
|
+
}
|
|
263
|
+
export interface PagingMetadataV2 {
|
|
264
|
+
/** Number of items returned in the response. */
|
|
265
|
+
count?: number | null;
|
|
266
|
+
/** Offset that was requested. */
|
|
267
|
+
offset?: number | null;
|
|
268
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
269
|
+
total?: number | null;
|
|
270
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
271
|
+
tooManyToCount?: boolean | null;
|
|
272
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
273
|
+
cursors?: Cursors;
|
|
274
|
+
}
|
|
275
|
+
export interface Cursors {
|
|
276
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
277
|
+
next?: string | null;
|
|
278
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
279
|
+
prev?: string | null;
|
|
280
|
+
}
|
|
281
|
+
export interface DeleteSeatingReservationRequest {
|
|
282
|
+
/** The id of the reservation to delete */
|
|
283
|
+
_id: string | null;
|
|
284
|
+
}
|
|
285
|
+
export interface DeleteSeatingReservationResponse {
|
|
286
|
+
/** The deleted reservation */
|
|
287
|
+
reservation?: SeatingReservation;
|
|
288
|
+
}
|
|
289
|
+
export interface DeleteSeatingPlaceReservationRequest {
|
|
290
|
+
/** The id of the place reservation to delete */
|
|
291
|
+
_id?: string | null;
|
|
292
|
+
/** The id of the place reservation's reservation */
|
|
293
|
+
reservationId?: string | null;
|
|
294
|
+
}
|
|
295
|
+
export interface Empty {
|
|
296
|
+
}
|
|
297
|
+
export interface CancelSeatingPlaceReservationsRequest {
|
|
298
|
+
/** The id of the place reservations' reservation */
|
|
299
|
+
reservationId?: string | null;
|
|
300
|
+
/** The place reservations to cancel */
|
|
301
|
+
placeReservations?: PlaceReservationDetails[];
|
|
302
|
+
}
|
|
303
|
+
export interface PlaceReservationDetails {
|
|
304
|
+
placeId?: string;
|
|
305
|
+
occupied?: number;
|
|
306
|
+
}
|
|
307
|
+
export interface CancelSeatingPlaceReservationsResponse {
|
|
308
|
+
/** The reservation with canceled place reservations */
|
|
309
|
+
reservation?: SeatingReservation;
|
|
310
|
+
}
|
|
311
|
+
export interface UpdateSeatingReservationRequest {
|
|
312
|
+
/** A reservation to update */
|
|
313
|
+
reservation?: SeatingReservation;
|
|
314
|
+
}
|
|
315
|
+
export interface UpdateSeatingReservationResponse {
|
|
316
|
+
/** The updated reservation */
|
|
317
|
+
reservation?: SeatingReservation;
|
|
318
|
+
}
|
|
319
|
+
export interface GetReservedPlacesRequest {
|
|
320
|
+
/** Seating plan id */
|
|
321
|
+
_id?: string | null;
|
|
322
|
+
}
|
|
323
|
+
export interface GetReservedPlacesResponse {
|
|
324
|
+
/** Reserved places of the plan */
|
|
325
|
+
placeReservations?: PlaceReservation[];
|
|
326
|
+
}
|
|
327
|
+
export interface GetSeatingCategorySummaryRequest {
|
|
328
|
+
/** Seating plan external id */
|
|
329
|
+
externalId?: string;
|
|
330
|
+
}
|
|
331
|
+
export interface GetSeatingCategorySummaryResponse {
|
|
332
|
+
/** Ticket counts by category */
|
|
333
|
+
categories?: CategoryDetails[];
|
|
334
|
+
}
|
|
335
|
+
export interface GetSeatingReservationSummaryRequest {
|
|
336
|
+
/** Seating plan external id */
|
|
337
|
+
externalId: string;
|
|
338
|
+
}
|
|
339
|
+
export interface GetSeatingReservationSummaryResponse {
|
|
340
|
+
plan?: SeatingPlan;
|
|
341
|
+
places?: PlaceReservationDetails[];
|
|
342
|
+
}
|
|
343
|
+
export interface SeatingPlan {
|
|
344
|
+
/**
|
|
345
|
+
* Auto generated unique plan id
|
|
346
|
+
* @readonly
|
|
347
|
+
*/
|
|
348
|
+
_id?: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* A client defined external id for cross referencing.
|
|
351
|
+
* Can reference external entities.
|
|
352
|
+
* Format: "{fqdn}:{entity guid}"
|
|
353
|
+
*/
|
|
354
|
+
externalId?: string | null;
|
|
355
|
+
/** Human friendly plan title */
|
|
356
|
+
title?: string | null;
|
|
357
|
+
/** Sections of the plan. Seating plan is divided in high level sections. */
|
|
358
|
+
sections?: Section[];
|
|
359
|
+
/** Categories for plan element grouping. */
|
|
360
|
+
categories?: Category[];
|
|
361
|
+
/**
|
|
362
|
+
* Seating plan created timestamp.
|
|
363
|
+
* @readonly
|
|
364
|
+
*/
|
|
365
|
+
_createdDate?: Date | null;
|
|
366
|
+
/**
|
|
367
|
+
* Seating plan updated timestamp.
|
|
368
|
+
* @readonly
|
|
369
|
+
*/
|
|
370
|
+
_updatedDate?: Date | null;
|
|
371
|
+
/**
|
|
372
|
+
* Total capacity
|
|
373
|
+
* @readonly
|
|
374
|
+
*/
|
|
375
|
+
totalCapacity?: number | null;
|
|
376
|
+
/**
|
|
377
|
+
* Total categories
|
|
378
|
+
* @readonly
|
|
379
|
+
*/
|
|
380
|
+
totalCategories?: number | null;
|
|
381
|
+
/**
|
|
382
|
+
* Places not assigned to categories
|
|
383
|
+
* @readonly
|
|
384
|
+
*/
|
|
385
|
+
uncategorizedPlaces?: Place[];
|
|
386
|
+
/**
|
|
387
|
+
* A version of the seating plan
|
|
388
|
+
* @readonly
|
|
389
|
+
*/
|
|
390
|
+
version?: string | null;
|
|
391
|
+
/** Data extensions */
|
|
392
|
+
extendedFields?: ExtendedFields;
|
|
393
|
+
/** Seating Plan UI settings */
|
|
394
|
+
uiProperties?: SeatingPlanUiProperties;
|
|
395
|
+
/** Element groups */
|
|
396
|
+
elementGroups?: ElementGroup[];
|
|
397
|
+
}
|
|
398
|
+
export interface Section {
|
|
399
|
+
/** Unique section id */
|
|
400
|
+
_id?: number;
|
|
401
|
+
/** Human readable section title */
|
|
402
|
+
title?: string | null;
|
|
403
|
+
/**
|
|
404
|
+
* Client configuration object
|
|
405
|
+
* @readonly
|
|
406
|
+
*/
|
|
407
|
+
config?: Record<string, any> | null;
|
|
408
|
+
/** Elements of the section. */
|
|
409
|
+
elements?: Element[];
|
|
410
|
+
/**
|
|
411
|
+
* Total capacity
|
|
412
|
+
* @readonly
|
|
413
|
+
*/
|
|
414
|
+
totalCapacity?: number | null;
|
|
415
|
+
/**
|
|
416
|
+
* Is default section
|
|
417
|
+
* @readonly
|
|
418
|
+
*/
|
|
419
|
+
default?: boolean;
|
|
420
|
+
}
|
|
421
|
+
export interface Element {
|
|
422
|
+
/** Unique element id */
|
|
423
|
+
_id?: number;
|
|
424
|
+
/** User friendly title/label of the element. */
|
|
425
|
+
title?: string | null;
|
|
426
|
+
/** Element type */
|
|
427
|
+
type?: Type;
|
|
428
|
+
/** Capacity. None for Shape type Element. */
|
|
429
|
+
capacity?: number | null;
|
|
430
|
+
/** Assigned to a category */
|
|
431
|
+
categoryId?: number | null;
|
|
432
|
+
/** A place numbering meta data */
|
|
433
|
+
sequencing?: Sequencing;
|
|
434
|
+
/** Place override (by seq_id) */
|
|
435
|
+
overrides?: Place[];
|
|
436
|
+
/**
|
|
437
|
+
* Final place sequence with overrides
|
|
438
|
+
* @readonly
|
|
439
|
+
*/
|
|
440
|
+
places?: Place[];
|
|
441
|
+
/** Element reservation options */
|
|
442
|
+
reservationOptions?: ReservationOptions;
|
|
443
|
+
/** Element UI settings */
|
|
444
|
+
uiProperties?: ElementUiProperties;
|
|
445
|
+
/** Element group id */
|
|
446
|
+
elementGroupId?: number | null;
|
|
447
|
+
/** Multi row element relevant for MULTI_ROW element type */
|
|
448
|
+
multiRowProperties?: MultiRowProperties;
|
|
449
|
+
}
|
|
450
|
+
export declare enum Type {
|
|
451
|
+
AREA = "AREA",
|
|
452
|
+
ROW = "ROW",
|
|
453
|
+
MULTI_ROW = "MULTI_ROW",
|
|
454
|
+
TABLE = "TABLE",
|
|
455
|
+
ROUND_TABLE = "ROUND_TABLE",
|
|
456
|
+
SHAPE = "SHAPE"
|
|
457
|
+
}
|
|
458
|
+
export interface Sequencing {
|
|
459
|
+
/** First seq element */
|
|
460
|
+
startAt?: string;
|
|
461
|
+
/** Finite generated seq of labels */
|
|
462
|
+
labels?: string[];
|
|
463
|
+
/** If true - direction right to left. Otherwise left to right. */
|
|
464
|
+
reverseOrder?: boolean | null;
|
|
465
|
+
}
|
|
466
|
+
export interface Place {
|
|
467
|
+
/** Local id of the place in the sequence */
|
|
468
|
+
index?: number;
|
|
469
|
+
/**
|
|
470
|
+
* Generated composite unique id in the seating plan.
|
|
471
|
+
* @readonly
|
|
472
|
+
*/
|
|
473
|
+
_id?: string | null;
|
|
474
|
+
/** Unique label of the place */
|
|
475
|
+
label?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Max capacity per place
|
|
478
|
+
* @readonly
|
|
479
|
+
*/
|
|
480
|
+
capacity?: number | null;
|
|
481
|
+
/**
|
|
482
|
+
* Type of the parent element
|
|
483
|
+
* @readonly
|
|
484
|
+
*/
|
|
485
|
+
elementType?: Type;
|
|
486
|
+
/**
|
|
487
|
+
* Assigned category id
|
|
488
|
+
* @readonly
|
|
489
|
+
*/
|
|
490
|
+
categoryId?: number | null;
|
|
491
|
+
/** Place type */
|
|
492
|
+
type?: PlaceTypeEnumType;
|
|
493
|
+
}
|
|
494
|
+
export declare enum PlaceTypeEnumType {
|
|
495
|
+
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
496
|
+
STANDARD = "STANDARD",
|
|
497
|
+
WHEELCHAIR = "WHEELCHAIR",
|
|
498
|
+
ACCESSIBLE = "ACCESSIBLE",
|
|
499
|
+
COMPANION = "COMPANION",
|
|
500
|
+
OBSTRUCTED = "OBSTRUCTED",
|
|
501
|
+
DISCOUNT = "DISCOUNT"
|
|
502
|
+
}
|
|
503
|
+
export interface ReservationOptions {
|
|
504
|
+
/** Indicates whether the entire element must be reserved */
|
|
505
|
+
reserveWholeElement?: boolean;
|
|
506
|
+
}
|
|
507
|
+
export interface ElementUiProperties {
|
|
508
|
+
x?: number | null;
|
|
509
|
+
y?: number | null;
|
|
510
|
+
zIndex?: number | null;
|
|
511
|
+
width?: number | null;
|
|
512
|
+
height?: number | null;
|
|
513
|
+
rotationAngle?: number | null;
|
|
514
|
+
shapeType?: ShapeTypeEnumType;
|
|
515
|
+
fontSize?: number | null;
|
|
516
|
+
cornerRadius?: number | null;
|
|
517
|
+
seatSpacing?: number | null;
|
|
518
|
+
hideLabel?: boolean | null;
|
|
519
|
+
labelPosition?: Position;
|
|
520
|
+
seatLayout?: number[];
|
|
521
|
+
emptyTopSeatSpaces?: number | null;
|
|
522
|
+
/** needs research */
|
|
523
|
+
text?: string | null;
|
|
524
|
+
/** #F0F0F0 */
|
|
525
|
+
color?: string | null;
|
|
526
|
+
/** #F0F0F0 */
|
|
527
|
+
fillColor?: string | null;
|
|
528
|
+
/** #F0F0F0 */
|
|
529
|
+
strokeColor?: string | null;
|
|
530
|
+
/** px */
|
|
531
|
+
strokeWidth?: number | null;
|
|
532
|
+
opacity?: number | null;
|
|
533
|
+
icon?: Icon;
|
|
534
|
+
image?: Image;
|
|
535
|
+
seatNumbering?: Numbering;
|
|
536
|
+
}
|
|
537
|
+
export declare enum ShapeTypeEnumType {
|
|
538
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
539
|
+
TEXT = "TEXT",
|
|
540
|
+
RECTANGLE = "RECTANGLE",
|
|
541
|
+
ELLIPSE = "ELLIPSE",
|
|
542
|
+
LINE = "LINE",
|
|
543
|
+
ICON = "ICON",
|
|
544
|
+
IMAGE = "IMAGE"
|
|
545
|
+
}
|
|
546
|
+
export declare enum Position {
|
|
547
|
+
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
548
|
+
LEFT = "LEFT",
|
|
549
|
+
RIGHT = "RIGHT",
|
|
550
|
+
BOTH = "BOTH",
|
|
551
|
+
NONE = "NONE"
|
|
552
|
+
}
|
|
553
|
+
export declare enum Icon {
|
|
554
|
+
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
555
|
+
ENTER = "ENTER",
|
|
556
|
+
EXIT = "EXIT",
|
|
557
|
+
DRINKS = "DRINKS",
|
|
558
|
+
WC = "WC",
|
|
559
|
+
WC_MEN = "WC_MEN",
|
|
560
|
+
WC_WOMEN = "WC_WOMEN",
|
|
561
|
+
FOOD = "FOOD",
|
|
562
|
+
STAIRS = "STAIRS",
|
|
563
|
+
ELEVATOR = "ELEVATOR",
|
|
564
|
+
SMOKING = "SMOKING",
|
|
565
|
+
CHECKROOM = "CHECKROOM",
|
|
566
|
+
STAGE = "STAGE"
|
|
567
|
+
}
|
|
568
|
+
export interface Image {
|
|
569
|
+
/** WixMedia image ID. */
|
|
570
|
+
_id?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Original image height.
|
|
573
|
+
* @readonly
|
|
574
|
+
*/
|
|
575
|
+
height?: number;
|
|
576
|
+
/**
|
|
577
|
+
* Original image width.
|
|
578
|
+
* @readonly
|
|
579
|
+
*/
|
|
580
|
+
width?: number;
|
|
581
|
+
/**
|
|
582
|
+
* WixMedia image URI.
|
|
583
|
+
* @deprecated
|
|
584
|
+
*/
|
|
585
|
+
uri?: string | null;
|
|
586
|
+
}
|
|
587
|
+
export declare enum Numbering {
|
|
588
|
+
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
589
|
+
NUMERIC = "NUMERIC",
|
|
590
|
+
ODD_EVEN = "ODD_EVEN",
|
|
591
|
+
ALPHABETICAL = "ALPHABETICAL"
|
|
592
|
+
}
|
|
593
|
+
export interface MultiRowProperties {
|
|
594
|
+
/** Individual rows of the multi row element */
|
|
595
|
+
rows?: RowElement[];
|
|
596
|
+
/** Meta data for vertical labeling */
|
|
597
|
+
verticalSequencing?: VerticalSequencing;
|
|
598
|
+
/** Row spacing */
|
|
599
|
+
rowSpacing?: number | null;
|
|
600
|
+
/** Amount of seats in the row */
|
|
601
|
+
seatAmount?: number | null;
|
|
602
|
+
}
|
|
603
|
+
export interface RowElement {
|
|
604
|
+
/** Unique row id */
|
|
605
|
+
_id?: number;
|
|
606
|
+
/** User friendly title/label of the row */
|
|
607
|
+
title?: string | null;
|
|
608
|
+
/** Row capacity */
|
|
609
|
+
capacity?: number | null;
|
|
610
|
+
/** Assigned to a category */
|
|
611
|
+
categoryId?: number | null;
|
|
612
|
+
/** A place numbering meta data for a single row */
|
|
613
|
+
sequencing?: Sequencing;
|
|
614
|
+
/** Row UI settings */
|
|
615
|
+
uiProperties?: RowElementUiProperties;
|
|
616
|
+
}
|
|
617
|
+
export interface RowElementUiProperties {
|
|
618
|
+
/** Relative x position to the parent element */
|
|
619
|
+
relativeX?: number | null;
|
|
620
|
+
/** Width of the row */
|
|
621
|
+
width?: number | null;
|
|
622
|
+
/** Amount of seats in the row */
|
|
623
|
+
seatAmount?: number | null;
|
|
624
|
+
/** Seat spacing */
|
|
625
|
+
seatSpacing?: number | null;
|
|
626
|
+
/** Label position */
|
|
627
|
+
labelPosition?: Position;
|
|
628
|
+
/** Seat numbering */
|
|
629
|
+
seatNumbering?: Numbering;
|
|
630
|
+
}
|
|
631
|
+
export interface VerticalSequencing {
|
|
632
|
+
/** First seq element */
|
|
633
|
+
startAt?: string;
|
|
634
|
+
/** Row numbering */
|
|
635
|
+
rowNumbering?: Numbering;
|
|
636
|
+
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
637
|
+
reverseOrder?: boolean | null;
|
|
638
|
+
}
|
|
639
|
+
export interface Category {
|
|
640
|
+
/** Local category id within the seating plan */
|
|
641
|
+
_id?: number;
|
|
642
|
+
/**
|
|
643
|
+
* A client defined external id for cross referencing.
|
|
644
|
+
* Can reference external entities.
|
|
645
|
+
* Format: "{entity_fqdn}:{entity_id}"
|
|
646
|
+
*/
|
|
647
|
+
externalId?: string | null;
|
|
648
|
+
/** Category label */
|
|
649
|
+
title?: string;
|
|
650
|
+
/**
|
|
651
|
+
* Client configuration object
|
|
652
|
+
* @readonly
|
|
653
|
+
*/
|
|
654
|
+
config?: Record<string, any> | null;
|
|
655
|
+
/**
|
|
656
|
+
* Total capacity
|
|
657
|
+
* @readonly
|
|
658
|
+
*/
|
|
659
|
+
totalCapacity?: number | null;
|
|
660
|
+
/**
|
|
661
|
+
* Possible places
|
|
662
|
+
* @readonly
|
|
663
|
+
*/
|
|
664
|
+
places?: Place[];
|
|
665
|
+
}
|
|
666
|
+
export interface ExtendedFields {
|
|
667
|
+
/**
|
|
668
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
669
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
670
|
+
*
|
|
671
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
672
|
+
*
|
|
673
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
674
|
+
*/
|
|
675
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
676
|
+
}
|
|
677
|
+
export interface SeatingPlanUiProperties {
|
|
678
|
+
/** #F0F0F0 */
|
|
679
|
+
backgroundColor?: string | null;
|
|
680
|
+
backgroundOpacity?: number | null;
|
|
681
|
+
}
|
|
682
|
+
export interface ElementGroup {
|
|
683
|
+
/** Unique element group id */
|
|
684
|
+
_id?: number;
|
|
685
|
+
/** Parent group id */
|
|
686
|
+
parentElementGroupId?: number | null;
|
|
687
|
+
/** Element group UI settings */
|
|
688
|
+
uiProperties?: ElementGroupUiProperties;
|
|
689
|
+
}
|
|
690
|
+
export interface ElementGroupUiProperties {
|
|
691
|
+
/** x position of the group */
|
|
692
|
+
x?: number | null;
|
|
693
|
+
/** y position of the group */
|
|
694
|
+
y?: number | null;
|
|
695
|
+
/** width of the group */
|
|
696
|
+
width?: number | null;
|
|
697
|
+
/** height of the group */
|
|
698
|
+
height?: number | null;
|
|
699
|
+
/** rotation angle of the group */
|
|
700
|
+
rotationAngle?: number | null;
|
|
701
|
+
}
|
|
702
|
+
export interface RegenerateSummariesRequest {
|
|
703
|
+
/** Seating plan id */
|
|
704
|
+
planId?: string | null;
|
|
705
|
+
}
|
|
706
|
+
export interface RegenerateSummariesResponse {
|
|
707
|
+
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
708
|
+
categories?: CategoryDetails[];
|
|
709
|
+
}
|
|
710
|
+
export interface SeatingReservationsSummary {
|
|
711
|
+
places?: PlaceReservationDetails[];
|
|
712
|
+
}
|
|
713
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
714
|
+
createdEvent?: EntityCreatedEvent;
|
|
715
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
716
|
+
deletedEvent?: EntityDeletedEvent;
|
|
717
|
+
actionEvent?: ActionEvent;
|
|
718
|
+
/**
|
|
719
|
+
* Unique event ID.
|
|
720
|
+
* Allows clients to ignore duplicate webhooks.
|
|
721
|
+
*/
|
|
722
|
+
_id?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Assumes actions are also always typed to an entity_type
|
|
725
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
726
|
+
*/
|
|
727
|
+
entityFqdn?: string;
|
|
728
|
+
/**
|
|
729
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
730
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
731
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
732
|
+
*/
|
|
733
|
+
slug?: string;
|
|
734
|
+
/** ID of the entity associated with the event. */
|
|
735
|
+
entityId?: string;
|
|
736
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
737
|
+
eventTime?: Date | null;
|
|
738
|
+
/**
|
|
739
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
740
|
+
* (for example, GDPR).
|
|
741
|
+
*/
|
|
742
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
743
|
+
/** If present, indicates the action that triggered the event. */
|
|
744
|
+
originatedFrom?: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
747
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
748
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
749
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
750
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
751
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
752
|
+
*/
|
|
753
|
+
entityEventSequence?: string | null;
|
|
754
|
+
}
|
|
755
|
+
/** @oneof */
|
|
756
|
+
export interface DomainEventBodyOneOf {
|
|
757
|
+
createdEvent?: EntityCreatedEvent;
|
|
758
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
759
|
+
deletedEvent?: EntityDeletedEvent;
|
|
760
|
+
actionEvent?: ActionEvent;
|
|
761
|
+
}
|
|
762
|
+
export interface EntityCreatedEvent {
|
|
763
|
+
entity?: string;
|
|
764
|
+
}
|
|
765
|
+
export interface RestoreInfo {
|
|
766
|
+
deletedDate?: Date | null;
|
|
767
|
+
}
|
|
768
|
+
export interface EntityUpdatedEvent {
|
|
769
|
+
/**
|
|
770
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
771
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
772
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
773
|
+
*/
|
|
774
|
+
currentEntity?: string;
|
|
775
|
+
}
|
|
776
|
+
export interface EntityDeletedEvent {
|
|
777
|
+
/** Entity that was deleted */
|
|
778
|
+
deletedEntity?: string | null;
|
|
779
|
+
}
|
|
780
|
+
export interface ActionEvent {
|
|
781
|
+
body?: string;
|
|
782
|
+
}
|
|
783
|
+
export interface MessageEnvelope {
|
|
784
|
+
/** App instance ID. */
|
|
785
|
+
instanceId?: string | null;
|
|
786
|
+
/** Event type. */
|
|
787
|
+
eventType?: string;
|
|
788
|
+
/** The identification type and identity data. */
|
|
789
|
+
identity?: IdentificationData;
|
|
790
|
+
/** Stringify payload. */
|
|
791
|
+
data?: string;
|
|
792
|
+
}
|
|
793
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
794
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
795
|
+
anonymousVisitorId?: string;
|
|
796
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
797
|
+
memberId?: string;
|
|
798
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
799
|
+
wixUserId?: string;
|
|
800
|
+
/** ID of an app. */
|
|
801
|
+
appId?: string;
|
|
802
|
+
/** @readonly */
|
|
803
|
+
identityType?: WebhookIdentityType;
|
|
804
|
+
}
|
|
805
|
+
/** @oneof */
|
|
806
|
+
export interface IdentificationDataIdOneOf {
|
|
807
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
808
|
+
anonymousVisitorId?: string;
|
|
809
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
810
|
+
memberId?: string;
|
|
811
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
812
|
+
wixUserId?: string;
|
|
813
|
+
/** ID of an app. */
|
|
814
|
+
appId?: string;
|
|
815
|
+
}
|
|
816
|
+
export declare enum WebhookIdentityType {
|
|
817
|
+
UNKNOWN = "UNKNOWN",
|
|
818
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
819
|
+
MEMBER = "MEMBER",
|
|
820
|
+
WIX_USER = "WIX_USER",
|
|
821
|
+
APP = "APP"
|
|
822
|
+
}
|
|
823
|
+
interface PlaceReservationNonNullableFields {
|
|
824
|
+
_id: string;
|
|
825
|
+
}
|
|
826
|
+
export interface SeatingReservationNonNullableFields {
|
|
827
|
+
reservedPlaces: PlaceReservationNonNullableFields[];
|
|
828
|
+
}
|
|
829
|
+
export interface CreateSeatingReservationResponseNonNullableFields {
|
|
830
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
831
|
+
}
|
|
832
|
+
export interface GetReservationResponseNonNullableFields {
|
|
833
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
834
|
+
}
|
|
835
|
+
export interface QuerySeatingReservationResponseNonNullableFields {
|
|
836
|
+
reservations: SeatingReservationNonNullableFields[];
|
|
837
|
+
}
|
|
838
|
+
export interface DeleteSeatingReservationResponseNonNullableFields {
|
|
839
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
840
|
+
}
|
|
841
|
+
interface SequencingNonNullableFields {
|
|
842
|
+
startAt: string;
|
|
843
|
+
labels: string[];
|
|
844
|
+
}
|
|
845
|
+
interface PlaceNonNullableFields {
|
|
846
|
+
index: number;
|
|
847
|
+
label: string;
|
|
848
|
+
elementType: Type;
|
|
849
|
+
type: PlaceTypeEnumType;
|
|
850
|
+
}
|
|
851
|
+
interface ReservationOptionsNonNullableFields {
|
|
852
|
+
reserveWholeElement: boolean;
|
|
853
|
+
}
|
|
854
|
+
interface ImageNonNullableFields {
|
|
855
|
+
_id: string;
|
|
856
|
+
height: number;
|
|
857
|
+
width: number;
|
|
858
|
+
}
|
|
859
|
+
interface ElementUiPropertiesNonNullableFields {
|
|
860
|
+
shapeType: ShapeTypeEnumType;
|
|
861
|
+
labelPosition: Position;
|
|
862
|
+
seatLayout: number[];
|
|
863
|
+
icon: Icon;
|
|
864
|
+
image?: ImageNonNullableFields;
|
|
865
|
+
seatNumbering: Numbering;
|
|
866
|
+
}
|
|
867
|
+
interface RowElementUiPropertiesNonNullableFields {
|
|
868
|
+
labelPosition: Position;
|
|
869
|
+
seatNumbering: Numbering;
|
|
870
|
+
}
|
|
871
|
+
interface RowElementNonNullableFields {
|
|
872
|
+
_id: number;
|
|
873
|
+
sequencing?: SequencingNonNullableFields;
|
|
874
|
+
uiProperties?: RowElementUiPropertiesNonNullableFields;
|
|
875
|
+
}
|
|
876
|
+
interface VerticalSequencingNonNullableFields {
|
|
877
|
+
startAt: string;
|
|
878
|
+
rowNumbering: Numbering;
|
|
879
|
+
}
|
|
880
|
+
interface MultiRowPropertiesNonNullableFields {
|
|
881
|
+
rows: RowElementNonNullableFields[];
|
|
882
|
+
verticalSequencing?: VerticalSequencingNonNullableFields;
|
|
883
|
+
}
|
|
884
|
+
interface ElementNonNullableFields {
|
|
885
|
+
_id: number;
|
|
886
|
+
type: Type;
|
|
887
|
+
sequencing?: SequencingNonNullableFields;
|
|
888
|
+
overrides: PlaceNonNullableFields[];
|
|
889
|
+
places: PlaceNonNullableFields[];
|
|
890
|
+
reservationOptions?: ReservationOptionsNonNullableFields;
|
|
891
|
+
uiProperties?: ElementUiPropertiesNonNullableFields;
|
|
892
|
+
multiRowProperties?: MultiRowPropertiesNonNullableFields;
|
|
893
|
+
}
|
|
894
|
+
interface SectionNonNullableFields {
|
|
895
|
+
_id: number;
|
|
896
|
+
elements: ElementNonNullableFields[];
|
|
897
|
+
default: boolean;
|
|
898
|
+
}
|
|
899
|
+
interface CategoryNonNullableFields {
|
|
900
|
+
_id: number;
|
|
901
|
+
title: string;
|
|
902
|
+
places: PlaceNonNullableFields[];
|
|
903
|
+
}
|
|
904
|
+
interface ElementGroupNonNullableFields {
|
|
905
|
+
_id: number;
|
|
906
|
+
}
|
|
907
|
+
interface SeatingPlanNonNullableFields {
|
|
908
|
+
sections: SectionNonNullableFields[];
|
|
909
|
+
categories: CategoryNonNullableFields[];
|
|
910
|
+
uncategorizedPlaces: PlaceNonNullableFields[];
|
|
911
|
+
elementGroups: ElementGroupNonNullableFields[];
|
|
912
|
+
}
|
|
913
|
+
interface PlaceReservationDetailsNonNullableFields {
|
|
914
|
+
placeId: string;
|
|
915
|
+
occupied: number;
|
|
916
|
+
}
|
|
917
|
+
export interface GetSeatingReservationSummaryResponseNonNullableFields {
|
|
918
|
+
plan?: SeatingPlanNonNullableFields;
|
|
919
|
+
places: PlaceReservationDetailsNonNullableFields[];
|
|
920
|
+
}
|
|
921
|
+
export interface BaseEventMetadata {
|
|
922
|
+
/** App instance ID. */
|
|
923
|
+
instanceId?: string | null;
|
|
924
|
+
/** Event type. */
|
|
925
|
+
eventType?: string;
|
|
926
|
+
/** The identification type and identity data. */
|
|
927
|
+
identity?: IdentificationData;
|
|
928
|
+
}
|
|
929
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
930
|
+
/**
|
|
931
|
+
* Unique event ID.
|
|
932
|
+
* Allows clients to ignore duplicate webhooks.
|
|
933
|
+
*/
|
|
934
|
+
_id?: string;
|
|
935
|
+
/**
|
|
936
|
+
* Assumes actions are also always typed to an entity_type
|
|
937
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
938
|
+
*/
|
|
939
|
+
entityFqdn?: string;
|
|
940
|
+
/**
|
|
941
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
942
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
943
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
944
|
+
*/
|
|
945
|
+
slug?: string;
|
|
946
|
+
/** ID of the entity associated with the event. */
|
|
947
|
+
entityId?: string;
|
|
948
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
949
|
+
eventTime?: Date | null;
|
|
950
|
+
/**
|
|
951
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
952
|
+
* (for example, GDPR).
|
|
953
|
+
*/
|
|
954
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
955
|
+
/** If present, indicates the action that triggered the event. */
|
|
956
|
+
originatedFrom?: string | null;
|
|
957
|
+
/**
|
|
958
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
959
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
960
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
961
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
962
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
963
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
964
|
+
*/
|
|
965
|
+
entityEventSequence?: string | null;
|
|
966
|
+
}
|
|
967
|
+
export interface SeatingReservationCreatedEnvelope {
|
|
968
|
+
entity: SeatingReservation;
|
|
969
|
+
metadata: EventMetadata;
|
|
970
|
+
}
|
|
971
|
+
/** @permissionScope Manage Events
|
|
972
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
973
|
+
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
974
|
+
* @webhook
|
|
975
|
+
* @eventType wix.seating.v1.seating_reservation_created
|
|
976
|
+
* @slug created
|
|
977
|
+
* @documentationMaturity preview
|
|
978
|
+
*/
|
|
979
|
+
export declare function onSeatingReservationCreated(handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>): void;
|
|
980
|
+
export interface SeatingReservationDeletedEnvelope {
|
|
981
|
+
entity: SeatingReservation;
|
|
982
|
+
metadata: EventMetadata;
|
|
983
|
+
}
|
|
984
|
+
/** @permissionScope Manage Events
|
|
985
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
986
|
+
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
987
|
+
* @webhook
|
|
988
|
+
* @eventType wix.seating.v1.seating_reservation_deleted
|
|
989
|
+
* @slug deleted
|
|
990
|
+
* @documentationMaturity preview
|
|
991
|
+
*/
|
|
992
|
+
export declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
|
|
993
|
+
/**
|
|
994
|
+
* Creates a seating reservation
|
|
995
|
+
* @public
|
|
996
|
+
* @documentationMaturity preview
|
|
997
|
+
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
998
|
+
* @permissionScope Manage Events
|
|
999
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1000
|
+
* @applicableIdentity APP
|
|
1001
|
+
* @returns Created reservation
|
|
1002
|
+
* @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
|
|
1003
|
+
*/
|
|
1004
|
+
export declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
1005
|
+
export interface CreateSeatingReservationOptions {
|
|
1006
|
+
/** A reservation to create */
|
|
1007
|
+
reservation?: SeatingReservation;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Returns seating reservation
|
|
1011
|
+
* @param _id - The id of the reservation to return
|
|
1012
|
+
* @public
|
|
1013
|
+
* @documentationMaturity preview
|
|
1014
|
+
* @requiredField _id
|
|
1015
|
+
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1016
|
+
* @permissionScope Manage Events
|
|
1017
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1018
|
+
* @applicableIdentity APP
|
|
1019
|
+
* @returns Created reservation
|
|
1020
|
+
* @fqn com.wixpress.seating.SeatingReservationService.GetReservation
|
|
1021
|
+
*/
|
|
1022
|
+
export declare function getReservation(_id: string | null): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Lists seating reservations by query request
|
|
1025
|
+
* @public
|
|
1026
|
+
* @documentationMaturity preview
|
|
1027
|
+
* @permissionScope Manage Events
|
|
1028
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1029
|
+
* @permissionId SEATING_PLANS.READ_RESERVATIONS
|
|
1030
|
+
* @applicableIdentity APP
|
|
1031
|
+
* @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation
|
|
1032
|
+
*/
|
|
1033
|
+
export declare function querySeatingReservation(): ReservationsQueryBuilder;
|
|
1034
|
+
interface QueryCursorResult {
|
|
1035
|
+
cursors: Cursors;
|
|
1036
|
+
hasNext: () => boolean;
|
|
1037
|
+
hasPrev: () => boolean;
|
|
1038
|
+
length: number;
|
|
1039
|
+
pageSize: number;
|
|
1040
|
+
}
|
|
1041
|
+
export interface ReservationsQueryResult extends QueryCursorResult {
|
|
1042
|
+
items: SeatingReservation[];
|
|
1043
|
+
query: ReservationsQueryBuilder;
|
|
1044
|
+
next: () => Promise<ReservationsQueryResult>;
|
|
1045
|
+
prev: () => Promise<ReservationsQueryResult>;
|
|
1046
|
+
}
|
|
1047
|
+
export interface ReservationsQueryBuilder {
|
|
1048
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1049
|
+
* @documentationMaturity preview
|
|
1050
|
+
*/
|
|
1051
|
+
limit: (limit: number) => ReservationsQueryBuilder;
|
|
1052
|
+
/** @param cursor - A pointer to specific record
|
|
1053
|
+
* @documentationMaturity preview
|
|
1054
|
+
*/
|
|
1055
|
+
skipTo: (cursor: string) => ReservationsQueryBuilder;
|
|
1056
|
+
/** @documentationMaturity preview */
|
|
1057
|
+
find: () => Promise<ReservationsQueryResult>;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Deletes the seating reservation
|
|
1061
|
+
* @param _id - The id of the reservation to delete
|
|
1062
|
+
* @public
|
|
1063
|
+
* @documentationMaturity preview
|
|
1064
|
+
* @requiredField _id
|
|
1065
|
+
* @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
|
|
1066
|
+
* @permissionScope Manage Events
|
|
1067
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1068
|
+
* @applicableIdentity APP
|
|
1069
|
+
* @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
|
|
1070
|
+
*/
|
|
1071
|
+
export declare function deleteSeatingReservation(_id: string | null): Promise<DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields>;
|
|
1072
|
+
/** @public
|
|
1073
|
+
* @documentationMaturity preview
|
|
1074
|
+
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1075
|
+
* @permissionScope Manage Events
|
|
1076
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1077
|
+
* @applicableIdentity APP
|
|
1078
|
+
* @applicableIdentity VISITOR
|
|
1079
|
+
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
|
|
1080
|
+
*/
|
|
1081
|
+
export declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<GetSeatingCategorySummaryResponse>;
|
|
1082
|
+
export interface GetSeatingCategorySummaryOptions {
|
|
1083
|
+
/** Seating plan external id */
|
|
1084
|
+
externalId?: string;
|
|
1085
|
+
}
|
|
1086
|
+
/** @param externalId - Seating plan external id
|
|
1087
|
+
* @public
|
|
1088
|
+
* @documentationMaturity preview
|
|
1089
|
+
* @requiredField externalId
|
|
1090
|
+
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1091
|
+
* @permissionScope Manage Events
|
|
1092
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1093
|
+
* @applicableIdentity APP
|
|
1094
|
+
* @applicableIdentity VISITOR
|
|
1095
|
+
* @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
|
|
1096
|
+
*/
|
|
1097
|
+
export declare function getSeatingReservationSummary(externalId: string): Promise<GetSeatingReservationSummaryResponse & GetSeatingReservationSummaryResponseNonNullableFields>;
|
|
1098
|
+
export {};
|