@wix/auto_sdk_seatings_seating-plan 1.0.26 → 1.0.28
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 +10 -11
- package/build/cjs/index.js +47 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -1
- package/build/cjs/index.typings.js +28 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +10 -11
- package/build/es/index.mjs +47 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -1
- package/build/es/index.typings.mjs +27 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -11
- package/build/internal/cjs/index.js +47 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -1
- package/build/internal/cjs/index.typings.js +28 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +10 -11
- package/build/internal/es/index.mjs +47 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -1
- package/build/internal/es/index.typings.mjs +27 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1275,6 +1275,13 @@ interface PlansQueryBuilder {
|
|
|
1275
1275
|
/** @documentationMaturity preview */
|
|
1276
1276
|
find: () => Promise<PlansQueryResult>;
|
|
1277
1277
|
}
|
|
1278
|
+
/**
|
|
1279
|
+
* @hidden
|
|
1280
|
+
* @fqn com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan
|
|
1281
|
+
* @requiredField query
|
|
1282
|
+
* @returns Response containing matching seating plans.
|
|
1283
|
+
*/
|
|
1284
|
+
declare function typedQuerySeatingPlan(query: QueryV2, options?: QuerySeatingPlanOptions): Promise<NonNullablePaths<QuerySeatingPlanResponse, `plans`, 2>>;
|
|
1278
1285
|
/**
|
|
1279
1286
|
* Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
|
|
1280
1287
|
* @param _id - Seating plan ID to retrieve.
|
|
@@ -1362,4 +1369,4 @@ declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingP
|
|
|
1362
1369
|
*/
|
|
1363
1370
|
declare function getSeatingPlanThumbnail(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1364
1371
|
|
|
1365
|
-
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, updateSeatingPlan, updateSeatingPlanThumbnail };
|
|
1372
|
+
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 };
|
|
@@ -907,6 +907,32 @@ function querySeatingPlan2(options) {
|
|
|
907
907
|
transformationPaths: {}
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
|
+
async function typedQuerySeatingPlan(query, options) {
|
|
911
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
912
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
913
|
+
query,
|
|
914
|
+
...options
|
|
915
|
+
});
|
|
916
|
+
const reqOpts = querySeatingPlan(payload);
|
|
917
|
+
sideEffects?.onSiteCall?.();
|
|
918
|
+
try {
|
|
919
|
+
const result = await httpClient.request(reqOpts);
|
|
920
|
+
sideEffects?.onSuccess?.(result);
|
|
921
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
922
|
+
} catch (err) {
|
|
923
|
+
const transformedError = sdkTransformError(
|
|
924
|
+
err,
|
|
925
|
+
{
|
|
926
|
+
spreadPathsToArguments: {},
|
|
927
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
928
|
+
singleArgumentUnchanged: false
|
|
929
|
+
},
|
|
930
|
+
["query", "options"]
|
|
931
|
+
);
|
|
932
|
+
sideEffects?.onError?.(err);
|
|
933
|
+
throw transformedError;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
910
936
|
async function getSeatingPlan2(_id, options) {
|
|
911
937
|
const { httpClient, sideEffects } = arguments[2];
|
|
912
938
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1061,6 +1087,7 @@ export {
|
|
|
1061
1087
|
getSeatingPlan2 as getSeatingPlan,
|
|
1062
1088
|
getSeatingPlanThumbnail2 as getSeatingPlanThumbnail,
|
|
1063
1089
|
querySeatingPlan2 as querySeatingPlan,
|
|
1090
|
+
typedQuerySeatingPlan,
|
|
1064
1091
|
updateSeatingPlan2 as updateSeatingPlan,
|
|
1065
1092
|
updateSeatingPlanThumbnail2 as updateSeatingPlanThumbnail
|
|
1066
1093
|
};
|