@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.
- package/build/cjs/index.d.ts +8 -21
- package/build/cjs/index.js +53 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +108 -4
- package/build/cjs/index.typings.js +35 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -3
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -21
- package/build/es/index.mjs +52 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +108 -4
- package/build/es/index.typings.mjs +33 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -3
- package/build/es/meta.mjs +7 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -21
- package/build/internal/cjs/index.js +53 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +108 -4
- package/build/internal/cjs/index.typings.js +35 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -3
- package/build/internal/cjs/meta.js +8 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -21
- package/build/internal/es/index.mjs +52 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +108 -4
- package/build/internal/es/index.typings.mjs +33 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -3
- package/build/internal/es/meta.mjs +7 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { MemberAbout, UpdateMemberAbout, GetMyMemberAboutResponse,
|
|
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, 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.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
|
|
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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -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) => {
|
|
@@ -856,6 +857,11 @@ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
|
|
|
856
857
|
ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
857
858
|
return ResponsivenessBehaviour2;
|
|
858
859
|
})(ResponsivenessBehaviour || {});
|
|
860
|
+
var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
|
|
861
|
+
DesignTarget2["LAYOUT"] = "LAYOUT";
|
|
862
|
+
DesignTarget2["CELL"] = "CELL";
|
|
863
|
+
return DesignTarget2;
|
|
864
|
+
})(DesignTarget || {});
|
|
859
865
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
860
866
|
SortOrder2["ASC"] = "ASC";
|
|
861
867
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1043,6 +1049,31 @@ function queryMemberAbouts2() {
|
|
|
1043
1049
|
transformationPaths: {}
|
|
1044
1050
|
});
|
|
1045
1051
|
}
|
|
1052
|
+
async function typedQueryMemberAbouts(query) {
|
|
1053
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1054
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query }, []);
|
|
1055
|
+
const reqOpts = queryMemberAbouts(payload);
|
|
1056
|
+
sideEffects?.onSiteCall?.();
|
|
1057
|
+
try {
|
|
1058
|
+
const result = await httpClient.request(reqOpts);
|
|
1059
|
+
sideEffects?.onSuccess?.(result);
|
|
1060
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data, [
|
|
1061
|
+
"memberAbouts.content"
|
|
1062
|
+
]);
|
|
1063
|
+
} catch (err) {
|
|
1064
|
+
const transformedError = sdkTransformError(
|
|
1065
|
+
err,
|
|
1066
|
+
{
|
|
1067
|
+
spreadPathsToArguments: {},
|
|
1068
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1069
|
+
singleArgumentUnchanged: false
|
|
1070
|
+
},
|
|
1071
|
+
["query"]
|
|
1072
|
+
);
|
|
1073
|
+
sideEffects?.onError?.(err);
|
|
1074
|
+
throw transformedError;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1046
1077
|
|
|
1047
1078
|
// src/members-about-v2-member-about-members-about.public.ts
|
|
1048
1079
|
function createMemberAbout3(httpClient) {
|
|
@@ -1086,6 +1117,13 @@ function queryMemberAbouts3(httpClient) {
|
|
|
1086
1117
|
{ httpClient }
|
|
1087
1118
|
);
|
|
1088
1119
|
}
|
|
1120
|
+
function typedQueryMemberAbouts2(httpClient) {
|
|
1121
|
+
return (query) => typedQueryMemberAbouts(
|
|
1122
|
+
query,
|
|
1123
|
+
// @ts-ignore
|
|
1124
|
+
{ httpClient }
|
|
1125
|
+
);
|
|
1126
|
+
}
|
|
1089
1127
|
var onMemberAboutCreated = EventDefinition(
|
|
1090
1128
|
"wix.members.about.v2.member_about_created",
|
|
1091
1129
|
true,
|
|
@@ -1246,12 +1284,24 @@ var onMemberAboutUpdated = EventDefinition(
|
|
|
1246
1284
|
// src/members-about-v2-member-about-members-about.context.ts
|
|
1247
1285
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1248
1286
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1287
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
1288
|
+
function customQueryMemberAbouts(httpClient) {
|
|
1289
|
+
const router = createQueryOverloadRouter({
|
|
1290
|
+
builderQueryFunction: () => queryMemberAbouts3(httpClient)(),
|
|
1291
|
+
typedQueryFunction: (query) => typedQueryMemberAbouts2(httpClient)(query),
|
|
1292
|
+
hasOptionsParameter: false
|
|
1293
|
+
});
|
|
1294
|
+
function overloadedQuery(query) {
|
|
1295
|
+
return router(...arguments);
|
|
1296
|
+
}
|
|
1297
|
+
return overloadedQuery;
|
|
1298
|
+
}
|
|
1249
1299
|
var createMemberAbout4 = /* @__PURE__ */ createRESTModule(createMemberAbout3);
|
|
1250
1300
|
var updateMemberAbout4 = /* @__PURE__ */ createRESTModule(updateMemberAbout3);
|
|
1251
1301
|
var deleteMemberAbout4 = /* @__PURE__ */ createRESTModule(deleteMemberAbout3);
|
|
1252
1302
|
var getMemberAbout4 = /* @__PURE__ */ createRESTModule(getMemberAbout3);
|
|
1253
1303
|
var getMyMemberAbout4 = /* @__PURE__ */ createRESTModule(getMyMemberAbout3);
|
|
1254
|
-
var queryMemberAbouts4 = /* @__PURE__ */ createRESTModule(
|
|
1304
|
+
var queryMemberAbouts4 = /* @__PURE__ */ createRESTModule(customQueryMemberAbouts);
|
|
1255
1305
|
var onMemberAboutCreated2 = createEventModule(
|
|
1256
1306
|
onMemberAboutCreated
|
|
1257
1307
|
);
|
|
@@ -1269,6 +1319,7 @@ export {
|
|
|
1269
1319
|
ButtonDataType,
|
|
1270
1320
|
Crop,
|
|
1271
1321
|
DecorationType,
|
|
1322
|
+
DesignTarget,
|
|
1272
1323
|
Direction,
|
|
1273
1324
|
DividerDataAlignment,
|
|
1274
1325
|
FontType,
|