@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.
- package/build/cjs/index.d.ts +8 -21
- package/build/cjs/index.js +46 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +98 -4
- package/build/cjs/index.typings.js +28 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +37 -3
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -21
- package/build/es/index.mjs +46 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +98 -4
- package/build/es/index.typings.mjs +27 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +37 -3
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -21
- package/build/internal/cjs/index.js +46 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +98 -4
- package/build/internal/cjs/index.typings.js +28 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +37 -3
- package/build/internal/cjs/meta.js +1 -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 +46 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +98 -4
- package/build/internal/es/index.typings.mjs +27 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +37 -3
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.d.ts
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.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, 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
|
|
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/cjs/index.js
CHANGED
|
@@ -830,6 +830,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
830
830
|
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
831
831
|
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
832
832
|
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
833
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
833
834
|
return DecorationType2;
|
|
834
835
|
})(DecorationType || {});
|
|
835
836
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1117,6 +1118,31 @@ function queryMemberAbouts2() {
|
|
|
1117
1118
|
transformationPaths: {}
|
|
1118
1119
|
});
|
|
1119
1120
|
}
|
|
1121
|
+
async function typedQueryMemberAbouts(query) {
|
|
1122
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1123
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
|
|
1124
|
+
const reqOpts = queryMemberAbouts(payload);
|
|
1125
|
+
sideEffects?.onSiteCall?.();
|
|
1126
|
+
try {
|
|
1127
|
+
const result = await httpClient.request(reqOpts);
|
|
1128
|
+
sideEffects?.onSuccess?.(result);
|
|
1129
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
|
|
1130
|
+
"memberAbouts.content"
|
|
1131
|
+
]);
|
|
1132
|
+
} catch (err) {
|
|
1133
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1134
|
+
err,
|
|
1135
|
+
{
|
|
1136
|
+
spreadPathsToArguments: {},
|
|
1137
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1138
|
+
singleArgumentUnchanged: false
|
|
1139
|
+
},
|
|
1140
|
+
["query"]
|
|
1141
|
+
);
|
|
1142
|
+
sideEffects?.onError?.(err);
|
|
1143
|
+
throw transformedError;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1120
1146
|
|
|
1121
1147
|
// src/members-about-v2-member-about-members-about.public.ts
|
|
1122
1148
|
function createMemberAbout3(httpClient) {
|
|
@@ -1160,6 +1186,13 @@ function queryMemberAbouts3(httpClient) {
|
|
|
1160
1186
|
{ httpClient }
|
|
1161
1187
|
);
|
|
1162
1188
|
}
|
|
1189
|
+
function typedQueryMemberAbouts2(httpClient) {
|
|
1190
|
+
return (query) => typedQueryMemberAbouts(
|
|
1191
|
+
query,
|
|
1192
|
+
// @ts-ignore
|
|
1193
|
+
{ httpClient }
|
|
1194
|
+
);
|
|
1195
|
+
}
|
|
1163
1196
|
var onMemberAboutCreated = (0, import_sdk_types.EventDefinition)(
|
|
1164
1197
|
"wix.members.about.v2.member_about_created",
|
|
1165
1198
|
true,
|
|
@@ -1320,12 +1353,24 @@ var onMemberAboutUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1320
1353
|
// src/members-about-v2-member-about-members-about.context.ts
|
|
1321
1354
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1322
1355
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1356
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1357
|
+
function customQueryMemberAbouts(httpClient) {
|
|
1358
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1359
|
+
builderQueryFunction: () => queryMemberAbouts3(httpClient)(),
|
|
1360
|
+
typedQueryFunction: (query) => typedQueryMemberAbouts2(httpClient)(query),
|
|
1361
|
+
hasOptionsParameter: false
|
|
1362
|
+
});
|
|
1363
|
+
function overloadedQuery(query) {
|
|
1364
|
+
return router(...arguments);
|
|
1365
|
+
}
|
|
1366
|
+
return overloadedQuery;
|
|
1367
|
+
}
|
|
1323
1368
|
var createMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMemberAbout3);
|
|
1324
1369
|
var updateMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateMemberAbout3);
|
|
1325
1370
|
var deleteMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteMemberAbout3);
|
|
1326
1371
|
var getMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMemberAbout3);
|
|
1327
1372
|
var getMyMemberAbout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMyMemberAbout3);
|
|
1328
|
-
var queryMemberAbouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
1373
|
+
var queryMemberAbouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryMemberAbouts);
|
|
1329
1374
|
var onMemberAboutCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1330
1375
|
onMemberAboutCreated
|
|
1331
1376
|
);
|