@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,182 @@
|
|
|
1
|
+
import * as ambassadorWixTableReservationsV1Reservation from './table-reservations-v1-reservation-reservations.http.js';
|
|
2
|
+
export function createReservation() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.createReservation(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'POST',
|
|
12
|
+
path: '/v1/reservations',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function getReservation() {
|
|
21
|
+
const payload = { reservationId: ':reservationId' };
|
|
22
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.getReservation(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'GET',
|
|
30
|
+
path: '/v1/reservations/{reservationId}',
|
|
31
|
+
pathParams: { reservationId: 'reservationId' },
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function updateReservation() {
|
|
39
|
+
const payload = { reservation: { id: ':reservationId' } };
|
|
40
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.updateReservation(payload);
|
|
41
|
+
const getUrl = (context) => {
|
|
42
|
+
const { url } = getRequestOptions(context);
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl,
|
|
47
|
+
httpMethod: 'PATCH',
|
|
48
|
+
path: '/v1/reservations/{reservation.id}',
|
|
49
|
+
pathParams: { reservationId: 'reservationId' },
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function createHeldReservation() {
|
|
57
|
+
const payload = {};
|
|
58
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.createHeldReservation(payload);
|
|
59
|
+
const getUrl = (context) => {
|
|
60
|
+
const { url } = getRequestOptions(context);
|
|
61
|
+
return url;
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
getUrl,
|
|
65
|
+
httpMethod: 'POST',
|
|
66
|
+
path: '/v1/reservations/hold',
|
|
67
|
+
pathParams: {},
|
|
68
|
+
__requestType: null,
|
|
69
|
+
__originalRequestType: null,
|
|
70
|
+
__responseType: null,
|
|
71
|
+
__originalResponseType: null,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export function reserveReservation() {
|
|
75
|
+
const payload = { reservationId: ':reservationId' };
|
|
76
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.reserveReservation(payload);
|
|
77
|
+
const getUrl = (context) => {
|
|
78
|
+
const { url } = getRequestOptions(context);
|
|
79
|
+
return url;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
getUrl,
|
|
83
|
+
httpMethod: 'POST',
|
|
84
|
+
path: '/v1/reservations/{reservationId}/reserve',
|
|
85
|
+
pathParams: { reservationId: 'reservationId' },
|
|
86
|
+
__requestType: null,
|
|
87
|
+
__originalRequestType: null,
|
|
88
|
+
__responseType: null,
|
|
89
|
+
__originalResponseType: null,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export function cancelReservation() {
|
|
93
|
+
const payload = { reservationId: ':reservationId' };
|
|
94
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.cancelReservation(payload);
|
|
95
|
+
const getUrl = (context) => {
|
|
96
|
+
const { url } = getRequestOptions(context);
|
|
97
|
+
return url;
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
getUrl,
|
|
101
|
+
httpMethod: 'POST',
|
|
102
|
+
path: '/v1/reservations/{reservationId}/cancel',
|
|
103
|
+
pathParams: { reservationId: 'reservationId' },
|
|
104
|
+
__requestType: null,
|
|
105
|
+
__originalRequestType: null,
|
|
106
|
+
__responseType: null,
|
|
107
|
+
__originalResponseType: null,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export function deleteReservation() {
|
|
111
|
+
const payload = { reservationId: ':reservationId' };
|
|
112
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.deleteReservation(payload);
|
|
113
|
+
const getUrl = (context) => {
|
|
114
|
+
const { url } = getRequestOptions(context);
|
|
115
|
+
return url;
|
|
116
|
+
};
|
|
117
|
+
return {
|
|
118
|
+
getUrl,
|
|
119
|
+
httpMethod: 'DELETE',
|
|
120
|
+
path: '/v1/reservations/{reservationId}',
|
|
121
|
+
pathParams: { reservationId: 'reservationId' },
|
|
122
|
+
__requestType: null,
|
|
123
|
+
__originalRequestType: null,
|
|
124
|
+
__responseType: null,
|
|
125
|
+
__originalResponseType: null,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export function listReservations() {
|
|
129
|
+
const payload = {};
|
|
130
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.listReservations(payload);
|
|
131
|
+
const getUrl = (context) => {
|
|
132
|
+
const { url } = getRequestOptions(context);
|
|
133
|
+
return url;
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
getUrl,
|
|
137
|
+
httpMethod: 'GET',
|
|
138
|
+
path: '/v1/reservations',
|
|
139
|
+
pathParams: {},
|
|
140
|
+
__requestType: null,
|
|
141
|
+
__originalRequestType: null,
|
|
142
|
+
__responseType: null,
|
|
143
|
+
__originalResponseType: null,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export function queryReservations() {
|
|
147
|
+
const payload = {};
|
|
148
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.queryReservations(payload);
|
|
149
|
+
const getUrl = (context) => {
|
|
150
|
+
const { url } = getRequestOptions(context);
|
|
151
|
+
return url;
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
getUrl,
|
|
155
|
+
httpMethod: 'POST',
|
|
156
|
+
path: '/v1/reservations/query',
|
|
157
|
+
pathParams: {},
|
|
158
|
+
__requestType: null,
|
|
159
|
+
__originalRequestType: null,
|
|
160
|
+
__responseType: null,
|
|
161
|
+
__originalResponseType: null,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export function searchReservations() {
|
|
165
|
+
const payload = {};
|
|
166
|
+
const getRequestOptions = ambassadorWixTableReservationsV1Reservation.searchReservations(payload);
|
|
167
|
+
const getUrl = (context) => {
|
|
168
|
+
const { url } = getRequestOptions(context);
|
|
169
|
+
return url;
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
getUrl,
|
|
173
|
+
httpMethod: 'POST',
|
|
174
|
+
path: '/v1/reservations/search',
|
|
175
|
+
pathParams: {},
|
|
176
|
+
__requestType: null,
|
|
177
|
+
__originalRequestType: null,
|
|
178
|
+
__responseType: null,
|
|
179
|
+
__originalResponseType: null,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
//# 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,OAAO,KAAK,2CAA2C,MAAM,0DAA0D,CAAC;AAsBxH,MAAM,UAAU,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,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,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AAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -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,94 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
4
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
5
|
+
import { cancelReservation as universalCancelReservation, createHeldReservation as universalCreateHeldReservation, createReservation as universalCreateReservation, deleteReservation as universalDeleteReservation, getReservation as universalGetReservation, listReservations as universalListReservations, queryReservations as universalQueryReservations, reserveReservation as universalReserveReservation, searchReservations as universalSearchReservations, updateReservation as universalUpdateReservation, } from './table-reservations-v1-reservation-reservations.universal.js';
|
|
6
|
+
export const __metadata = { PACKAGE_NAME: '@wix/table-reservations' };
|
|
7
|
+
export function createReservation(httpClient) {
|
|
8
|
+
return (reservation, options) => universalCreateReservation(reservation, options,
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
{ httpClient });
|
|
11
|
+
}
|
|
12
|
+
export function getReservation(httpClient) {
|
|
13
|
+
return (reservationId, options) => universalGetReservation(reservationId, options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
export function updateReservation(httpClient) {
|
|
18
|
+
return (_id, reservation, options) => universalUpdateReservation(_id, reservation, options,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
export function createHeldReservation(httpClient) {
|
|
23
|
+
return (reservationDetails) => universalCreateHeldReservation(reservationDetails,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
export function reserveReservation(httpClient) {
|
|
28
|
+
return (reservationId, reservee, revision) => universalReserveReservation(reservationId, reservee, revision,
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
{ httpClient });
|
|
31
|
+
}
|
|
32
|
+
export function cancelReservation(httpClient) {
|
|
33
|
+
return (reservationId, revision, options) => universalCancelReservation(reservationId, revision, options,
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
{ httpClient });
|
|
36
|
+
}
|
|
37
|
+
export function deleteReservation(httpClient) {
|
|
38
|
+
return (reservationId) => universalDeleteReservation(reservationId,
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
{ httpClient });
|
|
41
|
+
}
|
|
42
|
+
export function listReservations(httpClient) {
|
|
43
|
+
return (options) => universalListReservations(options,
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
{ httpClient });
|
|
46
|
+
}
|
|
47
|
+
export function queryReservations(httpClient) {
|
|
48
|
+
return () => universalQueryReservations(
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
{ httpClient });
|
|
51
|
+
}
|
|
52
|
+
export function searchReservations(httpClient) {
|
|
53
|
+
return (search) => universalSearchReservations(search,
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
{ httpClient });
|
|
56
|
+
}
|
|
57
|
+
export const onReservationCreated = EventDefinition('wix.table_reservations.v1.reservation_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
58
|
+
{
|
|
59
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
60
|
+
paths: [
|
|
61
|
+
{ path: 'entity.createdDate' },
|
|
62
|
+
{ path: 'entity.updatedDate' },
|
|
63
|
+
{ path: 'entity.details.startDate' },
|
|
64
|
+
{ path: 'entity.details.endDate' },
|
|
65
|
+
{ path: 'metadata.eventTime' },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
])))();
|
|
69
|
+
export const onReservationDeleted = EventDefinition('wix.table_reservations.v1.reservation_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
70
|
+
{
|
|
71
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
72
|
+
paths: [
|
|
73
|
+
{ path: 'undefined.createdDate' },
|
|
74
|
+
{ path: 'undefined.updatedDate' },
|
|
75
|
+
{ path: 'undefined.details.startDate' },
|
|
76
|
+
{ path: 'undefined.details.endDate' },
|
|
77
|
+
{ path: 'metadata.eventTime' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
])))();
|
|
81
|
+
export const onReservationUpdated = EventDefinition('wix.table_reservations.v1.reservation_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
82
|
+
{
|
|
83
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
84
|
+
paths: [
|
|
85
|
+
{ path: 'entity.createdDate' },
|
|
86
|
+
{ path: 'entity.updatedDate' },
|
|
87
|
+
{ path: 'entity.details.startDate' },
|
|
88
|
+
{ path: 'entity.details.endDate' },
|
|
89
|
+
{ path: 'metadata.eventTime' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
])))();
|
|
93
|
+
export { AggregationType, Interval, MissingValues, Mode, NestedAggregationType, PaymentStatus, ScalarType, Set, SortDirection, SortOrder, SortType, Source, Status, TableCombinationConflictType, Type, WebhookIdentityType, } from './table-reservations-v1-reservation-reservations.universal.js';
|
|
94
|
+
//# 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,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EA0BL,iBAAiB,IAAI,0BAA0B,EAC/C,qBAAqB,IAAI,8BAA8B,EACvD,iBAAiB,IAAI,0BAA0B,EAC/C,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,IAAI,uBAAuB,EACzC,gBAAgB,IAAI,yBAAyB,EAC7C,iBAAiB,IAAI,0BAA0B,EAC/C,kBAAkB,IAAI,2BAA2B,EACjD,kBAAkB,IAAI,2BAA2B,EACjD,iBAAiB,IAAI,0BAA0B,GAChD,MAAM,+DAA+D,CAAC;AAEvE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,MAAM,UAAU,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,0BAA0B,CACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmCD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,C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