From 3fdfe077f3663e0a35399f3208f543b8256092fb Mon Sep 17 00:00:00 2001 From: Casper <148681165+casperUoS@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:21:10 +0100 Subject: [PATCH] fix ordering of members --- .../_components/CollectionArchive/index.tsx | 38 +- src/payload/collections/Committee.ts | 28 +- src/payload/generated-schema.graphql | 1693 +++++++++-------- src/payload/payload-types.ts | 208 +- 4 files changed, 1095 insertions(+), 872 deletions(-) diff --git a/src/app/_components/CollectionArchive/index.tsx b/src/app/_components/CollectionArchive/index.tsx index 509d92b..69542bf 100644 --- a/src/app/_components/CollectionArchive/index.tsx +++ b/src/app/_components/CollectionArchive/index.tsx @@ -132,6 +132,34 @@ export const CollectionArchive: React.FC = props => { { encode: false }, ) + const societyPositionOrder = [ + 'President', + 'Vice President', + 'Vice President Engagement', + 'Vice President Operations', + 'Secretary', + 'Treasurer', + 'Events Officer', + 'Welfare Officer', + 'Web Officer', + 'Social Secretary', + 'Sports Officer', + 'Marketing Officer', + 'Hackathon Officer', + 'Industry Officer', + 'Academic Secretary', + 'Gamesmaster', + 'Games Officer', + 'International Representative', + 'Masters Rep', + 'Postgraduate Representative', + 'Publicity Officer', + 'Sports Representative', + 'Staff Representative', + 'Unknown Role', + 'Webmaster', + ] + const makeRequest = async () => { try { const req = await fetch( @@ -141,9 +169,17 @@ export const CollectionArchive: React.FC = props => { const json = await req.json() clearTimeout(timer) - const { docs } = json as { docs: (Post | Project)[] } + let { docs } = json as { docs: (Post | Project | Committee | Sponsor | Society)[] } if (docs && Array.isArray(docs)) { + if (relationTo === 'committee') { + docs = docs.sort((a, b) => { + const posA = 'position' in a ? a.position : '' + const posB = 'position' in b ? b.position : '' + return societyPositionOrder.indexOf(posA) - societyPositionOrder.indexOf(posB) + }) + } + setResults(json) setIsLoading(false) if (typeof onResultChange === 'function') { diff --git a/src/payload/collections/Committee.ts b/src/payload/collections/Committee.ts index 149db16..847d43c 100644 --- a/src/payload/collections/Committee.ts +++ b/src/payload/collections/Committee.ts @@ -38,31 +38,31 @@ const Committee: CollectionConfig = { label: 'Position', type: 'select', options: [ - 'Academic Secretary', + 'President', + 'Vice President', + 'Vice President Engagement', + 'Vice President Operations', + 'Secretary', + 'Treasurer', 'Events Officer', - 'Gamesmaster', - 'Games Officer', + 'Welfare Officer', + 'Web Officer', + 'Social Secretary', + 'Sports Officer', + 'Marketing Officer', 'Hackathon Officer', 'Industry Officer', + 'Academic Secretary', + 'Gamesmaster', + 'Games Officer', 'International Representative', - 'Marketing Officer', 'Masters Rep', 'Postgraduate Representative', - 'President', 'Publicity Officer', - 'Secretary', - 'Social Secretary', - 'Sports Officer', 'Sports Representative', 'Staff Representative', - 'Treasurer', 'Unknown Role', - 'Vice President', - 'Vice President Engagement', - 'Vice President Operations', 'Webmaster', - 'Web Officer', - 'Welfare Officer', ], }, { diff --git a/src/payload/generated-schema.graphql b/src/payload/generated-schema.graphql index 0c7723e..b6f03a1 100644 --- a/src/payload/generated-schema.graphql +++ b/src/payload/generated-schema.graphql @@ -674,9 +674,11 @@ enum Archive_SelectedDocs_RelationTo { posts projects sponsors + societies + committee } -union Archive_SelectedDocs = Post | Project | Sponsor +union Archive_SelectedDocs = Post | Project | Sponsor | Society | Committee type Post { id: String @@ -1742,42 +1744,46 @@ enum Sponsor_Links_Link_appearance { secondary } -type Archive_PopulatedDocs_Relationship { - relationTo: Archive_PopulatedDocs_RelationTo - value: Archive_PopulatedDocs -} - -enum Archive_PopulatedDocs_RelationTo { - posts - projects - sponsors +type Society { + slug: String + id: String! + name: String + level: Society_level! + description(depth: Int): JSON + logo(where: Society_Logo_where): Media! + email: EmailAddress + website: String + susu: String + github: String + instagram: String + discord: String + links: [Society_Links!] + updatedAt: DateTime + createdAt: DateTime } -union Archive_PopulatedDocs = Post | Project | Sponsor - -type Page_Meta { - title: String - description: String - image(where: Page_Meta_Image_where): Media +enum Society_level { + not_shit + shit } -input Page_Meta_Image_where { - alt: Page_Meta_Image_alt_operator - caption: Page_Meta_Image_caption_operator - updatedAt: Page_Meta_Image_updatedAt_operator - createdAt: Page_Meta_Image_createdAt_operator - url: Page_Meta_Image_url_operator - filename: Page_Meta_Image_filename_operator - mimeType: Page_Meta_Image_mimeType_operator - filesize: Page_Meta_Image_filesize_operator - width: Page_Meta_Image_width_operator - height: Page_Meta_Image_height_operator - id: Page_Meta_Image_id_operator - AND: [Page_Meta_Image_where_and] - OR: [Page_Meta_Image_where_or] +input Society_Logo_where { + alt: Society_Logo_alt_operator + caption: Society_Logo_caption_operator + updatedAt: Society_Logo_updatedAt_operator + createdAt: Society_Logo_createdAt_operator + url: Society_Logo_url_operator + filename: Society_Logo_filename_operator + mimeType: Society_Logo_mimeType_operator + filesize: Society_Logo_filesize_operator + width: Society_Logo_width_operator + height: Society_Logo_height_operator + id: Society_Logo_id_operator + AND: [Society_Logo_where_and] + OR: [Society_Logo_where_or] } -input Page_Meta_Image_alt_operator { +input Society_Logo_alt_operator { equals: String not_equals: String like: String @@ -1787,7 +1793,7 @@ input Page_Meta_Image_alt_operator { all: [String] } -input Page_Meta_Image_caption_operator { +input Society_Logo_caption_operator { equals: JSON not_equals: JSON like: JSON @@ -1795,7 +1801,7 @@ input Page_Meta_Image_caption_operator { exists: Boolean } -input Page_Meta_Image_updatedAt_operator { +input Society_Logo_updatedAt_operator { equals: DateTime not_equals: DateTime greater_than_equal: DateTime @@ -1806,7 +1812,7 @@ input Page_Meta_Image_updatedAt_operator { exists: Boolean } -input Page_Meta_Image_createdAt_operator { +input Society_Logo_createdAt_operator { equals: DateTime not_equals: DateTime greater_than_equal: DateTime @@ -1817,7 +1823,7 @@ input Page_Meta_Image_createdAt_operator { exists: Boolean } -input Page_Meta_Image_url_operator { +input Society_Logo_url_operator { equals: String not_equals: String like: String @@ -1828,7 +1834,7 @@ input Page_Meta_Image_url_operator { exists: Boolean } -input Page_Meta_Image_filename_operator { +input Society_Logo_filename_operator { equals: String not_equals: String like: String @@ -1839,7 +1845,7 @@ input Page_Meta_Image_filename_operator { exists: Boolean } -input Page_Meta_Image_mimeType_operator { +input Society_Logo_mimeType_operator { equals: String not_equals: String like: String @@ -1850,7 +1856,7 @@ input Page_Meta_Image_mimeType_operator { exists: Boolean } -input Page_Meta_Image_filesize_operator { +input Society_Logo_filesize_operator { equals: Float not_equals: Float greater_than_equal: Float @@ -1860,7 +1866,7 @@ input Page_Meta_Image_filesize_operator { exists: Boolean } -input Page_Meta_Image_width_operator { +input Society_Logo_width_operator { equals: Float not_equals: Float greater_than_equal: Float @@ -1870,7 +1876,7 @@ input Page_Meta_Image_width_operator { exists: Boolean } -input Page_Meta_Image_height_operator { +input Society_Logo_height_operator { equals: Float not_equals: Float greater_than_equal: Float @@ -1880,7 +1886,7 @@ input Page_Meta_Image_height_operator { exists: Boolean } -input Page_Meta_Image_id_operator { +input Society_Logo_id_operator { equals: String not_equals: String like: String @@ -1891,83 +1897,130 @@ input Page_Meta_Image_id_operator { exists: Boolean } -input Page_Meta_Image_where_and { - alt: Page_Meta_Image_alt_operator - caption: Page_Meta_Image_caption_operator - updatedAt: Page_Meta_Image_updatedAt_operator - createdAt: Page_Meta_Image_createdAt_operator - url: Page_Meta_Image_url_operator - filename: Page_Meta_Image_filename_operator - mimeType: Page_Meta_Image_mimeType_operator - filesize: Page_Meta_Image_filesize_operator - width: Page_Meta_Image_width_operator - height: Page_Meta_Image_height_operator - id: Page_Meta_Image_id_operator - AND: [Page_Meta_Image_where_and] - OR: [Page_Meta_Image_where_or] +input Society_Logo_where_and { + alt: Society_Logo_alt_operator + caption: Society_Logo_caption_operator + updatedAt: Society_Logo_updatedAt_operator + createdAt: Society_Logo_createdAt_operator + url: Society_Logo_url_operator + filename: Society_Logo_filename_operator + mimeType: Society_Logo_mimeType_operator + filesize: Society_Logo_filesize_operator + width: Society_Logo_width_operator + height: Society_Logo_height_operator + id: Society_Logo_id_operator + AND: [Society_Logo_where_and] + OR: [Society_Logo_where_or] } -input Page_Meta_Image_where_or { - alt: Page_Meta_Image_alt_operator - caption: Page_Meta_Image_caption_operator - updatedAt: Page_Meta_Image_updatedAt_operator - createdAt: Page_Meta_Image_createdAt_operator - url: Page_Meta_Image_url_operator - filename: Page_Meta_Image_filename_operator - mimeType: Page_Meta_Image_mimeType_operator - filesize: Page_Meta_Image_filesize_operator - width: Page_Meta_Image_width_operator - height: Page_Meta_Image_height_operator - id: Page_Meta_Image_id_operator - AND: [Page_Meta_Image_where_and] - OR: [Page_Meta_Image_where_or] +input Society_Logo_where_or { + alt: Society_Logo_alt_operator + caption: Society_Logo_caption_operator + updatedAt: Society_Logo_updatedAt_operator + createdAt: Society_Logo_createdAt_operator + url: Society_Logo_url_operator + filename: Society_Logo_filename_operator + mimeType: Society_Logo_mimeType_operator + filesize: Society_Logo_filesize_operator + width: Society_Logo_width_operator + height: Society_Logo_height_operator + id: Society_Logo_id_operator + AND: [Society_Logo_where_and] + OR: [Society_Logo_where_or] } -enum Page__status { - draft - published +type Society_Links { + link: Society_Links_Link + id: String } -type Pages { - docs: [Page] - hasNextPage: Boolean - hasPrevPage: Boolean - limit: Int - nextPage: Int - offset: Int - page: Int - pagingCounter: Int - prevPage: Int - totalDocs: Int - totalPages: Int +type Society_Links_Link { + type: Society_Links_Link_type + newTab: Boolean + reference: Society_Links_Link_Reference_Relationship + url: String + label: String + appearance: Society_Links_Link_appearance } -input Page_where { - title: Page_title_operator - publishedAt: Page_publishedAt_operator - hero__type: Page_hero__type_operator - hero__richText: Page_hero__richText_operator - hero__links__link__type: Page_hero__links__link__type_operator - hero__links__link__newTab: Page_hero__links__link__newTab_operator - hero__links__link__reference: Page_hero__links__link__reference_Relation - hero__links__link__url: Page_hero__links__link__url_operator - hero__links__link__label: Page_hero__links__link__label_operator - hero__links__link__appearance: Page_hero__links__link__appearance_operator - hero__links__id: Page_hero__links__id_operator - hero__media: Page_hero__media_operator - slug: Page_slug_operator - meta__title: Page_meta__title_operator - meta__description: Page_meta__description_operator - meta__image: Page_meta__image_operator - updatedAt: Page_updatedAt_operator - createdAt: Page_createdAt_operator - _status: Page__status_operator - id: Page_id_operator - AND: [Page_where_and] - OR: [Page_where_or] +enum Society_Links_Link_type { + reference + custom } -input Page_title_operator { +type Society_Links_Link_Reference_Relationship { + relationTo: Society_Links_Link_Reference_RelationTo + value: Society_Links_Link_Reference +} + +enum Society_Links_Link_Reference_RelationTo { + pages +} + +union Society_Links_Link_Reference = Page + +enum Society_Links_Link_appearance { + default + primary + secondary +} + +type Committee { + id: String! + firstName: String! + lastName: String! + position: Committee_position + bio(depth: Int): JSON + logo(where: Committee_Logo_where): Media + updatedAt: DateTime + createdAt: DateTime +} + +enum Committee_position { + President + VicePresident + VicePresidentEngagement + VicePresidentOperations + Secretary + Treasurer + EventsOfficer + WelfareOfficer + WebOfficer + SocialSecretary + SportsOfficer + MarketingOfficer + HackathonOfficer + IndustryOfficer + AcademicSecretary + Gamesmaster + GamesOfficer + InternationalRepresentative + MastersRep + PostgraduateRepresentative + PublicityOfficer + SportsRepresentative + StaffRepresentative + UnknownRole + Webmaster +} + +input Committee_Logo_where { + alt: Committee_Logo_alt_operator + caption: Committee_Logo_caption_operator + updatedAt: Committee_Logo_updatedAt_operator + createdAt: Committee_Logo_createdAt_operator + url: Committee_Logo_url_operator + filename: Committee_Logo_filename_operator + mimeType: Committee_Logo_mimeType_operator + filesize: Committee_Logo_filesize_operator + width: Committee_Logo_width_operator + height: Committee_Logo_height_operator + id: Committee_Logo_id_operator + AND: [Committee_Logo_where_and] + OR: [Committee_Logo_where_or] +} + +input Committee_Logo_alt_operator { equals: String not_equals: String like: String @@ -1977,7 +2030,15 @@ input Page_title_operator { all: [String] } -input Page_publishedAt_operator { +input Committee_Logo_caption_operator { + equals: JSON + not_equals: JSON + like: JSON + contains: JSON + exists: Boolean +} + +input Committee_Logo_updatedAt_operator { equals: DateTime not_equals: DateTime greater_than_equal: DateTime @@ -1988,13 +2049,378 @@ input Page_publishedAt_operator { exists: Boolean } -input Page_hero__type_operator { - equals: Page_hero__type_Input - not_equals: Page_hero__type_Input - in: [Page_hero__type_Input] - not_in: [Page_hero__type_Input] - all: [Page_hero__type_Input] -} +input Committee_Logo_createdAt_operator { + equals: DateTime + not_equals: DateTime + greater_than_equal: DateTime + greater_than: DateTime + less_than_equal: DateTime + less_than: DateTime + like: DateTime + exists: Boolean +} + +input Committee_Logo_url_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Committee_Logo_filename_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Committee_Logo_mimeType_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Committee_Logo_filesize_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Committee_Logo_width_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Committee_Logo_height_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Committee_Logo_id_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Committee_Logo_where_and { + alt: Committee_Logo_alt_operator + caption: Committee_Logo_caption_operator + updatedAt: Committee_Logo_updatedAt_operator + createdAt: Committee_Logo_createdAt_operator + url: Committee_Logo_url_operator + filename: Committee_Logo_filename_operator + mimeType: Committee_Logo_mimeType_operator + filesize: Committee_Logo_filesize_operator + width: Committee_Logo_width_operator + height: Committee_Logo_height_operator + id: Committee_Logo_id_operator + AND: [Committee_Logo_where_and] + OR: [Committee_Logo_where_or] +} + +input Committee_Logo_where_or { + alt: Committee_Logo_alt_operator + caption: Committee_Logo_caption_operator + updatedAt: Committee_Logo_updatedAt_operator + createdAt: Committee_Logo_createdAt_operator + url: Committee_Logo_url_operator + filename: Committee_Logo_filename_operator + mimeType: Committee_Logo_mimeType_operator + filesize: Committee_Logo_filesize_operator + width: Committee_Logo_width_operator + height: Committee_Logo_height_operator + id: Committee_Logo_id_operator + AND: [Committee_Logo_where_and] + OR: [Committee_Logo_where_or] +} + +type Archive_PopulatedDocs_Relationship { + relationTo: Archive_PopulatedDocs_RelationTo + value: Archive_PopulatedDocs +} + +enum Archive_PopulatedDocs_RelationTo { + posts + projects + sponsors + societies + committee +} + +union Archive_PopulatedDocs = Post | Project | Sponsor | Society | Committee + +type Page_Meta { + title: String + description: String + image(where: Page_Meta_Image_where): Media +} + +input Page_Meta_Image_where { + alt: Page_Meta_Image_alt_operator + caption: Page_Meta_Image_caption_operator + updatedAt: Page_Meta_Image_updatedAt_operator + createdAt: Page_Meta_Image_createdAt_operator + url: Page_Meta_Image_url_operator + filename: Page_Meta_Image_filename_operator + mimeType: Page_Meta_Image_mimeType_operator + filesize: Page_Meta_Image_filesize_operator + width: Page_Meta_Image_width_operator + height: Page_Meta_Image_height_operator + id: Page_Meta_Image_id_operator + AND: [Page_Meta_Image_where_and] + OR: [Page_Meta_Image_where_or] +} + +input Page_Meta_Image_alt_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] +} + +input Page_Meta_Image_caption_operator { + equals: JSON + not_equals: JSON + like: JSON + contains: JSON + exists: Boolean +} + +input Page_Meta_Image_updatedAt_operator { + equals: DateTime + not_equals: DateTime + greater_than_equal: DateTime + greater_than: DateTime + less_than_equal: DateTime + less_than: DateTime + like: DateTime + exists: Boolean +} + +input Page_Meta_Image_createdAt_operator { + equals: DateTime + not_equals: DateTime + greater_than_equal: DateTime + greater_than: DateTime + less_than_equal: DateTime + less_than: DateTime + like: DateTime + exists: Boolean +} + +input Page_Meta_Image_url_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Page_Meta_Image_filename_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Page_Meta_Image_mimeType_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Page_Meta_Image_filesize_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Page_Meta_Image_width_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Page_Meta_Image_height_operator { + equals: Float + not_equals: Float + greater_than_equal: Float + greater_than: Float + less_than_equal: Float + less_than: Float + exists: Boolean +} + +input Page_Meta_Image_id_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + +input Page_Meta_Image_where_and { + alt: Page_Meta_Image_alt_operator + caption: Page_Meta_Image_caption_operator + updatedAt: Page_Meta_Image_updatedAt_operator + createdAt: Page_Meta_Image_createdAt_operator + url: Page_Meta_Image_url_operator + filename: Page_Meta_Image_filename_operator + mimeType: Page_Meta_Image_mimeType_operator + filesize: Page_Meta_Image_filesize_operator + width: Page_Meta_Image_width_operator + height: Page_Meta_Image_height_operator + id: Page_Meta_Image_id_operator + AND: [Page_Meta_Image_where_and] + OR: [Page_Meta_Image_where_or] +} + +input Page_Meta_Image_where_or { + alt: Page_Meta_Image_alt_operator + caption: Page_Meta_Image_caption_operator + updatedAt: Page_Meta_Image_updatedAt_operator + createdAt: Page_Meta_Image_createdAt_operator + url: Page_Meta_Image_url_operator + filename: Page_Meta_Image_filename_operator + mimeType: Page_Meta_Image_mimeType_operator + filesize: Page_Meta_Image_filesize_operator + width: Page_Meta_Image_width_operator + height: Page_Meta_Image_height_operator + id: Page_Meta_Image_id_operator + AND: [Page_Meta_Image_where_and] + OR: [Page_Meta_Image_where_or] +} + +enum Page__status { + draft + published +} + +type Pages { + docs: [Page] + hasNextPage: Boolean + hasPrevPage: Boolean + limit: Int + nextPage: Int + offset: Int + page: Int + pagingCounter: Int + prevPage: Int + totalDocs: Int + totalPages: Int +} + +input Page_where { + title: Page_title_operator + publishedAt: Page_publishedAt_operator + hero__type: Page_hero__type_operator + hero__richText: Page_hero__richText_operator + hero__links__link__type: Page_hero__links__link__type_operator + hero__links__link__newTab: Page_hero__links__link__newTab_operator + hero__links__link__reference: Page_hero__links__link__reference_Relation + hero__links__link__url: Page_hero__links__link__url_operator + hero__links__link__label: Page_hero__links__link__label_operator + hero__links__link__appearance: Page_hero__links__link__appearance_operator + hero__links__id: Page_hero__links__id_operator + hero__media: Page_hero__media_operator + slug: Page_slug_operator + meta__title: Page_meta__title_operator + meta__description: Page_meta__description_operator + meta__image: Page_meta__image_operator + updatedAt: Page_updatedAt_operator + createdAt: Page_createdAt_operator + _status: Page__status_operator + id: Page_id_operator + AND: [Page_where_and] + OR: [Page_where_or] +} + +input Page_title_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] +} + +input Page_publishedAt_operator { + equals: DateTime + not_equals: DateTime + greater_than_equal: DateTime + greater_than: DateTime + less_than_equal: DateTime + less_than: DateTime + like: DateTime + exists: Boolean +} + +input Page_hero__type_operator { + equals: Page_hero__type_Input + not_equals: Page_hero__type_Input + in: [Page_hero__type_Input] + not_in: [Page_hero__type_Input] + all: [Page_hero__type_Input] +} enum Page_hero__type_Input { none @@ -16117,315 +16543,101 @@ type SponsorsDocAccessFields_links_link_appearance_Read { permission: Boolean! } -type SponsorsDocAccessFields_links_link_appearance_Update { - permission: Boolean! -} - -type SponsorsDocAccessFields_links_link_appearance_Delete { - permission: Boolean! -} - -type SponsorsDocAccessFields_links_id { - create: SponsorsDocAccessFields_links_id_Create - read: SponsorsDocAccessFields_links_id_Read - update: SponsorsDocAccessFields_links_id_Update - delete: SponsorsDocAccessFields_links_id_Delete -} - -type SponsorsDocAccessFields_links_id_Create { - permission: Boolean! -} - -type SponsorsDocAccessFields_links_id_Read { - permission: Boolean! -} - -type SponsorsDocAccessFields_links_id_Update { - permission: Boolean! -} - -type SponsorsDocAccessFields_links_id_Delete { - permission: Boolean! -} - -type SponsorsDocAccessFields_updatedAt { - create: SponsorsDocAccessFields_updatedAt_Create - read: SponsorsDocAccessFields_updatedAt_Read - update: SponsorsDocAccessFields_updatedAt_Update - delete: SponsorsDocAccessFields_updatedAt_Delete -} - -type SponsorsDocAccessFields_updatedAt_Create { - permission: Boolean! -} - -type SponsorsDocAccessFields_updatedAt_Read { - permission: Boolean! -} - -type SponsorsDocAccessFields_updatedAt_Update { - permission: Boolean! -} - -type SponsorsDocAccessFields_updatedAt_Delete { - permission: Boolean! -} - -type SponsorsDocAccessFields_createdAt { - create: SponsorsDocAccessFields_createdAt_Create - read: SponsorsDocAccessFields_createdAt_Read - update: SponsorsDocAccessFields_createdAt_Update - delete: SponsorsDocAccessFields_createdAt_Delete -} - -type SponsorsDocAccessFields_createdAt_Create { - permission: Boolean! -} - -type SponsorsDocAccessFields_createdAt_Read { - permission: Boolean! -} - -type SponsorsDocAccessFields_createdAt_Update { - permission: Boolean! -} - -type SponsorsDocAccessFields_createdAt_Delete { - permission: Boolean! -} - -type SponsorsCreateDocAccess { - permission: Boolean! - where: JSONObject -} - -type SponsorsReadDocAccess { - permission: Boolean! - where: JSONObject -} - -type SponsorsUpdateDocAccess { - permission: Boolean! - where: JSONObject -} - -type SponsorsDeleteDocAccess { - permission: Boolean! - where: JSONObject -} - -type Society { - id: String! - name: String - description(depth: Int): JSON - logo(where: Society_Logo_where): Media! - email: EmailAddress - website: String - susu: String - github: String - instagram: String - discord: String - links: [Society_Links!] - updatedAt: DateTime - createdAt: DateTime -} - -input Society_Logo_where { - alt: Society_Logo_alt_operator - caption: Society_Logo_caption_operator - updatedAt: Society_Logo_updatedAt_operator - createdAt: Society_Logo_createdAt_operator - url: Society_Logo_url_operator - filename: Society_Logo_filename_operator - mimeType: Society_Logo_mimeType_operator - filesize: Society_Logo_filesize_operator - width: Society_Logo_width_operator - height: Society_Logo_height_operator - id: Society_Logo_id_operator - AND: [Society_Logo_where_and] - OR: [Society_Logo_where_or] +type SponsorsDocAccessFields_links_link_appearance_Update { + permission: Boolean! } -input Society_Logo_alt_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] +type SponsorsDocAccessFields_links_link_appearance_Delete { + permission: Boolean! } -input Society_Logo_caption_operator { - equals: JSON - not_equals: JSON - like: JSON - contains: JSON - exists: Boolean +type SponsorsDocAccessFields_links_id { + create: SponsorsDocAccessFields_links_id_Create + read: SponsorsDocAccessFields_links_id_Read + update: SponsorsDocAccessFields_links_id_Update + delete: SponsorsDocAccessFields_links_id_Delete } -input Society_Logo_updatedAt_operator { - equals: DateTime - not_equals: DateTime - greater_than_equal: DateTime - greater_than: DateTime - less_than_equal: DateTime - less_than: DateTime - like: DateTime - exists: Boolean +type SponsorsDocAccessFields_links_id_Create { + permission: Boolean! } -input Society_Logo_createdAt_operator { - equals: DateTime - not_equals: DateTime - greater_than_equal: DateTime - greater_than: DateTime - less_than_equal: DateTime - less_than: DateTime - like: DateTime - exists: Boolean +type SponsorsDocAccessFields_links_id_Read { + permission: Boolean! } -input Society_Logo_url_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] - exists: Boolean +type SponsorsDocAccessFields_links_id_Update { + permission: Boolean! } -input Society_Logo_filename_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] - exists: Boolean +type SponsorsDocAccessFields_links_id_Delete { + permission: Boolean! } -input Society_Logo_mimeType_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] - exists: Boolean +type SponsorsDocAccessFields_updatedAt { + create: SponsorsDocAccessFields_updatedAt_Create + read: SponsorsDocAccessFields_updatedAt_Read + update: SponsorsDocAccessFields_updatedAt_Update + delete: SponsorsDocAccessFields_updatedAt_Delete } -input Society_Logo_filesize_operator { - equals: Float - not_equals: Float - greater_than_equal: Float - greater_than: Float - less_than_equal: Float - less_than: Float - exists: Boolean +type SponsorsDocAccessFields_updatedAt_Create { + permission: Boolean! } -input Society_Logo_width_operator { - equals: Float - not_equals: Float - greater_than_equal: Float - greater_than: Float - less_than_equal: Float - less_than: Float - exists: Boolean +type SponsorsDocAccessFields_updatedAt_Read { + permission: Boolean! } -input Society_Logo_height_operator { - equals: Float - not_equals: Float - greater_than_equal: Float - greater_than: Float - less_than_equal: Float - less_than: Float - exists: Boolean +type SponsorsDocAccessFields_updatedAt_Update { + permission: Boolean! } -input Society_Logo_id_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] - exists: Boolean +type SponsorsDocAccessFields_updatedAt_Delete { + permission: Boolean! } -input Society_Logo_where_and { - alt: Society_Logo_alt_operator - caption: Society_Logo_caption_operator - updatedAt: Society_Logo_updatedAt_operator - createdAt: Society_Logo_createdAt_operator - url: Society_Logo_url_operator - filename: Society_Logo_filename_operator - mimeType: Society_Logo_mimeType_operator - filesize: Society_Logo_filesize_operator - width: Society_Logo_width_operator - height: Society_Logo_height_operator - id: Society_Logo_id_operator - AND: [Society_Logo_where_and] - OR: [Society_Logo_where_or] +type SponsorsDocAccessFields_createdAt { + create: SponsorsDocAccessFields_createdAt_Create + read: SponsorsDocAccessFields_createdAt_Read + update: SponsorsDocAccessFields_createdAt_Update + delete: SponsorsDocAccessFields_createdAt_Delete } -input Society_Logo_where_or { - alt: Society_Logo_alt_operator - caption: Society_Logo_caption_operator - updatedAt: Society_Logo_updatedAt_operator - createdAt: Society_Logo_createdAt_operator - url: Society_Logo_url_operator - filename: Society_Logo_filename_operator - mimeType: Society_Logo_mimeType_operator - filesize: Society_Logo_filesize_operator - width: Society_Logo_width_operator - height: Society_Logo_height_operator - id: Society_Logo_id_operator - AND: [Society_Logo_where_and] - OR: [Society_Logo_where_or] +type SponsorsDocAccessFields_createdAt_Create { + permission: Boolean! } -type Society_Links { - link: Society_Links_Link - id: String +type SponsorsDocAccessFields_createdAt_Read { + permission: Boolean! } -type Society_Links_Link { - type: Society_Links_Link_type - newTab: Boolean - reference: Society_Links_Link_Reference_Relationship - url: String - label: String - appearance: Society_Links_Link_appearance +type SponsorsDocAccessFields_createdAt_Update { + permission: Boolean! } -enum Society_Links_Link_type { - reference - custom +type SponsorsDocAccessFields_createdAt_Delete { + permission: Boolean! } -type Society_Links_Link_Reference_Relationship { - relationTo: Society_Links_Link_Reference_RelationTo - value: Society_Links_Link_Reference +type SponsorsCreateDocAccess { + permission: Boolean! + where: JSONObject } -enum Society_Links_Link_Reference_RelationTo { - pages +type SponsorsReadDocAccess { + permission: Boolean! + where: JSONObject } -union Society_Links_Link_Reference = Page +type SponsorsUpdateDocAccess { + permission: Boolean! + where: JSONObject +} -enum Society_Links_Link_appearance { - default - primary - secondary +type SponsorsDeleteDocAccess { + permission: Boolean! + where: JSONObject } type Societies { @@ -16443,8 +16655,10 @@ type Societies { } input Society_where { + slug: Society_slug_operator id: Society_id_operator name: Society_name_operator + level: Society_level_operator description: Society_description_operator logo: Society_logo_operator email: Society_email_operator @@ -16466,6 +16680,17 @@ input Society_where { OR: [Society_where_or] } +input Society_slug_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] + exists: Boolean +} + input Society_id_operator { equals: String not_equals: String @@ -16487,6 +16712,19 @@ input Society_name_operator { exists: Boolean } +input Society_level_operator { + equals: Society_level_Input + not_equals: Society_level_Input + in: [Society_level_Input] + not_in: [Society_level_Input] + all: [Society_level_Input] +} + +enum Society_level_Input { + not_shit + shit +} + input Society_description_operator { equals: JSON not_equals: JSON @@ -16663,8 +16901,10 @@ input Society_createdAt_operator { } input Society_where_and { + slug: Society_slug_operator id: Society_id_operator name: Society_name_operator + level: Society_level_operator description: Society_description_operator logo: Society_logo_operator email: Society_email_operator @@ -16687,8 +16927,10 @@ input Society_where_and { } input Society_where_or { + slug: Society_slug_operator id: Society_id_operator name: Society_name_operator + level: Society_level_operator description: Society_description_operator logo: Society_logo_operator email: Society_email_operator @@ -16719,8 +16961,10 @@ type societiesDocAccess { } type SocietiesDocAccessFields { + slug: SocietiesDocAccessFields_slug id: SocietiesDocAccessFields_id name: SocietiesDocAccessFields_name + level: SocietiesDocAccessFields_level description: SocietiesDocAccessFields_description logo: SocietiesDocAccessFields_logo email: SocietiesDocAccessFields_email @@ -16734,6 +16978,29 @@ type SocietiesDocAccessFields { createdAt: SocietiesDocAccessFields_createdAt } +type SocietiesDocAccessFields_slug { + create: SocietiesDocAccessFields_slug_Create + read: SocietiesDocAccessFields_slug_Read + update: SocietiesDocAccessFields_slug_Update + delete: SocietiesDocAccessFields_slug_Delete +} + +type SocietiesDocAccessFields_slug_Create { + permission: Boolean! +} + +type SocietiesDocAccessFields_slug_Read { + permission: Boolean! +} + +type SocietiesDocAccessFields_slug_Update { + permission: Boolean! +} + +type SocietiesDocAccessFields_slug_Delete { + permission: Boolean! +} + type SocietiesDocAccessFields_id { create: SocietiesDocAccessFields_id_Create read: SocietiesDocAccessFields_id_Read @@ -16776,7 +17043,30 @@ type SocietiesDocAccessFields_name_Update { permission: Boolean! } -type SocietiesDocAccessFields_name_Delete { +type SocietiesDocAccessFields_name_Delete { + permission: Boolean! +} + +type SocietiesDocAccessFields_level { + create: SocietiesDocAccessFields_level_Create + read: SocietiesDocAccessFields_level_Read + update: SocietiesDocAccessFields_level_Update + delete: SocietiesDocAccessFields_level_Delete +} + +type SocietiesDocAccessFields_level_Create { + permission: Boolean! +} + +type SocietiesDocAccessFields_level_Read { + permission: Boolean! +} + +type SocietiesDocAccessFields_level_Update { + permission: Boolean! +} + +type SocietiesDocAccessFields_level_Delete { permission: Boolean! } @@ -17253,67 +17543,6 @@ type SocietiesDeleteDocAccess { where: JSONObject } -type Committee { - id: String! - type: Committee_type! - members: [Committee_Members_Relationship!] - simplifiedMembers: [Committee_SimplifiedMembers!] - updatedAt: DateTime - createdAt: DateTime -} - -enum Committee_type { - old - current -} - -type Committee_Members_Relationship { - relationTo: Committee_Members_RelationTo - value: Committee_Members -} - -enum Committee_Members_RelationTo { - nominations - positions -} - -union Committee_Members = Nomination | Position - -type Committee_SimplifiedMembers { - position: Committee_SimplifiedMembers_position - name: String - id: String -} - -enum Committee_SimplifiedMembers_position { - AcademicSecretary - EventsOfficer - Gamesmaster - GamesOfficer - HackathonOfficer - IndustryOfficer - InternationalRepresentative - MarketingOfficer - MastersRep - PostgraduateRepresentative - President - PublicityOfficer - Secretary - SocialSecretary - SportsOfficer - SportsRepresentative - StaffRepresentative - Treasurer - UnknownRole - VicePresident - VicePresidentEngagement - VicePresidentOperations - Webmaster - WebOfficer - WelfareOfficer - Women_sRepresentative -} - type Committees { docs: [Committee] hasNextPage: Boolean @@ -17330,11 +17559,11 @@ type Committees { input Committee_where { id: Committee_id_operator - type: Committee_type_operator - members: Committee_members_Relation - simplifiedMembers__position: Committee_simplifiedMembers__position_operator - simplifiedMembers__name: Committee_simplifiedMembers__name_operator - simplifiedMembers__id: Committee_simplifiedMembers__id_operator + firstName: Committee_firstName_operator + lastName: Committee_lastName_operator + position: Committee_position_operator + bio: Committee_bio_operator + logo: Committee_logo_operator updatedAt: Committee_updatedAt_operator createdAt: Committee_createdAt_operator AND: [Committee_where_and] @@ -17351,84 +17580,74 @@ input Committee_id_operator { all: [String] } -input Committee_type_operator { - equals: Committee_type_Input - not_equals: Committee_type_Input - in: [Committee_type_Input] - not_in: [Committee_type_Input] - all: [Committee_type_Input] -} - -enum Committee_type_Input { - old - current -} - -input Committee_members_Relation { - relationTo: Committee_members_Relation_RelationTo - value: JSON +input Committee_firstName_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] } -enum Committee_members_Relation_RelationTo { - nominations - positions +input Committee_lastName_operator { + equals: String + not_equals: String + like: String + contains: String + in: [String] + not_in: [String] + all: [String] } -input Committee_simplifiedMembers__position_operator { - equals: Committee_simplifiedMembers__position_Input - not_equals: Committee_simplifiedMembers__position_Input - in: [Committee_simplifiedMembers__position_Input] - not_in: [Committee_simplifiedMembers__position_Input] - all: [Committee_simplifiedMembers__position_Input] +input Committee_position_operator { + equals: Committee_position_Input + not_equals: Committee_position_Input + in: [Committee_position_Input] + not_in: [Committee_position_Input] + all: [Committee_position_Input] + exists: Boolean } -enum Committee_simplifiedMembers__position_Input { - AcademicSecretary +enum Committee_position_Input { + President + VicePresident + VicePresidentEngagement + VicePresidentOperations + Secretary + Treasurer EventsOfficer - Gamesmaster - GamesOfficer + WelfareOfficer + WebOfficer + SocialSecretary + SportsOfficer + MarketingOfficer HackathonOfficer IndustryOfficer + AcademicSecretary + Gamesmaster + GamesOfficer InternationalRepresentative - MarketingOfficer MastersRep PostgraduateRepresentative - President PublicityOfficer - Secretary - SocialSecretary - SportsOfficer SportsRepresentative StaffRepresentative - Treasurer UnknownRole - VicePresident - VicePresidentEngagement - VicePresidentOperations Webmaster - WebOfficer - WelfareOfficer - Women_sRepresentative } -input Committee_simplifiedMembers__name_operator { - equals: String - not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] +input Committee_bio_operator { + equals: JSON + not_equals: JSON + like: JSON + contains: JSON + exists: Boolean } -input Committee_simplifiedMembers__id_operator { +input Committee_logo_operator { equals: String not_equals: String - like: String - contains: String - in: [String] - not_in: [String] - all: [String] exists: Boolean } @@ -17456,11 +17675,11 @@ input Committee_createdAt_operator { input Committee_where_and { id: Committee_id_operator - type: Committee_type_operator - members: Committee_members_Relation - simplifiedMembers__position: Committee_simplifiedMembers__position_operator - simplifiedMembers__name: Committee_simplifiedMembers__name_operator - simplifiedMembers__id: Committee_simplifiedMembers__id_operator + firstName: Committee_firstName_operator + lastName: Committee_lastName_operator + position: Committee_position_operator + bio: Committee_bio_operator + logo: Committee_logo_operator updatedAt: Committee_updatedAt_operator createdAt: Committee_createdAt_operator AND: [Committee_where_and] @@ -17469,11 +17688,11 @@ input Committee_where_and { input Committee_where_or { id: Committee_id_operator - type: Committee_type_operator - members: Committee_members_Relation - simplifiedMembers__position: Committee_simplifiedMembers__position_operator - simplifiedMembers__name: Committee_simplifiedMembers__name_operator - simplifiedMembers__id: Committee_simplifiedMembers__id_operator + firstName: Committee_firstName_operator + lastName: Committee_lastName_operator + position: Committee_position_operator + bio: Committee_bio_operator + logo: Committee_logo_operator updatedAt: Committee_updatedAt_operator createdAt: Committee_createdAt_operator AND: [Committee_where_and] @@ -17490,9 +17709,11 @@ type committeeDocAccess { type CommitteeDocAccessFields { id: CommitteeDocAccessFields_id - type: CommitteeDocAccessFields_type - members: CommitteeDocAccessFields_members - simplifiedMembers: CommitteeDocAccessFields_simplifiedMembers + firstName: CommitteeDocAccessFields_firstName + lastName: CommitteeDocAccessFields_lastName + position: CommitteeDocAccessFields_position + bio: CommitteeDocAccessFields_bio + logo: CommitteeDocAccessFields_logo updatedAt: CommitteeDocAccessFields_updatedAt createdAt: CommitteeDocAccessFields_createdAt } @@ -17520,148 +17741,118 @@ type CommitteeDocAccessFields_id_Delete { permission: Boolean! } -type CommitteeDocAccessFields_type { - create: CommitteeDocAccessFields_type_Create - read: CommitteeDocAccessFields_type_Read - update: CommitteeDocAccessFields_type_Update - delete: CommitteeDocAccessFields_type_Delete -} - -type CommitteeDocAccessFields_type_Create { - permission: Boolean! -} - -type CommitteeDocAccessFields_type_Read { - permission: Boolean! -} - -type CommitteeDocAccessFields_type_Update { - permission: Boolean! -} - -type CommitteeDocAccessFields_type_Delete { - permission: Boolean! -} - -type CommitteeDocAccessFields_members { - create: CommitteeDocAccessFields_members_Create - read: CommitteeDocAccessFields_members_Read - update: CommitteeDocAccessFields_members_Update - delete: CommitteeDocAccessFields_members_Delete +type CommitteeDocAccessFields_firstName { + create: CommitteeDocAccessFields_firstName_Create + read: CommitteeDocAccessFields_firstName_Read + update: CommitteeDocAccessFields_firstName_Update + delete: CommitteeDocAccessFields_firstName_Delete } -type CommitteeDocAccessFields_members_Create { +type CommitteeDocAccessFields_firstName_Create { permission: Boolean! } -type CommitteeDocAccessFields_members_Read { +type CommitteeDocAccessFields_firstName_Read { permission: Boolean! } -type CommitteeDocAccessFields_members_Update { +type CommitteeDocAccessFields_firstName_Update { permission: Boolean! } -type CommitteeDocAccessFields_members_Delete { +type CommitteeDocAccessFields_firstName_Delete { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers { - create: CommitteeDocAccessFields_simplifiedMembers_Create - read: CommitteeDocAccessFields_simplifiedMembers_Read - update: CommitteeDocAccessFields_simplifiedMembers_Update - delete: CommitteeDocAccessFields_simplifiedMembers_Delete - fields: CommitteeDocAccessFields_simplifiedMembers_Fields +type CommitteeDocAccessFields_lastName { + create: CommitteeDocAccessFields_lastName_Create + read: CommitteeDocAccessFields_lastName_Read + update: CommitteeDocAccessFields_lastName_Update + delete: CommitteeDocAccessFields_lastName_Delete } -type CommitteeDocAccessFields_simplifiedMembers_Create { +type CommitteeDocAccessFields_lastName_Create { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_Read { +type CommitteeDocAccessFields_lastName_Read { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_Update { +type CommitteeDocAccessFields_lastName_Update { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_Delete { +type CommitteeDocAccessFields_lastName_Delete { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_Fields { - position: CommitteeDocAccessFields_simplifiedMembers_position - name: CommitteeDocAccessFields_simplifiedMembers_name - id: CommitteeDocAccessFields_simplifiedMembers_id +type CommitteeDocAccessFields_position { + create: CommitteeDocAccessFields_position_Create + read: CommitteeDocAccessFields_position_Read + update: CommitteeDocAccessFields_position_Update + delete: CommitteeDocAccessFields_position_Delete } -type CommitteeDocAccessFields_simplifiedMembers_position { - create: CommitteeDocAccessFields_simplifiedMembers_position_Create - read: CommitteeDocAccessFields_simplifiedMembers_position_Read - update: CommitteeDocAccessFields_simplifiedMembers_position_Update - delete: CommitteeDocAccessFields_simplifiedMembers_position_Delete -} - -type CommitteeDocAccessFields_simplifiedMembers_position_Create { +type CommitteeDocAccessFields_position_Create { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_position_Read { +type CommitteeDocAccessFields_position_Read { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_position_Update { +type CommitteeDocAccessFields_position_Update { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_position_Delete { +type CommitteeDocAccessFields_position_Delete { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_name { - create: CommitteeDocAccessFields_simplifiedMembers_name_Create - read: CommitteeDocAccessFields_simplifiedMembers_name_Read - update: CommitteeDocAccessFields_simplifiedMembers_name_Update - delete: CommitteeDocAccessFields_simplifiedMembers_name_Delete +type CommitteeDocAccessFields_bio { + create: CommitteeDocAccessFields_bio_Create + read: CommitteeDocAccessFields_bio_Read + update: CommitteeDocAccessFields_bio_Update + delete: CommitteeDocAccessFields_bio_Delete } -type CommitteeDocAccessFields_simplifiedMembers_name_Create { +type CommitteeDocAccessFields_bio_Create { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_name_Read { +type CommitteeDocAccessFields_bio_Read { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_name_Update { +type CommitteeDocAccessFields_bio_Update { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_name_Delete { +type CommitteeDocAccessFields_bio_Delete { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_id { - create: CommitteeDocAccessFields_simplifiedMembers_id_Create - read: CommitteeDocAccessFields_simplifiedMembers_id_Read - update: CommitteeDocAccessFields_simplifiedMembers_id_Update - delete: CommitteeDocAccessFields_simplifiedMembers_id_Delete +type CommitteeDocAccessFields_logo { + create: CommitteeDocAccessFields_logo_Create + read: CommitteeDocAccessFields_logo_Read + update: CommitteeDocAccessFields_logo_Update + delete: CommitteeDocAccessFields_logo_Delete } -type CommitteeDocAccessFields_simplifiedMembers_id_Create { +type CommitteeDocAccessFields_logo_Create { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_id_Read { +type CommitteeDocAccessFields_logo_Read { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_id_Update { +type CommitteeDocAccessFields_logo_Update { permission: Boolean! } -type CommitteeDocAccessFields_simplifiedMembers_id_Delete { +type CommitteeDocAccessFields_logo_Delete { permission: Boolean! } @@ -26783,8 +26974,10 @@ type societiesAccess { } type SocietiesFields { + slug: SocietiesFields_slug id: SocietiesFields_id name: SocietiesFields_name + level: SocietiesFields_level description: SocietiesFields_description logo: SocietiesFields_logo email: SocietiesFields_email @@ -26798,6 +26991,29 @@ type SocietiesFields { createdAt: SocietiesFields_createdAt } +type SocietiesFields_slug { + create: SocietiesFields_slug_Create + read: SocietiesFields_slug_Read + update: SocietiesFields_slug_Update + delete: SocietiesFields_slug_Delete +} + +type SocietiesFields_slug_Create { + permission: Boolean! +} + +type SocietiesFields_slug_Read { + permission: Boolean! +} + +type SocietiesFields_slug_Update { + permission: Boolean! +} + +type SocietiesFields_slug_Delete { + permission: Boolean! +} + type SocietiesFields_id { create: SocietiesFields_id_Create read: SocietiesFields_id_Read @@ -26844,6 +27060,29 @@ type SocietiesFields_name_Delete { permission: Boolean! } +type SocietiesFields_level { + create: SocietiesFields_level_Create + read: SocietiesFields_level_Read + update: SocietiesFields_level_Update + delete: SocietiesFields_level_Delete +} + +type SocietiesFields_level_Create { + permission: Boolean! +} + +type SocietiesFields_level_Read { + permission: Boolean! +} + +type SocietiesFields_level_Update { + permission: Boolean! +} + +type SocietiesFields_level_Delete { + permission: Boolean! +} + type SocietiesFields_description { create: SocietiesFields_description_Create read: SocietiesFields_description_Read @@ -27327,9 +27566,11 @@ type committeeAccess { type CommitteeFields { id: CommitteeFields_id - type: CommitteeFields_type - members: CommitteeFields_members - simplifiedMembers: CommitteeFields_simplifiedMembers + firstName: CommitteeFields_firstName + lastName: CommitteeFields_lastName + position: CommitteeFields_position + bio: CommitteeFields_bio + logo: CommitteeFields_logo updatedAt: CommitteeFields_updatedAt createdAt: CommitteeFields_createdAt } @@ -27357,148 +27598,118 @@ type CommitteeFields_id_Delete { permission: Boolean! } -type CommitteeFields_type { - create: CommitteeFields_type_Create - read: CommitteeFields_type_Read - update: CommitteeFields_type_Update - delete: CommitteeFields_type_Delete -} - -type CommitteeFields_type_Create { - permission: Boolean! -} - -type CommitteeFields_type_Read { - permission: Boolean! -} - -type CommitteeFields_type_Update { - permission: Boolean! -} - -type CommitteeFields_type_Delete { - permission: Boolean! -} - -type CommitteeFields_members { - create: CommitteeFields_members_Create - read: CommitteeFields_members_Read - update: CommitteeFields_members_Update - delete: CommitteeFields_members_Delete +type CommitteeFields_firstName { + create: CommitteeFields_firstName_Create + read: CommitteeFields_firstName_Read + update: CommitteeFields_firstName_Update + delete: CommitteeFields_firstName_Delete } -type CommitteeFields_members_Create { +type CommitteeFields_firstName_Create { permission: Boolean! } -type CommitteeFields_members_Read { +type CommitteeFields_firstName_Read { permission: Boolean! } -type CommitteeFields_members_Update { +type CommitteeFields_firstName_Update { permission: Boolean! } -type CommitteeFields_members_Delete { +type CommitteeFields_firstName_Delete { permission: Boolean! } -type CommitteeFields_simplifiedMembers { - create: CommitteeFields_simplifiedMembers_Create - read: CommitteeFields_simplifiedMembers_Read - update: CommitteeFields_simplifiedMembers_Update - delete: CommitteeFields_simplifiedMembers_Delete - fields: CommitteeFields_simplifiedMembers_Fields +type CommitteeFields_lastName { + create: CommitteeFields_lastName_Create + read: CommitteeFields_lastName_Read + update: CommitteeFields_lastName_Update + delete: CommitteeFields_lastName_Delete } -type CommitteeFields_simplifiedMembers_Create { +type CommitteeFields_lastName_Create { permission: Boolean! } -type CommitteeFields_simplifiedMembers_Read { +type CommitteeFields_lastName_Read { permission: Boolean! } -type CommitteeFields_simplifiedMembers_Update { +type CommitteeFields_lastName_Update { permission: Boolean! } -type CommitteeFields_simplifiedMembers_Delete { +type CommitteeFields_lastName_Delete { permission: Boolean! } -type CommitteeFields_simplifiedMembers_Fields { - position: CommitteeFields_simplifiedMembers_position - name: CommitteeFields_simplifiedMembers_name - id: CommitteeFields_simplifiedMembers_id +type CommitteeFields_position { + create: CommitteeFields_position_Create + read: CommitteeFields_position_Read + update: CommitteeFields_position_Update + delete: CommitteeFields_position_Delete } -type CommitteeFields_simplifiedMembers_position { - create: CommitteeFields_simplifiedMembers_position_Create - read: CommitteeFields_simplifiedMembers_position_Read - update: CommitteeFields_simplifiedMembers_position_Update - delete: CommitteeFields_simplifiedMembers_position_Delete -} - -type CommitteeFields_simplifiedMembers_position_Create { +type CommitteeFields_position_Create { permission: Boolean! } -type CommitteeFields_simplifiedMembers_position_Read { +type CommitteeFields_position_Read { permission: Boolean! } -type CommitteeFields_simplifiedMembers_position_Update { +type CommitteeFields_position_Update { permission: Boolean! } -type CommitteeFields_simplifiedMembers_position_Delete { +type CommitteeFields_position_Delete { permission: Boolean! } -type CommitteeFields_simplifiedMembers_name { - create: CommitteeFields_simplifiedMembers_name_Create - read: CommitteeFields_simplifiedMembers_name_Read - update: CommitteeFields_simplifiedMembers_name_Update - delete: CommitteeFields_simplifiedMembers_name_Delete +type CommitteeFields_bio { + create: CommitteeFields_bio_Create + read: CommitteeFields_bio_Read + update: CommitteeFields_bio_Update + delete: CommitteeFields_bio_Delete } -type CommitteeFields_simplifiedMembers_name_Create { +type CommitteeFields_bio_Create { permission: Boolean! } -type CommitteeFields_simplifiedMembers_name_Read { +type CommitteeFields_bio_Read { permission: Boolean! } -type CommitteeFields_simplifiedMembers_name_Update { +type CommitteeFields_bio_Update { permission: Boolean! } -type CommitteeFields_simplifiedMembers_name_Delete { +type CommitteeFields_bio_Delete { permission: Boolean! } -type CommitteeFields_simplifiedMembers_id { - create: CommitteeFields_simplifiedMembers_id_Create - read: CommitteeFields_simplifiedMembers_id_Read - update: CommitteeFields_simplifiedMembers_id_Update - delete: CommitteeFields_simplifiedMembers_id_Delete +type CommitteeFields_logo { + create: CommitteeFields_logo_Create + read: CommitteeFields_logo_Read + update: CommitteeFields_logo_Update + delete: CommitteeFields_logo_Delete } -type CommitteeFields_simplifiedMembers_id_Create { +type CommitteeFields_logo_Create { permission: Boolean! } -type CommitteeFields_simplifiedMembers_id_Read { +type CommitteeFields_logo_Read { permission: Boolean! } -type CommitteeFields_simplifiedMembers_id_Update { +type CommitteeFields_logo_Update { permission: Boolean! } -type CommitteeFields_simplifiedMembers_id_Delete { +type CommitteeFields_logo_Delete { permission: Boolean! } @@ -30402,8 +30613,10 @@ enum SponsorUpdate_Links_Link_appearance_MutationInput { } input mutationSocietyInput { + slug: String id: String! name: String + level: Society_level_MutationInput! description: JSON logo: String! email: String @@ -30417,6 +30630,11 @@ input mutationSocietyInput { createdAt: String } +enum Society_level_MutationInput { + not_shit + shit +} + input mutationSociety_LinksInput { link: mutationSociety_Links_LinkInput id: String @@ -30447,7 +30665,9 @@ enum Society_Links_Link_appearance_MutationInput { } input mutationSocietyUpdateInput { + slug: String name: String + level: SocietyUpdate_level_MutationInput description: JSON logo: String email: String @@ -30461,6 +30681,11 @@ input mutationSocietyUpdateInput { createdAt: String } +enum SocietyUpdate_level_MutationInput { + not_shit + shit +} + input mutationSocietyUpdate_LinksInput { link: mutationSocietyUpdate_Links_LinkInput id: String @@ -30492,119 +30717,79 @@ enum SocietyUpdate_Links_Link_appearance_MutationInput { input mutationCommitteeInput { id: String! - type: Committee_type_MutationInput! - members: [Committee_MembersRelationshipInput] - simplifiedMembers: [mutationCommittee_SimplifiedMembersInput] + firstName: String! + lastName: String! + position: Committee_position_MutationInput + bio: JSON + logo: String updatedAt: String createdAt: String } -enum Committee_type_MutationInput { - old - current -} - -input Committee_MembersRelationshipInput { - relationTo: Committee_MembersRelationshipInputRelationTo - value: JSON -} - -enum Committee_MembersRelationshipInputRelationTo { - nominations - positions -} - -input mutationCommittee_SimplifiedMembersInput { - position: Committee_SimplifiedMembers_position_MutationInput! - name: String! - id: String -} - -enum Committee_SimplifiedMembers_position_MutationInput { - AcademicSecretary +enum Committee_position_MutationInput { + President + VicePresident + VicePresidentEngagement + VicePresidentOperations + Secretary + Treasurer EventsOfficer - Gamesmaster - GamesOfficer + WelfareOfficer + WebOfficer + SocialSecretary + SportsOfficer + MarketingOfficer HackathonOfficer IndustryOfficer + AcademicSecretary + Gamesmaster + GamesOfficer InternationalRepresentative - MarketingOfficer MastersRep PostgraduateRepresentative - President PublicityOfficer - Secretary - SocialSecretary - SportsOfficer SportsRepresentative StaffRepresentative - Treasurer UnknownRole - VicePresident - VicePresidentEngagement - VicePresidentOperations Webmaster - WebOfficer - WelfareOfficer - Women_sRepresentative } input mutationCommitteeUpdateInput { - type: CommitteeUpdate_type_MutationInput - members: [CommitteeUpdate_MembersRelationshipInput] - simplifiedMembers: [mutationCommitteeUpdate_SimplifiedMembersInput] + firstName: String + lastName: String + position: CommitteeUpdate_position_MutationInput + bio: JSON + logo: String updatedAt: String createdAt: String } -enum CommitteeUpdate_type_MutationInput { - old - current -} - -input CommitteeUpdate_MembersRelationshipInput { - relationTo: CommitteeUpdate_MembersRelationshipInputRelationTo - value: JSON -} - -enum CommitteeUpdate_MembersRelationshipInputRelationTo { - nominations - positions -} - -input mutationCommitteeUpdate_SimplifiedMembersInput { - position: CommitteeUpdate_SimplifiedMembers_position_MutationInput! - name: String! - id: String -} - -enum CommitteeUpdate_SimplifiedMembers_position_MutationInput { - AcademicSecretary +enum CommitteeUpdate_position_MutationInput { + President + VicePresident + VicePresidentEngagement + VicePresidentOperations + Secretary + Treasurer EventsOfficer - Gamesmaster - GamesOfficer + WelfareOfficer + WebOfficer + SocialSecretary + SportsOfficer + MarketingOfficer HackathonOfficer IndustryOfficer + AcademicSecretary + Gamesmaster + GamesOfficer InternationalRepresentative - MarketingOfficer MastersRep PostgraduateRepresentative - President PublicityOfficer - Secretary - SocialSecretary - SportsOfficer SportsRepresentative StaffRepresentative - Treasurer UnknownRole - VicePresident - VicePresidentEngagement - VicePresidentOperations Webmaster - WebOfficer - WelfareOfficer - Women_sRepresentative } input mutationRedirectInput { diff --git a/src/payload/payload-types.ts b/src/payload/payload-types.ts index ffb7023..453e348 100644 --- a/src/payload/payload-types.ts +++ b/src/payload/payload-types.ts @@ -186,7 +186,7 @@ export interface Page { | { relationTo: 'committee'; value: string | Committee; - } + } )[] | null; populatedDocsTotal?: number | null; @@ -392,8 +392,8 @@ export interface Post { value: string | Sponsor; } | { - relationTo: 'societies'; - value: string | Society; + relationTo: 'societies'; + value: string | Society; } | { relationTo: 'committee'; @@ -493,12 +493,12 @@ export interface Post { value: string | Sponsor; } | { - relationTo: 'societies'; - value: string | Society; + relationTo: 'societies'; + value: string | Society; } | { - relationTo: 'committee'; - value: string | Committee; + relationTo: 'committee'; + value: string | Committee; } )[] | null; @@ -517,8 +517,8 @@ export interface Post { value: string | Sponsor; } | { - relationTo: 'societies'; - value: string | Society; + relationTo: 'societies'; + value: string | Society; } | { relationTo: 'committee'; @@ -682,13 +682,13 @@ export interface Project { value: string | Sponsor; } | { - relationTo: 'societies'; - value: string | Society; + relationTo: 'societies'; + value: string | Society; } | { - relationTo: 'committee'; - value: string | Committee; - } + relationTo: 'committee'; + value: string | Committee; + } )[] | null; populatedDocs?: @@ -706,13 +706,13 @@ export interface Project { value: string | Sponsor; } | { - relationTo: 'societies'; - value: string | Society; + relationTo: 'societies'; + value: string | Society; } | { - relationTo: 'committee'; - value: string | Committee; - } + relationTo: 'committee'; + value: string | Committee; + } )[] | null; populatedDocsTotal?: number | null; @@ -767,6 +767,92 @@ export interface Sponsor { updatedAt: string; createdAt: string; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "societies". + */ +export interface Society { + slug?: string | null; + id: string; + name?: string | null; + level: 'not-shit' | 'shit'; + description?: + | { + [k: string]: unknown; + }[] + | null; + logo: string | Media; + email?: string | null; + website?: string | null; + susu?: string | null; + github?: string | null; + instagram?: string | null; + discord?: string | null; + links?: + | { + link: { + type?: ('reference' | 'custom') | null; + newTab?: boolean | null; + reference?: { + relationTo: 'pages'; + value: string | Page; + } | null; + url?: string | null; + label: string; + appearance?: ('default' | 'primary' | 'secondary') | null; + }; + id?: string | null; + }[] + | null; + updatedAt: string; + createdAt: string; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "committee". + */ +export interface Committee { + id: string; + firstName: string; + lastName: string; + position?: + | ( + | 'President' + | 'Vice President' + | 'Vice President Engagement' + | 'Vice President Operations' + | 'Secretary' + | 'Treasurer' + | 'Events Officer' + | 'Welfare Officer' + | 'Web Officer' + | 'Social Secretary' + | 'Sports Officer' + | 'Marketing Officer' + | 'Hackathon Officer' + | 'Industry Officer' + | 'Academic Secretary' + | 'Gamesmaster' + | 'Games Officer' + | 'International Representative' + | 'Masters Rep' + | 'Postgraduate Representative' + | 'Publicity Officer' + | 'Sports Representative' + | 'Staff Representative' + | 'Unknown Role' + | 'Webmaster' + ) + | null; + bio?: + | { + [k: string]: unknown; + }[] + | null; + logo?: string | Media | null; + updatedAt: string; + createdAt: string; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "comments". @@ -1141,90 +1227,6 @@ export interface Order { updatedAt: string; createdAt: string; } -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "societies". - */ -export interface Society { - id: string; - slug?: string | null; - name?: string | null; - level?: ('not-shit' | 'shit') | null; - description?: - | { - [k: string]: unknown; - }[] - | null; - logo: string | Media; - email?: string | null; - website?: string | null; - susu?: string | null; - github?: string | null; - instagram?: string | null; - discord?: string | null; - links?: - | { - link: { - type?: ('reference' | 'custom') | null; - newTab?: boolean | null; - reference?: { - relationTo: 'pages'; - value: string | Page; - } | null; - url?: string | null; - label: string; - appearance?: ('default' | 'primary' | 'secondary') | null; - }; - id?: string | null; - }[] - | null; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "committee". - */ -export interface Committee { - id: string; - firstName: string | null; - lastName: string | null; - position?: ( - 'President'| - 'Vice President Engagement'| - 'Vice President Operations'| - 'Secretary'| - 'Treasurer'| - 'Events Officer'| - 'Welfare Officer'| - 'Social Secretary'| - 'Web Officer'| - 'Sports Officer'| - 'Marketing Officer'| - 'Hackathon Officer'| - 'Industry Officer'| - 'International Representative'| - 'Gamesmaster'| - 'Games Officer'| - 'Masters Rep'| - 'Postgraduate Representative'| - 'Publicity Officer'| - 'Sports Representative'| - 'Staff Representative'| - 'Academic Secretary'| - 'Vice President'| - 'Webmaster'| - 'Unknown Role' - ) | null; - bio?: - | { - [k: string]: unknown; - }[] - | null; - logo?: string | Media | null; - updatedAt: string; - createdAt: string; -} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "redirects".