@wix/table-reservations 1.0.98 → 1.0.100
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/package.json +5 -6
- package/type-bundles/context.bundle.d.ts +126 -42
- package/type-bundles/index.bundle.d.ts +147 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/table-reservations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/table-reservations_reservation-locations": "1.0.
|
|
22
|
-
"@wix/table-reservations_reservations": "1.0.
|
|
23
|
-
"@wix/table-reservations_time-slots": "1.0.
|
|
21
|
+
"@wix/table-reservations_reservation-locations": "1.0.35",
|
|
22
|
+
"@wix/table-reservations_reservations": "1.0.31",
|
|
23
|
+
"@wix/table-reservations_time-slots": "1.0.24"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
27
26
|
"glob": "^10.4.1",
|
|
28
27
|
"rollup": "^4.18.0",
|
|
29
28
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -45,5 +44,5 @@
|
|
|
45
44
|
"fqdn": ""
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "a5f296fb70f87cafa7122e948134218bbc23bcc69107daeee869abf6"
|
|
49
48
|
}
|
|
@@ -941,74 +941,82 @@ interface ReservationsQueryBuilder {
|
|
|
941
941
|
find: () => Promise<ReservationsQueryResult>;
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
945
|
-
interface HttpClient {
|
|
946
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
944
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
945
|
+
interface HttpClient$2 {
|
|
946
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
947
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
947
948
|
}
|
|
948
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
949
|
-
type HttpResponse<T = any> = {
|
|
949
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
950
|
+
type HttpResponse$2<T = any> = {
|
|
950
951
|
data: T;
|
|
951
952
|
status: number;
|
|
952
953
|
statusText: string;
|
|
953
954
|
headers: any;
|
|
954
955
|
request?: any;
|
|
955
956
|
};
|
|
956
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
957
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
957
958
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
958
959
|
url: string;
|
|
959
960
|
data?: Data;
|
|
960
961
|
params?: URLSearchParams;
|
|
961
|
-
} & APIMetadata;
|
|
962
|
-
type APIMetadata = {
|
|
962
|
+
} & APIMetadata$2;
|
|
963
|
+
type APIMetadata$2 = {
|
|
963
964
|
methodFqn?: string;
|
|
964
965
|
entityFqdn?: string;
|
|
965
966
|
packageName?: string;
|
|
966
967
|
};
|
|
967
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
968
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
968
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
969
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
969
970
|
__type: 'event-definition';
|
|
970
971
|
type: Type;
|
|
971
972
|
isDomainEvent?: boolean;
|
|
972
|
-
transformations?: unknown;
|
|
973
|
+
transformations?: (envelope: unknown) => Payload;
|
|
973
974
|
__payload: Payload;
|
|
974
975
|
};
|
|
975
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
976
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
977
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
976
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
977
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
978
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
979
|
+
|
|
980
|
+
declare global {
|
|
981
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
982
|
+
interface SymbolConstructor {
|
|
983
|
+
readonly observable: symbol;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
978
986
|
|
|
979
|
-
declare function createReservation$1(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & {
|
|
987
|
+
declare function createReservation$1(httpClient: HttpClient$2): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & {
|
|
980
988
|
status: Status$1;
|
|
981
989
|
source: Source;
|
|
982
990
|
paymentStatus: PaymentStatus;
|
|
983
991
|
}>;
|
|
984
|
-
declare function getReservation$1(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & {
|
|
992
|
+
declare function getReservation$1(httpClient: HttpClient$2): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & {
|
|
985
993
|
status: Status$1;
|
|
986
994
|
source: Source;
|
|
987
995
|
paymentStatus: PaymentStatus;
|
|
988
996
|
}>;
|
|
989
|
-
declare function updateReservation$1(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & {
|
|
997
|
+
declare function updateReservation$1(httpClient: HttpClient$2): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & {
|
|
990
998
|
status: Status$1;
|
|
991
999
|
source: Source;
|
|
992
1000
|
paymentStatus: PaymentStatus;
|
|
993
1001
|
}>;
|
|
994
|
-
declare function createHeldReservation$1(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
995
|
-
declare function reserveReservation$1(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
996
|
-
declare function cancelReservation$1(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
997
|
-
declare function listReservations$1(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
998
|
-
declare function queryReservations$1(httpClient: HttpClient): () => ReservationsQueryBuilder;
|
|
999
|
-
declare function searchReservations$1(httpClient: HttpClient): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1000
|
-
declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1002
|
+
declare function createHeldReservation$1(httpClient: HttpClient$2): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1003
|
+
declare function reserveReservation$1(httpClient: HttpClient$2): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1004
|
+
declare function cancelReservation$1(httpClient: HttpClient$2): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1005
|
+
declare function listReservations$1(httpClient: HttpClient$2): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1006
|
+
declare function queryReservations$1(httpClient: HttpClient$2): () => ReservationsQueryBuilder;
|
|
1007
|
+
declare function searchReservations$1(httpClient: HttpClient$2): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1008
|
+
declare const onReservationCreated$1: EventDefinition$1<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1001
1009
|
|
|
1002
|
-
declare const createReservation: BuildRESTFunction<typeof createReservation$1>;
|
|
1003
|
-
declare const getReservation: BuildRESTFunction<typeof getReservation$1>;
|
|
1004
|
-
declare const updateReservation: BuildRESTFunction<typeof updateReservation$1>;
|
|
1005
|
-
declare const createHeldReservation: BuildRESTFunction<typeof createHeldReservation$1>;
|
|
1006
|
-
declare const reserveReservation: BuildRESTFunction<typeof reserveReservation$1>;
|
|
1007
|
-
declare const cancelReservation: BuildRESTFunction<typeof cancelReservation$1>;
|
|
1008
|
-
declare const listReservations: BuildRESTFunction<typeof listReservations$1>;
|
|
1009
|
-
declare const queryReservations: BuildRESTFunction<typeof queryReservations$1>;
|
|
1010
|
-
declare const searchReservations: BuildRESTFunction<typeof searchReservations$1>;
|
|
1011
|
-
declare const onReservationCreated: BuildEventDefinition<typeof onReservationCreated$1>;
|
|
1010
|
+
declare const createReservation: BuildRESTFunction$2<typeof createReservation$1>;
|
|
1011
|
+
declare const getReservation: BuildRESTFunction$2<typeof getReservation$1>;
|
|
1012
|
+
declare const updateReservation: BuildRESTFunction$2<typeof updateReservation$1>;
|
|
1013
|
+
declare const createHeldReservation: BuildRESTFunction$2<typeof createHeldReservation$1>;
|
|
1014
|
+
declare const reserveReservation: BuildRESTFunction$2<typeof reserveReservation$1>;
|
|
1015
|
+
declare const cancelReservation: BuildRESTFunction$2<typeof cancelReservation$1>;
|
|
1016
|
+
declare const listReservations: BuildRESTFunction$2<typeof listReservations$1>;
|
|
1017
|
+
declare const queryReservations: BuildRESTFunction$2<typeof queryReservations$1>;
|
|
1018
|
+
declare const searchReservations: BuildRESTFunction$2<typeof searchReservations$1>;
|
|
1019
|
+
declare const onReservationCreated: BuildEventDefinition$1<typeof onReservationCreated$1>;
|
|
1012
1020
|
|
|
1013
1021
|
declare const context$2_cancelReservation: typeof cancelReservation;
|
|
1014
1022
|
declare const context$2_createHeldReservation: typeof createHeldReservation;
|
|
@@ -1783,7 +1791,50 @@ interface ListReservationLocationsOptions {
|
|
|
1783
1791
|
fieldsets?: Set[];
|
|
1784
1792
|
}
|
|
1785
1793
|
|
|
1786
|
-
|
|
1794
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
1795
|
+
interface HttpClient$1 {
|
|
1796
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1797
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1798
|
+
}
|
|
1799
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1800
|
+
type HttpResponse$1<T = any> = {
|
|
1801
|
+
data: T;
|
|
1802
|
+
status: number;
|
|
1803
|
+
statusText: string;
|
|
1804
|
+
headers: any;
|
|
1805
|
+
request?: any;
|
|
1806
|
+
};
|
|
1807
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1808
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1809
|
+
url: string;
|
|
1810
|
+
data?: Data;
|
|
1811
|
+
params?: URLSearchParams;
|
|
1812
|
+
} & APIMetadata$1;
|
|
1813
|
+
type APIMetadata$1 = {
|
|
1814
|
+
methodFqn?: string;
|
|
1815
|
+
entityFqdn?: string;
|
|
1816
|
+
packageName?: string;
|
|
1817
|
+
};
|
|
1818
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
1819
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1820
|
+
__type: 'event-definition';
|
|
1821
|
+
type: Type;
|
|
1822
|
+
isDomainEvent?: boolean;
|
|
1823
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1824
|
+
__payload: Payload;
|
|
1825
|
+
};
|
|
1826
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1827
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1828
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1829
|
+
|
|
1830
|
+
declare global {
|
|
1831
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1832
|
+
interface SymbolConstructor {
|
|
1833
|
+
readonly observable: symbol;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
declare function getReservationLocation$1(httpClient: HttpClient$1): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<ReservationLocation & {
|
|
1787
1838
|
configuration?: {
|
|
1788
1839
|
onlineReservations?: {
|
|
1789
1840
|
seatPacing?: {
|
|
@@ -1867,7 +1918,7 @@ declare function getReservationLocation$1(httpClient: HttpClient): (reservationL
|
|
|
1867
1918
|
} | undefined;
|
|
1868
1919
|
} | undefined;
|
|
1869
1920
|
}>;
|
|
1870
|
-
declare function updateReservationLocation$1(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & {
|
|
1921
|
+
declare function updateReservationLocation$1(httpClient: HttpClient$1): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & {
|
|
1871
1922
|
configuration?: {
|
|
1872
1923
|
onlineReservations?: {
|
|
1873
1924
|
seatPacing?: {
|
|
@@ -1951,15 +2002,15 @@ declare function updateReservationLocation$1(httpClient: HttpClient): (_id: stri
|
|
|
1951
2002
|
} | undefined;
|
|
1952
2003
|
} | undefined;
|
|
1953
2004
|
}>;
|
|
1954
|
-
declare function queryReservationLocations$1(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
|
|
1955
|
-
declare function listReservationLocations$1(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
2005
|
+
declare function queryReservationLocations$1(httpClient: HttpClient$1): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
|
|
2006
|
+
declare function listReservationLocations$1(httpClient: HttpClient$1): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
1956
2007
|
declare const onReservationLocationUpdated$1: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
1957
2008
|
declare const onReservationLocationCreated$1: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
1958
2009
|
|
|
1959
|
-
declare const getReservationLocation: BuildRESTFunction<typeof getReservationLocation$1>;
|
|
1960
|
-
declare const updateReservationLocation: BuildRESTFunction<typeof updateReservationLocation$1>;
|
|
1961
|
-
declare const queryReservationLocations: BuildRESTFunction<typeof queryReservationLocations$1>;
|
|
1962
|
-
declare const listReservationLocations: BuildRESTFunction<typeof listReservationLocations$1>;
|
|
2010
|
+
declare const getReservationLocation: BuildRESTFunction$1<typeof getReservationLocation$1>;
|
|
2011
|
+
declare const updateReservationLocation: BuildRESTFunction$1<typeof updateReservationLocation$1>;
|
|
2012
|
+
declare const queryReservationLocations: BuildRESTFunction$1<typeof queryReservationLocations$1>;
|
|
2013
|
+
declare const listReservationLocations: BuildRESTFunction$1<typeof listReservationLocations$1>;
|
|
1963
2014
|
declare const onReservationLocationUpdated: BuildEventDefinition<typeof onReservationLocationUpdated$1>;
|
|
1964
2015
|
declare const onReservationLocationCreated: BuildEventDefinition<typeof onReservationLocationCreated$1>;
|
|
1965
2016
|
|
|
@@ -2017,6 +2068,39 @@ interface GetTimeSlotsOptions {
|
|
|
2017
2068
|
slotsAfter?: number | null;
|
|
2018
2069
|
}
|
|
2019
2070
|
|
|
2071
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2072
|
+
interface HttpClient {
|
|
2073
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2074
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2075
|
+
}
|
|
2076
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2077
|
+
type HttpResponse<T = any> = {
|
|
2078
|
+
data: T;
|
|
2079
|
+
status: number;
|
|
2080
|
+
statusText: string;
|
|
2081
|
+
headers: any;
|
|
2082
|
+
request?: any;
|
|
2083
|
+
};
|
|
2084
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2085
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2086
|
+
url: string;
|
|
2087
|
+
data?: Data;
|
|
2088
|
+
params?: URLSearchParams;
|
|
2089
|
+
} & APIMetadata;
|
|
2090
|
+
type APIMetadata = {
|
|
2091
|
+
methodFqn?: string;
|
|
2092
|
+
entityFqdn?: string;
|
|
2093
|
+
packageName?: string;
|
|
2094
|
+
};
|
|
2095
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2096
|
+
|
|
2097
|
+
declare global {
|
|
2098
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2099
|
+
interface SymbolConstructor {
|
|
2100
|
+
readonly observable: symbol;
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2020
2104
|
declare function getTimeSlots$1(httpClient: HttpClient): (reservationLocationId: string, date: Date, partySize: number | null, options?: GetTimeSlotsOptions) => Promise<GetTimeSlotsResponse & GetTimeSlotsResponseNonNullableFields>;
|
|
2021
2105
|
|
|
2022
2106
|
declare const getTimeSlots: BuildRESTFunction<typeof getTimeSlots$1>;
|
|
@@ -192,6 +192,37 @@ declare enum PaymentStatus {
|
|
|
192
192
|
/** A corresponding to reservation order was partially payed. */
|
|
193
193
|
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
194
194
|
}
|
|
195
|
+
interface ReservationDelayedDomainEvent extends ReservationDelayedDomainEventBodyTypeOneOf {
|
|
196
|
+
/** Body of a created reservation event. */
|
|
197
|
+
reservationCreated?: ReservationCreated;
|
|
198
|
+
/** Body of a updated reservation event. */
|
|
199
|
+
reservationUpdated?: ReservationUpdated;
|
|
200
|
+
/** Body of a canceled reservation event. */
|
|
201
|
+
reservationCanceled?: ReservationDelayedDomainEventReservationCanceled;
|
|
202
|
+
}
|
|
203
|
+
/** @oneof */
|
|
204
|
+
interface ReservationDelayedDomainEventBodyTypeOneOf {
|
|
205
|
+
/** Body of a created reservation event. */
|
|
206
|
+
reservationCreated?: ReservationCreated;
|
|
207
|
+
/** Body of a updated reservation event. */
|
|
208
|
+
reservationUpdated?: ReservationUpdated;
|
|
209
|
+
/** Body of a canceled reservation event. */
|
|
210
|
+
reservationCanceled?: ReservationDelayedDomainEventReservationCanceled;
|
|
211
|
+
}
|
|
212
|
+
interface ReservationCreated {
|
|
213
|
+
/** Created reservation. */
|
|
214
|
+
createdReservation?: Reservation;
|
|
215
|
+
}
|
|
216
|
+
interface ReservationUpdated {
|
|
217
|
+
/** Updated reservation. */
|
|
218
|
+
updatedReservation?: Reservation;
|
|
219
|
+
/** Modified fields of previous entity */
|
|
220
|
+
modifiedFields?: Record<string, any>;
|
|
221
|
+
}
|
|
222
|
+
interface ReservationDelayedDomainEventReservationCanceled {
|
|
223
|
+
/** Canceled reservation. */
|
|
224
|
+
canceledReservation?: Reservation;
|
|
225
|
+
}
|
|
195
226
|
interface CreateReservationRequest {
|
|
196
227
|
/** Reservation details. */
|
|
197
228
|
reservation: Reservation;
|
|
@@ -799,6 +830,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
799
830
|
interface EntityCreatedEvent$1 {
|
|
800
831
|
entity?: string;
|
|
801
832
|
}
|
|
833
|
+
interface RestoreInfo$1 {
|
|
834
|
+
deletedDate?: Date;
|
|
835
|
+
}
|
|
802
836
|
interface EntityUpdatedEvent$1 {
|
|
803
837
|
/**
|
|
804
838
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -1264,62 +1298,70 @@ interface ReservationsQueryBuilder {
|
|
|
1264
1298
|
find: () => Promise<ReservationsQueryResult>;
|
|
1265
1299
|
}
|
|
1266
1300
|
|
|
1267
|
-
interface HttpClient {
|
|
1268
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1301
|
+
interface HttpClient$2 {
|
|
1302
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1303
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1269
1304
|
}
|
|
1270
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1271
|
-
type HttpResponse<T = any> = {
|
|
1305
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1306
|
+
type HttpResponse$2<T = any> = {
|
|
1272
1307
|
data: T;
|
|
1273
1308
|
status: number;
|
|
1274
1309
|
statusText: string;
|
|
1275
1310
|
headers: any;
|
|
1276
1311
|
request?: any;
|
|
1277
1312
|
};
|
|
1278
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1313
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1279
1314
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1280
1315
|
url: string;
|
|
1281
1316
|
data?: Data;
|
|
1282
1317
|
params?: URLSearchParams;
|
|
1283
|
-
} & APIMetadata;
|
|
1284
|
-
type APIMetadata = {
|
|
1318
|
+
} & APIMetadata$2;
|
|
1319
|
+
type APIMetadata$2 = {
|
|
1285
1320
|
methodFqn?: string;
|
|
1286
1321
|
entityFqdn?: string;
|
|
1287
1322
|
packageName?: string;
|
|
1288
1323
|
};
|
|
1289
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1324
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
1290
1325
|
__type: 'event-definition';
|
|
1291
1326
|
type: Type;
|
|
1292
1327
|
isDomainEvent?: boolean;
|
|
1293
|
-
transformations?: unknown;
|
|
1328
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1294
1329
|
__payload: Payload;
|
|
1295
1330
|
};
|
|
1296
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
1331
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
1332
|
+
|
|
1333
|
+
declare global {
|
|
1334
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1335
|
+
interface SymbolConstructor {
|
|
1336
|
+
readonly observable: symbol;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1297
1339
|
|
|
1298
1340
|
declare const __metadata$2: {
|
|
1299
1341
|
PACKAGE_NAME: string;
|
|
1300
1342
|
};
|
|
1301
|
-
declare function createReservation(httpClient: HttpClient): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & {
|
|
1343
|
+
declare function createReservation(httpClient: HttpClient$2): (reservation: Reservation, options?: CreateReservationOptions) => Promise<Reservation & {
|
|
1302
1344
|
status: Status$1;
|
|
1303
1345
|
source: Source;
|
|
1304
1346
|
paymentStatus: PaymentStatus;
|
|
1305
1347
|
}>;
|
|
1306
|
-
declare function getReservation(httpClient: HttpClient): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & {
|
|
1348
|
+
declare function getReservation(httpClient: HttpClient$2): (reservationId: string, options?: GetReservationOptions) => Promise<Reservation & {
|
|
1307
1349
|
status: Status$1;
|
|
1308
1350
|
source: Source;
|
|
1309
1351
|
paymentStatus: PaymentStatus;
|
|
1310
1352
|
}>;
|
|
1311
|
-
declare function updateReservation(httpClient: HttpClient): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & {
|
|
1353
|
+
declare function updateReservation(httpClient: HttpClient$2): (_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions) => Promise<Reservation & {
|
|
1312
1354
|
status: Status$1;
|
|
1313
1355
|
source: Source;
|
|
1314
1356
|
paymentStatus: PaymentStatus;
|
|
1315
1357
|
}>;
|
|
1316
|
-
declare function createHeldReservation(httpClient: HttpClient): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1317
|
-
declare function reserveReservation(httpClient: HttpClient): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1318
|
-
declare function cancelReservation(httpClient: HttpClient): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1319
|
-
declare function listReservations(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1320
|
-
declare function queryReservations(httpClient: HttpClient): () => ReservationsQueryBuilder;
|
|
1321
|
-
declare function searchReservations(httpClient: HttpClient): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1322
|
-
declare const onReservationCreated: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1358
|
+
declare function createHeldReservation(httpClient: HttpClient$2): (reservationDetails: HeldReservationDetails) => Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1359
|
+
declare function reserveReservation(httpClient: HttpClient$2): (reservationId: string, reservee: Reservee, revision: string | null) => Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1360
|
+
declare function cancelReservation(httpClient: HttpClient$2): (reservationId: string, revision: string | null, options?: CancelReservationOptions) => Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1361
|
+
declare function listReservations(httpClient: HttpClient$2): (options?: ListReservationsOptions) => Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
1362
|
+
declare function queryReservations(httpClient: HttpClient$2): () => ReservationsQueryBuilder;
|
|
1363
|
+
declare function searchReservations(httpClient: HttpClient$2): (search: CursorSearch) => Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
1364
|
+
declare const onReservationCreated: EventDefinition$1<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
1323
1365
|
|
|
1324
1366
|
type index_d$2_Aggregation = Aggregation;
|
|
1325
1367
|
type index_d$2_AggregationData = AggregationData;
|
|
@@ -1393,9 +1435,14 @@ type index_d$2_RemoveReservationMigrationNotesRequest = RemoveReservationMigrati
|
|
|
1393
1435
|
type index_d$2_RemoveReservationMigrationNotesResponse = RemoveReservationMigrationNotesResponse;
|
|
1394
1436
|
type index_d$2_Reservation = Reservation;
|
|
1395
1437
|
type index_d$2_ReservationCanceled = ReservationCanceled;
|
|
1438
|
+
type index_d$2_ReservationCreated = ReservationCreated;
|
|
1396
1439
|
type index_d$2_ReservationCreatedEnvelope = ReservationCreatedEnvelope;
|
|
1397
1440
|
type index_d$2_ReservationDataUpdated = ReservationDataUpdated;
|
|
1441
|
+
type index_d$2_ReservationDelayedDomainEvent = ReservationDelayedDomainEvent;
|
|
1442
|
+
type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf = ReservationDelayedDomainEventBodyTypeOneOf;
|
|
1443
|
+
type index_d$2_ReservationDelayedDomainEventReservationCanceled = ReservationDelayedDomainEventReservationCanceled;
|
|
1398
1444
|
type index_d$2_ReservationDetailsConflicts = ReservationDetailsConflicts;
|
|
1445
|
+
type index_d$2_ReservationUpdated = ReservationUpdated;
|
|
1399
1446
|
type index_d$2_ReservationsQueryBuilder = ReservationsQueryBuilder;
|
|
1400
1447
|
type index_d$2_ReservationsQueryResult = ReservationsQueryResult;
|
|
1401
1448
|
type index_d$2_ReserveReservationRequest = ReserveReservationRequest;
|
|
@@ -1440,7 +1487,7 @@ declare const index_d$2_reserveReservation: typeof reserveReservation;
|
|
|
1440
1487
|
declare const index_d$2_searchReservations: typeof searchReservations;
|
|
1441
1488
|
declare const index_d$2_updateReservation: typeof updateReservation;
|
|
1442
1489
|
declare namespace index_d$2 {
|
|
1443
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetReservationOptions as GetReservationOptions, type index_d$2_GetReservationRequest as GetReservationRequest, type index_d$2_GetReservationResponse as GetReservationResponse, type index_d$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d$2_GroupByAggregation as GroupByAggregation, type index_d$2_GroupByAggregationKindOneOf as GroupByAggregationKindOneOf, type index_d$2_GroupByValueResults as GroupByValueResults, type index_d$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, index_d$2_Interval as Interval, type index_d$2_ListReservationsOptions as ListReservationsOptions, type index_d$2_ListReservationsRequest as ListReservationsRequest, type index_d$2_ListReservationsResponse as ListReservationsResponse, type index_d$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MigrationNote as MigrationNote, index_d$2_MissingValues as MissingValues, Mode$1 as Mode, type index_d$2_NestedAggregation as NestedAggregation, type index_d$2_NestedAggregationItem as NestedAggregationItem, type index_d$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type index_d$2_NestedAggregationResults as NestedAggregationResults, type index_d$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, index_d$2_NestedAggregationType as NestedAggregationType, type index_d$2_NestedResultValue as NestedResultValue, type index_d$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$2_NestedResults as NestedResults, type index_d$2_NestedValueAggregationResult as NestedValueAggregationResult, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryReservationsRequest as QueryReservationsRequest, type index_d$2_QueryReservationsResponse as QueryReservationsResponse, type index_d$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type index_d$2_RangeAggregation as RangeAggregation, type index_d$2_RangeAggregationResult as RangeAggregationResult, type index_d$2_RangeBucket as RangeBucket, type index_d$2_RangeResult as RangeResult, type index_d$2_RangeResults as RangeResults, type index_d$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type index_d$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type index_d$2_Reservation as Reservation, type index_d$2_ReservationCanceled as ReservationCanceled, type index_d$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type index_d$2_ReservationDataUpdated as ReservationDataUpdated, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d$2_ReservationsQueryResult as ReservationsQueryResult, type index_d$2_ReserveReservationRequest as ReserveReservationRequest, type index_d$2_ReserveReservationResponse as ReserveReservationResponse, type index_d$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type index_d$2_ReservedBy as ReservedBy, type index_d$2_Reservee as Reservee, type index_d$2_Results as Results, type index_d$2_ScalarAggregation as ScalarAggregation, type index_d$2_ScalarResult as ScalarResult, index_d$2_ScalarType as ScalarType, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchReservationsRequest as SearchReservationsRequest, type index_d$2_SearchReservationsResponse as SearchReservationsResponse, type index_d$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, index_d$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, index_d$2_SortType as SortType, type Sorting$1 as Sorting, index_d$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type index_d$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type index_d$2_UpdateReservation as UpdateReservation, type index_d$2_UpdateReservationOptions as UpdateReservationOptions, type index_d$2_UpdateReservationRequest as UpdateReservationRequest, type index_d$2_UpdateReservationResponse as UpdateReservationResponse, type index_d$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type index_d$2_ValueAggregation as ValueAggregation, type index_d$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type index_d$2_ValueAggregationResult as ValueAggregationResult, type index_d$2_ValueResult as ValueResult, type index_d$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, index_d$2_updateReservation as updateReservation };
|
|
1490
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$2_Aggregation as Aggregation, type index_d$2_AggregationData as AggregationData, type index_d$2_AggregationKindOneOf as AggregationKindOneOf, type index_d$2_AggregationResults as AggregationResults, type index_d$2_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$2_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$2_AggregationType as AggregationType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CancelReservationOptions as CancelReservationOptions, type index_d$2_CancelReservationRequest as CancelReservationRequest, type index_d$2_CancelReservationResponse as CancelReservationResponse, type index_d$2_CancelReservationResponseNonNullableFields as CancelReservationResponseNonNullableFields, type index_d$2_CreateHeldReservationRequest as CreateHeldReservationRequest, type index_d$2_CreateHeldReservationResponse as CreateHeldReservationResponse, type index_d$2_CreateHeldReservationResponseNonNullableFields as CreateHeldReservationResponseNonNullableFields, type index_d$2_CreateReservationOptions as CreateReservationOptions, type index_d$2_CreateReservationRequest as CreateReservationRequest, type index_d$2_CreateReservationResponse as CreateReservationResponse, type index_d$2_CreateReservationResponseNonNullableFields as CreateReservationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$2_CursorQuery as CursorQuery, type index_d$2_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$2_CursorSearch as CursorSearch, type index_d$2_CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DateHistogramAggregation as DateHistogramAggregation, type index_d$2_DateHistogramResult as DateHistogramResult, type index_d$2_DateHistogramResults as DateHistogramResults, type index_d$2_DeleteReservationRequest as DeleteReservationRequest, type index_d$2_DeleteReservationResponse as DeleteReservationResponse, type index_d$2_Details as Details, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_GetReservationOptions as GetReservationOptions, type index_d$2_GetReservationRequest as GetReservationRequest, type index_d$2_GetReservationResponse as GetReservationResponse, type index_d$2_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d$2_GroupByAggregation as GroupByAggregation, type index_d$2_GroupByAggregationKindOneOf as GroupByAggregationKindOneOf, type index_d$2_GroupByValueResults as GroupByValueResults, type index_d$2_HeldReservationDetails as HeldReservationDetails, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$2_IncludeMissingValuesOptions as IncludeMissingValuesOptions, index_d$2_Interval as Interval, type index_d$2_ListReservationsOptions as ListReservationsOptions, type index_d$2_ListReservationsRequest as ListReservationsRequest, type index_d$2_ListReservationsResponse as ListReservationsResponse, type index_d$2_ListReservationsResponseNonNullableFields as ListReservationsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MigrationNote as MigrationNote, index_d$2_MissingValues as MissingValues, Mode$1 as Mode, type index_d$2_NestedAggregation as NestedAggregation, type index_d$2_NestedAggregationItem as NestedAggregationItem, type index_d$2_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, type index_d$2_NestedAggregationResults as NestedAggregationResults, type index_d$2_NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOf, index_d$2_NestedAggregationType as NestedAggregationType, type index_d$2_NestedResultValue as NestedResultValue, type index_d$2_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$2_NestedResults as NestedResults, type index_d$2_NestedValueAggregationResult as NestedValueAggregationResult, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryReservationsRequest as QueryReservationsRequest, type index_d$2_QueryReservationsResponse as QueryReservationsResponse, type index_d$2_QueryReservationsResponseNonNullableFields as QueryReservationsResponseNonNullableFields, type index_d$2_RangeAggregation as RangeAggregation, type index_d$2_RangeAggregationResult as RangeAggregationResult, type index_d$2_RangeBucket as RangeBucket, type index_d$2_RangeResult as RangeResult, type index_d$2_RangeResults as RangeResults, type index_d$2_RemoveReservationMigrationNotesRequest as RemoveReservationMigrationNotesRequest, type index_d$2_RemoveReservationMigrationNotesResponse as RemoveReservationMigrationNotesResponse, type index_d$2_Reservation as Reservation, type index_d$2_ReservationCanceled as ReservationCanceled, type index_d$2_ReservationCreated as ReservationCreated, type index_d$2_ReservationCreatedEnvelope as ReservationCreatedEnvelope, type index_d$2_ReservationDataUpdated as ReservationDataUpdated, type index_d$2_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type index_d$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationUpdated as ReservationUpdated, type index_d$2_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d$2_ReservationsQueryResult as ReservationsQueryResult, type index_d$2_ReserveReservationRequest as ReserveReservationRequest, type index_d$2_ReserveReservationResponse as ReserveReservationResponse, type index_d$2_ReserveReservationResponseNonNullableFields as ReserveReservationResponseNonNullableFields, type index_d$2_ReservedBy as ReservedBy, type index_d$2_Reservee as Reservee, type RestoreInfo$1 as RestoreInfo, type index_d$2_Results as Results, type index_d$2_ScalarAggregation as ScalarAggregation, type index_d$2_ScalarResult as ScalarResult, index_d$2_ScalarType as ScalarType, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchReservationsRequest as SearchReservationsRequest, type index_d$2_SearchReservationsResponse as SearchReservationsResponse, type index_d$2_SearchReservationsResponseNonNullableFields as SearchReservationsResponseNonNullableFields, Set$1 as Set, index_d$2_SortDirection as SortDirection, SortOrder$1 as SortOrder, index_d$2_SortType as SortType, type Sorting$1 as Sorting, index_d$2_Source as Source, Status$1 as Status, type TableCombinationConflict$1 as TableCombinationConflict, TableCombinationConflictType$1 as TableCombinationConflictType, type index_d$2_TableWithReservationConflicts as TableWithReservationConflicts, Type$1 as Type, type index_d$2_UpdateReservation as UpdateReservation, type index_d$2_UpdateReservationOptions as UpdateReservationOptions, type index_d$2_UpdateReservationRequest as UpdateReservationRequest, type index_d$2_UpdateReservationResponse as UpdateReservationResponse, type index_d$2_UpdateReservationResponseNonNullableFields as UpdateReservationResponseNonNullableFields, type index_d$2_ValueAggregation as ValueAggregation, type index_d$2_ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOf, type index_d$2_ValueAggregationResult as ValueAggregationResult, type index_d$2_ValueResult as ValueResult, type index_d$2_ValueResults as ValueResults, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, index_d$2_updateReservation as updateReservation };
|
|
1444
1491
|
}
|
|
1445
1492
|
|
|
1446
1493
|
interface ReservationLocation {
|
|
@@ -1883,9 +1930,9 @@ interface TableManagement {
|
|
|
1883
1930
|
}
|
|
1884
1931
|
/** Reservation payment. */
|
|
1885
1932
|
interface ReservationPayment {
|
|
1886
|
-
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99) */
|
|
1933
|
+
/** Monetary amount to charge. Decimal string with a period as a decimal separator (e.g., 3.99) */
|
|
1887
1934
|
value?: string;
|
|
1888
|
-
/** Minimum party size
|
|
1935
|
+
/** Minimum party size to apply the payment policy. */
|
|
1889
1936
|
minPartySize?: number;
|
|
1890
1937
|
}
|
|
1891
1938
|
interface Location {
|
|
@@ -2275,7 +2322,7 @@ interface DomainEventBodyOneOf {
|
|
|
2275
2322
|
interface EntityCreatedEvent {
|
|
2276
2323
|
entity?: string;
|
|
2277
2324
|
}
|
|
2278
|
-
interface
|
|
2325
|
+
interface RestoreInfo {
|
|
2279
2326
|
deletedDate?: Date;
|
|
2280
2327
|
}
|
|
2281
2328
|
interface EntityUpdatedEvent {
|
|
@@ -3784,10 +3831,49 @@ interface ListReservationLocationsOptions {
|
|
|
3784
3831
|
fieldsets?: Set[];
|
|
3785
3832
|
}
|
|
3786
3833
|
|
|
3834
|
+
interface HttpClient$1 {
|
|
3835
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
3836
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3837
|
+
}
|
|
3838
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
3839
|
+
type HttpResponse$1<T = any> = {
|
|
3840
|
+
data: T;
|
|
3841
|
+
status: number;
|
|
3842
|
+
statusText: string;
|
|
3843
|
+
headers: any;
|
|
3844
|
+
request?: any;
|
|
3845
|
+
};
|
|
3846
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
3847
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3848
|
+
url: string;
|
|
3849
|
+
data?: Data;
|
|
3850
|
+
params?: URLSearchParams;
|
|
3851
|
+
} & APIMetadata$1;
|
|
3852
|
+
type APIMetadata$1 = {
|
|
3853
|
+
methodFqn?: string;
|
|
3854
|
+
entityFqdn?: string;
|
|
3855
|
+
packageName?: string;
|
|
3856
|
+
};
|
|
3857
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3858
|
+
__type: 'event-definition';
|
|
3859
|
+
type: Type;
|
|
3860
|
+
isDomainEvent?: boolean;
|
|
3861
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3862
|
+
__payload: Payload;
|
|
3863
|
+
};
|
|
3864
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3865
|
+
|
|
3866
|
+
declare global {
|
|
3867
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3868
|
+
interface SymbolConstructor {
|
|
3869
|
+
readonly observable: symbol;
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3787
3873
|
declare const __metadata$1: {
|
|
3788
3874
|
PACKAGE_NAME: string;
|
|
3789
3875
|
};
|
|
3790
|
-
declare function getReservationLocation(httpClient: HttpClient): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<ReservationLocation & {
|
|
3876
|
+
declare function getReservationLocation(httpClient: HttpClient$1): (reservationLocationId: string, options?: GetReservationLocationOptions) => Promise<ReservationLocation & {
|
|
3791
3877
|
configuration?: {
|
|
3792
3878
|
onlineReservations?: {
|
|
3793
3879
|
seatPacing?: {
|
|
@@ -3871,7 +3957,7 @@ declare function getReservationLocation(httpClient: HttpClient): (reservationLoc
|
|
|
3871
3957
|
} | undefined;
|
|
3872
3958
|
} | undefined;
|
|
3873
3959
|
}>;
|
|
3874
|
-
declare function updateReservationLocation(httpClient: HttpClient): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & {
|
|
3960
|
+
declare function updateReservationLocation(httpClient: HttpClient$1): (_id: string | null, reservationLocation: UpdateReservationLocation) => Promise<ReservationLocation & {
|
|
3875
3961
|
configuration?: {
|
|
3876
3962
|
onlineReservations?: {
|
|
3877
3963
|
seatPacing?: {
|
|
@@ -3955,8 +4041,8 @@ declare function updateReservationLocation(httpClient: HttpClient): (_id: string
|
|
|
3955
4041
|
} | undefined;
|
|
3956
4042
|
} | undefined;
|
|
3957
4043
|
}>;
|
|
3958
|
-
declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
|
|
3959
|
-
declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4044
|
+
declare function queryReservationLocations(httpClient: HttpClient$1): (options?: QueryReservationLocationsOptions) => ReservationLocationsQueryBuilder;
|
|
4045
|
+
declare function listReservationLocations(httpClient: HttpClient$1): (options?: ListReservationLocationsOptions) => Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
3960
4046
|
declare const onReservationLocationUpdated: EventDefinition<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
3961
4047
|
declare const onReservationLocationCreated: EventDefinition<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
3962
4048
|
|
|
@@ -4098,6 +4184,7 @@ type index_d$1_ReservationLocationsQueryResult = ReservationLocationsQueryResult
|
|
|
4098
4184
|
type index_d$1_ReservationPayment = ReservationPayment;
|
|
4099
4185
|
type index_d$1_ResolutionMethod = ResolutionMethod;
|
|
4100
4186
|
declare const index_d$1_ResolutionMethod: typeof ResolutionMethod;
|
|
4187
|
+
type index_d$1_RestoreInfo = RestoreInfo;
|
|
4101
4188
|
type index_d$1_SeatPacing = SeatPacing;
|
|
4102
4189
|
type index_d$1_ServiceProvisioned = ServiceProvisioned;
|
|
4103
4190
|
type index_d$1_ServiceRemoved = ServiceRemoved;
|
|
@@ -4141,7 +4228,6 @@ type index_d$1_TurnoverRule = TurnoverRule;
|
|
|
4141
4228
|
type index_d$1_TurnoverTimeRule = TurnoverTimeRule;
|
|
4142
4229
|
type index_d$1_URI = URI;
|
|
4143
4230
|
type index_d$1_UnAssingedToFloatingReason = UnAssingedToFloatingReason;
|
|
4144
|
-
type index_d$1_UndeleteInfo = UndeleteInfo;
|
|
4145
4231
|
type index_d$1_Unit = Unit;
|
|
4146
4232
|
declare const index_d$1_Unit: typeof Unit;
|
|
4147
4233
|
type index_d$1_UpdateReservationLocation = UpdateReservationLocation;
|
|
@@ -4158,7 +4244,7 @@ declare const index_d$1_onReservationLocationUpdated: typeof onReservationLocati
|
|
|
4158
4244
|
declare const index_d$1_queryReservationLocations: typeof queryReservationLocations;
|
|
4159
4245
|
declare const index_d$1_updateReservationLocation: typeof updateReservationLocation;
|
|
4160
4246
|
declare namespace index_d$1 {
|
|
4161
|
-
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, type index_d$1_UndeleteInfo as UndeleteInfo, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4247
|
+
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_Address as Address, type index_d$1_AddressHint as AddressHint, type index_d$1_AddressLocation as AddressLocation, type index_d$1_App as App, type index_d$1_Asset as Asset, type index_d$1_AssignedFromFloatingReason as AssignedFromFloatingReason, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BooleanFeature as BooleanFeature, type index_d$1_BusinessSchedule as BusinessSchedule, type index_d$1_CancelRequestedReason as CancelRequestedReason, type index_d$1_Categories as Categories, type index_d$1_ChangeContext as ChangeContext, type index_d$1_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d$1_CheckReservationLocationsCreatedRequest as CheckReservationLocationsCreatedRequest, type index_d$1_CheckReservationLocationsCreatedResponse as CheckReservationLocationsCreatedResponse, type index_d$1_CommonBusinessSchedule as CommonBusinessSchedule, index_d$1_CommonDayOfWeek as CommonDayOfWeek, type index_d$1_CommonSpecialHourPeriod as CommonSpecialHourPeriod, type index_d$1_CommonTimePeriod as CommonTimePeriod, type index_d$1_Configuration as Configuration, type index_d$1_ConsentPolicy as ConsentPolicy, type index_d$1_ContractSwitchedReason as ContractSwitchedReason, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_CustomFieldDefinition as CustomFieldDefinition, index_d$1_DayOfWeek as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteOrphanReservationLocationRequest as DeleteOrphanReservationLocationRequest, type index_d$1_DeleteOrphanReservationLocationResponse as DeleteOrphanReservationLocationResponse, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EmailMarketingCheckbox as EmailMarketingCheckbox, type index_d$1_Empty as Empty, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_Feature as Feature, type index_d$1_FeatureCancelled as FeatureCancelled, type index_d$1_FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOf, type index_d$1_FeatureContext as FeatureContext, type index_d$1_FeatureDisabled as FeatureDisabled, type index_d$1_FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOf, type index_d$1_FeatureEnabled as FeatureEnabled, type index_d$1_FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOf, type index_d$1_FeatureEvent as FeatureEvent, type index_d$1_FeatureEventEventOneOf as FeatureEventEventOneOf, index_d$1_FeaturePeriod as FeaturePeriod, type index_d$1_FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOf, type index_d$1_FeatureUpdated as FeatureUpdated, type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOf, type index_d$1_FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOf, index_d$1_FieldType as FieldType, type index_d$1_File as File, type index_d$1_GeoCoordinates as GeoCoordinates, type index_d$1_GetReservationLocationOptions as GetReservationLocationOptions, type index_d$1_GetReservationLocationRequest as GetReservationLocationRequest, type index_d$1_GetReservationLocationResponse as GetReservationLocationResponse, type index_d$1_GetReservationLocationResponseNonNullableFields as GetReservationLocationResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ListReservationLocationsOptions as ListReservationLocationsOptions, type index_d$1_ListReservationLocationsRequest as ListReservationLocationsRequest, type index_d$1_ListReservationLocationsResponse as ListReservationLocationsResponse, type index_d$1_ListReservationLocationsResponseNonNullableFields as ListReservationLocationsResponseNonNullableFields, type index_d$1_Locale as Locale, type index_d$1_Location as Location, type index_d$1_LocationAddress as LocationAddress, type index_d$1_ManualApproval as ManualApproval, type index_d$1_ManualApprovalValueOneOf as ManualApprovalValueOneOf, type index_d$1_ManualFeatureCreationReason as ManualFeatureCreationReason, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type index_d$1_MigrateOldRestaurantSettingsRequest as MigrateOldRestaurantSettingsRequest, type index_d$1_MigrateOldRestaurantSettingsResponse as MigrateOldRestaurantSettingsResponse, type index_d$1_MigratedFromLegacyReason as MigratedFromLegacyReason, type index_d$1_MigrationParsingError as MigrationParsingError, type index_d$1_MigrationResult as MigrationResult, index_d$1_Mode as Mode, type index_d$1_Multilingual as Multilingual, type index_d$1_MyReservationsField as MyReservationsField, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_NewFeatureReason as NewFeatureReason, type index_d$1_NoticePeriod as NoticePeriod, type index_d$1_OldCustomField as OldCustomField, type index_d$1_OldInstant as OldInstant, type index_d$1_OldPolicy as OldPolicy, type index_d$1_OldScheduleException as OldScheduleException, type index_d$1_OldScheduleInterval as OldScheduleInterval, type index_d$1_OldTerms as OldTerms, type index_d$1_OnlineReservations as OnlineReservations, type index_d$1_Page as Page, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParsedSettings as ParsedSettings, type index_d$1_PartiesSize as PartiesSize, type index_d$1_PartyPacing as PartyPacing, type index_d$1_PartySize as PartySize, index_d$1_PlacementType as PlacementType, type index_d$1_PrivacyPolicy as PrivacyPolicy, type index_d$1_PrivacyPolicyValueOneOf as PrivacyPolicyValueOneOf, type index_d$1_Properties as Properties, type index_d$1_PropertiesChange as PropertiesChange, type index_d$1_QueryReservationLocationsOptions as QueryReservationLocationsOptions, type index_d$1_QueryReservationLocationsRequest as QueryReservationLocationsRequest, type index_d$1_QueryReservationLocationsResponse as QueryReservationLocationsResponse, type index_d$1_QueryReservationLocationsResponseNonNullableFields as QueryReservationLocationsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_QuotaFeature as QuotaFeature, type index_d$1_QuotaInfo as QuotaInfo, type index_d$1_ReassignedFromSiteReason as ReassignedFromSiteReason, type index_d$1_ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReason, type index_d$1_ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReason, type index_d$1_ReservationForm as ReservationForm, type index_d$1_ReservationLocation as ReservationLocation, type index_d$1_ReservationLocationCreatedEnvelope as ReservationLocationCreatedEnvelope, type index_d$1_ReservationLocationUpdatedEnvelope as ReservationLocationUpdatedEnvelope, type index_d$1_ReservationLocationsQueryBuilder as ReservationLocationsQueryBuilder, type index_d$1_ReservationLocationsQueryResult as ReservationLocationsQueryResult, type index_d$1_ReservationPayment as ReservationPayment, index_d$1_ResolutionMethod as ResolutionMethod, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SeatPacing as SeatPacing, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, index_d$1_Set as Set, type index_d$1_SiteCloned as SiteCloned, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePropertiesEvent as SitePropertiesEvent, type index_d$1_SitePropertiesNotification as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_SpecialHourPeriod as SpecialHourPeriod, index_d$1_State as State, type index_d$1_StreetAddress as StreetAddress, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SupportedLanguage as SupportedLanguage, type TableCombination$1 as TableCombination, type index_d$1_TableDefinition as TableDefinition, type index_d$1_TableManagement as TableManagement, type index_d$1_TablesDeleted as TablesDeleted, type index_d$1_TermsAndConditions as TermsAndConditions, type index_d$1_TermsAndConditionsValueOneOf as TermsAndConditionsValueOneOf, type index_d$1_TimePeriod as TimePeriod, type index_d$1_TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReason, type index_d$1_TransferredToAnotherAccountReason as TransferredToAnotherAccountReason, type index_d$1_Translation as Translation, type index_d$1_TurnoverRule as TurnoverRule, type index_d$1_TurnoverTimeRule as TurnoverTimeRule, type index_d$1_URI as URI, type index_d$1_UnAssingedToFloatingReason as UnAssingedToFloatingReason, index_d$1_Unit as Unit, type index_d$1_UpdateReservationLocation as UpdateReservationLocation, type index_d$1_UpdateReservationLocationRequest as UpdateReservationLocationRequest, type index_d$1_UpdateReservationLocationResponse as UpdateReservationLocationResponse, type index_d$1_UpdateReservationLocationResponseNonNullableFields as UpdateReservationLocationResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4162
4248
|
}
|
|
4163
4249
|
|
|
4164
4250
|
interface TimeSlot {
|
|
@@ -4308,6 +4394,37 @@ interface GetTimeSlotsOptions {
|
|
|
4308
4394
|
slotsAfter?: number | null;
|
|
4309
4395
|
}
|
|
4310
4396
|
|
|
4397
|
+
interface HttpClient {
|
|
4398
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4399
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4400
|
+
}
|
|
4401
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
4402
|
+
type HttpResponse<T = any> = {
|
|
4403
|
+
data: T;
|
|
4404
|
+
status: number;
|
|
4405
|
+
statusText: string;
|
|
4406
|
+
headers: any;
|
|
4407
|
+
request?: any;
|
|
4408
|
+
};
|
|
4409
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
4410
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4411
|
+
url: string;
|
|
4412
|
+
data?: Data;
|
|
4413
|
+
params?: URLSearchParams;
|
|
4414
|
+
} & APIMetadata;
|
|
4415
|
+
type APIMetadata = {
|
|
4416
|
+
methodFqn?: string;
|
|
4417
|
+
entityFqdn?: string;
|
|
4418
|
+
packageName?: string;
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4421
|
+
declare global {
|
|
4422
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4423
|
+
interface SymbolConstructor {
|
|
4424
|
+
readonly observable: symbol;
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4311
4428
|
declare const __metadata: {
|
|
4312
4429
|
PACKAGE_NAME: string;
|
|
4313
4430
|
};
|