@wix/auto_sdk_table-reservations_reservations 1.0.1 → 1.0.3
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/src/table-reservations-v1-reservation-reservations.types.d.ts +214 -47
- package/build/cjs/src/table-reservations-v1-reservation-reservations.types.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-reservations.universal.d.ts +243 -51
- package/build/cjs/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation-reservations.types.d.ts +214 -47
- package/build/es/src/table-reservations-v1-reservation-reservations.types.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation-reservations.universal.d.ts +243 -51
- package/build/es/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -1
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.types.d.ts +214 -47
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.types.js.map +1 -1
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.universal.d.ts +243 -51
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -1
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.types.d.ts +214 -47
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.types.js.map +1 -1
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.universal.d.ts +243 -51
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export interface Reservation {
|
|
3
3
|
/**
|
|
4
4
|
* Reservation ID.
|
|
5
|
+
* @format GUID
|
|
5
6
|
* @readonly
|
|
6
7
|
*/
|
|
7
8
|
id?: string | null;
|
|
@@ -37,6 +38,7 @@ export interface Reservation {
|
|
|
37
38
|
* Team message.
|
|
38
39
|
*
|
|
39
40
|
* A message for the restaurant staff containing any additional information regarding the reservation, such as special requirements for the guests.
|
|
41
|
+
* @maxLength 10000
|
|
40
42
|
*/
|
|
41
43
|
teamMessage?: string | null;
|
|
42
44
|
/**
|
|
@@ -57,7 +59,10 @@ export interface Reservation {
|
|
|
57
59
|
* @readonly
|
|
58
60
|
*/
|
|
59
61
|
revision?: string | null;
|
|
60
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The reason the reservation was declined.
|
|
64
|
+
* @maxLength 1000
|
|
65
|
+
*/
|
|
61
66
|
declineReason?: string | null;
|
|
62
67
|
/**
|
|
63
68
|
* Payment status.
|
|
@@ -73,7 +78,11 @@ export interface Reservation {
|
|
|
73
78
|
}
|
|
74
79
|
/** Tables used for the reservation. If you don't specify a `tables` object, the server attempts to assign tables automatically. */
|
|
75
80
|
export interface Tables {
|
|
76
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* IDs of tables used for this reservation. If you don't specify an `ids` array, or you specify an empty array, no tables are assigned.
|
|
83
|
+
* @format GUID
|
|
84
|
+
* @maxSize 100
|
|
85
|
+
*/
|
|
77
86
|
ids?: string[];
|
|
78
87
|
}
|
|
79
88
|
export declare enum Status {
|
|
@@ -110,10 +119,15 @@ export declare enum Source {
|
|
|
110
119
|
}
|
|
111
120
|
/** Reservation details. */
|
|
112
121
|
export interface Details {
|
|
113
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* ID of the reservation location at which this reservation will be made.
|
|
124
|
+
* @format GUID
|
|
125
|
+
*/
|
|
114
126
|
reservationLocationId?: string | null;
|
|
115
127
|
/**
|
|
116
128
|
* IDs of tables used for this reservation.
|
|
129
|
+
* @format GUID
|
|
130
|
+
* @maxSize 100
|
|
117
131
|
* @deprecated
|
|
118
132
|
* @replacedBy tables
|
|
119
133
|
* @targetRemovalDate 2024-12-31
|
|
@@ -125,7 +139,11 @@ export interface Details {
|
|
|
125
139
|
startDate?: Date | null;
|
|
126
140
|
/** End date and time of the reservation. */
|
|
127
141
|
endDate?: Date | null;
|
|
128
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Party size.
|
|
144
|
+
* @min 1
|
|
145
|
+
* @max 1000
|
|
146
|
+
*/
|
|
129
147
|
partySize?: number | null;
|
|
130
148
|
}
|
|
131
149
|
/** The person the reservation is being made for. */
|
|
@@ -134,11 +152,18 @@ export interface Reservee {
|
|
|
134
152
|
* First name.
|
|
135
153
|
*
|
|
136
154
|
* This field is required if the reservation's `status` is anything other than `WALK_IN`.
|
|
155
|
+
* @maxLength 1000
|
|
137
156
|
*/
|
|
138
157
|
firstName?: string | null;
|
|
139
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Last name.
|
|
160
|
+
* @maxLength 1000
|
|
161
|
+
*/
|
|
140
162
|
lastName?: string | null;
|
|
141
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Email address.
|
|
165
|
+
* @format EMAIL
|
|
166
|
+
*/
|
|
142
167
|
email?: string | null;
|
|
143
168
|
/**
|
|
144
169
|
* Phone number.
|
|
@@ -146,6 +171,7 @@ export interface Reservee {
|
|
|
146
171
|
* This property should begin with a +, followed by the country code, and then the rest of the phone number. For example, `"+972555555555"`.
|
|
147
172
|
*
|
|
148
173
|
* This field is required if the reservation's `status` is anything other than `WALK_IN`.
|
|
174
|
+
* @format PHONE
|
|
149
175
|
*/
|
|
150
176
|
phone?: string | null;
|
|
151
177
|
/** Whether the reservee has given marketing consent. */
|
|
@@ -160,6 +186,7 @@ export interface Reservee {
|
|
|
160
186
|
customFields?: Record<string, any> | null;
|
|
161
187
|
/**
|
|
162
188
|
* Contact ID. If a contact with this ID does not exist on the site, one will be created.
|
|
189
|
+
* @format GUID
|
|
163
190
|
* @readonly
|
|
164
191
|
*/
|
|
165
192
|
contactId?: string | null;
|
|
@@ -168,6 +195,7 @@ export interface Reservee {
|
|
|
168
195
|
export interface ReservedBy {
|
|
169
196
|
/**
|
|
170
197
|
* 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.
|
|
198
|
+
* @format GUID
|
|
171
199
|
* @readonly
|
|
172
200
|
*/
|
|
173
201
|
contactId?: string | null;
|
|
@@ -177,9 +205,16 @@ export interface MigrationNote {
|
|
|
177
205
|
}
|
|
178
206
|
/** Table with reservation conflicts. */
|
|
179
207
|
export interface TableWithReservationConflicts {
|
|
180
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Table id.
|
|
210
|
+
* @format GUID
|
|
211
|
+
*/
|
|
181
212
|
tableId?: string;
|
|
182
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* List of reservation ids.
|
|
215
|
+
* @format GUID
|
|
216
|
+
* @maxSize 1000
|
|
217
|
+
*/
|
|
183
218
|
reservationIds?: string[];
|
|
184
219
|
}
|
|
185
220
|
export declare enum PaymentStatus {
|
|
@@ -251,6 +286,7 @@ export interface CreateReservationRequest {
|
|
|
251
286
|
* * `"TOO_BIG"`: The party is too big for the selected table.
|
|
252
287
|
* * `"TOO_SMALL"`: The party is too small for the selected table.
|
|
253
288
|
* * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
|
|
289
|
+
* @maxSize 10
|
|
254
290
|
*/
|
|
255
291
|
ignoreTableCombinationConflicts?: TableCombinationConflictType[];
|
|
256
292
|
/**
|
|
@@ -259,6 +295,7 @@ export interface CreateReservationRequest {
|
|
|
259
295
|
* Possible values:
|
|
260
296
|
* * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
|
|
261
297
|
* * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
|
|
298
|
+
* @maxSize 10
|
|
262
299
|
*/
|
|
263
300
|
ignoreReservationLocationConflicts?: Type[];
|
|
264
301
|
}
|
|
@@ -287,9 +324,15 @@ export interface CreateReservationResponse {
|
|
|
287
324
|
reservation?: Reservation;
|
|
288
325
|
}
|
|
289
326
|
export interface ReservationDetailsConflicts {
|
|
290
|
-
/**
|
|
327
|
+
/**
|
|
328
|
+
* Table combinations conflicts.
|
|
329
|
+
* @maxSize 10
|
|
330
|
+
*/
|
|
291
331
|
tableCombinationConflicts?: TableCombinationConflict[];
|
|
292
|
-
/**
|
|
332
|
+
/**
|
|
333
|
+
* Reservation location conflicts.
|
|
334
|
+
* @maxSize 10
|
|
335
|
+
*/
|
|
293
336
|
reservationLocationConflicts?: ReservationLocationConflict[];
|
|
294
337
|
}
|
|
295
338
|
export interface TableCombinationConflict {
|
|
@@ -301,11 +344,15 @@ export interface ReservationLocationConflict {
|
|
|
301
344
|
type?: Type;
|
|
302
345
|
}
|
|
303
346
|
export interface GetReservationRequest {
|
|
304
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Reservation ID.
|
|
349
|
+
* @format GUID
|
|
350
|
+
*/
|
|
305
351
|
reservationId: string;
|
|
306
352
|
/**
|
|
307
353
|
* Array of named, predefined sets of projected fields to be returned.
|
|
308
354
|
* Default: If `fields` is omitted from the request, `PUBLIC`.
|
|
355
|
+
* @maxSize 1
|
|
309
356
|
*/
|
|
310
357
|
fieldsets?: Set[];
|
|
311
358
|
}
|
|
@@ -325,8 +372,12 @@ export interface GetReservationResponse {
|
|
|
325
372
|
export interface UpdateReservationRequest {
|
|
326
373
|
/** Reservation information to update. */
|
|
327
374
|
reservation: Reservation;
|
|
328
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Ignore table combination conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
|
|
377
|
+
* @maxSize 10
|
|
378
|
+
*/
|
|
329
379
|
ignoreTableCombinationConflicts?: TableCombinationConflictType[];
|
|
380
|
+
/** @maxSize 10 */
|
|
330
381
|
ignoreReservationLocationConflicts?: Type[];
|
|
331
382
|
}
|
|
332
383
|
export interface UpdateReservationResponse {
|
|
@@ -339,11 +390,18 @@ export interface CreateHeldReservationRequest {
|
|
|
339
390
|
}
|
|
340
391
|
/** Reservation details when create reservation in status HELD. */
|
|
341
392
|
export interface HeldReservationDetails {
|
|
342
|
-
/**
|
|
393
|
+
/**
|
|
394
|
+
* ID of the reservation location where the reservation is made.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
343
397
|
reservationLocationId?: string | null;
|
|
344
398
|
/** Start date and time of the reservation. */
|
|
345
399
|
startDate?: Date | null;
|
|
346
|
-
/**
|
|
400
|
+
/**
|
|
401
|
+
* Party size.
|
|
402
|
+
* @min 1
|
|
403
|
+
* @max 1000
|
|
404
|
+
*/
|
|
347
405
|
partySize?: number | null;
|
|
348
406
|
}
|
|
349
407
|
export interface CreateHeldReservationResponse {
|
|
@@ -351,7 +409,10 @@ export interface CreateHeldReservationResponse {
|
|
|
351
409
|
reservation?: Reservation;
|
|
352
410
|
}
|
|
353
411
|
export interface ReserveReservationRequest {
|
|
354
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Reservation ID.
|
|
414
|
+
* @format GUID
|
|
415
|
+
*/
|
|
355
416
|
reservationId: string;
|
|
356
417
|
/** Reservee details. */
|
|
357
418
|
reservee: Reservee;
|
|
@@ -367,7 +428,10 @@ export interface ReserveReservationResponse {
|
|
|
367
428
|
reservation?: Reservation;
|
|
368
429
|
}
|
|
369
430
|
export interface CancelReservationRequest {
|
|
370
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Reservation ID.
|
|
433
|
+
* @format GUID
|
|
434
|
+
*/
|
|
371
435
|
reservationId: string;
|
|
372
436
|
/**
|
|
373
437
|
* Revision number.
|
|
@@ -381,6 +445,7 @@ export interface CancelReservationRequest {
|
|
|
381
445
|
* This is required for reservations with any `source` other than `WALK_IN`.
|
|
382
446
|
*
|
|
383
447
|
* This requirement provides additional security by ensuring that the canceling party knows both the reservation's `reservationId` and the reservee's `phone`.
|
|
448
|
+
* @format PHONE
|
|
384
449
|
*/
|
|
385
450
|
phone?: string | null;
|
|
386
451
|
}
|
|
@@ -393,7 +458,10 @@ export interface ReservationCanceled {
|
|
|
393
458
|
reservation?: Reservation;
|
|
394
459
|
}
|
|
395
460
|
export interface DeleteReservationRequest {
|
|
396
|
-
/**
|
|
461
|
+
/**
|
|
462
|
+
* Reservation ID.
|
|
463
|
+
* @format GUID
|
|
464
|
+
*/
|
|
397
465
|
reservationId: string;
|
|
398
466
|
}
|
|
399
467
|
export interface DeleteReservationResponse {
|
|
@@ -411,7 +479,10 @@ export interface ListReservationsRequest {
|
|
|
411
479
|
status?: Status;
|
|
412
480
|
}
|
|
413
481
|
export interface CursorPaging {
|
|
414
|
-
/**
|
|
482
|
+
/**
|
|
483
|
+
* Number of items to load.
|
|
484
|
+
* @max 100
|
|
485
|
+
*/
|
|
415
486
|
limit?: number | null;
|
|
416
487
|
/**
|
|
417
488
|
* Pointer to the next or previous page in the list of results.
|
|
@@ -515,16 +586,21 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
515
586
|
/**
|
|
516
587
|
* Sort object in the following format:
|
|
517
588
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
589
|
+
* @maxSize 100
|
|
518
590
|
*/
|
|
519
591
|
sort?: Sorting[];
|
|
520
592
|
/**
|
|
521
593
|
* A search method for grouping data into various categories (facets) and providing summaries for each category.
|
|
522
594
|
* For example, use aggregations to allow site visitors to narrow down their search results by selecting specific reservation statuses, party sizes, etc.
|
|
595
|
+
* @maxSize 100
|
|
523
596
|
*/
|
|
524
597
|
aggregations?: Aggregation[];
|
|
525
598
|
/** Free text to match in searchable fields. */
|
|
526
599
|
search?: SearchDetails;
|
|
527
|
-
/**
|
|
600
|
+
/**
|
|
601
|
+
* Time zone to adjust date-time-based filters and aggregations. ISO 8601 or IANA time zone database format.
|
|
602
|
+
* @maxLength 100
|
|
603
|
+
*/
|
|
528
604
|
timeZone?: string | null;
|
|
529
605
|
}
|
|
530
606
|
/** @oneof */
|
|
@@ -546,8 +622,10 @@ export interface Aggregation extends AggregationKindOneOf {
|
|
|
546
622
|
* For example, to get the number of reservations by party size for each week, first perform a date histogram aggregation on `details.startDate` with the interval `WEEK`, and a second value aggregation on `details.partySize`.
|
|
547
623
|
*/
|
|
548
624
|
nested?: NestedAggregation;
|
|
625
|
+
/** @maxLength 1000 */
|
|
549
626
|
name?: string | null;
|
|
550
627
|
type?: AggregationType;
|
|
628
|
+
/** @maxLength 1000 */
|
|
551
629
|
fieldPath?: string;
|
|
552
630
|
}
|
|
553
631
|
/** @oneof */
|
|
@@ -591,7 +669,10 @@ export declare enum MissingValues {
|
|
|
591
669
|
INCLUDE = "INCLUDE"
|
|
592
670
|
}
|
|
593
671
|
export interface IncludeMissingValuesOptions {
|
|
594
|
-
/**
|
|
672
|
+
/**
|
|
673
|
+
* Specify a custom name for the bucket containing the missing values. Defaults are "N/A" for strings, "0" for integers, and "false" for booleans.
|
|
674
|
+
* @maxLength 1000
|
|
675
|
+
*/
|
|
595
676
|
addToBucket?: string;
|
|
596
677
|
}
|
|
597
678
|
export declare enum ScalarType {
|
|
@@ -642,7 +723,10 @@ export interface ValueAggregationOptionsOneOf {
|
|
|
642
723
|
includeOptions?: IncludeMissingValuesOptions;
|
|
643
724
|
}
|
|
644
725
|
export interface RangeAggregation {
|
|
645
|
-
/**
|
|
726
|
+
/**
|
|
727
|
+
* List of range buckets. During aggregation each entity will be placed in the first bucket its value falls into based on the provided range bounds.
|
|
728
|
+
* @maxSize 1000
|
|
729
|
+
*/
|
|
646
730
|
buckets?: RangeBucket[];
|
|
647
731
|
}
|
|
648
732
|
export interface ScalarAggregation {
|
|
@@ -672,7 +756,10 @@ export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
|
672
756
|
scalar?: ScalarAggregation;
|
|
673
757
|
/** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */
|
|
674
758
|
dateHistogram?: DateHistogramAggregation;
|
|
675
|
-
/**
|
|
759
|
+
/**
|
|
760
|
+
* Aggregation name displayed in the return.
|
|
761
|
+
* @maxLength 1000
|
|
762
|
+
*/
|
|
676
763
|
name?: string | null;
|
|
677
764
|
/** Type of aggregation to perform. */
|
|
678
765
|
type?: NestedAggregationType;
|
|
@@ -705,13 +792,20 @@ export declare enum AggregationType {
|
|
|
705
792
|
NESTED = "NESTED"
|
|
706
793
|
}
|
|
707
794
|
export interface NestedAggregation {
|
|
708
|
-
/**
|
|
795
|
+
/**
|
|
796
|
+
* Flattened list of aggregations, where each aggregation is nested within the previous one.
|
|
797
|
+
* @minSize 2
|
|
798
|
+
* @maxSize 10
|
|
799
|
+
*/
|
|
709
800
|
nestedAggregations?: NestedAggregationItem[];
|
|
710
801
|
}
|
|
711
802
|
export interface SearchDetails {
|
|
712
803
|
/** Boolean search mode. Defines how separate search terms in the `expression` are combined. */
|
|
713
804
|
mode?: Mode;
|
|
714
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* Search term or expression.
|
|
807
|
+
* @maxLength 100
|
|
808
|
+
*/
|
|
715
809
|
expression?: string | null;
|
|
716
810
|
/**
|
|
717
811
|
* Fields to search in.
|
|
@@ -719,6 +813,8 @@ export interface SearchDetails {
|
|
|
719
813
|
* Searchable fields are `reservee.firstName`, `reservee.lastName`, `reservee.phone`, and `reservee.email`.
|
|
720
814
|
*
|
|
721
815
|
* If the array is empty, all fields are searched.
|
|
816
|
+
* @maxSize 100
|
|
817
|
+
* @maxLength 1000
|
|
722
818
|
*/
|
|
723
819
|
fields?: string[];
|
|
724
820
|
/**
|
|
@@ -742,11 +838,17 @@ export interface SearchReservationsResponse {
|
|
|
742
838
|
aggregationData?: AggregationData;
|
|
743
839
|
}
|
|
744
840
|
export interface AggregationData {
|
|
745
|
-
/**
|
|
841
|
+
/**
|
|
842
|
+
* List of the aggregated data results.
|
|
843
|
+
* @maxSize 1000
|
|
844
|
+
*/
|
|
746
845
|
results?: AggregationResults[];
|
|
747
846
|
}
|
|
748
847
|
export interface ValueAggregationResult {
|
|
749
|
-
/**
|
|
848
|
+
/**
|
|
849
|
+
* Value of the field
|
|
850
|
+
* @maxLength 1000
|
|
851
|
+
*/
|
|
750
852
|
value?: string;
|
|
751
853
|
/** Count of entities with this value */
|
|
752
854
|
count?: number;
|
|
@@ -766,11 +868,17 @@ export interface NestedAggregationResults extends NestedAggregationResultsResult
|
|
|
766
868
|
ranges?: RangeResults;
|
|
767
869
|
/** List of the scalar aggregation results. */
|
|
768
870
|
scalar?: AggregationResultsScalarResult;
|
|
769
|
-
/**
|
|
871
|
+
/**
|
|
872
|
+
* Aggregation name defined in the request.
|
|
873
|
+
* @maxLength 1000
|
|
874
|
+
*/
|
|
770
875
|
name?: string;
|
|
771
876
|
/** Type of aggregation performed. */
|
|
772
877
|
type?: AggregationType;
|
|
773
|
-
/**
|
|
878
|
+
/**
|
|
879
|
+
* Field the data was aggregated by.
|
|
880
|
+
* @maxLength 1000
|
|
881
|
+
*/
|
|
774
882
|
fieldPath?: string;
|
|
775
883
|
}
|
|
776
884
|
/** @oneof */
|
|
@@ -783,11 +891,17 @@ export interface NestedAggregationResultsResultOneOf {
|
|
|
783
891
|
scalar?: AggregationResultsScalarResult;
|
|
784
892
|
}
|
|
785
893
|
export interface ValueResults {
|
|
786
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* List of value aggregations.
|
|
896
|
+
* @maxSize 1000
|
|
897
|
+
*/
|
|
787
898
|
results?: ValueAggregationResult[];
|
|
788
899
|
}
|
|
789
900
|
export interface RangeResults {
|
|
790
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* List of ranges returned in same order as requested.
|
|
903
|
+
* @maxSize 1000
|
|
904
|
+
*/
|
|
791
905
|
results?: RangeAggregationResult[];
|
|
792
906
|
}
|
|
793
907
|
export interface AggregationResultsScalarResult {
|
|
@@ -797,11 +911,15 @@ export interface AggregationResultsScalarResult {
|
|
|
797
911
|
value?: number;
|
|
798
912
|
}
|
|
799
913
|
export interface NestedValueAggregationResult {
|
|
914
|
+
/** @maxLength 1000 */
|
|
800
915
|
value?: string;
|
|
801
916
|
nestedResults?: NestedAggregationResults;
|
|
802
917
|
}
|
|
803
918
|
export interface ValueResult {
|
|
804
|
-
/**
|
|
919
|
+
/**
|
|
920
|
+
* Value of the field.
|
|
921
|
+
* @maxLength 1000
|
|
922
|
+
*/
|
|
805
923
|
value?: string;
|
|
806
924
|
/** Count of entities with this value. */
|
|
807
925
|
count?: number | null;
|
|
@@ -844,17 +962,24 @@ export interface Results {
|
|
|
844
962
|
results?: Record<string, NestedResultValue>;
|
|
845
963
|
}
|
|
846
964
|
export interface DateHistogramResult {
|
|
847
|
-
/**
|
|
965
|
+
/**
|
|
966
|
+
* Date in ISO 8601 format.
|
|
967
|
+
* @maxLength 100
|
|
968
|
+
*/
|
|
848
969
|
value?: string;
|
|
849
970
|
/** Count of entities in the interval. */
|
|
850
971
|
count?: number;
|
|
851
972
|
}
|
|
852
973
|
/** deprecated */
|
|
853
974
|
export interface GroupByValueResults {
|
|
975
|
+
/** @maxSize 1000 */
|
|
854
976
|
results?: NestedValueAggregationResult[];
|
|
855
977
|
}
|
|
856
978
|
export interface DateHistogramResults {
|
|
857
|
-
/**
|
|
979
|
+
/**
|
|
980
|
+
* List of date histogram aggregations.
|
|
981
|
+
* @maxSize 200
|
|
982
|
+
*/
|
|
858
983
|
results?: DateHistogramResult[];
|
|
859
984
|
}
|
|
860
985
|
/**
|
|
@@ -862,7 +987,10 @@ export interface DateHistogramResults {
|
|
|
862
987
|
* Aggregations in the resulting array are keyed by the requested aggregation `name`.
|
|
863
988
|
*/
|
|
864
989
|
export interface NestedResults {
|
|
865
|
-
/**
|
|
990
|
+
/**
|
|
991
|
+
* List of nested aggregation results.
|
|
992
|
+
* @maxSize 1000
|
|
993
|
+
*/
|
|
866
994
|
results?: Results[];
|
|
867
995
|
}
|
|
868
996
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
@@ -878,11 +1006,17 @@ export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
|
878
1006
|
dateHistogram?: DateHistogramResults;
|
|
879
1007
|
/** Nested aggregation results. */
|
|
880
1008
|
nested?: NestedResults;
|
|
881
|
-
/**
|
|
1009
|
+
/**
|
|
1010
|
+
* Aggregation name defined in the request.
|
|
1011
|
+
* @maxLength 1000
|
|
1012
|
+
*/
|
|
882
1013
|
name?: string;
|
|
883
1014
|
/** Type of aggregation that was performed. */
|
|
884
1015
|
type?: AggregationType;
|
|
885
|
-
/**
|
|
1016
|
+
/**
|
|
1017
|
+
* Field the data was aggregated by.
|
|
1018
|
+
* @maxLength 1000
|
|
1019
|
+
*/
|
|
886
1020
|
fieldPath?: string;
|
|
887
1021
|
}
|
|
888
1022
|
/** @oneof */
|
|
@@ -975,7 +1109,10 @@ export interface ActionEvent {
|
|
|
975
1109
|
export interface Empty {
|
|
976
1110
|
}
|
|
977
1111
|
export interface RemoveReservationMigrationNotesRequest {
|
|
978
|
-
/**
|
|
1112
|
+
/**
|
|
1113
|
+
* Reservation ID.
|
|
1114
|
+
* @format GUID
|
|
1115
|
+
*/
|
|
979
1116
|
reservationId?: string;
|
|
980
1117
|
/** Revision. */
|
|
981
1118
|
revision?: string;
|
|
@@ -1010,9 +1147,15 @@ export interface RawHttpResponse {
|
|
|
1010
1147
|
headers?: HeadersEntry[];
|
|
1011
1148
|
}
|
|
1012
1149
|
export interface MessageEnvelope {
|
|
1013
|
-
/**
|
|
1150
|
+
/**
|
|
1151
|
+
* App instance ID.
|
|
1152
|
+
* @format GUID
|
|
1153
|
+
*/
|
|
1014
1154
|
instanceId?: string | null;
|
|
1015
|
-
/**
|
|
1155
|
+
/**
|
|
1156
|
+
* Event type.
|
|
1157
|
+
* @maxLength 150
|
|
1158
|
+
*/
|
|
1016
1159
|
eventType?: string;
|
|
1017
1160
|
/** The identification type and identity data. */
|
|
1018
1161
|
identity?: IdentificationData;
|
|
@@ -1020,26 +1163,50 @@ export interface MessageEnvelope {
|
|
|
1020
1163
|
data?: string;
|
|
1021
1164
|
}
|
|
1022
1165
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1023
|
-
/**
|
|
1166
|
+
/**
|
|
1167
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1168
|
+
* @format GUID
|
|
1169
|
+
*/
|
|
1024
1170
|
anonymousVisitorId?: string;
|
|
1025
|
-
/**
|
|
1171
|
+
/**
|
|
1172
|
+
* ID of a site visitor that has logged in to the site.
|
|
1173
|
+
* @format GUID
|
|
1174
|
+
*/
|
|
1026
1175
|
memberId?: string;
|
|
1027
|
-
/**
|
|
1176
|
+
/**
|
|
1177
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1178
|
+
* @format GUID
|
|
1179
|
+
*/
|
|
1028
1180
|
wixUserId?: string;
|
|
1029
|
-
/**
|
|
1181
|
+
/**
|
|
1182
|
+
* ID of an app.
|
|
1183
|
+
* @format GUID
|
|
1184
|
+
*/
|
|
1030
1185
|
appId?: string;
|
|
1031
1186
|
/** @readonly */
|
|
1032
1187
|
identityType?: WebhookIdentityType;
|
|
1033
1188
|
}
|
|
1034
1189
|
/** @oneof */
|
|
1035
1190
|
export interface IdentificationDataIdOneOf {
|
|
1036
|
-
/**
|
|
1191
|
+
/**
|
|
1192
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1193
|
+
* @format GUID
|
|
1194
|
+
*/
|
|
1037
1195
|
anonymousVisitorId?: string;
|
|
1038
|
-
/**
|
|
1196
|
+
/**
|
|
1197
|
+
* ID of a site visitor that has logged in to the site.
|
|
1198
|
+
* @format GUID
|
|
1199
|
+
*/
|
|
1039
1200
|
memberId?: string;
|
|
1040
|
-
/**
|
|
1201
|
+
/**
|
|
1202
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1203
|
+
* @format GUID
|
|
1204
|
+
*/
|
|
1041
1205
|
wixUserId?: string;
|
|
1042
|
-
/**
|
|
1206
|
+
/**
|
|
1207
|
+
* ID of an app.
|
|
1208
|
+
* @format GUID
|
|
1209
|
+
*/
|
|
1043
1210
|
appId?: string;
|
|
1044
1211
|
}
|
|
1045
1212
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-reservations.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-reservations.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-reservations.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-reservations.types.ts"],"names":[],"mappings":";;;AAyFA,IAAY,MAqBX;AArBD,WAAY,MAAM;IAChB,oCAAoC;IACpC,6BAAmB,CAAA;IACnB,0WAA0W;IAC1W,uBAAa,CAAA;IACb,oCAAoC;IACpC,+BAAqB,CAAA;IACrB,mCAAmC;IACnC,+BAAqB,CAAA;IACrB,8CAA8C;IAC9C,+BAAqB,CAAA;IACrB,yDAAyD;IACzD,6BAAmB,CAAA;IACnB,qDAAqD;IACrD,2BAAiB,CAAA;IACjB,4MAA4M;IAC5M,iCAAuB,CAAA;IACvB,+FAA+F;IAC/F,+BAAqB,CAAA;IACrB,0ZAA0Z;IAC1Z,6CAAmC,CAAA;AACrC,CAAC,EArBW,MAAM,sBAAN,MAAM,QAqBjB;AAED,IAAY,MASX;AATD,WAAY,MAAM;IAChB,oCAAoC;IACpC,6BAAmB,CAAA;IACnB,kHAAkH;IAClH,6BAAmB,CAAA;IACnB,yDAAyD;IACzD,2BAAiB,CAAA;IACjB,iIAAiI;IACjI,6BAAmB,CAAA;AACrB,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AA0GD,IAAY,aAeX;AAfD,WAAY,aAAa;IACvB,gCAAgC;IAChC,oCAAmB,CAAA;IACnB,uCAAuC;IACvC,8BAAa,CAAA;IACb,mCAAmC;IACnC,sCAAqB,CAAA;IACrB,0DAA0D;IAC1D,8BAAa,CAAA;IACb,kHAAkH;IAClH,0DAAyC,CAAA;IACzC,wGAAwG;IACxG,kDAAiC,CAAA;IACjC,8DAA8D;IAC9D,kDAAiC,CAAA;AACnC,CAAC,EAfW,aAAa,6BAAb,aAAa,QAexB;AA4ED,IAAY,4BAWX;AAXD,WAAY,4BAA4B;IACtC,+BAA+B;IAC/B,mDAAmB,CAAA;IACnB,6DAA6D;IAC7D,qDAAqB,CAAA;IACrB,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