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

chore: clean up repo #2

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,16 @@ dist
.yarn/install-state.gz
.pnp.*

# vscode extension file
# vscode extension file
*.vsix

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
83 changes: 82 additions & 1 deletion schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Indicates that an Input Object is a OneOf Input Object (and thus requires
directive @oneOf on INPUT_OBJECT

enum Action {
ACCEPT_EVENT_INVITE
ADD_COMPETITION_MEMBER
ADD_EVENT_COMPETITION
ADD_EVENT_MEMBER
Expand Down Expand Up @@ -43,6 +44,7 @@ enum Action {
FETCH_WEBSITE_METADATA
JOIN_COMPETITION
JOIN_EVENT
MANAGE_EVENT_INVITE_CODE
PUBLISH_VOTE
READ_ACTIVITY_TRACKER
READ_COMMENT
Expand Down Expand Up @@ -75,6 +77,7 @@ enum Action {
UPDATE_AGENDA
UPDATE_COMMENT
UPDATE_COMPETITION
UPDATE_COMPETITION_ACCESS
UPDATE_EVENT
UPDATE_FORUM
UPDATE_ORGANIZATION
Expand Down Expand Up @@ -150,6 +153,16 @@ enum Badge {
PARIS_2024_HACKERS
"""BIG Quantum Hackathon Sports Edition by QuantX & Aqora, May 2024, Paris (FR)"""
PARIS_2024_WINNERS
"""Hackathon Trailblazer - 3rd Place Team - Q2B Silicon Valley 2024"""
Q2B2024_BRONZE
"""Hackathon Champion - Q2B Silicon Valley 2024"""
Q2B2024_GOLD
"""On-Site Participant - Q2B Hackathon 2024"""
Q2B2024_ONSITE
"""Global Participant - Q2B Hackathon 2024"""
Q2B2024_REMOTE
"""Hackathon Innovator - 2nd Place Team - Q2B Silicon Valley 2024"""
Q2B2024_SILVER
"""Badge awarded upon first submission"""
QUANTUM_PIONEER
TEST
Expand Down Expand Up @@ -196,6 +209,7 @@ type Competition implements ForumOwner & Node {
description: String
entityRuleAgreements(after: String, before: String, entity: UsernameOrID, first: Int, last: Int, latest: Boolean): CompetitionRuleAgreementConnection!
forum: Forum!
grantHostSubmissionAccess: Boolean!
hasLeaderboard: Boolean!
host: Entity!
id: ID!
Expand Down Expand Up @@ -332,6 +346,7 @@ input CreateCommentInput {
input CreateCompetitionInput {
banner: Upload
description: String
grantHostSubmissionAccess: Boolean
hasLeaderboard: Boolean
requiresApproval: Boolean
shortDescription: String!
Expand Down Expand Up @@ -494,13 +509,17 @@ type Event implements ForumOwner & Node {
forum: Forum!
host: Entity!
id: ID!
invitations(after: String, before: String, first: Int, last: Int): EventInvitationConnection!
invitationsCount: Int!
invite: EventInvite!
isPrivate: Boolean!
latestRule: EventRule!
members(after: String, before: String, first: Int, last: Int, userIsOrgMember: ID): EventMembershipConnection!
members(after: String, before: String, first: Int, last: Int): EventMembershipConnection!
membership(entity: UsernameOrID): EventMembership
rules(after: String, before: String, first: Int, last: Int): EventRuleConnection!
shortDescription: String!
slug: String!
teams(after: String, before: String, first: Int, last: Int): OrganizationConnection!
thumbnail: Url
title: String!
viewerCan(action: Action!, asEntity: UsernameOrID): Boolean!
Expand Down Expand Up @@ -548,6 +567,52 @@ type EventEdge {
node: Event!
}

type EventInvitation implements Node {
email: String!
event: Event!
id: ID!
organization: Organization
registeredAs: User
username: String
}

type EventInvitationConnection {
"""A list of edges."""
edges: [EventInvitationEdge!]!
"""A list of nodes."""
nodes: [EventInvitation!]!
"""Information to aid in pagination."""
pageInfo: PageInfo!
}

"""An edge in a connection."""
type EventInvitationEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: EventInvitation!
}

type EventInvite implements Node {
code: String
event: Event!
id: ID!
latestRuleText: String!
shortDescription: String!
thumbnail: Url
title: String!
viewerCan(action: Action!, asEntity: UsernameOrID): Boolean!
}

input EventMemberInvite {
"""Required email used to find registered members, or send invitation email otherwise."""
email: String!
"""Optional team name used to create teams for the event."""
team: String
"""Optional username used to send invitation email when the member has not registered yet."""
username: String
}

type EventMembership implements Node {
entity: Entity!
event: Event!
Expand Down Expand Up @@ -778,6 +843,7 @@ input LoginUserInput {
}

type Mutation {
acceptEventInvite(asEntity: UsernameOrID, code: String!, id: ID!): EventInvite!
addCompetitionMember(competitionId: ID!, entityId: ID!): CompetitionMembershipEdge!
addEventCompetition(competitionId: ID!, eventId: ID!): EventCompetitionEdge!
addEventMember(entityId: ID!, eventId: ID!): EventMembershipEdge!
Expand Down Expand Up @@ -809,7 +875,9 @@ type Mutation {
deleteUser(id: ID!): ID!
fetchWebsiteMetadata(url: Url!): WebsiteMetadata!
finishUploadFile(input: FinishUploadFileInput!): FinishUploadFile!
generateEventInviteCode(id: ID!): EventInvite!
initUploadFile(input: InitUploadFileInput!): InitUploadFile!
inviteEventMembers(eventId: ID!, invites: [EventMemberInvite!]!): Event!
joinCompetition(asEntity: UsernameOrID, competitionId: ID!): CompetitionMembershipEdge!
joinEvent(asEntity: UsernameOrID, eventId: ID!): EventMembershipEdge!
loginUser(input: LoginUserInput!): UserEdge!
Expand All @@ -820,6 +888,7 @@ type Mutation {
publishVote(id: ID!, kind: VoteKind!): VotableEdge!
removeCompetitionMember(id: ID!): ID!
removeEventCompetition(id: ID!): ID!
removeEventInviteCode(id: ID!): EventInvite!
removeEventMember(id: ID!): ID!
removeOrganizationMember(id: ID!): ID!
resetPassword(input: ResetPasswordInput!): Boolean!
Expand Down Expand Up @@ -868,6 +937,7 @@ enum NotificationKind {
CONTENT_MENTIONED
CREATE_SUBMISSION
CREATE_TOPIC
PROMOTIONAL_NEWSLETTER
REPLY_COMMENT
REPLY_TOPIC
}
Expand Down Expand Up @@ -932,6 +1002,15 @@ type Organization implements Entity & Node {
website: String
}

type OrganizationConnection {
"""A list of edges."""
edges: [OrganizationEdge!]!
"""A list of nodes."""
nodes: [Organization!]!
"""Information to aid in pagination."""
pageInfo: PageInfo!
}

"""An edge in a connection."""
type OrganizationEdge {
"""A cursor for use in pagination"""
Expand Down Expand Up @@ -1157,6 +1236,7 @@ input SignupUserInput {
linkedin: String
location: String
password: String!
subscribePromotionalNewsletter: Boolean
username: String!
website: Url
}
Expand Down Expand Up @@ -1325,6 +1405,7 @@ input UpdateCommentInput {
input UpdateCompetitionInput {
banner: Upload
description: String
grantHostSubmissionAccess: Boolean
hasLeaderboard: Boolean
requiresApproval: Boolean
rules: String
Expand Down
Loading
Loading