@wix/auto_sdk_seatings_seating-plan 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +50 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +50 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +50 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +50 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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 {
|
|
@@ -1140,8 +1140,6 @@ interface SeatingPlanCreatedEnvelope {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
/** @permissionScope Manage Events
|
|
1142
1142
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1143
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1144
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1145
1143
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1146
1144
|
* @webhook
|
|
1147
1145
|
* @eventType wix.seating.v1.seating_plan_created
|
|
@@ -1155,8 +1153,6 @@ interface SeatingPlanDeletedEnvelope {
|
|
|
1155
1153
|
}
|
|
1156
1154
|
/** @permissionScope Manage Events
|
|
1157
1155
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1158
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1159
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1160
1156
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1161
1157
|
* @webhook
|
|
1162
1158
|
* @eventType wix.seating.v1.seating_plan_deleted
|
|
@@ -1170,8 +1166,6 @@ interface SeatingPlanUpdatedEnvelope {
|
|
|
1170
1166
|
}
|
|
1171
1167
|
/** @permissionScope Manage Events
|
|
1172
1168
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1173
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1174
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1175
1169
|
* @permissionId SEATING_PLANS.READ_SEATING_PLANS
|
|
1176
1170
|
* @webhook
|
|
1177
1171
|
* @eventType wix.seating.v1.seating_plan_updated
|
|
@@ -1287,7 +1281,54 @@ interface PlansQueryBuilder {
|
|
|
1287
1281
|
* @requiredField query
|
|
1288
1282
|
* @returns Response containing matching seating plans.
|
|
1289
1283
|
*/
|
|
1290
|
-
declare function typedQuerySeatingPlan(query:
|
|
1284
|
+
declare function typedQuerySeatingPlan(query: SeatingPlanQuery, options?: QuerySeatingPlanOptions): Promise<NonNullablePaths<QuerySeatingPlanResponse, `plans`, 2>>;
|
|
1285
|
+
interface SeatingPlanQuerySpec extends QuerySpec {
|
|
1286
|
+
paging: 'cursor';
|
|
1287
|
+
wql: [];
|
|
1288
|
+
}
|
|
1289
|
+
type CommonQueryWithEntityContext = Query<SeatingPlan, SeatingPlanQuerySpec>;
|
|
1290
|
+
type SeatingPlanQuery = {
|
|
1291
|
+
/**
|
|
1292
|
+
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`.
|
|
1293
|
+
*/
|
|
1294
|
+
cursorPaging?: {
|
|
1295
|
+
/**
|
|
1296
|
+
Maximum number of items to return in the results.
|
|
1297
|
+
@max: 100
|
|
1298
|
+
*/
|
|
1299
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1300
|
+
/**
|
|
1301
|
+
Pointer to the next or previous page in the list of results.
|
|
1302
|
+
|
|
1303
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1304
|
+
Not relevant for the first request.
|
|
1305
|
+
@maxLength: 16000
|
|
1306
|
+
*/
|
|
1307
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
Filter object.
|
|
1311
|
+
|
|
1312
|
+
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
1313
|
+
*/
|
|
1314
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1315
|
+
/**
|
|
1316
|
+
Sort object.
|
|
1317
|
+
|
|
1318
|
+
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
1319
|
+
*/
|
|
1320
|
+
sort?: {
|
|
1321
|
+
/**
|
|
1322
|
+
Name of the field to sort by.
|
|
1323
|
+
@maxLength: 512
|
|
1324
|
+
*/
|
|
1325
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1326
|
+
/**
|
|
1327
|
+
Sort order.
|
|
1328
|
+
*/
|
|
1329
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1330
|
+
}[];
|
|
1331
|
+
};
|
|
1291
1332
|
/**
|
|
1292
1333
|
* Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
|
|
1293
1334
|
* @param _id - Seating plan ID to retrieve.
|
|
@@ -1375,4 +1416,4 @@ declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingP
|
|
|
1375
1416
|
*/
|
|
1376
1417
|
declare function getSeatingPlanThumbnail(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1377
1418
|
|
|
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 };
|
|
1419
|
+
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 };
|