@wix/auto_sdk_seatings_seating-plan 1.0.86 → 1.0.88

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +20 -20
  2. package/build/cjs/index.js +119 -110
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +195 -179
  5. package/build/cjs/index.typings.js +103 -94
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +168 -157
  8. package/build/cjs/meta.js +90 -81
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +25 -21
  11. package/build/cjs/schemas.js +46 -40
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +20 -20
  14. package/build/es/index.mjs +119 -110
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +195 -179
  17. package/build/es/index.typings.mjs +103 -94
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +168 -157
  20. package/build/es/meta.mjs +90 -81
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +25 -21
  23. package/build/es/schemas.mjs +46 -40
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +20 -20
  26. package/build/internal/cjs/index.js +119 -110
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +195 -179
  29. package/build/internal/cjs/index.typings.js +103 -94
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +168 -157
  32. package/build/internal/cjs/meta.js +90 -81
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +25 -21
  35. package/build/internal/cjs/schemas.js +46 -40
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +20 -20
  38. package/build/internal/es/index.mjs +119 -110
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +195 -179
  41. package/build/internal/es/index.typings.mjs +103 -94
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +168 -157
  44. package/build/internal/es/meta.mjs +90 -81
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +25 -21
  47. package/build/internal/es/schemas.mjs +46 -40
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -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, SeatingPlanThumbnail, UpdateSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanUpdatedEnvelope, SeatingPlanQuery, QuerySeatingPlansOptions, typedQuerySeatingPlans, PlansQueryBuilder } from './index.typings.js';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, AddSeatingPlanToFavoritesRequest, AddSeatingPlanToFavoritesResponse, BaseEventMetadata, CapacityExceededViolation, Category, CheckSeatingPlanFavoriteRequest, CheckSeatingPlanFavoriteResponse, CommonCursors, CommonPagingMetadataV2, 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, PlaceFilter, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QuerySeatingPlansRequest, QuerySeatingPlansResponse, 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';
2
+ import { SeatingPlanThumbnail, UpdateSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse, SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse, GetSeatingPlanOptions, FindSeatingPlanOptions, FindSeatingPlanResponse, DeleteSeatingPlanResponse, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanUpdatedEnvelope, SeatingPlanQuery, QuerySeatingPlansOptions, typedQuerySeatingPlans, PlansQueryBuilder } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, AddSeatingPlanToFavoritesRequest, AddSeatingPlanToFavoritesResponse, AddressLocation, BaseEventMetadata, CapacityExceededViolation, Category, CheckSeatingPlanFavoriteRequest, CheckSeatingPlanFavoriteResponse, CommonCursors, CommonPagingMetadataV2, 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, PlaceFilter, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QuerySeatingPlansRequest, QuerySeatingPlansResponse, 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 customQuerySeatingPlans(httpClient: HttpClient): {
80
80
  (query: SeatingPlanQuery, options?: QuerySeatingPlansOptions): ReturnType<typeof typedQuerySeatingPlans>;
81
81
  (options?: QuerySeatingPlansOptions): 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 querySeatingPlans: MaybeContext<BuildRESTFunction<typeof customQuerySeatingPlans> & typeof customQuerySeatingPlans>;
92
92
  /** */
93
93
  declare const onSeatingPlanCreated: BuildEventDefinition<typeof onSeatingPlanCreated$1> & typeof onSeatingPlanCreated$1;
@@ -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 resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
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 resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
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, [
@@ -477,6 +519,15 @@ function copySeatingPlan(payload) {
477
519
  }
478
520
  function querySeatingPlans(payload) {
479
521
  function __querySeatingPlans({ host }) {
522
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
523
+ {
524
+ transformFn: import_float.transformSDKFloatToRESTFloat,
525
+ paths: [
526
+ { path: "query.sort.origin.latitude" },
527
+ { path: "query.sort.origin.longitude" }
528
+ ]
529
+ }
530
+ ]);
480
531
  const metadata = {
481
532
  entityFqdn: "wix.seating.v1.seating_plan",
482
533
  method: "POST",
@@ -487,10 +538,10 @@ function querySeatingPlans(payload) {
487
538
  },
488
539
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
489
540
  protoPath: "/v1/plans/query",
490
- data: payload,
541
+ data: serializedData,
491
542
  host
492
543
  }),
493
- data: payload,
544
+ data: serializedData,
494
545
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
495
546
  {
496
547
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -718,48 +769,6 @@ function deleteSeatingPlan(payload) {
718
769
  }
719
770
  return __deleteSeatingPlan;
720
771
  }
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
772
 
764
773
  // src/seating-v1-seating-plan-seating-plan.universal.ts
765
774
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
@@ -844,6 +853,54 @@ var Fieldset = /* @__PURE__ */ ((Fieldset2) => {
844
853
  Fieldset2["ELEMENT_GROUPS"] = "ELEMENT_GROUPS";
845
854
  return Fieldset2;
846
855
  })(Fieldset || {});
856
+ async function updateSeatingPlanThumbnail2(thumbnail) {
857
+ const { httpClient, sideEffects } = arguments[1];
858
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
859
+ thumbnail
860
+ });
861
+ const reqOpts = updateSeatingPlanThumbnail(payload);
862
+ sideEffects?.onSiteCall?.();
863
+ try {
864
+ const result = await httpClient.request(reqOpts);
865
+ sideEffects?.onSuccess?.(result);
866
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
867
+ } catch (err) {
868
+ const transformedError = (0, import_transform_error.transformError)(
869
+ err,
870
+ {
871
+ spreadPathsToArguments: {},
872
+ explicitPathsToArguments: { thumbnail: "$[0]" },
873
+ singleArgumentUnchanged: false
874
+ },
875
+ ["thumbnail"]
876
+ );
877
+ sideEffects?.onError?.(err);
878
+ throw transformedError;
879
+ }
880
+ }
881
+ async function getSeatingPlanThumbnail2(_id) {
882
+ const { httpClient, sideEffects } = arguments[1];
883
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
884
+ const reqOpts = getSeatingPlanThumbnail(payload);
885
+ sideEffects?.onSiteCall?.();
886
+ try {
887
+ const result = await httpClient.request(reqOpts);
888
+ sideEffects?.onSuccess?.(result);
889
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
890
+ } catch (err) {
891
+ const transformedError = (0, import_transform_error.transformError)(
892
+ err,
893
+ {
894
+ spreadPathsToArguments: {},
895
+ explicitPathsToArguments: { id: "$[0]" },
896
+ singleArgumentUnchanged: false
897
+ },
898
+ ["_id"]
899
+ );
900
+ sideEffects?.onError?.(err);
901
+ throw transformedError;
902
+ }
903
+ }
847
904
  async function createSeatingPlan2(plan) {
848
905
  const { httpClient, sideEffects } = arguments[1];
849
906
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ plan });
@@ -1092,56 +1149,22 @@ async function deleteSeatingPlan2(_id) {
1092
1149
  throw transformedError;
1093
1150
  }
1094
1151
  }
1095
- async function updateSeatingPlanThumbnail2(thumbnail) {
1096
- const { httpClient, sideEffects } = arguments[1];
1097
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1098
- thumbnail
1099
- });
1100
- const reqOpts = updateSeatingPlanThumbnail(payload);
1101
- sideEffects?.onSiteCall?.();
1102
- try {
1103
- const result = await httpClient.request(reqOpts);
1104
- sideEffects?.onSuccess?.(result);
1105
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1106
- } catch (err) {
1107
- const transformedError = (0, import_transform_error.transformError)(
1108
- err,
1109
- {
1110
- spreadPathsToArguments: {},
1111
- explicitPathsToArguments: { thumbnail: "$[0]" },
1112
- singleArgumentUnchanged: false
1113
- },
1114
- ["thumbnail"]
1115
- );
1116
- sideEffects?.onError?.(err);
1117
- throw transformedError;
1118
- }
1119
- }
1120
- async function getSeatingPlanThumbnail2(_id) {
1121
- const { httpClient, sideEffects } = arguments[1];
1122
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
1123
- const reqOpts = getSeatingPlanThumbnail(payload);
1124
- sideEffects?.onSiteCall?.();
1125
- try {
1126
- const result = await httpClient.request(reqOpts);
1127
- sideEffects?.onSuccess?.(result);
1128
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1129
- } catch (err) {
1130
- const transformedError = (0, import_transform_error.transformError)(
1131
- err,
1132
- {
1133
- spreadPathsToArguments: {},
1134
- explicitPathsToArguments: { id: "$[0]" },
1135
- singleArgumentUnchanged: false
1136
- },
1137
- ["_id"]
1138
- );
1139
- sideEffects?.onError?.(err);
1140
- throw transformedError;
1141
- }
1142
- }
1143
1152
 
1144
1153
  // src/seating-v1-seating-plan-seating-plan.public.ts
1154
+ function updateSeatingPlanThumbnail3(httpClient) {
1155
+ return (thumbnail) => updateSeatingPlanThumbnail2(
1156
+ thumbnail,
1157
+ // @ts-ignore
1158
+ { httpClient }
1159
+ );
1160
+ }
1161
+ function getSeatingPlanThumbnail3(httpClient) {
1162
+ return (_id) => getSeatingPlanThumbnail2(
1163
+ _id,
1164
+ // @ts-ignore
1165
+ { httpClient }
1166
+ );
1167
+ }
1145
1168
  function createSeatingPlan3(httpClient) {
1146
1169
  return (plan) => createSeatingPlan2(
1147
1170
  plan,
@@ -1202,20 +1225,6 @@ function deleteSeatingPlan3(httpClient) {
1202
1225
  { httpClient }
1203
1226
  );
1204
1227
  }
1205
- function updateSeatingPlanThumbnail3(httpClient) {
1206
- return (thumbnail) => updateSeatingPlanThumbnail2(
1207
- thumbnail,
1208
- // @ts-ignore
1209
- { httpClient }
1210
- );
1211
- }
1212
- function getSeatingPlanThumbnail3(httpClient) {
1213
- return (_id) => getSeatingPlanThumbnail2(
1214
- _id,
1215
- // @ts-ignore
1216
- { httpClient }
1217
- );
1218
- }
1219
1228
  var onSeatingPlanCreated = (0, import_sdk_types.EventDefinition)(
1220
1229
  "wix.seating.v1.seating_plan_created",
1221
1230
  true,
@@ -1379,14 +1388,14 @@ function customQuerySeatingPlans(httpClient) {
1379
1388
  }
1380
1389
  return overloadedQuery;
1381
1390
  }
1391
+ var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
1392
+ var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
1382
1393
  var createSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingPlan3);
1383
1394
  var updateSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlan3);
1384
1395
  var copySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copySeatingPlan3);
1385
1396
  var getSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlan3);
1386
1397
  var findSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(findSeatingPlan3);
1387
1398
  var deleteSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingPlan3);
1388
- var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
1389
- var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
1390
1399
  var querySeatingPlans4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingPlans);
1391
1400
  var onSeatingPlanCreated2 = (0, import_event_definition_modules.createEventModule)(
1392
1401
  onSeatingPlanCreated