@wix/seatings 1.0.30 → 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.
@@ -1,2787 +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
- /**
571
- * Place override (by seq_id)
572
- * @deprecated
573
- */
574
- overrides?: Place$1[];
575
- /**
576
- * Final place sequence with overrides
577
- * @readonly
578
- */
579
- places?: Place$1[];
580
- /** Element reservation options */
581
- reservationOptions?: ReservationOptions$1;
582
- /** Element UI settings */
583
- uiProperties?: ElementUiProperties$1;
584
- /** Element group id */
585
- elementGroupId?: number | null;
586
- /** Multi row element relevant for MULTI_ROW element type */
587
- multiRowProperties?: MultiRowProperties$1;
588
- }
589
- declare enum Type$1 {
590
- AREA = "AREA",
591
- ROW = "ROW",
592
- MULTI_ROW = "MULTI_ROW",
593
- TABLE = "TABLE",
594
- ROUND_TABLE = "ROUND_TABLE",
595
- SHAPE = "SHAPE"
596
- }
597
- interface Sequencing$1 {
598
- /** First seq element */
599
- startAt?: string;
600
- /** Finite generated seq of labels */
601
- labels?: string[];
602
- /** If true - direction right to left. Otherwise left to right. */
603
- reverseOrder?: boolean | null;
604
- }
605
- interface Place$1 {
606
- /** Local id of the place in the sequence */
607
- index?: number;
608
- /**
609
- * Generated composite unique id in the seating plan.
610
- * @readonly
611
- */
612
- _id?: string | null;
613
- /** Unique label of the place */
614
- label?: string;
615
- /**
616
- * Max capacity per place
617
- * @readonly
618
- */
619
- capacity?: number | null;
620
- /**
621
- * Type of the parent element
622
- * @readonly
623
- */
624
- elementType?: Type$1;
625
- /**
626
- * Assigned category id
627
- * @readonly
628
- */
629
- categoryId?: number | null;
630
- /** Place type */
631
- type?: PlaceTypeEnumType$1;
632
- }
633
- declare enum PlaceTypeEnumType$1 {
634
- UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
635
- STANDARD = "STANDARD",
636
- WHEELCHAIR = "WHEELCHAIR",
637
- ACCESSIBLE = "ACCESSIBLE",
638
- COMPANION = "COMPANION",
639
- OBSTRUCTED = "OBSTRUCTED",
640
- DISCOUNT = "DISCOUNT"
641
- }
642
- interface ReservationOptions$1 {
643
- /** Indicates whether the entire element must be reserved */
644
- reserveWholeElement?: boolean;
645
- }
646
- interface ElementUiProperties$1 {
647
- x?: number | null;
648
- y?: number | null;
649
- zIndex?: number | null;
650
- width?: number | null;
651
- height?: number | null;
652
- rotationAngle?: number | null;
653
- shapeType?: ShapeTypeEnumType$1;
654
- fontSize?: number | null;
655
- cornerRadius?: number | null;
656
- seatSpacing?: number | null;
657
- hideLabel?: boolean | null;
658
- labelPosition?: Position$1;
659
- seatLayout?: number[];
660
- emptyTopSeatSpaces?: number | null;
661
- /** needs research */
662
- text?: string | null;
663
- /** #F0F0F0 */
664
- color?: string | null;
665
- /** #F0F0F0 */
666
- fillColor?: string | null;
667
- /** #F0F0F0 */
668
- strokeColor?: string | null;
669
- /** px */
670
- strokeWidth?: number | null;
671
- opacity?: number | null;
672
- icon?: Icon$1;
673
- image?: Image$1;
674
- seatNumbering?: Numbering$1;
675
- }
676
- declare enum ShapeTypeEnumType$1 {
677
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
678
- TEXT = "TEXT",
679
- RECTANGLE = "RECTANGLE",
680
- ELLIPSE = "ELLIPSE",
681
- LINE = "LINE",
682
- ICON = "ICON",
683
- IMAGE = "IMAGE"
684
- }
685
- declare enum Position$1 {
686
- UNKNOWN_POSITION = "UNKNOWN_POSITION",
687
- LEFT = "LEFT",
688
- RIGHT = "RIGHT",
689
- BOTH = "BOTH",
690
- NONE = "NONE"
691
- }
692
- declare enum Icon$1 {
693
- UNKNOWN_ICON = "UNKNOWN_ICON",
694
- ENTER = "ENTER",
695
- EXIT = "EXIT",
696
- DRINKS = "DRINKS",
697
- WC = "WC",
698
- WC_MEN = "WC_MEN",
699
- WC_WOMEN = "WC_WOMEN",
700
- FOOD = "FOOD",
701
- STAIRS = "STAIRS",
702
- ELEVATOR = "ELEVATOR",
703
- SMOKING = "SMOKING",
704
- CHECKROOM = "CHECKROOM",
705
- STAGE = "STAGE"
706
- }
707
- interface Image$1 {
708
- /** WixMedia image ID. */
709
- _id?: string;
710
- /**
711
- * Original image height.
712
- * @readonly
713
- */
714
- height?: number;
715
- /**
716
- * Original image width.
717
- * @readonly
718
- */
719
- width?: number;
720
- /**
721
- * WixMedia image URI.
722
- * @deprecated
723
- */
724
- uri?: string | null;
725
- }
726
- declare enum Numbering$1 {
727
- UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
728
- NUMERIC = "NUMERIC",
729
- ODD_EVEN = "ODD_EVEN",
730
- ALPHABETICAL = "ALPHABETICAL"
731
- }
732
- interface MultiRowProperties$1 {
733
- /** Individual rows of the multi row element */
734
- rows?: RowElement$1[];
735
- /** Meta data for vertical labeling */
736
- verticalSequencing?: VerticalSequencing$1;
737
- /** Row spacing */
738
- rowSpacing?: number | null;
739
- }
740
- interface RowElement$1 {
741
- /** Unique row id */
742
- _id?: number;
743
- /** User friendly title/label of the row */
744
- title?: string | null;
745
- /** Row capacity */
746
- capacity?: number | null;
747
- /** Assigned to a category */
748
- categoryId?: number | null;
749
- /** A place numbering meta data for a single row */
750
- sequencing?: Sequencing$1;
751
- /** Row UI settings */
752
- uiProperties?: RowElementUiProperties$1;
753
- }
754
- interface RowElementUiProperties$1 {
755
- /** Relative x position to the parent element */
756
- relativeX?: number | null;
757
- /** Width of the row */
758
- width?: number | null;
759
- /** Seat spacing */
760
- seatSpacing?: number | null;
761
- /** Label position */
762
- labelPosition?: Position$1;
763
- /** Seat numbering */
764
- seatNumbering?: Numbering$1;
765
- }
766
- interface VerticalSequencing$1 {
767
- /** First seq element */
768
- startAt?: string;
769
- /** Row numbering */
770
- rowNumbering?: Numbering$1;
771
- /** If true - direction bottom to top. Otherwise top to bottom. */
772
- reverseOrder?: boolean | null;
773
- }
774
- interface Category$1 {
775
- /** Local category id within the seating plan */
776
- _id?: number;
777
- /**
778
- * A client defined external id for cross referencing.
779
- * Can reference external entities.
780
- * Format: "{entity_fqdn}:{entity_id}"
781
- */
782
- externalId?: string | null;
783
- /** Category label */
784
- title?: string;
785
- /**
786
- * Client configuration object
787
- * @readonly
788
- */
789
- config?: Record<string, any> | null;
790
- /**
791
- * Total capacity
792
- * @readonly
793
- */
794
- totalCapacity?: number | null;
795
- /**
796
- * Possible places
797
- * @readonly
798
- */
799
- places?: Place$1[];
800
- }
801
- interface ExtendedFields$1 {
802
- /**
803
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
804
- * The value of each key is structured according to the schema defined when the extended fields were configured.
805
- *
806
- * You can only access fields for which you have the appropriate permissions.
807
- *
808
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
809
- */
810
- namespaces?: Record<string, Record<string, any>>;
811
- }
812
- interface SeatingPlanUiProperties$1 {
813
- /** #F0F0F0 */
814
- backgroundColor?: string | null;
815
- backgroundOpacity?: number | null;
816
- }
817
- interface ElementGroup$1 {
818
- /** Unique element group id */
819
- _id?: number;
820
- /** Parent group id */
821
- parentElementGroupId?: number | null;
822
- /** Element group UI settings */
823
- uiProperties?: ElementGroupUiProperties$1;
824
- }
825
- interface ElementGroupUiProperties$1 {
826
- /** x position of the group */
827
- x?: number | null;
828
- /** y position of the group */
829
- y?: number | null;
830
- /** width of the group */
831
- width?: number | null;
832
- /** height of the group */
833
- height?: number | null;
834
- /** rotation angle of the group */
835
- rotationAngle?: number | null;
836
- }
837
- interface CreateSeatingPlanRequest {
838
- /** A plan to be created */
839
- plan: SeatingPlan$1;
840
- }
841
- interface CreateSeatingPlanResponse {
842
- /** The created plan */
843
- plan?: SeatingPlan$1;
844
- }
845
- interface CapacityExceededViolation {
846
- /** Max allowed capacity */
847
- maxCapacity?: number;
848
- /** Invalid capacity */
849
- capacity?: number;
850
- /** The element id */
851
- elementId?: number | null;
852
- }
853
- interface UpdateSeatingPlanRequest {
854
- /** The plan updates */
855
- plan?: SeatingPlan$1;
856
- }
857
- interface UpdateSeatingPlanResponse {
858
- /** The updated plan */
859
- plan?: SeatingPlan$1;
860
- }
861
- interface CopySeatingPlanRequest {
862
- /** The id of the plan to be copied */
863
- _id: string | null;
864
- /** New plan title */
865
- title: string | null;
866
- /** Format: "{fqdn}:{entity guid}" */
867
- externalId: string | null;
868
- }
869
- interface CopySeatingPlanResponse {
870
- /** The copied plan */
871
- plan?: SeatingPlan$1;
872
- }
873
- interface QuerySeatingPlanRequest {
874
- /**
875
- * Generic query object
876
- * Possible fieldsets: "elements", "categories", "places", "config".
877
- */
878
- query: QueryV2$1;
879
- /** A fieldset for the response */
880
- fieldset?: Fieldset[];
881
- }
882
- interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
883
- /** Paging options to limit and skip the number of items. */
884
- paging?: Paging$1;
885
- /** 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`. */
886
- cursorPaging?: CursorPaging$1;
887
- /**
888
- * Filter object.
889
- *
890
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
891
- */
892
- filter?: Record<string, any> | null;
893
- /**
894
- * Sort object.
895
- *
896
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
897
- */
898
- sort?: Sorting$1[];
899
- /** 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. */
900
- fields?: string[];
901
- /** 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. */
902
- fieldsets?: string[];
903
- }
904
- /** @oneof */
905
- interface QueryV2PagingMethodOneOf$1 {
906
- /** Paging options to limit and skip the number of items. */
907
- paging?: Paging$1;
908
- /** 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`. */
909
- cursorPaging?: CursorPaging$1;
910
- }
911
- interface Sorting$1 {
912
- /** Name of the field to sort by. */
913
- fieldName?: string;
914
- /** Sort order. */
915
- order?: SortOrder$1;
916
- }
917
- declare enum SortOrder$1 {
918
- ASC = "ASC",
919
- DESC = "DESC"
920
- }
921
- interface Paging$1 {
922
- /** Number of items to load. */
923
- limit?: number | null;
924
- /** Number of items to skip in the current sort order. */
925
- offset?: number | null;
926
- }
927
- interface CursorPaging$1 {
928
- /** Maximum number of items to return in the results. */
929
- limit?: number | null;
930
- /**
931
- * Pointer to the next or previous page in the list of results.
932
- *
933
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
934
- * Not relevant for the first request.
935
- */
936
- cursor?: string | null;
937
- }
938
- declare enum Fieldset {
939
- ELEMENTS = "ELEMENTS",
940
- CATEGORIES = "CATEGORIES",
941
- PLACES = "PLACES",
942
- CONFIG = "CONFIG",
943
- ELEMENT_GROUPS = "ELEMENT_GROUPS"
944
- }
945
- interface QuerySeatingPlanResponse {
946
- /** Plan results */
947
- plans?: SeatingPlan$1[];
948
- }
949
- interface GetSeatingPlanRequest {
950
- /** The id of the plan */
951
- _id: string | null;
952
- /**
953
- * A fieldset for the response
954
- * @deprecated
955
- */
956
- fieldset?: Fieldset[];
957
- /**
958
- * Projection on the result object - list of named projections.
959
- * Possible values: "elements", "categories", "places", "config".
960
- */
961
- fieldsets?: string[];
962
- /** Seating Plan Mask */
963
- seatingPlanMask?: SeatingPlanMask;
964
- }
965
- interface SeatingPlanMask {
966
- /** Filter seating plan by place ids */
967
- placeId?: string[];
968
- }
969
- interface GetSeatingPlanResponse {
970
- /** The plan */
971
- plan?: SeatingPlan$1;
972
- }
973
- interface FindSeatingPlanRequest {
974
- /** The filter of the plan */
975
- filter: Record<string, any> | null;
976
- /**
977
- * A fieldset for the response
978
- * @deprecated
979
- */
980
- fieldset?: Fieldset[];
981
- /**
982
- * Projection on the result object - list of named projections.
983
- * Possible values: "elements", "categories", "places", "config".
984
- */
985
- fieldsets?: string[];
986
- /** Seating Plan Mask */
987
- seatingPlanMask?: SeatingPlanMask;
988
- }
989
- interface FindSeatingPlanResponse {
990
- /** The plan */
991
- plan?: SeatingPlan$1;
992
- }
993
- interface DeleteSeatingPlanRequest {
994
- /** The id of the plan */
995
- _id: string | null;
996
- }
997
- interface DeleteSeatingPlanResponse {
998
- /** Deleted plan */
999
- plan?: SeatingPlan$1;
1000
- }
1001
- interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
1002
- createdEvent?: EntityCreatedEvent$1;
1003
- updatedEvent?: EntityUpdatedEvent$1;
1004
- deletedEvent?: EntityDeletedEvent$1;
1005
- actionEvent?: ActionEvent$1;
1006
- /**
1007
- * Unique event ID.
1008
- * Allows clients to ignore duplicate webhooks.
1009
- */
1010
- _id?: string;
1011
- /**
1012
- * Assumes actions are also always typed to an entity_type
1013
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1014
- */
1015
- entityFqdn?: string;
1016
- /**
1017
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1018
- * This is although the created/updated/deleted notion is duplication of the oneof types
1019
- * Example: created/updated/deleted/started/completed/email_opened
1020
- */
1021
- slug?: string;
1022
- /** ID of the entity associated with the event. */
1023
- entityId?: string;
1024
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1025
- eventTime?: Date | null;
1026
- /**
1027
- * Whether the event was triggered as a result of a privacy regulation application
1028
- * (for example, GDPR).
1029
- */
1030
- triggeredByAnonymizeRequest?: boolean | null;
1031
- /** If present, indicates the action that triggered the event. */
1032
- originatedFrom?: string | null;
1033
- /**
1034
- * A sequence number defining the order of updates to the underlying entity.
1035
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1036
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1037
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1038
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1039
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1040
- */
1041
- entityEventSequence?: string | null;
1042
- }
1043
- /** @oneof */
1044
- interface DomainEventBodyOneOf$1 {
1045
- createdEvent?: EntityCreatedEvent$1;
1046
- updatedEvent?: EntityUpdatedEvent$1;
1047
- deletedEvent?: EntityDeletedEvent$1;
1048
- actionEvent?: ActionEvent$1;
1049
- }
1050
- interface EntityCreatedEvent$1 {
1051
- entity?: string;
1052
- }
1053
- interface RestoreInfo$1 {
1054
- deletedDate?: Date | null;
1055
- }
1056
- interface EntityUpdatedEvent$1 {
1057
- /**
1058
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1059
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1060
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1061
- */
1062
- currentEntity?: string;
1063
- }
1064
- interface EntityDeletedEvent$1 {
1065
- /** Entity that was deleted */
1066
- deletedEntity?: string | null;
1067
- }
1068
- interface ActionEvent$1 {
1069
- body?: string;
1070
- }
1071
- interface MessageEnvelope$1 {
1072
- /** App instance ID. */
1073
- instanceId?: string | null;
1074
- /** Event type. */
1075
- eventType?: string;
1076
- /** The identification type and identity data. */
1077
- identity?: IdentificationData$1;
1078
- /** Stringify payload. */
1079
- data?: string;
1080
- }
1081
- interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
1082
- /** ID of a site visitor that has not logged in to the site. */
1083
- anonymousVisitorId?: string;
1084
- /** ID of a site visitor that has logged in to the site. */
1085
- memberId?: string;
1086
- /** ID of a Wix user (site owner, contributor, etc.). */
1087
- wixUserId?: string;
1088
- /** ID of an app. */
1089
- appId?: string;
1090
- /** @readonly */
1091
- identityType?: WebhookIdentityType$1;
1092
- }
1093
- /** @oneof */
1094
- interface IdentificationDataIdOneOf$1 {
1095
- /** ID of a site visitor that has not logged in to the site. */
1096
- anonymousVisitorId?: string;
1097
- /** ID of a site visitor that has logged in to the site. */
1098
- memberId?: string;
1099
- /** ID of a Wix user (site owner, contributor, etc.). */
1100
- wixUserId?: string;
1101
- /** ID of an app. */
1102
- appId?: string;
1103
- }
1104
- declare enum WebhookIdentityType$1 {
1105
- UNKNOWN = "UNKNOWN",
1106
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1107
- MEMBER = "MEMBER",
1108
- WIX_USER = "WIX_USER",
1109
- APP = "APP"
1110
- }
1111
- interface UpdateSeatingPlanThumbnailRequest {
1112
- thumbnail: SeatingPlanThumbnail;
1113
- }
1114
- interface SeatingPlanThumbnail {
1115
- /** @readonly */
1116
- _id?: string | null;
1117
- img?: string | null;
1118
- }
1119
- interface UpdateSeatingPlanThumbnailResponse {
1120
- thumbnail?: SeatingPlanThumbnail;
1121
- }
1122
- interface GetSeatingPlanThumbnailRequest {
1123
- /** @readonly */
1124
- _id: string | null;
1125
- }
1126
- interface GetSeatingPlanThumbnailResponse {
1127
- thumbnail?: SeatingPlanThumbnail;
1128
- }
1129
- interface SaveSeatingPlanVersionRequest {
1130
- /** A plan version to be saved */
1131
- plan?: SeatingPlan$1;
1132
- /**
1133
- * Parent version of the plan.
1134
- * Use this field to override history of plan versions.
1135
- * The next version of the plan will still be latest version +1,
1136
- * but intermediate versions will be removed. Example:
1137
- * Existing versions [1, 2, 3, 4, 5].
1138
- * Save request with parent_version 2 will yield versions [1, 2, 6].
1139
- */
1140
- parentVersion?: string | null;
1141
- }
1142
- interface SaveSeatingPlanVersionResponse {
1143
- /** Updated plan version */
1144
- plan?: SeatingPlan$1;
1145
- }
1146
- interface QuerySeatingPlanVersionsRequest {
1147
- /**
1148
- * Generic query object
1149
- * Possible fieldsets: "elements", "categories", "places", "config".
1150
- */
1151
- query?: QueryV2$1;
1152
- }
1153
- interface QuerySeatingPlanVersionsResponse {
1154
- /** Plan results */
1155
- plans?: SeatingPlan$1[];
1156
- /** Paging meta data */
1157
- metadata?: PagingMetadataV2$1;
1158
- }
1159
- interface PagingMetadataV2$1 {
1160
- /** Number of items returned in the response. */
1161
- count?: number | null;
1162
- /** Offset that was requested. */
1163
- offset?: number | null;
1164
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1165
- total?: number | null;
1166
- /** Flag that indicates the server failed to calculate the `total` field. */
1167
- tooManyToCount?: boolean | null;
1168
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1169
- cursors?: Cursors$1;
1170
- }
1171
- interface Cursors$1 {
1172
- /** Cursor string pointing to the next page in the list of results. */
1173
- next?: string | null;
1174
- /** Cursor pointing to the previous page in the list of results. */
1175
- prev?: string | null;
1176
- }
1177
- interface DiscardSeatingPlanVersionsRequest {
1178
- /** Seating Plan ID */
1179
- seatingPlanId?: string | null;
1180
- /** Version from which all higher versions will be discarded. */
1181
- version?: string | null;
1182
- }
1183
- interface DiscardSeatingPlanVersionsResponse {
1184
- }
1185
- interface RestoreSeatingPlanRequest {
1186
- /** Seating Plan ID */
1187
- seatingPlanId?: string | null;
1188
- /** Version to witch the seating plan should be restored. */
1189
- version?: string | null;
1190
- }
1191
- interface RestoreSeatingPlanResponse {
1192
- /** Seating Plan */
1193
- plan?: SeatingPlan$1;
1194
- }
1195
- interface SequencingNonNullableFields$1 {
1196
- startAt: string;
1197
- labels: string[];
1198
- }
1199
- interface PlaceNonNullableFields$1 {
1200
- index: number;
1201
- label: string;
1202
- elementType: Type$1;
1203
- type: PlaceTypeEnumType$1;
1204
- }
1205
- interface ReservationOptionsNonNullableFields$1 {
1206
- reserveWholeElement: boolean;
1207
- }
1208
- interface ImageNonNullableFields$1 {
1209
- _id: string;
1210
- height: number;
1211
- width: number;
1212
- }
1213
- interface ElementUiPropertiesNonNullableFields$1 {
1214
- shapeType: ShapeTypeEnumType$1;
1215
- labelPosition: Position$1;
1216
- seatLayout: number[];
1217
- icon: Icon$1;
1218
- image?: ImageNonNullableFields$1;
1219
- seatNumbering: Numbering$1;
1220
- }
1221
- interface RowElementUiPropertiesNonNullableFields$1 {
1222
- labelPosition: Position$1;
1223
- seatNumbering: Numbering$1;
1224
- }
1225
- interface RowElementNonNullableFields$1 {
1226
- _id: number;
1227
- sequencing?: SequencingNonNullableFields$1;
1228
- uiProperties?: RowElementUiPropertiesNonNullableFields$1;
1229
- }
1230
- interface VerticalSequencingNonNullableFields$1 {
1231
- startAt: string;
1232
- rowNumbering: Numbering$1;
1233
- }
1234
- interface MultiRowPropertiesNonNullableFields$1 {
1235
- rows: RowElementNonNullableFields$1[];
1236
- verticalSequencing?: VerticalSequencingNonNullableFields$1;
1237
- }
1238
- interface ElementNonNullableFields$1 {
1239
- _id: number;
1240
- type: Type$1;
1241
- sequencing?: SequencingNonNullableFields$1;
1242
- overrides: PlaceNonNullableFields$1[];
1243
- places: PlaceNonNullableFields$1[];
1244
- reservationOptions?: ReservationOptionsNonNullableFields$1;
1245
- uiProperties?: ElementUiPropertiesNonNullableFields$1;
1246
- multiRowProperties?: MultiRowPropertiesNonNullableFields$1;
1247
- }
1248
- interface SectionNonNullableFields$1 {
1249
- _id: number;
1250
- elements: ElementNonNullableFields$1[];
1251
- default: boolean;
1252
- }
1253
- interface CategoryNonNullableFields$1 {
1254
- _id: number;
1255
- title: string;
1256
- places: PlaceNonNullableFields$1[];
1257
- }
1258
- interface ElementGroupNonNullableFields$1 {
1259
- _id: number;
1260
- }
1261
- interface SeatingPlanNonNullableFields$1 {
1262
- sections: SectionNonNullableFields$1[];
1263
- categories: CategoryNonNullableFields$1[];
1264
- uncategorizedPlaces: PlaceNonNullableFields$1[];
1265
- elementGroups: ElementGroupNonNullableFields$1[];
1266
- }
1267
- interface CreateSeatingPlanResponseNonNullableFields {
1268
- plan?: SeatingPlanNonNullableFields$1;
1269
- }
1270
- interface UpdateSeatingPlanResponseNonNullableFields {
1271
- plan?: SeatingPlanNonNullableFields$1;
1272
- }
1273
- interface CopySeatingPlanResponseNonNullableFields {
1274
- plan?: SeatingPlanNonNullableFields$1;
1275
- }
1276
- interface QuerySeatingPlanResponseNonNullableFields {
1277
- plans: SeatingPlanNonNullableFields$1[];
1278
- }
1279
- interface GetSeatingPlanResponseNonNullableFields {
1280
- plan?: SeatingPlanNonNullableFields$1;
1281
- }
1282
- interface FindSeatingPlanResponseNonNullableFields {
1283
- plan?: SeatingPlanNonNullableFields$1;
1284
- }
1285
- interface DeleteSeatingPlanResponseNonNullableFields {
1286
- plan?: SeatingPlanNonNullableFields$1;
1287
- }
1288
- interface BaseEventMetadata$1 {
1289
- /** App instance ID. */
1290
- instanceId?: string | null;
1291
- /** Event type. */
1292
- eventType?: string;
1293
- /** The identification type and identity data. */
1294
- identity?: IdentificationData$1;
1295
- }
1296
- interface EventMetadata$1 extends BaseEventMetadata$1 {
1297
- /**
1298
- * Unique event ID.
1299
- * Allows clients to ignore duplicate webhooks.
1300
- */
1301
- _id?: string;
1302
- /**
1303
- * Assumes actions are also always typed to an entity_type
1304
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1305
- */
1306
- entityFqdn?: string;
1307
- /**
1308
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1309
- * This is although the created/updated/deleted notion is duplication of the oneof types
1310
- * Example: created/updated/deleted/started/completed/email_opened
1311
- */
1312
- slug?: string;
1313
- /** ID of the entity associated with the event. */
1314
- entityId?: string;
1315
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1316
- eventTime?: Date | null;
1317
- /**
1318
- * Whether the event was triggered as a result of a privacy regulation application
1319
- * (for example, GDPR).
1320
- */
1321
- triggeredByAnonymizeRequest?: boolean | null;
1322
- /** If present, indicates the action that triggered the event. */
1323
- originatedFrom?: string | null;
1324
- /**
1325
- * A sequence number defining the order of updates to the underlying entity.
1326
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1327
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1328
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1329
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1330
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1331
- */
1332
- entityEventSequence?: string | null;
1333
- }
1334
- interface SeatingPlanCreatedEnvelope {
1335
- entity: SeatingPlan$1;
1336
- metadata: EventMetadata$1;
1337
- }
1338
- interface SeatingPlanDeletedEnvelope {
1339
- entity: SeatingPlan$1;
1340
- metadata: EventMetadata$1;
1341
- }
1342
- interface SeatingPlanUpdatedEnvelope {
1343
- entity: SeatingPlan$1;
1344
- metadata: EventMetadata$1;
1345
- }
1346
- interface UpdateSeatingPlanOptions {
1347
- /** The plan updates */
1348
- plan?: SeatingPlan$1;
1349
- }
1350
- interface CopySeatingPlanOptions {
1351
- /** New plan title */
1352
- title: string | null;
1353
- /** Format: "{fqdn}:{entity guid}" */
1354
- externalId: string | null;
1355
- }
1356
- interface QuerySeatingPlanOptions {
1357
- /** A fieldset for the response */
1358
- fieldset?: Fieldset[] | undefined;
1359
- }
1360
- interface QueryCursorResult$1 {
1361
- cursors: Cursors$1;
1362
- hasNext: () => boolean;
1363
- hasPrev: () => boolean;
1364
- length: number;
1365
- pageSize: number;
1366
- }
1367
- interface PlansQueryResult extends QueryCursorResult$1 {
1368
- items: SeatingPlan$1[];
1369
- query: PlansQueryBuilder;
1370
- next: () => Promise<PlansQueryResult>;
1371
- prev: () => Promise<PlansQueryResult>;
1372
- }
1373
- interface PlansQueryBuilder {
1374
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1375
- * @documentationMaturity preview
1376
- */
1377
- limit: (limit: number) => PlansQueryBuilder;
1378
- /** @param cursor - A pointer to specific record
1379
- * @documentationMaturity preview
1380
- */
1381
- skipTo: (cursor: string) => PlansQueryBuilder;
1382
- /** @documentationMaturity preview */
1383
- find: () => Promise<PlansQueryResult>;
1384
- }
1385
- interface GetSeatingPlanOptions {
1386
- /**
1387
- * A fieldset for the response
1388
- * @deprecated
1389
- */
1390
- fieldset?: Fieldset[];
1391
- /**
1392
- * Projection on the result object - list of named projections.
1393
- * Possible values: "elements", "categories", "places", "config".
1394
- */
1395
- fieldsets?: string[];
1396
- /** Seating Plan Mask */
1397
- seatingPlanMask?: SeatingPlanMask;
1398
- }
1399
- interface FindSeatingPlanOptions {
1400
- /**
1401
- * A fieldset for the response
1402
- * @deprecated
1403
- */
1404
- fieldset?: Fieldset[];
1405
- /**
1406
- * Projection on the result object - list of named projections.
1407
- * Possible values: "elements", "categories", "places", "config".
1408
- */
1409
- fieldsets?: string[];
1410
- /** Seating Plan Mask */
1411
- seatingPlanMask?: SeatingPlanMask;
1412
- }
1413
-
1414
- declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
1415
- interface CreateSeatingPlanSignature {
1416
- /**
1417
- * Crates a seating plan
1418
- * @param - A plan to be created
1419
- * @returns The created plan
1420
- */
1421
- (plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
1422
- }
1423
- declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
1424
- interface UpdateSeatingPlanSignature {
1425
- /**
1426
- * Updates the seating plan
1427
- * @returns The updated plan
1428
- */
1429
- (options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
1430
- }
1431
- declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
1432
- interface CopySeatingPlanSignature {
1433
- /**
1434
- * Copies the seating plan
1435
- * @param - The id of the plan to be copied
1436
- */
1437
- (_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
1438
- }
1439
- declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
1440
- interface QuerySeatingPlanSignature {
1441
- /**
1442
- * Lists seating plans by provided query request
1443
- */
1444
- (options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
1445
- }
1446
- declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
1447
- interface GetSeatingPlanSignature {
1448
- /**
1449
- * Returns the seating plan. Fails of not fond.
1450
- * @param - The id of the plan
1451
- * @returns The plan
1452
- */
1453
- (_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
1454
- }
1455
- declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
1456
- interface FindSeatingPlanSignature {
1457
- /**
1458
- * Returns the first seating plan found by filter request.
1459
- * @param - The filter of the plan
1460
- */
1461
- (filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
1462
- }
1463
- declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
1464
- interface DeleteSeatingPlanSignature {
1465
- /**
1466
- * Deletes the seating plan.
1467
- * @param - The id of the plan
1468
- */
1469
- (_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
1470
- }
1471
- declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
1472
- interface UpdateSeatingPlanThumbnailSignature {
1473
- /**
1474
- * Updates seating plan thumbnail.
1475
- */
1476
- (thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
1477
- }
1478
- declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
1479
- interface GetSeatingPlanThumbnailSignature {
1480
- /**
1481
- * Get seating plan thumbnail.
1482
- */
1483
- (_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
1484
- }
1485
- declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
1486
- declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
1487
- declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
1488
-
1489
- declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1490
-
1491
- declare const createSeatingPlan: MaybeContext<BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1>;
1492
- declare const updateSeatingPlan: MaybeContext<BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1>;
1493
- declare const copySeatingPlan: MaybeContext<BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1>;
1494
- declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1>;
1495
- declare const getSeatingPlan: MaybeContext<BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1>;
1496
- declare const findSeatingPlan: MaybeContext<BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1>;
1497
- declare const deleteSeatingPlan: MaybeContext<BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1>;
1498
- declare const updateSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1>;
1499
- declare const getSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1>;
1500
-
1501
- type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
1502
- /** */
1503
- declare const onSeatingPlanCreated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanCreatedType>>;
1504
-
1505
- type _publicOnSeatingPlanDeletedType = typeof onSeatingPlanDeleted$1;
1506
- /** */
1507
- declare const onSeatingPlanDeleted: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanDeletedType>>;
1508
-
1509
- type _publicOnSeatingPlanUpdatedType = typeof onSeatingPlanUpdated$1;
1510
- /** */
1511
- declare const onSeatingPlanUpdated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanUpdatedType>>;
1512
-
1513
- type index_d$1_CapacityExceededViolation = CapacityExceededViolation;
1514
- type index_d$1_CopySeatingPlanOptions = CopySeatingPlanOptions;
1515
- type index_d$1_CopySeatingPlanRequest = CopySeatingPlanRequest;
1516
- type index_d$1_CopySeatingPlanResponse = CopySeatingPlanResponse;
1517
- type index_d$1_CopySeatingPlanResponseNonNullableFields = CopySeatingPlanResponseNonNullableFields;
1518
- type index_d$1_CreateSeatingPlanRequest = CreateSeatingPlanRequest;
1519
- type index_d$1_CreateSeatingPlanResponse = CreateSeatingPlanResponse;
1520
- type index_d$1_CreateSeatingPlanResponseNonNullableFields = CreateSeatingPlanResponseNonNullableFields;
1521
- type index_d$1_DeleteSeatingPlanRequest = DeleteSeatingPlanRequest;
1522
- type index_d$1_DeleteSeatingPlanResponse = DeleteSeatingPlanResponse;
1523
- type index_d$1_DeleteSeatingPlanResponseNonNullableFields = DeleteSeatingPlanResponseNonNullableFields;
1524
- type index_d$1_DiscardSeatingPlanVersionsRequest = DiscardSeatingPlanVersionsRequest;
1525
- type index_d$1_DiscardSeatingPlanVersionsResponse = DiscardSeatingPlanVersionsResponse;
1526
- type index_d$1_Fieldset = Fieldset;
1527
- declare const index_d$1_Fieldset: typeof Fieldset;
1528
- type index_d$1_FindSeatingPlanOptions = FindSeatingPlanOptions;
1529
- type index_d$1_FindSeatingPlanRequest = FindSeatingPlanRequest;
1530
- type index_d$1_FindSeatingPlanResponse = FindSeatingPlanResponse;
1531
- type index_d$1_FindSeatingPlanResponseNonNullableFields = FindSeatingPlanResponseNonNullableFields;
1532
- type index_d$1_GetSeatingPlanOptions = GetSeatingPlanOptions;
1533
- type index_d$1_GetSeatingPlanRequest = GetSeatingPlanRequest;
1534
- type index_d$1_GetSeatingPlanResponse = GetSeatingPlanResponse;
1535
- type index_d$1_GetSeatingPlanResponseNonNullableFields = GetSeatingPlanResponseNonNullableFields;
1536
- type index_d$1_GetSeatingPlanThumbnailRequest = GetSeatingPlanThumbnailRequest;
1537
- type index_d$1_GetSeatingPlanThumbnailResponse = GetSeatingPlanThumbnailResponse;
1538
- type index_d$1_PlansQueryBuilder = PlansQueryBuilder;
1539
- type index_d$1_PlansQueryResult = PlansQueryResult;
1540
- type index_d$1_QuerySeatingPlanOptions = QuerySeatingPlanOptions;
1541
- type index_d$1_QuerySeatingPlanRequest = QuerySeatingPlanRequest;
1542
- type index_d$1_QuerySeatingPlanResponse = QuerySeatingPlanResponse;
1543
- type index_d$1_QuerySeatingPlanResponseNonNullableFields = QuerySeatingPlanResponseNonNullableFields;
1544
- type index_d$1_QuerySeatingPlanVersionsRequest = QuerySeatingPlanVersionsRequest;
1545
- type index_d$1_QuerySeatingPlanVersionsResponse = QuerySeatingPlanVersionsResponse;
1546
- type index_d$1_RestoreSeatingPlanRequest = RestoreSeatingPlanRequest;
1547
- type index_d$1_RestoreSeatingPlanResponse = RestoreSeatingPlanResponse;
1548
- type index_d$1_SaveSeatingPlanVersionRequest = SaveSeatingPlanVersionRequest;
1549
- type index_d$1_SaveSeatingPlanVersionResponse = SaveSeatingPlanVersionResponse;
1550
- type index_d$1_SeatingPlanCreatedEnvelope = SeatingPlanCreatedEnvelope;
1551
- type index_d$1_SeatingPlanDeletedEnvelope = SeatingPlanDeletedEnvelope;
1552
- type index_d$1_SeatingPlanMask = SeatingPlanMask;
1553
- type index_d$1_SeatingPlanThumbnail = SeatingPlanThumbnail;
1554
- type index_d$1_SeatingPlanUpdatedEnvelope = SeatingPlanUpdatedEnvelope;
1555
- type index_d$1_UpdateSeatingPlanOptions = UpdateSeatingPlanOptions;
1556
- type index_d$1_UpdateSeatingPlanRequest = UpdateSeatingPlanRequest;
1557
- type index_d$1_UpdateSeatingPlanResponse = UpdateSeatingPlanResponse;
1558
- type index_d$1_UpdateSeatingPlanResponseNonNullableFields = UpdateSeatingPlanResponseNonNullableFields;
1559
- type index_d$1_UpdateSeatingPlanThumbnailRequest = UpdateSeatingPlanThumbnailRequest;
1560
- type index_d$1_UpdateSeatingPlanThumbnailResponse = UpdateSeatingPlanThumbnailResponse;
1561
- type index_d$1__publicOnSeatingPlanCreatedType = _publicOnSeatingPlanCreatedType;
1562
- type index_d$1__publicOnSeatingPlanDeletedType = _publicOnSeatingPlanDeletedType;
1563
- type index_d$1__publicOnSeatingPlanUpdatedType = _publicOnSeatingPlanUpdatedType;
1564
- declare const index_d$1_copySeatingPlan: typeof copySeatingPlan;
1565
- declare const index_d$1_createSeatingPlan: typeof createSeatingPlan;
1566
- declare const index_d$1_deleteSeatingPlan: typeof deleteSeatingPlan;
1567
- declare const index_d$1_findSeatingPlan: typeof findSeatingPlan;
1568
- declare const index_d$1_getSeatingPlan: typeof getSeatingPlan;
1569
- declare const index_d$1_getSeatingPlanThumbnail: typeof getSeatingPlanThumbnail;
1570
- declare const index_d$1_onSeatingPlanCreated: typeof onSeatingPlanCreated;
1571
- declare const index_d$1_onSeatingPlanDeleted: typeof onSeatingPlanDeleted;
1572
- declare const index_d$1_onSeatingPlanUpdated: typeof onSeatingPlanUpdated;
1573
- declare const index_d$1_querySeatingPlan: typeof querySeatingPlan;
1574
- declare const index_d$1_updateSeatingPlan: typeof updateSeatingPlan;
1575
- declare const index_d$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
1576
- declare namespace index_d$1 {
1577
- export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CapacityExceededViolation as CapacityExceededViolation, type Category$1 as Category, type index_d$1_CopySeatingPlanOptions as CopySeatingPlanOptions, type index_d$1_CopySeatingPlanRequest as CopySeatingPlanRequest, type index_d$1_CopySeatingPlanResponse as CopySeatingPlanResponse, type index_d$1_CopySeatingPlanResponseNonNullableFields as CopySeatingPlanResponseNonNullableFields, type index_d$1_CreateSeatingPlanRequest as CreateSeatingPlanRequest, type index_d$1_CreateSeatingPlanResponse as CreateSeatingPlanResponse, type index_d$1_CreateSeatingPlanResponseNonNullableFields as CreateSeatingPlanResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DeleteSeatingPlanRequest as DeleteSeatingPlanRequest, type index_d$1_DeleteSeatingPlanResponse as DeleteSeatingPlanResponse, type index_d$1_DeleteSeatingPlanResponseNonNullableFields as DeleteSeatingPlanResponseNonNullableFields, type index_d$1_DiscardSeatingPlanVersionsRequest as DiscardSeatingPlanVersionsRequest, type index_d$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, index_d$1_Fieldset as Fieldset, type index_d$1_FindSeatingPlanOptions as FindSeatingPlanOptions, type index_d$1_FindSeatingPlanRequest as FindSeatingPlanRequest, type index_d$1_FindSeatingPlanResponse as FindSeatingPlanResponse, type index_d$1_FindSeatingPlanResponseNonNullableFields as FindSeatingPlanResponseNonNullableFields, type index_d$1_GetSeatingPlanOptions as GetSeatingPlanOptions, type index_d$1_GetSeatingPlanRequest as GetSeatingPlanRequest, type index_d$1_GetSeatingPlanResponse as GetSeatingPlanResponse, type index_d$1_GetSeatingPlanResponseNonNullableFields as GetSeatingPlanResponseNonNullableFields, type index_d$1_GetSeatingPlanThumbnailRequest as GetSeatingPlanThumbnailRequest, type index_d$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 index_d$1_PlansQueryBuilder as PlansQueryBuilder, type index_d$1_PlansQueryResult as PlansQueryResult, Position$1 as Position, type index_d$1_QuerySeatingPlanOptions as QuerySeatingPlanOptions, type index_d$1_QuerySeatingPlanRequest as QuerySeatingPlanRequest, type index_d$1_QuerySeatingPlanResponse as QuerySeatingPlanResponse, type index_d$1_QuerySeatingPlanResponseNonNullableFields as QuerySeatingPlanResponseNonNullableFields, type index_d$1_QuerySeatingPlanVersionsRequest as QuerySeatingPlanVersionsRequest, type index_d$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 index_d$1_RestoreSeatingPlanRequest as RestoreSeatingPlanRequest, type index_d$1_RestoreSeatingPlanResponse as RestoreSeatingPlanResponse, type RowElement$1 as RowElement, type RowElementUiProperties$1 as RowElementUiProperties, type index_d$1_SaveSeatingPlanVersionRequest as SaveSeatingPlanVersionRequest, type index_d$1_SaveSeatingPlanVersionResponse as SaveSeatingPlanVersionResponse, type SeatingPlan$1 as SeatingPlan, type index_d$1_SeatingPlanCreatedEnvelope as SeatingPlanCreatedEnvelope, type index_d$1_SeatingPlanDeletedEnvelope as SeatingPlanDeletedEnvelope, type index_d$1_SeatingPlanMask as SeatingPlanMask, type SeatingPlanNonNullableFields$1 as SeatingPlanNonNullableFields, type index_d$1_SeatingPlanThumbnail as SeatingPlanThumbnail, type SeatingPlanUiProperties$1 as SeatingPlanUiProperties, type index_d$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 index_d$1_UpdateSeatingPlanOptions as UpdateSeatingPlanOptions, type index_d$1_UpdateSeatingPlanRequest as UpdateSeatingPlanRequest, type index_d$1_UpdateSeatingPlanResponse as UpdateSeatingPlanResponse, type index_d$1_UpdateSeatingPlanResponseNonNullableFields as UpdateSeatingPlanResponseNonNullableFields, type index_d$1_UpdateSeatingPlanThumbnailRequest as UpdateSeatingPlanThumbnailRequest, type index_d$1_UpdateSeatingPlanThumbnailResponse as UpdateSeatingPlanThumbnailResponse, type VerticalSequencing$1 as VerticalSequencing, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnSeatingPlanCreatedType as _publicOnSeatingPlanCreatedType, type index_d$1__publicOnSeatingPlanDeletedType as _publicOnSeatingPlanDeletedType, type index_d$1__publicOnSeatingPlanUpdatedType as _publicOnSeatingPlanUpdatedType, index_d$1_copySeatingPlan as copySeatingPlan, index_d$1_createSeatingPlan as createSeatingPlan, index_d$1_deleteSeatingPlan as deleteSeatingPlan, index_d$1_findSeatingPlan as findSeatingPlan, index_d$1_getSeatingPlan as getSeatingPlan, index_d$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, index_d$1_onSeatingPlanCreated as onSeatingPlanCreated, index_d$1_onSeatingPlanDeleted as onSeatingPlanDeleted, index_d$1_onSeatingPlanUpdated as onSeatingPlanUpdated, onSeatingPlanCreated$1 as publicOnSeatingPlanCreated, onSeatingPlanDeleted$1 as publicOnSeatingPlanDeleted, onSeatingPlanUpdated$1 as publicOnSeatingPlanUpdated, index_d$1_querySeatingPlan as querySeatingPlan, index_d$1_updateSeatingPlan as updateSeatingPlan, index_d$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
1578
- }
1579
-
1580
- interface SeatingReservation {
1581
- /**
1582
- * The id of the reservation
1583
- * @readonly
1584
- */
1585
- _id?: string | null;
1586
- /**
1587
- * The seating plan id
1588
- * @readonly
1589
- */
1590
- seatingPlanId?: string | null;
1591
- /**
1592
- * The external seating plan id
1593
- * @readonly
1594
- */
1595
- externalSeatingPlanId?: string | null;
1596
- /** Reserved places */
1597
- reservedPlaces?: PlaceReservation[];
1598
- /**
1599
- * A client defined external id for cross referencing.
1600
- * Can reference external entities.
1601
- * Format: "{fqdn}:{entity guid}"
1602
- */
1603
- externalId?: string | null;
1604
- }
1605
- interface PlaceReservation {
1606
- /** The place id. */
1607
- _id?: string;
1608
- /**
1609
- * Number of places in the spot. If not provided - defaults to 1.
1610
- * Used to reserve for more that one place in areas.
1611
- */
1612
- capacity?: number | null;
1613
- /**
1614
- * Optional section label.
1615
- * @readonly
1616
- */
1617
- sectionLabel?: string | null;
1618
- /**
1619
- * Area label.
1620
- * @readonly
1621
- */
1622
- areaLabel?: string | null;
1623
- /**
1624
- * Table label.
1625
- * @readonly
1626
- */
1627
- tableLabel?: string | null;
1628
- /**
1629
- * Row label.
1630
- * @readonly
1631
- */
1632
- rowLabel?: string | null;
1633
- /**
1634
- * Seat label in a row or table.
1635
- * @readonly
1636
- */
1637
- seatLabel?: string | null;
1638
- }
1639
- interface SeatingPlanCategoriesSummaryUpdated {
1640
- /** Seating plan id */
1641
- seatingPlanId?: string;
1642
- /** External seating plan id */
1643
- externalSeatingPlanId?: string | null;
1644
- /** Ticket counts by category */
1645
- categories?: CategoryDetails[];
1646
- /**
1647
- * Summary revision.
1648
- * @readonly
1649
- */
1650
- revision?: string | null;
1651
- }
1652
- interface CategoryDetails {
1653
- /**
1654
- * Seating plan id
1655
- * @readonly
1656
- */
1657
- seatingPlanId?: string | null;
1658
- /**
1659
- * External seating plan id
1660
- * @readonly
1661
- */
1662
- externalSeatingPlanId?: string | null;
1663
- /**
1664
- * External category id
1665
- * @readonly
1666
- */
1667
- externalCategoryId?: string | null;
1668
- /**
1669
- * Total capacity in the category
1670
- * @readonly
1671
- */
1672
- totalCapacity?: number | null;
1673
- /**
1674
- * Already reserved capacity
1675
- * @readonly
1676
- */
1677
- reserved?: number | null;
1678
- }
1679
- interface InvalidateCache extends InvalidateCacheGetByOneOf {
1680
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1681
- metaSiteId?: string;
1682
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1683
- siteId?: string;
1684
- /** Invalidate by App */
1685
- app?: App;
1686
- /** Invalidate by page id */
1687
- page?: Page;
1688
- /** Invalidate by URI path */
1689
- uri?: URI;
1690
- /** Invalidate by file (for media files such as PDFs) */
1691
- file?: File;
1692
- /** tell us why you're invalidating the cache. You don't need to add your app name */
1693
- reason?: string | null;
1694
- /** Is local DS */
1695
- localDc?: boolean;
1696
- hardPurge?: boolean;
1697
- }
1698
- /** @oneof */
1699
- interface InvalidateCacheGetByOneOf {
1700
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1701
- metaSiteId?: string;
1702
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1703
- siteId?: string;
1704
- /** Invalidate by App */
1705
- app?: App;
1706
- /** Invalidate by page id */
1707
- page?: Page;
1708
- /** Invalidate by URI path */
1709
- uri?: URI;
1710
- /** Invalidate by file (for media files such as PDFs) */
1711
- file?: File;
1712
- }
1713
- interface App {
1714
- /** The AppDefId */
1715
- appDefId?: string;
1716
- /** The instance Id */
1717
- instanceId?: string;
1718
- }
1719
- interface Page {
1720
- /** the msid the page is on */
1721
- metaSiteId?: string;
1722
- /** Invalidate by Page ID */
1723
- pageId?: string;
1724
- }
1725
- interface URI {
1726
- /** the msid the URI is on */
1727
- metaSiteId?: string;
1728
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
1729
- uriPath?: string;
1730
- }
1731
- interface File {
1732
- /** the msid the file is related to */
1733
- metaSiteId?: string;
1734
- /** Invalidate by filename (for media files such as PDFs) */
1735
- fileName?: string;
1736
- }
1737
- interface CreateSeatingReservationRequest {
1738
- /** A reservation to create */
1739
- reservation?: SeatingReservation;
1740
- }
1741
- interface CreateSeatingReservationResponse {
1742
- /** Created reservation */
1743
- reservation?: SeatingReservation;
1744
- }
1745
- interface Places {
1746
- /** Places */
1747
- places?: string[];
1748
- }
1749
- interface UnavailablePlaces {
1750
- /** Places that cannot be reserved */
1751
- unavailablePlaces?: string[];
1752
- /** Reservation error details */
1753
- reservationErrorDetails?: ReservationErrorDetails[];
1754
- }
1755
- interface ReservationErrorDetails {
1756
- /** Place */
1757
- _id?: string;
1758
- /** Available capacity */
1759
- available?: number;
1760
- /** Requested capacity */
1761
- requested?: number;
1762
- }
1763
- interface GetReservationRequest {
1764
- /** The id of the reservation to return */
1765
- _id: string | null;
1766
- }
1767
- interface GetReservationResponse {
1768
- /** Created reservation */
1769
- reservation?: SeatingReservation;
1770
- }
1771
- interface QuerySeatingReservationRequest {
1772
- /** A query object */
1773
- query: QueryV2;
1774
- }
1775
- interface QueryV2 extends QueryV2PagingMethodOneOf {
1776
- /** Paging options to limit and skip the number of items. */
1777
- paging?: Paging;
1778
- /** 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`. */
1779
- cursorPaging?: CursorPaging;
1780
- /**
1781
- * Filter object.
1782
- *
1783
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
1784
- */
1785
- filter?: Record<string, any> | null;
1786
- /**
1787
- * Sort object.
1788
- *
1789
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1790
- */
1791
- sort?: Sorting[];
1792
- /** 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. */
1793
- fields?: string[];
1794
- /** 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. */
1795
- fieldsets?: string[];
1796
- }
1797
- /** @oneof */
1798
- interface QueryV2PagingMethodOneOf {
1799
- /** Paging options to limit and skip the number of items. */
1800
- paging?: Paging;
1801
- /** 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`. */
1802
- cursorPaging?: CursorPaging;
1803
- }
1804
- interface Sorting {
1805
- /** Name of the field to sort by. */
1806
- fieldName?: string;
1807
- /** Sort order. */
1808
- order?: SortOrder;
1809
- }
1810
- declare enum SortOrder {
1811
- ASC = "ASC",
1812
- DESC = "DESC"
1813
- }
1814
- interface Paging {
1815
- /** Number of items to load. */
1816
- limit?: number | null;
1817
- /** Number of items to skip in the current sort order. */
1818
- offset?: number | null;
1819
- }
1820
- interface CursorPaging {
1821
- /** Maximum number of items to return in the results. */
1822
- limit?: number | null;
1823
- /**
1824
- * Pointer to the next or previous page in the list of results.
1825
- *
1826
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1827
- * Not relevant for the first request.
1828
- */
1829
- cursor?: string | null;
1830
- }
1831
- interface QuerySeatingReservationResponse {
1832
- /** Found reservations */
1833
- reservations?: SeatingReservation[];
1834
- /** Paging meta data */
1835
- metadata?: PagingMetadataV2;
1836
- }
1837
- interface PagingMetadataV2 {
1838
- /** Number of items returned in the response. */
1839
- count?: number | null;
1840
- /** Offset that was requested. */
1841
- offset?: number | null;
1842
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1843
- total?: number | null;
1844
- /** Flag that indicates the server failed to calculate the `total` field. */
1845
- tooManyToCount?: boolean | null;
1846
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1847
- cursors?: Cursors;
1848
- }
1849
- interface Cursors {
1850
- /** Cursor string pointing to the next page in the list of results. */
1851
- next?: string | null;
1852
- /** Cursor pointing to the previous page in the list of results. */
1853
- prev?: string | null;
1854
- }
1855
- interface DeleteSeatingReservationRequest {
1856
- /** The id of the reservation to delete */
1857
- _id: string | null;
1858
- }
1859
- interface DeleteSeatingReservationResponse {
1860
- /** The deleted reservation */
1861
- reservation?: SeatingReservation;
1862
- }
1863
- interface DeleteSeatingPlaceReservationRequest {
1864
- /** The id of the place reservation to delete */
1865
- _id?: string | null;
1866
- /** The id of the place reservation's reservation */
1867
- reservationId?: string | null;
1868
- }
1869
- interface Empty {
1870
- }
1871
- interface GetReservedPlacesRequest {
1872
- /** Seating plan id */
1873
- _id?: string | null;
1874
- }
1875
- interface GetReservedPlacesResponse {
1876
- /** Reserved places of the plan */
1877
- placeReservations?: PlaceReservation[];
1878
- }
1879
- interface GetSeatingCategoriesSummaryRequest {
1880
- /** Seating plan external id */
1881
- externalId?: string[];
1882
- }
1883
- interface GetSeatingCategoriesSummaryResponse {
1884
- /** Ticket counts by category */
1885
- categories?: CategoryDetails[];
1886
- }
1887
- interface GetSeatingCategorySummaryRequest {
1888
- /** Seating plan external id */
1889
- externalId?: string;
1890
- }
1891
- interface GetSeatingCategorySummaryResponse {
1892
- /** Ticket counts by category */
1893
- categories?: CategoryDetails[];
1894
- }
1895
- interface GetSeatingReservationsSummaryRequest {
1896
- /** Filter for seating plan */
1897
- filter: Record<string, any> | null;
1898
- }
1899
- interface GetSeatingReservationsSummaryResponse {
1900
- plan?: SeatingPlan;
1901
- seatingReservationsSummary?: SeatingReservationsSummary;
1902
- }
1903
- interface SeatingPlan {
1904
- /**
1905
- * Auto generated unique plan id
1906
- * @readonly
1907
- */
1908
- _id?: string | null;
1909
- /**
1910
- * A client defined external id for cross referencing.
1911
- * Can reference external entities.
1912
- * Format: "{fqdn}:{entity guid}"
1913
- */
1914
- externalId?: string | null;
1915
- /** Human friendly plan title */
1916
- title?: string | null;
1917
- /** Sections of the plan. Seating plan is divided in high level sections. */
1918
- sections?: Section[];
1919
- /** Categories for plan element grouping. */
1920
- categories?: Category[];
1921
- /**
1922
- * Seating plan created timestamp.
1923
- * @readonly
1924
- */
1925
- _createdDate?: Date | null;
1926
- /**
1927
- * Seating plan updated timestamp.
1928
- * @readonly
1929
- */
1930
- _updatedDate?: Date | null;
1931
- /**
1932
- * Total capacity
1933
- * @readonly
1934
- */
1935
- totalCapacity?: number | null;
1936
- /**
1937
- * Total categories
1938
- * @readonly
1939
- */
1940
- totalCategories?: number | null;
1941
- /**
1942
- * Places not assigned to categories
1943
- * @readonly
1944
- */
1945
- uncategorizedPlaces?: Place[];
1946
- /**
1947
- * A version of the seating plan
1948
- * @readonly
1949
- */
1950
- version?: string | null;
1951
- /** Data extensions */
1952
- extendedFields?: ExtendedFields;
1953
- /** Seating Plan UI settings */
1954
- uiProperties?: SeatingPlanUiProperties;
1955
- /** Element groups */
1956
- elementGroups?: ElementGroup[];
1957
- }
1958
- interface Section {
1959
- /** Unique section id */
1960
- _id?: number;
1961
- /** Human readable section title */
1962
- title?: string | null;
1963
- /**
1964
- * Client configuration object
1965
- * @readonly
1966
- */
1967
- config?: Record<string, any> | null;
1968
- /** Elements of the section. */
1969
- elements?: Element[];
1970
- /**
1971
- * Total capacity
1972
- * @readonly
1973
- */
1974
- totalCapacity?: number | null;
1975
- /**
1976
- * Is default section
1977
- * @readonly
1978
- */
1979
- default?: boolean;
1980
- }
1981
- interface Element {
1982
- /** Unique element id */
1983
- _id?: number;
1984
- /** User friendly title/label of the element. */
1985
- title?: string | null;
1986
- /** Element type */
1987
- type?: Type;
1988
- /** Capacity. None for Shape type Element. */
1989
- capacity?: number | null;
1990
- /** Assigned to a category */
1991
- categoryId?: number | null;
1992
- /** A place numbering meta data */
1993
- sequencing?: Sequencing;
1994
- /**
1995
- * Place override (by seq_id)
1996
- * @deprecated
1997
- */
1998
- overrides?: Place[];
1999
- /**
2000
- * Final place sequence with overrides
2001
- * @readonly
2002
- */
2003
- places?: Place[];
2004
- /** Element reservation options */
2005
- reservationOptions?: ReservationOptions;
2006
- /** Element UI settings */
2007
- uiProperties?: ElementUiProperties;
2008
- /** Element group id */
2009
- elementGroupId?: number | null;
2010
- /** Multi row element relevant for MULTI_ROW element type */
2011
- multiRowProperties?: MultiRowProperties;
2012
- }
2013
- declare enum Type {
2014
- AREA = "AREA",
2015
- ROW = "ROW",
2016
- MULTI_ROW = "MULTI_ROW",
2017
- TABLE = "TABLE",
2018
- ROUND_TABLE = "ROUND_TABLE",
2019
- SHAPE = "SHAPE"
2020
- }
2021
- interface Sequencing {
2022
- /** First seq element */
2023
- startAt?: string;
2024
- /** Finite generated seq of labels */
2025
- labels?: string[];
2026
- /** If true - direction right to left. Otherwise left to right. */
2027
- reverseOrder?: boolean | null;
2028
- }
2029
- interface Place {
2030
- /** Local id of the place in the sequence */
2031
- index?: number;
2032
- /**
2033
- * Generated composite unique id in the seating plan.
2034
- * @readonly
2035
- */
2036
- _id?: string | null;
2037
- /** Unique label of the place */
2038
- label?: string;
2039
- /**
2040
- * Max capacity per place
2041
- * @readonly
2042
- */
2043
- capacity?: number | null;
2044
- /**
2045
- * Type of the parent element
2046
- * @readonly
2047
- */
2048
- elementType?: Type;
2049
- /**
2050
- * Assigned category id
2051
- * @readonly
2052
- */
2053
- categoryId?: number | null;
2054
- /** Place type */
2055
- type?: PlaceTypeEnumType;
2056
- }
2057
- declare enum PlaceTypeEnumType {
2058
- UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
2059
- STANDARD = "STANDARD",
2060
- WHEELCHAIR = "WHEELCHAIR",
2061
- ACCESSIBLE = "ACCESSIBLE",
2062
- COMPANION = "COMPANION",
2063
- OBSTRUCTED = "OBSTRUCTED",
2064
- DISCOUNT = "DISCOUNT"
2065
- }
2066
- interface ReservationOptions {
2067
- /** Indicates whether the entire element must be reserved */
2068
- reserveWholeElement?: boolean;
2069
- }
2070
- interface ElementUiProperties {
2071
- x?: number | null;
2072
- y?: number | null;
2073
- zIndex?: number | null;
2074
- width?: number | null;
2075
- height?: number | null;
2076
- rotationAngle?: number | null;
2077
- shapeType?: ShapeTypeEnumType;
2078
- fontSize?: number | null;
2079
- cornerRadius?: number | null;
2080
- seatSpacing?: number | null;
2081
- hideLabel?: boolean | null;
2082
- labelPosition?: Position;
2083
- seatLayout?: number[];
2084
- emptyTopSeatSpaces?: number | null;
2085
- /** needs research */
2086
- text?: string | null;
2087
- /** #F0F0F0 */
2088
- color?: string | null;
2089
- /** #F0F0F0 */
2090
- fillColor?: string | null;
2091
- /** #F0F0F0 */
2092
- strokeColor?: string | null;
2093
- /** px */
2094
- strokeWidth?: number | null;
2095
- opacity?: number | null;
2096
- icon?: Icon;
2097
- image?: Image;
2098
- seatNumbering?: Numbering;
2099
- }
2100
- declare enum ShapeTypeEnumType {
2101
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
2102
- TEXT = "TEXT",
2103
- RECTANGLE = "RECTANGLE",
2104
- ELLIPSE = "ELLIPSE",
2105
- LINE = "LINE",
2106
- ICON = "ICON",
2107
- IMAGE = "IMAGE"
2108
- }
2109
- declare enum Position {
2110
- UNKNOWN_POSITION = "UNKNOWN_POSITION",
2111
- LEFT = "LEFT",
2112
- RIGHT = "RIGHT",
2113
- BOTH = "BOTH",
2114
- NONE = "NONE"
2115
- }
2116
- declare enum Icon {
2117
- UNKNOWN_ICON = "UNKNOWN_ICON",
2118
- ENTER = "ENTER",
2119
- EXIT = "EXIT",
2120
- DRINKS = "DRINKS",
2121
- WC = "WC",
2122
- WC_MEN = "WC_MEN",
2123
- WC_WOMEN = "WC_WOMEN",
2124
- FOOD = "FOOD",
2125
- STAIRS = "STAIRS",
2126
- ELEVATOR = "ELEVATOR",
2127
- SMOKING = "SMOKING",
2128
- CHECKROOM = "CHECKROOM",
2129
- STAGE = "STAGE"
2130
- }
2131
- interface Image {
2132
- /** WixMedia image ID. */
2133
- _id?: string;
2134
- /**
2135
- * Original image height.
2136
- * @readonly
2137
- */
2138
- height?: number;
2139
- /**
2140
- * Original image width.
2141
- * @readonly
2142
- */
2143
- width?: number;
2144
- /**
2145
- * WixMedia image URI.
2146
- * @deprecated
2147
- */
2148
- uri?: string | null;
2149
- }
2150
- declare enum Numbering {
2151
- UNKNOWN_NUMBERING = "UNKNOWN_NUMBERING",
2152
- NUMERIC = "NUMERIC",
2153
- ODD_EVEN = "ODD_EVEN",
2154
- ALPHABETICAL = "ALPHABETICAL"
2155
- }
2156
- interface MultiRowProperties {
2157
- /** Individual rows of the multi row element */
2158
- rows?: RowElement[];
2159
- /** Meta data for vertical labeling */
2160
- verticalSequencing?: VerticalSequencing;
2161
- /** Row spacing */
2162
- rowSpacing?: number | null;
2163
- }
2164
- interface RowElement {
2165
- /** Unique row id */
2166
- _id?: number;
2167
- /** User friendly title/label of the row */
2168
- title?: string | null;
2169
- /** Row capacity */
2170
- capacity?: number | null;
2171
- /** Assigned to a category */
2172
- categoryId?: number | null;
2173
- /** A place numbering meta data for a single row */
2174
- sequencing?: Sequencing;
2175
- /** Row UI settings */
2176
- uiProperties?: RowElementUiProperties;
2177
- }
2178
- interface RowElementUiProperties {
2179
- /** Relative x position to the parent element */
2180
- relativeX?: number | null;
2181
- /** Width of the row */
2182
- width?: number | null;
2183
- /** Seat spacing */
2184
- seatSpacing?: number | null;
2185
- /** Label position */
2186
- labelPosition?: Position;
2187
- /** Seat numbering */
2188
- seatNumbering?: Numbering;
2189
- }
2190
- interface VerticalSequencing {
2191
- /** First seq element */
2192
- startAt?: string;
2193
- /** Row numbering */
2194
- rowNumbering?: Numbering;
2195
- /** If true - direction bottom to top. Otherwise top to bottom. */
2196
- reverseOrder?: boolean | null;
2197
- }
2198
- interface Category {
2199
- /** Local category id within the seating plan */
2200
- _id?: number;
2201
- /**
2202
- * A client defined external id for cross referencing.
2203
- * Can reference external entities.
2204
- * Format: "{entity_fqdn}:{entity_id}"
2205
- */
2206
- externalId?: string | null;
2207
- /** Category label */
2208
- title?: string;
2209
- /**
2210
- * Client configuration object
2211
- * @readonly
2212
- */
2213
- config?: Record<string, any> | null;
2214
- /**
2215
- * Total capacity
2216
- * @readonly
2217
- */
2218
- totalCapacity?: number | null;
2219
- /**
2220
- * Possible places
2221
- * @readonly
2222
- */
2223
- places?: Place[];
2224
- }
2225
- interface ExtendedFields {
2226
- /**
2227
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
2228
- * The value of each key is structured according to the schema defined when the extended fields were configured.
2229
- *
2230
- * You can only access fields for which you have the appropriate permissions.
2231
- *
2232
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
2233
- */
2234
- namespaces?: Record<string, Record<string, any>>;
2235
- }
2236
- interface SeatingPlanUiProperties {
2237
- /** #F0F0F0 */
2238
- backgroundColor?: string | null;
2239
- backgroundOpacity?: number | null;
2240
- }
2241
- interface ElementGroup {
2242
- /** Unique element group id */
2243
- _id?: number;
2244
- /** Parent group id */
2245
- parentElementGroupId?: number | null;
2246
- /** Element group UI settings */
2247
- uiProperties?: ElementGroupUiProperties;
2248
- }
2249
- interface ElementGroupUiProperties {
2250
- /** x position of the group */
2251
- x?: number | null;
2252
- /** y position of the group */
2253
- y?: number | null;
2254
- /** width of the group */
2255
- width?: number | null;
2256
- /** height of the group */
2257
- height?: number | null;
2258
- /** rotation angle of the group */
2259
- rotationAngle?: number | null;
2260
- }
2261
- interface SeatingReservationsSummary {
2262
- places?: PlaceReservationDetails[];
2263
- }
2264
- interface PlaceReservationDetails {
2265
- placeId?: string;
2266
- occupied?: number;
2267
- }
2268
- interface GetSeatingReservationSummaryRequest {
2269
- /** Seating plan external id */
2270
- externalId: string;
2271
- }
2272
- interface GetSeatingReservationSummaryResponse {
2273
- plan?: SeatingPlan;
2274
- places?: PlaceReservationDetails[];
2275
- }
2276
- interface RegenerateSummariesRequest {
2277
- /** Seating plan id */
2278
- planId?: string | null;
2279
- }
2280
- interface RegenerateSummariesResponse {
2281
- seatingReservationsSummary?: SeatingReservationsSummary;
2282
- categories?: CategoryDetails[];
2283
- }
2284
- interface DomainEvent extends DomainEventBodyOneOf {
2285
- createdEvent?: EntityCreatedEvent;
2286
- updatedEvent?: EntityUpdatedEvent;
2287
- deletedEvent?: EntityDeletedEvent;
2288
- actionEvent?: ActionEvent;
2289
- /**
2290
- * Unique event ID.
2291
- * Allows clients to ignore duplicate webhooks.
2292
- */
2293
- _id?: string;
2294
- /**
2295
- * Assumes actions are also always typed to an entity_type
2296
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2297
- */
2298
- entityFqdn?: string;
2299
- /**
2300
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2301
- * This is although the created/updated/deleted notion is duplication of the oneof types
2302
- * Example: created/updated/deleted/started/completed/email_opened
2303
- */
2304
- slug?: string;
2305
- /** ID of the entity associated with the event. */
2306
- entityId?: string;
2307
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2308
- eventTime?: Date | null;
2309
- /**
2310
- * Whether the event was triggered as a result of a privacy regulation application
2311
- * (for example, GDPR).
2312
- */
2313
- triggeredByAnonymizeRequest?: boolean | null;
2314
- /** If present, indicates the action that triggered the event. */
2315
- originatedFrom?: string | null;
2316
- /**
2317
- * A sequence number defining the order of updates to the underlying entity.
2318
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
2319
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2320
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2321
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
2322
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2323
- */
2324
- entityEventSequence?: string | null;
2325
- }
2326
- /** @oneof */
2327
- interface DomainEventBodyOneOf {
2328
- createdEvent?: EntityCreatedEvent;
2329
- updatedEvent?: EntityUpdatedEvent;
2330
- deletedEvent?: EntityDeletedEvent;
2331
- actionEvent?: ActionEvent;
2332
- }
2333
- interface EntityCreatedEvent {
2334
- entity?: string;
2335
- }
2336
- interface RestoreInfo {
2337
- deletedDate?: Date | null;
2338
- }
2339
- interface EntityUpdatedEvent {
2340
- /**
2341
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2342
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2343
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2344
- */
2345
- currentEntity?: string;
2346
- }
2347
- interface EntityDeletedEvent {
2348
- /** Entity that was deleted */
2349
- deletedEntity?: string | null;
2350
- }
2351
- interface ActionEvent {
2352
- body?: string;
2353
- }
2354
- interface MessageEnvelope {
2355
- /** App instance ID. */
2356
- instanceId?: string | null;
2357
- /** Event type. */
2358
- eventType?: string;
2359
- /** The identification type and identity data. */
2360
- identity?: IdentificationData;
2361
- /** Stringify payload. */
2362
- data?: string;
2363
- }
2364
- interface IdentificationData extends IdentificationDataIdOneOf {
2365
- /** ID of a site visitor that has not logged in to the site. */
2366
- anonymousVisitorId?: string;
2367
- /** ID of a site visitor that has logged in to the site. */
2368
- memberId?: string;
2369
- /** ID of a Wix user (site owner, contributor, etc.). */
2370
- wixUserId?: string;
2371
- /** ID of an app. */
2372
- appId?: string;
2373
- /** @readonly */
2374
- identityType?: WebhookIdentityType;
2375
- }
2376
- /** @oneof */
2377
- interface IdentificationDataIdOneOf {
2378
- /** ID of a site visitor that has not logged in to the site. */
2379
- anonymousVisitorId?: string;
2380
- /** ID of a site visitor that has logged in to the site. */
2381
- memberId?: string;
2382
- /** ID of a Wix user (site owner, contributor, etc.). */
2383
- wixUserId?: string;
2384
- /** ID of an app. */
2385
- appId?: string;
2386
- }
2387
- declare enum WebhookIdentityType {
2388
- UNKNOWN = "UNKNOWN",
2389
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2390
- MEMBER = "MEMBER",
2391
- WIX_USER = "WIX_USER",
2392
- APP = "APP"
2393
- }
2394
- interface PlaceReservationNonNullableFields {
2395
- _id: string;
2396
- }
2397
- interface SeatingReservationNonNullableFields {
2398
- reservedPlaces: PlaceReservationNonNullableFields[];
2399
- }
2400
- interface CreateSeatingReservationResponseNonNullableFields {
2401
- reservation?: SeatingReservationNonNullableFields;
2402
- }
2403
- interface GetReservationResponseNonNullableFields {
2404
- reservation?: SeatingReservationNonNullableFields;
2405
- }
2406
- interface QuerySeatingReservationResponseNonNullableFields {
2407
- reservations: SeatingReservationNonNullableFields[];
2408
- }
2409
- interface DeleteSeatingReservationResponseNonNullableFields {
2410
- reservation?: SeatingReservationNonNullableFields;
2411
- }
2412
- interface SequencingNonNullableFields {
2413
- startAt: string;
2414
- labels: string[];
2415
- }
2416
- interface PlaceNonNullableFields {
2417
- index: number;
2418
- label: string;
2419
- elementType: Type;
2420
- type: PlaceTypeEnumType;
2421
- }
2422
- interface ReservationOptionsNonNullableFields {
2423
- reserveWholeElement: boolean;
2424
- }
2425
- interface ImageNonNullableFields {
2426
- _id: string;
2427
- height: number;
2428
- width: number;
2429
- }
2430
- interface ElementUiPropertiesNonNullableFields {
2431
- shapeType: ShapeTypeEnumType;
2432
- labelPosition: Position;
2433
- seatLayout: number[];
2434
- icon: Icon;
2435
- image?: ImageNonNullableFields;
2436
- seatNumbering: Numbering;
2437
- }
2438
- interface RowElementUiPropertiesNonNullableFields {
2439
- labelPosition: Position;
2440
- seatNumbering: Numbering;
2441
- }
2442
- interface RowElementNonNullableFields {
2443
- _id: number;
2444
- sequencing?: SequencingNonNullableFields;
2445
- uiProperties?: RowElementUiPropertiesNonNullableFields;
2446
- }
2447
- interface VerticalSequencingNonNullableFields {
2448
- startAt: string;
2449
- rowNumbering: Numbering;
2450
- }
2451
- interface MultiRowPropertiesNonNullableFields {
2452
- rows: RowElementNonNullableFields[];
2453
- verticalSequencing?: VerticalSequencingNonNullableFields;
2454
- }
2455
- interface ElementNonNullableFields {
2456
- _id: number;
2457
- type: Type;
2458
- sequencing?: SequencingNonNullableFields;
2459
- overrides: PlaceNonNullableFields[];
2460
- places: PlaceNonNullableFields[];
2461
- reservationOptions?: ReservationOptionsNonNullableFields;
2462
- uiProperties?: ElementUiPropertiesNonNullableFields;
2463
- multiRowProperties?: MultiRowPropertiesNonNullableFields;
2464
- }
2465
- interface SectionNonNullableFields {
2466
- _id: number;
2467
- elements: ElementNonNullableFields[];
2468
- default: boolean;
2469
- }
2470
- interface CategoryNonNullableFields {
2471
- _id: number;
2472
- title: string;
2473
- places: PlaceNonNullableFields[];
2474
- }
2475
- interface ElementGroupNonNullableFields {
2476
- _id: number;
2477
- }
2478
- interface SeatingPlanNonNullableFields {
2479
- sections: SectionNonNullableFields[];
2480
- categories: CategoryNonNullableFields[];
2481
- uncategorizedPlaces: PlaceNonNullableFields[];
2482
- elementGroups: ElementGroupNonNullableFields[];
2483
- }
2484
- interface PlaceReservationDetailsNonNullableFields {
2485
- placeId: string;
2486
- occupied: number;
2487
- }
2488
- interface SeatingReservationsSummaryNonNullableFields {
2489
- places: PlaceReservationDetailsNonNullableFields[];
2490
- }
2491
- interface GetSeatingReservationsSummaryResponseNonNullableFields {
2492
- plan?: SeatingPlanNonNullableFields;
2493
- seatingReservationsSummary?: SeatingReservationsSummaryNonNullableFields;
2494
- }
2495
- interface GetSeatingReservationSummaryResponseNonNullableFields {
2496
- plan?: SeatingPlanNonNullableFields;
2497
- places: PlaceReservationDetailsNonNullableFields[];
2498
- }
2499
- interface BaseEventMetadata {
2500
- /** App instance ID. */
2501
- instanceId?: string | null;
2502
- /** Event type. */
2503
- eventType?: string;
2504
- /** The identification type and identity data. */
2505
- identity?: IdentificationData;
2506
- }
2507
- interface EventMetadata extends BaseEventMetadata {
2508
- /**
2509
- * Unique event ID.
2510
- * Allows clients to ignore duplicate webhooks.
2511
- */
2512
- _id?: string;
2513
- /**
2514
- * Assumes actions are also always typed to an entity_type
2515
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2516
- */
2517
- entityFqdn?: string;
2518
- /**
2519
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2520
- * This is although the created/updated/deleted notion is duplication of the oneof types
2521
- * Example: created/updated/deleted/started/completed/email_opened
2522
- */
2523
- slug?: string;
2524
- /** ID of the entity associated with the event. */
2525
- entityId?: string;
2526
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2527
- eventTime?: Date | null;
2528
- /**
2529
- * Whether the event was triggered as a result of a privacy regulation application
2530
- * (for example, GDPR).
2531
- */
2532
- triggeredByAnonymizeRequest?: boolean | null;
2533
- /** If present, indicates the action that triggered the event. */
2534
- originatedFrom?: string | null;
2535
- /**
2536
- * A sequence number defining the order of updates to the underlying entity.
2537
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
2538
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2539
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2540
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
2541
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2542
- */
2543
- entityEventSequence?: string | null;
2544
- }
2545
- interface SeatingReservationCreatedEnvelope {
2546
- entity: SeatingReservation;
2547
- metadata: EventMetadata;
2548
- }
2549
- interface SeatingReservationDeletedEnvelope {
2550
- entity: SeatingReservation;
2551
- metadata: EventMetadata;
2552
- }
2553
- interface CreateSeatingReservationOptions {
2554
- /** A reservation to create */
2555
- reservation?: SeatingReservation;
2556
- }
2557
- interface QueryCursorResult {
2558
- cursors: Cursors;
2559
- hasNext: () => boolean;
2560
- hasPrev: () => boolean;
2561
- length: number;
2562
- pageSize: number;
2563
- }
2564
- interface ReservationsQueryResult extends QueryCursorResult {
2565
- items: SeatingReservation[];
2566
- query: ReservationsQueryBuilder;
2567
- next: () => Promise<ReservationsQueryResult>;
2568
- prev: () => Promise<ReservationsQueryResult>;
2569
- }
2570
- interface ReservationsQueryBuilder {
2571
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2572
- * @documentationMaturity preview
2573
- */
2574
- limit: (limit: number) => ReservationsQueryBuilder;
2575
- /** @param cursor - A pointer to specific record
2576
- * @documentationMaturity preview
2577
- */
2578
- skipTo: (cursor: string) => ReservationsQueryBuilder;
2579
- /** @documentationMaturity preview */
2580
- find: () => Promise<ReservationsQueryResult>;
2581
- }
2582
- interface GetSeatingCategoriesSummaryOptions {
2583
- /** Seating plan external id */
2584
- externalId?: string[];
2585
- }
2586
- interface GetSeatingCategorySummaryOptions {
2587
- /** Seating plan external id */
2588
- externalId?: string;
2589
- }
2590
-
2591
- declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
2592
- interface CreateSeatingReservationSignature {
2593
- /**
2594
- * Creates a seating reservation
2595
- * @returns Created reservation
2596
- */
2597
- (options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
2598
- }
2599
- declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
2600
- interface GetReservationSignature {
2601
- /**
2602
- * Returns available seat counts by category id
2603
- * @param - The id of the reservation to return
2604
- * @returns Created reservation
2605
- */
2606
- (_id: string | null): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
2607
- }
2608
- declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
2609
- interface QuerySeatingReservationSignature {
2610
- /**
2611
- * Lists seating reservations by query request
2612
- */
2613
- (): ReservationsQueryBuilder;
2614
- }
2615
- declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
2616
- interface DeleteSeatingReservationSignature {
2617
- /**
2618
- * Deletes the seating reservation
2619
- * @param - The id of the reservation to delete
2620
- */
2621
- (_id: string | null): Promise<DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields>;
2622
- }
2623
- declare function getSeatingCategoriesSummary$1(httpClient: HttpClient): GetSeatingCategoriesSummarySignature;
2624
- interface GetSeatingCategoriesSummarySignature {
2625
- /** @deprecated */
2626
- (options?: GetSeatingCategoriesSummaryOptions | undefined): Promise<GetSeatingCategoriesSummaryResponse>;
2627
- }
2628
- declare function getSeatingCategorySummary$1(httpClient: HttpClient): GetSeatingCategorySummarySignature;
2629
- interface GetSeatingCategorySummarySignature {
2630
- /** */
2631
- (options?: GetSeatingCategorySummaryOptions | undefined): Promise<GetSeatingCategorySummaryResponse>;
2632
- }
2633
- declare function getSeatingReservationsSummary$1(httpClient: HttpClient): GetSeatingReservationsSummarySignature;
2634
- interface GetSeatingReservationsSummarySignature {
2635
- /**
2636
- * @param - Filter for seating plan
2637
- * @deprecated
2638
- */
2639
- (filter: Record<string, any> | null): Promise<GetSeatingReservationsSummaryResponse & GetSeatingReservationsSummaryResponseNonNullableFields>;
2640
- }
2641
- declare function getSeatingReservationSummary$1(httpClient: HttpClient): GetSeatingReservationSummarySignature;
2642
- interface GetSeatingReservationSummarySignature {
2643
- /** @param - Seating plan external id */
2644
- (externalId: string): Promise<GetSeatingReservationSummaryResponse & GetSeatingReservationSummaryResponseNonNullableFields>;
2645
- }
2646
- declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
2647
- declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
2648
-
2649
- declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2650
-
2651
- declare const createSeatingReservation: MaybeContext<BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1>;
2652
- declare const getReservation: MaybeContext<BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1>;
2653
- declare const querySeatingReservation: MaybeContext<BuildRESTFunction<typeof querySeatingReservation$1> & typeof querySeatingReservation$1>;
2654
- declare const deleteSeatingReservation: MaybeContext<BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1>;
2655
- declare const getSeatingCategoriesSummary: MaybeContext<BuildRESTFunction<typeof getSeatingCategoriesSummary$1> & typeof getSeatingCategoriesSummary$1>;
2656
- declare const getSeatingCategorySummary: MaybeContext<BuildRESTFunction<typeof getSeatingCategorySummary$1> & typeof getSeatingCategorySummary$1>;
2657
- declare const getSeatingReservationsSummary: MaybeContext<BuildRESTFunction<typeof getSeatingReservationsSummary$1> & typeof getSeatingReservationsSummary$1>;
2658
- declare const getSeatingReservationSummary: MaybeContext<BuildRESTFunction<typeof getSeatingReservationSummary$1> & typeof getSeatingReservationSummary$1>;
2659
-
2660
- type _publicOnSeatingReservationCreatedType = typeof onSeatingReservationCreated$1;
2661
- /** */
2662
- declare const onSeatingReservationCreated: ReturnType<typeof createEventModule<_publicOnSeatingReservationCreatedType>>;
2663
-
2664
- type _publicOnSeatingReservationDeletedType = typeof onSeatingReservationDeleted$1;
2665
- /** */
2666
- declare const onSeatingReservationDeleted: ReturnType<typeof createEventModule<_publicOnSeatingReservationDeletedType>>;
2667
-
2668
- type index_d_ActionEvent = ActionEvent;
2669
- type index_d_App = App;
2670
- type index_d_BaseEventMetadata = BaseEventMetadata;
2671
- type index_d_Category = Category;
2672
- type index_d_CategoryDetails = CategoryDetails;
2673
- type index_d_CreateSeatingReservationOptions = CreateSeatingReservationOptions;
2674
- type index_d_CreateSeatingReservationRequest = CreateSeatingReservationRequest;
2675
- type index_d_CreateSeatingReservationResponse = CreateSeatingReservationResponse;
2676
- type index_d_CreateSeatingReservationResponseNonNullableFields = CreateSeatingReservationResponseNonNullableFields;
2677
- type index_d_CursorPaging = CursorPaging;
2678
- type index_d_Cursors = Cursors;
2679
- type index_d_DeleteSeatingPlaceReservationRequest = DeleteSeatingPlaceReservationRequest;
2680
- type index_d_DeleteSeatingReservationRequest = DeleteSeatingReservationRequest;
2681
- type index_d_DeleteSeatingReservationResponse = DeleteSeatingReservationResponse;
2682
- type index_d_DeleteSeatingReservationResponseNonNullableFields = DeleteSeatingReservationResponseNonNullableFields;
2683
- type index_d_DomainEvent = DomainEvent;
2684
- type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
2685
- type index_d_Element = Element;
2686
- type index_d_ElementGroup = ElementGroup;
2687
- type index_d_ElementGroupUiProperties = ElementGroupUiProperties;
2688
- type index_d_ElementUiProperties = ElementUiProperties;
2689
- type index_d_Empty = Empty;
2690
- type index_d_EntityCreatedEvent = EntityCreatedEvent;
2691
- type index_d_EntityDeletedEvent = EntityDeletedEvent;
2692
- type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
2693
- type index_d_EventMetadata = EventMetadata;
2694
- type index_d_ExtendedFields = ExtendedFields;
2695
- type index_d_File = File;
2696
- type index_d_GetReservationRequest = GetReservationRequest;
2697
- type index_d_GetReservationResponse = GetReservationResponse;
2698
- type index_d_GetReservationResponseNonNullableFields = GetReservationResponseNonNullableFields;
2699
- type index_d_GetReservedPlacesRequest = GetReservedPlacesRequest;
2700
- type index_d_GetReservedPlacesResponse = GetReservedPlacesResponse;
2701
- type index_d_GetSeatingCategoriesSummaryOptions = GetSeatingCategoriesSummaryOptions;
2702
- type index_d_GetSeatingCategoriesSummaryRequest = GetSeatingCategoriesSummaryRequest;
2703
- type index_d_GetSeatingCategoriesSummaryResponse = GetSeatingCategoriesSummaryResponse;
2704
- type index_d_GetSeatingCategorySummaryOptions = GetSeatingCategorySummaryOptions;
2705
- type index_d_GetSeatingCategorySummaryRequest = GetSeatingCategorySummaryRequest;
2706
- type index_d_GetSeatingCategorySummaryResponse = GetSeatingCategorySummaryResponse;
2707
- type index_d_GetSeatingReservationSummaryRequest = GetSeatingReservationSummaryRequest;
2708
- type index_d_GetSeatingReservationSummaryResponse = GetSeatingReservationSummaryResponse;
2709
- type index_d_GetSeatingReservationSummaryResponseNonNullableFields = GetSeatingReservationSummaryResponseNonNullableFields;
2710
- type index_d_GetSeatingReservationsSummaryRequest = GetSeatingReservationsSummaryRequest;
2711
- type index_d_GetSeatingReservationsSummaryResponse = GetSeatingReservationsSummaryResponse;
2712
- type index_d_GetSeatingReservationsSummaryResponseNonNullableFields = GetSeatingReservationsSummaryResponseNonNullableFields;
2713
- type index_d_Icon = Icon;
2714
- declare const index_d_Icon: typeof Icon;
2715
- type index_d_IdentificationData = IdentificationData;
2716
- type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
2717
- type index_d_Image = Image;
2718
- type index_d_InvalidateCache = InvalidateCache;
2719
- type index_d_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
2720
- type index_d_MessageEnvelope = MessageEnvelope;
2721
- type index_d_MultiRowProperties = MultiRowProperties;
2722
- type index_d_Numbering = Numbering;
2723
- declare const index_d_Numbering: typeof Numbering;
2724
- type index_d_Page = Page;
2725
- type index_d_Paging = Paging;
2726
- type index_d_PagingMetadataV2 = PagingMetadataV2;
2727
- type index_d_Place = Place;
2728
- type index_d_PlaceReservation = PlaceReservation;
2729
- type index_d_PlaceReservationDetails = PlaceReservationDetails;
2730
- type index_d_PlaceTypeEnumType = PlaceTypeEnumType;
2731
- declare const index_d_PlaceTypeEnumType: typeof PlaceTypeEnumType;
2732
- type index_d_Places = Places;
2733
- type index_d_Position = Position;
2734
- declare const index_d_Position: typeof Position;
2735
- type index_d_QuerySeatingReservationRequest = QuerySeatingReservationRequest;
2736
- type index_d_QuerySeatingReservationResponse = QuerySeatingReservationResponse;
2737
- type index_d_QuerySeatingReservationResponseNonNullableFields = QuerySeatingReservationResponseNonNullableFields;
2738
- type index_d_QueryV2 = QueryV2;
2739
- type index_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
2740
- type index_d_RegenerateSummariesRequest = RegenerateSummariesRequest;
2741
- type index_d_RegenerateSummariesResponse = RegenerateSummariesResponse;
2742
- type index_d_ReservationErrorDetails = ReservationErrorDetails;
2743
- type index_d_ReservationOptions = ReservationOptions;
2744
- type index_d_ReservationsQueryBuilder = ReservationsQueryBuilder;
2745
- type index_d_ReservationsQueryResult = ReservationsQueryResult;
2746
- type index_d_RestoreInfo = RestoreInfo;
2747
- type index_d_RowElement = RowElement;
2748
- type index_d_RowElementUiProperties = RowElementUiProperties;
2749
- type index_d_SeatingPlan = SeatingPlan;
2750
- type index_d_SeatingPlanCategoriesSummaryUpdated = SeatingPlanCategoriesSummaryUpdated;
2751
- type index_d_SeatingPlanUiProperties = SeatingPlanUiProperties;
2752
- type index_d_SeatingReservation = SeatingReservation;
2753
- type index_d_SeatingReservationCreatedEnvelope = SeatingReservationCreatedEnvelope;
2754
- type index_d_SeatingReservationDeletedEnvelope = SeatingReservationDeletedEnvelope;
2755
- type index_d_SeatingReservationNonNullableFields = SeatingReservationNonNullableFields;
2756
- type index_d_SeatingReservationsSummary = SeatingReservationsSummary;
2757
- type index_d_Section = Section;
2758
- type index_d_Sequencing = Sequencing;
2759
- type index_d_ShapeTypeEnumType = ShapeTypeEnumType;
2760
- declare const index_d_ShapeTypeEnumType: typeof ShapeTypeEnumType;
2761
- type index_d_SortOrder = SortOrder;
2762
- declare const index_d_SortOrder: typeof SortOrder;
2763
- type index_d_Sorting = Sorting;
2764
- type index_d_Type = Type;
2765
- declare const index_d_Type: typeof Type;
2766
- type index_d_URI = URI;
2767
- type index_d_UnavailablePlaces = UnavailablePlaces;
2768
- type index_d_VerticalSequencing = VerticalSequencing;
2769
- type index_d_WebhookIdentityType = WebhookIdentityType;
2770
- declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
2771
- type index_d__publicOnSeatingReservationCreatedType = _publicOnSeatingReservationCreatedType;
2772
- type index_d__publicOnSeatingReservationDeletedType = _publicOnSeatingReservationDeletedType;
2773
- declare const index_d_createSeatingReservation: typeof createSeatingReservation;
2774
- declare const index_d_deleteSeatingReservation: typeof deleteSeatingReservation;
2775
- declare const index_d_getReservation: typeof getReservation;
2776
- declare const index_d_getSeatingCategoriesSummary: typeof getSeatingCategoriesSummary;
2777
- declare const index_d_getSeatingCategorySummary: typeof getSeatingCategorySummary;
2778
- declare const index_d_getSeatingReservationSummary: typeof getSeatingReservationSummary;
2779
- declare const index_d_getSeatingReservationsSummary: typeof getSeatingReservationsSummary;
2780
- declare const index_d_onSeatingReservationCreated: typeof onSeatingReservationCreated;
2781
- declare const index_d_onSeatingReservationDeleted: typeof onSeatingReservationDeleted;
2782
- declare const index_d_querySeatingReservation: typeof querySeatingReservation;
2783
- declare namespace index_d {
2784
- export { type index_d_ActionEvent as ActionEvent, type index_d_App as App, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_Category as Category, type index_d_CategoryDetails as CategoryDetails, type index_d_CreateSeatingReservationOptions as CreateSeatingReservationOptions, type index_d_CreateSeatingReservationRequest as CreateSeatingReservationRequest, type index_d_CreateSeatingReservationResponse as CreateSeatingReservationResponse, type index_d_CreateSeatingReservationResponseNonNullableFields as CreateSeatingReservationResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteSeatingPlaceReservationRequest as DeleteSeatingPlaceReservationRequest, type index_d_DeleteSeatingReservationRequest as DeleteSeatingReservationRequest, type index_d_DeleteSeatingReservationResponse as DeleteSeatingReservationResponse, type index_d_DeleteSeatingReservationResponseNonNullableFields as DeleteSeatingReservationResponseNonNullableFields, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Element as Element, type index_d_ElementGroup as ElementGroup, type index_d_ElementGroupUiProperties as ElementGroupUiProperties, type index_d_ElementUiProperties as ElementUiProperties, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_File as File, type index_d_GetReservationRequest as GetReservationRequest, type index_d_GetReservationResponse as GetReservationResponse, type index_d_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d_GetReservedPlacesRequest as GetReservedPlacesRequest, type index_d_GetReservedPlacesResponse as GetReservedPlacesResponse, type index_d_GetSeatingCategoriesSummaryOptions as GetSeatingCategoriesSummaryOptions, type index_d_GetSeatingCategoriesSummaryRequest as GetSeatingCategoriesSummaryRequest, type index_d_GetSeatingCategoriesSummaryResponse as GetSeatingCategoriesSummaryResponse, type index_d_GetSeatingCategorySummaryOptions as GetSeatingCategorySummaryOptions, type index_d_GetSeatingCategorySummaryRequest as GetSeatingCategorySummaryRequest, type index_d_GetSeatingCategorySummaryResponse as GetSeatingCategorySummaryResponse, type index_d_GetSeatingReservationSummaryRequest as GetSeatingReservationSummaryRequest, type index_d_GetSeatingReservationSummaryResponse as GetSeatingReservationSummaryResponse, type index_d_GetSeatingReservationSummaryResponseNonNullableFields as GetSeatingReservationSummaryResponseNonNullableFields, type index_d_GetSeatingReservationsSummaryRequest as GetSeatingReservationsSummaryRequest, type index_d_GetSeatingReservationsSummaryResponse as GetSeatingReservationsSummaryResponse, type index_d_GetSeatingReservationsSummaryResponseNonNullableFields as GetSeatingReservationsSummaryResponseNonNullableFields, index_d_Icon as Icon, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Image as Image, type index_d_InvalidateCache as InvalidateCache, type index_d_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MultiRowProperties as MultiRowProperties, index_d_Numbering as Numbering, type index_d_Page as Page, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Place as Place, type index_d_PlaceReservation as PlaceReservation, type index_d_PlaceReservationDetails as PlaceReservationDetails, index_d_PlaceTypeEnumType as PlaceTypeEnumType, type index_d_Places as Places, index_d_Position as Position, type index_d_QuerySeatingReservationRequest as QuerySeatingReservationRequest, type index_d_QuerySeatingReservationResponse as QuerySeatingReservationResponse, type index_d_QuerySeatingReservationResponseNonNullableFields as QuerySeatingReservationResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_RegenerateSummariesRequest as RegenerateSummariesRequest, type index_d_RegenerateSummariesResponse as RegenerateSummariesResponse, type index_d_ReservationErrorDetails as ReservationErrorDetails, type index_d_ReservationOptions as ReservationOptions, type index_d_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d_ReservationsQueryResult as ReservationsQueryResult, type index_d_RestoreInfo as RestoreInfo, type index_d_RowElement as RowElement, type index_d_RowElementUiProperties as RowElementUiProperties, type index_d_SeatingPlan as SeatingPlan, type index_d_SeatingPlanCategoriesSummaryUpdated as SeatingPlanCategoriesSummaryUpdated, type index_d_SeatingPlanUiProperties as SeatingPlanUiProperties, type index_d_SeatingReservation as SeatingReservation, type index_d_SeatingReservationCreatedEnvelope as SeatingReservationCreatedEnvelope, type index_d_SeatingReservationDeletedEnvelope as SeatingReservationDeletedEnvelope, type index_d_SeatingReservationNonNullableFields as SeatingReservationNonNullableFields, type index_d_SeatingReservationsSummary as SeatingReservationsSummary, type index_d_Section as Section, type index_d_Sequencing as Sequencing, index_d_ShapeTypeEnumType as ShapeTypeEnumType, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Type as Type, type index_d_URI as URI, type index_d_UnavailablePlaces as UnavailablePlaces, type index_d_VerticalSequencing as VerticalSequencing, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnSeatingReservationCreatedType as _publicOnSeatingReservationCreatedType, type index_d__publicOnSeatingReservationDeletedType as _publicOnSeatingReservationDeletedType, index_d_createSeatingReservation as createSeatingReservation, index_d_deleteSeatingReservation as deleteSeatingReservation, index_d_getReservation as getReservation, index_d_getSeatingCategoriesSummary as getSeatingCategoriesSummary, index_d_getSeatingCategorySummary as getSeatingCategorySummary, index_d_getSeatingReservationSummary as getSeatingReservationSummary, index_d_getSeatingReservationsSummary as getSeatingReservationsSummary, index_d_onSeatingReservationCreated as onSeatingReservationCreated, index_d_onSeatingReservationDeleted as onSeatingReservationDeleted, onSeatingReservationCreated$1 as publicOnSeatingReservationCreated, onSeatingReservationDeleted$1 as publicOnSeatingReservationDeleted, index_d_querySeatingReservation as querySeatingReservation };
2785
- }
2786
-
2787
- export { index_d$1 as seatingPlan, index_d as seatingReservation };