@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.
- 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 -166
- 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 -166
- 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 -166
- 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 -166
- 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/es/index.d.mts
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/es/index.mjs
CHANGED
|
@@ -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,
|