@wix/table-reservations 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.
Files changed (80) hide show
  1. package/build/cjs/index.d.ts +2 -0
  2. package/build/cjs/index.js +25 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +2 -0
  5. package/build/cjs/index.typings.js +25 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2 -0
  8. package/build/cjs/meta.js +25 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +21 -0
  11. package/build/cjs/src/table-reservations-v1-reservation-location.http.js +219 -0
  12. package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +1 -0
  13. package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +20 -0
  14. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +102 -0
  15. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +1 -0
  16. package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +11 -0
  17. package/build/cjs/src/table-reservations-v1-reservation-location.public.js +41 -0
  18. package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +1 -0
  19. package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +1465 -0
  20. package/build/cjs/src/table-reservations-v1-reservation-location.types.js +142 -0
  21. package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +1 -0
  22. package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +1455 -0
  23. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +488 -0
  24. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -0
  25. package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +36 -0
  26. package/build/cjs/src/table-reservations-v1-reservation.http.js +346 -0
  27. package/build/cjs/src/table-reservations-v1-reservation.http.js.map +1 -0
  28. package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +28 -0
  29. package/build/cjs/src/table-reservations-v1-reservation.meta.js +176 -0
  30. package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +1 -0
  31. package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +15 -0
  32. package/build/cjs/src/table-reservations-v1-reservation.public.js +61 -0
  33. package/build/cjs/src/table-reservations-v1-reservation.public.js.map +1 -0
  34. package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +477 -0
  35. package/build/cjs/src/table-reservations-v1-reservation.types.js +58 -0
  36. package/build/cjs/src/table-reservations-v1-reservation.types.js.map +1 -0
  37. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +699 -0
  38. package/build/cjs/src/table-reservations-v1-reservation.universal.js +607 -0
  39. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -0
  40. package/build/es/index.d.ts +2 -0
  41. package/build/es/index.js +3 -0
  42. package/build/es/index.js.map +1 -0
  43. package/build/es/index.typings.d.ts +2 -0
  44. package/build/es/index.typings.js +3 -0
  45. package/build/es/index.typings.js.map +1 -0
  46. package/build/es/meta.d.ts +2 -0
  47. package/build/es/meta.js +3 -0
  48. package/build/es/meta.js.map +1 -0
  49. package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +21 -0
  50. package/build/es/src/table-reservations-v1-reservation-location.http.js +212 -0
  51. package/build/es/src/table-reservations-v1-reservation-location.http.js.map +1 -0
  52. package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +20 -0
  53. package/build/es/src/table-reservations-v1-reservation-location.meta.js +76 -0
  54. package/build/es/src/table-reservations-v1-reservation-location.meta.js.map +1 -0
  55. package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +11 -0
  56. package/build/es/src/table-reservations-v1-reservation-location.public.js +24 -0
  57. package/build/es/src/table-reservations-v1-reservation-location.public.js.map +1 -0
  58. package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +1465 -0
  59. package/build/es/src/table-reservations-v1-reservation-location.types.js +139 -0
  60. package/build/es/src/table-reservations-v1-reservation-location.types.js.map +1 -0
  61. package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +1455 -0
  62. package/build/es/src/table-reservations-v1-reservation-location.universal.js +462 -0
  63. package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -0
  64. package/build/es/src/table-reservations-v1-reservation.http.d.ts +36 -0
  65. package/build/es/src/table-reservations-v1-reservation.http.js +335 -0
  66. package/build/es/src/table-reservations-v1-reservation.http.js.map +1 -0
  67. package/build/es/src/table-reservations-v1-reservation.meta.d.ts +28 -0
  68. package/build/es/src/table-reservations-v1-reservation.meta.js +146 -0
  69. package/build/es/src/table-reservations-v1-reservation.meta.js.map +1 -0
  70. package/build/es/src/table-reservations-v1-reservation.public.d.ts +15 -0
  71. package/build/es/src/table-reservations-v1-reservation.public.js +44 -0
  72. package/build/es/src/table-reservations-v1-reservation.public.js.map +1 -0
  73. package/build/es/src/table-reservations-v1-reservation.types.d.ts +477 -0
  74. package/build/es/src/table-reservations-v1-reservation.types.js +55 -0
  75. package/build/es/src/table-reservations-v1-reservation.types.js.map +1 -0
  76. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +699 -0
  77. package/build/es/src/table-reservations-v1-reservation.universal.js +577 -0
  78. package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -0
  79. package/meta/package.json +6 -0
  80. package/package.json +38 -0
@@ -0,0 +1,477 @@
1
+ /** The reservation domain object. */
2
+ export interface Reservation {
3
+ /**
4
+ * Reservation ID. Read-Only.
5
+ * @readonly
6
+ */
7
+ id?: string | null;
8
+ /** Status of the reservation. See the [Reservation Lifecycle article]() for more details on each of the statuses, and an explanations of the reservation lifecycle. */
9
+ status?: Status;
10
+ /**
11
+ * Reservation source.
12
+ *
13
+ * This indicates how the reservation was made.
14
+ * `ONLINE` indicates that the customer made the reservation through a website or app.
15
+ * `OFFLINE` indicates that the reservation was made by a restaurant employee, for example when a customer calls to make a reservation.
16
+ * `WALK-IN` indicates that the customer did not make a reservation beforehand, and the reservation was entered into the system by a restaurant employee when the customer arrived at the restaurant.
17
+ */
18
+ source?: Source;
19
+ /** Reservation details. */
20
+ details?: Details;
21
+ /** Information about the person the reservation is being made for. */
22
+ reservee?: Reservee;
23
+ /**
24
+ * Information about the person making the reservation.
25
+ * @readonly
26
+ */
27
+ reservedBy?: ReservedBy;
28
+ /**
29
+ * Team message.
30
+ *
31
+ * A message for the restaurant staff containing any additional information regarding the reservation, such as special requirements for the guests.
32
+ */
33
+ teamMessage?: string | null;
34
+ /**
35
+ * Date and time when the when the reservation was created.
36
+ * @readonly
37
+ */
38
+ createdDate?: Date;
39
+ /**
40
+ * Date and time when the when the reservation was changed.
41
+ * @readonly
42
+ */
43
+ updatedDate?: Date;
44
+ /**
45
+ * Revision number, which increments by 1 each time the reservation is updated.
46
+ * To prevent conflicting changes, the current revision must be passed when updating the reservation.
47
+ *
48
+ * Ignored when creating a reservation.
49
+ * @readonly
50
+ */
51
+ revision?: string | null;
52
+ /** The reason the reservation was declined. */
53
+ declineReason?: string | null;
54
+ }
55
+ export declare enum Status {
56
+ UNKNOWN = "UNKNOWN",
57
+ /** The reservation is held for 10 minutes, during which time the reservee should fill in their details. */
58
+ HELD = "HELD",
59
+ /** The reservation has been reserved. */
60
+ RESERVED = "RESERVED",
61
+ /** The reservation has been canceled. */
62
+ CANCELED = "CANCELED",
63
+ /** The reservation has been successfully finished. */
64
+ FINISHED = "FINISHED",
65
+ /** The reservee didn't arrive. */
66
+ NO_SHOW = "NO_SHOW",
67
+ /** The reservee occupied the table. */
68
+ SEATED = "SEATED",
69
+ /** The reservee requested a reservation and is waiting for manual approval. */
70
+ REQUESTED = "REQUESTED",
71
+ /** The owner declined a reservee's request. */
72
+ DECLINED = "DECLINED"
73
+ }
74
+ export declare enum Source {
75
+ UNKNOWN = "UNKNOWN",
76
+ /** The reservation is created by a User. */
77
+ OFFLINE = "OFFLINE",
78
+ /** The reservation is created by UoU. */
79
+ ONLINE = "ONLINE",
80
+ /** The reservation is created by a User. It can be created without reservee data. */
81
+ WALK_IN = "WALK_IN"
82
+ }
83
+ /** Reservation details. */
84
+ export interface Details {
85
+ /** ID of the reservation location at which this reservation will be made. */
86
+ reservationLocationId?: string | null;
87
+ /** Table IDs of tables used for this reservation. */
88
+ tableIds?: string[] | null;
89
+ /** Start date and time of the reservation. */
90
+ startDate?: Date;
91
+ /** End date and time of the reservation. */
92
+ endDate?: Date;
93
+ /** Party size. */
94
+ partySize?: number | null;
95
+ }
96
+ /** A person the reservation is being made for. */
97
+ export interface Reservee {
98
+ /** First name. */
99
+ firstName?: string | null;
100
+ /** Last name. */
101
+ lastName?: string | null;
102
+ /** Email address. */
103
+ email?: string | null;
104
+ /** Phone number. */
105
+ phone?: string | null;
106
+ /** Whether the reserve has given marketing consent. */
107
+ marketingConsent?: boolean | null;
108
+ /**
109
+ * Custom fields for the reservee in key-value pairs.
110
+ *
111
+ * The key is the custom field's ID, and the value is the custom field's value.
112
+ *
113
+ * Empty fields are not returned.
114
+ */
115
+ customFields?: Record<string, any> | null;
116
+ /**
117
+ * Contact ID. If a contact with this ID does not exist on the site, one will be created.
118
+ * @readonly
119
+ */
120
+ contactId?: string | null;
121
+ }
122
+ /** A person making reservation. */
123
+ export interface ReservedBy {
124
+ /**
125
+ * Contact ID for the person who made the reservation. If a contact with this ID does not exist on the site, one will be created.
126
+ * @readonly
127
+ */
128
+ contactId?: string | null;
129
+ }
130
+ export interface CreateReservationRequest {
131
+ /** Reservation details. */
132
+ reservation: Reservation;
133
+ /** Ignore table combination conflicts. This will ensure that the reservation is created even if the required tables are already reserved. */
134
+ ignoreTableCombinationConflicts?: TableCombinationConflictType[];
135
+ /** Ignore reservation location conflicts. This will ensure that the reservation is created even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
136
+ ignoreReservationLocationConflicts?: Type[];
137
+ }
138
+ export declare enum TableCombinationConflictType {
139
+ UNKNOWN = "UNKNOWN",
140
+ RESERVED = "RESERVED",
141
+ TOO_BIG = "TOO_BIG",
142
+ TOO_SMALL = "TOO_SMALL",
143
+ OFFLINE_ONLY = "OFFLINE_ONLY"
144
+ }
145
+ export declare enum Type {
146
+ UNKNOWN = "UNKNOWN",
147
+ PARTY_PACING = "PARTY_PACING",
148
+ SEAT_PACING = "SEAT_PACING"
149
+ }
150
+ export interface CreateReservationResponse {
151
+ /** Reservation. */
152
+ reservation?: Reservation;
153
+ }
154
+ export interface ReservationDetailsConflicts {
155
+ /** Table combinations conflicts. */
156
+ tableCombinationConflicts?: TableCombinationConflict[];
157
+ /** Reservation location conflicts. */
158
+ reservationLocationConflicts?: ReservationLocationConflict[];
159
+ }
160
+ export interface TableCombinationConflict {
161
+ /** Conflict type. */
162
+ type?: TableCombinationConflictType;
163
+ }
164
+ export interface ReservationLocationConflict {
165
+ /** Reservation location conflict type. */
166
+ type?: Type;
167
+ }
168
+ export interface GetReservationRequest {
169
+ /** Reservation ID. */
170
+ reservationId: string;
171
+ /**
172
+ * Array of named, predefined sets of projected fields to be returned.
173
+ *
174
+ * Supported values: `PUBLIC`, `FULL`.
175
+ */
176
+ fieldsets?: Set[];
177
+ }
178
+ export declare enum Set {
179
+ PUBLIC = "PUBLIC",
180
+ FULL = "FULL"
181
+ }
182
+ export interface GetReservationResponse {
183
+ /** Reservation. */
184
+ reservation?: Reservation;
185
+ }
186
+ export interface UpdateReservationRequest {
187
+ /** Reservation information to update. */
188
+ reservation: Reservation;
189
+ /** Ignored table combination conflicts. This will ensure that the reservation is updated even if the required tables are already reserved. */
190
+ ignoreTableCombinationConflicts?: TableCombinationConflictType[];
191
+ /** Ignored reservation location conflicts. This will ensure that the reservation is updated even if the required seats or tables are unavailable according to the reservation location's business schedule or its pacing settings. */
192
+ ignoreReservationLocationConflicts?: Type[];
193
+ }
194
+ export interface UpdateReservationResponse {
195
+ /** Reservation. */
196
+ reservation?: Reservation;
197
+ }
198
+ export interface ReservationDataUpdated {
199
+ /** Reserved reservation. */
200
+ reservation?: Reservation;
201
+ /** Old reservation. */
202
+ oldReservation?: Reservation;
203
+ }
204
+ export interface CreateHeldReservationRequest {
205
+ /** `HELD` reservation information to update. */
206
+ reservationDetails: HeldReservationDetails;
207
+ }
208
+ /** Reservation details when create reservation in status HELD. */
209
+ export interface HeldReservationDetails {
210
+ /** ID of the reservation location where the reservation is made. */
211
+ reservationLocationId?: string | null;
212
+ /** Start date and time of the reservation. */
213
+ startDate?: Date;
214
+ /** Party size. */
215
+ partySize?: number | null;
216
+ }
217
+ export interface CreateHeldReservationResponse {
218
+ /** Reservation. */
219
+ reservation?: Reservation;
220
+ }
221
+ export interface ReserveReservationRequest {
222
+ /** Reservation ID. */
223
+ reservationId: string;
224
+ /** Reservee details. */
225
+ reservee: Reservee;
226
+ /**
227
+ * Revision number.
228
+ *
229
+ * Include the existing `revision` to prevent conflicting updates to reservations.
230
+ */
231
+ revision: string | null;
232
+ }
233
+ export interface ReserveReservationResponse {
234
+ /** Reservation. */
235
+ reservation?: Reservation;
236
+ }
237
+ export interface ReservationReserved {
238
+ /** Reserved reservation. */
239
+ reservation?: Reservation;
240
+ }
241
+ export interface CancelReservationRequest {
242
+ /** Reservation ID. */
243
+ reservationId: string;
244
+ /**
245
+ * Revision number.
246
+ *
247
+ * Include the existing `revision` to prevent conflicting updates to reservations.
248
+ */
249
+ revision: string | null;
250
+ /** Phone number that was used when the reservation was created. */
251
+ phone?: string | null;
252
+ }
253
+ export interface CancelReservationResponse {
254
+ /** Reservation. */
255
+ reservation?: Reservation;
256
+ }
257
+ export interface ReservationCanceled {
258
+ /** Reserved reservation. */
259
+ reservation?: Reservation;
260
+ }
261
+ export interface DeleteReservationRequest {
262
+ /** Reservation ID. */
263
+ reservationId?: string;
264
+ revision?: string;
265
+ }
266
+ export interface DeleteReservationResponse {
267
+ }
268
+ export interface ListReservationsRequest {
269
+ /** 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`. */
270
+ paging?: CursorPaging;
271
+ /** The way how reservations in response should be sorted. */
272
+ sort?: Sorting;
273
+ /** Start date from. */
274
+ startDateFrom?: Date;
275
+ /** Start date to. */
276
+ startDateTo?: Date;
277
+ /** Only reservations with this status should be returned. */
278
+ status?: Status;
279
+ }
280
+ export interface CursorPaging {
281
+ /** Number of items to load. */
282
+ limit?: number | null;
283
+ /**
284
+ * Pointer to the next or previous page in the list of results.
285
+ *
286
+ * You can get the relevant cursor token
287
+ * from the `pagingMetadata` object in the previous call's response.
288
+ * Not relevant for the first request.
289
+ */
290
+ cursor?: string | null;
291
+ }
292
+ export interface Sorting {
293
+ /** Name of the field to sort by. */
294
+ fieldName?: string;
295
+ /**
296
+ * Sort order.
297
+ *
298
+ * Use `ASC` for ascending order or `DESC` for descending order. Defaults to `ASC`.
299
+ */
300
+ order?: SortOrder;
301
+ }
302
+ export declare enum SortOrder {
303
+ ASC = "ASC",
304
+ DESC = "DESC"
305
+ }
306
+ export interface ListReservationsResponse {
307
+ /** List of reservations. */
308
+ reservations?: Reservation[];
309
+ /** Metadata for the paginated results. */
310
+ pagingMetadata?: CursorPagingMetadata;
311
+ }
312
+ export interface CursorPagingMetadata {
313
+ /** Number of items returned in the response. */
314
+ count?: number | null;
315
+ /** Offset that was requested. */
316
+ cursors?: Cursors;
317
+ /**
318
+ * Indicates if there are more results after the current page.
319
+ * If `true`, another page of results can be retrieved.
320
+ * If `false`, this is the last page.
321
+ */
322
+ hasNext?: boolean | null;
323
+ }
324
+ export interface Cursors {
325
+ /** Cursor pointing to next page in the list of results. */
326
+ next?: string | null;
327
+ /** Cursor pointing to previous page in the list of results. */
328
+ prev?: string | null;
329
+ }
330
+ export interface QueryReservationsRequest {
331
+ /** Query to select reservations. */
332
+ query: CursorQuery;
333
+ }
334
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
335
+ /** 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`. */
336
+ cursorPaging?: CursorPaging;
337
+ /**
338
+ * Filter object in the following format:
339
+ * `"filter" : {
340
+ * "fieldName1": "value1",
341
+ * "fieldName2":{"$operator":"value2"}
342
+ * }`
343
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
344
+ */
345
+ filter?: Record<string, any> | null;
346
+ /**
347
+ * Sort object in the following format:
348
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
349
+ */
350
+ sort?: Sorting[];
351
+ }
352
+ /** @oneof */
353
+ export interface CursorQueryPagingMethodOneOf {
354
+ /** 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`. */
355
+ cursorPaging?: CursorPaging;
356
+ }
357
+ export interface QueryReservationsResponse {
358
+ /** List of reservations. */
359
+ reservations?: Reservation[];
360
+ /** Metadata for the paginated results. */
361
+ pagingMetadata?: CursorPagingMetadata;
362
+ }
363
+ export interface DomainEvent extends DomainEventBodyOneOf {
364
+ createdEvent?: EntityCreatedEvent;
365
+ updatedEvent?: EntityUpdatedEvent;
366
+ deletedEvent?: EntityDeletedEvent;
367
+ actionEvent?: ActionEvent;
368
+ /**
369
+ * Unique event ID.
370
+ * Allows clients to ignore duplicate webhooks.
371
+ */
372
+ id?: string;
373
+ /**
374
+ * Assumes actions are also always typed to an entity_type
375
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
376
+ */
377
+ entityFqdn?: string;
378
+ /**
379
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
380
+ * This is although the created/updated/deleted notion is duplication of the oneof types
381
+ * Example: created/updated/deleted/started/completed/email_opened
382
+ */
383
+ slug?: string;
384
+ /** ID of the entity associated with the event. */
385
+ entityId?: string;
386
+ /** Event timestamp. */
387
+ eventTime?: Date;
388
+ /**
389
+ * Whether the event was triggered as a result of a privacy regulation application
390
+ * (for example, GDPR).
391
+ */
392
+ triggeredByAnonymizeRequest?: boolean | null;
393
+ /** If present, indicates the action that triggered the event. */
394
+ originatedFrom?: string | null;
395
+ /**
396
+ * A sequence number defining the order of updates to the underlying entity.
397
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
398
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
399
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
400
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
401
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
402
+ */
403
+ entityEventSequence?: string | null;
404
+ }
405
+ /** @oneof */
406
+ export interface DomainEventBodyOneOf {
407
+ createdEvent?: EntityCreatedEvent;
408
+ updatedEvent?: EntityUpdatedEvent;
409
+ deletedEvent?: EntityDeletedEvent;
410
+ actionEvent?: ActionEvent;
411
+ }
412
+ export interface EntityCreatedEvent {
413
+ entityAsJson?: string;
414
+ }
415
+ export interface EntityUpdatedEvent {
416
+ /**
417
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
418
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
419
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
420
+ */
421
+ currentEntityAsJson?: string;
422
+ }
423
+ export interface EntityDeletedEvent {
424
+ }
425
+ export interface ActionEvent {
426
+ bodyAsJson?: string;
427
+ }
428
+ export interface Empty {
429
+ }
430
+ export interface CreateReservationResponseNonNullableFields {
431
+ reservation?: {
432
+ status: Status;
433
+ source: Source;
434
+ };
435
+ }
436
+ export interface GetReservationResponseNonNullableFields {
437
+ reservation?: {
438
+ status: Status;
439
+ source: Source;
440
+ };
441
+ }
442
+ export interface UpdateReservationResponseNonNullableFields {
443
+ reservation?: {
444
+ status: Status;
445
+ source: Source;
446
+ };
447
+ }
448
+ export interface CreateHeldReservationResponseNonNullableFields {
449
+ reservation?: {
450
+ status: Status;
451
+ source: Source;
452
+ };
453
+ }
454
+ export interface ReserveReservationResponseNonNullableFields {
455
+ reservation?: {
456
+ status: Status;
457
+ source: Source;
458
+ };
459
+ }
460
+ export interface CancelReservationResponseNonNullableFields {
461
+ reservation?: {
462
+ status: Status;
463
+ source: Source;
464
+ };
465
+ }
466
+ export interface ListReservationsResponseNonNullableFields {
467
+ reservations: {
468
+ status: Status;
469
+ source: Source;
470
+ }[];
471
+ }
472
+ export interface QueryReservationsResponseNonNullableFields {
473
+ reservations: {
474
+ status: Status;
475
+ source: Source;
476
+ }[];
477
+ }
@@ -0,0 +1,55 @@
1
+ export var Status;
2
+ (function (Status) {
3
+ Status["UNKNOWN"] = "UNKNOWN";
4
+ /** The reservation is held for 10 minutes, during which time the reservee should fill in their details. */
5
+ Status["HELD"] = "HELD";
6
+ /** The reservation has been reserved. */
7
+ Status["RESERVED"] = "RESERVED";
8
+ /** The reservation has been canceled. */
9
+ Status["CANCELED"] = "CANCELED";
10
+ /** The reservation has been successfully finished. */
11
+ Status["FINISHED"] = "FINISHED";
12
+ /** The reservee didn't arrive. */
13
+ Status["NO_SHOW"] = "NO_SHOW";
14
+ /** The reservee occupied the table. */
15
+ Status["SEATED"] = "SEATED";
16
+ /** The reservee requested a reservation and is waiting for manual approval. */
17
+ Status["REQUESTED"] = "REQUESTED";
18
+ /** The owner declined a reservee's request. */
19
+ Status["DECLINED"] = "DECLINED";
20
+ })(Status || (Status = {}));
21
+ export var Source;
22
+ (function (Source) {
23
+ Source["UNKNOWN"] = "UNKNOWN";
24
+ /** The reservation is created by a User. */
25
+ Source["OFFLINE"] = "OFFLINE";
26
+ /** The reservation is created by UoU. */
27
+ Source["ONLINE"] = "ONLINE";
28
+ /** The reservation is created by a User. It can be created without reservee data. */
29
+ Source["WALK_IN"] = "WALK_IN";
30
+ })(Source || (Source = {}));
31
+ export var TableCombinationConflictType;
32
+ (function (TableCombinationConflictType) {
33
+ TableCombinationConflictType["UNKNOWN"] = "UNKNOWN";
34
+ TableCombinationConflictType["RESERVED"] = "RESERVED";
35
+ TableCombinationConflictType["TOO_BIG"] = "TOO_BIG";
36
+ TableCombinationConflictType["TOO_SMALL"] = "TOO_SMALL";
37
+ TableCombinationConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
38
+ })(TableCombinationConflictType || (TableCombinationConflictType = {}));
39
+ export var Type;
40
+ (function (Type) {
41
+ Type["UNKNOWN"] = "UNKNOWN";
42
+ Type["PARTY_PACING"] = "PARTY_PACING";
43
+ Type["SEAT_PACING"] = "SEAT_PACING";
44
+ })(Type || (Type = {}));
45
+ export var Set;
46
+ (function (Set) {
47
+ Set["PUBLIC"] = "PUBLIC";
48
+ Set["FULL"] = "FULL";
49
+ })(Set || (Set = {}));
50
+ export var SortOrder;
51
+ (function (SortOrder) {
52
+ SortOrder["ASC"] = "ASC";
53
+ SortOrder["DESC"] = "DESC";
54
+ })(SortOrder || (SortOrder = {}));
55
+ //# sourceMappingURL=table-reservations-v1-reservation.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-reservations-v1-reservation.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.types.ts"],"names":[],"mappings":"AAuDA,MAAM,CAAN,IAAY,MAkBX;AAlBD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2GAA2G;IAC3G,uBAAa,CAAA;IACb,yCAAyC;IACzC,+BAAqB,CAAA;IACrB,yCAAyC;IACzC,+BAAqB,CAAA;IACrB,sDAAsD;IACtD,+BAAqB,CAAA;IACrB,kCAAkC;IAClC,6BAAmB,CAAA;IACnB,uCAAuC;IACvC,2BAAiB,CAAA;IACjB,+EAA+E;IAC/E,iCAAuB,CAAA;IACvB,+CAA+C;IAC/C,+BAAqB,CAAA;AACvB,CAAC,EAlBW,MAAM,KAAN,MAAM,QAkBjB;AAED,MAAM,CAAN,IAAY,MAQX;AARD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yCAAyC;IACzC,2BAAiB,CAAA;IACjB,qFAAqF;IACrF,6BAAmB,CAAA;AACrB,CAAC,EARW,MAAM,KAAN,MAAM,QAQjB;AA6DD,MAAM,CAAN,IAAY,4BAMX;AAND,WAAY,4BAA4B;IACtC,mDAAmB,CAAA;IACnB,qDAAqB,CAAA;IACrB,mDAAmB,CAAA;IACnB,uDAAuB,CAAA;IACvB,6DAA6B,CAAA;AAC/B,CAAC,EANW,4BAA4B,KAA5B,4BAA4B,QAMvC;AAED,MAAM,CAAN,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,qCAA6B,CAAA;IAC7B,mCAA2B,CAAA;AAC7B,CAAC,EAJW,IAAI,KAAJ,IAAI,QAIf;AAmCD,MAAM,CAAN,IAAY,GAGX;AAHD,WAAY,GAAG;IACb,wBAAiB,CAAA;IACjB,oBAAa,CAAA;AACf,CAAC,EAHW,GAAG,KAAH,GAAG,QAGd;AA2ID,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}