@wix/auto_sdk_seatings_seating-plan 1.0.14 → 1.0.16

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,8 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
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';
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, FieldsetWithLiterals, FindSeatingPlanRequest, GetSeatingPlanRequest, GetSeatingPlanResponse, GetSeatingPlanThumbnailRequest, Icon, IconWithLiterals, IdentificationData, IdentificationDataIdOneOf, Image, MessageEnvelope, MultiRowProperties, Numbering, NumberingWithLiterals, Paging, PagingMetadataV2, Place, PlaceTypeEnumType, PlaceTypeEnumTypeWithLiterals, PlansQueryResult, Position, PositionWithLiterals, QuerySeatingPlanRequest, QuerySeatingPlanResponse, QuerySeatingPlanVersionsRequest, QuerySeatingPlanVersionsResponse, QueryV2, QueryV2PagingMethodOneOf, ReservationOptions, RestoreInfo, RestoreSeatingPlanRequest, RestoreSeatingPlanResponse, RowElement, RowElementUiProperties, SaveSeatingPlanVersionRequest, SaveSeatingPlanVersionResponse, SeatingPlanMask, SeatingPlanUiProperties, Section, Sequencing, ShapeTypeEnumType, ShapeTypeEnumTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, UpdateSeatingPlanRequest, UpdateSeatingPlanResponse, UpdateSeatingPlanThumbnailRequest, VerticalSequencing, WebhookIdentityType, WebhookIdentityTypeWithLiterals } 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`;
6
5
  declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
7
6
  interface CreateSeatingPlanSignature {
8
7
  /**
@@ -10,7 +9,7 @@ interface CreateSeatingPlanSignature {
10
9
  * @param - A plan to be created
11
10
  * @returns The created plan
12
11
  */
13
- (plan: NonNullablePaths<SeatingPlan, `sections.${number}.elements.${number}.title` | `title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths> & {
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> & {
14
13
  __applicationErrorsType?: CreateSeatingPlanApplicationErrors;
15
14
  }>;
16
15
  }
@@ -20,7 +19,7 @@ interface UpdateSeatingPlanSignature {
20
19
  * Updates the seating plan
21
20
  * @returns The updated plan
22
21
  */
23
- (options?: NonNullablePaths<UpdateSeatingPlanOptions, `plan._id` | `plan.sections.${number}.elements.${number}.title`>): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths> & {
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> & {
24
23
  __applicationErrorsType?: UpdateSeatingPlanApplicationErrors;
25
24
  }>;
26
25
  }
@@ -30,9 +29,7 @@ interface CopySeatingPlanSignature {
30
29
  * Copies the seating plan
31
30
  * @param - The id of the plan to be copied
32
31
  */
33
- (_id: string, options: NonNullablePaths<CopySeatingPlanOptions, `externalId` | `title`>): Promise<NonNullablePaths<CopySeatingPlanResponse, {
34
- [P in SeatingPlanNonNullablePaths]: `plan.${P}`;
35
- }[SeatingPlanNonNullablePaths]>>;
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>>;
36
33
  }
37
34
  declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
38
35
  interface QuerySeatingPlanSignature {
@@ -48,7 +45,7 @@ interface GetSeatingPlanSignature {
48
45
  * @param - The id of the plan
49
46
  * @returns The plan
50
47
  */
51
- (_id: string, options?: GetSeatingPlanOptions): Promise<NonNullablePaths<SeatingPlan, SeatingPlanNonNullablePaths>>;
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>>;
52
49
  }
53
50
  declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
54
51
  interface FindSeatingPlanSignature {
@@ -56,9 +53,7 @@ interface FindSeatingPlanSignature {
56
53
  * Returns the first seating plan found by filter request.
57
54
  * @param - The filter of the plan
58
55
  */
59
- (filter: Record<string, any>, options?: FindSeatingPlanOptions): Promise<NonNullablePaths<FindSeatingPlanResponse, {
60
- [P in SeatingPlanNonNullablePaths]: `plan.${P}`;
61
- }[SeatingPlanNonNullablePaths]>>;
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>>;
62
57
  }
63
58
  declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
64
59
  interface DeleteSeatingPlanSignature {
@@ -66,16 +61,14 @@ interface DeleteSeatingPlanSignature {
66
61
  * Deletes the seating plan.
67
62
  * @param - The id of the plan
68
63
  */
69
- (_id: string): Promise<NonNullablePaths<DeleteSeatingPlanResponse, {
70
- [P in SeatingPlanNonNullablePaths]: `plan.${P}`;
71
- }[SeatingPlanNonNullablePaths]>>;
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>>;
72
65
  }
73
66
  declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
74
67
  interface UpdateSeatingPlanThumbnailSignature {
75
68
  /**
76
69
  * Updates seating plan thumbnail.
77
70
  */
78
- (thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`>): Promise<UpdateSeatingPlanThumbnailResponse>;
71
+ (thumbnail: NonNullablePaths<SeatingPlanThumbnail, `_id` | `img`, 2>): Promise<UpdateSeatingPlanThumbnailResponse>;
79
72
  }
80
73
  declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
81
74
  interface GetSeatingPlanThumbnailSignature {
@@ -104,4 +97,4 @@ declare const onSeatingPlanDeleted: BuildEventDefinition<typeof onSeatingPlanDel
104
97
  /** */
105
98
  declare const onSeatingPlanUpdated: BuildEventDefinition<typeof onSeatingPlanUpdated$1>;
106
99
 
107
- export { CopySeatingPlanOptions, CopySeatingPlanResponse, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlanOptions, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };
100
+ export { CopySeatingPlanOptions, CopySeatingPlanResponse, CreateSeatingPlanApplicationErrors, DeleteSeatingPlanResponse, FindSeatingPlanOptions, FindSeatingPlanResponse, GetSeatingPlanOptions, GetSeatingPlanThumbnailResponse, PlansQueryBuilder, QuerySeatingPlanOptions, SeatingPlan, SeatingPlanCreatedEnvelope, SeatingPlanDeletedEnvelope, SeatingPlanThumbnail, SeatingPlanUpdatedEnvelope, UpdateSeatingPlanApplicationErrors, UpdateSeatingPlanOptions, UpdateSeatingPlanThumbnailResponse, copySeatingPlan, createSeatingPlan, deleteSeatingPlan, findSeatingPlan, getSeatingPlan, getSeatingPlanThumbnail, onSeatingPlanCreated, onSeatingPlanDeleted, onSeatingPlanUpdated, querySeatingPlan, updateSeatingPlan, updateSeatingPlanThumbnail };