@wix/auto_sdk_seatings_seating-plan 1.0.20 → 1.0.21

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 (37) hide show
  1. package/build/cjs/index.d.ts +19 -17
  2. package/build/cjs/index.js +27 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +266 -166
  5. package/build/cjs/index.typings.js +27 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +456 -119
  8. package/build/cjs/meta.js +128 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +19 -17
  11. package/build/es/index.mjs +27 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +266 -166
  14. package/build/es/index.typings.mjs +27 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +456 -119
  17. package/build/es/meta.mjs +119 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +19 -17
  20. package/build/internal/cjs/index.js +27 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +266 -166
  23. package/build/internal/cjs/index.typings.js +27 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +456 -119
  26. package/build/internal/cjs/meta.js +128 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +19 -17
  29. package/build/internal/es/index.mjs +27 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +266 -166
  32. package/build/internal/es/index.typings.mjs +27 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +456 -119
  35. package/build/internal/es/meta.mjs +119 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -5,9 +5,9 @@ export { ActionEvent, BaseEventMetadata, CapacityExceededViolation, Category, Co
5
5
  declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
6
6
  interface CreateSeatingPlanSignature {
7
7
  /**
8
- * Crates a seating plan
9
- * @param - A plan to be created
10
- * @returns The created plan
8
+ * Creates a new seating plan with sections, elements, and categories. The system automatically generates places based on element configurations and calculates capacity totals.
9
+ * @param - Seating plan to create. Must include at least one section with `id = 0` as the default section.
10
+ * @returns Created seating plan with generated ID, timestamps, and calculated totals.
11
11
  */
12
12
  (plan: NonNullablePaths<SeatingPlan, `sections.${number}.elements.${number}.title` | `title`, 6>): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4> & {
13
13
  __applicationErrorsType?: CreateSeatingPlanApplicationErrors;
@@ -16,8 +16,8 @@ interface CreateSeatingPlanSignature {
16
16
  declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
17
17
  interface UpdateSeatingPlanSignature {
18
18
  /**
19
- * Updates the seating plan
20
- * @returns The updated plan
19
+ * Updates an existing seating plan. Changes trigger recalculation of places, capacities, and version increment. Use field masks to update specific portions of the plan.
20
+ * @returns Updated seating plan with incremented version and recalculated totals.
21
21
  */
22
22
  (options?: NonNullablePaths<UpdateSeatingPlanOptions, `plan._id` | `plan.sections.${number}.elements.${number}.title`, 7>): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4> & {
23
23
  __applicationErrorsType?: UpdateSeatingPlanApplicationErrors;
@@ -26,54 +26,56 @@ interface UpdateSeatingPlanSignature {
26
26
  declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
27
27
  interface CopySeatingPlanSignature {
28
28
  /**
29
- * Copies the seating plan
30
- * @param - The id of the plan to be copied
29
+ * Creates a copy of an existing seating plan with a new title and external ID. Useful for reusing venue layouts across multiple events.
30
+ * @param - ID of the seating plan to be copied.
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
34
  declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
35
35
  interface QuerySeatingPlanSignature {
36
36
  /**
37
- * Lists seating plans by provided query request
37
+ * Retrieves multiple seating plans based on filter criteria. Supports fieldset projections to control response size and improve performance.
38
38
  */
39
39
  (options?: QuerySeatingPlanOptions): PlansQueryBuilder;
40
40
  }
41
41
  declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
42
42
  interface GetSeatingPlanSignature {
43
43
  /**
44
- * Returns the seating plan. Fails of not fond.
45
- * @param - The id of the plan
46
- * @returns The plan
44
+ * Retrieves a specific seating plan by ID. Supports fieldset projections and place filtering via SeatingPlanMask for targeted queries.
45
+ * @param - Seating plan ID to retrieve.
46
+ * @returns Retrieved seating plan with requested fieldsets and filtered places.
47
47
  */
48
48
  (_id: string, options?: GetSeatingPlanOptions): Promise<NonNullablePaths<SeatingPlan, `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `elementGroups` | `elementGroups.${number}._id`, 4>>;
49
49
  }
50
50
  declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
51
51
  interface FindSeatingPlanSignature {
52
52
  /**
53
- * Returns the first seating plan found by filter request.
54
- * @param - The filter of the plan
53
+ * Finds the first seating plan matching the specified filter criteria. Useful for locating plans by external ID or other properties.
54
+ * @param - Filter criteria for finding the seating plan. Use standard WQL filter format.
55
55
  */
56
56
  (filter: Record<string, any>, options?: FindSeatingPlanOptions): Promise<NonNullablePaths<FindSeatingPlanResponse, `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>>;
57
57
  }
58
58
  declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
59
59
  interface DeleteSeatingPlanSignature {
60
60
  /**
61
- * Deletes the seating plan.
62
- * @param - The id of the plan
61
+ * Deletes a seating plan and all its associated data including sections, elements, places, and version history.
62
+ * @param - ID of the seating plan to delete.
63
63
  */
64
64
  (_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>>;
65
65
  }
66
66
  declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
67
67
  interface UpdateSeatingPlanThumbnailSignature {
68
68
  /**
69
- * Updates seating plan thumbnail.
69
+ * Thumbnails provide visual previews of seating layouts for selection and management interfaces.
70
+ * @param - Thumbnail to update with new image data.
70
71
  */
71
72
  (thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`, 2>): Promise<UpdateSeatingPlanThumbnailResponse>;
72
73
  }
73
74
  declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
74
75
  interface GetSeatingPlanThumbnailSignature {
75
76
  /**
76
- * Get seating plan thumbnail.
77
+ * Returns the current thumbnail or empty response if no thumbnail has been set.
78
+ * @param - Seating plan ID to retrieve thumbnail for.
77
79
  */
78
80
  (_id: string): Promise<GetSeatingPlanThumbnailResponse>;
79
81
  }
@@ -207,6 +207,9 @@ function createSeatingPlan(payload) {
207
207
  method: "POST",
208
208
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
209
209
  packageName: PACKAGE_NAME,
210
+ migrationOptions: {
211
+ optInTransformResponse: true
212
+ },
210
213
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
211
214
  protoPath: "/v1/plans",
212
215
  data: serializedData,
@@ -303,6 +306,9 @@ function updateSeatingPlan(payload) {
303
306
  method: "PUT",
304
307
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
305
308
  packageName: PACKAGE_NAME,
309
+ migrationOptions: {
310
+ optInTransformResponse: true
311
+ },
306
312
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
307
313
  protoPath: "/v1/plans",
308
314
  data: serializedData,
@@ -360,6 +366,9 @@ function copySeatingPlan(payload) {
360
366
  method: "POST",
361
367
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
362
368
  packageName: PACKAGE_NAME,
369
+ migrationOptions: {
370
+ optInTransformResponse: true
371
+ },
363
372
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
364
373
  protoPath: "/v1/plans/copy",
365
374
  data: payload,
@@ -417,6 +426,9 @@ function querySeatingPlan(payload) {
417
426
  method: "POST",
418
427
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
419
428
  packageName: PACKAGE_NAME,
429
+ migrationOptions: {
430
+ optInTransformResponse: true
431
+ },
420
432
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
421
433
  protoPath: "/v1/plans/query",
422
434
  data: payload,
@@ -477,6 +489,9 @@ function getSeatingPlan(payload) {
477
489
  method: "GET",
478
490
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
479
491
  packageName: PACKAGE_NAME,
492
+ migrationOptions: {
493
+ optInTransformResponse: true
494
+ },
480
495
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
481
496
  protoPath: "/v1/plans/{id}",
482
497
  data: payload,
@@ -534,6 +549,9 @@ function findSeatingPlan(payload) {
534
549
  method: "POST",
535
550
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
536
551
  packageName: PACKAGE_NAME,
552
+ migrationOptions: {
553
+ optInTransformResponse: true
554
+ },
537
555
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
538
556
  protoPath: "/v1/plans/find",
539
557
  data: payload,
@@ -591,6 +609,9 @@ function deleteSeatingPlan(payload) {
591
609
  method: "DELETE",
592
610
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
593
611
  packageName: PACKAGE_NAME,
612
+ migrationOptions: {
613
+ optInTransformResponse: true
614
+ },
594
615
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
595
616
  protoPath: "/v1/plans/{id}",
596
617
  data: payload,
@@ -648,6 +669,9 @@ function updateSeatingPlanThumbnail(payload) {
648
669
  method: "POST",
649
670
  methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
650
671
  packageName: PACKAGE_NAME,
672
+ migrationOptions: {
673
+ optInTransformResponse: true
674
+ },
651
675
  url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
652
676
  protoPath: "/v1/plan-thumbnails",
653
677
  data: payload,
@@ -666,6 +690,9 @@ function getSeatingPlanThumbnail(payload) {
666
690
  method: "GET",
667
691
  methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
668
692
  packageName: PACKAGE_NAME,
693
+ migrationOptions: {
694
+ optInTransformResponse: true
695
+ },
669
696
  url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
670
697
  protoPath: "/v1/plan-thumbnails",
671
698
  data: payload,