@goodhood-web/nebenan-base 4.4.0-development.2 → 4.4.0-development.4
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.js +120 -120
- package/index.mjs +16113 -14697
- package/lib/ContentCreator/ContentCreator.d.ts +1 -1
- package/lib/ContentCreator/ContentCreator.types.d.ts +19 -4
- package/lib/ContentCreator/Store/contentCreator.d.ts +11 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.d.ts +3 -3
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentFieldsSheet/ContentFieldsSheet.types.d.ts +10 -4
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/CategoryModalField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/DropdownButton.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormCategory.d.ts +4 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormLocation.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormModalsFields.types.d.ts +6 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/network.d.ts +12 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/ListModalField.types.d.ts +26 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/LocationModalField.d.ts +3 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormCurrencyInput.d.ts +4 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/FormMarketplaceImageCropper.d.ts +11 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.d.ts +2 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/MarketplaceFields/MarketplaceFields.types.d.ts +8 -0
- package/lib/ContentCreator/{validationSchemas/searchSchema.d.ts → components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts} +64 -57
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/index.d.ts +1 -1
- package/lib/ContentCreator/constants.d.ts +81 -0
- package/lib/ContentCreator/network.d.ts +2 -1
- package/lib/ContentCreator/utils/general.d.ts +23 -0
- package/lib/ContentCreator/utils/images.d.ts +15 -0
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +46 -0
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +3 -2
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +158 -17
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +61 -3
- package/lib/ContentCreator/validationSchemas/index.d.ts +0 -2
- package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +96 -4
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +246 -3
- package/lib/Feed/Aggregators/GridFeedAggregator/utils.d.ts +2 -2
- package/lib/Forms/Fields/FormDateTimeInput.d.ts +9 -0
- package/lib/Forms/Fields/FormSwitcherToggle.d.ts +10 -0
- package/lib/Gallery/Gallery.types.d.ts +1 -1
- package/lib/ImageAttachment/ImageAttachment.types.d.ts +5 -1
- package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +3 -1
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.d.ts +1 -1
- package/lib/MarketplaceImageCropper/MarketplaceImageCropper.types.d.ts +4 -0
- package/lib/MarketplaceImageCropper/components/ImageThumbnailGrid/ImageThumbnailGrid.d.ts +2 -1
- package/lib/MarketplaceImageCropper/constants.d.ts +1 -0
- package/lib/MultiImageCropper/MultiImageCropper.d.ts +1 -1
- package/lib/MultiImageCropper/MultiImageCropper.types.d.ts +1 -1
- package/lib/RichTextArea/RichTextArea.types.d.ts +3 -0
- package/lib/RichTextArea/components/POI/POIRecommendation.d.ts +1 -1
- package/lib/RichTextArea/components/POI/POIRecommendation.types.d.ts +9 -0
- package/lib/RichTextArea/components/POI/components/Intro/Intro.d.ts +1 -3
- package/lib/RichTextArea/components/POI/components/NewItemAddition/NewItemAddition.d.ts +6 -0
- package/lib/RichTextArea/components/POI/network.d.ts +1 -1
- package/lib/RichTextArea/lexical/LexicalImagesPreview.d.ts +4 -1
- package/lib/RichTextArea/useImageUpload.d.ts +5 -1
- package/lib/SearchableList/SearchableList.types.d.ts +1 -0
- package/lib/SearchableList/components/Content/Content.d.ts +1 -1
- package/lib/SearchableList/components/Content/Content.types.d.ts +1 -0
- package/lib/utils/client.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventField.d.ts +0 -2
- package/lib/ContentCreator/utils.d.ts +0 -14
- package/lib/ContentCreator/validationSchemas/recommendationSchema.d.ts +0 -127
- package/lib/Forms/Fields/FormRichTextArea.d.ts +0 -10
- package/lib/RichTextArea/ImagesPreview/ImagesPreview.d.ts +0 -7
- /package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/{ReachTypeFields.type.d.ts → ReachTypeFields.types.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const contentValidationSchema: z.
|
|
2
|
+
export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
category: z.ZodString;
|
|
3
4
|
content: z.ZodObject<{
|
|
4
5
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
6
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -79,8 +80,37 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
79
80
|
} | undefined;
|
|
80
81
|
}>;
|
|
81
82
|
content_type: z.ZodLiteral<"event">;
|
|
82
|
-
|
|
83
|
+
ends_at_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
84
|
+
ends_at_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
85
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
89
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
id: string;
|
|
92
|
+
croppedImg: File;
|
|
93
|
+
originalImg: File;
|
|
94
|
+
signedId?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
id: string;
|
|
97
|
+
croppedImg: File;
|
|
98
|
+
originalImg: File;
|
|
99
|
+
signedId?: string | undefined;
|
|
100
|
+
}>, "many">>;
|
|
101
|
+
location: z.ZodObject<{
|
|
102
|
+
gid: z.ZodOptional<z.ZodString>;
|
|
103
|
+
label: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
label: string;
|
|
106
|
+
gid?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
label: string;
|
|
109
|
+
gid?: string | undefined;
|
|
110
|
+
}>;
|
|
83
111
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
112
|
+
starts_at_date: z.ZodDate;
|
|
113
|
+
starts_at_time: z.ZodDate;
|
|
84
114
|
subject: z.ZodString;
|
|
85
115
|
}, "strip", z.ZodTypeAny, {
|
|
86
116
|
content: {
|
|
@@ -99,10 +129,24 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
99
129
|
}[] | undefined;
|
|
100
130
|
} | undefined;
|
|
101
131
|
};
|
|
132
|
+
category: string;
|
|
133
|
+
location: {
|
|
134
|
+
label: string;
|
|
135
|
+
gid?: string | undefined;
|
|
136
|
+
};
|
|
102
137
|
content_type: "event";
|
|
103
138
|
subject: string;
|
|
104
139
|
reach: "profile" | "public" | "hood" | "extended";
|
|
105
|
-
|
|
140
|
+
starts_at_date: Date;
|
|
141
|
+
starts_at_time: Date;
|
|
142
|
+
images?: {
|
|
143
|
+
id: string;
|
|
144
|
+
croppedImg: File;
|
|
145
|
+
originalImg: File;
|
|
146
|
+
signedId?: string | undefined;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
ends_at_date?: Date | null | undefined;
|
|
149
|
+
ends_at_time?: Date | null | undefined;
|
|
106
150
|
}, {
|
|
107
151
|
content: {
|
|
108
152
|
body: string;
|
|
@@ -120,11 +164,26 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
120
164
|
}[] | undefined;
|
|
121
165
|
} | undefined;
|
|
122
166
|
};
|
|
167
|
+
category: string;
|
|
168
|
+
location: {
|
|
169
|
+
label: string;
|
|
170
|
+
gid?: string | undefined;
|
|
171
|
+
};
|
|
123
172
|
content_type: "event";
|
|
124
173
|
subject: string;
|
|
125
174
|
reach: "profile" | "public" | "hood" | "extended";
|
|
126
|
-
|
|
127
|
-
|
|
175
|
+
starts_at_date: Date;
|
|
176
|
+
starts_at_time: Date;
|
|
177
|
+
images?: {
|
|
178
|
+
id: string;
|
|
179
|
+
croppedImg: File;
|
|
180
|
+
originalImg: File;
|
|
181
|
+
signedId?: string | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
ends_at_date?: Date | null | undefined;
|
|
184
|
+
ends_at_time?: Date | null | undefined;
|
|
185
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
186
|
+
category: z.ZodString;
|
|
128
187
|
content: z.ZodObject<{
|
|
129
188
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
130
189
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -204,7 +263,24 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
204
263
|
} | undefined;
|
|
205
264
|
}>;
|
|
206
265
|
content_type: z.ZodLiteral<"marketplace">;
|
|
207
|
-
|
|
266
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
270
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
id: string;
|
|
273
|
+
croppedImg: File;
|
|
274
|
+
originalImg: File;
|
|
275
|
+
signedId?: string | undefined;
|
|
276
|
+
}, {
|
|
277
|
+
id: string;
|
|
278
|
+
croppedImg: File;
|
|
279
|
+
originalImg: File;
|
|
280
|
+
signedId?: string | undefined;
|
|
281
|
+
}>, "many">>;
|
|
282
|
+
marketplace_item_type: z.ZodString;
|
|
283
|
+
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
208
284
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
209
285
|
subject: z.ZodString;
|
|
210
286
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -224,10 +300,76 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
224
300
|
}[] | undefined;
|
|
225
301
|
} | undefined;
|
|
226
302
|
};
|
|
303
|
+
category: string;
|
|
304
|
+
content_type: "marketplace";
|
|
305
|
+
subject: string;
|
|
306
|
+
reach: "profile" | "public" | "hood" | "extended";
|
|
307
|
+
marketplace_item_type: string;
|
|
308
|
+
images?: {
|
|
309
|
+
id: string;
|
|
310
|
+
croppedImg: File;
|
|
311
|
+
originalImg: File;
|
|
312
|
+
signedId?: string | undefined;
|
|
313
|
+
}[] | undefined;
|
|
314
|
+
price?: string | null | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
content: {
|
|
317
|
+
body: string;
|
|
318
|
+
embeddables?: {
|
|
319
|
+
role: "link" | "profile" | "mention";
|
|
320
|
+
gid: string;
|
|
321
|
+
indices?: number[] | null | undefined;
|
|
322
|
+
}[] | null | undefined;
|
|
323
|
+
attachments?: {
|
|
324
|
+
images?: {
|
|
325
|
+
id: string;
|
|
326
|
+
croppedImg: File;
|
|
327
|
+
originalImg: File;
|
|
328
|
+
signedId?: string | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
};
|
|
332
|
+
category: string;
|
|
333
|
+
content_type: "marketplace";
|
|
334
|
+
subject: string;
|
|
335
|
+
reach: "profile" | "public" | "hood" | "extended";
|
|
336
|
+
marketplace_item_type: string;
|
|
337
|
+
images?: {
|
|
338
|
+
id: string;
|
|
339
|
+
croppedImg: File;
|
|
340
|
+
originalImg: File;
|
|
341
|
+
signedId?: string | undefined;
|
|
342
|
+
}[] | undefined;
|
|
343
|
+
price?: string | null | undefined;
|
|
344
|
+
}>, {
|
|
345
|
+
content: {
|
|
346
|
+
body: string;
|
|
347
|
+
embeddables?: {
|
|
348
|
+
role: "link" | "profile" | "mention";
|
|
349
|
+
gid: string;
|
|
350
|
+
indices?: number[] | null | undefined;
|
|
351
|
+
}[] | null | undefined;
|
|
352
|
+
attachments?: {
|
|
353
|
+
images?: {
|
|
354
|
+
id: string;
|
|
355
|
+
croppedImg: File;
|
|
356
|
+
originalImg: File;
|
|
357
|
+
signedId?: string | undefined;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
} | undefined;
|
|
360
|
+
};
|
|
361
|
+
category: string;
|
|
227
362
|
content_type: "marketplace";
|
|
228
363
|
subject: string;
|
|
229
364
|
reach: "profile" | "public" | "hood" | "extended";
|
|
230
|
-
|
|
365
|
+
marketplace_item_type: string;
|
|
366
|
+
images?: {
|
|
367
|
+
id: string;
|
|
368
|
+
croppedImg: File;
|
|
369
|
+
originalImg: File;
|
|
370
|
+
signedId?: string | undefined;
|
|
371
|
+
}[] | undefined;
|
|
372
|
+
price?: string | null | undefined;
|
|
231
373
|
}, {
|
|
232
374
|
content: {
|
|
233
375
|
body: string;
|
|
@@ -245,10 +387,18 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
245
387
|
}[] | undefined;
|
|
246
388
|
} | undefined;
|
|
247
389
|
};
|
|
390
|
+
category: string;
|
|
248
391
|
content_type: "marketplace";
|
|
249
392
|
subject: string;
|
|
250
393
|
reach: "profile" | "public" | "hood" | "extended";
|
|
251
|
-
|
|
394
|
+
marketplace_item_type: string;
|
|
395
|
+
images?: {
|
|
396
|
+
id: string;
|
|
397
|
+
croppedImg: File;
|
|
398
|
+
originalImg: File;
|
|
399
|
+
signedId?: string | undefined;
|
|
400
|
+
}[] | undefined;
|
|
401
|
+
price?: string | null | undefined;
|
|
252
402
|
}>, z.ZodObject<{
|
|
253
403
|
content: z.ZodObject<{
|
|
254
404
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -329,7 +479,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
329
479
|
} | undefined;
|
|
330
480
|
}>;
|
|
331
481
|
content_type: z.ZodLiteral<"post">;
|
|
332
|
-
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
333
482
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
334
483
|
subject: z.ZodString;
|
|
335
484
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -352,7 +501,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
352
501
|
content_type: "post";
|
|
353
502
|
subject: string;
|
|
354
503
|
reach: "profile" | "public" | "hood" | "extended";
|
|
355
|
-
hood_group_id?: number | null | undefined;
|
|
356
504
|
}, {
|
|
357
505
|
content: {
|
|
358
506
|
body: string;
|
|
@@ -373,7 +521,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
373
521
|
content_type: "post";
|
|
374
522
|
subject: string;
|
|
375
523
|
reach: "profile" | "public" | "hood" | "extended";
|
|
376
|
-
hood_group_id?: number | null | undefined;
|
|
377
524
|
}>, z.ZodObject<{
|
|
378
525
|
content: z.ZodObject<{
|
|
379
526
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -454,7 +601,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
454
601
|
} | undefined;
|
|
455
602
|
}>;
|
|
456
603
|
content_type: z.ZodLiteral<"recommendation">;
|
|
457
|
-
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
458
604
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
459
605
|
subject: z.ZodString;
|
|
460
606
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -477,7 +623,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
477
623
|
content_type: "recommendation";
|
|
478
624
|
subject: string;
|
|
479
625
|
reach: "profile" | "public" | "hood" | "extended";
|
|
480
|
-
hood_group_id?: number | null | undefined;
|
|
481
626
|
}, {
|
|
482
627
|
content: {
|
|
483
628
|
body: string;
|
|
@@ -498,7 +643,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
498
643
|
content_type: "recommendation";
|
|
499
644
|
subject: string;
|
|
500
645
|
reach: "profile" | "public" | "hood" | "extended";
|
|
501
|
-
hood_group_id?: number | null | undefined;
|
|
502
646
|
}>, z.ZodObject<{
|
|
503
647
|
content: z.ZodObject<{
|
|
504
648
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -579,7 +723,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
579
723
|
} | undefined;
|
|
580
724
|
}>;
|
|
581
725
|
content_type: z.ZodLiteral<"search">;
|
|
582
|
-
hood_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
583
726
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
584
727
|
subject: z.ZodString;
|
|
585
728
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -602,7 +745,6 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
602
745
|
content_type: "search";
|
|
603
746
|
subject: string;
|
|
604
747
|
reach: "profile" | "public" | "hood" | "extended";
|
|
605
|
-
hood_group_id?: number | null | undefined;
|
|
606
748
|
}, {
|
|
607
749
|
content: {
|
|
608
750
|
body: string;
|
|
@@ -623,6 +765,5 @@ export declare const contentValidationSchema: z.ZodDiscriminatedUnion<"content_t
|
|
|
623
765
|
content_type: "search";
|
|
624
766
|
subject: string;
|
|
625
767
|
reach: "profile" | "public" | "hood" | "extended";
|
|
626
|
-
hood_group_id?: number | null | undefined;
|
|
627
768
|
}>]>;
|
|
628
769
|
export type ContentFormData = z.infer<typeof contentValidationSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const eventValidationSchema: z.ZodObject<{
|
|
3
|
+
category: z.ZodString;
|
|
3
4
|
content: z.ZodObject<{
|
|
4
5
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
6
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -79,8 +80,37 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
79
80
|
} | undefined;
|
|
80
81
|
}>;
|
|
81
82
|
content_type: z.ZodLiteral<"event">;
|
|
82
|
-
|
|
83
|
+
ends_at_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
84
|
+
ends_at_time: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
85
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
89
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
id: string;
|
|
92
|
+
croppedImg: File;
|
|
93
|
+
originalImg: File;
|
|
94
|
+
signedId?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
id: string;
|
|
97
|
+
croppedImg: File;
|
|
98
|
+
originalImg: File;
|
|
99
|
+
signedId?: string | undefined;
|
|
100
|
+
}>, "many">>;
|
|
101
|
+
location: z.ZodObject<{
|
|
102
|
+
gid: z.ZodOptional<z.ZodString>;
|
|
103
|
+
label: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
label: string;
|
|
106
|
+
gid?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
label: string;
|
|
109
|
+
gid?: string | undefined;
|
|
110
|
+
}>;
|
|
83
111
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
112
|
+
starts_at_date: z.ZodDate;
|
|
113
|
+
starts_at_time: z.ZodDate;
|
|
84
114
|
subject: z.ZodString;
|
|
85
115
|
}, "strip", z.ZodTypeAny, {
|
|
86
116
|
content: {
|
|
@@ -99,10 +129,24 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
99
129
|
}[] | undefined;
|
|
100
130
|
} | undefined;
|
|
101
131
|
};
|
|
132
|
+
category: string;
|
|
133
|
+
location: {
|
|
134
|
+
label: string;
|
|
135
|
+
gid?: string | undefined;
|
|
136
|
+
};
|
|
102
137
|
content_type: "event";
|
|
103
138
|
subject: string;
|
|
104
139
|
reach: "profile" | "public" | "hood" | "extended";
|
|
105
|
-
|
|
140
|
+
starts_at_date: Date;
|
|
141
|
+
starts_at_time: Date;
|
|
142
|
+
images?: {
|
|
143
|
+
id: string;
|
|
144
|
+
croppedImg: File;
|
|
145
|
+
originalImg: File;
|
|
146
|
+
signedId?: string | undefined;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
ends_at_date?: Date | null | undefined;
|
|
149
|
+
ends_at_time?: Date | null | undefined;
|
|
106
150
|
}, {
|
|
107
151
|
content: {
|
|
108
152
|
body: string;
|
|
@@ -120,8 +164,22 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
120
164
|
}[] | undefined;
|
|
121
165
|
} | undefined;
|
|
122
166
|
};
|
|
167
|
+
category: string;
|
|
168
|
+
location: {
|
|
169
|
+
label: string;
|
|
170
|
+
gid?: string | undefined;
|
|
171
|
+
};
|
|
123
172
|
content_type: "event";
|
|
124
173
|
subject: string;
|
|
125
174
|
reach: "profile" | "public" | "hood" | "extended";
|
|
126
|
-
|
|
175
|
+
starts_at_date: Date;
|
|
176
|
+
starts_at_time: Date;
|
|
177
|
+
images?: {
|
|
178
|
+
id: string;
|
|
179
|
+
croppedImg: File;
|
|
180
|
+
originalImg: File;
|
|
181
|
+
signedId?: string | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
ends_at_date?: Date | null | undefined;
|
|
184
|
+
ends_at_time?: Date | null | undefined;
|
|
127
185
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const marketplaceValidationSchema: z.ZodObject<{
|
|
2
|
+
export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
category: z.ZodString;
|
|
3
4
|
content: z.ZodObject<{
|
|
4
5
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
5
6
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -79,7 +80,24 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
|
|
|
79
80
|
} | undefined;
|
|
80
81
|
}>;
|
|
81
82
|
content_type: z.ZodLiteral<"marketplace">;
|
|
82
|
-
|
|
83
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
croppedImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
originalImg: z.ZodType<File, z.ZodTypeDef, File>;
|
|
87
|
+
signedId: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
id: string;
|
|
90
|
+
croppedImg: File;
|
|
91
|
+
originalImg: File;
|
|
92
|
+
signedId?: string | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
id: string;
|
|
95
|
+
croppedImg: File;
|
|
96
|
+
originalImg: File;
|
|
97
|
+
signedId?: string | undefined;
|
|
98
|
+
}>, "many">>;
|
|
99
|
+
marketplace_item_type: z.ZodString;
|
|
100
|
+
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
101
|
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
84
102
|
subject: z.ZodString;
|
|
85
103
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -99,10 +117,76 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
|
|
|
99
117
|
}[] | undefined;
|
|
100
118
|
} | undefined;
|
|
101
119
|
};
|
|
120
|
+
category: string;
|
|
121
|
+
content_type: "marketplace";
|
|
122
|
+
subject: string;
|
|
123
|
+
reach: "profile" | "public" | "hood" | "extended";
|
|
124
|
+
marketplace_item_type: string;
|
|
125
|
+
images?: {
|
|
126
|
+
id: string;
|
|
127
|
+
croppedImg: File;
|
|
128
|
+
originalImg: File;
|
|
129
|
+
signedId?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
price?: string | null | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
content: {
|
|
134
|
+
body: string;
|
|
135
|
+
embeddables?: {
|
|
136
|
+
role: "link" | "profile" | "mention";
|
|
137
|
+
gid: string;
|
|
138
|
+
indices?: number[] | null | undefined;
|
|
139
|
+
}[] | null | undefined;
|
|
140
|
+
attachments?: {
|
|
141
|
+
images?: {
|
|
142
|
+
id: string;
|
|
143
|
+
croppedImg: File;
|
|
144
|
+
originalImg: File;
|
|
145
|
+
signedId?: string | undefined;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
};
|
|
149
|
+
category: string;
|
|
150
|
+
content_type: "marketplace";
|
|
151
|
+
subject: string;
|
|
152
|
+
reach: "profile" | "public" | "hood" | "extended";
|
|
153
|
+
marketplace_item_type: string;
|
|
154
|
+
images?: {
|
|
155
|
+
id: string;
|
|
156
|
+
croppedImg: File;
|
|
157
|
+
originalImg: File;
|
|
158
|
+
signedId?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
price?: string | null | undefined;
|
|
161
|
+
}>, {
|
|
162
|
+
content: {
|
|
163
|
+
body: string;
|
|
164
|
+
embeddables?: {
|
|
165
|
+
role: "link" | "profile" | "mention";
|
|
166
|
+
gid: string;
|
|
167
|
+
indices?: number[] | null | undefined;
|
|
168
|
+
}[] | null | undefined;
|
|
169
|
+
attachments?: {
|
|
170
|
+
images?: {
|
|
171
|
+
id: string;
|
|
172
|
+
croppedImg: File;
|
|
173
|
+
originalImg: File;
|
|
174
|
+
signedId?: string | undefined;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
};
|
|
178
|
+
category: string;
|
|
102
179
|
content_type: "marketplace";
|
|
103
180
|
subject: string;
|
|
104
181
|
reach: "profile" | "public" | "hood" | "extended";
|
|
105
|
-
|
|
182
|
+
marketplace_item_type: string;
|
|
183
|
+
images?: {
|
|
184
|
+
id: string;
|
|
185
|
+
croppedImg: File;
|
|
186
|
+
originalImg: File;
|
|
187
|
+
signedId?: string | undefined;
|
|
188
|
+
}[] | undefined;
|
|
189
|
+
price?: string | null | undefined;
|
|
106
190
|
}, {
|
|
107
191
|
content: {
|
|
108
192
|
body: string;
|
|
@@ -120,8 +204,16 @@ export declare const marketplaceValidationSchema: z.ZodObject<{
|
|
|
120
204
|
}[] | undefined;
|
|
121
205
|
} | undefined;
|
|
122
206
|
};
|
|
207
|
+
category: string;
|
|
123
208
|
content_type: "marketplace";
|
|
124
209
|
subject: string;
|
|
125
210
|
reach: "profile" | "public" | "hood" | "extended";
|
|
126
|
-
|
|
211
|
+
marketplace_item_type: string;
|
|
212
|
+
images?: {
|
|
213
|
+
id: string;
|
|
214
|
+
croppedImg: File;
|
|
215
|
+
originalImg: File;
|
|
216
|
+
signedId?: string | undefined;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
price?: string | null | undefined;
|
|
127
219
|
}>;
|