@goodhood-web/nebenan-base 4.1.0-development.9 → 4.2.0-development.1
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/index.d.ts +8 -2
- package/index.js +102 -93
- package/index.mjs +71120 -69700
- package/lib/Authentication/Registration/VerificationForm/Steps/index.d.ts +2 -1
- package/lib/Authentication/Registration/VerificationForm/VerificationForm.types.d.ts +3 -2
- package/lib/Authentication/Registration/VerificationForm/network.d.ts +2 -1
- package/lib/ComplaintModal/ComplaintModal.types.d.ts +2 -6
- package/lib/ContentCreator/ContentCreator.d.ts +3 -0
- package/lib/ContentCreator/ContentCreator.types.d.ts +18 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +4 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +34 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +13 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +2 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +6 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeFields.type.d.ts +10 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +6 -0
- package/lib/ContentCreator/constants.d.ts +12 -0
- package/lib/ContentCreator/network.d.ts +4 -0
- package/lib/ContentCreator/utils.d.ts +14 -0
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +112 -0
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +628 -0
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +127 -0
- package/lib/ContentCreator/validationSchemas/index.d.ts +7 -0
- package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +127 -0
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +127 -0
- package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +127 -0
- package/lib/ContentCreator/validationSchemas/searchSchema.d.ts +127 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/GridFeedAggregator.d.ts +2 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/GridFeedAggregator.types.d.ts +12 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +3 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +5 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.d.ts +2 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.types.d.ts +8 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/utils.d.ts +2 -0
- package/lib/Feed/Aggregators/GridFeedAggregator/utils.d.ts +1 -0
- package/lib/Feed/Feed/Feed.d.ts +3 -0
- package/lib/Feed/Feed/Feed.types.d.ts +41 -0
- package/lib/Feed/Feed/utils.d.ts +27 -0
- package/lib/Feed/FeedItem/FeedItemComplaintModal/FeedItemComplaintModal.d.ts +2 -0
- package/lib/Feed/FeedItem/FeedItemComplaintModal/FeedItemComplaintModal.types.d.ts +6 -0
- package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceErrorBoundary.d.ts +1 -1
- package/lib/Feed/FeedItem/Post/Post.d.ts +6 -0
- package/lib/Feed/FeedItem/PostReactions/PostReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/PostReactions/PostReactions.types.d.ts +10 -0
- package/lib/Feed/FeedItem/{Reactions/PostReactions → PostReactions}/utils.d.ts +2 -2
- package/lib/Feed/FeedItem/Replies/Reply/Reply.d.ts +2 -0
- package/lib/Feed/FeedItem/Replies/Reply/Reply.types.d.ts +7 -0
- package/lib/Feed/FeedItem/Replies/Reply/utils.d.ts +2 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyBubble.d.ts +3 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyBubble.types.d.ts +10 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyGallery/ReplyGallery.d.ts +5 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyMoreOptions/ReplyMoreOptions.d.ts +10 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyPoi/ReplyPoi.d.ts +7 -0
- package/lib/Feed/FeedItem/Replies/ReplyBubble/utils.d.ts +4 -0
- package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/Like.types.d.ts +4 -5
- package/lib/Feed/FeedItem/Replies/ReplyReactions/ReplyReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/Replies/ReplyReactions/ReplyReactions.types.d.ts +12 -0
- package/lib/Feed/FeedItem/Replies/ReplyReactions/constants.d.ts +5 -0
- package/lib/Feed/FeedItem/Replies/ReplyReactions/network.d.ts +14 -0
- package/lib/Feed/FeedItem/Replies/ReplyReactions/utils.d.ts +22 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.d.ts +3 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.types.d.ts +10 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/network.d.ts +16 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/utils.d.ts +20 -0
- package/lib/Feed/LazyFeed/LazyFeed.d.ts +11 -0
- package/lib/Feed/LazyFeed/MarketplaceSkeleton.d.ts +5 -0
- package/lib/Feed/MarketplaceFeedPage/MarketplaceFeedPage.d.ts +11 -0
- package/lib/Forms/Fields/FormRichTextArea.d.ts +8 -0
- package/lib/Forms/Fields/index.d.ts +2 -1
- package/lib/Forms/Wizard/Wizard.types.d.ts +6 -0
- package/lib/Forms/Wizard/useTrackStepPageView.d.ts +9 -0
- package/lib/ImageCropper/ImageCropper.d.ts +1 -1
- package/lib/ImageCropper/ImageCropper.types.d.ts +9 -2
- package/lib/MainLayout/MainLayout.d.ts +1 -1
- package/lib/MainLayout/MainLayout.types.d.ts +1 -0
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +5 -0
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +6 -0
- package/lib/MarketplaceImageCropper/components/ImageThumbnailGrid/ImageThumbnailGrid.d.ts +10 -0
- package/lib/Profile/Profile.d.ts +1 -1
- package/lib/Profile/Profile.types.d.ts +1 -0
- package/lib/Reactions/ReactionTabList/ReactionTabList.d.ts +1 -1
- package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -2
- package/lib/RichTextArea/RichTextArea.d.ts +1 -1
- package/lib/RichTextArea/RichTextArea.types.d.ts +11 -12
- package/lib/RichTextArea/components/POI/useBusinessProfile.d.ts +1 -1
- package/lib/RichTextArea/lexical/plugins/MentionPlugin.d.ts +1 -3
- package/lib/RichTextArea/lexical/utils.d.ts +4 -7
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +0 -8
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.d.ts +0 -3
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.types.d.ts +0 -13
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.d.ts +0 -3
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.types.d.ts +0 -16
- package/lib/RichTextArea/utils.d.ts +0 -3
- /package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/Like.d.ts +0 -0
- /package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/ReactionLabel/ReactionLabel.d.ts +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { getGpsMethod } from './Gps';
|
|
1
2
|
import { getInviteCodeMethod } from './InviteCode';
|
|
2
3
|
import { getMethods } from './Methods';
|
|
3
4
|
import { getPostalCodeMethod } from './PostalCode';
|
|
4
5
|
import { getPostalCodeRequested } from './PostalCodeRequested';
|
|
5
6
|
import { getSmsMethod } from './Sms';
|
|
6
7
|
import { getSmsCodeMethod } from './SmsCode';
|
|
7
|
-
export { getSmsMethod, getSmsCodeMethod, getPostalCodeMethod, getInviteCodeMethod, getMethods, getPostalCodeRequested, };
|
|
8
|
+
export { getSmsMethod, getSmsCodeMethod, getPostalCodeMethod, getInviteCodeMethod, getGpsMethod, getMethods, getPostalCodeRequested, };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { VerificationMethods, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
1
|
+
import { VerificationGPSResponse, VerificationMethods, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
2
|
+
export type VerificationResponse = VerificationSMSResponse | VerificationGPSResponse;
|
|
2
3
|
export interface VerificationFormProps {
|
|
3
4
|
initialStep?: string | number;
|
|
4
5
|
onFetchProfile: () => Promise<void>;
|
|
5
|
-
onSubmit: (data?:
|
|
6
|
+
onSubmit: (data?: VerificationResponse) => void;
|
|
6
7
|
status: {
|
|
7
8
|
verification_methods: VerificationMethods;
|
|
8
9
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
1
|
+
import { VerificationGPSResponse, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
2
2
|
import { FormField, InferFormData } from '../../../Forms';
|
|
3
3
|
import { OnFormSubmitType } from '../../../Forms/Form/Form.types';
|
|
4
4
|
export declare const handleSmsCodeRequest: (data: OnFormSubmitType<InferFormData<FormField[]>>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean>;
|
|
5
5
|
export declare const handleSmsCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
|
|
6
6
|
export declare const handleInviteCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
|
|
7
7
|
export declare const handlePostalCodeRequest: (onFetchProfile: () => Promise<void>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | "postalCodeRequested">;
|
|
8
|
+
export declare const handleGpsVerification: (onSubmit: (data: VerificationGPSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import { components } from '../../../../api/src/lib/core';
|
|
1
2
|
import { ComplaintReason } from '../../../../api/src/lib/core_v2/public/v1/types';
|
|
2
3
|
export interface ComplaintModalProps {
|
|
3
4
|
complaintReasons?: ComplaintReason[];
|
|
4
5
|
handleModalClick: () => void;
|
|
5
6
|
open: boolean;
|
|
6
|
-
reporter?:
|
|
7
|
-
email: string;
|
|
8
|
-
firstname: string;
|
|
9
|
-
id: number;
|
|
10
|
-
lastname: string;
|
|
11
|
-
};
|
|
7
|
+
reporter?: Omit<components['schemas']['Core_V3_UserProfile'], 'implicit_interests'>;
|
|
12
8
|
subjectId: number;
|
|
13
9
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { components } from '../../../../api/src/lib/core';
|
|
2
|
+
export type PostItem = components['schemas']['Core_V3_Input_HoodMessage'];
|
|
3
|
+
export type FailureError = {
|
|
4
|
+
failures: components['schemas']['Core_V3_Failure_List'];
|
|
5
|
+
};
|
|
6
|
+
export type ContentCreatorProps = {
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
post?: PostItem;
|
|
9
|
+
postId?: number;
|
|
10
|
+
userId?: number;
|
|
11
|
+
};
|
|
12
|
+
export type ContentCreatorFormProps = Pick<ContentCreatorProps, 'imageUrl' | 'userId'> & {
|
|
13
|
+
formError?: string | null;
|
|
14
|
+
isEditMode?: boolean;
|
|
15
|
+
isFormSheetOpen: boolean;
|
|
16
|
+
onFormSheetClose: () => void;
|
|
17
|
+
onFormSheetOpen: () => void;
|
|
18
|
+
};
|
package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContentCreatorFormProps } from '../../ContentCreator.types';
|
|
2
|
+
declare const ContentCreatorFieldsWrapper: ({ formError, imageUrl, isEditMode, isFormSheetOpen, onFormSheetClose, onFormSheetOpen, userId, }: ContentCreatorFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ContentCreatorFieldsWrapper;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ContentProps, FooterProps, HeaderProps } from './ContentFieldsSheet.types';
|
|
2
|
+
export declare const Header: ({ imageUrl, onContentTypeSelectorOpen, onDismiss, userId, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Content: ({ imageUploadClicked, onImageUploadDismiss, onPoiDismiss, poiClicked, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Footer: ({ formError, onImageUploadOpen, onPoiOpen, setReachTypeSelectorOpen, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export type HeaderProps = {
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
onContentTypeSelectorOpen: () => void;
|
|
5
|
+
onDismiss: () => void;
|
|
6
|
+
userId?: number;
|
|
7
|
+
};
|
|
8
|
+
export type ContentProps = {
|
|
9
|
+
imageUploadClicked: boolean;
|
|
10
|
+
onImageUploadDismiss: () => void;
|
|
11
|
+
onPoiDismiss: () => void;
|
|
12
|
+
poiClicked: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type FooterProps = {
|
|
15
|
+
formError?: string | null;
|
|
16
|
+
onImageUploadOpen: () => void;
|
|
17
|
+
onPoiOpen: () => void;
|
|
18
|
+
setReachTypeSelectorOpen: Dispatch<SetStateAction<boolean>>;
|
|
19
|
+
};
|
|
20
|
+
export type Lang = {
|
|
21
|
+
contentTypes: {
|
|
22
|
+
event: string;
|
|
23
|
+
marketplace: string;
|
|
24
|
+
post: string;
|
|
25
|
+
recommendation: string;
|
|
26
|
+
search: string;
|
|
27
|
+
};
|
|
28
|
+
reachTypes: {
|
|
29
|
+
extended: string;
|
|
30
|
+
hood: string;
|
|
31
|
+
public: string;
|
|
32
|
+
};
|
|
33
|
+
submitButton: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Icon32 } from '../../../../../../../../ui/src/lib/Base/Icon/Icon.types';
|
|
2
|
+
export type ContentTypeSheetProps = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onFormSheetOpen: () => void;
|
|
5
|
+
open: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type OptionType = {
|
|
8
|
+
description: string;
|
|
9
|
+
headline: string;
|
|
10
|
+
icon: Icon32;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
export type ContentType = 'post' | 'search' | 'recommendation' | 'event' | 'marketplace';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as ContentTypeField } from './ContentTypeField/ContentTypeField';
|
|
2
|
+
export { default as PostFields } from './PostFields/PostFields';
|
|
3
|
+
export { default as EventFields } from './EventFields/EventField';
|
|
4
|
+
export { default as MarketplaceFields } from './MarketplaceFields/MarketplaceFields';
|
|
5
|
+
export { Header, Content, Footer } from './ContentFieldsSheet/ContentFieldsSheet';
|
|
6
|
+
export { default as ReachTypeField } from './ReachTypeField/ReachTypeField';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { OnFormSubmitType } from '../Forms/Form/Form.types';
|
|
3
|
+
import { ContentFormData } from './validationSchemas';
|
|
4
|
+
export declare const handleSubmit: (data: OnFormSubmitType<ContentFormData>, isEditMode: boolean, onClose: () => void, onReset: () => void, setFormError: Dispatch<SetStateAction<string | null>>, postId?: number | null) => Promise<boolean>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefaultValues } from 'react-hook-form';
|
|
2
|
+
import { FailureError, PostItem } from './ContentCreator.types';
|
|
3
|
+
import { ContentFormData } from './validationSchemas';
|
|
4
|
+
import { ImageFile } from './validationSchemas/commonSchemas';
|
|
5
|
+
export declare const transformBackendFieldError: (error: FailureError) => {
|
|
6
|
+
failures: {
|
|
7
|
+
field: string;
|
|
8
|
+
code: "url" | "already_confirmed" | "confirmation_period_expired" | "expired" | "not_found" | "not_locked" | "not_saved" | "accepted" | "bad_content" | "blank" | "confirmation" | "email" | "empty" | "equal_to" | "even" | "exclusion" | "forbidden" | "greater_than_or_equal_to" | "greater_than" | "in_between" | "in" | "inclusion" | "invalid" | "less_than_or_equal_to" | "less_than" | "model_invalid" | "not_a_number" | "not_an_integer" | "odd" | "other_than" | "password_too_long" | "present" | "required" | "spoofed_media_type" | "taken" | "timeout" | "unauthorized" | "unreachable" | "service_unavailable" | "can_not_be_before_start_date" | "too_long" | "too_short" | "wrong_length" | "self_intersection";
|
|
9
|
+
message: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
export declare const getImagesSignedIds: (images: ImageFile[] | null | undefined) => string[] | null;
|
|
13
|
+
export declare const generateImageObject: (imageUrls: string[]) => never[] | undefined;
|
|
14
|
+
export declare function getInitialValues(post: PostItem): DefaultValues<ContentFormData>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const embedSchema: z.ZodObject<{
|
|
3
|
+
gid: z.ZodString;
|
|
4
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
role: "link" | "profile" | "mention";
|
|
8
|
+
gid: string;
|
|
9
|
+
indices?: number[] | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
role: "link" | "profile" | "mention";
|
|
12
|
+
gid: string;
|
|
13
|
+
indices?: number[] | null | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const imageFileSchema: z.ZodObject<{
|
|
16
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
19
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
id: string;
|
|
22
|
+
croppedImg: File;
|
|
23
|
+
originalImg: File;
|
|
24
|
+
signedId?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
id: string;
|
|
27
|
+
croppedImg: File;
|
|
28
|
+
originalImg: File;
|
|
29
|
+
signedId?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const reachSchema: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
32
|
+
export type ImageFile = z.infer<typeof imageFileSchema>;
|
|
33
|
+
export declare const subjectSchema: z.ZodString;
|
|
34
|
+
export declare const bodyWithEmbedsSchema: z.ZodObject<{
|
|
35
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
40
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
id: string;
|
|
43
|
+
croppedImg: File;
|
|
44
|
+
originalImg: File;
|
|
45
|
+
signedId?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
id: string;
|
|
48
|
+
croppedImg: File;
|
|
49
|
+
originalImg: File;
|
|
50
|
+
signedId?: string | undefined;
|
|
51
|
+
}>, "many">>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
images?: {
|
|
54
|
+
id: string;
|
|
55
|
+
croppedImg: File;
|
|
56
|
+
originalImg: File;
|
|
57
|
+
signedId?: string | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
images?: {
|
|
61
|
+
id: string;
|
|
62
|
+
croppedImg: File;
|
|
63
|
+
originalImg: File;
|
|
64
|
+
signedId?: string | undefined;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
}>>;
|
|
67
|
+
body: z.ZodString;
|
|
68
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
69
|
+
gid: z.ZodString;
|
|
70
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
71
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
role: "link" | "profile" | "mention";
|
|
74
|
+
gid: string;
|
|
75
|
+
indices?: number[] | null | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
role: "link" | "profile" | "mention";
|
|
78
|
+
gid: string;
|
|
79
|
+
indices?: number[] | null | undefined;
|
|
80
|
+
}>, "many">>>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
body: string;
|
|
83
|
+
embeddables?: {
|
|
84
|
+
role: "link" | "profile" | "mention";
|
|
85
|
+
gid: string;
|
|
86
|
+
indices?: number[] | null | undefined;
|
|
87
|
+
}[] | null | undefined;
|
|
88
|
+
attachments?: {
|
|
89
|
+
images?: {
|
|
90
|
+
id: string;
|
|
91
|
+
croppedImg: File;
|
|
92
|
+
originalImg: File;
|
|
93
|
+
signedId?: string | undefined;
|
|
94
|
+
}[] | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
body: string;
|
|
98
|
+
embeddables?: {
|
|
99
|
+
role: "link" | "profile" | "mention";
|
|
100
|
+
gid: string;
|
|
101
|
+
indices?: number[] | null | undefined;
|
|
102
|
+
}[] | null | undefined;
|
|
103
|
+
attachments?: {
|
|
104
|
+
images?: {
|
|
105
|
+
id: string;
|
|
106
|
+
croppedImg: File;
|
|
107
|
+
originalImg: File;
|
|
108
|
+
signedId?: string | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
export {};
|