import { Base } from "../../"; import { SP } from "../../"; /********************************************* * IDirectorySession **********************************************/ export interface IDirectorySession extends DirectorySessionCollections, DirectorySessionMethods, Base.IBaseQuery { } /********************************************* * IDirectorySessionCollection **********************************************/ export interface IDirectorySessionCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IDirectorySessionQueryCollection **********************************************/ export interface IDirectorySessionQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IDirectorySessionQuery **********************************************/ export interface IDirectorySessionQuery extends DirectorySessionOData, DirectorySessionMethods { } /********************************************* * DirectorySession **********************************************/ export interface DirectorySession extends Base.IBaseResult, DirectorySessionProps, DirectorySessionCollections, DirectorySessionMethods { } /********************************************* * DirectorySessionProps **********************************************/ export interface DirectorySessionProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * DirectorySessionPropMethods **********************************************/ export interface DirectorySessionPropMethods { } /********************************************* * DirectorySessionCollections **********************************************/ export interface DirectorySessionCollections extends DirectorySessionPropMethods { } /********************************************* * DirectorySessionOData **********************************************/ export interface DirectorySessionOData extends Base.IBaseResult, DirectorySessionProps, DirectorySessionMethods { } /********************************************* * DirectorySessionMethods **********************************************/ export interface DirectorySessionMethods { getSharePointDataForUser(userId?: any): Base.IBaseQuery & SP.Directory.UserCollections & SP.Directory.UserMethods; group(groupId?: any, alias?: string): Base.IBaseQuery & SP.Directory.GroupCollections & SP.Directory.GroupMethods; joinGroup(groupId?: any): Base.IBaseExecution; me(): Base.IBaseQuery & SP.Directory.UserCollections & SP.Directory.UserMethods; user(id?: any, principalName?: string): Base.IBaseQuery & SP.Directory.UserCollections & SP.Directory.UserMethods; validateGroupName(displayName?: string, alias?: string): Base.IBaseExecution; } /********************************************* * IGroup **********************************************/ export interface IGroup extends GroupCollections, GroupMethods, Base.IBaseQuery { } /********************************************* * IGroupCollection **********************************************/ export interface IGroupCollection extends Base.IBaseResults, GroupCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IGroupQueryCollection **********************************************/ export interface IGroupQueryCollection extends Base.IBaseResults, GroupCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IGroupQuery **********************************************/ export interface IGroupQuery extends GroupOData, GroupMethods { } /********************************************* * Group **********************************************/ export interface Group extends Base.IBaseResult, GroupProps, GroupCollections, GroupMethods { } /********************************************* * GroupProps **********************************************/ export interface GroupProps { alias?: string; allowToAddGuests?: boolean; assignedLabels?: string; calendarUrl?: string; classification?: string; description?: string; displayName?: string; documentsUrl?: string; editGroupUrl?: string; id?: any; inboxUrl?: string; isDynamic?: boolean; isPublic?: boolean; mail?: string; notebookUrl?: string; peopleUrl?: string; pictureUrl?: string; principalName?: string; siteUrl?: string; teamsResources?: { results: Array }; yammerResources?: { results: Array }; } /********************************************* * GroupPropMethods **********************************************/ export interface GroupPropMethods { } /********************************************* * GroupCollections **********************************************/ export interface GroupCollections extends GroupPropMethods { members(): Base.IBaseCollection & Base.IBaseExecution & SP.Directory.UserCollectionMethods; members(id: string | number): Base.IBaseQuery & SP.Directory.UserCollections & SP.Directory.UserMethods; owners(): Base.IBaseCollection & Base.IBaseExecution & SP.Directory.UserCollectionMethods; owners(id: string | number): Base.IBaseQuery & SP.Directory.UserCollections & SP.Directory.UserMethods; } /********************************************* * GroupCollectionMethods **********************************************/ export interface GroupCollectionMethods { add(objectId?: any): Base.IBaseExecution; remove(objectId?: any): Base.IBaseExecution; } /********************************************* * GroupOData **********************************************/ export interface GroupOData extends Base.IBaseResult, GroupProps, GroupMethods { members: Base.IBaseResults & SP.Directory.UserCollectionMethods; owners: Base.IBaseResults & SP.Directory.UserCollectionMethods; } /********************************************* * GroupMethods **********************************************/ export interface GroupMethods { delete(): Base.IBaseExecution; } /********************************************* * IUser **********************************************/ export interface IUser extends UserCollections, UserMethods, Base.IBaseQuery { } /********************************************* * IUserCollection **********************************************/ export interface IUserCollection extends Base.IBaseResults, UserCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IUserQueryCollection **********************************************/ export interface IUserQueryCollection extends Base.IBaseResults, UserCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IUserQuery **********************************************/ export interface IUserQuery extends UserOData, UserMethods { } /********************************************* * User **********************************************/ export interface User extends Base.IBaseResult, UserProps, UserCollections, UserMethods { } /********************************************* * UserProps **********************************************/ export interface UserProps { aboutMe?: string; accountEnabled?: boolean; alias?: string; birthday?: any; cellPhone?: string; displayName?: string; fax?: string; hireDate?: any; homePhone?: string; id?: any; interests?: { results: Array }; mail?: string; mySite?: string; netId?: string; officeGraphEnabled?: boolean; pastProjects?: { results: Array }; pointPublishingPersonalSiteUrl?: string; preferredName?: string; principalName?: string; responsibilities?: { results: Array }; schools?: { results: Array }; serviceInfo?: { results: Array }; sharePointAddTopicHighlightFirstRun?: boolean; sharePointContentBarViewsTeachingBubble?: boolean; sharePointConversationsLinkFirstRun?: boolean; sharePointFiltersPaneFirstRun?: boolean; sharePointFollowedDocumentsMigrated?: boolean; sharePointFollowedSitesMigrated?: boolean; sharePointFollowedSitesMigrated2?: boolean; sharePointFollowedSitesMigratedToSPO?: boolean; sharePointHomeCreateNewsTeachingBubble?: boolean; sharePointHomeFirstRun?: boolean; sharePointHomeMobileUpsell?: boolean; sharePointHomeRefreshFirstRun?: boolean; sharePointKnowledgeCenterFirstRun?: boolean; sharePointKnowledgeManagementTopicPageFirstRun?: boolean; sharePointLibrariesFirstRun?: boolean; sharePointListsFirstRun?: boolean; sharePointListsGoMobileFirstRun?: boolean; sharePointListsHomeFirstRun?: boolean; sharePointModernDocSetsFirstRun?: boolean; sharePointModernHomepageFirstRun?: boolean; sharePointNewsDigestTeachingBubble?: boolean; sharePointNewsDigestTeachingBubbleHomePage?: boolean; sharePointOneDriveBusinessFirstRun?: boolean; sharePointPageAuthoringFirstRun?: boolean; sharePointPictureUrl?: string; sharePointProfileId?: any; sharePointSaveForLaterTeachingBubble?: boolean; sharePointTeamsTeachingBubble?: boolean; sharePointTopicAutoHighlightFirstRun?: boolean; sharePointTopicManualHighlightFirstRun?: boolean; sharePointTopicPageEditFirstRun?: boolean; sharePointTopicPagePrivacyPermissionFirstRun?: boolean; sharePointTopicPagePublishFirstRun?: boolean; skills?: { results: Array }; tags?: { results: Array }; tenantInstanceId?: any; userType?: string; } /********************************************* * UserPropMethods **********************************************/ export interface UserPropMethods { } /********************************************* * UserCollections **********************************************/ export interface UserCollections extends UserPropMethods { membership(): Base.IBaseCollection & Base.IBaseExecution & SP.Directory.GroupCollectionMethods; membership(id: string | number): Base.IBaseQuery & SP.Directory.GroupCollections & SP.Directory.GroupMethods; ownership(): Base.IBaseCollection & Base.IBaseExecution & SP.Directory.GroupCollectionMethods; ownership(id: string | number): Base.IBaseQuery & SP.Directory.GroupCollections & SP.Directory.GroupMethods; rankedMembership(): Base.IBaseCollection & Base.IBaseExecution & SP.Directory.GroupCollectionMethods; rankedMembership(id: string | number): Base.IBaseQuery & SP.Directory.GroupCollections & SP.Directory.GroupMethods; } /********************************************* * UserCollectionMethods **********************************************/ export interface UserCollectionMethods { add(objectId?: any, principalName?: string): Base.IBaseExecution; remove(objectId?: any): Base.IBaseExecution; } /********************************************* * UserOData **********************************************/ export interface UserOData extends Base.IBaseResult, UserProps, UserMethods { membership: Base.IBaseResults & SP.Directory.GroupCollectionMethods; ownership: Base.IBaseResults & SP.Directory.GroupCollectionMethods; rankedMembership: Base.IBaseResults & SP.Directory.GroupCollectionMethods; } /********************************************* * UserMethods **********************************************/ export interface UserMethods { getUserLinks(linkName?: string, groupType?: number): Base.IBaseCollection; } /********************************************* * Link **********************************************/ export interface Link { id?: any; objectSubtype?: number; objectType?: string; } /********************************************* * LinkCollections **********************************************/ export interface LinkCollections { } /********************************************* * GroupAndUserStatus **********************************************/ export interface GroupAndUserStatus { Status?: number; } /********************************************* * GroupAndUserStatusCollections **********************************************/ export interface GroupAndUserStatusCollections { } /********************************************* * GroupAndUserStatusOData **********************************************/ export interface GroupAndUserStatusOData extends Base.IBaseResult, GroupAndUserStatus { Group: SP.Directory.Group & SP.Directory.GroupCollections & SP.Directory.GroupCollectionMethods; } /********************************************* * MembershipResult **********************************************/ export interface MembershipResult { Id4a81de82eeb94d6080ea5bf63e27023a?: string; GroupsList?: { results: Array }; } /********************************************* * MembershipResultCollections **********************************************/ export interface MembershipResultCollections { } /********************************************* * MembersInfo **********************************************/ export interface MembersInfo { MemberNames?: { results: Array }; TotalCount?: number; } /********************************************* * MembersInfoCollections **********************************************/ export interface MembersInfoCollections { } /********************************************* * MyGroupsResult **********************************************/ export interface MyGroupsResult { HasNext?: boolean; HasPrev?: boolean; } /********************************************* * MyGroupsResultCollections **********************************************/ export interface MyGroupsResultCollections { }