Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapp/context/Response.ProfilePhoto.ImageOps type #192

Open
github-actions bot opened this issue Jan 8, 2025 · 0 comments
Open

webapp/context/Response.ProfilePhoto.ImageOps type #192

github-actions bot opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
datadirect packages/datadirect types TypeScript type definition improvement

Comments

@github-actions
Copy link

github-actions bot commented Jan 8, 2025

ImageOps: any[]; // TODO webapp/context/Response.ProfilePhoto.ImageOps type

import {
  DateTimeString,
  EmailString,
  HTMLString,
  NumericString,
  URLString,
  UUIDString
} from '@battis/descriptive-types';

type ProfilePhoto = {
  Id: number;
  LargeFilenameUrl: URLString;
  LargeFilename: string;
  LargeHeight: number;
  LargeWidth: number;
  ThumbFilenameUrl: URLString;
  ThumbFilename: string;
  ThumbWidth: number;
  ThumbHeight: number;
  ZoomFilenameUrl: string;
  OriginalFilenameUrl: string;
  OriginalFilename: string;
  PhotoEditSettings: string;
  Title: string;
  Caption: string;
  photo_alttext: string;
  hover_alttext: string;
  LongDescription: string;
  TagList: string[];
  ImageOps: any[]; // TODO webapp/context/Response.ProfilePhoto.ImageOps type
  OriginalFilenameEditedUrl: string;
  LargeFilenameEditedUrl: URLString;
  ZoomFilenameEditedUrl: string;
  ThumbFilenameEditedUrl: URLString;
};

type ProfilePhotoFile = {
  Attachment: string;
  DownloadHref: URLString;
  OpenHref: URLString;
};

type UserInfo = {
  UserId: number;
  FirstName: string;
  LastName: string;
  Email: EmailString;
  UserName: EmailString;
  LegacyUserName: string;
  HostId: string;
  Greeting: string;
  MaidenName: string;
  NickName: string;
  PreferredLastName: string;
  Prefix: string;
  Suffix: string;
  MiddleName: string;
  EmailIsBad: boolean;
  OtherLastName: string;
  CcEmail: EmailString;
  CcEmailIsBad: boolean;
  Affiliation: string;
  StudentDisplay: string;
  UserNameFormatted: string;
  InsertBy: string;
  StudentInfo: {
    GradYear: NumericString;
  };
  Citizenship: string;
  PersonalWebsite: string;
  BoardingOrDay: string;
  IsDeceased: boolean;
  LivingStatus: string;
  ScreenName: string;
  IMService: string;
  IsLost: boolean;
  GenderDesc: string;
  Gender: string;
  Pronouns: number;
  BirthDate: DateTimeString;
  PersonalBio: string;
  MiscBio: HTMLString;
  ResidentCounty: string;
  BirthPlace: string;
  SpokenLanguages: [];
  RaceSelections: [];
  VisaNumber: string;
  PassportNumber: string;
  StudentId: string;
  LockerNbr: string;
  LockerCombo: string;
  MailboxNbr: string;
  MailboxCombo: string;
  StudentResponsibleSignerInd: boolean;
  StateId: string;
  OptOutOfSellingInformation: 0;
  OptOutOfTargetedAdvertising: 0;
  PublishUserPage: boolean;
  GradebookDefaultInd: boolean;
  DefaultPersonaId: 3;
  CustomField1: string;
  CustomField2: string;
  CustomField3: string;
  CustomField4: string;
  CustomField5: string;
  CustomField6: string;
  CustomField7: string;
  CustomField8: string;
  CustomField9: string;
  CustomField10: string;
  ProfilePhoto: ProfilePhoto;
  ProfilePhotoFile: ProfilePhotoFile;
  Bbid: UUIDString;
  InsertDate: DateTimeString;
  LastModifyDate: DateTimeString;
  LastModifyUserId: number;
};

type Task = {
  TaskId: number;
  ApplicationId: number;
  TaskTypeId: number;
  Description: string;
  HashString: string;
  TaskRef: string;
  Personas: string;
  Roles: NumericString;
  RoleTypes: NumericString;
};

type Persona = {
  Id: number;
  Description: string;
  LongDescription: string;
  Type: number;
  Sort: number;
  Active: boolean;
  StartingPageId: number;
  StartingPageName: string;
  DefaultPersona: boolean;
  UrlFriendlyDescription: string;
  Url: URLString;
  Selected: boolean;
};

type Group = {
  LeadSectionId: number;
  SectionId: number;
  CurrentSectionId: number;
  Association: number;
  OfferingId: number;
  GroupName: string;
  SchoolYear: string;
  SectionBlock: string;
  OwnerName: string;
  Category: string;
  PublishGroupToUser: boolean;
  CurrentEnrollment: boolean;
};

type Child = {
  Id: number;
  FirstName: string;
  LastName: string;
  NickName: string;
  GradYear: NumericString;
  PublishUserPage: boolean;
  ParentalAccessInd: boolean;
  Role: string;
  ParentRoleId: NumericString;
  ThumbFilename: string;
  LargeFilename: string;
  PhotoEditSettings: string;
};

type Directory = {
  DirectoryID: number;
  SortOrder: number;
  DirectoryName: string;
};

type Calendar = {
  view_id: number;
  title: string;
};

export type Response = {
  Expire: DateTimeString;
  Generated: string;
  CacheSource: string;
  UserInfo: UserInfo;
  MasterUserInfo: UserInfo;
  Tasks: Task[];
  Personas: Persona[];
  Groups: Group[];
  Children: Child[];
  IsImpersonating: boolean;
  ViewonlyMode: boolean;
  ShowGuidedTours: boolean;
  GuidedTourSetting: boolean;
  Directories: Directory[];
  Calendars: Calendar[];
  PodiumCalendars: Calendar[];
  AlumHasRegistration: boolean;
  UserParam: {
    HasHelpAccess: boolean;
    ListPersonas: string;
  };
  InboxSettings: {
    IndividualMessageEnabled: boolean;
    BulkMessageEnabled: boolean;
    BulkEmailEnabled: boolean;
    GoogleLabel: string;
    GoogleUrl: URLString;
    GoogleAccessGranted: boolean;
  };
  IsBBIDUser: boolean;
};
@battis battis added datadirect packages/datadirect types TypeScript type definition improvement labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datadirect packages/datadirect types TypeScript type definition improvement
Projects
None yet
Development

No branches or pull requests

1 participant