@wix/auto_sdk_seatings_seating-plan 1.0.40 → 1.0.42

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,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /** A seating plan represents the layout and organization of seats within a venue. It defines the physical arrangement of seating areas, pricing categories, and individual places where attendees can be seated or positioned during an event. */
4
4
  interface SeatingPlan {
@@ -1287,7 +1287,54 @@ interface PlansQueryBuilder {
1287
1287
  * @requiredField query
1288
1288
  * @returns Response containing matching seating plans.
1289
1289
  */
1290
- declare function typedQuerySeatingPlan(query: QueryV2, options?: QuerySeatingPlanOptions): Promise<NonNullablePaths<QuerySeatingPlanResponse, `plans`, 2>>;
1290
+ declare function typedQuerySeatingPlan(query: SeatingPlanQuery, options?: QuerySeatingPlanOptions): Promise<NonNullablePaths<QuerySeatingPlanResponse, `plans`, 2>>;
1291
+ interface SeatingPlanQuerySpec extends QuerySpec {
1292
+ paging: 'cursor';
1293
+ wql: [];
1294
+ }
1295
+ type CommonQueryWithEntityContext = Query<SeatingPlan, SeatingPlanQuerySpec>;
1296
+ type SeatingPlanQuery = {
1297
+ /**
1298
+ 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`.
1299
+ */
1300
+ cursorPaging?: {
1301
+ /**
1302
+ Maximum number of items to return in the results.
1303
+ @max: 100
1304
+ */
1305
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
1306
+ /**
1307
+ Pointer to the next or previous page in the list of results.
1308
+
1309
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1310
+ Not relevant for the first request.
1311
+ @maxLength: 16000
1312
+ */
1313
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1314
+ };
1315
+ /**
1316
+ Filter object.
1317
+
1318
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
1319
+ */
1320
+ filter?: CommonQueryWithEntityContext['filter'] | null;
1321
+ /**
1322
+ Sort object.
1323
+
1324
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
1325
+ */
1326
+ sort?: {
1327
+ /**
1328
+ Name of the field to sort by.
1329
+ @maxLength: 512
1330
+ */
1331
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
1332
+ /**
1333
+ Sort order.
1334
+ */
1335
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1336
+ }[];
1337
+ };
1291
1338
  /**
1292
1339
  * Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
1293
1340
  * @param _id - Seating plan ID to retrieve.
@@ -1375,4 +1422,4 @@ declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingP
1375
1422
  */
1376
1423
  declare function getSeatingPlanThumbnail(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
1377
1424
 
1378
- export { type ActionEvent, type BaseEventMetadata, type CapacityExceededViolation, type Category, type CopySeatingPlanOptions, type CopySeatingPlanRequest, type CopySeatingPlanResponse, type CreateSeatingPlanApplicationErrors, type CreateSeatingPlanRequest, type CreateSeatingPlanResponse, type CursorPaging, type Cursors, type DeleteSeatingPlanRequest, type DeleteSeatingPlanResponse, type DiscardSeatingPlanVersionsRequest, type DiscardSeatingPlanVersionsResponse, type DomainEvent, type DomainEventBodyOneOf, type Element, type ElementGroup, type ElementGroupUiProperties, type ElementUiProperties, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, Fieldset, type FieldsetWithLiterals, type FindSeatingPlanOptions, type FindSeatingPlanRequest, type FindSeatingPlanResponse, type GetSeatingPlanOptions, type GetSeatingPlanRequest, type GetSeatingPlanResponse, type GetSeatingPlanThumbnailRequest, type GetSeatingPlanThumbnailResponse, Icon, type IconWithLiterals, type IdentificationData, type IdentificationDataIdOneOf, type Image, type MessageEnvelope, type MultiRowProperties, Numbering, type NumberingWithLiterals, type Paging, type PagingMetadataV2, type Place, PlaceTypeEnumType, type PlaceTypeEnumTypeWithLiterals, type PlansQueryBuilder, type PlansQueryResult, Position, type PositionWithLiterals, type QuerySeatingPlanOptions, type QuerySeatingPlanRequest, type QuerySeatingPlanResponse, type QuerySeatingPlanVersionsRequest, type QuerySeatingPlanVersionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReservationOptions, type RestoreInfo, type RestoreSeatingPlanRequest, type RestoreSeatingPlanResponse, type RowElement, type RowElementUiProperties, type SaveSeatingPlanVersionRequest, type SaveSeatingPlanVersionResponse, type SeatingPlan, type SeatingPlanCreatedEnvelope, type SeatingPlanDeletedEnvelope, type SeatingPlanMask, type SeatingPlanThumbnail, type SeatingPlanUiProperties, type SeatingPlanUpdatedEnvelope, type Section, type Sequencing, ShapeTypeEnumType, type ShapeTypeEnumTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Type, type TypeWithLiterals, type UpdateSeatingPlanApplicationErrors, type UpdateSeatingPlanOptions, type UpdateSeatingPlanRequest, type UpdateSeatingPlanResponse, type UpdateSeatingPlanThumbnailRequest, type UpdateSeatingPlanThumbnailResponse, type VerticalSequencing, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, typedQuerySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };
1425
+ export { type ActionEvent, type BaseEventMetadata, type CapacityExceededViolation, type Category, type CommonQueryWithEntityContext, type CopySeatingPlanOptions, type CopySeatingPlanRequest, type CopySeatingPlanResponse, type CreateSeatingPlanApplicationErrors, type CreateSeatingPlanRequest, type CreateSeatingPlanResponse, type CursorPaging, type Cursors, type DeleteSeatingPlanRequest, type DeleteSeatingPlanResponse, type DiscardSeatingPlanVersionsRequest, type DiscardSeatingPlanVersionsResponse, type DomainEvent, type DomainEventBodyOneOf, type Element, type ElementGroup, type ElementGroupUiProperties, type ElementUiProperties, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, Fieldset, type FieldsetWithLiterals, type FindSeatingPlanOptions, type FindSeatingPlanRequest, type FindSeatingPlanResponse, type GetSeatingPlanOptions, type GetSeatingPlanRequest, type GetSeatingPlanResponse, type GetSeatingPlanThumbnailRequest, type GetSeatingPlanThumbnailResponse, Icon, type IconWithLiterals, type IdentificationData, type IdentificationDataIdOneOf, type Image, type MessageEnvelope, type MultiRowProperties, Numbering, type NumberingWithLiterals, type Paging, type PagingMetadataV2, type Place, PlaceTypeEnumType, type PlaceTypeEnumTypeWithLiterals, type PlansQueryBuilder, type PlansQueryResult, Position, type PositionWithLiterals, type QuerySeatingPlanOptions, type QuerySeatingPlanRequest, type QuerySeatingPlanResponse, type QuerySeatingPlanVersionsRequest, type QuerySeatingPlanVersionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type ReservationOptions, type RestoreInfo, type RestoreSeatingPlanRequest, type RestoreSeatingPlanResponse, type RowElement, type RowElementUiProperties, type SaveSeatingPlanVersionRequest, type SaveSeatingPlanVersionResponse, type SeatingPlan, type SeatingPlanCreatedEnvelope, type SeatingPlanDeletedEnvelope, type SeatingPlanMask, type SeatingPlanQuery, type SeatingPlanQuerySpec, type SeatingPlanThumbnail, type SeatingPlanUiProperties, type SeatingPlanUpdatedEnvelope, type Section, type Sequencing, ShapeTypeEnumType, type ShapeTypeEnumTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Type, type TypeWithLiterals, type UpdateSeatingPlanApplicationErrors, type UpdateSeatingPlanOptions, type UpdateSeatingPlanRequest, type UpdateSeatingPlanResponse, type UpdateSeatingPlanThumbnailRequest, type UpdateSeatingPlanThumbnailResponse, type VerticalSequencing, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, typedQuerySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };