@wix/auto_sdk_restaurants_sections 1.0.28 → 1.0.30
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 +18 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{restaurants-menus-v1-section-sections.universal-DQ9fychQ.d.ts → index.typings.d.ts} +190 -1
- package/build/cjs/index.typings.js +956 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +18 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/{restaurants-menus-v1-section-sections.universal-DQ9fychQ.d.mts → index.typings.d.mts} +190 -1
- package/build/es/index.typings.mjs +921 -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 +18 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{restaurants-menus-v1-section-sections.universal-DQ9fychQ.d.ts → index.typings.d.ts} +190 -1
- package/build/internal/cjs/index.typings.js +956 -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 +18 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{restaurants-menus-v1-section-sections.universal-DQ9fychQ.d.mts → index.typings.d.mts} +190 -1
- package/build/internal/es/index.typings.mjs +921 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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 { DuplicateSectionOptions, DuplicateSectionResponse, Section, BulkCreateSectionsOptions, BulkCreateSectionsResponse, ListSectionsOptions, ListSectionsResponse, SectionsQueryBuilder, UpdateSection, MaskedSection, BulkUpdateSectionOptions, BulkUpdateSectionResponse, BulkDeleteSectionsResponse, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateSectionResult, BulkCreateSectionsRequest, BulkDeleteSectionResult, BulkDeleteSectionsRequest, BulkItemResult, BulkSectionResult, BulkUpdateBusinessLocationIdRequest, BulkUpdateBusinessLocationIdResponse, BulkUpdateSectionRequest, CloneSectionsRequest, CloneSectionsResponse, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteLocationIdFromItems, DeleteSectionRequest, DeleteSectionResponse, DomainEvent, DomainEventBodyOneOf, DuplicateSectionRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListSectionsRequest, MessageEnvelope, Page, QuerySectionsRequest, QuerySectionsResponse, RestoreInfo, SectionsQueryResult, SortOrder, Sorting, URI, UpdateSectionRequest, UpdateSectionResponse, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type SectionNonNullablePaths = `name` | `additionalImages` | `itemIds`;
|
|
5
6
|
declare function duplicateSection$1(httpClient: HttpClient): DuplicateSectionSignature;
|
|
6
7
|
interface DuplicateSectionSignature {
|
|
7
8
|
/** @param - Section id to be duplicated. */
|
|
8
|
-
(_id: string, options?: DuplicateSectionOptions
|
|
9
|
+
(_id: string, options?: DuplicateSectionOptions): Promise<NonNullablePaths<DuplicateSectionResponse, `sectionId`>>;
|
|
9
10
|
}
|
|
10
11
|
declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
|
|
11
12
|
interface CreateSectionSignature {
|
|
@@ -18,7 +19,7 @@ interface CreateSectionSignature {
|
|
|
18
19
|
* @param - Section details.
|
|
19
20
|
* @returns Section.
|
|
20
21
|
*/
|
|
21
|
-
(section: Section): Promise<Section
|
|
22
|
+
(section: Section): Promise<NonNullablePaths<Section, SectionNonNullablePaths>>;
|
|
22
23
|
}
|
|
23
24
|
declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
|
|
24
25
|
interface BulkCreateSectionsSignature {
|
|
@@ -28,7 +29,9 @@ interface BulkCreateSectionsSignature {
|
|
|
28
29
|
* Creates multiple sections at once.
|
|
29
30
|
* @param - Sections details.
|
|
30
31
|
*/
|
|
31
|
-
(sections: Section[], options?: BulkCreateSectionsOptions
|
|
32
|
+
(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` | {
|
|
33
|
+
[P in SectionNonNullablePaths]: `results.${number}.item.${P}`;
|
|
34
|
+
}[SectionNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
32
35
|
}
|
|
33
36
|
declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
34
37
|
interface GetSectionSignature {
|
|
@@ -39,7 +42,7 @@ interface GetSectionSignature {
|
|
|
39
42
|
* @param - Section ID.
|
|
40
43
|
* @returns Section.
|
|
41
44
|
*/
|
|
42
|
-
(sectionId: string): Promise<Section
|
|
45
|
+
(sectionId: string): Promise<NonNullablePaths<Section, SectionNonNullablePaths>>;
|
|
43
46
|
}
|
|
44
47
|
declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
|
|
45
48
|
interface ListSectionsSignature {
|
|
@@ -48,7 +51,9 @@ interface ListSectionsSignature {
|
|
|
48
51
|
*
|
|
49
52
|
* Retrieves a list of up to 500 sections.
|
|
50
53
|
*/
|
|
51
|
-
(options?: ListSectionsOptions
|
|
54
|
+
(options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, {
|
|
55
|
+
[P in SectionNonNullablePaths]: `sections.${number}.${P}`;
|
|
56
|
+
}[SectionNonNullablePaths]>>;
|
|
52
57
|
}
|
|
53
58
|
declare function querySections$1(httpClient: HttpClient): QuerySectionsSignature;
|
|
54
59
|
interface QuerySectionsSignature {
|
|
@@ -80,7 +85,7 @@ interface UpdateSectionSignature {
|
|
|
80
85
|
* @param - Section ID.
|
|
81
86
|
* @returns Updated section.
|
|
82
87
|
*/
|
|
83
|
-
(_id: string, section: UpdateSection): Promise<Section
|
|
88
|
+
(_id: string, section: NonNullablePaths<UpdateSection, `revision`>): Promise<NonNullablePaths<Section, SectionNonNullablePaths>>;
|
|
84
89
|
}
|
|
85
90
|
declare function bulkUpdateSection$1(httpClient: HttpClient): BulkUpdateSectionSignature;
|
|
86
91
|
interface BulkUpdateSectionSignature {
|
|
@@ -92,7 +97,9 @@ interface BulkUpdateSectionSignature {
|
|
|
92
97
|
* Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.
|
|
93
98
|
* @param - Sections to update.
|
|
94
99
|
*/
|
|
95
|
-
(sections: MaskedSection[], options?: BulkUpdateSectionOptions
|
|
100
|
+
(sections: NonNullablePaths<MaskedSection, `section._id` | `section.revision`>[], options?: BulkUpdateSectionOptions): Promise<NonNullablePaths<BulkUpdateSectionResponse, `results` | `results.${number}.sectionMetadata.originalIndex` | `results.${number}.sectionMetadata.success` | `results.${number}.sectionMetadata.error.code` | `results.${number}.sectionMetadata.error.description` | {
|
|
101
|
+
[P in SectionNonNullablePaths]: `results.${number}.section.${P}`;
|
|
102
|
+
}[SectionNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
96
103
|
}
|
|
97
104
|
declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
|
|
98
105
|
interface DeleteSectionSignature {
|
|
@@ -112,7 +119,7 @@ interface BulkDeleteSectionsSignature {
|
|
|
112
119
|
* Deletes multiple sections at once.
|
|
113
120
|
* @param - Section IDs.
|
|
114
121
|
*/
|
|
115
|
-
(ids: string[]): Promise<BulkDeleteSectionsResponse
|
|
122
|
+
(ids: string[]): Promise<NonNullablePaths<BulkDeleteSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
116
123
|
}
|
|
117
124
|
declare const onSectionCreated$1: EventDefinition<SectionCreatedEnvelope, "wix.restaurants.menus.v1.section_created">;
|
|
118
125
|
declare const onSectionDeleted$1: EventDefinition<SectionDeletedEnvelope, "wix.restaurants.menus.v1.section_deleted">;
|