@wix/auto_sdk_seatings_seating-plan 1.0.10 → 1.0.12
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 +22 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{seating-v1-seating-plan-seating-plan.universal-Ctm431no.d.ts → index.typings.d.ts} +163 -1
- package/build/cjs/index.typings.js +1069 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +22 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/{seating-v1-seating-plan-seating-plan.universal-Ctm431no.d.mts → index.typings.d.mts} +163 -1
- package/build/es/index.typings.mjs +1028 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +22 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{seating-v1-seating-plan-seating-plan.universal-Ctm431no.d.ts → index.typings.d.ts} +163 -1
- package/build/internal/cjs/index.typings.js +1069 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +22 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{seating-v1-seating-plan-seating-plan.universal-Ctm431no.d.mts → index.typings.d.mts} +163 -1
- package/build/internal/es/index.typings.mjs +1028 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { SeatingPlan, CreateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanApplicationErrors, CopySeatingPlanOptions, CopySeatingPlanResponse, QuerySeatingPlanOptions, PlansQueryBuilder, GetSeatingPlanOptions, FindSeatingPlanOptions, FindSeatingPlanResponse, DeleteSeatingPlanResponse, SeatingPlanThumbnail, UpdateSeatingPlanThumbnailResponse, GetSeatingPlanThumbnailResponse, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, BaseEventMetadata, CapacityExceededViolation, Category, CopySeatingPlanRequest, CreateSeatingPlanRequest, CreateSeatingPlanResponse, CursorPaging, Cursors, DeleteSeatingPlanRequest, DiscardSeatingPlanVersionsRequest, DiscardSeatingPlanVersionsResponse, DomainEvent, DomainEventBodyOneOf, Element, ElementGroup, ElementGroupUiProperties, ElementUiProperties, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Fieldset, FindSeatingPlanRequest, GetSeatingPlanRequest, GetSeatingPlanResponse, GetSeatingPlanThumbnailRequest, Icon, IdentificationData, IdentificationDataIdOneOf, Image, MessageEnvelope, MultiRowProperties, Numbering, Paging, PagingMetadataV2, Place, PlaceTypeEnumType, PlansQueryResult, Position, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QueryV2, QueryV2PagingMethodOneOf, ReservationOptions, RestoreInfo, RestoreSeatingPlanRequest, RestoreSeatingPlanResponse, RowElement, RowElementUiProperties, SaveSeatingPlanVersionRequest, SaveSeatingPlanVersionResponse, SeatingPlanMask, SeatingPlanUiProperties, Section, Sequencing, ShapeTypeEnumType, SortOrder, Sorting, Type, UpdateSeatingPlanRequest, UpdateSeatingPlanResponse, UpdateSeatingPlanThumbnailRequest, VerticalSequencing, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type SeatingPlanNonNullablePaths = `sections` | `sections.${number}._id` | `sections.${number}.default` | `categories` | `categories.${number}._id` | `categories.${number}.title` | `uncategorizedPlaces` | `uncategorizedPlaces.${number}.index` | `uncategorizedPlaces.${number}.label` | `uncategorizedPlaces.${number}.elementType` | `uncategorizedPlaces.${number}.type` | `elementGroups` | `elementGroups.${number}._id`;
|
|
5
6
|
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
6
7
|
interface CreateSeatingPlanSignature {
|
|
7
8
|
/**
|
|
@@ -9,7 +10,9 @@ interface CreateSeatingPlanSignature {
|
|
|
9
10
|
* @param - A plan to be created
|
|
10
11
|
* @returns The created plan
|
|
11
12
|
*/
|
|
12
|
-
(plan: SeatingPlan): Promise<SeatingPlan
|
|
13
|
+
(plan: NonNullablePaths<SeatingPlan, `sections.${number}.elements.${number}.title` | `title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths> & {
|
|
14
|
+
__applicationErrorsType?: CreateSeatingPlanApplicationErrors;
|
|
15
|
+
}>;
|
|
13
16
|
}
|
|
14
17
|
declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
|
|
15
18
|
interface UpdateSeatingPlanSignature {
|
|
@@ -17,7 +20,9 @@ interface UpdateSeatingPlanSignature {
|
|
|
17
20
|
* Updates the seating plan
|
|
18
21
|
* @returns The updated plan
|
|
19
22
|
*/
|
|
20
|
-
(options?: UpdateSeatingPlanOptions |
|
|
23
|
+
(options?: NonNullablePaths<UpdateSeatingPlanOptions, `plan._id` | `plan.sections.${number}.elements.${number}.title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths> & {
|
|
24
|
+
__applicationErrorsType?: UpdateSeatingPlanApplicationErrors;
|
|
25
|
+
}>;
|
|
21
26
|
}
|
|
22
27
|
declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
|
|
23
28
|
interface CopySeatingPlanSignature {
|
|
@@ -25,14 +30,16 @@ interface CopySeatingPlanSignature {
|
|
|
25
30
|
* Copies the seating plan
|
|
26
31
|
* @param - The id of the plan to be copied
|
|
27
32
|
*/
|
|
28
|
-
(_id: string, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse
|
|
33
|
+
(_id: string, options: NonNullablePaths<CopySeatingPlanOptions, `externalId` | `title`>): Promise<NonNullablePaths<CopySeatingPlanResponse, {
|
|
34
|
+
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
35
|
+
}[SeatingPlanNonNullablePaths]>>;
|
|
29
36
|
}
|
|
30
37
|
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
31
38
|
interface QuerySeatingPlanSignature {
|
|
32
39
|
/**
|
|
33
40
|
* Lists seating plans by provided query request
|
|
34
41
|
*/
|
|
35
|
-
(options?: QuerySeatingPlanOptions
|
|
42
|
+
(options?: QuerySeatingPlanOptions): PlansQueryBuilder;
|
|
36
43
|
}
|
|
37
44
|
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
38
45
|
interface GetSeatingPlanSignature {
|
|
@@ -41,7 +48,7 @@ interface GetSeatingPlanSignature {
|
|
|
41
48
|
* @param - The id of the plan
|
|
42
49
|
* @returns The plan
|
|
43
50
|
*/
|
|
44
|
-
(_id: string, options?: GetSeatingPlanOptions
|
|
51
|
+
(_id: string, options?: GetSeatingPlanOptions): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths>>;
|
|
45
52
|
}
|
|
46
53
|
declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
|
|
47
54
|
interface FindSeatingPlanSignature {
|
|
@@ -49,7 +56,9 @@ interface FindSeatingPlanSignature {
|
|
|
49
56
|
* Returns the first seating plan found by filter request.
|
|
50
57
|
* @param - The filter of the plan
|
|
51
58
|
*/
|
|
52
|
-
(filter: Record<string, any>, options?: FindSeatingPlanOptions
|
|
59
|
+
(filter: Record<string, any>, options?: FindSeatingPlanOptions): Promise<NonNullablePaths<FindSeatingPlanResponse, {
|
|
60
|
+
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
61
|
+
}[SeatingPlanNonNullablePaths]>>;
|
|
53
62
|
}
|
|
54
63
|
declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
|
|
55
64
|
interface DeleteSeatingPlanSignature {
|
|
@@ -57,14 +66,16 @@ interface DeleteSeatingPlanSignature {
|
|
|
57
66
|
* Deletes the seating plan.
|
|
58
67
|
* @param - The id of the plan
|
|
59
68
|
*/
|
|
60
|
-
(_id: string): Promise<DeleteSeatingPlanResponse
|
|
69
|
+
(_id: string): Promise<NonNullablePaths<DeleteSeatingPlanResponse, {
|
|
70
|
+
[P in SeatingPlanNonNullablePaths]: `plan.${P}`;
|
|
71
|
+
}[SeatingPlanNonNullablePaths]>>;
|
|
61
72
|
}
|
|
62
73
|
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
63
74
|
interface UpdateSeatingPlanThumbnailSignature {
|
|
64
75
|
/**
|
|
65
76
|
* Updates seating plan thumbnail.
|
|
66
77
|
*/
|
|
67
|
-
(thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
78
|
+
(thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`>): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
68
79
|
}
|
|
69
80
|
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
70
81
|
interface GetSeatingPlanThumbnailSignature {
|