UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

30 lines 974 B
/** * ```js * import { PostRepository } from '@amityco/ts-sdk-react-native' * const created = await PostRepository.createAudioPost({ * targetType: 'user', * targetId: 'foobar', * data: { text: 'Audio Post', title: 'Audio Post Title' }, * attachments: [{ type: 'audio', fileId: 'fileId123'}] * })) * ``` * * 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 createAudioPost: (bundle: Pick<Amity.Post, 'targetType' | 'targetId'> & Partial<Pick<Amity.Post, 'metadata' | 'mentionees' | 'tags' | 'hashtags'>> & { data?: { text?: string; title?: string; }; attachments: { type: Extract<Amity.MixedMediaPostContentType, 'audio'>; fileId: Amity.File['fileId']; }[]; }) => Promise<Amity.Cached<Amity.Post>>; //# sourceMappingURL=createAudioPost.d.ts.map