UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

32 lines 1.03 kB
/** * ```js * import { PostRepository } from '@amityco/ts-sdk' * const created = await PostRepository.createClipPost({ * targetType: 'user', * targetId: 'foobar', * dataType: 'clip', * data: { text: 'hello world' }, * attachments: [{ type: 'clip', fileId: 'fileId123', displayMode: 'fill', isMuted: false }] * })) * ``` * * 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 createClipPost: <T extends string>(bundle: Pick<Amity.Post<T>, "targetId" | "targetType"> & Partial<Pick<Amity.Post<T>, "tags" | "metadata" | "mentionees">> & { data: { [k: string]: any; }; attachments: { type: T; fileId: Amity.File['fileId']; displayMode?: Amity.ClipDisplayMode | undefined; isMuted?: boolean | undefined; }[]; }) => Promise<Amity.Cached<Amity.Post>>; //# sourceMappingURL=createClipPost.d.ts.map