@wix/auto_sdk_seatings_seating-plan 1.0.83 → 1.0.85
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 -19
- package/build/cjs/index.js +108 -108
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +177 -177
- package/build/cjs/index.typings.js +92 -92
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +156 -156
- package/build/cjs/meta.js +79 -79
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +21 -21
- package/build/cjs/schemas.js +39 -39
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +19 -19
- package/build/es/index.mjs +108 -108
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +177 -177
- package/build/es/index.typings.mjs +92 -92
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +156 -156
- package/build/es/meta.mjs +79 -79
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +21 -21
- package/build/es/schemas.mjs +39 -39
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -19
- package/build/internal/cjs/index.js +108 -108
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +177 -177
- package/build/internal/cjs/index.typings.js +92 -92
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +156 -156
- package/build/internal/cjs/meta.js +79 -79
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +21 -21
- package/build/internal/cjs/schemas.js +39 -39
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -19
- package/build/internal/es/index.mjs +108 -108
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +177 -177
- package/build/internal/es/index.typings.mjs +92 -92
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +156 -156
- package/build/internal/es/meta.mjs +79 -79
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +21 -21
- package/build/internal/es/schemas.mjs +39 -39
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse, GetSeatingPlanOptions, FindSeatingPlanOptions, FindSeatingPlanResponse, DeleteSeatingPlanResponse,
|
|
2
|
+
import { SeatingPlanThumbnail, UpdateSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse, SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse, GetSeatingPlanOptions, FindSeatingPlanOptions, FindSeatingPlanResponse, DeleteSeatingPlanResponse, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanUpdatedEnvelope, SeatingPlanQuery, QuerySeatingPlanOptions, typedQuerySeatingPlan, PlansQueryBuilder } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddSeatingPlanToFavoritesRequest, AddSeatingPlanToFavoritesResponse, BaseEventMetadata, CapacityExceededViolation, Category, CheckSeatingPlanFavoriteRequest, CheckSeatingPlanFavoriteResponse, CommonQueryWithEntityContext, CopySeatingPlanRequest, CreateSeatingPlanRequest, CreateSeatingPlanResponse, CursorPaging, Cursors, DeleteSeatingPlanRequest, DiscardSeatingPlanVersionsRequest, DiscardSeatingPlanVersionsResponse, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Fieldset, FieldsetWithLiterals, FindSeatingPlanRequest, GetFavoriteSeatingPlansRequest, GetFavoriteSeatingPlansResponse, GetSeatingPlanRequest, GetSeatingPlanResponse, GetSeatingPlanThumbnailRequest, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Paging, PagingMetadataV2, Place, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QueryV2, QueryV2PagingMethodOneOf, RemoveSeatingPlanFromFavoritesRequest, RemoveSeatingPlanFromFavoritesResponse, ReservationOptions, RestoreInfo, RestoreSeatingPlanRequest, RestoreSeatingPlanResponse, RowElement, RowElementUiProperties, SaveSeatingPlanVersionRequest, SaveSeatingPlanVersionResponse, SeatingPlanMask, SeatingPlanQuerySpec, SeatingPlanUiProperties, Section, Sequencing, ShapeTypeEnumType, ShapeTypeEnumTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, UpdateSeatingPlanRequest, UpdateSeatingPlanResponse, UpdateSeatingPlanThumbnailRequest, VerticalSequencing, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
6
|
+
interface UpdateSeatingPlanThumbnailSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Thumbnails provide visual previews of seating layouts for selection and management interfaces.
|
|
9
|
+
* @param - Thumbnail to update with new image data.
|
|
10
|
+
*/
|
|
11
|
+
(thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`, 2>): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
12
|
+
}
|
|
13
|
+
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
14
|
+
interface GetSeatingPlanThumbnailSignature {
|
|
15
|
+
/**
|
|
16
|
+
* Returns the current thumbnail or empty response if no thumbnail has been set.
|
|
17
|
+
* @param - Seating plan ID to retrieve thumbnail for.
|
|
18
|
+
*/
|
|
19
|
+
(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
20
|
+
}
|
|
5
21
|
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
6
22
|
interface CreateSeatingPlanSignature {
|
|
7
23
|
/**
|
|
@@ -56,22 +72,6 @@ interface DeleteSeatingPlanSignature {
|
|
|
56
72
|
*/
|
|
57
73
|
(_id: string): Promise<NonNullablePaths<DeleteSeatingPlanResponse, `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>>;
|
|
58
74
|
}
|
|
59
|
-
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
60
|
-
interface UpdateSeatingPlanThumbnailSignature {
|
|
61
|
-
/**
|
|
62
|
-
* Thumbnails provide visual previews of seating layouts for selection and management interfaces.
|
|
63
|
-
* @param - Thumbnail to update with new image data.
|
|
64
|
-
*/
|
|
65
|
-
(thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`, 2>): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
66
|
-
}
|
|
67
|
-
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
68
|
-
interface GetSeatingPlanThumbnailSignature {
|
|
69
|
-
/**
|
|
70
|
-
* Returns the current thumbnail or empty response if no thumbnail has been set.
|
|
71
|
-
* @param - Seating plan ID to retrieve thumbnail for.
|
|
72
|
-
*/
|
|
73
|
-
(_id: string): Promise<GetSeatingPlanThumbnailResponse>;
|
|
74
|
-
}
|
|
75
75
|
declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
76
76
|
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
77
77
|
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
@@ -80,14 +80,14 @@ declare function customQuerySeatingPlan(httpClient: HttpClient): {
|
|
|
80
80
|
(query: SeatingPlanQuery, options?: QuerySeatingPlanOptions): ReturnType<typeof typedQuerySeatingPlan>;
|
|
81
81
|
(options?: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
82
82
|
};
|
|
83
|
+
declare const updateSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1>;
|
|
84
|
+
declare const getSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1>;
|
|
83
85
|
declare const createSeatingPlan: MaybeContext<BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1>;
|
|
84
86
|
declare const updateSeatingPlan: MaybeContext<BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1>;
|
|
85
87
|
declare const copySeatingPlan: MaybeContext<BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1>;
|
|
86
88
|
declare const getSeatingPlan: MaybeContext<BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1>;
|
|
87
89
|
declare const findSeatingPlan: MaybeContext<BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1>;
|
|
88
90
|
declare const deleteSeatingPlan: MaybeContext<BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1>;
|
|
89
|
-
declare const updateSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1>;
|
|
90
|
-
declare const getSeatingPlanThumbnail: MaybeContext<BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1>;
|
|
91
91
|
declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof customQuerySeatingPlan> & typeof customQuerySeatingPlan>;
|
|
92
92
|
/** */
|
|
93
93
|
declare const onSeatingPlanCreated: BuildEventDefinition<typeof onSeatingPlanCreated$1> & typeof onSeatingPlanCreated$1;
|
package/build/cjs/index.js
CHANGED
|
@@ -66,7 +66,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
66
66
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
67
67
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
68
68
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
69
|
-
function
|
|
69
|
+
function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
|
|
70
70
|
const domainToMappings = {
|
|
71
71
|
"manage._base_domain_": [
|
|
72
72
|
{
|
|
@@ -143,7 +143,7 @@ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
|
|
|
143
143
|
};
|
|
144
144
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
|
|
147
147
|
const domainToMappings = {
|
|
148
148
|
"manage._base_domain_": [
|
|
149
149
|
{
|
|
@@ -221,6 +221,48 @@ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
|
|
|
221
221
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
222
222
|
}
|
|
223
223
|
var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-plan";
|
|
224
|
+
function updateSeatingPlanThumbnail(payload) {
|
|
225
|
+
function __updateSeatingPlanThumbnail({ host }) {
|
|
226
|
+
const metadata = {
|
|
227
|
+
entityFqdn: "wix.seating.v1.seating_plan",
|
|
228
|
+
method: "POST",
|
|
229
|
+
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
|
|
230
|
+
packageName: PACKAGE_NAME,
|
|
231
|
+
migrationOptions: {
|
|
232
|
+
optInTransformResponse: true
|
|
233
|
+
},
|
|
234
|
+
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
235
|
+
protoPath: "/v1/plan-thumbnails",
|
|
236
|
+
data: payload,
|
|
237
|
+
host
|
|
238
|
+
}),
|
|
239
|
+
data: payload
|
|
240
|
+
};
|
|
241
|
+
return metadata;
|
|
242
|
+
}
|
|
243
|
+
return __updateSeatingPlanThumbnail;
|
|
244
|
+
}
|
|
245
|
+
function getSeatingPlanThumbnail(payload) {
|
|
246
|
+
function __getSeatingPlanThumbnail({ host }) {
|
|
247
|
+
const metadata = {
|
|
248
|
+
entityFqdn: "wix.seating.v1.seating_plan",
|
|
249
|
+
method: "GET",
|
|
250
|
+
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
|
|
251
|
+
packageName: PACKAGE_NAME,
|
|
252
|
+
migrationOptions: {
|
|
253
|
+
optInTransformResponse: true
|
|
254
|
+
},
|
|
255
|
+
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
256
|
+
protoPath: "/v1/plan-thumbnails",
|
|
257
|
+
data: payload,
|
|
258
|
+
host
|
|
259
|
+
}),
|
|
260
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
261
|
+
};
|
|
262
|
+
return metadata;
|
|
263
|
+
}
|
|
264
|
+
return __getSeatingPlanThumbnail;
|
|
265
|
+
}
|
|
224
266
|
function createSeatingPlan(payload) {
|
|
225
267
|
function __createSeatingPlan({ host }) {
|
|
226
268
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -718,48 +760,6 @@ function deleteSeatingPlan(payload) {
|
|
|
718
760
|
}
|
|
719
761
|
return __deleteSeatingPlan;
|
|
720
762
|
}
|
|
721
|
-
function updateSeatingPlanThumbnail(payload) {
|
|
722
|
-
function __updateSeatingPlanThumbnail({ host }) {
|
|
723
|
-
const metadata = {
|
|
724
|
-
entityFqdn: "wix.seating.v1.seating_plan",
|
|
725
|
-
method: "POST",
|
|
726
|
-
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
|
|
727
|
-
packageName: PACKAGE_NAME,
|
|
728
|
-
migrationOptions: {
|
|
729
|
-
optInTransformResponse: true
|
|
730
|
-
},
|
|
731
|
-
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
732
|
-
protoPath: "/v1/plan-thumbnails",
|
|
733
|
-
data: payload,
|
|
734
|
-
host
|
|
735
|
-
}),
|
|
736
|
-
data: payload
|
|
737
|
-
};
|
|
738
|
-
return metadata;
|
|
739
|
-
}
|
|
740
|
-
return __updateSeatingPlanThumbnail;
|
|
741
|
-
}
|
|
742
|
-
function getSeatingPlanThumbnail(payload) {
|
|
743
|
-
function __getSeatingPlanThumbnail({ host }) {
|
|
744
|
-
const metadata = {
|
|
745
|
-
entityFqdn: "wix.seating.v1.seating_plan",
|
|
746
|
-
method: "GET",
|
|
747
|
-
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
|
|
748
|
-
packageName: PACKAGE_NAME,
|
|
749
|
-
migrationOptions: {
|
|
750
|
-
optInTransformResponse: true
|
|
751
|
-
},
|
|
752
|
-
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
753
|
-
protoPath: "/v1/plan-thumbnails",
|
|
754
|
-
data: payload,
|
|
755
|
-
host
|
|
756
|
-
}),
|
|
757
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
758
|
-
};
|
|
759
|
-
return metadata;
|
|
760
|
-
}
|
|
761
|
-
return __getSeatingPlanThumbnail;
|
|
762
|
-
}
|
|
763
763
|
|
|
764
764
|
// src/seating-v1-seating-plan-seating-plan.universal.ts
|
|
765
765
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -844,6 +844,54 @@ var Fieldset = /* @__PURE__ */ ((Fieldset2) => {
|
|
|
844
844
|
Fieldset2["ELEMENT_GROUPS"] = "ELEMENT_GROUPS";
|
|
845
845
|
return Fieldset2;
|
|
846
846
|
})(Fieldset || {});
|
|
847
|
+
async function updateSeatingPlanThumbnail2(thumbnail) {
|
|
848
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
849
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
850
|
+
thumbnail
|
|
851
|
+
});
|
|
852
|
+
const reqOpts = updateSeatingPlanThumbnail(payload);
|
|
853
|
+
sideEffects?.onSiteCall?.();
|
|
854
|
+
try {
|
|
855
|
+
const result = await httpClient.request(reqOpts);
|
|
856
|
+
sideEffects?.onSuccess?.(result);
|
|
857
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
858
|
+
} catch (err) {
|
|
859
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
860
|
+
err,
|
|
861
|
+
{
|
|
862
|
+
spreadPathsToArguments: {},
|
|
863
|
+
explicitPathsToArguments: { thumbnail: "$[0]" },
|
|
864
|
+
singleArgumentUnchanged: false
|
|
865
|
+
},
|
|
866
|
+
["thumbnail"]
|
|
867
|
+
);
|
|
868
|
+
sideEffects?.onError?.(err);
|
|
869
|
+
throw transformedError;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
async function getSeatingPlanThumbnail2(_id) {
|
|
873
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
874
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
875
|
+
const reqOpts = getSeatingPlanThumbnail(payload);
|
|
876
|
+
sideEffects?.onSiteCall?.();
|
|
877
|
+
try {
|
|
878
|
+
const result = await httpClient.request(reqOpts);
|
|
879
|
+
sideEffects?.onSuccess?.(result);
|
|
880
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
881
|
+
} catch (err) {
|
|
882
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
883
|
+
err,
|
|
884
|
+
{
|
|
885
|
+
spreadPathsToArguments: {},
|
|
886
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
887
|
+
singleArgumentUnchanged: false
|
|
888
|
+
},
|
|
889
|
+
["_id"]
|
|
890
|
+
);
|
|
891
|
+
sideEffects?.onError?.(err);
|
|
892
|
+
throw transformedError;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
847
895
|
async function createSeatingPlan2(plan) {
|
|
848
896
|
const { httpClient, sideEffects } = arguments[1];
|
|
849
897
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ plan });
|
|
@@ -1090,56 +1138,22 @@ async function deleteSeatingPlan2(_id) {
|
|
|
1090
1138
|
throw transformedError;
|
|
1091
1139
|
}
|
|
1092
1140
|
}
|
|
1093
|
-
async function updateSeatingPlanThumbnail2(thumbnail) {
|
|
1094
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1095
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1096
|
-
thumbnail
|
|
1097
|
-
});
|
|
1098
|
-
const reqOpts = updateSeatingPlanThumbnail(payload);
|
|
1099
|
-
sideEffects?.onSiteCall?.();
|
|
1100
|
-
try {
|
|
1101
|
-
const result = await httpClient.request(reqOpts);
|
|
1102
|
-
sideEffects?.onSuccess?.(result);
|
|
1103
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1104
|
-
} catch (err) {
|
|
1105
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1106
|
-
err,
|
|
1107
|
-
{
|
|
1108
|
-
spreadPathsToArguments: {},
|
|
1109
|
-
explicitPathsToArguments: { thumbnail: "$[0]" },
|
|
1110
|
-
singleArgumentUnchanged: false
|
|
1111
|
-
},
|
|
1112
|
-
["thumbnail"]
|
|
1113
|
-
);
|
|
1114
|
-
sideEffects?.onError?.(err);
|
|
1115
|
-
throw transformedError;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
async function getSeatingPlanThumbnail2(_id) {
|
|
1119
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1120
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1121
|
-
const reqOpts = getSeatingPlanThumbnail(payload);
|
|
1122
|
-
sideEffects?.onSiteCall?.();
|
|
1123
|
-
try {
|
|
1124
|
-
const result = await httpClient.request(reqOpts);
|
|
1125
|
-
sideEffects?.onSuccess?.(result);
|
|
1126
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1127
|
-
} catch (err) {
|
|
1128
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1129
|
-
err,
|
|
1130
|
-
{
|
|
1131
|
-
spreadPathsToArguments: {},
|
|
1132
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1133
|
-
singleArgumentUnchanged: false
|
|
1134
|
-
},
|
|
1135
|
-
["_id"]
|
|
1136
|
-
);
|
|
1137
|
-
sideEffects?.onError?.(err);
|
|
1138
|
-
throw transformedError;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
1141
|
|
|
1142
1142
|
// src/seating-v1-seating-plan-seating-plan.public.ts
|
|
1143
|
+
function updateSeatingPlanThumbnail3(httpClient) {
|
|
1144
|
+
return (thumbnail) => updateSeatingPlanThumbnail2(
|
|
1145
|
+
thumbnail,
|
|
1146
|
+
// @ts-ignore
|
|
1147
|
+
{ httpClient }
|
|
1148
|
+
);
|
|
1149
|
+
}
|
|
1150
|
+
function getSeatingPlanThumbnail3(httpClient) {
|
|
1151
|
+
return (_id) => getSeatingPlanThumbnail2(
|
|
1152
|
+
_id,
|
|
1153
|
+
// @ts-ignore
|
|
1154
|
+
{ httpClient }
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1143
1157
|
function createSeatingPlan3(httpClient) {
|
|
1144
1158
|
return (plan) => createSeatingPlan2(
|
|
1145
1159
|
plan,
|
|
@@ -1200,20 +1214,6 @@ function deleteSeatingPlan3(httpClient) {
|
|
|
1200
1214
|
{ httpClient }
|
|
1201
1215
|
);
|
|
1202
1216
|
}
|
|
1203
|
-
function updateSeatingPlanThumbnail3(httpClient) {
|
|
1204
|
-
return (thumbnail) => updateSeatingPlanThumbnail2(
|
|
1205
|
-
thumbnail,
|
|
1206
|
-
// @ts-ignore
|
|
1207
|
-
{ httpClient }
|
|
1208
|
-
);
|
|
1209
|
-
}
|
|
1210
|
-
function getSeatingPlanThumbnail3(httpClient) {
|
|
1211
|
-
return (_id) => getSeatingPlanThumbnail2(
|
|
1212
|
-
_id,
|
|
1213
|
-
// @ts-ignore
|
|
1214
|
-
{ httpClient }
|
|
1215
|
-
);
|
|
1216
|
-
}
|
|
1217
1217
|
var onSeatingPlanCreated = (0, import_sdk_types.EventDefinition)(
|
|
1218
1218
|
"wix.seating.v1.seating_plan_created",
|
|
1219
1219
|
true,
|
|
@@ -1377,14 +1377,14 @@ function customQuerySeatingPlan(httpClient) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
return overloadedQuery;
|
|
1379
1379
|
}
|
|
1380
|
+
var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
|
|
1381
|
+
var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
|
|
1380
1382
|
var createSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingPlan3);
|
|
1381
1383
|
var updateSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlan3);
|
|
1382
1384
|
var copySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copySeatingPlan3);
|
|
1383
1385
|
var getSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlan3);
|
|
1384
1386
|
var findSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(findSeatingPlan3);
|
|
1385
1387
|
var deleteSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingPlan3);
|
|
1386
|
-
var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
|
|
1387
|
-
var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
|
|
1388
1388
|
var querySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingPlan);
|
|
1389
1389
|
var onSeatingPlanCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1390
1390
|
onSeatingPlanCreated
|