@wix/seatings 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +3 -2
- package/build/cjs/index.js +4 -2
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +3 -2
- package/build/es/index.js +3 -2
- package/build/es/index.js.map +1 -1
- package/package.json +7 -6
- package/type-bundles/context.bundle.d.ts +2214 -24
- package/type-bundles/index.bundle.d.ts +424 -714
- package/type-bundles/meta.bundle.d.ts +412 -1118
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
interface SeatingPlan$1 {
|
|
2
46
|
/**
|
|
3
47
|
* Auto generated unique plan id
|
|
@@ -119,11 +163,7 @@ interface Sequencing$1 {
|
|
|
119
163
|
reverseOrder?: boolean | null;
|
|
120
164
|
}
|
|
121
165
|
interface Place$1 {
|
|
122
|
-
/**
|
|
123
|
-
* Local id of the place in the sequence
|
|
124
|
-
* @deprecated
|
|
125
|
-
* @targetRemovalDate 2024-07-01
|
|
126
|
-
*/
|
|
166
|
+
/** Local id of the place in the sequence */
|
|
127
167
|
index?: number;
|
|
128
168
|
/**
|
|
129
169
|
* Generated composite unique id in the seating plan.
|
|
@@ -147,6 +187,17 @@ interface Place$1 {
|
|
|
147
187
|
* @readonly
|
|
148
188
|
*/
|
|
149
189
|
categoryId?: number | null;
|
|
190
|
+
/** Place type */
|
|
191
|
+
type?: PlaceTypeEnumType$1;
|
|
192
|
+
}
|
|
193
|
+
declare enum PlaceTypeEnumType$1 {
|
|
194
|
+
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
195
|
+
STANDARD = "STANDARD",
|
|
196
|
+
WHEELCHAIR = "WHEELCHAIR",
|
|
197
|
+
ACCESSIBLE = "ACCESSIBLE",
|
|
198
|
+
COMPANION = "COMPANION",
|
|
199
|
+
OBSTRUCTED = "OBSTRUCTED",
|
|
200
|
+
DISCOUNT = "DISCOUNT"
|
|
150
201
|
}
|
|
151
202
|
interface ReservationOptions$1 {
|
|
152
203
|
/** Indicates whether the entire element must be reserved */
|
|
@@ -263,6 +314,8 @@ interface RowElement$1 {
|
|
|
263
314
|
interface RowElementUiProperties$1 {
|
|
264
315
|
/** Relative x position to the parent element */
|
|
265
316
|
relativeX?: number | null;
|
|
317
|
+
/** Width of the row */
|
|
318
|
+
width?: number | null;
|
|
266
319
|
/** Seat spacing */
|
|
267
320
|
seatSpacing?: number | null;
|
|
268
321
|
/** Label position */
|
|
@@ -392,17 +445,15 @@ interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
|
|
|
392
445
|
/** 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`. */
|
|
393
446
|
cursorPaging?: CursorPaging$1;
|
|
394
447
|
/**
|
|
395
|
-
* Filter object
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
* "fieldName2":{"$operator":"value2"}
|
|
399
|
-
* }`
|
|
400
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
448
|
+
* Filter object.
|
|
449
|
+
*
|
|
450
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
401
451
|
*/
|
|
402
452
|
filter?: Record<string, any> | null;
|
|
403
453
|
/**
|
|
404
|
-
* Sort object
|
|
405
|
-
*
|
|
454
|
+
* Sort object.
|
|
455
|
+
*
|
|
456
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
406
457
|
*/
|
|
407
458
|
sort?: Sorting$1[];
|
|
408
459
|
/** 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. */
|
|
@@ -530,7 +581,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
530
581
|
slug?: string;
|
|
531
582
|
/** ID of the entity associated with the event. */
|
|
532
583
|
entityId?: string;
|
|
533
|
-
/** Event timestamp. */
|
|
584
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
534
585
|
eventTime?: Date;
|
|
535
586
|
/**
|
|
536
587
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -701,390 +752,98 @@ interface RestoreSeatingPlanResponse {
|
|
|
701
752
|
/** Seating Plan */
|
|
702
753
|
plan?: SeatingPlan$1;
|
|
703
754
|
}
|
|
755
|
+
interface SequencingNonNullableFields$1 {
|
|
756
|
+
startAt: string;
|
|
757
|
+
labels: string[];
|
|
758
|
+
}
|
|
759
|
+
interface PlaceNonNullableFields$1 {
|
|
760
|
+
index: number;
|
|
761
|
+
label: string;
|
|
762
|
+
elementType: Type$1;
|
|
763
|
+
type: PlaceTypeEnumType$1;
|
|
764
|
+
}
|
|
765
|
+
interface ReservationOptionsNonNullableFields$1 {
|
|
766
|
+
reserveWholeElement: boolean;
|
|
767
|
+
}
|
|
768
|
+
interface ImageNonNullableFields$1 {
|
|
769
|
+
_id: string;
|
|
770
|
+
height: number;
|
|
771
|
+
width: number;
|
|
772
|
+
}
|
|
773
|
+
interface ElementUiPropertiesNonNullableFields$1 {
|
|
774
|
+
shapeType: ShapeTypeEnumType$1;
|
|
775
|
+
labelPosition: Position$1;
|
|
776
|
+
seatLayout: number[];
|
|
777
|
+
icon: Icon$1;
|
|
778
|
+
image?: ImageNonNullableFields$1;
|
|
779
|
+
seatNumbering: Numbering$1;
|
|
780
|
+
}
|
|
781
|
+
interface RowElementUiPropertiesNonNullableFields$1 {
|
|
782
|
+
labelPosition: Position$1;
|
|
783
|
+
seatNumbering: Numbering$1;
|
|
784
|
+
}
|
|
785
|
+
interface RowElementNonNullableFields$1 {
|
|
786
|
+
_id: number;
|
|
787
|
+
sequencing?: SequencingNonNullableFields$1;
|
|
788
|
+
uiProperties?: RowElementUiPropertiesNonNullableFields$1;
|
|
789
|
+
}
|
|
790
|
+
interface VerticalSequencingNonNullableFields$1 {
|
|
791
|
+
startAt: string;
|
|
792
|
+
rowNumbering: Numbering$1;
|
|
793
|
+
}
|
|
794
|
+
interface MultiRowPropertiesNonNullableFields$1 {
|
|
795
|
+
rows: RowElementNonNullableFields$1[];
|
|
796
|
+
verticalSequencing?: VerticalSequencingNonNullableFields$1;
|
|
797
|
+
}
|
|
798
|
+
interface ElementNonNullableFields$1 {
|
|
799
|
+
_id: number;
|
|
800
|
+
type: Type$1;
|
|
801
|
+
sequencing?: SequencingNonNullableFields$1;
|
|
802
|
+
overrides: PlaceNonNullableFields$1[];
|
|
803
|
+
places: PlaceNonNullableFields$1[];
|
|
804
|
+
reservationOptions?: ReservationOptionsNonNullableFields$1;
|
|
805
|
+
uiProperties?: ElementUiPropertiesNonNullableFields$1;
|
|
806
|
+
multiRowProperties?: MultiRowPropertiesNonNullableFields$1;
|
|
807
|
+
}
|
|
808
|
+
interface SectionNonNullableFields$1 {
|
|
809
|
+
_id: number;
|
|
810
|
+
elements: ElementNonNullableFields$1[];
|
|
811
|
+
default: boolean;
|
|
812
|
+
}
|
|
813
|
+
interface CategoryNonNullableFields$1 {
|
|
814
|
+
_id: number;
|
|
815
|
+
title: string;
|
|
816
|
+
places: PlaceNonNullableFields$1[];
|
|
817
|
+
}
|
|
818
|
+
interface ElementGroupNonNullableFields$1 {
|
|
819
|
+
_id: number;
|
|
820
|
+
}
|
|
821
|
+
interface SeatingPlanNonNullableFields$1 {
|
|
822
|
+
sections: SectionNonNullableFields$1[];
|
|
823
|
+
categories: CategoryNonNullableFields$1[];
|
|
824
|
+
uncategorizedPlaces: PlaceNonNullableFields$1[];
|
|
825
|
+
elementGroups: ElementGroupNonNullableFields$1[];
|
|
826
|
+
}
|
|
704
827
|
interface CreateSeatingPlanResponseNonNullableFields {
|
|
705
|
-
plan?:
|
|
706
|
-
sections: {
|
|
707
|
-
_id: number;
|
|
708
|
-
elements: {
|
|
709
|
-
_id: number;
|
|
710
|
-
type: Type$1;
|
|
711
|
-
sequencing?: {
|
|
712
|
-
startAt: string;
|
|
713
|
-
labels: string[];
|
|
714
|
-
};
|
|
715
|
-
overrides: {
|
|
716
|
-
index: number;
|
|
717
|
-
label: string;
|
|
718
|
-
elementType: Type$1;
|
|
719
|
-
}[];
|
|
720
|
-
places: {
|
|
721
|
-
index: number;
|
|
722
|
-
label: string;
|
|
723
|
-
elementType: Type$1;
|
|
724
|
-
}[];
|
|
725
|
-
reservationOptions?: {
|
|
726
|
-
reserveWholeElement: boolean;
|
|
727
|
-
};
|
|
728
|
-
uiProperties?: {
|
|
729
|
-
shapeType: ShapeTypeEnumType$1;
|
|
730
|
-
labelPosition: Position$1;
|
|
731
|
-
seatLayout: number[];
|
|
732
|
-
icon: Icon$1;
|
|
733
|
-
image?: {
|
|
734
|
-
_id: string;
|
|
735
|
-
height: number;
|
|
736
|
-
width: number;
|
|
737
|
-
};
|
|
738
|
-
seatNumbering: Numbering$1;
|
|
739
|
-
};
|
|
740
|
-
}[];
|
|
741
|
-
default: boolean;
|
|
742
|
-
}[];
|
|
743
|
-
categories: {
|
|
744
|
-
_id: number;
|
|
745
|
-
title: string;
|
|
746
|
-
places: {
|
|
747
|
-
index: number;
|
|
748
|
-
label: string;
|
|
749
|
-
elementType: Type$1;
|
|
750
|
-
}[];
|
|
751
|
-
}[];
|
|
752
|
-
uncategorizedPlaces: {
|
|
753
|
-
index: number;
|
|
754
|
-
label: string;
|
|
755
|
-
elementType: Type$1;
|
|
756
|
-
}[];
|
|
757
|
-
};
|
|
828
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
758
829
|
}
|
|
759
830
|
interface UpdateSeatingPlanResponseNonNullableFields {
|
|
760
|
-
plan?:
|
|
761
|
-
sections: {
|
|
762
|
-
_id: number;
|
|
763
|
-
elements: {
|
|
764
|
-
_id: number;
|
|
765
|
-
type: Type$1;
|
|
766
|
-
sequencing?: {
|
|
767
|
-
startAt: string;
|
|
768
|
-
labels: string[];
|
|
769
|
-
};
|
|
770
|
-
overrides: {
|
|
771
|
-
index: number;
|
|
772
|
-
label: string;
|
|
773
|
-
elementType: Type$1;
|
|
774
|
-
}[];
|
|
775
|
-
places: {
|
|
776
|
-
index: number;
|
|
777
|
-
label: string;
|
|
778
|
-
elementType: Type$1;
|
|
779
|
-
}[];
|
|
780
|
-
reservationOptions?: {
|
|
781
|
-
reserveWholeElement: boolean;
|
|
782
|
-
};
|
|
783
|
-
uiProperties?: {
|
|
784
|
-
shapeType: ShapeTypeEnumType$1;
|
|
785
|
-
labelPosition: Position$1;
|
|
786
|
-
seatLayout: number[];
|
|
787
|
-
icon: Icon$1;
|
|
788
|
-
image?: {
|
|
789
|
-
_id: string;
|
|
790
|
-
height: number;
|
|
791
|
-
width: number;
|
|
792
|
-
};
|
|
793
|
-
seatNumbering: Numbering$1;
|
|
794
|
-
};
|
|
795
|
-
}[];
|
|
796
|
-
default: boolean;
|
|
797
|
-
}[];
|
|
798
|
-
categories: {
|
|
799
|
-
_id: number;
|
|
800
|
-
title: string;
|
|
801
|
-
places: {
|
|
802
|
-
index: number;
|
|
803
|
-
label: string;
|
|
804
|
-
elementType: Type$1;
|
|
805
|
-
}[];
|
|
806
|
-
}[];
|
|
807
|
-
uncategorizedPlaces: {
|
|
808
|
-
index: number;
|
|
809
|
-
label: string;
|
|
810
|
-
elementType: Type$1;
|
|
811
|
-
}[];
|
|
812
|
-
};
|
|
831
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
813
832
|
}
|
|
814
833
|
interface CopySeatingPlanResponseNonNullableFields {
|
|
815
|
-
plan?:
|
|
816
|
-
sections: {
|
|
817
|
-
_id: number;
|
|
818
|
-
elements: {
|
|
819
|
-
_id: number;
|
|
820
|
-
type: Type$1;
|
|
821
|
-
sequencing?: {
|
|
822
|
-
startAt: string;
|
|
823
|
-
labels: string[];
|
|
824
|
-
};
|
|
825
|
-
overrides: {
|
|
826
|
-
index: number;
|
|
827
|
-
label: string;
|
|
828
|
-
elementType: Type$1;
|
|
829
|
-
}[];
|
|
830
|
-
places: {
|
|
831
|
-
index: number;
|
|
832
|
-
label: string;
|
|
833
|
-
elementType: Type$1;
|
|
834
|
-
}[];
|
|
835
|
-
reservationOptions?: {
|
|
836
|
-
reserveWholeElement: boolean;
|
|
837
|
-
};
|
|
838
|
-
uiProperties?: {
|
|
839
|
-
shapeType: ShapeTypeEnumType$1;
|
|
840
|
-
labelPosition: Position$1;
|
|
841
|
-
seatLayout: number[];
|
|
842
|
-
icon: Icon$1;
|
|
843
|
-
image?: {
|
|
844
|
-
_id: string;
|
|
845
|
-
height: number;
|
|
846
|
-
width: number;
|
|
847
|
-
};
|
|
848
|
-
seatNumbering: Numbering$1;
|
|
849
|
-
};
|
|
850
|
-
}[];
|
|
851
|
-
default: boolean;
|
|
852
|
-
}[];
|
|
853
|
-
categories: {
|
|
854
|
-
_id: number;
|
|
855
|
-
title: string;
|
|
856
|
-
places: {
|
|
857
|
-
index: number;
|
|
858
|
-
label: string;
|
|
859
|
-
elementType: Type$1;
|
|
860
|
-
}[];
|
|
861
|
-
}[];
|
|
862
|
-
uncategorizedPlaces: {
|
|
863
|
-
index: number;
|
|
864
|
-
label: string;
|
|
865
|
-
elementType: Type$1;
|
|
866
|
-
}[];
|
|
867
|
-
};
|
|
834
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
868
835
|
}
|
|
869
836
|
interface QuerySeatingPlanResponseNonNullableFields {
|
|
870
|
-
plans:
|
|
871
|
-
sections: {
|
|
872
|
-
_id: number;
|
|
873
|
-
elements: {
|
|
874
|
-
_id: number;
|
|
875
|
-
type: Type$1;
|
|
876
|
-
sequencing?: {
|
|
877
|
-
startAt: string;
|
|
878
|
-
labels: string[];
|
|
879
|
-
};
|
|
880
|
-
overrides: {
|
|
881
|
-
index: number;
|
|
882
|
-
label: string;
|
|
883
|
-
elementType: Type$1;
|
|
884
|
-
}[];
|
|
885
|
-
places: {
|
|
886
|
-
index: number;
|
|
887
|
-
label: string;
|
|
888
|
-
elementType: Type$1;
|
|
889
|
-
}[];
|
|
890
|
-
reservationOptions?: {
|
|
891
|
-
reserveWholeElement: boolean;
|
|
892
|
-
};
|
|
893
|
-
uiProperties?: {
|
|
894
|
-
shapeType: ShapeTypeEnumType$1;
|
|
895
|
-
labelPosition: Position$1;
|
|
896
|
-
seatLayout: number[];
|
|
897
|
-
icon: Icon$1;
|
|
898
|
-
image?: {
|
|
899
|
-
_id: string;
|
|
900
|
-
height: number;
|
|
901
|
-
width: number;
|
|
902
|
-
};
|
|
903
|
-
seatNumbering: Numbering$1;
|
|
904
|
-
};
|
|
905
|
-
}[];
|
|
906
|
-
default: boolean;
|
|
907
|
-
}[];
|
|
908
|
-
categories: {
|
|
909
|
-
_id: number;
|
|
910
|
-
title: string;
|
|
911
|
-
places: {
|
|
912
|
-
index: number;
|
|
913
|
-
label: string;
|
|
914
|
-
elementType: Type$1;
|
|
915
|
-
}[];
|
|
916
|
-
}[];
|
|
917
|
-
uncategorizedPlaces: {
|
|
918
|
-
index: number;
|
|
919
|
-
label: string;
|
|
920
|
-
elementType: Type$1;
|
|
921
|
-
}[];
|
|
922
|
-
}[];
|
|
837
|
+
plans: SeatingPlanNonNullableFields$1[];
|
|
923
838
|
}
|
|
924
839
|
interface GetSeatingPlanResponseNonNullableFields {
|
|
925
|
-
plan?:
|
|
926
|
-
sections: {
|
|
927
|
-
_id: number;
|
|
928
|
-
elements: {
|
|
929
|
-
_id: number;
|
|
930
|
-
type: Type$1;
|
|
931
|
-
sequencing?: {
|
|
932
|
-
startAt: string;
|
|
933
|
-
labels: string[];
|
|
934
|
-
};
|
|
935
|
-
overrides: {
|
|
936
|
-
index: number;
|
|
937
|
-
label: string;
|
|
938
|
-
elementType: Type$1;
|
|
939
|
-
}[];
|
|
940
|
-
places: {
|
|
941
|
-
index: number;
|
|
942
|
-
label: string;
|
|
943
|
-
elementType: Type$1;
|
|
944
|
-
}[];
|
|
945
|
-
reservationOptions?: {
|
|
946
|
-
reserveWholeElement: boolean;
|
|
947
|
-
};
|
|
948
|
-
uiProperties?: {
|
|
949
|
-
shapeType: ShapeTypeEnumType$1;
|
|
950
|
-
labelPosition: Position$1;
|
|
951
|
-
seatLayout: number[];
|
|
952
|
-
icon: Icon$1;
|
|
953
|
-
image?: {
|
|
954
|
-
_id: string;
|
|
955
|
-
height: number;
|
|
956
|
-
width: number;
|
|
957
|
-
};
|
|
958
|
-
seatNumbering: Numbering$1;
|
|
959
|
-
};
|
|
960
|
-
}[];
|
|
961
|
-
default: boolean;
|
|
962
|
-
}[];
|
|
963
|
-
categories: {
|
|
964
|
-
_id: number;
|
|
965
|
-
title: string;
|
|
966
|
-
places: {
|
|
967
|
-
index: number;
|
|
968
|
-
label: string;
|
|
969
|
-
elementType: Type$1;
|
|
970
|
-
}[];
|
|
971
|
-
}[];
|
|
972
|
-
uncategorizedPlaces: {
|
|
973
|
-
index: number;
|
|
974
|
-
label: string;
|
|
975
|
-
elementType: Type$1;
|
|
976
|
-
}[];
|
|
977
|
-
};
|
|
840
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
978
841
|
}
|
|
979
842
|
interface FindSeatingPlanResponseNonNullableFields {
|
|
980
|
-
plan?:
|
|
981
|
-
sections: {
|
|
982
|
-
_id: number;
|
|
983
|
-
elements: {
|
|
984
|
-
_id: number;
|
|
985
|
-
type: Type$1;
|
|
986
|
-
sequencing?: {
|
|
987
|
-
startAt: string;
|
|
988
|
-
labels: string[];
|
|
989
|
-
};
|
|
990
|
-
overrides: {
|
|
991
|
-
index: number;
|
|
992
|
-
label: string;
|
|
993
|
-
elementType: Type$1;
|
|
994
|
-
}[];
|
|
995
|
-
places: {
|
|
996
|
-
index: number;
|
|
997
|
-
label: string;
|
|
998
|
-
elementType: Type$1;
|
|
999
|
-
}[];
|
|
1000
|
-
reservationOptions?: {
|
|
1001
|
-
reserveWholeElement: boolean;
|
|
1002
|
-
};
|
|
1003
|
-
uiProperties?: {
|
|
1004
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1005
|
-
labelPosition: Position$1;
|
|
1006
|
-
seatLayout: number[];
|
|
1007
|
-
icon: Icon$1;
|
|
1008
|
-
image?: {
|
|
1009
|
-
_id: string;
|
|
1010
|
-
height: number;
|
|
1011
|
-
width: number;
|
|
1012
|
-
};
|
|
1013
|
-
seatNumbering: Numbering$1;
|
|
1014
|
-
};
|
|
1015
|
-
}[];
|
|
1016
|
-
default: boolean;
|
|
1017
|
-
}[];
|
|
1018
|
-
categories: {
|
|
1019
|
-
_id: number;
|
|
1020
|
-
title: string;
|
|
1021
|
-
places: {
|
|
1022
|
-
index: number;
|
|
1023
|
-
label: string;
|
|
1024
|
-
elementType: Type$1;
|
|
1025
|
-
}[];
|
|
1026
|
-
}[];
|
|
1027
|
-
uncategorizedPlaces: {
|
|
1028
|
-
index: number;
|
|
1029
|
-
label: string;
|
|
1030
|
-
elementType: Type$1;
|
|
1031
|
-
}[];
|
|
1032
|
-
};
|
|
843
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
1033
844
|
}
|
|
1034
845
|
interface DeleteSeatingPlanResponseNonNullableFields {
|
|
1035
|
-
plan?:
|
|
1036
|
-
sections: {
|
|
1037
|
-
_id: number;
|
|
1038
|
-
elements: {
|
|
1039
|
-
_id: number;
|
|
1040
|
-
type: Type$1;
|
|
1041
|
-
sequencing?: {
|
|
1042
|
-
startAt: string;
|
|
1043
|
-
labels: string[];
|
|
1044
|
-
};
|
|
1045
|
-
overrides: {
|
|
1046
|
-
index: number;
|
|
1047
|
-
label: string;
|
|
1048
|
-
elementType: Type$1;
|
|
1049
|
-
}[];
|
|
1050
|
-
places: {
|
|
1051
|
-
index: number;
|
|
1052
|
-
label: string;
|
|
1053
|
-
elementType: Type$1;
|
|
1054
|
-
}[];
|
|
1055
|
-
reservationOptions?: {
|
|
1056
|
-
reserveWholeElement: boolean;
|
|
1057
|
-
};
|
|
1058
|
-
uiProperties?: {
|
|
1059
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1060
|
-
labelPosition: Position$1;
|
|
1061
|
-
seatLayout: number[];
|
|
1062
|
-
icon: Icon$1;
|
|
1063
|
-
image?: {
|
|
1064
|
-
_id: string;
|
|
1065
|
-
height: number;
|
|
1066
|
-
width: number;
|
|
1067
|
-
};
|
|
1068
|
-
seatNumbering: Numbering$1;
|
|
1069
|
-
};
|
|
1070
|
-
}[];
|
|
1071
|
-
default: boolean;
|
|
1072
|
-
}[];
|
|
1073
|
-
categories: {
|
|
1074
|
-
_id: number;
|
|
1075
|
-
title: string;
|
|
1076
|
-
places: {
|
|
1077
|
-
index: number;
|
|
1078
|
-
label: string;
|
|
1079
|
-
elementType: Type$1;
|
|
1080
|
-
}[];
|
|
1081
|
-
}[];
|
|
1082
|
-
uncategorizedPlaces: {
|
|
1083
|
-
index: number;
|
|
1084
|
-
label: string;
|
|
1085
|
-
elementType: Type$1;
|
|
1086
|
-
}[];
|
|
1087
|
-
};
|
|
846
|
+
plan?: SeatingPlanNonNullableFields$1;
|
|
1088
847
|
}
|
|
1089
848
|
interface BaseEventMetadata$1 {
|
|
1090
849
|
/** App instance ID. */
|
|
@@ -1113,7 +872,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
1113
872
|
slug?: string;
|
|
1114
873
|
/** ID of the entity associated with the event. */
|
|
1115
874
|
entityId?: string;
|
|
1116
|
-
/** Event timestamp. */
|
|
875
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1117
876
|
eventTime?: Date;
|
|
1118
877
|
/**
|
|
1119
878
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1212,217 +971,104 @@ interface FindSeatingPlanOptions {
|
|
|
1212
971
|
seatingPlanMask?: SeatingPlanMask;
|
|
1213
972
|
}
|
|
1214
973
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
974
|
+
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
975
|
+
interface CreateSeatingPlanSignature {
|
|
976
|
+
/**
|
|
977
|
+
* Crates a seating plan
|
|
978
|
+
* @param - A plan to be created
|
|
979
|
+
* @returns The created plan
|
|
980
|
+
*/
|
|
981
|
+
(plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1219
982
|
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
983
|
+
declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
|
|
984
|
+
interface UpdateSeatingPlanSignature {
|
|
985
|
+
/**
|
|
986
|
+
* Updates the seating plan
|
|
987
|
+
* @returns The updated plan
|
|
988
|
+
*/
|
|
989
|
+
(options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
990
|
+
}
|
|
991
|
+
declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
|
|
992
|
+
interface CopySeatingPlanSignature {
|
|
993
|
+
/**
|
|
994
|
+
* Copies the seating plan
|
|
995
|
+
* @param - The id of the plan to be copied
|
|
996
|
+
*/
|
|
997
|
+
(_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
998
|
+
}
|
|
999
|
+
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
1000
|
+
interface QuerySeatingPlanSignature {
|
|
1001
|
+
/**
|
|
1002
|
+
* Lists seating plans by provided query request
|
|
1003
|
+
*/
|
|
1004
|
+
(options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
|
|
1005
|
+
}
|
|
1006
|
+
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
1007
|
+
interface GetSeatingPlanSignature {
|
|
1008
|
+
/**
|
|
1009
|
+
* Returns the seating plan. Fails of not fond.
|
|
1010
|
+
* @param - The id of the plan
|
|
1011
|
+
* @returns The plan
|
|
1012
|
+
*/
|
|
1013
|
+
(_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1014
|
+
}
|
|
1015
|
+
declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
|
|
1016
|
+
interface FindSeatingPlanSignature {
|
|
1017
|
+
/**
|
|
1018
|
+
* Returns the first seating plan found by filter request.
|
|
1019
|
+
* @param - The filter of the plan
|
|
1020
|
+
*/
|
|
1021
|
+
(filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1253
1022
|
}
|
|
1023
|
+
declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
|
|
1024
|
+
interface DeleteSeatingPlanSignature {
|
|
1025
|
+
/**
|
|
1026
|
+
* Deletes the seating plan.
|
|
1027
|
+
* @param - The id of the plan
|
|
1028
|
+
*/
|
|
1029
|
+
(_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1030
|
+
}
|
|
1031
|
+
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
1032
|
+
interface UpdateSeatingPlanThumbnailSignature {
|
|
1033
|
+
/**
|
|
1034
|
+
* Updates seating plan thumbnail.
|
|
1035
|
+
*/
|
|
1036
|
+
(thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1037
|
+
}
|
|
1038
|
+
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
1039
|
+
interface GetSeatingPlanThumbnailSignature {
|
|
1040
|
+
/**
|
|
1041
|
+
* Get seating plan thumbnail.
|
|
1042
|
+
*/
|
|
1043
|
+
(_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1044
|
+
}
|
|
1045
|
+
declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1046
|
+
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1047
|
+
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1254
1048
|
|
|
1255
|
-
declare
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
declare
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
reservationOptions?: {
|
|
1279
|
-
reserveWholeElement: boolean;
|
|
1280
|
-
} | undefined;
|
|
1281
|
-
uiProperties?: {
|
|
1282
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1283
|
-
labelPosition: Position$1;
|
|
1284
|
-
seatLayout: number[];
|
|
1285
|
-
icon: Icon$1;
|
|
1286
|
-
image?: {
|
|
1287
|
-
_id: string;
|
|
1288
|
-
height: number;
|
|
1289
|
-
width: number;
|
|
1290
|
-
} | undefined;
|
|
1291
|
-
seatNumbering: Numbering$1;
|
|
1292
|
-
} | undefined;
|
|
1293
|
-
}[];
|
|
1294
|
-
default: boolean;
|
|
1295
|
-
}[];
|
|
1296
|
-
categories: {
|
|
1297
|
-
_id: number;
|
|
1298
|
-
title: string;
|
|
1299
|
-
places: {
|
|
1300
|
-
index: number;
|
|
1301
|
-
label: string;
|
|
1302
|
-
elementType: Type$1;
|
|
1303
|
-
}[];
|
|
1304
|
-
}[];
|
|
1305
|
-
uncategorizedPlaces: {
|
|
1306
|
-
index: number;
|
|
1307
|
-
label: string;
|
|
1308
|
-
elementType: Type$1;
|
|
1309
|
-
}[];
|
|
1310
|
-
}>;
|
|
1311
|
-
declare function updateSeatingPlan(httpClient: HttpClient): (options?: UpdateSeatingPlanOptions) => Promise<SeatingPlan$1 & {
|
|
1312
|
-
sections: {
|
|
1313
|
-
_id: number;
|
|
1314
|
-
elements: {
|
|
1315
|
-
_id: number;
|
|
1316
|
-
type: Type$1;
|
|
1317
|
-
sequencing?: {
|
|
1318
|
-
startAt: string;
|
|
1319
|
-
labels: string[];
|
|
1320
|
-
} | undefined;
|
|
1321
|
-
overrides: {
|
|
1322
|
-
index: number;
|
|
1323
|
-
label: string;
|
|
1324
|
-
elementType: Type$1;
|
|
1325
|
-
}[];
|
|
1326
|
-
places: {
|
|
1327
|
-
index: number;
|
|
1328
|
-
label: string;
|
|
1329
|
-
elementType: Type$1;
|
|
1330
|
-
}[];
|
|
1331
|
-
reservationOptions?: {
|
|
1332
|
-
reserveWholeElement: boolean;
|
|
1333
|
-
} | undefined;
|
|
1334
|
-
uiProperties?: {
|
|
1335
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1336
|
-
labelPosition: Position$1;
|
|
1337
|
-
seatLayout: number[];
|
|
1338
|
-
icon: Icon$1;
|
|
1339
|
-
image?: {
|
|
1340
|
-
_id: string;
|
|
1341
|
-
height: number;
|
|
1342
|
-
width: number;
|
|
1343
|
-
} | undefined;
|
|
1344
|
-
seatNumbering: Numbering$1;
|
|
1345
|
-
} | undefined;
|
|
1346
|
-
}[];
|
|
1347
|
-
default: boolean;
|
|
1348
|
-
}[];
|
|
1349
|
-
categories: {
|
|
1350
|
-
_id: number;
|
|
1351
|
-
title: string;
|
|
1352
|
-
places: {
|
|
1353
|
-
index: number;
|
|
1354
|
-
label: string;
|
|
1355
|
-
elementType: Type$1;
|
|
1356
|
-
}[];
|
|
1357
|
-
}[];
|
|
1358
|
-
uncategorizedPlaces: {
|
|
1359
|
-
index: number;
|
|
1360
|
-
label: string;
|
|
1361
|
-
elementType: Type$1;
|
|
1362
|
-
}[];
|
|
1363
|
-
}>;
|
|
1364
|
-
declare function copySeatingPlan(httpClient: HttpClient): (_id: string | null, options: CopySeatingPlanOptions) => Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
1365
|
-
declare function querySeatingPlan(httpClient: HttpClient): (options?: QuerySeatingPlanOptions) => PlansQueryBuilder;
|
|
1366
|
-
declare function getSeatingPlan(httpClient: HttpClient): (_id: string | null, options?: GetSeatingPlanOptions) => Promise<SeatingPlan$1 & {
|
|
1367
|
-
sections: {
|
|
1368
|
-
_id: number;
|
|
1369
|
-
elements: {
|
|
1370
|
-
_id: number;
|
|
1371
|
-
type: Type$1;
|
|
1372
|
-
sequencing?: {
|
|
1373
|
-
startAt: string;
|
|
1374
|
-
labels: string[];
|
|
1375
|
-
} | undefined;
|
|
1376
|
-
overrides: {
|
|
1377
|
-
index: number;
|
|
1378
|
-
label: string;
|
|
1379
|
-
elementType: Type$1;
|
|
1380
|
-
}[];
|
|
1381
|
-
places: {
|
|
1382
|
-
index: number;
|
|
1383
|
-
label: string;
|
|
1384
|
-
elementType: Type$1;
|
|
1385
|
-
}[];
|
|
1386
|
-
reservationOptions?: {
|
|
1387
|
-
reserveWholeElement: boolean;
|
|
1388
|
-
} | undefined;
|
|
1389
|
-
uiProperties?: {
|
|
1390
|
-
shapeType: ShapeTypeEnumType$1;
|
|
1391
|
-
labelPosition: Position$1;
|
|
1392
|
-
seatLayout: number[];
|
|
1393
|
-
icon: Icon$1;
|
|
1394
|
-
image?: {
|
|
1395
|
-
_id: string;
|
|
1396
|
-
height: number;
|
|
1397
|
-
width: number;
|
|
1398
|
-
} | undefined;
|
|
1399
|
-
seatNumbering: Numbering$1;
|
|
1400
|
-
} | undefined;
|
|
1401
|
-
}[];
|
|
1402
|
-
default: boolean;
|
|
1403
|
-
}[];
|
|
1404
|
-
categories: {
|
|
1405
|
-
_id: number;
|
|
1406
|
-
title: string;
|
|
1407
|
-
places: {
|
|
1408
|
-
index: number;
|
|
1409
|
-
label: string;
|
|
1410
|
-
elementType: Type$1;
|
|
1411
|
-
}[];
|
|
1412
|
-
}[];
|
|
1413
|
-
uncategorizedPlaces: {
|
|
1414
|
-
index: number;
|
|
1415
|
-
label: string;
|
|
1416
|
-
elementType: Type$1;
|
|
1417
|
-
}[];
|
|
1418
|
-
}>;
|
|
1419
|
-
declare function findSeatingPlan(httpClient: HttpClient): (filter: Record<string, any> | null, options?: FindSeatingPlanOptions) => Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1420
|
-
declare function deleteSeatingPlan(httpClient: HttpClient): (_id: string | null) => Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1421
|
-
declare function updateSeatingPlanThumbnail(httpClient: HttpClient): (thumbnail: SeatingPlanThumbnail) => Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1422
|
-
declare function getSeatingPlanThumbnail(httpClient: HttpClient): (_id: string | null) => Promise<GetSeatingPlanThumbnailResponse>;
|
|
1423
|
-
declare const onSeatingPlanCreated: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1424
|
-
declare const onSeatingPlanUpdated: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1425
|
-
declare const onSeatingPlanDeleted: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1049
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1050
|
+
|
|
1051
|
+
declare const createSeatingPlan: BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
|
|
1052
|
+
declare const updateSeatingPlan: BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
|
|
1053
|
+
declare const copySeatingPlan: BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
|
|
1054
|
+
declare const querySeatingPlan: BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
|
|
1055
|
+
declare const getSeatingPlan: BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
|
|
1056
|
+
declare const findSeatingPlan: BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
|
|
1057
|
+
declare const deleteSeatingPlan: BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
|
|
1058
|
+
declare const updateSeatingPlanThumbnail: BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
|
|
1059
|
+
declare const getSeatingPlanThumbnail: BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
|
|
1060
|
+
|
|
1061
|
+
type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
|
|
1062
|
+
/** */
|
|
1063
|
+
declare const onSeatingPlanCreated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanCreatedType>>;
|
|
1064
|
+
|
|
1065
|
+
type _publicOnSeatingPlanUpdatedType = typeof onSeatingPlanUpdated$1;
|
|
1066
|
+
/** */
|
|
1067
|
+
declare const onSeatingPlanUpdated: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanUpdatedType>>;
|
|
1068
|
+
|
|
1069
|
+
type _publicOnSeatingPlanDeletedType = typeof onSeatingPlanDeleted$1;
|
|
1070
|
+
/** */
|
|
1071
|
+
declare const onSeatingPlanDeleted: ReturnType<typeof createEventModule$1<_publicOnSeatingPlanDeletedType>>;
|
|
1426
1072
|
|
|
1427
1073
|
type index_d$1_CapacityExceededViolation = CapacityExceededViolation;
|
|
1428
1074
|
type index_d$1_CopySeatingPlanOptions = CopySeatingPlanOptions;
|
|
@@ -1472,6 +1118,9 @@ type index_d$1_UpdateSeatingPlanResponse = UpdateSeatingPlanResponse;
|
|
|
1472
1118
|
type index_d$1_UpdateSeatingPlanResponseNonNullableFields = UpdateSeatingPlanResponseNonNullableFields;
|
|
1473
1119
|
type index_d$1_UpdateSeatingPlanThumbnailRequest = UpdateSeatingPlanThumbnailRequest;
|
|
1474
1120
|
type index_d$1_UpdateSeatingPlanThumbnailResponse = UpdateSeatingPlanThumbnailResponse;
|
|
1121
|
+
type index_d$1__publicOnSeatingPlanCreatedType = _publicOnSeatingPlanCreatedType;
|
|
1122
|
+
type index_d$1__publicOnSeatingPlanDeletedType = _publicOnSeatingPlanDeletedType;
|
|
1123
|
+
type index_d$1__publicOnSeatingPlanUpdatedType = _publicOnSeatingPlanUpdatedType;
|
|
1475
1124
|
declare const index_d$1_copySeatingPlan: typeof copySeatingPlan;
|
|
1476
1125
|
declare const index_d$1_createSeatingPlan: typeof createSeatingPlan;
|
|
1477
1126
|
declare const index_d$1_deleteSeatingPlan: typeof deleteSeatingPlan;
|
|
@@ -1485,7 +1134,7 @@ declare const index_d$1_querySeatingPlan: typeof querySeatingPlan;
|
|
|
1485
1134
|
declare const index_d$1_updateSeatingPlan: typeof updateSeatingPlan;
|
|
1486
1135
|
declare const index_d$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
|
|
1487
1136
|
declare namespace index_d$1 {
|
|
1488
|
-
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, 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 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,
|
|
1137
|
+
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 };
|
|
1489
1138
|
}
|
|
1490
1139
|
|
|
1491
1140
|
interface SeatingReservation {
|
|
@@ -1688,17 +1337,15 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
1688
1337
|
/** 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`. */
|
|
1689
1338
|
cursorPaging?: CursorPaging;
|
|
1690
1339
|
/**
|
|
1691
|
-
* Filter object
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1694
|
-
* "fieldName2":{"$operator":"value2"}
|
|
1695
|
-
* }`
|
|
1696
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
1340
|
+
* Filter object.
|
|
1341
|
+
*
|
|
1342
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1697
1343
|
*/
|
|
1698
1344
|
filter?: Record<string, any> | null;
|
|
1699
1345
|
/**
|
|
1700
|
-
* Sort object
|
|
1701
|
-
*
|
|
1346
|
+
* Sort object.
|
|
1347
|
+
*
|
|
1348
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1702
1349
|
*/
|
|
1703
1350
|
sort?: Sorting[];
|
|
1704
1351
|
/** 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. */
|
|
@@ -1925,11 +1572,7 @@ interface Sequencing {
|
|
|
1925
1572
|
reverseOrder?: boolean | null;
|
|
1926
1573
|
}
|
|
1927
1574
|
interface Place {
|
|
1928
|
-
/**
|
|
1929
|
-
* Local id of the place in the sequence
|
|
1930
|
-
* @deprecated
|
|
1931
|
-
* @targetRemovalDate 2024-07-01
|
|
1932
|
-
*/
|
|
1575
|
+
/** Local id of the place in the sequence */
|
|
1933
1576
|
index?: number;
|
|
1934
1577
|
/**
|
|
1935
1578
|
* Generated composite unique id in the seating plan.
|
|
@@ -1953,6 +1596,17 @@ interface Place {
|
|
|
1953
1596
|
* @readonly
|
|
1954
1597
|
*/
|
|
1955
1598
|
categoryId?: number | null;
|
|
1599
|
+
/** Place type */
|
|
1600
|
+
type?: PlaceTypeEnumType;
|
|
1601
|
+
}
|
|
1602
|
+
declare enum PlaceTypeEnumType {
|
|
1603
|
+
UNKNOWN_PROPERTY = "UNKNOWN_PROPERTY",
|
|
1604
|
+
STANDARD = "STANDARD",
|
|
1605
|
+
WHEELCHAIR = "WHEELCHAIR",
|
|
1606
|
+
ACCESSIBLE = "ACCESSIBLE",
|
|
1607
|
+
COMPANION = "COMPANION",
|
|
1608
|
+
OBSTRUCTED = "OBSTRUCTED",
|
|
1609
|
+
DISCOUNT = "DISCOUNT"
|
|
1956
1610
|
}
|
|
1957
1611
|
interface ReservationOptions {
|
|
1958
1612
|
/** Indicates whether the entire element must be reserved */
|
|
@@ -2069,6 +1723,8 @@ interface RowElement {
|
|
|
2069
1723
|
interface RowElementUiProperties {
|
|
2070
1724
|
/** Relative x position to the parent element */
|
|
2071
1725
|
relativeX?: number | null;
|
|
1726
|
+
/** Width of the row */
|
|
1727
|
+
width?: number | null;
|
|
2072
1728
|
/** Seat spacing */
|
|
2073
1729
|
seatSpacing?: number | null;
|
|
2074
1730
|
/** Label position */
|
|
@@ -2185,7 +1841,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
2185
1841
|
slug?: string;
|
|
2186
1842
|
/** ID of the entity associated with the event. */
|
|
2187
1843
|
entityId?: string;
|
|
2188
|
-
/** Event timestamp. */
|
|
1844
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2189
1845
|
eventTime?: Date;
|
|
2190
1846
|
/**
|
|
2191
1847
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2272,97 +1928,106 @@ declare enum WebhookIdentityType {
|
|
|
2272
1928
|
WIX_USER = "WIX_USER",
|
|
2273
1929
|
APP = "APP"
|
|
2274
1930
|
}
|
|
1931
|
+
interface PlaceReservationNonNullableFields {
|
|
1932
|
+
_id: string;
|
|
1933
|
+
}
|
|
1934
|
+
interface SeatingReservationNonNullableFields {
|
|
1935
|
+
reservedPlaces: PlaceReservationNonNullableFields[];
|
|
1936
|
+
}
|
|
2275
1937
|
interface CreateSeatingReservationResponseNonNullableFields {
|
|
2276
|
-
reservation?:
|
|
2277
|
-
reservedPlaces: {
|
|
2278
|
-
_id: string;
|
|
2279
|
-
}[];
|
|
2280
|
-
};
|
|
1938
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
2281
1939
|
}
|
|
2282
1940
|
interface GetReservationResponseNonNullableFields {
|
|
2283
|
-
reservation?:
|
|
2284
|
-
reservedPlaces: {
|
|
2285
|
-
_id: string;
|
|
2286
|
-
}[];
|
|
2287
|
-
};
|
|
1941
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
2288
1942
|
}
|
|
2289
1943
|
interface QuerySeatingReservationResponseNonNullableFields {
|
|
2290
|
-
reservations:
|
|
2291
|
-
reservedPlaces: {
|
|
2292
|
-
_id: string;
|
|
2293
|
-
}[];
|
|
2294
|
-
}[];
|
|
1944
|
+
reservations: SeatingReservationNonNullableFields[];
|
|
2295
1945
|
}
|
|
2296
1946
|
interface DeleteSeatingReservationResponseNonNullableFields {
|
|
2297
|
-
reservation?:
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}
|
|
2303
|
-
interface
|
|
2304
|
-
|
|
1947
|
+
reservation?: SeatingReservationNonNullableFields;
|
|
1948
|
+
}
|
|
1949
|
+
interface SequencingNonNullableFields {
|
|
1950
|
+
startAt: string;
|
|
1951
|
+
labels: string[];
|
|
1952
|
+
}
|
|
1953
|
+
interface PlaceNonNullableFields {
|
|
1954
|
+
index: number;
|
|
1955
|
+
label: string;
|
|
1956
|
+
elementType: Type;
|
|
1957
|
+
type: PlaceTypeEnumType;
|
|
1958
|
+
}
|
|
1959
|
+
interface ReservationOptionsNonNullableFields {
|
|
1960
|
+
reserveWholeElement: boolean;
|
|
1961
|
+
}
|
|
1962
|
+
interface ImageNonNullableFields {
|
|
1963
|
+
_id: string;
|
|
1964
|
+
height: number;
|
|
1965
|
+
width: number;
|
|
1966
|
+
}
|
|
1967
|
+
interface ElementUiPropertiesNonNullableFields {
|
|
1968
|
+
shapeType: ShapeTypeEnumType;
|
|
1969
|
+
labelPosition: Position;
|
|
1970
|
+
seatLayout: number[];
|
|
1971
|
+
icon: Icon;
|
|
1972
|
+
image?: ImageNonNullableFields;
|
|
1973
|
+
seatNumbering: Numbering;
|
|
1974
|
+
}
|
|
1975
|
+
interface RowElementUiPropertiesNonNullableFields {
|
|
1976
|
+
labelPosition: Position;
|
|
1977
|
+
seatNumbering: Numbering;
|
|
1978
|
+
}
|
|
1979
|
+
interface RowElementNonNullableFields {
|
|
1980
|
+
_id: number;
|
|
1981
|
+
sequencing?: SequencingNonNullableFields;
|
|
1982
|
+
uiProperties?: RowElementUiPropertiesNonNullableFields;
|
|
1983
|
+
}
|
|
1984
|
+
interface VerticalSequencingNonNullableFields {
|
|
1985
|
+
startAt: string;
|
|
1986
|
+
rowNumbering: Numbering;
|
|
1987
|
+
}
|
|
1988
|
+
interface MultiRowPropertiesNonNullableFields {
|
|
1989
|
+
rows: RowElementNonNullableFields[];
|
|
1990
|
+
verticalSequencing?: VerticalSequencingNonNullableFields;
|
|
1991
|
+
}
|
|
1992
|
+
interface ElementNonNullableFields {
|
|
1993
|
+
_id: number;
|
|
1994
|
+
type: Type;
|
|
1995
|
+
sequencing?: SequencingNonNullableFields;
|
|
1996
|
+
overrides: PlaceNonNullableFields[];
|
|
1997
|
+
places: PlaceNonNullableFields[];
|
|
1998
|
+
reservationOptions?: ReservationOptionsNonNullableFields;
|
|
1999
|
+
uiProperties?: ElementUiPropertiesNonNullableFields;
|
|
2000
|
+
multiRowProperties?: MultiRowPropertiesNonNullableFields;
|
|
2001
|
+
}
|
|
2002
|
+
interface SectionNonNullableFields {
|
|
2003
|
+
_id: number;
|
|
2004
|
+
elements: ElementNonNullableFields[];
|
|
2005
|
+
default: boolean;
|
|
2006
|
+
}
|
|
2007
|
+
interface CategoryNonNullableFields {
|
|
2008
|
+
_id: number;
|
|
2009
|
+
title: string;
|
|
2010
|
+
places: PlaceNonNullableFields[];
|
|
2011
|
+
}
|
|
2012
|
+
interface ElementGroupNonNullableFields {
|
|
2013
|
+
_id: number;
|
|
2014
|
+
}
|
|
2015
|
+
interface SeatingPlanNonNullableFields {
|
|
2016
|
+
sections: SectionNonNullableFields[];
|
|
2017
|
+
categories: CategoryNonNullableFields[];
|
|
2018
|
+
uncategorizedPlaces: PlaceNonNullableFields[];
|
|
2019
|
+
elementGroups: ElementGroupNonNullableFields[];
|
|
2020
|
+
}
|
|
2021
|
+
interface PlaceReservationDetailsNonNullableFields {
|
|
2022
|
+
placeId: string;
|
|
2023
|
+
occupied: number;
|
|
2024
|
+
}
|
|
2025
|
+
interface SeatingReservationsSummaryNonNullableFields {
|
|
2026
|
+
places: PlaceReservationDetailsNonNullableFields[];
|
|
2305
2027
|
}
|
|
2306
2028
|
interface GetSeatingReservationsSummaryResponseNonNullableFields {
|
|
2307
|
-
plan?:
|
|
2308
|
-
|
|
2309
|
-
_id: number;
|
|
2310
|
-
elements: {
|
|
2311
|
-
_id: number;
|
|
2312
|
-
type: Type;
|
|
2313
|
-
sequencing?: {
|
|
2314
|
-
startAt: string;
|
|
2315
|
-
labels: string[];
|
|
2316
|
-
};
|
|
2317
|
-
overrides: {
|
|
2318
|
-
index: number;
|
|
2319
|
-
label: string;
|
|
2320
|
-
elementType: Type;
|
|
2321
|
-
}[];
|
|
2322
|
-
places: {
|
|
2323
|
-
index: number;
|
|
2324
|
-
label: string;
|
|
2325
|
-
elementType: Type;
|
|
2326
|
-
}[];
|
|
2327
|
-
reservationOptions?: {
|
|
2328
|
-
reserveWholeElement: boolean;
|
|
2329
|
-
};
|
|
2330
|
-
uiProperties?: {
|
|
2331
|
-
shapeType: ShapeTypeEnumType;
|
|
2332
|
-
labelPosition: Position;
|
|
2333
|
-
seatLayout: number[];
|
|
2334
|
-
icon: Icon;
|
|
2335
|
-
image?: {
|
|
2336
|
-
_id: string;
|
|
2337
|
-
height: number;
|
|
2338
|
-
width: number;
|
|
2339
|
-
};
|
|
2340
|
-
seatNumbering: Numbering;
|
|
2341
|
-
};
|
|
2342
|
-
}[];
|
|
2343
|
-
default: boolean;
|
|
2344
|
-
}[];
|
|
2345
|
-
categories: {
|
|
2346
|
-
_id: number;
|
|
2347
|
-
title: string;
|
|
2348
|
-
places: {
|
|
2349
|
-
index: number;
|
|
2350
|
-
label: string;
|
|
2351
|
-
elementType: Type;
|
|
2352
|
-
}[];
|
|
2353
|
-
}[];
|
|
2354
|
-
uncategorizedPlaces: {
|
|
2355
|
-
index: number;
|
|
2356
|
-
label: string;
|
|
2357
|
-
elementType: Type;
|
|
2358
|
-
}[];
|
|
2359
|
-
};
|
|
2360
|
-
seatingReservationsSummary?: {
|
|
2361
|
-
places: {
|
|
2362
|
-
placeId: string;
|
|
2363
|
-
occupied: number;
|
|
2364
|
-
}[];
|
|
2365
|
-
};
|
|
2029
|
+
plan?: SeatingPlanNonNullableFields;
|
|
2030
|
+
seatingReservationsSummary?: SeatingReservationsSummaryNonNullableFields;
|
|
2366
2031
|
}
|
|
2367
2032
|
interface BaseEventMetadata {
|
|
2368
2033
|
/** App instance ID. */
|
|
@@ -2391,7 +2056,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
2391
2056
|
slug?: string;
|
|
2392
2057
|
/** ID of the entity associated with the event. */
|
|
2393
2058
|
entityId?: string;
|
|
2394
|
-
/** Event timestamp. */
|
|
2059
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2395
2060
|
eventTime?: Date;
|
|
2396
2061
|
/**
|
|
2397
2062
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2452,25 +2117,67 @@ interface GetSeatingCategoriesSummaryOptions {
|
|
|
2452
2117
|
externalId?: string[];
|
|
2453
2118
|
}
|
|
2454
2119
|
|
|
2455
|
-
declare
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
}
|
|
2463
|
-
declare function getReservation(httpClient: HttpClient):
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
declare
|
|
2473
|
-
|
|
2120
|
+
declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
|
|
2121
|
+
interface CreateSeatingReservationSignature {
|
|
2122
|
+
/**
|
|
2123
|
+
* Creates a seating reservation
|
|
2124
|
+
* @returns Created reservation
|
|
2125
|
+
*/
|
|
2126
|
+
(options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
2127
|
+
}
|
|
2128
|
+
declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
|
|
2129
|
+
interface GetReservationSignature {
|
|
2130
|
+
/**
|
|
2131
|
+
* Returns available seat counts by category id
|
|
2132
|
+
* @param - The id of the reservation to return
|
|
2133
|
+
* @returns Created reservation
|
|
2134
|
+
*/
|
|
2135
|
+
(_id: string | null): Promise<SeatingReservation & SeatingReservationNonNullableFields>;
|
|
2136
|
+
}
|
|
2137
|
+
declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
|
|
2138
|
+
interface QuerySeatingReservationSignature {
|
|
2139
|
+
/**
|
|
2140
|
+
* Lists seating reservations by query request
|
|
2141
|
+
*/
|
|
2142
|
+
(): ReservationsQueryBuilder;
|
|
2143
|
+
}
|
|
2144
|
+
declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
|
|
2145
|
+
interface DeleteSeatingReservationSignature {
|
|
2146
|
+
/**
|
|
2147
|
+
* Deletes the seating reservation
|
|
2148
|
+
* @param - The id of the reservation to delete
|
|
2149
|
+
*/
|
|
2150
|
+
(_id: string | null): Promise<DeleteSeatingReservationResponse & DeleteSeatingReservationResponseNonNullableFields>;
|
|
2151
|
+
}
|
|
2152
|
+
declare function getSeatingCategoriesSummary$1(httpClient: HttpClient): GetSeatingCategoriesSummarySignature;
|
|
2153
|
+
interface GetSeatingCategoriesSummarySignature {
|
|
2154
|
+
/** */
|
|
2155
|
+
(options?: GetSeatingCategoriesSummaryOptions | undefined): Promise<GetSeatingCategoriesSummaryResponse>;
|
|
2156
|
+
}
|
|
2157
|
+
declare function getSeatingReservationsSummary$1(httpClient: HttpClient): GetSeatingReservationsSummarySignature;
|
|
2158
|
+
interface GetSeatingReservationsSummarySignature {
|
|
2159
|
+
/** @param - Filter for seating plan */
|
|
2160
|
+
(filter: Record<string, any> | null): Promise<GetSeatingReservationsSummaryResponse & GetSeatingReservationsSummaryResponseNonNullableFields>;
|
|
2161
|
+
}
|
|
2162
|
+
declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
|
|
2163
|
+
declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
|
|
2164
|
+
|
|
2165
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2166
|
+
|
|
2167
|
+
declare const createSeatingReservation: BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1;
|
|
2168
|
+
declare const getReservation: BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1;
|
|
2169
|
+
declare const querySeatingReservation: BuildRESTFunction<typeof querySeatingReservation$1> & typeof querySeatingReservation$1;
|
|
2170
|
+
declare const deleteSeatingReservation: BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1;
|
|
2171
|
+
declare const getSeatingCategoriesSummary: BuildRESTFunction<typeof getSeatingCategoriesSummary$1> & typeof getSeatingCategoriesSummary$1;
|
|
2172
|
+
declare const getSeatingReservationsSummary: BuildRESTFunction<typeof getSeatingReservationsSummary$1> & typeof getSeatingReservationsSummary$1;
|
|
2173
|
+
|
|
2174
|
+
type _publicOnSeatingReservationCreatedType = typeof onSeatingReservationCreated$1;
|
|
2175
|
+
/** */
|
|
2176
|
+
declare const onSeatingReservationCreated: ReturnType<typeof createEventModule<_publicOnSeatingReservationCreatedType>>;
|
|
2177
|
+
|
|
2178
|
+
type _publicOnSeatingReservationDeletedType = typeof onSeatingReservationDeleted$1;
|
|
2179
|
+
/** */
|
|
2180
|
+
declare const onSeatingReservationDeleted: ReturnType<typeof createEventModule<_publicOnSeatingReservationDeletedType>>;
|
|
2474
2181
|
|
|
2475
2182
|
type index_d_ActionEvent = ActionEvent;
|
|
2476
2183
|
type index_d_App = App;
|
|
@@ -2508,7 +2215,6 @@ type index_d_GetReservedPlacesResponse = GetReservedPlacesResponse;
|
|
|
2508
2215
|
type index_d_GetSeatingCategoriesSummaryOptions = GetSeatingCategoriesSummaryOptions;
|
|
2509
2216
|
type index_d_GetSeatingCategoriesSummaryRequest = GetSeatingCategoriesSummaryRequest;
|
|
2510
2217
|
type index_d_GetSeatingCategoriesSummaryResponse = GetSeatingCategoriesSummaryResponse;
|
|
2511
|
-
type index_d_GetSeatingCategoriesSummaryResponseNonNullableFields = GetSeatingCategoriesSummaryResponseNonNullableFields;
|
|
2512
2218
|
type index_d_GetSeatingReservationsSummaryRequest = GetSeatingReservationsSummaryRequest;
|
|
2513
2219
|
type index_d_GetSeatingReservationsSummaryResponse = GetSeatingReservationsSummaryResponse;
|
|
2514
2220
|
type index_d_GetSeatingReservationsSummaryResponseNonNullableFields = GetSeatingReservationsSummaryResponseNonNullableFields;
|
|
@@ -2529,6 +2235,8 @@ type index_d_PagingMetadataV2 = PagingMetadataV2;
|
|
|
2529
2235
|
type index_d_Place = Place;
|
|
2530
2236
|
type index_d_PlaceReservation = PlaceReservation;
|
|
2531
2237
|
type index_d_PlaceReservationDetails = PlaceReservationDetails;
|
|
2238
|
+
type index_d_PlaceTypeEnumType = PlaceTypeEnumType;
|
|
2239
|
+
declare const index_d_PlaceTypeEnumType: typeof PlaceTypeEnumType;
|
|
2532
2240
|
type index_d_Places = Places;
|
|
2533
2241
|
type index_d_Position = Position;
|
|
2534
2242
|
declare const index_d_Position: typeof Position;
|
|
@@ -2552,6 +2260,7 @@ type index_d_SeatingPlanUiProperties = SeatingPlanUiProperties;
|
|
|
2552
2260
|
type index_d_SeatingReservation = SeatingReservation;
|
|
2553
2261
|
type index_d_SeatingReservationCreatedEnvelope = SeatingReservationCreatedEnvelope;
|
|
2554
2262
|
type index_d_SeatingReservationDeletedEnvelope = SeatingReservationDeletedEnvelope;
|
|
2263
|
+
type index_d_SeatingReservationNonNullableFields = SeatingReservationNonNullableFields;
|
|
2555
2264
|
type index_d_SeatingReservationsSummary = SeatingReservationsSummary;
|
|
2556
2265
|
type index_d_Section = Section;
|
|
2557
2266
|
type index_d_Sequencing = Sequencing;
|
|
@@ -2567,7 +2276,8 @@ type index_d_UnavailablePlaces = UnavailablePlaces;
|
|
|
2567
2276
|
type index_d_VerticalSequencing = VerticalSequencing;
|
|
2568
2277
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
2569
2278
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
2570
|
-
|
|
2279
|
+
type index_d__publicOnSeatingReservationCreatedType = _publicOnSeatingReservationCreatedType;
|
|
2280
|
+
type index_d__publicOnSeatingReservationDeletedType = _publicOnSeatingReservationDeletedType;
|
|
2571
2281
|
declare const index_d_createSeatingReservation: typeof createSeatingReservation;
|
|
2572
2282
|
declare const index_d_deleteSeatingReservation: typeof deleteSeatingReservation;
|
|
2573
2283
|
declare const index_d_getReservation: typeof getReservation;
|
|
@@ -2577,7 +2287,7 @@ declare const index_d_onSeatingReservationCreated: typeof onSeatingReservationCr
|
|
|
2577
2287
|
declare const index_d_onSeatingReservationDeleted: typeof onSeatingReservationDeleted;
|
|
2578
2288
|
declare const index_d_querySeatingReservation: typeof querySeatingReservation;
|
|
2579
2289
|
declare namespace index_d {
|
|
2580
|
-
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
|
|
2290
|
+
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_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_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 };
|
|
2581
2291
|
}
|
|
2582
2292
|
|
|
2583
2293
|
export { index_d$1 as seatingPlan, index_d as seatingReservation };
|