@wix/auto_sdk_table-reservations_reservations 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.context.d.ts +30 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.context.js +49 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.context.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.http.d.ts +96 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.http.js +561 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.http.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.meta.d.ts +32 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.meta.js +218 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.meta.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.public.d.ts +161 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.public.js +123 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.public.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.types.d.ts +1149 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.types.js +180 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.types.js.map +1 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.universal.d.ts +1740 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.universal.js +775 -0
- package/build/cjs/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.context.d.ts +30 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.context.js +30 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.context.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.http.d.ts +96 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.http.js +548 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.http.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.meta.d.ts +32 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.meta.js +182 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.meta.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.public.d.ts +161 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.public.js +94 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.public.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.types.d.ts +1149 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.types.js +177 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.types.js.map +1 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.universal.d.ts +1740 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.universal.js +739 -0
- package/build/es/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.context.d.ts +30 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.context.js +49 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.context.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.http.d.ts +96 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.http.js +561 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.http.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.meta.d.ts +32 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.meta.js +218 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.meta.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.public.d.ts +161 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.public.js +123 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.public.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.types.d.ts +1149 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.types.js +180 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.types.js.map +1 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.universal.d.ts +1740 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.universal.js +775 -0
- package/build/internal/cjs/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.context.d.ts +30 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.context.js +30 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.context.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.http.d.ts +96 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.http.js +548 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.http.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.meta.d.ts +32 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.meta.js +182 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.meta.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.public.d.ts +161 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.public.js +94 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.public.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.types.d.ts +1149 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.types.js +177 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.types.js.map +1 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.universal.d.ts +1740 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.universal.js +739 -0
- package/build/internal/es/src/table-reservations-v1-reservation-reservations.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = 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);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.searchReservations = exports.queryReservations = exports.listReservations = exports.deleteReservation = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = void 0;
|
|
27
|
+
const ambassadorWixTableReservationsV1Reservation = __importStar(require("./table-reservations-v1-reservation-reservations.http.js"));
|
|
28
|
+
function createReservation() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.createReservation(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v1/reservations',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.createReservation = createReservation;
|
|
47
|
+
function getReservation() {
|
|
48
|
+
const payload = { reservationId: ':reservationId' };
|
|
49
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.getReservation(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v1/reservations/{reservationId}',
|
|
58
|
+
pathParams: { reservationId: 'reservationId' },
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.getReservation = getReservation;
|
|
66
|
+
function updateReservation() {
|
|
67
|
+
const payload = { reservation: { id: ':reservationId' } };
|
|
68
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.updateReservation(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'PATCH',
|
|
76
|
+
path: '/v1/reservations/{reservation.id}',
|
|
77
|
+
pathParams: { reservationId: 'reservationId' },
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.updateReservation = updateReservation;
|
|
85
|
+
function createHeldReservation() {
|
|
86
|
+
const payload = {};
|
|
87
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.createHeldReservation(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'POST',
|
|
95
|
+
path: '/v1/reservations/hold',
|
|
96
|
+
pathParams: {},
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.createHeldReservation = createHeldReservation;
|
|
104
|
+
function reserveReservation() {
|
|
105
|
+
const payload = { reservationId: ':reservationId' };
|
|
106
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.reserveReservation(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'POST',
|
|
114
|
+
path: '/v1/reservations/{reservationId}/reserve',
|
|
115
|
+
pathParams: { reservationId: 'reservationId' },
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.reserveReservation = reserveReservation;
|
|
123
|
+
function cancelReservation() {
|
|
124
|
+
const payload = { reservationId: ':reservationId' };
|
|
125
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.cancelReservation(payload);
|
|
126
|
+
const getUrl = (context) => {
|
|
127
|
+
const { url } = getRequestOptions(context);
|
|
128
|
+
return url;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
getUrl,
|
|
132
|
+
httpMethod: 'POST',
|
|
133
|
+
path: '/v1/reservations/{reservationId}/cancel',
|
|
134
|
+
pathParams: { reservationId: 'reservationId' },
|
|
135
|
+
__requestType: null,
|
|
136
|
+
__originalRequestType: null,
|
|
137
|
+
__responseType: null,
|
|
138
|
+
__originalResponseType: null,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
exports.cancelReservation = cancelReservation;
|
|
142
|
+
function deleteReservation() {
|
|
143
|
+
const payload = { reservationId: ':reservationId' };
|
|
144
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.deleteReservation(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: 'DELETE',
|
|
152
|
+
path: '/v1/reservations/{reservationId}',
|
|
153
|
+
pathParams: { reservationId: 'reservationId' },
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
exports.deleteReservation = deleteReservation;
|
|
161
|
+
function listReservations() {
|
|
162
|
+
const payload = {};
|
|
163
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.listReservations(payload);
|
|
164
|
+
const getUrl = (context) => {
|
|
165
|
+
const { url } = getRequestOptions(context);
|
|
166
|
+
return url;
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
getUrl,
|
|
170
|
+
httpMethod: 'GET',
|
|
171
|
+
path: '/v1/reservations',
|
|
172
|
+
pathParams: {},
|
|
173
|
+
__requestType: null,
|
|
174
|
+
__originalRequestType: null,
|
|
175
|
+
__responseType: null,
|
|
176
|
+
__originalResponseType: null,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
exports.listReservations = listReservations;
|
|
180
|
+
function queryReservations() {
|
|
181
|
+
const payload = {};
|
|
182
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.queryReservations(payload);
|
|
183
|
+
const getUrl = (context) => {
|
|
184
|
+
const { url } = getRequestOptions(context);
|
|
185
|
+
return url;
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
getUrl,
|
|
189
|
+
httpMethod: 'POST',
|
|
190
|
+
path: '/v1/reservations/query',
|
|
191
|
+
pathParams: {},
|
|
192
|
+
__requestType: null,
|
|
193
|
+
__originalRequestType: null,
|
|
194
|
+
__responseType: null,
|
|
195
|
+
__originalResponseType: null,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
exports.queryReservations = queryReservations;
|
|
199
|
+
function searchReservations() {
|
|
200
|
+
const payload = {};
|
|
201
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.searchReservations(payload);
|
|
202
|
+
const getUrl = (context) => {
|
|
203
|
+
const { url } = getRequestOptions(context);
|
|
204
|
+
return url;
|
|
205
|
+
};
|
|
206
|
+
return {
|
|
207
|
+
getUrl,
|
|
208
|
+
httpMethod: 'POST',
|
|
209
|
+
path: '/v1/reservations/search',
|
|
210
|
+
pathParams: {},
|
|
211
|
+
__requestType: null,
|
|
212
|
+
__originalRequestType: null,
|
|
213
|
+
__responseType: null,
|
|
214
|
+
__originalResponseType: null,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
exports.searchReservations = searchReservations;
|
|
218
|
+
//# sourceMappingURL=table-reservations-v1-reservation-reservations.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-reservations.meta.js","sourceRoot":"","sources":["../../../../src/table-reservations-v1-reservation-reservations.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sIAAwH;AAsBxH,SAAgB,iBAAiB;IAU/B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,2CAA2C,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAEzE,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,kBAAkB;QACxB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE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UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,gDA8BC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CancelReservationOptions, CancelReservationResponse, CancelReservationResponseNonNullableFields, CreateHeldReservationResponse, CreateHeldReservationResponseNonNullableFields, CreateReservationOptions, CursorSearch, GetReservationOptions, HeldReservationDetails, ListReservationsOptions, ListReservationsResponse, ListReservationsResponseNonNullableFields, Reservation, ReservationCreatedEnvelope, ReservationDeletedEnvelope, ReservationNonNullableFields, ReservationUpdatedEnvelope, ReservationsQueryBuilder, ReserveReservationResponse, ReserveReservationResponseNonNullableFields, Reservee, SearchReservationsResponse, SearchReservationsResponseNonNullableFields, UpdateReservation, UpdateReservationOptions } from './table-reservations-v1-reservation-reservations.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createReservation(httpClient: HttpClient): CreateReservationSignature;
|
|
7
|
+
interface CreateReservationSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new reservation.
|
|
10
|
+
*
|
|
11
|
+
* `createReservation()` accepts and requires different fields depending on the `status` provided and your permissions.
|
|
12
|
+
*
|
|
13
|
+
* **Status and source**
|
|
14
|
+
*
|
|
15
|
+
* If a `status` is not provided, it will be set to:
|
|
16
|
+
* * `RESERVED` if manual approval is not required for confirmation
|
|
17
|
+
* * `REQUESTED` if manual approval is required for confirmation.
|
|
18
|
+
*
|
|
19
|
+
* A reservation created with any `source` other than `WALK_IN` requires the `reservation.reservee.phone` and `reservation.reservee.firstName` fields.
|
|
20
|
+
* Attempting to create a reservation without these fields will result in an error.
|
|
21
|
+
*
|
|
22
|
+
* **Permissions**
|
|
23
|
+
*
|
|
24
|
+
* Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, or `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
|
|
25
|
+
*
|
|
26
|
+
* If `source` is not provided, its value is set depending on the permissions of the user making the call. See this API's Introduction article for more information.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
|
|
30
|
+
* @param - Reservation details.
|
|
31
|
+
* @param - Options for creating the reservation.
|
|
32
|
+
* @returns Reservation.
|
|
33
|
+
*/
|
|
34
|
+
(reservation: Reservation, options?: CreateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
35
|
+
}
|
|
36
|
+
export declare function getReservation(httpClient: HttpClient): GetReservationSignature;
|
|
37
|
+
interface GetReservationSignature {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves a reservation.
|
|
40
|
+
*
|
|
41
|
+
* Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
|
|
42
|
+
* @param - Reservation ID.
|
|
43
|
+
* @returns Reservation.
|
|
44
|
+
*/
|
|
45
|
+
(reservationId: string, options?: GetReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
46
|
+
}
|
|
47
|
+
export declare function updateReservation(httpClient: HttpClient): UpdateReservationSignature;
|
|
48
|
+
interface UpdateReservationSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Updates a reservation.
|
|
51
|
+
*
|
|
52
|
+
* Including the fields `status`, `source`, `reservation.details.tableIds`, `reservation.details.endDate`, `ignoreReservationLocationConflicts`, and `ignoreTableCombinationConflicts` in the request requires additional permissions. See this API's Introduction article for more information.
|
|
53
|
+
*
|
|
54
|
+
* Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
|
|
55
|
+
* @param - Reservation ID.
|
|
56
|
+
* @param - Options for updating the reservation.
|
|
57
|
+
* @param - Reservation information to update.
|
|
58
|
+
* @returns Reservation.
|
|
59
|
+
*/
|
|
60
|
+
(_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
61
|
+
}
|
|
62
|
+
export declare function createHeldReservation(httpClient: HttpClient): CreateHeldReservationSignature;
|
|
63
|
+
interface CreateHeldReservationSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new temporary reservation and holds it for the customer for 10 minutes.
|
|
66
|
+
*
|
|
67
|
+
* Creates a new reservation with the `HELD` status. `HELD` reservations are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to change a `HELD` reservation’s status after 10 minutes returns an error.
|
|
68
|
+
*
|
|
69
|
+
* You cannot call `updateReservation()` to change a reservation’s status from `HELD`. Trying to do so returns an error. Instead, you should use `reserveReservation()`.
|
|
70
|
+
*
|
|
71
|
+
* If you do not wish to have `HELD` reservations in your flow, you can create a reservation with all required details using `createReservation()`.
|
|
72
|
+
*
|
|
73
|
+
* @param - Held reservation information to update.
|
|
74
|
+
*/
|
|
75
|
+
(reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
76
|
+
}
|
|
77
|
+
export declare function reserveReservation(httpClient: HttpClient): ReserveReservationSignature;
|
|
78
|
+
interface ReserveReservationSignature {
|
|
79
|
+
/**
|
|
80
|
+
* Reserves or requests a held reservation.
|
|
81
|
+
*
|
|
82
|
+
* Held reservations are temporary reservations with the `HELD` status created by `createHeldReservation()`.
|
|
83
|
+
*
|
|
84
|
+
* They are intended to reserve seats and tables for a party in a selected time slot while they enter further reservation details, such as names and contact information. Reservations with the `HELD` status are only valid for 10 minutes. Trying to call `Reserve Reservation` with a held reservation older than 10 minutes returns an error.
|
|
85
|
+
*
|
|
86
|
+
* `Reserve Reservation` changes a reservation's `HELD` status to:
|
|
87
|
+
* * `RESERVED` if the reservation's reservation location does not require manual approval.
|
|
88
|
+
* * `REQUESTED` if the reservation's reservation location requires manual approval.
|
|
89
|
+
* @param - Reservation ID.
|
|
90
|
+
* @param - Reservee details.
|
|
91
|
+
* @param - Revision number.
|
|
92
|
+
*
|
|
93
|
+
* Specify the existing `revision` to prevent conflicting updates to reservations.
|
|
94
|
+
*/
|
|
95
|
+
(reservationId: string, reservee: Reservee, revision: string | null): Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
96
|
+
}
|
|
97
|
+
export declare function cancelReservation(httpClient: HttpClient): CancelReservationSignature;
|
|
98
|
+
interface CancelReservationSignature {
|
|
99
|
+
/**
|
|
100
|
+
* Cancels a reservation.
|
|
101
|
+
*
|
|
102
|
+
* Sets the reservation status to `CANCELED`.
|
|
103
|
+
* @param - Reservation ID.
|
|
104
|
+
* @param - Revision number.
|
|
105
|
+
*
|
|
106
|
+
* Specify the existing `revision` to prevent conflicting updates to reservations.
|
|
107
|
+
* @param - Options for canceling the reservation.
|
|
108
|
+
*/
|
|
109
|
+
(reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined): Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
110
|
+
}
|
|
111
|
+
export declare function deleteReservation(httpClient: HttpClient): DeleteReservationSignature;
|
|
112
|
+
interface DeleteReservationSignature {
|
|
113
|
+
/**
|
|
114
|
+
* Deletes a reservation. Only reservations with the `HELD` status can be deleted.
|
|
115
|
+
* @param - Reservation ID.
|
|
116
|
+
*/
|
|
117
|
+
(reservationId: string): Promise<void>;
|
|
118
|
+
}
|
|
119
|
+
export declare function listReservations(httpClient: HttpClient): ListReservationsSignature;
|
|
120
|
+
interface ListReservationsSignature {
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves a list of up to 100 reservations.
|
|
123
|
+
* @param - Options for listing the reservations.
|
|
124
|
+
*/
|
|
125
|
+
(options?: ListReservationsOptions | undefined): Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
126
|
+
}
|
|
127
|
+
export declare function queryReservations(httpClient: HttpClient): QueryReservationsSignature;
|
|
128
|
+
interface QueryReservationsSignature {
|
|
129
|
+
/**
|
|
130
|
+
* Creates a query to retrieve a list of reservations.
|
|
131
|
+
*
|
|
132
|
+
* The `queryReservations()` function builds a query to retrieve a list of reservations and returns a [`ReservationsQueryBuilder`](/reservations/reservations-query-builder) object.
|
|
133
|
+
*
|
|
134
|
+
* The returned object contains the query definition, which is used to run the query using the [find()](/reservations/reservations-query-builder/find) function.
|
|
135
|
+
*
|
|
136
|
+
* You can refine the query by chaining `ReservationsQueryBuilder` functions onto the query. `ReservationsQueryBuilder` functions enable you to filter, sort, and control the results that `queryReservations()` returns.
|
|
137
|
+
*
|
|
138
|
+
* `queryReservations()` runs with the following `ReservationsQueryBuilder` defaults, which you can override:
|
|
139
|
+
*
|
|
140
|
+
* * [`limit(50)`](/reservations/reservations-query-builder/limit)
|
|
141
|
+
* * [`descending('_createdDate')`](/reservations/reservations-query-builder/descending)
|
|
142
|
+
*
|
|
143
|
+
* The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](/reservations/reservations-query-builder/items) property in [`ReservationsQueryResult`](/reservations/reservations-query-result).
|
|
144
|
+
*/
|
|
145
|
+
(): ReservationsQueryBuilder;
|
|
146
|
+
}
|
|
147
|
+
export declare function searchReservations(httpClient: HttpClient): SearchReservationsSignature;
|
|
148
|
+
interface SearchReservationsSignature {
|
|
149
|
+
/**
|
|
150
|
+
* Use this method to search the fields of the table reservations on a site for a given expression.
|
|
151
|
+
*
|
|
152
|
+
* You can also use this method to perform data aggregations on a site's table reservation fields.
|
|
153
|
+
* For a detailed list of supported operations, see the [Sorting, Filtering, and Search](https://dev.wix.com/docs/rest/api-reference/wix-restaurants/reservations/reservations/sorting-filtering-and-search) article.
|
|
154
|
+
* @param - Search query.
|
|
155
|
+
*/
|
|
156
|
+
(search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
157
|
+
}
|
|
158
|
+
export declare const onReservationCreated: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
159
|
+
export declare const onReservationDeleted: EventDefinition<ReservationDeletedEnvelope, "wix.table_reservations.v1.reservation_deleted">;
|
|
160
|
+
export declare const onReservationUpdated: EventDefinition<ReservationUpdatedEnvelope, "wix.table_reservations.v1.reservation_updated">;
|
|
161
|
+
export { ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, BaseEventMetadata, CancelReservationOptions, CancelReservationRequest, CancelReservationResponse, CancelReservationResponseNonNullableFields, CreateHeldReservationRequest, CreateHeldReservationResponse, CreateHeldReservationResponseNonNullableFields, CreateReservationOptions, CreateReservationRequest, CreateReservationResponse, CreateReservationResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteReservationRequest, DeleteReservationResponse, Details, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetReservationOptions, GetReservationRequest, GetReservationResponse, GetReservationResponseNonNullableFields, GroupByValueResults, HeadersEntry, HeldReservationDetails, IdentificationData, IdentificationDataIdOneOf, IncludeMissingValuesOptions, Interval, ListReservationsOptions, ListReservationsRequest, ListReservationsResponse, ListReservationsResponseNonNullableFields, MessageEnvelope, MigrationNote, MissingValues, Mode, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, PathParametersEntry, PaymentStatus, QueryParametersEntry, QueryReservationsRequest, QueryReservationsResponse, QueryReservationsResponseNonNullableFields, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, RawHttpRequest, RawHttpResponse, RemoveReservationMigrationNotesRequest, RemoveReservationMigrationNotesResponse, Reservation, ReservationCanceled, ReservationCreated, ReservationCreatedEnvelope, ReservationDelayedDomainEvent, ReservationDelayedDomainEventBodyTypeOneOf, ReservationDelayedDomainEventReservationCanceled, ReservationDeletedEnvelope, ReservationDetailsConflicts, ReservationLocationConflict, ReservationNonNullableFields, ReservationUpdated, ReservationUpdatedEnvelope, ReservationsQueryBuilder, ReservationsQueryResult, ReserveReservationRequest, ReserveReservationResponse, ReserveReservationResponseNonNullableFields, ReservedBy, Reservee, RestoreInfo, Results, ScalarAggregation, ScalarResult, ScalarType, SearchDetails, SearchReservationsRequest, SearchReservationsResponse, SearchReservationsResponseNonNullableFields, Set, SortDirection, SortOrder, SortType, Sorting, Source, Status, TableCombinationConflict, TableCombinationConflictType, TableWithReservationConflicts, Tables, Type, UpdateReservation, UpdateReservationOptions, UpdateReservationRequest, UpdateReservationResponse, UpdateReservationResponseNonNullableFields, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, } from './table-reservations-v1-reservation-reservations.universal.js';
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Type = exports.TableCombinationConflictType = exports.Status = exports.Source = exports.SortType = exports.SortOrder = exports.SortDirection = exports.Set = exports.ScalarType = exports.PaymentStatus = exports.NestedAggregationType = exports.Mode = exports.MissingValues = exports.Interval = exports.AggregationType = exports.onReservationUpdated = exports.onReservationDeleted = exports.onReservationCreated = exports.searchReservations = exports.queryReservations = exports.listReservations = exports.deleteReservation = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const table_reservations_v1_reservation_reservations_universal_js_1 = require("./table-reservations-v1-reservation-reservations.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/table-reservations' };
|
|
10
|
+
function createReservation(httpClient) {
|
|
11
|
+
return (reservation, options) => (0, table_reservations_v1_reservation_reservations_universal_js_1.createReservation)(reservation, options,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.createReservation = createReservation;
|
|
16
|
+
function getReservation(httpClient) {
|
|
17
|
+
return (reservationId, options) => (0, table_reservations_v1_reservation_reservations_universal_js_1.getReservation)(reservationId, options,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.getReservation = getReservation;
|
|
22
|
+
function updateReservation(httpClient) {
|
|
23
|
+
return (_id, reservation, options) => (0, table_reservations_v1_reservation_reservations_universal_js_1.updateReservation)(_id, reservation, options,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
exports.updateReservation = updateReservation;
|
|
28
|
+
function createHeldReservation(httpClient) {
|
|
29
|
+
return (reservationDetails) => (0, table_reservations_v1_reservation_reservations_universal_js_1.createHeldReservation)(reservationDetails,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
exports.createHeldReservation = createHeldReservation;
|
|
34
|
+
function reserveReservation(httpClient) {
|
|
35
|
+
return (reservationId, reservee, revision) => (0, table_reservations_v1_reservation_reservations_universal_js_1.reserveReservation)(reservationId, reservee, revision,
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
exports.reserveReservation = reserveReservation;
|
|
40
|
+
function cancelReservation(httpClient) {
|
|
41
|
+
return (reservationId, revision, options) => (0, table_reservations_v1_reservation_reservations_universal_js_1.cancelReservation)(reservationId, revision, options,
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
{ httpClient });
|
|
44
|
+
}
|
|
45
|
+
exports.cancelReservation = cancelReservation;
|
|
46
|
+
function deleteReservation(httpClient) {
|
|
47
|
+
return (reservationId) => (0, table_reservations_v1_reservation_reservations_universal_js_1.deleteReservation)(reservationId,
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
{ httpClient });
|
|
50
|
+
}
|
|
51
|
+
exports.deleteReservation = deleteReservation;
|
|
52
|
+
function listReservations(httpClient) {
|
|
53
|
+
return (options) => (0, table_reservations_v1_reservation_reservations_universal_js_1.listReservations)(options,
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
{ httpClient });
|
|
56
|
+
}
|
|
57
|
+
exports.listReservations = listReservations;
|
|
58
|
+
function queryReservations(httpClient) {
|
|
59
|
+
return () => (0, table_reservations_v1_reservation_reservations_universal_js_1.queryReservations)(
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
{ httpClient });
|
|
62
|
+
}
|
|
63
|
+
exports.queryReservations = queryReservations;
|
|
64
|
+
function searchReservations(httpClient) {
|
|
65
|
+
return (search) => (0, table_reservations_v1_reservation_reservations_universal_js_1.searchReservations)(search,
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
{ httpClient });
|
|
68
|
+
}
|
|
69
|
+
exports.searchReservations = searchReservations;
|
|
70
|
+
exports.onReservationCreated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
71
|
+
{
|
|
72
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
73
|
+
paths: [
|
|
74
|
+
{ path: 'entity.createdDate' },
|
|
75
|
+
{ path: 'entity.updatedDate' },
|
|
76
|
+
{ path: 'entity.details.startDate' },
|
|
77
|
+
{ path: 'entity.details.endDate' },
|
|
78
|
+
{ path: 'metadata.eventTime' },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
])))();
|
|
82
|
+
exports.onReservationDeleted = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
83
|
+
{
|
|
84
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
85
|
+
paths: [
|
|
86
|
+
{ path: 'undefined.createdDate' },
|
|
87
|
+
{ path: 'undefined.updatedDate' },
|
|
88
|
+
{ path: 'undefined.details.startDate' },
|
|
89
|
+
{ path: 'undefined.details.endDate' },
|
|
90
|
+
{ path: 'metadata.eventTime' },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
])))();
|
|
94
|
+
exports.onReservationUpdated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
95
|
+
{
|
|
96
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
97
|
+
paths: [
|
|
98
|
+
{ path: 'entity.createdDate' },
|
|
99
|
+
{ path: 'entity.updatedDate' },
|
|
100
|
+
{ path: 'entity.details.startDate' },
|
|
101
|
+
{ path: 'entity.details.endDate' },
|
|
102
|
+
{ path: 'metadata.eventTime' },
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
])))();
|
|
106
|
+
var table_reservations_v1_reservation_reservations_universal_js_2 = require("./table-reservations-v1-reservation-reservations.universal.js");
|
|
107
|
+
Object.defineProperty(exports, "AggregationType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.AggregationType; } });
|
|
108
|
+
Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Interval; } });
|
|
109
|
+
Object.defineProperty(exports, "MissingValues", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.MissingValues; } });
|
|
110
|
+
Object.defineProperty(exports, "Mode", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Mode; } });
|
|
111
|
+
Object.defineProperty(exports, "NestedAggregationType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.NestedAggregationType; } });
|
|
112
|
+
Object.defineProperty(exports, "PaymentStatus", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.PaymentStatus; } });
|
|
113
|
+
Object.defineProperty(exports, "ScalarType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.ScalarType; } });
|
|
114
|
+
Object.defineProperty(exports, "Set", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Set; } });
|
|
115
|
+
Object.defineProperty(exports, "SortDirection", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.SortDirection; } });
|
|
116
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.SortOrder; } });
|
|
117
|
+
Object.defineProperty(exports, "SortType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.SortType; } });
|
|
118
|
+
Object.defineProperty(exports, "Source", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Source; } });
|
|
119
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Status; } });
|
|
120
|
+
Object.defineProperty(exports, "TableCombinationConflictType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.TableCombinationConflictType; } });
|
|
121
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.Type; } });
|
|
122
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return table_reservations_v1_reservation_reservations_universal_js_2.WebhookIdentityType; } });
|
|
123
|
+
//# sourceMappingURL=table-reservations-v1-reservation-reservations.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-reservations-v1-reservation-reservations.public.js","sourceRoot":"","sources":["../../../../src/table-reservations-v1-reservation-reservations.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,+IAoCuE;AAE1D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,IAAA,+EAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,8CAUC;AAmCD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,aAAqB,EAAE,OAA+B,EAAE,EAAE,CAChE,IAAA,4EAAuB,EACrB,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,wCAUC;AAeD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,GAAkB,EAClB,WAA8B,EAC9B,OAAkC,EAClC,EAAE,CACF,IAAA,+EAA0B,EACxB,GAAG,EACH,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAfD,8CA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