@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.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { S as SeatingPlan, U as UpdateSeatingPlanOptions, C as CopySeatingPlanOptions, a as CopySeatingPlanResponse, Q as QuerySeatingPlanOptions, P as PlansQueryBuilder, G as GetSeatingPlanOptions, F as FindSeatingPlanOptions, b as FindSeatingPlanResponse, D as DeleteSeatingPlanResponse, c as SeatingPlanThumbnail, d as UpdateSeatingPlanThumbnailResponse, e as GetSeatingPlanThumbnailResponse, f as SeatingPlanCreatedEnvelope, g as SeatingPlanDeletedEnvelope, h as SeatingPlanUpdatedEnvelope } from './seating-v1-seating-plan-seating-plan.universal-Ctm431no.js';
3
- export { ab as ActionEvent, ar as BaseEventMetadata, B as CapacityExceededViolation, u as Category, K as CopySeatingPlanRequest, z as CreateSeatingPlanRequest, A as CreateSeatingPlanResponse, _ as CursorPaging, ak as Cursors, a4 as DeleteSeatingPlanRequest, al as DiscardSeatingPlanVersionsRequest, am as DiscardSeatingPlanVersionsResponse, a5 as DomainEvent, a6 as DomainEventBodyOneOf, E as Element, x as ElementGroup, y as ElementGroupUiProperties, q as ElementUiProperties, a7 as EntityCreatedEvent, aa as EntityDeletedEvent, a9 as EntityUpdatedEvent, as as EventMetadata, v as ExtendedFields, m as Fieldset, a3 as FindSeatingPlanRequest, a0 as GetSeatingPlanRequest, a2 as GetSeatingPlanResponse, aq as GetSeatingPlanThumbnailRequest, I as Icon, ad as IdentificationData, ae as IdentificationDataIdOneOf, r as Image, ac as MessageEnvelope, M as MultiRowProperties, N as Numbering, Z as Paging, aj as PagingMetadataV2, p as Place, i as PlaceTypeEnumType, at as PlansQueryResult, k as Position, L as QuerySeatingPlanRequest, $ as QuerySeatingPlanResponse, ah as QuerySeatingPlanVersionsRequest, ai as QuerySeatingPlanVersionsResponse, O as QueryV2, X as QueryV2PagingMethodOneOf, R as ReservationOptions, a8 as RestoreInfo, an as RestoreSeatingPlanRequest, ao as RestoreSeatingPlanResponse, s as RowElement, t as RowElementUiProperties, af as SaveSeatingPlanVersionRequest, ag as SaveSeatingPlanVersionResponse, a1 as SeatingPlanMask, w as SeatingPlanUiProperties, n as Section, o as Sequencing, j as ShapeTypeEnumType, l as SortOrder, Y as Sorting, T as Type, H as UpdateSeatingPlanRequest, J as UpdateSeatingPlanResponse, ap as UpdateSeatingPlanThumbnailRequest, V as VerticalSequencing, W as WebhookIdentityType } from './seating-v1-seating-plan-seating-plan.universal-Ctm431no.js';
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 | undefined): Promise<SeatingPlan>;
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 | undefined): PlansQueryBuilder;
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 | undefined): Promise<SeatingPlan>;
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 | undefined): Promise<FindSeatingPlanResponse>;
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 {