Skip to content

Commit

Permalink
update schema.graphql (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr authored Feb 1, 2024
1 parent 3c2eebd commit 3677888
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@ directive @auth on FIELD_DEFINITION

directive @role(requires: UserType) on FIELD_DEFINITION

type ActionItem {
_id: ID!
actionItemCategory: ActionItemCategory
assignee: User
assigner: User
assignmentDate: Date!
completionDate: Date!
createdAt: Date!
creator: User
dueDate: Date!
event: Event
isCompleted: Boolean!
postCompletionNotes: String
preCompletionNotes: String
updatedAt: Date!
}

type ActionItemCategory {
_id: ID!
createdAt: Date!
creator: User
isDisabled: Boolean!
name: String!
organization: Organization
updatedAt: Date!
}

type Address {
city: String
countryCode: String
Expand Down Expand Up @@ -110,6 +137,13 @@ type ConnectionPageInfo {

scalar CountryCode

input CreateActionItemInput {
assigneeId: ID!
dueDate: Date
eventId: ID
preCompletionNotes: String
}

input CreateUserTagInput {
name: String!
organizationId: ID!
Expand Down Expand Up @@ -210,6 +244,7 @@ interface Error {

type Event {
_id: ID!
actionItems: [ActionItem]
admins(adminId: ID): [User!]
allDay: Boolean!
attendees: [User]
Expand Down Expand Up @@ -493,6 +528,8 @@ type Mutation {
blockUser(organizationId: ID!, userId: ID!): User!
cancelMembershipRequest(membershipRequestId: ID!): MembershipRequest!
checkIn(data: CheckInInput!): CheckIn!
createActionItem(actionItemCategoryId: ID!, data: CreateActionItemInput!): ActionItem!
createActionItemCategory(name: String!, organizationId: ID!): ActionItemCategory!
createAdmin(data: UserAndOrganizationInput!): User!
createAdvertisement(endDate: Date!, link: String!, name: String!, orgId: ID!, startDate: Date!, type: String!): Advertisement!
createComment(data: CommentInput!, postId: ID!): Comment
Expand Down Expand Up @@ -522,6 +559,7 @@ type Mutation {
registerForEvent(id: ID!): Event!
rejectAdmin(id: ID!): Boolean!
rejectMembershipRequest(membershipRequestId: ID!): MembershipRequest!
removeActionItem(id: ID!): ActionItem!
removeAdmin(data: UserAndOrganizationInput!): User!
removeAdvertisement(id: ID!): Advertisement
removeComment(id: ID!): Comment
Expand All @@ -545,12 +583,14 @@ type Mutation {
sendMessageToDirectChat(chatId: ID!, messageContent: String!): DirectChatMessage!
sendMessageToGroupChat(chatId: ID!, messageContent: String!): GroupChatMessage!
signUp(data: UserInput!, file: String): AuthData!
togglePostPin(id: ID!): Post!
togglePostPin(id: ID!, title: String): Post!
unassignUserTag(input: ToggleUserTagAssignInput!): User
unblockUser(organizationId: ID!, userId: ID!): User!
unlikeComment(id: ID!): Comment
unlikePost(id: ID!): Post
unregisterForEventByUser(id: ID!): Event!
updateActionItem(data: UpdateActionItemInput!, id: ID!): ActionItem
updateActionItemCategory(data: UpdateActionItemCategoryInput!, id: ID!): ActionItemCategory
updateAdvertisement(input: UpdateAdvertisementInput!): UpdateAdvertisementPayload
updateEvent(data: UpdateEventInput, id: ID!): Event!
updateLanguage(languageCode: String!): User!
Expand All @@ -570,6 +610,7 @@ input OTPInput {

type Organization {
_id: ID!
actionItemCategories: [ActionItemCategory]
address: Address
admins(adminId: ID): [User!]
apiUrl: URL!
Expand Down Expand Up @@ -801,6 +842,11 @@ input PostWhereInput {
}

type Query {
actionItem(id: ID!): ActionItem
actionItemCategoriesByOrganization(organizationId: ID!): [ActionItemCategory]
actionItemCategory(id: ID!): ActionItemCategory
actionItemsByEvent(eventId: ID!): [ActionItem]
actionItemsByOrganization(organizationId: ID!): [ActionItem]
adminPlugin(orgId: ID!): [Plugin]
checkAuth: User!
customDataByOrganization(organizationId: ID!): [UserCustomData!]!
Expand Down Expand Up @@ -890,6 +936,20 @@ type UnauthorizedError implements Error {
message: String!
}

input UpdateActionItemCategoryInput {
isDisabled: Boolean
name: String
}

input UpdateActionItemInput {
assigneeId: ID
completionDate: Date
dueDate: Date
isCompleted: Boolean
postCompletionNotes: String
preCompletionNotes: String
}

input UpdateAdvertisementInput {
_id: ID!
endDate: Date
Expand Down

0 comments on commit 3677888

Please sign in to comment.