UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

35 lines (29 loc) 1.02 kB
export {}; declare global { namespace Amity { // Raw response from BE, not contain all linked objects type PinnedPostPayload<T extends Amity.PostContentType = any> = { pinTargets: Amity.RawPinTarget[]; pins: Amity.RawPin[]; posts: Amity.RawPost<T>[]; postChildren: Amity.RawPost<T>[]; comments: Amity.RawComment[]; videoStreamings: Amity.RawStream[]; polls: Amity.RawPoll[]; } & Amity.CommunityPayload; type PinnedPostLiveCollection = Amity.LiveCollectionParams<{ communityId: Amity.Community['communityId']; placement?: string | null; sortBy: 'lastPinned' | 'lastCreated'; }>; type PinnedPostLiveCollectionCache = Omit< Amity.LiveCollectionCache<Amity.InternalPin['referenceId'], Amity.Page>, 'params' >; type PinnedPost = Amity.RawPin & { post: Amity.Post | undefined; target: Amity.PinTarget | undefined; }; type GlobalPinnedPostLiveCollection = Amity.LiveCollectionParams<{}>; } }