@wix/auto_sdk_seatings_seating-reservation 1.0.43 → 1.0.45
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 +1 -1
- package/build/cjs/index.js +13 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +18 -2
- package/build/cjs/index.typings.js +13 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -1
- package/build/cjs/meta.js +13 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +4 -0
- package/build/cjs/schemas.js +7 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +12 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +18 -2
- package/build/es/index.typings.mjs +12 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -1
- package/build/es/meta.mjs +12 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +4 -0
- package/build/es/schemas.mjs +7 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +13 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -2
- package/build/internal/cjs/index.typings.js +13 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -1
- package/build/internal/cjs/meta.js +13 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +4 -0
- package/build/internal/cjs/schemas.js +7 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +12 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -2
- package/build/internal/es/index.typings.mjs +12 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -1
- package/build/internal/es/meta.mjs +12 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +4 -0
- package/build/internal/es/schemas.mjs +7 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { CreateSeatingReservationOptions, SeatingReservation, CreateSeatingReservationApplicationErrors, DeleteSeatingReservationResponse, GetSeatingCategorySummaryByExternalIdResponse, GetSeatingReservationSummaryByExternalIdResponse, SeatingReservationCreatedEnvelope, SeatingReservationDeletedEnvelope, ReservationsQueryBuilder, SeatingReservationQuery, typedQuerySeatingReservations } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, App, AvailablePlace, BaseEventMetadata, CancelSeatingPlaceReservationsRequest, CancelSeatingPlaceReservationsResponse, Category, CategoryDetails, CommonQueryWithEntityContext, CreateSeatingReservationRequest, CreateSeatingReservationResponse, CursorPaging, Cursors, CustomTag, DeleteSeatingPlaceReservationRequest, DeleteSeatingReservationByExternalIdRequest, DeleteSeatingReservationByExternalIdResponse, DeleteSeatingReservationRequest, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetReservationRequest, GetReservationResponse, GetReservedPlacesRequest, GetReservedPlacesResponse, GetSeatingCategorySummaryByExternalIdRequest, GetSeatingCategorySummaryRequest, GetSeatingCategorySummaryResponse, GetSeatingReservationRequest, GetSeatingReservationResponse, GetSeatingReservationSummaryByExternalIdRequest, GetSeatingReservationSummaryRequest, GetSeatingReservationSummaryResponse, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, InvalidateCache, InvalidateCacheGetByOneOf, ListAvailablePlacesRequest, ListAvailablePlacesResponse, ListReservedPlacesRequest, ListReservedPlacesResponse, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Page, Pages, Paging, PagingMetadata, PagingMetadataV2, Place, PlaceReservation, PlaceReservationDetails, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, Places, Position, PositionWithLiterals, QuerySeatingReservationRequest, QuerySeatingReservationResponse, QuerySeatingReservationsRequest, QuerySeatingReservationsResponse, QueryV2, QueryV2PagingMethodOneOf, RegenerateSummariesRequest, RegenerateSummariesResponse, ReservationErrorDetails, ReservationOptions, ReservationsQueryResult, ReservedPlace, RestoreInfo, RowElement, RowElementUiProperties, SeatReservation, SeatingPlan, SeatingPlanCategoriesSummaryUpdated, SeatingPlanUiProperties, SeatingReservationQuerySpec, SeatingReservationsSummary, Section, Sequencing, ShapeTypeEnumType, ShapeTypeEnumTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, URI, URIs, UnavailablePlaces, UpdateSeatingReservationRequest, UpdateSeatingReservationResponse, VerticalSequencing, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, App, AvailablePlace, BaseEventMetadata, CancelSeatingPlaceReservationsRequest, CancelSeatingPlaceReservationsResponse, Category, CategoryDetails, CommonQueryWithEntityContext, CreateSeatingReservationRequest, CreateSeatingReservationResponse, CursorPaging, Cursors, CustomTag, DeleteSeatingPlaceReservationRequest, DeleteSeatingReservationByExternalIdRequest, DeleteSeatingReservationByExternalIdResponse, DeleteSeatingReservationRequest, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetReservationRequest, GetReservationResponse, GetReservedPlacesRequest, GetReservedPlacesResponse, GetSeatingCategorySummaryByExternalIdRequest, GetSeatingCategorySummaryRequest, GetSeatingCategorySummaryResponse, GetSeatingReservationRequest, GetSeatingReservationResponse, GetSeatingReservationSummaryByExternalIdRequest, GetSeatingReservationSummaryRequest, GetSeatingReservationSummaryResponse, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, InvalidateCache, InvalidateCacheGetByOneOf, ListAvailablePlacesRequest, ListAvailablePlacesResponse, ListReservedPlacesRequest, ListReservedPlacesResponse, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Page, Pages, Paging, PagingMetadata, PagingMetadataV2, Place, PlaceReservation, PlaceReservationDetails, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, Places, Position, PositionWithLiterals, QuerySeatingReservationRequest, QuerySeatingReservationResponse, QuerySeatingReservationsRequest, QuerySeatingReservationsResponse, QueryV2, QueryV2PagingMethodOneOf, RegenerateSummariesRequest, RegenerateSummariesResponse, ReservationErrorDetails, ReservationOptions, ReservationsQueryResult, ReservedPlace, RestoreInfo, RowElement, RowElementUiProperties, SeatReservation, SeatingPlan, SeatingPlanCategoriesSummaryUpdated, SeatingPlanUiProperties, SeatingReservationQuerySpec, SeatingReservationsSummary, Section, Sequencing, ShapeTypeEnumType, ShapeTypeEnumTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, URI, URIs, UnavailablePlaces, UpdateSeatingReservationRequest, UpdateSeatingReservationResponse, VerticalSequencing, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
|
|
6
6
|
interface CreateSeatingReservationSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -54,6 +54,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
54
54
|
// src/seating-v1-seating-reservation-seating-reservation.http.ts
|
|
55
55
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
56
56
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
57
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
57
58
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
58
59
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
59
60
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -201,6 +202,15 @@ function getSeatingReservation(payload) {
|
|
|
201
202
|
}
|
|
202
203
|
function querySeatingReservations(payload) {
|
|
203
204
|
function __querySeatingReservations({ host }) {
|
|
205
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
206
|
+
{
|
|
207
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
208
|
+
paths: [
|
|
209
|
+
{ path: "query.sort.origin.latitude" },
|
|
210
|
+
{ path: "query.sort.origin.longitude" }
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
]);
|
|
204
214
|
const metadata = {
|
|
205
215
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
206
216
|
method: "POST",
|
|
@@ -211,10 +221,10 @@ function querySeatingReservations(payload) {
|
|
|
211
221
|
},
|
|
212
222
|
url: resolveComWixpressSeatingSeatingReservationServiceUrl({
|
|
213
223
|
protoPath: "/v1/reservations/query",
|
|
214
|
-
data:
|
|
224
|
+
data: serializedData,
|
|
215
225
|
host
|
|
216
226
|
}),
|
|
217
|
-
data:
|
|
227
|
+
data: serializedData,
|
|
218
228
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
219
229
|
{
|
|
220
230
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -302,7 +312,7 @@ function getSeatingReservationSummaryByExternalId(payload) {
|
|
|
302
312
|
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
303
313
|
},
|
|
304
314
|
{
|
|
305
|
-
transformFn:
|
|
315
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
306
316
|
paths: [
|
|
307
317
|
{ path: "plan.sections.elements.uiProperties.x" },
|
|
308
318
|
{ path: "plan.sections.elements.uiProperties.y" },
|