@wix/auto_sdk_stores_info-sections-v-3 1.0.41 → 1.0.43

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.
@@ -2958,6 +2958,12 @@ interface InfoSectionsQueryBuilder {
2958
2958
  skipTo: (cursor: string) => InfoSectionsQueryBuilder;
2959
2959
  find: () => Promise<InfoSectionsQueryResult>;
2960
2960
  }
2961
+ /**
2962
+ * @hidden
2963
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.QueryInfoSections
2964
+ * @requiredField query
2965
+ */
2966
+ declare function typedQueryInfoSections(query: CursorQuery, options?: QueryInfoSectionsOptions): Promise<NonNullablePaths<QueryInfoSectionsResponse, `infoSections` | `infoSections.${number}.uniqueName` | `infoSections.${number}.title`, 4>>;
2961
2967
  /**
2962
2968
  * Creates multiple info sections.
2963
2969
  * @param infoSections - Info sections to create.
@@ -3022,4 +3028,4 @@ interface BulkUpdateInfoSectionsOptions {
3022
3028
  */
3023
3029
  declare function bulkDeleteInfoSections(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`, 6>>;
3024
3030
 
3025
- export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type App, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkCreateInfoSectionsOptions, type BulkCreateInfoSectionsRequest, type BulkCreateInfoSectionsResponse, type BulkCreateInfoSectionsValidationErrors, type BulkDeleteInfoSectionsRequest, type BulkDeleteInfoSectionsResponse, type BulkGetOrCreateInfoSectionsOptions, type BulkGetOrCreateInfoSectionsRequest, type BulkGetOrCreateInfoSectionsResponse, type BulkGetOrCreateInfoSectionsValidationErrors, type BulkInfoSectionItemResult, type BulkInfoSectionResult, type BulkUpdateInfoSectionsOptions, type BulkUpdateInfoSectionsRequest, type BulkUpdateInfoSectionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CreateInfoSectionRequest, type CreateInfoSectionResponse, type CreateInfoSectionValidationErrors, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteInfoSectionRequest, type DeleteInfoSectionResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type File, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetInfoSectionOptions, type GetInfoSectionRequest, type GetInfoSectionResponse, type GetOrCreateInfoSectionOptions, type GetOrCreateInfoSectionRequest, type GetOrCreateInfoSectionResponse, type GetOrCreateInfoSectionValidationErrors, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, type InfoSection, type InfoSectionCreatedEnvelope, type InfoSectionDeletedEnvelope, type InfoSectionForGetOrCreate, type InfoSectionUpdatedEnvelope, type InfoSectionsQueryBuilder, type InfoSectionsQueryResult, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MaskedInfoSection, type Media, type MentionData, type MessageEnvelope, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type Page, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type QueryInfoSectionsOptions, type QueryInfoSectionsRequest, type QueryInfoSectionsResponse, type Rel, RequestedFields, type RequestedFieldsWithLiterals, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type URI, type UpdateInfoSection, type UpdateInfoSectionOptions, type UpdateInfoSectionRequest, type UpdateInfoSectionResponse, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkCreateInfoSections, bulkDeleteInfoSections, bulkGetOrCreateInfoSections, bulkUpdateInfoSections, createInfoSection, deleteInfoSection, getInfoSection, getOrCreateInfoSection, onInfoSectionCreated, onInfoSectionDeleted, onInfoSectionUpdated, queryInfoSections, updateInfoSection };
3031
+ export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type App, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkCreateInfoSectionsOptions, type BulkCreateInfoSectionsRequest, type BulkCreateInfoSectionsResponse, type BulkCreateInfoSectionsValidationErrors, type BulkDeleteInfoSectionsRequest, type BulkDeleteInfoSectionsResponse, type BulkGetOrCreateInfoSectionsOptions, type BulkGetOrCreateInfoSectionsRequest, type BulkGetOrCreateInfoSectionsResponse, type BulkGetOrCreateInfoSectionsValidationErrors, type BulkInfoSectionItemResult, type BulkInfoSectionResult, type BulkUpdateInfoSectionsOptions, type BulkUpdateInfoSectionsRequest, type BulkUpdateInfoSectionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CreateInfoSectionRequest, type CreateInfoSectionResponse, type CreateInfoSectionValidationErrors, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteInfoSectionRequest, type DeleteInfoSectionResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type File, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetInfoSectionOptions, type GetInfoSectionRequest, type GetInfoSectionResponse, type GetOrCreateInfoSectionOptions, type GetOrCreateInfoSectionRequest, type GetOrCreateInfoSectionResponse, type GetOrCreateInfoSectionValidationErrors, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, type InfoSection, type InfoSectionCreatedEnvelope, type InfoSectionDeletedEnvelope, type InfoSectionForGetOrCreate, type InfoSectionUpdatedEnvelope, type InfoSectionsQueryBuilder, type InfoSectionsQueryResult, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MaskedInfoSection, type Media, type MentionData, type MessageEnvelope, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type Page, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type QueryInfoSectionsOptions, type QueryInfoSectionsRequest, type QueryInfoSectionsResponse, type Rel, RequestedFields, type RequestedFieldsWithLiterals, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type URI, type UpdateInfoSection, type UpdateInfoSectionOptions, type UpdateInfoSectionRequest, type UpdateInfoSectionResponse, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkCreateInfoSections, bulkDeleteInfoSections, bulkGetOrCreateInfoSections, bulkUpdateInfoSections, createInfoSection, deleteInfoSection, getInfoSection, getOrCreateInfoSection, onInfoSectionCreated, onInfoSectionDeleted, onInfoSectionUpdated, queryInfoSections, typedQueryInfoSections, updateInfoSection };
@@ -73,6 +73,7 @@ __export(index_typings_exports, {
73
73
  getInfoSection: () => getInfoSection2,
74
74
  getOrCreateInfoSection: () => getOrCreateInfoSection2,
75
75
  queryInfoSections: () => queryInfoSections2,
76
+ typedQueryInfoSections: () => typedQueryInfoSections,
76
77
  updateInfoSection: () => updateInfoSection2
77
78
  });
78
79
  module.exports = __toCommonJS(index_typings_exports);
@@ -1777,6 +1778,34 @@ function queryInfoSections2(options) {
1777
1778
  transformationPaths: {}
1778
1779
  });
1779
1780
  }
1781
+ async function typedQueryInfoSections(query, options) {
1782
+ const { httpClient, sideEffects } = arguments[2];
1783
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1784
+ { query, ...options },
1785
+ []
1786
+ );
1787
+ const reqOpts = queryInfoSections(payload);
1788
+ sideEffects?.onSiteCall?.();
1789
+ try {
1790
+ const result = await httpClient.request(reqOpts);
1791
+ sideEffects?.onSuccess?.(result);
1792
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1793
+ "infoSections.description"
1794
+ ]);
1795
+ } catch (err) {
1796
+ const transformedError = (0, import_transform_error.transformError)(
1797
+ err,
1798
+ {
1799
+ spreadPathsToArguments: {},
1800
+ explicitPathsToArguments: { query: "$[0]" },
1801
+ singleArgumentUnchanged: false
1802
+ },
1803
+ ["query", "options"]
1804
+ );
1805
+ sideEffects?.onError?.(err);
1806
+ throw transformedError;
1807
+ }
1808
+ }
1780
1809
  async function bulkCreateInfoSections2(infoSections, options) {
1781
1810
  const { httpClient, sideEffects } = arguments[2];
1782
1811
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
@@ -1925,6 +1954,7 @@ async function bulkDeleteInfoSections2(infoSectionIds) {
1925
1954
  getInfoSection,
1926
1955
  getOrCreateInfoSection,
1927
1956
  queryInfoSections,
1957
+ typedQueryInfoSections,
1928
1958
  updateInfoSection
1929
1959
  });
1930
1960
  //# sourceMappingURL=index.typings.js.map