@wix/auto_sdk_members_members-about 1.0.62 → 1.0.63
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 +5 -15
- package/build/cjs/index.js +20 -249
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +6 -235
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +5 -15
- package/build/es/index.mjs +20 -239
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +6 -225
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -15
- package/build/internal/cjs/index.js +20 -249
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +6 -235
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -15
- package/build/internal/es/index.mjs +20 -239
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +6 -225
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
|
|
|
2
2
|
import { MemberAbout, UpdateMemberAbout, GetMyMemberAboutResponse, MemberAboutCreatedEnvelope, MemberAboutDeletedEnvelope, MemberAboutUpdatedEnvelope, MemberAboutsQueryBuilder, MemberAboutQuery, typedQueryMemberAbouts } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, 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, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListStyle, ListStyleWithLiterals, 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, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, QueryMemberAboutsRequest, QueryMemberAboutsResponse, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, Settings, ShapeData, ShapeDataStyles, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, UpdateMemberAboutRequest, UpdateMemberAboutResponse, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
declare function createMemberAbout$1(httpClient: HttpClient
|
|
6
|
-
validateRequestSchema?: boolean;
|
|
7
|
-
}): CreateMemberAboutSignature;
|
|
5
|
+
declare function createMemberAbout$1(httpClient: HttpClient): CreateMemberAboutSignature;
|
|
8
6
|
interface CreateMemberAboutSignature {
|
|
9
7
|
/**
|
|
10
8
|
* Creates the "About" section content for a member.
|
|
@@ -13,9 +11,7 @@ interface CreateMemberAboutSignature {
|
|
|
13
11
|
*/
|
|
14
12
|
(memberAbout: NonNullablePaths<MemberAbout, `content`, 2>): Promise<MemberAbout>;
|
|
15
13
|
}
|
|
16
|
-
declare function updateMemberAbout$1(httpClient: HttpClient
|
|
17
|
-
validateRequestSchema?: boolean;
|
|
18
|
-
}): UpdateMemberAboutSignature;
|
|
14
|
+
declare function updateMemberAbout$1(httpClient: HttpClient): UpdateMemberAboutSignature;
|
|
19
15
|
interface UpdateMemberAboutSignature {
|
|
20
16
|
/**
|
|
21
17
|
* Updates the "About" section content for a member.
|
|
@@ -26,9 +22,7 @@ interface UpdateMemberAboutSignature {
|
|
|
26
22
|
*/
|
|
27
23
|
(_id: string, memberAbout: NonNullablePaths<UpdateMemberAbout, `content` | `revision`, 2>): Promise<MemberAbout>;
|
|
28
24
|
}
|
|
29
|
-
declare function deleteMemberAbout$1(httpClient: HttpClient
|
|
30
|
-
validateRequestSchema?: boolean;
|
|
31
|
-
}): DeleteMemberAboutSignature;
|
|
25
|
+
declare function deleteMemberAbout$1(httpClient: HttpClient): DeleteMemberAboutSignature;
|
|
32
26
|
interface DeleteMemberAboutSignature {
|
|
33
27
|
/**
|
|
34
28
|
* Deletes the "About" section content for a member.
|
|
@@ -36,9 +30,7 @@ interface DeleteMemberAboutSignature {
|
|
|
36
30
|
*/
|
|
37
31
|
(_id: string): Promise<void>;
|
|
38
32
|
}
|
|
39
|
-
declare function getMemberAbout$1(httpClient: HttpClient
|
|
40
|
-
validateRequestSchema?: boolean;
|
|
41
|
-
}): GetMemberAboutSignature;
|
|
33
|
+
declare function getMemberAbout$1(httpClient: HttpClient): GetMemberAboutSignature;
|
|
42
34
|
interface GetMemberAboutSignature {
|
|
43
35
|
/**
|
|
44
36
|
* Retrieves a member's "About" section content.
|
|
@@ -47,9 +39,7 @@ interface GetMemberAboutSignature {
|
|
|
47
39
|
*/
|
|
48
40
|
(_id: string): Promise<MemberAbout>;
|
|
49
41
|
}
|
|
50
|
-
declare function getMyMemberAbout$1(httpClient: HttpClient
|
|
51
|
-
validateRequestSchema?: boolean;
|
|
52
|
-
}): GetMyMemberAboutSignature;
|
|
42
|
+
declare function getMyMemberAbout$1(httpClient: HttpClient): GetMyMemberAboutSignature;
|
|
53
43
|
interface GetMyMemberAboutSignature {
|
|
54
44
|
/**
|
|
55
45
|
* Retrieves the "About" section content of the current member.
|
package/build/cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// index.ts
|
|
@@ -1041,207 +1031,6 @@ function queryMemberAbouts(payload) {
|
|
|
1041
1031
|
|
|
1042
1032
|
// src/members-about-v2-member-about-members-about.universal.ts
|
|
1043
1033
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1044
|
-
|
|
1045
|
-
// src/members-about-v2-member-about-members-about.schemas.ts
|
|
1046
|
-
var z = __toESM(require("zod"));
|
|
1047
|
-
var CreateMemberAboutRequest = z.object({
|
|
1048
|
-
memberAbout: z.object({
|
|
1049
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1050
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1051
|
-
"Must be a valid GUID"
|
|
1052
|
-
).optional().nullable(),
|
|
1053
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1054
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1055
|
-
).optional().nullable(),
|
|
1056
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1057
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1058
|
-
"Must be a valid GUID"
|
|
1059
|
-
).optional().nullable(),
|
|
1060
|
-
content: z.any().describe(
|
|
1061
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1062
|
-
)
|
|
1063
|
-
}).describe('The "About" section content to create.')
|
|
1064
|
-
});
|
|
1065
|
-
var CreateMemberAboutResponse = z.object({
|
|
1066
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1067
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1068
|
-
"Must be a valid GUID"
|
|
1069
|
-
).optional().nullable(),
|
|
1070
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1071
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1072
|
-
).optional().nullable(),
|
|
1073
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1074
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1075
|
-
"Must be a valid GUID"
|
|
1076
|
-
).optional().nullable(),
|
|
1077
|
-
content: z.any().describe(
|
|
1078
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1079
|
-
).optional()
|
|
1080
|
-
});
|
|
1081
|
-
var UpdateMemberAboutRequest = z.object({
|
|
1082
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1083
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1084
|
-
"Must be a valid GUID"
|
|
1085
|
-
),
|
|
1086
|
-
memberAbout: z.object({
|
|
1087
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1088
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1089
|
-
"Must be a valid GUID"
|
|
1090
|
-
).optional().nullable(),
|
|
1091
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1092
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1093
|
-
),
|
|
1094
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1095
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1096
|
-
"Must be a valid GUID"
|
|
1097
|
-
).optional().nullable(),
|
|
1098
|
-
content: z.any().describe(
|
|
1099
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1100
|
-
)
|
|
1101
|
-
}).describe('The "About" section content to update.')
|
|
1102
|
-
});
|
|
1103
|
-
var UpdateMemberAboutResponse = z.object({
|
|
1104
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1105
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1106
|
-
"Must be a valid GUID"
|
|
1107
|
-
).optional().nullable(),
|
|
1108
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1109
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1110
|
-
).optional().nullable(),
|
|
1111
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1112
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1113
|
-
"Must be a valid GUID"
|
|
1114
|
-
).optional().nullable(),
|
|
1115
|
-
content: z.any().describe(
|
|
1116
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1117
|
-
).optional()
|
|
1118
|
-
});
|
|
1119
|
-
var DeleteMemberAboutRequest = z.object({
|
|
1120
|
-
_id: z.string().describe('ID of the "About" section content to delete.').regex(
|
|
1121
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1122
|
-
"Must be a valid GUID"
|
|
1123
|
-
)
|
|
1124
|
-
});
|
|
1125
|
-
var DeleteMemberAboutResponse = z.object({});
|
|
1126
|
-
var GetMemberAboutRequest = z.object({
|
|
1127
|
-
_id: z.string().describe('ID of the "About" section content to retrieve.').regex(
|
|
1128
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1129
|
-
"Must be a valid GUID"
|
|
1130
|
-
)
|
|
1131
|
-
});
|
|
1132
|
-
var GetMemberAboutResponse = z.object({
|
|
1133
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1134
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1135
|
-
"Must be a valid GUID"
|
|
1136
|
-
).optional().nullable(),
|
|
1137
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1138
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1139
|
-
).optional().nullable(),
|
|
1140
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1141
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1142
|
-
"Must be a valid GUID"
|
|
1143
|
-
).optional().nullable(),
|
|
1144
|
-
content: z.any().describe(
|
|
1145
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1146
|
-
).optional()
|
|
1147
|
-
});
|
|
1148
|
-
var GetMyMemberAboutRequest = z.object({});
|
|
1149
|
-
var GetMyMemberAboutResponse = z.object({
|
|
1150
|
-
memberAbout: z.object({
|
|
1151
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1152
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1153
|
-
"Must be a valid GUID"
|
|
1154
|
-
).optional().nullable(),
|
|
1155
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1156
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1157
|
-
).optional().nullable(),
|
|
1158
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1159
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1160
|
-
"Must be a valid GUID"
|
|
1161
|
-
).optional().nullable(),
|
|
1162
|
-
content: z.any().describe(
|
|
1163
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1164
|
-
).optional()
|
|
1165
|
-
}).describe('The "About" section content of the current member.').optional()
|
|
1166
|
-
});
|
|
1167
|
-
var QueryMemberAboutsRequest = z.object({
|
|
1168
|
-
query: z.object({
|
|
1169
|
-
filter: z.object({
|
|
1170
|
-
_id: z.object({
|
|
1171
|
-
$eq: z.string(),
|
|
1172
|
-
$exists: z.boolean(),
|
|
1173
|
-
$gt: z.string(),
|
|
1174
|
-
$gte: z.string(),
|
|
1175
|
-
$hasAll: z.array(z.string()),
|
|
1176
|
-
$hasSome: z.array(z.string()),
|
|
1177
|
-
$in: z.array(z.string()),
|
|
1178
|
-
$lt: z.string(),
|
|
1179
|
-
$lte: z.string(),
|
|
1180
|
-
$ne: z.string(),
|
|
1181
|
-
$nin: z.array(z.string()),
|
|
1182
|
-
$startsWith: z.string()
|
|
1183
|
-
}).partial().strict().optional(),
|
|
1184
|
-
memberId: z.object({
|
|
1185
|
-
$eq: z.string(),
|
|
1186
|
-
$exists: z.boolean(),
|
|
1187
|
-
$gt: z.string(),
|
|
1188
|
-
$gte: z.string(),
|
|
1189
|
-
$hasAll: z.array(z.string()),
|
|
1190
|
-
$hasSome: z.array(z.string()),
|
|
1191
|
-
$in: z.array(z.string()),
|
|
1192
|
-
$lt: z.string(),
|
|
1193
|
-
$lte: z.string(),
|
|
1194
|
-
$ne: z.string(),
|
|
1195
|
-
$nin: z.array(z.string()),
|
|
1196
|
-
$startsWith: z.string()
|
|
1197
|
-
}).partial().strict().optional(),
|
|
1198
|
-
$and: z.array(z.any()).optional(),
|
|
1199
|
-
$or: z.array(z.any()).optional(),
|
|
1200
|
-
$not: z.any().optional()
|
|
1201
|
-
}).strict().optional(),
|
|
1202
|
-
sort: z.array(z.object({})).optional()
|
|
1203
|
-
}).catchall(z.any()).describe(
|
|
1204
|
-
"Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
|
|
1205
|
-
)
|
|
1206
|
-
});
|
|
1207
|
-
var QueryMemberAboutsResponse = z.object({
|
|
1208
|
-
memberAbouts: z.array(
|
|
1209
|
-
z.object({
|
|
1210
|
-
_id: z.string().describe('ID of the "About" section content.').regex(
|
|
1211
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1212
|
-
"Must be a valid GUID"
|
|
1213
|
-
).optional().nullable(),
|
|
1214
|
-
revision: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
|
|
1215
|
-
'Revision number, which increments by 1 each time the "About" section content is updated. To prevent conflicting changes, the existing revision must be used when updating an "About" section content.'
|
|
1216
|
-
).optional().nullable(),
|
|
1217
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
1218
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1219
|
-
"Must be a valid GUID"
|
|
1220
|
-
).optional().nullable(),
|
|
1221
|
-
content: z.any().describe(
|
|
1222
|
-
'<widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.video.divider.giphy.emoji.link" exampleid="9b569a8d-0fc1-40f4-987f-8bd40ecc72d0">Fallback Message for SSR and Error</widget>.'
|
|
1223
|
-
).optional()
|
|
1224
|
-
})
|
|
1225
|
-
).optional(),
|
|
1226
|
-
metadata: z.object({
|
|
1227
|
-
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
1228
|
-
cursors: z.object({
|
|
1229
|
-
next: z.string().describe(
|
|
1230
|
-
"Cursor string pointing to the next page in the list of results."
|
|
1231
|
-
).max(16e3).optional().nullable(),
|
|
1232
|
-
prev: z.string().describe(
|
|
1233
|
-
"Cursor pointing to the previous page in the list of results."
|
|
1234
|
-
).max(16e3).optional().nullable()
|
|
1235
|
-
}).describe(
|
|
1236
|
-
"Cursor strings that point to the next page, previous page, or both."
|
|
1237
|
-
).optional(),
|
|
1238
|
-
hasNext: z.boolean().describe(
|
|
1239
|
-
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
1240
|
-
).optional().nullable()
|
|
1241
|
-
}).describe("Metadata for the paginated results.").optional()
|
|
1242
|
-
});
|
|
1243
|
-
|
|
1244
|
-
// src/members-about-v2-member-about-members-about.universal.ts
|
|
1245
1034
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
1246
1035
|
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
1247
1036
|
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
@@ -1647,10 +1436,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1647
1436
|
return WebhookIdentityType2;
|
|
1648
1437
|
})(WebhookIdentityType || {});
|
|
1649
1438
|
async function createMemberAbout2(memberAbout) {
|
|
1650
|
-
const { httpClient, sideEffects
|
|
1651
|
-
if (validateRequestSchema) {
|
|
1652
|
-
CreateMemberAboutRequest.parse({ memberAbout });
|
|
1653
|
-
}
|
|
1439
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1654
1440
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
1655
1441
|
{ memberAbout },
|
|
1656
1442
|
["memberAbout.content"]
|
|
@@ -1678,10 +1464,7 @@ async function createMemberAbout2(memberAbout) {
|
|
|
1678
1464
|
}
|
|
1679
1465
|
}
|
|
1680
1466
|
async function updateMemberAbout2(_id, memberAbout) {
|
|
1681
|
-
const { httpClient, sideEffects
|
|
1682
|
-
if (validateRequestSchema) {
|
|
1683
|
-
UpdateMemberAboutRequest.parse({ _id, memberAbout });
|
|
1684
|
-
}
|
|
1467
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1685
1468
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
1686
1469
|
{ memberAbout: { ...memberAbout, id: _id } },
|
|
1687
1470
|
["memberAbout.content"]
|
|
@@ -1709,10 +1492,7 @@ async function updateMemberAbout2(_id, memberAbout) {
|
|
|
1709
1492
|
}
|
|
1710
1493
|
}
|
|
1711
1494
|
async function deleteMemberAbout2(_id) {
|
|
1712
|
-
const { httpClient, sideEffects
|
|
1713
|
-
if (validateRequestSchema) {
|
|
1714
|
-
DeleteMemberAboutRequest.parse({ _id });
|
|
1715
|
-
}
|
|
1495
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1716
1496
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id }, []);
|
|
1717
1497
|
const reqOpts = deleteMemberAbout(payload);
|
|
1718
1498
|
sideEffects?.onSiteCall?.();
|
|
@@ -1734,10 +1514,7 @@ async function deleteMemberAbout2(_id) {
|
|
|
1734
1514
|
}
|
|
1735
1515
|
}
|
|
1736
1516
|
async function getMemberAbout2(_id) {
|
|
1737
|
-
const { httpClient, sideEffects
|
|
1738
|
-
if (validateRequestSchema) {
|
|
1739
|
-
GetMemberAboutRequest.parse({ _id });
|
|
1740
|
-
}
|
|
1517
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1741
1518
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id }, []);
|
|
1742
1519
|
const reqOpts = getMemberAbout(payload);
|
|
1743
1520
|
sideEffects?.onSiteCall?.();
|
|
@@ -1762,10 +1539,7 @@ async function getMemberAbout2(_id) {
|
|
|
1762
1539
|
}
|
|
1763
1540
|
}
|
|
1764
1541
|
async function getMyMemberAbout2() {
|
|
1765
|
-
const { httpClient, sideEffects
|
|
1766
|
-
if (validateRequestSchema) {
|
|
1767
|
-
GetMyMemberAboutRequest.parse({});
|
|
1768
|
-
}
|
|
1542
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1769
1543
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({}, []);
|
|
1770
1544
|
const reqOpts = getMyMemberAbout(payload);
|
|
1771
1545
|
sideEffects?.onSiteCall?.();
|
|
@@ -1836,10 +1610,7 @@ function queryMemberAbouts2() {
|
|
|
1836
1610
|
});
|
|
1837
1611
|
}
|
|
1838
1612
|
async function typedQueryMemberAbouts(query) {
|
|
1839
|
-
const { httpClient, sideEffects
|
|
1840
|
-
if (validateRequestSchema) {
|
|
1841
|
-
QueryMemberAboutsRequest.parse({ query });
|
|
1842
|
-
}
|
|
1613
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1843
1614
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
|
|
1844
1615
|
const reqOpts = queryMemberAbouts(payload);
|
|
1845
1616
|
sideEffects?.onSiteCall?.();
|
|
@@ -1870,52 +1641,52 @@ var utils = {
|
|
|
1870
1641
|
};
|
|
1871
1642
|
|
|
1872
1643
|
// src/members-about-v2-member-about-members-about.public.ts
|
|
1873
|
-
function createMemberAbout3(httpClient
|
|
1644
|
+
function createMemberAbout3(httpClient) {
|
|
1874
1645
|
return (memberAbout) => createMemberAbout2(
|
|
1875
1646
|
memberAbout,
|
|
1876
1647
|
// @ts-ignore
|
|
1877
|
-
{ httpClient
|
|
1648
|
+
{ httpClient }
|
|
1878
1649
|
);
|
|
1879
1650
|
}
|
|
1880
|
-
function updateMemberAbout3(httpClient
|
|
1651
|
+
function updateMemberAbout3(httpClient) {
|
|
1881
1652
|
return (_id, memberAbout) => updateMemberAbout2(
|
|
1882
1653
|
_id,
|
|
1883
1654
|
memberAbout,
|
|
1884
1655
|
// @ts-ignore
|
|
1885
|
-
{ httpClient
|
|
1656
|
+
{ httpClient }
|
|
1886
1657
|
);
|
|
1887
1658
|
}
|
|
1888
|
-
function deleteMemberAbout3(httpClient
|
|
1659
|
+
function deleteMemberAbout3(httpClient) {
|
|
1889
1660
|
return (_id) => deleteMemberAbout2(
|
|
1890
1661
|
_id,
|
|
1891
1662
|
// @ts-ignore
|
|
1892
|
-
{ httpClient
|
|
1663
|
+
{ httpClient }
|
|
1893
1664
|
);
|
|
1894
1665
|
}
|
|
1895
|
-
function getMemberAbout3(httpClient
|
|
1666
|
+
function getMemberAbout3(httpClient) {
|
|
1896
1667
|
return (_id) => getMemberAbout2(
|
|
1897
1668
|
_id,
|
|
1898
1669
|
// @ts-ignore
|
|
1899
|
-
{ httpClient
|
|
1670
|
+
{ httpClient }
|
|
1900
1671
|
);
|
|
1901
1672
|
}
|
|
1902
|
-
function getMyMemberAbout3(httpClient
|
|
1673
|
+
function getMyMemberAbout3(httpClient) {
|
|
1903
1674
|
return () => getMyMemberAbout2(
|
|
1904
1675
|
// @ts-ignore
|
|
1905
|
-
{ httpClient
|
|
1676
|
+
{ httpClient }
|
|
1906
1677
|
);
|
|
1907
1678
|
}
|
|
1908
|
-
function queryMemberAbouts3(httpClient
|
|
1679
|
+
function queryMemberAbouts3(httpClient) {
|
|
1909
1680
|
return () => queryMemberAbouts2(
|
|
1910
1681
|
// @ts-ignore
|
|
1911
|
-
{ httpClient
|
|
1682
|
+
{ httpClient }
|
|
1912
1683
|
);
|
|
1913
1684
|
}
|
|
1914
|
-
function typedQueryMemberAbouts2(httpClient
|
|
1685
|
+
function typedQueryMemberAbouts2(httpClient) {
|
|
1915
1686
|
return (query) => typedQueryMemberAbouts(
|
|
1916
1687
|
query,
|
|
1917
1688
|
// @ts-ignore
|
|
1918
|
-
{ httpClient
|
|
1689
|
+
{ httpClient }
|
|
1919
1690
|
);
|
|
1920
1691
|
}
|
|
1921
1692
|
var onMemberAboutCreated = (0, import_sdk_types.EventDefinition)(
|