@wix/table-reservations 1.0.140 → 1.0.141
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 +2 -2
- package/type-bundles/context.bundle.d.ts +443 -1263
- package/type-bundles/index.bundle.d.ts +443 -1263
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type HostModule
|
|
1
|
+
type HostModule<T, H extends Host> = {
|
|
2
2
|
__type: 'host';
|
|
3
3
|
create(host: H): T;
|
|
4
4
|
};
|
|
5
|
-
type HostModuleAPI
|
|
6
|
-
type Host
|
|
5
|
+
type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
|
|
6
|
+
type Host<Environment = unknown> = {
|
|
7
7
|
channel: {
|
|
8
8
|
observeState(callback: (props: unknown, environment: Environment) => unknown): {
|
|
9
9
|
disconnect: () => void;
|
|
@@ -36,92 +36,92 @@ type Host$2<Environment = unknown> = {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
type RESTFunctionDescriptor
|
|
40
|
-
interface HttpClient
|
|
41
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
39
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
40
|
+
interface HttpClient {
|
|
41
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
42
42
|
fetchWithAuth: typeof fetch;
|
|
43
43
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
44
44
|
getActiveToken?: () => string | undefined;
|
|
45
45
|
}
|
|
46
|
-
type RequestOptionsFactory
|
|
47
|
-
type HttpResponse
|
|
46
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
47
|
+
type HttpResponse<T = any> = {
|
|
48
48
|
data: T;
|
|
49
49
|
status: number;
|
|
50
50
|
statusText: string;
|
|
51
51
|
headers: any;
|
|
52
52
|
request?: any;
|
|
53
53
|
};
|
|
54
|
-
type RequestOptions
|
|
54
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
55
55
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
56
56
|
url: string;
|
|
57
57
|
data?: Data;
|
|
58
58
|
params?: URLSearchParams;
|
|
59
|
-
} & APIMetadata
|
|
60
|
-
type APIMetadata
|
|
59
|
+
} & APIMetadata;
|
|
60
|
+
type APIMetadata = {
|
|
61
61
|
methodFqn?: string;
|
|
62
62
|
entityFqdn?: string;
|
|
63
63
|
packageName?: string;
|
|
64
64
|
};
|
|
65
|
-
type BuildRESTFunction
|
|
66
|
-
type EventDefinition$
|
|
65
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
67
67
|
__type: 'event-definition';
|
|
68
68
|
type: Type;
|
|
69
69
|
isDomainEvent?: boolean;
|
|
70
70
|
transformations?: (envelope: unknown) => Payload;
|
|
71
71
|
__payload: Payload;
|
|
72
72
|
};
|
|
73
|
-
declare function EventDefinition$
|
|
74
|
-
type EventHandler$
|
|
75
|
-
type BuildEventDefinition$
|
|
73
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
74
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
75
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
76
76
|
|
|
77
|
-
type ServicePluginMethodInput
|
|
77
|
+
type ServicePluginMethodInput = {
|
|
78
78
|
request: any;
|
|
79
79
|
metadata: any;
|
|
80
80
|
};
|
|
81
|
-
type ServicePluginContract
|
|
82
|
-
type ServicePluginMethodMetadata
|
|
81
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
82
|
+
type ServicePluginMethodMetadata = {
|
|
83
83
|
name: string;
|
|
84
84
|
primaryHttpMappingPath: string;
|
|
85
85
|
transformations: {
|
|
86
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
86
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
87
87
|
toREST: (...args: unknown[]) => unknown;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
type ServicePluginDefinition
|
|
90
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
91
91
|
__type: 'service-plugin-definition';
|
|
92
92
|
componentType: string;
|
|
93
|
-
methods: ServicePluginMethodMetadata
|
|
93
|
+
methods: ServicePluginMethodMetadata[];
|
|
94
94
|
__contract: Contract;
|
|
95
95
|
};
|
|
96
|
-
declare function ServicePluginDefinition
|
|
97
|
-
type BuildServicePluginDefinition
|
|
98
|
-
declare const SERVICE_PLUGIN_ERROR_TYPE
|
|
96
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
97
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
98
|
+
declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
|
99
99
|
|
|
100
|
-
type RequestContext
|
|
100
|
+
type RequestContext = {
|
|
101
101
|
isSSR: boolean;
|
|
102
102
|
host: string;
|
|
103
103
|
protocol?: string;
|
|
104
104
|
};
|
|
105
|
-
type ResponseTransformer
|
|
105
|
+
type ResponseTransformer = (data: any, headers?: any) => any;
|
|
106
106
|
/**
|
|
107
107
|
* Ambassador request options types are copied mostly from AxiosRequestConfig.
|
|
108
108
|
* They are copied and not imported to reduce the amount of dependencies (to reduce install time).
|
|
109
109
|
* https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
|
|
110
110
|
*/
|
|
111
|
-
type Method
|
|
112
|
-
type AmbassadorRequestOptions
|
|
111
|
+
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
112
|
+
type AmbassadorRequestOptions<T = any> = {
|
|
113
113
|
_?: T;
|
|
114
114
|
url?: string;
|
|
115
|
-
method?: Method
|
|
115
|
+
method?: Method;
|
|
116
116
|
params?: any;
|
|
117
117
|
data?: any;
|
|
118
|
-
transformResponse?: ResponseTransformer
|
|
118
|
+
transformResponse?: ResponseTransformer | ResponseTransformer[];
|
|
119
119
|
};
|
|
120
|
-
type AmbassadorFactory
|
|
120
|
+
type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
|
|
121
121
|
__isAmbassador: boolean;
|
|
122
122
|
};
|
|
123
|
-
type AmbassadorFunctionDescriptor
|
|
124
|
-
type BuildAmbassadorFunction
|
|
123
|
+
type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
|
|
124
|
+
type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
|
125
125
|
|
|
126
126
|
declare global {
|
|
127
127
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -130,7 +130,7 @@ declare global {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
declare const emptyObjectSymbol
|
|
133
|
+
declare const emptyObjectSymbol: unique symbol;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
Represents a strictly empty plain object, the `{}` value.
|
|
@@ -158,7 +158,7 @@ Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<n
|
|
|
158
158
|
|
|
159
159
|
@category Object
|
|
160
160
|
*/
|
|
161
|
-
type EmptyObject
|
|
161
|
+
type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
Returns a boolean for whether the two given types are equal.
|
|
@@ -186,7 +186,7 @@ type Includes<Value extends readonly any[], Item> =
|
|
|
186
186
|
@category Type Guard
|
|
187
187
|
@category Utilities
|
|
188
188
|
*/
|
|
189
|
-
type IsEqual
|
|
189
|
+
type IsEqual<A, B> =
|
|
190
190
|
(<G>() => G extends A ? 1 : 2) extends
|
|
191
191
|
(<G>() => G extends B ? 1 : 2)
|
|
192
192
|
? true
|
|
@@ -219,9 +219,9 @@ type Filtered = Filter<'bar', 'foo'>;
|
|
|
219
219
|
|
|
220
220
|
@see {Except}
|
|
221
221
|
*/
|
|
222
|
-
type Filter
|
|
222
|
+
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
223
223
|
|
|
224
|
-
type ExceptOptions
|
|
224
|
+
type ExceptOptions = {
|
|
225
225
|
/**
|
|
226
226
|
Disallow assigning non-specified properties.
|
|
227
227
|
|
|
@@ -265,8 +265,8 @@ const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
|
265
265
|
|
|
266
266
|
@category Object
|
|
267
267
|
*/
|
|
268
|
-
type Except
|
|
269
|
-
[KeyType in keyof ObjectType as Filter
|
|
268
|
+
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
|
|
269
|
+
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
|
270
270
|
} & (Options['requireExactProps'] extends true
|
|
271
271
|
? Partial<Record<KeysType, never>>
|
|
272
272
|
: {});
|
|
@@ -303,7 +303,7 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
|
303
303
|
|
|
304
304
|
@category Object
|
|
305
305
|
*/
|
|
306
|
-
type ConditionalKeys
|
|
306
|
+
type ConditionalKeys<Base, Condition> = NonNullable<
|
|
307
307
|
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
308
308
|
{
|
|
309
309
|
// Map through all the keys of the given base type.
|
|
@@ -357,9 +357,9 @@ type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
|
|
357
357
|
|
|
358
358
|
@category Object
|
|
359
359
|
*/
|
|
360
|
-
type ConditionalExcept
|
|
360
|
+
type ConditionalExcept<Base, Condition> = Except<
|
|
361
361
|
Base,
|
|
362
|
-
ConditionalKeys
|
|
362
|
+
ConditionalKeys<Base, Condition>
|
|
363
363
|
>;
|
|
364
364
|
|
|
365
365
|
/**
|
|
@@ -367,8 +367,8 @@ ConditionalKeys$2<Base, Condition>
|
|
|
367
367
|
* can either be a REST module or a host module.
|
|
368
368
|
* This type is recursive, so it can describe nested modules.
|
|
369
369
|
*/
|
|
370
|
-
type Descriptors
|
|
371
|
-
[key: string]: Descriptors
|
|
370
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$2<any> | ServicePluginDefinition<any> | {
|
|
371
|
+
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
372
|
};
|
|
373
373
|
/**
|
|
374
374
|
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
|
@@ -376,12 +376,12 @@ type Descriptors$2 = RESTFunctionDescriptor$2 | AmbassadorFunctionDescriptor$2 |
|
|
|
376
376
|
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
|
377
377
|
* do not match the given host (as they will not work with the given host).
|
|
378
378
|
*/
|
|
379
|
-
type BuildDescriptors
|
|
379
|
+
type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
|
|
380
380
|
done: T;
|
|
381
381
|
recurse: T extends {
|
|
382
|
-
__type: typeof SERVICE_PLUGIN_ERROR_TYPE
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor
|
|
384
|
-
[Key in keyof T]: T[Key] extends Descriptors
|
|
382
|
+
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$2<any> ? BuildEventDefinition$2<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
|
+
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
385
|
-1,
|
|
386
386
|
0,
|
|
387
387
|
1,
|
|
@@ -390,9 +390,9 @@ type BuildDescriptors$2<T extends Descriptors$2, H extends Host$2<any> | undefin
|
|
|
390
390
|
4,
|
|
391
391
|
5
|
|
392
392
|
][Depth]> : never;
|
|
393
|
-
}, EmptyObject
|
|
393
|
+
}, EmptyObject>;
|
|
394
394
|
}[Depth extends -1 ? 'done' : 'recurse'];
|
|
395
|
-
type PublicMetadata
|
|
395
|
+
type PublicMetadata = {
|
|
396
396
|
PACKAGE_NAME?: string;
|
|
397
397
|
};
|
|
398
398
|
|
|
@@ -404,9 +404,9 @@ declare global {
|
|
|
404
404
|
* A type used to create concerete types from SDK descriptors in
|
|
405
405
|
* case a contextual client is available.
|
|
406
406
|
*/
|
|
407
|
-
type MaybeContext
|
|
408
|
-
host: Host
|
|
409
|
-
} ? BuildDescriptors
|
|
407
|
+
type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
|
|
408
|
+
host: Host;
|
|
409
|
+
} ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
|
|
410
410
|
|
|
411
411
|
/** The reservation domain object. */
|
|
412
412
|
interface Reservation {
|
|
@@ -1882,7 +1882,7 @@ interface ReservationsQueryBuilder {
|
|
|
1882
1882
|
find: () => Promise<ReservationsQueryResult>;
|
|
1883
1883
|
}
|
|
1884
1884
|
|
|
1885
|
-
declare function createReservation$1(httpClient: HttpClient
|
|
1885
|
+
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
1886
1886
|
interface CreateReservationSignature {
|
|
1887
1887
|
/**
|
|
1888
1888
|
* Creates a new reservation.
|
|
@@ -1912,7 +1912,7 @@ interface CreateReservationSignature {
|
|
|
1912
1912
|
*/
|
|
1913
1913
|
(reservation: Reservation, options?: CreateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1914
1914
|
}
|
|
1915
|
-
declare function getReservation$1(httpClient: HttpClient
|
|
1915
|
+
declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
|
|
1916
1916
|
interface GetReservationSignature {
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Retrieves a reservation.
|
|
@@ -1923,7 +1923,7 @@ interface GetReservationSignature {
|
|
|
1923
1923
|
*/
|
|
1924
1924
|
(reservationId: string, options?: GetReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1925
1925
|
}
|
|
1926
|
-
declare function updateReservation$1(httpClient: HttpClient
|
|
1926
|
+
declare function updateReservation$1(httpClient: HttpClient): UpdateReservationSignature;
|
|
1927
1927
|
interface UpdateReservationSignature {
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Updates a reservation.
|
|
@@ -1938,7 +1938,7 @@ interface UpdateReservationSignature {
|
|
|
1938
1938
|
*/
|
|
1939
1939
|
(_id: string | null, reservation: UpdateReservation, options?: UpdateReservationOptions | undefined): Promise<Reservation & ReservationNonNullableFields>;
|
|
1940
1940
|
}
|
|
1941
|
-
declare function updateExtendedFields$3(httpClient: HttpClient
|
|
1941
|
+
declare function updateExtendedFields$3(httpClient: HttpClient): UpdateExtendedFieldsSignature$1;
|
|
1942
1942
|
interface UpdateExtendedFieldsSignature$1 {
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Updates extended fields of a reservation without incrementing revision
|
|
@@ -1947,7 +1947,7 @@ interface UpdateExtendedFieldsSignature$1 {
|
|
|
1947
1947
|
*/
|
|
1948
1948
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions$1): Promise<UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
1949
1949
|
}
|
|
1950
|
-
declare function createHeldReservation$1(httpClient: HttpClient
|
|
1950
|
+
declare function createHeldReservation$1(httpClient: HttpClient): CreateHeldReservationSignature;
|
|
1951
1951
|
interface CreateHeldReservationSignature {
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Creates a new temporary reservation and holds it for the customer for 10 minutes.
|
|
@@ -1962,7 +1962,7 @@ interface CreateHeldReservationSignature {
|
|
|
1962
1962
|
*/
|
|
1963
1963
|
(reservationDetails: HeldReservationDetails): Promise<CreateHeldReservationResponse & CreateHeldReservationResponseNonNullableFields>;
|
|
1964
1964
|
}
|
|
1965
|
-
declare function reserveReservation$1(httpClient: HttpClient
|
|
1965
|
+
declare function reserveReservation$1(httpClient: HttpClient): ReserveReservationSignature;
|
|
1966
1966
|
interface ReserveReservationSignature {
|
|
1967
1967
|
/**
|
|
1968
1968
|
* Reserves or requests a held reservation.
|
|
@@ -1982,7 +1982,7 @@ interface ReserveReservationSignature {
|
|
|
1982
1982
|
*/
|
|
1983
1983
|
(reservationId: string, reservee: Reservee, revision: string | null): Promise<ReserveReservationResponse & ReserveReservationResponseNonNullableFields>;
|
|
1984
1984
|
}
|
|
1985
|
-
declare function cancelReservation$1(httpClient: HttpClient
|
|
1985
|
+
declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
|
|
1986
1986
|
interface CancelReservationSignature {
|
|
1987
1987
|
/**
|
|
1988
1988
|
* Cancels a reservation.
|
|
@@ -1996,7 +1996,7 @@ interface CancelReservationSignature {
|
|
|
1996
1996
|
*/
|
|
1997
1997
|
(reservationId: string, revision: string | null, options?: CancelReservationOptions | undefined): Promise<CancelReservationResponse & CancelReservationResponseNonNullableFields>;
|
|
1998
1998
|
}
|
|
1999
|
-
declare function deleteReservation$1(httpClient: HttpClient
|
|
1999
|
+
declare function deleteReservation$1(httpClient: HttpClient): DeleteReservationSignature;
|
|
2000
2000
|
interface DeleteReservationSignature {
|
|
2001
2001
|
/**
|
|
2002
2002
|
* Deletes a reservation. Only reservations with the `HELD` status can be deleted.
|
|
@@ -2004,7 +2004,7 @@ interface DeleteReservationSignature {
|
|
|
2004
2004
|
*/
|
|
2005
2005
|
(reservationId: string): Promise<void>;
|
|
2006
2006
|
}
|
|
2007
|
-
declare function listReservations$1(httpClient: HttpClient
|
|
2007
|
+
declare function listReservations$1(httpClient: HttpClient): ListReservationsSignature;
|
|
2008
2008
|
interface ListReservationsSignature {
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Retrieves a list of up to 100 reservations.
|
|
@@ -2012,7 +2012,7 @@ interface ListReservationsSignature {
|
|
|
2012
2012
|
*/
|
|
2013
2013
|
(options?: ListReservationsOptions | undefined): Promise<ListReservationsResponse & ListReservationsResponseNonNullableFields>;
|
|
2014
2014
|
}
|
|
2015
|
-
declare function queryReservations$1(httpClient: HttpClient
|
|
2015
|
+
declare function queryReservations$1(httpClient: HttpClient): QueryReservationsSignature;
|
|
2016
2016
|
interface QueryReservationsSignature {
|
|
2017
2017
|
/**
|
|
2018
2018
|
* Creates a query to retrieve a list of reservations.
|
|
@@ -2033,7 +2033,7 @@ interface QueryReservationsSignature {
|
|
|
2033
2033
|
*/
|
|
2034
2034
|
(): ReservationsQueryBuilder;
|
|
2035
2035
|
}
|
|
2036
|
-
declare function searchReservations$1(httpClient: HttpClient
|
|
2036
|
+
declare function searchReservations$1(httpClient: HttpClient): SearchReservationsSignature;
|
|
2037
2037
|
interface SearchReservationsSignature {
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Use this endpoint to search the fields of the table reservations on a site for a given expression.
|
|
@@ -2044,20 +2044,20 @@ interface SearchReservationsSignature {
|
|
|
2044
2044
|
*/
|
|
2045
2045
|
(search: CursorSearch): Promise<SearchReservationsResponse & SearchReservationsResponseNonNullableFields>;
|
|
2046
2046
|
}
|
|
2047
|
-
declare const onReservationCreated$1: EventDefinition$
|
|
2048
|
-
declare const onReservationUpdated$1: EventDefinition$
|
|
2049
|
-
declare const onReservationDeleted$1: EventDefinition$
|
|
2047
|
+
declare const onReservationCreated$1: EventDefinition$2<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
2048
|
+
declare const onReservationUpdated$1: EventDefinition$2<ReservationUpdatedEnvelope, "wix.table_reservations.v1.reservation_updated">;
|
|
2049
|
+
declare const onReservationDeleted$1: EventDefinition$2<ReservationDeletedEnvelope, "wix.table_reservations.v1.reservation_deleted">;
|
|
2050
2050
|
|
|
2051
|
-
type EventDefinition$
|
|
2051
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
2052
2052
|
__type: 'event-definition';
|
|
2053
2053
|
type: Type;
|
|
2054
2054
|
isDomainEvent?: boolean;
|
|
2055
2055
|
transformations?: (envelope: unknown) => Payload;
|
|
2056
2056
|
__payload: Payload;
|
|
2057
2057
|
};
|
|
2058
|
-
declare function EventDefinition$
|
|
2059
|
-
type EventHandler$
|
|
2060
|
-
type BuildEventDefinition$
|
|
2058
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2059
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
2060
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
2061
2061
|
|
|
2062
2062
|
declare global {
|
|
2063
2063
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -2066,19 +2066,19 @@ declare global {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
declare function createEventModule$1<T extends EventDefinition$
|
|
2069
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
2070
2070
|
|
|
2071
|
-
declare const createReservation: MaybeContext
|
|
2072
|
-
declare const getReservation: MaybeContext
|
|
2073
|
-
declare const updateReservation: MaybeContext
|
|
2074
|
-
declare const updateExtendedFields$2: MaybeContext
|
|
2075
|
-
declare const createHeldReservation: MaybeContext
|
|
2076
|
-
declare const reserveReservation: MaybeContext
|
|
2077
|
-
declare const cancelReservation: MaybeContext
|
|
2078
|
-
declare const deleteReservation: MaybeContext
|
|
2079
|
-
declare const listReservations: MaybeContext
|
|
2080
|
-
declare const queryReservations: MaybeContext
|
|
2081
|
-
declare const searchReservations: MaybeContext
|
|
2071
|
+
declare const createReservation: MaybeContext<BuildRESTFunction<typeof createReservation$1> & typeof createReservation$1>;
|
|
2072
|
+
declare const getReservation: MaybeContext<BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1>;
|
|
2073
|
+
declare const updateReservation: MaybeContext<BuildRESTFunction<typeof updateReservation$1> & typeof updateReservation$1>;
|
|
2074
|
+
declare const updateExtendedFields$2: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$3> & typeof updateExtendedFields$3>;
|
|
2075
|
+
declare const createHeldReservation: MaybeContext<BuildRESTFunction<typeof createHeldReservation$1> & typeof createHeldReservation$1>;
|
|
2076
|
+
declare const reserveReservation: MaybeContext<BuildRESTFunction<typeof reserveReservation$1> & typeof reserveReservation$1>;
|
|
2077
|
+
declare const cancelReservation: MaybeContext<BuildRESTFunction<typeof cancelReservation$1> & typeof cancelReservation$1>;
|
|
2078
|
+
declare const deleteReservation: MaybeContext<BuildRESTFunction<typeof deleteReservation$1> & typeof deleteReservation$1>;
|
|
2079
|
+
declare const listReservations: MaybeContext<BuildRESTFunction<typeof listReservations$1> & typeof listReservations$1>;
|
|
2080
|
+
declare const queryReservations: MaybeContext<BuildRESTFunction<typeof queryReservations$1> & typeof queryReservations$1>;
|
|
2081
|
+
declare const searchReservations: MaybeContext<BuildRESTFunction<typeof searchReservations$1> & typeof searchReservations$1>;
|
|
2082
2082
|
|
|
2083
2083
|
type _publicOnReservationCreatedType = typeof onReservationCreated$1;
|
|
2084
2084
|
/**
|
|
@@ -2237,527 +2237,117 @@ declare namespace index_d$2 {
|
|
|
2237
2237
|
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 ExtendedFields$1 as ExtendedFields, 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_GroupByValueResults as GroupByValueResults, type index_d$2_HeadersEntry as HeadersEntry, 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, type index_d$2_PathParametersEntry as PathParametersEntry, index_d$2_PaymentStatus as PaymentStatus, type index_d$2_QueryParametersEntry as QueryParametersEntry, 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_RawHttpRequest as RawHttpRequest, type index_d$2_RawHttpResponse as RawHttpResponse, 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_ReservationDelayedDomainEvent as ReservationDelayedDomainEvent, type index_d$2_ReservationDelayedDomainEventBodyTypeOneOf as ReservationDelayedDomainEventBodyTypeOneOf, type index_d$2_ReservationDelayedDomainEventReservationCanceled as ReservationDelayedDomainEventReservationCanceled, type index_d$2_ReservationDeletedEnvelope as ReservationDeletedEnvelope, type index_d$2_ReservationDetailsConflicts as ReservationDetailsConflicts, type ReservationLocationConflict$1 as ReservationLocationConflict, type index_d$2_ReservationNonNullableFields as ReservationNonNullableFields, type index_d$2_ReservationUpdated as ReservationUpdated, type index_d$2_ReservationUpdatedEnvelope as ReservationUpdatedEnvelope, 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 index_d$2_Tables as Tables, Type$1 as Type, type UpdateExtendedFieldsOptions$1 as UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest$1 as UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse$1 as UpdateExtendedFieldsResponse, type UpdateExtendedFieldsResponseNonNullableFields$1 as UpdateExtendedFieldsResponseNonNullableFields, 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, type index_d$2__publicOnReservationCreatedType as _publicOnReservationCreatedType, type index_d$2__publicOnReservationDeletedType as _publicOnReservationDeletedType, type index_d$2__publicOnReservationUpdatedType as _publicOnReservationUpdatedType, index_d$2_cancelReservation as cancelReservation, index_d$2_createHeldReservation as createHeldReservation, index_d$2_createReservation as createReservation, index_d$2_deleteReservation as deleteReservation, index_d$2_getReservation as getReservation, index_d$2_listReservations as listReservations, index_d$2_onReservationCreated as onReservationCreated, index_d$2_onReservationDeleted as onReservationDeleted, index_d$2_onReservationUpdated as onReservationUpdated, onReservationCreated$1 as publicOnReservationCreated, onReservationDeleted$1 as publicOnReservationDeleted, onReservationUpdated$1 as publicOnReservationUpdated, index_d$2_queryReservations as queryReservations, index_d$2_reserveReservation as reserveReservation, index_d$2_searchReservations as searchReservations, updateExtendedFields$2 as updateExtendedFields, index_d$2_updateReservation as updateReservation };
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
-
|
|
2241
|
-
__type: 'host';
|
|
2242
|
-
create(host: H): T;
|
|
2243
|
-
};
|
|
2244
|
-
type HostModuleAPI$1<T extends HostModule$1<any, any>> = T extends HostModule$1<infer U, any> ? U : never;
|
|
2245
|
-
type Host$1<Environment = unknown> = {
|
|
2246
|
-
channel: {
|
|
2247
|
-
observeState(callback: (props: unknown, environment: Environment) => unknown): {
|
|
2248
|
-
disconnect: () => void;
|
|
2249
|
-
} | Promise<{
|
|
2250
|
-
disconnect: () => void;
|
|
2251
|
-
}>;
|
|
2252
|
-
};
|
|
2253
|
-
environment?: Environment;
|
|
2240
|
+
interface ReservationLocation {
|
|
2254
2241
|
/**
|
|
2255
|
-
*
|
|
2242
|
+
* Reservation location ID.
|
|
2243
|
+
* @readonly
|
|
2256
2244
|
*/
|
|
2257
|
-
|
|
2245
|
+
_id?: string | null;
|
|
2246
|
+
/** Represents the current state of a reservation location. Each time the reservation location is modified, its `revision` changes. For an update operation to succeed, you must pass the latest revision. */
|
|
2247
|
+
revision?: string | null;
|
|
2258
2248
|
/**
|
|
2259
|
-
*
|
|
2260
|
-
*
|
|
2249
|
+
* The date and time this reservation location was created.
|
|
2250
|
+
* @readonly
|
|
2261
2251
|
*/
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2252
|
+
_createdDate?: Date;
|
|
2253
|
+
/**
|
|
2254
|
+
* The date and time this reservation location was last updated.
|
|
2255
|
+
* @readonly
|
|
2256
|
+
*/
|
|
2257
|
+
_updatedDate?: Date;
|
|
2258
|
+
/**
|
|
2259
|
+
* Physical location details.
|
|
2260
|
+
*
|
|
2261
|
+
* Locations can be created and configured using the [Locations API](https://dev.wix.com/docs/rest/api-reference/business-info/locations/introduction)
|
|
2262
|
+
* or on the [Business Info](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info) page in the Dashboard.
|
|
2263
|
+
* @readonly
|
|
2264
|
+
*/
|
|
2265
|
+
location?: Location;
|
|
2266
|
+
/** Reservation location configuration. */
|
|
2267
|
+
configuration?: Configuration;
|
|
2268
|
+
/**
|
|
2269
|
+
* Whether this reservation location's `location` is the default location of the business.
|
|
2270
|
+
* @readonly
|
|
2271
|
+
*/
|
|
2272
|
+
default?: boolean | null;
|
|
2273
|
+
/**
|
|
2274
|
+
* Whether this reservation location's `location` is archived.
|
|
2275
|
+
* @readonly
|
|
2276
|
+
*/
|
|
2277
|
+
archived?: boolean | null;
|
|
2278
|
+
/**
|
|
2279
|
+
* Custom field data for the reservation location object.
|
|
2280
|
+
*
|
|
2281
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
2282
|
+
*/
|
|
2283
|
+
extendedFields?: ExtendedFields;
|
|
2284
|
+
}
|
|
2285
|
+
interface StreetAddress {
|
|
2286
|
+
/** Street number. */
|
|
2287
|
+
number?: string;
|
|
2288
|
+
/** Street name. */
|
|
2289
|
+
name?: string;
|
|
2290
|
+
/** Apartment number. */
|
|
2291
|
+
apt?: string;
|
|
2292
|
+
}
|
|
2293
|
+
/** Address geolocation information. */
|
|
2294
|
+
interface AddressLocation {
|
|
2295
|
+
/** Latitude of the location. Must be between -90 and 90. */
|
|
2296
|
+
latitude?: number | null;
|
|
2297
|
+
/** Longitude of the location. Must be between -180 and 180. */
|
|
2298
|
+
longitude?: number | null;
|
|
2299
|
+
}
|
|
2300
|
+
interface LocationAddress {
|
|
2301
|
+
/** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
2302
|
+
country?: string | null;
|
|
2303
|
+
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */
|
|
2304
|
+
subdivision?: string | null;
|
|
2305
|
+
/** City name. */
|
|
2306
|
+
city?: string | null;
|
|
2307
|
+
/** Postal or zip code. */
|
|
2308
|
+
postalCode?: string | null;
|
|
2309
|
+
/** Street address of the location. Includes street name, number, and apartment number in separate fields. */
|
|
2310
|
+
streetAddress?: StreetAddress;
|
|
2311
|
+
/** Full address of the location. */
|
|
2312
|
+
formatted?: string | null;
|
|
2313
|
+
/** Geographic coordinates of the location. */
|
|
2314
|
+
location?: AddressLocation;
|
|
2284
2315
|
}
|
|
2285
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2286
|
-
type HttpResponse$1<T = any> = {
|
|
2287
|
-
data: T;
|
|
2288
|
-
status: number;
|
|
2289
|
-
statusText: string;
|
|
2290
|
-
headers: any;
|
|
2291
|
-
request?: any;
|
|
2292
|
-
};
|
|
2293
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2294
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2295
|
-
url: string;
|
|
2296
|
-
data?: Data;
|
|
2297
|
-
params?: URLSearchParams;
|
|
2298
|
-
} & APIMetadata$1;
|
|
2299
|
-
type APIMetadata$1 = {
|
|
2300
|
-
methodFqn?: string;
|
|
2301
|
-
entityFqdn?: string;
|
|
2302
|
-
packageName?: string;
|
|
2303
|
-
};
|
|
2304
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2305
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
2306
|
-
__type: 'event-definition';
|
|
2307
|
-
type: Type;
|
|
2308
|
-
isDomainEvent?: boolean;
|
|
2309
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2310
|
-
__payload: Payload;
|
|
2311
|
-
};
|
|
2312
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
2313
|
-
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
2314
|
-
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
2315
|
-
|
|
2316
|
-
type ServicePluginMethodInput$1 = {
|
|
2317
|
-
request: any;
|
|
2318
|
-
metadata: any;
|
|
2319
|
-
};
|
|
2320
|
-
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
2321
|
-
type ServicePluginMethodMetadata$1 = {
|
|
2322
|
-
name: string;
|
|
2323
|
-
primaryHttpMappingPath: string;
|
|
2324
|
-
transformations: {
|
|
2325
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
2326
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
2330
|
-
__type: 'service-plugin-definition';
|
|
2331
|
-
componentType: string;
|
|
2332
|
-
methods: ServicePluginMethodMetadata$1[];
|
|
2333
|
-
__contract: Contract;
|
|
2334
|
-
};
|
|
2335
|
-
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
2336
|
-
type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
|
|
2337
|
-
declare const SERVICE_PLUGIN_ERROR_TYPE$1 = "wix_spi_error";
|
|
2338
|
-
|
|
2339
|
-
type RequestContext$1 = {
|
|
2340
|
-
isSSR: boolean;
|
|
2341
|
-
host: string;
|
|
2342
|
-
protocol?: string;
|
|
2343
|
-
};
|
|
2344
|
-
type ResponseTransformer$1 = (data: any, headers?: any) => any;
|
|
2345
2316
|
/**
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2348
|
-
*
|
|
2317
|
+
* Time periods that this location is open for business. Includes a collection of TimePeriod instances.
|
|
2318
|
+
* Aligned with https://developers.google.com/my-business/reference/rest/v4/accounts.locations#businesshours
|
|
2319
|
+
* With a few minor adjustments
|
|
2349
2320
|
*/
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
type AmbassadorFactory$1<Request, Response> = (payload: Request) => ((context: RequestContext$1) => AmbassadorRequestOptions$1<Response>) & {
|
|
2360
|
-
__isAmbassador: boolean;
|
|
2361
|
-
};
|
|
2362
|
-
type AmbassadorFunctionDescriptor$1<Request = any, Response = any> = AmbassadorFactory$1<Request, Response>;
|
|
2363
|
-
type BuildAmbassadorFunction$1<T extends AmbassadorFunctionDescriptor$1> = T extends AmbassadorFunctionDescriptor$1<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
|
2364
|
-
|
|
2365
|
-
declare global {
|
|
2366
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2367
|
-
interface SymbolConstructor {
|
|
2368
|
-
readonly observable: symbol;
|
|
2369
|
-
}
|
|
2321
|
+
interface CommonBusinessSchedule {
|
|
2322
|
+
periods?: CommonTimePeriod[];
|
|
2323
|
+
/**
|
|
2324
|
+
* Time periods during which this location is open. Each period represents a range of hours during the week during which the location is
|
|
2325
|
+
* open.
|
|
2326
|
+
*
|
|
2327
|
+
* Max: 100 time periods
|
|
2328
|
+
*/
|
|
2329
|
+
specialHourPeriod?: CommonSpecialHourPeriod[];
|
|
2370
2330
|
}
|
|
2371
|
-
|
|
2372
|
-
declare const emptyObjectSymbol$1: unique symbol;
|
|
2373
|
-
|
|
2374
2331
|
/**
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
@example
|
|
2380
|
-
```
|
|
2381
|
-
import type {EmptyObject} from 'type-fest';
|
|
2382
|
-
|
|
2383
|
-
// The following illustrates the problem with `{}`.
|
|
2384
|
-
const foo1: {} = {}; // Pass
|
|
2385
|
-
const foo2: {} = []; // Pass
|
|
2386
|
-
const foo3: {} = 42; // Pass
|
|
2387
|
-
const foo4: {} = {a: 1}; // Pass
|
|
2388
|
-
|
|
2389
|
-
// With `EmptyObject` only the first case is valid.
|
|
2390
|
-
const bar1: EmptyObject = {}; // Pass
|
|
2391
|
-
const bar2: EmptyObject = 42; // Fail
|
|
2392
|
-
const bar3: EmptyObject = []; // Fail
|
|
2393
|
-
const bar4: EmptyObject = {a: 1}; // Fail
|
|
2394
|
-
```
|
|
2395
|
-
|
|
2396
|
-
Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
|
|
2397
|
-
|
|
2398
|
-
@category Object
|
|
2399
|
-
*/
|
|
2400
|
-
type EmptyObject$1 = {[emptyObjectSymbol$1]?: never};
|
|
2401
|
-
|
|
2402
|
-
/**
|
|
2403
|
-
Returns a boolean for whether the two given types are equal.
|
|
2404
|
-
|
|
2405
|
-
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
|
|
2406
|
-
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
|
|
2407
|
-
|
|
2408
|
-
Use-cases:
|
|
2409
|
-
- If you want to make a conditional branch based on the result of a comparison of two types.
|
|
2410
|
-
|
|
2411
|
-
@example
|
|
2412
|
-
```
|
|
2413
|
-
import type {IsEqual} from 'type-fest';
|
|
2414
|
-
|
|
2415
|
-
// This type returns a boolean for whether the given array includes the given item.
|
|
2416
|
-
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
|
|
2417
|
-
type Includes<Value extends readonly any[], Item> =
|
|
2418
|
-
Value extends readonly [Value[0], ...infer rest]
|
|
2419
|
-
? IsEqual<Value[0], Item> extends true
|
|
2420
|
-
? true
|
|
2421
|
-
: Includes<rest, Item>
|
|
2422
|
-
: false;
|
|
2423
|
-
```
|
|
2424
|
-
|
|
2425
|
-
@category Type Guard
|
|
2426
|
-
@category Utilities
|
|
2427
|
-
*/
|
|
2428
|
-
type IsEqual$1<A, B> =
|
|
2429
|
-
(<G>() => G extends A ? 1 : 2) extends
|
|
2430
|
-
(<G>() => G extends B ? 1 : 2)
|
|
2431
|
-
? true
|
|
2432
|
-
: false;
|
|
2433
|
-
|
|
2434
|
-
/**
|
|
2435
|
-
Filter out keys from an object.
|
|
2436
|
-
|
|
2437
|
-
Returns `never` if `Exclude` is strictly equal to `Key`.
|
|
2438
|
-
Returns `never` if `Key` extends `Exclude`.
|
|
2439
|
-
Returns `Key` otherwise.
|
|
2440
|
-
|
|
2441
|
-
@example
|
|
2442
|
-
```
|
|
2443
|
-
type Filtered = Filter<'foo', 'foo'>;
|
|
2444
|
-
//=> never
|
|
2445
|
-
```
|
|
2446
|
-
|
|
2447
|
-
@example
|
|
2448
|
-
```
|
|
2449
|
-
type Filtered = Filter<'bar', string>;
|
|
2450
|
-
//=> never
|
|
2451
|
-
```
|
|
2452
|
-
|
|
2453
|
-
@example
|
|
2454
|
-
```
|
|
2455
|
-
type Filtered = Filter<'bar', 'foo'>;
|
|
2456
|
-
//=> 'bar'
|
|
2457
|
-
```
|
|
2458
|
-
|
|
2459
|
-
@see {Except}
|
|
2460
|
-
*/
|
|
2461
|
-
type Filter$1<KeyType, ExcludeType> = IsEqual$1<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
2462
|
-
|
|
2463
|
-
type ExceptOptions$1 = {
|
|
2464
|
-
/**
|
|
2465
|
-
Disallow assigning non-specified properties.
|
|
2466
|
-
|
|
2467
|
-
Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
|
|
2468
|
-
|
|
2469
|
-
@default false
|
|
2470
|
-
*/
|
|
2471
|
-
requireExactProps?: boolean;
|
|
2472
|
-
};
|
|
2473
|
-
|
|
2474
|
-
/**
|
|
2475
|
-
Create a type from an object type without certain keys.
|
|
2476
|
-
|
|
2477
|
-
We recommend setting the `requireExactProps` option to `true`.
|
|
2478
|
-
|
|
2479
|
-
This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.
|
|
2480
|
-
|
|
2481
|
-
This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).
|
|
2482
|
-
|
|
2483
|
-
@example
|
|
2484
|
-
```
|
|
2485
|
-
import type {Except} from 'type-fest';
|
|
2486
|
-
|
|
2487
|
-
type Foo = {
|
|
2488
|
-
a: number;
|
|
2489
|
-
b: string;
|
|
2490
|
-
};
|
|
2491
|
-
|
|
2492
|
-
type FooWithoutA = Except<Foo, 'a'>;
|
|
2493
|
-
//=> {b: string}
|
|
2494
|
-
|
|
2495
|
-
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
|
2496
|
-
//=> errors: 'a' does not exist in type '{ b: string; }'
|
|
2497
|
-
|
|
2498
|
-
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
|
2499
|
-
//=> {a: number} & Partial<Record<"b", never>>
|
|
2500
|
-
|
|
2501
|
-
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
2502
|
-
//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
|
2503
|
-
```
|
|
2504
|
-
|
|
2505
|
-
@category Object
|
|
2506
|
-
*/
|
|
2507
|
-
type Except$1<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions$1 = {requireExactProps: false}> = {
|
|
2508
|
-
[KeyType in keyof ObjectType as Filter$1<KeyType, KeysType>]: ObjectType[KeyType];
|
|
2509
|
-
} & (Options['requireExactProps'] extends true
|
|
2510
|
-
? Partial<Record<KeysType, never>>
|
|
2511
|
-
: {});
|
|
2512
|
-
|
|
2513
|
-
/**
|
|
2514
|
-
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
2515
|
-
|
|
2516
|
-
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
|
2517
|
-
|
|
2518
|
-
@example
|
|
2519
|
-
```
|
|
2520
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
2521
|
-
|
|
2522
|
-
interface Example {
|
|
2523
|
-
a: string;
|
|
2524
|
-
b: string | number;
|
|
2525
|
-
c?: string;
|
|
2526
|
-
d: {};
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
type StringKeysOnly = ConditionalKeys<Example, string>;
|
|
2530
|
-
//=> 'a'
|
|
2531
|
-
```
|
|
2532
|
-
|
|
2533
|
-
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
|
2534
|
-
|
|
2535
|
-
@example
|
|
2536
|
-
```
|
|
2537
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
2538
|
-
|
|
2539
|
-
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
2540
|
-
//=> 'a' | 'c'
|
|
2541
|
-
```
|
|
2542
|
-
|
|
2543
|
-
@category Object
|
|
2544
|
-
*/
|
|
2545
|
-
type ConditionalKeys$1<Base, Condition> = NonNullable<
|
|
2546
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
2547
|
-
{
|
|
2548
|
-
// Map through all the keys of the given base type.
|
|
2549
|
-
[Key in keyof Base]:
|
|
2550
|
-
// Pick only keys with types extending the given `Condition` type.
|
|
2551
|
-
Base[Key] extends Condition
|
|
2552
|
-
// Retain this key since the condition passes.
|
|
2553
|
-
? Key
|
|
2554
|
-
// Discard this key since the condition fails.
|
|
2555
|
-
: never;
|
|
2556
|
-
|
|
2557
|
-
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
2558
|
-
}[keyof Base]
|
|
2559
|
-
>;
|
|
2560
|
-
|
|
2561
|
-
/**
|
|
2562
|
-
Exclude keys from a shape that matches the given `Condition`.
|
|
2563
|
-
|
|
2564
|
-
This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties.
|
|
2565
|
-
|
|
2566
|
-
@example
|
|
2567
|
-
```
|
|
2568
|
-
import type {Primitive, ConditionalExcept} from 'type-fest';
|
|
2569
|
-
|
|
2570
|
-
class Awesome {
|
|
2571
|
-
name: string;
|
|
2572
|
-
successes: number;
|
|
2573
|
-
failures: bigint;
|
|
2574
|
-
|
|
2575
|
-
run() {}
|
|
2576
|
-
}
|
|
2577
|
-
|
|
2578
|
-
type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
|
|
2579
|
-
//=> {run: () => void}
|
|
2580
|
-
```
|
|
2581
|
-
|
|
2582
|
-
@example
|
|
2583
|
-
```
|
|
2584
|
-
import type {ConditionalExcept} from 'type-fest';
|
|
2585
|
-
|
|
2586
|
-
interface Example {
|
|
2587
|
-
a: string;
|
|
2588
|
-
b: string | number;
|
|
2589
|
-
c: () => void;
|
|
2590
|
-
d: {};
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
|
2594
|
-
//=> {b: string | number; c: () => void; d: {}}
|
|
2595
|
-
```
|
|
2596
|
-
|
|
2597
|
-
@category Object
|
|
2598
|
-
*/
|
|
2599
|
-
type ConditionalExcept$1<Base, Condition> = Except$1<
|
|
2600
|
-
Base,
|
|
2601
|
-
ConditionalKeys$1<Base, Condition>
|
|
2602
|
-
>;
|
|
2603
|
-
|
|
2604
|
-
/**
|
|
2605
|
-
* Descriptors are objects that describe the API of a module, and the module
|
|
2606
|
-
* can either be a REST module or a host module.
|
|
2607
|
-
* This type is recursive, so it can describe nested modules.
|
|
2608
|
-
*/
|
|
2609
|
-
type Descriptors$1 = RESTFunctionDescriptor$1 | AmbassadorFunctionDescriptor$1 | HostModule$1<any, any> | EventDefinition$2<any> | ServicePluginDefinition$1<any> | {
|
|
2610
|
-
[key: string]: Descriptors$1 | PublicMetadata$1 | any;
|
|
2611
|
-
};
|
|
2612
|
-
/**
|
|
2613
|
-
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
|
2614
|
-
* and returns an object with the same structure, but with all descriptors replaced with their API.
|
|
2615
|
-
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
|
2616
|
-
* do not match the given host (as they will not work with the given host).
|
|
2617
|
-
*/
|
|
2618
|
-
type BuildDescriptors$1<T extends Descriptors$1, H extends Host$1<any> | undefined, Depth extends number = 5> = {
|
|
2619
|
-
done: T;
|
|
2620
|
-
recurse: T extends {
|
|
2621
|
-
__type: typeof SERVICE_PLUGIN_ERROR_TYPE$1;
|
|
2622
|
-
} ? never : T extends AmbassadorFunctionDescriptor$1 ? BuildAmbassadorFunction$1<T> : T extends RESTFunctionDescriptor$1 ? BuildRESTFunction$1<T> : T extends EventDefinition$2<any> ? BuildEventDefinition$2<T> : T extends ServicePluginDefinition$1<any> ? BuildServicePluginDefinition$1<T> : T extends HostModule$1<any, any> ? HostModuleAPI$1<T> : ConditionalExcept$1<{
|
|
2623
|
-
[Key in keyof T]: T[Key] extends Descriptors$1 ? BuildDescriptors$1<T[Key], H, [
|
|
2624
|
-
-1,
|
|
2625
|
-
0,
|
|
2626
|
-
1,
|
|
2627
|
-
2,
|
|
2628
|
-
3,
|
|
2629
|
-
4,
|
|
2630
|
-
5
|
|
2631
|
-
][Depth]> : never;
|
|
2632
|
-
}, EmptyObject$1>;
|
|
2633
|
-
}[Depth extends -1 ? 'done' : 'recurse'];
|
|
2634
|
-
type PublicMetadata$1 = {
|
|
2635
|
-
PACKAGE_NAME?: string;
|
|
2636
|
-
};
|
|
2637
|
-
|
|
2638
|
-
declare global {
|
|
2639
|
-
interface ContextualClient {
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
/**
|
|
2643
|
-
* A type used to create concerete types from SDK descriptors in
|
|
2644
|
-
* case a contextual client is available.
|
|
2332
|
+
* A span of time that the business is open,
|
|
2333
|
+
* starting on the specified open day/time and closing on the specified close day/time.
|
|
2334
|
+
* Closing time must occur after the opening time, for example later in the same day, or on a subsequent day.
|
|
2645
2335
|
*/
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
interface ReservationLocation {
|
|
2336
|
+
interface CommonTimePeriod {
|
|
2337
|
+
/** Day of the week this period starts on. */
|
|
2338
|
+
openDay?: CommonDayOfWeek;
|
|
2651
2339
|
/**
|
|
2652
|
-
*
|
|
2653
|
-
*
|
|
2340
|
+
* Time this period starts in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents
|
|
2341
|
+
* midnight at the end of the specified day field.
|
|
2654
2342
|
*/
|
|
2655
|
-
|
|
2656
|
-
/**
|
|
2657
|
-
|
|
2343
|
+
openTime?: string;
|
|
2344
|
+
/** Day of the week this period ends on. */
|
|
2345
|
+
closeDay?: CommonDayOfWeek;
|
|
2658
2346
|
/**
|
|
2659
|
-
*
|
|
2660
|
-
*
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
/**
|
|
2664
|
-
* The date and time this reservation location was last updated.
|
|
2665
|
-
* @readonly
|
|
2666
|
-
*/
|
|
2667
|
-
_updatedDate?: Date;
|
|
2668
|
-
/**
|
|
2669
|
-
* Physical location details.
|
|
2670
|
-
*
|
|
2671
|
-
* Locations can be created and configured using the [Locations API](https://dev.wix.com/docs/rest/api-reference/business-info/locations/introduction)
|
|
2672
|
-
* or on the [Business Info](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info) page in the Dashboard.
|
|
2673
|
-
* @readonly
|
|
2674
|
-
*/
|
|
2675
|
-
location?: Location;
|
|
2676
|
-
/** Reservation location configuration. */
|
|
2677
|
-
configuration?: Configuration;
|
|
2678
|
-
/**
|
|
2679
|
-
* Whether this reservation location's `location` is the default location of the business.
|
|
2680
|
-
* @readonly
|
|
2681
|
-
*/
|
|
2682
|
-
default?: boolean | null;
|
|
2683
|
-
/**
|
|
2684
|
-
* Whether this reservation location's `location` is archived.
|
|
2685
|
-
* @readonly
|
|
2686
|
-
*/
|
|
2687
|
-
archived?: boolean | null;
|
|
2688
|
-
/**
|
|
2689
|
-
* Custom field data for the reservation location object.
|
|
2690
|
-
*
|
|
2691
|
-
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
2692
|
-
*/
|
|
2693
|
-
extendedFields?: ExtendedFields;
|
|
2694
|
-
}
|
|
2695
|
-
interface StreetAddress {
|
|
2696
|
-
/** Street number. */
|
|
2697
|
-
number?: string;
|
|
2698
|
-
/** Street name. */
|
|
2699
|
-
name?: string;
|
|
2700
|
-
/** Apartment number. */
|
|
2701
|
-
apt?: string;
|
|
2702
|
-
}
|
|
2703
|
-
/** Address geolocation information. */
|
|
2704
|
-
interface AddressLocation {
|
|
2705
|
-
/** Latitude of the location. Must be between -90 and 90. */
|
|
2706
|
-
latitude?: number | null;
|
|
2707
|
-
/** Longitude of the location. Must be between -180 and 180. */
|
|
2708
|
-
longitude?: number | null;
|
|
2709
|
-
}
|
|
2710
|
-
interface LocationAddress {
|
|
2711
|
-
/** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
2712
|
-
country?: string | null;
|
|
2713
|
-
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */
|
|
2714
|
-
subdivision?: string | null;
|
|
2715
|
-
/** City name. */
|
|
2716
|
-
city?: string | null;
|
|
2717
|
-
/** Postal or zip code. */
|
|
2718
|
-
postalCode?: string | null;
|
|
2719
|
-
/** Street address of the location. Includes street name, number, and apartment number in separate fields. */
|
|
2720
|
-
streetAddress?: StreetAddress;
|
|
2721
|
-
/** Full address of the location. */
|
|
2722
|
-
formatted?: string | null;
|
|
2723
|
-
/** Geographic coordinates of the location. */
|
|
2724
|
-
location?: AddressLocation;
|
|
2725
|
-
}
|
|
2726
|
-
/**
|
|
2727
|
-
* Time periods that this location is open for business. Includes a collection of TimePeriod instances.
|
|
2728
|
-
* Aligned with https://developers.google.com/my-business/reference/rest/v4/accounts.locations#businesshours
|
|
2729
|
-
* With a few minor adjustments
|
|
2730
|
-
*/
|
|
2731
|
-
interface CommonBusinessSchedule {
|
|
2732
|
-
periods?: CommonTimePeriod[];
|
|
2733
|
-
/**
|
|
2734
|
-
* Time periods during which this location is open. Each period represents a range of hours during the week during which the location is
|
|
2735
|
-
* open.
|
|
2736
|
-
*
|
|
2737
|
-
* Max: 100 time periods
|
|
2738
|
-
*/
|
|
2739
|
-
specialHourPeriod?: CommonSpecialHourPeriod[];
|
|
2740
|
-
}
|
|
2741
|
-
/**
|
|
2742
|
-
* A span of time that the business is open,
|
|
2743
|
-
* starting on the specified open day/time and closing on the specified close day/time.
|
|
2744
|
-
* Closing time must occur after the opening time, for example later in the same day, or on a subsequent day.
|
|
2745
|
-
*/
|
|
2746
|
-
interface CommonTimePeriod {
|
|
2747
|
-
/** Day of the week this period starts on. */
|
|
2748
|
-
openDay?: CommonDayOfWeek;
|
|
2749
|
-
/**
|
|
2750
|
-
* Time this period starts in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents
|
|
2751
|
-
* midnight at the end of the specified day field.
|
|
2752
|
-
*/
|
|
2753
|
-
openTime?: string;
|
|
2754
|
-
/** Day of the week this period ends on. */
|
|
2755
|
-
closeDay?: CommonDayOfWeek;
|
|
2756
|
-
/**
|
|
2757
|
-
* Time this period ends in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents
|
|
2758
|
-
* midnight at the end of the specified day field.
|
|
2759
|
-
*
|
|
2760
|
-
* This is the last time a reservation can be made at the restaurant, not the time the restaurant closes its doors.
|
|
2347
|
+
* Time this period ends in 24hr [ISO 8601](http://www.w3.org/TR/NOTE-datetime) extended format (hh:mm). Valid values are `00:00-24:00`, where `24:00` represents
|
|
2348
|
+
* midnight at the end of the specified day field.
|
|
2349
|
+
*
|
|
2350
|
+
* This is the last time a reservation can be made at the restaurant, not the time the restaurant closes its doors.
|
|
2761
2351
|
*/
|
|
2762
2352
|
closeTime?: string;
|
|
2763
2353
|
}
|
|
@@ -4908,7 +4498,7 @@ interface ListReservationLocationsOptions {
|
|
|
4908
4498
|
fieldsets?: Set[];
|
|
4909
4499
|
}
|
|
4910
4500
|
|
|
4911
|
-
declare function getReservationLocation$1(httpClient: HttpClient
|
|
4501
|
+
declare function getReservationLocation$1(httpClient: HttpClient): GetReservationLocationSignature;
|
|
4912
4502
|
interface GetReservationLocationSignature {
|
|
4913
4503
|
/**
|
|
4914
4504
|
* Retrieves a reservation location by ID.
|
|
@@ -4920,7 +4510,7 @@ interface GetReservationLocationSignature {
|
|
|
4920
4510
|
*/
|
|
4921
4511
|
(reservationLocationId: string, options?: GetReservationLocationOptions | undefined): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
|
|
4922
4512
|
}
|
|
4923
|
-
declare function updateReservationLocation$1(httpClient: HttpClient
|
|
4513
|
+
declare function updateReservationLocation$1(httpClient: HttpClient): UpdateReservationLocationSignature;
|
|
4924
4514
|
interface UpdateReservationLocationSignature {
|
|
4925
4515
|
/**
|
|
4926
4516
|
* Updates a reservation location. Supports partial updates.
|
|
@@ -4934,7 +4524,7 @@ interface UpdateReservationLocationSignature {
|
|
|
4934
4524
|
*/
|
|
4935
4525
|
(_id: string | null, reservationLocation: UpdateReservationLocation): Promise<ReservationLocation & ReservationLocationNonNullableFields>;
|
|
4936
4526
|
}
|
|
4937
|
-
declare function updateExtendedFields$1(httpClient: HttpClient
|
|
4527
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
4938
4528
|
interface UpdateExtendedFieldsSignature {
|
|
4939
4529
|
/**
|
|
4940
4530
|
* Updates extended fields of a reservation location without incrementing revision
|
|
@@ -4943,7 +4533,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
4943
4533
|
*/
|
|
4944
4534
|
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
4945
4535
|
}
|
|
4946
|
-
declare function queryReservationLocations$1(httpClient: HttpClient
|
|
4536
|
+
declare function queryReservationLocations$1(httpClient: HttpClient): QueryReservationLocationsSignature;
|
|
4947
4537
|
interface QueryReservationLocationsSignature {
|
|
4948
4538
|
/**
|
|
4949
4539
|
* Creates a query to retrieve a list of reservation locations.
|
|
@@ -4966,683 +4556,273 @@ interface QueryReservationLocationsSignature {
|
|
|
4966
4556
|
*/
|
|
4967
4557
|
(options?: QueryReservationLocationsOptions | undefined): ReservationLocationsQueryBuilder;
|
|
4968
4558
|
}
|
|
4969
|
-
declare function listReservationLocations$1(httpClient: HttpClient
|
|
4559
|
+
declare function listReservationLocations$1(httpClient: HttpClient): ListReservationLocationsSignature;
|
|
4970
4560
|
interface ListReservationLocationsSignature {
|
|
4971
4561
|
/**
|
|
4972
4562
|
* Retrieves a list of up to 100 reservation locations.
|
|
4973
4563
|
*
|
|
4974
4564
|
* The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
|
|
4975
|
-
* @param - An object representing the available options for listing reservation locations.
|
|
4976
|
-
*/
|
|
4977
|
-
(options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4978
|
-
}
|
|
4979
|
-
declare const onReservationLocationUpdated$1: EventDefinition$2<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
4980
|
-
declare const onReservationLocationCreated$1: EventDefinition$2<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
4981
|
-
|
|
4982
|
-
type EventDefinition
|
|
4983
|
-
__type: 'event-definition';
|
|
4984
|
-
type: Type;
|
|
4985
|
-
isDomainEvent?: boolean;
|
|
4986
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4987
|
-
__payload: Payload;
|
|
4988
|
-
};
|
|
4989
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
4990
|
-
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
4991
|
-
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
4992
|
-
|
|
4993
|
-
declare global {
|
|
4994
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4995
|
-
interface SymbolConstructor {
|
|
4996
|
-
readonly observable: symbol;
|
|
4997
|
-
}
|
|
4998
|
-
}
|
|
4999
|
-
|
|
5000
|
-
declare function createEventModule<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
5001
|
-
|
|
5002
|
-
declare const getReservationLocation: MaybeContext$1<BuildRESTFunction$1<typeof getReservationLocation$1> & typeof getReservationLocation$1>;
|
|
5003
|
-
declare const updateReservationLocation: MaybeContext$1<BuildRESTFunction$1<typeof updateReservationLocation$1> & typeof updateReservationLocation$1>;
|
|
5004
|
-
declare const updateExtendedFields: MaybeContext$1<BuildRESTFunction$1<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
5005
|
-
declare const queryReservationLocations: MaybeContext$1<BuildRESTFunction$1<typeof queryReservationLocations$1> & typeof queryReservationLocations$1>;
|
|
5006
|
-
declare const listReservationLocations: MaybeContext$1<BuildRESTFunction$1<typeof listReservationLocations$1> & typeof listReservationLocations$1>;
|
|
5007
|
-
|
|
5008
|
-
type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
|
|
5009
|
-
/**
|
|
5010
|
-
* Triggered when a reservation location is updated.
|
|
5011
|
-
*/
|
|
5012
|
-
declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
|
|
5013
|
-
|
|
5014
|
-
type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
|
|
5015
|
-
/**
|
|
5016
|
-
* Triggered when a reservation location is updated.
|
|
5017
|
-
*/
|
|
5018
|
-
declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
|
|
5019
|
-
|
|
5020
|
-
type index_d$1_ActionEvent = ActionEvent;
|
|
5021
|
-
type index_d$1_Address = Address;
|
|
5022
|
-
type index_d$1_AddressHint = AddressHint;
|
|
5023
|
-
type index_d$1_AddressLocation = AddressLocation;
|
|
5024
|
-
type index_d$1_App = App;
|
|
5025
|
-
type index_d$1_Approval = Approval;
|
|
5026
|
-
type index_d$1_ApprovalMode = ApprovalMode;
|
|
5027
|
-
declare const index_d$1_ApprovalMode: typeof ApprovalMode;
|
|
5028
|
-
type index_d$1_ApprovalOptionsOneOf = ApprovalOptionsOneOf;
|
|
5029
|
-
type index_d$1_Asset = Asset;
|
|
5030
|
-
type index_d$1_AssignedFromFloatingReason = AssignedFromFloatingReason;
|
|
5031
|
-
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
5032
|
-
type index_d$1_BooleanFeature = BooleanFeature;
|
|
5033
|
-
type index_d$1_BusinessSchedule = BusinessSchedule;
|
|
5034
|
-
type index_d$1_CancelRequestedReason = CancelRequestedReason;
|
|
5035
|
-
type index_d$1_Categories = Categories;
|
|
5036
|
-
type index_d$1_ChangeContext = ChangeContext;
|
|
5037
|
-
type index_d$1_ChangeContextPayloadOneOf = ChangeContextPayloadOneOf;
|
|
5038
|
-
type index_d$1_CheckReservationLocationsCreatedRequest = CheckReservationLocationsCreatedRequest;
|
|
5039
|
-
type index_d$1_CheckReservationLocationsCreatedResponse = CheckReservationLocationsCreatedResponse;
|
|
5040
|
-
type index_d$1_CommonBusinessSchedule = CommonBusinessSchedule;
|
|
5041
|
-
type index_d$1_CommonDayOfWeek = CommonDayOfWeek;
|
|
5042
|
-
declare const index_d$1_CommonDayOfWeek: typeof CommonDayOfWeek;
|
|
5043
|
-
type index_d$1_CommonSpecialHourPeriod = CommonSpecialHourPeriod;
|
|
5044
|
-
type index_d$1_CommonTimePeriod = CommonTimePeriod;
|
|
5045
|
-
type index_d$1_Configuration = Configuration;
|
|
5046
|
-
type index_d$1_ConsentPolicy = ConsentPolicy;
|
|
5047
|
-
type index_d$1_ContractSwitchedReason = ContractSwitchedReason;
|
|
5048
|
-
type index_d$1_CursorPaging = CursorPaging;
|
|
5049
|
-
type index_d$1_CursorPagingMetadata = CursorPagingMetadata;
|
|
5050
|
-
type index_d$1_Cursors = Cursors;
|
|
5051
|
-
type index_d$1_CustomFieldDefinition = CustomFieldDefinition;
|
|
5052
|
-
type index_d$1_DayOfWeek = DayOfWeek;
|
|
5053
|
-
declare const index_d$1_DayOfWeek: typeof DayOfWeek;
|
|
5054
|
-
type index_d$1_DeleteContext = DeleteContext;
|
|
5055
|
-
type index_d$1_DeleteOrphanReservationLocationRequest = DeleteOrphanReservationLocationRequest;
|
|
5056
|
-
type index_d$1_DeleteOrphanReservationLocationResponse = DeleteOrphanReservationLocationResponse;
|
|
5057
|
-
type index_d$1_DeleteStatus = DeleteStatus;
|
|
5058
|
-
declare const index_d$1_DeleteStatus: typeof DeleteStatus;
|
|
5059
|
-
type index_d$1_DomainEvent = DomainEvent;
|
|
5060
|
-
type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
5061
|
-
type index_d$1_EmailMarketingCheckbox = EmailMarketingCheckbox;
|
|
5062
|
-
type index_d$1_Empty = Empty;
|
|
5063
|
-
type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
|
|
5064
|
-
type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
|
|
5065
|
-
type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
5066
|
-
type index_d$1_EventMetadata = EventMetadata;
|
|
5067
|
-
type index_d$1_ExtendedFields = ExtendedFields;
|
|
5068
|
-
type index_d$1_Feature = Feature;
|
|
5069
|
-
type index_d$1_FeatureCancelled = FeatureCancelled;
|
|
5070
|
-
type index_d$1_FeatureCancelledReasonOneOf = FeatureCancelledReasonOneOf;
|
|
5071
|
-
type index_d$1_FeatureContext = FeatureContext;
|
|
5072
|
-
type index_d$1_FeatureDisabled = FeatureDisabled;
|
|
5073
|
-
type index_d$1_FeatureDisabledReasonOneOf = FeatureDisabledReasonOneOf;
|
|
5074
|
-
type index_d$1_FeatureEnabled = FeatureEnabled;
|
|
5075
|
-
type index_d$1_FeatureEnabledReasonOneOf = FeatureEnabledReasonOneOf;
|
|
5076
|
-
type index_d$1_FeatureEvent = FeatureEvent;
|
|
5077
|
-
type index_d$1_FeatureEventEventOneOf = FeatureEventEventOneOf;
|
|
5078
|
-
type index_d$1_FeaturePeriod = FeaturePeriod;
|
|
5079
|
-
declare const index_d$1_FeaturePeriod: typeof FeaturePeriod;
|
|
5080
|
-
type index_d$1_FeatureQuantityInfoOneOf = FeatureQuantityInfoOneOf;
|
|
5081
|
-
type index_d$1_FeatureUpdated = FeatureUpdated;
|
|
5082
|
-
type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf = FeatureUpdatedPreviousQuantityInfoOneOf;
|
|
5083
|
-
type index_d$1_FeatureUpdatedReasonOneOf = FeatureUpdatedReasonOneOf;
|
|
5084
|
-
type index_d$1_FieldType = FieldType;
|
|
5085
|
-
declare const index_d$1_FieldType: typeof FieldType;
|
|
5086
|
-
type index_d$1_File = File;
|
|
5087
|
-
type index_d$1_GeoCoordinates = GeoCoordinates;
|
|
5088
|
-
type index_d$1_GetReservationLocationOptions = GetReservationLocationOptions;
|
|
5089
|
-
type index_d$1_GetReservationLocationRequest = GetReservationLocationRequest;
|
|
5090
|
-
type index_d$1_GetReservationLocationResponse = GetReservationLocationResponse;
|
|
5091
|
-
type index_d$1_GetReservationLocationResponseNonNullableFields = GetReservationLocationResponseNonNullableFields;
|
|
5092
|
-
type index_d$1_IdentificationData = IdentificationData;
|
|
5093
|
-
type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
5094
|
-
type index_d$1_InvalidateCache = InvalidateCache;
|
|
5095
|
-
type index_d$1_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
|
|
5096
|
-
type index_d$1_ListReservationLocationsOptions = ListReservationLocationsOptions;
|
|
5097
|
-
type index_d$1_ListReservationLocationsRequest = ListReservationLocationsRequest;
|
|
5098
|
-
type index_d$1_ListReservationLocationsResponse = ListReservationLocationsResponse;
|
|
5099
|
-
type index_d$1_ListReservationLocationsResponseNonNullableFields = ListReservationLocationsResponseNonNullableFields;
|
|
5100
|
-
type index_d$1_Locale = Locale;
|
|
5101
|
-
type index_d$1_Location = Location;
|
|
5102
|
-
type index_d$1_LocationAddress = LocationAddress;
|
|
5103
|
-
type index_d$1_ManualApproval = ManualApproval;
|
|
5104
|
-
type index_d$1_ManualApprovalValueOneOf = ManualApprovalValueOneOf;
|
|
5105
|
-
type index_d$1_ManualFeatureCreationReason = ManualFeatureCreationReason;
|
|
5106
|
-
type index_d$1_ManualForLargePartiesOptions = ManualForLargePartiesOptions;
|
|
5107
|
-
type index_d$1_MessageEnvelope = MessageEnvelope;
|
|
5108
|
-
type index_d$1_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
|
|
5109
|
-
type index_d$1_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
|
|
5110
|
-
type index_d$1_MigrateOldRestaurantSettingsRequest = MigrateOldRestaurantSettingsRequest;
|
|
5111
|
-
type index_d$1_MigrateOldRestaurantSettingsResponse = MigrateOldRestaurantSettingsResponse;
|
|
5112
|
-
type index_d$1_MigratedFromLegacyReason = MigratedFromLegacyReason;
|
|
5113
|
-
type index_d$1_MigrationParsingError = MigrationParsingError;
|
|
5114
|
-
type index_d$1_MigrationResult = MigrationResult;
|
|
5115
|
-
type index_d$1_Mode = Mode;
|
|
5116
|
-
declare const index_d$1_Mode: typeof Mode;
|
|
5117
|
-
type index_d$1_Multilingual = Multilingual;
|
|
5118
|
-
type index_d$1_MyReservationsField = MyReservationsField;
|
|
5119
|
-
type index_d$1_Namespace = Namespace;
|
|
5120
|
-
declare const index_d$1_Namespace: typeof Namespace;
|
|
5121
|
-
type index_d$1_NamespaceChanged = NamespaceChanged;
|
|
5122
|
-
type index_d$1_NewFeatureReason = NewFeatureReason;
|
|
5123
|
-
type index_d$1_NoticePeriod = NoticePeriod;
|
|
5124
|
-
type index_d$1_OldCustomField = OldCustomField;
|
|
5125
|
-
type index_d$1_OldInstant = OldInstant;
|
|
5126
|
-
type index_d$1_OldPolicy = OldPolicy;
|
|
5127
|
-
type index_d$1_OldScheduleException = OldScheduleException;
|
|
5128
|
-
type index_d$1_OldScheduleInterval = OldScheduleInterval;
|
|
5129
|
-
type index_d$1_OldTerms = OldTerms;
|
|
5130
|
-
type index_d$1_OnlineReservations = OnlineReservations;
|
|
5131
|
-
type index_d$1_Page = Page;
|
|
5132
|
-
type index_d$1_Paging = Paging;
|
|
5133
|
-
type index_d$1_PagingMetadataV2 = PagingMetadataV2;
|
|
5134
|
-
type index_d$1_ParsedSettings = ParsedSettings;
|
|
5135
|
-
type index_d$1_PartiesSize = PartiesSize;
|
|
5136
|
-
type index_d$1_PartyPacing = PartyPacing;
|
|
5137
|
-
type index_d$1_PartySize = PartySize;
|
|
5138
|
-
type index_d$1_PlacementType = PlacementType;
|
|
5139
|
-
declare const index_d$1_PlacementType: typeof PlacementType;
|
|
5140
|
-
type index_d$1_PrivacyPolicy = PrivacyPolicy;
|
|
5141
|
-
type index_d$1_PrivacyPolicyValueOneOf = PrivacyPolicyValueOneOf;
|
|
5142
|
-
type index_d$1_Properties = Properties;
|
|
5143
|
-
type index_d$1_PropertiesChange = PropertiesChange;
|
|
5144
|
-
type index_d$1_QueryReservationLocationsOptions = QueryReservationLocationsOptions;
|
|
5145
|
-
type index_d$1_QueryReservationLocationsRequest = QueryReservationLocationsRequest;
|
|
5146
|
-
type index_d$1_QueryReservationLocationsResponse = QueryReservationLocationsResponse;
|
|
5147
|
-
type index_d$1_QueryReservationLocationsResponseNonNullableFields = QueryReservationLocationsResponseNonNullableFields;
|
|
5148
|
-
type index_d$1_QueryV2 = QueryV2;
|
|
5149
|
-
type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
5150
|
-
type index_d$1_QuotaFeature = QuotaFeature;
|
|
5151
|
-
type index_d$1_QuotaInfo = QuotaInfo;
|
|
5152
|
-
type index_d$1_ReassignedFromSiteReason = ReassignedFromSiteReason;
|
|
5153
|
-
type index_d$1_ReassignedToAnotherSiteReason = ReassignedToAnotherSiteReason;
|
|
5154
|
-
type index_d$1_ReplacedByAnotherSubscriptionReason = ReplacedByAnotherSubscriptionReason;
|
|
5155
|
-
type index_d$1_ReservationForm = ReservationForm;
|
|
5156
|
-
type index_d$1_ReservationLocation = ReservationLocation;
|
|
5157
|
-
type index_d$1_ReservationLocationCreatedEnvelope = ReservationLocationCreatedEnvelope;
|
|
5158
|
-
type index_d$1_ReservationLocationNonNullableFields = ReservationLocationNonNullableFields;
|
|
5159
|
-
type index_d$1_ReservationLocationUpdatedEnvelope = ReservationLocationUpdatedEnvelope;
|
|
5160
|
-
type index_d$1_ReservationLocationsQueryBuilder = ReservationLocationsQueryBuilder;
|
|
5161
|
-
type index_d$1_ReservationLocationsQueryResult = ReservationLocationsQueryResult;
|
|
5162
|
-
type index_d$1_ReservationPayment = ReservationPayment;
|
|
5163
|
-
type index_d$1_ResolutionMethod = ResolutionMethod;
|
|
5164
|
-
declare const index_d$1_ResolutionMethod: typeof ResolutionMethod;
|
|
5165
|
-
type index_d$1_RestoreInfo = RestoreInfo;
|
|
5166
|
-
type index_d$1_SeatPacing = SeatPacing;
|
|
5167
|
-
type index_d$1_ServiceProvisioned = ServiceProvisioned;
|
|
5168
|
-
type index_d$1_ServiceRemoved = ServiceRemoved;
|
|
5169
|
-
type index_d$1_Set = Set;
|
|
5170
|
-
declare const index_d$1_Set: typeof Set;
|
|
5171
|
-
type index_d$1_SiteCloned = SiteCloned;
|
|
5172
|
-
type index_d$1_SiteCreated = SiteCreated;
|
|
5173
|
-
type index_d$1_SiteCreatedContext = SiteCreatedContext;
|
|
5174
|
-
declare const index_d$1_SiteCreatedContext: typeof SiteCreatedContext;
|
|
5175
|
-
type index_d$1_SiteDeleted = SiteDeleted;
|
|
5176
|
-
type index_d$1_SiteHardDeleted = SiteHardDeleted;
|
|
5177
|
-
type index_d$1_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
|
|
5178
|
-
type index_d$1_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
|
|
5179
|
-
type index_d$1_SitePropertiesEvent = SitePropertiesEvent;
|
|
5180
|
-
type index_d$1_SitePropertiesNotification = SitePropertiesNotification;
|
|
5181
|
-
type index_d$1_SitePublished = SitePublished;
|
|
5182
|
-
type index_d$1_SiteRenamed = SiteRenamed;
|
|
5183
|
-
type index_d$1_SiteTransferred = SiteTransferred;
|
|
5184
|
-
type index_d$1_SiteUndeleted = SiteUndeleted;
|
|
5185
|
-
type index_d$1_SiteUnpublished = SiteUnpublished;
|
|
5186
|
-
type index_d$1_SortOrder = SortOrder;
|
|
5187
|
-
declare const index_d$1_SortOrder: typeof SortOrder;
|
|
5188
|
-
type index_d$1_Sorting = Sorting;
|
|
5189
|
-
type index_d$1_SpecialHourPeriod = SpecialHourPeriod;
|
|
5190
|
-
type index_d$1_State = State;
|
|
5191
|
-
declare const index_d$1_State: typeof State;
|
|
5192
|
-
type index_d$1_StreetAddress = StreetAddress;
|
|
5193
|
-
type index_d$1_StudioAssigned = StudioAssigned;
|
|
5194
|
-
type index_d$1_StudioUnassigned = StudioUnassigned;
|
|
5195
|
-
type index_d$1_SupportedLanguage = SupportedLanguage;
|
|
5196
|
-
type index_d$1_TableDefinition = TableDefinition;
|
|
5197
|
-
type index_d$1_TableManagement = TableManagement;
|
|
5198
|
-
type index_d$1_TablesDeleted = TablesDeleted;
|
|
5199
|
-
type index_d$1_TermsAndConditions = TermsAndConditions;
|
|
5200
|
-
type index_d$1_TermsAndConditionsValueOneOf = TermsAndConditionsValueOneOf;
|
|
5201
|
-
type index_d$1_TimePeriod = TimePeriod;
|
|
5202
|
-
type index_d$1_TransferredFromAnotherAccountReason = TransferredFromAnotherAccountReason;
|
|
5203
|
-
type index_d$1_TransferredToAnotherAccountReason = TransferredToAnotherAccountReason;
|
|
5204
|
-
type index_d$1_Translation = Translation;
|
|
5205
|
-
type index_d$1_TurnoverRule = TurnoverRule;
|
|
5206
|
-
type index_d$1_TurnoverTimeRule = TurnoverTimeRule;
|
|
5207
|
-
type index_d$1_URI = URI;
|
|
5208
|
-
type index_d$1_UnAssingedToFloatingReason = UnAssingedToFloatingReason;
|
|
5209
|
-
type index_d$1_Unit = Unit;
|
|
5210
|
-
declare const index_d$1_Unit: typeof Unit;
|
|
5211
|
-
type index_d$1_UpdateExtendedFieldsOptions = UpdateExtendedFieldsOptions;
|
|
5212
|
-
type index_d$1_UpdateExtendedFieldsRequest = UpdateExtendedFieldsRequest;
|
|
5213
|
-
type index_d$1_UpdateExtendedFieldsResponse = UpdateExtendedFieldsResponse;
|
|
5214
|
-
type index_d$1_UpdateExtendedFieldsResponseNonNullableFields = UpdateExtendedFieldsResponseNonNullableFields;
|
|
5215
|
-
type index_d$1_UpdateReservationLocation = UpdateReservationLocation;
|
|
5216
|
-
type index_d$1_UpdateReservationLocationRequest = UpdateReservationLocationRequest;
|
|
5217
|
-
type index_d$1_UpdateReservationLocationResponse = UpdateReservationLocationResponse;
|
|
5218
|
-
type index_d$1_UpdateReservationLocationResponseNonNullableFields = UpdateReservationLocationResponseNonNullableFields;
|
|
5219
|
-
type index_d$1_V4SiteCreated = V4SiteCreated;
|
|
5220
|
-
type index_d$1_Value = Value;
|
|
5221
|
-
declare const index_d$1_Value: typeof Value;
|
|
5222
|
-
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
5223
|
-
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
5224
|
-
type index_d$1__publicOnReservationLocationCreatedType = _publicOnReservationLocationCreatedType;
|
|
5225
|
-
type index_d$1__publicOnReservationLocationUpdatedType = _publicOnReservationLocationUpdatedType;
|
|
5226
|
-
declare const index_d$1_getReservationLocation: typeof getReservationLocation;
|
|
5227
|
-
declare const index_d$1_listReservationLocations: typeof listReservationLocations;
|
|
5228
|
-
declare const index_d$1_onReservationLocationCreated: typeof onReservationLocationCreated;
|
|
5229
|
-
declare const index_d$1_onReservationLocationUpdated: typeof onReservationLocationUpdated;
|
|
5230
|
-
declare const index_d$1_queryReservationLocations: typeof queryReservationLocations;
|
|
5231
|
-
declare const index_d$1_updateExtendedFields: typeof updateExtendedFields;
|
|
5232
|
-
declare const index_d$1_updateReservationLocation: typeof updateReservationLocation;
|
|
5233
|
-
declare namespace index_d$1 {
|
|
5234
|
-
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_Approval as Approval, index_d$1_ApprovalMode as ApprovalMode, type index_d$1_ApprovalOptionsOneOf as ApprovalOptionsOneOf, 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_ExtendedFields as ExtendedFields, 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_ManualForLargePartiesOptions as ManualForLargePartiesOptions, 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_ReservationLocationNonNullableFields as ReservationLocationNonNullableFields, 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_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d$1_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d$1_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d$1_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, 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_Value as Value, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicOnReservationLocationCreatedType as _publicOnReservationLocationCreatedType, type index_d$1__publicOnReservationLocationUpdatedType as _publicOnReservationLocationUpdatedType, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, onReservationLocationCreated$1 as publicOnReservationLocationCreated, onReservationLocationUpdated$1 as publicOnReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateExtendedFields as updateExtendedFields, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
5235
|
-
}
|
|
5236
|
-
|
|
5237
|
-
type HostModule<T, H extends Host> = {
|
|
5238
|
-
__type: 'host';
|
|
5239
|
-
create(host: H): T;
|
|
5240
|
-
};
|
|
5241
|
-
type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
|
|
5242
|
-
type Host<Environment = unknown> = {
|
|
5243
|
-
channel: {
|
|
5244
|
-
observeState(callback: (props: unknown, environment: Environment) => unknown): {
|
|
5245
|
-
disconnect: () => void;
|
|
5246
|
-
} | Promise<{
|
|
5247
|
-
disconnect: () => void;
|
|
5248
|
-
}>;
|
|
5249
|
-
};
|
|
5250
|
-
environment?: Environment;
|
|
5251
|
-
/**
|
|
5252
|
-
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
5253
|
-
*/
|
|
5254
|
-
apiBaseUrl?: string;
|
|
5255
|
-
/**
|
|
5256
|
-
* Possible data to be provided by every host, for cross cutting concerns
|
|
5257
|
-
* like internationalization, billing, etc.
|
|
5258
|
-
*/
|
|
5259
|
-
essentials?: {
|
|
5260
|
-
/**
|
|
5261
|
-
* The language of the currently viewed session
|
|
5262
|
-
*/
|
|
5263
|
-
language?: string;
|
|
5264
|
-
/**
|
|
5265
|
-
* The locale of the currently viewed session
|
|
5266
|
-
*/
|
|
5267
|
-
locale?: string;
|
|
5268
|
-
/**
|
|
5269
|
-
* Any headers that should be passed through to the API requests
|
|
5270
|
-
*/
|
|
5271
|
-
passThroughHeaders?: Record<string, string>;
|
|
5272
|
-
};
|
|
5273
|
-
};
|
|
5274
|
-
|
|
5275
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
5276
|
-
interface HttpClient {
|
|
5277
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5278
|
-
fetchWithAuth: typeof fetch;
|
|
5279
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
5280
|
-
getActiveToken?: () => string | undefined;
|
|
5281
|
-
}
|
|
5282
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5283
|
-
type HttpResponse<T = any> = {
|
|
5284
|
-
data: T;
|
|
5285
|
-
status: number;
|
|
5286
|
-
statusText: string;
|
|
5287
|
-
headers: any;
|
|
5288
|
-
request?: any;
|
|
5289
|
-
};
|
|
5290
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5291
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5292
|
-
url: string;
|
|
5293
|
-
data?: Data;
|
|
5294
|
-
params?: URLSearchParams;
|
|
5295
|
-
} & APIMetadata;
|
|
5296
|
-
type APIMetadata = {
|
|
5297
|
-
methodFqn?: string;
|
|
5298
|
-
entityFqdn?: string;
|
|
5299
|
-
packageName?: string;
|
|
5300
|
-
};
|
|
5301
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
5302
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5303
|
-
__type: 'event-definition';
|
|
5304
|
-
type: Type;
|
|
5305
|
-
isDomainEvent?: boolean;
|
|
5306
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5307
|
-
__payload: Payload;
|
|
5308
|
-
};
|
|
5309
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5310
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
5311
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5312
|
-
|
|
5313
|
-
type ServicePluginMethodInput = {
|
|
5314
|
-
request: any;
|
|
5315
|
-
metadata: any;
|
|
5316
|
-
};
|
|
5317
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
5318
|
-
type ServicePluginMethodMetadata = {
|
|
5319
|
-
name: string;
|
|
5320
|
-
primaryHttpMappingPath: string;
|
|
5321
|
-
transformations: {
|
|
5322
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
5323
|
-
toREST: (...args: unknown[]) => unknown;
|
|
5324
|
-
};
|
|
5325
|
-
};
|
|
5326
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
5327
|
-
__type: 'service-plugin-definition';
|
|
5328
|
-
componentType: string;
|
|
5329
|
-
methods: ServicePluginMethodMetadata[];
|
|
5330
|
-
__contract: Contract;
|
|
5331
|
-
};
|
|
5332
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
5333
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
5334
|
-
declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
|
5335
|
-
|
|
5336
|
-
type RequestContext = {
|
|
5337
|
-
isSSR: boolean;
|
|
5338
|
-
host: string;
|
|
5339
|
-
protocol?: string;
|
|
5340
|
-
};
|
|
5341
|
-
type ResponseTransformer = (data: any, headers?: any) => any;
|
|
5342
|
-
/**
|
|
5343
|
-
* Ambassador request options types are copied mostly from AxiosRequestConfig.
|
|
5344
|
-
* They are copied and not imported to reduce the amount of dependencies (to reduce install time).
|
|
5345
|
-
* https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
|
|
5346
|
-
*/
|
|
5347
|
-
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
5348
|
-
type AmbassadorRequestOptions<T = any> = {
|
|
5349
|
-
_?: T;
|
|
5350
|
-
url?: string;
|
|
5351
|
-
method?: Method;
|
|
5352
|
-
params?: any;
|
|
5353
|
-
data?: any;
|
|
5354
|
-
transformResponse?: ResponseTransformer | ResponseTransformer[];
|
|
5355
|
-
};
|
|
5356
|
-
type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
|
|
5357
|
-
__isAmbassador: boolean;
|
|
5358
|
-
};
|
|
5359
|
-
type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
|
|
5360
|
-
type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
|
5361
|
-
|
|
5362
|
-
declare global {
|
|
5363
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5364
|
-
interface SymbolConstructor {
|
|
5365
|
-
readonly observable: symbol;
|
|
5366
|
-
}
|
|
5367
|
-
}
|
|
5368
|
-
|
|
5369
|
-
declare const emptyObjectSymbol: unique symbol;
|
|
5370
|
-
|
|
5371
|
-
/**
|
|
5372
|
-
Represents a strictly empty plain object, the `{}` value.
|
|
5373
|
-
|
|
5374
|
-
When you annotate something as the type `{}`, it can be anything except `null` and `undefined`. This means that you cannot use `{}` to represent an empty plain object ([read more](https://stackoverflow.com/questions/47339869/typescript-empty-object-and-any-difference/52193484#52193484)).
|
|
5375
|
-
|
|
5376
|
-
@example
|
|
5377
|
-
```
|
|
5378
|
-
import type {EmptyObject} from 'type-fest';
|
|
5379
|
-
|
|
5380
|
-
// The following illustrates the problem with `{}`.
|
|
5381
|
-
const foo1: {} = {}; // Pass
|
|
5382
|
-
const foo2: {} = []; // Pass
|
|
5383
|
-
const foo3: {} = 42; // Pass
|
|
5384
|
-
const foo4: {} = {a: 1}; // Pass
|
|
5385
|
-
|
|
5386
|
-
// With `EmptyObject` only the first case is valid.
|
|
5387
|
-
const bar1: EmptyObject = {}; // Pass
|
|
5388
|
-
const bar2: EmptyObject = 42; // Fail
|
|
5389
|
-
const bar3: EmptyObject = []; // Fail
|
|
5390
|
-
const bar4: EmptyObject = {a: 1}; // Fail
|
|
5391
|
-
```
|
|
5392
|
-
|
|
5393
|
-
Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
|
|
5394
|
-
|
|
5395
|
-
@category Object
|
|
5396
|
-
*/
|
|
5397
|
-
type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
5398
|
-
|
|
5399
|
-
/**
|
|
5400
|
-
Returns a boolean for whether the two given types are equal.
|
|
5401
|
-
|
|
5402
|
-
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
|
|
5403
|
-
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
|
|
5404
|
-
|
|
5405
|
-
Use-cases:
|
|
5406
|
-
- If you want to make a conditional branch based on the result of a comparison of two types.
|
|
5407
|
-
|
|
5408
|
-
@example
|
|
5409
|
-
```
|
|
5410
|
-
import type {IsEqual} from 'type-fest';
|
|
5411
|
-
|
|
5412
|
-
// This type returns a boolean for whether the given array includes the given item.
|
|
5413
|
-
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
|
|
5414
|
-
type Includes<Value extends readonly any[], Item> =
|
|
5415
|
-
Value extends readonly [Value[0], ...infer rest]
|
|
5416
|
-
? IsEqual<Value[0], Item> extends true
|
|
5417
|
-
? true
|
|
5418
|
-
: Includes<rest, Item>
|
|
5419
|
-
: false;
|
|
5420
|
-
```
|
|
5421
|
-
|
|
5422
|
-
@category Type Guard
|
|
5423
|
-
@category Utilities
|
|
5424
|
-
*/
|
|
5425
|
-
type IsEqual<A, B> =
|
|
5426
|
-
(<G>() => G extends A ? 1 : 2) extends
|
|
5427
|
-
(<G>() => G extends B ? 1 : 2)
|
|
5428
|
-
? true
|
|
5429
|
-
: false;
|
|
5430
|
-
|
|
5431
|
-
/**
|
|
5432
|
-
Filter out keys from an object.
|
|
5433
|
-
|
|
5434
|
-
Returns `never` if `Exclude` is strictly equal to `Key`.
|
|
5435
|
-
Returns `never` if `Key` extends `Exclude`.
|
|
5436
|
-
Returns `Key` otherwise.
|
|
5437
|
-
|
|
5438
|
-
@example
|
|
5439
|
-
```
|
|
5440
|
-
type Filtered = Filter<'foo', 'foo'>;
|
|
5441
|
-
//=> never
|
|
5442
|
-
```
|
|
5443
|
-
|
|
5444
|
-
@example
|
|
5445
|
-
```
|
|
5446
|
-
type Filtered = Filter<'bar', string>;
|
|
5447
|
-
//=> never
|
|
5448
|
-
```
|
|
5449
|
-
|
|
5450
|
-
@example
|
|
5451
|
-
```
|
|
5452
|
-
type Filtered = Filter<'bar', 'foo'>;
|
|
5453
|
-
//=> 'bar'
|
|
5454
|
-
```
|
|
5455
|
-
|
|
5456
|
-
@see {Except}
|
|
5457
|
-
*/
|
|
5458
|
-
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
5459
|
-
|
|
5460
|
-
type ExceptOptions = {
|
|
5461
|
-
/**
|
|
5462
|
-
Disallow assigning non-specified properties.
|
|
5463
|
-
|
|
5464
|
-
Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
|
|
5465
|
-
|
|
5466
|
-
@default false
|
|
5467
|
-
*/
|
|
5468
|
-
requireExactProps?: boolean;
|
|
5469
|
-
};
|
|
5470
|
-
|
|
5471
|
-
/**
|
|
5472
|
-
Create a type from an object type without certain keys.
|
|
5473
|
-
|
|
5474
|
-
We recommend setting the `requireExactProps` option to `true`.
|
|
5475
|
-
|
|
5476
|
-
This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.
|
|
5477
|
-
|
|
5478
|
-
This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).
|
|
5479
|
-
|
|
5480
|
-
@example
|
|
5481
|
-
```
|
|
5482
|
-
import type {Except} from 'type-fest';
|
|
5483
|
-
|
|
5484
|
-
type Foo = {
|
|
5485
|
-
a: number;
|
|
5486
|
-
b: string;
|
|
5487
|
-
};
|
|
5488
|
-
|
|
5489
|
-
type FooWithoutA = Except<Foo, 'a'>;
|
|
5490
|
-
//=> {b: string}
|
|
5491
|
-
|
|
5492
|
-
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
|
5493
|
-
//=> errors: 'a' does not exist in type '{ b: string; }'
|
|
5494
|
-
|
|
5495
|
-
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
|
5496
|
-
//=> {a: number} & Partial<Record<"b", never>>
|
|
5497
|
-
|
|
5498
|
-
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
5499
|
-
//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
|
5500
|
-
```
|
|
5501
|
-
|
|
5502
|
-
@category Object
|
|
5503
|
-
*/
|
|
5504
|
-
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
|
|
5505
|
-
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
|
5506
|
-
} & (Options['requireExactProps'] extends true
|
|
5507
|
-
? Partial<Record<KeysType, never>>
|
|
5508
|
-
: {});
|
|
5509
|
-
|
|
5510
|
-
/**
|
|
5511
|
-
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
5512
|
-
|
|
5513
|
-
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
|
5514
|
-
|
|
5515
|
-
@example
|
|
5516
|
-
```
|
|
5517
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
5518
|
-
|
|
5519
|
-
interface Example {
|
|
5520
|
-
a: string;
|
|
5521
|
-
b: string | number;
|
|
5522
|
-
c?: string;
|
|
5523
|
-
d: {};
|
|
5524
|
-
}
|
|
5525
|
-
|
|
5526
|
-
type StringKeysOnly = ConditionalKeys<Example, string>;
|
|
5527
|
-
//=> 'a'
|
|
5528
|
-
```
|
|
5529
|
-
|
|
5530
|
-
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
|
5531
|
-
|
|
5532
|
-
@example
|
|
5533
|
-
```
|
|
5534
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
5535
|
-
|
|
5536
|
-
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
5537
|
-
//=> 'a' | 'c'
|
|
5538
|
-
```
|
|
5539
|
-
|
|
5540
|
-
@category Object
|
|
5541
|
-
*/
|
|
5542
|
-
type ConditionalKeys<Base, Condition> = NonNullable<
|
|
5543
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
5544
|
-
{
|
|
5545
|
-
// Map through all the keys of the given base type.
|
|
5546
|
-
[Key in keyof Base]:
|
|
5547
|
-
// Pick only keys with types extending the given `Condition` type.
|
|
5548
|
-
Base[Key] extends Condition
|
|
5549
|
-
// Retain this key since the condition passes.
|
|
5550
|
-
? Key
|
|
5551
|
-
// Discard this key since the condition fails.
|
|
5552
|
-
: never;
|
|
5553
|
-
|
|
5554
|
-
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
5555
|
-
}[keyof Base]
|
|
5556
|
-
>;
|
|
5557
|
-
|
|
5558
|
-
/**
|
|
5559
|
-
Exclude keys from a shape that matches the given `Condition`.
|
|
5560
|
-
|
|
5561
|
-
This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties.
|
|
5562
|
-
|
|
5563
|
-
@example
|
|
5564
|
-
```
|
|
5565
|
-
import type {Primitive, ConditionalExcept} from 'type-fest';
|
|
5566
|
-
|
|
5567
|
-
class Awesome {
|
|
5568
|
-
name: string;
|
|
5569
|
-
successes: number;
|
|
5570
|
-
failures: bigint;
|
|
5571
|
-
|
|
5572
|
-
run() {}
|
|
5573
|
-
}
|
|
5574
|
-
|
|
5575
|
-
type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
|
|
5576
|
-
//=> {run: () => void}
|
|
5577
|
-
```
|
|
5578
|
-
|
|
5579
|
-
@example
|
|
5580
|
-
```
|
|
5581
|
-
import type {ConditionalExcept} from 'type-fest';
|
|
5582
|
-
|
|
5583
|
-
interface Example {
|
|
5584
|
-
a: string;
|
|
5585
|
-
b: string | number;
|
|
5586
|
-
c: () => void;
|
|
5587
|
-
d: {};
|
|
5588
|
-
}
|
|
5589
|
-
|
|
5590
|
-
type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
|
5591
|
-
//=> {b: string | number; c: () => void; d: {}}
|
|
5592
|
-
```
|
|
5593
|
-
|
|
5594
|
-
@category Object
|
|
5595
|
-
*/
|
|
5596
|
-
type ConditionalExcept<Base, Condition> = Except<
|
|
5597
|
-
Base,
|
|
5598
|
-
ConditionalKeys<Base, Condition>
|
|
5599
|
-
>;
|
|
5600
|
-
|
|
5601
|
-
/**
|
|
5602
|
-
* Descriptors are objects that describe the API of a module, and the module
|
|
5603
|
-
* can either be a REST module or a host module.
|
|
5604
|
-
* This type is recursive, so it can describe nested modules.
|
|
5605
|
-
*/
|
|
5606
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
5607
|
-
[key: string]: Descriptors | PublicMetadata | any;
|
|
5608
|
-
};
|
|
5609
|
-
/**
|
|
5610
|
-
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
|
5611
|
-
* and returns an object with the same structure, but with all descriptors replaced with their API.
|
|
5612
|
-
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
|
5613
|
-
* do not match the given host (as they will not work with the given host).
|
|
5614
|
-
*/
|
|
5615
|
-
type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
|
|
5616
|
-
done: T;
|
|
5617
|
-
recurse: T extends {
|
|
5618
|
-
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
5619
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
5620
|
-
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
5621
|
-
-1,
|
|
5622
|
-
0,
|
|
5623
|
-
1,
|
|
5624
|
-
2,
|
|
5625
|
-
3,
|
|
5626
|
-
4,
|
|
5627
|
-
5
|
|
5628
|
-
][Depth]> : never;
|
|
5629
|
-
}, EmptyObject>;
|
|
5630
|
-
}[Depth extends -1 ? 'done' : 'recurse'];
|
|
5631
|
-
type PublicMetadata = {
|
|
5632
|
-
PACKAGE_NAME?: string;
|
|
4565
|
+
* @param - An object representing the available options for listing reservation locations.
|
|
4566
|
+
*/
|
|
4567
|
+
(options?: ListReservationLocationsOptions | undefined): Promise<ListReservationLocationsResponse & ListReservationLocationsResponseNonNullableFields>;
|
|
4568
|
+
}
|
|
4569
|
+
declare const onReservationLocationUpdated$1: EventDefinition$2<ReservationLocationUpdatedEnvelope, "wix.table_reservations.v1.reservation_location_updated">;
|
|
4570
|
+
declare const onReservationLocationCreated$1: EventDefinition$2<ReservationLocationCreatedEnvelope, "wix.table_reservations.v1.reservation_location_created">;
|
|
4571
|
+
|
|
4572
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4573
|
+
__type: 'event-definition';
|
|
4574
|
+
type: Type;
|
|
4575
|
+
isDomainEvent?: boolean;
|
|
4576
|
+
transformations?: (envelope: unknown) => Payload;
|
|
4577
|
+
__payload: Payload;
|
|
5633
4578
|
};
|
|
4579
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
4580
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
4581
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
5634
4582
|
|
|
5635
4583
|
declare global {
|
|
5636
|
-
|
|
5637
|
-
|
|
4584
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4585
|
+
interface SymbolConstructor {
|
|
4586
|
+
readonly observable: symbol;
|
|
4587
|
+
}
|
|
5638
4588
|
}
|
|
4589
|
+
|
|
4590
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4591
|
+
|
|
4592
|
+
declare const getReservationLocation: MaybeContext<BuildRESTFunction<typeof getReservationLocation$1> & typeof getReservationLocation$1>;
|
|
4593
|
+
declare const updateReservationLocation: MaybeContext<BuildRESTFunction<typeof updateReservationLocation$1> & typeof updateReservationLocation$1>;
|
|
4594
|
+
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
4595
|
+
declare const queryReservationLocations: MaybeContext<BuildRESTFunction<typeof queryReservationLocations$1> & typeof queryReservationLocations$1>;
|
|
4596
|
+
declare const listReservationLocations: MaybeContext<BuildRESTFunction<typeof listReservationLocations$1> & typeof listReservationLocations$1>;
|
|
4597
|
+
|
|
4598
|
+
type _publicOnReservationLocationUpdatedType = typeof onReservationLocationUpdated$1;
|
|
5639
4599
|
/**
|
|
5640
|
-
*
|
|
5641
|
-
* case a contextual client is available.
|
|
4600
|
+
* Triggered when a reservation location is updated.
|
|
5642
4601
|
*/
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
4602
|
+
declare const onReservationLocationUpdated: ReturnType<typeof createEventModule<_publicOnReservationLocationUpdatedType>>;
|
|
4603
|
+
|
|
4604
|
+
type _publicOnReservationLocationCreatedType = typeof onReservationLocationCreated$1;
|
|
4605
|
+
/**
|
|
4606
|
+
* Triggered when a reservation location is updated.
|
|
4607
|
+
*/
|
|
4608
|
+
declare const onReservationLocationCreated: ReturnType<typeof createEventModule<_publicOnReservationLocationCreatedType>>;
|
|
4609
|
+
|
|
4610
|
+
type index_d$1_ActionEvent = ActionEvent;
|
|
4611
|
+
type index_d$1_Address = Address;
|
|
4612
|
+
type index_d$1_AddressHint = AddressHint;
|
|
4613
|
+
type index_d$1_AddressLocation = AddressLocation;
|
|
4614
|
+
type index_d$1_App = App;
|
|
4615
|
+
type index_d$1_Approval = Approval;
|
|
4616
|
+
type index_d$1_ApprovalMode = ApprovalMode;
|
|
4617
|
+
declare const index_d$1_ApprovalMode: typeof ApprovalMode;
|
|
4618
|
+
type index_d$1_ApprovalOptionsOneOf = ApprovalOptionsOneOf;
|
|
4619
|
+
type index_d$1_Asset = Asset;
|
|
4620
|
+
type index_d$1_AssignedFromFloatingReason = AssignedFromFloatingReason;
|
|
4621
|
+
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
4622
|
+
type index_d$1_BooleanFeature = BooleanFeature;
|
|
4623
|
+
type index_d$1_BusinessSchedule = BusinessSchedule;
|
|
4624
|
+
type index_d$1_CancelRequestedReason = CancelRequestedReason;
|
|
4625
|
+
type index_d$1_Categories = Categories;
|
|
4626
|
+
type index_d$1_ChangeContext = ChangeContext;
|
|
4627
|
+
type index_d$1_ChangeContextPayloadOneOf = ChangeContextPayloadOneOf;
|
|
4628
|
+
type index_d$1_CheckReservationLocationsCreatedRequest = CheckReservationLocationsCreatedRequest;
|
|
4629
|
+
type index_d$1_CheckReservationLocationsCreatedResponse = CheckReservationLocationsCreatedResponse;
|
|
4630
|
+
type index_d$1_CommonBusinessSchedule = CommonBusinessSchedule;
|
|
4631
|
+
type index_d$1_CommonDayOfWeek = CommonDayOfWeek;
|
|
4632
|
+
declare const index_d$1_CommonDayOfWeek: typeof CommonDayOfWeek;
|
|
4633
|
+
type index_d$1_CommonSpecialHourPeriod = CommonSpecialHourPeriod;
|
|
4634
|
+
type index_d$1_CommonTimePeriod = CommonTimePeriod;
|
|
4635
|
+
type index_d$1_Configuration = Configuration;
|
|
4636
|
+
type index_d$1_ConsentPolicy = ConsentPolicy;
|
|
4637
|
+
type index_d$1_ContractSwitchedReason = ContractSwitchedReason;
|
|
4638
|
+
type index_d$1_CursorPaging = CursorPaging;
|
|
4639
|
+
type index_d$1_CursorPagingMetadata = CursorPagingMetadata;
|
|
4640
|
+
type index_d$1_Cursors = Cursors;
|
|
4641
|
+
type index_d$1_CustomFieldDefinition = CustomFieldDefinition;
|
|
4642
|
+
type index_d$1_DayOfWeek = DayOfWeek;
|
|
4643
|
+
declare const index_d$1_DayOfWeek: typeof DayOfWeek;
|
|
4644
|
+
type index_d$1_DeleteContext = DeleteContext;
|
|
4645
|
+
type index_d$1_DeleteOrphanReservationLocationRequest = DeleteOrphanReservationLocationRequest;
|
|
4646
|
+
type index_d$1_DeleteOrphanReservationLocationResponse = DeleteOrphanReservationLocationResponse;
|
|
4647
|
+
type index_d$1_DeleteStatus = DeleteStatus;
|
|
4648
|
+
declare const index_d$1_DeleteStatus: typeof DeleteStatus;
|
|
4649
|
+
type index_d$1_DomainEvent = DomainEvent;
|
|
4650
|
+
type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
4651
|
+
type index_d$1_EmailMarketingCheckbox = EmailMarketingCheckbox;
|
|
4652
|
+
type index_d$1_Empty = Empty;
|
|
4653
|
+
type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
|
|
4654
|
+
type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
|
|
4655
|
+
type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
4656
|
+
type index_d$1_EventMetadata = EventMetadata;
|
|
4657
|
+
type index_d$1_ExtendedFields = ExtendedFields;
|
|
4658
|
+
type index_d$1_Feature = Feature;
|
|
4659
|
+
type index_d$1_FeatureCancelled = FeatureCancelled;
|
|
4660
|
+
type index_d$1_FeatureCancelledReasonOneOf = FeatureCancelledReasonOneOf;
|
|
4661
|
+
type index_d$1_FeatureContext = FeatureContext;
|
|
4662
|
+
type index_d$1_FeatureDisabled = FeatureDisabled;
|
|
4663
|
+
type index_d$1_FeatureDisabledReasonOneOf = FeatureDisabledReasonOneOf;
|
|
4664
|
+
type index_d$1_FeatureEnabled = FeatureEnabled;
|
|
4665
|
+
type index_d$1_FeatureEnabledReasonOneOf = FeatureEnabledReasonOneOf;
|
|
4666
|
+
type index_d$1_FeatureEvent = FeatureEvent;
|
|
4667
|
+
type index_d$1_FeatureEventEventOneOf = FeatureEventEventOneOf;
|
|
4668
|
+
type index_d$1_FeaturePeriod = FeaturePeriod;
|
|
4669
|
+
declare const index_d$1_FeaturePeriod: typeof FeaturePeriod;
|
|
4670
|
+
type index_d$1_FeatureQuantityInfoOneOf = FeatureQuantityInfoOneOf;
|
|
4671
|
+
type index_d$1_FeatureUpdated = FeatureUpdated;
|
|
4672
|
+
type index_d$1_FeatureUpdatedPreviousQuantityInfoOneOf = FeatureUpdatedPreviousQuantityInfoOneOf;
|
|
4673
|
+
type index_d$1_FeatureUpdatedReasonOneOf = FeatureUpdatedReasonOneOf;
|
|
4674
|
+
type index_d$1_FieldType = FieldType;
|
|
4675
|
+
declare const index_d$1_FieldType: typeof FieldType;
|
|
4676
|
+
type index_d$1_File = File;
|
|
4677
|
+
type index_d$1_GeoCoordinates = GeoCoordinates;
|
|
4678
|
+
type index_d$1_GetReservationLocationOptions = GetReservationLocationOptions;
|
|
4679
|
+
type index_d$1_GetReservationLocationRequest = GetReservationLocationRequest;
|
|
4680
|
+
type index_d$1_GetReservationLocationResponse = GetReservationLocationResponse;
|
|
4681
|
+
type index_d$1_GetReservationLocationResponseNonNullableFields = GetReservationLocationResponseNonNullableFields;
|
|
4682
|
+
type index_d$1_IdentificationData = IdentificationData;
|
|
4683
|
+
type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
4684
|
+
type index_d$1_InvalidateCache = InvalidateCache;
|
|
4685
|
+
type index_d$1_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
|
|
4686
|
+
type index_d$1_ListReservationLocationsOptions = ListReservationLocationsOptions;
|
|
4687
|
+
type index_d$1_ListReservationLocationsRequest = ListReservationLocationsRequest;
|
|
4688
|
+
type index_d$1_ListReservationLocationsResponse = ListReservationLocationsResponse;
|
|
4689
|
+
type index_d$1_ListReservationLocationsResponseNonNullableFields = ListReservationLocationsResponseNonNullableFields;
|
|
4690
|
+
type index_d$1_Locale = Locale;
|
|
4691
|
+
type index_d$1_Location = Location;
|
|
4692
|
+
type index_d$1_LocationAddress = LocationAddress;
|
|
4693
|
+
type index_d$1_ManualApproval = ManualApproval;
|
|
4694
|
+
type index_d$1_ManualApprovalValueOneOf = ManualApprovalValueOneOf;
|
|
4695
|
+
type index_d$1_ManualFeatureCreationReason = ManualFeatureCreationReason;
|
|
4696
|
+
type index_d$1_ManualForLargePartiesOptions = ManualForLargePartiesOptions;
|
|
4697
|
+
type index_d$1_MessageEnvelope = MessageEnvelope;
|
|
4698
|
+
type index_d$1_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
|
|
4699
|
+
type index_d$1_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
|
|
4700
|
+
type index_d$1_MigrateOldRestaurantSettingsRequest = MigrateOldRestaurantSettingsRequest;
|
|
4701
|
+
type index_d$1_MigrateOldRestaurantSettingsResponse = MigrateOldRestaurantSettingsResponse;
|
|
4702
|
+
type index_d$1_MigratedFromLegacyReason = MigratedFromLegacyReason;
|
|
4703
|
+
type index_d$1_MigrationParsingError = MigrationParsingError;
|
|
4704
|
+
type index_d$1_MigrationResult = MigrationResult;
|
|
4705
|
+
type index_d$1_Mode = Mode;
|
|
4706
|
+
declare const index_d$1_Mode: typeof Mode;
|
|
4707
|
+
type index_d$1_Multilingual = Multilingual;
|
|
4708
|
+
type index_d$1_MyReservationsField = MyReservationsField;
|
|
4709
|
+
type index_d$1_Namespace = Namespace;
|
|
4710
|
+
declare const index_d$1_Namespace: typeof Namespace;
|
|
4711
|
+
type index_d$1_NamespaceChanged = NamespaceChanged;
|
|
4712
|
+
type index_d$1_NewFeatureReason = NewFeatureReason;
|
|
4713
|
+
type index_d$1_NoticePeriod = NoticePeriod;
|
|
4714
|
+
type index_d$1_OldCustomField = OldCustomField;
|
|
4715
|
+
type index_d$1_OldInstant = OldInstant;
|
|
4716
|
+
type index_d$1_OldPolicy = OldPolicy;
|
|
4717
|
+
type index_d$1_OldScheduleException = OldScheduleException;
|
|
4718
|
+
type index_d$1_OldScheduleInterval = OldScheduleInterval;
|
|
4719
|
+
type index_d$1_OldTerms = OldTerms;
|
|
4720
|
+
type index_d$1_OnlineReservations = OnlineReservations;
|
|
4721
|
+
type index_d$1_Page = Page;
|
|
4722
|
+
type index_d$1_Paging = Paging;
|
|
4723
|
+
type index_d$1_PagingMetadataV2 = PagingMetadataV2;
|
|
4724
|
+
type index_d$1_ParsedSettings = ParsedSettings;
|
|
4725
|
+
type index_d$1_PartiesSize = PartiesSize;
|
|
4726
|
+
type index_d$1_PartyPacing = PartyPacing;
|
|
4727
|
+
type index_d$1_PartySize = PartySize;
|
|
4728
|
+
type index_d$1_PlacementType = PlacementType;
|
|
4729
|
+
declare const index_d$1_PlacementType: typeof PlacementType;
|
|
4730
|
+
type index_d$1_PrivacyPolicy = PrivacyPolicy;
|
|
4731
|
+
type index_d$1_PrivacyPolicyValueOneOf = PrivacyPolicyValueOneOf;
|
|
4732
|
+
type index_d$1_Properties = Properties;
|
|
4733
|
+
type index_d$1_PropertiesChange = PropertiesChange;
|
|
4734
|
+
type index_d$1_QueryReservationLocationsOptions = QueryReservationLocationsOptions;
|
|
4735
|
+
type index_d$1_QueryReservationLocationsRequest = QueryReservationLocationsRequest;
|
|
4736
|
+
type index_d$1_QueryReservationLocationsResponse = QueryReservationLocationsResponse;
|
|
4737
|
+
type index_d$1_QueryReservationLocationsResponseNonNullableFields = QueryReservationLocationsResponseNonNullableFields;
|
|
4738
|
+
type index_d$1_QueryV2 = QueryV2;
|
|
4739
|
+
type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
4740
|
+
type index_d$1_QuotaFeature = QuotaFeature;
|
|
4741
|
+
type index_d$1_QuotaInfo = QuotaInfo;
|
|
4742
|
+
type index_d$1_ReassignedFromSiteReason = ReassignedFromSiteReason;
|
|
4743
|
+
type index_d$1_ReassignedToAnotherSiteReason = ReassignedToAnotherSiteReason;
|
|
4744
|
+
type index_d$1_ReplacedByAnotherSubscriptionReason = ReplacedByAnotherSubscriptionReason;
|
|
4745
|
+
type index_d$1_ReservationForm = ReservationForm;
|
|
4746
|
+
type index_d$1_ReservationLocation = ReservationLocation;
|
|
4747
|
+
type index_d$1_ReservationLocationCreatedEnvelope = ReservationLocationCreatedEnvelope;
|
|
4748
|
+
type index_d$1_ReservationLocationNonNullableFields = ReservationLocationNonNullableFields;
|
|
4749
|
+
type index_d$1_ReservationLocationUpdatedEnvelope = ReservationLocationUpdatedEnvelope;
|
|
4750
|
+
type index_d$1_ReservationLocationsQueryBuilder = ReservationLocationsQueryBuilder;
|
|
4751
|
+
type index_d$1_ReservationLocationsQueryResult = ReservationLocationsQueryResult;
|
|
4752
|
+
type index_d$1_ReservationPayment = ReservationPayment;
|
|
4753
|
+
type index_d$1_ResolutionMethod = ResolutionMethod;
|
|
4754
|
+
declare const index_d$1_ResolutionMethod: typeof ResolutionMethod;
|
|
4755
|
+
type index_d$1_RestoreInfo = RestoreInfo;
|
|
4756
|
+
type index_d$1_SeatPacing = SeatPacing;
|
|
4757
|
+
type index_d$1_ServiceProvisioned = ServiceProvisioned;
|
|
4758
|
+
type index_d$1_ServiceRemoved = ServiceRemoved;
|
|
4759
|
+
type index_d$1_Set = Set;
|
|
4760
|
+
declare const index_d$1_Set: typeof Set;
|
|
4761
|
+
type index_d$1_SiteCloned = SiteCloned;
|
|
4762
|
+
type index_d$1_SiteCreated = SiteCreated;
|
|
4763
|
+
type index_d$1_SiteCreatedContext = SiteCreatedContext;
|
|
4764
|
+
declare const index_d$1_SiteCreatedContext: typeof SiteCreatedContext;
|
|
4765
|
+
type index_d$1_SiteDeleted = SiteDeleted;
|
|
4766
|
+
type index_d$1_SiteHardDeleted = SiteHardDeleted;
|
|
4767
|
+
type index_d$1_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
|
|
4768
|
+
type index_d$1_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
|
|
4769
|
+
type index_d$1_SitePropertiesEvent = SitePropertiesEvent;
|
|
4770
|
+
type index_d$1_SitePropertiesNotification = SitePropertiesNotification;
|
|
4771
|
+
type index_d$1_SitePublished = SitePublished;
|
|
4772
|
+
type index_d$1_SiteRenamed = SiteRenamed;
|
|
4773
|
+
type index_d$1_SiteTransferred = SiteTransferred;
|
|
4774
|
+
type index_d$1_SiteUndeleted = SiteUndeleted;
|
|
4775
|
+
type index_d$1_SiteUnpublished = SiteUnpublished;
|
|
4776
|
+
type index_d$1_SortOrder = SortOrder;
|
|
4777
|
+
declare const index_d$1_SortOrder: typeof SortOrder;
|
|
4778
|
+
type index_d$1_Sorting = Sorting;
|
|
4779
|
+
type index_d$1_SpecialHourPeriod = SpecialHourPeriod;
|
|
4780
|
+
type index_d$1_State = State;
|
|
4781
|
+
declare const index_d$1_State: typeof State;
|
|
4782
|
+
type index_d$1_StreetAddress = StreetAddress;
|
|
4783
|
+
type index_d$1_StudioAssigned = StudioAssigned;
|
|
4784
|
+
type index_d$1_StudioUnassigned = StudioUnassigned;
|
|
4785
|
+
type index_d$1_SupportedLanguage = SupportedLanguage;
|
|
4786
|
+
type index_d$1_TableDefinition = TableDefinition;
|
|
4787
|
+
type index_d$1_TableManagement = TableManagement;
|
|
4788
|
+
type index_d$1_TablesDeleted = TablesDeleted;
|
|
4789
|
+
type index_d$1_TermsAndConditions = TermsAndConditions;
|
|
4790
|
+
type index_d$1_TermsAndConditionsValueOneOf = TermsAndConditionsValueOneOf;
|
|
4791
|
+
type index_d$1_TimePeriod = TimePeriod;
|
|
4792
|
+
type index_d$1_TransferredFromAnotherAccountReason = TransferredFromAnotherAccountReason;
|
|
4793
|
+
type index_d$1_TransferredToAnotherAccountReason = TransferredToAnotherAccountReason;
|
|
4794
|
+
type index_d$1_Translation = Translation;
|
|
4795
|
+
type index_d$1_TurnoverRule = TurnoverRule;
|
|
4796
|
+
type index_d$1_TurnoverTimeRule = TurnoverTimeRule;
|
|
4797
|
+
type index_d$1_URI = URI;
|
|
4798
|
+
type index_d$1_UnAssingedToFloatingReason = UnAssingedToFloatingReason;
|
|
4799
|
+
type index_d$1_Unit = Unit;
|
|
4800
|
+
declare const index_d$1_Unit: typeof Unit;
|
|
4801
|
+
type index_d$1_UpdateExtendedFieldsOptions = UpdateExtendedFieldsOptions;
|
|
4802
|
+
type index_d$1_UpdateExtendedFieldsRequest = UpdateExtendedFieldsRequest;
|
|
4803
|
+
type index_d$1_UpdateExtendedFieldsResponse = UpdateExtendedFieldsResponse;
|
|
4804
|
+
type index_d$1_UpdateExtendedFieldsResponseNonNullableFields = UpdateExtendedFieldsResponseNonNullableFields;
|
|
4805
|
+
type index_d$1_UpdateReservationLocation = UpdateReservationLocation;
|
|
4806
|
+
type index_d$1_UpdateReservationLocationRequest = UpdateReservationLocationRequest;
|
|
4807
|
+
type index_d$1_UpdateReservationLocationResponse = UpdateReservationLocationResponse;
|
|
4808
|
+
type index_d$1_UpdateReservationLocationResponseNonNullableFields = UpdateReservationLocationResponseNonNullableFields;
|
|
4809
|
+
type index_d$1_V4SiteCreated = V4SiteCreated;
|
|
4810
|
+
type index_d$1_Value = Value;
|
|
4811
|
+
declare const index_d$1_Value: typeof Value;
|
|
4812
|
+
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
4813
|
+
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4814
|
+
type index_d$1__publicOnReservationLocationCreatedType = _publicOnReservationLocationCreatedType;
|
|
4815
|
+
type index_d$1__publicOnReservationLocationUpdatedType = _publicOnReservationLocationUpdatedType;
|
|
4816
|
+
declare const index_d$1_getReservationLocation: typeof getReservationLocation;
|
|
4817
|
+
declare const index_d$1_listReservationLocations: typeof listReservationLocations;
|
|
4818
|
+
declare const index_d$1_onReservationLocationCreated: typeof onReservationLocationCreated;
|
|
4819
|
+
declare const index_d$1_onReservationLocationUpdated: typeof onReservationLocationUpdated;
|
|
4820
|
+
declare const index_d$1_queryReservationLocations: typeof queryReservationLocations;
|
|
4821
|
+
declare const index_d$1_updateExtendedFields: typeof updateExtendedFields;
|
|
4822
|
+
declare const index_d$1_updateReservationLocation: typeof updateReservationLocation;
|
|
4823
|
+
declare namespace index_d$1 {
|
|
4824
|
+
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_Approval as Approval, index_d$1_ApprovalMode as ApprovalMode, type index_d$1_ApprovalOptionsOneOf as ApprovalOptionsOneOf, 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_ExtendedFields as ExtendedFields, 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_ManualForLargePartiesOptions as ManualForLargePartiesOptions, 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_ReservationLocationNonNullableFields as ReservationLocationNonNullableFields, 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_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d$1_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d$1_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d$1_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, 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_Value as Value, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicOnReservationLocationCreatedType as _publicOnReservationLocationCreatedType, type index_d$1__publicOnReservationLocationUpdatedType as _publicOnReservationLocationUpdatedType, index_d$1_getReservationLocation as getReservationLocation, index_d$1_listReservationLocations as listReservationLocations, index_d$1_onReservationLocationCreated as onReservationLocationCreated, index_d$1_onReservationLocationUpdated as onReservationLocationUpdated, onReservationLocationCreated$1 as publicOnReservationLocationCreated, onReservationLocationUpdated$1 as publicOnReservationLocationUpdated, index_d$1_queryReservationLocations as queryReservationLocations, index_d$1_updateExtendedFields as updateExtendedFields, index_d$1_updateReservationLocation as updateReservationLocation };
|
|
4825
|
+
}
|
|
5646
4826
|
|
|
5647
4827
|
interface TimeSlot {
|
|
5648
4828
|
/** Start date and time of this time slot. */
|