@wix/auto_sdk_restaurants_sections 1.0.67 → 1.0.69

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.
@@ -2,7 +2,9 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
2
2
  import { DuplicateSectionOptions, DuplicateSectionResponse, Section, BulkCreateSectionsOptions, BulkCreateSectionsResponse, ListSectionsOptions, ListSectionsResponse, UpdateSection, MaskedSection, BulkUpdateSectionOptions, BulkUpdateSectionResponse, BulkDeleteSectionsResponse, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionUpdatedEnvelope, SectionsQueryBuilder, SectionQuery, typedQuerySections } from './index.typings.js';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, App, ApplicationError, Availability, AvailabilityAvailabilityTypeOptionsOneOf, AvailabilityType, AvailabilityTypeWithLiterals, AvailableRange, BaseEventMetadata, BulkActionMetadata, BulkCreateSectionResult, BulkCreateSectionsRequest, BulkDeleteSectionResult, BulkDeleteSectionsRequest, BulkItemResult, BulkSectionResult, BulkUpdateBusinessLocationIdRequest, BulkUpdateBusinessLocationIdResponse, BulkUpdateSectionRequest, CloneSectionsRequest, CloneSectionsResponse, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayOfWeek, DayOfWeekAvailability, DayOfWeekWithLiterals, DeleteLocationIdFromItems, DeleteSectionRequest, DeleteSectionResponse, DomainEvent, DomainEventBodyOneOf, DuplicateSectionRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListSectionsRequest, MessageEnvelope, OrderSettings, Page, Pages, QuerySectionsRequest, QuerySectionsResponse, RestoreInfo, SectionQuerySpec, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, SyncContentToMultilingualRequest, SyncContentToMultilingualResponse, TimeOfDay, TimeOfDayRange, TimestampRangesOptions, URI, URIs, UpdateSectionRequest, UpdateSectionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyScheduleOptions, utils } from './index.typings.js';
4
4
 
5
- declare function duplicateSection$1(httpClient: HttpClient): DuplicateSectionSignature;
5
+ declare function duplicateSection$1(httpClient: HttpClient, __options?: {
6
+ validateRequestSchema?: boolean;
7
+ }): DuplicateSectionSignature;
6
8
  interface DuplicateSectionSignature {
7
9
  /**
8
10
  * Duplicates a section.
@@ -13,10 +15,12 @@ interface DuplicateSectionSignature {
13
15
  */
14
16
  (_id: string, options?: DuplicateSectionOptions): Promise<NonNullablePaths<DuplicateSectionResponse, `sectionId`, 2>>;
15
17
  }
16
- declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
18
+ declare function createSection$1(httpClient: HttpClient, __options?: {
19
+ validateRequestSchema?: boolean;
20
+ }): CreateSectionSignature;
17
21
  interface CreateSectionSignature {
18
22
  /**
19
- * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
23
+ * > **Note:** The Sections API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
20
24
  *
21
25
  * Creates a section.
22
26
  *
@@ -26,20 +30,24 @@ interface CreateSectionSignature {
26
30
  */
27
31
  (section: Section): Promise<NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>>;
28
32
  }
29
- declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
33
+ declare function bulkCreateSections$1(httpClient: HttpClient, __options?: {
34
+ validateRequestSchema?: boolean;
35
+ }): BulkCreateSectionsSignature;
30
36
  interface BulkCreateSectionsSignature {
31
37
  /**
32
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
38
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
33
39
  *
34
40
  * Creates multiple sections at once.
35
41
  * @param - Sections details.
36
42
  */
37
43
  (sections: Section[], options?: BulkCreateSectionsOptions): Promise<NonNullablePaths<BulkCreateSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.name` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
38
44
  }
39
- declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
45
+ declare function getSection$1(httpClient: HttpClient, __options?: {
46
+ validateRequestSchema?: boolean;
47
+ }): GetSectionSignature;
40
48
  interface GetSectionSignature {
41
49
  /**
42
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
50
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
43
51
  *
44
52
  * Retrieves a section by ID.
45
53
  * @param - Section ID.
@@ -47,19 +55,23 @@ interface GetSectionSignature {
47
55
  */
48
56
  (sectionId: string): Promise<NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>>;
49
57
  }
50
- declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
58
+ declare function listSections$1(httpClient: HttpClient, __options?: {
59
+ validateRequestSchema?: boolean;
60
+ }): ListSectionsSignature;
51
61
  interface ListSectionsSignature {
52
62
  /**
53
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
63
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
54
64
  *
55
65
  * Retrieves a list of up to 500 sections.
56
66
  */
57
67
  (options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.name`, 4>>;
58
68
  }
59
- declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
69
+ declare function updateSection$1(httpClient: HttpClient, __options?: {
70
+ validateRequestSchema?: boolean;
71
+ }): UpdateSectionSignature;
60
72
  interface UpdateSectionSignature {
61
73
  /**
62
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
74
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
63
75
  *
64
76
  * Updates a section.
65
77
  *
@@ -69,10 +81,12 @@ interface UpdateSectionSignature {
69
81
  */
70
82
  (_id: string, section: NonNullablePaths<UpdateSection, `revision`, 2>): Promise<NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>>;
71
83
  }
72
- declare function bulkUpdateSection$1(httpClient: HttpClient): BulkUpdateSectionSignature;
84
+ declare function bulkUpdateSection$1(httpClient: HttpClient, __options?: {
85
+ validateRequestSchema?: boolean;
86
+ }): BulkUpdateSectionSignature;
73
87
  interface BulkUpdateSectionSignature {
74
88
  /**
75
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
89
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
76
90
  *
77
91
  * Updates multiple sections at once.
78
92
  *
@@ -81,20 +95,24 @@ interface BulkUpdateSectionSignature {
81
95
  */
82
96
  (sections: NonNullablePaths<MaskedSection, `section._id` | `section.revision`, 3>[], options?: BulkUpdateSectionOptions): Promise<NonNullablePaths<BulkUpdateSectionResponse, `results` | `results.${number}.sectionMetadata.originalIndex` | `results.${number}.sectionMetadata.success` | `results.${number}.sectionMetadata.error.code` | `results.${number}.sectionMetadata.error.description` | `results.${number}.section.name` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
83
97
  }
84
- declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
98
+ declare function deleteSection$1(httpClient: HttpClient, __options?: {
99
+ validateRequestSchema?: boolean;
100
+ }): DeleteSectionSignature;
85
101
  interface DeleteSectionSignature {
86
102
  /**
87
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
103
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
88
104
  *
89
105
  * Deletes a section.
90
106
  * @param - Section ID.
91
107
  */
92
108
  (sectionId: string): Promise<void>;
93
109
  }
94
- declare function bulkDeleteSections$1(httpClient: HttpClient): BulkDeleteSectionsSignature;
110
+ declare function bulkDeleteSections$1(httpClient: HttpClient, __options?: {
111
+ validateRequestSchema?: boolean;
112
+ }): BulkDeleteSectionsSignature;
95
113
  interface BulkDeleteSectionsSignature {
96
114
  /**
97
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
115
+ * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
98
116
  *
99
117
  * Deletes multiple sections at once.
100
118
  * @param - Section IDs.