Skip to content

Commit

Permalink
reverted changes from schema.graphql file
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 7, 2024
1 parent 9715b32 commit 250beb0
Showing 1 changed file with 52 additions and 97 deletions.
149 changes: 52 additions & 97 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ input CommentInput {
text: String!
}

type Community {
_id: ID!
logoUrl: String
name: String!
socialMediaUrls: SocialMediaUrls
timeout: Int
websiteLink: String
}

union ConnectionError = InvalidCursor | MaximumValueError

type ConnectionPageInfo {
Expand Down Expand Up @@ -205,25 +214,6 @@ type DeletePayload {
success: Boolean!
}

type DirectChat {
_id: ID!
createdAt: DateTime!
creator: User
messages: [DirectChatMessage]
updatedAt: DateTime!
users: [User!]!
}

type DirectChatMessage {
_id: ID!
createdAt: DateTime!
directChatMessageBelongsTo: DirectChat!
messageContent: String!
receiver: User!
sender: User!
updatedAt: DateTime!
}

type Donation {
_id: ID!
amount: Float!
Expand Down Expand Up @@ -461,26 +451,6 @@ type Group {
updatedAt: DateTime!
}

type GroupChat {
_id: ID!
title: String!
createdAt: DateTime!
creator: User
messages: [GroupChatMessage]
organization: Organization!
updatedAt: DateTime!
users: [User!]!
}

type GroupChatMessage {
_id: ID!
createdAt: DateTime!
groupChatMessageBelongsTo: GroupChat!
messageContent: String!
sender: User!
updatedAt: DateTime!
}

type InvalidCursor implements FieldError {
message: String!
path: [String!]!
Expand Down Expand Up @@ -527,6 +497,32 @@ enum MaritalStatus {
WIDOWED
}

type Chat {
_id: ID!
isGroup: Boolean!
name: String
createdAt: DateTime!
creator: User
messages: [ChatMessage]
organization: Organization
updatedAt: DateTime!
users: [User!]!
admins: [User]
lastMessageId: String
}

type ChatMessage {
_id: ID!
createdAt: DateTime!
chatMessageBelongsTo: Chat!
messageContent: String!
type: String!
replyTo: ChatMessage
sender: User!
deletedBy: [User]
updatedAt: DateTime!
}

type MaximumLengthError implements FieldError {
message: String!
path: [String!]!
Expand All @@ -544,31 +540,6 @@ type MembershipRequest {
user: User!
}

type Message {
_id: ID!
createdAt: DateTime!
creator: User
imageUrl: URL
text: String!
updatedAt: DateTime!
videoUrl: URL
}

type MessageChat {
_id: ID!
createdAt: DateTime!
languageBarrier: Boolean
message: String!
receiver: User!
sender: User!
updatedAt: DateTime!
}

input MessageChatInput {
message: String!
receiver: ID!
}

type MinimumLengthError implements FieldError {
limit: Int!
message: String!
Expand Down Expand Up @@ -624,10 +595,8 @@ type Mutation {
organizationId: ID!
): UserCustomData!
addUserImage(file: String!): User!
addUserToGroupChat(chatId: ID!, userId: ID!): GroupChat!
addUserToUserFamily(familyId: ID!, userId: ID!): UserFamily!
adminRemoveEvent(eventId: ID!): Event!
adminRemoveGroup(groupId: ID!): GroupChat!
assignUserTag(input: ToggleUserTagAssignInput!): User
blockPluginCreationBySuperadmin(
blockUser: Boolean!
Expand All @@ -641,6 +610,7 @@ type Mutation {
data: CreateActionItemInput!
): ActionItem!
createActionItemCategory(
isDisabled: Boolean!
name: String!
organizationId: ID!
): ActionItemCategory!
Expand All @@ -655,7 +625,7 @@ type Mutation {
): Advertisement!
createAgendaCategory(input: CreateAgendaCategoryInput!): AgendaCategory!
createComment(data: CommentInput!, postId: ID!): Comment
createDirectChat(data: createChatInput!): DirectChat!
createChat(data: chatInput!): Chat!
createDonation(
amount: Float!
nameOfOrg: String!
Expand All @@ -669,9 +639,7 @@ type Mutation {
recurrenceRuleData: RecurrenceRuleInput
): Event!
createEventVolunteer(data: EventVolunteerInput!): EventVolunteer!
createGroupChat(data: createGroupChatInput!): GroupChat!
createMember(input: UserAndOrganizationInput!): Organization!
createMessageChat(data: MessageChatInput!): MessageChat!
createOrganization(data: OrganizationInput, file: String): Organization!
createPlugin(
pluginCreatedBy: String!
Expand Down Expand Up @@ -706,11 +674,9 @@ type Mutation {
removeAdmin(data: UserAndOrganizationInput!): AppUserProfile!
removeAdvertisement(id: ID!): Advertisement
removeComment(id: ID!): Comment
removeDirectChat(chatId: ID!, organizationId: ID!): DirectChat!
removeEvent(id: ID!): Event!
removeEventAttendee(data: EventAttendeeInput!): User!
removeEventVolunteer(id: ID!): EventVolunteer!
removeGroupChat(chatId: ID!): GroupChat!
removeMember(data: UserAndOrganizationInput!): Organization!
removeOrganization(id: ID!): UserData!
removeOrganizationCustomField(
Expand All @@ -722,21 +688,18 @@ type Mutation {
removeSampleOrganization: Boolean!
removeUserCustomData(organizationId: ID!): UserCustomData!
removeUserFamily(familyId: ID!): UserFamily!
removeUserFromGroupChat(chatId: ID!, userId: ID!): GroupChat!
removeUserFromUserFamily(familyId: ID!, userId: ID!): UserFamily!
removeUserImage: User!
removeUserTag(id: ID!): UserTag
revokeRefreshTokenForUser: Boolean!
saveFcmToken(token: String): Boolean!
sendMembershipRequest(organizationId: ID!): MembershipRequest!
sendMessageToDirectChat(
chatId: ID!
messageContent: String!
): DirectChatMessage!
sendMessageToGroupChat(
sendMessageToChat(
chatId: ID!
messageContent: String!
): GroupChatMessage!
type: String!
replyTo: ID
): ChatMessage!
signUp(data: UserInput!, file: String): AuthData!
togglePostPin(id: ID!, title: String): Post!
unassignUserTag(input: ToggleUserTagAssignInput!): User
Expand Down Expand Up @@ -769,6 +732,7 @@ type Mutation {
): Organization!
updatePluginStatus(id: ID!, orgId: ID!): Plugin!
updatePost(data: PostUpdateInput, id: ID!): Post!
updateSessionTimeout(timeout: Int!): Boolean!
updateUserPassword(data: UpdateUserPasswordInput!): UserData!
updateUserProfile(data: UpdateUserInput, file: String): User!
updateUserRoleInOrganization(
Expand Down Expand Up @@ -1055,11 +1019,8 @@ type Query {
checkAuth: User!
customDataByOrganization(organizationId: ID!): [UserCustomData!]!
customFieldsByOrganization(id: ID!): [OrganizationCustomField]
directChatsByUserID(id: ID!): [DirectChat]
directChatsMessagesByChatID(id: ID!): [DirectChatMessage]
directChatById(id: ID!): DirectChat
groupChatById(id: ID!): DirectChat
groupChatsByUserId(id: ID!): [GroupChat]
chatById(id: ID!): Chat!
chatsByUserId(id: ID!): [Chat]
event(id: ID!): Event
eventVolunteersByEvent(id: ID!): [EventVolunteer]
eventsByOrganization(id: ID, orderBy: EventOrderByInput): [Event]
Expand Down Expand Up @@ -1159,9 +1120,7 @@ enum Status {
}

type Subscription {
directMessageChat: MessageChat
messageSentToDirectChat(userId: ID!): DirectChatMessage
messageSentToGroupChat(userId: ID!): GroupChatMessage
messageSentToChat(userId: ID!): ChatMessage
onPluginUpdate: Plugin
}

Expand Down Expand Up @@ -1555,17 +1514,6 @@ enum WeekDays {
WE
}

input createChatInput {
organizationId: ID
userIds: [ID!]!
}

input createGroupChatInput {
organizationId: ID!
title: String!
userIds: [ID!]!
}

type Venue {
_id: ID!
capacity: Int!
Expand All @@ -1587,3 +1535,10 @@ input createUserFamilyInput {
title: String!
userIds: [ID!]!
}

input chatInput {
isGroup: Boolean!
organizationId: ID
userIds: [ID!]!
name: String
}

0 comments on commit 250beb0

Please sign in to comment.