@wix/table-reservations 1.0.32 → 1.0.34

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 (61) hide show
  1. package/build/cjs/index.js +5 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.js +5 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.js +5 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +1 -1
  8. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +5 -1
  9. package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +1 -1
  10. package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +11 -11
  11. package/build/cjs/src/table-reservations-v1-reservation-location.types.d.ts +36 -11
  12. package/build/cjs/src/table-reservations-v1-reservation-location.types.js +112 -112
  13. package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +1 -1
  14. package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +37 -13
  15. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +117 -113
  16. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  17. package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +1 -1
  18. package/build/cjs/src/table-reservations-v1-reservation.meta.js +5 -1
  19. package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +1 -1
  20. package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +5 -5
  21. package/build/cjs/src/table-reservations-v1-reservation.types.d.ts +18 -6
  22. package/build/cjs/src/table-reservations-v1-reservation.types.js +43 -43
  23. package/build/cjs/src/table-reservations-v1-reservation.types.js.map +1 -1
  24. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +18 -7
  25. package/build/cjs/src/table-reservations-v1-reservation.universal.js +48 -44
  26. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -1
  27. package/build/cjs/src/table-reservations-v1-time-slot.meta.d.ts +1 -1
  28. package/build/cjs/src/table-reservations-v1-time-slot.meta.js +5 -1
  29. package/build/cjs/src/table-reservations-v1-time-slot.meta.js.map +1 -1
  30. package/build/cjs/src/table-reservations-v1-time-slot.public.d.ts +1 -1
  31. package/build/cjs/src/table-reservations-v1-time-slot.types.d.ts +12 -4
  32. package/build/cjs/src/table-reservations-v1-time-slot.types.js +28 -28
  33. package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +1 -1
  34. package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +12 -4
  35. package/build/cjs/src/table-reservations-v1-time-slot.universal.js +33 -29
  36. package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  37. package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +1 -1
  38. package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +11 -11
  39. package/build/es/src/table-reservations-v1-reservation-location.types.d.ts +36 -11
  40. package/build/es/src/table-reservations-v1-reservation-location.types.js +123 -112
  41. package/build/es/src/table-reservations-v1-reservation-location.types.js.map +1 -1
  42. package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +37 -13
  43. package/build/es/src/table-reservations-v1-reservation-location.universal.js +123 -112
  44. package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  45. package/build/es/src/table-reservations-v1-reservation.meta.d.ts +1 -1
  46. package/build/es/src/table-reservations-v1-reservation.public.d.ts +5 -5
  47. package/build/es/src/table-reservations-v1-reservation.types.d.ts +18 -6
  48. package/build/es/src/table-reservations-v1-reservation.types.js +49 -43
  49. package/build/es/src/table-reservations-v1-reservation.types.js.map +1 -1
  50. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +18 -7
  51. package/build/es/src/table-reservations-v1-reservation.universal.js +49 -43
  52. package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -1
  53. package/build/es/src/table-reservations-v1-time-slot.meta.d.ts +1 -1
  54. package/build/es/src/table-reservations-v1-time-slot.public.d.ts +1 -1
  55. package/build/es/src/table-reservations-v1-time-slot.types.d.ts +12 -4
  56. package/build/es/src/table-reservations-v1-time-slot.types.js +32 -28
  57. package/build/es/src/table-reservations-v1-time-slot.types.js.map +1 -1
  58. package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +12 -4
  59. package/build/es/src/table-reservations-v1-time-slot.universal.js +32 -28
  60. package/build/es/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  61. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-time-slot.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;AACzC,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB;AAyED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;IACjC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;AAC/B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAYD,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;AAOD,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,qCAA6B,CAAA;IAC7B,mCAA2B,CAAA;AAC7B,CAAC,EAJW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAIf"}
1
+ {"version":3,"file":"table-reservations-v1-time-slot.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.types.ts"],"names":[],"mappings":";;;AAWA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,qCAAuB,CAAA;IACvB,yCAA2B,CAAA;IAC3B,qDAAuC,CAAA;AACzC,CAAC,EAJI,UAAU,sBAAV,UAAU,QAId;AA6ED,IAAK,qBAMJ;AAND,WAAK,qBAAqB;IACxB,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,wDAA+B,CAAA;IAC/B,4DAAmC,CAAA;IACnC,sDAA6B,CAAA;AAC/B,CAAC,EANI,qBAAqB,iCAArB,qBAAqB,QAMzB;AAgBD,IAAK,gCAMJ;AAND,WAAK,gCAAgC;IACnC,uDAAmB,CAAA;IACnB,yDAAqB,CAAA;IACrB,uDAAmB,CAAA;IACnB,2DAAuB,CAAA;IACvB,iEAA6B,CAAA;AAC/B,CAAC,EANI,gCAAgC,4CAAhC,gCAAgC,QAMpC;AAWD,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,+BAAmB,CAAA;IACnB,yCAA6B,CAAA;IAC7B,uCAA2B,CAAA;AAC7B,CAAC,EAJI,QAAQ,oBAAR,QAAQ,QAIZ"}
@@ -14,11 +14,13 @@ export interface TimeSlot {
14
14
  /** Whether manual approval is required to make a reservation in this time slot. */
15
15
  manualApproval?: boolean | null;
16
16
  }
17
- export declare enum Status {
17
+ declare enum StatusEnum {
18
18
  AVAILABLE = "AVAILABLE",
19
19
  UNAVAILABLE = "UNAVAILABLE",
20
20
  NON_WORKING_HOURS = "NON_WORKING_HOURS"
21
21
  }
22
+ type Status = `${StatusEnum}`;
23
+ export { StatusEnum as Status };
22
24
  /** Table combination. */
23
25
  export interface TimeSlotTableCombination {
24
26
  /** Table IDs of the tables in the combination. */
@@ -83,13 +85,15 @@ export interface TableConflict {
83
85
  /** Conflict type. */
84
86
  type?: TableConflictType;
85
87
  }
86
- export declare enum TableConflictType {
88
+ declare enum TableConflictTypeEnum {
87
89
  UNKNOWN = "UNKNOWN",
88
90
  TABLE_RESERVED = "TABLE_RESERVED",
89
91
  TABLE_TOO_BIG = "TABLE_TOO_BIG",
90
92
  TABLE_TOO_SMALL = "TABLE_TOO_SMALL",
91
93
  OFFLINE_ONLY = "OFFLINE_ONLY"
92
94
  }
95
+ type TableConflictType = `${TableConflictTypeEnum}`;
96
+ export { TableConflictTypeEnum as TableConflictType };
93
97
  export interface TableCombination {
94
98
  tableIds?: string[];
95
99
  tableCombinationConflicts?: TableCombinationConflict[];
@@ -98,22 +102,26 @@ export interface TableCombinationConflict {
98
102
  /** Conflict type. */
99
103
  type?: TableCombinationConflictType;
100
104
  }
101
- export declare enum TableCombinationConflictType {
105
+ declare enum TableCombinationConflictTypeEnum {
102
106
  UNKNOWN = "UNKNOWN",
103
107
  RESERVED = "RESERVED",
104
108
  TOO_BIG = "TOO_BIG",
105
109
  TOO_SMALL = "TOO_SMALL",
106
110
  OFFLINE_ONLY = "OFFLINE_ONLY"
107
111
  }
112
+ type TableCombinationConflictType = `${TableCombinationConflictTypeEnum}`;
113
+ export { TableCombinationConflictTypeEnum as TableCombinationConflictType };
108
114
  export interface ReservationLocationConflict {
109
115
  /** Reservation location conflict type. */
110
116
  type?: Type;
111
117
  }
112
- export declare enum Type {
118
+ declare enum TypeEnum {
113
119
  UNKNOWN = "UNKNOWN",
114
120
  PARTY_PACING = "PARTY_PACING",
115
121
  SEAT_PACING = "SEAT_PACING"
116
122
  }
123
+ type Type = `${TypeEnum}`;
124
+ export { TypeEnum as Type };
117
125
  export interface GetTimeSlotsResponseNonNullableFields {
118
126
  timeSlots: {
119
127
  duration: number;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -46,34 +50,34 @@ exports.__debug = {
46
50
  };
47
51
  const _toVeloEntity = '$';
48
52
  const _fromVeloEntity = '$';
49
- var Status;
50
- (function (Status) {
51
- Status["AVAILABLE"] = "AVAILABLE";
52
- Status["UNAVAILABLE"] = "UNAVAILABLE";
53
- Status["NON_WORKING_HOURS"] = "NON_WORKING_HOURS";
54
- })(Status = exports.Status || (exports.Status = {}));
55
- var TableConflictType;
56
- (function (TableConflictType) {
57
- TableConflictType["UNKNOWN"] = "UNKNOWN";
58
- TableConflictType["TABLE_RESERVED"] = "TABLE_RESERVED";
59
- TableConflictType["TABLE_TOO_BIG"] = "TABLE_TOO_BIG";
60
- TableConflictType["TABLE_TOO_SMALL"] = "TABLE_TOO_SMALL";
61
- TableConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
62
- })(TableConflictType = exports.TableConflictType || (exports.TableConflictType = {}));
63
- var TableCombinationConflictType;
64
- (function (TableCombinationConflictType) {
65
- TableCombinationConflictType["UNKNOWN"] = "UNKNOWN";
66
- TableCombinationConflictType["RESERVED"] = "RESERVED";
67
- TableCombinationConflictType["TOO_BIG"] = "TOO_BIG";
68
- TableCombinationConflictType["TOO_SMALL"] = "TOO_SMALL";
69
- TableCombinationConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
70
- })(TableCombinationConflictType = exports.TableCombinationConflictType || (exports.TableCombinationConflictType = {}));
71
- var Type;
72
- (function (Type) {
73
- Type["UNKNOWN"] = "UNKNOWN";
74
- Type["PARTY_PACING"] = "PARTY_PACING";
75
- Type["SEAT_PACING"] = "SEAT_PACING";
76
- })(Type = exports.Type || (exports.Type = {}));
53
+ var StatusEnum;
54
+ (function (StatusEnum) {
55
+ StatusEnum["AVAILABLE"] = "AVAILABLE";
56
+ StatusEnum["UNAVAILABLE"] = "UNAVAILABLE";
57
+ StatusEnum["NON_WORKING_HOURS"] = "NON_WORKING_HOURS";
58
+ })(StatusEnum || (exports.Status = StatusEnum = {}));
59
+ var TableConflictTypeEnum;
60
+ (function (TableConflictTypeEnum) {
61
+ TableConflictTypeEnum["UNKNOWN"] = "UNKNOWN";
62
+ TableConflictTypeEnum["TABLE_RESERVED"] = "TABLE_RESERVED";
63
+ TableConflictTypeEnum["TABLE_TOO_BIG"] = "TABLE_TOO_BIG";
64
+ TableConflictTypeEnum["TABLE_TOO_SMALL"] = "TABLE_TOO_SMALL";
65
+ TableConflictTypeEnum["OFFLINE_ONLY"] = "OFFLINE_ONLY";
66
+ })(TableConflictTypeEnum || (exports.TableConflictType = TableConflictTypeEnum = {}));
67
+ var TableCombinationConflictTypeEnum;
68
+ (function (TableCombinationConflictTypeEnum) {
69
+ TableCombinationConflictTypeEnum["UNKNOWN"] = "UNKNOWN";
70
+ TableCombinationConflictTypeEnum["RESERVED"] = "RESERVED";
71
+ TableCombinationConflictTypeEnum["TOO_BIG"] = "TOO_BIG";
72
+ TableCombinationConflictTypeEnum["TOO_SMALL"] = "TOO_SMALL";
73
+ TableCombinationConflictTypeEnum["OFFLINE_ONLY"] = "OFFLINE_ONLY";
74
+ })(TableCombinationConflictTypeEnum || (exports.TableCombinationConflictType = TableCombinationConflictTypeEnum = {}));
75
+ var TypeEnum;
76
+ (function (TypeEnum) {
77
+ TypeEnum["UNKNOWN"] = "UNKNOWN";
78
+ TypeEnum["PARTY_PACING"] = "PARTY_PACING";
79
+ TypeEnum["SEAT_PACING"] = "SEAT_PACING";
80
+ })(TypeEnum || (exports.Type = TypeEnum = {}));
77
81
  const _getTimeSlotsRequest = {};
78
82
  const _getTimeSlotsResponse = {};
79
83
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAmG;AAE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pE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,uBAAuB;gBACvB,MAAM;gBACN,WAAW;gBACX,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAvED,oCAuEC"}
1
+ {"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iHAAmG;AAEnG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aA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CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAvED,oCAuEC"}
@@ -1,6 +1,6 @@
1
1
  import * as ambassadorWixTableReservationsV1ReservationLocationTypes from './table-reservations-v1-reservation-location.types';
2
2
  import * as ambassadorWixTableReservationsV1ReservationLocationUniversalTypes from './table-reservations-v1-reservation-location.universal';
3
- export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3
+ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
4
  getUrl: (context: any) => string;
5
5
  httpMethod: K;
6
6
  path: string;
@@ -3,7 +3,7 @@ import { UpdateReservationLocation, GetReservationLocationOptions, ListReservati
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
- export declare function getReservationLocation(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions | undefined) => Promise<import("./table-reservations-v1-reservation-location.universal").ReservationLocation & {
6
+ export declare function getReservationLocation(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<import("./table-reservations-v1-reservation-location.universal").ReservationLocation & {
7
7
  configuration?: {
8
8
  onlineReservations?: {
9
9
  seatPacing?: {
@@ -20,7 +20,7 @@ export declare function getReservationLocation(httpClient: HttpClient): (reserva
20
20
  } | undefined;
21
21
  minimumReservationNotice?: {
22
22
  number: number;
23
- unit: import("./table-reservations-v1-reservation-location.universal").Unit;
23
+ unit: "UNKNOWN" | "MINUTES" | "HOURS" | "DAYS";
24
24
  } | undefined;
25
25
  turnoverTimeRules: {
26
26
  seatsMin: number;
@@ -29,9 +29,9 @@ export declare function getReservationLocation(httpClient: HttpClient): (reserva
29
29
  }[];
30
30
  businessSchedule?: {
31
31
  periods: {
32
- openDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
32
+ openDay: "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
33
33
  openTime: string;
34
- closeDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
34
+ closeDay: "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
35
35
  closeTime: string;
36
36
  }[];
37
37
  specialHourPeriod: {
@@ -65,7 +65,7 @@ export declare function getReservationLocation(httpClient: HttpClient): (reserva
65
65
  } | undefined;
66
66
  } | undefined;
67
67
  myReservationsFields: {
68
- fieldType: import("./table-reservations-v1-reservation-location.universal").FieldType;
68
+ fieldType: "UNKNOWN" | "TABLE" | "START_DATE" | "END_DATE" | "CREATED_DATE" | "UPDATED_DATE" | "PARTY_SIZE" | "FIRST_NAME" | "LAST_NAME" | "EMAIL" | "PHONE" | "ADDITIONAL_INFO" | "TEAM_MESSAGE" | "CUSTOM_FIELD" | "STATUS";
69
69
  shown: boolean;
70
70
  }[];
71
71
  tableManagement?: {
@@ -103,7 +103,7 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
103
103
  } | undefined;
104
104
  minimumReservationNotice?: {
105
105
  number: number;
106
- unit: import("./table-reservations-v1-reservation-location.universal").Unit;
106
+ unit: "UNKNOWN" | "MINUTES" | "HOURS" | "DAYS";
107
107
  } | undefined;
108
108
  turnoverTimeRules: {
109
109
  seatsMin: number;
@@ -112,9 +112,9 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
112
112
  }[];
113
113
  businessSchedule?: {
114
114
  periods: {
115
- openDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
115
+ openDay: "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
116
116
  openTime: string;
117
- closeDay: import("./table-reservations-v1-reservation-location.universal").DayOfWeek;
117
+ closeDay: "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
118
118
  closeTime: string;
119
119
  }[];
120
120
  specialHourPeriod: {
@@ -148,7 +148,7 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
148
148
  } | undefined;
149
149
  } | undefined;
150
150
  myReservationsFields: {
151
- fieldType: import("./table-reservations-v1-reservation-location.universal").FieldType;
151
+ fieldType: "UNKNOWN" | "TABLE" | "START_DATE" | "END_DATE" | "CREATED_DATE" | "UPDATED_DATE" | "PARTY_SIZE" | "FIRST_NAME" | "LAST_NAME" | "EMAIL" | "PHONE" | "ADDITIONAL_INFO" | "TEAM_MESSAGE" | "CUSTOM_FIELD" | "STATUS";
152
152
  shown: boolean;
153
153
  }[];
154
154
  tableManagement?: {
@@ -169,7 +169,7 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
169
169
  } | undefined;
170
170
  } | undefined;
171
171
  }>;
172
- export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions | undefined) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
173
- export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions | undefined) => Promise<import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponse & import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponseNonNullableFields>;
172
+ export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
173
+ export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponse & import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponseNonNullableFields>;
174
174
  export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, FeaturePeriod, } from './table-reservations-v1-reservation-location.universal';
175
175
  export { ReservationLocation, StreetAddress, AddressLocation, Address, BusinessSchedule, TimePeriod, SpecialHourPeriod, TableDefinition, TableCombination, SeatPacing, PartyPacing, PartiesSize, PartySize, NoticePeriod, TurnoverTimeRule, TurnoverRule, ManualApproval, ManualApprovalValueOneOf, TermsAndConditions, TermsAndConditionsValueOneOf, PrivacyPolicy, PrivacyPolicyValueOneOf, CustomFieldDefinition, EmailMarketingCheckbox, OnlineReservations, ReservationForm, MyReservationsField, TableManagement, Location, Configuration, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, GetReservationLocationRequest, GetReservationLocationResponse, UpdateReservationLocationRequest, UpdateReservationLocationResponse, TablesDeleted, QueryReservationLocationsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryReservationLocationsResponse, PagingMetadataV2, Cursors, ListReservationLocationsRequest, ListReservationLocationsResponse, CursorPagingMetadata, DeleteOrphanReservationLocationRequest, DeleteOrphanReservationLocationResponse, MigrateOldRestaurantSettingsRequest, MigrateOldRestaurantSettingsResponse, ParsedSettings, OldScheduleInterval, OldCustomField, OldPolicy, OldTerms, OldScheduleException, OldInstant, MigrationParsingError, MigrationResult, CheckReservationLocationsCreatedRequest, CheckReservationLocationsCreatedResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, FeatureEvent, FeatureEventEventOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, Feature, FeatureQuantityInfoOneOf, FeatureContext, BooleanFeature, QuotaFeature, QuotaInfo, TransferredFromAnotherAccountReason, ReassignedFromSiteReason, AssignedFromFloatingReason, NewFeatureReason, ContractSwitchedReason, ManualFeatureCreationReason, MigratedFromLegacyReason, FeatureDisabled, FeatureDisabledReasonOneOf, UnAssingedToFloatingReason, ReplacedByAnotherSubscriptionReason, ReassignedToAnotherSiteReason, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, FeatureCancelled, FeatureCancelledReasonOneOf, TransferredToAnotherAccountReason, CancelRequestedReason, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields, GetReservationLocationOptions, UpdateReservationLocation, QueryReservationLocationsOptions, ReservationLocationsQueryResult, ReservationLocationsQueryBuilder, ListReservationLocationsOptions, } from './table-reservations-v1-reservation-location.universal';
@@ -109,7 +109,7 @@ export interface TimePeriod {
109
109
  closeTime?: string;
110
110
  }
111
111
  /** Enumerates the days of the week. */
112
- export declare enum DayOfWeek {
112
+ declare enum DayOfWeekEnum {
113
113
  MONDAY = "MONDAY",
114
114
  TUESDAY = "TUESDAY",
115
115
  WEDNESDAY = "WEDNESDAY",
@@ -118,6 +118,9 @@ export declare enum DayOfWeek {
118
118
  SATURDAY = "SATURDAY",
119
119
  SUNDAY = "SUNDAY"
120
120
  }
121
+ /** Enumerates the days of the week. */
122
+ type DayOfWeek = `${DayOfWeekEnum}`;
123
+ export { DayOfWeekEnum as DayOfWeek };
121
124
  /** Set of time periods when a location's operational hours differ from its normal business hours. */
122
125
  export interface SpecialHourPeriod {
123
126
  /** Start date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */
@@ -159,12 +162,14 @@ export interface TableCombination {
159
162
  /** Whether the table combination is active (available to be reserved). */
160
163
  isActive?: boolean | null;
161
164
  }
162
- export declare enum Unit {
165
+ declare enum UnitEnum {
163
166
  UNKNOWN = "UNKNOWN",
164
167
  MINUTES = "MINUTES",
165
168
  HOURS = "HOURS",
166
169
  DAYS = "DAYS"
167
170
  }
171
+ type Unit = `${UnitEnum}`;
172
+ export { UnitEnum as Unit };
168
173
  /**
169
174
  * Seat pacing.
170
175
  * The maximum number of seats that can be filled by new reservations within a 15-minute period.
@@ -243,7 +248,7 @@ export interface ManualApprovalValueOneOf {
243
248
  partySizeThreshold?: number;
244
249
  }
245
250
  /** Type of the field. */
246
- export declare enum FieldType {
251
+ declare enum FieldTypeEnum {
247
252
  UNKNOWN = "UNKNOWN",
248
253
  TABLE = "TABLE",
249
254
  START_DATE = "START_DATE",
@@ -260,6 +265,9 @@ export declare enum FieldType {
260
265
  CUSTOM_FIELD = "CUSTOM_FIELD",
261
266
  STATUS = "STATUS"
262
267
  }
268
+ /** Type of the field. */
269
+ type FieldType = `${FieldTypeEnum}`;
270
+ export { FieldTypeEnum as FieldType };
263
271
  export interface PageUrlV2 {
264
272
  /** The path to that page - e.g /product-page/a-product */
265
273
  relativePath?: string;
@@ -513,10 +521,12 @@ export interface GetReservationLocationRequest {
513
521
  */
514
522
  fieldsets?: Set[];
515
523
  }
516
- export declare enum Set {
524
+ declare enum SetEnum {
517
525
  PUBLIC = "PUBLIC",
518
526
  FULL = "FULL"
519
527
  }
528
+ type Set = `${SetEnum}`;
529
+ export { SetEnum as Set };
520
530
  export interface GetReservationLocationResponse {
521
531
  /** The retrieved reservation location. */
522
532
  reservationLocation?: ReservationLocation;
@@ -582,10 +592,12 @@ export interface Sorting {
582
592
  */
583
593
  order?: SortOrder;
584
594
  }
585
- export declare enum SortOrder {
595
+ declare enum SortOrderEnum {
586
596
  ASC = "ASC",
587
597
  DESC = "DESC"
588
598
  }
599
+ type SortOrder = `${SortOrderEnum}`;
600
+ export { SortOrderEnum as SortOrder };
589
601
  export interface Paging {
590
602
  /** Number of items to load. */
591
603
  limit?: number | null;
@@ -664,13 +676,15 @@ export interface MigrateOldRestaurantSettingsRequest {
664
676
  /** Override not default. */
665
677
  overrideNotDefault?: boolean;
666
678
  }
667
- export declare enum Mode {
679
+ declare enum ModeEnum {
668
680
  /** DRY RUN. */
669
681
  UNDEFINED = "UNDEFINED",
670
682
  DRY_RUN = "DRY_RUN",
671
683
  MIGRATE = "MIGRATE",
672
684
  FORCE_MIGRATE = "FORCE_MIGRATE"
673
685
  }
686
+ type Mode = `${ModeEnum}`;
687
+ export { ModeEnum as Mode };
674
688
  export interface MigrateOldRestaurantSettingsResponse {
675
689
  /** Migration results. */
676
690
  migrationResults?: MigrationResult[];
@@ -851,13 +865,15 @@ export interface Asset {
851
865
  instanceId?: string;
852
866
  state?: State;
853
867
  }
854
- export declare enum State {
868
+ declare enum StateEnum {
855
869
  UNKNOWN = "UNKNOWN",
856
870
  ENABLED = "ENABLED",
857
871
  DISABLED = "DISABLED",
858
872
  PENDING = "PENDING",
859
873
  DEMO = "DEMO"
860
874
  }
875
+ type State = `${StateEnum}`;
876
+ export { StateEnum as State };
861
877
  export interface SiteCreated {
862
878
  originTemplateId?: string;
863
879
  ownerId?: string;
@@ -872,7 +888,7 @@ export interface SiteCreated {
872
888
  siteName?: string;
873
889
  namespace?: Namespace;
874
890
  }
875
- export declare enum SiteCreatedContext {
891
+ declare enum SiteCreatedContextEnum {
876
892
  /** A valid option, we don't expose all reasons why site might be created. */
877
893
  OTHER = "OTHER",
878
894
  /** A meta site was created from template. */
@@ -886,7 +902,9 @@ export declare enum SiteCreatedContext {
886
902
  /** deprecated A meta site was created for Flash editor. */
887
903
  FLASH = "FLASH"
888
904
  }
889
- export declare enum Namespace {
905
+ type SiteCreatedContext = `${SiteCreatedContextEnum}`;
906
+ export { SiteCreatedContextEnum as SiteCreatedContext };
907
+ declare enum NamespaceEnum {
890
908
  UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
891
909
  /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
892
910
  WIX = "WIX",
@@ -940,6 +958,8 @@ export declare enum Namespace {
940
958
  /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
941
959
  RISE = "RISE"
942
960
  }
961
+ type Namespace = `${NamespaceEnum}`;
962
+ export { NamespaceEnum as Namespace };
943
963
  /** Site transferred to another user. */
944
964
  export interface SiteTransferred {
945
965
  /** A previous owner id (user that transfers meta site). */
@@ -957,12 +977,14 @@ export interface DeleteContext {
957
977
  deleteOrigin?: string;
958
978
  initiatorId?: string | null;
959
979
  }
960
- export declare enum DeleteStatus {
980
+ declare enum DeleteStatusEnum {
961
981
  UNKNOWN = "UNKNOWN",
962
982
  TRASH = "TRASH",
963
983
  DELETED = "DELETED",
964
984
  PENDING_PURGE = "PENDING_PURGE"
965
985
  }
986
+ type DeleteStatus = `${DeleteStatusEnum}`;
987
+ export { DeleteStatusEnum as DeleteStatus };
966
988
  /** Restoration of the meta site. */
967
989
  export interface SiteUndeleted {
968
990
  }
@@ -1231,7 +1253,7 @@ export interface QuotaFeature {
1231
1253
  units?: string | null;
1232
1254
  }
1233
1255
  /** Determines the reset cycle of the feature usage. */
1234
- export declare enum FeaturePeriod {
1256
+ declare enum FeaturePeriodEnum {
1235
1257
  NO_PERIOD = "NO_PERIOD",
1236
1258
  MILLISECOND = "MILLISECOND",
1237
1259
  SECOND = "SECOND",
@@ -1242,6 +1264,9 @@ export declare enum FeaturePeriod {
1242
1264
  MONTH = "MONTH",
1243
1265
  YEAR = "YEAR"
1244
1266
  }
1267
+ /** Determines the reset cycle of the feature usage. */
1268
+ type FeaturePeriod = `${FeaturePeriodEnum}`;
1269
+ export { FeaturePeriodEnum as FeaturePeriod };
1245
1270
  export interface QuotaInfo {
1246
1271
  /**
1247
1272
  * How often the customer is allowed to use the feature during the specified