@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
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 { SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse,
|
|
3
|
-
export { ActionEvent, BaseEventMetadata, CapacityExceededViolation, Category, CopySeatingPlanRequest, CreateSeatingPlanRequest, CreateSeatingPlanResponse, CursorPaging, Cursors, DeleteSeatingPlanRequest, DiscardSeatingPlanVersionsRequest, DiscardSeatingPlanVersionsResponse, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Fieldset, FieldsetWithLiterals, FindSeatingPlanRequest, GetSeatingPlanRequest, GetSeatingPlanResponse, GetSeatingPlanThumbnailRequest, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Paging, PagingMetadataV2, Place, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse,
|
|
2
|
+
import { SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse, GetSeatingPlanOptions, FindSeatingPlanOptions, FindSeatingPlanResponse, DeleteSeatingPlanResponse, SeatingPlanThumbnail, UpdateSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanUpdatedEnvelope, QueryV2, typedQuerySeatingPlan, QuerySeatingPlanOptions, PlansQueryBuilder } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, BaseEventMetadata, CapacityExceededViolation, Category, CopySeatingPlanRequest, CreateSeatingPlanRequest, CreateSeatingPlanResponse, CursorPaging, Cursors, DeleteSeatingPlanRequest, DiscardSeatingPlanVersionsRequest, DiscardSeatingPlanVersionsResponse, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Fieldset, FieldsetWithLiterals, FindSeatingPlanRequest, GetSeatingPlanRequest, GetSeatingPlanResponse, GetSeatingPlanThumbnailRequest, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Paging, PagingMetadataV2, Place, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QueryV2PagingMethodOneOf, ReservationOptions, RestoreInfo, RestoreSeatingPlanRequest, RestoreSeatingPlanResponse, RowElement, RowElementUiProperties, SaveSeatingPlanVersionRequest, SaveSeatingPlanVersionResponse, SeatingPlanMask, SeatingPlanUiProperties, Section, Sequencing, ShapeTypeEnumType, ShapeTypeEnumTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, UpdateSeatingPlanRequest, UpdateSeatingPlanResponse, UpdateSeatingPlanThumbnailRequest, VerticalSequencing, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
6
6
|
interface CreateSeatingPlanSignature {
|
|
@@ -31,13 +31,6 @@ interface CopySeatingPlanSignature {
|
|
|
31
31
|
*/
|
|
32
32
|
(_id: string, options: NonNullablePaths<CopySeatingPlanOptions, `externalId` | `title`, 2>): Promise<NonNullablePaths<CopySeatingPlanResponse, `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`, 5>>;
|
|
33
33
|
}
|
|
34
|
-
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
35
|
-
interface QuerySeatingPlanSignature {
|
|
36
|
-
/**
|
|
37
|
-
* Retrieves multiple seating plans based on filter criteria. Supports fieldset projections to control response size and improve performance.
|
|
38
|
-
*/
|
|
39
|
-
(options?: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
40
|
-
}
|
|
41
34
|
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
42
35
|
interface GetSeatingPlanSignature {
|
|
43
36
|
/**
|
|
@@ -83,15 +76,21 @@ declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope
|
|
|
83
76
|
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
84
77
|
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
85
78
|
|
|
79
|
+
declare function customQuerySeatingPlan(httpClient: HttpClient): {
|
|
80
|
+
(query: QueryV2): ReturnType<typeof typedQuerySeatingPlan>;
|
|
81
|
+
(query: QueryV2, options: QuerySeatingPlanOptions): ReturnType<typeof typedQuerySeatingPlan>;
|
|
82
|
+
(): PlansQueryBuilder;
|
|
83
|
+
(options: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
84
|
+
};
|
|
86
85
|
declare const createSeatingPlan: MaybeContext<BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1>;
|
|
87
86
|
declare const updateSeatingPlan: MaybeContext<BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1>;
|
|
88
87
|
declare const copySeatingPlan: MaybeContext<BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1>;
|
|
89
|
-
declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1>;
|
|
90
88
|
declare const getSeatingPlan: MaybeContext<BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1>;
|
|
91
89
|
declare const findSeatingPlan: MaybeContext<BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1>;
|
|
92
90
|
declare const deleteSeatingPlan: MaybeContext<BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1>;
|
|
93
91
|
declare const updateSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1>;
|
|
94
92
|
declare const getSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1>;
|
|
93
|
+
declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof customQuerySeatingPlan> & typeof customQuerySeatingPlan>;
|
|
95
94
|
/** */
|
|
96
95
|
declare const onSeatingPlanCreated: BuildEventDefinition<typeof onSeatingPlanCreated$1> & typeof onSeatingPlanCreated$1;
|
|
97
96
|
/** */
|
|
@@ -99,4 +98,4 @@ declare const onSeatingPlanDeleted: BuildEventDefinition<typeof onSeatingPlanDel
|
|
|
99
98
|
/** */
|
|
100
99
|
declare const onSeatingPlanUpdated: BuildEventDefinition<typeof onSeatingPlanUpdated$1> & typeof onSeatingPlanUpdated$1;
|
|
101
100
|
|
|
102
|
-
export { CopySeatingPlanOptions, CopySeatingPlanResponse, CreateSeatingPlanApplicationErrors, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlanOptions, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };
|
|
101
|
+
export { CopySeatingPlanOptions, CopySeatingPlanResponse, CreateSeatingPlanApplicationErrors, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlanOptions, QueryV2, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };
|
package/build/cjs/index.js
CHANGED
|
@@ -957,6 +957,32 @@ function querySeatingPlan2(options) {
|
|
|
957
957
|
transformationPaths: {}
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
|
+
async function typedQuerySeatingPlan(query, options) {
|
|
961
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
962
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
963
|
+
query,
|
|
964
|
+
...options
|
|
965
|
+
});
|
|
966
|
+
const reqOpts = querySeatingPlan(payload);
|
|
967
|
+
sideEffects?.onSiteCall?.();
|
|
968
|
+
try {
|
|
969
|
+
const result = await httpClient.request(reqOpts);
|
|
970
|
+
sideEffects?.onSuccess?.(result);
|
|
971
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
972
|
+
} catch (err) {
|
|
973
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
974
|
+
err,
|
|
975
|
+
{
|
|
976
|
+
spreadPathsToArguments: {},
|
|
977
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
978
|
+
singleArgumentUnchanged: false
|
|
979
|
+
},
|
|
980
|
+
["query", "options"]
|
|
981
|
+
);
|
|
982
|
+
sideEffects?.onError?.(err);
|
|
983
|
+
throw transformedError;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
960
986
|
async function getSeatingPlan2(_id, options) {
|
|
961
987
|
const { httpClient, sideEffects } = arguments[2];
|
|
962
988
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1125,6 +1151,14 @@ function querySeatingPlan3(httpClient) {
|
|
|
1125
1151
|
{ httpClient }
|
|
1126
1152
|
);
|
|
1127
1153
|
}
|
|
1154
|
+
function typedQuerySeatingPlan2(httpClient) {
|
|
1155
|
+
return (query, options) => typedQuerySeatingPlan(
|
|
1156
|
+
query,
|
|
1157
|
+
options,
|
|
1158
|
+
// @ts-ignore
|
|
1159
|
+
{ httpClient }
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1128
1162
|
function getSeatingPlan3(httpClient) {
|
|
1129
1163
|
return (_id, options) => getSeatingPlan2(
|
|
1130
1164
|
_id,
|
|
@@ -1313,15 +1347,27 @@ var onSeatingPlanUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1313
1347
|
// src/seating-v1-seating-plan-seating-plan.context.ts
|
|
1314
1348
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1315
1349
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1350
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1351
|
+
function customQuerySeatingPlan(httpClient) {
|
|
1352
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1353
|
+
builderQueryFunction: (options) => querySeatingPlan3(httpClient)(options),
|
|
1354
|
+
typedQueryFunction: (query, options) => typedQuerySeatingPlan2(httpClient)(query, options),
|
|
1355
|
+
hasOptionsParameter: true
|
|
1356
|
+
});
|
|
1357
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
1358
|
+
return router(...arguments);
|
|
1359
|
+
}
|
|
1360
|
+
return overloadedQuery;
|
|
1361
|
+
}
|
|
1316
1362
|
var createSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingPlan3);
|
|
1317
1363
|
var updateSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlan3);
|
|
1318
1364
|
var copySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copySeatingPlan3);
|
|
1319
|
-
var querySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySeatingPlan3);
|
|
1320
1365
|
var getSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlan3);
|
|
1321
1366
|
var findSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(findSeatingPlan3);
|
|
1322
1367
|
var deleteSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingPlan3);
|
|
1323
1368
|
var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
|
|
1324
1369
|
var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
|
|
1370
|
+
var querySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingPlan);
|
|
1325
1371
|
var onSeatingPlanCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1326
1372
|
onSeatingPlanCreated
|
|
1327
1373
|
);
|