@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
35 lines • 1.14 kB
TypeScript
/**
* ```js
* import { PostRepository } from '@amityco/ts-sdk-react-native'
* const { data } = await PostRepository.createMixedMediaPost({
* targetType: 'community',
* targetId: 'community123',
* data: { text: 'Check out my mixed media post!', title: 'Mixed Media Post' },
* attachments: [
* { fileId: "file1", type: "image" },
* { fileId: "file2", type: "video" },
* { fileId: "file3", type: "audio" },
* { fileId: "file4", type: "file" }
* ],
* })
* ```
*
* Creates an {@link Amity.Post}
*
* @param bundle The data necessary to create a new {@link Amity.Post}
* @returns The newly created {@link Amity.Post}
*
* @category Post API
* @async
*/
export declare const createMixedMediaPost: (bundle: Pick<Amity.Post, 'targetType' | 'targetId'> & Partial<Pick<Amity.Post, 'metadata' | 'mentionees' | 'tags' | 'hashtags'>> & {
data?: {
text?: string;
title?: string;
};
attachments: {
type: Amity.MixedMediaPostContentType;
fileId: Amity.File['fileId'];
}[];
}) => Promise<Amity.Cached<Amity.Post>>;
//# sourceMappingURL=createMixedMediaPost.d.ts.map