@wix/auto_sdk_seatings_seating-plan 1.0.20 → 1.0.22
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 -17
- package/build/cjs/index.js +27 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +266 -172
- package/build/cjs/index.typings.js +27 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +456 -119
- package/build/cjs/meta.js +128 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -17
- package/build/es/index.mjs +27 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +266 -172
- package/build/es/index.typings.mjs +27 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +456 -119
- package/build/es/meta.mjs +119 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -17
- package/build/internal/cjs/index.js +27 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +266 -172
- package/build/internal/cjs/index.typings.js +27 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +456 -119
- package/build/internal/cjs/meta.js +128 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -17
- package/build/internal/es/index.mjs +27 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +266 -172
- package/build/internal/es/index.typings.mjs +27 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +456 -119
- package/build/internal/es/meta.mjs +119 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
9
|
-
* @param -
|
|
10
|
-
* @returns
|
|
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
|
|
20
|
-
* @returns
|
|
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
|
-
*
|
|
30
|
-
* @param -
|
|
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
|
-
*
|
|
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
|
-
*
|
|
45
|
-
* @param -
|
|
46
|
-
* @returns
|
|
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
|
-
*
|
|
54
|
-
* @param -
|
|
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
|
|
62
|
-
* @param -
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
}
|
package/build/cjs/index.js
CHANGED
|
@@ -250,6 +250,9 @@ function createSeatingPlan(payload) {
|
|
|
250
250
|
method: "POST",
|
|
251
251
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
|
|
252
252
|
packageName: PACKAGE_NAME,
|
|
253
|
+
migrationOptions: {
|
|
254
|
+
optInTransformResponse: true
|
|
255
|
+
},
|
|
253
256
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
254
257
|
protoPath: "/v1/plans",
|
|
255
258
|
data: serializedData,
|
|
@@ -346,6 +349,9 @@ function updateSeatingPlan(payload) {
|
|
|
346
349
|
method: "PUT",
|
|
347
350
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
|
|
348
351
|
packageName: PACKAGE_NAME,
|
|
352
|
+
migrationOptions: {
|
|
353
|
+
optInTransformResponse: true
|
|
354
|
+
},
|
|
349
355
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
350
356
|
protoPath: "/v1/plans",
|
|
351
357
|
data: serializedData,
|
|
@@ -403,6 +409,9 @@ function copySeatingPlan(payload) {
|
|
|
403
409
|
method: "POST",
|
|
404
410
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
|
|
405
411
|
packageName: PACKAGE_NAME,
|
|
412
|
+
migrationOptions: {
|
|
413
|
+
optInTransformResponse: true
|
|
414
|
+
},
|
|
406
415
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
407
416
|
protoPath: "/v1/plans/copy",
|
|
408
417
|
data: payload,
|
|
@@ -460,6 +469,9 @@ function querySeatingPlan(payload) {
|
|
|
460
469
|
method: "POST",
|
|
461
470
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
|
|
462
471
|
packageName: PACKAGE_NAME,
|
|
472
|
+
migrationOptions: {
|
|
473
|
+
optInTransformResponse: true
|
|
474
|
+
},
|
|
463
475
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
464
476
|
protoPath: "/v1/plans/query",
|
|
465
477
|
data: payload,
|
|
@@ -520,6 +532,9 @@ function getSeatingPlan(payload) {
|
|
|
520
532
|
method: "GET",
|
|
521
533
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
|
|
522
534
|
packageName: PACKAGE_NAME,
|
|
535
|
+
migrationOptions: {
|
|
536
|
+
optInTransformResponse: true
|
|
537
|
+
},
|
|
523
538
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
524
539
|
protoPath: "/v1/plans/{id}",
|
|
525
540
|
data: payload,
|
|
@@ -577,6 +592,9 @@ function findSeatingPlan(payload) {
|
|
|
577
592
|
method: "POST",
|
|
578
593
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
|
|
579
594
|
packageName: PACKAGE_NAME,
|
|
595
|
+
migrationOptions: {
|
|
596
|
+
optInTransformResponse: true
|
|
597
|
+
},
|
|
580
598
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
581
599
|
protoPath: "/v1/plans/find",
|
|
582
600
|
data: payload,
|
|
@@ -634,6 +652,9 @@ function deleteSeatingPlan(payload) {
|
|
|
634
652
|
method: "DELETE",
|
|
635
653
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
|
|
636
654
|
packageName: PACKAGE_NAME,
|
|
655
|
+
migrationOptions: {
|
|
656
|
+
optInTransformResponse: true
|
|
657
|
+
},
|
|
637
658
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
638
659
|
protoPath: "/v1/plans/{id}",
|
|
639
660
|
data: payload,
|
|
@@ -691,6 +712,9 @@ function updateSeatingPlanThumbnail(payload) {
|
|
|
691
712
|
method: "POST",
|
|
692
713
|
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
|
|
693
714
|
packageName: PACKAGE_NAME,
|
|
715
|
+
migrationOptions: {
|
|
716
|
+
optInTransformResponse: true
|
|
717
|
+
},
|
|
694
718
|
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
695
719
|
protoPath: "/v1/plan-thumbnails",
|
|
696
720
|
data: payload,
|
|
@@ -709,6 +733,9 @@ function getSeatingPlanThumbnail(payload) {
|
|
|
709
733
|
method: "GET",
|
|
710
734
|
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
|
|
711
735
|
packageName: PACKAGE_NAME,
|
|
736
|
+
migrationOptions: {
|
|
737
|
+
optInTransformResponse: true
|
|
738
|
+
},
|
|
712
739
|
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
713
740
|
protoPath: "/v1/plan-thumbnails",
|
|
714
741
|
data: payload,
|