@wix/auto_sdk_seatings_seating-plan 1.0.27 → 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 -7
- 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 -7
- 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 -7
- 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 -7
- package/build/internal/es/index.typings.mjs +27 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
@@ -1281,6 +1275,13 @@ interface PlansQueryBuilder {
|
|
|
1281
1275
|
/** @documentationMaturity preview */
|
|
1282
1276
|
find: () => Promise<PlansQueryResult>;
|
|
1283
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>>;
|
|
1284
1285
|
/**
|
|
1285
1286
|
* Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
|
|
1286
1287
|
* @param _id - Seating plan ID to retrieve.
|
|
@@ -1368,4 +1369,4 @@ declare function updateSeatingPlanThumbnail(thumbnail: NonNullablePaths<SeatingP
|
|
|
1368
1369
|
*/
|
|
1369
1370
|
declare function getSeatingPlanThumbnail(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1370
1371
|
|
|
1371
|
-
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 };
|
|
@@ -36,6 +36,7 @@ __export(index_typings_exports, {
|
|
|
36
36
|
getSeatingPlan: () => getSeatingPlan2,
|
|
37
37
|
getSeatingPlanThumbnail: () => getSeatingPlanThumbnail2,
|
|
38
38
|
querySeatingPlan: () => querySeatingPlan2,
|
|
39
|
+
typedQuerySeatingPlan: () => typedQuerySeatingPlan,
|
|
39
40
|
updateSeatingPlan: () => updateSeatingPlan2,
|
|
40
41
|
updateSeatingPlanThumbnail: () => updateSeatingPlanThumbnail2
|
|
41
42
|
});
|
|
@@ -947,6 +948,32 @@ function querySeatingPlan2(options) {
|
|
|
947
948
|
transformationPaths: {}
|
|
948
949
|
});
|
|
949
950
|
}
|
|
951
|
+
async function typedQuerySeatingPlan(query, options) {
|
|
952
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
953
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
954
|
+
query,
|
|
955
|
+
...options
|
|
956
|
+
});
|
|
957
|
+
const reqOpts = querySeatingPlan(payload);
|
|
958
|
+
sideEffects?.onSiteCall?.();
|
|
959
|
+
try {
|
|
960
|
+
const result = await httpClient.request(reqOpts);
|
|
961
|
+
sideEffects?.onSuccess?.(result);
|
|
962
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
963
|
+
} catch (err) {
|
|
964
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
965
|
+
err,
|
|
966
|
+
{
|
|
967
|
+
spreadPathsToArguments: {},
|
|
968
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
969
|
+
singleArgumentUnchanged: false
|
|
970
|
+
},
|
|
971
|
+
["query", "options"]
|
|
972
|
+
);
|
|
973
|
+
sideEffects?.onError?.(err);
|
|
974
|
+
throw transformedError;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
950
977
|
async function getSeatingPlan2(_id, options) {
|
|
951
978
|
const { httpClient, sideEffects } = arguments[2];
|
|
952
979
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1102,6 +1129,7 @@ async function getSeatingPlanThumbnail2(_id) {
|
|
|
1102
1129
|
getSeatingPlan,
|
|
1103
1130
|
getSeatingPlanThumbnail,
|
|
1104
1131
|
querySeatingPlan,
|
|
1132
|
+
typedQuerySeatingPlan,
|
|
1105
1133
|
updateSeatingPlan,
|
|
1106
1134
|
updateSeatingPlanThumbnail
|
|
1107
1135
|
});
|