@wix/auto_sdk_stores_info-sections-v-3 1.0.26 → 1.0.27
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 +23 -14
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +23 -14
- package/build/es/index.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +23 -14
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/es/index.d.mts +23 -14
- package/build/internal/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { InfoSection, CreateInfoSectionValidationErrors, GetInfoSectionOptions, GetOrCreateInfoSectionOptions, GetOrCreateInfoSectionResponse, GetOrCreateInfoSectionValidationErrors, BulkGetOrCreateInfoSectionsOptions, BulkGetOrCreateInfoSectionsResponse, BulkGetOrCreateInfoSectionsValidationErrors, UpdateInfoSection, UpdateInfoSectionOptions, QueryInfoSectionsOptions, InfoSectionsQueryBuilder, BulkCreateInfoSectionsOptions, BulkCreateInfoSectionsResponse, BulkCreateInfoSectionsValidationErrors, MaskedInfoSection, BulkUpdateInfoSectionsOptions, BulkUpdateInfoSectionsResponse, BulkDeleteInfoSectionsResponse, InfoSectionCreatedEnvelope, InfoSectionDeletedEnvelope, InfoSectionUpdatedEnvelope } from './index.typings.js';
|
|
3
3
|
export { ActionEvent, Alignment, AnchorData, App, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, ApplicationError, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateInfoSectionsRequest, BulkDeleteInfoSectionsRequest, BulkGetOrCreateInfoSectionsRequest, BulkInfoSectionItemResult, BulkInfoSectionResult, BulkUpdateInfoSectionsRequest, BulletedListData, ButtonData, CaptionData, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CreateInfoSectionRequest, CreateInfoSectionResponse, Crop, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, Decoration, DecorationDataOneOf, DecorationType, DeleteInfoSectionRequest, DeleteInfoSectionResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, File, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetInfoSectionRequest, GetInfoSectionResponse, GetOrCreateInfoSectionRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InfoSectionForGetOrCreate, InfoSectionsQueryResult, InitialExpandedItems, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, PDFSettings, Page, ParagraphData, Permissions, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, Position, QueryInfoSectionsRequest, QueryInfoSectionsResponse, Rel, RequestedFields, RestoreInfo, RichContent, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Styles, StylesBorder, TableCellData, TableData, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, URI, UpdateInfoSectionRequest, UpdateInfoSectionResponse, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type InfoSectionNonNullablePaths = `uniqueName` | `title`;
|
|
5
6
|
declare function createInfoSection$1(httpClient: HttpClient): CreateInfoSectionSignature;
|
|
6
7
|
interface CreateInfoSectionSignature {
|
|
7
8
|
/**
|
|
@@ -13,8 +14,8 @@ interface CreateInfoSectionSignature {
|
|
|
13
14
|
* @param - Info section to create.
|
|
14
15
|
* @returns Created info section.
|
|
15
16
|
*/
|
|
16
|
-
(infoSection: InfoSection): Promise<InfoSection & {
|
|
17
|
-
__validationErrorsType?: CreateInfoSectionValidationErrors
|
|
17
|
+
(infoSection: NonNullablePaths<InfoSection, `title` | `uniqueName`>): Promise<NonNullablePaths<InfoSection, InfoSectionNonNullablePaths> & {
|
|
18
|
+
__validationErrorsType?: CreateInfoSectionValidationErrors;
|
|
18
19
|
}>;
|
|
19
20
|
}
|
|
20
21
|
declare function getInfoSection$1(httpClient: HttpClient): GetInfoSectionSignature;
|
|
@@ -24,7 +25,7 @@ interface GetInfoSectionSignature {
|
|
|
24
25
|
* @param - Info section ID.
|
|
25
26
|
* @returns Info section.
|
|
26
27
|
*/
|
|
27
|
-
(infoSectionId: string, options?: GetInfoSectionOptions
|
|
28
|
+
(infoSectionId: string, options?: GetInfoSectionOptions): Promise<NonNullablePaths<InfoSection, InfoSectionNonNullablePaths>>;
|
|
28
29
|
}
|
|
29
30
|
declare function getOrCreateInfoSection$1(httpClient: HttpClient): GetOrCreateInfoSectionSignature;
|
|
30
31
|
interface GetOrCreateInfoSectionSignature {
|
|
@@ -33,8 +34,10 @@ interface GetOrCreateInfoSectionSignature {
|
|
|
33
34
|
*
|
|
34
35
|
* > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
|
|
35
36
|
*/
|
|
36
|
-
(options?: GetOrCreateInfoSectionOptions
|
|
37
|
-
|
|
37
|
+
(options?: GetOrCreateInfoSectionOptions): Promise<NonNullablePaths<GetOrCreateInfoSectionResponse, {
|
|
38
|
+
[P in InfoSectionNonNullablePaths]: `infoSection.${P}`;
|
|
39
|
+
}[InfoSectionNonNullablePaths]> & {
|
|
40
|
+
__validationErrorsType?: GetOrCreateInfoSectionValidationErrors;
|
|
38
41
|
}>;
|
|
39
42
|
}
|
|
40
43
|
declare function bulkGetOrCreateInfoSections$1(httpClient: HttpClient): BulkGetOrCreateInfoSectionsSignature;
|
|
@@ -44,8 +47,10 @@ interface BulkGetOrCreateInfoSectionsSignature {
|
|
|
44
47
|
*
|
|
45
48
|
* > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
|
|
46
49
|
*/
|
|
47
|
-
(options?: BulkGetOrCreateInfoSectionsOptions
|
|
48
|
-
|
|
50
|
+
(options?: BulkGetOrCreateInfoSectionsOptions): Promise<NonNullablePaths<BulkGetOrCreateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
51
|
+
[P in InfoSectionNonNullablePaths]: `results.${number}.item.${P}`;
|
|
52
|
+
}[InfoSectionNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
53
|
+
__validationErrorsType?: BulkGetOrCreateInfoSectionsValidationErrors;
|
|
49
54
|
}>;
|
|
50
55
|
}
|
|
51
56
|
declare function updateInfoSection$1(httpClient: HttpClient): UpdateInfoSectionSignature;
|
|
@@ -60,7 +65,7 @@ interface UpdateInfoSectionSignature {
|
|
|
60
65
|
* @param - Info section ID.
|
|
61
66
|
* @returns Updated info section.
|
|
62
67
|
*/
|
|
63
|
-
(_id: string, infoSection: UpdateInfoSection, options?: UpdateInfoSectionOptions
|
|
68
|
+
(_id: string, infoSection: NonNullablePaths<UpdateInfoSection, `revision`>, options?: UpdateInfoSectionOptions): Promise<NonNullablePaths<InfoSection, InfoSectionNonNullablePaths>>;
|
|
64
69
|
}
|
|
65
70
|
declare function deleteInfoSection$1(httpClient: HttpClient): DeleteInfoSectionSignature;
|
|
66
71
|
interface DeleteInfoSectionSignature {
|
|
@@ -91,7 +96,7 @@ interface QueryInfoSectionsSignature {
|
|
|
91
96
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
92
97
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
93
98
|
*/
|
|
94
|
-
(options?: QueryInfoSectionsOptions
|
|
99
|
+
(options?: QueryInfoSectionsOptions): InfoSectionsQueryBuilder;
|
|
95
100
|
}
|
|
96
101
|
declare function bulkCreateInfoSections$1(httpClient: HttpClient): BulkCreateInfoSectionsSignature;
|
|
97
102
|
interface BulkCreateInfoSectionsSignature {
|
|
@@ -99,8 +104,10 @@ interface BulkCreateInfoSectionsSignature {
|
|
|
99
104
|
* Creates multiple info sections.
|
|
100
105
|
* @param - Info sections to create.
|
|
101
106
|
*/
|
|
102
|
-
(infoSections: InfoSection[], options?: BulkCreateInfoSectionsOptions
|
|
103
|
-
|
|
107
|
+
(infoSections: NonNullablePaths<InfoSection, `title` | `uniqueName`>[], options?: BulkCreateInfoSectionsOptions): Promise<NonNullablePaths<BulkCreateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
108
|
+
[P in InfoSectionNonNullablePaths]: `results.${number}.item.${P}`;
|
|
109
|
+
}[InfoSectionNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
110
|
+
__validationErrorsType?: BulkCreateInfoSectionsValidationErrors;
|
|
104
111
|
}>;
|
|
105
112
|
}
|
|
106
113
|
declare function bulkUpdateInfoSections$1(httpClient: HttpClient): BulkUpdateInfoSectionsSignature;
|
|
@@ -113,7 +120,9 @@ interface BulkUpdateInfoSectionsSignature {
|
|
|
113
120
|
* This ensures you're working with the latest info section and prevents unintended overwrites.
|
|
114
121
|
* @param - List of info sections to update.
|
|
115
122
|
*/
|
|
116
|
-
(infoSections: MaskedInfoSection[], options?: BulkUpdateInfoSectionsOptions
|
|
123
|
+
(infoSections: NonNullablePaths<MaskedInfoSection, `infoSection._id` | `infoSection.revision`>[], options?: BulkUpdateInfoSectionsOptions): Promise<NonNullablePaths<BulkUpdateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
124
|
+
[P in InfoSectionNonNullablePaths]: `results.${number}.item.${P}`;
|
|
125
|
+
}[InfoSectionNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
117
126
|
}
|
|
118
127
|
declare function bulkDeleteInfoSections$1(httpClient: HttpClient): BulkDeleteInfoSectionsSignature;
|
|
119
128
|
interface BulkDeleteInfoSectionsSignature {
|
|
@@ -121,7 +130,7 @@ interface BulkDeleteInfoSectionsSignature {
|
|
|
121
130
|
* Deletes multiple info sections.
|
|
122
131
|
* @param - IDs of info sections to delete.
|
|
123
132
|
*/
|
|
124
|
-
(infoSectionIds: string[]): Promise<BulkDeleteInfoSectionsResponse
|
|
133
|
+
(infoSectionIds: string[]): Promise<NonNullablePaths<BulkDeleteInfoSectionsResponse, `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`>>;
|
|
125
134
|
}
|
|
126
135
|
declare const onInfoSectionCreated$1: EventDefinition<InfoSectionCreatedEnvelope, "wix.stores.catalog.v3.info_section_created">;
|
|
127
136
|
declare const onInfoSectionDeleted$1: EventDefinition<InfoSectionDeletedEnvelope, "wix.stores.catalog.v3.info_section_deleted">;
|