@wix/seatings 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es/package.json +3 -0
- package/meta/package.json +1 -5
- package/package.json +25 -17
- package/context/package.json +0 -7
- package/type-bundles/context.bundle.d.ts +0 -2781
- package/type-bundles/index.bundle.d.ts +0 -2781
- package/type-bundles/meta.bundle.d.ts +0 -2710
|
@@ -1,2781 +0,0 @@
|
|
|
1
|
-
type HostModule<T, H extends Host> = {
|
|
2
|
-
__type: 'host';
|
|
3
|
-
create(host: H): T;
|
|
4
|
-
};
|
|
5
|
-
type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
|
|
6
|
-
type Host<Environment = unknown> = {
|
|
7
|
-
channel: {
|
|
8
|
-
observeState(callback: (props: unknown, environment: Environment) => unknown): {
|
|
9
|
-
disconnect: () => void;
|
|
10
|
-
} | Promise<{
|
|
11
|
-
disconnect: () => void;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
environment?: Environment;
|
|
15
|
-
/**
|
|
16
|
-
* Optional name of the environment, use for logging
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
21
|
-
*/
|
|
22
|
-
apiBaseUrl?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Possible data to be provided by every host, for cross cutting concerns
|
|
25
|
-
* like internationalization, billing, etc.
|
|
26
|
-
*/
|
|
27
|
-
essentials?: {
|
|
28
|
-
/**
|
|
29
|
-
* The language of the currently viewed session
|
|
30
|
-
*/
|
|
31
|
-
language?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The locale of the currently viewed session
|
|
34
|
-
*/
|
|
35
|
-
locale?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Any headers that should be passed through to the API requests
|
|
38
|
-
*/
|
|
39
|
-
passThroughHeaders?: Record<string, string>;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
44
|
-
interface HttpClient {
|
|
45
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
46
|
-
fetchWithAuth: typeof fetch;
|
|
47
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
48
|
-
getActiveToken?: () => string | undefined;
|
|
49
|
-
}
|
|
50
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
51
|
-
type HttpResponse<T = any> = {
|
|
52
|
-
data: T;
|
|
53
|
-
status: number;
|
|
54
|
-
statusText: string;
|
|
55
|
-
headers: any;
|
|
56
|
-
request?: any;
|
|
57
|
-
};
|
|
58
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
59
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
60
|
-
url: string;
|
|
61
|
-
data?: Data;
|
|
62
|
-
params?: URLSearchParams;
|
|
63
|
-
} & APIMetadata;
|
|
64
|
-
type APIMetadata = {
|
|
65
|
-
methodFqn?: string;
|
|
66
|
-
entityFqdn?: string;
|
|
67
|
-
packageName?: string;
|
|
68
|
-
};
|
|
69
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
70
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
71
|
-
__type: 'event-definition';
|
|
72
|
-
type: Type;
|
|
73
|
-
isDomainEvent?: boolean;
|
|
74
|
-
transformations?: (envelope: unknown) => Payload;
|
|
75
|
-
__payload: Payload;
|
|
76
|
-
};
|
|
77
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
78
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
79
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
80
|
-
|
|
81
|
-
type ServicePluginMethodInput = {
|
|
82
|
-
request: any;
|
|
83
|
-
metadata: any;
|
|
84
|
-
};
|
|
85
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
86
|
-
type ServicePluginMethodMetadata = {
|
|
87
|
-
name: string;
|
|
88
|
-
primaryHttpMappingPath: string;
|
|
89
|
-
transformations: {
|
|
90
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
91
|
-
toREST: (...args: unknown[]) => unknown;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
95
|
-
__type: 'service-plugin-definition';
|
|
96
|
-
componentType: string;
|
|
97
|
-
methods: ServicePluginMethodMetadata[];
|
|
98
|
-
__contract: Contract;
|
|
99
|
-
};
|
|
100
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
101
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
102
|
-
declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
|
103
|
-
|
|
104
|
-
type RequestContext = {
|
|
105
|
-
isSSR: boolean;
|
|
106
|
-
host: string;
|
|
107
|
-
protocol?: string;
|
|
108
|
-
};
|
|
109
|
-
type ResponseTransformer = (data: any, headers?: any) => any;
|
|
110
|
-
/**
|
|
111
|
-
* Ambassador request options types are copied mostly from AxiosRequestConfig.
|
|
112
|
-
* They are copied and not imported to reduce the amount of dependencies (to reduce install time).
|
|
113
|
-
* https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
|
|
114
|
-
*/
|
|
115
|
-
type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
116
|
-
type AmbassadorRequestOptions<T = any> = {
|
|
117
|
-
_?: T;
|
|
118
|
-
url?: string;
|
|
119
|
-
method?: Method;
|
|
120
|
-
params?: any;
|
|
121
|
-
data?: any;
|
|
122
|
-
transformResponse?: ResponseTransformer | ResponseTransformer[];
|
|
123
|
-
};
|
|
124
|
-
type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
|
|
125
|
-
__isAmbassador: boolean;
|
|
126
|
-
};
|
|
127
|
-
type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
|
|
128
|
-
type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
|
|
129
|
-
|
|
130
|
-
declare global {
|
|
131
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
132
|
-
interface SymbolConstructor {
|
|
133
|
-
readonly observable: symbol;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
declare const emptyObjectSymbol: unique symbol;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
Represents a strictly empty plain object, the `{}` value.
|
|
141
|
-
|
|
142
|
-
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)).
|
|
143
|
-
|
|
144
|
-
@example
|
|
145
|
-
```
|
|
146
|
-
import type {EmptyObject} from 'type-fest';
|
|
147
|
-
|
|
148
|
-
// The following illustrates the problem with `{}`.
|
|
149
|
-
const foo1: {} = {}; // Pass
|
|
150
|
-
const foo2: {} = []; // Pass
|
|
151
|
-
const foo3: {} = 42; // Pass
|
|
152
|
-
const foo4: {} = {a: 1}; // Pass
|
|
153
|
-
|
|
154
|
-
// With `EmptyObject` only the first case is valid.
|
|
155
|
-
const bar1: EmptyObject = {}; // Pass
|
|
156
|
-
const bar2: EmptyObject = 42; // Fail
|
|
157
|
-
const bar3: EmptyObject = []; // Fail
|
|
158
|
-
const bar4: EmptyObject = {a: 1}; // Fail
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
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}.
|
|
162
|
-
|
|
163
|
-
@category Object
|
|
164
|
-
*/
|
|
165
|
-
type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
Returns a boolean for whether the two given types are equal.
|
|
169
|
-
|
|
170
|
-
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
|
|
171
|
-
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
|
|
172
|
-
|
|
173
|
-
Use-cases:
|
|
174
|
-
- If you want to make a conditional branch based on the result of a comparison of two types.
|
|
175
|
-
|
|
176
|
-
@example
|
|
177
|
-
```
|
|
178
|
-
import type {IsEqual} from 'type-fest';
|
|
179
|
-
|
|
180
|
-
// This type returns a boolean for whether the given array includes the given item.
|
|
181
|
-
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
|
|
182
|
-
type Includes<Value extends readonly any[], Item> =
|
|
183
|
-
Value extends readonly [Value[0], ...infer rest]
|
|
184
|
-
? IsEqual<Value[0], Item> extends true
|
|
185
|
-
? true
|
|
186
|
-
: Includes<rest, Item>
|
|
187
|
-
: false;
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
@category Type Guard
|
|
191
|
-
@category Utilities
|
|
192
|
-
*/
|
|
193
|
-
type IsEqual<A, B> =
|
|
194
|
-
(<G>() => G extends A ? 1 : 2) extends
|
|
195
|
-
(<G>() => G extends B ? 1 : 2)
|
|
196
|
-
? true
|
|
197
|
-
: false;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
Filter out keys from an object.
|
|
201
|
-
|
|
202
|
-
Returns `never` if `Exclude` is strictly equal to `Key`.
|
|
203
|
-
Returns `never` if `Key` extends `Exclude`.
|
|
204
|
-
Returns `Key` otherwise.
|
|
205
|
-
|
|
206
|
-
@example
|
|
207
|
-
```
|
|
208
|
-
type Filtered = Filter<'foo', 'foo'>;
|
|
209
|
-
//=> never
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
@example
|
|
213
|
-
```
|
|
214
|
-
type Filtered = Filter<'bar', string>;
|
|
215
|
-
//=> never
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
@example
|
|
219
|
-
```
|
|
220
|
-
type Filtered = Filter<'bar', 'foo'>;
|
|
221
|
-
//=> 'bar'
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
@see {Except}
|
|
225
|
-
*/
|
|
226
|
-
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
227
|
-
|
|
228
|
-
type ExceptOptions = {
|
|
229
|
-
/**
|
|
230
|
-
Disallow assigning non-specified properties.
|
|
231
|
-
|
|
232
|
-
Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
|
|
233
|
-
|
|
234
|
-
@default false
|
|
235
|
-
*/
|
|
236
|
-
requireExactProps?: boolean;
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
Create a type from an object type without certain keys.
|
|
241
|
-
|
|
242
|
-
We recommend setting the `requireExactProps` option to `true`.
|
|
243
|
-
|
|
244
|
-
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.
|
|
245
|
-
|
|
246
|
-
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)).
|
|
247
|
-
|
|
248
|
-
@example
|
|
249
|
-
```
|
|
250
|
-
import type {Except} from 'type-fest';
|
|
251
|
-
|
|
252
|
-
type Foo = {
|
|
253
|
-
a: number;
|
|
254
|
-
b: string;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
type FooWithoutA = Except<Foo, 'a'>;
|
|
258
|
-
//=> {b: string}
|
|
259
|
-
|
|
260
|
-
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
|
261
|
-
//=> errors: 'a' does not exist in type '{ b: string; }'
|
|
262
|
-
|
|
263
|
-
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
|
264
|
-
//=> {a: number} & Partial<Record<"b", never>>
|
|
265
|
-
|
|
266
|
-
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
267
|
-
//=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
@category Object
|
|
271
|
-
*/
|
|
272
|
-
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
|
|
273
|
-
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
|
274
|
-
} & (Options['requireExactProps'] extends true
|
|
275
|
-
? Partial<Record<KeysType, never>>
|
|
276
|
-
: {});
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
Returns a boolean for whether the given type is `never`.
|
|
280
|
-
|
|
281
|
-
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
|
|
282
|
-
@link https://stackoverflow.com/a/53984913/10292952
|
|
283
|
-
@link https://www.zhenghao.io/posts/ts-never
|
|
284
|
-
|
|
285
|
-
Useful in type utilities, such as checking if something does not occur.
|
|
286
|
-
|
|
287
|
-
@example
|
|
288
|
-
```
|
|
289
|
-
import type {IsNever, And} from 'type-fest';
|
|
290
|
-
|
|
291
|
-
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
|
|
292
|
-
type AreStringsEqual<A extends string, B extends string> =
|
|
293
|
-
And<
|
|
294
|
-
IsNever<Exclude<A, B>> extends true ? true : false,
|
|
295
|
-
IsNever<Exclude<B, A>> extends true ? true : false
|
|
296
|
-
>;
|
|
297
|
-
|
|
298
|
-
type EndIfEqual<I extends string, O extends string> =
|
|
299
|
-
AreStringsEqual<I, O> extends true
|
|
300
|
-
? never
|
|
301
|
-
: void;
|
|
302
|
-
|
|
303
|
-
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
|
|
304
|
-
if (input === output) {
|
|
305
|
-
process.exit(0);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
endIfEqual('abc', 'abc');
|
|
310
|
-
//=> never
|
|
311
|
-
|
|
312
|
-
endIfEqual('abc', '123');
|
|
313
|
-
//=> void
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
@category Type Guard
|
|
317
|
-
@category Utilities
|
|
318
|
-
*/
|
|
319
|
-
type IsNever<T> = [T] extends [never] ? true : false;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
An if-else-like type that resolves depending on whether the given type is `never`.
|
|
323
|
-
|
|
324
|
-
@see {@link IsNever}
|
|
325
|
-
|
|
326
|
-
@example
|
|
327
|
-
```
|
|
328
|
-
import type {IfNever} from 'type-fest';
|
|
329
|
-
|
|
330
|
-
type ShouldBeTrue = IfNever<never>;
|
|
331
|
-
//=> true
|
|
332
|
-
|
|
333
|
-
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
|
|
334
|
-
//=> 'bar'
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
@category Type Guard
|
|
338
|
-
@category Utilities
|
|
339
|
-
*/
|
|
340
|
-
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
|
|
341
|
-
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
|
|
342
|
-
);
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
346
|
-
|
|
347
|
-
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
|
348
|
-
|
|
349
|
-
@example
|
|
350
|
-
```
|
|
351
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
352
|
-
|
|
353
|
-
interface Example {
|
|
354
|
-
a: string;
|
|
355
|
-
b: string | number;
|
|
356
|
-
c?: string;
|
|
357
|
-
d: {};
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
type StringKeysOnly = ConditionalKeys<Example, string>;
|
|
361
|
-
//=> 'a'
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
|
365
|
-
|
|
366
|
-
@example
|
|
367
|
-
```
|
|
368
|
-
import type {ConditionalKeys} from 'type-fest';
|
|
369
|
-
|
|
370
|
-
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
371
|
-
//=> 'a' | 'c'
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
@category Object
|
|
375
|
-
*/
|
|
376
|
-
type ConditionalKeys<Base, Condition> =
|
|
377
|
-
{
|
|
378
|
-
// Map through all the keys of the given base type.
|
|
379
|
-
[Key in keyof Base]-?:
|
|
380
|
-
// Pick only keys with types extending the given `Condition` type.
|
|
381
|
-
Base[Key] extends Condition
|
|
382
|
-
// Retain this key
|
|
383
|
-
// If the value for the key extends never, only include it if `Condition` also extends never
|
|
384
|
-
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
|
|
385
|
-
// Discard this key since the condition fails.
|
|
386
|
-
: never;
|
|
387
|
-
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
388
|
-
}[keyof Base];
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
Exclude keys from a shape that matches the given `Condition`.
|
|
392
|
-
|
|
393
|
-
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.
|
|
394
|
-
|
|
395
|
-
@example
|
|
396
|
-
```
|
|
397
|
-
import type {Primitive, ConditionalExcept} from 'type-fest';
|
|
398
|
-
|
|
399
|
-
class Awesome {
|
|
400
|
-
name: string;
|
|
401
|
-
successes: number;
|
|
402
|
-
failures: bigint;
|
|
403
|
-
|
|
404
|
-
run() {}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
|
|
408
|
-
//=> {run: () => void}
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
@example
|
|
412
|
-
```
|
|
413
|
-
import type {ConditionalExcept} from 'type-fest';
|
|
414
|
-
|
|
415
|
-
interface Example {
|
|
416
|
-
a: string;
|
|
417
|
-
b: string | number;
|
|
418
|
-
c: () => void;
|
|
419
|
-
d: {};
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
type NonStringKeysOnly = ConditionalExcept<Example, string>;
|
|
423
|
-
//=> {b: string | number; c: () => void; d: {}}
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
@category Object
|
|
427
|
-
*/
|
|
428
|
-
type ConditionalExcept<Base, Condition> = Except<
|
|
429
|
-
Base,
|
|
430
|
-
ConditionalKeys<Base, Condition>
|
|
431
|
-
>;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Descriptors are objects that describe the API of a module, and the module
|
|
435
|
-
* can either be a REST module or a host module.
|
|
436
|
-
* This type is recursive, so it can describe nested modules.
|
|
437
|
-
*/
|
|
438
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
439
|
-
[key: string]: Descriptors | PublicMetadata | any;
|
|
440
|
-
};
|
|
441
|
-
/**
|
|
442
|
-
* This type takes in a descriptors object of a certain Host (including an `unknown` host)
|
|
443
|
-
* and returns an object with the same structure, but with all descriptors replaced with their API.
|
|
444
|
-
* Any non-descriptor properties are removed from the returned object, including descriptors that
|
|
445
|
-
* do not match the given host (as they will not work with the given host).
|
|
446
|
-
*/
|
|
447
|
-
type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
|
|
448
|
-
done: T;
|
|
449
|
-
recurse: T extends {
|
|
450
|
-
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
451
|
-
} ? 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<{
|
|
452
|
-
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
453
|
-
-1,
|
|
454
|
-
0,
|
|
455
|
-
1,
|
|
456
|
-
2,
|
|
457
|
-
3,
|
|
458
|
-
4,
|
|
459
|
-
5
|
|
460
|
-
][Depth]> : never;
|
|
461
|
-
}, EmptyObject>;
|
|
462
|
-
}[Depth extends -1 ? 'done' : 'recurse'];
|
|
463
|
-
type PublicMetadata = {
|
|
464
|
-
PACKAGE_NAME?: string;
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
declare global {
|
|
468
|
-
interface ContextualClient {
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* A type used to create concerete types from SDK descriptors in
|
|
473
|
-
* case a contextual client is available.
|
|
474
|
-
*/
|
|
475
|
-
type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
|
|
476
|
-
host: Host;
|
|
477
|
-
} ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
|
|
478
|
-
|
|
479
|
-
interface SeatingPlan$1 {
|
|
480
|
-
/**
|
|
481
|
-
* Auto generated unique plan id
|
|
482
|
-
* @readonly
|
|
483
|
-
*/
|
|
484
|
-
_id?: string | null;
|
|
485
|
-
/**
|
|
486
|
-
* A client defined external id for cross referencing.
|
|
487
|
-
* Can reference external entities.
|
|
488
|
-
* Format: "{fqdn}:{entity guid}"
|
|
489
|
-
*/
|
|
490
|
-
externalId?: string | null;
|
|
491
|
-
/** Human friendly plan title */
|
|
492
|
-
title?: string | null;
|
|
493
|
-
/** Sections of the plan. Seating plan is divided in high level sections. */
|
|
494
|
-
sections?: Section$1[];
|
|
495
|
-
/** Categories for plan element grouping. */
|
|
496
|
-
categories?: Category$1[];
|
|
497
|
-
/**
|
|
498
|
-
* Seating plan created timestamp.
|
|
499
|
-
* @readonly
|
|
500
|
-
*/
|
|
501
|
-
_createdDate?: Date | null;
|
|
502
|
-
/**
|
|
503
|
-
* Seating plan updated timestamp.
|
|
504
|
-
* @readonly
|
|
505
|
-
*/
|
|
506
|
-
_updatedDate?: Date | null;
|
|
507
|
-
/**
|
|
508
|
-
* Total capacity
|
|
509
|
-
* @readonly
|
|
510
|
-
*/
|
|
511
|
-
totalCapacity?: number | null;
|
|
512
|
-
/**
|
|
513
|
-
* Total categories
|
|
514
|
-
* @readonly
|
|
515
|
-
*/
|
|
516
|
-
totalCategories?: number | null;
|
|
517
|
-
/**
|
|
518
|
-
* Places not assigned to categories
|
|
519
|
-
* @readonly
|
|
520
|
-
*/
|
|
521
|
-
uncategorizedPlaces?: Place$1[];
|
|
522
|
-
/**
|
|
523
|
-
* A version of the seating plan
|
|
524
|
-
* @readonly
|
|
525
|
-
*/
|
|
526
|
-
version?: string | null;
|
|
527
|
-
/** Data extensions */
|
|
528
|
-
extendedFields?: ExtendedFields$1;
|
|
529
|
-
/** Seating Plan UI settings */
|
|
530
|
-
uiProperties?: SeatingPlanUiProperties$1;
|
|
531
|
-
/** Element groups */
|
|
532
|
-
elementGroups?: ElementGroup$1[];
|
|
533
|
-
}
|
|
534
|
-
interface Section$1 {
|
|
535
|
-
/** Unique section id */
|
|
536
|
-
_id?: number;
|
|
537
|
-
/** Human readable section title */
|
|
538
|
-
title?: string | null;
|
|
539
|
-
/**
|
|
540
|
-
* Client configuration object
|
|
541
|
-
* @readonly
|
|
542
|
-
*/
|
|
543
|
-
config?: Record<string, any> | null;
|
|
544
|
-
/** Elements of the section. */
|
|
545
|
-
elements?: Element$1[];
|
|
546
|
-
/**
|
|
547
|
-
* Total capacity
|
|
548
|
-
* @readonly
|
|
549
|
-
*/
|
|
550
|
-
totalCapacity?: number | null;
|
|
551
|
-
/**
|
|
552
|
-
* Is default section
|
|
553
|
-
* @readonly
|
|
554
|
-
*/
|
|
555
|
-
default?: boolean;
|
|
556
|
-
}
|
|
557
|
-
interface Element$1 {
|
|
558
|
-
/** Unique element id */
|
|
559
|
-
_id?: number;
|
|
560
|
-
/** User friendly title/label of the element. */
|
|
561
|
-
title?: string | null;
|
|
562
|
-
/** Element type */
|
|
563
|
-
type?: Type$1;
|
|
564
|
-
/** Capacity. None for Shape type Element. */
|
|
565
|
-
capacity?: number | null;
|
|
566
|
-
/** Assigned to a category */
|
|
567
|
-
categoryId?: number | null;
|
|
568
|
-
/** A place numbering meta data */
|
|
569
|
-
sequencing?: Sequencing$1;
|
|
570
|
-
/** Place override (by seq_id) */
|
|
571
|
-
overrides?: Place$1[];
|
|
572
|
-
/**
|
|
573
|
-
* Final place sequence with overrides
|
|
574
|
-
* @readonly
|
|
575
|
-
*/
|
|
576
|
-
places?: Place$1[];
|
|
577
|
-
/** Element reservation options */
|
|
578
|
-
reservationOptions?: ReservationOptions$1;
|
|
579
|
-
/** Element UI settings */
|
|
580
|
-
uiProperties?: ElementUiProperties$1;
|
|
581
|
-
/** Element group id */
|
|
582
|
-
elementGroupId?: number | null;
|
|
583
|
-
/** Multi row element relevant for MULTI_ROW element type */
|
|
584
|
-
multiRowProperties?: MultiRowProperties$1;
|
|
585
|
-
}
|
|
586
|
-
declare enum Type$1 {
|
|
587
|
-
AREA = "AREA",
|
|
588
|
-
ROW = "ROW",
|
|
589
|
-
MULTI_ROW = "MULTI_ROW",
|
|
590
|
-
TABLE = "TABLE",
|
|
591
|
-
ROUND_TABLE = "ROUND_TABLE",
|
|
592
|
-
SHAPE = "SHAPE"
|
|
593
|
-
}
|
|
594
|
-
interface Sequencing$1 {
|
|
595
|
-
/** First seq element */
|
|
596
|
-
startAt?: string;
|
|
597
|
-
/** Finite generated seq of labels */
|
|
598
|
-
labels?: string[];
|
|
599
|
-
/** If true - direction right to left. Otherwise left to right. */
|
|
600
|
-
reverseOrder?: boolean | null;
|
|
601
|
-
}
|
|
602
|
-
interface Place$1 {
|
|
603
|
-
/** Local id of the place in the sequence */
|
|
604
|
-
index?: number;
|
|
605
|
-
/**
|
|
606
|
-
* Generated composite unique id in the seating plan.
|
|
607
|
-
* @readonly
|
|
608
|
-
*/
|
|
609
|
-
_id?: string | null;
|
|
610
|
-
/** Unique label of the place */
|
|
611
|
-
label?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Max capacity per place
|
|
614
|
-
* @readonly
|
|
615
|
-
*/
|
|
616
|
-
capacity?: number | null;
|
|
617
|
-
/**
|
|
618
|
-
* Type of the parent element
|
|
619
|
-
* @readonly
|
|
620
|
-
*/
|
|
621
|
-
elementType?: Type$1;
|
|
622
|
-
/**
|
|
623
|
-
* Assigned category id
|
|
624
|
-
* @readonly
|
|
625
|
-
*/
|
|
626
|
-
categoryId?: number | null;
|
|
627
|
-
/** Place type */
|
|
628
|
-
type?: PlaceTypeEnumType$1;
|
|
629
|
-
}
|
|
630
|
-
declare enum PlaceTypeEnumType$1 {
|
|
631
|
-
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
632
|
-
STANDARD = "STANDARD",
|
|
633
|
-
WHEELCHAIR = "WHEELCHAIR",
|
|
634
|
-
ACCESSIBLE = "ACCESSIBLE",
|
|
635
|
-
COMPANION = "COMPANION",
|
|
636
|
-
OBSTRUCTED = "OBSTRUCTED",
|
|
637
|
-
DISCOUNT = "DISCOUNT"
|
|
638
|
-
}
|
|
639
|
-
interface ReservationOptions$1 {
|
|
640
|
-
/** Indicates whether the entire element must be reserved */
|
|
641
|
-
reserveWholeElement?: boolean;
|
|
642
|
-
}
|
|
643
|
-
interface ElementUiProperties$1 {
|
|
644
|
-
x?: number | null;
|
|
645
|
-
y?: number | null;
|
|
646
|
-
zIndex?: number | null;
|
|
647
|
-
width?: number | null;
|
|
648
|
-
height?: number | null;
|
|
649
|
-
rotationAngle?: number | null;
|
|
650
|
-
shapeType?: ShapeTypeEnumType$1;
|
|
651
|
-
fontSize?: number | null;
|
|
652
|
-
cornerRadius?: number | null;
|
|
653
|
-
seatSpacing?: number | null;
|
|
654
|
-
hideLabel?: boolean | null;
|
|
655
|
-
labelPosition?: Position$1;
|
|
656
|
-
seatLayout?: number[];
|
|
657
|
-
emptyTopSeatSpaces?: number | null;
|
|
658
|
-
/** needs research */
|
|
659
|
-
text?: string | null;
|
|
660
|
-
/** #F0F0F0 */
|
|
661
|
-
color?: string | null;
|
|
662
|
-
/** #F0F0F0 */
|
|
663
|
-
fillColor?: string | null;
|
|
664
|
-
/** #F0F0F0 */
|
|
665
|
-
strokeColor?: string | null;
|
|
666
|
-
/** px */
|
|
667
|
-
strokeWidth?: number | null;
|
|
668
|
-
opacity?: number | null;
|
|
669
|
-
icon?: Icon$1;
|
|
670
|
-
image?: Image$1;
|
|
671
|
-
seatNumbering?: Numbering$1;
|
|
672
|
-
}
|
|
673
|
-
declare enum ShapeTypeEnumType$1 {
|
|
674
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
675
|
-
TEXT = "TEXT",
|
|
676
|
-
RECTANGLE = "RECTANGLE",
|
|
677
|
-
ELLIPSE = "ELLIPSE",
|
|
678
|
-
LINE = "LINE",
|
|
679
|
-
ICON = "ICON",
|
|
680
|
-
IMAGE = "IMAGE"
|
|
681
|
-
}
|
|
682
|
-
declare enum Position$1 {
|
|
683
|
-
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
684
|
-
LEFT = "LEFT",
|
|
685
|
-
RIGHT = "RIGHT",
|
|
686
|
-
BOTH = "BOTH",
|
|
687
|
-
NONE = "NONE"
|
|
688
|
-
}
|
|
689
|
-
declare enum Icon$1 {
|
|
690
|
-
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
691
|
-
ENTER = "ENTER",
|
|
692
|
-
EXIT = "EXIT",
|
|
693
|
-
DRINKS = "DRINKS",
|
|
694
|
-
WC = "WC",
|
|
695
|
-
WC_MEN = "WC_MEN",
|
|
696
|
-
WC_WOMEN = "WC_WOMEN",
|
|
697
|
-
FOOD = "FOOD",
|
|
698
|
-
STAIRS = "STAIRS",
|
|
699
|
-
ELEVATOR = "ELEVATOR",
|
|
700
|
-
SMOKING = "SMOKING",
|
|
701
|
-
CHECKROOM = "CHECKROOM",
|
|
702
|
-
STAGE = "STAGE"
|
|
703
|
-
}
|
|
704
|
-
interface Image$1 {
|
|
705
|
-
/** WixMedia image ID. */
|
|
706
|
-
_id?: string;
|
|
707
|
-
/**
|
|
708
|
-
* Original image height.
|
|
709
|
-
* @readonly
|
|
710
|
-
*/
|
|
711
|
-
height?: number;
|
|
712
|
-
/**
|
|
713
|
-
* Original image width.
|
|
714
|
-
* @readonly
|
|
715
|
-
*/
|
|
716
|
-
width?: number;
|
|
717
|
-
/**
|
|
718
|
-
* WixMedia image URI.
|
|
719
|
-
* @deprecated
|
|
720
|
-
*/
|
|
721
|
-
uri?: string | null;
|
|
722
|
-
}
|
|
723
|
-
declare enum Numbering$1 {
|
|
724
|
-
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
725
|
-
NUMERIC = "NUMERIC",
|
|
726
|
-
ODD_EVEN = "ODD_EVEN",
|
|
727
|
-
ALPHABETICAL = "ALPHABETICAL"
|
|
728
|
-
}
|
|
729
|
-
interface MultiRowProperties$1 {
|
|
730
|
-
/** Individual rows of the multi row element */
|
|
731
|
-
rows?: RowElement$1[];
|
|
732
|
-
/** Meta data for vertical labeling */
|
|
733
|
-
verticalSequencing?: VerticalSequencing$1;
|
|
734
|
-
/** Row spacing */
|
|
735
|
-
rowSpacing?: number | null;
|
|
736
|
-
}
|
|
737
|
-
interface RowElement$1 {
|
|
738
|
-
/** Unique row id */
|
|
739
|
-
_id?: number;
|
|
740
|
-
/** User friendly title/label of the row */
|
|
741
|
-
title?: string | null;
|
|
742
|
-
/** Row capacity */
|
|
743
|
-
capacity?: number | null;
|
|
744
|
-
/** Assigned to a category */
|
|
745
|
-
categoryId?: number | null;
|
|
746
|
-
/** A place numbering meta data for a single row */
|
|
747
|
-
sequencing?: Sequencing$1;
|
|
748
|
-
/** Row UI settings */
|
|
749
|
-
uiProperties?: RowElementUiProperties$1;
|
|
750
|
-
}
|
|
751
|
-
interface RowElementUiProperties$1 {
|
|
752
|
-
/** Relative x position to the parent element */
|
|
753
|
-
relativeX?: number | null;
|
|
754
|
-
/** Width of the row */
|
|
755
|
-
width?: number | null;
|
|
756
|
-
/** Seat spacing */
|
|
757
|
-
seatSpacing?: number | null;
|
|
758
|
-
/** Label position */
|
|
759
|
-
labelPosition?: Position$1;
|
|
760
|
-
/** Seat numbering */
|
|
761
|
-
seatNumbering?: Numbering$1;
|
|
762
|
-
}
|
|
763
|
-
interface VerticalSequencing$1 {
|
|
764
|
-
/** First seq element */
|
|
765
|
-
startAt?: string;
|
|
766
|
-
/** Row numbering */
|
|
767
|
-
rowNumbering?: Numbering$1;
|
|
768
|
-
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
769
|
-
reverseOrder?: boolean | null;
|
|
770
|
-
}
|
|
771
|
-
interface Category$1 {
|
|
772
|
-
/** Local category id within the seating plan */
|
|
773
|
-
_id?: number;
|
|
774
|
-
/**
|
|
775
|
-
* A client defined external id for cross referencing.
|
|
776
|
-
* Can reference external entities.
|
|
777
|
-
* Format: "{entity_fqdn}:{entity_id}"
|
|
778
|
-
*/
|
|
779
|
-
externalId?: string | null;
|
|
780
|
-
/** Category label */
|
|
781
|
-
title?: string;
|
|
782
|
-
/**
|
|
783
|
-
* Client configuration object
|
|
784
|
-
* @readonly
|
|
785
|
-
*/
|
|
786
|
-
config?: Record<string, any> | null;
|
|
787
|
-
/**
|
|
788
|
-
* Total capacity
|
|
789
|
-
* @readonly
|
|
790
|
-
*/
|
|
791
|
-
totalCapacity?: number | null;
|
|
792
|
-
/**
|
|
793
|
-
* Possible places
|
|
794
|
-
* @readonly
|
|
795
|
-
*/
|
|
796
|
-
places?: Place$1[];
|
|
797
|
-
}
|
|
798
|
-
interface ExtendedFields$1 {
|
|
799
|
-
/**
|
|
800
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
801
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
802
|
-
*
|
|
803
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
804
|
-
*
|
|
805
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
806
|
-
*/
|
|
807
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
808
|
-
}
|
|
809
|
-
interface SeatingPlanUiProperties$1 {
|
|
810
|
-
/** #F0F0F0 */
|
|
811
|
-
backgroundColor?: string | null;
|
|
812
|
-
backgroundOpacity?: number | null;
|
|
813
|
-
}
|
|
814
|
-
interface ElementGroup$1 {
|
|
815
|
-
/** Unique element group id */
|
|
816
|
-
_id?: number;
|
|
817
|
-
/** Parent group id */
|
|
818
|
-
parentElementGroupId?: number | null;
|
|
819
|
-
/** Element group UI settings */
|
|
820
|
-
uiProperties?: ElementGroupUiProperties$1;
|
|
821
|
-
}
|
|
822
|
-
interface ElementGroupUiProperties$1 {
|
|
823
|
-
/** x position of the group */
|
|
824
|
-
x?: number | null;
|
|
825
|
-
/** y position of the group */
|
|
826
|
-
y?: number | null;
|
|
827
|
-
/** width of the group */
|
|
828
|
-
width?: number | null;
|
|
829
|
-
/** height of the group */
|
|
830
|
-
height?: number | null;
|
|
831
|
-
/** rotation angle of the group */
|
|
832
|
-
rotationAngle?: number | null;
|
|
833
|
-
}
|
|
834
|
-
interface CreateSeatingPlanRequest {
|
|
835
|
-
/** A plan to be created */
|
|
836
|
-
plan: SeatingPlan$1;
|
|
837
|
-
}
|
|
838
|
-
interface CreateSeatingPlanResponse {
|
|
839
|
-
/** The created plan */
|
|
840
|
-
plan?: SeatingPlan$1;
|
|
841
|
-
}
|
|
842
|
-
interface CapacityExceededViolation {
|
|
843
|
-
/** Max allowed capacity */
|
|
844
|
-
maxCapacity?: number;
|
|
845
|
-
/** Invalid capacity */
|
|
846
|
-
capacity?: number;
|
|
847
|
-
/** The element id */
|
|
848
|
-
elementId?: number | null;
|
|
849
|
-
}
|
|
850
|
-
interface UpdateSeatingPlanRequest {
|
|
851
|
-
/** The plan updates */
|
|
852
|
-
plan?: SeatingPlan$1;
|
|
853
|
-
}
|
|
854
|
-
interface UpdateSeatingPlanResponse {
|
|
855
|
-
/** The updated plan */
|
|
856
|
-
plan?: SeatingPlan$1;
|
|
857
|
-
}
|
|
858
|
-
interface CopySeatingPlanRequest {
|
|
859
|
-
/** The id of the plan to be copied */
|
|
860
|
-
_id: string | null;
|
|
861
|
-
/** New plan title */
|
|
862
|
-
title: string | null;
|
|
863
|
-
/** Format: "{fqdn}:{entity guid}" */
|
|
864
|
-
externalId: string | null;
|
|
865
|
-
}
|
|
866
|
-
interface CopySeatingPlanResponse {
|
|
867
|
-
/** The copied plan */
|
|
868
|
-
plan?: SeatingPlan$1;
|
|
869
|
-
}
|
|
870
|
-
interface QuerySeatingPlanRequest {
|
|
871
|
-
/**
|
|
872
|
-
* Generic query object
|
|
873
|
-
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
874
|
-
*/
|
|
875
|
-
query: QueryV2$1;
|
|
876
|
-
/** A fieldset for the response */
|
|
877
|
-
fieldset?: Fieldset[];
|
|
878
|
-
}
|
|
879
|
-
interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
|
|
880
|
-
/** Paging options to limit and skip the number of items. */
|
|
881
|
-
paging?: Paging$1;
|
|
882
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
883
|
-
cursorPaging?: CursorPaging$1;
|
|
884
|
-
/**
|
|
885
|
-
* Filter object.
|
|
886
|
-
*
|
|
887
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
888
|
-
*/
|
|
889
|
-
filter?: Record<string, any> | null;
|
|
890
|
-
/**
|
|
891
|
-
* Sort object.
|
|
892
|
-
*
|
|
893
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
894
|
-
*/
|
|
895
|
-
sort?: Sorting$1[];
|
|
896
|
-
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
897
|
-
fields?: string[];
|
|
898
|
-
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
899
|
-
fieldsets?: string[];
|
|
900
|
-
}
|
|
901
|
-
/** @oneof */
|
|
902
|
-
interface QueryV2PagingMethodOneOf$1 {
|
|
903
|
-
/** Paging options to limit and skip the number of items. */
|
|
904
|
-
paging?: Paging$1;
|
|
905
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
906
|
-
cursorPaging?: CursorPaging$1;
|
|
907
|
-
}
|
|
908
|
-
interface Sorting$1 {
|
|
909
|
-
/** Name of the field to sort by. */
|
|
910
|
-
fieldName?: string;
|
|
911
|
-
/** Sort order. */
|
|
912
|
-
order?: SortOrder$1;
|
|
913
|
-
}
|
|
914
|
-
declare enum SortOrder$1 {
|
|
915
|
-
ASC = "ASC",
|
|
916
|
-
DESC = "DESC"
|
|
917
|
-
}
|
|
918
|
-
interface Paging$1 {
|
|
919
|
-
/** Number of items to load. */
|
|
920
|
-
limit?: number | null;
|
|
921
|
-
/** Number of items to skip in the current sort order. */
|
|
922
|
-
offset?: number | null;
|
|
923
|
-
}
|
|
924
|
-
interface CursorPaging$1 {
|
|
925
|
-
/** Maximum number of items to return in the results. */
|
|
926
|
-
limit?: number | null;
|
|
927
|
-
/**
|
|
928
|
-
* Pointer to the next or previous page in the list of results.
|
|
929
|
-
*
|
|
930
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
931
|
-
* Not relevant for the first request.
|
|
932
|
-
*/
|
|
933
|
-
cursor?: string | null;
|
|
934
|
-
}
|
|
935
|
-
declare enum Fieldset {
|
|
936
|
-
ELEMENTS = "ELEMENTS",
|
|
937
|
-
CATEGORIES = "CATEGORIES",
|
|
938
|
-
PLACES = "PLACES",
|
|
939
|
-
CONFIG = "CONFIG",
|
|
940
|
-
ELEMENT_GROUPS = "ELEMENT_GROUPS"
|
|
941
|
-
}
|
|
942
|
-
interface QuerySeatingPlanResponse {
|
|
943
|
-
/** Plan results */
|
|
944
|
-
plans?: SeatingPlan$1[];
|
|
945
|
-
}
|
|
946
|
-
interface GetSeatingPlanRequest {
|
|
947
|
-
/** The id of the plan */
|
|
948
|
-
_id: string | null;
|
|
949
|
-
/**
|
|
950
|
-
* A fieldset for the response
|
|
951
|
-
* @deprecated
|
|
952
|
-
*/
|
|
953
|
-
fieldset?: Fieldset[];
|
|
954
|
-
/**
|
|
955
|
-
* Projection on the result object - list of named projections.
|
|
956
|
-
* Possible values: "elements", "categories", "places", "config".
|
|
957
|
-
*/
|
|
958
|
-
fieldsets?: string[];
|
|
959
|
-
/** Seating Plan Mask */
|
|
960
|
-
seatingPlanMask?: SeatingPlanMask;
|
|
961
|
-
}
|
|
962
|
-
interface SeatingPlanMask {
|
|
963
|
-
/** Filter seating plan by place ids */
|
|
964
|
-
placeId?: string[];
|
|
965
|
-
}
|
|
966
|
-
interface GetSeatingPlanResponse {
|
|
967
|
-
/** The plan */
|
|
968
|
-
plan?: SeatingPlan$1;
|
|
969
|
-
}
|
|
970
|
-
interface FindSeatingPlanRequest {
|
|
971
|
-
/** The filter of the plan */
|
|
972
|
-
filter: Record<string, any> | null;
|
|
973
|
-
/**
|
|
974
|
-
* A fieldset for the response
|
|
975
|
-
* @deprecated
|
|
976
|
-
*/
|
|
977
|
-
fieldset?: Fieldset[];
|
|
978
|
-
/**
|
|
979
|
-
* Projection on the result object - list of named projections.
|
|
980
|
-
* Possible values: "elements", "categories", "places", "config".
|
|
981
|
-
*/
|
|
982
|
-
fieldsets?: string[];
|
|
983
|
-
/** Seating Plan Mask */
|
|
984
|
-
seatingPlanMask?: SeatingPlanMask;
|
|
985
|
-
}
|
|
986
|
-
interface FindSeatingPlanResponse {
|
|
987
|
-
/** The plan */
|
|
988
|
-
plan?: SeatingPlan$1;
|
|
989
|
-
}
|
|
990
|
-
interface DeleteSeatingPlanRequest {
|
|
991
|
-
/** The id of the plan */
|
|
992
|
-
_id: string | null;
|
|
993
|
-
}
|
|
994
|
-
interface DeleteSeatingPlanResponse {
|
|
995
|
-
/** Deleted plan */
|
|
996
|
-
plan?: SeatingPlan$1;
|
|
997
|
-
}
|
|
998
|
-
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
999
|
-
createdEvent?: EntityCreatedEvent$1;
|
|
1000
|
-
updatedEvent?: EntityUpdatedEvent$1;
|
|
1001
|
-
deletedEvent?: EntityDeletedEvent$1;
|
|
1002
|
-
actionEvent?: ActionEvent$1;
|
|
1003
|
-
/**
|
|
1004
|
-
* Unique event ID.
|
|
1005
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1006
|
-
*/
|
|
1007
|
-
_id?: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* Assumes actions are also always typed to an entity_type
|
|
1010
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1011
|
-
*/
|
|
1012
|
-
entityFqdn?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1015
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1016
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1017
|
-
*/
|
|
1018
|
-
slug?: string;
|
|
1019
|
-
/** ID of the entity associated with the event. */
|
|
1020
|
-
entityId?: string;
|
|
1021
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1022
|
-
eventTime?: Date | null;
|
|
1023
|
-
/**
|
|
1024
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1025
|
-
* (for example, GDPR).
|
|
1026
|
-
*/
|
|
1027
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1028
|
-
/** If present, indicates the action that triggered the event. */
|
|
1029
|
-
originatedFrom?: string | null;
|
|
1030
|
-
/**
|
|
1031
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1032
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1033
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1034
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1035
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1036
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1037
|
-
*/
|
|
1038
|
-
entityEventSequence?: string | null;
|
|
1039
|
-
}
|
|
1040
|
-
/** @oneof */
|
|
1041
|
-
interface DomainEventBodyOneOf$1 {
|
|
1042
|
-
createdEvent?: EntityCreatedEvent$1;
|
|
1043
|
-
updatedEvent?: EntityUpdatedEvent$1;
|
|
1044
|
-
deletedEvent?: EntityDeletedEvent$1;
|
|
1045
|
-
actionEvent?: ActionEvent$1;
|
|
1046
|
-
}
|
|
1047
|
-
interface EntityCreatedEvent$1 {
|
|
1048
|
-
entity?: string;
|
|
1049
|
-
}
|
|
1050
|
-
interface RestoreInfo$1 {
|
|
1051
|
-
deletedDate?: Date | null;
|
|
1052
|
-
}
|
|
1053
|
-
interface EntityUpdatedEvent$1 {
|
|
1054
|
-
/**
|
|
1055
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1056
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1057
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1058
|
-
*/
|
|
1059
|
-
currentEntity?: string;
|
|
1060
|
-
}
|
|
1061
|
-
interface EntityDeletedEvent$1 {
|
|
1062
|
-
/** Entity that was deleted */
|
|
1063
|
-
deletedEntity?: string | null;
|
|
1064
|
-
}
|
|
1065
|
-
interface ActionEvent$1 {
|
|
1066
|
-
body?: string;
|
|
1067
|
-
}
|
|
1068
|
-
interface MessageEnvelope$1 {
|
|
1069
|
-
/** App instance ID. */
|
|
1070
|
-
instanceId?: string | null;
|
|
1071
|
-
/** Event type. */
|
|
1072
|
-
eventType?: string;
|
|
1073
|
-
/** The identification type and identity data. */
|
|
1074
|
-
identity?: IdentificationData$1;
|
|
1075
|
-
/** Stringify payload. */
|
|
1076
|
-
data?: string;
|
|
1077
|
-
}
|
|
1078
|
-
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
1079
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
1080
|
-
anonymousVisitorId?: string;
|
|
1081
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
1082
|
-
memberId?: string;
|
|
1083
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1084
|
-
wixUserId?: string;
|
|
1085
|
-
/** ID of an app. */
|
|
1086
|
-
appId?: string;
|
|
1087
|
-
/** @readonly */
|
|
1088
|
-
identityType?: WebhookIdentityType$1;
|
|
1089
|
-
}
|
|
1090
|
-
/** @oneof */
|
|
1091
|
-
interface IdentificationDataIdOneOf$1 {
|
|
1092
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
1093
|
-
anonymousVisitorId?: string;
|
|
1094
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
1095
|
-
memberId?: string;
|
|
1096
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1097
|
-
wixUserId?: string;
|
|
1098
|
-
/** ID of an app. */
|
|
1099
|
-
appId?: string;
|
|
1100
|
-
}
|
|
1101
|
-
declare enum WebhookIdentityType$1 {
|
|
1102
|
-
UNKNOWN = "UNKNOWN",
|
|
1103
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1104
|
-
MEMBER = "MEMBER",
|
|
1105
|
-
WIX_USER = "WIX_USER",
|
|
1106
|
-
APP = "APP"
|
|
1107
|
-
}
|
|
1108
|
-
interface UpdateSeatingPlanThumbnailRequest {
|
|
1109
|
-
thumbnail: SeatingPlanThumbnail;
|
|
1110
|
-
}
|
|
1111
|
-
interface SeatingPlanThumbnail {
|
|
1112
|
-
/** @readonly */
|
|
1113
|
-
_id?: string | null;
|
|
1114
|
-
img?: string | null;
|
|
1115
|
-
}
|
|
1116
|
-
interface UpdateSeatingPlanThumbnailResponse {
|
|
1117
|
-
thumbnail?: SeatingPlanThumbnail;
|
|
1118
|
-
}
|
|
1119
|
-
interface GetSeatingPlanThumbnailRequest {
|
|
1120
|
-
/** @readonly */
|
|
1121
|
-
_id: string | null;
|
|
1122
|
-
}
|
|
1123
|
-
interface GetSeatingPlanThumbnailResponse {
|
|
1124
|
-
thumbnail?: SeatingPlanThumbnail;
|
|
1125
|
-
}
|
|
1126
|
-
interface SaveSeatingPlanVersionRequest {
|
|
1127
|
-
/** A plan version to be saved */
|
|
1128
|
-
plan?: SeatingPlan$1;
|
|
1129
|
-
/**
|
|
1130
|
-
* Parent version of the plan.
|
|
1131
|
-
* Use this field to override history of plan versions.
|
|
1132
|
-
* The next version of the plan will still be latest version +1,
|
|
1133
|
-
* but intermediate versions will be removed. Example:
|
|
1134
|
-
* Existing versions [1, 2, 3, 4, 5].
|
|
1135
|
-
* Save request with parent_version 2 will yield versions [1, 2, 6].
|
|
1136
|
-
*/
|
|
1137
|
-
parentVersion?: string | null;
|
|
1138
|
-
}
|
|
1139
|
-
interface SaveSeatingPlanVersionResponse {
|
|
1140
|
-
/** Updated plan version */
|
|
1141
|
-
plan?: SeatingPlan$1;
|
|
1142
|
-
}
|
|
1143
|
-
interface QuerySeatingPlanVersionsRequest {
|
|
1144
|
-
/**
|
|
1145
|
-
* Generic query object
|
|
1146
|
-
* Possible fieldsets: "elements", "categories", "places", "config".
|
|
1147
|
-
*/
|
|
1148
|
-
query?: QueryV2$1;
|
|
1149
|
-
}
|
|
1150
|
-
interface QuerySeatingPlanVersionsResponse {
|
|
1151
|
-
/** Plan results */
|
|
1152
|
-
plans?: SeatingPlan$1[];
|
|
1153
|
-
/** Paging meta data */
|
|
1154
|
-
metadata?: PagingMetadataV2$1;
|
|
1155
|
-
}
|
|
1156
|
-
interface PagingMetadataV2$1 {
|
|
1157
|
-
/** Number of items returned in the response. */
|
|
1158
|
-
count?: number | null;
|
|
1159
|
-
/** Offset that was requested. */
|
|
1160
|
-
offset?: number | null;
|
|
1161
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1162
|
-
total?: number | null;
|
|
1163
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1164
|
-
tooManyToCount?: boolean | null;
|
|
1165
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1166
|
-
cursors?: Cursors$1;
|
|
1167
|
-
}
|
|
1168
|
-
interface Cursors$1 {
|
|
1169
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
1170
|
-
next?: string | null;
|
|
1171
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
1172
|
-
prev?: string | null;
|
|
1173
|
-
}
|
|
1174
|
-
interface DiscardSeatingPlanVersionsRequest {
|
|
1175
|
-
/** Seating Plan ID */
|
|
1176
|
-
seatingPlanId?: string | null;
|
|
1177
|
-
/** Version from which all higher versions will be discarded. */
|
|
1178
|
-
version?: string | null;
|
|
1179
|
-
}
|
|
1180
|
-
interface DiscardSeatingPlanVersionsResponse {
|
|
1181
|
-
}
|
|
1182
|
-
interface RestoreSeatingPlanRequest {
|
|
1183
|
-
/** Seating Plan ID */
|
|
1184
|
-
seatingPlanId?: string | null;
|
|
1185
|
-
/** Version to witch the seating plan should be restored. */
|
|
1186
|
-
version?: string | null;
|
|
1187
|
-
}
|
|
1188
|
-
interface RestoreSeatingPlanResponse {
|
|
1189
|
-
/** Seating Plan */
|
|
1190
|
-
plan?: SeatingPlan$1;
|
|
1191
|
-
}
|
|
1192
|
-
interface SequencingNonNullableFields$1 {
|
|
1193
|
-
startAt: string;
|
|
1194
|
-
labels: string[];
|
|
1195
|
-
}
|
|
1196
|
-
interface PlaceNonNullableFields$1 {
|
|
1197
|
-
index: number;
|
|
1198
|
-
label: string;
|
|
1199
|
-
elementType: Type$1;
|
|
1200
|
-
type: PlaceTypeEnumType$1;
|
|
1201
|
-
}
|
|
1202
|
-
interface ReservationOptionsNonNullableFields$1 {
|
|
1203
|
-
reserveWholeElement: boolean;
|
|
1204
|
-
}
|
|
1205
|
-
interface ImageNonNullableFields$1 {
|
|
1206
|
-
_id: string;
|
|
1207
|
-
height: number;
|
|
1208
|
-
width: number;
|
|
1209
|
-
}
|
|
1210
|
-
interface ElementUiPropertiesNonNullableFields$1 {
|
|
1211
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1212
|
-
labelPosition: Position$1;
|
|
1213
|
-
seatLayout: number[];
|
|
1214
|
-
icon: Icon$1;
|
|
1215
|
-
image?: ImageNonNullableFields$1;
|
|
1216
|
-
seatNumbering: Numbering$1;
|
|
1217
|
-
}
|
|
1218
|
-
interface RowElementUiPropertiesNonNullableFields$1 {
|
|
1219
|
-
labelPosition: Position$1;
|
|
1220
|
-
seatNumbering: Numbering$1;
|
|
1221
|
-
}
|
|
1222
|
-
interface RowElementNonNullableFields$1 {
|
|
1223
|
-
_id: number;
|
|
1224
|
-
sequencing?: SequencingNonNullableFields$1;
|
|
1225
|
-
uiProperties?: RowElementUiPropertiesNonNullableFields$1;
|
|
1226
|
-
}
|
|
1227
|
-
interface VerticalSequencingNonNullableFields$1 {
|
|
1228
|
-
startAt: string;
|
|
1229
|
-
rowNumbering: Numbering$1;
|
|
1230
|
-
}
|
|
1231
|
-
interface MultiRowPropertiesNonNullableFields$1 {
|
|
1232
|
-
rows: RowElementNonNullableFields$1[];
|
|
1233
|
-
verticalSequencing?: VerticalSequencingNonNullableFields$1;
|
|
1234
|
-
}
|
|
1235
|
-
interface ElementNonNullableFields$1 {
|
|
1236
|
-
_id: number;
|
|
1237
|
-
type: Type$1;
|
|
1238
|
-
sequencing?: SequencingNonNullableFields$1;
|
|
1239
|
-
overrides: PlaceNonNullableFields$1[];
|
|
1240
|
-
places: PlaceNonNullableFields$1[];
|
|
1241
|
-
reservationOptions?: ReservationOptionsNonNullableFields$1;
|
|
1242
|
-
uiProperties?: ElementUiPropertiesNonNullableFields$1;
|
|
1243
|
-
multiRowProperties?: MultiRowPropertiesNonNullableFields$1;
|
|
1244
|
-
}
|
|
1245
|
-
interface SectionNonNullableFields$1 {
|
|
1246
|
-
_id: number;
|
|
1247
|
-
elements: ElementNonNullableFields$1[];
|
|
1248
|
-
default: boolean;
|
|
1249
|
-
}
|
|
1250
|
-
interface CategoryNonNullableFields$1 {
|
|
1251
|
-
_id: number;
|
|
1252
|
-
title: string;
|
|
1253
|
-
places: PlaceNonNullableFields$1[];
|
|
1254
|
-
}
|
|
1255
|
-
interface ElementGroupNonNullableFields$1 {
|
|
1256
|
-
_id: number;
|
|
1257
|
-
}
|
|
1258
|
-
interface SeatingPlanNonNullableFields$1 {
|
|
1259
|
-
sections: SectionNonNullableFields$1[];
|
|
1260
|
-
categories: CategoryNonNullableFields$1[];
|
|
1261
|
-
uncategorizedPlaces: PlaceNonNullableFields$1[];
|
|
1262
|
-
elementGroups: ElementGroupNonNullableFields$1[];
|
|
1263
|
-
}
|
|
1264
|
-
interface CreateSeatingPlanResponseNonNullableFields {
|
|
1265
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1266
|
-
}
|
|
1267
|
-
interface UpdateSeatingPlanResponseNonNullableFields {
|
|
1268
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1269
|
-
}
|
|
1270
|
-
interface CopySeatingPlanResponseNonNullableFields {
|
|
1271
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1272
|
-
}
|
|
1273
|
-
interface QuerySeatingPlanResponseNonNullableFields {
|
|
1274
|
-
plans: SeatingPlanNonNullableFields$1[];
|
|
1275
|
-
}
|
|
1276
|
-
interface GetSeatingPlanResponseNonNullableFields {
|
|
1277
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1278
|
-
}
|
|
1279
|
-
interface FindSeatingPlanResponseNonNullableFields {
|
|
1280
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1281
|
-
}
|
|
1282
|
-
interface DeleteSeatingPlanResponseNonNullableFields {
|
|
1283
|
-
plan?: SeatingPlanNonNullableFields$1;
|
|
1284
|
-
}
|
|
1285
|
-
interface BaseEventMetadata$1 {
|
|
1286
|
-
/** App instance ID. */
|
|
1287
|
-
instanceId?: string | null;
|
|
1288
|
-
/** Event type. */
|
|
1289
|
-
eventType?: string;
|
|
1290
|
-
/** The identification type and identity data. */
|
|
1291
|
-
identity?: IdentificationData$1;
|
|
1292
|
-
}
|
|
1293
|
-
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
1294
|
-
/**
|
|
1295
|
-
* Unique event ID.
|
|
1296
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1297
|
-
*/
|
|
1298
|
-
_id?: string;
|
|
1299
|
-
/**
|
|
1300
|
-
* Assumes actions are also always typed to an entity_type
|
|
1301
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1302
|
-
*/
|
|
1303
|
-
entityFqdn?: string;
|
|
1304
|
-
/**
|
|
1305
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1306
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1307
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1308
|
-
*/
|
|
1309
|
-
slug?: string;
|
|
1310
|
-
/** ID of the entity associated with the event. */
|
|
1311
|
-
entityId?: string;
|
|
1312
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1313
|
-
eventTime?: Date | null;
|
|
1314
|
-
/**
|
|
1315
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1316
|
-
* (for example, GDPR).
|
|
1317
|
-
*/
|
|
1318
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1319
|
-
/** If present, indicates the action that triggered the event. */
|
|
1320
|
-
originatedFrom?: string | null;
|
|
1321
|
-
/**
|
|
1322
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1323
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1324
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1325
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1326
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1327
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1328
|
-
*/
|
|
1329
|
-
entityEventSequence?: string | null;
|
|
1330
|
-
}
|
|
1331
|
-
interface SeatingPlanCreatedEnvelope {
|
|
1332
|
-
entity: SeatingPlan$1;
|
|
1333
|
-
metadata: EventMetadata$1;
|
|
1334
|
-
}
|
|
1335
|
-
interface SeatingPlanDeletedEnvelope {
|
|
1336
|
-
entity: SeatingPlan$1;
|
|
1337
|
-
metadata: EventMetadata$1;
|
|
1338
|
-
}
|
|
1339
|
-
interface SeatingPlanUpdatedEnvelope {
|
|
1340
|
-
entity: SeatingPlan$1;
|
|
1341
|
-
metadata: EventMetadata$1;
|
|
1342
|
-
}
|
|
1343
|
-
interface UpdateSeatingPlanOptions {
|
|
1344
|
-
/** The plan updates */
|
|
1345
|
-
plan?: SeatingPlan$1;
|
|
1346
|
-
}
|
|
1347
|
-
interface CopySeatingPlanOptions {
|
|
1348
|
-
/** New plan title */
|
|
1349
|
-
title: string | null;
|
|
1350
|
-
/** Format: "{fqdn}:{entity guid}" */
|
|
1351
|
-
externalId: string | null;
|
|
1352
|
-
}
|
|
1353
|
-
interface QuerySeatingPlanOptions {
|
|
1354
|
-
/** A fieldset for the response */
|
|
1355
|
-
fieldset?: Fieldset[] | undefined;
|
|
1356
|
-
}
|
|
1357
|
-
interface QueryCursorResult$1 {
|
|
1358
|
-
cursors: Cursors$1;
|
|
1359
|
-
hasNext: () => boolean;
|
|
1360
|
-
hasPrev: () => boolean;
|
|
1361
|
-
length: number;
|
|
1362
|
-
pageSize: number;
|
|
1363
|
-
}
|
|
1364
|
-
interface PlansQueryResult extends QueryCursorResult$1 {
|
|
1365
|
-
items: SeatingPlan$1[];
|
|
1366
|
-
query: PlansQueryBuilder;
|
|
1367
|
-
next: () => Promise<PlansQueryResult>;
|
|
1368
|
-
prev: () => Promise<PlansQueryResult>;
|
|
1369
|
-
}
|
|
1370
|
-
interface PlansQueryBuilder {
|
|
1371
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1372
|
-
* @documentationMaturity preview
|
|
1373
|
-
*/
|
|
1374
|
-
limit: (limit: number) => PlansQueryBuilder;
|
|
1375
|
-
/** @param cursor - A pointer to specific record
|
|
1376
|
-
* @documentationMaturity preview
|
|
1377
|
-
*/
|
|
1378
|
-
skipTo: (cursor: string) => PlansQueryBuilder;
|
|
1379
|
-
/** @documentationMaturity preview */
|
|
1380
|
-
find: () => Promise<PlansQueryResult>;
|
|
1381
|
-
}
|
|
1382
|
-
interface GetSeatingPlanOptions {
|
|
1383
|
-
/**
|
|
1384
|
-
* A fieldset for the response
|
|
1385
|
-
* @deprecated
|
|
1386
|
-
*/
|
|
1387
|
-
fieldset?: Fieldset[];
|
|
1388
|
-
/**
|
|
1389
|
-
* Projection on the result object - list of named projections.
|
|
1390
|
-
* Possible values: "elements", "categories", "places", "config".
|
|
1391
|
-
*/
|
|
1392
|
-
fieldsets?: string[];
|
|
1393
|
-
/** Seating Plan Mask */
|
|
1394
|
-
seatingPlanMask?: SeatingPlanMask;
|
|
1395
|
-
}
|
|
1396
|
-
interface FindSeatingPlanOptions {
|
|
1397
|
-
/**
|
|
1398
|
-
* A fieldset for the response
|
|
1399
|
-
* @deprecated
|
|
1400
|
-
*/
|
|
1401
|
-
fieldset?: Fieldset[];
|
|
1402
|
-
/**
|
|
1403
|
-
* Projection on the result object - list of named projections.
|
|
1404
|
-
* Possible values: "elements", "categories", "places", "config".
|
|
1405
|
-
*/
|
|
1406
|
-
fieldsets?: string[];
|
|
1407
|
-
/** Seating Plan Mask */
|
|
1408
|
-
seatingPlanMask?: SeatingPlanMask;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
1412
|
-
interface CreateSeatingPlanSignature {
|
|
1413
|
-
/**
|
|
1414
|
-
* Crates a seating plan
|
|
1415
|
-
* @param - A plan to be created
|
|
1416
|
-
* @returns The created plan
|
|
1417
|
-
*/
|
|
1418
|
-
(plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1419
|
-
}
|
|
1420
|
-
declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
|
|
1421
|
-
interface UpdateSeatingPlanSignature {
|
|
1422
|
-
/**
|
|
1423
|
-
* Updates the seating plan
|
|
1424
|
-
* @returns The updated plan
|
|
1425
|
-
*/
|
|
1426
|
-
(options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1427
|
-
}
|
|
1428
|
-
declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
|
|
1429
|
-
interface CopySeatingPlanSignature {
|
|
1430
|
-
/**
|
|
1431
|
-
* Copies the seating plan
|
|
1432
|
-
* @param - The id of the plan to be copied
|
|
1433
|
-
*/
|
|
1434
|
-
(_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
1435
|
-
}
|
|
1436
|
-
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
1437
|
-
interface QuerySeatingPlanSignature {
|
|
1438
|
-
/**
|
|
1439
|
-
* Lists seating plans by provided query request
|
|
1440
|
-
*/
|
|
1441
|
-
(options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
|
|
1442
|
-
}
|
|
1443
|
-
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
1444
|
-
interface GetSeatingPlanSignature {
|
|
1445
|
-
/**
|
|
1446
|
-
* Returns the seating plan. Fails of not fond.
|
|
1447
|
-
* @param - The id of the plan
|
|
1448
|
-
* @returns The plan
|
|
1449
|
-
*/
|
|
1450
|
-
(_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1451
|
-
}
|
|
1452
|
-
declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
|
|
1453
|
-
interface FindSeatingPlanSignature {
|
|
1454
|
-
/**
|
|
1455
|
-
* Returns the first seating plan found by filter request.
|
|
1456
|
-
* @param - The filter of the plan
|
|
1457
|
-
*/
|
|
1458
|
-
(filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1459
|
-
}
|
|
1460
|
-
declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
|
|
1461
|
-
interface DeleteSeatingPlanSignature {
|
|
1462
|
-
/**
|
|
1463
|
-
* Deletes the seating plan.
|
|
1464
|
-
* @param - The id of the plan
|
|
1465
|
-
*/
|
|
1466
|
-
(_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1467
|
-
}
|
|
1468
|
-
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
1469
|
-
interface UpdateSeatingPlanThumbnailSignature {
|
|
1470
|
-
/**
|
|
1471
|
-
* Updates seating plan thumbnail.
|
|
1472
|
-
*/
|
|
1473
|
-
(thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1474
|
-
}
|
|
1475
|
-
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
1476
|
-
interface GetSeatingPlanThumbnailSignature {
|
|
1477
|
-
/**
|
|
1478
|
-
* Get seating plan thumbnail.
|
|
1479
|
-
*/
|
|
1480
|
-
(_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1481
|
-
}
|
|
1482
|
-
declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1483
|
-
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1484
|
-
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1485
|
-
|
|
1486
|
-
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1487
|
-
|
|
1488
|
-
declare const createSeatingPlan: MaybeContext<BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1>;
|
|
1489
|
-
declare const updateSeatingPlan: MaybeContext<BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1>;
|
|
1490
|
-
declare const copySeatingPlan: MaybeContext<BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1>;
|
|
1491
|
-
declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1>;
|
|
1492
|
-
declare const getSeatingPlan: MaybeContext<BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1>;
|
|
1493
|
-
declare const findSeatingPlan: MaybeContext<BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1>;
|
|
1494
|
-
declare const deleteSeatingPlan: MaybeContext<BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1>;
|
|
1495
|
-
declare const updateSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1>;
|
|
1496
|
-
declare const getSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1>;
|
|
1497
|
-
|
|
1498
|
-
type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
|
|
1499
|
-
/** */
|
|
1500
|
-
declare const onSeatingPlanCreated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanCreatedType>>;
|
|
1501
|
-
|
|
1502
|
-
type _publicOnSeatingPlanDeletedType = typeof onSeatingPlanDeleted$1;
|
|
1503
|
-
/** */
|
|
1504
|
-
declare const onSeatingPlanDeleted: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanDeletedType>>;
|
|
1505
|
-
|
|
1506
|
-
type _publicOnSeatingPlanUpdatedType = typeof onSeatingPlanUpdated$1;
|
|
1507
|
-
/** */
|
|
1508
|
-
declare const onSeatingPlanUpdated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanUpdatedType>>;
|
|
1509
|
-
|
|
1510
|
-
type context$1_CapacityExceededViolation = CapacityExceededViolation;
|
|
1511
|
-
type context$1_CopySeatingPlanOptions = CopySeatingPlanOptions;
|
|
1512
|
-
type context$1_CopySeatingPlanRequest = CopySeatingPlanRequest;
|
|
1513
|
-
type context$1_CopySeatingPlanResponse = CopySeatingPlanResponse;
|
|
1514
|
-
type context$1_CopySeatingPlanResponseNonNullableFields = CopySeatingPlanResponseNonNullableFields;
|
|
1515
|
-
type context$1_CreateSeatingPlanRequest = CreateSeatingPlanRequest;
|
|
1516
|
-
type context$1_CreateSeatingPlanResponse = CreateSeatingPlanResponse;
|
|
1517
|
-
type context$1_CreateSeatingPlanResponseNonNullableFields = CreateSeatingPlanResponseNonNullableFields;
|
|
1518
|
-
type context$1_DeleteSeatingPlanRequest = DeleteSeatingPlanRequest;
|
|
1519
|
-
type context$1_DeleteSeatingPlanResponse = DeleteSeatingPlanResponse;
|
|
1520
|
-
type context$1_DeleteSeatingPlanResponseNonNullableFields = DeleteSeatingPlanResponseNonNullableFields;
|
|
1521
|
-
type context$1_DiscardSeatingPlanVersionsRequest = DiscardSeatingPlanVersionsRequest;
|
|
1522
|
-
type context$1_DiscardSeatingPlanVersionsResponse = DiscardSeatingPlanVersionsResponse;
|
|
1523
|
-
type context$1_Fieldset = Fieldset;
|
|
1524
|
-
declare const context$1_Fieldset: typeof Fieldset;
|
|
1525
|
-
type context$1_FindSeatingPlanOptions = FindSeatingPlanOptions;
|
|
1526
|
-
type context$1_FindSeatingPlanRequest = FindSeatingPlanRequest;
|
|
1527
|
-
type context$1_FindSeatingPlanResponse = FindSeatingPlanResponse;
|
|
1528
|
-
type context$1_FindSeatingPlanResponseNonNullableFields = FindSeatingPlanResponseNonNullableFields;
|
|
1529
|
-
type context$1_GetSeatingPlanOptions = GetSeatingPlanOptions;
|
|
1530
|
-
type context$1_GetSeatingPlanRequest = GetSeatingPlanRequest;
|
|
1531
|
-
type context$1_GetSeatingPlanResponse = GetSeatingPlanResponse;
|
|
1532
|
-
type context$1_GetSeatingPlanResponseNonNullableFields = GetSeatingPlanResponseNonNullableFields;
|
|
1533
|
-
type context$1_GetSeatingPlanThumbnailRequest = GetSeatingPlanThumbnailRequest;
|
|
1534
|
-
type context$1_GetSeatingPlanThumbnailResponse = GetSeatingPlanThumbnailResponse;
|
|
1535
|
-
type context$1_PlansQueryBuilder = PlansQueryBuilder;
|
|
1536
|
-
type context$1_PlansQueryResult = PlansQueryResult;
|
|
1537
|
-
type context$1_QuerySeatingPlanOptions = QuerySeatingPlanOptions;
|
|
1538
|
-
type context$1_QuerySeatingPlanRequest = QuerySeatingPlanRequest;
|
|
1539
|
-
type context$1_QuerySeatingPlanResponse = QuerySeatingPlanResponse;
|
|
1540
|
-
type context$1_QuerySeatingPlanResponseNonNullableFields = QuerySeatingPlanResponseNonNullableFields;
|
|
1541
|
-
type context$1_QuerySeatingPlanVersionsRequest = QuerySeatingPlanVersionsRequest;
|
|
1542
|
-
type context$1_QuerySeatingPlanVersionsResponse = QuerySeatingPlanVersionsResponse;
|
|
1543
|
-
type context$1_RestoreSeatingPlanRequest = RestoreSeatingPlanRequest;
|
|
1544
|
-
type context$1_RestoreSeatingPlanResponse = RestoreSeatingPlanResponse;
|
|
1545
|
-
type context$1_SaveSeatingPlanVersionRequest = SaveSeatingPlanVersionRequest;
|
|
1546
|
-
type context$1_SaveSeatingPlanVersionResponse = SaveSeatingPlanVersionResponse;
|
|
1547
|
-
type context$1_SeatingPlanCreatedEnvelope = SeatingPlanCreatedEnvelope;
|
|
1548
|
-
type context$1_SeatingPlanDeletedEnvelope = SeatingPlanDeletedEnvelope;
|
|
1549
|
-
type context$1_SeatingPlanMask = SeatingPlanMask;
|
|
1550
|
-
type context$1_SeatingPlanThumbnail = SeatingPlanThumbnail;
|
|
1551
|
-
type context$1_SeatingPlanUpdatedEnvelope = SeatingPlanUpdatedEnvelope;
|
|
1552
|
-
type context$1_UpdateSeatingPlanOptions = UpdateSeatingPlanOptions;
|
|
1553
|
-
type context$1_UpdateSeatingPlanRequest = UpdateSeatingPlanRequest;
|
|
1554
|
-
type context$1_UpdateSeatingPlanResponse = UpdateSeatingPlanResponse;
|
|
1555
|
-
type context$1_UpdateSeatingPlanResponseNonNullableFields = UpdateSeatingPlanResponseNonNullableFields;
|
|
1556
|
-
type context$1_UpdateSeatingPlanThumbnailRequest = UpdateSeatingPlanThumbnailRequest;
|
|
1557
|
-
type context$1_UpdateSeatingPlanThumbnailResponse = UpdateSeatingPlanThumbnailResponse;
|
|
1558
|
-
type context$1__publicOnSeatingPlanCreatedType = _publicOnSeatingPlanCreatedType;
|
|
1559
|
-
type context$1__publicOnSeatingPlanDeletedType = _publicOnSeatingPlanDeletedType;
|
|
1560
|
-
type context$1__publicOnSeatingPlanUpdatedType = _publicOnSeatingPlanUpdatedType;
|
|
1561
|
-
declare const context$1_copySeatingPlan: typeof copySeatingPlan;
|
|
1562
|
-
declare const context$1_createSeatingPlan: typeof createSeatingPlan;
|
|
1563
|
-
declare const context$1_deleteSeatingPlan: typeof deleteSeatingPlan;
|
|
1564
|
-
declare const context$1_findSeatingPlan: typeof findSeatingPlan;
|
|
1565
|
-
declare const context$1_getSeatingPlan: typeof getSeatingPlan;
|
|
1566
|
-
declare const context$1_getSeatingPlanThumbnail: typeof getSeatingPlanThumbnail;
|
|
1567
|
-
declare const context$1_onSeatingPlanCreated: typeof onSeatingPlanCreated;
|
|
1568
|
-
declare const context$1_onSeatingPlanDeleted: typeof onSeatingPlanDeleted;
|
|
1569
|
-
declare const context$1_onSeatingPlanUpdated: typeof onSeatingPlanUpdated;
|
|
1570
|
-
declare const context$1_querySeatingPlan: typeof querySeatingPlan;
|
|
1571
|
-
declare const context$1_updateSeatingPlan: typeof updateSeatingPlan;
|
|
1572
|
-
declare const context$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
|
|
1573
|
-
declare namespace context$1 {
|
|
1574
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CapacityExceededViolation as CapacityExceededViolation, type Category$1 as Category, type context$1_CopySeatingPlanOptions as CopySeatingPlanOptions, type context$1_CopySeatingPlanRequest as CopySeatingPlanRequest, type context$1_CopySeatingPlanResponse as CopySeatingPlanResponse, type context$1_CopySeatingPlanResponseNonNullableFields as CopySeatingPlanResponseNonNullableFields, type context$1_CreateSeatingPlanRequest as CreateSeatingPlanRequest, type context$1_CreateSeatingPlanResponse as CreateSeatingPlanResponse, type context$1_CreateSeatingPlanResponseNonNullableFields as CreateSeatingPlanResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$1_DeleteSeatingPlanRequest as DeleteSeatingPlanRequest, type context$1_DeleteSeatingPlanResponse as DeleteSeatingPlanResponse, type context$1_DeleteSeatingPlanResponseNonNullableFields as DeleteSeatingPlanResponseNonNullableFields, type context$1_DiscardSeatingPlanVersionsRequest as DiscardSeatingPlanVersionsRequest, type context$1_DiscardSeatingPlanVersionsResponse as DiscardSeatingPlanVersionsResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Element$1 as Element, type ElementGroup$1 as ElementGroup, type ElementGroupUiProperties$1 as ElementGroupUiProperties, type ElementUiProperties$1 as ElementUiProperties, 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, context$1_Fieldset as Fieldset, type context$1_FindSeatingPlanOptions as FindSeatingPlanOptions, type context$1_FindSeatingPlanRequest as FindSeatingPlanRequest, type context$1_FindSeatingPlanResponse as FindSeatingPlanResponse, type context$1_FindSeatingPlanResponseNonNullableFields as FindSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanOptions as GetSeatingPlanOptions, type context$1_GetSeatingPlanRequest as GetSeatingPlanRequest, type context$1_GetSeatingPlanResponse as GetSeatingPlanResponse, type context$1_GetSeatingPlanResponseNonNullableFields as GetSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanThumbnailRequest as GetSeatingPlanThumbnailRequest, type context$1_GetSeatingPlanThumbnailResponse as GetSeatingPlanThumbnailResponse, Icon$1 as Icon, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Image$1 as Image, type MessageEnvelope$1 as MessageEnvelope, type MultiRowProperties$1 as MultiRowProperties, Numbering$1 as Numbering, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type Place$1 as Place, PlaceTypeEnumType$1 as PlaceTypeEnumType, type context$1_PlansQueryBuilder as PlansQueryBuilder, type context$1_PlansQueryResult as PlansQueryResult, Position$1 as Position, type context$1_QuerySeatingPlanOptions as QuerySeatingPlanOptions, type context$1_QuerySeatingPlanRequest as QuerySeatingPlanRequest, type context$1_QuerySeatingPlanResponse as QuerySeatingPlanResponse, type context$1_QuerySeatingPlanResponseNonNullableFields as QuerySeatingPlanResponseNonNullableFields, type context$1_QuerySeatingPlanVersionsRequest as QuerySeatingPlanVersionsRequest, type context$1_QuerySeatingPlanVersionsResponse as QuerySeatingPlanVersionsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type ReservationOptions$1 as ReservationOptions, type RestoreInfo$1 as RestoreInfo, type context$1_RestoreSeatingPlanRequest as RestoreSeatingPlanRequest, type context$1_RestoreSeatingPlanResponse as RestoreSeatingPlanResponse, type RowElement$1 as RowElement, type RowElementUiProperties$1 as RowElementUiProperties, type context$1_SaveSeatingPlanVersionRequest as SaveSeatingPlanVersionRequest, type context$1_SaveSeatingPlanVersionResponse as SaveSeatingPlanVersionResponse, type SeatingPlan$1 as SeatingPlan, type context$1_SeatingPlanCreatedEnvelope as SeatingPlanCreatedEnvelope, type context$1_SeatingPlanDeletedEnvelope as SeatingPlanDeletedEnvelope, type context$1_SeatingPlanMask as SeatingPlanMask, type SeatingPlanNonNullableFields$1 as SeatingPlanNonNullableFields, type context$1_SeatingPlanThumbnail as SeatingPlanThumbnail, type SeatingPlanUiProperties$1 as SeatingPlanUiProperties, type context$1_SeatingPlanUpdatedEnvelope as SeatingPlanUpdatedEnvelope, type Section$1 as Section, type Sequencing$1 as Sequencing, ShapeTypeEnumType$1 as ShapeTypeEnumType, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Type$1 as Type, type context$1_UpdateSeatingPlanOptions as UpdateSeatingPlanOptions, type context$1_UpdateSeatingPlanRequest as UpdateSeatingPlanRequest, type context$1_UpdateSeatingPlanResponse as UpdateSeatingPlanResponse, type context$1_UpdateSeatingPlanResponseNonNullableFields as UpdateSeatingPlanResponseNonNullableFields, type context$1_UpdateSeatingPlanThumbnailRequest as UpdateSeatingPlanThumbnailRequest, type context$1_UpdateSeatingPlanThumbnailResponse as UpdateSeatingPlanThumbnailResponse, type VerticalSequencing$1 as VerticalSequencing, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnSeatingPlanCreatedType as _publicOnSeatingPlanCreatedType, type context$1__publicOnSeatingPlanDeletedType as _publicOnSeatingPlanDeletedType, type context$1__publicOnSeatingPlanUpdatedType as _publicOnSeatingPlanUpdatedType, context$1_copySeatingPlan as copySeatingPlan, context$1_createSeatingPlan as createSeatingPlan, context$1_deleteSeatingPlan as deleteSeatingPlan, context$1_findSeatingPlan as findSeatingPlan, context$1_getSeatingPlan as getSeatingPlan, context$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, context$1_onSeatingPlanCreated as onSeatingPlanCreated, context$1_onSeatingPlanDeleted as onSeatingPlanDeleted, context$1_onSeatingPlanUpdated as onSeatingPlanUpdated, onSeatingPlanCreated$1 as publicOnSeatingPlanCreated, onSeatingPlanDeleted$1 as publicOnSeatingPlanDeleted, onSeatingPlanUpdated$1 as publicOnSeatingPlanUpdated, context$1_querySeatingPlan as querySeatingPlan, context$1_updateSeatingPlan as updateSeatingPlan, context$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
interface SeatingReservation {
|
|
1578
|
-
/**
|
|
1579
|
-
* The id of the reservation
|
|
1580
|
-
* @readonly
|
|
1581
|
-
*/
|
|
1582
|
-
_id?: string | null;
|
|
1583
|
-
/**
|
|
1584
|
-
* The seating plan id
|
|
1585
|
-
* @readonly
|
|
1586
|
-
*/
|
|
1587
|
-
seatingPlanId?: string | null;
|
|
1588
|
-
/**
|
|
1589
|
-
* The external seating plan id
|
|
1590
|
-
* @readonly
|
|
1591
|
-
*/
|
|
1592
|
-
externalSeatingPlanId?: string | null;
|
|
1593
|
-
/** Reserved places */
|
|
1594
|
-
reservedPlaces?: PlaceReservation[];
|
|
1595
|
-
/**
|
|
1596
|
-
* A client defined external id for cross referencing.
|
|
1597
|
-
* Can reference external entities.
|
|
1598
|
-
* Format: "{fqdn}:{entity guid}"
|
|
1599
|
-
*/
|
|
1600
|
-
externalId?: string | null;
|
|
1601
|
-
}
|
|
1602
|
-
interface PlaceReservation {
|
|
1603
|
-
/** The place id. */
|
|
1604
|
-
_id?: string;
|
|
1605
|
-
/**
|
|
1606
|
-
* Number of places in the spot. If not provided - defaults to 1.
|
|
1607
|
-
* Used to reserve for more that one place in areas.
|
|
1608
|
-
*/
|
|
1609
|
-
capacity?: number | null;
|
|
1610
|
-
/**
|
|
1611
|
-
* Optional section label.
|
|
1612
|
-
* @readonly
|
|
1613
|
-
*/
|
|
1614
|
-
sectionLabel?: string | null;
|
|
1615
|
-
/**
|
|
1616
|
-
* Area label.
|
|
1617
|
-
* @readonly
|
|
1618
|
-
*/
|
|
1619
|
-
areaLabel?: string | null;
|
|
1620
|
-
/**
|
|
1621
|
-
* Table label.
|
|
1622
|
-
* @readonly
|
|
1623
|
-
*/
|
|
1624
|
-
tableLabel?: string | null;
|
|
1625
|
-
/**
|
|
1626
|
-
* Row label.
|
|
1627
|
-
* @readonly
|
|
1628
|
-
*/
|
|
1629
|
-
rowLabel?: string | null;
|
|
1630
|
-
/**
|
|
1631
|
-
* Seat label in a row or table.
|
|
1632
|
-
* @readonly
|
|
1633
|
-
*/
|
|
1634
|
-
seatLabel?: string | null;
|
|
1635
|
-
}
|
|
1636
|
-
interface SeatingPlanCategoriesSummaryUpdated {
|
|
1637
|
-
/** Seating plan id */
|
|
1638
|
-
seatingPlanId?: string;
|
|
1639
|
-
/** External seating plan id */
|
|
1640
|
-
externalSeatingPlanId?: string | null;
|
|
1641
|
-
/** Ticket counts by category */
|
|
1642
|
-
categories?: CategoryDetails[];
|
|
1643
|
-
/**
|
|
1644
|
-
* Summary revision.
|
|
1645
|
-
* @readonly
|
|
1646
|
-
*/
|
|
1647
|
-
revision?: string | null;
|
|
1648
|
-
}
|
|
1649
|
-
interface CategoryDetails {
|
|
1650
|
-
/**
|
|
1651
|
-
* Seating plan id
|
|
1652
|
-
* @readonly
|
|
1653
|
-
*/
|
|
1654
|
-
seatingPlanId?: string | null;
|
|
1655
|
-
/**
|
|
1656
|
-
* External seating plan id
|
|
1657
|
-
* @readonly
|
|
1658
|
-
*/
|
|
1659
|
-
externalSeatingPlanId?: string | null;
|
|
1660
|
-
/**
|
|
1661
|
-
* External category id
|
|
1662
|
-
* @readonly
|
|
1663
|
-
*/
|
|
1664
|
-
externalCategoryId?: string | null;
|
|
1665
|
-
/**
|
|
1666
|
-
* Total capacity in the category
|
|
1667
|
-
* @readonly
|
|
1668
|
-
*/
|
|
1669
|
-
totalCapacity?: number | null;
|
|
1670
|
-
/**
|
|
1671
|
-
* Already reserved capacity
|
|
1672
|
-
* @readonly
|
|
1673
|
-
*/
|
|
1674
|
-
reserved?: number | null;
|
|
1675
|
-
}
|
|
1676
|
-
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
1677
|
-
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
1678
|
-
metaSiteId?: string;
|
|
1679
|
-
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
1680
|
-
siteId?: string;
|
|
1681
|
-
/** Invalidate by App */
|
|
1682
|
-
app?: App;
|
|
1683
|
-
/** Invalidate by page id */
|
|
1684
|
-
page?: Page;
|
|
1685
|
-
/** Invalidate by URI path */
|
|
1686
|
-
uri?: URI;
|
|
1687
|
-
/** Invalidate by file (for media files such as PDFs) */
|
|
1688
|
-
file?: File;
|
|
1689
|
-
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
1690
|
-
reason?: string | null;
|
|
1691
|
-
/** Is local DS */
|
|
1692
|
-
localDc?: boolean;
|
|
1693
|
-
hardPurge?: boolean;
|
|
1694
|
-
}
|
|
1695
|
-
/** @oneof */
|
|
1696
|
-
interface InvalidateCacheGetByOneOf {
|
|
1697
|
-
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
1698
|
-
metaSiteId?: string;
|
|
1699
|
-
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
1700
|
-
siteId?: string;
|
|
1701
|
-
/** Invalidate by App */
|
|
1702
|
-
app?: App;
|
|
1703
|
-
/** Invalidate by page id */
|
|
1704
|
-
page?: Page;
|
|
1705
|
-
/** Invalidate by URI path */
|
|
1706
|
-
uri?: URI;
|
|
1707
|
-
/** Invalidate by file (for media files such as PDFs) */
|
|
1708
|
-
file?: File;
|
|
1709
|
-
}
|
|
1710
|
-
interface App {
|
|
1711
|
-
/** The AppDefId */
|
|
1712
|
-
appDefId?: string;
|
|
1713
|
-
/** The instance Id */
|
|
1714
|
-
instanceId?: string;
|
|
1715
|
-
}
|
|
1716
|
-
interface Page {
|
|
1717
|
-
/** the msid the page is on */
|
|
1718
|
-
metaSiteId?: string;
|
|
1719
|
-
/** Invalidate by Page ID */
|
|
1720
|
-
pageId?: string;
|
|
1721
|
-
}
|
|
1722
|
-
interface URI {
|
|
1723
|
-
/** the msid the URI is on */
|
|
1724
|
-
metaSiteId?: string;
|
|
1725
|
-
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
1726
|
-
uriPath?: string;
|
|
1727
|
-
}
|
|
1728
|
-
interface File {
|
|
1729
|
-
/** the msid the file is related to */
|
|
1730
|
-
metaSiteId?: string;
|
|
1731
|
-
/** Invalidate by filename (for media files such as PDFs) */
|
|
1732
|
-
fileName?: string;
|
|
1733
|
-
}
|
|
1734
|
-
interface CreateSeatingReservationRequest {
|
|
1735
|
-
/** A reservation to create */
|
|
1736
|
-
reservation?: SeatingReservation;
|
|
1737
|
-
}
|
|
1738
|
-
interface CreateSeatingReservationResponse {
|
|
1739
|
-
/** Created reservation */
|
|
1740
|
-
reservation?: SeatingReservation;
|
|
1741
|
-
}
|
|
1742
|
-
interface Places {
|
|
1743
|
-
/** Places */
|
|
1744
|
-
places?: string[];
|
|
1745
|
-
}
|
|
1746
|
-
interface UnavailablePlaces {
|
|
1747
|
-
/** Places that cannot be reserved */
|
|
1748
|
-
unavailablePlaces?: string[];
|
|
1749
|
-
/** Reservation error details */
|
|
1750
|
-
reservationErrorDetails?: ReservationErrorDetails[];
|
|
1751
|
-
}
|
|
1752
|
-
interface ReservationErrorDetails {
|
|
1753
|
-
/** Place */
|
|
1754
|
-
_id?: string;
|
|
1755
|
-
/** Available capacity */
|
|
1756
|
-
available?: number;
|
|
1757
|
-
/** Requested capacity */
|
|
1758
|
-
requested?: number;
|
|
1759
|
-
}
|
|
1760
|
-
interface GetReservationRequest {
|
|
1761
|
-
/** The id of the reservation to return */
|
|
1762
|
-
_id: string | null;
|
|
1763
|
-
}
|
|
1764
|
-
interface GetReservationResponse {
|
|
1765
|
-
/** Created reservation */
|
|
1766
|
-
reservation?: SeatingReservation;
|
|
1767
|
-
}
|
|
1768
|
-
interface QuerySeatingReservationRequest {
|
|
1769
|
-
/** A query object */
|
|
1770
|
-
query: QueryV2;
|
|
1771
|
-
}
|
|
1772
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
1773
|
-
/** Paging options to limit and skip the number of items. */
|
|
1774
|
-
paging?: Paging;
|
|
1775
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1776
|
-
cursorPaging?: CursorPaging;
|
|
1777
|
-
/**
|
|
1778
|
-
* Filter object.
|
|
1779
|
-
*
|
|
1780
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1781
|
-
*/
|
|
1782
|
-
filter?: Record<string, any> | null;
|
|
1783
|
-
/**
|
|
1784
|
-
* Sort object.
|
|
1785
|
-
*
|
|
1786
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1787
|
-
*/
|
|
1788
|
-
sort?: Sorting[];
|
|
1789
|
-
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1790
|
-
fields?: string[];
|
|
1791
|
-
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1792
|
-
fieldsets?: string[];
|
|
1793
|
-
}
|
|
1794
|
-
/** @oneof */
|
|
1795
|
-
interface QueryV2PagingMethodOneOf {
|
|
1796
|
-
/** Paging options to limit and skip the number of items. */
|
|
1797
|
-
paging?: Paging;
|
|
1798
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1799
|
-
cursorPaging?: CursorPaging;
|
|
1800
|
-
}
|
|
1801
|
-
interface Sorting {
|
|
1802
|
-
/** Name of the field to sort by. */
|
|
1803
|
-
fieldName?: string;
|
|
1804
|
-
/** Sort order. */
|
|
1805
|
-
order?: SortOrder;
|
|
1806
|
-
}
|
|
1807
|
-
declare enum SortOrder {
|
|
1808
|
-
ASC = "ASC",
|
|
1809
|
-
DESC = "DESC"
|
|
1810
|
-
}
|
|
1811
|
-
interface Paging {
|
|
1812
|
-
/** Number of items to load. */
|
|
1813
|
-
limit?: number | null;
|
|
1814
|
-
/** Number of items to skip in the current sort order. */
|
|
1815
|
-
offset?: number | null;
|
|
1816
|
-
}
|
|
1817
|
-
interface CursorPaging {
|
|
1818
|
-
/** Maximum number of items to return in the results. */
|
|
1819
|
-
limit?: number | null;
|
|
1820
|
-
/**
|
|
1821
|
-
* Pointer to the next or previous page in the list of results.
|
|
1822
|
-
*
|
|
1823
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1824
|
-
* Not relevant for the first request.
|
|
1825
|
-
*/
|
|
1826
|
-
cursor?: string | null;
|
|
1827
|
-
}
|
|
1828
|
-
interface QuerySeatingReservationResponse {
|
|
1829
|
-
/** Found reservations */
|
|
1830
|
-
reservations?: SeatingReservation[];
|
|
1831
|
-
/** Paging meta data */
|
|
1832
|
-
metadata?: PagingMetadataV2;
|
|
1833
|
-
}
|
|
1834
|
-
interface PagingMetadataV2 {
|
|
1835
|
-
/** Number of items returned in the response. */
|
|
1836
|
-
count?: number | null;
|
|
1837
|
-
/** Offset that was requested. */
|
|
1838
|
-
offset?: number | null;
|
|
1839
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1840
|
-
total?: number | null;
|
|
1841
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1842
|
-
tooManyToCount?: boolean | null;
|
|
1843
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1844
|
-
cursors?: Cursors;
|
|
1845
|
-
}
|
|
1846
|
-
interface Cursors {
|
|
1847
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
1848
|
-
next?: string | null;
|
|
1849
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
1850
|
-
prev?: string | null;
|
|
1851
|
-
}
|
|
1852
|
-
interface DeleteSeatingReservationRequest {
|
|
1853
|
-
/** The id of the reservation to delete */
|
|
1854
|
-
_id: string | null;
|
|
1855
|
-
}
|
|
1856
|
-
interface DeleteSeatingReservationResponse {
|
|
1857
|
-
/** The deleted reservation */
|
|
1858
|
-
reservation?: SeatingReservation;
|
|
1859
|
-
}
|
|
1860
|
-
interface DeleteSeatingPlaceReservationRequest {
|
|
1861
|
-
/** The id of the place reservation to delete */
|
|
1862
|
-
_id?: string | null;
|
|
1863
|
-
/** The id of the place reservation's reservation */
|
|
1864
|
-
reservationId?: string | null;
|
|
1865
|
-
}
|
|
1866
|
-
interface Empty {
|
|
1867
|
-
}
|
|
1868
|
-
interface GetReservedPlacesRequest {
|
|
1869
|
-
/** Seating plan id */
|
|
1870
|
-
_id?: string | null;
|
|
1871
|
-
}
|
|
1872
|
-
interface GetReservedPlacesResponse {
|
|
1873
|
-
/** Reserved places of the plan */
|
|
1874
|
-
placeReservations?: PlaceReservation[];
|
|
1875
|
-
}
|
|
1876
|
-
interface GetSeatingCategoriesSummaryRequest {
|
|
1877
|
-
/** Seating plan external id */
|
|
1878
|
-
externalId?: string[];
|
|
1879
|
-
}
|
|
1880
|
-
interface GetSeatingCategoriesSummaryResponse {
|
|
1881
|
-
/** Ticket counts by category */
|
|
1882
|
-
categories?: CategoryDetails[];
|
|
1883
|
-
}
|
|
1884
|
-
interface GetSeatingCategorySummaryRequest {
|
|
1885
|
-
/** Seating plan external id */
|
|
1886
|
-
externalId?: string;
|
|
1887
|
-
}
|
|
1888
|
-
interface GetSeatingCategorySummaryResponse {
|
|
1889
|
-
/** Ticket counts by category */
|
|
1890
|
-
categories?: CategoryDetails[];
|
|
1891
|
-
}
|
|
1892
|
-
interface GetSeatingReservationsSummaryRequest {
|
|
1893
|
-
/** Filter for seating plan */
|
|
1894
|
-
filter: Record<string, any> | null;
|
|
1895
|
-
}
|
|
1896
|
-
interface GetSeatingReservationsSummaryResponse {
|
|
1897
|
-
plan?: SeatingPlan;
|
|
1898
|
-
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
1899
|
-
}
|
|
1900
|
-
interface SeatingPlan {
|
|
1901
|
-
/**
|
|
1902
|
-
* Auto generated unique plan id
|
|
1903
|
-
* @readonly
|
|
1904
|
-
*/
|
|
1905
|
-
_id?: string | null;
|
|
1906
|
-
/**
|
|
1907
|
-
* A client defined external id for cross referencing.
|
|
1908
|
-
* Can reference external entities.
|
|
1909
|
-
* Format: "{fqdn}:{entity guid}"
|
|
1910
|
-
*/
|
|
1911
|
-
externalId?: string | null;
|
|
1912
|
-
/** Human friendly plan title */
|
|
1913
|
-
title?: string | null;
|
|
1914
|
-
/** Sections of the plan. Seating plan is divided in high level sections. */
|
|
1915
|
-
sections?: Section[];
|
|
1916
|
-
/** Categories for plan element grouping. */
|
|
1917
|
-
categories?: Category[];
|
|
1918
|
-
/**
|
|
1919
|
-
* Seating plan created timestamp.
|
|
1920
|
-
* @readonly
|
|
1921
|
-
*/
|
|
1922
|
-
_createdDate?: Date | null;
|
|
1923
|
-
/**
|
|
1924
|
-
* Seating plan updated timestamp.
|
|
1925
|
-
* @readonly
|
|
1926
|
-
*/
|
|
1927
|
-
_updatedDate?: Date | null;
|
|
1928
|
-
/**
|
|
1929
|
-
* Total capacity
|
|
1930
|
-
* @readonly
|
|
1931
|
-
*/
|
|
1932
|
-
totalCapacity?: number | null;
|
|
1933
|
-
/**
|
|
1934
|
-
* Total categories
|
|
1935
|
-
* @readonly
|
|
1936
|
-
*/
|
|
1937
|
-
totalCategories?: number | null;
|
|
1938
|
-
/**
|
|
1939
|
-
* Places not assigned to categories
|
|
1940
|
-
* @readonly
|
|
1941
|
-
*/
|
|
1942
|
-
uncategorizedPlaces?: Place[];
|
|
1943
|
-
/**
|
|
1944
|
-
* A version of the seating plan
|
|
1945
|
-
* @readonly
|
|
1946
|
-
*/
|
|
1947
|
-
version?: string | null;
|
|
1948
|
-
/** Data extensions */
|
|
1949
|
-
extendedFields?: ExtendedFields;
|
|
1950
|
-
/** Seating Plan UI settings */
|
|
1951
|
-
uiProperties?: SeatingPlanUiProperties;
|
|
1952
|
-
/** Element groups */
|
|
1953
|
-
elementGroups?: ElementGroup[];
|
|
1954
|
-
}
|
|
1955
|
-
interface Section {
|
|
1956
|
-
/** Unique section id */
|
|
1957
|
-
_id?: number;
|
|
1958
|
-
/** Human readable section title */
|
|
1959
|
-
title?: string | null;
|
|
1960
|
-
/**
|
|
1961
|
-
* Client configuration object
|
|
1962
|
-
* @readonly
|
|
1963
|
-
*/
|
|
1964
|
-
config?: Record<string, any> | null;
|
|
1965
|
-
/** Elements of the section. */
|
|
1966
|
-
elements?: Element[];
|
|
1967
|
-
/**
|
|
1968
|
-
* Total capacity
|
|
1969
|
-
* @readonly
|
|
1970
|
-
*/
|
|
1971
|
-
totalCapacity?: number | null;
|
|
1972
|
-
/**
|
|
1973
|
-
* Is default section
|
|
1974
|
-
* @readonly
|
|
1975
|
-
*/
|
|
1976
|
-
default?: boolean;
|
|
1977
|
-
}
|
|
1978
|
-
interface Element {
|
|
1979
|
-
/** Unique element id */
|
|
1980
|
-
_id?: number;
|
|
1981
|
-
/** User friendly title/label of the element. */
|
|
1982
|
-
title?: string | null;
|
|
1983
|
-
/** Element type */
|
|
1984
|
-
type?: Type;
|
|
1985
|
-
/** Capacity. None for Shape type Element. */
|
|
1986
|
-
capacity?: number | null;
|
|
1987
|
-
/** Assigned to a category */
|
|
1988
|
-
categoryId?: number | null;
|
|
1989
|
-
/** A place numbering meta data */
|
|
1990
|
-
sequencing?: Sequencing;
|
|
1991
|
-
/** Place override (by seq_id) */
|
|
1992
|
-
overrides?: Place[];
|
|
1993
|
-
/**
|
|
1994
|
-
* Final place sequence with overrides
|
|
1995
|
-
* @readonly
|
|
1996
|
-
*/
|
|
1997
|
-
places?: Place[];
|
|
1998
|
-
/** Element reservation options */
|
|
1999
|
-
reservationOptions?: ReservationOptions;
|
|
2000
|
-
/** Element UI settings */
|
|
2001
|
-
uiProperties?: ElementUiProperties;
|
|
2002
|
-
/** Element group id */
|
|
2003
|
-
elementGroupId?: number | null;
|
|
2004
|
-
/** Multi row element relevant for MULTI_ROW element type */
|
|
2005
|
-
multiRowProperties?: MultiRowProperties;
|
|
2006
|
-
}
|
|
2007
|
-
declare enum Type {
|
|
2008
|
-
AREA = "AREA",
|
|
2009
|
-
ROW = "ROW",
|
|
2010
|
-
MULTI_ROW = "MULTI_ROW",
|
|
2011
|
-
TABLE = "TABLE",
|
|
2012
|
-
ROUND_TABLE = "ROUND_TABLE",
|
|
2013
|
-
SHAPE = "SHAPE"
|
|
2014
|
-
}
|
|
2015
|
-
interface Sequencing {
|
|
2016
|
-
/** First seq element */
|
|
2017
|
-
startAt?: string;
|
|
2018
|
-
/** Finite generated seq of labels */
|
|
2019
|
-
labels?: string[];
|
|
2020
|
-
/** If true - direction right to left. Otherwise left to right. */
|
|
2021
|
-
reverseOrder?: boolean | null;
|
|
2022
|
-
}
|
|
2023
|
-
interface Place {
|
|
2024
|
-
/** Local id of the place in the sequence */
|
|
2025
|
-
index?: number;
|
|
2026
|
-
/**
|
|
2027
|
-
* Generated composite unique id in the seating plan.
|
|
2028
|
-
* @readonly
|
|
2029
|
-
*/
|
|
2030
|
-
_id?: string | null;
|
|
2031
|
-
/** Unique label of the place */
|
|
2032
|
-
label?: string;
|
|
2033
|
-
/**
|
|
2034
|
-
* Max capacity per place
|
|
2035
|
-
* @readonly
|
|
2036
|
-
*/
|
|
2037
|
-
capacity?: number | null;
|
|
2038
|
-
/**
|
|
2039
|
-
* Type of the parent element
|
|
2040
|
-
* @readonly
|
|
2041
|
-
*/
|
|
2042
|
-
elementType?: Type;
|
|
2043
|
-
/**
|
|
2044
|
-
* Assigned category id
|
|
2045
|
-
* @readonly
|
|
2046
|
-
*/
|
|
2047
|
-
categoryId?: number | null;
|
|
2048
|
-
/** Place type */
|
|
2049
|
-
type?: PlaceTypeEnumType;
|
|
2050
|
-
}
|
|
2051
|
-
declare enum PlaceTypeEnumType {
|
|
2052
|
-
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
2053
|
-
STANDARD = "STANDARD",
|
|
2054
|
-
WHEELCHAIR = "WHEELCHAIR",
|
|
2055
|
-
ACCESSIBLE = "ACCESSIBLE",
|
|
2056
|
-
COMPANION = "COMPANION",
|
|
2057
|
-
OBSTRUCTED = "OBSTRUCTED",
|
|
2058
|
-
DISCOUNT = "DISCOUNT"
|
|
2059
|
-
}
|
|
2060
|
-
interface ReservationOptions {
|
|
2061
|
-
/** Indicates whether the entire element must be reserved */
|
|
2062
|
-
reserveWholeElement?: boolean;
|
|
2063
|
-
}
|
|
2064
|
-
interface ElementUiProperties {
|
|
2065
|
-
x?: number | null;
|
|
2066
|
-
y?: number | null;
|
|
2067
|
-
zIndex?: number | null;
|
|
2068
|
-
width?: number | null;
|
|
2069
|
-
height?: number | null;
|
|
2070
|
-
rotationAngle?: number | null;
|
|
2071
|
-
shapeType?: ShapeTypeEnumType;
|
|
2072
|
-
fontSize?: number | null;
|
|
2073
|
-
cornerRadius?: number | null;
|
|
2074
|
-
seatSpacing?: number | null;
|
|
2075
|
-
hideLabel?: boolean | null;
|
|
2076
|
-
labelPosition?: Position;
|
|
2077
|
-
seatLayout?: number[];
|
|
2078
|
-
emptyTopSeatSpaces?: number | null;
|
|
2079
|
-
/** needs research */
|
|
2080
|
-
text?: string | null;
|
|
2081
|
-
/** #F0F0F0 */
|
|
2082
|
-
color?: string | null;
|
|
2083
|
-
/** #F0F0F0 */
|
|
2084
|
-
fillColor?: string | null;
|
|
2085
|
-
/** #F0F0F0 */
|
|
2086
|
-
strokeColor?: string | null;
|
|
2087
|
-
/** px */
|
|
2088
|
-
strokeWidth?: number | null;
|
|
2089
|
-
opacity?: number | null;
|
|
2090
|
-
icon?: Icon;
|
|
2091
|
-
image?: Image;
|
|
2092
|
-
seatNumbering?: Numbering;
|
|
2093
|
-
}
|
|
2094
|
-
declare enum ShapeTypeEnumType {
|
|
2095
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
2096
|
-
TEXT = "TEXT",
|
|
2097
|
-
RECTANGLE = "RECTANGLE",
|
|
2098
|
-
ELLIPSE = "ELLIPSE",
|
|
2099
|
-
LINE = "LINE",
|
|
2100
|
-
ICON = "ICON",
|
|
2101
|
-
IMAGE = "IMAGE"
|
|
2102
|
-
}
|
|
2103
|
-
declare enum Position {
|
|
2104
|
-
UNKNOWN_POSITION = "UNKNOWN_POSITION",
|
|
2105
|
-
LEFT = "LEFT",
|
|
2106
|
-
RIGHT = "RIGHT",
|
|
2107
|
-
BOTH = "BOTH",
|
|
2108
|
-
NONE = "NONE"
|
|
2109
|
-
}
|
|
2110
|
-
declare enum Icon {
|
|
2111
|
-
UNKNOWN_ICON = "UNKNOWN_ICON",
|
|
2112
|
-
ENTER = "ENTER",
|
|
2113
|
-
EXIT = "EXIT",
|
|
2114
|
-
DRINKS = "DRINKS",
|
|
2115
|
-
WC = "WC",
|
|
2116
|
-
WC_MEN = "WC_MEN",
|
|
2117
|
-
WC_WOMEN = "WC_WOMEN",
|
|
2118
|
-
FOOD = "FOOD",
|
|
2119
|
-
STAIRS = "STAIRS",
|
|
2120
|
-
ELEVATOR = "ELEVATOR",
|
|
2121
|
-
SMOKING = "SMOKING",
|
|
2122
|
-
CHECKROOM = "CHECKROOM",
|
|
2123
|
-
STAGE = "STAGE"
|
|
2124
|
-
}
|
|
2125
|
-
interface Image {
|
|
2126
|
-
/** WixMedia image ID. */
|
|
2127
|
-
_id?: string;
|
|
2128
|
-
/**
|
|
2129
|
-
* Original image height.
|
|
2130
|
-
* @readonly
|
|
2131
|
-
*/
|
|
2132
|
-
height?: number;
|
|
2133
|
-
/**
|
|
2134
|
-
* Original image width.
|
|
2135
|
-
* @readonly
|
|
2136
|
-
*/
|
|
2137
|
-
width?: number;
|
|
2138
|
-
/**
|
|
2139
|
-
* WixMedia image URI.
|
|
2140
|
-
* @deprecated
|
|
2141
|
-
*/
|
|
2142
|
-
uri?: string | null;
|
|
2143
|
-
}
|
|
2144
|
-
declare enum Numbering {
|
|
2145
|
-
UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
|
|
2146
|
-
NUMERIC = "NUMERIC",
|
|
2147
|
-
ODD_EVEN = "ODD_EVEN",
|
|
2148
|
-
ALPHABETICAL = "ALPHABETICAL"
|
|
2149
|
-
}
|
|
2150
|
-
interface MultiRowProperties {
|
|
2151
|
-
/** Individual rows of the multi row element */
|
|
2152
|
-
rows?: RowElement[];
|
|
2153
|
-
/** Meta data for vertical labeling */
|
|
2154
|
-
verticalSequencing?: VerticalSequencing;
|
|
2155
|
-
/** Row spacing */
|
|
2156
|
-
rowSpacing?: number | null;
|
|
2157
|
-
}
|
|
2158
|
-
interface RowElement {
|
|
2159
|
-
/** Unique row id */
|
|
2160
|
-
_id?: number;
|
|
2161
|
-
/** User friendly title/label of the row */
|
|
2162
|
-
title?: string | null;
|
|
2163
|
-
/** Row capacity */
|
|
2164
|
-
capacity?: number | null;
|
|
2165
|
-
/** Assigned to a category */
|
|
2166
|
-
categoryId?: number | null;
|
|
2167
|
-
/** A place numbering meta data for a single row */
|
|
2168
|
-
sequencing?: Sequencing;
|
|
2169
|
-
/** Row UI settings */
|
|
2170
|
-
uiProperties?: RowElementUiProperties;
|
|
2171
|
-
}
|
|
2172
|
-
interface RowElementUiProperties {
|
|
2173
|
-
/** Relative x position to the parent element */
|
|
2174
|
-
relativeX?: number | null;
|
|
2175
|
-
/** Width of the row */
|
|
2176
|
-
width?: number | null;
|
|
2177
|
-
/** Seat spacing */
|
|
2178
|
-
seatSpacing?: number | null;
|
|
2179
|
-
/** Label position */
|
|
2180
|
-
labelPosition?: Position;
|
|
2181
|
-
/** Seat numbering */
|
|
2182
|
-
seatNumbering?: Numbering;
|
|
2183
|
-
}
|
|
2184
|
-
interface VerticalSequencing {
|
|
2185
|
-
/** First seq element */
|
|
2186
|
-
startAt?: string;
|
|
2187
|
-
/** Row numbering */
|
|
2188
|
-
rowNumbering?: Numbering;
|
|
2189
|
-
/** If true - direction bottom to top. Otherwise top to bottom. */
|
|
2190
|
-
reverseOrder?: boolean | null;
|
|
2191
|
-
}
|
|
2192
|
-
interface Category {
|
|
2193
|
-
/** Local category id within the seating plan */
|
|
2194
|
-
_id?: number;
|
|
2195
|
-
/**
|
|
2196
|
-
* A client defined external id for cross referencing.
|
|
2197
|
-
* Can reference external entities.
|
|
2198
|
-
* Format: "{entity_fqdn}:{entity_id}"
|
|
2199
|
-
*/
|
|
2200
|
-
externalId?: string | null;
|
|
2201
|
-
/** Category label */
|
|
2202
|
-
title?: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* Client configuration object
|
|
2205
|
-
* @readonly
|
|
2206
|
-
*/
|
|
2207
|
-
config?: Record<string, any> | null;
|
|
2208
|
-
/**
|
|
2209
|
-
* Total capacity
|
|
2210
|
-
* @readonly
|
|
2211
|
-
*/
|
|
2212
|
-
totalCapacity?: number | null;
|
|
2213
|
-
/**
|
|
2214
|
-
* Possible places
|
|
2215
|
-
* @readonly
|
|
2216
|
-
*/
|
|
2217
|
-
places?: Place[];
|
|
2218
|
-
}
|
|
2219
|
-
interface ExtendedFields {
|
|
2220
|
-
/**
|
|
2221
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
2222
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
2223
|
-
*
|
|
2224
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
2225
|
-
*
|
|
2226
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
2227
|
-
*/
|
|
2228
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
2229
|
-
}
|
|
2230
|
-
interface SeatingPlanUiProperties {
|
|
2231
|
-
/** #F0F0F0 */
|
|
2232
|
-
backgroundColor?: string | null;
|
|
2233
|
-
backgroundOpacity?: number | null;
|
|
2234
|
-
}
|
|
2235
|
-
interface ElementGroup {
|
|
2236
|
-
/** Unique element group id */
|
|
2237
|
-
_id?: number;
|
|
2238
|
-
/** Parent group id */
|
|
2239
|
-
parentElementGroupId?: number | null;
|
|
2240
|
-
/** Element group UI settings */
|
|
2241
|
-
uiProperties?: ElementGroupUiProperties;
|
|
2242
|
-
}
|
|
2243
|
-
interface ElementGroupUiProperties {
|
|
2244
|
-
/** x position of the group */
|
|
2245
|
-
x?: number | null;
|
|
2246
|
-
/** y position of the group */
|
|
2247
|
-
y?: number | null;
|
|
2248
|
-
/** width of the group */
|
|
2249
|
-
width?: number | null;
|
|
2250
|
-
/** height of the group */
|
|
2251
|
-
height?: number | null;
|
|
2252
|
-
/** rotation angle of the group */
|
|
2253
|
-
rotationAngle?: number | null;
|
|
2254
|
-
}
|
|
2255
|
-
interface SeatingReservationsSummary {
|
|
2256
|
-
places?: PlaceReservationDetails[];
|
|
2257
|
-
}
|
|
2258
|
-
interface PlaceReservationDetails {
|
|
2259
|
-
placeId?: string;
|
|
2260
|
-
occupied?: number;
|
|
2261
|
-
}
|
|
2262
|
-
interface GetSeatingReservationSummaryRequest {
|
|
2263
|
-
/** Seating plan external id */
|
|
2264
|
-
externalId: string;
|
|
2265
|
-
}
|
|
2266
|
-
interface GetSeatingReservationSummaryResponse {
|
|
2267
|
-
plan?: SeatingPlan;
|
|
2268
|
-
places?: PlaceReservationDetails[];
|
|
2269
|
-
}
|
|
2270
|
-
interface RegenerateSummariesRequest {
|
|
2271
|
-
/** Seating plan id */
|
|
2272
|
-
planId?: string | null;
|
|
2273
|
-
}
|
|
2274
|
-
interface RegenerateSummariesResponse {
|
|
2275
|
-
seatingReservationsSummary?: SeatingReservationsSummary;
|
|
2276
|
-
categories?: CategoryDetails[];
|
|
2277
|
-
}
|
|
2278
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
2279
|
-
createdEvent?: EntityCreatedEvent;
|
|
2280
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
2281
|
-
deletedEvent?: EntityDeletedEvent;
|
|
2282
|
-
actionEvent?: ActionEvent;
|
|
2283
|
-
/**
|
|
2284
|
-
* Unique event ID.
|
|
2285
|
-
* Allows clients to ignore duplicate webhooks.
|
|
2286
|
-
*/
|
|
2287
|
-
_id?: string;
|
|
2288
|
-
/**
|
|
2289
|
-
* Assumes actions are also always typed to an entity_type
|
|
2290
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2291
|
-
*/
|
|
2292
|
-
entityFqdn?: string;
|
|
2293
|
-
/**
|
|
2294
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2295
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2296
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
2297
|
-
*/
|
|
2298
|
-
slug?: string;
|
|
2299
|
-
/** ID of the entity associated with the event. */
|
|
2300
|
-
entityId?: string;
|
|
2301
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2302
|
-
eventTime?: Date | null;
|
|
2303
|
-
/**
|
|
2304
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
2305
|
-
* (for example, GDPR).
|
|
2306
|
-
*/
|
|
2307
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
2308
|
-
/** If present, indicates the action that triggered the event. */
|
|
2309
|
-
originatedFrom?: string | null;
|
|
2310
|
-
/**
|
|
2311
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
2312
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2313
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2314
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2315
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2316
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2317
|
-
*/
|
|
2318
|
-
entityEventSequence?: string | null;
|
|
2319
|
-
}
|
|
2320
|
-
/** @oneof */
|
|
2321
|
-
interface DomainEventBodyOneOf {
|
|
2322
|
-
createdEvent?: EntityCreatedEvent;
|
|
2323
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
2324
|
-
deletedEvent?: EntityDeletedEvent;
|
|
2325
|
-
actionEvent?: ActionEvent;
|
|
2326
|
-
}
|
|
2327
|
-
interface EntityCreatedEvent {
|
|
2328
|
-
entity?: string;
|
|
2329
|
-
}
|
|
2330
|
-
interface RestoreInfo {
|
|
2331
|
-
deletedDate?: Date | null;
|
|
2332
|
-
}
|
|
2333
|
-
interface EntityUpdatedEvent {
|
|
2334
|
-
/**
|
|
2335
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2336
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
2337
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
2338
|
-
*/
|
|
2339
|
-
currentEntity?: string;
|
|
2340
|
-
}
|
|
2341
|
-
interface EntityDeletedEvent {
|
|
2342
|
-
/** Entity that was deleted */
|
|
2343
|
-
deletedEntity?: string | null;
|
|
2344
|
-
}
|
|
2345
|
-
interface ActionEvent {
|
|
2346
|
-
body?: string;
|
|
2347
|
-
}
|
|
2348
|
-
interface MessageEnvelope {
|
|
2349
|
-
/** App instance ID. */
|
|
2350
|
-
instanceId?: string | null;
|
|
2351
|
-
/** Event type. */
|
|
2352
|
-
eventType?: string;
|
|
2353
|
-
/** The identification type and identity data. */
|
|
2354
|
-
identity?: IdentificationData;
|
|
2355
|
-
/** Stringify payload. */
|
|
2356
|
-
data?: string;
|
|
2357
|
-
}
|
|
2358
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
2359
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
2360
|
-
anonymousVisitorId?: string;
|
|
2361
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
2362
|
-
memberId?: string;
|
|
2363
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2364
|
-
wixUserId?: string;
|
|
2365
|
-
/** ID of an app. */
|
|
2366
|
-
appId?: string;
|
|
2367
|
-
/** @readonly */
|
|
2368
|
-
identityType?: WebhookIdentityType;
|
|
2369
|
-
}
|
|
2370
|
-
/** @oneof */
|
|
2371
|
-
interface IdentificationDataIdOneOf {
|
|
2372
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
2373
|
-
anonymousVisitorId?: string;
|
|
2374
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
2375
|
-
memberId?: string;
|
|
2376
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2377
|
-
wixUserId?: string;
|
|
2378
|
-
/** ID of an app. */
|
|
2379
|
-
appId?: string;
|
|
2380
|
-
}
|
|
2381
|
-
declare enum WebhookIdentityType {
|
|
2382
|
-
UNKNOWN = "UNKNOWN",
|
|
2383
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
2384
|
-
MEMBER = "MEMBER",
|
|
2385
|
-
WIX_USER = "WIX_USER",
|
|
2386
|
-
APP = "APP"
|
|
2387
|
-
}
|
|
2388
|
-
interface PlaceReservationNonNullableFields {
|
|
2389
|
-
_id: string;
|
|
2390
|
-
}
|
|
2391
|
-
interface SeatingReservationNonNullableFields {
|
|
2392
|
-
reservedPlaces: PlaceReservationNonNullableFields[];
|
|
2393
|
-
}
|
|
2394
|
-
interface CreateSeatingReservationResponseNonNullableFields {
|
|
2395
|
-
reservation?: SeatingReservationNonNullableFields;
|
|
2396
|
-
}
|
|
2397
|
-
interface GetReservationResponseNonNullableFields {
|
|
2398
|
-
reservation?: SeatingReservationNonNullableFields;
|
|
2399
|
-
}
|
|
2400
|
-
interface QuerySeatingReservationResponseNonNullableFields {
|
|
2401
|
-
reservations: SeatingReservationNonNullableFields[];
|
|
2402
|
-
}
|
|
2403
|
-
interface DeleteSeatingReservationResponseNonNullableFields {
|
|
2404
|
-
reservation?: SeatingReservationNonNullableFields;
|
|
2405
|
-
}
|
|
2406
|
-
interface SequencingNonNullableFields {
|
|
2407
|
-
startAt: string;
|
|
2408
|
-
labels: string[];
|
|
2409
|
-
}
|
|
2410
|
-
interface PlaceNonNullableFields {
|
|
2411
|
-
index: number;
|
|
2412
|
-
label: string;
|
|
2413
|
-
elementType: Type;
|
|
2414
|
-
type: PlaceTypeEnumType;
|
|
2415
|
-
}
|
|
2416
|
-
interface ReservationOptionsNonNullableFields {
|
|
2417
|
-
reserveWholeElement: boolean;
|
|
2418
|
-
}
|
|
2419
|
-
interface ImageNonNullableFields {
|
|
2420
|
-
_id: string;
|
|
2421
|
-
height: number;
|
|
2422
|
-
width: number;
|
|
2423
|
-
}
|
|
2424
|
-
interface ElementUiPropertiesNonNullableFields {
|
|
2425
|
-
shapeType: ShapeTypeEnumType;
|
|
2426
|
-
labelPosition: Position;
|
|
2427
|
-
seatLayout: number[];
|
|
2428
|
-
icon: Icon;
|
|
2429
|
-
image?: ImageNonNullableFields;
|
|
2430
|
-
seatNumbering: Numbering;
|
|
2431
|
-
}
|
|
2432
|
-
interface RowElementUiPropertiesNonNullableFields {
|
|
2433
|
-
labelPosition: Position;
|
|
2434
|
-
seatNumbering: Numbering;
|
|
2435
|
-
}
|
|
2436
|
-
interface RowElementNonNullableFields {
|
|
2437
|
-
_id: number;
|
|
2438
|
-
sequencing?: SequencingNonNullableFields;
|
|
2439
|
-
uiProperties?: RowElementUiPropertiesNonNullableFields;
|
|
2440
|
-
}
|
|
2441
|
-
interface VerticalSequencingNonNullableFields {
|
|
2442
|
-
startAt: string;
|
|
2443
|
-
rowNumbering: Numbering;
|
|
2444
|
-
}
|
|
2445
|
-
interface MultiRowPropertiesNonNullableFields {
|
|
2446
|
-
rows: RowElementNonNullableFields[];
|
|
2447
|
-
verticalSequencing?: VerticalSequencingNonNullableFields;
|
|
2448
|
-
}
|
|
2449
|
-
interface ElementNonNullableFields {
|
|
2450
|
-
_id: number;
|
|
2451
|
-
type: Type;
|
|
2452
|
-
sequencing?: SequencingNonNullableFields;
|
|
2453
|
-
overrides: PlaceNonNullableFields[];
|
|
2454
|
-
places: PlaceNonNullableFields[];
|
|
2455
|
-
reservationOptions?: ReservationOptionsNonNullableFields;
|
|
2456
|
-
uiProperties?: ElementUiPropertiesNonNullableFields;
|
|
2457
|
-
multiRowProperties?: MultiRowPropertiesNonNullableFields;
|
|
2458
|
-
}
|
|
2459
|
-
interface SectionNonNullableFields {
|
|
2460
|
-
_id: number;
|
|
2461
|
-
elements: ElementNonNullableFields[];
|
|
2462
|
-
default: boolean;
|
|
2463
|
-
}
|
|
2464
|
-
interface CategoryNonNullableFields {
|
|
2465
|
-
_id: number;
|
|
2466
|
-
title: string;
|
|
2467
|
-
places: PlaceNonNullableFields[];
|
|
2468
|
-
}
|
|
2469
|
-
interface ElementGroupNonNullableFields {
|
|
2470
|
-
_id: number;
|
|
2471
|
-
}
|
|
2472
|
-
interface SeatingPlanNonNullableFields {
|
|
2473
|
-
sections: SectionNonNullableFields[];
|
|
2474
|
-
categories: CategoryNonNullableFields[];
|
|
2475
|
-
uncategorizedPlaces: PlaceNonNullableFields[];
|
|
2476
|
-
elementGroups: ElementGroupNonNullableFields[];
|
|
2477
|
-
}
|
|
2478
|
-
interface PlaceReservationDetailsNonNullableFields {
|
|
2479
|
-
placeId: string;
|
|
2480
|
-
occupied: number;
|
|
2481
|
-
}
|
|
2482
|
-
interface SeatingReservationsSummaryNonNullableFields {
|
|
2483
|
-
places: PlaceReservationDetailsNonNullableFields[];
|
|
2484
|
-
}
|
|
2485
|
-
interface GetSeatingReservationsSummaryResponseNonNullableFields {
|
|
2486
|
-
plan?: SeatingPlanNonNullableFields;
|
|
2487
|
-
seatingReservationsSummary?: SeatingReservationsSummaryNonNullableFields;
|
|
2488
|
-
}
|
|
2489
|
-
interface GetSeatingReservationSummaryResponseNonNullableFields {
|
|
2490
|
-
plan?: SeatingPlanNonNullableFields;
|
|
2491
|
-
places: PlaceReservationDetailsNonNullableFields[];
|
|
2492
|
-
}
|
|
2493
|
-
interface BaseEventMetadata {
|
|
2494
|
-
/** App instance ID. */
|
|
2495
|
-
instanceId?: string | null;
|
|
2496
|
-
/** Event type. */
|
|
2497
|
-
eventType?: string;
|
|
2498
|
-
/** The identification type and identity data. */
|
|
2499
|
-
identity?: IdentificationData;
|
|
2500
|
-
}
|
|
2501
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
2502
|
-
/**
|
|
2503
|
-
* Unique event ID.
|
|
2504
|
-
* Allows clients to ignore duplicate webhooks.
|
|
2505
|
-
*/
|
|
2506
|
-
_id?: string;
|
|
2507
|
-
/**
|
|
2508
|
-
* Assumes actions are also always typed to an entity_type
|
|
2509
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2510
|
-
*/
|
|
2511
|
-
entityFqdn?: string;
|
|
2512
|
-
/**
|
|
2513
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2514
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2515
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
2516
|
-
*/
|
|
2517
|
-
slug?: string;
|
|
2518
|
-
/** ID of the entity associated with the event. */
|
|
2519
|
-
entityId?: string;
|
|
2520
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2521
|
-
eventTime?: Date | null;
|
|
2522
|
-
/**
|
|
2523
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
2524
|
-
* (for example, GDPR).
|
|
2525
|
-
*/
|
|
2526
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
2527
|
-
/** If present, indicates the action that triggered the event. */
|
|
2528
|
-
originatedFrom?: string | null;
|
|
2529
|
-
/**
|
|
2530
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
2531
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2532
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2533
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2534
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2535
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2536
|
-
*/
|
|
2537
|
-
entityEventSequence?: string | null;
|
|
2538
|
-
}
|
|
2539
|
-
interface SeatingReservationCreatedEnvelope {
|
|
2540
|
-
entity: SeatingReservation;
|
|
2541
|
-
metadata: EventMetadata;
|
|
2542
|
-
}
|
|
2543
|
-
interface SeatingReservationDeletedEnvelope {
|
|
2544
|
-
entity: SeatingReservation;
|
|
2545
|
-
metadata: EventMetadata;
|
|
2546
|
-
}
|
|
2547
|
-
interface CreateSeatingReservationOptions {
|
|
2548
|
-
/** A reservation to create */
|
|
2549
|
-
reservation?: SeatingReservation;
|
|
2550
|
-
}
|
|
2551
|
-
interface QueryCursorResult {
|
|
2552
|
-
cursors: Cursors;
|
|
2553
|
-
hasNext: () => boolean;
|
|
2554
|
-
hasPrev: () => boolean;
|
|
2555
|
-
length: number;
|
|
2556
|
-
pageSize: number;
|
|
2557
|
-
}
|
|
2558
|
-
interface ReservationsQueryResult extends QueryCursorResult {
|
|
2559
|
-
items: SeatingReservation[];
|
|
2560
|
-
query: ReservationsQueryBuilder;
|
|
2561
|
-
next: () => Promise<ReservationsQueryResult>;
|
|
2562
|
-
prev: () => Promise<ReservationsQueryResult>;
|
|
2563
|
-
}
|
|
2564
|
-
interface ReservationsQueryBuilder {
|
|
2565
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2566
|
-
* @documentationMaturity preview
|
|
2567
|
-
*/
|
|
2568
|
-
limit: (limit: number) => ReservationsQueryBuilder;
|
|
2569
|
-
/** @param cursor - A pointer to specific record
|
|
2570
|
-
* @documentationMaturity preview
|
|
2571
|
-
*/
|
|
2572
|
-
skipTo: (cursor: string) => ReservationsQueryBuilder;
|
|
2573
|
-
/** @documentationMaturity preview */
|
|
2574
|
-
find: () => Promise<ReservationsQueryResult>;
|
|
2575
|
-
}
|
|
2576
|
-
interface GetSeatingCategoriesSummaryOptions {
|
|
2577
|
-
/** Seating plan external id */
|
|
2578
|
-
externalId?: string[];
|
|
2579
|
-
}
|
|
2580
|
-
interface GetSeatingCategorySummaryOptions {
|
|
2581
|
-
/** Seating plan external id */
|
|
2582
|
-
externalId?: string;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
|
|
2586
|
-
interface CreateSeatingReservationSignature {
|
|
2587
|
-
/**
|
|
2588
|
-
* Creates a seating reservation
|
|
2589
|
-
* @returns Created reservation
|
|
2590
|
-
*/
|
|
2591
|
-
(options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
2592
|
-
}
|
|
2593
|
-
declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
|
|
2594
|
-
interface GetReservationSignature {
|
|
2595
|
-
/**
|
|
2596
|
-
* Returns available seat counts by category id
|
|
2597
|
-
* @param - The id of the reservation to return
|
|
2598
|
-
* @returns Created reservation
|
|
2599
|
-
*/
|
|
2600
|
-
(_id: string | null): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
2601
|
-
}
|
|
2602
|
-
declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
|
|
2603
|
-
interface QuerySeatingReservationSignature {
|
|
2604
|
-
/**
|
|
2605
|
-
* Lists seating reservations by query request
|
|
2606
|
-
*/
|
|
2607
|
-
(): ReservationsQueryBuilder;
|
|
2608
|
-
}
|
|
2609
|
-
declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
|
|
2610
|
-
interface DeleteSeatingReservationSignature {
|
|
2611
|
-
/**
|
|
2612
|
-
* Deletes the seating reservation
|
|
2613
|
-
* @param - The id of the reservation to delete
|
|
2614
|
-
*/
|
|
2615
|
-
(_id: string | null): Promise<DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields>;
|
|
2616
|
-
}
|
|
2617
|
-
declare function getSeatingCategoriesSummary$1(httpClient: HttpClient): GetSeatingCategoriesSummarySignature;
|
|
2618
|
-
interface GetSeatingCategoriesSummarySignature {
|
|
2619
|
-
/** @deprecated */
|
|
2620
|
-
(options?: GetSeatingCategoriesSummaryOptions | undefined): Promise<GetSeatingCategoriesSummaryResponse>;
|
|
2621
|
-
}
|
|
2622
|
-
declare function getSeatingCategorySummary$1(httpClient: HttpClient): GetSeatingCategorySummarySignature;
|
|
2623
|
-
interface GetSeatingCategorySummarySignature {
|
|
2624
|
-
/** */
|
|
2625
|
-
(options?: GetSeatingCategorySummaryOptions | undefined): Promise<GetSeatingCategorySummaryResponse>;
|
|
2626
|
-
}
|
|
2627
|
-
declare function getSeatingReservationsSummary$1(httpClient: HttpClient): GetSeatingReservationsSummarySignature;
|
|
2628
|
-
interface GetSeatingReservationsSummarySignature {
|
|
2629
|
-
/**
|
|
2630
|
-
* @param - Filter for seating plan
|
|
2631
|
-
* @deprecated
|
|
2632
|
-
*/
|
|
2633
|
-
(filter: Record<string, any> | null): Promise<GetSeatingReservationsSummaryResponse & GetSeatingReservationsSummaryResponseNonNullableFields>;
|
|
2634
|
-
}
|
|
2635
|
-
declare function getSeatingReservationSummary$1(httpClient: HttpClient): GetSeatingReservationSummarySignature;
|
|
2636
|
-
interface GetSeatingReservationSummarySignature {
|
|
2637
|
-
/** @param - Seating plan external id */
|
|
2638
|
-
(externalId: string): Promise<GetSeatingReservationSummaryResponse & GetSeatingReservationSummaryResponseNonNullableFields>;
|
|
2639
|
-
}
|
|
2640
|
-
declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
|
|
2641
|
-
declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
|
|
2642
|
-
|
|
2643
|
-
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2644
|
-
|
|
2645
|
-
declare const createSeatingReservation: MaybeContext<BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1>;
|
|
2646
|
-
declare const getReservation: MaybeContext<BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1>;
|
|
2647
|
-
declare const querySeatingReservation: MaybeContext<BuildRESTFunction<typeof querySeatingReservation$1> & typeof querySeatingReservation$1>;
|
|
2648
|
-
declare const deleteSeatingReservation: MaybeContext<BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1>;
|
|
2649
|
-
declare const getSeatingCategoriesSummary: MaybeContext<BuildRESTFunction<typeof getSeatingCategoriesSummary$1> & typeof getSeatingCategoriesSummary$1>;
|
|
2650
|
-
declare const getSeatingCategorySummary: MaybeContext<BuildRESTFunction<typeof getSeatingCategorySummary$1> & typeof getSeatingCategorySummary$1>;
|
|
2651
|
-
declare const getSeatingReservationsSummary: MaybeContext<BuildRESTFunction<typeof getSeatingReservationsSummary$1> & typeof getSeatingReservationsSummary$1>;
|
|
2652
|
-
declare const getSeatingReservationSummary: MaybeContext<BuildRESTFunction<typeof getSeatingReservationSummary$1> & typeof getSeatingReservationSummary$1>;
|
|
2653
|
-
|
|
2654
|
-
type _publicOnSeatingReservationCreatedType = typeof onSeatingReservationCreated$1;
|
|
2655
|
-
/** */
|
|
2656
|
-
declare const onSeatingReservationCreated: ReturnType<typeof createEventModule<_publicOnSeatingReservationCreatedType>>;
|
|
2657
|
-
|
|
2658
|
-
type _publicOnSeatingReservationDeletedType = typeof onSeatingReservationDeleted$1;
|
|
2659
|
-
/** */
|
|
2660
|
-
declare const onSeatingReservationDeleted: ReturnType<typeof createEventModule<_publicOnSeatingReservationDeletedType>>;
|
|
2661
|
-
|
|
2662
|
-
type context_ActionEvent = ActionEvent;
|
|
2663
|
-
type context_App = App;
|
|
2664
|
-
type context_BaseEventMetadata = BaseEventMetadata;
|
|
2665
|
-
type context_Category = Category;
|
|
2666
|
-
type context_CategoryDetails = CategoryDetails;
|
|
2667
|
-
type context_CreateSeatingReservationOptions = CreateSeatingReservationOptions;
|
|
2668
|
-
type context_CreateSeatingReservationRequest = CreateSeatingReservationRequest;
|
|
2669
|
-
type context_CreateSeatingReservationResponse = CreateSeatingReservationResponse;
|
|
2670
|
-
type context_CreateSeatingReservationResponseNonNullableFields = CreateSeatingReservationResponseNonNullableFields;
|
|
2671
|
-
type context_CursorPaging = CursorPaging;
|
|
2672
|
-
type context_Cursors = Cursors;
|
|
2673
|
-
type context_DeleteSeatingPlaceReservationRequest = DeleteSeatingPlaceReservationRequest;
|
|
2674
|
-
type context_DeleteSeatingReservationRequest = DeleteSeatingReservationRequest;
|
|
2675
|
-
type context_DeleteSeatingReservationResponse = DeleteSeatingReservationResponse;
|
|
2676
|
-
type context_DeleteSeatingReservationResponseNonNullableFields = DeleteSeatingReservationResponseNonNullableFields;
|
|
2677
|
-
type context_DomainEvent = DomainEvent;
|
|
2678
|
-
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
2679
|
-
type context_Element = Element;
|
|
2680
|
-
type context_ElementGroup = ElementGroup;
|
|
2681
|
-
type context_ElementGroupUiProperties = ElementGroupUiProperties;
|
|
2682
|
-
type context_ElementUiProperties = ElementUiProperties;
|
|
2683
|
-
type context_Empty = Empty;
|
|
2684
|
-
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
2685
|
-
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
2686
|
-
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
2687
|
-
type context_EventMetadata = EventMetadata;
|
|
2688
|
-
type context_ExtendedFields = ExtendedFields;
|
|
2689
|
-
type context_File = File;
|
|
2690
|
-
type context_GetReservationRequest = GetReservationRequest;
|
|
2691
|
-
type context_GetReservationResponse = GetReservationResponse;
|
|
2692
|
-
type context_GetReservationResponseNonNullableFields = GetReservationResponseNonNullableFields;
|
|
2693
|
-
type context_GetReservedPlacesRequest = GetReservedPlacesRequest;
|
|
2694
|
-
type context_GetReservedPlacesResponse = GetReservedPlacesResponse;
|
|
2695
|
-
type context_GetSeatingCategoriesSummaryOptions = GetSeatingCategoriesSummaryOptions;
|
|
2696
|
-
type context_GetSeatingCategoriesSummaryRequest = GetSeatingCategoriesSummaryRequest;
|
|
2697
|
-
type context_GetSeatingCategoriesSummaryResponse = GetSeatingCategoriesSummaryResponse;
|
|
2698
|
-
type context_GetSeatingCategorySummaryOptions = GetSeatingCategorySummaryOptions;
|
|
2699
|
-
type context_GetSeatingCategorySummaryRequest = GetSeatingCategorySummaryRequest;
|
|
2700
|
-
type context_GetSeatingCategorySummaryResponse = GetSeatingCategorySummaryResponse;
|
|
2701
|
-
type context_GetSeatingReservationSummaryRequest = GetSeatingReservationSummaryRequest;
|
|
2702
|
-
type context_GetSeatingReservationSummaryResponse = GetSeatingReservationSummaryResponse;
|
|
2703
|
-
type context_GetSeatingReservationSummaryResponseNonNullableFields = GetSeatingReservationSummaryResponseNonNullableFields;
|
|
2704
|
-
type context_GetSeatingReservationsSummaryRequest = GetSeatingReservationsSummaryRequest;
|
|
2705
|
-
type context_GetSeatingReservationsSummaryResponse = GetSeatingReservationsSummaryResponse;
|
|
2706
|
-
type context_GetSeatingReservationsSummaryResponseNonNullableFields = GetSeatingReservationsSummaryResponseNonNullableFields;
|
|
2707
|
-
type context_Icon = Icon;
|
|
2708
|
-
declare const context_Icon: typeof Icon;
|
|
2709
|
-
type context_IdentificationData = IdentificationData;
|
|
2710
|
-
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
2711
|
-
type context_Image = Image;
|
|
2712
|
-
type context_InvalidateCache = InvalidateCache;
|
|
2713
|
-
type context_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
|
|
2714
|
-
type context_MessageEnvelope = MessageEnvelope;
|
|
2715
|
-
type context_MultiRowProperties = MultiRowProperties;
|
|
2716
|
-
type context_Numbering = Numbering;
|
|
2717
|
-
declare const context_Numbering: typeof Numbering;
|
|
2718
|
-
type context_Page = Page;
|
|
2719
|
-
type context_Paging = Paging;
|
|
2720
|
-
type context_PagingMetadataV2 = PagingMetadataV2;
|
|
2721
|
-
type context_Place = Place;
|
|
2722
|
-
type context_PlaceReservation = PlaceReservation;
|
|
2723
|
-
type context_PlaceReservationDetails = PlaceReservationDetails;
|
|
2724
|
-
type context_PlaceTypeEnumType = PlaceTypeEnumType;
|
|
2725
|
-
declare const context_PlaceTypeEnumType: typeof PlaceTypeEnumType;
|
|
2726
|
-
type context_Places = Places;
|
|
2727
|
-
type context_Position = Position;
|
|
2728
|
-
declare const context_Position: typeof Position;
|
|
2729
|
-
type context_QuerySeatingReservationRequest = QuerySeatingReservationRequest;
|
|
2730
|
-
type context_QuerySeatingReservationResponse = QuerySeatingReservationResponse;
|
|
2731
|
-
type context_QuerySeatingReservationResponseNonNullableFields = QuerySeatingReservationResponseNonNullableFields;
|
|
2732
|
-
type context_QueryV2 = QueryV2;
|
|
2733
|
-
type context_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
2734
|
-
type context_RegenerateSummariesRequest = RegenerateSummariesRequest;
|
|
2735
|
-
type context_RegenerateSummariesResponse = RegenerateSummariesResponse;
|
|
2736
|
-
type context_ReservationErrorDetails = ReservationErrorDetails;
|
|
2737
|
-
type context_ReservationOptions = ReservationOptions;
|
|
2738
|
-
type context_ReservationsQueryBuilder = ReservationsQueryBuilder;
|
|
2739
|
-
type context_ReservationsQueryResult = ReservationsQueryResult;
|
|
2740
|
-
type context_RestoreInfo = RestoreInfo;
|
|
2741
|
-
type context_RowElement = RowElement;
|
|
2742
|
-
type context_RowElementUiProperties = RowElementUiProperties;
|
|
2743
|
-
type context_SeatingPlan = SeatingPlan;
|
|
2744
|
-
type context_SeatingPlanCategoriesSummaryUpdated = SeatingPlanCategoriesSummaryUpdated;
|
|
2745
|
-
type context_SeatingPlanUiProperties = SeatingPlanUiProperties;
|
|
2746
|
-
type context_SeatingReservation = SeatingReservation;
|
|
2747
|
-
type context_SeatingReservationCreatedEnvelope = SeatingReservationCreatedEnvelope;
|
|
2748
|
-
type context_SeatingReservationDeletedEnvelope = SeatingReservationDeletedEnvelope;
|
|
2749
|
-
type context_SeatingReservationNonNullableFields = SeatingReservationNonNullableFields;
|
|
2750
|
-
type context_SeatingReservationsSummary = SeatingReservationsSummary;
|
|
2751
|
-
type context_Section = Section;
|
|
2752
|
-
type context_Sequencing = Sequencing;
|
|
2753
|
-
type context_ShapeTypeEnumType = ShapeTypeEnumType;
|
|
2754
|
-
declare const context_ShapeTypeEnumType: typeof ShapeTypeEnumType;
|
|
2755
|
-
type context_SortOrder = SortOrder;
|
|
2756
|
-
declare const context_SortOrder: typeof SortOrder;
|
|
2757
|
-
type context_Sorting = Sorting;
|
|
2758
|
-
type context_Type = Type;
|
|
2759
|
-
declare const context_Type: typeof Type;
|
|
2760
|
-
type context_URI = URI;
|
|
2761
|
-
type context_UnavailablePlaces = UnavailablePlaces;
|
|
2762
|
-
type context_VerticalSequencing = VerticalSequencing;
|
|
2763
|
-
type context_WebhookIdentityType = WebhookIdentityType;
|
|
2764
|
-
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
2765
|
-
type context__publicOnSeatingReservationCreatedType = _publicOnSeatingReservationCreatedType;
|
|
2766
|
-
type context__publicOnSeatingReservationDeletedType = _publicOnSeatingReservationDeletedType;
|
|
2767
|
-
declare const context_createSeatingReservation: typeof createSeatingReservation;
|
|
2768
|
-
declare const context_deleteSeatingReservation: typeof deleteSeatingReservation;
|
|
2769
|
-
declare const context_getReservation: typeof getReservation;
|
|
2770
|
-
declare const context_getSeatingCategoriesSummary: typeof getSeatingCategoriesSummary;
|
|
2771
|
-
declare const context_getSeatingCategorySummary: typeof getSeatingCategorySummary;
|
|
2772
|
-
declare const context_getSeatingReservationSummary: typeof getSeatingReservationSummary;
|
|
2773
|
-
declare const context_getSeatingReservationsSummary: typeof getSeatingReservationsSummary;
|
|
2774
|
-
declare const context_onSeatingReservationCreated: typeof onSeatingReservationCreated;
|
|
2775
|
-
declare const context_onSeatingReservationDeleted: typeof onSeatingReservationDeleted;
|
|
2776
|
-
declare const context_querySeatingReservation: typeof querySeatingReservation;
|
|
2777
|
-
declare namespace context {
|
|
2778
|
-
export { type context_ActionEvent as ActionEvent, type context_App as App, type context_BaseEventMetadata as BaseEventMetadata, type context_Category as Category, type context_CategoryDetails as CategoryDetails, type context_CreateSeatingReservationOptions as CreateSeatingReservationOptions, type context_CreateSeatingReservationRequest as CreateSeatingReservationRequest, type context_CreateSeatingReservationResponse as CreateSeatingReservationResponse, type context_CreateSeatingReservationResponseNonNullableFields as CreateSeatingReservationResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DeleteSeatingPlaceReservationRequest as DeleteSeatingPlaceReservationRequest, type context_DeleteSeatingReservationRequest as DeleteSeatingReservationRequest, type context_DeleteSeatingReservationResponse as DeleteSeatingReservationResponse, type context_DeleteSeatingReservationResponseNonNullableFields as DeleteSeatingReservationResponseNonNullableFields, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Element as Element, type context_ElementGroup as ElementGroup, type context_ElementGroupUiProperties as ElementGroupUiProperties, type context_ElementUiProperties as ElementUiProperties, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_File as File, type context_GetReservationRequest as GetReservationRequest, type context_GetReservationResponse as GetReservationResponse, type context_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type context_GetReservedPlacesRequest as GetReservedPlacesRequest, type context_GetReservedPlacesResponse as GetReservedPlacesResponse, type context_GetSeatingCategoriesSummaryOptions as GetSeatingCategoriesSummaryOptions, type context_GetSeatingCategoriesSummaryRequest as GetSeatingCategoriesSummaryRequest, type context_GetSeatingCategoriesSummaryResponse as GetSeatingCategoriesSummaryResponse, type context_GetSeatingCategorySummaryOptions as GetSeatingCategorySummaryOptions, type context_GetSeatingCategorySummaryRequest as GetSeatingCategorySummaryRequest, type context_GetSeatingCategorySummaryResponse as GetSeatingCategorySummaryResponse, type context_GetSeatingReservationSummaryRequest as GetSeatingReservationSummaryRequest, type context_GetSeatingReservationSummaryResponse as GetSeatingReservationSummaryResponse, type context_GetSeatingReservationSummaryResponseNonNullableFields as GetSeatingReservationSummaryResponseNonNullableFields, type context_GetSeatingReservationsSummaryRequest as GetSeatingReservationsSummaryRequest, type context_GetSeatingReservationsSummaryResponse as GetSeatingReservationsSummaryResponse, type context_GetSeatingReservationsSummaryResponseNonNullableFields as GetSeatingReservationsSummaryResponseNonNullableFields, context_Icon as Icon, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_Image as Image, type context_InvalidateCache as InvalidateCache, type context_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context_MessageEnvelope as MessageEnvelope, type context_MultiRowProperties as MultiRowProperties, context_Numbering as Numbering, type context_Page as Page, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, type context_Place as Place, type context_PlaceReservation as PlaceReservation, type context_PlaceReservationDetails as PlaceReservationDetails, context_PlaceTypeEnumType as PlaceTypeEnumType, type context_Places as Places, context_Position as Position, type context_QuerySeatingReservationRequest as QuerySeatingReservationRequest, type context_QuerySeatingReservationResponse as QuerySeatingReservationResponse, type context_QuerySeatingReservationResponseNonNullableFields as QuerySeatingReservationResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_RegenerateSummariesRequest as RegenerateSummariesRequest, type context_RegenerateSummariesResponse as RegenerateSummariesResponse, type context_ReservationErrorDetails as ReservationErrorDetails, type context_ReservationOptions as ReservationOptions, type context_ReservationsQueryBuilder as ReservationsQueryBuilder, type context_ReservationsQueryResult as ReservationsQueryResult, type context_RestoreInfo as RestoreInfo, type context_RowElement as RowElement, type context_RowElementUiProperties as RowElementUiProperties, type context_SeatingPlan as SeatingPlan, type context_SeatingPlanCategoriesSummaryUpdated as SeatingPlanCategoriesSummaryUpdated, type context_SeatingPlanUiProperties as SeatingPlanUiProperties, type context_SeatingReservation as SeatingReservation, type context_SeatingReservationCreatedEnvelope as SeatingReservationCreatedEnvelope, type context_SeatingReservationDeletedEnvelope as SeatingReservationDeletedEnvelope, type context_SeatingReservationNonNullableFields as SeatingReservationNonNullableFields, type context_SeatingReservationsSummary as SeatingReservationsSummary, type context_Section as Section, type context_Sequencing as Sequencing, context_ShapeTypeEnumType as ShapeTypeEnumType, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Type as Type, type context_URI as URI, type context_UnavailablePlaces as UnavailablePlaces, type context_VerticalSequencing as VerticalSequencing, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSeatingReservationCreatedType as _publicOnSeatingReservationCreatedType, type context__publicOnSeatingReservationDeletedType as _publicOnSeatingReservationDeletedType, context_createSeatingReservation as createSeatingReservation, context_deleteSeatingReservation as deleteSeatingReservation, context_getReservation as getReservation, context_getSeatingCategoriesSummary as getSeatingCategoriesSummary, context_getSeatingCategorySummary as getSeatingCategorySummary, context_getSeatingReservationSummary as getSeatingReservationSummary, context_getSeatingReservationsSummary as getSeatingReservationsSummary, context_onSeatingReservationCreated as onSeatingReservationCreated, context_onSeatingReservationDeleted as onSeatingReservationDeleted, onSeatingReservationCreated$1 as publicOnSeatingReservationCreated, onSeatingReservationDeleted$1 as publicOnSeatingReservationDeleted, context_querySeatingReservation as querySeatingReservation };
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
export { context$1 as seatingPlan, context as seatingReservation };
|