@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.
Files changed (103) hide show
  1. package/index.d.ts +8 -2
  2. package/index.js +102 -93
  3. package/index.mjs +71120 -69700
  4. package/lib/Authentication/Registration/VerificationForm/Steps/index.d.ts +2 -1
  5. package/lib/Authentication/Registration/VerificationForm/VerificationForm.types.d.ts +3 -2
  6. package/lib/Authentication/Registration/VerificationForm/network.d.ts +2 -1
  7. package/lib/ComplaintModal/ComplaintModal.types.d.ts +2 -6
  8. package/lib/ContentCreator/ContentCreator.d.ts +3 -0
  9. package/lib/ContentCreator/ContentCreator.types.d.ts +18 -0
  10. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +3 -0
  11. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +4 -0
  12. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +34 -0
  13. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +3 -0
  14. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +13 -0
  15. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +2 -0
  16. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -0
  17. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.d.ts +3 -0
  18. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/PostFields.types.d.ts +6 -0
  19. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +3 -0
  20. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeFields.type.d.ts +10 -0
  21. package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +6 -0
  22. package/lib/ContentCreator/constants.d.ts +12 -0
  23. package/lib/ContentCreator/network.d.ts +4 -0
  24. package/lib/ContentCreator/utils.d.ts +14 -0
  25. package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +112 -0
  26. package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +628 -0
  27. package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +127 -0
  28. package/lib/ContentCreator/validationSchemas/index.d.ts +7 -0
  29. package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +127 -0
  30. package/lib/ContentCreator/validationSchemas/postSchema.d.ts +127 -0
  31. package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +127 -0
  32. package/lib/ContentCreator/validationSchemas/searchSchema.d.ts +127 -0
  33. package/lib/Feed/Aggregators/GridFeedAggregator/GridFeedAggregator.d.ts +2 -0
  34. package/lib/Feed/Aggregators/GridFeedAggregator/GridFeedAggregator.types.d.ts +12 -0
  35. package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +3 -0
  36. package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +5 -0
  37. package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.d.ts +2 -0
  38. package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/FeedEmptyStateCard.types.d.ts +8 -0
  39. package/lib/Feed/Aggregators/GridFeedAggregator/components/FeedEmptyStateCard/utils.d.ts +2 -0
  40. package/lib/Feed/Aggregators/GridFeedAggregator/utils.d.ts +1 -0
  41. package/lib/Feed/Feed/Feed.d.ts +3 -0
  42. package/lib/Feed/Feed/Feed.types.d.ts +41 -0
  43. package/lib/Feed/Feed/utils.d.ts +27 -0
  44. package/lib/Feed/FeedItem/FeedItemComplaintModal/FeedItemComplaintModal.d.ts +2 -0
  45. package/lib/Feed/FeedItem/FeedItemComplaintModal/FeedItemComplaintModal.types.d.ts +6 -0
  46. package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +1 -1
  47. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceErrorBoundary.d.ts +1 -1
  48. package/lib/Feed/FeedItem/Post/Post.d.ts +6 -0
  49. package/lib/Feed/FeedItem/PostReactions/PostReactions.d.ts +3 -0
  50. package/lib/Feed/FeedItem/PostReactions/PostReactions.types.d.ts +10 -0
  51. package/lib/Feed/FeedItem/{Reactions/PostReactions → PostReactions}/utils.d.ts +2 -2
  52. package/lib/Feed/FeedItem/Replies/Reply/Reply.d.ts +2 -0
  53. package/lib/Feed/FeedItem/Replies/Reply/Reply.types.d.ts +7 -0
  54. package/lib/Feed/FeedItem/Replies/Reply/utils.d.ts +2 -0
  55. package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyBubble.d.ts +3 -0
  56. package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyBubble.types.d.ts +10 -0
  57. package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyGallery/ReplyGallery.d.ts +5 -0
  58. package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyMoreOptions/ReplyMoreOptions.d.ts +10 -0
  59. package/lib/Feed/FeedItem/Replies/ReplyBubble/ReplyPoi/ReplyPoi.d.ts +7 -0
  60. package/lib/Feed/FeedItem/Replies/ReplyBubble/utils.d.ts +4 -0
  61. package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/Like.types.d.ts +4 -5
  62. package/lib/Feed/FeedItem/Replies/ReplyReactions/ReplyReactions.d.ts +3 -0
  63. package/lib/Feed/FeedItem/Replies/ReplyReactions/ReplyReactions.types.d.ts +12 -0
  64. package/lib/Feed/FeedItem/Replies/ReplyReactions/constants.d.ts +5 -0
  65. package/lib/Feed/FeedItem/Replies/ReplyReactions/network.d.ts +14 -0
  66. package/lib/Feed/FeedItem/Replies/ReplyReactions/utils.d.ts +22 -0
  67. package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.d.ts +3 -0
  68. package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.types.d.ts +10 -0
  69. package/lib/Feed/FeedItem/Replies/ReplySection/network.d.ts +16 -0
  70. package/lib/Feed/FeedItem/Replies/ReplySection/utils.d.ts +20 -0
  71. package/lib/Feed/LazyFeed/LazyFeed.d.ts +11 -0
  72. package/lib/Feed/LazyFeed/MarketplaceSkeleton.d.ts +5 -0
  73. package/lib/Feed/MarketplaceFeedPage/MarketplaceFeedPage.d.ts +11 -0
  74. package/lib/Forms/Fields/FormRichTextArea.d.ts +8 -0
  75. package/lib/Forms/Fields/index.d.ts +2 -1
  76. package/lib/Forms/Wizard/Wizard.types.d.ts +6 -0
  77. package/lib/Forms/Wizard/useTrackStepPageView.d.ts +9 -0
  78. package/lib/ImageCropper/ImageCropper.d.ts +1 -1
  79. package/lib/ImageCropper/ImageCropper.types.d.ts +9 -2
  80. package/lib/MainLayout/MainLayout.d.ts +1 -1
  81. package/lib/MainLayout/MainLayout.types.d.ts +1 -0
  82. package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +5 -0
  83. package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +6 -0
  84. package/lib/MarketplaceImageCropper/components/ImageThumbnailGrid/ImageThumbnailGrid.d.ts +10 -0
  85. package/lib/Profile/Profile.d.ts +1 -1
  86. package/lib/Profile/Profile.types.d.ts +1 -0
  87. package/lib/Reactions/ReactionTabList/ReactionTabList.d.ts +1 -1
  88. package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -2
  89. package/lib/RichTextArea/RichTextArea.d.ts +1 -1
  90. package/lib/RichTextArea/RichTextArea.types.d.ts +11 -12
  91. package/lib/RichTextArea/components/POI/useBusinessProfile.d.ts +1 -1
  92. package/lib/RichTextArea/lexical/plugins/MentionPlugin.d.ts +1 -3
  93. package/lib/RichTextArea/lexical/utils.d.ts +4 -7
  94. package/package.json +1 -1
  95. package/style.css +1 -1
  96. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +0 -8
  97. package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.d.ts +0 -3
  98. package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.types.d.ts +0 -13
  99. package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.d.ts +0 -3
  100. package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.types.d.ts +0 -16
  101. package/lib/RichTextArea/utils.d.ts +0 -3
  102. /package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/Like.d.ts +0 -0
  103. /package/lib/Feed/FeedItem/{Reactions → Replies}/ReplyReactions/Like/ReactionLabel/ReactionLabel.d.ts +0 -0
@@ -0,0 +1,628 @@
1
+ import { z } from 'zod';
2
+ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_type", [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
+ }>, z.ZodObject<{
128
+ content: z.ZodObject<{
129
+ attachments: z.ZodOptional<z.ZodObject<{
130
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
+ croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
132
+ id: z.ZodString;
133
+ originalImg: z.ZodType<File, z.ZodTypeDef, File>;
134
+ signedId: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id: string;
137
+ croppedImg: File;
138
+ originalImg: File;
139
+ signedId?: string | undefined;
140
+ }, {
141
+ id: string;
142
+ croppedImg: File;
143
+ originalImg: File;
144
+ signedId?: string | undefined;
145
+ }>, "many">>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ images?: {
148
+ id: string;
149
+ croppedImg: File;
150
+ originalImg: File;
151
+ signedId?: string | undefined;
152
+ }[] | undefined;
153
+ }, {
154
+ images?: {
155
+ id: string;
156
+ croppedImg: File;
157
+ originalImg: File;
158
+ signedId?: string | undefined;
159
+ }[] | undefined;
160
+ }>>;
161
+ body: z.ZodString;
162
+ embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
163
+ gid: z.ZodString;
164
+ indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
165
+ role: z.ZodEnum<["mention", "link", "profile"]>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ role: "link" | "profile" | "mention";
168
+ gid: string;
169
+ indices?: number[] | null | undefined;
170
+ }, {
171
+ role: "link" | "profile" | "mention";
172
+ gid: string;
173
+ indices?: number[] | null | undefined;
174
+ }>, "many">>>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ body: string;
177
+ embeddables?: {
178
+ role: "link" | "profile" | "mention";
179
+ gid: string;
180
+ indices?: number[] | null | undefined;
181
+ }[] | null | undefined;
182
+ attachments?: {
183
+ images?: {
184
+ id: string;
185
+ croppedImg: File;
186
+ originalImg: File;
187
+ signedId?: string | undefined;
188
+ }[] | undefined;
189
+ } | undefined;
190
+ }, {
191
+ body: string;
192
+ embeddables?: {
193
+ role: "link" | "profile" | "mention";
194
+ gid: string;
195
+ indices?: number[] | null | undefined;
196
+ }[] | null | undefined;
197
+ attachments?: {
198
+ images?: {
199
+ id: string;
200
+ croppedImg: File;
201
+ originalImg: File;
202
+ signedId?: string | undefined;
203
+ }[] | undefined;
204
+ } | undefined;
205
+ }>;
206
+ content_type: z.ZodLiteral<"marketplace">;
207
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
208
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
209
+ subject: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ content: {
212
+ body: string;
213
+ embeddables?: {
214
+ role: "link" | "profile" | "mention";
215
+ gid: string;
216
+ indices?: number[] | null | undefined;
217
+ }[] | null | undefined;
218
+ attachments?: {
219
+ images?: {
220
+ id: string;
221
+ croppedImg: File;
222
+ originalImg: File;
223
+ signedId?: string | undefined;
224
+ }[] | undefined;
225
+ } | undefined;
226
+ };
227
+ content_type: "marketplace";
228
+ subject: string;
229
+ reach: "profile" | "hood" | "public" | "extended";
230
+ hood_group_id?: number | null | undefined;
231
+ }, {
232
+ content: {
233
+ body: string;
234
+ embeddables?: {
235
+ role: "link" | "profile" | "mention";
236
+ gid: string;
237
+ indices?: number[] | null | undefined;
238
+ }[] | null | undefined;
239
+ attachments?: {
240
+ images?: {
241
+ id: string;
242
+ croppedImg: File;
243
+ originalImg: File;
244
+ signedId?: string | undefined;
245
+ }[] | undefined;
246
+ } | undefined;
247
+ };
248
+ content_type: "marketplace";
249
+ subject: string;
250
+ reach: "profile" | "hood" | "public" | "extended";
251
+ hood_group_id?: number | null | undefined;
252
+ }>, z.ZodObject<{
253
+ content: z.ZodObject<{
254
+ attachments: z.ZodOptional<z.ZodObject<{
255
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
+ croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
257
+ id: z.ZodString;
258
+ originalImg: z.ZodType<File, z.ZodTypeDef, File>;
259
+ signedId: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ id: string;
262
+ croppedImg: File;
263
+ originalImg: File;
264
+ signedId?: string | undefined;
265
+ }, {
266
+ id: string;
267
+ croppedImg: File;
268
+ originalImg: File;
269
+ signedId?: string | undefined;
270
+ }>, "many">>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ images?: {
273
+ id: string;
274
+ croppedImg: File;
275
+ originalImg: File;
276
+ signedId?: string | undefined;
277
+ }[] | undefined;
278
+ }, {
279
+ images?: {
280
+ id: string;
281
+ croppedImg: File;
282
+ originalImg: File;
283
+ signedId?: string | undefined;
284
+ }[] | undefined;
285
+ }>>;
286
+ body: z.ZodString;
287
+ embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
288
+ gid: z.ZodString;
289
+ indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
290
+ role: z.ZodEnum<["mention", "link", "profile"]>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ role: "link" | "profile" | "mention";
293
+ gid: string;
294
+ indices?: number[] | null | undefined;
295
+ }, {
296
+ role: "link" | "profile" | "mention";
297
+ gid: string;
298
+ indices?: number[] | null | undefined;
299
+ }>, "many">>>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ body: string;
302
+ embeddables?: {
303
+ role: "link" | "profile" | "mention";
304
+ gid: string;
305
+ indices?: number[] | null | undefined;
306
+ }[] | null | undefined;
307
+ attachments?: {
308
+ images?: {
309
+ id: string;
310
+ croppedImg: File;
311
+ originalImg: File;
312
+ signedId?: string | undefined;
313
+ }[] | undefined;
314
+ } | undefined;
315
+ }, {
316
+ body: string;
317
+ embeddables?: {
318
+ role: "link" | "profile" | "mention";
319
+ gid: string;
320
+ indices?: number[] | null | undefined;
321
+ }[] | null | undefined;
322
+ attachments?: {
323
+ images?: {
324
+ id: string;
325
+ croppedImg: File;
326
+ originalImg: File;
327
+ signedId?: string | undefined;
328
+ }[] | undefined;
329
+ } | undefined;
330
+ }>;
331
+ content_type: z.ZodLiteral<"post">;
332
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
333
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
334
+ subject: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ content: {
337
+ body: string;
338
+ embeddables?: {
339
+ role: "link" | "profile" | "mention";
340
+ gid: string;
341
+ indices?: number[] | null | undefined;
342
+ }[] | null | undefined;
343
+ attachments?: {
344
+ images?: {
345
+ id: string;
346
+ croppedImg: File;
347
+ originalImg: File;
348
+ signedId?: string | undefined;
349
+ }[] | undefined;
350
+ } | undefined;
351
+ };
352
+ content_type: "post";
353
+ subject: string;
354
+ reach: "profile" | "hood" | "public" | "extended";
355
+ hood_group_id?: number | null | undefined;
356
+ }, {
357
+ content: {
358
+ body: string;
359
+ embeddables?: {
360
+ role: "link" | "profile" | "mention";
361
+ gid: string;
362
+ indices?: number[] | null | undefined;
363
+ }[] | null | undefined;
364
+ attachments?: {
365
+ images?: {
366
+ id: string;
367
+ croppedImg: File;
368
+ originalImg: File;
369
+ signedId?: string | undefined;
370
+ }[] | undefined;
371
+ } | undefined;
372
+ };
373
+ content_type: "post";
374
+ subject: string;
375
+ reach: "profile" | "hood" | "public" | "extended";
376
+ hood_group_id?: number | null | undefined;
377
+ }>, z.ZodObject<{
378
+ content: z.ZodObject<{
379
+ attachments: z.ZodOptional<z.ZodObject<{
380
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
381
+ croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
382
+ id: z.ZodString;
383
+ originalImg: z.ZodType<File, z.ZodTypeDef, File>;
384
+ signedId: z.ZodOptional<z.ZodString>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ id: string;
387
+ croppedImg: File;
388
+ originalImg: File;
389
+ signedId?: string | undefined;
390
+ }, {
391
+ id: string;
392
+ croppedImg: File;
393
+ originalImg: File;
394
+ signedId?: string | undefined;
395
+ }>, "many">>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ images?: {
398
+ id: string;
399
+ croppedImg: File;
400
+ originalImg: File;
401
+ signedId?: string | undefined;
402
+ }[] | undefined;
403
+ }, {
404
+ images?: {
405
+ id: string;
406
+ croppedImg: File;
407
+ originalImg: File;
408
+ signedId?: string | undefined;
409
+ }[] | undefined;
410
+ }>>;
411
+ body: z.ZodString;
412
+ embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
413
+ gid: z.ZodString;
414
+ indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
415
+ role: z.ZodEnum<["mention", "link", "profile"]>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ role: "link" | "profile" | "mention";
418
+ gid: string;
419
+ indices?: number[] | null | undefined;
420
+ }, {
421
+ role: "link" | "profile" | "mention";
422
+ gid: string;
423
+ indices?: number[] | null | undefined;
424
+ }>, "many">>>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ body: string;
427
+ embeddables?: {
428
+ role: "link" | "profile" | "mention";
429
+ gid: string;
430
+ indices?: number[] | null | undefined;
431
+ }[] | null | undefined;
432
+ attachments?: {
433
+ images?: {
434
+ id: string;
435
+ croppedImg: File;
436
+ originalImg: File;
437
+ signedId?: string | undefined;
438
+ }[] | undefined;
439
+ } | undefined;
440
+ }, {
441
+ body: string;
442
+ embeddables?: {
443
+ role: "link" | "profile" | "mention";
444
+ gid: string;
445
+ indices?: number[] | null | undefined;
446
+ }[] | null | undefined;
447
+ attachments?: {
448
+ images?: {
449
+ id: string;
450
+ croppedImg: File;
451
+ originalImg: File;
452
+ signedId?: string | undefined;
453
+ }[] | undefined;
454
+ } | undefined;
455
+ }>;
456
+ content_type: z.ZodLiteral<"recommendation">;
457
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
458
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
459
+ subject: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ content: {
462
+ body: string;
463
+ embeddables?: {
464
+ role: "link" | "profile" | "mention";
465
+ gid: string;
466
+ indices?: number[] | null | undefined;
467
+ }[] | null | undefined;
468
+ attachments?: {
469
+ images?: {
470
+ id: string;
471
+ croppedImg: File;
472
+ originalImg: File;
473
+ signedId?: string | undefined;
474
+ }[] | undefined;
475
+ } | undefined;
476
+ };
477
+ content_type: "recommendation";
478
+ subject: string;
479
+ reach: "profile" | "hood" | "public" | "extended";
480
+ hood_group_id?: number | null | undefined;
481
+ }, {
482
+ content: {
483
+ body: string;
484
+ embeddables?: {
485
+ role: "link" | "profile" | "mention";
486
+ gid: string;
487
+ indices?: number[] | null | undefined;
488
+ }[] | null | undefined;
489
+ attachments?: {
490
+ images?: {
491
+ id: string;
492
+ croppedImg: File;
493
+ originalImg: File;
494
+ signedId?: string | undefined;
495
+ }[] | undefined;
496
+ } | undefined;
497
+ };
498
+ content_type: "recommendation";
499
+ subject: string;
500
+ reach: "profile" | "hood" | "public" | "extended";
501
+ hood_group_id?: number | null | undefined;
502
+ }>, z.ZodObject<{
503
+ content: z.ZodObject<{
504
+ attachments: z.ZodOptional<z.ZodObject<{
505
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
506
+ croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
507
+ id: z.ZodString;
508
+ originalImg: z.ZodType<File, z.ZodTypeDef, File>;
509
+ signedId: z.ZodOptional<z.ZodString>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ id: string;
512
+ croppedImg: File;
513
+ originalImg: File;
514
+ signedId?: string | undefined;
515
+ }, {
516
+ id: string;
517
+ croppedImg: File;
518
+ originalImg: File;
519
+ signedId?: string | undefined;
520
+ }>, "many">>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ images?: {
523
+ id: string;
524
+ croppedImg: File;
525
+ originalImg: File;
526
+ signedId?: string | undefined;
527
+ }[] | undefined;
528
+ }, {
529
+ images?: {
530
+ id: string;
531
+ croppedImg: File;
532
+ originalImg: File;
533
+ signedId?: string | undefined;
534
+ }[] | undefined;
535
+ }>>;
536
+ body: z.ZodString;
537
+ embeddables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
538
+ gid: z.ZodString;
539
+ indices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
540
+ role: z.ZodEnum<["mention", "link", "profile"]>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ role: "link" | "profile" | "mention";
543
+ gid: string;
544
+ indices?: number[] | null | undefined;
545
+ }, {
546
+ role: "link" | "profile" | "mention";
547
+ gid: string;
548
+ indices?: number[] | null | undefined;
549
+ }>, "many">>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ body: string;
552
+ embeddables?: {
553
+ role: "link" | "profile" | "mention";
554
+ gid: string;
555
+ indices?: number[] | null | undefined;
556
+ }[] | null | undefined;
557
+ attachments?: {
558
+ images?: {
559
+ id: string;
560
+ croppedImg: File;
561
+ originalImg: File;
562
+ signedId?: string | undefined;
563
+ }[] | undefined;
564
+ } | undefined;
565
+ }, {
566
+ body: string;
567
+ embeddables?: {
568
+ role: "link" | "profile" | "mention";
569
+ gid: string;
570
+ indices?: number[] | null | undefined;
571
+ }[] | null | undefined;
572
+ attachments?: {
573
+ images?: {
574
+ id: string;
575
+ croppedImg: File;
576
+ originalImg: File;
577
+ signedId?: string | undefined;
578
+ }[] | undefined;
579
+ } | undefined;
580
+ }>;
581
+ content_type: z.ZodLiteral<"search">;
582
+ hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
583
+ reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
584
+ subject: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ content: {
587
+ body: string;
588
+ embeddables?: {
589
+ role: "link" | "profile" | "mention";
590
+ gid: string;
591
+ indices?: number[] | null | undefined;
592
+ }[] | null | undefined;
593
+ attachments?: {
594
+ images?: {
595
+ id: string;
596
+ croppedImg: File;
597
+ originalImg: File;
598
+ signedId?: string | undefined;
599
+ }[] | undefined;
600
+ } | undefined;
601
+ };
602
+ content_type: "search";
603
+ subject: string;
604
+ reach: "profile" | "hood" | "public" | "extended";
605
+ hood_group_id?: number | null | undefined;
606
+ }, {
607
+ content: {
608
+ body: string;
609
+ embeddables?: {
610
+ role: "link" | "profile" | "mention";
611
+ gid: string;
612
+ indices?: number[] | null | undefined;
613
+ }[] | null | undefined;
614
+ attachments?: {
615
+ images?: {
616
+ id: string;
617
+ croppedImg: File;
618
+ originalImg: File;
619
+ signedId?: string | undefined;
620
+ }[] | undefined;
621
+ } | undefined;
622
+ };
623
+ content_type: "search";
624
+ subject: string;
625
+ reach: "profile" | "hood" | "public" | "extended";
626
+ hood_group_id?: number | null | undefined;
627
+ }>]>;
628
+ export type ContentFormData = z.infer<typeof contentValidationSchema>;