@wix/auto_sdk_members_members-about 1.0.39 → 1.0.41

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +8 -21
  2. package/build/cjs/index.js +46 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +98 -4
  5. package/build/cjs/index.typings.js +28 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +37 -3
  8. package/build/cjs/meta.js +1 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +8 -21
  11. package/build/es/index.mjs +46 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +98 -4
  14. package/build/es/index.typings.mjs +27 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +37 -3
  17. package/build/es/meta.mjs +1 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +8 -21
  20. package/build/internal/cjs/index.js +46 -1
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +98 -4
  23. package/build/internal/cjs/index.typings.js +28 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +37 -3
  26. package/build/internal/cjs/meta.js +1 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +8 -21
  29. package/build/internal/es/index.mjs +46 -1
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +98 -4
  32. package/build/internal/es/index.typings.mjs +27 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +37 -3
  35. package/build/internal/es/meta.mjs +1 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { MemberAbout, UpdateMemberAbout, GetMyMemberAboutResponse, MemberAboutsQueryBuilder, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutUpdatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CreateMemberAboutRequest, CreateMemberAboutResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteMemberAboutRequest, DeleteMemberAboutResponse, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetMemberAboutRequest, GetMemberAboutResponse, GetMyMemberAboutRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MemberAboutsQueryResult, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, QueryMemberAboutsRequest, QueryMemberAboutsResponse, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UpdateMemberAboutRequest, UpdateMemberAboutResponse, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
2
+ import { MemberAbout, UpdateMemberAbout, GetMyMemberAboutResponse, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutUpdatedEnvelope, MemberAboutsQueryBuilder, MemberAboutQuery, typedQueryMemberAbouts } from './index.typings.mjs';
3
+ export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonQueryWithEntityContext, CreateMemberAboutRequest, CreateMemberAboutResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteMemberAboutRequest, DeleteMemberAboutResponse, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetMemberAboutRequest, GetMemberAboutResponse, GetMyMemberAboutRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MemberAboutQuerySpec, MemberAboutsQueryResult, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, QueryMemberAboutsRequest, QueryMemberAboutsResponse, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UpdateMemberAboutRequest, UpdateMemberAboutResponse, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function createMemberAbout$1(httpClient: HttpClient): CreateMemberAboutSignature;
6
6
  interface CreateMemberAboutSignature {
@@ -49,33 +49,20 @@ interface GetMyMemberAboutSignature {
49
49
  */
50
50
  (): Promise<GetMyMemberAboutResponse>;
51
51
  }
52
- declare function queryMemberAbouts$1(httpClient: HttpClient): QueryMemberAboutsSignature;
53
- interface QueryMemberAboutsSignature {
54
- /**
55
- * Creates a query to retrieve a list of "About" sections.
56
- *
57
- * The `queryMemberAbouts()` method builds a query to retrieve a list of "About" sections and returns a [`MemberAboutsQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/members/members-about/member-abouts-query-builder/eq) object.
58
- *
59
- * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/members/members-about/member-abouts-query-builder/find) method.
60
- *
61
- * You can refine the query by chaining `MemberAboutsQueryBuilder` methods onto the query. `MemberAboutsQueryBuilder` methods enable you to sort, filter, and control the results `queryMemberAbouts()` returns.
62
- *
63
- * `queryMemberAbouts()` runs with these `MemberAboutsQueryBuilder` defaults, which you can override:
64
- *
65
- * - [`limit(50)`](https://dev.wix.com/docs/sdk/backend-modules/members/members-about/member-abouts-query-builder/limit)
66
- */
67
- (): MemberAboutsQueryBuilder;
68
- }
69
52
  declare const onMemberAboutCreated$1: EventDefinition<MemberAboutCreatedEnvelope, "wix.members.about.v2.member_about_created">;
70
53
  declare const onMemberAboutDeleted$1: EventDefinition<MemberAboutDeletedEnvelope, "wix.members.about.v2.member_about_deleted">;
71
54
  declare const onMemberAboutUpdated$1: EventDefinition<MemberAboutUpdatedEnvelope, "wix.members.about.v2.member_about_updated">;
72
55
 
56
+ declare function customQueryMemberAbouts(httpClient: HttpClient): {
57
+ (): MemberAboutsQueryBuilder;
58
+ (query: MemberAboutQuery): ReturnType<typeof typedQueryMemberAbouts>;
59
+ };
73
60
  declare const createMemberAbout: MaybeContext<BuildRESTFunction<typeof createMemberAbout$1> & typeof createMemberAbout$1>;
74
61
  declare const updateMemberAbout: MaybeContext<BuildRESTFunction<typeof updateMemberAbout$1> & typeof updateMemberAbout$1>;
75
62
  declare const deleteMemberAbout: MaybeContext<BuildRESTFunction<typeof deleteMemberAbout$1> & typeof deleteMemberAbout$1>;
76
63
  declare const getMemberAbout: MaybeContext<BuildRESTFunction<typeof getMemberAbout$1> & typeof getMemberAbout$1>;
77
64
  declare const getMyMemberAbout: MaybeContext<BuildRESTFunction<typeof getMyMemberAbout$1> & typeof getMyMemberAbout$1>;
78
- declare const queryMemberAbouts: MaybeContext<BuildRESTFunction<typeof queryMemberAbouts$1> & typeof queryMemberAbouts$1>;
65
+ declare const queryMemberAbouts: MaybeContext<BuildRESTFunction<typeof customQueryMemberAbouts> & typeof customQueryMemberAbouts>;
79
66
  /**
80
67
  * Triggered when a member's "About" section content is created.
81
68
  */
@@ -89,4 +76,4 @@ declare const onMemberAboutDeleted: BuildEventDefinition<typeof onMemberAboutDel
89
76
  */
90
77
  declare const onMemberAboutUpdated: BuildEventDefinition<typeof onMemberAboutUpdated$1> & typeof onMemberAboutUpdated$1;
91
78
 
92
- export { GetMyMemberAboutResponse, MemberAbout, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutUpdatedEnvelope, MemberAboutsQueryBuilder, UpdateMemberAbout, createMemberAbout, deleteMemberAbout, getMemberAbout, getMyMemberAbout, onMemberAboutCreated, onMemberAboutDeleted, onMemberAboutUpdated, queryMemberAbouts, updateMemberAbout };
79
+ export { GetMyMemberAboutResponse, MemberAbout, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutQuery, MemberAboutUpdatedEnvelope, MemberAboutsQueryBuilder, UpdateMemberAbout, createMemberAbout, deleteMemberAbout, getMemberAbout, getMyMemberAbout, onMemberAboutCreated, onMemberAboutDeleted, onMemberAboutUpdated, queryMemberAbouts, updateMemberAbout };
@@ -756,6 +756,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
756
756
  DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
757
757
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
758
758
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
759
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
759
760
  return DecorationType2;
760
761
  })(DecorationType || {});
761
762
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -1043,6 +1044,31 @@ function queryMemberAbouts2() {
1043
1044
  transformationPaths: {}
1044
1045
  });
1045
1046
  }
1047
+ async function typedQueryMemberAbouts(query) {
1048
+ const { httpClient, sideEffects } = arguments[1];
1049
+ const payload = renameKeysFromSDKRequestToRESTRequest({ query }, []);
1050
+ const reqOpts = queryMemberAbouts(payload);
1051
+ sideEffects?.onSiteCall?.();
1052
+ try {
1053
+ const result = await httpClient.request(reqOpts);
1054
+ sideEffects?.onSuccess?.(result);
1055
+ return renameKeysFromRESTResponseToSDKResponse(result.data, [
1056
+ "memberAbouts.content"
1057
+ ]);
1058
+ } catch (err) {
1059
+ const transformedError = sdkTransformError(
1060
+ err,
1061
+ {
1062
+ spreadPathsToArguments: {},
1063
+ explicitPathsToArguments: { query: "$[0]" },
1064
+ singleArgumentUnchanged: false
1065
+ },
1066
+ ["query"]
1067
+ );
1068
+ sideEffects?.onError?.(err);
1069
+ throw transformedError;
1070
+ }
1071
+ }
1046
1072
 
1047
1073
  // src/members-about-v2-member-about-members-about.public.ts
1048
1074
  function createMemberAbout3(httpClient) {
@@ -1086,6 +1112,13 @@ function queryMemberAbouts3(httpClient) {
1086
1112
  { httpClient }
1087
1113
  );
1088
1114
  }
1115
+ function typedQueryMemberAbouts2(httpClient) {
1116
+ return (query) => typedQueryMemberAbouts(
1117
+ query,
1118
+ // @ts-ignore
1119
+ { httpClient }
1120
+ );
1121
+ }
1089
1122
  var onMemberAboutCreated = EventDefinition(
1090
1123
  "wix.members.about.v2.member_about_created",
1091
1124
  true,
@@ -1246,12 +1279,24 @@ var onMemberAboutUpdated = EventDefinition(
1246
1279
  // src/members-about-v2-member-about-members-about.context.ts
1247
1280
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1248
1281
  import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
1282
+ import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
1283
+ function customQueryMemberAbouts(httpClient) {
1284
+ const router = createQueryOverloadRouter({
1285
+ builderQueryFunction: () => queryMemberAbouts3(httpClient)(),
1286
+ typedQueryFunction: (query) => typedQueryMemberAbouts2(httpClient)(query),
1287
+ hasOptionsParameter: false
1288
+ });
1289
+ function overloadedQuery(query) {
1290
+ return router(...arguments);
1291
+ }
1292
+ return overloadedQuery;
1293
+ }
1249
1294
  var createMemberAbout4 = /* @__PURE__ */ createRESTModule(createMemberAbout3);
1250
1295
  var updateMemberAbout4 = /* @__PURE__ */ createRESTModule(updateMemberAbout3);
1251
1296
  var deleteMemberAbout4 = /* @__PURE__ */ createRESTModule(deleteMemberAbout3);
1252
1297
  var getMemberAbout4 = /* @__PURE__ */ createRESTModule(getMemberAbout3);
1253
1298
  var getMyMemberAbout4 = /* @__PURE__ */ createRESTModule(getMyMemberAbout3);
1254
- var queryMemberAbouts4 = /* @__PURE__ */ createRESTModule(queryMemberAbouts3);
1299
+ var queryMemberAbouts4 = /* @__PURE__ */ createRESTModule(customQueryMemberAbouts);
1255
1300
  var onMemberAboutCreated2 = createEventModule(
1256
1301
  onMemberAboutCreated
1257
1302
  );