@wix/auto_sdk_seatings_seating-plan 1.0.19 → 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 +39 -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 +39 -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 +140 -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 +39 -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 +39 -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 +131 -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 +39 -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 +39 -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 +140 -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 +39 -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 +39 -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 +131 -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
  }
@@ -126,6 +126,12 @@ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
126
126
  srcPath: "/_api/seating-plans",
127
127
  destPath: ""
128
128
  }
129
+ ],
130
+ "www.wixapis.com": [
131
+ {
132
+ srcPath: "/seating/v1/plans",
133
+ destPath: "/v1/plans"
134
+ }
129
135
  ]
130
136
  };
131
137
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
@@ -191,6 +197,12 @@ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
191
197
  srcPath: "/_api/seating-plans",
192
198
  destPath: ""
193
199
  }
200
+ ],
201
+ "www.wixapis.com": [
202
+ {
203
+ srcPath: "/seating/v1/plans",
204
+ destPath: "/v1/plans"
205
+ }
194
206
  ]
195
207
  };
196
208
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
@@ -238,6 +250,9 @@ function createSeatingPlan(payload) {
238
250
  method: "POST",
239
251
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
240
252
  packageName: PACKAGE_NAME,
253
+ migrationOptions: {
254
+ optInTransformResponse: true
255
+ },
241
256
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
242
257
  protoPath: "/v1/plans",
243
258
  data: serializedData,
@@ -334,6 +349,9 @@ function updateSeatingPlan(payload) {
334
349
  method: "PUT",
335
350
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
336
351
  packageName: PACKAGE_NAME,
352
+ migrationOptions: {
353
+ optInTransformResponse: true
354
+ },
337
355
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
338
356
  protoPath: "/v1/plans",
339
357
  data: serializedData,
@@ -391,6 +409,9 @@ function copySeatingPlan(payload) {
391
409
  method: "POST",
392
410
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
393
411
  packageName: PACKAGE_NAME,
412
+ migrationOptions: {
413
+ optInTransformResponse: true
414
+ },
394
415
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
395
416
  protoPath: "/v1/plans/copy",
396
417
  data: payload,
@@ -448,6 +469,9 @@ function querySeatingPlan(payload) {
448
469
  method: "POST",
449
470
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
450
471
  packageName: PACKAGE_NAME,
472
+ migrationOptions: {
473
+ optInTransformResponse: true
474
+ },
451
475
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
452
476
  protoPath: "/v1/plans/query",
453
477
  data: payload,
@@ -508,6 +532,9 @@ function getSeatingPlan(payload) {
508
532
  method: "GET",
509
533
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
510
534
  packageName: PACKAGE_NAME,
535
+ migrationOptions: {
536
+ optInTransformResponse: true
537
+ },
511
538
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
512
539
  protoPath: "/v1/plans/{id}",
513
540
  data: payload,
@@ -565,6 +592,9 @@ function findSeatingPlan(payload) {
565
592
  method: "POST",
566
593
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
567
594
  packageName: PACKAGE_NAME,
595
+ migrationOptions: {
596
+ optInTransformResponse: true
597
+ },
568
598
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
569
599
  protoPath: "/v1/plans/find",
570
600
  data: payload,
@@ -622,6 +652,9 @@ function deleteSeatingPlan(payload) {
622
652
  method: "DELETE",
623
653
  methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
624
654
  packageName: PACKAGE_NAME,
655
+ migrationOptions: {
656
+ optInTransformResponse: true
657
+ },
625
658
  url: resolveComWixpressSeatingSeatingPlanManagementUrl({
626
659
  protoPath: "/v1/plans/{id}",
627
660
  data: payload,
@@ -679,6 +712,9 @@ function updateSeatingPlanThumbnail(payload) {
679
712
  method: "POST",
680
713
  methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
681
714
  packageName: PACKAGE_NAME,
715
+ migrationOptions: {
716
+ optInTransformResponse: true
717
+ },
682
718
  url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
683
719
  protoPath: "/v1/plan-thumbnails",
684
720
  data: payload,
@@ -697,6 +733,9 @@ function getSeatingPlanThumbnail(payload) {
697
733
  method: "GET",
698
734
  methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
699
735
  packageName: PACKAGE_NAME,
736
+ migrationOptions: {
737
+ optInTransformResponse: true
738
+ },
700
739
  url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
701
740
  protoPath: "/v1/plan-thumbnails",
702
741
  data: payload,