@wix/auto_sdk_seatings_seating-plan 1.0.85 → 1.0.86

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 +26 -26
  2. package/build/cjs/index.js +134 -132
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +302 -189
  5. package/build/cjs/index.typings.js +112 -110
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +205 -158
  8. package/build/cjs/meta.js +86 -86
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +38 -46
  11. package/build/cjs/schemas.js +69 -105
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +26 -26
  14. package/build/es/index.mjs +133 -131
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +302 -189
  17. package/build/es/index.typings.mjs +110 -108
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +205 -158
  20. package/build/es/meta.mjs +85 -85
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +38 -46
  23. package/build/es/schemas.mjs +67 -103
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +26 -26
  26. package/build/internal/cjs/index.js +134 -132
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +302 -189
  29. package/build/internal/cjs/index.typings.js +112 -110
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +205 -158
  32. package/build/internal/cjs/meta.js +86 -86
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +38 -46
  35. package/build/internal/cjs/schemas.js +69 -105
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +26 -26
  38. package/build/internal/es/index.mjs +133 -131
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +302 -189
  41. package/build/internal/es/index.typings.mjs +110 -108
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +205 -158
  44. package/build/internal/es/meta.mjs +85 -85
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +38 -46
  47. package/build/internal/es/schemas.mjs +67 -103
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,23 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
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
- 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';
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';
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
- }
21
5
  declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
22
6
  interface CreateSeatingPlanSignature {
23
7
  /**
@@ -50,7 +34,7 @@ interface CopySeatingPlanSignature {
50
34
  declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
51
35
  interface GetSeatingPlanSignature {
52
36
  /**
53
- * Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
37
+ * Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via PlaceFilter for targeted queries.
54
38
  * @param - Seating plan ID to retrieve.
55
39
  * @returns Retrieved seating plan with requested fieldsets and filtered places.
56
40
  */
@@ -72,23 +56,39 @@ interface DeleteSeatingPlanSignature {
72
56
  */
73
57
  (_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>>;
74
58
  }
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">;
78
78
 
79
- declare function customQuerySeatingPlan(httpClient: HttpClient): {
80
- (query: SeatingPlanQuery, options?: QuerySeatingPlanOptions): ReturnType<typeof typedQuerySeatingPlan>;
81
- (options?: QuerySeatingPlanOptions): PlansQueryBuilder;
79
+ declare function customQuerySeatingPlans(httpClient: HttpClient): {
80
+ (query: SeatingPlanQuery, options?: QuerySeatingPlansOptions): ReturnType<typeof typedQuerySeatingPlans>;
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>;
85
83
  declare const createSeatingPlan: MaybeContext<BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1>;
86
84
  declare const updateSeatingPlan: MaybeContext<BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1>;
87
85
  declare const copySeatingPlan: MaybeContext<BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1>;
88
86
  declare const getSeatingPlan: MaybeContext<BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1>;
89
87
  declare const findSeatingPlan: MaybeContext<BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1>;
90
88
  declare const deleteSeatingPlan: MaybeContext<BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1>;
91
- declare const querySeatingPlan: MaybeContext<BuildRESTFunction<typeof customQuerySeatingPlan> & typeof customQuerySeatingPlan>;
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
+ declare const querySeatingPlans: MaybeContext<BuildRESTFunction<typeof customQuerySeatingPlans> & typeof customQuerySeatingPlans>;
92
92
  /** */
93
93
  declare const onSeatingPlanCreated: BuildEventDefinition<typeof onSeatingPlanCreated$1> & typeof onSeatingPlanCreated$1;
94
94
  /** */
@@ -96,4 +96,4 @@ declare const onSeatingPlanDeleted: BuildEventDefinition<typeof onSeatingPlanDel
96
96
  /** */
97
97
  declare const onSeatingPlanUpdated: BuildEventDefinition<typeof onSeatingPlanUpdated$1> & typeof onSeatingPlanUpdated$1;
98
98
 
99
- export { CopySeatingPlanOptions, CopySeatingPlanResponse, CreateSeatingPlanApplicationErrors, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlanOptions, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanQuery, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };
99
+ export { CopySeatingPlanOptions, CopySeatingPlanResponse, CreateSeatingPlanApplicationErrors, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlansOptions, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanQuery, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlans, updateSeatingPlan, updateSeatingPlanThumbnail };
@@ -38,7 +38,7 @@ __export(index_exports, {
38
38
  onSeatingPlanCreated: () => onSeatingPlanCreated2,
39
39
  onSeatingPlanDeleted: () => onSeatingPlanDeleted2,
40
40
  onSeatingPlanUpdated: () => onSeatingPlanUpdated2,
41
- querySeatingPlan: () => querySeatingPlan4,
41
+ querySeatingPlans: () => querySeatingPlans4,
42
42
  updateSeatingPlan: () => updateSeatingPlan4,
43
43
  updateSeatingPlanThumbnail: () => updateSeatingPlanThumbnail4,
44
44
  utils: () => utils
@@ -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 resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
69
+ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
70
70
  const domainToMappings = {
71
71
  "manage._base_domain_": [
72
72
  {
@@ -143,7 +143,7 @@ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
143
143
  };
144
144
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
145
145
  }
146
- function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
146
+ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
147
147
  const domainToMappings = {
148
148
  "manage._base_domain_": [
149
149
  {
@@ -221,48 +221,6 @@ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(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
- }
266
224
  function createSeatingPlan(payload) {
267
225
  function __createSeatingPlan({ host }) {
268
226
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -401,7 +359,7 @@ function updateSeatingPlan(payload) {
401
359
  ]);
402
360
  const metadata = {
403
361
  entityFqdn: "wix.seating.v1.seating_plan",
404
- method: "PUT",
362
+ method: "PATCH",
405
363
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
406
364
  packageName: PACKAGE_NAME,
407
365
  migrationOptions: {
@@ -517,12 +475,12 @@ function copySeatingPlan(payload) {
517
475
  }
518
476
  return __copySeatingPlan;
519
477
  }
520
- function querySeatingPlan(payload) {
521
- function __querySeatingPlan({ host }) {
478
+ function querySeatingPlans(payload) {
479
+ function __querySeatingPlans({ host }) {
522
480
  const metadata = {
523
481
  entityFqdn: "wix.seating.v1.seating_plan",
524
482
  method: "POST",
525
- methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
483
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlans",
526
484
  packageName: PACKAGE_NAME,
527
485
  migrationOptions: {
528
486
  optInTransformResponse: true
@@ -578,7 +536,7 @@ function querySeatingPlan(payload) {
578
536
  };
579
537
  return metadata;
580
538
  }
581
- return __querySeatingPlan;
539
+ return __querySeatingPlans;
582
540
  }
583
541
  function getSeatingPlan(payload) {
584
542
  function __getSeatingPlan({ host }) {
@@ -760,6 +718,48 @@ function deleteSeatingPlan(payload) {
760
718
  }
761
719
  return __deleteSeatingPlan;
762
720
  }
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,54 +844,6 @@ 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
- }
895
847
  async function createSeatingPlan2(plan) {
896
848
  const { httpClient, sideEffects } = arguments[1];
897
849
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ plan });
@@ -972,11 +924,11 @@ async function copySeatingPlan2(_id, options) {
972
924
  throw transformedError;
973
925
  }
974
926
  }
975
- function querySeatingPlan2(options) {
927
+ function querySeatingPlans2(options) {
976
928
  const { httpClient, sideEffects } = arguments[1];
977
929
  return (0, import_query_builder.queryBuilder)({
978
930
  func: async (payload) => {
979
- const reqOpts = querySeatingPlan({
931
+ const reqOpts = querySeatingPlans({
980
932
  ...payload,
981
933
  ...options ?? {}
982
934
  });
@@ -997,7 +949,9 @@ function querySeatingPlan2(options) {
997
949
  query: args?.[0]
998
950
  });
999
951
  },
1000
- responseTransformer: ({ data }) => {
952
+ responseTransformer: ({
953
+ data
954
+ }) => {
1001
955
  const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1002
956
  (0, import_transform_paths2.transformPaths)(data, [])
1003
957
  );
@@ -1018,13 +972,13 @@ function querySeatingPlan2(options) {
1018
972
  transformationPaths: {}
1019
973
  });
1020
974
  }
1021
- async function typedQuerySeatingPlan(query, options) {
975
+ async function typedQuerySeatingPlans(query, options) {
1022
976
  const { httpClient, sideEffects } = arguments[2];
1023
977
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1024
978
  query,
1025
979
  ...options
1026
980
  });
1027
- const reqOpts = querySeatingPlan(payload);
981
+ const reqOpts = querySeatingPlans(payload);
1028
982
  sideEffects?.onSiteCall?.();
1029
983
  try {
1030
984
  const result = await httpClient.request(reqOpts);
@@ -1055,7 +1009,7 @@ async function getSeatingPlan2(_id, options) {
1055
1009
  id: _id,
1056
1010
  fieldset: options?.fieldset,
1057
1011
  fieldsets: options?.fieldsets,
1058
- seatingPlanMask: options?.seatingPlanMask
1012
+ placeFilter: options?.placeFilter
1059
1013
  });
1060
1014
  const reqOpts = getSeatingPlan(payload);
1061
1015
  sideEffects?.onSiteCall?.();
@@ -1072,7 +1026,7 @@ async function getSeatingPlan2(_id, options) {
1072
1026
  id: "$[0]",
1073
1027
  fieldset: "$[1].fieldset",
1074
1028
  fieldsets: "$[1].fieldsets",
1075
- seatingPlanMask: "$[1].seatingPlanMask"
1029
+ placeFilter: "$[1].placeFilter"
1076
1030
  },
1077
1031
  singleArgumentUnchanged: false
1078
1032
  },
@@ -1088,7 +1042,7 @@ async function findSeatingPlan2(filter, options) {
1088
1042
  filter,
1089
1043
  fieldset: options?.fieldset,
1090
1044
  fieldsets: options?.fieldsets,
1091
- seatingPlanMask: options?.seatingPlanMask
1045
+ placeFilter: options?.placeFilter
1092
1046
  });
1093
1047
  const reqOpts = findSeatingPlan(payload);
1094
1048
  sideEffects?.onSiteCall?.();
@@ -1105,7 +1059,7 @@ async function findSeatingPlan2(filter, options) {
1105
1059
  filter: "$[0]",
1106
1060
  fieldset: "$[1].fieldset",
1107
1061
  fieldsets: "$[1].fieldsets",
1108
- seatingPlanMask: "$[1].seatingPlanMask"
1062
+ placeFilter: "$[1].placeFilter"
1109
1063
  },
1110
1064
  singleArgumentUnchanged: false
1111
1065
  },
@@ -1138,22 +1092,56 @@ async function deleteSeatingPlan2(_id) {
1138
1092
  throw transformedError;
1139
1093
  }
1140
1094
  }
1141
-
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
- );
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
+ }
1149
1119
  }
1150
- function getSeatingPlanThumbnail3(httpClient) {
1151
- return (_id) => getSeatingPlanThumbnail2(
1152
- _id,
1153
- // @ts-ignore
1154
- { httpClient }
1155
- );
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
+ }
1156
1142
  }
1143
+
1144
+ // src/seating-v1-seating-plan-seating-plan.public.ts
1157
1145
  function createSeatingPlan3(httpClient) {
1158
1146
  return (plan) => createSeatingPlan2(
1159
1147
  plan,
@@ -1176,15 +1164,15 @@ function copySeatingPlan3(httpClient) {
1176
1164
  { httpClient }
1177
1165
  );
1178
1166
  }
1179
- function querySeatingPlan3(httpClient) {
1180
- return (options) => querySeatingPlan2(
1167
+ function querySeatingPlans3(httpClient) {
1168
+ return (options) => querySeatingPlans2(
1181
1169
  options,
1182
1170
  // @ts-ignore
1183
1171
  { httpClient }
1184
1172
  );
1185
1173
  }
1186
- function typedQuerySeatingPlan2(httpClient) {
1187
- return (query, options) => typedQuerySeatingPlan(
1174
+ function typedQuerySeatingPlans2(httpClient) {
1175
+ return (query, options) => typedQuerySeatingPlans(
1188
1176
  query,
1189
1177
  options,
1190
1178
  // @ts-ignore
@@ -1214,6 +1202,20 @@ function deleteSeatingPlan3(httpClient) {
1214
1202
  { httpClient }
1215
1203
  );
1216
1204
  }
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
+ }
1217
1219
  var onSeatingPlanCreated = (0, import_sdk_types.EventDefinition)(
1218
1220
  "wix.seating.v1.seating_plan_created",
1219
1221
  true,
@@ -1366,10 +1368,10 @@ var onSeatingPlanUpdated = (0, import_sdk_types.EventDefinition)(
1366
1368
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1367
1369
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1368
1370
  var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1369
- function customQuerySeatingPlan(httpClient) {
1371
+ function customQuerySeatingPlans(httpClient) {
1370
1372
  const router = (0, import_query_method_router.createQueryOverloadRouter)({
1371
- builderQueryFunction: (options) => querySeatingPlan3(httpClient)(options),
1372
- typedQueryFunction: (query, options) => typedQuerySeatingPlan2(httpClient)(query, options),
1373
+ builderQueryFunction: (options) => querySeatingPlans3(httpClient)(options),
1374
+ typedQueryFunction: (query, options) => typedQuerySeatingPlans2(httpClient)(query, options),
1373
1375
  hasOptionsParameter: true
1374
1376
  });
1375
1377
  function overloadedQuery(queryOrOptions, options) {
@@ -1377,15 +1379,15 @@ function customQuerySeatingPlan(httpClient) {
1377
1379
  }
1378
1380
  return overloadedQuery;
1379
1381
  }
1380
- var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
1381
- var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
1382
1382
  var createSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingPlan3);
1383
1383
  var updateSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlan3);
1384
1384
  var copySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copySeatingPlan3);
1385
1385
  var getSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlan3);
1386
1386
  var findSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(findSeatingPlan3);
1387
1387
  var deleteSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingPlan3);
1388
- var querySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingPlan);
1388
+ var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
1389
+ var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
1390
+ var querySeatingPlans4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQuerySeatingPlans);
1389
1391
  var onSeatingPlanCreated2 = (0, import_event_definition_modules.createEventModule)(
1390
1392
  onSeatingPlanCreated
1391
1393
  );
@@ -1415,7 +1417,7 @@ var onSeatingPlanUpdated2 = (0, import_event_definition_modules.createEventModul
1415
1417
  onSeatingPlanCreated,
1416
1418
  onSeatingPlanDeleted,
1417
1419
  onSeatingPlanUpdated,
1418
- querySeatingPlan,
1420
+ querySeatingPlans,
1419
1421
  updateSeatingPlan,
1420
1422
  updateSeatingPlanThumbnail,
1421
1423
  utils