@goodhood-web/nebenan-base 4.5.0-development.4 → 4.5.0-development.5
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 +77 -77
- package/index.mjs +9805 -9624
- package/lib/ContentCreator/ContentCreator.d.ts +1 -1
- package/lib/ContentCreator/ContentCreatorForm.d.ts +1 -1
- package/lib/ContentCreator/ContentCreatorForm.types.d.ts +13 -4
- 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 +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types.d.ts +1 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/EventFields/EventFields.types.d.ts +2 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/CategoryModalField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormCategory.d.ts +5 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/FormModalFields/FormLocation.d.ts +5 -2
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/ListModalField.types.d.ts +5 -0
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ListModalField/LocationModalField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/PostFields/FormRichTextArea.d.ts +5 -5
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeField.d.ts +1 -1
- package/lib/ContentCreator/components/ContentCreatorFieldWrapper/components/ReachTypeField/ReachTypeFields.types.d.ts +4 -1
- package/lib/ContentCreator/mockedData.d.ts +4 -0
- package/lib/ContentCreator/network.d.ts +2 -2
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +3 -3
- package/lib/ContentCreator/validationSchemas/commonSchemas.d.ts +1 -1
- package/lib/ContentCreator/validationSchemas/dynamicValidationSchema.d.ts +17 -17
- package/lib/ContentCreator/validationSchemas/eventSchema.d.ts +3 -3
- package/lib/ContentCreator/validationSchemas/marketplaceSchema.d.ts +5 -5
- package/lib/ContentCreator/validationSchemas/postSchema.d.ts +9 -9
- package/lib/Feed/FeedItem/Replies/ReplySection/network.d.ts +1 -0
- package/lib/Feed/FeedItem/Replies/ReplySection/utils.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentCreatorProps } from './ContentCreatorForm.types';
|
|
2
|
-
declare const ContentCreator: ({ config, contentType, disablePremiumFeature,
|
|
2
|
+
declare const ContentCreator: ({ config, contentType, disablePremiumFeature, group, onDismiss, onSubmitSuccess, open, post, postId, profile, }: ContentCreatorProps & {
|
|
3
3
|
config: {
|
|
4
4
|
chargebee: {
|
|
5
5
|
site: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ContentCreatorProps } from './ContentCreatorForm.types';
|
|
2
|
-
declare const ContentCreatorForm: ({ contentType, disablePremiumFeature,
|
|
2
|
+
declare const ContentCreatorForm: ({ contentType, disablePremiumFeature, onDismiss, onSubmitSuccess, open, post, postId, className, profile, group, }: ContentCreatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ContentCreatorForm;
|
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
import { components } from '../../../../api/src/lib/core';
|
|
2
|
+
import { ProfileResponse } from '../../../../api/src/lib/core_v2';
|
|
2
3
|
import { ContentFormData } from './validationSchemas';
|
|
3
4
|
export type PostItem = components['schemas']['Core_V3_Input_HoodMessage'];
|
|
4
5
|
export type FailureError = {
|
|
5
6
|
failures: components['schemas']['Core_V3_Failure_List'];
|
|
6
7
|
};
|
|
7
8
|
export type HoodMessage = components['schemas']['Core_V3_HoodMessage'];
|
|
9
|
+
export type Group = {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
id: number;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
export type HoodGroupId = number | null | undefined;
|
|
8
15
|
export type ContentCreatorProps = {
|
|
16
|
+
className?: string;
|
|
9
17
|
contentType?: 'post' | 'event' | 'marketplace' | 'search' | 'recommendation';
|
|
10
18
|
disablePremiumFeature?: boolean;
|
|
11
|
-
|
|
19
|
+
group?: Group;
|
|
12
20
|
onDismiss: () => void;
|
|
13
21
|
onSubmitSuccess: (response: HoodMessage) => void;
|
|
14
22
|
open: boolean;
|
|
15
23
|
post?: PostItem;
|
|
16
24
|
postId?: number | string;
|
|
25
|
+
profile: ProfileResponse;
|
|
17
26
|
};
|
|
18
27
|
export type ContentCreatorFormProps = {
|
|
19
28
|
disablePremiumFeature?: boolean;
|
|
20
29
|
formError?: string | null;
|
|
30
|
+
group: Group | null | undefined;
|
|
21
31
|
isEditMode?: boolean;
|
|
22
|
-
|
|
32
|
+
isPreSelectedMode: boolean;
|
|
23
33
|
isSubmitting: boolean;
|
|
24
34
|
onContentCreatorDismiss: () => void;
|
|
25
|
-
onFormSheetClose: () => void;
|
|
26
|
-
onFormSheetOpen: () => void;
|
|
27
35
|
postId?: number | string;
|
|
36
|
+
profile: ProfileResponse;
|
|
28
37
|
};
|
|
29
38
|
export type PostFormData = Extract<ContentFormData, {
|
|
30
39
|
content_type: 'post' | 'search' | 'recommendation';
|
package/lib/ContentCreator/components/ContentCreatorFieldWrapper/ContentCreatorFieldsWrapper.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ContentCreatorFormProps } from '../../ContentCreatorForm.types';
|
|
2
|
-
declare const ContentCreatorFieldsWrapper: ({ disablePremiumFeature, formError, isEditMode,
|
|
2
|
+
declare const ContentCreatorFieldsWrapper: ({ disablePremiumFeature, formError, group, isEditMode, isPreSelectedMode, isSubmitting, onContentCreatorDismiss, postId, profile, }: ContentCreatorFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ContentCreatorFieldsWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ContentProps, FooterProps, HeaderProps } from './ContentFieldsSheet.types';
|
|
2
|
-
export declare const Header: ({ isSubmitting, onContentTypeSelectorOpen, onDismiss, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const Content: ({ disablePremiumFeature, onOpenReachTypeSelector, onPoiDismiss, poiClicked, postId, richTextAreaRef, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const Footer: ({ formError, isSubmitting, onImageUploadClick, onOpenReachTypeSelector, onPoiOpen, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Header: ({ isSubmitting, onContentTypeSelectorOpen, onDismiss, profile, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Content: ({ disablePremiumFeature, group, onOpenReachTypeSelector, onPoiDismiss, poiClicked, postId, richTextAreaRef, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Footer: ({ formError, group, isSubmitting, onImageUploadClick, onOpenReachTypeSelector, onPoiOpen, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import { ProfileResponse } from '../../../../../../../../api/src/lib/core_v2';
|
|
2
3
|
import { RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
|
|
4
|
+
import { Group } from '../../../../ContentCreatorForm.types';
|
|
3
5
|
export type HeaderProps = {
|
|
4
6
|
isSubmitting: boolean;
|
|
5
7
|
onContentTypeSelectorOpen: () => void;
|
|
6
8
|
onDismiss: () => void;
|
|
9
|
+
profile: ProfileResponse;
|
|
7
10
|
};
|
|
8
11
|
export type ContentProps = {
|
|
9
12
|
disablePremiumFeature?: boolean;
|
|
13
|
+
group: Group | null | undefined;
|
|
10
14
|
onOpenReachTypeSelector: () => void;
|
|
11
15
|
onPoiDismiss: () => void;
|
|
12
16
|
poiClicked: boolean;
|
|
@@ -15,6 +19,7 @@ export type ContentProps = {
|
|
|
15
19
|
};
|
|
16
20
|
export type FooterProps = {
|
|
17
21
|
formError?: string | null;
|
|
22
|
+
group: Group | null | undefined;
|
|
18
23
|
isSubmitting: boolean;
|
|
19
24
|
onImageUploadClick: () => void;
|
|
20
25
|
onOpenReachTypeSelector: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ContentTypeSheetProps } from './ContentTypeField.types';
|
|
2
|
-
declare const ContentTypeField: ({ onClose, onFormSheetOpen, onSelect, open, }: ContentTypeSheetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
declare const ContentTypeField: ({ hoodGroupId, onClose, onFormSheetOpen, onSelect, open, }: ContentTypeSheetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default ContentTypeField;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EventFieldsProps } from './EventFields.types';
|
|
2
|
-
declare const EventFields: ({ onOpenReachTypeSelector }: EventFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const EventFields: ({ group, onOpenReachTypeSelector }: EventFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default EventFields;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CategoryModalFieldProps } from './ListModalField.types';
|
|
2
|
-
declare const CategoryModalField: ({ disabled, errorMessage, floatingLabel, items, onChange, value, }: CategoryModalFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const CategoryModalField: ({ disabled, errorMessage, floatingLabel, items, onChange, open, setOpen, value, }: CategoryModalFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CategoryModalField;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { UseControllerProps } from 'react-hook-form';
|
|
2
2
|
import { CategoryModalFieldProps } from '../ListModalField.types';
|
|
3
|
-
export type FormCategoryFieldProps = UseControllerProps & Partial<CategoryModalFieldProps
|
|
4
|
-
|
|
3
|
+
export type FormCategoryFieldProps = UseControllerProps & Partial<CategoryModalFieldProps> & {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: CategoryModalFieldProps['setOpen'];
|
|
6
|
+
};
|
|
7
|
+
export default function FormCategory({ floatingLabel, isMarketplaceCategory, name, open, setOpen, value, }: FormCategoryFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { UseControllerProps } from 'react-hook-form';
|
|
2
2
|
import { ContentFormData } from '../../../../../validationSchemas';
|
|
3
3
|
import { LocationModalFieldProps } from '../ListModalField.types';
|
|
4
|
-
export type FormLocationFieldProps = UseControllerProps<ContentFormData> & Partial<LocationModalFieldProps
|
|
5
|
-
|
|
4
|
+
export type FormLocationFieldProps = UseControllerProps<ContentFormData> & Partial<LocationModalFieldProps> & {
|
|
5
|
+
locationModalOpen: boolean;
|
|
6
|
+
setLocationModalOpen: LocationModalFieldProps['setOpen'];
|
|
7
|
+
};
|
|
8
|
+
export default function FormLocation({ floatingLabel, locationModalOpen, name, setLocationModalOpen, value, }: FormLocationFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
1
2
|
import { SelectValueType } from '../../../../../../../../ui/src/lib/Atoms/Dropdowns/DropdownItem/DropdownItem.types';
|
|
2
3
|
import { CategoryItem, LocationValue } from './FormModalFields/FormModalsFields.types';
|
|
3
4
|
export type CategoryModalFieldProps = {
|
|
@@ -7,6 +8,8 @@ export type CategoryModalFieldProps = {
|
|
|
7
8
|
isMarketplaceCategory?: boolean;
|
|
8
9
|
items?: CategoryItem[];
|
|
9
10
|
onChange: (value: SelectValueType) => void;
|
|
11
|
+
open: boolean;
|
|
12
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
10
13
|
value: SelectValueType;
|
|
11
14
|
};
|
|
12
15
|
export type LocationModalFieldProps = {
|
|
@@ -14,6 +17,8 @@ export type LocationModalFieldProps = {
|
|
|
14
17
|
errorMessage?: string;
|
|
15
18
|
floatingLabel?: string;
|
|
16
19
|
onChange: (value: LocationValue) => void;
|
|
20
|
+
open: boolean;
|
|
21
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
17
22
|
value: LocationValue;
|
|
18
23
|
};
|
|
19
24
|
export type DropdownButtonProps = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LocationModalFieldProps } from './ListModalField.types';
|
|
2
|
-
declare const LocationModalField: ({ disabled, errorMessage, floatingLabel, onChange, value, }: LocationModalFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const LocationModalField: ({ disabled, errorMessage, floatingLabel, onChange, open, setOpen, value, }: LocationModalFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LocationModalField;
|
|
@@ -23,7 +23,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
23
23
|
};
|
|
24
24
|
content_type: "post";
|
|
25
25
|
subject: string;
|
|
26
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
26
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
27
27
|
} | {
|
|
28
28
|
content: {
|
|
29
29
|
body: string;
|
|
@@ -43,7 +43,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
43
43
|
};
|
|
44
44
|
content_type: "search";
|
|
45
45
|
subject: string;
|
|
46
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
46
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
47
47
|
} | {
|
|
48
48
|
content: {
|
|
49
49
|
body: string;
|
|
@@ -63,7 +63,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
63
63
|
};
|
|
64
64
|
content_type: "recommendation";
|
|
65
65
|
subject: string;
|
|
66
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
66
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
67
67
|
} | {
|
|
68
68
|
content: {
|
|
69
69
|
body: string;
|
|
@@ -88,7 +88,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
88
88
|
};
|
|
89
89
|
content_type: "event";
|
|
90
90
|
subject: string;
|
|
91
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
91
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
92
92
|
starts_at_date: Date;
|
|
93
93
|
starts_at_time: Date;
|
|
94
94
|
images?: {
|
|
@@ -130,7 +130,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
|
|
|
130
130
|
signedId?: string | undefined;
|
|
131
131
|
}[]];
|
|
132
132
|
subject: string;
|
|
133
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
133
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
134
134
|
marketplace_item_type: string;
|
|
135
135
|
premium_feature: {
|
|
136
136
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReachTypeFieldProps } from './ReachTypeFields.types';
|
|
2
|
-
declare const ReachTypeField: ({ onClose, open }: ReachTypeFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ReachTypeField: ({ group, hoodName, onClose, open }: ReachTypeFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ReachTypeField;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { Group } from '../../../../ContentCreatorForm.types';
|
|
1
2
|
export type OptionType = {
|
|
2
3
|
label: string;
|
|
3
4
|
secondaryText: string;
|
|
4
5
|
value: ReachType;
|
|
5
6
|
};
|
|
6
7
|
export type ReachTypeFieldProps = {
|
|
8
|
+
group: Group | null | undefined;
|
|
9
|
+
hoodName?: string;
|
|
7
10
|
onClose: () => void;
|
|
8
11
|
open: boolean;
|
|
9
12
|
};
|
|
10
|
-
export type ReachType = 'hood' | 'extended' | 'public';
|
|
13
|
+
export type ReachType = 'hood' | 'extended' | 'public' | 'group';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { OnFormSubmitType } from '../Forms/Form/Form.types';
|
|
3
|
-
import { HoodMessage, MarketplaceFormData } from './ContentCreatorForm.types';
|
|
3
|
+
import { HoodGroupId, HoodMessage, MarketplaceFormData } from './ContentCreatorForm.types';
|
|
4
4
|
import { ContentFormData } from './validationSchemas';
|
|
5
|
-
export declare const handleSubmit: (data: OnFormSubmitType<ContentFormData>, isEditMode: boolean, setFormError: Dispatch<SetStateAction<string | null>>, hoodGroupId
|
|
5
|
+
export declare const handleSubmit: (data: OnFormSubmitType<ContentFormData>, isEditMode: boolean, setFormError: Dispatch<SetStateAction<string | null>>, hoodGroupId: HoodGroupId, onSuccess?: (responseData: HoodMessage | undefined, premiumFeature?: MarketplaceFormData["premium_feature"]) => void, onError?: (error: unknown) => void) => Promise<boolean | undefined>;
|
|
@@ -9,7 +9,7 @@ export declare const generatePostPayload: (data: PostFormData) => {
|
|
|
9
9
|
indices?: number[] | null | undefined;
|
|
10
10
|
}[] | null | undefined;
|
|
11
11
|
images: string[] | null;
|
|
12
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
12
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
13
13
|
subject: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const generateEventPayload: (data: EventFormData) => {
|
|
@@ -25,7 +25,7 @@ export declare const generateEventPayload: (data: EventFormData) => {
|
|
|
25
25
|
ends_at: string | null | undefined;
|
|
26
26
|
images: string[] | null;
|
|
27
27
|
location: string;
|
|
28
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
28
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
29
29
|
starts_all_day: boolean;
|
|
30
30
|
starts_at: string;
|
|
31
31
|
subject: string;
|
|
@@ -41,6 +41,6 @@ export declare const generateMarketplacePayload: (data: MarketplaceFormData) =>
|
|
|
41
41
|
}[];
|
|
42
42
|
images: string[] | null;
|
|
43
43
|
price: number | null;
|
|
44
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
44
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
45
45
|
subject: string;
|
|
46
46
|
};
|
|
@@ -28,7 +28,7 @@ export declare const imageFileSchema: z.ZodObject<{
|
|
|
28
28
|
originalImg: File;
|
|
29
29
|
signedId?: string | undefined;
|
|
30
30
|
}>;
|
|
31
|
-
export declare const reachSchema: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
31
|
+
export declare const reachSchema: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
32
32
|
export type ImageFile = z.infer<typeof imageFileSchema>;
|
|
33
33
|
export declare const subjectSchema: z.ZodString;
|
|
34
34
|
export declare const bodyWithEmbedsSchema: z.ZodObject<{
|
|
@@ -108,7 +108,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
108
108
|
label: string;
|
|
109
109
|
gid?: string | undefined;
|
|
110
110
|
}>;
|
|
111
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
111
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
@@ -136,7 +136,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
136
136
|
};
|
|
137
137
|
content_type: "event";
|
|
138
138
|
subject: string;
|
|
139
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
139
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
140
140
|
starts_at_date: Date;
|
|
141
141
|
starts_at_time: Date;
|
|
142
142
|
images?: {
|
|
@@ -171,7 +171,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
171
171
|
};
|
|
172
172
|
content_type: "event";
|
|
173
173
|
subject: string;
|
|
174
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
174
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
175
175
|
starts_at_date: Date;
|
|
176
176
|
starts_at_time: Date;
|
|
177
177
|
images?: {
|
|
@@ -294,7 +294,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
294
294
|
pill?: string | undefined;
|
|
295
295
|
}>;
|
|
296
296
|
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
297
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
298
298
|
subject: z.ZodString;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
300
|
content: {
|
|
@@ -327,7 +327,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
327
327
|
signedId?: string | undefined;
|
|
328
328
|
}[]];
|
|
329
329
|
subject: string;
|
|
330
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
330
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
331
331
|
marketplace_item_type: string;
|
|
332
332
|
premium_feature: {
|
|
333
333
|
id: string;
|
|
@@ -366,7 +366,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
366
366
|
signedId?: string | undefined;
|
|
367
367
|
}[]];
|
|
368
368
|
subject: string;
|
|
369
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
369
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
370
370
|
marketplace_item_type: string;
|
|
371
371
|
premium_feature: {
|
|
372
372
|
id: string;
|
|
@@ -405,7 +405,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
405
405
|
signedId?: string | undefined;
|
|
406
406
|
}[]];
|
|
407
407
|
subject: string;
|
|
408
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
408
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
409
409
|
marketplace_item_type: string;
|
|
410
410
|
premium_feature: {
|
|
411
411
|
id: string;
|
|
@@ -444,7 +444,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
444
444
|
signedId?: string | undefined;
|
|
445
445
|
}[]];
|
|
446
446
|
subject: string;
|
|
447
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
447
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
448
448
|
marketplace_item_type: string;
|
|
449
449
|
premium_feature: {
|
|
450
450
|
id: string;
|
|
@@ -532,7 +532,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
532
532
|
} | undefined;
|
|
533
533
|
}>;
|
|
534
534
|
content_type: z.ZodLiteral<"post">;
|
|
535
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
535
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
536
536
|
subject: z.ZodString;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
538
|
content: {
|
|
@@ -553,7 +553,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
553
553
|
};
|
|
554
554
|
content_type: "post";
|
|
555
555
|
subject: string;
|
|
556
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
556
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
557
557
|
}, {
|
|
558
558
|
content: {
|
|
559
559
|
body: string;
|
|
@@ -573,7 +573,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
573
573
|
};
|
|
574
574
|
content_type: "post";
|
|
575
575
|
subject: string;
|
|
576
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
576
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
577
577
|
}>, z.ZodObject<{
|
|
578
578
|
content: z.ZodObject<{
|
|
579
579
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -654,7 +654,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
654
654
|
} | undefined;
|
|
655
655
|
}>;
|
|
656
656
|
content_type: z.ZodLiteral<"recommendation">;
|
|
657
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
657
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
658
658
|
subject: z.ZodString;
|
|
659
659
|
}, "strip", z.ZodTypeAny, {
|
|
660
660
|
content: {
|
|
@@ -675,7 +675,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
675
675
|
};
|
|
676
676
|
content_type: "recommendation";
|
|
677
677
|
subject: string;
|
|
678
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
678
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
679
679
|
}, {
|
|
680
680
|
content: {
|
|
681
681
|
body: string;
|
|
@@ -695,7 +695,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
695
695
|
};
|
|
696
696
|
content_type: "recommendation";
|
|
697
697
|
subject: string;
|
|
698
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
698
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
699
699
|
}>, z.ZodObject<{
|
|
700
700
|
content: z.ZodObject<{
|
|
701
701
|
attachments: z.ZodOptional<z.ZodObject<{
|
|
@@ -776,7 +776,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
776
776
|
} | undefined;
|
|
777
777
|
}>;
|
|
778
778
|
content_type: z.ZodLiteral<"search">;
|
|
779
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
779
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
780
780
|
subject: z.ZodString;
|
|
781
781
|
}, "strip", z.ZodTypeAny, {
|
|
782
782
|
content: {
|
|
@@ -797,7 +797,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
797
797
|
};
|
|
798
798
|
content_type: "search";
|
|
799
799
|
subject: string;
|
|
800
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
800
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
801
801
|
}, {
|
|
802
802
|
content: {
|
|
803
803
|
body: string;
|
|
@@ -817,6 +817,6 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
817
817
|
};
|
|
818
818
|
content_type: "search";
|
|
819
819
|
subject: string;
|
|
820
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
820
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
821
821
|
}>]>;
|
|
822
822
|
export type ContentFormData = z.infer<typeof contentValidationSchema>;
|
|
@@ -108,7 +108,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
108
108
|
label: string;
|
|
109
109
|
gid?: string | undefined;
|
|
110
110
|
}>;
|
|
111
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
111
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
112
112
|
starts_at_date: z.ZodDate;
|
|
113
113
|
starts_at_time: z.ZodDate;
|
|
114
114
|
subject: z.ZodString;
|
|
@@ -136,7 +136,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
136
136
|
};
|
|
137
137
|
content_type: "event";
|
|
138
138
|
subject: string;
|
|
139
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
139
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
140
140
|
starts_at_date: Date;
|
|
141
141
|
starts_at_time: Date;
|
|
142
142
|
images?: {
|
|
@@ -171,7 +171,7 @@ export declare const eventValidationSchema: z.ZodObject<{
|
|
|
171
171
|
};
|
|
172
172
|
content_type: "event";
|
|
173
173
|
subject: string;
|
|
174
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
174
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
175
175
|
starts_at_date: Date;
|
|
176
176
|
starts_at_time: Date;
|
|
177
177
|
images?: {
|
|
@@ -111,7 +111,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
111
111
|
pill?: string | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
114
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
114
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
115
115
|
subject: z.ZodString;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
content: {
|
|
@@ -144,7 +144,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
144
144
|
signedId?: string | undefined;
|
|
145
145
|
}[]];
|
|
146
146
|
subject: string;
|
|
147
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
147
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
148
148
|
marketplace_item_type: string;
|
|
149
149
|
premium_feature: {
|
|
150
150
|
id: string;
|
|
@@ -183,7 +183,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
183
183
|
signedId?: string | undefined;
|
|
184
184
|
}[]];
|
|
185
185
|
subject: string;
|
|
186
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
186
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
187
187
|
marketplace_item_type: string;
|
|
188
188
|
premium_feature: {
|
|
189
189
|
id: string;
|
|
@@ -222,7 +222,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
222
222
|
signedId?: string | undefined;
|
|
223
223
|
}[]];
|
|
224
224
|
subject: string;
|
|
225
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
225
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
226
226
|
marketplace_item_type: string;
|
|
227
227
|
premium_feature: {
|
|
228
228
|
id: string;
|
|
@@ -261,7 +261,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
261
261
|
signedId?: string | undefined;
|
|
262
262
|
}[]];
|
|
263
263
|
subject: string;
|
|
264
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
264
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
265
265
|
marketplace_item_type: string;
|
|
266
266
|
premium_feature: {
|
|
267
267
|
id: string;
|
|
@@ -79,7 +79,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
79
79
|
} | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
content_type: z.ZodLiteral<"post">;
|
|
82
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
82
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
83
83
|
subject: z.ZodString;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
content: {
|
|
@@ -100,7 +100,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
100
100
|
};
|
|
101
101
|
content_type: "post";
|
|
102
102
|
subject: string;
|
|
103
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
103
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
104
104
|
}, {
|
|
105
105
|
content: {
|
|
106
106
|
body: string;
|
|
@@ -120,7 +120,7 @@ export declare const postValidationSchema: z.ZodObject<{
|
|
|
120
120
|
};
|
|
121
121
|
content_type: "post";
|
|
122
122
|
subject: string;
|
|
123
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
123
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
124
124
|
}>;
|
|
125
125
|
export declare const searchValidationSchema: z.ZodObject<{
|
|
126
126
|
content: z.ZodObject<{
|
|
@@ -202,7 +202,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
202
202
|
} | undefined;
|
|
203
203
|
}>;
|
|
204
204
|
content_type: z.ZodLiteral<"search">;
|
|
205
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
205
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
206
206
|
subject: z.ZodString;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
content: {
|
|
@@ -223,7 +223,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
223
223
|
};
|
|
224
224
|
content_type: "search";
|
|
225
225
|
subject: string;
|
|
226
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
226
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
227
227
|
}, {
|
|
228
228
|
content: {
|
|
229
229
|
body: string;
|
|
@@ -243,7 +243,7 @@ export declare const searchValidationSchema: z.ZodObject<{
|
|
|
243
243
|
};
|
|
244
244
|
content_type: "search";
|
|
245
245
|
subject: string;
|
|
246
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
246
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
247
247
|
}>;
|
|
248
248
|
export declare const recommendationValidationSchema: z.ZodObject<{
|
|
249
249
|
content: z.ZodObject<{
|
|
@@ -325,7 +325,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
325
325
|
} | undefined;
|
|
326
326
|
}>;
|
|
327
327
|
content_type: z.ZodLiteral<"recommendation">;
|
|
328
|
-
reach: z.ZodEnum<["profile", "hood", "extended", "public"]>;
|
|
328
|
+
reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
|
|
329
329
|
subject: z.ZodString;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
331
|
content: {
|
|
@@ -346,7 +346,7 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
346
346
|
};
|
|
347
347
|
content_type: "recommendation";
|
|
348
348
|
subject: string;
|
|
349
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
349
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
350
350
|
}, {
|
|
351
351
|
content: {
|
|
352
352
|
body: string;
|
|
@@ -366,5 +366,5 @@ export declare const recommendationValidationSchema: z.ZodObject<{
|
|
|
366
366
|
};
|
|
367
367
|
content_type: "recommendation";
|
|
368
368
|
subject: string;
|
|
369
|
-
reach: "profile" | "public" | "hood" | "extended";
|
|
369
|
+
reach: "group" | "profile" | "public" | "hood" | "extended";
|
|
370
370
|
}>;
|
|
@@ -5,6 +5,7 @@ type PostReplyProps = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const postReply: ({ postId, reply }: PostReplyProps) => Promise<{
|
|
7
7
|
id: number;
|
|
8
|
+
parent_hood_message_id: number;
|
|
8
9
|
body: string;
|
|
9
10
|
author_details?: import('../../../../../../../api/src/lib/core').components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
10
11
|
created_at: string;
|
|
@@ -9,6 +9,7 @@ type SlicedRepliesProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const slicedReplies: ({ expanded, limit, replies }: SlicedRepliesProps) => {
|
|
11
11
|
id: number;
|
|
12
|
+
parent_hood_message_id: number;
|
|
12
13
|
body: string;
|
|
13
14
|
author_details?: components["schemas"]["Core_V3_AuthorDetails"] | null;
|
|
14
15
|
created_at: string;
|