@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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventValidationSchema: z.ZodObject<{
|
|
3
|
+
content: z.ZodObject<{
|
|
4
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
croppedImg: File;
|
|
13
|
+
originalImg: File;
|
|
14
|
+
signedId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
croppedImg: File;
|
|
18
|
+
originalImg: File;
|
|
19
|
+
signedId?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
images?: {
|
|
23
|
+
id: string;
|
|
24
|
+
croppedImg: File;
|
|
25
|
+
originalImg: File;
|
|
26
|
+
signedId?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
images?: {
|
|
30
|
+
id: string;
|
|
31
|
+
croppedImg: File;
|
|
32
|
+
originalImg: File;
|
|
33
|
+
signedId?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
body: z.ZodString;
|
|
37
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
gid: z.ZodString;
|
|
39
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
role: "link" | "profile" | "mention";
|
|
43
|
+
gid: string;
|
|
44
|
+
indices?: number[] | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
role: "link" | "profile" | "mention";
|
|
47
|
+
gid: string;
|
|
48
|
+
indices?: number[] | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
body: string;
|
|
52
|
+
embeddables?: {
|
|
53
|
+
role: "link" | "profile" | "mention";
|
|
54
|
+
gid: string;
|
|
55
|
+
indices?: number[] | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
images?: {
|
|
59
|
+
id: string;
|
|
60
|
+
croppedImg: File;
|
|
61
|
+
originalImg: File;
|
|
62
|
+
signedId?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
body: string;
|
|
67
|
+
embeddables?: {
|
|
68
|
+
role: "link" | "profile" | "mention";
|
|
69
|
+
gid: string;
|
|
70
|
+
indices?: number[] | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
attachments?: {
|
|
73
|
+
images?: {
|
|
74
|
+
id: string;
|
|
75
|
+
croppedImg: File;
|
|
76
|
+
originalImg: File;
|
|
77
|
+
signedId?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
content_type: z.ZodLiteral<"event">;
|
|
82
|
+
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
+
subject: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
content: {
|
|
87
|
+
body: string;
|
|
88
|
+
embeddables?: {
|
|
89
|
+
role: "link" | "profile" | "mention";
|
|
90
|
+
gid: string;
|
|
91
|
+
indices?: number[] | null | undefined;
|
|
92
|
+
}[] | null | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
images?: {
|
|
95
|
+
id: string;
|
|
96
|
+
croppedImg: File;
|
|
97
|
+
originalImg: File;
|
|
98
|
+
signedId?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
content_type: "event";
|
|
103
|
+
subject: string;
|
|
104
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
105
|
+
hood_group_id?: number | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content: {
|
|
108
|
+
body: string;
|
|
109
|
+
embeddables?: {
|
|
110
|
+
role: "link" | "profile" | "mention";
|
|
111
|
+
gid: string;
|
|
112
|
+
indices?: number[] | null | undefined;
|
|
113
|
+
}[] | null | undefined;
|
|
114
|
+
attachments?: {
|
|
115
|
+
images?: {
|
|
116
|
+
id: string;
|
|
117
|
+
croppedImg: File;
|
|
118
|
+
originalImg: File;
|
|
119
|
+
signedId?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
content_type: "event";
|
|
124
|
+
subject: string;
|
|
125
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
126
|
+
hood_group_id?: number | null | undefined;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const marketplaceValidationSchema: z.ZodObject<{
|
|
3
|
+
content: z.ZodObject<{
|
|
4
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
croppedImg: File;
|
|
13
|
+
originalImg: File;
|
|
14
|
+
signedId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
croppedImg: File;
|
|
18
|
+
originalImg: File;
|
|
19
|
+
signedId?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
images?: {
|
|
23
|
+
id: string;
|
|
24
|
+
croppedImg: File;
|
|
25
|
+
originalImg: File;
|
|
26
|
+
signedId?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
images?: {
|
|
30
|
+
id: string;
|
|
31
|
+
croppedImg: File;
|
|
32
|
+
originalImg: File;
|
|
33
|
+
signedId?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
body: z.ZodString;
|
|
37
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
gid: z.ZodString;
|
|
39
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
role: "link" | "profile" | "mention";
|
|
43
|
+
gid: string;
|
|
44
|
+
indices?: number[] | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
role: "link" | "profile" | "mention";
|
|
47
|
+
gid: string;
|
|
48
|
+
indices?: number[] | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
body: string;
|
|
52
|
+
embeddables?: {
|
|
53
|
+
role: "link" | "profile" | "mention";
|
|
54
|
+
gid: string;
|
|
55
|
+
indices?: number[] | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
images?: {
|
|
59
|
+
id: string;
|
|
60
|
+
croppedImg: File;
|
|
61
|
+
originalImg: File;
|
|
62
|
+
signedId?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
body: string;
|
|
67
|
+
embeddables?: {
|
|
68
|
+
role: "link" | "profile" | "mention";
|
|
69
|
+
gid: string;
|
|
70
|
+
indices?: number[] | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
attachments?: {
|
|
73
|
+
images?: {
|
|
74
|
+
id: string;
|
|
75
|
+
croppedImg: File;
|
|
76
|
+
originalImg: File;
|
|
77
|
+
signedId?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
content_type: z.ZodLiteral<"marketplace">;
|
|
82
|
+
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
+
subject: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
content: {
|
|
87
|
+
body: string;
|
|
88
|
+
embeddables?: {
|
|
89
|
+
role: "link" | "profile" | "mention";
|
|
90
|
+
gid: string;
|
|
91
|
+
indices?: number[] | null | undefined;
|
|
92
|
+
}[] | null | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
images?: {
|
|
95
|
+
id: string;
|
|
96
|
+
croppedImg: File;
|
|
97
|
+
originalImg: File;
|
|
98
|
+
signedId?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
content_type: "marketplace";
|
|
103
|
+
subject: string;
|
|
104
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
105
|
+
hood_group_id?: number | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content: {
|
|
108
|
+
body: string;
|
|
109
|
+
embeddables?: {
|
|
110
|
+
role: "link" | "profile" | "mention";
|
|
111
|
+
gid: string;
|
|
112
|
+
indices?: number[] | null | undefined;
|
|
113
|
+
}[] | null | undefined;
|
|
114
|
+
attachments?: {
|
|
115
|
+
images?: {
|
|
116
|
+
id: string;
|
|
117
|
+
croppedImg: File;
|
|
118
|
+
originalImg: File;
|
|
119
|
+
signedId?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
content_type: "marketplace";
|
|
124
|
+
subject: string;
|
|
125
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
126
|
+
hood_group_id?: number | null | undefined;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const postValidationSchema: z.ZodObject<{
|
|
3
|
+
content: z.ZodObject<{
|
|
4
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
croppedImg: File;
|
|
13
|
+
originalImg: File;
|
|
14
|
+
signedId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
croppedImg: File;
|
|
18
|
+
originalImg: File;
|
|
19
|
+
signedId?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
images?: {
|
|
23
|
+
id: string;
|
|
24
|
+
croppedImg: File;
|
|
25
|
+
originalImg: File;
|
|
26
|
+
signedId?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
images?: {
|
|
30
|
+
id: string;
|
|
31
|
+
croppedImg: File;
|
|
32
|
+
originalImg: File;
|
|
33
|
+
signedId?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
body: z.ZodString;
|
|
37
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
gid: z.ZodString;
|
|
39
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
role: "link" | "profile" | "mention";
|
|
43
|
+
gid: string;
|
|
44
|
+
indices?: number[] | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
role: "link" | "profile" | "mention";
|
|
47
|
+
gid: string;
|
|
48
|
+
indices?: number[] | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
body: string;
|
|
52
|
+
embeddables?: {
|
|
53
|
+
role: "link" | "profile" | "mention";
|
|
54
|
+
gid: string;
|
|
55
|
+
indices?: number[] | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
images?: {
|
|
59
|
+
id: string;
|
|
60
|
+
croppedImg: File;
|
|
61
|
+
originalImg: File;
|
|
62
|
+
signedId?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
body: string;
|
|
67
|
+
embeddables?: {
|
|
68
|
+
role: "link" | "profile" | "mention";
|
|
69
|
+
gid: string;
|
|
70
|
+
indices?: number[] | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
attachments?: {
|
|
73
|
+
images?: {
|
|
74
|
+
id: string;
|
|
75
|
+
croppedImg: File;
|
|
76
|
+
originalImg: File;
|
|
77
|
+
signedId?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
content_type: z.ZodLiteral<"post">;
|
|
82
|
+
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
+
subject: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
content: {
|
|
87
|
+
body: string;
|
|
88
|
+
embeddables?: {
|
|
89
|
+
role: "link" | "profile" | "mention";
|
|
90
|
+
gid: string;
|
|
91
|
+
indices?: number[] | null | undefined;
|
|
92
|
+
}[] | null | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
images?: {
|
|
95
|
+
id: string;
|
|
96
|
+
croppedImg: File;
|
|
97
|
+
originalImg: File;
|
|
98
|
+
signedId?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
content_type: "post";
|
|
103
|
+
subject: string;
|
|
104
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
105
|
+
hood_group_id?: number | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content: {
|
|
108
|
+
body: string;
|
|
109
|
+
embeddables?: {
|
|
110
|
+
role: "link" | "profile" | "mention";
|
|
111
|
+
gid: string;
|
|
112
|
+
indices?: number[] | null | undefined;
|
|
113
|
+
}[] | null | undefined;
|
|
114
|
+
attachments?: {
|
|
115
|
+
images?: {
|
|
116
|
+
id: string;
|
|
117
|
+
croppedImg: File;
|
|
118
|
+
originalImg: File;
|
|
119
|
+
signedId?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
content_type: "post";
|
|
124
|
+
subject: string;
|
|
125
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
126
|
+
hood_group_id?: number | null | undefined;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const recommendationValidationSchema: z.ZodObject<{
|
|
3
|
+
content: z.ZodObject<{
|
|
4
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
croppedImg: File;
|
|
13
|
+
originalImg: File;
|
|
14
|
+
signedId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
croppedImg: File;
|
|
18
|
+
originalImg: File;
|
|
19
|
+
signedId?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
images?: {
|
|
23
|
+
id: string;
|
|
24
|
+
croppedImg: File;
|
|
25
|
+
originalImg: File;
|
|
26
|
+
signedId?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
images?: {
|
|
30
|
+
id: string;
|
|
31
|
+
croppedImg: File;
|
|
32
|
+
originalImg: File;
|
|
33
|
+
signedId?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
body: z.ZodString;
|
|
37
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
gid: z.ZodString;
|
|
39
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
role: "link" | "profile" | "mention";
|
|
43
|
+
gid: string;
|
|
44
|
+
indices?: number[] | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
role: "link" | "profile" | "mention";
|
|
47
|
+
gid: string;
|
|
48
|
+
indices?: number[] | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
body: string;
|
|
52
|
+
embeddables?: {
|
|
53
|
+
role: "link" | "profile" | "mention";
|
|
54
|
+
gid: string;
|
|
55
|
+
indices?: number[] | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
images?: {
|
|
59
|
+
id: string;
|
|
60
|
+
croppedImg: File;
|
|
61
|
+
originalImg: File;
|
|
62
|
+
signedId?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
body: string;
|
|
67
|
+
embeddables?: {
|
|
68
|
+
role: "link" | "profile" | "mention";
|
|
69
|
+
gid: string;
|
|
70
|
+
indices?: number[] | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
attachments?: {
|
|
73
|
+
images?: {
|
|
74
|
+
id: string;
|
|
75
|
+
croppedImg: File;
|
|
76
|
+
originalImg: File;
|
|
77
|
+
signedId?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
content_type: z.ZodLiteral<"recommendation">;
|
|
82
|
+
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
+
subject: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
content: {
|
|
87
|
+
body: string;
|
|
88
|
+
embeddables?: {
|
|
89
|
+
role: "link" | "profile" | "mention";
|
|
90
|
+
gid: string;
|
|
91
|
+
indices?: number[] | null | undefined;
|
|
92
|
+
}[] | null | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
images?: {
|
|
95
|
+
id: string;
|
|
96
|
+
croppedImg: File;
|
|
97
|
+
originalImg: File;
|
|
98
|
+
signedId?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
content_type: "recommendation";
|
|
103
|
+
subject: string;
|
|
104
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
105
|
+
hood_group_id?: number | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content: {
|
|
108
|
+
body: string;
|
|
109
|
+
embeddables?: {
|
|
110
|
+
role: "link" | "profile" | "mention";
|
|
111
|
+
gid: string;
|
|
112
|
+
indices?: number[] | null | undefined;
|
|
113
|
+
}[] | null | undefined;
|
|
114
|
+
attachments?: {
|
|
115
|
+
images?: {
|
|
116
|
+
id: string;
|
|
117
|
+
croppedImg: File;
|
|
118
|
+
originalImg: File;
|
|
119
|
+
signedId?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
content_type: "recommendation";
|
|
124
|
+
subject: string;
|
|
125
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
126
|
+
hood_group_id?: number | null | undefined;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const searchValidationSchema: z.ZodObject<{
|
|
3
|
+
content: z.ZodObject<{
|
|
4
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
9
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
croppedImg: File;
|
|
13
|
+
originalImg: File;
|
|
14
|
+
signedId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
croppedImg: File;
|
|
18
|
+
originalImg: File;
|
|
19
|
+
signedId?: string | undefined;
|
|
20
|
+
}>, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
images?: {
|
|
23
|
+
id: string;
|
|
24
|
+
croppedImg: File;
|
|
25
|
+
originalImg: File;
|
|
26
|
+
signedId?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
images?: {
|
|
30
|
+
id: string;
|
|
31
|
+
croppedImg: File;
|
|
32
|
+
originalImg: File;
|
|
33
|
+
signedId?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
body: z.ZodString;
|
|
37
|
+
embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
gid: z.ZodString;
|
|
39
|
+
indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
40
|
+
role: z.ZodEnum<["mention", "link", "profile"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
role: "link" | "profile" | "mention";
|
|
43
|
+
gid: string;
|
|
44
|
+
indices?: number[] | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
role: "link" | "profile" | "mention";
|
|
47
|
+
gid: string;
|
|
48
|
+
indices?: number[] | null | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
body: string;
|
|
52
|
+
embeddables?: {
|
|
53
|
+
role: "link" | "profile" | "mention";
|
|
54
|
+
gid: string;
|
|
55
|
+
indices?: number[] | null | undefined;
|
|
56
|
+
}[] | null | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
images?: {
|
|
59
|
+
id: string;
|
|
60
|
+
croppedImg: File;
|
|
61
|
+
originalImg: File;
|
|
62
|
+
signedId?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
body: string;
|
|
67
|
+
embeddables?: {
|
|
68
|
+
role: "link" | "profile" | "mention";
|
|
69
|
+
gid: string;
|
|
70
|
+
indices?: number[] | null | undefined;
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
attachments?: {
|
|
73
|
+
images?: {
|
|
74
|
+
id: string;
|
|
75
|
+
croppedImg: File;
|
|
76
|
+
originalImg: File;
|
|
77
|
+
signedId?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
content_type: z.ZodLiteral<"search">;
|
|
82
|
+
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
|
+
subject: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
content: {
|
|
87
|
+
body: string;
|
|
88
|
+
embeddables?: {
|
|
89
|
+
role: "link" | "profile" | "mention";
|
|
90
|
+
gid: string;
|
|
91
|
+
indices?: number[] | null | undefined;
|
|
92
|
+
}[] | null | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
images?: {
|
|
95
|
+
id: string;
|
|
96
|
+
croppedImg: File;
|
|
97
|
+
originalImg: File;
|
|
98
|
+
signedId?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
102
|
+
content_type: "search";
|
|
103
|
+
subject: string;
|
|
104
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
105
|
+
hood_group_id?: number | null | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content: {
|
|
108
|
+
body: string;
|
|
109
|
+
embeddables?: {
|
|
110
|
+
role: "link" | "profile" | "mention";
|
|
111
|
+
gid: string;
|
|
112
|
+
indices?: number[] | null | undefined;
|
|
113
|
+
}[] | null | undefined;
|
|
114
|
+
attachments?: {
|
|
115
|
+
images?: {
|
|
116
|
+
id: string;
|
|
117
|
+
croppedImg: File;
|
|
118
|
+
originalImg: File;
|
|
119
|
+
signedId?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
};
|
|
123
|
+
content_type: "search";
|
|
124
|
+
subject: string;
|
|
125
|
+
reach: "profile" | "hood" | "public" | "extended";
|
|
126
|
+
hood_group_id?: number | null | undefined;
|
|
127
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GridFeedAd, GridFeedHoodMessage, GridFeedProps } from '../../Feed/Feed.types';
|
|
2
|
+
export type GridFeedAggregatorProps = {
|
|
3
|
+
feedType: GridFeedProps['feedType'];
|
|
4
|
+
items: (GridFeedAd | GridFeedHoodMessage)[];
|
|
5
|
+
};
|
|
6
|
+
export declare const GridFeedAggregatorNavigateEnum: {
|
|
7
|
+
readonly event: "";
|
|
8
|
+
readonly feed: "";
|
|
9
|
+
readonly group: "";
|
|
10
|
+
readonly marketplace: "/feed/marketplace";
|
|
11
|
+
readonly post: "";
|
|
12
|
+
};
|