@wix/table-reservations 1.0.50 → 1.0.52

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 (45) hide show
  1. package/build/cjs/src/table-reservations-v1-reservation-location.http.d.ts +10 -2
  2. package/build/cjs/src/table-reservations-v1-reservation-location.http.js +10 -2
  3. package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +1 -1
  4. package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +19 -7
  5. package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +1 -1
  6. package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +42 -14
  7. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +4 -0
  8. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  9. package/build/cjs/src/table-reservations-v1-reservation.http.d.ts +1 -2
  10. package/build/cjs/src/table-reservations-v1-reservation.http.js +1 -96
  11. package/build/cjs/src/table-reservations-v1-reservation.http.js.map +1 -1
  12. package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +0 -1
  13. package/build/cjs/src/table-reservations-v1-reservation.meta.js +1 -20
  14. package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +1 -1
  15. package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +2 -15
  16. package/build/cjs/src/table-reservations-v1-reservation.public.js +1 -7
  17. package/build/cjs/src/table-reservations-v1-reservation.public.js.map +1 -1
  18. package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +47 -91
  19. package/build/cjs/src/table-reservations-v1-reservation.types.js.map +1 -1
  20. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +74 -140
  21. package/build/cjs/src/table-reservations-v1-reservation.universal.js +1 -55
  22. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -1
  23. package/build/es/src/table-reservations-v1-reservation-location.http.d.ts +10 -2
  24. package/build/es/src/table-reservations-v1-reservation-location.http.js +10 -2
  25. package/build/es/src/table-reservations-v1-reservation-location.http.js.map +1 -1
  26. package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +19 -7
  27. package/build/es/src/table-reservations-v1-reservation-location.types.js.map +1 -1
  28. package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +42 -14
  29. package/build/es/src/table-reservations-v1-reservation-location.universal.js +4 -0
  30. package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  31. package/build/es/src/table-reservations-v1-reservation.http.d.ts +1 -2
  32. package/build/es/src/table-reservations-v1-reservation.http.js +0 -94
  33. package/build/es/src/table-reservations-v1-reservation.http.js.map +1 -1
  34. package/build/es/src/table-reservations-v1-reservation.meta.d.ts +0 -1
  35. package/build/es/src/table-reservations-v1-reservation.meta.js +0 -18
  36. package/build/es/src/table-reservations-v1-reservation.meta.js.map +1 -1
  37. package/build/es/src/table-reservations-v1-reservation.public.d.ts +2 -15
  38. package/build/es/src/table-reservations-v1-reservation.public.js +1 -6
  39. package/build/es/src/table-reservations-v1-reservation.public.js.map +1 -1
  40. package/build/es/src/table-reservations-v1-reservation.types.d.ts +47 -91
  41. package/build/es/src/table-reservations-v1-reservation.types.js.map +1 -1
  42. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +74 -140
  43. package/build/es/src/table-reservations-v1-reservation.universal.js +0 -53
  44. package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -1,37 +1,24 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { Reservation, UpdateReservation, HeldReservationDetails, Reservee, CursorSearch, CancelReservationOptions, CreateReservationOptions, GetReservationOptions, ListReservationsOptions, UpdateReservationOptions } from './table-reservations-v1-reservation.universal';
2
+ import { Reservation, UpdateReservation, HeldReservationDetails, Reservee, CancelReservationOptions, CreateReservationOptions, GetReservationOptions, ListReservationsOptions, UpdateReservationOptions } from './table-reservations-v1-reservation.universal';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function createReservation(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions | undefined) => Promise<Reservation & {
7
7
  status: import("./table-reservations-v1-reservation.universal").Status;
8
8
  source: import("./table-reservations-v1-reservation.universal").Source;
9
- tablesWithReservationConflicts: {
10
- tableId: string;
11
- reservationIds: string[];
12
- }[];
13
9
  }>;
14
10
  export declare function getReservation(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions | undefined) => Promise<Reservation & {
15
11
  status: import("./table-reservations-v1-reservation.universal").Status;
16
12
  source: import("./table-reservations-v1-reservation.universal").Source;
17
- tablesWithReservationConflicts: {
18
- tableId: string;
19
- reservationIds: string[];
20
- }[];
21
13
  }>;
22
14
  export declare function updateReservation(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined) => Promise<Reservation & {
23
15
  status: import("./table-reservations-v1-reservation.universal").Status;
24
16
  source: import("./table-reservations-v1-reservation.universal").Source;
25
- tablesWithReservationConflicts: {
26
- tableId: string;
27
- reservationIds: string[];
28
- }[];
29
17
  }>;
30
18
  export declare function createHeldReservation(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<import("./table-reservations-v1-reservation.universal").CreateHeldReservationResponse & import("./table-reservations-v1-reservation.universal").CreateHeldReservationResponseNonNullableFields>;
31
19
  export declare function reserveReservation(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<import("./table-reservations-v1-reservation.universal").ReserveReservationResponse & import("./table-reservations-v1-reservation.universal").ReserveReservationResponseNonNullableFields>;
32
20
  export declare function cancelReservation(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined) => Promise<import("./table-reservations-v1-reservation.universal").CancelReservationResponse & import("./table-reservations-v1-reservation.universal").CancelReservationResponseNonNullableFields>;
33
21
  export declare function listReservations(httpClient: HttpClient): (options?: ListReservationsOptions | undefined) => Promise<import("./table-reservations-v1-reservation.universal").ListReservationsResponse & import("./table-reservations-v1-reservation.universal").ListReservationsResponseNonNullableFields>;
34
22
  export declare function queryReservations(httpClient: HttpClient): () => import("./table-reservations-v1-reservation.universal").ReservationsQueryBuilder;
35
- export declare function searchReservations(httpClient: HttpClient): (search: CursorSearch) => Promise<import("./table-reservations-v1-reservation.universal").SearchReservationsResponse & import("./table-reservations-v1-reservation.universal").SearchReservationsResponseNonNullableFields>;
36
23
  export { Status, Source, TableCombinationConflictType, Type, Set, SortOrder, SortType, SortDirection, MissingValues, ScalarType, NestedAggregationType, Interval, AggregationType, Mode, } from './table-reservations-v1-reservation.universal';
37
- export { Reservation, Details, Reservee, ReservedBy, MigrationNote, TableWithReservationConflicts, CreateReservationRequest, CreateReservationResponse, ReservationDetailsConflicts, TableCombinationConflict, ReservationLocationConflict, GetReservationRequest, GetReservationResponse, UpdateReservationRequest, UpdateReservationResponse, ReservationDataUpdated, CreateHeldReservationRequest, HeldReservationDetails, CreateHeldReservationResponse, ReserveReservationRequest, ReserveReservationResponse, ReservationReserved, CancelReservationRequest, CancelReservationResponse, ReservationCanceled, DeleteReservationRequest, DeleteReservationResponse, ListReservationsRequest, CursorPaging, Sorting, ListReservationsResponse, CursorPagingMetadata, Cursors, QueryReservationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryReservationsResponse, SearchReservationsRequest, CursorSearch, CursorSearchPagingMethodOneOf, Aggregation, AggregationKindOneOf, RangeBucket, IncludeMissingValuesOptions, ValueAggregation, ValueAggregationOptionsOneOf, RangeAggregation, ScalarAggregation, DateHistogramAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregation, GroupByAggregation, GroupByAggregationKindOneOf, SearchDetails, SearchReservationsResponse, AggregationData, ValueAggregationResult, RangeAggregationResult, NestedAggregationResults, NestedAggregationResultsResultOneOf, ValueResults, RangeResults, ScalarResult, NestedValueAggregationResult, ValueResult, RangeResult, NestedResultsScalarResult, NestedResultValue, NestedResultValueResultOneOf, Results, DateHistogramResult, GroupByValueResults, DateHistogramResults, NestedResults, AggregationResults, AggregationResultsResultOneOf, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, CreateReservationResponseNonNullableFields, GetReservationResponseNonNullableFields, UpdateReservationResponseNonNullableFields, CreateHeldReservationResponseNonNullableFields, ReserveReservationResponseNonNullableFields, CancelReservationResponseNonNullableFields, ListReservationsResponseNonNullableFields, QueryReservationsResponseNonNullableFields, SearchReservationsResponseNonNullableFields, CreateReservationOptions, GetReservationOptions, UpdateReservation, UpdateReservationOptions, CancelReservationOptions, ListReservationsOptions, ReservationsQueryResult, ReservationsQueryBuilder, } from './table-reservations-v1-reservation.universal';
24
+ export { Reservation, Details, Reservee, ReservedBy, MigrationNote, TableWithReservationConflicts, CreateReservationRequest, CreateReservationResponse, ReservationDetailsConflicts, TableCombinationConflict, ReservationLocationConflict, GetReservationRequest, GetReservationResponse, UpdateReservationRequest, UpdateReservationResponse, ReservationDataUpdated, CreateHeldReservationRequest, HeldReservationDetails, CreateHeldReservationResponse, ReserveReservationRequest, ReserveReservationResponse, ReservationReserved, CancelReservationRequest, CancelReservationResponse, ReservationCanceled, DeleteReservationRequest, DeleteReservationResponse, ListReservationsRequest, CursorPaging, Sorting, ListReservationsResponse, CursorPagingMetadata, Cursors, QueryReservationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryReservationsResponse, SearchReservationsRequest, CursorSearch, CursorSearchPagingMethodOneOf, Aggregation, AggregationKindOneOf, RangeBucket, IncludeMissingValuesOptions, ValueAggregation, ValueAggregationOptionsOneOf, RangeAggregation, ScalarAggregation, DateHistogramAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregation, GroupByAggregation, GroupByAggregationKindOneOf, SearchDetails, SearchReservationsResponse, AggregationData, ValueAggregationResult, RangeAggregationResult, NestedAggregationResults, NestedAggregationResultsResultOneOf, ValueResults, RangeResults, ScalarResult, NestedValueAggregationResult, ValueResult, RangeResult, NestedResultsScalarResult, NestedResultValue, NestedResultValueResultOneOf, Results, DateHistogramResult, GroupByValueResults, DateHistogramResults, NestedResults, AggregationResults, AggregationResultsResultOneOf, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, RemoveReservationMigrationNotesRequest, RemoveReservationMigrationNotesResponse, CreateReservationResponseNonNullableFields, GetReservationResponseNonNullableFields, UpdateReservationResponseNonNullableFields, CreateHeldReservationResponseNonNullableFields, ReserveReservationResponseNonNullableFields, CancelReservationResponseNonNullableFields, ListReservationsResponseNonNullableFields, QueryReservationsResponseNonNullableFields, CreateReservationOptions, GetReservationOptions, UpdateReservation, UpdateReservationOptions, CancelReservationOptions, ListReservationsOptions, ReservationsQueryResult, ReservationsQueryBuilder, } from './table-reservations-v1-reservation.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = exports.searchReservations = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.__metadata = void 0;
3
+ exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.__metadata = void 0;
4
4
  const table_reservations_v1_reservation_universal_1 = require("./table-reservations-v1-reservation.universal");
5
5
  exports.__metadata = { PACKAGE_NAME: '@wix/table-reservations' };
6
6
  function createReservation(httpClient) {
@@ -51,12 +51,6 @@ function queryReservations(httpClient) {
51
51
  { httpClient });
52
52
  }
53
53
  exports.queryReservations = queryReservations;
54
- function searchReservations(httpClient) {
55
- return (search) => (0, table_reservations_v1_reservation_universal_1.searchReservations)(search,
56
- // @ts-ignore
57
- { httpClient });
58
- }
59
- exports.searchReservations = searchReservations;
60
54
  var table_reservations_v1_reservation_universal_2 = require("./table-reservations-v1-reservation.universal");
61
55
  Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_2.Status; } });
62
56
  Object.defineProperty(exports, "Source", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_2.Source; } });
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.public.ts"],"names":[],"mappings":";;;AACA,+GAoBuD;AAE1C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,IAAA,+DAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,aAAqB,EAAE,OAA+B,EAAE,EAAE,CAChE,IAAA,4DAAuB,EACrB,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,GAAkB,EAClB,WAA8B,EAC9B,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,GAAG,EACH,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAED,SAAgB,qBAAqB,CAAC,UAAsB;IAC1D,OAAO,CAAC,kBAA0C,EAAE,EAAE,CACpD,IAA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aAAa,OAAA;AACb,4IAAA,aAAa,OAAA;AACb,yIAAA,UAAU,OAAA;AACV,oJAAA,qBAAqB,OAAA;AACrB,uIAAA,QAAQ,OAAA;AACR,8IAAA,eAAe,OAAA;AACf,mIAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"table-reservations-v1-reservation.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.public.ts"],"names":[],"mappings":";;;AACA,+GAkBuD;AAE1C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,IAAA,+DAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,aAAqB,EAAE,OAA+B,EAAE,EAAE,CAChE,IAAA,4DAAuB,EACrB,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,GAAkB,EAClB,WAA8B,EAC9B,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,GAAG,EACH,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAED,SAAgB,qBAAqB,CAAC,UAAsB;IAC1D,OAAO,CAAC,kBAA0C,EAAE,EAAE,CACpD,IAAA,mEAA8B,EAC5B,kBAAkB;IAClB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sDAOC;AAED,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,aAAqB,EAAE,QAAkB,EAAE,QAAuB,EAAE,EAAE,CAC5E,IAAA,gEAA2B,EACzB,aAAa,EACb,QAAQ,EACR,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,gDASC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,aAAqB,EACrB,QAAuB,EACvB,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,aAAa,EACb,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,OAAiC,EAAE,EAAE,CAC3C,IAAA,8DAAyB,EACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,GAAG,EAAE,CACV,IAAA,+DAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,8CAMC;AAED,6GAeuD;AAdrD,qIAAA,MAAM,OAAA;AACN,qIAAA,MAAM,OAAA;AACN,2JAAA,4BAA4B,OAAA;AAC5B,mIAAA,IAAI,OAAA;AACJ,kIAAA,GAAG,OAAA;AACH,wIAAA,SAAS,OAAA;AACT,uIAAA,QAAQ,OAAA;AACR,4IAAA,aAAa,OAAA;AACb,4IAAA,aAAa,OAAA;AACb,yIAAA,UAAU,OAAA;AACV,oJAAA,qBAAqB,OAAA;AACrB,uIAAA,QAAQ,OAAA;AACR,8IAAA,eAAe,OAAA;AACf,mIAAA,IAAI,OAAA"}
@@ -66,12 +66,6 @@ export interface Reservation {
66
66
  revision?: string | null;
67
67
  /** The reason the reservation was declined. */
68
68
  declineReason?: string | null;
69
- /**
70
- * List of reserved tables with corresponding reservation ids. It includes only info of tables from details.tableIds
71
- * if that tables are used in other reservations. It's a read only field, that is calculated on the server side.
72
- * @readonly
73
- */
74
- tablesWithReservationConflicts?: TableWithReservationConflicts[];
75
69
  }
76
70
  export declare enum Status {
77
71
  UNKNOWN = "UNKNOWN",
@@ -171,9 +165,23 @@ export interface TableWithReservationConflicts {
171
165
  export interface CreateReservationRequest {
172
166
  /** Reservation details. */
173
167
  reservation: Reservation;
174
- /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
168
+ /**
169
+ * Ignore table combination conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
170
+ *
171
+ * Possible values:
172
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
173
+ * * `"TOO_BIG"`: The party is too big for the selected table.
174
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
175
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
176
+ */
175
177
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
176
- /** Ignore reservation location conflicts. This ensures 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. */
178
+ /**
179
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
180
+ *
181
+ * Possible values:
182
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
183
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
184
+ */
177
185
  ignoreReservationLocationConflicts?: Type[];
178
186
  }
179
187
  export declare enum TableCombinationConflictType {
@@ -212,7 +220,11 @@ export interface GetReservationRequest {
212
220
  /**
213
221
  * Array of named, predefined sets of projected fields to be returned.
214
222
  *
215
- * Supported values: `PUBLIC`, `FULL`.
223
+ * - `PUBLIC`: Returns `id`, `status`, `details.reservationLocationId`, `details.startDate`, `details.endDate`, `details.partySize`, `createdDate`, `revision`, `declineReason`.
224
+ * `configuration.reservationForm.customFieldDefinitions`, `configuration.reservationForm.lastNameRequired`, `configuration.reservationForm.emailRequired`, `configuration.reservationForm.emailMarketingCheckbox`.
225
+ * - `FULL`: Returns all fields.
226
+ *
227
+ * Default: If `fields` is omitted from the request, `PUBLIC`.
216
228
  */
217
229
  fieldsets?: Set[];
218
230
  }
@@ -227,9 +239,23 @@ export interface GetReservationResponse {
227
239
  export interface UpdateReservationRequest {
228
240
  /** Reservation information to update. */
229
241
  reservation: Reservation;
230
- /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
242
+ /**
243
+ * 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.
244
+ *
245
+ * Possible values:
246
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
247
+ * * `"TOO_BIG"`: The party is too big for the selected table.
248
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
249
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
250
+ */
231
251
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
232
- /** Ignored reservation location conflicts. This ensures 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. */
252
+ /**
253
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
254
+ *
255
+ * Possible values:
256
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
257
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
258
+ */
233
259
  ignoreReservationLocationConflicts?: Type[];
234
260
  }
235
261
  export interface UpdateReservationResponse {
@@ -416,7 +442,7 @@ export interface QueryReservationsResponse {
416
442
  }
417
443
  export interface SearchReservationsRequest {
418
444
  /** Search query. */
419
- search: CursorSearch;
445
+ search?: CursorSearch;
420
446
  }
421
447
  export interface CursorSearch extends CursorSearchPagingMethodOneOf {
422
448
  /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
@@ -756,6 +782,15 @@ export interface ActionEvent {
756
782
  }
757
783
  export interface Empty {
758
784
  }
785
+ export interface RemoveReservationMigrationNotesRequest {
786
+ /** Reservation ID. */
787
+ reservationId?: string;
788
+ /** Revision. */
789
+ revision?: string;
790
+ }
791
+ export interface RemoveReservationMigrationNotesResponse {
792
+ reservation?: Reservation;
793
+ }
759
794
  export interface CreateReservationResponseNonNullableFields {
760
795
  reservation?: {
761
796
  status: Status;
@@ -844,82 +879,3 @@ export interface QueryReservationsResponseNonNullableFields {
844
879
  }[];
845
880
  }[];
846
881
  }
847
- export interface SearchReservationsResponseNonNullableFields {
848
- reservations: {
849
- status: Status;
850
- source: Source;
851
- migrationNotes: MigrationNote[];
852
- tablesWithReservationConflicts: {
853
- tableId: string;
854
- reservationIds: string[];
855
- }[];
856
- }[];
857
- aggregationData?: {
858
- results: {
859
- values?: {
860
- results: {
861
- value: string;
862
- count: number;
863
- }[];
864
- };
865
- ranges?: {
866
- results: {
867
- count: number;
868
- }[];
869
- };
870
- scalar?: {
871
- type: ScalarType;
872
- value: number;
873
- };
874
- groupedByValue?: {
875
- results: {
876
- value: string;
877
- nestedResults?: {
878
- values?: {
879
- results: {
880
- value: string;
881
- count: number;
882
- }[];
883
- };
884
- ranges?: {
885
- results: {
886
- count: number;
887
- }[];
888
- };
889
- scalar?: {
890
- type: ScalarType;
891
- value: number;
892
- };
893
- name: string;
894
- type: AggregationType;
895
- fieldPath: string;
896
- };
897
- }[];
898
- };
899
- dateHistogram?: {
900
- results: {
901
- value: string;
902
- count: number;
903
- }[];
904
- };
905
- nested?: {
906
- results: {
907
- results?: {
908
- value?: {
909
- value: string;
910
- };
911
- scalar?: {
912
- value: number;
913
- };
914
- dateHistogram?: {
915
- value: string;
916
- };
917
- };
918
- }[];
919
- };
920
- name: string;
921
- type: AggregationType;
922
- fieldPath: string;
923
- }[];
924
- };
925
- }
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.types.ts"],"names":[],"mappings":";;;AA4EA,IAAY,MAkBX;AAlBD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2GAA2G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d,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKf"}
1
+ {"version":3,"file":"table-reservations-v1-reservation.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.types.ts"],"names":[],"mappings":";;;AAsEA,IAAY,MAkBX;AAlBD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2GAA2G;IAC3G,uBAAa,CAAA;IACb,yCAAyC;IACzC,+BAAqB,CAAA;IACrB,yCAAyC;IACzC,+BAAqB,CAAA;IACrB,iDAAiD;IACjD,+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,GAAN,cAAM,KAAN,cAAM,QAkBjB;AAED,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,GAAN,cAAM,KAAN,cAAM,QAQjB;AAgGD,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,GAA5B,oCAA4B,KAA5B,oCAA4B,QAMvC;AAED,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,qCAA6B,CAAA;IAC7B,mCAA2B,CAAA;AAC7B,CAAC,EAJW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAIf;AAuCD,IAAY,GAGX;AAHD,WAAY,GAAG;IACb,wBAAiB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R,gBAAQ,KAAR,gBAAQ,QASnB;AAoBD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,oDAAiC,CAAA;IACjC,oCAAiB,CAAA;AACnB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AA4BD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKf"}
@@ -75,12 +75,6 @@ export interface Reservation {
75
75
  revision?: string | null;
76
76
  /** The reason the reservation was declined. */
77
77
  declineReason?: string | null;
78
- /**
79
- * List of reserved tables with corresponding reservation ids. It includes only info of tables from details.tableIds
80
- * if that tables are used in other reservations. It's a read only field, that is calculated on the server side.
81
- * @readonly
82
- */
83
- tablesWithReservationConflicts?: TableWithReservationConflicts[];
84
78
  }
85
79
  export declare enum Status {
86
80
  UNKNOWN = "UNKNOWN",
@@ -180,9 +174,23 @@ export interface TableWithReservationConflicts {
180
174
  export interface CreateReservationRequest {
181
175
  /** Reservation details. */
182
176
  reservation: Reservation;
183
- /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
177
+ /**
178
+ * Ignore table combination conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
179
+ *
180
+ * Possible values:
181
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
182
+ * * `"TOO_BIG"`: The party is too big for the selected table.
183
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
184
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
185
+ */
184
186
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
185
- /** Ignore reservation location conflicts. This ensures 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. */
187
+ /**
188
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
189
+ *
190
+ * Possible values:
191
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
192
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
193
+ */
186
194
  ignoreReservationLocationConflicts?: Type[];
187
195
  }
188
196
  export declare enum TableCombinationConflictType {
@@ -238,9 +246,23 @@ export interface GetReservationResponse {
238
246
  export interface UpdateReservationRequest {
239
247
  /** Reservation information to update. */
240
248
  reservation: Reservation;
241
- /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
249
+ /**
250
+ * 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.
251
+ *
252
+ * Possible values:
253
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
254
+ * * `"TOO_BIG"`: The party is too big for the selected table.
255
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
256
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
257
+ */
242
258
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
243
- /** Ignored reservation location conflicts. This ensures 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. */
259
+ /**
260
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
261
+ *
262
+ * Possible values:
263
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
264
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
265
+ */
244
266
  ignoreReservationLocationConflicts?: Type[];
245
267
  }
246
268
  export interface UpdateReservationResponse {
@@ -427,7 +449,7 @@ export interface QueryReservationsResponse {
427
449
  }
428
450
  export interface SearchReservationsRequest {
429
451
  /** Search query. */
430
- search: CursorSearch;
452
+ search?: CursorSearch;
431
453
  }
432
454
  export interface CursorSearch extends CursorSearchPagingMethodOneOf {
433
455
  /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
@@ -770,163 +792,62 @@ export interface ActionEvent {
770
792
  }
771
793
  export interface Empty {
772
794
  }
795
+ export interface RemoveReservationMigrationNotesRequest {
796
+ /** Reservation ID. */
797
+ reservationId?: string;
798
+ /** Revision. */
799
+ revision?: string;
800
+ }
801
+ export interface RemoveReservationMigrationNotesResponse {
802
+ reservation?: Reservation;
803
+ }
773
804
  export interface CreateReservationResponseNonNullableFields {
774
805
  reservation?: {
775
806
  status: Status;
776
807
  source: Source;
777
- tablesWithReservationConflicts: {
778
- tableId: string;
779
- reservationIds: string[];
780
- }[];
781
808
  };
782
809
  }
783
810
  export interface GetReservationResponseNonNullableFields {
784
811
  reservation?: {
785
812
  status: Status;
786
813
  source: Source;
787
- tablesWithReservationConflicts: {
788
- tableId: string;
789
- reservationIds: string[];
790
- }[];
791
814
  };
792
815
  }
793
816
  export interface UpdateReservationResponseNonNullableFields {
794
817
  reservation?: {
795
818
  status: Status;
796
819
  source: Source;
797
- tablesWithReservationConflicts: {
798
- tableId: string;
799
- reservationIds: string[];
800
- }[];
801
820
  };
802
821
  }
803
822
  export interface CreateHeldReservationResponseNonNullableFields {
804
823
  reservation?: {
805
824
  status: Status;
806
825
  source: Source;
807
- tablesWithReservationConflicts: {
808
- tableId: string;
809
- reservationIds: string[];
810
- }[];
811
826
  };
812
827
  }
813
828
  export interface ReserveReservationResponseNonNullableFields {
814
829
  reservation?: {
815
830
  status: Status;
816
831
  source: Source;
817
- tablesWithReservationConflicts: {
818
- tableId: string;
819
- reservationIds: string[];
820
- }[];
821
832
  };
822
833
  }
823
834
  export interface CancelReservationResponseNonNullableFields {
824
835
  reservation?: {
825
836
  status: Status;
826
837
  source: Source;
827
- tablesWithReservationConflicts: {
828
- tableId: string;
829
- reservationIds: string[];
830
- }[];
831
838
  };
832
839
  }
833
840
  export interface ListReservationsResponseNonNullableFields {
834
841
  reservations: {
835
842
  status: Status;
836
843
  source: Source;
837
- tablesWithReservationConflicts: {
838
- tableId: string;
839
- reservationIds: string[];
840
- }[];
841
844
  }[];
842
845
  }
843
846
  export interface QueryReservationsResponseNonNullableFields {
844
847
  reservations: {
845
848
  status: Status;
846
849
  source: Source;
847
- tablesWithReservationConflicts: {
848
- tableId: string;
849
- reservationIds: string[];
850
- }[];
851
- }[];
852
- }
853
- export interface SearchReservationsResponseNonNullableFields {
854
- reservations: {
855
- status: Status;
856
- source: Source;
857
- tablesWithReservationConflicts: {
858
- tableId: string;
859
- reservationIds: string[];
860
- }[];
861
850
  }[];
862
- aggregationData?: {
863
- results: {
864
- values?: {
865
- results: {
866
- value: string;
867
- count: number;
868
- }[];
869
- };
870
- ranges?: {
871
- results: {
872
- count: number;
873
- }[];
874
- };
875
- scalar?: {
876
- type: ScalarType;
877
- value: number;
878
- };
879
- groupedByValue?: {
880
- results: {
881
- value: string;
882
- nestedResults?: {
883
- values?: {
884
- results: {
885
- value: string;
886
- count: number;
887
- }[];
888
- };
889
- ranges?: {
890
- results: {
891
- count: number;
892
- }[];
893
- };
894
- scalar?: {
895
- type: ScalarType;
896
- value: number;
897
- };
898
- name: string;
899
- type: AggregationType;
900
- fieldPath: string;
901
- };
902
- }[];
903
- };
904
- dateHistogram?: {
905
- results: {
906
- value: string;
907
- count: number;
908
- }[];
909
- };
910
- nested?: {
911
- results: {
912
- results?: {
913
- value?: {
914
- value: string;
915
- };
916
- scalar?: {
917
- value: number;
918
- };
919
- dateHistogram?: {
920
- value: string;
921
- };
922
- };
923
- }[];
924
- };
925
- name: string;
926
- type: AggregationType;
927
- fieldPath: string;
928
- }[];
929
- };
930
851
  }
931
852
  /**
932
853
  * Creates a new reservation.
@@ -969,9 +890,23 @@ export interface SearchReservationsResponseNonNullableFields {
969
890
  */
970
891
  export declare function createReservation(reservation: Reservation, options?: CreateReservationOptions): Promise<Reservation & NonNullable<CreateReservationResponseNonNullableFields>['reservation']>;
971
892
  export interface CreateReservationOptions {
972
- /** Ignore table combination conflicts. This ensures that the reservation is created even if the required tables are already reserved. */
893
+ /**
894
+ * Ignore table combination conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
895
+ *
896
+ * Possible values:
897
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
898
+ * * `"TOO_BIG"`: The party is too big for the selected table.
899
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
900
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
901
+ */
973
902
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
974
- /** Ignore reservation location conflicts. This ensures 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. */
903
+ /**
904
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is created even if the given conflicts would normally prevent it.
905
+ *
906
+ * Possible values:
907
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
908
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
909
+ */
975
910
  ignoreReservationLocationConflicts?: Type[];
976
911
  }
977
912
  /**
@@ -1080,17 +1015,25 @@ export interface UpdateReservation {
1080
1015
  revision?: string | null;
1081
1016
  /** The reason the reservation was declined. */
1082
1017
  declineReason?: string | null;
1083
- /**
1084
- * List of reserved tables with corresponding reservation ids. It includes only info of tables from details.tableIds
1085
- * if that tables are used in other reservations. It's a read only field, that is calculated on the server side.
1086
- * @readonly
1087
- */
1088
- tablesWithReservationConflicts?: TableWithReservationConflicts[];
1089
1018
  }
1090
1019
  export interface UpdateReservationOptions {
1091
- /** Ignored table combination conflicts. This ensures that the reservation is updated even if the required tables are already reserved. */
1020
+ /**
1021
+ * 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.
1022
+ *
1023
+ * Possible values:
1024
+ * * `"RESERVED"`: One or more of the chosen tables are already reserved.
1025
+ * * `"TOO_BIG"`: The party is too big for the selected table.
1026
+ * * `"TOO_SMALL"`: The party is too small for the selected table.
1027
+ * * `"OFFLINE_ONLY"`: The restaurant does not allow online reservations.
1028
+ */
1092
1029
  ignoreTableCombinationConflicts?: TableCombinationConflictType[];
1093
- /** Ignored reservation location conflicts. This ensures 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. */
1030
+ /**
1031
+ * Ignored reservation location conflicts of the types included in the array. This ensures that the reservation is updated even if the given conflicts would normally prevent it.
1032
+ *
1033
+ * Possible values:
1034
+ * * `"PARTY_PACING"`: The restaurant cannot accommodate a party of the given size according to party pacing settings.
1035
+ * * `"SEAT_PACING"`: The required number of seats are unavailable according to seat pacing settings.
1036
+ */
1094
1037
  ignoreReservationLocationConflicts?: Type[];
1095
1038
  }
1096
1039
  /**
@@ -1293,13 +1236,4 @@ export interface ReservationsQueryBuilder {
1293
1236
  /** @documentationMaturity preview */
1294
1237
  find: () => Promise<ReservationsQueryResult>;
1295
1238
  }
1296
- /** @param search - Search query.
1297
- * @public
1298
- * @documentationMaturity preview
1299
- * @requiredField search
1300
- * @permissionScope Manage Reservations (Medium)
1301
- * @permissionScope Manage Reservations (Full)
1302
- * @applicableIdentity APP
1303
- */
1304
- export declare function searchReservations(search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
1305
1239
  export {};