diff --git a/src/API/src/schema.gql b/src/API/src/schema.gql index 4e6648567..839baef32 100644 --- a/src/API/src/schema.gql +++ b/src/API/src/schema.gql @@ -2,6 +2,16 @@ # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) # ------------------------------------------------------ +""" +The current verification or activity state of the email registry account. +""" +enum AccountStatus { + DEACTIVATED + PENDING_VERIFICATION + UNSUBSCRIBED + VERIFIED +} + """bionomics data""" type Bionomics { adult_data: Boolean @@ -160,6 +170,19 @@ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date """ scalar DateTime +"""Email Registry""" +type EmailRegistry { + account_status: AccountStatus! + email: String! + first_name: String! + id: String! + last_name: String! + notifications_enabled: Boolean! + token_expires_at: DateTime! + unsubscription_token: String! + verification_token: String! +} + type ExportJob { blobPath: String completedAt: DateTime @@ -194,22 +217,64 @@ type HomepageStats { uniqueViews: Float! } +"""insecticideResistance data""" +type InsecticideResistanceBioassays { + bioassay_notes: String + bioassay_representative_of_complex_at_site: String + concentration_micrograms: String + concentration_percent: String + exposure_period_min: String + generation: String + id: String! + insecticide_class: String + insecticide_tested: String + intensity_multiplier: String + irac_moa: String + irac_moa_code: String + kdt_50_percent_min: String + kdt_90_percent_min: String + kdt_95_percent_min: String + knock_down_exposure_time_min: String + knock_down_percent: String + lower_age_days: String + mosquitoes_dead_n: String + mosquitoes_knocked_down_n: String + mosquitoes_tested_n: String + percent_mortality: String + synergist_concentration: String + synergist_concentration_unit: String + synergist_tested: String + test_protocol: String + upper_age_days: String + wild_caught_larvae_or_adults: String +} + """ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). """ scalar JSON +input ManualRegistryInput { + email: String! + first_name: String + last_name: String +} + type ModelProcessingStatus { status: String! } type Mutation { + adminAddEmailRegistry(input: ManualRegistryInput!): EmailRegistry! createEditNews(input: CreateNewsInput!): News! createEditSpeciesInformation(input: CreateSpeciesInformationInput!): SpeciesInformation! createReference(input: CreateReferenceInput!): Reference! deleteSpeciesInformation(id: String!): Boolean! disableNotifications(disable: Boolean!, userId: String!): Boolean! + queueDatasetCampaign(datasetUrl: String!, message: String!, title: String!): String! + queueNewsCampaign(message: String!, newsUrl: String, title: String!): String! requestRoles(email: String!, requestReason: String!, rolesRequested: [String!]!): Boolean! + unsubscribeEmail(payload: UnsubscribeEmailDto!): Boolean! updateCountry(input: UpdateCountryInput!): Country! updateRecordedSpecies(input: UpdateRecordedSpeciesInput!): RecordedSpecies! updateReference(input: UpdateReferenceInput!, num_id: Int!): Reference! @@ -336,6 +401,7 @@ type Query { FullOccurrenceData(selectedIds: [String!]!): [Occurrence!]! OccurrenceCsvData(bounds: BoundsFilter, downloaderEmail: String!, downloaderName: String!, filters: OccurrenceFilter, generateDoi: Boolean!, skip: Float = 0, take: Float = 1): PaginatedStringData! OccurrenceData(bounds: BoundsFilter, filters: OccurrenceFilter, skip: Float = 0, take: Float = 1): PaginatedOccurrenceReturnData! + adminEmailRegistry(limit: Int, page: Int, search: String, status: String): RegistryPaginatedResponse! allCommunicationLogs: [CommunicationLog!]! allCommunicationLogsBySentStatus(status: String!): [CommunicationLog!]! allCountries: [Country!]! @@ -356,6 +422,7 @@ type Query { doiById(id: String!): DOI geoData(id: String!): Bionomics! getHomepageAnalytics(endAt: Float!, startAt: Float!, timezone: String!, unit: String!): HomepageStats! + insecticideResistanceById(id: String!): InsecticideResistanceBioassays! newsById(id: String!): News! postProcessModel(blobLocation: String!, displayName: String!, maxValue: Float!, modelName: String!, uploadedModelId: String!): ModelProcessingStatus! recordedSpeciesById(id: String!): RecordedSpecies @@ -394,6 +461,18 @@ type Reference { year: Int } +type RegistryMeta { + limit: Int! + page: Int! + total: Int! + totalPages: Int! +} + +type RegistryPaginatedResponse { + data: [EmailRegistry!]! + meta: RegistryMeta! +} + """sample data""" type Sample { control: Boolean @@ -455,6 +534,12 @@ type SpeciesInformation { speciesImage: String } +input UnsubscribeEmailDto { + id: String! + reason: String + token: String! +} + input UpdateCountryInput { alternative_names: [String!] id: String! diff --git a/src/UI/public/partners/irmapper-logo.png b/src/UI/public/partners/irmapper-logo.png index 44668bf5e..11f395b17 100644 Binary files a/src/UI/public/partners/irmapper-logo.png and b/src/UI/public/partners/irmapper-logo.png differ