@wix/auto_sdk_seatings_seating-reservation 1.0.41 → 1.0.43
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 +19 -18
- package/build/cjs/index.js +137 -77
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +159 -41
- package/build/cjs/index.typings.js +105 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +87 -26
- package/build/cjs/meta.js +96 -48
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +21 -15
- package/build/cjs/schemas.js +46 -44
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +19 -18
- package/build/es/index.mjs +129 -69
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +159 -41
- package/build/es/index.typings.mjs +99 -49
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +87 -26
- package/build/es/meta.mjs +91 -43
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +21 -15
- package/build/es/schemas.mjs +38 -36
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -18
- package/build/internal/cjs/index.js +137 -77
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +159 -41
- package/build/internal/cjs/index.typings.js +105 -55
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +87 -26
- package/build/internal/cjs/meta.js +96 -48
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +21 -15
- package/build/internal/cjs/schemas.js +46 -44
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -18
- package/build/internal/es/index.mjs +129 -69
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +159 -41
- package/build/internal/es/index.typings.mjs +99 -49
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +87 -26
- package/build/internal/es/meta.mjs +91 -43
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +21 -15
- package/build/internal/es/schemas.mjs +38 -36
- 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
|
-
import { CreateSeatingReservationOptions, SeatingReservation, CreateSeatingReservationApplicationErrors, DeleteSeatingReservationResponse,
|
|
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, GetSeatingCategorySummaryRequest, GetSeatingReservationSummaryRequest, 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, 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';
|
|
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';
|
|
4
4
|
|
|
5
5
|
declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
|
|
6
6
|
interface CreateSeatingReservationSignature {
|
|
@@ -12,14 +12,14 @@ interface CreateSeatingReservationSignature {
|
|
|
12
12
|
__applicationErrorsType?: CreateSeatingReservationApplicationErrors;
|
|
13
13
|
}>;
|
|
14
14
|
}
|
|
15
|
-
declare function
|
|
16
|
-
interface
|
|
15
|
+
declare function getSeatingReservation$1(httpClient: HttpClient): GetSeatingReservationSignature;
|
|
16
|
+
interface GetSeatingReservationSignature {
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves a seating reservation by ID.
|
|
19
19
|
* @param - Reservation ID.
|
|
20
20
|
* @returns Retrieved reservation.
|
|
21
21
|
*/
|
|
22
|
-
(
|
|
22
|
+
(reservationId: string): Promise<NonNullablePaths<SeatingReservation, `reservedPlaces` | `reservedPlaces.${number}._id`, 4>>;
|
|
23
23
|
}
|
|
24
24
|
declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
|
|
25
25
|
interface DeleteSeatingReservationSignature {
|
|
@@ -30,39 +30,40 @@ interface DeleteSeatingReservationSignature {
|
|
|
30
30
|
*/
|
|
31
31
|
(_id: string): Promise<NonNullablePaths<DeleteSeatingReservationResponse, `reservation.reservedPlaces` | `reservation.reservedPlaces.${number}._id`, 5>>;
|
|
32
32
|
}
|
|
33
|
-
declare function
|
|
34
|
-
interface
|
|
33
|
+
declare function getSeatingCategorySummaryByExternalId$1(httpClient: HttpClient): GetSeatingCategorySummaryByExternalIdSignature;
|
|
34
|
+
interface GetSeatingCategorySummaryByExternalIdSignature {
|
|
35
35
|
/**
|
|
36
36
|
* Retrieves capacity and reservation summary by seating category.
|
|
37
|
+
* @param - External seating plan ID.
|
|
37
38
|
* @returns Response containing capacity summary by category.
|
|
38
39
|
*/
|
|
39
|
-
(
|
|
40
|
+
(externalId: string): Promise<NonNullablePaths<GetSeatingCategorySummaryByExternalIdResponse, `categories`, 2>>;
|
|
40
41
|
}
|
|
41
|
-
declare function
|
|
42
|
-
interface
|
|
42
|
+
declare function getSeatingReservationSummaryByExternalId$1(httpClient: HttpClient): GetSeatingReservationSummaryByExternalIdSignature;
|
|
43
|
+
interface GetSeatingReservationSummaryByExternalIdSignature {
|
|
43
44
|
/**
|
|
44
45
|
* Retrieves detailed place-level occupancy data for a seating plan.
|
|
45
46
|
* @param - External seating plan ID.
|
|
46
47
|
* @returns Response containing complete seating plan and occupancy data.
|
|
47
48
|
*/
|
|
48
|
-
(externalId: string): Promise<NonNullablePaths<
|
|
49
|
+
(externalId: string): Promise<NonNullablePaths<GetSeatingReservationSummaryByExternalIdResponse, `plan.sections` | `plan.sections.${number}._id` | `plan.sections.${number}.default` | `plan.categories` | `plan.categories.${number}._id` | `plan.categories.${number}.title` | `plan.uncategorizedPlaces` | `plan.elementGroups` | `plan.elementGroups.${number}._id` | `places` | `places.${number}.placeId` | `places.${number}.occupied`, 5>>;
|
|
49
50
|
}
|
|
50
51
|
declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
|
|
51
52
|
declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
|
|
52
53
|
|
|
53
|
-
declare function
|
|
54
|
+
declare function customQuerySeatingReservations(httpClient: HttpClient): {
|
|
54
55
|
(): ReservationsQueryBuilder;
|
|
55
|
-
(query: SeatingReservationQuery): ReturnType<typeof
|
|
56
|
+
(query: SeatingReservationQuery): ReturnType<typeof typedQuerySeatingReservations>;
|
|
56
57
|
};
|
|
57
58
|
declare const createSeatingReservation: MaybeContext<BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1>;
|
|
58
|
-
declare const
|
|
59
|
+
declare const getSeatingReservation: MaybeContext<BuildRESTFunction<typeof getSeatingReservation$1> & typeof getSeatingReservation$1>;
|
|
59
60
|
declare const deleteSeatingReservation: MaybeContext<BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1>;
|
|
60
|
-
declare const
|
|
61
|
-
declare const
|
|
62
|
-
declare const
|
|
61
|
+
declare const getSeatingCategorySummaryByExternalId: MaybeContext<BuildRESTFunction<typeof getSeatingCategorySummaryByExternalId$1> & typeof getSeatingCategorySummaryByExternalId$1>;
|
|
62
|
+
declare const getSeatingReservationSummaryByExternalId: MaybeContext<BuildRESTFunction<typeof getSeatingReservationSummaryByExternalId$1> & typeof getSeatingReservationSummaryByExternalId$1>;
|
|
63
|
+
declare const querySeatingReservations: MaybeContext<BuildRESTFunction<typeof customQuerySeatingReservations> & typeof customQuerySeatingReservations>;
|
|
63
64
|
/** */
|
|
64
65
|
declare const onSeatingReservationCreated: BuildEventDefinition<typeof onSeatingReservationCreated$1> & typeof onSeatingReservationCreated$1;
|
|
65
66
|
/** */
|
|
66
67
|
declare const onSeatingReservationDeleted: BuildEventDefinition<typeof onSeatingReservationDeleted$1> & typeof onSeatingReservationDeleted$1;
|
|
67
68
|
|
|
68
|
-
export { CreateSeatingReservationApplicationErrors, CreateSeatingReservationOptions, DeleteSeatingReservationResponse,
|
|
69
|
+
export { CreateSeatingReservationApplicationErrors, CreateSeatingReservationOptions, DeleteSeatingReservationResponse, GetSeatingCategorySummaryByExternalIdResponse, GetSeatingReservationSummaryByExternalIdResponse, ReservationsQueryBuilder, SeatingReservation, SeatingReservationCreatedEnvelope, SeatingReservationDeletedEnvelope, SeatingReservationQuery, createSeatingReservation, deleteSeatingReservation, getSeatingCategorySummaryByExternalId, getSeatingReservation, getSeatingReservationSummaryByExternalId, onSeatingReservationCreated, onSeatingReservationDeleted, querySeatingReservations };
|
package/build/cjs/index.js
CHANGED
|
@@ -30,19 +30,19 @@ __export(index_exports, {
|
|
|
30
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
31
31
|
createSeatingReservation: () => createSeatingReservation4,
|
|
32
32
|
deleteSeatingReservation: () => deleteSeatingReservation4,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
getSeatingCategorySummaryByExternalId: () => getSeatingCategorySummaryByExternalId4,
|
|
34
|
+
getSeatingReservation: () => getSeatingReservation4,
|
|
35
|
+
getSeatingReservationSummaryByExternalId: () => getSeatingReservationSummaryByExternalId4,
|
|
36
36
|
onSeatingReservationCreated: () => onSeatingReservationCreated2,
|
|
37
37
|
onSeatingReservationDeleted: () => onSeatingReservationDeleted2,
|
|
38
|
-
|
|
38
|
+
querySeatingReservations: () => querySeatingReservations4,
|
|
39
39
|
utils: () => utils
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(index_exports);
|
|
42
42
|
|
|
43
43
|
// src/seating-v1-seating-reservation-seating-reservation.public.ts
|
|
44
44
|
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
45
|
-
var
|
|
45
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
46
46
|
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
47
47
|
var import_sdk_types = require("@wix/sdk-types");
|
|
48
48
|
|
|
@@ -55,6 +55,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
55
55
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
56
56
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
57
57
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
58
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
58
59
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
59
60
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
60
61
|
function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
|
|
@@ -65,12 +66,6 @@ function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
|
|
|
65
66
|
destPath: ""
|
|
66
67
|
}
|
|
67
68
|
],
|
|
68
|
-
_: [
|
|
69
|
-
{
|
|
70
|
-
srcPath: "/_api/seating-reservations",
|
|
71
|
-
destPath: ""
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
69
|
"api._base_domain_": [
|
|
75
70
|
{
|
|
76
71
|
srcPath: "/seating-reservations",
|
|
@@ -124,6 +119,12 @@ function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
|
|
|
124
119
|
srcPath: "/seating/v1/reservations",
|
|
125
120
|
destPath: "/v1/reservations"
|
|
126
121
|
}
|
|
122
|
+
],
|
|
123
|
+
_: [
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/_api/seating-reservations",
|
|
126
|
+
destPath: ""
|
|
127
|
+
}
|
|
127
128
|
]
|
|
128
129
|
};
|
|
129
130
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -131,6 +132,15 @@ function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
|
|
|
131
132
|
var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-reservation";
|
|
132
133
|
function createSeatingReservation(payload) {
|
|
133
134
|
function __createSeatingReservation({ host }) {
|
|
135
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
136
|
+
{
|
|
137
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
138
|
+
paths: [
|
|
139
|
+
{ path: "reservation.createdDate" },
|
|
140
|
+
{ path: "reservation.updatedDate" }
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]);
|
|
134
144
|
const metadata = {
|
|
135
145
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
136
146
|
method: "POST",
|
|
@@ -141,42 +151,60 @@ function createSeatingReservation(payload) {
|
|
|
141
151
|
},
|
|
142
152
|
url: resolveComWixpressSeatingSeatingReservationServiceUrl({
|
|
143
153
|
protoPath: "/v1/reservations",
|
|
144
|
-
data:
|
|
154
|
+
data: serializedData,
|
|
145
155
|
host
|
|
146
156
|
}),
|
|
147
|
-
data:
|
|
157
|
+
data: serializedData,
|
|
158
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
159
|
+
{
|
|
160
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
161
|
+
paths: [
|
|
162
|
+
{ path: "reservation.createdDate" },
|
|
163
|
+
{ path: "reservation.updatedDate" }
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
])
|
|
148
167
|
};
|
|
149
168
|
return metadata;
|
|
150
169
|
}
|
|
151
170
|
return __createSeatingReservation;
|
|
152
171
|
}
|
|
153
|
-
function
|
|
154
|
-
function
|
|
172
|
+
function getSeatingReservation(payload) {
|
|
173
|
+
function __getSeatingReservation({ host }) {
|
|
155
174
|
const metadata = {
|
|
156
175
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
157
176
|
method: "GET",
|
|
158
|
-
methodFqn: "com.wixpress.seating.SeatingReservationService.
|
|
177
|
+
methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingReservation",
|
|
159
178
|
packageName: PACKAGE_NAME,
|
|
160
179
|
migrationOptions: {
|
|
161
180
|
optInTransformResponse: true
|
|
162
181
|
},
|
|
163
182
|
url: resolveComWixpressSeatingSeatingReservationServiceUrl({
|
|
164
|
-
protoPath: "/v1/reservations/{
|
|
183
|
+
protoPath: "/v1/reservations/{reservationId}",
|
|
165
184
|
data: payload,
|
|
166
185
|
host
|
|
167
186
|
}),
|
|
168
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
187
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
188
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
189
|
+
{
|
|
190
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
191
|
+
paths: [
|
|
192
|
+
{ path: "reservation.createdDate" },
|
|
193
|
+
{ path: "reservation.updatedDate" }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
])
|
|
169
197
|
};
|
|
170
198
|
return metadata;
|
|
171
199
|
}
|
|
172
|
-
return
|
|
200
|
+
return __getSeatingReservation;
|
|
173
201
|
}
|
|
174
|
-
function
|
|
175
|
-
function
|
|
202
|
+
function querySeatingReservations(payload) {
|
|
203
|
+
function __querySeatingReservations({ host }) {
|
|
176
204
|
const metadata = {
|
|
177
205
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
178
206
|
method: "POST",
|
|
179
|
-
methodFqn: "com.wixpress.seating.SeatingReservationService.
|
|
207
|
+
methodFqn: "com.wixpress.seating.SeatingReservationService.QuerySeatingReservations",
|
|
180
208
|
packageName: PACKAGE_NAME,
|
|
181
209
|
migrationOptions: {
|
|
182
210
|
optInTransformResponse: true
|
|
@@ -186,11 +214,20 @@ function querySeatingReservation(payload) {
|
|
|
186
214
|
data: payload,
|
|
187
215
|
host
|
|
188
216
|
}),
|
|
189
|
-
data: payload
|
|
217
|
+
data: payload,
|
|
218
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
219
|
+
{
|
|
220
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
221
|
+
paths: [
|
|
222
|
+
{ path: "reservations.createdDate" },
|
|
223
|
+
{ path: "reservations.updatedDate" }
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
])
|
|
190
227
|
};
|
|
191
228
|
return metadata;
|
|
192
229
|
}
|
|
193
|
-
return
|
|
230
|
+
return __querySeatingReservations;
|
|
194
231
|
}
|
|
195
232
|
function deleteSeatingReservation(payload) {
|
|
196
233
|
function __deleteSeatingReservation({ host }) {
|
|
@@ -207,18 +244,27 @@ function deleteSeatingReservation(payload) {
|
|
|
207
244
|
data: payload,
|
|
208
245
|
host
|
|
209
246
|
}),
|
|
210
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
247
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
248
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
249
|
+
{
|
|
250
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
251
|
+
paths: [
|
|
252
|
+
{ path: "reservation.createdDate" },
|
|
253
|
+
{ path: "reservation.updatedDate" }
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
])
|
|
211
257
|
};
|
|
212
258
|
return metadata;
|
|
213
259
|
}
|
|
214
260
|
return __deleteSeatingReservation;
|
|
215
261
|
}
|
|
216
|
-
function
|
|
217
|
-
function
|
|
262
|
+
function getSeatingCategorySummaryByExternalId(payload) {
|
|
263
|
+
function __getSeatingCategorySummaryByExternalId({ host }) {
|
|
218
264
|
const metadata = {
|
|
219
265
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
220
266
|
method: "GET",
|
|
221
|
-
methodFqn: "com.wixpress.seating.SeatingReservationService.
|
|
267
|
+
methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummaryByExternalId",
|
|
222
268
|
packageName: PACKAGE_NAME,
|
|
223
269
|
migrationOptions: {
|
|
224
270
|
optInTransformResponse: true
|
|
@@ -232,14 +278,14 @@ function getSeatingCategorySummary(payload) {
|
|
|
232
278
|
};
|
|
233
279
|
return metadata;
|
|
234
280
|
}
|
|
235
|
-
return
|
|
281
|
+
return __getSeatingCategorySummaryByExternalId;
|
|
236
282
|
}
|
|
237
|
-
function
|
|
238
|
-
function
|
|
283
|
+
function getSeatingReservationSummaryByExternalId(payload) {
|
|
284
|
+
function __getSeatingReservationSummaryByExternalId({ host }) {
|
|
239
285
|
const metadata = {
|
|
240
286
|
entityFqdn: "wix.seating.v1.seating_reservation",
|
|
241
287
|
method: "GET",
|
|
242
|
-
methodFqn: "com.wixpress.seating.SeatingReservationService.
|
|
288
|
+
methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummaryByExternalId",
|
|
243
289
|
packageName: PACKAGE_NAME,
|
|
244
290
|
migrationOptions: {
|
|
245
291
|
optInTransformResponse: true
|
|
@@ -252,7 +298,7 @@ function getSeatingReservationSummary(payload) {
|
|
|
252
298
|
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
253
299
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
254
300
|
{
|
|
255
|
-
transformFn:
|
|
301
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
256
302
|
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
257
303
|
},
|
|
258
304
|
{
|
|
@@ -292,7 +338,7 @@ function getSeatingReservationSummary(payload) {
|
|
|
292
338
|
};
|
|
293
339
|
return metadata;
|
|
294
340
|
}
|
|
295
|
-
return
|
|
341
|
+
return __getSeatingReservationSummaryByExternalId;
|
|
296
342
|
}
|
|
297
343
|
|
|
298
344
|
// src/seating-v1-seating-reservation-seating-reservation.universal.ts
|
|
@@ -395,10 +441,12 @@ async function createSeatingReservation2(options) {
|
|
|
395
441
|
throw transformedError;
|
|
396
442
|
}
|
|
397
443
|
}
|
|
398
|
-
async function
|
|
444
|
+
async function getSeatingReservation2(reservationId) {
|
|
399
445
|
const { httpClient, sideEffects } = arguments[1];
|
|
400
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
401
|
-
|
|
446
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
447
|
+
reservationId
|
|
448
|
+
});
|
|
449
|
+
const reqOpts = getSeatingReservation(payload);
|
|
402
450
|
sideEffects?.onSiteCall?.();
|
|
403
451
|
try {
|
|
404
452
|
const result = await httpClient.request(reqOpts);
|
|
@@ -409,20 +457,20 @@ async function getReservation2(_id) {
|
|
|
409
457
|
err,
|
|
410
458
|
{
|
|
411
459
|
spreadPathsToArguments: {},
|
|
412
|
-
explicitPathsToArguments: {
|
|
460
|
+
explicitPathsToArguments: { reservationId: "$[0]" },
|
|
413
461
|
singleArgumentUnchanged: false
|
|
414
462
|
},
|
|
415
|
-
["
|
|
463
|
+
["reservationId"]
|
|
416
464
|
);
|
|
417
465
|
sideEffects?.onError?.(err);
|
|
418
466
|
throw transformedError;
|
|
419
467
|
}
|
|
420
468
|
}
|
|
421
|
-
function
|
|
469
|
+
function querySeatingReservations2() {
|
|
422
470
|
const { httpClient, sideEffects } = arguments[0];
|
|
423
471
|
return (0, import_query_builder.queryBuilder)({
|
|
424
472
|
func: async (payload) => {
|
|
425
|
-
const reqOpts =
|
|
473
|
+
const reqOpts = querySeatingReservations(
|
|
426
474
|
payload
|
|
427
475
|
);
|
|
428
476
|
sideEffects?.onSiteCall?.();
|
|
@@ -465,10 +513,10 @@ function querySeatingReservation2() {
|
|
|
465
513
|
transformationPaths: {}
|
|
466
514
|
});
|
|
467
515
|
}
|
|
468
|
-
async function
|
|
516
|
+
async function typedQuerySeatingReservations(query) {
|
|
469
517
|
const { httpClient, sideEffects } = arguments[1];
|
|
470
518
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
471
|
-
const reqOpts =
|
|
519
|
+
const reqOpts = querySeatingReservations(payload);
|
|
472
520
|
sideEffects?.onSiteCall?.();
|
|
473
521
|
try {
|
|
474
522
|
const result = await httpClient.request(reqOpts);
|
|
@@ -516,12 +564,14 @@ async function deleteSeatingReservation2(_id) {
|
|
|
516
564
|
throw transformedError;
|
|
517
565
|
}
|
|
518
566
|
}
|
|
519
|
-
async function
|
|
567
|
+
async function getSeatingCategorySummaryByExternalId2(externalId) {
|
|
520
568
|
const { httpClient, sideEffects } = arguments[1];
|
|
521
569
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
522
|
-
externalId
|
|
570
|
+
externalId
|
|
523
571
|
});
|
|
524
|
-
const reqOpts =
|
|
572
|
+
const reqOpts = getSeatingCategorySummaryByExternalId(
|
|
573
|
+
payload
|
|
574
|
+
);
|
|
525
575
|
sideEffects?.onSiteCall?.();
|
|
526
576
|
try {
|
|
527
577
|
const result = await httpClient.request(reqOpts);
|
|
@@ -532,21 +582,21 @@ async function getSeatingCategorySummary2(options) {
|
|
|
532
582
|
err,
|
|
533
583
|
{
|
|
534
584
|
spreadPathsToArguments: {},
|
|
535
|
-
explicitPathsToArguments: { externalId: "$[0]
|
|
585
|
+
explicitPathsToArguments: { externalId: "$[0]" },
|
|
536
586
|
singleArgumentUnchanged: false
|
|
537
587
|
},
|
|
538
|
-
["
|
|
588
|
+
["externalId"]
|
|
539
589
|
);
|
|
540
590
|
sideEffects?.onError?.(err);
|
|
541
591
|
throw transformedError;
|
|
542
592
|
}
|
|
543
593
|
}
|
|
544
|
-
async function
|
|
594
|
+
async function getSeatingReservationSummaryByExternalId2(externalId) {
|
|
545
595
|
const { httpClient, sideEffects } = arguments[1];
|
|
546
596
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
547
597
|
externalId
|
|
548
598
|
});
|
|
549
|
-
const reqOpts =
|
|
599
|
+
const reqOpts = getSeatingReservationSummaryByExternalId(
|
|
550
600
|
payload
|
|
551
601
|
);
|
|
552
602
|
sideEffects?.onSiteCall?.();
|
|
@@ -577,21 +627,21 @@ function createSeatingReservation3(httpClient) {
|
|
|
577
627
|
{ httpClient }
|
|
578
628
|
);
|
|
579
629
|
}
|
|
580
|
-
function
|
|
581
|
-
return (
|
|
582
|
-
|
|
630
|
+
function getSeatingReservation3(httpClient) {
|
|
631
|
+
return (reservationId) => getSeatingReservation2(
|
|
632
|
+
reservationId,
|
|
583
633
|
// @ts-ignore
|
|
584
634
|
{ httpClient }
|
|
585
635
|
);
|
|
586
636
|
}
|
|
587
|
-
function
|
|
588
|
-
return () =>
|
|
637
|
+
function querySeatingReservations3(httpClient) {
|
|
638
|
+
return () => querySeatingReservations2(
|
|
589
639
|
// @ts-ignore
|
|
590
640
|
{ httpClient }
|
|
591
641
|
);
|
|
592
642
|
}
|
|
593
|
-
function
|
|
594
|
-
return (query) =>
|
|
643
|
+
function typedQuerySeatingReservations2(httpClient) {
|
|
644
|
+
return (query) => typedQuerySeatingReservations(
|
|
595
645
|
query,
|
|
596
646
|
// @ts-ignore
|
|
597
647
|
{ httpClient }
|
|
@@ -604,15 +654,15 @@ function deleteSeatingReservation3(httpClient) {
|
|
|
604
654
|
{ httpClient }
|
|
605
655
|
);
|
|
606
656
|
}
|
|
607
|
-
function
|
|
608
|
-
return (
|
|
609
|
-
|
|
657
|
+
function getSeatingCategorySummaryByExternalId3(httpClient) {
|
|
658
|
+
return (externalId) => getSeatingCategorySummaryByExternalId2(
|
|
659
|
+
externalId,
|
|
610
660
|
// @ts-ignore
|
|
611
661
|
{ httpClient }
|
|
612
662
|
);
|
|
613
663
|
}
|
|
614
|
-
function
|
|
615
|
-
return (externalId) =>
|
|
664
|
+
function getSeatingReservationSummaryByExternalId3(httpClient) {
|
|
665
|
+
return (externalId) => getSeatingReservationSummaryByExternalId2(
|
|
616
666
|
externalId,
|
|
617
667
|
// @ts-ignore
|
|
618
668
|
{ httpClient }
|
|
@@ -624,8 +674,12 @@ var onSeatingReservationCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
624
674
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
625
675
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
626
676
|
{
|
|
627
|
-
transformFn:
|
|
628
|
-
paths: [
|
|
677
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
678
|
+
paths: [
|
|
679
|
+
{ path: "entity.createdDate" },
|
|
680
|
+
{ path: "entity.updatedDate" },
|
|
681
|
+
{ path: "metadata.eventTime" }
|
|
682
|
+
]
|
|
629
683
|
}
|
|
630
684
|
])
|
|
631
685
|
)
|
|
@@ -636,8 +690,12 @@ var onSeatingReservationDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
636
690
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
637
691
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
638
692
|
{
|
|
639
|
-
transformFn:
|
|
640
|
-
paths: [
|
|
693
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
694
|
+
paths: [
|
|
695
|
+
{ path: "entity.createdDate" },
|
|
696
|
+
{ path: "entity.updatedDate" },
|
|
697
|
+
{ path: "metadata.eventTime" }
|
|
698
|
+
]
|
|
641
699
|
}
|
|
642
700
|
])
|
|
643
701
|
)
|
|
@@ -647,10 +705,10 @@ var onSeatingReservationDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
647
705
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
648
706
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
649
707
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
650
|
-
function
|
|
708
|
+
function customQuerySeatingReservations(httpClient) {
|
|
651
709
|
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
652
|
-
builderQueryFunction: () =>
|
|
653
|
-
typedQueryFunction: (query) =>
|
|
710
|
+
builderQueryFunction: () => querySeatingReservations3(httpClient)(),
|
|
711
|
+
typedQueryFunction: (query) => typedQuerySeatingReservations2(httpClient)(query),
|
|
654
712
|
hasOptionsParameter: false
|
|
655
713
|
});
|
|
656
714
|
function overloadedQuery(query) {
|
|
@@ -659,11 +717,13 @@ function customQuerySeatingReservation(httpClient) {
|
|
|
659
717
|
return overloadedQuery;
|
|
660
718
|
}
|
|
661
719
|
var createSeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingReservation3);
|
|
662
|
-
var
|
|
720
|
+
var getSeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingReservation3);
|
|
663
721
|
var deleteSeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingReservation3);
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
|
|
722
|
+
var getSeatingCategorySummaryByExternalId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingCategorySummaryByExternalId3);
|
|
723
|
+
var getSeatingReservationSummaryByExternalId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
724
|
+
getSeatingReservationSummaryByExternalId3
|
|
725
|
+
);
|
|
726
|
+
var querySeatingReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingReservations);
|
|
667
727
|
var onSeatingReservationCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
668
728
|
onSeatingReservationCreated
|
|
669
729
|
);
|
|
@@ -682,12 +742,12 @@ var onSeatingReservationDeleted2 = (0, import_event_definition_modules.createEve
|
|
|
682
742
|
WebhookIdentityType,
|
|
683
743
|
createSeatingReservation,
|
|
684
744
|
deleteSeatingReservation,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
745
|
+
getSeatingCategorySummaryByExternalId,
|
|
746
|
+
getSeatingReservation,
|
|
747
|
+
getSeatingReservationSummaryByExternalId,
|
|
688
748
|
onSeatingReservationCreated,
|
|
689
749
|
onSeatingReservationDeleted,
|
|
690
|
-
|
|
750
|
+
querySeatingReservations,
|
|
691
751
|
utils
|
|
692
752
|
});
|
|
693
753
|
//# sourceMappingURL=index.js.map
|