@wix/auto_sdk_seatings_seating-reservation 1.0.6 → 1.0.8

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,14 +1,17 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { C as CreateSeatingReservationOptions, S as SeatingReservation, R as ReservationsQueryBuilder, D as DeleteSeatingReservationResponse, G as GetSeatingCategorySummaryOptions, a as GetSeatingCategorySummaryResponse, b as GetSeatingReservationSummaryResponse, c as SeatingReservationCreatedEnvelope, d as SeatingReservationDeletedEnvelope } from './seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.js';
3
- export { ar as ActionEvent, A as App, av as BaseEventMetadata, M as CancelSeatingPlaceReservationsRequest, V as CancelSeatingPlaceReservationsResponse, ad as Category, j as CategoryDetails, o as CreateSeatingReservationRequest, p as CreateSeatingReservationResponse, z as CursorPaging, H as Cursors, n as CustomTag, K as DeleteSeatingPlaceReservationRequest, J as DeleteSeatingReservationRequest, al as DomainEvent, am as DomainEventBodyOneOf, a3 as Element, ag as ElementGroup, ah as ElementGroupUiProperties, a7 as ElementUiProperties, L as Empty, an as EntityCreatedEvent, aq as EntityDeletedEvent, ap as EntityUpdatedEvent, aw as EventMetadata, ae as ExtendedFields, F as File, t as GetReservationRequest, u as GetReservationResponse, Z as GetReservedPlacesRequest, _ as GetReservedPlacesResponse, $ as GetSeatingCategorySummaryRequest, a0 as GetSeatingReservationSummaryRequest, I as Icon, at as IdentificationData, au as IdentificationDataIdOneOf, a8 as Image, k as InvalidateCache, l as InvalidateCacheGetByOneOf, as as MessageEnvelope, a9 as MultiRowProperties, N as Numbering, m as Page, y as Paging, E as PagingMetadataV2, a5 as Place, h as PlaceReservation, O as PlaceReservationDetails, P as PlaceTypeEnumType, q as Places, g as Position, Q as QuerySeatingReservationRequest, B as QuerySeatingReservationResponse, v as QueryV2, w as QueryV2PagingMethodOneOf, ai as RegenerateSummariesRequest, aj as RegenerateSummariesResponse, s as ReservationErrorDetails, a6 as ReservationOptions, ax as ReservationsQueryResult, ao as RestoreInfo, aa as RowElement, ab as RowElementUiProperties, a1 as SeatingPlan, i as SeatingPlanCategoriesSummaryUpdated, af as SeatingPlanUiProperties, ak as SeatingReservationsSummary, a2 as Section, a4 as Sequencing, f as ShapeTypeEnumType, e as SortOrder, x as Sorting, T as Type, U as URI, r as UnavailablePlaces, X as UpdateSeatingReservationRequest, Y as UpdateSeatingReservationResponse, ac as VerticalSequencing, W as WebhookIdentityType } from './seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { CreateSeatingReservationOptions, SeatingReservation, CreateSeatingReservationApplicationErrors, ReservationsQueryBuilder, DeleteSeatingReservationResponse, GetSeatingCategorySummaryOptions, GetSeatingCategorySummaryResponse, GetSeatingReservationSummaryResponse, SeatingReservationCreatedEnvelope, SeatingReservationDeletedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, App, BaseEventMetadata, CancelSeatingPlaceReservationsRequest, CancelSeatingPlaceReservationsResponse, Category, CategoryDetails, CreateSeatingReservationRequest, CreateSeatingReservationResponse, CursorPaging, Cursors, CustomTag, DeleteSeatingPlaceReservationRequest, DeleteSeatingReservationRequest, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetReservationRequest, GetReservationResponse, GetReservedPlacesRequest, GetReservedPlacesResponse, GetSeatingCategorySummaryRequest, GetSeatingReservationSummaryRequest, Icon, IdentificationData, IdentificationDataIdOneOf, Image, InvalidateCache, InvalidateCacheGetByOneOf, MessageEnvelope, MultiRowProperties, Numbering, Page, Paging, PagingMetadataV2, Place, PlaceReservation, PlaceReservationDetails, PlaceTypeEnumType, Places, Position, QuerySeatingReservationRequest, QuerySeatingReservationResponse, QueryV2, QueryV2PagingMethodOneOf, RegenerateSummariesRequest, RegenerateSummariesResponse, ReservationErrorDetails, ReservationOptions, ReservationsQueryResult, RestoreInfo, RowElement, RowElementUiProperties, SeatingPlan, SeatingPlanCategoriesSummaryUpdated, SeatingPlanUiProperties, SeatingReservationsSummary, Section, Sequencing, ShapeTypeEnumType, SortOrder, Sorting, Type, URI, UnavailablePlaces, UpdateSeatingReservationRequest, UpdateSeatingReservationResponse, VerticalSequencing, WebhookIdentityType } from './index.typings.js';
4
4
 
5
+ type SeatingReservationNonNullablePaths = `reservedPlaces` | `reservedPlaces.${number}._id`;
5
6
  declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
6
7
  interface CreateSeatingReservationSignature {
7
8
  /**
8
9
  * Creates a seating reservation
9
10
  * @returns Created reservation
10
11
  */
11
- (options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation>;
12
+ (options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths> & {
13
+ __applicationErrorsType?: CreateSeatingReservationApplicationErrors;
14
+ }>;
12
15
  }
13
16
  declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
14
17
  interface GetReservationSignature {
@@ -17,7 +20,7 @@ interface GetReservationSignature {
17
20
  * @param - The id of the reservation to return
18
21
  * @returns Created reservation
19
22
  */
20
- (_id: string): Promise<SeatingReservation>;
23
+ (_id: string): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
21
24
  }
22
25
  declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
23
26
  interface QuerySeatingReservationSignature {
@@ -32,17 +35,19 @@ interface DeleteSeatingReservationSignature {
32
35
  * Deletes the seating reservation
33
36
  * @param - The id of the reservation to delete
34
37
  */
35
- (_id: string): Promise<DeleteSeatingReservationResponse>;
38
+ (_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, {
39
+ [P in SeatingReservationNonNullablePaths]: `reservation.${P}`;
40
+ }[SeatingReservationNonNullablePaths]>>;
36
41
  }
37
42
  declare function getSeatingCategorySummary$1(httpClient: HttpClient): GetSeatingCategorySummarySignature;
38
43
  interface GetSeatingCategorySummarySignature {
39
44
  /** */
40
- (options?: GetSeatingCategorySummaryOptions | undefined): Promise<GetSeatingCategorySummaryResponse>;
45
+ (options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>>;
41
46
  }
42
47
  declare function getSeatingReservationSummary$1(httpClient: HttpClient): GetSeatingReservationSummarySignature;
43
48
  interface GetSeatingReservationSummarySignature {
44
49
  /** @param - Seating plan external id */
45
- (externalId: string): Promise<GetSeatingReservationSummaryResponse>;
50
+ (externalId: string): Promise<NonNullablePaths<GetSeatingReservationSummaryResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id` | `places` | `places.${number}.placeId` | `places.${number}.occupied`>>;
46
51
  }
47
52
  declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
48
53
  declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/seating-v1-seating-reservation-seating-reservation.public.ts","../../src/seating-v1-seating-reservation-seating-reservation.universal.ts","../../src/seating-v1-seating-reservation-seating-reservation.http.ts","../../src/seating-v1-seating-reservation-seating-reservation.context.ts"],"sourcesContent":["export * from './src/seating-v1-seating-reservation-seating-reservation.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient } from '@wix/sdk-types';\nimport {\n CreateSeatingReservationOptions,\n DeleteSeatingReservationResponse,\n GetSeatingCategorySummaryOptions,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryResponse,\n ReservationsQueryBuilder,\n SeatingReservation,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n createSeatingReservation as universalCreateSeatingReservation,\n deleteSeatingReservation as universalDeleteSeatingReservation,\n getReservation as universalGetReservation,\n getSeatingCategorySummary as universalGetSeatingCategorySummary,\n getSeatingReservationSummary as universalGetSeatingReservationSummary,\n querySeatingReservation as universalQuerySeatingReservation,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/seatings' };\n\nexport function createSeatingReservation(\n httpClient: HttpClient\n): CreateSeatingReservationSignature {\n return (options?: CreateSeatingReservationOptions) =>\n universalCreateSeatingReservation(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSeatingReservationSignature {\n /**\n * Creates a seating reservation\n * @returns Created reservation\n */\n (\n options?: CreateSeatingReservationOptions | undefined\n ): Promise<SeatingReservation>;\n}\n\nexport function getReservation(\n httpClient: HttpClient\n): GetReservationSignature {\n return (_id: string) =>\n universalGetReservation(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetReservationSignature {\n /**\n * Returns seating reservation\n * @param - The id of the reservation to return\n * @returns Created reservation\n */\n (_id: string): Promise<SeatingReservation>;\n}\n\nexport function querySeatingReservation(\n httpClient: HttpClient\n): QuerySeatingReservationSignature {\n return () =>\n universalQuerySeatingReservation(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySeatingReservationSignature {\n /**\n * Lists seating reservations by query request\n */\n (): ReservationsQueryBuilder;\n}\n\nexport function deleteSeatingReservation(\n httpClient: HttpClient\n): DeleteSeatingReservationSignature {\n return (_id: string) =>\n universalDeleteSeatingReservation(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSeatingReservationSignature {\n /**\n * Deletes the seating reservation\n * @param - The id of the reservation to delete\n */\n (_id: string): Promise<DeleteSeatingReservationResponse>;\n}\n\nexport function getSeatingCategorySummary(\n httpClient: HttpClient\n): GetSeatingCategorySummarySignature {\n return (options?: GetSeatingCategorySummaryOptions) =>\n universalGetSeatingCategorySummary(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeatingCategorySummarySignature {\n /** */\n (\n options?: GetSeatingCategorySummaryOptions | undefined\n ): Promise<GetSeatingCategorySummaryResponse>;\n}\n\nexport function getSeatingReservationSummary(\n httpClient: HttpClient\n): GetSeatingReservationSummarySignature {\n return (externalId: string) =>\n universalGetSeatingReservationSummary(\n externalId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeatingReservationSummarySignature {\n /** @param - Seating plan external id */\n (externalId: string): Promise<GetSeatingReservationSummaryResponse>;\n}\n\nexport const onSeatingReservationCreated = EventDefinition(\n 'wix.seating.v1.seating_reservation_created',\n true,\n (event: SeatingReservationCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<SeatingReservationCreatedEnvelope>();\nexport const onSeatingReservationDeleted = EventDefinition(\n 'wix.seating.v1.seating_reservation_deleted',\n true,\n (event: SeatingReservationDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<SeatingReservationDeletedEnvelope>();\n\nexport {\n ActionEvent,\n App,\n BaseEventMetadata,\n CancelSeatingPlaceReservationsRequest,\n CancelSeatingPlaceReservationsResponse,\n Category,\n CategoryDetails,\n CreateSeatingReservationOptions,\n CreateSeatingReservationRequest,\n CreateSeatingReservationResponse,\n CursorPaging,\n Cursors,\n CustomTag,\n DeleteSeatingPlaceReservationRequest,\n DeleteSeatingReservationRequest,\n DeleteSeatingReservationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Element,\n ElementGroup,\n ElementGroupUiProperties,\n ElementUiProperties,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n File,\n GetReservationRequest,\n GetReservationResponse,\n GetReservedPlacesRequest,\n GetReservedPlacesResponse,\n GetSeatingCategorySummaryOptions,\n GetSeatingCategorySummaryRequest,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryRequest,\n GetSeatingReservationSummaryResponse,\n Icon,\n IdentificationData,\n IdentificationDataIdOneOf,\n Image,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n MessageEnvelope,\n MultiRowProperties,\n Numbering,\n Page,\n Paging,\n PagingMetadataV2,\n Place,\n PlaceReservation,\n PlaceReservationDetails,\n PlaceTypeEnumType,\n Places,\n Position,\n QuerySeatingReservationRequest,\n QuerySeatingReservationResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n RegenerateSummariesRequest,\n RegenerateSummariesResponse,\n ReservationErrorDetails,\n ReservationOptions,\n ReservationsQueryBuilder,\n ReservationsQueryResult,\n RestoreInfo,\n RowElement,\n RowElementUiProperties,\n SeatingPlan,\n SeatingPlanCategoriesSummaryUpdated,\n SeatingPlanUiProperties,\n SeatingReservation,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n SeatingReservationsSummary,\n Section,\n Sequencing,\n ShapeTypeEnumType,\n SortOrder,\n Sorting,\n Type,\n URI,\n UnavailablePlaces,\n UpdateSeatingReservationRequest,\n UpdateSeatingReservationResponse,\n VerticalSequencing,\n WebhookIdentityType,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixSeatingV1SeatingReservation from './seating-v1-seating-reservation-seating-reservation.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface SeatingReservation {\n /**\n * The id of the reservation\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The seating plan id\n * @format GUID\n * @readonly\n */\n seatingPlanId?: string | null;\n /**\n * The external seating plan id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalSeatingPlanId?: string | null;\n /**\n * Reserved places\n * @minSize 1\n * @maxSize 100\n */\n reservedPlaces?: PlaceReservation[];\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{fqdn}:{entity guid}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Revision number, which increments by 1 each time the reservation is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface PlaceReservation {\n /**\n * The place id.\n * @minLength 5\n * @maxLength 11\n */\n _id?: string;\n /**\n * Number of places in the spot. If not provided - defaults to 1.\n * Used to reserve for more that one place in areas.\n * @min 1\n * @max 50\n */\n capacity?: number | null;\n /**\n * Optional section label.\n * @readonly\n */\n sectionLabel?: string | null;\n /**\n * Area label.\n * @readonly\n */\n areaLabel?: string | null;\n /**\n * Table label.\n * @readonly\n */\n tableLabel?: string | null;\n /**\n * Row label.\n * @readonly\n */\n rowLabel?: string | null;\n /**\n * Seat label in a row or table.\n * @readonly\n */\n seatLabel?: string | null;\n}\n\nexport interface SeatingPlanCategoriesSummaryUpdated {\n /**\n * Seating plan id\n * @format GUID\n */\n seatingPlanId?: string;\n /** External seating plan id */\n externalSeatingPlanId?: string | null;\n /**\n * Ticket counts by category\n * @maxSize 100\n */\n categories?: CategoryDetails[];\n /**\n * Summary revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface CategoryDetails {\n /**\n * Seating plan id\n * @format GUID\n * @readonly\n */\n seatingPlanId?: string | null;\n /**\n * External seating plan id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalSeatingPlanId?: string | null;\n /**\n * External category id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalCategoryId?: string | null;\n /**\n * Total capacity in the category\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Already reserved capacity\n * @readonly\n */\n reserved?: number | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface CreateSeatingReservationRequest {\n /** A reservation to create */\n reservation?: SeatingReservation;\n}\n\nexport interface CreateSeatingReservationResponse {\n /** Created reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface Places {\n /**\n * Places\n * @minSize 1\n * @maxSize 100\n */\n places?: string[];\n}\n\nexport interface UnavailablePlaces {\n /**\n * Places that cannot be reserved\n * @minSize 1\n * @maxSize 100\n */\n unavailablePlaces?: string[];\n /**\n * Reservation error details\n * @minSize 1\n * @maxSize 100\n */\n reservationErrorDetails?: ReservationErrorDetails[];\n}\n\nexport interface ReservationErrorDetails {\n /** Place */\n _id?: string;\n /** Available capacity */\n available?: number;\n /** Requested capacity */\n requested?: number;\n}\n\nexport interface GetReservationRequest {\n /**\n * The id of the reservation to return\n * @format GUID\n */\n _id: string | null;\n}\n\nexport interface GetReservationResponse {\n /** Created reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface QuerySeatingReservationRequest {\n /** A query object */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** 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. */\n fields?: string[];\n /** 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. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySeatingReservationResponse {\n /** Found reservations */\n reservations?: SeatingReservation[];\n /** Paging meta data */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DeleteSeatingReservationRequest {\n /**\n * The id of the reservation to delete\n * @format GUID\n */\n _id: string | null;\n}\n\nexport interface DeleteSeatingReservationResponse {\n /** The deleted reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface DeleteSeatingPlaceReservationRequest {\n /** The id of the place reservation to delete */\n _id?: string | null;\n /**\n * The id of the place reservation's reservation\n * @format GUID\n */\n reservationId?: string | null;\n}\n\nexport interface Empty {}\n\nexport interface CancelSeatingPlaceReservationsRequest {\n /**\n * The id of the place reservations' reservation\n * @format GUID\n */\n reservationId?: string | null;\n /**\n * The place reservations to cancel\n * @minSize 1\n * @maxSize 100\n */\n placeReservations?: PlaceReservationDetails[];\n}\n\nexport interface PlaceReservationDetails {\n placeId?: string;\n occupied?: number;\n}\n\nexport interface CancelSeatingPlaceReservationsResponse {\n /** The reservation with canceled place reservations */\n reservation?: SeatingReservation;\n}\n\nexport interface UpdateSeatingReservationRequest {\n /** A reservation to update */\n reservation?: SeatingReservation;\n}\n\nexport interface UpdateSeatingReservationResponse {\n /** The updated reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface GetReservedPlacesRequest {\n /**\n * Seating plan id\n * @format GUID\n */\n _id?: string | null;\n}\n\nexport interface GetReservedPlacesResponse {\n /** Reserved places of the plan */\n placeReservations?: PlaceReservation[];\n}\n\nexport interface GetSeatingCategorySummaryRequest {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string;\n}\n\nexport interface GetSeatingCategorySummaryResponse {\n /**\n * Ticket counts by category\n * @maxSize 50000\n */\n categories?: CategoryDetails[];\n}\n\nexport interface GetSeatingReservationSummaryRequest {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId: string;\n}\n\nexport interface GetSeatingReservationSummaryResponse {\n plan?: SeatingPlan;\n /** @maxSize 50000 */\n places?: PlaceReservationDetails[];\n}\n\nexport interface SeatingPlan {\n /**\n * Auto generated unique plan id\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{fqdn}:{entity guid}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Human friendly plan title\n * @minLength 1\n * @maxLength 120\n */\n title?: string | null;\n /**\n * Sections of the plan. Seating plan is divided in high level sections.\n * @maxSize 100\n */\n sections?: Section[];\n /**\n * Categories for plan element grouping.\n * @maxSize 100\n */\n categories?: Category[];\n /**\n * Seating plan created timestamp.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Seating plan updated timestamp.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Total categories\n * @readonly\n */\n totalCategories?: number | null;\n /**\n * Places not assigned to categories\n * @maxSize 50000\n * @readonly\n */\n uncategorizedPlaces?: Place[];\n /**\n * A version of the seating plan\n * @readonly\n */\n version?: string | null;\n /** Data extensions */\n extendedFields?: ExtendedFields;\n /** Seating Plan UI settings */\n uiProperties?: SeatingPlanUiProperties;\n /**\n * Element groups\n * @maxSize 1000\n */\n elementGroups?: ElementGroup[];\n}\n\nexport interface Section {\n /** Unique section id */\n _id?: number;\n /**\n * Human readable section title\n * @minLength 1\n * @maxLength 20\n */\n title?: string | null;\n /**\n * Client configuration object\n * @readonly\n */\n config?: Record<string, any> | null;\n /**\n * Elements of the section.\n * @maxSize 1000\n */\n elements?: Element[];\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Is default section\n * @readonly\n */\n default?: boolean;\n}\n\nexport interface Element {\n /**\n * Unique element id\n * @min 1\n */\n _id?: number;\n /**\n * User friendly title/label of the element.\n * @minLength 1\n * @maxLength 50\n */\n title?: string | null;\n /** Element type */\n type?: TypeWithLiterals;\n /**\n * Capacity. None for Shape type Element.\n * @min 1\n * @max 50000\n */\n capacity?: number | null;\n /** Assigned to a category */\n categoryId?: number | null;\n /** A place numbering meta data */\n sequencing?: Sequencing;\n /**\n * Place override (by seq_id)\n * @maxSize 2000\n */\n overrides?: Place[];\n /**\n * Final place sequence with overrides\n * @maxSize 200\n * @readonly\n */\n places?: Place[];\n /** Element reservation options */\n reservationOptions?: ReservationOptions;\n /** Element UI settings */\n uiProperties?: ElementUiProperties;\n /** Element group id */\n elementGroupId?: number | null;\n /** Multi row element relevant for MULTI_ROW element type */\n multiRowProperties?: MultiRowProperties;\n}\n\nexport enum Type {\n AREA = 'AREA',\n ROW = 'ROW',\n MULTI_ROW = 'MULTI_ROW',\n TABLE = 'TABLE',\n ROUND_TABLE = 'ROUND_TABLE',\n SHAPE = 'SHAPE',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'AREA'\n | 'ROW'\n | 'MULTI_ROW'\n | 'TABLE'\n | 'ROUND_TABLE'\n | 'SHAPE';\n\nexport interface Sequencing {\n /**\n * First seq element\n * @minLength 1\n * @maxLength 4\n */\n startAt?: string;\n /**\n * Finite generated seq of labels\n * @maxSize 2500\n */\n labels?: string[];\n /** If true - direction right to left. Otherwise left to right. */\n reverseOrder?: boolean | null;\n}\n\nexport interface Place {\n /** Local id of the place in the sequence */\n index?: number;\n /**\n * Generated composite unique id in the seating plan.\n * @readonly\n */\n _id?: string | null;\n /**\n * Unique label of the place\n * @minLength 1\n * @maxLength 4\n */\n label?: string;\n /**\n * Max capacity per place\n * @readonly\n */\n capacity?: number | null;\n /**\n * Type of the parent element\n * @readonly\n */\n elementType?: TypeWithLiterals;\n /**\n * Assigned category id\n * @readonly\n */\n categoryId?: number | null;\n /** Place type */\n type?: PlaceTypeEnumTypeWithLiterals;\n}\n\nexport enum PlaceTypeEnumType {\n UNKNOWN_PROPERTY = 'UNKNOWN_PROPERTY',\n STANDARD = 'STANDARD',\n WHEELCHAIR = 'WHEELCHAIR',\n ACCESSIBLE = 'ACCESSIBLE',\n COMPANION = 'COMPANION',\n OBSTRUCTED = 'OBSTRUCTED',\n DISCOUNT = 'DISCOUNT',\n}\n\n/** @enumType */\nexport type PlaceTypeEnumTypeWithLiterals =\n | PlaceTypeEnumType\n | 'UNKNOWN_PROPERTY'\n | 'STANDARD'\n | 'WHEELCHAIR'\n | 'ACCESSIBLE'\n | 'COMPANION'\n | 'OBSTRUCTED'\n | 'DISCOUNT';\n\nexport interface ReservationOptions {\n /** Indicates whether the entire element must be reserved */\n reserveWholeElement?: boolean;\n}\n\nexport interface ElementUiProperties {\n /**\n * @min -1000000\n * @max 1000000\n */\n x?: number | null;\n /**\n * @min -1000000\n * @max 1000000\n */\n y?: number | null;\n /**\n * @min -1000000\n * @max 1000000\n */\n zIndex?: number | null;\n /** @max 1000000 */\n width?: number | null;\n /** @max 1000000 */\n height?: number | null;\n /**\n * @min -180\n * @max 180\n */\n rotationAngle?: number | null;\n shapeType?: ShapeTypeEnumTypeWithLiterals;\n /**\n * @min 10\n * @max 176\n */\n fontSize?: number | null;\n /** @max 1000000 */\n cornerRadius?: number | null;\n /**\n * @min 1\n * @max 60\n */\n seatSpacing?: number | null;\n hideLabel?: boolean | null;\n labelPosition?: PositionWithLiterals;\n seatLayout?: number[];\n /** @max 50 */\n emptyTopSeatSpaces?: number | null;\n /**\n * needs research\n * @minLength 1\n * @maxLength 10000\n */\n text?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n color?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n fillColor?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n strokeColor?: string | null;\n /**\n * px\n * @min 1\n * @max 6\n */\n strokeWidth?: number | null;\n /** @max 100 */\n opacity?: number | null;\n icon?: IconWithLiterals;\n image?: Image;\n seatNumbering?: NumberingWithLiterals;\n}\n\nexport enum ShapeTypeEnumType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n TEXT = 'TEXT',\n RECTANGLE = 'RECTANGLE',\n ELLIPSE = 'ELLIPSE',\n LINE = 'LINE',\n ICON = 'ICON',\n IMAGE = 'IMAGE',\n}\n\n/** @enumType */\nexport type ShapeTypeEnumTypeWithLiterals =\n | ShapeTypeEnumType\n | 'UNKNOWN_TYPE'\n | 'TEXT'\n | 'RECTANGLE'\n | 'ELLIPSE'\n | 'LINE'\n | 'ICON'\n | 'IMAGE';\n\nexport enum Position {\n UNKNOWN_POSITION = 'UNKNOWN_POSITION',\n LEFT = 'LEFT',\n RIGHT = 'RIGHT',\n BOTH = 'BOTH',\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type PositionWithLiterals =\n | Position\n | 'UNKNOWN_POSITION'\n | 'LEFT'\n | 'RIGHT'\n | 'BOTH'\n | 'NONE';\n\nexport enum Icon {\n UNKNOWN_ICON = 'UNKNOWN_ICON',\n ENTER = 'ENTER',\n EXIT = 'EXIT',\n DRINKS = 'DRINKS',\n WC = 'WC',\n WC_MEN = 'WC_MEN',\n WC_WOMEN = 'WC_WOMEN',\n FOOD = 'FOOD',\n STAIRS = 'STAIRS',\n ELEVATOR = 'ELEVATOR',\n SMOKING = 'SMOKING',\n CHECKROOM = 'CHECKROOM',\n STAGE = 'STAGE',\n}\n\n/** @enumType */\nexport type IconWithLiterals =\n | Icon\n | 'UNKNOWN_ICON'\n | 'ENTER'\n | 'EXIT'\n | 'DRINKS'\n | 'WC'\n | 'WC_MEN'\n | 'WC_WOMEN'\n | 'FOOD'\n | 'STAIRS'\n | 'ELEVATOR'\n | 'SMOKING'\n | 'CHECKROOM'\n | 'STAGE';\n\nexport interface Image {\n /** WixMedia image ID. */\n _id?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * WixMedia image URI.\n * @deprecated\n */\n uri?: string | null;\n}\n\nexport enum Numbering {\n UNKNOWN_NUMBERING = 'UNKNOWN_NUMBERING',\n NUMERIC = 'NUMERIC',\n ODD_EVEN = 'ODD_EVEN',\n ALPHABETICAL = 'ALPHABETICAL',\n}\n\n/** @enumType */\nexport type NumberingWithLiterals =\n | Numbering\n | 'UNKNOWN_NUMBERING'\n | 'NUMERIC'\n | 'ODD_EVEN'\n | 'ALPHABETICAL';\n\nexport interface MultiRowProperties {\n /**\n * Individual rows of the multi row element\n * @maxSize 1000\n */\n rows?: RowElement[];\n /** Meta data for vertical labeling */\n verticalSequencing?: VerticalSequencing;\n /**\n * Row spacing\n * @min 1\n * @max 60\n */\n rowSpacing?: number | null;\n /**\n * Amount of seats in the row\n * @max 50\n */\n seatAmount?: number | null;\n}\n\nexport interface RowElement {\n /**\n * Unique row id\n * @min 1\n */\n _id?: number;\n /**\n * User friendly title/label of the row\n * @minLength 1\n * @maxLength 50\n */\n title?: string | null;\n /**\n * Row capacity\n * @min 1\n * @max 50000\n */\n capacity?: number | null;\n /** Assigned to a category */\n categoryId?: number | null;\n /** A place numbering meta data for a single row */\n sequencing?: Sequencing;\n /** Row UI settings */\n uiProperties?: RowElementUiProperties;\n}\n\nexport interface RowElementUiProperties {\n /**\n * Relative x position to the parent element\n * @min -1000000\n * @max 1000000\n */\n relativeX?: number | null;\n /**\n * Width of the row\n * @max 1000000\n */\n width?: number | null;\n /**\n * Amount of seats in the row\n * @max 50\n */\n seatAmount?: number | null;\n /**\n * Seat spacing\n * @min 1\n * @max 60\n */\n seatSpacing?: number | null;\n /** Label position */\n labelPosition?: PositionWithLiterals;\n /** Seat numbering */\n seatNumbering?: NumberingWithLiterals;\n}\n\nexport interface VerticalSequencing {\n /**\n * First seq element\n * @minLength 1\n * @maxLength 4\n */\n startAt?: string;\n /** Row numbering */\n rowNumbering?: NumberingWithLiterals;\n /** If true - direction bottom to top. Otherwise top to bottom. */\n reverseOrder?: boolean | null;\n}\n\nexport interface Category {\n /**\n * Local category id within the seating plan\n * @min 1\n */\n _id?: number;\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{entity_fqdn}:{entity_id}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Category label\n * @minLength 1\n * @maxLength 120\n */\n title?: string;\n /**\n * Client configuration object\n * @readonly\n */\n config?: Record<string, any> | null;\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Possible places\n * @maxSize 50000\n * @readonly\n */\n places?: Place[];\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface SeatingPlanUiProperties {\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n backgroundColor?: string | null;\n /** @max 100 */\n backgroundOpacity?: number | null;\n}\n\nexport interface ElementGroup {\n /**\n * Unique element group id\n * @min 1\n */\n _id?: number;\n /** Parent group id */\n parentElementGroupId?: number | null;\n /** Element group UI settings */\n uiProperties?: ElementGroupUiProperties;\n}\n\nexport interface ElementGroupUiProperties {\n /**\n * x position of the group\n * @min -1000000\n * @max 1000000\n */\n x?: number | null;\n /**\n * y position of the group\n * @min -1000000\n * @max 1000000\n */\n y?: number | null;\n /**\n * width of the group\n * @max 1000000\n */\n width?: number | null;\n /**\n * height of the group\n * @max 1000000\n */\n height?: number | null;\n /**\n * rotation angle of the group\n * @min -180\n * @max 180\n */\n rotationAngle?: number | null;\n}\n\nexport interface RegenerateSummariesRequest {\n /**\n * Seating plan id\n * @format GUID\n */\n planId?: string | null;\n}\n\nexport interface RegenerateSummariesResponse {\n seatingReservationsSummary?: SeatingReservationsSummary;\n /** @maxSize 50000 */\n categories?: CategoryDetails[];\n}\n\nexport interface SeatingReservationsSummary {\n /** @maxSize 50000 */\n places?: PlaceReservationDetails[];\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface SeatingReservationCreatedEnvelope {\n entity: SeatingReservation;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @webhook\n * @eventType wix.seating.v1.seating_reservation_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSeatingReservationCreated(\n handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SeatingReservationDeletedEnvelope {\n entity: SeatingReservation;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @webhook\n * @eventType wix.seating.v1.seating_reservation_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSeatingReservationDeleted(\n handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>\n): void;\n\ntype SeatingReservationNonNullablePaths =\n | `reservedPlaces`\n | `reservedPlaces.${number}._id`;\n\n/**\n * Creates a seating reservation\n * @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS\n * @applicableIdentity APP\n * @returns Created reservation\n * @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation\n */\nexport async function createSeatingReservation(\n options?: CreateSeatingReservationOptions\n): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n reservation: options?.reservation,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.createSeatingReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { reservation: '$[0].reservation' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateSeatingReservationOptions {\n /** A reservation to create */\n reservation?: SeatingReservation;\n}\n\n/**\n * Returns seating reservation\n * @param _id - The id of the reservation to return\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @applicableIdentity APP\n * @returns Created reservation\n * @fqn com.wixpress.seating.SeatingReservationService.GetReservation\n */\nexport async function getReservation(\n _id: string\n): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Lists seating reservations by query request\n * @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @applicableIdentity APP\n * @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation\n */\nexport function querySeatingReservation(): ReservationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n SeatingReservation,\n 'CURSOR',\n QuerySeatingReservationRequest,\n QuerySeatingReservationResponse\n >({\n func: async (payload: QuerySeatingReservationRequest) => {\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.querySeatingReservation(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySeatingReservationRequest['query']) => {\n const args = [query, {}] as [QuerySeatingReservationRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QuerySeatingReservationResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.reservations,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ReservationsQueryResult extends QueryCursorResult {\n items: SeatingReservation[];\n query: ReservationsQueryBuilder;\n next: () => Promise<ReservationsQueryResult>;\n prev: () => Promise<ReservationsQueryResult>;\n}\n\nexport interface ReservationsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => ReservationsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ReservationsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ReservationsQueryResult>;\n}\n\n/**\n * Deletes the seating reservation\n * @param _id - The id of the reservation to delete\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS\n * @applicableIdentity APP\n * @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation\n */\nexport async function deleteSeatingReservation(\n _id: string\n): Promise<\n NonNullablePaths<\n DeleteSeatingReservationResponse,\n {\n [P in SeatingReservationNonNullablePaths]: `reservation.${P}`;\n }[SeatingReservationNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.deleteSeatingReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.READ_SEATING_PLANS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary\n */\nexport async function getSeatingCategorySummary(\n options?: GetSeatingCategorySummaryOptions\n): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n externalId: options?.externalId,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getSeatingCategorySummary(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { externalId: '$[0].externalId' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSeatingCategorySummaryOptions {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string;\n}\n\n/** @param externalId - Seating plan external id\n * @public\n * @documentationMaturity preview\n * @requiredField externalId\n * @permissionId SEATING_PLANS.READ_SEATING_PLANS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary\n */\nexport async function getSeatingReservationSummary(\n externalId: string\n): Promise<\n NonNullablePaths<\n GetSeatingReservationSummaryResponse,\n | `plan.sections`\n | `plan.sections.${number}._id`\n | `plan.sections.${number}.default`\n | `plan.categories`\n | `plan.categories.${number}._id`\n | `plan.categories.${number}.title`\n | `plan.uncategorizedPlaces`\n | `plan.elementGroups`\n | `plan.elementGroups.${number}._id`\n | `places`\n | `places.${number}.placeId`\n | `places.${number}.occupied`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n externalId: externalId,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getSeatingReservationSummary(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { externalId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['externalId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressSeatingSeatingReservationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _api_base_domain_: [\n {\n srcPath: '/seating-reservations',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/seating-reservations',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seatings_seating-reservation';\n\n/** Creates a seating reservation */\nexport function createSeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createSeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.CreateSeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createSeatingReservation;\n}\n\n/** Returns seating reservation */\nexport function getReservation(payload: object): RequestOptionsFactory<any> {\n function __getReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getReservation;\n}\n\n/** Lists seating reservations by query request */\nexport function querySeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __querySeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.QuerySeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/query',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __querySeatingReservation;\n}\n\n/** Deletes the seating reservation */\nexport function deleteSeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteSeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSeatingReservation;\n}\n\nexport function getSeatingCategorySummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSeatingCategorySummary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/seating-category-summary',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSeatingCategorySummary;\n}\n\nexport function getSeatingReservationSummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSeatingReservationSummary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/seating-reservation-summary/{externalId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'plan.sections.elements.uiProperties.x' },\n { path: 'plan.sections.elements.uiProperties.y' },\n { path: 'plan.sections.elements.uiProperties.width' },\n { path: 'plan.sections.elements.uiProperties.height' },\n { path: 'plan.sections.elements.uiProperties.rotationAngle' },\n {\n path: 'plan.sections.elements.multiRowProperties.curveAngleTo',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',\n },\n { path: 'plan.elementGroups.uiProperties.x' },\n { path: 'plan.elementGroups.uiProperties.y' },\n { path: 'plan.elementGroups.uiProperties.width' },\n { path: 'plan.elementGroups.uiProperties.height' },\n { path: 'plan.elementGroups.uiProperties.rotationAngle' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSeatingReservationSummary;\n}\n","import {\n createSeatingReservation as publicCreateSeatingReservation,\n getReservation as publicGetReservation,\n querySeatingReservation as publicQuerySeatingReservation,\n deleteSeatingReservation as publicDeleteSeatingReservation,\n getSeatingCategorySummary as publicGetSeatingCategorySummary,\n getSeatingReservationSummary as publicGetSeatingReservationSummary,\n} from './seating-v1-seating-reservation-seating-reservation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onSeatingReservationCreated as publicOnSeatingReservationCreated } from './seating-v1-seating-reservation-seating-reservation.public.js';\nimport { onSeatingReservationDeleted as publicOnSeatingReservationDeleted } from './seating-v1-seating-reservation-seating-reservation.public.js';\n\nexport const createSeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicCreateSeatingReservation> &\n typeof publicCreateSeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicCreateSeatingReservation);\nexport const getReservation: MaybeContext<\n BuildRESTFunction<typeof publicGetReservation> & typeof publicGetReservation\n> = /*#__PURE__*/ createRESTModule(publicGetReservation);\nexport const querySeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicQuerySeatingReservation> &\n typeof publicQuerySeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicQuerySeatingReservation);\nexport const deleteSeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSeatingReservation> &\n typeof publicDeleteSeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicDeleteSeatingReservation);\nexport const getSeatingCategorySummary: MaybeContext<\n BuildRESTFunction<typeof publicGetSeatingCategorySummary> &\n typeof publicGetSeatingCategorySummary\n> = /*#__PURE__*/ createRESTModule(publicGetSeatingCategorySummary);\nexport const getSeatingReservationSummary: MaybeContext<\n BuildRESTFunction<typeof publicGetSeatingReservationSummary> &\n typeof publicGetSeatingReservationSummary\n> = /*#__PURE__*/ createRESTModule(publicGetSeatingReservationSummary);\n/** */\nexport const onSeatingReservationCreated: BuildEventDefinition<\n typeof publicOnSeatingReservationCreated\n> = createEventModule(publicOnSeatingReservationCreated);\n/** */\nexport const onSeatingReservationDeleted: BuildEventDefinition<\n typeof publicOnSeatingReservationDeleted\n> = createEventModule(publicOnSeatingReservationDeleted);\n\nexport {\n SortOrder,\n Type,\n PlaceTypeEnumType,\n ShapeTypeEnumType,\n Position,\n Icon,\n Numbering,\n WebhookIdentityType,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\nexport {\n SeatingReservation,\n PlaceReservation,\n SeatingPlanCategoriesSummaryUpdated,\n CategoryDetails,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n CreateSeatingReservationRequest,\n CreateSeatingReservationResponse,\n Places,\n UnavailablePlaces,\n ReservationErrorDetails,\n GetReservationRequest,\n GetReservationResponse,\n QuerySeatingReservationRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QuerySeatingReservationResponse,\n PagingMetadataV2,\n Cursors,\n DeleteSeatingReservationRequest,\n DeleteSeatingReservationResponse,\n DeleteSeatingPlaceReservationRequest,\n Empty,\n CancelSeatingPlaceReservationsRequest,\n PlaceReservationDetails,\n CancelSeatingPlaceReservationsResponse,\n UpdateSeatingReservationRequest,\n UpdateSeatingReservationResponse,\n GetReservedPlacesRequest,\n GetReservedPlacesResponse,\n GetSeatingCategorySummaryRequest,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryRequest,\n GetSeatingReservationSummaryResponse,\n SeatingPlan,\n Section,\n Element,\n Sequencing,\n Place,\n ReservationOptions,\n ElementUiProperties,\n Image,\n MultiRowProperties,\n RowElement,\n RowElementUiProperties,\n VerticalSequencing,\n Category,\n ExtendedFields,\n SeatingPlanUiProperties,\n ElementGroup,\n ElementGroupUiProperties,\n RegenerateSummariesRequest,\n RegenerateSummariesResponse,\n SeatingReservationsSummary,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n CreateSeatingReservationOptions,\n ReservationsQueryResult,\n ReservationsQueryBuilder,\n GetSeatingCategorySummaryOptions,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,+BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA4C;;;ACH5C,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAA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,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,qBAAqB,CAAC;AAAA,MACxC;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAqC;;;AGxJrC,IAAAC,uBAAiC;AACjC,sCAAkC;AAS3B,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,6BAGK,2DAAiBA,0BAA+B;AAC3D,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAE9D,IAAMC,mCAET,mDAAkB,2BAAiC;AAEhD,IAAMC,mCAET,mDAAkB,2BAAiC;","names":["createSeatingReservation","deleteSeatingReservation","getReservation","getSeatingCategorySummary","getSeatingReservationSummary","onSeatingReservationCreated","onSeatingReservationDeleted","querySeatingReservation","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_rest_modules","payload","import_transform_paths","SortOrder","Type","PlaceTypeEnumType","ShapeTypeEnumType","Position","Icon","Numbering","WebhookIdentityType","createSeatingReservation","sdkTransformError","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","createSeatingReservation","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","import_rest_modules","createSeatingReservation","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","onSeatingReservationCreated","onSeatingReservationDeleted"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/seating-v1-seating-reservation-seating-reservation.public.ts","../../src/seating-v1-seating-reservation-seating-reservation.universal.ts","../../src/seating-v1-seating-reservation-seating-reservation.http.ts","../../src/seating-v1-seating-reservation-seating-reservation.context.ts"],"sourcesContent":["export * from './src/seating-v1-seating-reservation-seating-reservation.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateSeatingReservationApplicationErrors,\n CreateSeatingReservationOptions,\n DeleteSeatingReservationResponse,\n GetSeatingCategorySummaryOptions,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryResponse,\n ReservationsQueryBuilder,\n SeatingReservation,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n createSeatingReservation as universalCreateSeatingReservation,\n deleteSeatingReservation as universalDeleteSeatingReservation,\n getReservation as universalGetReservation,\n getSeatingCategorySummary as universalGetSeatingCategorySummary,\n getSeatingReservationSummary as universalGetSeatingReservationSummary,\n querySeatingReservation as universalQuerySeatingReservation,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/seatings' };\n\ntype SeatingReservationNonNullablePaths =\n | `reservedPlaces`\n | `reservedPlaces.${number}._id`;\n\nexport function createSeatingReservation(\n httpClient: HttpClient\n): CreateSeatingReservationSignature {\n return (options?: CreateSeatingReservationOptions) =>\n universalCreateSeatingReservation(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSeatingReservationSignature {\n /**\n * Creates a seating reservation\n * @returns Created reservation\n */\n (options?: CreateSeatingReservationOptions): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths> & {\n __applicationErrorsType?: CreateSeatingReservationApplicationErrors;\n }\n >;\n}\n\nexport function getReservation(\n httpClient: HttpClient\n): GetReservationSignature {\n return (_id: string) =>\n universalGetReservation(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetReservationSignature {\n /**\n * Returns seating reservation\n * @param - The id of the reservation to return\n * @returns Created reservation\n */\n (_id: string): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>\n >;\n}\n\nexport function querySeatingReservation(\n httpClient: HttpClient\n): QuerySeatingReservationSignature {\n return () =>\n universalQuerySeatingReservation(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySeatingReservationSignature {\n /**\n * Lists seating reservations by query request\n */\n (): ReservationsQueryBuilder;\n}\n\nexport function deleteSeatingReservation(\n httpClient: HttpClient\n): DeleteSeatingReservationSignature {\n return (_id: string) =>\n universalDeleteSeatingReservation(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSeatingReservationSignature {\n /**\n * Deletes the seating reservation\n * @param - The id of the reservation to delete\n */\n (_id: string): Promise<\n NonNullablePaths<\n DeleteSeatingReservationResponse,\n {\n [P in SeatingReservationNonNullablePaths]: `reservation.${P}`;\n }[SeatingReservationNonNullablePaths]\n >\n >;\n}\n\nexport function getSeatingCategorySummary(\n httpClient: HttpClient\n): GetSeatingCategorySummarySignature {\n return (options?: GetSeatingCategorySummaryOptions) =>\n universalGetSeatingCategorySummary(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeatingCategorySummarySignature {\n /** */\n (options?: GetSeatingCategorySummaryOptions): Promise<\n NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>\n >;\n}\n\nexport function getSeatingReservationSummary(\n httpClient: HttpClient\n): GetSeatingReservationSummarySignature {\n return (externalId: string) =>\n universalGetSeatingReservationSummary(\n externalId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeatingReservationSummarySignature {\n /** @param - Seating plan external id */\n (externalId: string): Promise<\n NonNullablePaths<\n GetSeatingReservationSummaryResponse,\n | `plan.sections`\n | `plan.sections.${number}._id`\n | `plan.sections.${number}.default`\n | `plan.categories`\n | `plan.categories.${number}._id`\n | `plan.categories.${number}.title`\n | `plan.uncategorizedPlaces`\n | `plan.elementGroups`\n | `plan.elementGroups.${number}._id`\n | `places`\n | `places.${number}.placeId`\n | `places.${number}.occupied`\n >\n >;\n}\n\nexport const onSeatingReservationCreated = EventDefinition(\n 'wix.seating.v1.seating_reservation_created',\n true,\n (event: SeatingReservationCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<SeatingReservationCreatedEnvelope>();\nexport const onSeatingReservationDeleted = EventDefinition(\n 'wix.seating.v1.seating_reservation_deleted',\n true,\n (event: SeatingReservationDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'metadata.eventTime' }],\n },\n ])\n )\n)<SeatingReservationDeletedEnvelope>();\n\nexport {\n ActionEvent,\n App,\n BaseEventMetadata,\n CancelSeatingPlaceReservationsRequest,\n CancelSeatingPlaceReservationsResponse,\n Category,\n CategoryDetails,\n CreateSeatingReservationOptions,\n CreateSeatingReservationRequest,\n CreateSeatingReservationResponse,\n CursorPaging,\n Cursors,\n CustomTag,\n DeleteSeatingPlaceReservationRequest,\n DeleteSeatingReservationRequest,\n DeleteSeatingReservationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Element,\n ElementGroup,\n ElementGroupUiProperties,\n ElementUiProperties,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n File,\n GetReservationRequest,\n GetReservationResponse,\n GetReservedPlacesRequest,\n GetReservedPlacesResponse,\n GetSeatingCategorySummaryOptions,\n GetSeatingCategorySummaryRequest,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryRequest,\n GetSeatingReservationSummaryResponse,\n Icon,\n IdentificationData,\n IdentificationDataIdOneOf,\n Image,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n MessageEnvelope,\n MultiRowProperties,\n Numbering,\n Page,\n Paging,\n PagingMetadataV2,\n Place,\n PlaceReservation,\n PlaceReservationDetails,\n PlaceTypeEnumType,\n Places,\n Position,\n QuerySeatingReservationRequest,\n QuerySeatingReservationResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n RegenerateSummariesRequest,\n RegenerateSummariesResponse,\n ReservationErrorDetails,\n ReservationOptions,\n ReservationsQueryBuilder,\n ReservationsQueryResult,\n RestoreInfo,\n RowElement,\n RowElementUiProperties,\n SeatingPlan,\n SeatingPlanCategoriesSummaryUpdated,\n SeatingPlanUiProperties,\n SeatingReservation,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n SeatingReservationsSummary,\n Section,\n Sequencing,\n ShapeTypeEnumType,\n SortOrder,\n Sorting,\n Type,\n URI,\n UnavailablePlaces,\n UpdateSeatingReservationRequest,\n UpdateSeatingReservationResponse,\n VerticalSequencing,\n WebhookIdentityType,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixSeatingV1SeatingReservation from './seating-v1-seating-reservation-seating-reservation.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface SeatingReservation {\n /**\n * The id of the reservation\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * The seating plan id\n * @format GUID\n * @readonly\n */\n seatingPlanId?: string | null;\n /**\n * The external seating plan id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalSeatingPlanId?: string | null;\n /**\n * Reserved places\n * @minSize 1\n * @maxSize 100\n */\n reservedPlaces?: PlaceReservation[];\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{fqdn}:{entity guid}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Revision number, which increments by 1 each time the reservation is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface PlaceReservation {\n /**\n * The place id.\n * @minLength 5\n * @maxLength 11\n */\n _id?: string;\n /**\n * Number of places in the spot. If not provided - defaults to 1.\n * Used to reserve for more that one place in areas.\n * @min 1\n * @max 50\n */\n capacity?: number | null;\n /**\n * Optional section label.\n * @readonly\n */\n sectionLabel?: string | null;\n /**\n * Area label.\n * @readonly\n */\n areaLabel?: string | null;\n /**\n * Table label.\n * @readonly\n */\n tableLabel?: string | null;\n /**\n * Row label.\n * @readonly\n */\n rowLabel?: string | null;\n /**\n * Seat label in a row or table.\n * @readonly\n */\n seatLabel?: string | null;\n}\n\nexport interface SeatingPlanCategoriesSummaryUpdated {\n /**\n * Seating plan id\n * @format GUID\n */\n seatingPlanId?: string;\n /** External seating plan id */\n externalSeatingPlanId?: string | null;\n /**\n * Ticket counts by category\n * @maxSize 100\n */\n categories?: CategoryDetails[];\n /**\n * Summary revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface CategoryDetails {\n /**\n * Seating plan id\n * @format GUID\n * @readonly\n */\n seatingPlanId?: string | null;\n /**\n * External seating plan id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalSeatingPlanId?: string | null;\n /**\n * External category id\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n externalCategoryId?: string | null;\n /**\n * Total capacity in the category\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Already reserved capacity\n * @readonly\n */\n reserved?: number | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface CreateSeatingReservationRequest {\n /** A reservation to create */\n reservation?: SeatingReservation;\n}\n\nexport interface CreateSeatingReservationResponse {\n /** Created reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface Places {\n /**\n * Places\n * @minSize 1\n * @maxSize 100\n */\n places?: string[];\n}\n\nexport interface UnavailablePlaces {\n /**\n * Places that cannot be reserved\n * @minSize 1\n * @maxSize 100\n */\n unavailablePlaces?: string[];\n /**\n * Reservation error details\n * @minSize 1\n * @maxSize 100\n */\n reservationErrorDetails?: ReservationErrorDetails[];\n}\n\nexport interface ReservationErrorDetails {\n /** Place */\n _id?: string;\n /** Available capacity */\n available?: number;\n /** Requested capacity */\n requested?: number;\n}\n\nexport interface GetReservationRequest {\n /**\n * The id of the reservation to return\n * @format GUID\n */\n _id: string | null;\n}\n\nexport interface GetReservationResponse {\n /** Created reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface QuerySeatingReservationRequest {\n /** A query object */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** 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. */\n fields?: string[];\n /** 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. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySeatingReservationResponse {\n /** Found reservations */\n reservations?: SeatingReservation[];\n /** Paging meta data */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DeleteSeatingReservationRequest {\n /**\n * The id of the reservation to delete\n * @format GUID\n */\n _id: string | null;\n}\n\nexport interface DeleteSeatingReservationResponse {\n /** The deleted reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface DeleteSeatingPlaceReservationRequest {\n /** The id of the place reservation to delete */\n _id?: string | null;\n /**\n * The id of the place reservation's reservation\n * @format GUID\n */\n reservationId?: string | null;\n}\n\nexport interface Empty {}\n\nexport interface CancelSeatingPlaceReservationsRequest {\n /**\n * The id of the place reservations' reservation\n * @format GUID\n */\n reservationId?: string | null;\n /**\n * The place reservations to cancel\n * @minSize 1\n * @maxSize 100\n */\n placeReservations?: PlaceReservationDetails[];\n}\n\nexport interface PlaceReservationDetails {\n placeId?: string;\n occupied?: number;\n}\n\nexport interface CancelSeatingPlaceReservationsResponse {\n /** The reservation with canceled place reservations */\n reservation?: SeatingReservation;\n}\n\nexport interface UpdateSeatingReservationRequest {\n /** A reservation to update */\n reservation?: SeatingReservation;\n}\n\nexport interface UpdateSeatingReservationResponse {\n /** The updated reservation */\n reservation?: SeatingReservation;\n}\n\nexport interface GetReservedPlacesRequest {\n /**\n * Seating plan id\n * @format GUID\n */\n _id?: string | null;\n}\n\nexport interface GetReservedPlacesResponse {\n /** Reserved places of the plan */\n placeReservations?: PlaceReservation[];\n}\n\nexport interface GetSeatingCategorySummaryRequest {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string;\n}\n\nexport interface GetSeatingCategorySummaryResponse {\n /**\n * Ticket counts by category\n * @maxSize 50000\n */\n categories?: CategoryDetails[];\n}\n\nexport interface GetSeatingReservationSummaryRequest {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId: string;\n}\n\nexport interface GetSeatingReservationSummaryResponse {\n plan?: SeatingPlan;\n /** @maxSize 50000 */\n places?: PlaceReservationDetails[];\n}\n\nexport interface SeatingPlan {\n /**\n * Auto generated unique plan id\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{fqdn}:{entity guid}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Human friendly plan title\n * @minLength 1\n * @maxLength 120\n */\n title?: string | null;\n /**\n * Sections of the plan. Seating plan is divided in high level sections.\n * @maxSize 100\n */\n sections?: Section[];\n /**\n * Categories for plan element grouping.\n * @maxSize 100\n */\n categories?: Category[];\n /**\n * Seating plan created timestamp.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Seating plan updated timestamp.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Total categories\n * @readonly\n */\n totalCategories?: number | null;\n /**\n * Places not assigned to categories\n * @maxSize 50000\n * @readonly\n */\n uncategorizedPlaces?: Place[];\n /**\n * A version of the seating plan\n * @readonly\n */\n version?: string | null;\n /** Data extensions */\n extendedFields?: ExtendedFields;\n /** Seating Plan UI settings */\n uiProperties?: SeatingPlanUiProperties;\n /**\n * Element groups\n * @maxSize 1000\n */\n elementGroups?: ElementGroup[];\n}\n\nexport interface Section {\n /** Unique section id */\n _id?: number;\n /**\n * Human readable section title\n * @minLength 1\n * @maxLength 20\n */\n title?: string | null;\n /**\n * Client configuration object\n * @readonly\n */\n config?: Record<string, any> | null;\n /**\n * Elements of the section.\n * @maxSize 1000\n */\n elements?: Element[];\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Is default section\n * @readonly\n */\n default?: boolean;\n}\n\nexport interface Element {\n /**\n * Unique element id\n * @min 1\n */\n _id?: number;\n /**\n * User friendly title/label of the element.\n * @minLength 1\n * @maxLength 50\n */\n title?: string | null;\n /** Element type */\n type?: TypeWithLiterals;\n /**\n * Capacity. None for Shape type Element.\n * @min 1\n * @max 50000\n */\n capacity?: number | null;\n /** Assigned to a category */\n categoryId?: number | null;\n /** A place numbering meta data */\n sequencing?: Sequencing;\n /**\n * Place override (by seq_id)\n * @maxSize 2000\n */\n overrides?: Place[];\n /**\n * Final place sequence with overrides\n * @maxSize 200\n * @readonly\n */\n places?: Place[];\n /** Element reservation options */\n reservationOptions?: ReservationOptions;\n /** Element UI settings */\n uiProperties?: ElementUiProperties;\n /** Element group id */\n elementGroupId?: number | null;\n /** Multi row element relevant for MULTI_ROW element type */\n multiRowProperties?: MultiRowProperties;\n}\n\nexport enum Type {\n AREA = 'AREA',\n ROW = 'ROW',\n MULTI_ROW = 'MULTI_ROW',\n TABLE = 'TABLE',\n ROUND_TABLE = 'ROUND_TABLE',\n SHAPE = 'SHAPE',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'AREA'\n | 'ROW'\n | 'MULTI_ROW'\n | 'TABLE'\n | 'ROUND_TABLE'\n | 'SHAPE';\n\nexport interface Sequencing {\n /**\n * First seq element\n * @minLength 1\n * @maxLength 4\n */\n startAt?: string;\n /**\n * Finite generated seq of labels\n * @maxSize 2500\n */\n labels?: string[];\n /** If true - direction right to left. Otherwise left to right. */\n reverseOrder?: boolean | null;\n}\n\nexport interface Place {\n /** Local id of the place in the sequence */\n index?: number;\n /**\n * Generated composite unique id in the seating plan.\n * @readonly\n */\n _id?: string | null;\n /**\n * Unique label of the place\n * @minLength 1\n * @maxLength 4\n */\n label?: string;\n /**\n * Max capacity per place\n * @readonly\n */\n capacity?: number | null;\n /**\n * Type of the parent element\n * @readonly\n */\n elementType?: TypeWithLiterals;\n /**\n * Assigned category id\n * @readonly\n */\n categoryId?: number | null;\n /** Place type */\n type?: PlaceTypeEnumTypeWithLiterals;\n}\n\nexport enum PlaceTypeEnumType {\n UNKNOWN_PROPERTY = 'UNKNOWN_PROPERTY',\n STANDARD = 'STANDARD',\n WHEELCHAIR = 'WHEELCHAIR',\n ACCESSIBLE = 'ACCESSIBLE',\n COMPANION = 'COMPANION',\n OBSTRUCTED = 'OBSTRUCTED',\n DISCOUNT = 'DISCOUNT',\n}\n\n/** @enumType */\nexport type PlaceTypeEnumTypeWithLiterals =\n | PlaceTypeEnumType\n | 'UNKNOWN_PROPERTY'\n | 'STANDARD'\n | 'WHEELCHAIR'\n | 'ACCESSIBLE'\n | 'COMPANION'\n | 'OBSTRUCTED'\n | 'DISCOUNT';\n\nexport interface ReservationOptions {\n /** Indicates whether the entire element must be reserved */\n reserveWholeElement?: boolean;\n}\n\nexport interface ElementUiProperties {\n /**\n * @min -1000000\n * @max 1000000\n */\n x?: number | null;\n /**\n * @min -1000000\n * @max 1000000\n */\n y?: number | null;\n /**\n * @min -1000000\n * @max 1000000\n */\n zIndex?: number | null;\n /** @max 1000000 */\n width?: number | null;\n /** @max 1000000 */\n height?: number | null;\n /**\n * @min -180\n * @max 180\n */\n rotationAngle?: number | null;\n shapeType?: ShapeTypeEnumTypeWithLiterals;\n /**\n * @min 10\n * @max 176\n */\n fontSize?: number | null;\n /** @max 1000000 */\n cornerRadius?: number | null;\n /**\n * @min 1\n * @max 60\n */\n seatSpacing?: number | null;\n hideLabel?: boolean | null;\n labelPosition?: PositionWithLiterals;\n seatLayout?: number[];\n /** @max 50 */\n emptyTopSeatSpaces?: number | null;\n /**\n * needs research\n * @minLength 1\n * @maxLength 10000\n */\n text?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n color?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n fillColor?: string | null;\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n strokeColor?: string | null;\n /**\n * px\n * @min 1\n * @max 6\n */\n strokeWidth?: number | null;\n /** @max 100 */\n opacity?: number | null;\n icon?: IconWithLiterals;\n image?: Image;\n seatNumbering?: NumberingWithLiterals;\n}\n\nexport enum ShapeTypeEnumType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n TEXT = 'TEXT',\n RECTANGLE = 'RECTANGLE',\n ELLIPSE = 'ELLIPSE',\n LINE = 'LINE',\n ICON = 'ICON',\n IMAGE = 'IMAGE',\n}\n\n/** @enumType */\nexport type ShapeTypeEnumTypeWithLiterals =\n | ShapeTypeEnumType\n | 'UNKNOWN_TYPE'\n | 'TEXT'\n | 'RECTANGLE'\n | 'ELLIPSE'\n | 'LINE'\n | 'ICON'\n | 'IMAGE';\n\nexport enum Position {\n UNKNOWN_POSITION = 'UNKNOWN_POSITION',\n LEFT = 'LEFT',\n RIGHT = 'RIGHT',\n BOTH = 'BOTH',\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type PositionWithLiterals =\n | Position\n | 'UNKNOWN_POSITION'\n | 'LEFT'\n | 'RIGHT'\n | 'BOTH'\n | 'NONE';\n\nexport enum Icon {\n UNKNOWN_ICON = 'UNKNOWN_ICON',\n ENTER = 'ENTER',\n EXIT = 'EXIT',\n DRINKS = 'DRINKS',\n WC = 'WC',\n WC_MEN = 'WC_MEN',\n WC_WOMEN = 'WC_WOMEN',\n FOOD = 'FOOD',\n STAIRS = 'STAIRS',\n ELEVATOR = 'ELEVATOR',\n SMOKING = 'SMOKING',\n CHECKROOM = 'CHECKROOM',\n STAGE = 'STAGE',\n}\n\n/** @enumType */\nexport type IconWithLiterals =\n | Icon\n | 'UNKNOWN_ICON'\n | 'ENTER'\n | 'EXIT'\n | 'DRINKS'\n | 'WC'\n | 'WC_MEN'\n | 'WC_WOMEN'\n | 'FOOD'\n | 'STAIRS'\n | 'ELEVATOR'\n | 'SMOKING'\n | 'CHECKROOM'\n | 'STAGE';\n\nexport interface Image {\n /** WixMedia image ID. */\n _id?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * WixMedia image URI.\n * @deprecated\n */\n uri?: string | null;\n}\n\nexport enum Numbering {\n UNKNOWN_NUMBERING = 'UNKNOWN_NUMBERING',\n NUMERIC = 'NUMERIC',\n ODD_EVEN = 'ODD_EVEN',\n ALPHABETICAL = 'ALPHABETICAL',\n}\n\n/** @enumType */\nexport type NumberingWithLiterals =\n | Numbering\n | 'UNKNOWN_NUMBERING'\n | 'NUMERIC'\n | 'ODD_EVEN'\n | 'ALPHABETICAL';\n\nexport interface MultiRowProperties {\n /**\n * Individual rows of the multi row element\n * @maxSize 1000\n */\n rows?: RowElement[];\n /** Meta data for vertical labeling */\n verticalSequencing?: VerticalSequencing;\n /**\n * Row spacing\n * @min 1\n * @max 60\n */\n rowSpacing?: number | null;\n /**\n * Amount of seats in the row\n * @max 50\n */\n seatAmount?: number | null;\n}\n\nexport interface RowElement {\n /**\n * Unique row id\n * @min 1\n */\n _id?: number;\n /**\n * User friendly title/label of the row\n * @minLength 1\n * @maxLength 50\n */\n title?: string | null;\n /**\n * Row capacity\n * @min 1\n * @max 50000\n */\n capacity?: number | null;\n /** Assigned to a category */\n categoryId?: number | null;\n /** A place numbering meta data for a single row */\n sequencing?: Sequencing;\n /** Row UI settings */\n uiProperties?: RowElementUiProperties;\n}\n\nexport interface RowElementUiProperties {\n /**\n * Relative x position to the parent element\n * @min -1000000\n * @max 1000000\n */\n relativeX?: number | null;\n /**\n * Width of the row\n * @max 1000000\n */\n width?: number | null;\n /**\n * Amount of seats in the row\n * @max 50\n */\n seatAmount?: number | null;\n /**\n * Seat spacing\n * @min 1\n * @max 60\n */\n seatSpacing?: number | null;\n /** Label position */\n labelPosition?: PositionWithLiterals;\n /** Seat numbering */\n seatNumbering?: NumberingWithLiterals;\n}\n\nexport interface VerticalSequencing {\n /**\n * First seq element\n * @minLength 1\n * @maxLength 4\n */\n startAt?: string;\n /** Row numbering */\n rowNumbering?: NumberingWithLiterals;\n /** If true - direction bottom to top. Otherwise top to bottom. */\n reverseOrder?: boolean | null;\n}\n\nexport interface Category {\n /**\n * Local category id within the seating plan\n * @min 1\n */\n _id?: number;\n /**\n * A client defined external id for cross referencing.\n * Can reference external entities.\n * Format: \"{entity_fqdn}:{entity_id}\"\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Category label\n * @minLength 1\n * @maxLength 120\n */\n title?: string;\n /**\n * Client configuration object\n * @readonly\n */\n config?: Record<string, any> | null;\n /**\n * Total capacity\n * @readonly\n */\n totalCapacity?: number | null;\n /**\n * Possible places\n * @maxSize 50000\n * @readonly\n */\n places?: Place[];\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface SeatingPlanUiProperties {\n /**\n * #F0F0F0\n * @format COLOR_HEX\n */\n backgroundColor?: string | null;\n /** @max 100 */\n backgroundOpacity?: number | null;\n}\n\nexport interface ElementGroup {\n /**\n * Unique element group id\n * @min 1\n */\n _id?: number;\n /** Parent group id */\n parentElementGroupId?: number | null;\n /** Element group UI settings */\n uiProperties?: ElementGroupUiProperties;\n}\n\nexport interface ElementGroupUiProperties {\n /**\n * x position of the group\n * @min -1000000\n * @max 1000000\n */\n x?: number | null;\n /**\n * y position of the group\n * @min -1000000\n * @max 1000000\n */\n y?: number | null;\n /**\n * width of the group\n * @max 1000000\n */\n width?: number | null;\n /**\n * height of the group\n * @max 1000000\n */\n height?: number | null;\n /**\n * rotation angle of the group\n * @min -180\n * @max 180\n */\n rotationAngle?: number | null;\n}\n\nexport interface RegenerateSummariesRequest {\n /**\n * Seating plan id\n * @format GUID\n */\n planId?: string | null;\n}\n\nexport interface RegenerateSummariesResponse {\n seatingReservationsSummary?: SeatingReservationsSummary;\n /** @maxSize 50000 */\n categories?: CategoryDetails[];\n}\n\nexport interface SeatingReservationsSummary {\n /** @maxSize 50000 */\n places?: PlaceReservationDetails[];\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\nexport type CreateSeatingReservationApplicationErrors =\n | {\n code?: 'PLACE_NOT_FOUND';\n description?: string;\n data?: Places;\n }\n | {\n code?: 'PLACE_RESERVED';\n description?: string;\n data?: UnavailablePlaces;\n };\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface SeatingReservationCreatedEnvelope {\n entity: SeatingReservation;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @webhook\n * @eventType wix.seating.v1.seating_reservation_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSeatingReservationCreated(\n handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SeatingReservationDeletedEnvelope {\n entity: SeatingReservation;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @webhook\n * @eventType wix.seating.v1.seating_reservation_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSeatingReservationDeleted(\n handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>\n): void;\n\ntype SeatingReservationNonNullablePaths =\n | `reservedPlaces`\n | `reservedPlaces.${number}._id`;\n\n/**\n * Creates a seating reservation\n * @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS\n * @applicableIdentity APP\n * @returns Created reservation\n * @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation\n */\nexport async function createSeatingReservation(\n options?: CreateSeatingReservationOptions\n): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths> & {\n __applicationErrorsType?: CreateSeatingReservationApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n reservation: options?.reservation,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.createSeatingReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { reservation: '$[0].reservation' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateSeatingReservationOptions {\n /** A reservation to create */\n reservation?: SeatingReservation;\n}\n\n/**\n * Returns seating reservation\n * @param _id - The id of the reservation to return\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @applicableIdentity APP\n * @returns Created reservation\n * @fqn com.wixpress.seating.SeatingReservationService.GetReservation\n */\nexport async function getReservation(\n _id: string\n): Promise<\n NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Lists seating reservations by query request\n * @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.READ_RESERVATIONS\n * @applicableIdentity APP\n * @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation\n */\nexport function querySeatingReservation(): ReservationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n SeatingReservation,\n 'CURSOR',\n QuerySeatingReservationRequest,\n QuerySeatingReservationResponse\n >({\n func: async (payload: QuerySeatingReservationRequest) => {\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.querySeatingReservation(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySeatingReservationRequest['query']) => {\n const args = [query, {}] as [QuerySeatingReservationRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QuerySeatingReservationResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.reservations,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ReservationsQueryResult extends QueryCursorResult {\n items: SeatingReservation[];\n query: ReservationsQueryBuilder;\n next: () => Promise<ReservationsQueryResult>;\n prev: () => Promise<ReservationsQueryResult>;\n}\n\nexport interface ReservationsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => ReservationsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ReservationsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ReservationsQueryResult>;\n}\n\n/**\n * Deletes the seating reservation\n * @param _id - The id of the reservation to delete\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS\n * @applicableIdentity APP\n * @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation\n */\nexport async function deleteSeatingReservation(\n _id: string\n): Promise<\n NonNullablePaths<\n DeleteSeatingReservationResponse,\n {\n [P in SeatingReservationNonNullablePaths]: `reservation.${P}`;\n }[SeatingReservationNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.deleteSeatingReservation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @documentationMaturity preview\n * @permissionId SEATING_PLANS.READ_SEATING_PLANS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary\n */\nexport async function getSeatingCategorySummary(\n options?: GetSeatingCategorySummaryOptions\n): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n externalId: options?.externalId,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getSeatingCategorySummary(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { externalId: '$[0].externalId' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSeatingCategorySummaryOptions {\n /**\n * Seating plan external id\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string;\n}\n\n/** @param externalId - Seating plan external id\n * @public\n * @documentationMaturity preview\n * @requiredField externalId\n * @permissionId SEATING_PLANS.READ_SEATING_PLANS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary\n */\nexport async function getSeatingReservationSummary(\n externalId: string\n): Promise<\n NonNullablePaths<\n GetSeatingReservationSummaryResponse,\n | `plan.sections`\n | `plan.sections.${number}._id`\n | `plan.sections.${number}.default`\n | `plan.categories`\n | `plan.categories.${number}._id`\n | `plan.categories.${number}.title`\n | `plan.uncategorizedPlaces`\n | `plan.elementGroups`\n | `plan.elementGroups.${number}._id`\n | `places`\n | `places.${number}.placeId`\n | `places.${number}.occupied`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n externalId: externalId,\n });\n\n const reqOpts =\n ambassadorWixSeatingV1SeatingReservation.getSeatingReservationSummary(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { externalId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['externalId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressSeatingSeatingReservationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _api_base_domain_: [\n {\n srcPath: '/seating-reservations',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/seating-reservations',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/seating-reservations',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seatings_seating-reservation';\n\n/** Creates a seating reservation */\nexport function createSeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createSeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.CreateSeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createSeatingReservation;\n}\n\n/** Returns seating reservation */\nexport function getReservation(payload: object): RequestOptionsFactory<any> {\n function __getReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getReservation;\n}\n\n/** Lists seating reservations by query request */\nexport function querySeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __querySeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.QuerySeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/query',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __querySeatingReservation;\n}\n\n/** Deletes the seating reservation */\nexport function deleteSeatingReservation(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteSeatingReservation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSeatingReservation;\n}\n\nexport function getSeatingCategorySummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSeatingCategorySummary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/seating-category-summary',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSeatingCategorySummary;\n}\n\nexport function getSeatingReservationSummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSeatingReservationSummary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.seating.v1.seating_reservation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSeatingSeatingReservationServiceUrl({\n protoPath: '/v1/reservations/seating-reservation-summary/{externalId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'plan.sections.elements.uiProperties.x' },\n { path: 'plan.sections.elements.uiProperties.y' },\n { path: 'plan.sections.elements.uiProperties.width' },\n { path: 'plan.sections.elements.uiProperties.height' },\n { path: 'plan.sections.elements.uiProperties.rotationAngle' },\n {\n path: 'plan.sections.elements.multiRowProperties.curveAngleTo',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',\n },\n {\n path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',\n },\n { path: 'plan.elementGroups.uiProperties.x' },\n { path: 'plan.elementGroups.uiProperties.y' },\n { path: 'plan.elementGroups.uiProperties.width' },\n { path: 'plan.elementGroups.uiProperties.height' },\n { path: 'plan.elementGroups.uiProperties.rotationAngle' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSeatingReservationSummary;\n}\n","import {\n createSeatingReservation as publicCreateSeatingReservation,\n getReservation as publicGetReservation,\n querySeatingReservation as publicQuerySeatingReservation,\n deleteSeatingReservation as publicDeleteSeatingReservation,\n getSeatingCategorySummary as publicGetSeatingCategorySummary,\n getSeatingReservationSummary as publicGetSeatingReservationSummary,\n} from './seating-v1-seating-reservation-seating-reservation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onSeatingReservationCreated as publicOnSeatingReservationCreated } from './seating-v1-seating-reservation-seating-reservation.public.js';\nimport { onSeatingReservationDeleted as publicOnSeatingReservationDeleted } from './seating-v1-seating-reservation-seating-reservation.public.js';\n\nexport const createSeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicCreateSeatingReservation> &\n typeof publicCreateSeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicCreateSeatingReservation);\nexport const getReservation: MaybeContext<\n BuildRESTFunction<typeof publicGetReservation> & typeof publicGetReservation\n> = /*#__PURE__*/ createRESTModule(publicGetReservation);\nexport const querySeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicQuerySeatingReservation> &\n typeof publicQuerySeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicQuerySeatingReservation);\nexport const deleteSeatingReservation: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSeatingReservation> &\n typeof publicDeleteSeatingReservation\n> = /*#__PURE__*/ createRESTModule(publicDeleteSeatingReservation);\nexport const getSeatingCategorySummary: MaybeContext<\n BuildRESTFunction<typeof publicGetSeatingCategorySummary> &\n typeof publicGetSeatingCategorySummary\n> = /*#__PURE__*/ createRESTModule(publicGetSeatingCategorySummary);\nexport const getSeatingReservationSummary: MaybeContext<\n BuildRESTFunction<typeof publicGetSeatingReservationSummary> &\n typeof publicGetSeatingReservationSummary\n> = /*#__PURE__*/ createRESTModule(publicGetSeatingReservationSummary);\n/** */\nexport const onSeatingReservationCreated: BuildEventDefinition<\n typeof publicOnSeatingReservationCreated\n> = createEventModule(publicOnSeatingReservationCreated);\n/** */\nexport const onSeatingReservationDeleted: BuildEventDefinition<\n typeof publicOnSeatingReservationDeleted\n> = createEventModule(publicOnSeatingReservationDeleted);\n\nexport {\n SortOrder,\n Type,\n PlaceTypeEnumType,\n ShapeTypeEnumType,\n Position,\n Icon,\n Numbering,\n WebhookIdentityType,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\nexport {\n SeatingReservation,\n PlaceReservation,\n SeatingPlanCategoriesSummaryUpdated,\n CategoryDetails,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n CreateSeatingReservationRequest,\n CreateSeatingReservationResponse,\n Places,\n UnavailablePlaces,\n ReservationErrorDetails,\n GetReservationRequest,\n GetReservationResponse,\n QuerySeatingReservationRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QuerySeatingReservationResponse,\n PagingMetadataV2,\n Cursors,\n DeleteSeatingReservationRequest,\n DeleteSeatingReservationResponse,\n DeleteSeatingPlaceReservationRequest,\n Empty,\n CancelSeatingPlaceReservationsRequest,\n PlaceReservationDetails,\n CancelSeatingPlaceReservationsResponse,\n UpdateSeatingReservationRequest,\n UpdateSeatingReservationResponse,\n GetReservedPlacesRequest,\n GetReservedPlacesResponse,\n GetSeatingCategorySummaryRequest,\n GetSeatingCategorySummaryResponse,\n GetSeatingReservationSummaryRequest,\n GetSeatingReservationSummaryResponse,\n SeatingPlan,\n Section,\n Element,\n Sequencing,\n Place,\n ReservationOptions,\n ElementUiProperties,\n Image,\n MultiRowProperties,\n RowElement,\n RowElementUiProperties,\n VerticalSequencing,\n Category,\n ExtendedFields,\n SeatingPlanUiProperties,\n ElementGroup,\n ElementGroupUiProperties,\n RegenerateSummariesRequest,\n RegenerateSummariesResponse,\n SeatingReservationsSummary,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n SeatingReservationCreatedEnvelope,\n SeatingReservationDeletedEnvelope,\n CreateSeatingReservationOptions,\n ReservationsQueryResult,\n ReservationsQueryBuilder,\n GetSeatingCategorySummaryOptions,\n} from './seating-v1-seating-reservation-seating-reservation.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,o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deleteSeatingReservation","getReservation","getSeatingCategorySummary","getSeatingReservationSummary","onSeatingReservationCreated","onSeatingReservationDeleted","querySeatingReservation","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_rest_modules","payload","import_transform_paths","SortOrder","Type","PlaceTypeEnumType","ShapeTypeEnumType","Position","Icon","Numbering","WebhookIdentityType","createSeatingReservation","sdkTransformError","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","createSeatingReservation","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","import_rest_modules","createSeatingReservation","getReservation","querySeatingReservation","deleteSeatingReservation","getSeatingCategorySummary","getSeatingReservationSummary","onSeatingReservationCreated","onSeatingReservationDeleted"]}
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface SeatingReservation {
2
4
  /**
3
5
  * The id of the reservation
@@ -1173,6 +1175,15 @@ declare enum WebhookIdentityType {
1173
1175
  }
1174
1176
  /** @enumType */
1175
1177
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1178
+ type CreateSeatingReservationApplicationErrors = {
1179
+ code?: 'PLACE_NOT_FOUND';
1180
+ description?: string;
1181
+ data?: Places;
1182
+ } | {
1183
+ code?: 'PLACE_RESERVED';
1184
+ description?: string;
1185
+ data?: UnavailablePlaces;
1186
+ };
1176
1187
  interface BaseEventMetadata {
1177
1188
  /**
1178
1189
  * App instance ID.
@@ -1221,14 +1232,66 @@ interface SeatingReservationCreatedEnvelope {
1221
1232
  entity: SeatingReservation;
1222
1233
  metadata: EventMetadata;
1223
1234
  }
1235
+ /** @permissionScope Manage Events
1236
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1237
+ * @permissionId SEATING_PLANS.READ_RESERVATIONS
1238
+ * @webhook
1239
+ * @eventType wix.seating.v1.seating_reservation_created
1240
+ * @slug created
1241
+ * @documentationMaturity preview
1242
+ */
1243
+ declare function onSeatingReservationCreated(handler: (event: SeatingReservationCreatedEnvelope) => void | Promise<void>): void;
1224
1244
  interface SeatingReservationDeletedEnvelope {
1225
1245
  entity: SeatingReservation;
1226
1246
  metadata: EventMetadata;
1227
1247
  }
1248
+ /** @permissionScope Manage Events
1249
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1250
+ * @permissionId SEATING_PLANS.READ_RESERVATIONS
1251
+ * @webhook
1252
+ * @eventType wix.seating.v1.seating_reservation_deleted
1253
+ * @slug deleted
1254
+ * @documentationMaturity preview
1255
+ */
1256
+ declare function onSeatingReservationDeleted(handler: (event: SeatingReservationDeletedEnvelope) => void | Promise<void>): void;
1257
+ type SeatingReservationNonNullablePaths = `reservedPlaces` | `reservedPlaces.${number}._id`;
1258
+ /**
1259
+ * Creates a seating reservation
1260
+ * @public
1261
+ * @documentationMaturity preview
1262
+ * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
1263
+ * @applicableIdentity APP
1264
+ * @returns Created reservation
1265
+ * @fqn com.wixpress.seating.SeatingReservationService.CreateSeatingReservation
1266
+ */
1267
+ declare function createSeatingReservation(options?: CreateSeatingReservationOptions): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths> & {
1268
+ __applicationErrorsType?: CreateSeatingReservationApplicationErrors;
1269
+ }>;
1228
1270
  interface CreateSeatingReservationOptions {
1229
1271
  /** A reservation to create */
1230
1272
  reservation?: SeatingReservation;
1231
1273
  }
1274
+ /**
1275
+ * Returns seating reservation
1276
+ * @param _id - The id of the reservation to return
1277
+ * @public
1278
+ * @documentationMaturity preview
1279
+ * @requiredField _id
1280
+ * @permissionId SEATING_PLANS.READ_RESERVATIONS
1281
+ * @applicableIdentity APP
1282
+ * @returns Created reservation
1283
+ * @fqn com.wixpress.seating.SeatingReservationService.GetReservation
1284
+ */
1285
+ declare function getReservation(_id: string): Promise<NonNullablePaths<SeatingReservation, SeatingReservationNonNullablePaths>>;
1286
+ /**
1287
+ * Lists seating reservations by query request
1288
+ * @public
1289
+ * @documentationMaturity preview
1290
+ * @permissionId SEATING_PLANS.READ_RESERVATIONS
1291
+ * @applicableIdentity APP
1292
+ * @fqn com.wixpress.seating.SeatingReservationService.QuerySeatingReservation
1293
+ */
1294
+ declare function querySeatingReservation(): ReservationsQueryBuilder;
1232
1295
  interface QueryCursorResult {
1233
1296
  cursors: Cursors;
1234
1297
  hasNext: () => boolean;
@@ -1254,6 +1317,27 @@ interface ReservationsQueryBuilder {
1254
1317
  /** @documentationMaturity preview */
1255
1318
  find: () => Promise<ReservationsQueryResult>;
1256
1319
  }
1320
+ /**
1321
+ * Deletes the seating reservation
1322
+ * @param _id - The id of the reservation to delete
1323
+ * @public
1324
+ * @documentationMaturity preview
1325
+ * @requiredField _id
1326
+ * @permissionId SEATING_PLANS.MANAGE_RESERVATIONS
1327
+ * @applicableIdentity APP
1328
+ * @fqn com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation
1329
+ */
1330
+ declare function deleteSeatingReservation(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, {
1331
+ [P in SeatingReservationNonNullablePaths]: `reservation.${P}`;
1332
+ }[SeatingReservationNonNullablePaths]>>;
1333
+ /** @public
1334
+ * @documentationMaturity preview
1335
+ * @permissionId SEATING_PLANS.READ_SEATING_PLANS
1336
+ * @applicableIdentity APP
1337
+ * @applicableIdentity VISITOR
1338
+ * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary
1339
+ */
1340
+ declare function getSeatingCategorySummary(options?: GetSeatingCategorySummaryOptions): Promise<NonNullablePaths<GetSeatingCategorySummaryResponse, `categories`>>;
1257
1341
  interface GetSeatingCategorySummaryOptions {
1258
1342
  /**
1259
1343
  * Seating plan external id
@@ -1262,5 +1346,15 @@ interface GetSeatingCategorySummaryOptions {
1262
1346
  */
1263
1347
  externalId?: string;
1264
1348
  }
1349
+ /** @param externalId - Seating plan external id
1350
+ * @public
1351
+ * @documentationMaturity preview
1352
+ * @requiredField externalId
1353
+ * @permissionId SEATING_PLANS.READ_SEATING_PLANS
1354
+ * @applicableIdentity APP
1355
+ * @applicableIdentity VISITOR
1356
+ * @fqn com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary
1357
+ */
1358
+ declare function getSeatingReservationSummary(externalId: string): Promise<NonNullablePaths<GetSeatingReservationSummaryResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id` | `places` | `places.${number}.placeId` | `places.${number}.occupied`>>;
1265
1359
 
1266
- export { type GetSeatingCategorySummaryRequest as $, type App as A, type QuerySeatingReservationResponse as B, type CreateSeatingReservationOptions as C, type DeleteSeatingReservationResponse as D, type PagingMetadataV2 as E, type File as F, type GetSeatingCategorySummaryOptions as G, type Cursors as H, Icon as I, type DeleteSeatingReservationRequest as J, type DeleteSeatingPlaceReservationRequest as K, type Empty as L, type CancelSeatingPlaceReservationsRequest as M, Numbering as N, type PlaceReservationDetails as O, PlaceTypeEnumType as P, type QuerySeatingReservationRequest as Q, type ReservationsQueryBuilder as R, type SeatingReservation as S, Type as T, type URI as U, type CancelSeatingPlaceReservationsResponse as V, WebhookIdentityType as W, type UpdateSeatingReservationRequest as X, type UpdateSeatingReservationResponse as Y, type GetReservedPlacesRequest as Z, type GetReservedPlacesResponse as _, type GetSeatingCategorySummaryResponse as a, type GetSeatingReservationSummaryRequest as a0, type SeatingPlan as a1, type Section as a2, type Element as a3, type Sequencing as a4, type Place as a5, type ReservationOptions as a6, type ElementUiProperties as a7, type Image as a8, type MultiRowProperties as a9, type RowElement as aa, type RowElementUiProperties as ab, type VerticalSequencing as ac, type Category as ad, type ExtendedFields as ae, type SeatingPlanUiProperties as af, type ElementGroup as ag, type ElementGroupUiProperties as ah, type RegenerateSummariesRequest as ai, type RegenerateSummariesResponse as aj, type SeatingReservationsSummary as ak, type DomainEvent as al, type DomainEventBodyOneOf as am, type EntityCreatedEvent as an, type RestoreInfo as ao, type EntityUpdatedEvent as ap, type EntityDeletedEvent as aq, type ActionEvent as ar, type MessageEnvelope as as, type IdentificationData as at, type IdentificationDataIdOneOf as au, type BaseEventMetadata as av, type EventMetadata as aw, type ReservationsQueryResult as ax, type GetSeatingReservationSummaryResponse as b, type SeatingReservationCreatedEnvelope as c, type SeatingReservationDeletedEnvelope as d, SortOrder as e, ShapeTypeEnumType as f, Position as g, type PlaceReservation as h, type SeatingPlanCategoriesSummaryUpdated as i, type CategoryDetails as j, type InvalidateCache as k, type InvalidateCacheGetByOneOf as l, type Page as m, type CustomTag as n, type CreateSeatingReservationRequest as o, type CreateSeatingReservationResponse as p, type Places as q, type UnavailablePlaces as r, type ReservationErrorDetails as s, type GetReservationRequest as t, type GetReservationResponse as u, type QueryV2 as v, type QueryV2PagingMethodOneOf as w, type Sorting as x, type Paging as y, type CursorPaging as z };
1360
+ export { type ActionEvent, type App, type BaseEventMetadata, type CancelSeatingPlaceReservationsRequest, type CancelSeatingPlaceReservationsResponse, type Category, type CategoryDetails, type CreateSeatingReservationApplicationErrors, type CreateSeatingReservationOptions, type CreateSeatingReservationRequest, type CreateSeatingReservationResponse, type CursorPaging, type Cursors, type CustomTag, type DeleteSeatingPlaceReservationRequest, type DeleteSeatingReservationRequest, type DeleteSeatingReservationResponse, type DomainEvent, type DomainEventBodyOneOf, type Element, type ElementGroup, type ElementGroupUiProperties, type ElementUiProperties, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type File, type GetReservationRequest, type GetReservationResponse, type GetReservedPlacesRequest, type GetReservedPlacesResponse, type GetSeatingCategorySummaryOptions, type GetSeatingCategorySummaryRequest, type GetSeatingCategorySummaryResponse, type GetSeatingReservationSummaryRequest, type GetSeatingReservationSummaryResponse, Icon, type IconWithLiterals, type IdentificationData, type IdentificationDataIdOneOf, type Image, type InvalidateCache, type InvalidateCacheGetByOneOf, type MessageEnvelope, type MultiRowProperties, Numbering, type NumberingWithLiterals, type Page, type Paging, type PagingMetadataV2, type Place, type PlaceReservation, type PlaceReservationDetails, PlaceTypeEnumType, type PlaceTypeEnumTypeWithLiterals, type Places, Position, type PositionWithLiterals, type QuerySeatingReservationRequest, type QuerySeatingReservationResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RegenerateSummariesRequest, type RegenerateSummariesResponse, type ReservationErrorDetails, type ReservationOptions, type ReservationsQueryBuilder, type ReservationsQueryResult, type RestoreInfo, type RowElement, type RowElementUiProperties, type SeatingPlan, type SeatingPlanCategoriesSummaryUpdated, type SeatingPlanUiProperties, type SeatingReservation, type SeatingReservationCreatedEnvelope, type SeatingReservationDeletedEnvelope, type SeatingReservationsSummary, type Section, type Sequencing, ShapeTypeEnumType, type ShapeTypeEnumTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Type, type TypeWithLiterals, type URI, type UnavailablePlaces, type UpdateSeatingReservationRequest, type UpdateSeatingReservationResponse, type VerticalSequencing, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createSeatingReservation, deleteSeatingReservation, getReservation, getSeatingCategorySummary, getSeatingReservationSummary, onSeatingReservationCreated, onSeatingReservationDeleted, querySeatingReservation };