import { Base } from "../../../"; import { Microsoft } from "../../../"; import { SP } from "../../../"; /********************************************* * Icomment **********************************************/ export interface Icomment extends commentCollections, commentMethods, Base.IBaseQuery { } /********************************************* * IcommentCollection **********************************************/ export interface IcommentCollection extends Base.IBaseResults, commentCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IcommentQueryCollection **********************************************/ export interface IcommentQueryCollection extends Base.IBaseResults, commentCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IcommentQuery **********************************************/ export interface IcommentQuery extends commentOData, commentMethods { } /********************************************* * comment **********************************************/ export interface comment extends Base.IBaseResult, commentProps, commentCollections, commentMethods { } /********************************************* * commentProps **********************************************/ export interface commentProps { author?: SP.Sharing.Principal; contentAnchor?: Microsoft.SharePoint.Comments.ContentAnchor; createdDate?: any; id?: string; isLikedByUser?: boolean; isReply?: boolean; itemId?: number; likeCount?: number; listId?: any; mentions?: { results: Array }; modifiedDate?: any; parentId?: string; relativeCreatedDate?: string; replyCount?: number; text?: string; } /********************************************* * commentPropMethods **********************************************/ export interface commentPropMethods { } /********************************************* * commentCollections **********************************************/ export interface commentCollections extends commentPropMethods { likedBy(): Base.IBaseCollection; likedBy(id: string | number): Base.IBaseQuery & Microsoft.SharePoint.Likes.userEntityCollections; replies(): Base.IBaseCollection & Base.IBaseExecution & Microsoft.SharePoint.Comments.commentCollectionMethods; replies(id: string | number): Base.IBaseQuery & Microsoft.SharePoint.Comments.commentCollections & Microsoft.SharePoint.Comments.commentMethods; } /********************************************* * commentCollectionMethods **********************************************/ export interface commentCollectionMethods { deleteAll(): Base.IBaseExecution; add(text?: string): Base.IBaseExecution; } /********************************************* * commentOData **********************************************/ export interface commentOData extends Base.IBaseResult, commentProps, commentMethods { likedBy: Base.IBaseResults; replies: Base.IBaseResults & Microsoft.SharePoint.Comments.commentCollectionMethods; } /********************************************* * commentMethods **********************************************/ export interface commentMethods { like(): Base.IBaseExecution; unlike(): Base.IBaseExecution; delete(): Base.IBaseExecution; } /********************************************* * CommentsAPI **********************************************/ export interface CommentsAPI { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * CommentsAPICollections **********************************************/ export interface CommentsAPICollections { }