@wix/auto_sdk_members_members-about 1.0.40 → 1.0.42

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 +53 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +108 -4
  5. package/build/cjs/index.typings.js +35 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +47 -3
  8. package/build/cjs/meta.js +8 -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 +52 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +108 -4
  14. package/build/es/index.typings.mjs +33 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +47 -3
  17. package/build/es/meta.mjs +7 -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 +53 -1
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +108 -4
  23. package/build/internal/cjs/index.typings.js +35 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +47 -3
  26. package/build/internal/cjs/meta.js +8 -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 +52 -1
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +108 -4
  32. package/build/internal/es/index.typings.mjs +33 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +47 -3
  35. package/build/internal/es/meta.mjs +7 -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.js';
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.js';
2
+ import { MemberAbout, UpdateMemberAbout, GetMyMemberAboutResponse, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutUpdatedEnvelope, MemberAboutsQueryBuilder, MemberAboutQuery, typedQueryMemberAbouts } from './index.typings.js';
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, DesignTarget, DesignTargetWithLiterals, 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.js';
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 };
@@ -27,6 +27,7 @@ __export(index_exports, {
27
27
  ButtonDataType: () => ButtonDataType,
28
28
  Crop: () => Crop,
29
29
  DecorationType: () => DecorationType,
30
+ DesignTarget: () => DesignTarget,
30
31
  Direction: () => Direction,
31
32
  DividerDataAlignment: () => DividerDataAlignment,
32
33
  FontType: () => FontType,
@@ -830,6 +831,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
830
831
  DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
831
832
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
832
833
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
834
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
833
835
  return DecorationType2;
834
836
  })(DecorationType || {});
835
837
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -930,6 +932,11 @@ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
930
932
  ResponsivenessBehaviour2["WRAP"] = "WRAP";
931
933
  return ResponsivenessBehaviour2;
932
934
  })(ResponsivenessBehaviour || {});
935
+ var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
936
+ DesignTarget2["LAYOUT"] = "LAYOUT";
937
+ DesignTarget2["CELL"] = "CELL";
938
+ return DesignTarget2;
939
+ })(DesignTarget || {});
933
940
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
934
941
  SortOrder2["ASC"] = "ASC";
935
942
  SortOrder2["DESC"] = "DESC";
@@ -1117,6 +1124,31 @@ function queryMemberAbouts2() {
1117
1124
  transformationPaths: {}
1118
1125
  });
1119
1126
  }
1127
+ async function typedQueryMemberAbouts(query) {
1128
+ const { httpClient, sideEffects } = arguments[1];
1129
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
1130
+ const reqOpts = queryMemberAbouts(payload);
1131
+ sideEffects?.onSiteCall?.();
1132
+ try {
1133
+ const result = await httpClient.request(reqOpts);
1134
+ sideEffects?.onSuccess?.(result);
1135
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1136
+ "memberAbouts.content"
1137
+ ]);
1138
+ } catch (err) {
1139
+ const transformedError = (0, import_transform_error.transformError)(
1140
+ err,
1141
+ {
1142
+ spreadPathsToArguments: {},
1143
+ explicitPathsToArguments: { query: "$[0]" },
1144
+ singleArgumentUnchanged: false
1145
+ },
1146
+ ["query"]
1147
+ );
1148
+ sideEffects?.onError?.(err);
1149
+ throw transformedError;
1150
+ }
1151
+ }
1120
1152
 
1121
1153
  // src/members-about-v2-member-about-members-about.public.ts
1122
1154
  function createMemberAbout3(httpClient) {
@@ -1160,6 +1192,13 @@ function queryMemberAbouts3(httpClient) {
1160
1192
  { httpClient }
1161
1193
  );
1162
1194
  }
1195
+ function typedQueryMemberAbouts2(httpClient) {
1196
+ return (query) => typedQueryMemberAbouts(
1197
+ query,
1198
+ // @ts-ignore
1199
+ { httpClient }
1200
+ );
1201
+ }
1163
1202
  var onMemberAboutCreated = (0, import_sdk_types.EventDefinition)(
1164
1203
  "wix.members.about.v2.member_about_created",
1165
1204
  true,
@@ -1320,12 +1359,24 @@ var onMemberAboutUpdated = (0, import_sdk_types.EventDefinition)(
1320
1359
  // src/members-about-v2-member-about-members-about.context.ts
1321
1360
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1322
1361
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1362
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1363
+ function customQueryMemberAbouts(httpClient) {
1364
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
1365
+ builderQueryFunction: () => queryMemberAbouts3(httpClient)(),
1366
+ typedQueryFunction: (query) => typedQueryMemberAbouts2(httpClient)(query),
1367
+ hasOptionsParameter: false
1368
+ });
1369
+ function overloadedQuery(query) {
1370
+ return router(...arguments);
1371
+ }
1372
+ return overloadedQuery;
1373
+ }
1323
1374
  var createMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMemberAbout3);
1324
1375
  var updateMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateMemberAbout3);
1325
1376
  var deleteMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteMemberAbout3);
1326
1377
  var getMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMemberAbout3);
1327
1378
  var getMyMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMyMemberAbout3);
1328
- var queryMemberAbouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryMemberAbouts3);
1379
+ var queryMemberAbouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryMemberAbouts);
1329
1380
  var onMemberAboutCreated2 = (0, import_event_definition_modules.createEventModule)(
1330
1381
  onMemberAboutCreated
1331
1382
  );
@@ -1344,6 +1395,7 @@ var onMemberAboutUpdated2 = (0, import_event_definition_modules.createEventModul
1344
1395
  ButtonDataType,
1345
1396
  Crop,
1346
1397
  DecorationType,
1398
+ DesignTarget,
1347
1399
  Direction,
1348
1400
  DividerDataAlignment,
1349
1401
  FontType,