@livetiles/reach-plugin-types 0.5.0-preview.1025 → 0.5.0-preview.1027
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +17 -6
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7444,11 +7444,23 @@ declare module "libs/reach/feature/content/src/pages/usePagesApi" {
|
|
|
7444
7444
|
};
|
|
7445
7445
|
}
|
|
7446
7446
|
declare module "libs/reach/feature/content/src/posts/utils" {
|
|
7447
|
-
import { Account,
|
|
7447
|
+
import { Account, BaseItem, Comment, CurrentUser, ItemStatistics, ItemWithAttachments, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
7448
7448
|
import { FilterWithLogicalOperator } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7449
|
+
export enum CoverType {
|
|
7450
|
+
Image = 0,
|
|
7451
|
+
Video = 1
|
|
7452
|
+
}
|
|
7453
|
+
export interface CoverInfo {
|
|
7454
|
+
cropData?: {
|
|
7455
|
+
leftPct: number;
|
|
7456
|
+
topPct: number;
|
|
7457
|
+
};
|
|
7458
|
+
id: string;
|
|
7459
|
+
type: CoverType;
|
|
7460
|
+
}
|
|
7449
7461
|
export interface Post extends BaseItem, ItemWithAttachments {
|
|
7450
7462
|
id: string;
|
|
7451
|
-
|
|
7463
|
+
coverInfo?: CoverInfo;
|
|
7452
7464
|
comments?: PaginatedList<Comment>;
|
|
7453
7465
|
groupId: string;
|
|
7454
7466
|
content: string;
|
|
@@ -7477,19 +7489,18 @@ declare module "libs/reach/feature/content/src/posts/utils" {
|
|
|
7477
7489
|
export function getPostsHashtagFilterRoute(post: Post, user: CurrentUser, hashtag: string): string;
|
|
7478
7490
|
}
|
|
7479
7491
|
declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
7480
|
-
import { BannerInfo } from "libs/reach/util/common/src/index";
|
|
7481
7492
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7482
7493
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
7483
7494
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
7484
7495
|
import { Account } from "libs/reach/util/common/src/index";
|
|
7485
|
-
import { Post, PostFilterDefinition } from "libs/reach/feature/content/src/posts/utils";
|
|
7496
|
+
import { CoverInfo, Post, PostFilterDefinition } from "libs/reach/feature/content/src/posts/utils";
|
|
7486
7497
|
export function usePostsApi(): {
|
|
7487
7498
|
createPost: (post: Partial<Post>) => Promise<Post>;
|
|
7488
7499
|
togglePostLike: (postId: string, isLiked: boolean) => Promise<unknown>;
|
|
7489
7500
|
getPosts: (filter?: Partial<PostFilterDefinition>, ...groupIds: string[]) => Promise<PaginatedList<Post>>;
|
|
7490
7501
|
updatePost: (postId: string, content: string, attachments: Attachment[], keywords?: {
|
|
7491
7502
|
[key: string]: Keyword[];
|
|
7492
|
-
},
|
|
7503
|
+
}, coverInfo?: CoverInfo) => Promise<Post>;
|
|
7493
7504
|
deletePost: (postId: string) => Promise<unknown>;
|
|
7494
7505
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
7495
7506
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
@@ -10678,7 +10689,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10678
10689
|
postComments?: PaginatedList<StreamPostComment>;
|
|
10679
10690
|
hasMoreUnreadComments: boolean;
|
|
10680
10691
|
id: string;
|
|
10681
|
-
|
|
10692
|
+
coverInfo?: import("libs/reach/feature/content/src/posts").CoverInfo;
|
|
10682
10693
|
comments?: PaginatedList<Comment>;
|
|
10683
10694
|
groupId: string;
|
|
10684
10695
|
content: string;
|