@goodhood-web/nebenan-base 4.10.0 → 4.10.1-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.js +1 -1
- package/index.mjs +1 -1
- package/lib/ContentCreator/utils/payloadGenerators.d.ts +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -78992,7 +78992,7 @@ const IC = (t) => {
|
|
|
78992
78992
|
images: Qg((i = t.content.attachments) == null ? void 0 : i.images),
|
|
78993
78993
|
reach: t.reach,
|
|
78994
78994
|
subject: t.subject,
|
|
78995
|
-
topic: IC(e)
|
|
78995
|
+
topic: t.topic ? IC(e) : null
|
|
78996
78996
|
};
|
|
78997
78997
|
}, Xse = (t, e, n) => {
|
|
78998
78998
|
var r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageFile } from '../../RichTextArea/RichTextArea.types';
|
|
2
2
|
import { EventFormData, MarketplaceFormData, PostFormData, Topic } from '../ContentCreatorForm.types';
|
|
3
3
|
import { MarketplaceContentType } from '../components/ContentCreatorFieldWrapper/components/ContentTypeField/ContentTypeField.types';
|
|
4
|
-
export declare const generatePostPayload: (data: PostFormData,
|
|
4
|
+
export declare const generatePostPayload: (data: PostFormData, contentTopic?: Topic) => {
|
|
5
5
|
body: string;
|
|
6
6
|
content_type: "search" | "post" | "recommendation";
|
|
7
7
|
embeds: {
|
|
@@ -14,7 +14,7 @@ export declare const generatePostPayload: (data: PostFormData, topic?: Topic) =>
|
|
|
14
14
|
subject: string;
|
|
15
15
|
topic: string | null;
|
|
16
16
|
};
|
|
17
|
-
export declare const generateEventPayload: (data: EventFormData, selectedImage?: ImageFile | null,
|
|
17
|
+
export declare const generateEventPayload: (data: EventFormData, selectedImage?: ImageFile | null, contentTopic?: Topic) => {
|
|
18
18
|
body: string;
|
|
19
19
|
category: string;
|
|
20
20
|
content_type: "event";
|