@wix/table-reservations 1.0.54 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js +108 -81
- package/build/cjs/src/table-reservations-v1-reservation-location.http.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.d.ts +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js +5 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.meta.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +3 -3
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js +11 -11
- package/build/cjs/src/table-reservations-v1-reservation-location.types.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +39 -23
- package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.http.js +138 -107
- package/build/cjs/src/table-reservations-v1-reservation.http.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.meta.d.ts +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.meta.js +5 -1
- package/build/cjs/src/table-reservations-v1-reservation.meta.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +5 -5
- package/build/cjs/src/table-reservations-v1-reservation.types.js +14 -14
- package/build/cjs/src/table-reservations-v1-reservation.types.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-reservation.universal.js +80 -44
- package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.http.js +15 -11
- package/build/cjs/src/table-reservations-v1-time-slot.http.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.meta.d.ts +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js +5 -1
- package/build/cjs/src/table-reservations-v1-time-slot.meta.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.public.d.ts +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.types.js +4 -4
- package/build/cjs/src/table-reservations-v1-time-slot.types.js.map +1 -1
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js +22 -11
- package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation-location.http.js +108 -81
- package/build/es/src/table-reservations-v1-reservation-location.http.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation-location.meta.d.ts +1 -1
- package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +3 -3
- package/build/es/src/table-reservations-v1-reservation-location.universal.js +23 -11
- package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation.http.js +138 -107
- package/build/es/src/table-reservations-v1-reservation.http.js.map +1 -1
- package/build/es/src/table-reservations-v1-reservation.meta.d.ts +1 -1
- package/build/es/src/table-reservations-v1-reservation.public.d.ts +5 -5
- package/build/es/src/table-reservations-v1-reservation.universal.js +61 -29
- package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -1
- package/build/es/src/table-reservations-v1-time-slot.http.js +15 -11
- package/build/es/src/table-reservations-v1-time-slot.http.js.map +1 -1
- package/build/es/src/table-reservations-v1-time-slot.meta.d.ts +1 -1
- package/build/es/src/table-reservations-v1-time-slot.public.d.ts +1 -1
- package/build/es/src/table-reservations-v1-time-slot.universal.js +14 -7
- package/build/es/src/table-reservations-v1-time-slot.universal.js.map +1 -1
- package/package.json +7 -3
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTimeSlots = void 0;
|
|
4
|
-
const
|
|
4
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
5
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
5
7
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
6
|
-
const _getTimeSlotsRequest = { date: 'google.protobuf.Timestamp' };
|
|
7
|
-
const _getTimeSlotsResponse = { timeSlots: '_timeSlot' };
|
|
8
|
-
const _timeSlot = { startDate: 'google.protobuf.Timestamp' };
|
|
9
8
|
function resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl(opts) {
|
|
10
9
|
const domainToMappings = {
|
|
11
10
|
_: [
|
|
@@ -89,12 +88,13 @@ function resolveWixTableReservationsTimeSlotV1TimeSlotsServiceUrl(opts) {
|
|
|
89
88
|
* The `startDate`s of time slots in the response are 15 minutes apart regardless of the `duration` provided.
|
|
90
89
|
*/
|
|
91
90
|
function getTimeSlots(payload) {
|
|
92
|
-
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getTimeSlotsRequest, {});
|
|
93
|
-
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getTimeSlotsResponse, {
|
|
94
|
-
_timeSlot,
|
|
95
|
-
});
|
|
96
91
|
function __getTimeSlots({ host }) {
|
|
97
|
-
const serializedData =
|
|
92
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
93
|
+
{
|
|
94
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
95
|
+
paths: [{ path: 'date' }],
|
|
96
|
+
},
|
|
97
|
+
]);
|
|
98
98
|
const metadata = {
|
|
99
99
|
entityFqdn: 'wix.table_reservations.v1.time_slot',
|
|
100
100
|
method: 'POST',
|
|
@@ -105,11 +105,15 @@ function getTimeSlots(payload) {
|
|
|
105
105
|
host,
|
|
106
106
|
}),
|
|
107
107
|
data: serializedData,
|
|
108
|
-
transformResponse:
|
|
108
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
109
|
+
{
|
|
110
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
111
|
+
paths: [{ path: 'timeSlots.startDate' }],
|
|
112
|
+
},
|
|
113
|
+
]),
|
|
109
114
|
};
|
|
110
115
|
return metadata;
|
|
111
116
|
}
|
|
112
|
-
__getTimeSlots.fromReq = fromReq;
|
|
113
117
|
return __getTimeSlots;
|
|
114
118
|
}
|
|
115
119
|
exports.getTimeSlots = getTimeSlots;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-time-slot.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.http.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.http.ts"],"names":[],"mappings":";;;AAAA,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAShD,SAAS,wDAAwD,CAC/D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACt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iBACzC;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AApCD,oCAoCC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ambassadorWixTableReservationsV1TimeSlotTypes from './table-reservations-v1-time-slot.types';
|
|
2
2
|
import * as ambassadorWixTableReservationsV1TimeSlotUniversalTypes from './table-reservations-v1-time-slot.universal';
|
|
3
|
-
export
|
|
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;
|
|
@@ -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.
|
|
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];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-time-slot.meta.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.meta.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iHAAmG;AAsBnG,SAAgB,YAAY;IAU1B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,wCAAwC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oCA8BC"}
|
|
@@ -3,6 +3,6 @@ import { GetTimeSlotsOptions } from './table-reservations-v1-time-slot.universal
|
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function getTimeSlots(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions
|
|
6
|
+
export declare function getTimeSlots(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<import("./table-reservations-v1-time-slot.universal").GetTimeSlotsResponse & import("./table-reservations-v1-time-slot.universal").GetTimeSlotsResponseNonNullableFields>;
|
|
7
7
|
export { Status, TableConflictType, TableCombinationConflictType, Type, } from './table-reservations-v1-time-slot.universal';
|
|
8
8
|
export { TimeSlot, TimeSlotTableCombination, GetTimeSlotsRequest, GetTimeSlotsResponse, CheckReservationDetailsRequest, CheckReservationDetailsResponse, Table, TableConflict, TableCombination, TableCombinationConflict, ReservationLocationConflict, TableReservedConflict, GetTimeSlotsResponseNonNullableFields, GetTimeSlotsOptions, } from './table-reservations-v1-time-slot.universal';
|
|
@@ -6,7 +6,7 @@ var Status;
|
|
|
6
6
|
Status["AVAILABLE"] = "AVAILABLE";
|
|
7
7
|
Status["UNAVAILABLE"] = "UNAVAILABLE";
|
|
8
8
|
Status["NON_WORKING_HOURS"] = "NON_WORKING_HOURS";
|
|
9
|
-
})(Status
|
|
9
|
+
})(Status || (exports.Status = Status = {}));
|
|
10
10
|
var TableConflictType;
|
|
11
11
|
(function (TableConflictType) {
|
|
12
12
|
TableConflictType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -14,7 +14,7 @@ var TableConflictType;
|
|
|
14
14
|
TableConflictType["TABLE_TOO_BIG"] = "TABLE_TOO_BIG";
|
|
15
15
|
TableConflictType["TABLE_TOO_SMALL"] = "TABLE_TOO_SMALL";
|
|
16
16
|
TableConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
17
|
-
})(TableConflictType
|
|
17
|
+
})(TableConflictType || (exports.TableConflictType = TableConflictType = {}));
|
|
18
18
|
var TableCombinationConflictType;
|
|
19
19
|
(function (TableCombinationConflictType) {
|
|
20
20
|
TableCombinationConflictType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -22,11 +22,11 @@ var TableCombinationConflictType;
|
|
|
22
22
|
TableCombinationConflictType["TOO_BIG"] = "TOO_BIG";
|
|
23
23
|
TableCombinationConflictType["TOO_SMALL"] = "TOO_SMALL";
|
|
24
24
|
TableCombinationConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
25
|
-
})(TableCombinationConflictType
|
|
25
|
+
})(TableCombinationConflictType || (exports.TableCombinationConflictType = TableCombinationConflictType = {}));
|
|
26
26
|
var Type;
|
|
27
27
|
(function (Type) {
|
|
28
28
|
Type["UNKNOWN"] = "UNKNOWN";
|
|
29
29
|
Type["PARTY_PACING"] = "PARTY_PACING";
|
|
30
30
|
Type["SEAT_PACING"] = "SEAT_PACING";
|
|
31
|
-
})(Type
|
|
31
|
+
})(Type || (exports.Type = Type = {}));
|
|
32
32
|
//# sourceMappingURL=table-reservations-v1-time-slot.types.js.map
|
|
@@ -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":";;;AAiBA,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;AACzC,CAAC,EAJW,MAAM,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.types.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.types.ts"],"names":[],"mappings":";;;AAiBA,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;AACzC,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AA2ED,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,iCAAjB,iBAAiB,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,4CAA5B,4BAA4B,QAMvC;AAOD,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,qCAA6B,CAAA;IAC7B,mCAA2B,CAAA;AAC7B,CAAC,EAJW,IAAI,oBAAJ,IAAI,QAIf"}
|
|
@@ -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.
|
|
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];
|
|
@@ -30,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
35
|
exports.getTimeSlots = exports.Type = exports.TableCombinationConflictType = exports.TableConflictType = exports.Status = exports.__debug = void 0;
|
|
32
36
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
33
38
|
const ambassadorWixTableReservationsV1TimeSlot = __importStar(require("./table-reservations-v1-time-slot.http"));
|
|
34
39
|
let __verbose = false;
|
|
35
40
|
function __log(...args) {
|
|
@@ -51,7 +56,7 @@ var Status;
|
|
|
51
56
|
Status["AVAILABLE"] = "AVAILABLE";
|
|
52
57
|
Status["UNAVAILABLE"] = "UNAVAILABLE";
|
|
53
58
|
Status["NON_WORKING_HOURS"] = "NON_WORKING_HOURS";
|
|
54
|
-
})(Status
|
|
59
|
+
})(Status || (exports.Status = Status = {}));
|
|
55
60
|
var TableConflictType;
|
|
56
61
|
(function (TableConflictType) {
|
|
57
62
|
TableConflictType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -59,7 +64,7 @@ var TableConflictType;
|
|
|
59
64
|
TableConflictType["TABLE_TOO_BIG"] = "TABLE_TOO_BIG";
|
|
60
65
|
TableConflictType["TABLE_TOO_SMALL"] = "TABLE_TOO_SMALL";
|
|
61
66
|
TableConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
62
|
-
})(TableConflictType
|
|
67
|
+
})(TableConflictType || (exports.TableConflictType = TableConflictType = {}));
|
|
63
68
|
var TableCombinationConflictType;
|
|
64
69
|
(function (TableCombinationConflictType) {
|
|
65
70
|
TableCombinationConflictType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -67,13 +72,13 @@ var TableCombinationConflictType;
|
|
|
67
72
|
TableCombinationConflictType["TOO_BIG"] = "TOO_BIG";
|
|
68
73
|
TableCombinationConflictType["TOO_SMALL"] = "TOO_SMALL";
|
|
69
74
|
TableCombinationConflictType["OFFLINE_ONLY"] = "OFFLINE_ONLY";
|
|
70
|
-
})(TableCombinationConflictType
|
|
75
|
+
})(TableCombinationConflictType || (exports.TableCombinationConflictType = TableCombinationConflictType = {}));
|
|
71
76
|
var Type;
|
|
72
77
|
(function (Type) {
|
|
73
78
|
Type["UNKNOWN"] = "UNKNOWN";
|
|
74
79
|
Type["PARTY_PACING"] = "PARTY_PACING";
|
|
75
80
|
Type["SEAT_PACING"] = "SEAT_PACING";
|
|
76
|
-
})(Type
|
|
81
|
+
})(Type || (exports.Type = Type = {}));
|
|
77
82
|
const _getTimeSlotsRequest = {};
|
|
78
83
|
const _getTimeSlotsResponse = {};
|
|
79
84
|
/**
|
|
@@ -151,12 +156,18 @@ function getTimeSlots(reservationLocationId, date, partySize, options) {
|
|
|
151
156
|
return fromJSON(result.data);
|
|
152
157
|
}
|
|
153
158
|
catch (err) {
|
|
154
|
-
const transformedError = (0,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
160
|
+
spreadPathsToArguments: {},
|
|
161
|
+
explicitPathsToArguments: {
|
|
162
|
+
reservationLocationId: '$[0]',
|
|
163
|
+
date: '$[1]',
|
|
164
|
+
partySize: '$[2]',
|
|
165
|
+
duration: '$[3].duration',
|
|
166
|
+
slotsBefore: '$[3].slotsBefore',
|
|
167
|
+
slotsAfter: '$[3].slotsAfter',
|
|
168
|
+
},
|
|
169
|
+
singleArgumentUnchanged: false,
|
|
170
|
+
}, ['reservationLocationId', 'date', 'partySize', 'options']);
|
|
160
171
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
161
172
|
throw transformedError;
|
|
162
173
|
}
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-time-slot.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqD;AACrD,sEAAuF;AAEvF,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,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAmB5B,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;AACzC,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AA2ED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;IACjC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;AA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BAAgB,CAAC;QACzB,CAAC;;CACF;AAjFD,oCAiFC"}
|
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
|
|
3
|
+
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
4
|
+
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
5
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
6
|
+
import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
|
|
7
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
3
8
|
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
-
const _address = { geocode: '_addressLocation' };
|
|
5
|
-
const _addressLocation = {
|
|
6
|
-
latitude: 'google.protobuf.DoubleValue',
|
|
7
|
-
longitude: 'google.protobuf.DoubleValue',
|
|
8
|
-
};
|
|
9
|
-
const _getReservationLocationRequest = {};
|
|
10
|
-
const _getReservationLocationResponse = {
|
|
11
|
-
reservationLocation: '_reservationLocation',
|
|
12
|
-
};
|
|
13
|
-
const _listReservationLocationsRequest = {};
|
|
14
|
-
const _listReservationLocationsResponse = {
|
|
15
|
-
reservationLocations: '_reservationLocation',
|
|
16
|
-
};
|
|
17
|
-
const _location = { address: '_address' };
|
|
18
|
-
const _queryReservationLocationsRequest = {};
|
|
19
|
-
const _queryReservationLocationsResponse = {
|
|
20
|
-
reservationLocations: '_reservationLocation',
|
|
21
|
-
};
|
|
22
|
-
const _reservationLocation = {
|
|
23
|
-
createdDate: 'google.protobuf.Timestamp',
|
|
24
|
-
updatedDate: 'google.protobuf.Timestamp',
|
|
25
|
-
location: '_location',
|
|
26
|
-
};
|
|
27
|
-
const _updateReservationLocationRequest = {
|
|
28
|
-
mask: 'google.protobuf.FieldMask',
|
|
29
|
-
reservationLocation: '_reservationLocation',
|
|
30
|
-
};
|
|
31
|
-
const _updateReservationLocationResponse = {
|
|
32
|
-
reservationLocation: '_reservationLocation',
|
|
33
|
-
};
|
|
34
9
|
function resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl(opts) {
|
|
35
10
|
const domainToMappings = {
|
|
36
11
|
'www.wixapis.com': [
|
|
@@ -96,30 +71,38 @@ function resolveWixTableReservationsReservationLocationV1ReservationLocationsSer
|
|
|
96
71
|
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
97
72
|
*/
|
|
98
73
|
export function getReservationLocation(payload) {
|
|
99
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getReservationLocationRequest, {});
|
|
100
|
-
const { fromJSON: fromRes } = serializer(_getReservationLocationResponse, {
|
|
101
|
-
_address,
|
|
102
|
-
_addressLocation,
|
|
103
|
-
_location,
|
|
104
|
-
_reservationLocation,
|
|
105
|
-
});
|
|
106
74
|
function __getReservationLocation({ host }) {
|
|
107
|
-
const serializedData = toReq(payload);
|
|
108
75
|
const metadata = {
|
|
109
76
|
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
110
77
|
method: 'GET',
|
|
111
78
|
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.GetReservationLocation',
|
|
112
79
|
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
113
80
|
protoPath: '/v1/reservation-locations/{reservationLocationId}',
|
|
114
|
-
data:
|
|
81
|
+
data: payload,
|
|
115
82
|
host,
|
|
116
83
|
}),
|
|
117
|
-
params: toURLSearchParams(
|
|
118
|
-
transformResponse:
|
|
84
|
+
params: toURLSearchParams(payload),
|
|
85
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
86
|
+
{
|
|
87
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
88
|
+
paths: [
|
|
89
|
+
{ path: 'reservationLocation.createdDate' },
|
|
90
|
+
{ path: 'reservationLocation.updatedDate' },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
95
|
+
paths: [
|
|
96
|
+
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
97
|
+
{
|
|
98
|
+
path: 'reservationLocation.location.address.geocode.longitude',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
]),
|
|
119
103
|
};
|
|
120
104
|
return metadata;
|
|
121
105
|
}
|
|
122
|
-
__getReservationLocation.fromReq = fromReq;
|
|
123
106
|
return __getReservationLocation;
|
|
124
107
|
}
|
|
125
108
|
/**
|
|
@@ -130,15 +113,27 @@ export function getReservationLocation(payload) {
|
|
|
130
113
|
* You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
|
|
131
114
|
*/
|
|
132
115
|
export function updateReservationLocation(payload) {
|
|
133
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateReservationLocationRequest, { _address, _addressLocation, _location, _reservationLocation });
|
|
134
|
-
const { fromJSON: fromRes } = serializer(_updateReservationLocationResponse, {
|
|
135
|
-
_address,
|
|
136
|
-
_addressLocation,
|
|
137
|
-
_location,
|
|
138
|
-
_reservationLocation,
|
|
139
|
-
});
|
|
140
116
|
function __updateReservationLocation({ host }) {
|
|
141
|
-
const serializedData =
|
|
117
|
+
const serializedData = transformPaths(payload, [
|
|
118
|
+
{
|
|
119
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
120
|
+
paths: [{ path: 'mask' }],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
124
|
+
paths: [
|
|
125
|
+
{ path: 'reservationLocation.createdDate' },
|
|
126
|
+
{ path: 'reservationLocation.updatedDate' },
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
131
|
+
paths: [
|
|
132
|
+
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
133
|
+
{ path: 'reservationLocation.location.address.geocode.longitude' },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
]);
|
|
142
137
|
const metadata = {
|
|
143
138
|
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
144
139
|
method: 'PATCH',
|
|
@@ -149,11 +144,27 @@ export function updateReservationLocation(payload) {
|
|
|
149
144
|
host,
|
|
150
145
|
}),
|
|
151
146
|
data: serializedData,
|
|
152
|
-
transformResponse:
|
|
147
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
148
|
+
{
|
|
149
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
150
|
+
paths: [
|
|
151
|
+
{ path: 'reservationLocation.createdDate' },
|
|
152
|
+
{ path: 'reservationLocation.updatedDate' },
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
157
|
+
paths: [
|
|
158
|
+
{ path: 'reservationLocation.location.address.geocode.latitude' },
|
|
159
|
+
{
|
|
160
|
+
path: 'reservationLocation.location.address.geocode.longitude',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
]),
|
|
153
165
|
};
|
|
154
166
|
return metadata;
|
|
155
167
|
}
|
|
156
|
-
__updateReservationLocation.fromReq = fromReq;
|
|
157
168
|
return __updateReservationLocation;
|
|
158
169
|
}
|
|
159
170
|
/**
|
|
@@ -175,30 +186,36 @@ export function updateReservationLocation(payload) {
|
|
|
175
186
|
* The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](#ReservationLocationsQueryResult/items) property in [`ReservationLocationsQueryResult`](#ReservationLocationsQueryResult).
|
|
176
187
|
*/
|
|
177
188
|
export function queryReservationLocations(payload) {
|
|
178
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryReservationLocationsRequest, {});
|
|
179
|
-
const { fromJSON: fromRes } = serializer(_queryReservationLocationsResponse, {
|
|
180
|
-
_address,
|
|
181
|
-
_addressLocation,
|
|
182
|
-
_location,
|
|
183
|
-
_reservationLocation,
|
|
184
|
-
});
|
|
185
189
|
function __queryReservationLocations({ host }) {
|
|
186
|
-
const serializedData = toReq(payload);
|
|
187
190
|
const metadata = {
|
|
188
191
|
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
189
192
|
method: 'POST',
|
|
190
193
|
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.QueryReservationLocations',
|
|
191
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations/query', data: payload, host }),
|
|
195
|
+
data: payload,
|
|
196
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
197
|
+
{
|
|
198
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
199
|
+
paths: [
|
|
200
|
+
{ path: 'reservationLocations.createdDate' },
|
|
201
|
+
{ path: 'reservationLocations.updatedDate' },
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
206
|
+
paths: [
|
|
207
|
+
{
|
|
208
|
+
path: 'reservationLocations.location.address.geocode.latitude',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
path: 'reservationLocations.location.address.geocode.longitude',
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
]),
|
|
198
216
|
};
|
|
199
217
|
return metadata;
|
|
200
218
|
}
|
|
201
|
-
__queryReservationLocations.fromReq = fromReq;
|
|
202
219
|
return __queryReservationLocations;
|
|
203
220
|
}
|
|
204
221
|
/**
|
|
@@ -207,26 +224,36 @@ export function queryReservationLocations(payload) {
|
|
|
207
224
|
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
208
225
|
*/
|
|
209
226
|
export function listReservationLocations(payload) {
|
|
210
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_listReservationLocationsRequest, {});
|
|
211
|
-
const { fromJSON: fromRes } = serializer(_listReservationLocationsResponse, {
|
|
212
|
-
_address,
|
|
213
|
-
_addressLocation,
|
|
214
|
-
_location,
|
|
215
|
-
_reservationLocation,
|
|
216
|
-
});
|
|
217
227
|
function __listReservationLocations({ host }) {
|
|
218
|
-
const serializedData = toReq(payload);
|
|
219
228
|
const metadata = {
|
|
220
229
|
entityFqdn: 'wix.table_reservations.v1.reservation_location',
|
|
221
230
|
method: 'GET',
|
|
222
231
|
methodFqn: 'wix.table_reservations.reservation_location.v1.ReservationLocationsService.ListReservationLocations',
|
|
223
|
-
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations', data:
|
|
224
|
-
params: toURLSearchParams(
|
|
225
|
-
transformResponse:
|
|
232
|
+
url: resolveWixTableReservationsReservationLocationV1ReservationLocationsServiceUrl({ protoPath: '/v1/reservation-locations', data: payload, host }),
|
|
233
|
+
params: toURLSearchParams(payload),
|
|
234
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
235
|
+
{
|
|
236
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
237
|
+
paths: [
|
|
238
|
+
{ path: 'reservationLocations.createdDate' },
|
|
239
|
+
{ path: 'reservationLocations.updatedDate' },
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
244
|
+
paths: [
|
|
245
|
+
{
|
|
246
|
+
path: 'reservationLocations.location.address.geocode.latitude',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
path: 'reservationLocations.location.address.geocode.longitude',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
]),
|
|
226
254
|
};
|
|
227
255
|
return metadata;
|
|
228
256
|
}
|
|
229
|
-
__listReservationLocations.fromReq = fromReq;
|
|
230
257
|
return __listReservationLocations;
|
|
231
258
|
}
|
|
232
259
|
//# sourceMappingURL=table-reservations-v1-reservation-location.http.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-reservations-v1-reservation-location.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-location.http.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBhD,SAAS,8EAA8E,CACrF,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,2CAA2C;gBACpD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EA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,UAAU,wBAAwB,CACtC,OAAwC;IAKxC,SAAS,0BAA0B,CAAC,EAAE,IAAI,EAAO;QAC/C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,gDAAgD;YAC5D,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,qGAAqG;YACvG,GAAG,EAAE,8EAA8E,CACjF,EAAE,SAAS,EAAE,2BAA2B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,kCAAkC,EAAE;wBAC5C,EAAE,IAAI,EAAE,kCAAkC,EAAE;qBAC7C;iBACF;gBACD;oBACE,WAAW,EAAE,4BAA4B;oBACzC,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;qBACF;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,0BAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -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
|
|
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
|
|
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?: {
|
|
@@ -171,7 +171,7 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
|
|
|
171
171
|
} | undefined;
|
|
172
172
|
} | undefined;
|
|
173
173
|
}>;
|
|
174
|
-
export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions
|
|
175
|
-
export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions
|
|
174
|
+
export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
|
|
175
|
+
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>;
|
|
176
176
|
export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, FeaturePeriod, } from './table-reservations-v1-reservation-location.universal';
|
|
177
177
|
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';
|