UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

54 lines 2.12 kB
export {}; export declare const enum FeedDataTypeEnum { Text = "text", Video = "video", Image = "image", File = "file", LiveStream = "liveStream", Clip = "clip", Poll = "poll" } export declare const enum FeedSortByEnum { LastCreated = "lastCreated", FirstCreated = "firstCreated", LastUpdated = "lastUpdated", FirstUpdated = "firstUpdated" } export declare const enum FeedSourceEnum { Community = "community", User = "user" } declare global { namespace Amity { type FeedDataType = FeedDataTypeEnum; type FeedSortBy = FeedSortByEnum; type FeedSource = FeedSourceEnum; type Feed = { feedId: string; feedType: 'reviewing' | 'published'; targetType: Extract<Amity.Domain, 'community' | 'user'>; targetId: string; postCount: number; } & Amity.Timestamps; type QueryGlobalFeed = { dataTypes?: ('video' | 'image' | 'file' | 'liveStream' | 'clip')[]; queryToken?: string; resolveParent?: boolean; }; type CustomRankingGlobalFeedLiveCollection = Amity.LiveCollectionParams<Omit<QueryGlobalFeed, 'resolveParent' | 'queryToken'>>; type CustomRankingGlobalFeedLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], QueryGlobalFeed>; type GlobalFeedLiveCollection = Amity.LiveCollectionParams<Omit<QueryGlobalFeed, 'queryToken'>>; type GlobalFeedLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], QueryGlobalFeed>; type QueryUserFeed = { userId: string; includeDeleted?: boolean; sortBy?: Amity.FeedSortBy; dataTypes?: Amity.FeedDataType[]; matchingOnlyParentPost?: boolean; feedSources?: Amity.FeedSource[]; }; type UserFeedLiveCollection = Amity.LiveCollectionParams<QueryUserFeed>; type UserFeedLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], QueryUserFeed>; } } //# sourceMappingURL=feed.d.ts.map