@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.
- package/build/cjs/index.d.ts +19 -17
- package/build/cjs/index.js +39 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +266 -166
- package/build/cjs/index.typings.js +39 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +456 -119
- package/build/cjs/meta.js +140 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -17
- package/build/es/index.mjs +39 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +266 -166
- package/build/es/index.typings.mjs +39 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +456 -119
- package/build/es/meta.mjs +131 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -17
- package/build/internal/cjs/index.js +39 -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 +39 -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 +140 -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 +39 -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 +39 -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 +131 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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
|
-
*
|
|
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
|
}
|
|
@@ -83,6 +83,12 @@ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
|
|
|
83
83
|
srcPath: "/_api/seating-plans",
|
|
84
84
|
destPath: ""
|
|
85
85
|
}
|
|
86
|
+
],
|
|
87
|
+
"www.wixapis.com": [
|
|
88
|
+
{
|
|
89
|
+
srcPath: "/seating/v1/plans",
|
|
90
|
+
destPath: "/v1/plans"
|
|
91
|
+
}
|
|
86
92
|
]
|
|
87
93
|
};
|
|
88
94
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -148,6 +154,12 @@ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
|
|
|
148
154
|
srcPath: "/_api/seating-plans",
|
|
149
155
|
destPath: ""
|
|
150
156
|
}
|
|
157
|
+
],
|
|
158
|
+
"www.wixapis.com": [
|
|
159
|
+
{
|
|
160
|
+
srcPath: "/seating/v1/plans",
|
|
161
|
+
destPath: "/v1/plans"
|
|
162
|
+
}
|
|
151
163
|
]
|
|
152
164
|
};
|
|
153
165
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -195,6 +207,9 @@ function createSeatingPlan(payload) {
|
|
|
195
207
|
method: "POST",
|
|
196
208
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
|
|
197
209
|
packageName: PACKAGE_NAME,
|
|
210
|
+
migrationOptions: {
|
|
211
|
+
optInTransformResponse: true
|
|
212
|
+
},
|
|
198
213
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
199
214
|
protoPath: "/v1/plans",
|
|
200
215
|
data: serializedData,
|
|
@@ -291,6 +306,9 @@ function updateSeatingPlan(payload) {
|
|
|
291
306
|
method: "PUT",
|
|
292
307
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
|
|
293
308
|
packageName: PACKAGE_NAME,
|
|
309
|
+
migrationOptions: {
|
|
310
|
+
optInTransformResponse: true
|
|
311
|
+
},
|
|
294
312
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
295
313
|
protoPath: "/v1/plans",
|
|
296
314
|
data: serializedData,
|
|
@@ -348,6 +366,9 @@ function copySeatingPlan(payload) {
|
|
|
348
366
|
method: "POST",
|
|
349
367
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
|
|
350
368
|
packageName: PACKAGE_NAME,
|
|
369
|
+
migrationOptions: {
|
|
370
|
+
optInTransformResponse: true
|
|
371
|
+
},
|
|
351
372
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
352
373
|
protoPath: "/v1/plans/copy",
|
|
353
374
|
data: payload,
|
|
@@ -405,6 +426,9 @@ function querySeatingPlan(payload) {
|
|
|
405
426
|
method: "POST",
|
|
406
427
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
|
|
407
428
|
packageName: PACKAGE_NAME,
|
|
429
|
+
migrationOptions: {
|
|
430
|
+
optInTransformResponse: true
|
|
431
|
+
},
|
|
408
432
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
409
433
|
protoPath: "/v1/plans/query",
|
|
410
434
|
data: payload,
|
|
@@ -465,6 +489,9 @@ function getSeatingPlan(payload) {
|
|
|
465
489
|
method: "GET",
|
|
466
490
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
|
|
467
491
|
packageName: PACKAGE_NAME,
|
|
492
|
+
migrationOptions: {
|
|
493
|
+
optInTransformResponse: true
|
|
494
|
+
},
|
|
468
495
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
469
496
|
protoPath: "/v1/plans/{id}",
|
|
470
497
|
data: payload,
|
|
@@ -522,6 +549,9 @@ function findSeatingPlan(payload) {
|
|
|
522
549
|
method: "POST",
|
|
523
550
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
|
|
524
551
|
packageName: PACKAGE_NAME,
|
|
552
|
+
migrationOptions: {
|
|
553
|
+
optInTransformResponse: true
|
|
554
|
+
},
|
|
525
555
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
526
556
|
protoPath: "/v1/plans/find",
|
|
527
557
|
data: payload,
|
|
@@ -579,6 +609,9 @@ function deleteSeatingPlan(payload) {
|
|
|
579
609
|
method: "DELETE",
|
|
580
610
|
methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
|
|
581
611
|
packageName: PACKAGE_NAME,
|
|
612
|
+
migrationOptions: {
|
|
613
|
+
optInTransformResponse: true
|
|
614
|
+
},
|
|
582
615
|
url: resolveComWixpressSeatingSeatingPlanManagementUrl({
|
|
583
616
|
protoPath: "/v1/plans/{id}",
|
|
584
617
|
data: payload,
|
|
@@ -636,6 +669,9 @@ function updateSeatingPlanThumbnail(payload) {
|
|
|
636
669
|
method: "POST",
|
|
637
670
|
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
|
|
638
671
|
packageName: PACKAGE_NAME,
|
|
672
|
+
migrationOptions: {
|
|
673
|
+
optInTransformResponse: true
|
|
674
|
+
},
|
|
639
675
|
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
640
676
|
protoPath: "/v1/plan-thumbnails",
|
|
641
677
|
data: payload,
|
|
@@ -654,6 +690,9 @@ function getSeatingPlanThumbnail(payload) {
|
|
|
654
690
|
method: "GET",
|
|
655
691
|
methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
|
|
656
692
|
packageName: PACKAGE_NAME,
|
|
693
|
+
migrationOptions: {
|
|
694
|
+
optInTransformResponse: true
|
|
695
|
+
},
|
|
657
696
|
url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
|
|
658
697
|
protoPath: "/v1/plan-thumbnails",
|
|
659
698
|
data: payload,
|