From 8e7f1862877e7c5036c1102e36166a687774d30f Mon Sep 17 00:00:00 2001 From: meetul Date: Wed, 3 Jan 2024 23:03:12 +0530 Subject: [PATCH 01/28] feat: Add support for Categories --- codegen.ts | 4 + src/constants.ts | 7 ++ src/models/ActionItem.ts | 109 ++++++++++++++++++ src/models/Category.ts | 67 +++++++++++ src/models/index.ts | 2 + src/resolvers/Category/createdBy.ts | 8 ++ src/resolvers/Category/index.ts | 10 ++ src/resolvers/Category/org.ts | 8 ++ src/resolvers/Category/updatedBy.ts | 8 ++ src/resolvers/Mutation/createCategory.ts | 79 +++++++++++++ src/resolvers/Mutation/index.ts | 4 + src/resolvers/Mutation/updateCategory.ts | 84 ++++++++++++++ .../Query/categoriesByOrganization.ts | 18 +++ src/resolvers/Query/category.ts | 29 +++++ src/resolvers/Query/index.ts | 4 + src/resolvers/index.ts | 2 + src/typeDefs/inputs.ts | 5 + src/typeDefs/mutations.ts | 4 + src/typeDefs/queries.ts | 4 + src/typeDefs/types.ts | 30 +++++ src/types/generatedGraphQLTypes.ts | 107 +++++++++++++++++ 21 files changed, 593 insertions(+) create mode 100644 src/models/ActionItem.ts create mode 100644 src/models/Category.ts create mode 100644 src/resolvers/Category/createdBy.ts create mode 100644 src/resolvers/Category/index.ts create mode 100644 src/resolvers/Category/org.ts create mode 100644 src/resolvers/Category/updatedBy.ts create mode 100644 src/resolvers/Mutation/createCategory.ts create mode 100644 src/resolvers/Mutation/updateCategory.ts create mode 100644 src/resolvers/Query/categoriesByOrganization.ts create mode 100644 src/resolvers/Query/category.ts diff --git a/codegen.ts b/codegen.ts index d0f9fc4a95..5415a4fb3e 100644 --- a/codegen.ts +++ b/codegen.ts @@ -25,6 +25,10 @@ const config: CodegenConfig = { // functionality is useful because what we retrieve from the database and what we choose to return from a graphql server // could be completely different fields. Address to models here is relative to the location of generated types. mappers: { + ActionItem: "../models/ActionItem#InterfaceActionItem", + + Category: "../models/Category#InterfaceCategory", + CheckIn: "../models/CheckIn#InterfaceCheckIn", MessageChat: "../models/MessageChat#InterfaceMessageChat", diff --git a/src/constants.ts b/src/constants.ts index 7980d0b5f4..61987a3278 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,6 +7,13 @@ if (!issues) { ENV = envSchema.parse(process.env); } +export const CATEGORY_NOT_FOUND_ERROR = { + DESC: "Category not found", + CODE: "category.notFound", + MESSAGE: "category.notFound", + PARAM: "category", +}; + export const CHAT_NOT_FOUND_ERROR = { DESC: "Chat not found", CODE: "chat.notFound", diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts new file mode 100644 index 0000000000..105a46abf6 --- /dev/null +++ b/src/models/ActionItem.ts @@ -0,0 +1,109 @@ +import type { PopulatedDoc, Types, Document, Model } from "mongoose"; +import { Schema, model, models } from "mongoose"; +import type { InterfaceUser } from "./User"; +import type { InterfaceEvent } from "./Event"; +import type { InterfaceCategory } from "./Category"; + +/** + * This is an interface that represents a database(MongoDB) document for ActionItem. + */ + +export interface InterfaceActionItem { + _id: Types.ObjectId; + assignedTo: PopulatedDoc; + assignedBy: PopulatedDoc; + category: PopulatedDoc; + preCompletionNotes: string; + postCompletionNotes: string; + assignmentDate: Date; + dueDate: Date; + completionDate: Date; + completed: boolean; + eventId: PopulatedDoc; + createdBy: PopulatedDoc; + updatedBy: PopulatedDoc; + createdAt: Date; + updatedAt: Date; +} + +/** + * This describes the schema for a `ActionItem` that corresponds to `InterfaceActionItem` document. + * @param assignedTo - User to whom the ActionItem is assigned, refer to `User` model. + * @param assignedBy - User who assigned the ActionItem, refer to the `User` model. + * @param category - Category to which the ActionItem is related, refer to the `Category` model. + * @param preCompletionNotes - Notes prior to completion. + * @param postCompletionNotes - Notes on completion. + * @param assignmentDate - Date of assignment. + * @param dueDate - Due date. + * @param completionDate - Completion date. + * @param completed - Whether the ActionItem has been completed. + * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. + * @param createdBy - User who created the ActionItem, refer to the `User` model. + * @param updatedBy - User who last updated the ActionItem, refer to the `User` model. + * @param createdAt - Timestamp when the ActionItem was created. + * @param updatedAt - Timestamp when the ActionItem was last updated. + */ + +const actionItemSchema = new Schema( + { + assignedTo: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + assignedBy: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + category: { + type: Schema.Types.ObjectId, + ref: "Category", + required: true, + }, + preCompletionNotes: { + type: String, + }, + postCompletionNotes: { + type: String, + }, + assignmentDate: { + type: Date, + default: Date.now(), + }, + dueDate: { + type: Date, + default: Date.now() + 7 * 24 * 60 * 60 * 1000, + }, + completionDate: { + type: Date, + default: Date.now() + 7 * 24 * 60 * 60 * 1000, + }, + completed: { + type: Boolean, + required: true, + }, + eventId: { + type: Schema.Types.ObjectId, + ref: "Event", + }, + createdBy: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + updatedBy: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + }, + { timestamps: true } +); + +const actionItemModel = (): Model => + model("ActionItem", actionItemSchema); + +// This syntax is needed to prevent Mongoose OverwriteModelError while running tests. +export const ActionItem = (models.ActionItem || + actionItemModel()) as ReturnType; diff --git a/src/models/Category.ts b/src/models/Category.ts new file mode 100644 index 0000000000..f644ed9b6f --- /dev/null +++ b/src/models/Category.ts @@ -0,0 +1,67 @@ +import type { PopulatedDoc, Types, Document, Model } from "mongoose"; +import { Schema, model, models } from "mongoose"; +import type { InterfaceUser } from "./User"; +import type { InterfaceOrganization } from "./Organization"; + +/** + * This is an interface that represents a database(MongoDB) document for Category. + */ + +export interface InterfaceCategory { + _id: Types.ObjectId; + category: string; + org: PopulatedDoc; + disabled: boolean; + createdBy: PopulatedDoc; + updatedBy: PopulatedDoc; + createdAt: Date; + updatedAt: Date; +} + +/** + * This describes the schema for a `category` that corresponds to `InterfaceCategory` document. + * @param category - A category to be selected for ActionItems. + * @param org - Organization the category belongs to, refer to the `Organization` model. + * @param disabled - Whether category is disabled or not. + * @param createdBy - Task creator, refer to `User` model. + * @param updatedBy - Task creator, refer to `User` model. + * @param createdAt - Time stamp of data creation. + * @param updatedAt - Time stamp of data updation. + */ + +const categorySchema = new Schema( + { + category: { + type: String, + required: true, + }, + org: { + type: Schema.Types.ObjectId, + ref: "Organization", + required: true, + }, + disabled: { + type: Boolean, + default: false, + }, + createdBy: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + updatedBy: { + type: Schema.Types.ObjectId, + ref: "User", + required: true, + }, + }, + { timestamps: true } +); + +const categoryModel = (): Model => + model("Category", categorySchema); + +// This syntax is needed to prevent Mongoose OverwriteModelError while running tests. +export const Category = (models.Category || categoryModel()) as ReturnType< + typeof categoryModel +>; diff --git a/src/models/index.ts b/src/models/index.ts index e63bd4e63d..9af8aae40e 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,4 +1,6 @@ +export * from "./ActionItem"; export * from "./Advertisement"; +export * from "./Category"; export * from "./CheckIn"; export * from "./MessageChat"; export * from "./Comment"; diff --git a/src/resolvers/Category/createdBy.ts b/src/resolvers/Category/createdBy.ts new file mode 100644 index 0000000000..64fa5ca4cd --- /dev/null +++ b/src/resolvers/Category/createdBy.ts @@ -0,0 +1,8 @@ +import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const createdBy: CategoryResolvers["createdBy"] = async (parent) => { + return User.findOne({ + _id: parent.createdBy, + }).lean(); +}; diff --git a/src/resolvers/Category/index.ts b/src/resolvers/Category/index.ts new file mode 100644 index 0000000000..2413266db9 --- /dev/null +++ b/src/resolvers/Category/index.ts @@ -0,0 +1,10 @@ +import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { org } from "./org"; +import { createdBy } from "./createdBy"; +import { updatedBy } from "./updatedBy"; + +export const Category: CategoryResolvers = { + org, + createdBy, + updatedBy, +}; diff --git a/src/resolvers/Category/org.ts b/src/resolvers/Category/org.ts new file mode 100644 index 0000000000..88de244b09 --- /dev/null +++ b/src/resolvers/Category/org.ts @@ -0,0 +1,8 @@ +import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { Organization } from "../../models"; + +export const org: CategoryResolvers["org"] = async (parent) => { + return Organization.findOne({ + _id: parent.org, + }).lean(); +}; diff --git a/src/resolvers/Category/updatedBy.ts b/src/resolvers/Category/updatedBy.ts new file mode 100644 index 0000000000..9e19f9679e --- /dev/null +++ b/src/resolvers/Category/updatedBy.ts @@ -0,0 +1,8 @@ +import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const updatedBy: CategoryResolvers["updatedBy"] = async (parent) => { + return User.findOne({ + _id: parent.updatedBy, + }).lean(); +}; diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createCategory.ts new file mode 100644 index 0000000000..1e2d4b1663 --- /dev/null +++ b/src/resolvers/Mutation/createCategory.ts @@ -0,0 +1,79 @@ +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; +import { User, Category, Organization } from "../../models"; +import { errors, requestContext } from "../../libraries"; +import { + USER_NOT_FOUND_ERROR, + ORGANIZATION_NOT_FOUND_ERROR, +} from "../../constants"; + +import { adminCheck } from "../../utilities"; +import { findOrganizationsInCache } from "../../services/OrganizationCache/findOrganizationsInCache"; +import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrganizations"; + +/** + * This function enables to create a task. + * @param _parent - parent of current request + * @param args - payload provided with the request + * @param context - context of entire application + * @remarks The following checks are done: + * 1. If the User exists + * 2. If the Organization exists + * 3. Is the User is Authorized + * @returns Created Category + */ + +export const createCategory: MutationResolvers["createCategory"] = async ( + _parent, + args, + context +) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks whether currentUser with _id == context.userId exists. + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + let organization; + + const organizationFoundInCache = await findOrganizationsInCache([args.orgId]); + + organization = organizationFoundInCache[0]; + + if (organizationFoundInCache[0] == null) { + organization = await Organization.findOne({ + _id: args.orgId, + }).lean(); + + await cacheOrganizations([organization!]); + } + + // Checks whether the organization with _id === args.orgId exists. + if (!organization) { + throw new errors.NotFoundError( + requestContext.translate(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE), + ORGANIZATION_NOT_FOUND_ERROR.CODE, + ORGANIZATION_NOT_FOUND_ERROR.PARAM + ); + } + + // Checks whether the user is authorized to perform the operation + await adminCheck(context.userId, organization); + + // Creates new category. + const createdCategory = await Category.create({ + category: args.category, + org: args.orgId, + createdBy: context.userId, + updatedBy: context.userId, + }); + + // Returns created category. + return createdCategory.toObject(); +}; diff --git a/src/resolvers/Mutation/index.ts b/src/resolvers/Mutation/index.ts index 9ec94b8aed..b768bca7e8 100644 --- a/src/resolvers/Mutation/index.ts +++ b/src/resolvers/Mutation/index.ts @@ -32,6 +32,7 @@ import { createAdvertisement } from "./createAdvertisement"; import { createPost } from "./createPost"; import { createSampleOrganization } from "./createSampleOrganization"; import { createTask } from "./createTask"; +import { createCategory } from "./createCategory"; import { createUserTag } from "./createUserTag"; import { deleteDonationById } from "./deleteDonationById"; import { forgotPassword } from "./forgotPassword"; @@ -79,6 +80,7 @@ import { unblockUser } from "./unblockUser"; import { unlikeComment } from "./unlikeComment"; import { unlikePost } from "./unlikePost"; import { unregisterForEventByUser } from "./unregisterForEventByUser"; +import { updateCategory } from "./updateCategory"; import { updateEvent } from "./updateEvent"; import { updateEventProject } from "./updateEventProject"; import { updateLanguage } from "./updateLanguage"; @@ -126,6 +128,7 @@ export const Mutation: MutationResolvers = { createPost, createSampleOrganization, createTask, + createCategory, createUserTag, deleteDonationById, deleteAdvertisementById, @@ -174,6 +177,7 @@ export const Mutation: MutationResolvers = { unlikeComment, unlikePost, unregisterForEventByUser, + updateCategory, updateEvent, updateEventProject, updateLanguage, diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts new file mode 100644 index 0000000000..19a18ac640 --- /dev/null +++ b/src/resolvers/Mutation/updateCategory.ts @@ -0,0 +1,84 @@ +import { + CATEGORY_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + USER_NOT_FOUND_ERROR, +} from "../../constants"; +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; +import { errors, requestContext } from "../../libraries"; +import { User, Category } from "../../models"; +import { Types } from "mongoose"; +/** + * This function enables to update a task. + * @param _parent - parent of current request + * @param args - payload provided with the request + * @param context - context of entire application + * @remarks The following checks are done: + * 1. If the user exists. + * 2. If the category exists. + * 3. If the user is authorized. + * @returns Updated category. + */ +export const updateCategory: MutationResolvers["updateCategory"] = async ( + _parent, + args, + context +) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks if the user exists + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + const category = await Category.findOne({ + _id: args.id, + }).lean(); + + // Checks if the category exists + if (!category) { + throw new errors.NotFoundError( + requestContext.translate(CATEGORY_NOT_FOUND_ERROR.MESSAGE), + CATEGORY_NOT_FOUND_ERROR.CODE, + CATEGORY_NOT_FOUND_ERROR.PARAM + ); + } + + const currentUserIsOrgAdmin = currentUser.adminFor.some( + (ogranizationId) => + ogranizationId === category.org || + Types.ObjectId(ogranizationId).equals(category.org) + ); + + // Checks if the user is authorized for the operation. + if ( + currentUserIsOrgAdmin === false && + currentUser.userType !== "SUPERADMIN" + ) { + throw new errors.UnauthorizedError( + requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), + USER_NOT_AUTHORIZED_ERROR.CODE, + USER_NOT_AUTHORIZED_ERROR.PARAM + ); + } + + const updatedCategory = await Category.findOneAndUpdate( + { + _id: args.id, + }, + { + ...(args.data as any), + updatedBy: context.userId, + }, + { + new: true, + } + ).lean(); + + return updatedCategory; +}; diff --git a/src/resolvers/Query/categoriesByOrganization.ts b/src/resolvers/Query/categoriesByOrganization.ts new file mode 100644 index 0000000000..775ba7542a --- /dev/null +++ b/src/resolvers/Query/categoriesByOrganization.ts @@ -0,0 +1,18 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { Category } from "../../models"; +/** + * This query will fetch all categories for the organization from database. + * @param _parent- + * @param args - An object that contains `orderBy` to sort the object as specified and `id` of the Organization. + * @returns An `categories` object that holds all categories with `ACTIVE` status for the Organization. + */ +export const categoriesByOrganization: QueryResolvers["categoriesByOrganization"] = + async (_parent, args) => { + const categories = await Category.find({ + org: args.orgId, + }) + .populate("org") + .lean(); + + return categories; + }; diff --git a/src/resolvers/Query/category.ts b/src/resolvers/Query/category.ts new file mode 100644 index 0000000000..ed4a3809fd --- /dev/null +++ b/src/resolvers/Query/category.ts @@ -0,0 +1,29 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { Category } from "../../models"; +import { errors } from "../../libraries"; +import { CATEGORY_NOT_FOUND_ERROR } from "../../constants"; +/** + * This query will fetch the category with given id from the database. + * @param _parent- + * @param args - An object that contains `id` of the category that need to be fetched. + * @returns An `category` object. If the `category` object is null then it throws `NotFoundError` error. + * @remarks You can learn about GraphQL `Resolvers` + * {@link https://www.apollographql.com/docs/apollo-server/data/resolvers/ | here}. + */ +export const category: QueryResolvers["category"] = async (_parent, args) => { + const category = await Category.findOne({ + _id: args.id, + }) + .populate("org") + .lean(); + + if (!category) { + throw new errors.NotFoundError( + CATEGORY_NOT_FOUND_ERROR.DESC, + CATEGORY_NOT_FOUND_ERROR.CODE, + CATEGORY_NOT_FOUND_ERROR.PARAM + ); + } + + return category; +}; diff --git a/src/resolvers/Query/index.ts b/src/resolvers/Query/index.ts index 6c4bbd2a2c..a5ffff5dbb 100644 --- a/src/resolvers/Query/index.ts +++ b/src/resolvers/Query/index.ts @@ -1,4 +1,6 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { category } from "./category"; +import { categoriesByOrganization } from "./categoriesByOrganization"; import { checkAuth } from "./checkAuth"; import { customDataByOrganization } from "./customDataByOrganization"; import { customFieldsByOrganization } from "./customFieldsByOrganization"; @@ -29,6 +31,8 @@ import { getAdvertisements } from "./getAdvertisements"; import { usersConnection } from "./usersConnection"; export const Query: QueryResolvers = { + category, + categoriesByOrganization, checkAuth, customFieldsByOrganization, customDataByOrganization, diff --git a/src/resolvers/index.ts b/src/resolvers/index.ts index 198c139d2a..625656c7f5 100644 --- a/src/resolvers/index.ts +++ b/src/resolvers/index.ts @@ -1,4 +1,5 @@ import type { Resolvers } from "../types/generatedGraphQLTypes"; +import { Category } from "./Category"; import { CheckIn } from "./CheckIn"; import { Comment } from "./Comment"; import { DirectChat } from "./DirectChat"; @@ -49,6 +50,7 @@ const resolvers: Resolvers = { Query, Subscription, Task, + Category, User, UserTag, diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index 40763e6904..c6fb0f7c57 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -307,6 +307,11 @@ export const inputs = gql` completed: Boolean } + input UpdateCategoryInput { + category: String + disabled: Boolean + } + input AddressInput { city: String countryCode: CountryCode diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index 715ad92de7..7f1b6f3aff 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -105,6 +105,8 @@ export const mutations = gql` createTask(data: TaskInput!, eventProjectId: ID!): Task! @auth + createCategory(category: String!, orgId: ID!): Category! @auth + deleteAdvertisementById(id: ID!): DeletePayload! deleteDonationById(id: ID!): DeletePayload! @@ -231,6 +233,8 @@ export const mutations = gql` updateTask(id: ID!, data: UpdateTaskInput!): Task @auth + updateCategory(id: ID!, data: UpdateCategoryInput!): Category @auth + updateUserProfile(data: UpdateUserInput, file: String): User! @auth updateUserPassword(data: UpdateUserPasswordInput!): User! @auth diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index f890e73e22..59414c6065 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -7,6 +7,10 @@ export const queries = gql` type Query { adminPlugin(orgId: ID!): [Plugin] + category(id: ID!): Category @auth + + categoriesByOrganization(orgId: ID!): [Category] @auth + checkAuth: User! @auth customFieldsByOrganization(id: ID!): [OrganizationCustomField] diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index b8a001493b..df053be44f 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -16,6 +16,25 @@ export const types = gql` refreshToken: String! } + # Action Item for a Category + type ActionItem { + _id: ID! + assignedTo: User! + assignedBy: User! + category: Category! + preCompletionNotes: String + postCompletionNotes: String + assignmentDate: Date! + dueDate: Date! + completionDate: Date! + completed: Boolean! + eventId: Event + createdBy: User! + updatedBy: User! + createdAt: Date! + updatedAt: Date! + } + # Stores the detail of an check in of an user in an event type CheckIn { _id: ID! @@ -342,6 +361,17 @@ export const types = gql` volunteers: [User] } + type Category { + _id: ID! + category: String! + org: Organization! + disabled: Boolean! + createdBy: User! + updatedBy: User! + createdAt: Date! + updatedAt: Date! + } + type Translation { lang_code: String en_value: String diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index a4ef88a403..6454d33898 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1,4 +1,6 @@ import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; +import type { InterfaceActionItem as InterfaceActionItemModel } from '../models/ActionItem'; +import type { InterfaceCategory as InterfaceCategoryModel } from '../models/Category'; import type { InterfaceCheckIn as InterfaceCheckInModel } from '../models/CheckIn'; import type { InterfaceMessageChat as InterfaceMessageChatModel } from '../models/MessageChat'; import type { InterfaceComment as InterfaceCommentModel } from '../models/Comment'; @@ -51,6 +53,25 @@ export type Scalars = { Upload: any; }; +export type ActionItem = { + __typename?: 'ActionItem'; + _id: Scalars['ID']; + assignedBy: User; + assignedTo: User; + assignmentDate: Scalars['Date']; + category: Category; + completed: Scalars['Boolean']; + completionDate: Scalars['Date']; + createdAt: Scalars['Date']; + createdBy: User; + dueDate: Scalars['Date']; + eventId?: Maybe; + postCompletionNotes?: Maybe; + preCompletionNotes?: Maybe; + updatedAt: Scalars['Date']; + updatedBy: User; +}; + export type Address = { __typename?: 'Address'; city?: Maybe; @@ -102,6 +123,18 @@ export type AuthData = { user: User; }; +export type Category = { + __typename?: 'Category'; + _id: Scalars['ID']; + category: Scalars['String']; + createdAt: Scalars['Date']; + createdBy: User; + disabled: Scalars['Boolean']; + org: Organization; + updatedAt: Scalars['Date']; + updatedBy: User; +}; + export type CheckIn = { __typename?: 'CheckIn'; _id: Scalars['ID']; @@ -547,6 +580,7 @@ export type Mutation = { checkIn: CheckIn; createAdmin: User; createAdvertisement: Advertisement; + createCategory: Category; createComment?: Maybe; createDirectChat: DirectChat; createDonation: Donation; @@ -608,6 +642,7 @@ export type Mutation = { unlikeComment?: Maybe; unlikePost?: Maybe; unregisterForEventByUser: Event; + updateCategory?: Maybe; updateEvent: Event; updateEventProject: EventProject; updateLanguage: User; @@ -731,6 +766,12 @@ export type MutationCreateAdvertisementArgs = { }; +export type MutationCreateCategoryArgs = { + category: Scalars['String']; + orgId: Scalars['ID']; +}; + + export type MutationCreateCommentArgs = { data: CommentInput; postId: Scalars['ID']; @@ -1031,6 +1072,12 @@ export type MutationUnregisterForEventByUserArgs = { }; +export type MutationUpdateCategoryArgs = { + data: UpdateCategoryInput; + id: Scalars['ID']; +}; + + export type MutationUpdateEventArgs = { data?: InputMaybe; id: Scalars['ID']; @@ -1348,6 +1395,8 @@ export type PostWhereInput = { export type Query = { __typename?: 'Query'; adminPlugin?: Maybe>>; + categoriesByOrganization?: Maybe>>; + category?: Maybe; checkAuth: User; customDataByOrganization: Array; customFieldsByOrganization?: Maybe>>; @@ -1388,6 +1437,16 @@ export type QueryAdminPluginArgs = { }; +export type QueryCategoriesByOrganizationArgs = { + orgId: Scalars['ID']; +}; + + +export type QueryCategoryArgs = { + id: Scalars['ID']; +}; + + export type QueryCustomDataByOrganizationArgs = { organizationId: Scalars['ID']; }; @@ -1634,6 +1693,11 @@ export type UnauthorizedError = Error & { message: Scalars['String']; }; +export type UpdateCategoryInput = { + category?: InputMaybe; + disabled?: InputMaybe; +}; + export type UpdateEventInput = { allDay?: InputMaybe; description?: InputMaybe; @@ -1980,6 +2044,7 @@ export type DirectiveResolverFn; Address: ResolverTypeWrapper
; AddressInput: AddressInput; Advertisement: ResolverTypeWrapper; @@ -1988,6 +2053,7 @@ export type ResolversTypes = { Any: ResolverTypeWrapper; AuthData: ResolverTypeWrapper & { user: ResolversTypes['User'] }>; Boolean: ResolverTypeWrapper; + Category: ResolverTypeWrapper; CheckIn: ResolverTypeWrapper; CheckInInput: CheckInInput; CheckInStatus: ResolverTypeWrapper & { checkIn?: Maybe, user: ResolversTypes['User'] }>; @@ -2084,6 +2150,7 @@ export type ResolversTypes = { URL: ResolverTypeWrapper; UnauthenticatedError: ResolverTypeWrapper; UnauthorizedError: ResolverTypeWrapper; + UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateEventProjectInput: UpdateEventProjectInput; UpdateOrganizationInput: UpdateOrganizationInput; @@ -2118,6 +2185,7 @@ export type ResolversTypes = { /** Mapping between all available schema types and the resolvers parents */ export type ResolversParentTypes = { + ActionItem: InterfaceActionItemModel; Address: Address; AddressInput: AddressInput; Advertisement: Advertisement; @@ -2126,6 +2194,7 @@ export type ResolversParentTypes = { Any: Scalars['Any']; AuthData: Omit & { user: ResolversParentTypes['User'] }; Boolean: Scalars['Boolean']; + Category: InterfaceCategoryModel; CheckIn: InterfaceCheckInModel; CheckInInput: CheckInInput; CheckInStatus: Omit & { checkIn?: Maybe, user: ResolversParentTypes['User'] }; @@ -2210,6 +2279,7 @@ export type ResolversParentTypes = { URL: Scalars['URL']; UnauthenticatedError: UnauthenticatedError; UnauthorizedError: UnauthorizedError; + UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateEventProjectInput: UpdateEventProjectInput; UpdateOrganizationInput: UpdateOrganizationInput; @@ -2250,6 +2320,25 @@ export type RoleDirectiveArgs = { export type RoleDirectiveResolver = DirectiveResolverFn; +export type ActionItemResolvers = { + _id?: Resolver; + assignedBy?: Resolver; + assignedTo?: Resolver; + assignmentDate?: Resolver; + category?: Resolver; + completed?: Resolver; + completionDate?: Resolver; + createdAt?: Resolver; + createdBy?: Resolver; + dueDate?: Resolver; + eventId?: Resolver, ParentType, ContextType>; + postCompletionNotes?: Resolver, ParentType, ContextType>; + preCompletionNotes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver; + updatedBy?: Resolver; + __isTypeOf?: IsTypeOfResolverFn; +}; + export type AddressResolvers = { city?: Resolver, ParentType, ContextType>; countryCode?: Resolver, ParentType, ContextType>; @@ -2294,6 +2383,18 @@ export type AuthDataResolvers; }; +export type CategoryResolvers = { + _id?: Resolver; + category?: Resolver; + createdAt?: Resolver; + createdBy?: Resolver; + disabled?: Resolver; + org?: Resolver; + updatedAt?: Resolver; + updatedBy?: Resolver; + __isTypeOf?: IsTypeOfResolverFn; +}; + export type CheckInResolvers = { _id?: Resolver; allotedRoom?: Resolver, ParentType, ContextType>; @@ -2584,6 +2685,7 @@ export type MutationResolvers>; createAdmin?: Resolver>; createAdvertisement?: Resolver>; + createCategory?: Resolver>; createComment?: Resolver, ParentType, ContextType, RequireFields>; createDirectChat?: Resolver>; createDonation?: Resolver>; @@ -2645,6 +2747,7 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; unlikePost?: Resolver, ParentType, ContextType, RequireFields>; unregisterForEventByUser?: Resolver>; + updateCategory?: Resolver, ParentType, ContextType, RequireFields>; updateEvent?: Resolver>; updateEventProject?: Resolver>; updateLanguage?: Resolver>; @@ -2766,6 +2869,8 @@ export type PostConnectionResolvers = { adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; + categoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; + category?: Resolver, ParentType, ContextType, RequireFields>; checkAuth?: Resolver; customDataByOrganization?: Resolver, ParentType, ContextType, RequireFields>; customFieldsByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; @@ -2952,12 +3057,14 @@ export type UsersConnectionResultResolvers = { + ActionItem?: ActionItemResolvers; Address?: AddressResolvers; Advertisement?: AdvertisementResolvers; AggregatePost?: AggregatePostResolvers; AggregateUser?: AggregateUserResolvers; Any?: GraphQLScalarType; AuthData?: AuthDataResolvers; + Category?: CategoryResolvers; CheckIn?: CheckInResolvers; CheckInStatus?: CheckInStatusResolvers; Comment?: CommentResolvers; From 7ae756d8d46581e367c7b1eaff0a6ddd1fc58ae5 Mon Sep 17 00:00:00 2001 From: meetul Date: Thu, 4 Jan 2024 13:31:10 +0530 Subject: [PATCH 02/28] feat: Add support for Action Items --- src/constants.ts | 7 + src/models/ActionItem.ts | 8 +- src/resolvers/ActionItem/assignedBy.ts | 8 + src/resolvers/ActionItem/assignedTo.ts | 8 + src/resolvers/ActionItem/category.ts | 8 + src/resolvers/ActionItem/createdBy.ts | 8 + src/resolvers/ActionItem/event.ts | 8 + src/resolvers/ActionItem/index.ts | 16 ++ src/resolvers/ActionItem/updatedBy.ts | 8 + src/resolvers/Mutation/createActionItem.ts | 130 +++++++++++++++ src/resolvers/Mutation/index.ts | 6 + src/resolvers/Mutation/removeActionItem.ts | 118 ++++++++++++++ src/resolvers/Mutation/updateActionItem.ts | 148 ++++++++++++++++++ src/resolvers/Mutation/updateCategory.ts | 8 +- src/resolvers/Query/actionItem.ts | 32 ++++ src/resolvers/Query/actionItemsByEvents.ts | 18 +++ .../Query/categoriesByOrganization.ts | 2 +- src/resolvers/Query/index.ts | 4 + src/resolvers/index.ts | 2 + src/typeDefs/inputs.ts | 19 +++ src/typeDefs/mutations.ts | 9 ++ src/typeDefs/queries.ts | 8 +- src/typeDefs/types.ts | 10 +- src/types/generatedGraphQLTypes.ts | 80 ++++++++-- 24 files changed, 650 insertions(+), 23 deletions(-) create mode 100644 src/resolvers/ActionItem/assignedBy.ts create mode 100644 src/resolvers/ActionItem/assignedTo.ts create mode 100644 src/resolvers/ActionItem/category.ts create mode 100644 src/resolvers/ActionItem/createdBy.ts create mode 100644 src/resolvers/ActionItem/event.ts create mode 100644 src/resolvers/ActionItem/index.ts create mode 100644 src/resolvers/ActionItem/updatedBy.ts create mode 100644 src/resolvers/Mutation/createActionItem.ts create mode 100644 src/resolvers/Mutation/removeActionItem.ts create mode 100644 src/resolvers/Mutation/updateActionItem.ts create mode 100644 src/resolvers/Query/actionItem.ts create mode 100644 src/resolvers/Query/actionItemsByEvents.ts diff --git a/src/constants.ts b/src/constants.ts index 61987a3278..2b39c8f490 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,6 +7,13 @@ if (!issues) { ENV = envSchema.parse(process.env); } +export const ACTION_ITEM_NOT_FOUND_ERROR = { + DESC: "ActionItem not found", + CODE: "actionItem.notFound", + MESSAGE: "actionItem.notFound", + PARAM: "actionItem", +}; + export const CATEGORY_NOT_FOUND_ERROR = { DESC: "Category not found", CODE: "category.notFound", diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 105a46abf6..81eee3e544 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -19,7 +19,7 @@ export interface InterfaceActionItem { dueDate: Date; completionDate: Date; completed: boolean; - eventId: PopulatedDoc; + event: PopulatedDoc; createdBy: PopulatedDoc; updatedBy: PopulatedDoc; createdAt: Date; @@ -37,7 +37,7 @@ export interface InterfaceActionItem { * @param dueDate - Due date. * @param completionDate - Completion date. * @param completed - Whether the ActionItem has been completed. - * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. + * @param event - Event to which the ActionItem is related, refer to the `Event` model. * @param createdBy - User who created the ActionItem, refer to the `User` model. * @param updatedBy - User who last updated the ActionItem, refer to the `User` model. * @param createdAt - Timestamp when the ActionItem was created. @@ -81,9 +81,9 @@ const actionItemSchema = new Schema( }, completed: { type: Boolean, - required: true, + default: false, }, - eventId: { + event: { type: Schema.Types.ObjectId, ref: "Event", }, diff --git a/src/resolvers/ActionItem/assignedBy.ts b/src/resolvers/ActionItem/assignedBy.ts new file mode 100644 index 0000000000..3e482a6f17 --- /dev/null +++ b/src/resolvers/ActionItem/assignedBy.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const assignedBy: ActionItemResolvers["assignedBy"] = async (parent) => { + return User.findOne({ + _id: parent.assignedBy, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/assignedTo.ts b/src/resolvers/ActionItem/assignedTo.ts new file mode 100644 index 0000000000..d4f6ffe19d --- /dev/null +++ b/src/resolvers/ActionItem/assignedTo.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const assignedTo: ActionItemResolvers["assignedTo"] = async (parent) => { + return User.findOne({ + _id: parent.assignedTo, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/category.ts b/src/resolvers/ActionItem/category.ts new file mode 100644 index 0000000000..951e61af4e --- /dev/null +++ b/src/resolvers/ActionItem/category.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { Category } from "../../models"; + +export const category: ActionItemResolvers["category"] = async (parent) => { + return Category.findOne({ + _id: parent.category, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/createdBy.ts b/src/resolvers/ActionItem/createdBy.ts new file mode 100644 index 0000000000..7caa70b35d --- /dev/null +++ b/src/resolvers/ActionItem/createdBy.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const createdBy: ActionItemResolvers["createdBy"] = async (parent) => { + return User.findOne({ + _id: parent.createdBy, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/event.ts b/src/resolvers/ActionItem/event.ts new file mode 100644 index 0000000000..dee1a021fc --- /dev/null +++ b/src/resolvers/ActionItem/event.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { Event } from "../../models"; + +export const event: ActionItemResolvers["event"] = async (parent) => { + return Event.findOne({ + _id: parent.event, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/index.ts b/src/resolvers/ActionItem/index.ts new file mode 100644 index 0000000000..74cd36ada4 --- /dev/null +++ b/src/resolvers/ActionItem/index.ts @@ -0,0 +1,16 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { assignedTo } from "./assignedTo"; +import { assignedBy } from "./assignedBy"; +import { category } from "./category"; +import { event } from "./event"; +import { createdBy } from "./createdBy"; +import { updatedBy } from "./updatedBy"; + +export const ActionItem: ActionItemResolvers = { + assignedTo, + assignedBy, + category, + event, + createdBy, + updatedBy, +}; diff --git a/src/resolvers/ActionItem/updatedBy.ts b/src/resolvers/ActionItem/updatedBy.ts new file mode 100644 index 0000000000..f7433a40e3 --- /dev/null +++ b/src/resolvers/ActionItem/updatedBy.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const updatedBy: ActionItemResolvers["updatedBy"] = async (parent) => { + return User.findOne({ + _id: parent.updatedBy, + }).lean(); +}; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts new file mode 100644 index 0000000000..65d3440af8 --- /dev/null +++ b/src/resolvers/Mutation/createActionItem.ts @@ -0,0 +1,130 @@ +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; +import type { InterfaceActionItem, InterfaceEvent } from "../../models"; +import { User, Event, Category, ActionItem } from "../../models"; +import { errors, requestContext } from "../../libraries"; +import { + USER_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + EVENT_NOT_FOUND_ERROR, + CATEGORY_NOT_FOUND_ERROR, +} from "../../constants"; +import { findEventsInCache } from "../../services/EventCache/findEventInCache"; +import { cacheEvents } from "../../services/EventCache/cacheEvents"; +import { Types } from "mongoose"; + +/** + * This function enables to create an action item. + * @param _parent - parent of current request + * @param args - payload provided with the request + * @param context - context of entire application + * @remarks The following checks are done: + * 1. If the user exists + * 2. If the category exists + * 3. If the event exists (if action item related to an event) + * 4. If the user is authorized. + * @returns Created action item + */ + +export const createActionItem: MutationResolvers["createActionItem"] = async ( + _parent, + args, + context +): Promise => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks whether currentUser with _id === context.userId exists. + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + const category = await Category.findOne({ + _id: args.categoryId, + }).lean(); + + // Checks if the category exists + if (!category) { + throw new errors.NotFoundError( + requestContext.translate(CATEGORY_NOT_FOUND_ERROR.MESSAGE), + CATEGORY_NOT_FOUND_ERROR.CODE, + CATEGORY_NOT_FOUND_ERROR.PARAM + ); + } + + let currentUserIsEventAdmin = false; + + if (args.data.event) { + let currEvent: InterfaceEvent | null; + + const eventFoundInCache = await findEventsInCache([args.data.event]); + + currEvent = eventFoundInCache[0]; + + if (eventFoundInCache[0] === null) { + currEvent = await Event.findOne({ + _id: args.data.event, + }).lean(); + + if (currEvent !== null) { + await cacheEvents([currEvent]); + } + } + + // Checks whether currEvent exists. + if (!currEvent) { + throw new errors.NotFoundError( + requestContext.translate(EVENT_NOT_FOUND_ERROR.MESSAGE), + EVENT_NOT_FOUND_ERROR.CODE, + EVENT_NOT_FOUND_ERROR.PARAM + ); + } + + // Checks if the currUser is an admin of the event + currentUserIsEventAdmin = currEvent.admins.some( + (admin) => + admin === context.userID || Types.ObjectId(admin).equals(context.userId) + ); + } + + // Checks if the currUser is an admin of the organization + const currentUserIsOrgAdmin = currentUser.adminFor.some( + (ogranizationId) => + ogranizationId === category.org || + Types.ObjectId(ogranizationId).equals(category.org) + ); + + // Checks whether currentUser with _id === context.userId is authorized for the operation. + if ( + currentUserIsEventAdmin === false && + currentUserIsOrgAdmin === false && + currentUser.userType !== "SUPERADMIN" + ) { + throw new errors.UnauthorizedError( + requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), + USER_NOT_AUTHORIZED_ERROR.CODE, + USER_NOT_AUTHORIZED_ERROR.PARAM + ); + } + + // Creates new action item. + const createActionItem = await ActionItem.create({ + assignedTo: args.data.assignedTo, + assignedBy: context.userId, + category: args.categoryId, + preCompletionNotes: args.data.preCompletionNotes, + postCompletionNotes: args.data.postCompletionNotes, + dueDate: args.data.dueDate, + completionDate: args.data.completionDate, + event: args.data.event, + createdBy: context.userId, + updatedBy: context.userId, + }); + + // Returns created action item. + return createActionItem.toObject(); +}; diff --git a/src/resolvers/Mutation/index.ts b/src/resolvers/Mutation/index.ts index b768bca7e8..95a910d96b 100644 --- a/src/resolvers/Mutation/index.ts +++ b/src/resolvers/Mutation/index.ts @@ -18,6 +18,7 @@ import { cancelMembershipRequest } from "./cancelMembershipRequest"; import { updateUserRoleInOrganization } from "./updateUserRoleInOrganization"; import { checkIn } from "./checkIn"; import { createMember } from "./createMember"; +import { createActionItem } from "./createActionItem"; import { createAdmin } from "./createAdmin"; import { createComment } from "./createComment"; import { createDirectChat } from "./createDirectChat"; @@ -49,6 +50,7 @@ import { registerForEvent } from "./registerForEvent"; import { rejectAdmin } from "./rejectAdmin"; import { rejectMembershipRequest } from "./rejectMembershipRequest"; import { removeAdmin } from "./removeAdmin"; +import { removeActionItem } from "./removeActionItem"; import { removeComment } from "./removeComment"; import { removeDirectChat } from "./removeDirectChat"; import { removeEvent } from "./removeEvent"; @@ -80,6 +82,7 @@ import { unblockUser } from "./unblockUser"; import { unlikeComment } from "./unlikeComment"; import { unlikePost } from "./unlikePost"; import { unregisterForEventByUser } from "./unregisterForEventByUser"; +import { updateActionItem } from "./updateActionItem"; import { updateCategory } from "./updateCategory"; import { updateEvent } from "./updateEvent"; import { updateEventProject } from "./updateEventProject"; @@ -115,6 +118,7 @@ export const Mutation: MutationResolvers = { checkIn, createMember, createAdmin, + createActionItem, createComment, createAdvertisement, createDirectChat, @@ -146,6 +150,7 @@ export const Mutation: MutationResolvers = { rejectAdmin, rejectMembershipRequest, removeAdmin, + removeActionItem, removeComment, removeDirectChat, removeEvent, @@ -177,6 +182,7 @@ export const Mutation: MutationResolvers = { unlikeComment, unlikePost, unregisterForEventByUser, + updateActionItem, updateCategory, updateEvent, updateEventProject, diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts new file mode 100644 index 0000000000..2e5c136c2e --- /dev/null +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -0,0 +1,118 @@ +import { + ACTION_ITEM_NOT_FOUND_ERROR, + EVENT_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + USER_NOT_FOUND_ERROR, +} from "../../constants"; +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; +import { errors, requestContext } from "../../libraries"; +import type { InterfaceEvent } from "../../models"; +import { User, ActionItem, Event } from "../../models"; +import { Types } from "mongoose"; +import { findEventsInCache } from "../../services/EventCache/findEventInCache"; +import { cacheEvents } from "../../services/EventCache/cacheEvents"; +/** + * This function enables to update a task. + * @param _parent - parent of current request + * @param args - payload provided with the request + * @param context - context of entire application + * @remarks The following checks are done: + * 1. If the user exists. + * 2. If the action item exists. + * 3. If the user is authorized. + * @returns Updated action item. + */ + +export const removeActionItem: MutationResolvers["removeActionItem"] = async ( + _parent, + args, + context +) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks if the user exists + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + const actionItem = await ActionItem.findOne({ + _id: args.id, + }) + .populate("category") + .lean(); + + // Checks if the actionItem exists + if (!actionItem) { + throw new errors.NotFoundError( + requestContext.translate(ACTION_ITEM_NOT_FOUND_ERROR.MESSAGE), + ACTION_ITEM_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_NOT_FOUND_ERROR.PARAM + ); + } + + const currentUserIsOrgAdmin = currentUser.adminFor.some( + (ogranizationId) => + ogranizationId === actionItem.category.org || + Types.ObjectId(ogranizationId).equals(actionItem.category.org) + ); + + let currentUserIsEventAdmin = false; + + if (actionItem.event) { + let currEvent: InterfaceEvent | null; + + const eventFoundInCache = await findEventsInCache([actionItem.event]); + + currEvent = eventFoundInCache[0]; + + if (eventFoundInCache[0] === null) { + currEvent = await Event.findOne({ + _id: actionItem.event, + }).lean(); + + if (currEvent !== null) { + await cacheEvents([currEvent]); + } + } + + // Checks whether currEvent exists. + if (!currEvent) { + throw new errors.NotFoundError( + requestContext.translate(EVENT_NOT_FOUND_ERROR.MESSAGE), + EVENT_NOT_FOUND_ERROR.CODE, + EVENT_NOT_FOUND_ERROR.PARAM + ); + } + + // Checks if the currUser is an admin of the event + currentUserIsEventAdmin = currEvent.admins.some( + (admin) => + admin === context.userID || Types.ObjectId(admin).equals(context.userId) + ); + } + + // Checks if the user is authorized for the operation. + if ( + currentUserIsEventAdmin === false && + currentUserIsOrgAdmin === false && + currentUser.userType !== "SUPERADMIN" + ) { + throw new errors.UnauthorizedError( + requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), + USER_NOT_AUTHORIZED_ERROR.CODE, + USER_NOT_AUTHORIZED_ERROR.PARAM + ); + } + + await ActionItem.deleteOne({ + _id: args.id, + }); + + return actionItem; +}; diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts new file mode 100644 index 0000000000..249a4435f4 --- /dev/null +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -0,0 +1,148 @@ +import { + ACTION_ITEM_NOT_FOUND_ERROR, + EVENT_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + USER_NOT_FOUND_ERROR, +} from "../../constants"; +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; +import { errors, requestContext } from "../../libraries"; +import type { InterfaceEvent } from "../../models"; +import { User, ActionItem, Event } from "../../models"; +import { Types } from "mongoose"; +import { findEventsInCache } from "../../services/EventCache/findEventInCache"; +import { cacheEvents } from "../../services/EventCache/cacheEvents"; +/** + * This function enables to update a task. + * @param _parent - parent of current request + * @param args - payload provided with the request + * @param context - context of entire application + * @remarks The following checks are done: + * 1. If the user exists. + * 2. If the action item exists. + * 3. If the user is authorized. + * @returns Updated action item. + */ + +type UpdateActionItemInputType = { + assignedTo: string; + preCompletionNotes: string; + postCompletionNotes: string; + dueDate: Date; + completed: boolean; +}; + +export const updateActionItem: MutationResolvers["updateActionItem"] = async ( + _parent, + args, + context +) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks if the user exists + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + const actionItem = await ActionItem.findOne({ + _id: args.id, + }) + .populate("category") + .lean(); + + // Checks if the actionItem exists + if (!actionItem) { + throw new errors.NotFoundError( + requestContext.translate(ACTION_ITEM_NOT_FOUND_ERROR.MESSAGE), + ACTION_ITEM_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_NOT_FOUND_ERROR.PARAM + ); + } + + const currentUserIsOrgAdmin = currentUser.adminFor.some( + (ogranizationId) => + ogranizationId === actionItem.category.org || + Types.ObjectId(ogranizationId).equals(actionItem.category.org) + ); + + let currentUserIsEventAdmin = false; + + if (actionItem.event) { + let currEvent: InterfaceEvent | null; + + const eventFoundInCache = await findEventsInCache([actionItem.event]); + + currEvent = eventFoundInCache[0]; + + if (eventFoundInCache[0] === null) { + currEvent = await Event.findOne({ + _id: actionItem.event, + }).lean(); + + if (currEvent !== null) { + await cacheEvents([currEvent]); + } + } + + // Checks whether currEvent exists. + if (!currEvent) { + throw new errors.NotFoundError( + requestContext.translate(EVENT_NOT_FOUND_ERROR.MESSAGE), + EVENT_NOT_FOUND_ERROR.CODE, + EVENT_NOT_FOUND_ERROR.PARAM + ); + } + + // Checks if the currUser is an admin of the event + currentUserIsEventAdmin = currEvent.admins.some( + (admin) => + admin === context.userID || Types.ObjectId(admin).equals(context.userId) + ); + } + + // Checks if the user is authorized for the operation. + if ( + currentUserIsEventAdmin === false && + currentUserIsOrgAdmin === false && + currentUser.userType !== "SUPERADMIN" + ) { + throw new errors.UnauthorizedError( + requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), + USER_NOT_AUTHORIZED_ERROR.CODE, + USER_NOT_AUTHORIZED_ERROR.PARAM + ); + } + + let sameAssignedUser = false; + + if (args.data.assignedTo) { + sameAssignedUser = Types.ObjectId(actionItem.assignedTo).equals( + args.data.assignedTo + ); + } + + const updatedAssignmentDate = sameAssignedUser + ? actionItem.assignmentDate + : new Date(); + + const updatedActionItem = await ActionItem.findOneAndUpdate( + { + _id: args.id, + }, + { + ...(args.data as UpdateActionItemInputType), + assignmentDate: updatedAssignmentDate, + updatedBy: context.userId, + }, + { + new: true, + } + ).lean(); + + return updatedActionItem; +}; diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts index 19a18ac640..e04d471035 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateCategory.ts @@ -18,6 +18,12 @@ import { Types } from "mongoose"; * 3. If the user is authorized. * @returns Updated category. */ + +type UpdateCategoryInputType = { + category: string; + disabled: boolean; +}; + export const updateCategory: MutationResolvers["updateCategory"] = async ( _parent, args, @@ -72,7 +78,7 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( _id: args.id, }, { - ...(args.data as any), + ...(args.data as UpdateCategoryInputType), updatedBy: context.userId, }, { diff --git a/src/resolvers/Query/actionItem.ts b/src/resolvers/Query/actionItem.ts new file mode 100644 index 0000000000..e06554cb8a --- /dev/null +++ b/src/resolvers/Query/actionItem.ts @@ -0,0 +1,32 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { ActionItem } from "../../models"; +import { errors } from "../../libraries"; +import { ACTION_ITEM_NOT_FOUND_ERROR } from "../../constants"; +/** + * This query will fetch the action item with given id from the database. + * @param _parent- + * @param args - An object that contains `id` of the action item that need to be fetched. + * @returns An `action item` object. If the `action item` object is null then it throws `NotFoundError` error. + * @remarks You can learn about GraphQL `Resolvers` + * {@link https://www.apollographql.com/docs/apollo-server/data/resolvers/ | here}. + */ +export const actionItem: QueryResolvers["actionItem"] = async ( + _parent, + args +) => { + const actionItem = await ActionItem.findOne({ + _id: args.id, + }) + .populate("org") + .lean(); + + if (!actionItem) { + throw new errors.NotFoundError( + ACTION_ITEM_NOT_FOUND_ERROR.DESC, + ACTION_ITEM_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_NOT_FOUND_ERROR.PARAM + ); + } + + return actionItem; +}; diff --git a/src/resolvers/Query/actionItemsByEvents.ts b/src/resolvers/Query/actionItemsByEvents.ts new file mode 100644 index 0000000000..6df3b1d2d5 --- /dev/null +++ b/src/resolvers/Query/actionItemsByEvents.ts @@ -0,0 +1,18 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { ActionItem } from "../../models"; +/** + * This query will fetch all action items for the event from database. + * @param _parent- + * @param args - An object that contains `orderBy` to sort the object as specified and `id` of the Organization. + * @returns An `actionItems` object that holds all action items with `ACTIVE` status for the Organization. + */ +export const actionItemsByEvents: QueryResolvers["actionItemsByEvents"] = + async (_parent, args) => { + const actionItem = await ActionItem.find({ + event: args.eventId, + }) + .populate("org") + .lean(); + + return actionItem; + }; diff --git a/src/resolvers/Query/categoriesByOrganization.ts b/src/resolvers/Query/categoriesByOrganization.ts index 775ba7542a..617a28d9db 100644 --- a/src/resolvers/Query/categoriesByOrganization.ts +++ b/src/resolvers/Query/categoriesByOrganization.ts @@ -4,7 +4,7 @@ import { Category } from "../../models"; * This query will fetch all categories for the organization from database. * @param _parent- * @param args - An object that contains `orderBy` to sort the object as specified and `id` of the Organization. - * @returns An `categories` object that holds all categories with `ACTIVE` status for the Organization. + * @returns A `categories` object that holds all categories with `ACTIVE` status for the Organization. */ export const categoriesByOrganization: QueryResolvers["categoriesByOrganization"] = async (_parent, args) => { diff --git a/src/resolvers/Query/index.ts b/src/resolvers/Query/index.ts index a5ffff5dbb..5c99e5cf70 100644 --- a/src/resolvers/Query/index.ts +++ b/src/resolvers/Query/index.ts @@ -1,4 +1,6 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { actionItem } from "./actionItem"; +import { actionItemsByEvents } from "./actionItemsByEvents"; import { category } from "./category"; import { categoriesByOrganization } from "./categoriesByOrganization"; import { checkAuth } from "./checkAuth"; @@ -31,6 +33,8 @@ import { getAdvertisements } from "./getAdvertisements"; import { usersConnection } from "./usersConnection"; export const Query: QueryResolvers = { + actionItem, + actionItemsByEvents, category, categoriesByOrganization, checkAuth, diff --git a/src/resolvers/index.ts b/src/resolvers/index.ts index 625656c7f5..6f890e15df 100644 --- a/src/resolvers/index.ts +++ b/src/resolvers/index.ts @@ -1,4 +1,5 @@ import type { Resolvers } from "../types/generatedGraphQLTypes"; +import { ActionItem } from "./ActionItem"; import { Category } from "./Category"; import { CheckIn } from "./CheckIn"; import { Comment } from "./Comment"; @@ -34,6 +35,7 @@ import { } from "graphql-scalars"; const resolvers: Resolvers = { + ActionItem, CheckIn, Comment, DirectChat, diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index c6fb0f7c57..126775a18a 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -35,6 +35,17 @@ export const inputs = gql` organizationId: ID! } + input CreateActionItemInput { + assignedTo: ID! + preCompletionNotes: String + postCompletionNotes: String + assignmentDate: Date + dueDate: Date + completionDate: Date + completed: Boolean + event: ID + } + input CursorPaginationInput { cursor: String direction: PaginationDirection! @@ -251,6 +262,14 @@ export const inputs = gql` tagId: ID! } + input UpdateActionItemInput { + assignedTo: ID + preCompletionNotes: String + postCompletionNotes: String + dueDate: Date + completed: Boolean + } + input UpdateEventInput { title: String description: String diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index 7f1b6f3aff..f40b3f3b27 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -56,6 +56,11 @@ export const mutations = gql` @auth @role(requires: SUPERADMIN) + createActionItem( + data: CreateActionItemInput! + categoryId: ID! + ): ActionItem! @auth + createComment(postId: ID!, data: CommentInput!): Comment @auth createDirectChat(data: createChatInput!): DirectChat! @auth @@ -141,6 +146,8 @@ export const mutations = gql` @auth @role(requires: SUPERADMIN) + removeActionItem(id: ID!): ActionItem! @auth + removeOrganizationCustomField( organizationId: ID! customFieldId: ID! @@ -212,6 +219,8 @@ export const mutations = gql` unregisterForEventByUser(id: ID!): Event! @auth + updateActionItem(id: ID!, data: UpdateActionItemInput!): ActionItem @auth + updateEvent(id: ID!, data: UpdateEventInput): Event! @auth updateEventProject(id: ID!, data: UpdateEventProjectInput!): EventProject! diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index 59414c6065..c0f453d816 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -7,9 +7,13 @@ export const queries = gql` type Query { adminPlugin(orgId: ID!): [Plugin] - category(id: ID!): Category @auth + actionItem(id: ID!): ActionItem - categoriesByOrganization(orgId: ID!): [Category] @auth + actionItemsByEvents(eventId: ID!): [ActionItem] + + category(id: ID!): Category + + categoriesByOrganization(orgId: ID!): [Category] checkAuth: User! @auth diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index df053be44f..6fff88314b 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -24,11 +24,11 @@ export const types = gql` category: Category! preCompletionNotes: String postCompletionNotes: String - assignmentDate: Date! - dueDate: Date! - completionDate: Date! - completed: Boolean! - eventId: Event + assignmentDate: Date + dueDate: Date + completionDate: Date + completed: Boolean + event: Event createdBy: User! updatedBy: User! createdAt: Date! diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 6454d33898..5d711da474 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -58,14 +58,14 @@ export type ActionItem = { _id: Scalars['ID']; assignedBy: User; assignedTo: User; - assignmentDate: Scalars['Date']; + assignmentDate?: Maybe; category: Category; - completed: Scalars['Boolean']; - completionDate: Scalars['Date']; + completed?: Maybe; + completionDate?: Maybe; createdAt: Scalars['Date']; createdBy: User; - dueDate: Scalars['Date']; - eventId?: Maybe; + dueDate?: Maybe; + event?: Maybe; postCompletionNotes?: Maybe; preCompletionNotes?: Maybe; updatedAt: Scalars['Date']; @@ -185,6 +185,17 @@ export type ConnectionPageInfo = { startCursor?: Maybe; }; +export type CreateActionItemInput = { + assignedTo: Scalars['ID']; + assignmentDate?: InputMaybe; + completed?: InputMaybe; + completionDate?: InputMaybe; + dueDate?: InputMaybe; + event?: InputMaybe; + postCompletionNotes?: InputMaybe; + preCompletionNotes?: InputMaybe; +}; + export type CreateUserTagInput = { name: Scalars['String']; organizationId: Scalars['ID']; @@ -578,6 +589,7 @@ export type Mutation = { blockUser: User; cancelMembershipRequest: MembershipRequest; checkIn: CheckIn; + createActionItem: ActionItem; createAdmin: User; createAdvertisement: Advertisement; createCategory: Category; @@ -610,6 +622,7 @@ export type Mutation = { registerForEvent: Event; rejectAdmin: Scalars['Boolean']; rejectMembershipRequest: MembershipRequest; + removeActionItem: ActionItem; removeAdmin: User; removeAdvertisement?: Maybe; removeComment?: Maybe; @@ -642,6 +655,7 @@ export type Mutation = { unlikeComment?: Maybe; unlikePost?: Maybe; unregisterForEventByUser: Event; + updateActionItem?: Maybe; updateCategory?: Maybe; updateEvent: Event; updateEventProject: EventProject; @@ -751,6 +765,12 @@ export type MutationCheckInArgs = { }; +export type MutationCreateActionItemArgs = { + categoryId: Scalars['ID']; + data: CreateActionItemInput; +}; + + export type MutationCreateAdminArgs = { data: UserAndOrganizationInput; }; @@ -919,6 +939,11 @@ export type MutationRejectMembershipRequestArgs = { }; +export type MutationRemoveActionItemArgs = { + id: Scalars['ID']; +}; + + export type MutationRemoveAdminArgs = { data: UserAndOrganizationInput; }; @@ -1072,6 +1097,12 @@ export type MutationUnregisterForEventByUserArgs = { }; +export type MutationUpdateActionItemArgs = { + data: UpdateActionItemInput; + id: Scalars['ID']; +}; + + export type MutationUpdateCategoryArgs = { data: UpdateCategoryInput; id: Scalars['ID']; @@ -1394,6 +1425,8 @@ export type PostWhereInput = { export type Query = { __typename?: 'Query'; + actionItem?: Maybe; + actionItemsByEvents?: Maybe>>; adminPlugin?: Maybe>>; categoriesByOrganization?: Maybe>>; category?: Maybe; @@ -1432,6 +1465,16 @@ export type Query = { }; +export type QueryActionItemArgs = { + id: Scalars['ID']; +}; + + +export type QueryActionItemsByEventsArgs = { + eventId: Scalars['ID']; +}; + + export type QueryAdminPluginArgs = { orgId: Scalars['ID']; }; @@ -1693,6 +1736,14 @@ export type UnauthorizedError = Error & { message: Scalars['String']; }; +export type UpdateActionItemInput = { + assignedTo?: InputMaybe; + completed?: InputMaybe; + dueDate?: InputMaybe; + postCompletionNotes?: InputMaybe; + preCompletionNotes?: InputMaybe; +}; + export type UpdateCategoryInput = { category?: InputMaybe; disabled?: InputMaybe; @@ -2062,6 +2113,7 @@ export type ResolversTypes = { ConnectionError: ResolversTypes['InvalidCursor'] | ResolversTypes['MaximumValueError']; ConnectionPageInfo: ResolverTypeWrapper; CountryCode: ResolverTypeWrapper; + CreateActionItemInput: CreateActionItemInput; CreateUserTagInput: CreateUserTagInput; CursorPaginationInput: CursorPaginationInput; Date: ResolverTypeWrapper; @@ -2150,6 +2202,7 @@ export type ResolversTypes = { URL: ResolverTypeWrapper; UnauthenticatedError: ResolverTypeWrapper; UnauthorizedError: ResolverTypeWrapper; + UpdateActionItemInput: UpdateActionItemInput; UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateEventProjectInput: UpdateEventProjectInput; @@ -2203,6 +2256,7 @@ export type ResolversParentTypes = { ConnectionError: ResolversParentTypes['InvalidCursor'] | ResolversParentTypes['MaximumValueError']; ConnectionPageInfo: ConnectionPageInfo; CountryCode: Scalars['CountryCode']; + CreateActionItemInput: CreateActionItemInput; CreateUserTagInput: CreateUserTagInput; CursorPaginationInput: CursorPaginationInput; Date: Scalars['Date']; @@ -2279,6 +2333,7 @@ export type ResolversParentTypes = { URL: Scalars['URL']; UnauthenticatedError: UnauthenticatedError; UnauthorizedError: UnauthorizedError; + UpdateActionItemInput: UpdateActionItemInput; UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateEventProjectInput: UpdateEventProjectInput; @@ -2324,14 +2379,14 @@ export type ActionItemResolvers; assignedBy?: Resolver; assignedTo?: Resolver; - assignmentDate?: Resolver; + assignmentDate?: Resolver, ParentType, ContextType>; category?: Resolver; - completed?: Resolver; - completionDate?: Resolver; + completed?: Resolver, ParentType, ContextType>; + completionDate?: Resolver, ParentType, ContextType>; createdAt?: Resolver; createdBy?: Resolver; - dueDate?: Resolver; - eventId?: Resolver, ParentType, ContextType>; + dueDate?: Resolver, ParentType, ContextType>; + event?: Resolver, ParentType, ContextType>; postCompletionNotes?: Resolver, ParentType, ContextType>; preCompletionNotes?: Resolver, ParentType, ContextType>; updatedAt?: Resolver; @@ -2683,6 +2738,7 @@ export type MutationResolvers>; cancelMembershipRequest?: Resolver>; checkIn?: Resolver>; + createActionItem?: Resolver>; createAdmin?: Resolver>; createAdvertisement?: Resolver>; createCategory?: Resolver>; @@ -2715,6 +2771,7 @@ export type MutationResolvers>; rejectAdmin?: Resolver>; rejectMembershipRequest?: Resolver>; + removeActionItem?: Resolver>; removeAdmin?: Resolver>; removeAdvertisement?: Resolver, ParentType, ContextType, RequireFields>; removeComment?: Resolver, ParentType, ContextType, RequireFields>; @@ -2747,6 +2804,7 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; unlikePost?: Resolver, ParentType, ContextType, RequireFields>; unregisterForEventByUser?: Resolver>; + updateActionItem?: Resolver, ParentType, ContextType, RequireFields>; updateCategory?: Resolver, ParentType, ContextType, RequireFields>; updateEvent?: Resolver>; updateEventProject?: Resolver>; @@ -2868,6 +2926,8 @@ export type PostConnectionResolvers = { + actionItem?: Resolver, ParentType, ContextType, RequireFields>; + actionItemsByEvents?: Resolver>>, ParentType, ContextType, RequireFields>; adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; categoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; category?: Resolver, ParentType, ContextType, RequireFields>; From dad9f936fa56e1df0ac49c5ddab02bbb2989ce9f Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 5 Jan 2024 10:54:26 +0530 Subject: [PATCH 03/28] minor corrections --- src/resolvers/Query/actionItem.ts | 4 +--- src/resolvers/Query/actionItemsByEvents.ts | 14 ++++++-------- src/resolvers/Query/categoriesByOrganization.ts | 8 +++----- src/resolvers/Query/category.ts | 4 +--- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/src/resolvers/Query/actionItem.ts b/src/resolvers/Query/actionItem.ts index e06554cb8a..6d8e2cbfa2 100644 --- a/src/resolvers/Query/actionItem.ts +++ b/src/resolvers/Query/actionItem.ts @@ -16,9 +16,7 @@ export const actionItem: QueryResolvers["actionItem"] = async ( ) => { const actionItem = await ActionItem.findOne({ _id: args.id, - }) - .populate("org") - .lean(); + }).lean(); if (!actionItem) { throw new errors.NotFoundError( diff --git a/src/resolvers/Query/actionItemsByEvents.ts b/src/resolvers/Query/actionItemsByEvents.ts index 6df3b1d2d5..e8b068e1bc 100644 --- a/src/resolvers/Query/actionItemsByEvents.ts +++ b/src/resolvers/Query/actionItemsByEvents.ts @@ -1,18 +1,16 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; import { ActionItem } from "../../models"; /** - * This query will fetch all action items for the event from database. + * This query will fetch all action items for an event from database. * @param _parent- - * @param args - An object that contains `orderBy` to sort the object as specified and `id` of the Organization. - * @returns An `actionItems` object that holds all action items with `ACTIVE` status for the Organization. + * @param args - An object that contains `eventId` which is the _id of the Event. + * @returns An `actionItems` object that holds all action items for the Event. */ export const actionItemsByEvents: QueryResolvers["actionItemsByEvents"] = async (_parent, args) => { - const actionItem = await ActionItem.find({ + const actionItems = await ActionItem.find({ event: args.eventId, - }) - .populate("org") - .lean(); + }).lean(); - return actionItem; + return actionItems; }; diff --git a/src/resolvers/Query/categoriesByOrganization.ts b/src/resolvers/Query/categoriesByOrganization.ts index 617a28d9db..0c664ab357 100644 --- a/src/resolvers/Query/categoriesByOrganization.ts +++ b/src/resolvers/Query/categoriesByOrganization.ts @@ -3,16 +3,14 @@ import { Category } from "../../models"; /** * This query will fetch all categories for the organization from database. * @param _parent- - * @param args - An object that contains `orderBy` to sort the object as specified and `id` of the Organization. - * @returns A `categories` object that holds all categories with `ACTIVE` status for the Organization. + * @param args - An object that contains `orgId` which is the _id of the Organization. + * @returns A `categories` object that holds all categories for the Organization. */ export const categoriesByOrganization: QueryResolvers["categoriesByOrganization"] = async (_parent, args) => { const categories = await Category.find({ org: args.orgId, - }) - .populate("org") - .lean(); + }).lean(); return categories; }; diff --git a/src/resolvers/Query/category.ts b/src/resolvers/Query/category.ts index ed4a3809fd..ca79977c0c 100644 --- a/src/resolvers/Query/category.ts +++ b/src/resolvers/Query/category.ts @@ -13,9 +13,7 @@ import { CATEGORY_NOT_FOUND_ERROR } from "../../constants"; export const category: QueryResolvers["category"] = async (_parent, args) => { const category = await Category.findOne({ _id: args.id, - }) - .populate("org") - .lean(); + }).lean(); if (!category) { throw new errors.NotFoundError( From ddb61d019e43c604fb0fc67c21427aec61bdc09d Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 5 Jan 2024 14:41:49 +0530 Subject: [PATCH 04/28] Add Organization-Category two way relationship --- src/models/Organization.ts | 9 +++++++++ src/resolvers/Mutation/createCategory.ts | 9 +++++++++ src/resolvers/Mutation/createOrganization.ts | 14 +++++++++++++- src/resolvers/Organization/actionCategories.ts | 15 +++++++++++++++ src/resolvers/Organization/index.ts | 2 ++ src/typeDefs/types.ts | 1 + src/types/generatedGraphQLTypes.ts | 2 ++ 7 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/resolvers/Organization/actionCategories.ts diff --git a/src/models/Organization.ts b/src/models/Organization.ts index a1487a2b8c..817d22ed9b 100644 --- a/src/models/Organization.ts +++ b/src/models/Organization.ts @@ -5,6 +5,7 @@ import type { InterfaceMessage } from "./Message"; import type { InterfacePost } from "./Post"; import type { InterfaceUser } from "./User"; import type { InterfaceOrganizationCustomField } from "./OrganizationCustomField"; +import type { InterfaceCategory } from "./Category"; /** * This is an interface that represents a database(MongoDB) document for Organization. */ @@ -20,6 +21,7 @@ export interface InterfaceOrganization { status: string; members: PopulatedDoc[]; admins: PopulatedDoc[]; + actionCategories: PopulatedDoc[]; groupChats: PopulatedDoc[]; posts: PopulatedDoc[]; pinnedPosts: PopulatedDoc[]; @@ -41,6 +43,7 @@ export interface InterfaceOrganization { * @param status - Status. * @param members - Collection of members, each object refer to `User` model. * @param admins - Collection of organization admins, each object refer to `User` model. + * @param actionCategories - COllection of categories belonging to an organization, refer to `Category` model. * @param groupChats - Collection of group chats, each object refer to `Message` model. * @param posts - Collection of Posts in the Organization, each object refer to `Post` model. * @param membershipRequests - Collection of membership requests in the Organization, each object refer to `MembershipRequest` model. @@ -94,6 +97,12 @@ const organizationSchema = new Schema({ required: true, }, ], + actionCategories: [ + { + type: Schema.Types.ObjectId, + ref: "Category", + }, + ], groupChats: [ { type: Schema.Types.ObjectId, diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createCategory.ts index 1e2d4b1663..ea4876ca54 100644 --- a/src/resolvers/Mutation/createCategory.ts +++ b/src/resolvers/Mutation/createCategory.ts @@ -74,6 +74,15 @@ export const createCategory: MutationResolvers["createCategory"] = async ( updatedBy: context.userId, }); + await Organization.findOneAndUpdate( + { + _id: organization._id, + }, + { + $push: { actionCategories: createdCategory._id }, + } + ); + // Returns created category. return createdCategory.toObject(); }; diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index 20e57afca0..8e3088b9ea 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -1,6 +1,6 @@ import "dotenv/config"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; -import { User, Organization } from "../../models"; +import { User, Organization, Category } from "../../models"; import { errors, requestContext } from "../../libraries"; import { LENGTH_VALIDATION_ERROR } from "../../constants"; import { superAdminCheck } from "../../utilities"; @@ -83,6 +83,18 @@ export const createOrganization: MutationResolvers["createOrganization"] = members: [context.userId], }); + // Creating a default category + const createdCategory = await Category.create({ + category: "Default", + org: createdOrganization._id, + createdBy: context.userId, + updatedBy: context.userId, + }); + + // Adding the default category to the createdOrganization + createdOrganization.actionCategories.push(createdCategory._id); + await createdOrganization.save(); + await cacheOrganizations([createdOrganization.toObject()!]); /* diff --git a/src/resolvers/Organization/actionCategories.ts b/src/resolvers/Organization/actionCategories.ts new file mode 100644 index 0000000000..b599c33c4b --- /dev/null +++ b/src/resolvers/Organization/actionCategories.ts @@ -0,0 +1,15 @@ +import { Category } from "../../models"; +import type { OrganizationResolvers } from "../../types/generatedGraphQLTypes"; +/** + * This resolver function will fetch and return the categories of the Organization from database. + * @param parent - An object that is the return value of the resolver for this field's parent. + * @returns An object that contains the list of all categories of the organization. + */ +export const actionCategories: OrganizationResolvers["actionCategories"] = + async (parent) => { + return await Category.find({ + _id: { + $in: parent.actionCategories, + }, + }).lean(); + }; diff --git a/src/resolvers/Organization/index.ts b/src/resolvers/Organization/index.ts index 999c15886a..0b7f2d88b9 100644 --- a/src/resolvers/Organization/index.ts +++ b/src/resolvers/Organization/index.ts @@ -6,10 +6,12 @@ import { image } from "./image"; import { members } from "./members"; import { pinnedPosts } from "./pinnedPosts"; import { membershipRequests } from "./membershipRequests"; +import { actionCategories } from "./actionCategories"; // import { userTags } from "./userTags"; export const Organization: OrganizationResolvers = { admins, + actionCategories, blockedUsers, creator, image, diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 6fff88314b..1761e8aac1 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -233,6 +233,7 @@ export const types = gql` creator: User! members: [User] admins(adminId: ID): [User] + actionCategories: [Category] membershipRequests: [MembershipRequest] blockedUsers: [User] visibleInSearch: Boolean! diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 5d711da474..2964d25595 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1185,6 +1185,7 @@ export type OtpInput = { export type Organization = { __typename?: 'Organization'; _id: Scalars['ID']; + actionCategories?: Maybe>>; admins?: Maybe>>; apiUrl: Scalars['URL']; blockedUsers?: Maybe>>; @@ -2822,6 +2823,7 @@ export type MutationResolvers = { _id?: Resolver; + actionCategories?: Resolver>>, ParentType, ContextType>; admins?: Resolver>>, ParentType, ContextType, Partial>; apiUrl?: Resolver; blockedUsers?: Resolver>>, ParentType, ContextType>; From 77f498b56c539f2c874d4ffde389deb9e7726ed7 Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 5 Jan 2024 15:58:40 +0530 Subject: [PATCH 05/28] Add Event-ActionItem two way relationship --- src/models/Event.ts | 9 +++++++++ src/resolvers/Event/actionItems.ts | 14 ++++++++++++++ src/resolvers/Event/index.ts | 2 ++ src/resolvers/Mutation/createActionItem.ts | 11 +++++++++++ src/resolvers/Mutation/removeActionItem.ts | 11 +++++++++++ src/resolvers/Mutation/removeEvent.ts | 12 +++++++++++- src/typeDefs/types.ts | 1 + src/types/generatedGraphQLTypes.ts | 2 ++ 8 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/resolvers/Event/actionItems.ts diff --git a/src/models/Event.ts b/src/models/Event.ts index df2efbb17f..10c1b9ba00 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -2,6 +2,7 @@ import type { Types, PopulatedDoc, Document, Model } from "mongoose"; import { Schema, model, models } from "mongoose"; import type { InterfaceOrganization } from "./Organization"; import type { InterfaceUser } from "./User"; +import type { InterfaceActionItem } from "./ActionItem"; /** * This is an interface representing a document for an event in the database(MongoDB). @@ -25,6 +26,7 @@ export interface InterfaceEvent { isRegisterable: boolean; creator: PopulatedDoc; admins: PopulatedDoc[]; + actionItems: PopulatedDoc[]; organization: PopulatedDoc; status: string; } @@ -48,6 +50,7 @@ export interface InterfaceEvent { * @param isRegisterable - Is the event Registrable * @param creator - Creator of the event * @param admins - Admins + * @param actionItems - Action Items * @param organization - Organization * @param status - whether the event is active, blocked, or deleted. */ @@ -139,6 +142,12 @@ const eventSchema = new Schema({ required: true, }, ], + actionItems: [ + { + type: Schema.Types.ObjectId, + ref: "ActionItem", + }, + ], organization: { type: Schema.Types.ObjectId, ref: "Organization", diff --git a/src/resolvers/Event/actionItems.ts b/src/resolvers/Event/actionItems.ts new file mode 100644 index 0000000000..34ecd9b8c0 --- /dev/null +++ b/src/resolvers/Event/actionItems.ts @@ -0,0 +1,14 @@ +import { ActionItem } from "../../models"; +import type { EventResolvers } from "../../types/generatedGraphQLTypes"; +/** + * This resolver function will fetch and return the action items related to the event from database. + * @param parent - An object that is the return value of the resolver for this field's parent. + * @returns An object that contains the list of all action items related to the event. + */ +export const actionItems: EventResolvers["actionItems"] = async (parent) => { + return await ActionItem.find({ + _id: { + $in: parent.actionItems, + }, + }).lean(); +}; diff --git a/src/resolvers/Event/index.ts b/src/resolvers/Event/index.ts index 8faa3ec5c2..c5f8771a60 100644 --- a/src/resolvers/Event/index.ts +++ b/src/resolvers/Event/index.ts @@ -5,8 +5,10 @@ import { averageFeedbackScore } from "./averageFeedbackScore"; import { feedback } from "./feedback"; import { organization } from "./organization"; import { projects } from "./projects"; +import { actionItems } from "./actionItems"; export const Event: EventResolvers = { + actionItems, attendees, attendeesCheckInStatus, averageFeedbackScore, diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index 65d3440af8..84cacb9c13 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -125,6 +125,17 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( updatedBy: context.userId, }); + if (args.data.event) { + await Event.findOneAndUpdate( + { + _id: args.data.event, + }, + { + $push: { actionItems: createActionItem._id }, + } + ); + } + // Returns created action item. return createActionItem.toObject(); }; diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 2e5c136c2e..dfdd90081e 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -110,6 +110,17 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( ); } + if (actionItem.event) { + await Event.updateOne( + { + _id: actionItem.event, + }, + { + $pull: { actionItems: actionItem._id }, + } + ); + } + await ActionItem.deleteOne({ _id: args.id, }); diff --git a/src/resolvers/Mutation/removeEvent.ts b/src/resolvers/Mutation/removeEvent.ts index 0d97473d19..00f210add8 100644 --- a/src/resolvers/Mutation/removeEvent.ts +++ b/src/resolvers/Mutation/removeEvent.ts @@ -1,7 +1,14 @@ import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; import type { InterfaceEvent } from "../../models"; -import { User, Event, EventProject, Task, TaskVolunteer } from "../../models"; +import { + User, + Event, + EventProject, + Task, + TaskVolunteer, + ActionItem, +} from "../../models"; import { USER_NOT_FOUND_ERROR, EVENT_NOT_FOUND_ERROR, @@ -165,5 +172,8 @@ export const removeEvent: MutationResolvers["removeEvent"] = async ( $in: taskIds, }, }); + + await ActionItem.deleteMany({ _id: { $in: event.actionItems } }); + return event; }; diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 1761e8aac1..6ef7768d9b 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -138,6 +138,7 @@ export const types = gql` # For each attendee, gives information about whether he/she has checked in yet or not attendeesCheckInStatus: [CheckInStatus!]! admins(adminId: ID): [User] + actionItems: [ActionItem] status: Status! projects: [EventProject] feedback: [Feedback!]! diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 2964d25595..73e0b6bd8a 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -288,6 +288,7 @@ export type Error = { export type Event = { __typename?: 'Event'; _id: Scalars['ID']; + actionItems?: Maybe>>; admins?: Maybe>>; allDay: Scalars['Boolean']; attendees: Array; @@ -2550,6 +2551,7 @@ export type ErrorResolvers = { _id?: Resolver; + actionItems?: Resolver>>, ParentType, ContextType>; admins?: Resolver>>, ParentType, ContextType, Partial>; allDay?: Resolver; attendees?: Resolver, ParentType, ContextType>; From 7a29e6566fb98cc67b6c28018b97772a93b523b9 Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 5 Jan 2024 16:24:55 +0530 Subject: [PATCH 06/28] Add cascade delete functionality on Organization deletion --- src/resolvers/Mutation/removeOrganization.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/resolvers/Mutation/removeOrganization.ts b/src/resolvers/Mutation/removeOrganization.ts index 145638eba3..7ec5744966 100644 --- a/src/resolvers/Mutation/removeOrganization.ts +++ b/src/resolvers/Mutation/removeOrganization.ts @@ -6,6 +6,8 @@ import { Post, Comment, MembershipRequest, + Category, + ActionItem, } from "../../models"; import { superAdminCheck } from "../../utilities"; import { @@ -125,6 +127,14 @@ export const removeOrganization: MutationResolvers["removeOrganization"] = { $pull: { organizationsBlockedBy: organization._id } } ); + // Remove all Category documents whose id is in the actionCategories array + await Category.deleteMany({ _id: { $in: organization.actionCategories } }); + + // Remove all ActionItem documents whose category is in the actionCategories array + await ActionItem.deleteMany({ + category: { $in: organization.actionCategories }, + }); + // Deletes the organzation. await Organization.deleteOne({ _id: organization._id, From 1fe4c9fb9d7258505486625ce146565ec61eb4a7 Mon Sep 17 00:00:00 2001 From: meetul Date: Sat, 6 Jan 2024 17:40:06 +0530 Subject: [PATCH 07/28] Add tests for Categories --- src/resolvers/Mutation/updateCategory.ts | 25 +--- tests/helpers/category.ts | 62 ++++++++ tests/resolvers/Category/createdBy.spec.ts | 36 +++++ tests/resolvers/Category/org.spec.ts | 36 +++++ tests/resolvers/Category/updatedBy.spec.ts | 36 +++++ .../resolvers/Mutation/createCategory.spec.ts | 132 ++++++++++++++++++ .../Mutation/createOrganization.spec.ts | 14 +- .../Mutation/removeOrganization.spec.ts | 15 ++ .../resolvers/Mutation/updateCategory.spec.ts | 128 +++++++++++++++++ .../Organization/actionCategories.spec.ts | 39 ++++++ .../Query/categoriesByOrganization.spec.ts | 40 ++++++ tests/resolvers/Query/category.spec.ts | 51 +++++++ 12 files changed, 593 insertions(+), 21 deletions(-) create mode 100644 tests/helpers/category.ts create mode 100644 tests/resolvers/Category/createdBy.spec.ts create mode 100644 tests/resolvers/Category/org.spec.ts create mode 100644 tests/resolvers/Category/updatedBy.spec.ts create mode 100644 tests/resolvers/Mutation/createCategory.spec.ts create mode 100644 tests/resolvers/Mutation/updateCategory.spec.ts create mode 100644 tests/resolvers/Organization/actionCategories.spec.ts create mode 100644 tests/resolvers/Query/categoriesByOrganization.spec.ts create mode 100644 tests/resolvers/Query/category.spec.ts diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts index e04d471035..e6bc887a42 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateCategory.ts @@ -1,12 +1,11 @@ import { CATEGORY_NOT_FOUND_ERROR, - USER_NOT_AUTHORIZED_ERROR, USER_NOT_FOUND_ERROR, } from "../../constants"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; import { User, Category } from "../../models"; -import { Types } from "mongoose"; +import { adminCheck } from "../../utilities"; /** * This function enables to update a task. * @param _parent - parent of current request @@ -44,7 +43,9 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( const category = await Category.findOne({ _id: args.id, - }).lean(); + }) + .populate("org") + .lean(); // Checks if the category exists if (!category) { @@ -55,23 +56,7 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( ); } - const currentUserIsOrgAdmin = currentUser.adminFor.some( - (ogranizationId) => - ogranizationId === category.org || - Types.ObjectId(ogranizationId).equals(category.org) - ); - - // Checks if the user is authorized for the operation. - if ( - currentUserIsOrgAdmin === false && - currentUser.userType !== "SUPERADMIN" - ) { - throw new errors.UnauthorizedError( - requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), - USER_NOT_AUTHORIZED_ERROR.CODE, - USER_NOT_AUTHORIZED_ERROR.PARAM - ); - } + await adminCheck(context.userId, category.org); const updatedCategory = await Category.findOneAndUpdate( { diff --git a/tests/helpers/category.ts b/tests/helpers/category.ts new file mode 100644 index 0000000000..f8637aefdd --- /dev/null +++ b/tests/helpers/category.ts @@ -0,0 +1,62 @@ +import type { InterfaceCategory } from "../../src/models"; +import { Category, Organization } from "../../src/models"; +import type { Document } from "mongoose"; +import { + createTestUserAndOrganization, + type TestOrganizationType, + type TestUserType, +} from "./userAndOrg"; + +export type TestCategoryType = InterfaceCategory & Document; + +export const createTestCategory = async (): Promise< + [TestUserType, TestOrganizationType, TestCategoryType] +> => { + const [testUser, testOrganization] = await createTestUserAndOrganization(); + const testCategory = await Category.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + org: testOrganization?._id, + category: "Default", + }); + + return [testUser, testOrganization, testCategory]; +}; + +export const createTestCategories = async (): Promise< + [TestUserType, TestOrganizationType] +> => { + const [testUser, testOrganization] = await createTestUserAndOrganization(); + + const testCategory1 = await Category.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + org: testOrganization?._id, + category: "Default", + }); + + const testCategory2 = await Category.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + org: testOrganization?._id, + category: "Default2", + }); + + const updatedTestOrganization = await Organization.findOneAndUpdate( + { + _id: testOrganization?._id, + }, + { + $push: { + actionCategories: { + $each: [testCategory1._id, testCategory2._id], + }, + }, + }, + { + new: true, + } + ); + + return [testUser, updatedTestOrganization]; +}; diff --git a/tests/resolvers/Category/createdBy.spec.ts b/tests/resolvers/Category/createdBy.spec.ts new file mode 100644 index 0000000000..79d4f36a29 --- /dev/null +++ b/tests/resolvers/Category/createdBy.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { createdBy as createdByResolver } from "../../../src/resolvers/Category/createdBy"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testCategory: TestCategoryType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, , testCategory] = await createTestCategory(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Category -> createdBy", () => { + it(`returns the creator for parent category`, async () => { + const parent = testCategory?.toObject(); + + const createdByPayload = await createdByResolver?.(parent, {}, {}); + + const createdByObject = await User.findOne({ + _id: testUser?._id, + }).lean(); + + expect(createdByPayload).toEqual(createdByObject); + }); +}); diff --git a/tests/resolvers/Category/org.spec.ts b/tests/resolvers/Category/org.spec.ts new file mode 100644 index 0000000000..48cddde924 --- /dev/null +++ b/tests/resolvers/Category/org.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { org as orgResolver } from "../../../src/resolvers/Category/org"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { Organization } from "../../../src/models"; +import { type TestOrganizationType } from "../../helpers/userAndOrg"; +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testOrganization: TestOrganizationType; +let testCategory: TestCategoryType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testOrganization, testCategory] = await createTestCategory(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Category -> org", () => { + it(`returns the organization object for parent category`, async () => { + const parent = testCategory?.toObject(); + + const orgPayload = await orgResolver?.(parent, {}, {}); + + const orgObject = await Organization.findOne({ + _id: testOrganization?._id, + }).lean(); + + expect(orgPayload).toEqual(orgObject); + }); +}); diff --git a/tests/resolvers/Category/updatedBy.spec.ts b/tests/resolvers/Category/updatedBy.spec.ts new file mode 100644 index 0000000000..7bb0001e6c --- /dev/null +++ b/tests/resolvers/Category/updatedBy.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { updatedBy as updatedByResolver } from "../../../src/resolvers/Category/updatedBy"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testCategory: TestCategoryType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, , testCategory] = await createTestCategory(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Category -> updated", () => { + it(`returns the user that last updated the parent category`, async () => { + const parent = testCategory?.toObject(); + + const updatedByPayload = await updatedByResolver?.(parent, {}, {}); + + const updatedByObject = await User.findOne({ + _id: testUser?._id, + }).lean(); + + expect(updatedByPayload).toEqual(updatedByObject); + }); +}); diff --git a/tests/resolvers/Mutation/createCategory.spec.ts b/tests/resolvers/Mutation/createCategory.spec.ts new file mode 100644 index 0000000000..d06d68df39 --- /dev/null +++ b/tests/resolvers/Mutation/createCategory.spec.ts @@ -0,0 +1,132 @@ +import "dotenv/config"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import type { MutationCreateCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import { connect, disconnect } from "../../helpers/db"; +import { createCategory as createCategoryResolver } from "../../../src/resolvers/Mutation/createCategory"; +import { + ORGANIZATION_NOT_FOUND_ERROR, + USER_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ADMIN, +} from "../../../src/constants"; +import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; +import { + createTestUser, + createTestUserAndOrganization, +} from "../../helpers/userAndOrg"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; + +import { Organization } from "../../../src/models"; + +let randomUser: TestUserType; +let testUser: TestUserType; +let testOrganization: TestOrganizationType; +let MONGOOSE_INSTANCE: typeof mongoose; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementation( + (message) => message + ); + + randomUser = await createTestUser(); + + [testUser, testOrganization] = await createTestUserAndOrganization(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Mutation -> createCategory", () => { + it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { + try { + const args: MutationCreateCategoryArgs = { + orgId: testOrganization?._id, + category: "Default", + }; + + const context = { + userId: Types.ObjectId().toString(), + }; + + await createCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no organization exists with _id === args.orgId`, async () => { + try { + const args: MutationCreateCategoryArgs = { + orgId: Types.ObjectId().toString(), + category: "Default", + }; + + const context = { + userId: testUser?.id, + }; + + await createCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not a superadmin or the admin of the organization`, async () => { + try { + const args: MutationCreateCategoryArgs = { + orgId: testOrganization?._id, + category: "Default", + }; + + const context = { + userId: randomUser?.id, + }; + + await createCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_AUTHORIZED_ADMIN.MESSAGE); + } + }); + + it(`creates the category and returns it`, async () => { + const args: MutationCreateCategoryArgs = { + orgId: testOrganization?._id, + category: "Default", + }; + + const context = { + userId: testUser?._id, + }; + + const createCategoryPayload = await createCategoryResolver?.( + {}, + args, + context + ); + + expect(createCategoryPayload).toEqual( + expect.objectContaining({ + org: testOrganization?._id, + category: "Default", + }) + ); + + const updatedTestOrganization = await Organization.findOne({ + _id: testOrganization?._id, + }) + .select(["actionCategories"]) + .lean(); + + expect(updatedTestOrganization).toEqual( + expect.objectContaining({ + actionCategories: [createCategoryPayload?._id], + }) + ); + }); +}); diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index f200b8fa36..da70f1d929 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -1,6 +1,6 @@ import "dotenv/config"; import type mongoose from "mongoose"; -import { User } from "../../../src/models"; +import { Category, User } from "../../../src/models"; import type { MutationCreateOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; @@ -151,6 +151,18 @@ describe("resolvers -> Mutation -> createOrganization", () => { adminFor: [createOrganizationPayload?._id], }) ); + + const defaultCategory = await Category.findOne({ + org: createOrganizationPayload?._id, + }).lean(); + + expect(defaultCategory).toEqual( + expect.objectContaining({ + org: createOrganizationPayload?._id, + category: "Default", + disabled: false, + }) + ); }); it(`creates the organization without image and returns it`, async () => { vi.spyOn(uploadImage, "uploadImage").mockImplementation( diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 8bb55f36c5..53a6d28fea 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -13,6 +13,7 @@ import { Post, Comment, MembershipRequest, + Category, } from "../../../src/models"; import type { MutationRemoveOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; @@ -106,6 +107,13 @@ beforeAll(async () => { organization: testOrganization._id, }); + const testCategory = await Category.create({ + createdBy: testUsers[0]?._id, + updatedBy: testUsers[0]?._id, + org: testOrganization?._id, + category: "Default", + }); + await Organization.updateOne( { _id: testOrganization._id, @@ -114,6 +122,7 @@ beforeAll(async () => { $push: { membershipRequests: testMembershipRequest._id, posts: testPost._id, + actionCategories: testCategory?._id, }, } ); @@ -321,11 +330,17 @@ describe("resolvers -> Mutation -> removeOrganization", () => { _id: testComment._id, }).lean(); + const deletedTestCategories = await Category.find({ + org: testOrganization?._id, + }).lean(); + expect(deletedMembershipRequests).toEqual([]); expect(deletedTestPosts).toEqual([]); expect(deletedTestComments).toEqual([]); + + expect(deletedTestCategories).toEqual([]); }); it(`removes the organization with image and returns the updated user's object with _id === context.userId`, async () => { diff --git a/tests/resolvers/Mutation/updateCategory.spec.ts b/tests/resolvers/Mutation/updateCategory.spec.ts new file mode 100644 index 0000000000..4229844546 --- /dev/null +++ b/tests/resolvers/Mutation/updateCategory.spec.ts @@ -0,0 +1,128 @@ +import "dotenv/config"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import type { MutationUpdateCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import { connect, disconnect } from "../../helpers/db"; +import { + USER_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ADMIN, + CATEGORY_NOT_FOUND_ERROR, +} from "../../../src/constants"; +import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; +import { createTestUser } from "../../helpers/userAndOrg"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; + +import { updateCategory as updateCategoryResolver } from "../../../src/resolvers/Mutation/updateCategory"; +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; + +let randomUser: TestUserType; +let testUser: TestUserType; +let testOrganization: TestOrganizationType; +let testCategory: TestCategoryType; +let MONGOOSE_INSTANCE: typeof mongoose; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementation( + (message) => message + ); + + randomUser = await createTestUser(); + + [testUser, testOrganization, testCategory] = await createTestCategory(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Mutation -> updateCategoryResolver", () => { + it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { + try { + const args: MutationUpdateCategoryArgs = { + id: Types.ObjectId().toString(), + data: { + category: "updatedDefault", + disabled: true, + }, + }; + + const context = { + userId: Types.ObjectId().toString(), + }; + + await updateCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no category exists with _id === args.id`, async () => { + try { + const args: MutationUpdateCategoryArgs = { + id: Types.ObjectId().toString(), + data: { + category: "updatedDefault", + disabled: true, + }, + }; + + const context = { + userId: testUser?.id, + }; + + await updateCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not a superadmin or the admin of the organization`, async () => { + try { + const args: MutationUpdateCategoryArgs = { + id: testCategory?._id, + data: { + category: "updatedDefault", + disabled: true, + }, + }; + + const context = { + userId: randomUser?.id, + }; + + await updateCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_AUTHORIZED_ADMIN.MESSAGE); + } + }); + + it(`updated the category and returns it`, async () => { + const args: MutationUpdateCategoryArgs = { + id: testCategory?._id, + data: { + category: "updatedDefault", + disabled: true, + }, + }; + + const context = { + userId: testUser?._id, + }; + + const updatedCategory = await updateCategoryResolver?.({}, args, context); + + expect(updatedCategory).toEqual( + expect.objectContaining({ + org: testOrganization?._id, + category: "updatedDefault", + disabled: true, + }) + ); + }); +}); diff --git a/tests/resolvers/Organization/actionCategories.spec.ts b/tests/resolvers/Organization/actionCategories.spec.ts new file mode 100644 index 0000000000..1c89869600 --- /dev/null +++ b/tests/resolvers/Organization/actionCategories.spec.ts @@ -0,0 +1,39 @@ +import "dotenv/config"; +import { actionCategories as actionCategoriesResolver } from "../../../src/resolvers/Organization/actionCategories"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { Category } from "../../../src/models"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { TestOrganizationType } from "../../helpers/userAndOrg"; +import { createTestCategories } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testOrganization: TestOrganizationType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testOrganization] = await createTestCategories(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Organization -> actionCategories", () => { + it(`returns all actionCategories for parent organization`, async () => { + const parent = testOrganization?.toObject(); + if (parent) { + const actionCategoriesPayload = await actionCategoriesResolver?.( + parent, + {}, + {} + ); + + const categories = await Category.find({ + org: testOrganization?._id, + }).lean(); + + expect(actionCategoriesPayload).toEqual(categories); + } + }); +}); diff --git a/tests/resolvers/Query/categoriesByOrganization.spec.ts b/tests/resolvers/Query/categoriesByOrganization.spec.ts new file mode 100644 index 0000000000..12fd221ec2 --- /dev/null +++ b/tests/resolvers/Query/categoriesByOrganization.spec.ts @@ -0,0 +1,40 @@ +import "dotenv/config"; +import { Category } from "../../../src/models"; +import { connect, disconnect } from "../../helpers/db"; +import type { QueryCategoriesByOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; +import { categoriesByOrganization as categoriesByOrganizationResolver } from "../../../src/resolvers/Query/categoriesByOrganization"; +import { createTestCategories } from "../../helpers/category"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { TestOrganizationType } from "../../helpers/userAndOrg"; +import type mongoose from "mongoose"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testOrganization: TestOrganizationType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testOrganization] = await createTestCategories(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Query -> categoriesByOrganization", () => { + it(`returns list of all categories belonging to an organization`, async () => { + const args: QueryCategoriesByOrganizationArgs = { + orgId: testOrganization?._id, + }; + + const categoriesByOrganizationPayload = + await categoriesByOrganizationResolver?.({}, args, {}); + + const categoriesByOrganizationInfo = await Category.find({ + org: testOrganization?._id, + }).lean(); + + expect(categoriesByOrganizationPayload).toEqual( + categoriesByOrganizationInfo + ); + }); +}); diff --git a/tests/resolvers/Query/category.spec.ts b/tests/resolvers/Query/category.spec.ts new file mode 100644 index 0000000000..4af059e6ee --- /dev/null +++ b/tests/resolvers/Query/category.spec.ts @@ -0,0 +1,51 @@ +import "dotenv/config"; +import { category as categoryResolver } from "../../../src/resolvers/Query/category"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import { CATEGORY_NOT_FOUND_ERROR } from "../../../src/constants"; +import type { QueryCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testCategory: TestCategoryType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const resultArray = await createTestCategory(); + testCategory = resultArray[2]; +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Query -> category", () => { + it(`throws NotFoundError if no category exists with _id === args.id`, async () => { + try { + const args: QueryCategoryArgs = { + id: Types.ObjectId().toString(), + }; + + await categoryResolver?.({}, args, {}); + } catch (error: any) { + expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.DESC); + } + }); + + it(`returns category with _id === args.id`, async () => { + const args: QueryCategoryArgs = { + id: testCategory?._id, + }; + + const categoryPayload = await categoryResolver?.({}, args, {}); + + expect(categoryPayload).toEqual( + expect.objectContaining({ + _id: testCategory?._id, + }) + ); + }); +}); From 991ea3169c41ce1b03d1ab88fba541f738116f55 Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 7 Jan 2024 16:32:37 +0530 Subject: [PATCH 08/28] Add tests for Action Items --- locales/en.json | 2 + locales/fr.json | 2 + locales/hi.json | 2 + locales/sp.json | 2 + locales/zh.json | 2 + src/resolvers/Mutation/updateActionItem.ts | 5 + tests/helpers/actionItem.ts | 124 ++++++++ tests/resolvers/ActionItem/assignedBy.spec.ts | 36 +++ tests/resolvers/ActionItem/assignedTo.spec.ts | 36 +++ tests/resolvers/ActionItem/category.spec.ts | 36 +++ tests/resolvers/ActionItem/createdBy.spec.ts | 36 +++ tests/resolvers/ActionItem/event.spec.ts | 72 +++++ tests/resolvers/ActionItem/updatedBy.spec.ts | 36 +++ tests/resolvers/Event/actionItems.spec.ts | 39 +++ .../Mutation/createActionItem.spec.ts | 242 +++++++++++++++ .../resolvers/Mutation/createCategory.spec.ts | 52 +++- .../Mutation/removeActionItem.spec.ts | 291 ++++++++++++++++++ tests/resolvers/Mutation/removeEvent.spec.ts | 27 +- .../Mutation/removeOrganization.spec.ts | 21 +- .../Mutation/updateActionItem.spec.ts | 261 ++++++++++++++++ .../resolvers/Mutation/updateCategory.spec.ts | 39 ++- tests/resolvers/Query/actionItem.spec.ts | 51 +++ .../Query/actionItemsByEvents.spec.ts | 41 +++ 23 files changed, 1450 insertions(+), 5 deletions(-) create mode 100644 tests/helpers/actionItem.ts create mode 100644 tests/resolvers/ActionItem/assignedBy.spec.ts create mode 100644 tests/resolvers/ActionItem/assignedTo.spec.ts create mode 100644 tests/resolvers/ActionItem/category.spec.ts create mode 100644 tests/resolvers/ActionItem/createdBy.spec.ts create mode 100644 tests/resolvers/ActionItem/event.spec.ts create mode 100644 tests/resolvers/ActionItem/updatedBy.spec.ts create mode 100644 tests/resolvers/Event/actionItems.spec.ts create mode 100644 tests/resolvers/Mutation/createActionItem.spec.ts create mode 100644 tests/resolvers/Mutation/removeActionItem.spec.ts create mode 100644 tests/resolvers/Mutation/updateActionItem.spec.ts create mode 100644 tests/resolvers/Query/actionItem.spec.ts create mode 100644 tests/resolvers/Query/actionItemsByEvents.spec.ts diff --git a/locales/en.json b/locales/en.json index 93b372d625..73075b61a1 100644 --- a/locales/en.json +++ b/locales/en.json @@ -5,6 +5,8 @@ "user.alreadyMember": "User is already a member", "user.profileImage.notFound": "User profile image not found", "task.notFound": "Task not found", + "category.notFound": "Category not found", + "actionItem.notFound": "Action Item not found", "advertisement.notFound": "Advertisement not found", "event.notFound": "Event not found", "eventProject.notFound": "Event project not found", diff --git a/locales/fr.json b/locales/fr.json index 37b669c31a..247582a3b8 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -5,6 +5,8 @@ "user.alreadyMember": "L'utilisateur est déjà membre", "user.profileImage.notFound": "Image du profil utilisateur introuvable", "task.notFound": "Tâche introuvable", + "category.notFound": "Catégorie non trouvée", + "actionItem.notFound": "Élément d\\’action non trouvé", "event.notFound": "Événement non trouvé", "eventProject.notFound": "Projet d'événement introuvable", "organization.notFound": "Organisation introuvable", diff --git a/locales/hi.json b/locales/hi.json index 5cb76a4748..f2e2863f34 100644 --- a/locales/hi.json +++ b/locales/hi.json @@ -5,6 +5,8 @@ "user.alreadyMember": "उपयोगकर्ता पहले से ही एक सदस्य है", "user.profileImage.notFound": "उपयोगकर्ता प्रोफ़ाइल छवि नहीं मिली", "task.notFound": "कार्य नहीं मिला", + "category.notFound": "श्रेणी नहीं मिली", + "actionItem.notFound": "कार्रवाई का मद नहीं मिला", "advertisement.notFound": "विज्ञापन नहीं मिला", "event.notFound": "घटना नहीं मिली", "eventProject.notFound": "इवेंट प्रोजेक्ट नहीं मिला", diff --git a/locales/sp.json b/locales/sp.json index 1f2822eca5..17131e712a 100644 --- a/locales/sp.json +++ b/locales/sp.json @@ -5,6 +5,8 @@ "user.alreadyMember": "El usuario ya es miembro", "user.profileImage.notFound": "No se encontró la imagen de perfil de usuario", "task.notFound": "Tarea no encontrada", + "category.notFound": "Categoría no encontrada", + "actionItem.notFound": "Elemento de acción no encontrado", "event.notFound": "Evento no encontrado", "eventProject.notFound": "Proyecto de evento no encontrado", "organization.notFound": "Organización no encontrada", diff --git a/locales/zh.json b/locales/zh.json index 60ce501ce3..899de1a251 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -5,6 +5,8 @@ "user.alreadyMember": "用戶已經是會員", "user.profileImage.notFound": "未找到用戶個人資料圖像", "task.notFound": "找不到任務", + "category.notFound": "找不到类别", + "actionItem.notFound": "找不到操作项", "event.notFound": "未找到事件", "eventProject.notFound": "未找到事件項目", "organization.notFound": "未找到組織", diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index 249a4435f4..249eb13273 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -130,6 +130,10 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( ? actionItem.assignmentDate : new Date(); + const updatedAssignedBy = sameAssignedUser + ? actionItem.assignedBy + : context.userId; + const updatedActionItem = await ActionItem.findOneAndUpdate( { _id: args.id, @@ -138,6 +142,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( ...(args.data as UpdateActionItemInputType), assignmentDate: updatedAssignmentDate, updatedBy: context.userId, + assignedBy: updatedAssignedBy, }, { new: true, diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts new file mode 100644 index 0000000000..0a0c20a813 --- /dev/null +++ b/tests/helpers/actionItem.ts @@ -0,0 +1,124 @@ +import type { InterfaceActionItem } from "../../src/models"; +import { ActionItem, Category, Event } from "../../src/models"; +import type { Document } from "mongoose"; +import { + createTestUser, + createTestUserAndOrganization, + type TestOrganizationType, + type TestUserType, +} from "./userAndOrg"; +import type { TestCategoryType } from "./category"; +import { createTestCategory } from "./category"; +import { nanoid } from "nanoid"; +import type { TestEventType } from "./events"; + +export type TestActionItemType = InterfaceActionItem & Document; + +export const createTestActionItem = async (): Promise< + [ + TestUserType, + TestOrganizationType, + TestCategoryType, + TestActionItemType, + TestUserType + ] +> => { + const [testUser, testOrganization] = await createTestUserAndOrganization(); + const randomUser = await createTestUser(); + + const testCategory = await Category.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + org: testOrganization?._id, + category: "Default", + }); + + const testActionItem = await ActionItem.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + assignedTo: randomUser?._id, + assignedBy: testUser?._id, + category: testCategory?._id, + }); + + return [testUser, testOrganization, testCategory, testActionItem, randomUser]; +}; + +interface InterfaceCreateNewTestAction { + currUserId: string; + assignedUserId: string; + categoryId: string; +} + +export const createNewTestActionItem = async ({ + currUserId, + assignedUserId, + categoryId, +}: InterfaceCreateNewTestAction): Promise => { + const newTestActionItem = await ActionItem.create({ + createdBy: currUserId, + updatedBy: currUserId, + assignedTo: assignedUserId, + assignedBy: currUserId, + category: categoryId, + }); + + return newTestActionItem; +}; + +export const createTestActionItems = async (): Promise< + [TestUserType, TestEventType] +> => { + const randomUser = await createTestUser(); + const [testUser, testOrganization, testCategory] = await createTestCategory(); + + const testActionItem1 = await ActionItem.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + assignedTo: randomUser?._id, + assignedBy: testUser?._id, + category: testCategory?._id, + }); + + const testActionItem2 = await ActionItem.create({ + createdBy: testUser?._id, + updatedBy: testUser?._id, + assignedTo: randomUser?._id, + assignedBy: testUser?._id, + category: testCategory?._id, + }); + + const testEvent = await Event.create({ + title: `title${nanoid().toLowerCase()}`, + description: `description${nanoid().toLowerCase()}`, + allDay: true, + startDate: new Date(), + recurring: true, + isPublic: true, + isRegisterable: true, + creator: testUser?._id, + admins: [testUser?._id], + organization: testOrganization?._id, + actionItems: [testActionItem1?._id, testActionItem2?._id], + }); + + await ActionItem.updateOne( + { + _id: testActionItem1?._id, + }, + { + event: testEvent?._id, + } + ); + + await ActionItem.updateOne( + { + _id: testActionItem2?._id, + }, + { + event: testEvent?._id, + } + ); + + return [testUser, testEvent]; +}; diff --git a/tests/resolvers/ActionItem/assignedBy.spec.ts b/tests/resolvers/ActionItem/assignedBy.spec.ts new file mode 100644 index 0000000000..2d6e79bbed --- /dev/null +++ b/tests/resolvers/ActionItem/assignedBy.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { assignedBy as assignedByResolver } from "../../../src/resolvers/ActionItem/assignedBy"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, , , testActionItem] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> assignedBy", () => { + it(`returns the assigner for parent action item`, async () => { + const parent = testActionItem?.toObject(); + + const assignedByPayload = await assignedByResolver?.(parent, {}, {}); + + const assignedByObject = await User.findOne({ + _id: testUser?._id, + }).lean(); + + expect(assignedByPayload).toEqual(assignedByObject); + }); +}); diff --git a/tests/resolvers/ActionItem/assignedTo.spec.ts b/tests/resolvers/ActionItem/assignedTo.spec.ts new file mode 100644 index 0000000000..f5051e0a47 --- /dev/null +++ b/tests/resolvers/ActionItem/assignedTo.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { assignedTo as assignedToResolver } from "../../../src/resolvers/ActionItem/assignedTo"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let randomTestUser: TestUserType; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, , , testActionItem, randomTestUser] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> assignedBy", () => { + it(`returns the assignee for parent action item`, async () => { + const parent = testActionItem?.toObject(); + + const assignedToPayload = await assignedToResolver?.(parent, {}, {}); + + const assignedToObject = await User.findOne({ + _id: randomTestUser?._id, + }).lean(); + + expect(assignedToPayload).toEqual(assignedToObject); + }); +}); diff --git a/tests/resolvers/ActionItem/category.spec.ts b/tests/resolvers/ActionItem/category.spec.ts new file mode 100644 index 0000000000..3e87ab0c43 --- /dev/null +++ b/tests/resolvers/ActionItem/category.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { category as categoryResolver } from "../../../src/resolvers/ActionItem/category"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { Category } from "../../../src/models"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; +import type { TestCategoryType } from "../../helpers/category"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testActionItem: TestActionItemType; +let testCategory: TestCategoryType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, , testCategory, testActionItem] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> category", () => { + it(`returns the category for parent action item`, async () => { + const parent = testActionItem?.toObject(); + + const categoryPayload = await categoryResolver?.(parent, {}, {}); + + const categoryObject = await Category.findOne({ + _id: testCategory?._id, + }).lean(); + + expect(categoryPayload).toEqual(categoryObject); + }); +}); diff --git a/tests/resolvers/ActionItem/createdBy.spec.ts b/tests/resolvers/ActionItem/createdBy.spec.ts new file mode 100644 index 0000000000..574fd5e6e7 --- /dev/null +++ b/tests/resolvers/ActionItem/createdBy.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { createdBy as createdByResolver } from "../../../src/resolvers/ActionItem/createdBy"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, , , testActionItem] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> createdBy", () => { + it(`returns the creator for parent action item`, async () => { + const parent = testActionItem?.toObject(); + + const createdByPayload = await createdByResolver?.(parent, {}, {}); + + const createdByObject = await User.findOne({ + _id: testUser?._id, + }).lean(); + + expect(createdByPayload).toEqual(createdByObject); + }); +}); diff --git a/tests/resolvers/ActionItem/event.spec.ts b/tests/resolvers/ActionItem/event.spec.ts new file mode 100644 index 0000000000..c5911097ad --- /dev/null +++ b/tests/resolvers/ActionItem/event.spec.ts @@ -0,0 +1,72 @@ +import "dotenv/config"; +import { event as eventResolver } from "../../../src/resolvers/ActionItem/event"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { InterfaceActionItem } from "../../../src/models"; +import { ActionItem, Event } from "../../../src/models"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; +import { nanoid } from "nanoid"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testOrganization: TestOrganizationType; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, testOrganization, , testActionItem] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> event", () => { + it(`returns the event for parent action item`, async () => { + const testEvent = await Event.create({ + title: `title${nanoid().toLowerCase()}`, + description: `description${nanoid().toLowerCase()}`, + allDay: true, + startDate: new Date(), + recurring: true, + isPublic: true, + isRegisterable: true, + creator: testUser?._id, + admins: [testUser?._id], + organization: testOrganization?._id, + actionItems: [testActionItem?._id], + }); + + const updatedTestActionItem = await ActionItem.findOneAndUpdate( + { + _id: testActionItem?._id, + }, + { + event: testEvent?._id, + }, + { + new: true, + } + ); + + const parent = updatedTestActionItem?.toObject(); + + const eventByPayload = await eventResolver?.( + parent as InterfaceActionItem, + {}, + {} + ); + + expect(eventByPayload).toEqual( + expect.objectContaining({ + actionItems: [updatedTestActionItem?._id], + }) + ); + }); +}); diff --git a/tests/resolvers/ActionItem/updatedBy.spec.ts b/tests/resolvers/ActionItem/updatedBy.spec.ts new file mode 100644 index 0000000000..432ab54d3a --- /dev/null +++ b/tests/resolvers/ActionItem/updatedBy.spec.ts @@ -0,0 +1,36 @@ +import "dotenv/config"; +import { updatedBy as updatedByResolver } from "../../../src/resolvers/ActionItem/updatedBy"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import { User } from "../../../src/models"; +import type { TestUserType } from "../../helpers/userAndOrg"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testUser: TestUserType; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [testUser, , , testActionItem] = await createTestActionItem(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> ActionItem -> updatedBy", () => { + it(`returns the updater for parent action item`, async () => { + const parent = testActionItem?.toObject(); + + const updatedByPayload = await updatedByResolver?.(parent, {}, {}); + + const updatedByObject = await User.findOne({ + _id: testUser?._id, + }).lean(); + + expect(updatedByPayload).toEqual(updatedByObject); + }); +}); diff --git a/tests/resolvers/Event/actionItems.spec.ts b/tests/resolvers/Event/actionItems.spec.ts new file mode 100644 index 0000000000..916a437fdd --- /dev/null +++ b/tests/resolvers/Event/actionItems.spec.ts @@ -0,0 +1,39 @@ +import "dotenv/config"; +import { actionItems as actionItemsResolver } from "../../../src/resolvers/Event/actionItems"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { ActionItem } from "../../../src/models"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { TestEventType } from "../../helpers/events"; +import { createTestActionItems } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testEvent: TestEventType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testEvent] = await createTestActionItems(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Organization -> actionItems", () => { + it(`returns all actionItems for parent Event`, async () => { + const parent = testEvent?.toObject(); + if (parent) { + const actionCategoriesPayload = await actionItemsResolver?.( + parent, + {}, + {} + ); + + const actionItems = await ActionItem.find({ + event: testEvent?._id, + }).lean(); + + expect(actionCategoriesPayload).toEqual(actionItems); + } + }); +}); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts new file mode 100644 index 0000000000..a163b85367 --- /dev/null +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -0,0 +1,242 @@ +import "dotenv/config"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import type { MutationCreateActionItemArgs } from "../../../src/types/generatedGraphQLTypes"; +import { createActionItem as createActionItemResolver } from "../../../src/resolvers/Mutation/createActionItem"; +import { connect, disconnect } from "../../helpers/db"; +import { + USER_NOT_FOUND_ERROR, + CATEGORY_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + EVENT_NOT_FOUND_ERROR, +} from "../../../src/constants"; +import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; +import { createTestUser } from "../../helpers/userAndOrg"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; + +import type { TestCategoryType } from "../../helpers/category"; +import { createTestCategory } from "../../helpers/category"; +import type { TestEventType } from "../../helpers/events"; +import { Event, User } from "../../../src/models"; +import { nanoid } from "nanoid"; + +let randomUser: TestUserType; +let randomUser2: TestUserType; +let superAdminTestUser: TestUserType; +let testUser: TestUserType; +let testOrganization: TestOrganizationType; +let testCategory: TestCategoryType; +let testEvent: TestEventType; +let MONGOOSE_INSTANCE: typeof mongoose; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementation( + (message) => message + ); + + randomUser = await createTestUser(); + randomUser2 = await createTestUser(); + + superAdminTestUser = await User.findOneAndUpdate( + { + _id: randomUser2?._id, + }, + { + userType: "SUPERADMIN", + }, + { + new: true, + } + ); + + [testUser, testOrganization, testCategory] = await createTestCategory(); + + testEvent = await Event.create({ + title: `title${nanoid().toLowerCase()}`, + description: `description${nanoid().toLowerCase()}`, + allDay: true, + startDate: new Date(), + recurring: true, + isPublic: true, + isRegisterable: true, + creator: randomUser?._id, + admins: [randomUser?._id], + organization: testOrganization?._id, + }); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Mutation -> createActionItem", () => { + it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: Types.ObjectId().toString(), + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no category exists with _id === args.orgId`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: Types.ObjectId().toString(), + }; + + const context = { + userId: testUser?._id, + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no event exists with _id === args.data.event`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + event: Types.ObjectId().toString(), + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: randomUser?._id, + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(EVENT_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not authorized for performing the operation`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: randomUser?._id, + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_AUTHORIZED_ERROR.MESSAGE); + } + }); + + it(`creates the actionItem when user is authorized as an eventAdmin`, async () => { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + event: testEvent?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: randomUser?._id, + }; + + const createActionItemPayload = await createActionItemResolver?.( + {}, + args, + context + ); + + expect(createActionItemPayload).toEqual( + expect.objectContaining({ + category: testCategory?._id, + }) + ); + + const updatedTestEvent = await Event.findOne({ + _id: testEvent?._id, + }) + .select(["actionItems"]) + .lean(); + + expect(updatedTestEvent).toEqual( + expect.objectContaining({ + actionItems: expect.arrayContaining([createActionItemPayload?._id]), + }) + ); + }); + + it(`creates the actionItem when user is authorized as an orgAdmin`, async () => { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: testUser?._id, + }; + + const createActionItemPayload = await createActionItemResolver?.( + {}, + args, + context + ); + + expect(createActionItemPayload).toEqual( + expect.objectContaining({ + category: testCategory?._id, + }) + ); + }); + + it(`creates the actionItem when user is authorized as superadmin`, async () => { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: superAdminTestUser?._id, + }; + + const createActionItemPayload = await createActionItemResolver?.( + {}, + args, + context + ); + + expect(createActionItemPayload).toEqual( + expect.objectContaining({ + category: testCategory?._id, + }) + ); + }); +}); diff --git a/tests/resolvers/Mutation/createCategory.spec.ts b/tests/resolvers/Mutation/createCategory.spec.ts index d06d68df39..af681f5ed1 100644 --- a/tests/resolvers/Mutation/createCategory.spec.ts +++ b/tests/resolvers/Mutation/createCategory.spec.ts @@ -19,7 +19,7 @@ import type { TestUserType, } from "../../helpers/userAndOrg"; -import { Organization } from "../../../src/models"; +import { Organization, User } from "../../../src/models"; let randomUser: TestUserType; let testUser: TestUserType; @@ -94,7 +94,7 @@ describe("resolvers -> Mutation -> createCategory", () => { } }); - it(`creates the category and returns it`, async () => { + it(`creates the category and returns it as an admin`, async () => { const args: MutationCreateCategoryArgs = { orgId: testOrganization?._id, category: "Default", @@ -129,4 +129,52 @@ describe("resolvers -> Mutation -> createCategory", () => { }) ); }); + + it(`creates the category and returns it as superAdmin`, async () => { + const superAdminTestUser = await User.findOneAndUpdate( + { + _id: randomUser?._id, + }, + { + userType: "SUPERADMIN", + }, + { + new: true, + } + ); + + const args: MutationCreateCategoryArgs = { + orgId: testOrganization?._id, + category: "Default", + }; + + const context = { + userId: superAdminTestUser?._id, + }; + + const createCategoryPayload = await createCategoryResolver?.( + {}, + args, + context + ); + + expect(createCategoryPayload).toEqual( + expect.objectContaining({ + org: testOrganization?._id, + category: "Default", + }) + ); + + const updatedTestOrganization = await Organization.findOne({ + _id: testOrganization?._id, + }) + .select(["actionCategories"]) + .lean(); + + expect(updatedTestOrganization).toEqual( + expect.objectContaining({ + actionCategories: expect.arrayContaining([createCategoryPayload?._id]), + }) + ); + }); }); diff --git a/tests/resolvers/Mutation/removeActionItem.spec.ts b/tests/resolvers/Mutation/removeActionItem.spec.ts new file mode 100644 index 0000000000..8bd74946df --- /dev/null +++ b/tests/resolvers/Mutation/removeActionItem.spec.ts @@ -0,0 +1,291 @@ +import "dotenv/config"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import type { MutationRemoveActionItemArgs } from "../../../src/types/generatedGraphQLTypes"; +import { connect, disconnect } from "../../helpers/db"; +import { + USER_NOT_FOUND_ERROR, + ACTION_ITEM_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + EVENT_NOT_FOUND_ERROR, +} from "../../../src/constants"; +import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; +import { + createTestUser, + createTestUserAndOrganization, +} from "../../helpers/userAndOrg"; +import { removeActionItem as removeActionItemResolver } from "../../../src/resolvers/Mutation/removeActionItem"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; + +import type { TestCategoryType } from "../../helpers/category"; +import { ActionItem, Event, User } from "../../../src/models"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { + createNewTestActionItem, + createTestActionItem, +} from "../../helpers/actionItem"; +import type { TestEventType } from "../../helpers/events"; +import { nanoid } from "nanoid"; + +let randomUser: TestUserType; +let assignedTestUser: TestUserType; +let testUser: TestUserType; +let testUser2: TestUserType; +let testOrganization: TestOrganizationType; +let testCategory: TestCategoryType; +let testActionItem: TestActionItemType; +let testEvent: TestEventType; +let MONGOOSE_INSTANCE: typeof mongoose; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementation( + (message) => message + ); + + randomUser = await createTestUser(); + + [testUser2] = await createTestUserAndOrganization(); + [testUser, testOrganization, testCategory, testActionItem, assignedTestUser] = + await createTestActionItem(); + + testEvent = await Event.create({ + title: `title${nanoid().toLowerCase()}`, + description: `description${nanoid().toLowerCase()}`, + allDay: true, + startDate: new Date(), + recurring: true, + isPublic: true, + isRegisterable: true, + creator: testUser2?._id, + admins: [testUser2?._id], + organization: testOrganization?._id, + }); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Mutation -> removeActionItem", () => { + it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { + try { + const args: MutationRemoveActionItemArgs = { + id: Types.ObjectId().toString(), + }; + + const context = { + userId: Types.ObjectId().toString(), + }; + + await removeActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no action item exists with _id === args.id`, async () => { + try { + const args: MutationRemoveActionItemArgs = { + id: Types.ObjectId().toString(), + }; + + const context = { + userId: testUser?._id, + }; + + await removeActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(ACTION_ITEM_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not a superadmin/orgAdmin/eventAdmin`, async () => { + try { + const args: MutationRemoveActionItemArgs = { + id: testActionItem?._id, + }; + + const context = { + userId: testUser2?._id, + }; + + await removeActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_AUTHORIZED_ERROR.MESSAGE); + } + }); + + it(`removes the action item and returns it as an admin`, async () => { + const args: MutationRemoveActionItemArgs = { + id: testActionItem?._id, + }; + + const context = { + userId: testUser?._id, + }; + + const removedActionItemPayload = await removeActionItemResolver?.( + {}, + args, + context + ); + + // console.log(removedActionItemPayload); + expect(removedActionItemPayload).toEqual( + expect.objectContaining({ + assignedTo: assignedTestUser?._id, + }) + ); + }); + + it(`removes the action item and returns it as superadmin`, async () => { + const newTestActionItem = await createNewTestActionItem({ + currUserId: testUser?._id, + assignedUserId: randomUser?._id, + categoryId: testCategory?._id, + }); + + const superAdminTestUser = await User.findOneAndUpdate( + { + _id: randomUser?._id, + }, + { + userType: "SUPERADMIN", + }, + { + new: true, + } + ); + + const args: MutationRemoveActionItemArgs = { + id: newTestActionItem?._id, + }; + + const context = { + userId: superAdminTestUser?._id, + }; + + const removedActionItemPayload = await removeActionItemResolver?.( + {}, + args, + context + ); + + expect(removedActionItemPayload).toEqual( + expect.objectContaining({ + assignedTo: randomUser?._id, + }) + ); + }); + + it(`throws NotFoundError if no event exists to which the action item is associated`, async () => { + const newTestActionItem = await createNewTestActionItem({ + currUserId: testUser?._id, + assignedUserId: randomUser?._id, + categoryId: testCategory?._id, + }); + + const updatedTestActionItem = await ActionItem.findOneAndUpdate( + { + _id: newTestActionItem?._id, + }, + { + event: Types.ObjectId().toString(), + }, + { + new: true, + } + ); + + try { + const args: MutationRemoveActionItemArgs = { + id: updatedTestActionItem?._id, + }; + + const context = { + userId: testUser?._id, + }; + + await removeActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(EVENT_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`removes the actionItem when the user is authorized as an eventAdmin`, async () => { + const newTestActionItem = await createNewTestActionItem({ + currUserId: testUser?._id, + assignedUserId: randomUser?._id, + categoryId: testCategory?._id, + }); + + const updatedTestActionItem = await ActionItem.findOneAndUpdate( + { + _id: newTestActionItem?._id, + }, + { + event: testEvent?._id, + }, + { + new: true, + } + ); + + const updatedTestEvent = await Event.findOneAndUpdate( + { + _id: testEvent?._id, + }, + { + $push: { actionItems: newTestActionItem?._id }, + }, + { + new: true, + } + ) + .select(["actionItems"]) + .lean(); + + expect(updatedTestEvent).toEqual( + expect.objectContaining({ + actionItems: expect.arrayContaining([updatedTestActionItem?._id]), + }) + ); + + const args: MutationRemoveActionItemArgs = { + id: updatedTestActionItem?._id, + }; + + const context = { + userId: testUser2?._id, + }; + + const removedActionItemPayload = await removeActionItemResolver?.( + {}, + args, + context + ); + + expect(removedActionItemPayload).toEqual( + expect.objectContaining({ + assignedTo: randomUser?._id, + }) + ); + + const updatedTestEventInfo = await Event.findOne({ + _id: testEvent?._id, + }) + .select(["actionItems"]) + .lean(); + + expect(updatedTestEventInfo).toEqual( + expect.objectContaining({ + actionItems: expect.not.arrayContaining([updatedTestActionItem?._id]), + }) + ); + }); +}); diff --git a/tests/resolvers/Mutation/removeEvent.spec.ts b/tests/resolvers/Mutation/removeEvent.spec.ts index 120492713f..d54f94801d 100644 --- a/tests/resolvers/Mutation/removeEvent.spec.ts +++ b/tests/resolvers/Mutation/removeEvent.spec.ts @@ -1,7 +1,7 @@ import "dotenv/config"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import { User, Event } from "../../../src/models"; +import { User, Event, ActionItem } from "../../../src/models"; import type { MutationRemoveEventArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; @@ -19,11 +19,14 @@ import type { import type { TestEventType } from "../../helpers/events"; import { createTestEvent } from "../../helpers/events"; import { cacheEvents } from "../../../src/services/EventCache/cacheEvents"; +import { createTestActionItems } from "../../helpers/actionItem"; let MONGOOSE_INSTANCE: typeof mongoose; let testUser: TestUserType; +let newTestUser: TestUserType; let testOrganization: TestOrganizationType; let testEvent: TestEventType; +let newTestEvent: TestEventType; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -196,4 +199,26 @@ describe("resolvers -> Mutation -> removeEvent", () => { expect(updatedTestEvent?.status).toEqual("DELETED"); }); + + it(`removes the events and all action items assiciated with it`, async () => { + [newTestUser, newTestEvent] = await createTestActionItems(); + + const args: MutationRemoveEventArgs = { + id: newTestEvent?.id, + }; + + const context = { + userId: newTestUser?.id, + }; + + const removeEventPayload = await removeEventResolver?.({}, args, context); + + expect(removeEventPayload).toEqual(newTestEvent?.toObject()); + + const deletedActionItems = await ActionItem.find({ + event: newTestEvent?._id, + }); + + expect(deletedActionItems).toEqual([]); + }); }); diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 53a6d28fea..00359a5455 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -6,6 +6,8 @@ import type { InterfaceOrganization, InterfaceComment, InterfacePost, + InterfaceCategory, + InterfaceActionItem, } from "../../../src/models"; import { User, @@ -14,6 +16,7 @@ import { Comment, MembershipRequest, Category, + ActionItem, } from "../../../src/models"; import type { MutationRemoveOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; @@ -43,6 +46,8 @@ let testOrganization: InterfaceOrganization & Document; let testPost: InterfacePost & Document; let testComment: InterfaceComment & Document; +let testCategory: InterfaceCategory & Document; +let testActionItem: InterfaceActionItem & Document; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -107,13 +112,21 @@ beforeAll(async () => { organization: testOrganization._id, }); - const testCategory = await Category.create({ + testCategory = await Category.create({ createdBy: testUsers[0]?._id, updatedBy: testUsers[0]?._id, org: testOrganization?._id, category: "Default", }); + testActionItem = await ActionItem.create({ + createdBy: testUsers[0]?._id, + updatedBy: testUsers[0]?._id, + assignedTo: testUsers[1]?._id, + assignedBy: testUsers[0]?._id, + category: testCategory?._id, + }); + await Organization.updateOne( { _id: testOrganization._id, @@ -334,6 +347,10 @@ describe("resolvers -> Mutation -> removeOrganization", () => { org: testOrganization?._id, }).lean(); + const deteledTestActionItems = await ActionItem.find({ + _id: testActionItem?._id, + }); + expect(deletedMembershipRequests).toEqual([]); expect(deletedTestPosts).toEqual([]); @@ -341,6 +358,8 @@ describe("resolvers -> Mutation -> removeOrganization", () => { expect(deletedTestComments).toEqual([]); expect(deletedTestCategories).toEqual([]); + + expect(deteledTestActionItems).toEqual([]); }); it(`removes the organization with image and returns the updated user's object with _id === context.userId`, async () => { diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts new file mode 100644 index 0000000000..66b6997ad2 --- /dev/null +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -0,0 +1,261 @@ +import "dotenv/config"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import type { MutationUpdateActionItemArgs } from "../../../src/types/generatedGraphQLTypes"; +import { connect, disconnect } from "../../helpers/db"; +import { + USER_NOT_FOUND_ERROR, + ACTION_ITEM_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, + EVENT_NOT_FOUND_ERROR, +} from "../../../src/constants"; +import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; +import { + createTestUser, + createTestUserAndOrganization, +} from "../../helpers/userAndOrg"; +import { updateActionItem as updateActionItemResolver } from "../../../src/resolvers/Mutation/updateActionItem"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; + +import type { TestCategoryType } from "../../helpers/category"; +import { ActionItem, Event, User } from "../../../src/models"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; +import type { TestEventType } from "../../helpers/events"; +import { nanoid } from "nanoid"; + +let randomUser: TestUserType; +let assignedTestUser: TestUserType; +let testUser: TestUserType; +let testUser2: TestUserType; +let testOrganization: TestOrganizationType; +let testCategory: TestCategoryType; +let testActionItem: TestActionItemType; +let testEvent: TestEventType; +let MONGOOSE_INSTANCE: typeof mongoose; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementation( + (message) => message + ); + + randomUser = await createTestUser(); + + [testUser2] = await createTestUserAndOrganization(); + [testUser, testOrganization, testCategory, testActionItem, assignedTestUser] = + await createTestActionItem(); + + testEvent = await Event.create({ + title: `title${nanoid().toLowerCase()}`, + description: `description${nanoid().toLowerCase()}`, + allDay: true, + startDate: new Date(), + recurring: true, + isPublic: true, + isRegisterable: true, + creator: testUser2?._id, + admins: [testUser2?._id], + organization: testOrganization?._id, + }); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Mutation -> updateActionItem", () => { + it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { + try { + const args: MutationUpdateActionItemArgs = { + id: Types.ObjectId().toString(), + data: { + assignedTo: randomUser?._id, + }, + }; + + const context = { + userId: Types.ObjectId().toString(), + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if no action item exists with _id === args.id`, async () => { + try { + const args: MutationUpdateActionItemArgs = { + id: Types.ObjectId().toString(), + data: { + assignedTo: randomUser?._id, + }, + }; + + const context = { + userId: testUser?._id, + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(ACTION_ITEM_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not a superadmin/orgAdmin/eventAdmin`, async () => { + try { + const args: MutationUpdateActionItemArgs = { + id: testActionItem?._id, + data: { + assignedTo: randomUser?._id, + }, + }; + + const context = { + userId: testUser2?._id, + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_AUTHORIZED_ERROR.MESSAGE); + } + }); + + it(`updates the action item and returns it as an admin`, async () => { + const args: MutationUpdateActionItemArgs = { + id: testActionItem?._id, + data: { + assignedTo: assignedTestUser?._id, + }, + }; + + const context = { + userId: testUser?._id, + }; + + const updatedActionItemPayload = await updateActionItemResolver?.( + {}, + args, + context + ); + + expect(updatedActionItemPayload).toEqual( + expect.objectContaining({ + assignedTo: assignedTestUser?._id, + category: testCategory?._id, + }) + ); + }); + + it(`updates the action item and returns it as superadmin`, async () => { + const superAdminTestUser = await User.findOneAndUpdate( + { + _id: randomUser?._id, + }, + { + userType: "SUPERADMIN", + }, + { + new: true, + } + ); + + const args: MutationUpdateActionItemArgs = { + id: testActionItem?._id, + data: { + assignedTo: testUser?._id, + }, + }; + + const context = { + userId: superAdminTestUser?._id, + }; + + const updatedActionItemPayload = await updateActionItemResolver?.( + {}, + args, + context + ); + + expect(updatedActionItemPayload).toEqual( + expect.objectContaining({ + assignedTo: testUser?._id, + category: testCategory?._id, + }) + ); + }); + + it(`throws NotFoundError if no event exists to which the action item is associated`, async () => { + const updatedTestActionItem = await ActionItem.findOneAndUpdate( + { + _id: testActionItem?._id, + }, + { + event: Types.ObjectId().toString(), + }, + { + new: true, + } + ); + + try { + const args: MutationUpdateActionItemArgs = { + id: updatedTestActionItem?._id, + data: { + assignedTo: randomUser?._id, + }, + }; + + const context = { + userId: testUser?._id, + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(EVENT_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`updates the actionItem when the user is authorized as an eventAdmin`, async () => { + const updatedTestActionItem = await ActionItem.findOneAndUpdate( + { + _id: testActionItem?._id, + }, + { + event: testEvent?._id, + }, + { + new: true, + } + ); + + const args: MutationUpdateActionItemArgs = { + data: { + assignedTo: testUser?._id, + }, + id: updatedTestActionItem?._id, + }; + + const context = { + userId: testUser2?._id, + }; + + const updatedActionItemPayload = await updateActionItemResolver?.( + {}, + args, + context + ); + + expect(updatedActionItemPayload).toEqual( + expect.objectContaining({ + category: testCategory?._id, + assignedTo: testUser?._id, + }) + ); + }); +}); diff --git a/tests/resolvers/Mutation/updateCategory.spec.ts b/tests/resolvers/Mutation/updateCategory.spec.ts index 4229844546..84b73087e5 100644 --- a/tests/resolvers/Mutation/updateCategory.spec.ts +++ b/tests/resolvers/Mutation/updateCategory.spec.ts @@ -18,6 +18,7 @@ import type { import { updateCategory as updateCategoryResolver } from "../../../src/resolvers/Mutation/updateCategory"; import type { TestCategoryType } from "../../helpers/category"; import { createTestCategory } from "../../helpers/category"; +import { User } from "../../../src/models"; let randomUser: TestUserType; let testUser: TestUserType; @@ -102,7 +103,7 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { } }); - it(`updated the category and returns it`, async () => { + it(`updated the category and returns it as an admin`, async () => { const args: MutationUpdateCategoryArgs = { id: testCategory?._id, data: { @@ -125,4 +126,40 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { }) ); }); + + it(`updated the category and returns it as superadmin`, async () => { + const superAdminTestUser = await User.findOneAndUpdate( + { + _id: randomUser?._id, + }, + { + userType: "SUPERADMIN", + }, + { + new: true, + } + ); + + const args: MutationUpdateCategoryArgs = { + id: testCategory?._id, + data: { + category: "updatedDefault", + disabled: false, + }, + }; + + const context = { + userId: superAdminTestUser?._id, + }; + + const updatedCategory = await updateCategoryResolver?.({}, args, context); + + expect(updatedCategory).toEqual( + expect.objectContaining({ + org: testOrganization?._id, + category: "updatedDefault", + disabled: false, + }) + ); + }); }); diff --git a/tests/resolvers/Query/actionItem.spec.ts b/tests/resolvers/Query/actionItem.spec.ts new file mode 100644 index 0000000000..88dbbc4d42 --- /dev/null +++ b/tests/resolvers/Query/actionItem.spec.ts @@ -0,0 +1,51 @@ +import "dotenv/config"; +import { actionItem as actionItemResolver } from "../../../src/resolvers/Query/actionItem"; +import { connect, disconnect } from "../../helpers/db"; +import type mongoose from "mongoose"; +import { Types } from "mongoose"; +import { ACTION_ITEM_NOT_FOUND_ERROR } from "../../../src/constants"; +import type { QueryActionItemArgs } from "../../../src/types/generatedGraphQLTypes"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type { TestActionItemType } from "../../helpers/actionItem"; +import { createTestActionItem } from "../../helpers/actionItem"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testActionItem: TestActionItemType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + const resultArray = await createTestActionItem(); + testActionItem = resultArray[3]; +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Query -> actionItem", () => { + it(`throws NotFoundError if no actionItem exists with _id === args.id`, async () => { + try { + const args: QueryActionItemArgs = { + id: Types.ObjectId().toString(), + }; + + await actionItemResolver?.({}, args, {}); + } catch (error: any) { + expect(error.message).toEqual(ACTION_ITEM_NOT_FOUND_ERROR.DESC); + } + }); + + it(`returns action item with _id === args.id`, async () => { + const args: QueryActionItemArgs = { + id: testActionItem?._id, + }; + + const actionItemPayload = await actionItemResolver?.({}, args, {}); + + expect(actionItemPayload).toEqual( + expect.objectContaining({ + _id: testActionItem?._id, + }) + ); + }); +}); diff --git a/tests/resolvers/Query/actionItemsByEvents.spec.ts b/tests/resolvers/Query/actionItemsByEvents.spec.ts new file mode 100644 index 0000000000..e9c893e457 --- /dev/null +++ b/tests/resolvers/Query/actionItemsByEvents.spec.ts @@ -0,0 +1,41 @@ +import "dotenv/config"; +import { ActionItem } from "../../../src/models"; +import { connect, disconnect } from "../../helpers/db"; +import type { QueryActionItemsByEventsArgs } from "../../../src/types/generatedGraphQLTypes"; +import { actionItemsByEvents as actionItemsByEventsResolver } from "../../../src/resolvers/Query/actionItemsByEvents"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type mongoose from "mongoose"; +import { createTestActionItems } from "../../helpers/actionItem"; +import type { TestEventType } from "../../helpers/events"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testEvent: TestEventType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testEvent] = await createTestActionItems(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Query -> actionItemsByEvent", () => { + it(`returns list of all action items associated with an event`, async () => { + const args: QueryActionItemsByEventsArgs = { + eventId: testEvent?._id, + }; + + const actionItemsByEventPayload = await actionItemsByEventsResolver?.( + {}, + args, + {} + ); + + const actionItemsByEventInfo = await ActionItem.find({ + event: testEvent?._id, + }).lean(); + + expect(actionItemsByEventPayload).toEqual(actionItemsByEventInfo); + }); +}); From 7aa48a4961c5c67a2ba2a9c24df66223bc792c13 Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 7 Jan 2024 20:09:44 +0530 Subject: [PATCH 09/28] fix typos in comments --- src/models/Organization.ts | 2 +- src/resolvers/Mutation/createCategory.ts | 2 +- src/resolvers/Mutation/removeActionItem.ts | 4 ++-- src/resolvers/Mutation/updateActionItem.ts | 2 +- src/resolvers/Mutation/updateCategory.ts | 2 +- ...ionItemsByEvents.ts => actionItemsByEvent.ts} | 16 +++++++++------- src/resolvers/Query/index.ts | 4 ++-- src/typeDefs/queries.ts | 2 +- src/types/generatedGraphQLTypes.ts | 6 +++--- tests/resolvers/ActionItem/assignedTo.spec.ts | 2 +- tests/resolvers/Category/updatedBy.spec.ts | 2 +- tests/resolvers/Mutation/updateCategory.spec.ts | 4 ++-- ...Events.spec.ts => actionItemsByEvent.spec.ts} | 6 +++--- 13 files changed, 28 insertions(+), 26 deletions(-) rename src/resolvers/Query/{actionItemsByEvents.ts => actionItemsByEvent.ts} (62%) rename tests/resolvers/Query/{actionItemsByEvents.spec.ts => actionItemsByEvent.spec.ts} (80%) diff --git a/src/models/Organization.ts b/src/models/Organization.ts index 817d22ed9b..a5256ebe12 100644 --- a/src/models/Organization.ts +++ b/src/models/Organization.ts @@ -43,7 +43,7 @@ export interface InterfaceOrganization { * @param status - Status. * @param members - Collection of members, each object refer to `User` model. * @param admins - Collection of organization admins, each object refer to `User` model. - * @param actionCategories - COllection of categories belonging to an organization, refer to `Category` model. + * @param actionCategories - Collection of categories belonging to an organization, refer to `Category` model. * @param groupChats - Collection of group chats, each object refer to `Message` model. * @param posts - Collection of Posts in the Organization, each object refer to `Post` model. * @param membershipRequests - Collection of membership requests in the Organization, each object refer to `MembershipRequest` model. diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createCategory.ts index ea4876ca54..8a19854e3f 100644 --- a/src/resolvers/Mutation/createCategory.ts +++ b/src/resolvers/Mutation/createCategory.ts @@ -11,7 +11,7 @@ import { findOrganizationsInCache } from "../../services/OrganizationCache/findO import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrganizations"; /** - * This function enables to create a task. + * This function enables to create a Category. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index dfdd90081e..23a23d82cc 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -12,7 +12,7 @@ import { Types } from "mongoose"; import { findEventsInCache } from "../../services/EventCache/findEventInCache"; import { cacheEvents } from "../../services/EventCache/cacheEvents"; /** - * This function enables to update a task. + * This function enables to remove an action item. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application @@ -20,7 +20,7 @@ import { cacheEvents } from "../../services/EventCache/cacheEvents"; * 1. If the user exists. * 2. If the action item exists. * 3. If the user is authorized. - * @returns Updated action item. + * @returns deleted action item. */ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index 249eb13273..87b62ce88c 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -12,7 +12,7 @@ import { Types } from "mongoose"; import { findEventsInCache } from "../../services/EventCache/findEventInCache"; import { cacheEvents } from "../../services/EventCache/cacheEvents"; /** - * This function enables to update a task. + * This function enables to update an action item. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts index e6bc887a42..bdd2f5bcbc 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateCategory.ts @@ -7,7 +7,7 @@ import { errors, requestContext } from "../../libraries"; import { User, Category } from "../../models"; import { adminCheck } from "../../utilities"; /** - * This function enables to update a task. + * This function enables to update a category. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application diff --git a/src/resolvers/Query/actionItemsByEvents.ts b/src/resolvers/Query/actionItemsByEvent.ts similarity index 62% rename from src/resolvers/Query/actionItemsByEvents.ts rename to src/resolvers/Query/actionItemsByEvent.ts index e8b068e1bc..12587000b3 100644 --- a/src/resolvers/Query/actionItemsByEvents.ts +++ b/src/resolvers/Query/actionItemsByEvent.ts @@ -6,11 +6,13 @@ import { ActionItem } from "../../models"; * @param args - An object that contains `eventId` which is the _id of the Event. * @returns An `actionItems` object that holds all action items for the Event. */ -export const actionItemsByEvents: QueryResolvers["actionItemsByEvents"] = - async (_parent, args) => { - const actionItems = await ActionItem.find({ - event: args.eventId, - }).lean(); +export const actionItemsByEvent: QueryResolvers["actionItemsByEvent"] = async ( + _parent, + args +) => { + const actionItems = await ActionItem.find({ + event: args.eventId, + }).lean(); - return actionItems; - }; + return actionItems; +}; diff --git a/src/resolvers/Query/index.ts b/src/resolvers/Query/index.ts index 5c99e5cf70..6d45f5a915 100644 --- a/src/resolvers/Query/index.ts +++ b/src/resolvers/Query/index.ts @@ -1,6 +1,6 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; import { actionItem } from "./actionItem"; -import { actionItemsByEvents } from "./actionItemsByEvents"; +import { actionItemsByEvent } from "./actionItemsByEvent"; import { category } from "./category"; import { categoriesByOrganization } from "./categoriesByOrganization"; import { checkAuth } from "./checkAuth"; @@ -34,7 +34,7 @@ import { usersConnection } from "./usersConnection"; export const Query: QueryResolvers = { actionItem, - actionItemsByEvents, + actionItemsByEvent, category, categoriesByOrganization, checkAuth, diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index c0f453d816..e93a3dc35f 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -9,7 +9,7 @@ export const queries = gql` actionItem(id: ID!): ActionItem - actionItemsByEvents(eventId: ID!): [ActionItem] + actionItemsByEvent(eventId: ID!): [ActionItem] category(id: ID!): Category diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 73e0b6bd8a..1360208712 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1428,7 +1428,7 @@ export type PostWhereInput = { export type Query = { __typename?: 'Query'; actionItem?: Maybe; - actionItemsByEvents?: Maybe>>; + actionItemsByEvent?: Maybe>>; adminPlugin?: Maybe>>; categoriesByOrganization?: Maybe>>; category?: Maybe; @@ -1472,7 +1472,7 @@ export type QueryActionItemArgs = { }; -export type QueryActionItemsByEventsArgs = { +export type QueryActionItemsByEventArgs = { eventId: Scalars['ID']; }; @@ -2931,7 +2931,7 @@ export type PostConnectionResolvers = { actionItem?: Resolver, ParentType, ContextType, RequireFields>; - actionItemsByEvents?: Resolver>>, ParentType, ContextType, RequireFields>; + actionItemsByEvent?: Resolver>>, ParentType, ContextType, RequireFields>; adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; categoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; category?: Resolver, ParentType, ContextType, RequireFields>; diff --git a/tests/resolvers/ActionItem/assignedTo.spec.ts b/tests/resolvers/ActionItem/assignedTo.spec.ts index f5051e0a47..224cec50f7 100644 --- a/tests/resolvers/ActionItem/assignedTo.spec.ts +++ b/tests/resolvers/ActionItem/assignedTo.spec.ts @@ -21,7 +21,7 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItem -> assignedBy", () => { +describe("resolvers -> ActionItem -> assignedTo", () => { it(`returns the assignee for parent action item`, async () => { const parent = testActionItem?.toObject(); diff --git a/tests/resolvers/Category/updatedBy.spec.ts b/tests/resolvers/Category/updatedBy.spec.ts index 7bb0001e6c..410ecd74b0 100644 --- a/tests/resolvers/Category/updatedBy.spec.ts +++ b/tests/resolvers/Category/updatedBy.spec.ts @@ -21,7 +21,7 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Category -> updated", () => { +describe("resolvers -> Category -> updatedBy", () => { it(`returns the user that last updated the parent category`, async () => { const parent = testCategory?.toObject(); diff --git a/tests/resolvers/Mutation/updateCategory.spec.ts b/tests/resolvers/Mutation/updateCategory.spec.ts index 84b73087e5..e42964580c 100644 --- a/tests/resolvers/Mutation/updateCategory.spec.ts +++ b/tests/resolvers/Mutation/updateCategory.spec.ts @@ -103,7 +103,7 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { } }); - it(`updated the category and returns it as an admin`, async () => { + it(`updates the category and returns it as an admin`, async () => { const args: MutationUpdateCategoryArgs = { id: testCategory?._id, data: { @@ -127,7 +127,7 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { ); }); - it(`updated the category and returns it as superadmin`, async () => { + it(`updates the category and returns it as superadmin`, async () => { const superAdminTestUser = await User.findOneAndUpdate( { _id: randomUser?._id, diff --git a/tests/resolvers/Query/actionItemsByEvents.spec.ts b/tests/resolvers/Query/actionItemsByEvent.spec.ts similarity index 80% rename from tests/resolvers/Query/actionItemsByEvents.spec.ts rename to tests/resolvers/Query/actionItemsByEvent.spec.ts index e9c893e457..c30dadb68a 100644 --- a/tests/resolvers/Query/actionItemsByEvents.spec.ts +++ b/tests/resolvers/Query/actionItemsByEvent.spec.ts @@ -1,8 +1,8 @@ import "dotenv/config"; import { ActionItem } from "../../../src/models"; import { connect, disconnect } from "../../helpers/db"; -import type { QueryActionItemsByEventsArgs } from "../../../src/types/generatedGraphQLTypes"; -import { actionItemsByEvents as actionItemsByEventsResolver } from "../../../src/resolvers/Query/actionItemsByEvents"; +import type { QueryActionItemsByEventArgs } from "../../../src/types/generatedGraphQLTypes"; +import { actionItemsByEvent as actionItemsByEventsResolver } from "../../../src/resolvers/Query/actionItemsByEvent"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; import type mongoose from "mongoose"; import { createTestActionItems } from "../../helpers/actionItem"; @@ -22,7 +22,7 @@ afterAll(async () => { describe("resolvers -> Query -> actionItemsByEvent", () => { it(`returns list of all action items associated with an event`, async () => { - const args: QueryActionItemsByEventsArgs = { + const args: QueryActionItemsByEventArgs = { eventId: testEvent?._id, }; From b1c9ac3ddeab01f7fd8b883d8fd1f3cb9279f8e0 Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 8 Jan 2024 15:53:31 +0530 Subject: [PATCH 10/28] Add check for action item assignee being an organization member --- src/resolvers/Mutation/createActionItem.ts | 39 ++++++++++++-- src/resolvers/Mutation/updateActionItem.ts | 53 +++++++++++++++---- .../Mutation/createActionItem.spec.ts | 48 +++++++++++++++++ .../Mutation/updateActionItem.spec.ts | 50 ++++++++++++++++- 4 files changed, 177 insertions(+), 13 deletions(-) diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index 84cacb9c13..0a12b6eb89 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -7,6 +7,7 @@ import { USER_NOT_AUTHORIZED_ERROR, EVENT_NOT_FOUND_ERROR, CATEGORY_NOT_FOUND_ERROR, + USER_NOT_MEMBER_FOR_ORGANIZATION, } from "../../constants"; import { findEventsInCache } from "../../services/EventCache/findEventInCache"; import { cacheEvents } from "../../services/EventCache/cacheEvents"; @@ -19,9 +20,12 @@ import { Types } from "mongoose"; * @param context - context of entire application * @remarks The following checks are done: * 1. If the user exists - * 2. If the category exists - * 3. If the event exists (if action item related to an event) - * 4. If the user is authorized. + * 3. If the asignee exists + * 4. If the category exists + * 5. If the asignee is a member of the organization + * 6. If the user is a member of the organization + * 7. If the event exists (if action item related to an event) + * 8. If the user is authorized. * @returns Created action item */ @@ -43,6 +47,19 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( ); } + const assignee = await User.findOne({ + _id: args.data.assignedTo, + }); + + // Checks whether the asignee exists. + if (assignee === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + const category = await Category.findOne({ _id: args.categoryId, }).lean(); @@ -56,6 +73,22 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( ); } + let asigneeIsOrganizationMember = false; + asigneeIsOrganizationMember = assignee.joinedOrganizations.some( + (organizationId) => + organizationId === category.org || + Types.ObjectId(organizationId).equals(category.org) + ); + + // Checks if the asignee is a member of the organization + if (!asigneeIsOrganizationMember) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_MEMBER_FOR_ORGANIZATION.MESSAGE), + USER_NOT_MEMBER_FOR_ORGANIZATION.CODE, + USER_NOT_MEMBER_FOR_ORGANIZATION.PARAM + ); + } + let currentUserIsEventAdmin = false; if (args.data.event) { diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index 87b62ce88c..c9b1e1a609 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -3,6 +3,7 @@ import { EVENT_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ERROR, USER_NOT_FOUND_ERROR, + USER_NOT_MEMBER_FOR_ORGANIZATION, } from "../../constants"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; @@ -18,8 +19,10 @@ import { cacheEvents } from "../../services/EventCache/cacheEvents"; * @param context - context of entire application * @remarks The following checks are done: * 1. If the user exists. + * 2. If the new asignee exists. * 2. If the action item exists. - * 3. If the user is authorized. + * 4. If the new asignee is a member of the organization. + * 5. If the user is authorized. * @returns Updated action item. */ @@ -64,6 +67,46 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( ); } + let sameAssignedUser = false; + + if (args.data.assignedTo) { + sameAssignedUser = Types.ObjectId(actionItem.assignedTo).equals( + args.data.assignedTo + ); + + if (!sameAssignedUser) { + const newAssignedUser = await User.findOne({ + _id: args.data.assignedTo, + }); + + // Checks if the new asignee exists + if (newAssignedUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + let userIsOrganizationMember = false; + const currOrgId = actionItem.category.org; + userIsOrganizationMember = newAssignedUser.joinedOrganizations.some( + (organizationId) => + organizationId === currOrgId || + Types.ObjectId(organizationId).equals(currOrgId) + ); + + // Checks if the new asignee is a member of the organization + if (!userIsOrganizationMember) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_MEMBER_FOR_ORGANIZATION.MESSAGE), + USER_NOT_MEMBER_FOR_ORGANIZATION.CODE, + USER_NOT_MEMBER_FOR_ORGANIZATION.PARAM + ); + } + } + } + const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => ogranizationId === actionItem.category.org || @@ -118,14 +161,6 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( ); } - let sameAssignedUser = false; - - if (args.data.assignedTo) { - sameAssignedUser = Types.ObjectId(actionItem.assignedTo).equals( - args.data.assignedTo - ); - } - const updatedAssignmentDate = sameAssignedUser ? actionItem.assignmentDate : new Date(); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index a163b85367..5f16816102 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -9,6 +9,7 @@ import { CATEGORY_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ERROR, EVENT_NOT_FOUND_ERROR, + USER_NOT_MEMBER_FOR_ORGANIZATION, } from "../../../src/constants"; import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; import { createTestUser } from "../../helpers/userAndOrg"; @@ -113,7 +114,54 @@ describe("resolvers -> Mutation -> createActionItem", () => { } }); + it(`throws NotFoundError if no user exists with _id === args.data.assignedTo`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: Types.ObjectId().toString(), + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: testUser?._id, + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError new assignee is not a member of the organization`, async () => { + try { + const args: MutationCreateActionItemArgs = { + data: { + assignedTo: randomUser?._id, + }, + categoryId: testCategory?._id, + }; + + const context = { + userId: testUser?._id, + }; + + await createActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_MEMBER_FOR_ORGANIZATION.MESSAGE); + } + }); + it(`throws NotFoundError if no event exists with _id === args.data.event`, async () => { + await User.findOneAndUpdate( + { + _id: randomUser?._id, + }, + { + $push: { joinedOrganizations: testOrganization?._id }, + } + ); + try { const args: MutationCreateActionItemArgs = { data: { diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts index 66b6997ad2..b3b06bf52e 100644 --- a/tests/resolvers/Mutation/updateActionItem.spec.ts +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -8,6 +8,7 @@ import { ACTION_ITEM_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ERROR, EVENT_NOT_FOUND_ERROR, + USER_NOT_MEMBER_FOR_ORGANIZATION, } from "../../../src/constants"; import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; import { @@ -107,7 +108,26 @@ describe("resolvers -> Mutation -> updateActionItem", () => { } }); - it(`throws NotAuthorizedError if the user is not a superadmin/orgAdmin/eventAdmin`, async () => { + it(`throws NotFoundError if no user exists with _id === args.data.assignedTo`, async () => { + try { + const args: MutationUpdateActionItemArgs = { + id: testActionItem?._id, + data: { + assignedTo: Types.ObjectId().toString(), + }, + }; + + const context = { + userId: testUser?._id, + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); + } + }); + + it(`throws NotFoundError if the new asignee is not a member of the organization`, async () => { try { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, @@ -116,6 +136,25 @@ describe("resolvers -> Mutation -> updateActionItem", () => { }, }; + const context = { + userId: testUser?._id, + }; + + await updateActionItemResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(USER_NOT_MEMBER_FOR_ORGANIZATION.MESSAGE); + } + }); + + it(`throws NotAuthorizedError if the user is not a superadmin/orgAdmin/eventAdmin`, async () => { + try { + const args: MutationUpdateActionItemArgs = { + id: testActionItem?._id, + data: { + assignedTo: testUser?._id, + }, + }; + const context = { userId: testUser2?._id, }; @@ -203,6 +242,15 @@ describe("resolvers -> Mutation -> updateActionItem", () => { } ); + await User.updateOne( + { + _id: randomUser?._id, + }, + { + $push: { joinedOrganizations: testOrganization?._id }, + } + ); + try { const args: MutationUpdateActionItemArgs = { id: updatedTestActionItem?._id, From bd6833f8ff776bae66e85aaf6d512c2d1a121a6f Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 8 Jan 2024 18:08:13 +0530 Subject: [PATCH 11/28] update to more meaningful field names in mongoose schema --- src/models/ActionItem.ts | 6 +++--- src/models/Category.ts | 6 +++--- src/resolvers/ActionItem/category.ts | 2 +- src/resolvers/Category/org.ts | 2 +- src/resolvers/Mutation/createActionItem.ts | 10 +++++----- src/resolvers/Mutation/createCategory.ts | 2 +- src/resolvers/Mutation/createOrganization.ts | 2 +- src/resolvers/Mutation/removeActionItem.ts | 6 +++--- src/resolvers/Mutation/removeOrganization.ts | 2 +- src/resolvers/Mutation/updateActionItem.ts | 8 ++++---- src/resolvers/Mutation/updateCategory.ts | 4 ++-- src/resolvers/Query/categoriesByOrganization.ts | 2 +- tests/helpers/actionItem.ts | 10 +++++----- tests/helpers/category.ts | 6 +++--- tests/resolvers/Mutation/createActionItem.spec.ts | 6 +++--- tests/resolvers/Mutation/createCategory.spec.ts | 4 ++-- tests/resolvers/Mutation/createOrganization.spec.ts | 4 ++-- tests/resolvers/Mutation/removeOrganization.spec.ts | 6 +++--- tests/resolvers/Mutation/updateActionItem.spec.ts | 6 +++--- tests/resolvers/Mutation/updateCategory.spec.ts | 4 ++-- tests/resolvers/Organization/actionCategories.spec.ts | 2 +- tests/resolvers/Query/categoriesByOrganization.spec.ts | 2 +- 22 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 81eee3e544..5a3da54e31 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -12,7 +12,7 @@ export interface InterfaceActionItem { _id: Types.ObjectId; assignedTo: PopulatedDoc; assignedBy: PopulatedDoc; - category: PopulatedDoc; + categoryId: PopulatedDoc; preCompletionNotes: string; postCompletionNotes: string; assignmentDate: Date; @@ -30,7 +30,7 @@ export interface InterfaceActionItem { * This describes the schema for a `ActionItem` that corresponds to `InterfaceActionItem` document. * @param assignedTo - User to whom the ActionItem is assigned, refer to `User` model. * @param assignedBy - User who assigned the ActionItem, refer to the `User` model. - * @param category - Category to which the ActionItem is related, refer to the `Category` model. + * @param categoryId - Category to which the ActionItem is related, refer to the `Category` model. * @param preCompletionNotes - Notes prior to completion. * @param postCompletionNotes - Notes on completion. * @param assignmentDate - Date of assignment. @@ -56,7 +56,7 @@ const actionItemSchema = new Schema( ref: "User", required: true, }, - category: { + categoryId: { type: Schema.Types.ObjectId, ref: "Category", required: true, diff --git a/src/models/Category.ts b/src/models/Category.ts index f644ed9b6f..57e782eea6 100644 --- a/src/models/Category.ts +++ b/src/models/Category.ts @@ -10,7 +10,7 @@ import type { InterfaceOrganization } from "./Organization"; export interface InterfaceCategory { _id: Types.ObjectId; category: string; - org: PopulatedDoc; + orgId: PopulatedDoc; disabled: boolean; createdBy: PopulatedDoc; updatedBy: PopulatedDoc; @@ -21,7 +21,7 @@ export interface InterfaceCategory { /** * This describes the schema for a `category` that corresponds to `InterfaceCategory` document. * @param category - A category to be selected for ActionItems. - * @param org - Organization the category belongs to, refer to the `Organization` model. + * @param orgId - Organization the category belongs to, refer to the `Organization` model. * @param disabled - Whether category is disabled or not. * @param createdBy - Task creator, refer to `User` model. * @param updatedBy - Task creator, refer to `User` model. @@ -35,7 +35,7 @@ const categorySchema = new Schema( type: String, required: true, }, - org: { + orgId: { type: Schema.Types.ObjectId, ref: "Organization", required: true, diff --git a/src/resolvers/ActionItem/category.ts b/src/resolvers/ActionItem/category.ts index 951e61af4e..f25e419dc4 100644 --- a/src/resolvers/ActionItem/category.ts +++ b/src/resolvers/ActionItem/category.ts @@ -3,6 +3,6 @@ import { Category } from "../../models"; export const category: ActionItemResolvers["category"] = async (parent) => { return Category.findOne({ - _id: parent.category, + _id: parent.categoryId, }).lean(); }; diff --git a/src/resolvers/Category/org.ts b/src/resolvers/Category/org.ts index 88de244b09..ec7c62919c 100644 --- a/src/resolvers/Category/org.ts +++ b/src/resolvers/Category/org.ts @@ -3,6 +3,6 @@ import { Organization } from "../../models"; export const org: CategoryResolvers["org"] = async (parent) => { return Organization.findOne({ - _id: parent.org, + _id: parent.orgId, }).lean(); }; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index 0a12b6eb89..3828b3117a 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -76,8 +76,8 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( let asigneeIsOrganizationMember = false; asigneeIsOrganizationMember = assignee.joinedOrganizations.some( (organizationId) => - organizationId === category.org || - Types.ObjectId(organizationId).equals(category.org) + organizationId === category.orgId || + Types.ObjectId(organizationId).equals(category.orgId) ); // Checks if the asignee is a member of the organization @@ -127,8 +127,8 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( // Checks if the currUser is an admin of the organization const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === category.org || - Types.ObjectId(ogranizationId).equals(category.org) + ogranizationId === category.orgId || + Types.ObjectId(ogranizationId).equals(category.orgId) ); // Checks whether currentUser with _id === context.userId is authorized for the operation. @@ -148,7 +148,7 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( const createActionItem = await ActionItem.create({ assignedTo: args.data.assignedTo, assignedBy: context.userId, - category: args.categoryId, + categoryId: args.categoryId, preCompletionNotes: args.data.preCompletionNotes, postCompletionNotes: args.data.postCompletionNotes, dueDate: args.data.dueDate, diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createCategory.ts index 8a19854e3f..df51b24cc1 100644 --- a/src/resolvers/Mutation/createCategory.ts +++ b/src/resolvers/Mutation/createCategory.ts @@ -69,7 +69,7 @@ export const createCategory: MutationResolvers["createCategory"] = async ( // Creates new category. const createdCategory = await Category.create({ category: args.category, - org: args.orgId, + orgId: args.orgId, createdBy: context.userId, updatedBy: context.userId, }); diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index 8e3088b9ea..144f850e24 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -86,7 +86,7 @@ export const createOrganization: MutationResolvers["createOrganization"] = // Creating a default category const createdCategory = await Category.create({ category: "Default", - org: createdOrganization._id, + orgId: createdOrganization._id, createdBy: context.userId, updatedBy: context.userId, }); diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 23a23d82cc..62b603919a 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -44,7 +44,7 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const actionItem = await ActionItem.findOne({ _id: args.id, }) - .populate("category") + .populate("categoryId") .lean(); // Checks if the actionItem exists @@ -58,8 +58,8 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.category.org || - Types.ObjectId(ogranizationId).equals(actionItem.category.org) + ogranizationId === actionItem.categoryId.orgId || + Types.ObjectId(ogranizationId).equals(actionItem.categoryId.orgId) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/removeOrganization.ts b/src/resolvers/Mutation/removeOrganization.ts index 7ec5744966..399c3a1cab 100644 --- a/src/resolvers/Mutation/removeOrganization.ts +++ b/src/resolvers/Mutation/removeOrganization.ts @@ -132,7 +132,7 @@ export const removeOrganization: MutationResolvers["removeOrganization"] = // Remove all ActionItem documents whose category is in the actionCategories array await ActionItem.deleteMany({ - category: { $in: organization.actionCategories }, + categoryId: { $in: organization.actionCategories }, }); // Deletes the organzation. diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index c9b1e1a609..c59b5e8066 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -55,7 +55,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const actionItem = await ActionItem.findOne({ _id: args.id, }) - .populate("category") + .populate("categoryId") .lean(); // Checks if the actionItem exists @@ -89,7 +89,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( } let userIsOrganizationMember = false; - const currOrgId = actionItem.category.org; + const currOrgId = actionItem.categoryId.orgId; userIsOrganizationMember = newAssignedUser.joinedOrganizations.some( (organizationId) => organizationId === currOrgId || @@ -109,8 +109,8 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.category.org || - Types.ObjectId(ogranizationId).equals(actionItem.category.org) + ogranizationId === actionItem.categoryId.orgId || + Types.ObjectId(ogranizationId).equals(actionItem.categoryId.orgId) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts index bdd2f5bcbc..18944b103a 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateCategory.ts @@ -44,7 +44,7 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( const category = await Category.findOne({ _id: args.id, }) - .populate("org") + .populate("orgId") .lean(); // Checks if the category exists @@ -56,7 +56,7 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( ); } - await adminCheck(context.userId, category.org); + await adminCheck(context.userId, category.orgId); const updatedCategory = await Category.findOneAndUpdate( { diff --git a/src/resolvers/Query/categoriesByOrganization.ts b/src/resolvers/Query/categoriesByOrganization.ts index 0c664ab357..c0d7b5ec86 100644 --- a/src/resolvers/Query/categoriesByOrganization.ts +++ b/src/resolvers/Query/categoriesByOrganization.ts @@ -9,7 +9,7 @@ import { Category } from "../../models"; export const categoriesByOrganization: QueryResolvers["categoriesByOrganization"] = async (_parent, args) => { const categories = await Category.find({ - org: args.orgId, + orgId: args.orgId, }).lean(); return categories; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index 0a0c20a813..c1f1f437c2 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -29,7 +29,7 @@ export const createTestActionItem = async (): Promise< const testCategory = await Category.create({ createdBy: testUser?._id, updatedBy: testUser?._id, - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }); @@ -38,7 +38,7 @@ export const createTestActionItem = async (): Promise< updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }); return [testUser, testOrganization, testCategory, testActionItem, randomUser]; @@ -60,7 +60,7 @@ export const createNewTestActionItem = async ({ updatedBy: currUserId, assignedTo: assignedUserId, assignedBy: currUserId, - category: categoryId, + categoryId: categoryId, }); return newTestActionItem; @@ -77,7 +77,7 @@ export const createTestActionItems = async (): Promise< updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }); const testActionItem2 = await ActionItem.create({ @@ -85,7 +85,7 @@ export const createTestActionItems = async (): Promise< updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }); const testEvent = await Event.create({ diff --git a/tests/helpers/category.ts b/tests/helpers/category.ts index f8637aefdd..8d8ecc533f 100644 --- a/tests/helpers/category.ts +++ b/tests/helpers/category.ts @@ -16,7 +16,7 @@ export const createTestCategory = async (): Promise< const testCategory = await Category.create({ createdBy: testUser?._id, updatedBy: testUser?._id, - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }); @@ -31,14 +31,14 @@ export const createTestCategories = async (): Promise< const testCategory1 = await Category.create({ createdBy: testUser?._id, updatedBy: testUser?._id, - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }); const testCategory2 = await Category.create({ createdBy: testUser?._id, updatedBy: testUser?._id, - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default2", }); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index 5f16816102..a407bfeb09 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -221,7 +221,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - category: testCategory?._id, + categoryId: testCategory?._id, }) ); @@ -258,7 +258,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - category: testCategory?._id, + categoryId: testCategory?._id, }) ); }); @@ -283,7 +283,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - category: testCategory?._id, + categoryId: testCategory?._id, }) ); }); diff --git a/tests/resolvers/Mutation/createCategory.spec.ts b/tests/resolvers/Mutation/createCategory.spec.ts index af681f5ed1..299c88dd31 100644 --- a/tests/resolvers/Mutation/createCategory.spec.ts +++ b/tests/resolvers/Mutation/createCategory.spec.ts @@ -112,7 +112,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }) ); @@ -160,7 +160,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }) ); diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index da70f1d929..9c6d7009e0 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -153,12 +153,12 @@ describe("resolvers -> Mutation -> createOrganization", () => { ); const defaultCategory = await Category.findOne({ - org: createOrganizationPayload?._id, + orgId: createOrganizationPayload?._id, }).lean(); expect(defaultCategory).toEqual( expect.objectContaining({ - org: createOrganizationPayload?._id, + orgId: createOrganizationPayload?._id, category: "Default", disabled: false, }) diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 00359a5455..8c26e6c82c 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -115,7 +115,7 @@ beforeAll(async () => { testCategory = await Category.create({ createdBy: testUsers[0]?._id, updatedBy: testUsers[0]?._id, - org: testOrganization?._id, + orgId: testOrganization?._id, category: "Default", }); @@ -124,7 +124,7 @@ beforeAll(async () => { updatedBy: testUsers[0]?._id, assignedTo: testUsers[1]?._id, assignedBy: testUsers[0]?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }); await Organization.updateOne( @@ -344,7 +344,7 @@ describe("resolvers -> Mutation -> removeOrganization", () => { }).lean(); const deletedTestCategories = await Category.find({ - org: testOrganization?._id, + orgId: testOrganization?._id, }).lean(); const deteledTestActionItems = await ActionItem.find({ diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts index b3b06bf52e..cdf941580e 100644 --- a/tests/resolvers/Mutation/updateActionItem.spec.ts +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -186,7 +186,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ assignedTo: assignedTestUser?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }) ); }); @@ -224,7 +224,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ assignedTo: testUser?._id, - category: testCategory?._id, + categoryId: testCategory?._id, }) ); }); @@ -301,7 +301,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ - category: testCategory?._id, + categoryId: testCategory?._id, assignedTo: testUser?._id, }) ); diff --git a/tests/resolvers/Mutation/updateCategory.spec.ts b/tests/resolvers/Mutation/updateCategory.spec.ts index e42964580c..063acfe987 100644 --- a/tests/resolvers/Mutation/updateCategory.spec.ts +++ b/tests/resolvers/Mutation/updateCategory.spec.ts @@ -120,7 +120,7 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { expect(updatedCategory).toEqual( expect.objectContaining({ - org: testOrganization?._id, + orgId: testOrganization?._id, category: "updatedDefault", disabled: true, }) @@ -156,7 +156,7 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { expect(updatedCategory).toEqual( expect.objectContaining({ - org: testOrganization?._id, + orgId: testOrganization?._id, category: "updatedDefault", disabled: false, }) diff --git a/tests/resolvers/Organization/actionCategories.spec.ts b/tests/resolvers/Organization/actionCategories.spec.ts index 1c89869600..ed3fa4960a 100644 --- a/tests/resolvers/Organization/actionCategories.spec.ts +++ b/tests/resolvers/Organization/actionCategories.spec.ts @@ -30,7 +30,7 @@ describe("resolvers -> Organization -> actionCategories", () => { ); const categories = await Category.find({ - org: testOrganization?._id, + orgId: testOrganization?._id, }).lean(); expect(actionCategoriesPayload).toEqual(categories); diff --git a/tests/resolvers/Query/categoriesByOrganization.spec.ts b/tests/resolvers/Query/categoriesByOrganization.spec.ts index 12fd221ec2..8c85ef0149 100644 --- a/tests/resolvers/Query/categoriesByOrganization.spec.ts +++ b/tests/resolvers/Query/categoriesByOrganization.spec.ts @@ -30,7 +30,7 @@ describe("resolvers -> Query -> categoriesByOrganization", () => { await categoriesByOrganizationResolver?.({}, args, {}); const categoriesByOrganizationInfo = await Category.find({ - org: testOrganization?._id, + orgId: testOrganization?._id, }).lean(); expect(categoriesByOrganizationPayload).toEqual( From eddf6702103efc4707a3521b6aab18f76ec2d9c1 Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 8 Jan 2024 19:59:52 +0530 Subject: [PATCH 12/28] remove the updatedBy field --- src/models/ActionItem.ts | 7 ---- src/models/Category.ts | 7 ---- src/resolvers/ActionItem/index.ts | 2 -- src/resolvers/ActionItem/updatedBy.ts | 8 ----- src/resolvers/Category/index.ts | 2 -- src/resolvers/Category/updatedBy.ts | 8 ----- src/resolvers/Mutation/createActionItem.ts | 1 - src/resolvers/Mutation/createCategory.ts | 1 - src/resolvers/Mutation/createOrganization.ts | 1 - src/resolvers/Mutation/updateActionItem.ts | 1 - src/resolvers/Mutation/updateCategory.ts | 1 - src/typeDefs/types.ts | 2 -- src/types/generatedGraphQLTypes.ts | 4 --- tests/helpers/actionItem.ts | 5 --- tests/helpers/category.ts | 3 -- tests/resolvers/ActionItem/updatedBy.spec.ts | 36 ------------------- tests/resolvers/Category/updatedBy.spec.ts | 36 ------------------- .../Mutation/removeOrganization.spec.ts | 2 -- 18 files changed, 127 deletions(-) delete mode 100644 src/resolvers/ActionItem/updatedBy.ts delete mode 100644 src/resolvers/Category/updatedBy.ts delete mode 100644 tests/resolvers/ActionItem/updatedBy.spec.ts delete mode 100644 tests/resolvers/Category/updatedBy.spec.ts diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 5a3da54e31..def28541ab 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -21,7 +21,6 @@ export interface InterfaceActionItem { completed: boolean; event: PopulatedDoc; createdBy: PopulatedDoc; - updatedBy: PopulatedDoc; createdAt: Date; updatedAt: Date; } @@ -39,7 +38,6 @@ export interface InterfaceActionItem { * @param completed - Whether the ActionItem has been completed. * @param event - Event to which the ActionItem is related, refer to the `Event` model. * @param createdBy - User who created the ActionItem, refer to the `User` model. - * @param updatedBy - User who last updated the ActionItem, refer to the `User` model. * @param createdAt - Timestamp when the ActionItem was created. * @param updatedAt - Timestamp when the ActionItem was last updated. */ @@ -92,11 +90,6 @@ const actionItemSchema = new Schema( ref: "User", required: true, }, - updatedBy: { - type: Schema.Types.ObjectId, - ref: "User", - required: true, - }, }, { timestamps: true } ); diff --git a/src/models/Category.ts b/src/models/Category.ts index 57e782eea6..0dd9eb01d0 100644 --- a/src/models/Category.ts +++ b/src/models/Category.ts @@ -13,7 +13,6 @@ export interface InterfaceCategory { orgId: PopulatedDoc; disabled: boolean; createdBy: PopulatedDoc; - updatedBy: PopulatedDoc; createdAt: Date; updatedAt: Date; } @@ -24,7 +23,6 @@ export interface InterfaceCategory { * @param orgId - Organization the category belongs to, refer to the `Organization` model. * @param disabled - Whether category is disabled or not. * @param createdBy - Task creator, refer to `User` model. - * @param updatedBy - Task creator, refer to `User` model. * @param createdAt - Time stamp of data creation. * @param updatedAt - Time stamp of data updation. */ @@ -49,11 +47,6 @@ const categorySchema = new Schema( ref: "User", required: true, }, - updatedBy: { - type: Schema.Types.ObjectId, - ref: "User", - required: true, - }, }, { timestamps: true } ); diff --git a/src/resolvers/ActionItem/index.ts b/src/resolvers/ActionItem/index.ts index 74cd36ada4..fdf29e7141 100644 --- a/src/resolvers/ActionItem/index.ts +++ b/src/resolvers/ActionItem/index.ts @@ -4,7 +4,6 @@ import { assignedBy } from "./assignedBy"; import { category } from "./category"; import { event } from "./event"; import { createdBy } from "./createdBy"; -import { updatedBy } from "./updatedBy"; export const ActionItem: ActionItemResolvers = { assignedTo, @@ -12,5 +11,4 @@ export const ActionItem: ActionItemResolvers = { category, event, createdBy, - updatedBy, }; diff --git a/src/resolvers/ActionItem/updatedBy.ts b/src/resolvers/ActionItem/updatedBy.ts deleted file mode 100644 index f7433a40e3..0000000000 --- a/src/resolvers/ActionItem/updatedBy.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; -import { User } from "../../models"; - -export const updatedBy: ActionItemResolvers["updatedBy"] = async (parent) => { - return User.findOne({ - _id: parent.updatedBy, - }).lean(); -}; diff --git a/src/resolvers/Category/index.ts b/src/resolvers/Category/index.ts index 2413266db9..2b83845342 100644 --- a/src/resolvers/Category/index.ts +++ b/src/resolvers/Category/index.ts @@ -1,10 +1,8 @@ import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; import { org } from "./org"; import { createdBy } from "./createdBy"; -import { updatedBy } from "./updatedBy"; export const Category: CategoryResolvers = { org, createdBy, - updatedBy, }; diff --git a/src/resolvers/Category/updatedBy.ts b/src/resolvers/Category/updatedBy.ts deleted file mode 100644 index 9e19f9679e..0000000000 --- a/src/resolvers/Category/updatedBy.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; -import { User } from "../../models"; - -export const updatedBy: CategoryResolvers["updatedBy"] = async (parent) => { - return User.findOne({ - _id: parent.updatedBy, - }).lean(); -}; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index 3828b3117a..c928ff3c4b 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -155,7 +155,6 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( completionDate: args.data.completionDate, event: args.data.event, createdBy: context.userId, - updatedBy: context.userId, }); if (args.data.event) { diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createCategory.ts index df51b24cc1..4246c1ea95 100644 --- a/src/resolvers/Mutation/createCategory.ts +++ b/src/resolvers/Mutation/createCategory.ts @@ -71,7 +71,6 @@ export const createCategory: MutationResolvers["createCategory"] = async ( category: args.category, orgId: args.orgId, createdBy: context.userId, - updatedBy: context.userId, }); await Organization.findOneAndUpdate( diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index 144f850e24..5b97d42de6 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -88,7 +88,6 @@ export const createOrganization: MutationResolvers["createOrganization"] = category: "Default", orgId: createdOrganization._id, createdBy: context.userId, - updatedBy: context.userId, }); // Adding the default category to the createdOrganization diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index c59b5e8066..a53623cad6 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -176,7 +176,6 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( { ...(args.data as UpdateActionItemInputType), assignmentDate: updatedAssignmentDate, - updatedBy: context.userId, assignedBy: updatedAssignedBy, }, { diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateCategory.ts index 18944b103a..f55f5c913a 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateCategory.ts @@ -64,7 +64,6 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( }, { ...(args.data as UpdateCategoryInputType), - updatedBy: context.userId, }, { new: true, diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 6ef7768d9b..b54a214179 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -30,7 +30,6 @@ export const types = gql` completed: Boolean event: Event createdBy: User! - updatedBy: User! createdAt: Date! updatedAt: Date! } @@ -369,7 +368,6 @@ export const types = gql` org: Organization! disabled: Boolean! createdBy: User! - updatedBy: User! createdAt: Date! updatedAt: Date! } diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 1360208712..a28999d63f 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -69,7 +69,6 @@ export type ActionItem = { postCompletionNotes?: Maybe; preCompletionNotes?: Maybe; updatedAt: Scalars['Date']; - updatedBy: User; }; export type Address = { @@ -132,7 +131,6 @@ export type Category = { disabled: Scalars['Boolean']; org: Organization; updatedAt: Scalars['Date']; - updatedBy: User; }; export type CheckIn = { @@ -2392,7 +2390,6 @@ export type ActionItemResolvers, ParentType, ContextType>; preCompletionNotes?: Resolver, ParentType, ContextType>; updatedAt?: Resolver; - updatedBy?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }; @@ -2448,7 +2445,6 @@ export type CategoryResolvers; org?: Resolver; updatedAt?: Resolver; - updatedBy?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index c1f1f437c2..9e4a4fe780 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -28,14 +28,12 @@ export const createTestActionItem = async (): Promise< const testCategory = await Category.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, orgId: testOrganization?._id, category: "Default", }); const testActionItem = await ActionItem.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, categoryId: testCategory?._id, @@ -57,7 +55,6 @@ export const createNewTestActionItem = async ({ }: InterfaceCreateNewTestAction): Promise => { const newTestActionItem = await ActionItem.create({ createdBy: currUserId, - updatedBy: currUserId, assignedTo: assignedUserId, assignedBy: currUserId, categoryId: categoryId, @@ -74,7 +71,6 @@ export const createTestActionItems = async (): Promise< const testActionItem1 = await ActionItem.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, categoryId: testCategory?._id, @@ -82,7 +78,6 @@ export const createTestActionItems = async (): Promise< const testActionItem2 = await ActionItem.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, categoryId: testCategory?._id, diff --git a/tests/helpers/category.ts b/tests/helpers/category.ts index 8d8ecc533f..b17ac348ee 100644 --- a/tests/helpers/category.ts +++ b/tests/helpers/category.ts @@ -15,7 +15,6 @@ export const createTestCategory = async (): Promise< const [testUser, testOrganization] = await createTestUserAndOrganization(); const testCategory = await Category.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, orgId: testOrganization?._id, category: "Default", }); @@ -30,14 +29,12 @@ export const createTestCategories = async (): Promise< const testCategory1 = await Category.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, orgId: testOrganization?._id, category: "Default", }); const testCategory2 = await Category.create({ createdBy: testUser?._id, - updatedBy: testUser?._id, orgId: testOrganization?._id, category: "Default2", }); diff --git a/tests/resolvers/ActionItem/updatedBy.spec.ts b/tests/resolvers/ActionItem/updatedBy.spec.ts deleted file mode 100644 index 432ab54d3a..0000000000 --- a/tests/resolvers/ActionItem/updatedBy.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import "dotenv/config"; -import { updatedBy as updatedByResolver } from "../../../src/resolvers/ActionItem/updatedBy"; -import { connect, disconnect } from "../../helpers/db"; -import type mongoose from "mongoose"; -import { beforeAll, afterAll, describe, it, expect } from "vitest"; -import { User } from "../../../src/models"; -import type { TestUserType } from "../../helpers/userAndOrg"; -import type { TestActionItemType } from "../../helpers/actionItem"; -import { createTestActionItem } from "../../helpers/actionItem"; - -let MONGOOSE_INSTANCE: typeof mongoose; -let testUser: TestUserType; -let testActionItem: TestActionItemType; - -beforeAll(async () => { - MONGOOSE_INSTANCE = await connect(); - [testUser, , , testActionItem] = await createTestActionItem(); -}); - -afterAll(async () => { - await disconnect(MONGOOSE_INSTANCE); -}); - -describe("resolvers -> ActionItem -> updatedBy", () => { - it(`returns the updater for parent action item`, async () => { - const parent = testActionItem?.toObject(); - - const updatedByPayload = await updatedByResolver?.(parent, {}, {}); - - const updatedByObject = await User.findOne({ - _id: testUser?._id, - }).lean(); - - expect(updatedByPayload).toEqual(updatedByObject); - }); -}); diff --git a/tests/resolvers/Category/updatedBy.spec.ts b/tests/resolvers/Category/updatedBy.spec.ts deleted file mode 100644 index 410ecd74b0..0000000000 --- a/tests/resolvers/Category/updatedBy.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import "dotenv/config"; -import { updatedBy as updatedByResolver } from "../../../src/resolvers/Category/updatedBy"; -import { connect, disconnect } from "../../helpers/db"; -import type mongoose from "mongoose"; -import { beforeAll, afterAll, describe, it, expect } from "vitest"; -import { User } from "../../../src/models"; -import type { TestUserType } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; - -let MONGOOSE_INSTANCE: typeof mongoose; -let testUser: TestUserType; -let testCategory: TestCategoryType; - -beforeAll(async () => { - MONGOOSE_INSTANCE = await connect(); - [testUser, , testCategory] = await createTestCategory(); -}); - -afterAll(async () => { - await disconnect(MONGOOSE_INSTANCE); -}); - -describe("resolvers -> Category -> updatedBy", () => { - it(`returns the user that last updated the parent category`, async () => { - const parent = testCategory?.toObject(); - - const updatedByPayload = await updatedByResolver?.(parent, {}, {}); - - const updatedByObject = await User.findOne({ - _id: testUser?._id, - }).lean(); - - expect(updatedByPayload).toEqual(updatedByObject); - }); -}); diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 8c26e6c82c..e24fe3ce83 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -114,14 +114,12 @@ beforeAll(async () => { testCategory = await Category.create({ createdBy: testUsers[0]?._id, - updatedBy: testUsers[0]?._id, orgId: testOrganization?._id, category: "Default", }); testActionItem = await ActionItem.create({ createdBy: testUsers[0]?._id, - updatedBy: testUsers[0]?._id, assignedTo: testUsers[1]?._id, assignedBy: testUsers[0]?._id, categoryId: testCategory?._id, From 794d15d2c619428a94d1038f414327e5a4a59894 Mon Sep 17 00:00:00 2001 From: meetul Date: Wed, 10 Jan 2024 23:10:42 +0530 Subject: [PATCH 13/28] remove schema.graphql --- src/resolvers/Mutation/removeEvent.ts | 6 +----- src/typeDefs/inputs.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/resolvers/Mutation/removeEvent.ts b/src/resolvers/Mutation/removeEvent.ts index 63b48d83ec..c4bc3d06f4 100644 --- a/src/resolvers/Mutation/removeEvent.ts +++ b/src/resolvers/Mutation/removeEvent.ts @@ -1,11 +1,7 @@ import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; import type { InterfaceEvent } from "../../models"; -import { - User, - Event, - ActionItem, -} from "../../models"; +import { User, Event, ActionItem } from "../../models"; import { USER_NOT_FOUND_ERROR, EVENT_NOT_FOUND_ERROR, diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index 1395ce19c1..3d13984713 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -301,7 +301,7 @@ export const inputs = gql` _id: ID! name: String! } - + input UpdateCategoryInput { category: String disabled: Boolean From cd0262932eb95de20dca16234806bfbabb51af9d Mon Sep 17 00:00:00 2001 From: meetul Date: Wed, 10 Jan 2024 23:14:55 +0530 Subject: [PATCH 14/28] restore schema.graphql to upstream/develop --- schema.graphql | 129 ++++++++++++++++++++++++------------------------- 1 file changed, 63 insertions(+), 66 deletions(-) diff --git a/schema.graphql b/schema.graphql index 80b0f9cf37..36d5b599e3 100644 --- a/schema.graphql +++ b/schema.graphql @@ -2,6 +2,23 @@ directive @auth on FIELD_DEFINITION directive @role(requires: UserType) on FIELD_DEFINITION +type ActionItem { + _id: ID! + assignedBy: User! + assignedTo: User! + assignmentDate: Date + category: Category! + completed: Boolean + completionDate: Date + createdAt: Date! + createdBy: User! + dueDate: Date + event: Event + postCompletionNotes: String + preCompletionNotes: String + updatedAt: Date! +} + type Address { city: String countryCode: CountryCode @@ -50,6 +67,16 @@ type AuthData { user: User! } +type Category { + _id: ID! + category: String! + createdAt: Date! + createdBy: User! + disabled: Boolean! + org: Organization! + updatedAt: Date! +} + type CheckIn { _id: ID! allotedRoom: String @@ -98,6 +125,17 @@ type ConnectionPageInfo { scalar CountryCode +input CreateActionItemInput { + assignedTo: ID! + assignmentDate: Date + completed: Boolean + completionDate: Date + dueDate: Date + event: ID + postCompletionNotes: String + preCompletionNotes: String +} + input CreateUserTagInput { name: String! organizationId: ID! @@ -193,6 +231,7 @@ interface Error { type Event { _id: ID! + actionItems: [ActionItem] admins(adminId: ID): [User] allDay: Boolean! attendees: [User!]! @@ -209,7 +248,6 @@ type Event { location: String longitude: Longitude organization: Organization - projects: [EventProject] recurrance: Recurrance recurring: Boolean! startDate: Date! @@ -264,20 +302,6 @@ enum EventOrderByInput { title_DESC } -type EventProject { - _id: ID! - description: String! - event: Event! - tasks: [Task] - title: String! -} - -input EventProjectInput { - description: String! - eventId: ID! - title: String! -} - input EventWhereInput { description: String description_contains: String @@ -481,13 +505,14 @@ type Mutation { blockUser(organizationId: ID!, userId: ID!): User! cancelMembershipRequest(membershipRequestId: ID!): MembershipRequest! checkIn(data: CheckInInput!): CheckIn! + createActionItem(categoryId: ID!, data: CreateActionItemInput!): ActionItem! createAdmin(data: UserAndOrganizationInput!): User! createAdvertisement(endDate: Date!, link: String!, name: String!, orgId: ID!, startDate: Date!, type: String!): Advertisement! + createCategory(category: String!, orgId: ID!): Category! createComment(data: CommentInput!, postId: ID!): Comment createDirectChat(data: createChatInput!): DirectChat! createDonation(amount: Float!, nameOfOrg: String!, nameOfUser: String!, orgId: ID!, payPalId: ID!, userId: ID!): Donation! createEvent(data: EventInput): Event! - createEventProject(data: EventProjectInput!): EventProject! createGroupChat(data: createGroupChatInput!): GroupChat! createMember(input: UserAndOrganizationInput!): Organization! createMessageChat(data: MessageChatInput!): MessageChat! @@ -495,7 +520,6 @@ type Mutation { createPlugin(pluginCreatedBy: String!, pluginDesc: String!, pluginName: String!, uninstalledOrgs: [ID!]): Plugin! createPost(data: PostInput!, file: String): Post createSampleOrganization: Boolean! - createTask(data: TaskInput!, eventProjectId: ID!): Task! createUserTag(input: CreateUserTagInput!): UserTag deleteAdvertisementById(id: ID!): DeletePayload! deleteDonationById(id: ID!): DeletePayload! @@ -512,13 +536,13 @@ 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 removeDirectChat(chatId: ID!, organizationId: ID!): DirectChat! removeEvent(id: ID!): Event! removeEventAttendee(data: EventAttendeeInput!): User! - removeEventProject(id: ID!): EventProject! removeGroupChat(chatId: ID!): GroupChat! removeMember(data: UserAndOrganizationInput!): Organization! removeOrganization(id: ID!): User! @@ -526,7 +550,6 @@ type Mutation { removeOrganizationImage(organizationId: String!): Organization! removePost(id: ID!): Post removeSampleOrganization: Boolean! - removeTask(id: ID!): Task removeUserCustomData(organizationId: ID!): UserCustomData! removeUserFromGroupChat(chatId: ID!, userId: ID!): GroupChat! removeUserImage: User! @@ -536,7 +559,6 @@ type Mutation { sendMembershipRequest(organizationId: ID!): MembershipRequest! sendMessageToDirectChat(chatId: ID!, messageContent: String!): DirectChatMessage! sendMessageToGroupChat(chatId: ID!, messageContent: String!): GroupChatMessage! - setTaskVolunteers(id: ID!, volunteers: [ID]!): Task signUp(data: UserInput!, file: String): AuthData! togglePostPin(id: ID!): Post! unassignUserTag(input: ToggleUserTagAssignInput!): User @@ -544,13 +566,13 @@ type Mutation { unlikeComment(id: ID!): Comment unlikePost(id: ID!): Post unregisterForEventByUser(id: ID!): Event! + updateActionItem(data: UpdateActionItemInput!, id: ID!): ActionItem + updateCategory(data: UpdateCategoryInput!, id: ID!): Category updateEvent(data: UpdateEventInput, id: ID!): Event! - updateEventProject(data: UpdateEventProjectInput!, id: ID!): EventProject! updateLanguage(languageCode: String!): User! updateOrganization(data: UpdateOrganizationInput, file: String, id: ID!): Organization! updatePluginStatus(id: ID!, orgId: ID!): Plugin! updatePost(data: PostUpdateInput, id: ID!): Post! - updateTask(data: UpdateTaskInput!, id: ID!): Task updateUserPassword(data: UpdateUserPasswordInput!): User! updateUserProfile(data: UpdateUserInput, file: String): User! updateUserRoleInOrganization(organizationId: ID!, role: String!, userId: ID!): Organization! @@ -564,6 +586,7 @@ input OTPInput { type Organization { _id: ID! + actionCategories: [Category] admins(adminId: ID): [User] apiUrl: URL! blockedUsers: [User] @@ -793,7 +816,11 @@ input PostWhereInput { } type Query { + actionItem(id: ID!): ActionItem + actionItemsByEvent(eventId: ID!): [ActionItem] adminPlugin(orgId: ID!): [Plugin] + categoriesByOrganization(orgId: ID!): [Category] + category(id: ID!): Category checkAuth: User! customDataByOrganization(organizationId: ID!): [UserCustomData!]! customFieldsByOrganization(id: ID!): [OrganizationCustomField] @@ -853,37 +880,6 @@ type Subscription { onPluginUpdate: Plugin } -type Task { - _id: ID! - completed: Boolean - createdAt: DateTime! - creator: User! - deadline: DateTime - description: String - event: Event! - title: String! - volunteers: [User] -} - -input TaskInput { - deadline: DateTime! - description: String! - title: String! -} - -enum TaskOrderByInput { - createdAt_ASC - createdAt_DESC - deadline_ASC - deadline_DESC - description_ASC - description_DESC - id_ASC - id_DESC - title_ASC - title_DESC -} - scalar Time input ToggleUserTagAssignInput { @@ -913,6 +909,19 @@ type UnauthorizedError implements Error { message: String! } +input UpdateActionItemInput { + assignedTo: ID + completed: Boolean + dueDate: Date + postCompletionNotes: String + preCompletionNotes: String +} + +input UpdateCategoryInput { + category: String + disabled: Boolean +} + input UpdateEventInput { allDay: Boolean description: String @@ -930,11 +939,6 @@ input UpdateEventInput { title: String } -input UpdateEventProjectInput { - description: String - title: String -} - input UpdateOrganizationInput { description: String isPublic: Boolean @@ -943,13 +947,6 @@ input UpdateOrganizationInput { visibleInSearch: Boolean } -input UpdateTaskInput { - completed: Boolean - deadline: DateTime - description: String - title: String -} - input UpdateUserInput { address: AddressInput birthDate: Date @@ -987,7 +984,6 @@ type User { adminApproved: Boolean adminFor: [Organization] appLanguageCode: String! - assignedTasks: [Task] birthDate: Date createdAt: DateTime createdEvents: [Event] @@ -1102,6 +1098,7 @@ type UserTagsConnectionResult { enum UserType { ADMIN + NON_USER SUPERADMIN USER } From dc7180e3ade3c5475ec36d96d79a9a00bc4141cf Mon Sep 17 00:00:00 2001 From: meetul Date: Thu, 11 Jan 2024 21:12:20 +0530 Subject: [PATCH 15/28] update field name and make resolvers nullable --- schema.graphql | 62 ------------------- src/models/ActionItem.ts | 6 +- src/resolvers/ActionItem/event.ts | 2 +- src/resolvers/Mutation/createActionItem.ts | 12 ++-- src/resolvers/Mutation/removeActionItem.ts | 10 +-- src/resolvers/Mutation/updateActionItem.ts | 6 +- src/resolvers/Query/actionItemsByEvent.ts | 2 +- src/typeDefs/inputs.ts | 2 +- src/typeDefs/types.ts | 26 ++++---- src/types/generatedGraphQLTypes.ts | 54 ++++++++-------- tests/helpers/actionItem.ts | 4 +- tests/resolvers/ActionItem/event.spec.ts | 2 +- tests/resolvers/Event/actionItems.spec.ts | 2 +- .../Mutation/createActionItem.spec.ts | 6 +- .../Mutation/removeActionItem.spec.ts | 4 +- tests/resolvers/Mutation/removeEvent.spec.ts | 2 +- .../Mutation/updateActionItem.spec.ts | 4 +- .../Query/actionItemsByEvent.spec.ts | 2 +- 18 files changed, 73 insertions(+), 135 deletions(-) diff --git a/schema.graphql b/schema.graphql index 36d5b599e3..54959165ed 100644 --- a/schema.graphql +++ b/schema.graphql @@ -2,23 +2,6 @@ directive @auth on FIELD_DEFINITION directive @role(requires: UserType) on FIELD_DEFINITION -type ActionItem { - _id: ID! - assignedBy: User! - assignedTo: User! - assignmentDate: Date - category: Category! - completed: Boolean - completionDate: Date - createdAt: Date! - createdBy: User! - dueDate: Date - event: Event - postCompletionNotes: String - preCompletionNotes: String - updatedAt: Date! -} - type Address { city: String countryCode: CountryCode @@ -67,16 +50,6 @@ type AuthData { user: User! } -type Category { - _id: ID! - category: String! - createdAt: Date! - createdBy: User! - disabled: Boolean! - org: Organization! - updatedAt: Date! -} - type CheckIn { _id: ID! allotedRoom: String @@ -125,17 +98,6 @@ type ConnectionPageInfo { scalar CountryCode -input CreateActionItemInput { - assignedTo: ID! - assignmentDate: Date - completed: Boolean - completionDate: Date - dueDate: Date - event: ID - postCompletionNotes: String - preCompletionNotes: String -} - input CreateUserTagInput { name: String! organizationId: ID! @@ -231,7 +193,6 @@ interface Error { type Event { _id: ID! - actionItems: [ActionItem] admins(adminId: ID): [User] allDay: Boolean! attendees: [User!]! @@ -505,10 +466,8 @@ type Mutation { blockUser(organizationId: ID!, userId: ID!): User! cancelMembershipRequest(membershipRequestId: ID!): MembershipRequest! checkIn(data: CheckInInput!): CheckIn! - createActionItem(categoryId: ID!, data: CreateActionItemInput!): ActionItem! createAdmin(data: UserAndOrganizationInput!): User! createAdvertisement(endDate: Date!, link: String!, name: String!, orgId: ID!, startDate: Date!, type: String!): Advertisement! - createCategory(category: String!, orgId: ID!): Category! createComment(data: CommentInput!, postId: ID!): Comment createDirectChat(data: createChatInput!): DirectChat! createDonation(amount: Float!, nameOfOrg: String!, nameOfUser: String!, orgId: ID!, payPalId: ID!, userId: ID!): Donation! @@ -536,7 +495,6 @@ 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 @@ -566,8 +524,6 @@ type Mutation { unlikeComment(id: ID!): Comment unlikePost(id: ID!): Post unregisterForEventByUser(id: ID!): Event! - updateActionItem(data: UpdateActionItemInput!, id: ID!): ActionItem - updateCategory(data: UpdateCategoryInput!, id: ID!): Category updateEvent(data: UpdateEventInput, id: ID!): Event! updateLanguage(languageCode: String!): User! updateOrganization(data: UpdateOrganizationInput, file: String, id: ID!): Organization! @@ -586,7 +542,6 @@ input OTPInput { type Organization { _id: ID! - actionCategories: [Category] admins(adminId: ID): [User] apiUrl: URL! blockedUsers: [User] @@ -816,11 +771,7 @@ input PostWhereInput { } type Query { - actionItem(id: ID!): ActionItem - actionItemsByEvent(eventId: ID!): [ActionItem] adminPlugin(orgId: ID!): [Plugin] - categoriesByOrganization(orgId: ID!): [Category] - category(id: ID!): Category checkAuth: User! customDataByOrganization(organizationId: ID!): [UserCustomData!]! customFieldsByOrganization(id: ID!): [OrganizationCustomField] @@ -909,19 +860,6 @@ type UnauthorizedError implements Error { message: String! } -input UpdateActionItemInput { - assignedTo: ID - completed: Boolean - dueDate: Date - postCompletionNotes: String - preCompletionNotes: String -} - -input UpdateCategoryInput { - category: String - disabled: Boolean -} - input UpdateEventInput { allDay: Boolean description: String diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index def28541ab..705cb81590 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -19,7 +19,7 @@ export interface InterfaceActionItem { dueDate: Date; completionDate: Date; completed: boolean; - event: PopulatedDoc; + eventId: PopulatedDoc; createdBy: PopulatedDoc; createdAt: Date; updatedAt: Date; @@ -36,7 +36,7 @@ export interface InterfaceActionItem { * @param dueDate - Due date. * @param completionDate - Completion date. * @param completed - Whether the ActionItem has been completed. - * @param event - Event to which the ActionItem is related, refer to the `Event` model. + * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. * @param createdBy - User who created the ActionItem, refer to the `User` model. * @param createdAt - Timestamp when the ActionItem was created. * @param updatedAt - Timestamp when the ActionItem was last updated. @@ -81,7 +81,7 @@ const actionItemSchema = new Schema( type: Boolean, default: false, }, - event: { + eventId: { type: Schema.Types.ObjectId, ref: "Event", }, diff --git a/src/resolvers/ActionItem/event.ts b/src/resolvers/ActionItem/event.ts index dee1a021fc..e79144e5a9 100644 --- a/src/resolvers/ActionItem/event.ts +++ b/src/resolvers/ActionItem/event.ts @@ -3,6 +3,6 @@ import { Event } from "../../models"; export const event: ActionItemResolvers["event"] = async (parent) => { return Event.findOne({ - _id: parent.event, + _id: parent.eventId, }).lean(); }; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index c928ff3c4b..176cb1f864 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -91,16 +91,16 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( let currentUserIsEventAdmin = false; - if (args.data.event) { + if (args.data.eventId) { let currEvent: InterfaceEvent | null; - const eventFoundInCache = await findEventsInCache([args.data.event]); + const eventFoundInCache = await findEventsInCache([args.data.eventId]); currEvent = eventFoundInCache[0]; if (eventFoundInCache[0] === null) { currEvent = await Event.findOne({ - _id: args.data.event, + _id: args.data.eventId, }).lean(); if (currEvent !== null) { @@ -153,14 +153,14 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( postCompletionNotes: args.data.postCompletionNotes, dueDate: args.data.dueDate, completionDate: args.data.completionDate, - event: args.data.event, + eventId: args.data.eventId, createdBy: context.userId, }); - if (args.data.event) { + if (args.data.eventId) { await Event.findOneAndUpdate( { - _id: args.data.event, + _id: args.data.eventId, }, { $push: { actionItems: createActionItem._id }, diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 62b603919a..9a3901a5ae 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -64,16 +64,16 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( let currentUserIsEventAdmin = false; - if (actionItem.event) { + if (actionItem.eventId) { let currEvent: InterfaceEvent | null; - const eventFoundInCache = await findEventsInCache([actionItem.event]); + const eventFoundInCache = await findEventsInCache([actionItem.eventId]); currEvent = eventFoundInCache[0]; if (eventFoundInCache[0] === null) { currEvent = await Event.findOne({ - _id: actionItem.event, + _id: actionItem.eventId, }).lean(); if (currEvent !== null) { @@ -110,10 +110,10 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( ); } - if (actionItem.event) { + if (actionItem.eventId) { await Event.updateOne( { - _id: actionItem.event, + _id: actionItem.eventId, }, { $pull: { actionItems: actionItem._id }, diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index a53623cad6..3a3e742587 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -115,16 +115,16 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( let currentUserIsEventAdmin = false; - if (actionItem.event) { + if (actionItem.eventId) { let currEvent: InterfaceEvent | null; - const eventFoundInCache = await findEventsInCache([actionItem.event]); + const eventFoundInCache = await findEventsInCache([actionItem.eventId]); currEvent = eventFoundInCache[0]; if (eventFoundInCache[0] === null) { currEvent = await Event.findOne({ - _id: actionItem.event, + _id: actionItem.eventId, }).lean(); if (currEvent !== null) { diff --git a/src/resolvers/Query/actionItemsByEvent.ts b/src/resolvers/Query/actionItemsByEvent.ts index 12587000b3..d031dfdb78 100644 --- a/src/resolvers/Query/actionItemsByEvent.ts +++ b/src/resolvers/Query/actionItemsByEvent.ts @@ -11,7 +11,7 @@ export const actionItemsByEvent: QueryResolvers["actionItemsByEvent"] = async ( args ) => { const actionItems = await ActionItem.find({ - event: args.eventId, + eventId: args.eventId, }).lean(); return actionItems; diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index 3d13984713..23944165d4 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -43,7 +43,7 @@ export const inputs = gql` dueDate: Date completionDate: Date completed: Boolean - event: ID + eventId: ID } input CursorPaginationInput { diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index a225e19d7d..1a4a884ba4 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -19,9 +19,9 @@ export const types = gql` # Action Item for a Category type ActionItem { _id: ID! - assignedTo: User! - assignedBy: User! - category: Category! + assignedTo: User + assignedBy: User + category: Category preCompletionNotes: String postCompletionNotes: String assignmentDate: Date @@ -29,7 +29,7 @@ export const types = gql` completionDate: Date completed: Boolean event: Event - createdBy: User! + createdBy: User createdAt: Date! updatedAt: Date! } @@ -132,14 +132,14 @@ export const types = gql` latitude: Latitude longitude: Longitude organization: Organization - creator: User! - attendees: [User!]! + creator: User + attendees: [User!] # For each attendee, gives information about whether he/she has checked in yet or not - attendeesCheckInStatus: [CheckInStatus!]! + attendeesCheckInStatus: [CheckInStatus!] admins(adminId: ID): [User] actionItems: [ActionItem] status: Status! - feedback: [Feedback!]! + feedback: [Feedback!] averageFeedbackScore: Float } @@ -221,7 +221,7 @@ export const types = gql` description: String! location: String isPublic: Boolean! - creator: User! + creator: User members: [User] admins(adminId: ID): [User] actionCategories: [Category] @@ -229,7 +229,7 @@ export const types = gql` blockedUsers: [User] visibleInSearch: Boolean! apiUrl: URL! - createdAt: DateTime + createdAt: DateTime! pinnedPosts: [Post] userTags( after: String @@ -237,7 +237,7 @@ export const types = gql` first: PositiveInt last: PositiveInt ): UserTagsConnection - customFields: [OrganizationCustomField!]! + customFields: [OrganizationCustomField!] } type OrganizationCustomField { @@ -334,9 +334,9 @@ export const types = gql` type Category { _id: ID! category: String! - org: Organization! + org: Organization disabled: Boolean! - createdBy: User! + createdBy: User createdAt: Date! updatedAt: Date! } diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 0ecb5e6f77..61056166fd 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -54,14 +54,14 @@ export type Scalars = { export type ActionItem = { __typename?: 'ActionItem'; _id: Scalars['ID']; - assignedBy: User; - assignedTo: User; + assignedBy?: Maybe; + assignedTo?: Maybe; assignmentDate?: Maybe; - category: Category; + category?: Maybe; completed?: Maybe; completionDate?: Maybe; createdAt: Scalars['Date']; - createdBy: User; + createdBy?: Maybe; dueDate?: Maybe; event?: Maybe; postCompletionNotes?: Maybe; @@ -125,9 +125,9 @@ export type Category = { _id: Scalars['ID']; category: Scalars['String']; createdAt: Scalars['Date']; - createdBy: User; + createdBy?: Maybe; disabled: Scalars['Boolean']; - org: Organization; + org?: Maybe; updatedAt: Scalars['Date']; }; @@ -187,7 +187,7 @@ export type CreateActionItemInput = { completed?: InputMaybe; completionDate?: InputMaybe; dueDate?: InputMaybe; - event?: InputMaybe; + eventId?: InputMaybe; postCompletionNotes?: InputMaybe; preCompletionNotes?: InputMaybe; }; @@ -287,14 +287,14 @@ export type Event = { actionItems?: Maybe>>; admins?: Maybe>>; allDay: Scalars['Boolean']; - attendees: Array; - attendeesCheckInStatus: Array; + attendees?: Maybe>; + attendeesCheckInStatus?: Maybe>; averageFeedbackScore?: Maybe; - creator: User; + creator?: Maybe; description: Scalars['String']; endDate: Scalars['Date']; endTime?: Maybe; - feedback: Array; + feedback?: Maybe>; isPublic: Scalars['Boolean']; isRegisterable: Scalars['Boolean']; latitude?: Maybe; @@ -1124,9 +1124,9 @@ export type Organization = { admins?: Maybe>>; apiUrl: Scalars['URL']; blockedUsers?: Maybe>>; - createdAt?: Maybe; - creator: User; - customFields: Array; + createdAt: Scalars['DateTime']; + creator?: Maybe; + customFields?: Maybe>; description: Scalars['String']; image?: Maybe; isPublic: Scalars['Boolean']; @@ -2257,14 +2257,14 @@ export type RoleDirectiveResolver = { _id?: Resolver; - assignedBy?: Resolver; - assignedTo?: Resolver; + assignedBy?: Resolver, ParentType, ContextType>; + assignedTo?: Resolver, ParentType, ContextType>; assignmentDate?: Resolver, ParentType, ContextType>; - category?: Resolver; + category?: Resolver, ParentType, ContextType>; completed?: Resolver, ParentType, ContextType>; completionDate?: Resolver, ParentType, ContextType>; createdAt?: Resolver; - createdBy?: Resolver; + createdBy?: Resolver, ParentType, ContextType>; dueDate?: Resolver, ParentType, ContextType>; event?: Resolver, ParentType, ContextType>; postCompletionNotes?: Resolver, ParentType, ContextType>; @@ -2321,9 +2321,9 @@ export type CategoryResolvers; category?: Resolver; createdAt?: Resolver; - createdBy?: Resolver; + createdBy?: Resolver, ParentType, ContextType>; disabled?: Resolver; - org?: Resolver; + org?: Resolver, ParentType, ContextType>; updatedAt?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }; @@ -2430,14 +2430,14 @@ export type EventResolvers>>, ParentType, ContextType>; admins?: Resolver>>, ParentType, ContextType, Partial>; allDay?: Resolver; - attendees?: Resolver, ParentType, ContextType>; - attendeesCheckInStatus?: Resolver, ParentType, ContextType>; + attendees?: Resolver>, ParentType, ContextType>; + attendeesCheckInStatus?: Resolver>, ParentType, ContextType>; averageFeedbackScore?: Resolver, ParentType, ContextType>; - creator?: Resolver; + creator?: Resolver, ParentType, ContextType>; description?: Resolver; endDate?: Resolver; endTime?: Resolver, ParentType, ContextType>; - feedback?: Resolver, ParentType, ContextType>; + feedback?: Resolver>, ParentType, ContextType>; isPublic?: Resolver; isRegisterable?: Resolver; latitude?: Resolver, ParentType, ContextType>; @@ -2688,9 +2688,9 @@ export type OrganizationResolvers>>, ParentType, ContextType, Partial>; apiUrl?: Resolver; blockedUsers?: Resolver>>, ParentType, ContextType>; - createdAt?: Resolver, ParentType, ContextType>; - creator?: Resolver; - customFields?: Resolver, ParentType, ContextType>; + createdAt?: Resolver; + creator?: Resolver, ParentType, ContextType>; + customFields?: Resolver>, ParentType, ContextType>; description?: Resolver; image?: Resolver, ParentType, ContextType>; isPublic?: Resolver; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index 9e4a4fe780..0ba19eb7ba 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -102,7 +102,7 @@ export const createTestActionItems = async (): Promise< _id: testActionItem1?._id, }, { - event: testEvent?._id, + eventId: testEvent?._id, } ); @@ -111,7 +111,7 @@ export const createTestActionItems = async (): Promise< _id: testActionItem2?._id, }, { - event: testEvent?._id, + eventId: testEvent?._id, } ); diff --git a/tests/resolvers/ActionItem/event.spec.ts b/tests/resolvers/ActionItem/event.spec.ts index c5911097ad..6e3ac56841 100644 --- a/tests/resolvers/ActionItem/event.spec.ts +++ b/tests/resolvers/ActionItem/event.spec.ts @@ -48,7 +48,7 @@ describe("resolvers -> ActionItem -> event", () => { _id: testActionItem?._id, }, { - event: testEvent?._id, + eventId: testEvent?._id, }, { new: true, diff --git a/tests/resolvers/Event/actionItems.spec.ts b/tests/resolvers/Event/actionItems.spec.ts index 916a437fdd..e243fcbad5 100644 --- a/tests/resolvers/Event/actionItems.spec.ts +++ b/tests/resolvers/Event/actionItems.spec.ts @@ -30,7 +30,7 @@ describe("resolvers -> Organization -> actionItems", () => { ); const actionItems = await ActionItem.find({ - event: testEvent?._id, + eventId: testEvent?._id, }).lean(); expect(actionCategoriesPayload).toEqual(actionItems); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index a407bfeb09..33035adfba 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -152,7 +152,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { } }); - it(`throws NotFoundError if no event exists with _id === args.data.event`, async () => { + it(`throws NotFoundError if no event exists with _id === args.data.eventId`, async () => { await User.findOneAndUpdate( { _id: randomUser?._id, @@ -166,7 +166,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { const args: MutationCreateActionItemArgs = { data: { assignedTo: randomUser?._id, - event: Types.ObjectId().toString(), + eventId: Types.ObjectId().toString(), }, categoryId: testCategory?._id, }; @@ -204,7 +204,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { const args: MutationCreateActionItemArgs = { data: { assignedTo: randomUser?._id, - event: testEvent?._id, + eventId: testEvent?._id, }, categoryId: testCategory?._id, }; diff --git a/tests/resolvers/Mutation/removeActionItem.spec.ts b/tests/resolvers/Mutation/removeActionItem.spec.ts index 8bd74946df..848a1d809d 100644 --- a/tests/resolvers/Mutation/removeActionItem.spec.ts +++ b/tests/resolvers/Mutation/removeActionItem.spec.ts @@ -195,7 +195,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { _id: newTestActionItem?._id, }, { - event: Types.ObjectId().toString(), + eventId: Types.ObjectId().toString(), }, { new: true, @@ -229,7 +229,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { _id: newTestActionItem?._id, }, { - event: testEvent?._id, + eventId: testEvent?._id, }, { new: true, diff --git a/tests/resolvers/Mutation/removeEvent.spec.ts b/tests/resolvers/Mutation/removeEvent.spec.ts index d54f94801d..65e1faa3b3 100644 --- a/tests/resolvers/Mutation/removeEvent.spec.ts +++ b/tests/resolvers/Mutation/removeEvent.spec.ts @@ -216,7 +216,7 @@ describe("resolvers -> Mutation -> removeEvent", () => { expect(removeEventPayload).toEqual(newTestEvent?.toObject()); const deletedActionItems = await ActionItem.find({ - event: newTestEvent?._id, + eventId: newTestEvent?._id, }); expect(deletedActionItems).toEqual([]); diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts index cdf941580e..9aa73dd4f8 100644 --- a/tests/resolvers/Mutation/updateActionItem.spec.ts +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -235,7 +235,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { _id: testActionItem?._id, }, { - event: Types.ObjectId().toString(), + eventId: Types.ObjectId().toString(), }, { new: true, @@ -275,7 +275,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { _id: testActionItem?._id, }, { - event: testEvent?._id, + eventId: testEvent?._id, }, { new: true, diff --git a/tests/resolvers/Query/actionItemsByEvent.spec.ts b/tests/resolvers/Query/actionItemsByEvent.spec.ts index c30dadb68a..34f161eee7 100644 --- a/tests/resolvers/Query/actionItemsByEvent.spec.ts +++ b/tests/resolvers/Query/actionItemsByEvent.spec.ts @@ -33,7 +33,7 @@ describe("resolvers -> Query -> actionItemsByEvent", () => { ); const actionItemsByEventInfo = await ActionItem.find({ - event: testEvent?._id, + eventId: testEvent?._id, }).lean(); expect(actionItemsByEventPayload).toEqual(actionItemsByEventInfo); From 40a107e70ed9c6946f378f969e0767a317923bef Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 12 Jan 2024 19:46:53 +0530 Subject: [PATCH 16/28] merge upstream/develop into develop --- .github/workflows/check_files_submitted.py | 2 +- CONTRIBUTING.md | 2 +- INSTALLATION.md | 2 +- package-lock.json | 10 ----- schema.graphql | 12 +++--- scripts/githooks/update-toc.js | 1 - src/app.ts | 12 +++--- src/models/Organization.ts | 21 ++++++---- .../Mutation/joinPublicOrganization.ts | 18 ++++---- .../Query/helperFunctions/getWhere.ts | 8 ++-- src/typeDefs/inputs.ts | 12 +++--- src/typeDefs/types.ts | 8 ++-- src/types/generatedGraphQLTypes.ts | 16 +++---- tests/helpers/userAndOrg.ts | 10 ++--- .../Mutation/createOrganization.spec.ts | 42 +++++++++---------- .../Mutation/joinPublicOrganization.spec.ts | 29 +++++++------ .../Mutation/updateOrganization.spec.ts | 23 +++++----- .../Query/organizationsConnection.spec.ts | 18 ++++---- 18 files changed, 116 insertions(+), 130 deletions(-) diff --git a/.github/workflows/check_files_submitted.py b/.github/workflows/check_files_submitted.py index ac3263bd5b..5a49401982 100644 --- a/.github/workflows/check_files_submitted.py +++ b/.github/workflows/check_files_submitted.py @@ -111,4 +111,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73ac666600..00093009dc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -314,4 +314,4 @@ If you are participating in any of the various internship programs we ar members There are many ways to communicate with the community. 1. The Palisadoes Foundation has a Slack channel where members can assist with support and clarification. Visit the [Talawa GitHub repository home page](https://github.com/PalisadoesFoundation/talawa) for the link to join our slack channel. -1. We also have a technical email list run by [freelists.org](https://www.freelists.org/). Search for "palisadoes" and join. Members on this list are also periodically added to our marketing email list that focuses on less technical aspects of our work. +1. We also have a technical email list run by [freelists.org](https://www.freelists.org/). Search for "palisadoes" and join. Members on this list are also periodically added to our marketing email list that focuses on less technical aspects of our work. \ No newline at end of file diff --git a/INSTALLATION.md b/INSTALLATION.md index f52f1cb86d..5aafbc4ba2 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -769,4 +769,4 @@ Talawa-api makes use of `vitest` to run tests because it is much faster than `je You can run the tests for talawa-api using this command: - npm run test + npm run test \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 52ec94c785..388a35a720 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "@graphql-tools/schema": "^10.0.0", "@graphql-tools/utils": "^10.0.11", "@types/graphql-upload": "^16.0.5", - "@types/jwt-decode": "^3.1.0", "@types/yargs": "^17.0.32", "axios": "^1.6.0", "bcryptjs": "^2.4.3", @@ -5478,15 +5477,6 @@ "@types/node": "*" } }, - "node_modules/@types/jwt-decode": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/jwt-decode/-/jwt-decode-3.1.0.tgz", - "integrity": "sha512-tthwik7TKkou3mVnBnvVuHnHElbjtdbM63pdBCbZTirCt3WAdM73Y79mOri7+ljsS99ZVwUFZHLMxJuJnv/z1w==", - "deprecated": "This is a stub types definition. jwt-decode provides its own type definitions, so you do not need this installed.", - "dependencies": { - "jwt-decode": "*" - } - }, "node_modules/@types/keygrip": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@types/keygrip/-/keygrip-1.0.4.tgz", diff --git a/schema.graphql b/schema.graphql index 54959165ed..8dd46dc9f1 100644 --- a/schema.graphql +++ b/schema.graphql @@ -550,12 +550,12 @@ type Organization { customFields: [OrganizationCustomField!]! description: String! image: String - isPublic: Boolean! location: String members: [User] membershipRequests: [MembershipRequest] name: String! pinnedPosts: [Post] + userRegistrationRequired: Boolean! userTags(after: String, before: String, first: PositiveInt, last: PositiveInt): UserTagsConnection visibleInSearch: Boolean! } @@ -573,8 +573,8 @@ type OrganizationInfoNode { creator: User! description: String! image: String - isPublic: Boolean! name: String! + userRegistrationRequired: Boolean! visibleInSearch: Boolean! } @@ -583,10 +583,10 @@ input OrganizationInput { attendees: String description: String! image: String - isPublic: Boolean! location: String name: String! - visibleInSearch: Boolean! + userRegistrationRequired: Boolean + visibleInSearch: Boolean } enum OrganizationOrderByInput { @@ -621,13 +621,13 @@ input OrganizationWhereInput { id_not: ID id_not_in: [ID!] id_starts_with: ID - isPublic: Boolean name: String name_contains: String name_in: [String!] name_not: String name_not_in: [String!] name_starts_with: String + userRegistrationRequired: Boolean visibleInSearch: Boolean } @@ -879,9 +879,9 @@ input UpdateEventInput { input UpdateOrganizationInput { description: String - isPublic: Boolean location: String name: String + userRegistrationRequired: Boolean visibleInSearch: Boolean } diff --git a/scripts/githooks/update-toc.js b/scripts/githooks/update-toc.js index ffc6df4e74..902126095c 100644 --- a/scripts/githooks/update-toc.js +++ b/scripts/githooks/update-toc.js @@ -9,5 +9,4 @@ markdownFiles.forEach((file) => { const command = `markdown-toc -i "${file}" --bullets "-"`; execSync(command, { stdio: "inherit" }); }); - console.log("Table of contents updated successfully."); diff --git a/src/app.ts b/src/app.ts index 9441bf8d05..e3eeef04d3 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,14 +1,14 @@ +import cors from "cors"; import express from "express"; -import { rateLimit } from "express-rate-limit"; -import helmet from "helmet"; import mongoSanitize from "express-mongo-sanitize"; -import cors from "cors"; -import requestLogger from "morgan"; +import rateLimit from "express-rate-limit"; +import { express as voyagerMiddleware } from "graphql-voyager/middleware"; +import helmet from "helmet"; import i18n from "i18n"; +import requestLogger from "morgan"; +import path from "path"; import { appConfig } from "./config"; import { requestContext, requestTracing, stream } from "./libraries"; -import { express as voyagerMiddleware } from "graphql-voyager/middleware"; -import path from "path"; //@ts-ignore import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.mjs"; diff --git a/src/models/Organization.ts b/src/models/Organization.ts index a5256ebe12..1dc6420c4c 100644 --- a/src/models/Organization.ts +++ b/src/models/Organization.ts @@ -1,10 +1,10 @@ -import type { PopulatedDoc, Types, Document, Model } from "mongoose"; +import type { Document, Model, PopulatedDoc, Types } from "mongoose"; import { Schema, model, models } from "mongoose"; import type { InterfaceMembershipRequest } from "./MembershipRequest"; import type { InterfaceMessage } from "./Message"; +import type { InterfaceOrganizationCustomField } from "./OrganizationCustomField"; import type { InterfacePost } from "./Post"; import type { InterfaceUser } from "./User"; -import type { InterfaceOrganizationCustomField } from "./OrganizationCustomField"; import type { InterfaceCategory } from "./Category"; /** * This is an interface that represents a database(MongoDB) document for Organization. @@ -16,7 +16,6 @@ export interface InterfaceOrganization { name: string; description: string; location: string | undefined; - isPublic: boolean; creator: PopulatedDoc; status: string; members: PopulatedDoc[]; @@ -27,9 +26,10 @@ export interface InterfaceOrganization { pinnedPosts: PopulatedDoc[]; membershipRequests: PopulatedDoc[]; blockedUsers: PopulatedDoc[]; - visibleInSearch: boolean | undefined; customFields: PopulatedDoc[]; createdAt: Date; + userRegistrationRequired: boolean; + visibleInSearch: boolean; } /** * This describes the schema for a `Organization` that corresponds to `InterfaceOrganization` document. @@ -38,7 +38,6 @@ export interface InterfaceOrganization { * @param name - Organization name. * @param description - Organization description. * @param location - Organization location. - * @param isPublic - Organization visibility. * @param creator - Organization creator, referring to `User` model. * @param status - Status. * @param members - Collection of members, each object refer to `User` model. @@ -69,8 +68,14 @@ const organizationSchema = new Schema({ location: { type: String, }, - isPublic: { + userRegistrationRequired: { + type: Boolean, + required: true, + default: false, + }, + visibleInSearch: { type: Boolean, + default: true, required: true, }, creator: { @@ -134,9 +139,7 @@ const organizationSchema = new Schema({ ref: "User", }, ], - visibleInSearch: { - type: Boolean, - }, + customFields: [ { type: Schema.Types.ObjectId, diff --git a/src/resolvers/Mutation/joinPublicOrganization.ts b/src/resolvers/Mutation/joinPublicOrganization.ts index 4784c12b77..2f24dd36e9 100644 --- a/src/resolvers/Mutation/joinPublicOrganization.ts +++ b/src/resolvers/Mutation/joinPublicOrganization.ts @@ -1,15 +1,15 @@ -import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; -import { User, Organization } from "../../models"; -import { errors, requestContext } from "../../libraries"; +import { Types } from "mongoose"; import { ORGANIZATION_NOT_FOUND_ERROR, USER_ALREADY_MEMBER_ERROR, USER_NOT_AUTHORIZED_ERROR, USER_NOT_FOUND_ERROR, } from "../../constants"; -import { findOrganizationsInCache } from "../../services/OrganizationCache/findOrganizationsInCache"; +import { errors, requestContext } from "../../libraries"; +import { Organization, User } from "../../models"; import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrganizations"; -import { Types } from "mongoose"; +import { findOrganizationsInCache } from "../../services/OrganizationCache/findOrganizationsInCache"; +import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; /** * This function enables to join a public organization. * @param _parent - parent of current request @@ -17,7 +17,7 @@ import { Types } from "mongoose"; * @param context - context of entire application * @remarks The following checks are done: * 1. If the organization exists - * 2. If the organization is public. + * 2. If the organization required user registration * 3. If the user exists * 4. If the user is already a member of the organization. * @returns Updated user. @@ -49,19 +49,17 @@ export const joinPublicOrganization: MutationResolvers["joinPublicOrganization"] ); } - // Checks whether organization is public. - if (organization.isPublic === false) { + // Checks whether organization requires user registration. + if (organization.userRegistrationRequired === true) { throw new errors.UnauthorizedError( requestContext.translate(USER_NOT_AUTHORIZED_ERROR.MESSAGE), USER_NOT_AUTHORIZED_ERROR.CODE, USER_NOT_AUTHORIZED_ERROR.PARAM ); } - const currentUserExists = await User.exists({ _id: context.userId, }); - // Checks whether currentUser with _id === context.userId exists. if (currentUserExists === false) { throw new errors.NotFoundError( diff --git a/src/resolvers/Query/helperFunctions/getWhere.ts b/src/resolvers/Query/helperFunctions/getWhere.ts index b54d3b4e74..a9dfbe4613 100644 --- a/src/resolvers/Query/helperFunctions/getWhere.ts +++ b/src/resolvers/Query/helperFunctions/getWhere.ts @@ -377,7 +377,6 @@ export const getWhere = ( apiUrl: regexp, }; } - // Returns organizations with provided visibleInSearch condition if (where.visibleInSearch !== undefined) { wherePayload = { @@ -385,12 +384,11 @@ export const getWhere = ( visibleInSearch: where.visibleInSearch, }; } - - // Returns organizations with provided isPublic condition - if (where.isPublic !== undefined) { + // Returns organizations with provided userRegistrationRequired condition + if (where.userRegistrationRequired !== undefined) { wherePayload = { ...wherePayload, - isPublic: where.isPublic, + isPublic: where.userRegistrationRequired, }; } diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index 23944165d4..57fe68d79e 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -151,10 +151,10 @@ export const inputs = gql` description: String! location: String attendees: String - isPublic: Boolean! - visibleInSearch: Boolean! apiUrl: URL image: String + userRegistrationRequired: Boolean + visibleInSearch: Boolean } input OrganizationWhereInput { @@ -185,10 +185,8 @@ export const inputs = gql` apiUrl_not_in: [URL!] apiUrl_contains: URL apiUrl_starts_with: URL - + userRegistrationRequired: Boolean visibleInSearch: Boolean - - isPublic: Boolean } input OTPInput { @@ -292,9 +290,9 @@ export const inputs = gql` input UpdateOrganizationInput { name: String description: String - isPublic: Boolean - visibleInSearch: Boolean location: String + userRegistrationRequired: Boolean + visibleInSearch: Boolean } input UpdateUserTagInput { diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 1a4a884ba4..e7a9a800d1 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -220,14 +220,14 @@ export const types = gql` name: String! description: String! location: String - isPublic: Boolean! creator: User members: [User] admins(adminId: ID): [User] actionCategories: [Category] membershipRequests: [MembershipRequest] - blockedUsers: [User] + userRegistrationRequired: Boolean! visibleInSearch: Boolean! + blockedUsers: [User] apiUrl: URL! createdAt: DateTime! pinnedPosts: [Post] @@ -252,10 +252,10 @@ export const types = gql` _id: ID! name: String! description: String! - isPublic: Boolean! creator: User! - visibleInSearch: Boolean! apiUrl: URL! + userRegistrationRequired: Boolean! + visibleInSearch: Boolean! } type OtpData { diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 61056166fd..64f172cb1c 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1129,12 +1129,12 @@ export type Organization = { customFields?: Maybe>; description: Scalars['String']; image?: Maybe; - isPublic: Scalars['Boolean']; location?: Maybe; members?: Maybe>>; membershipRequests?: Maybe>>; name: Scalars['String']; pinnedPosts?: Maybe>>; + userRegistrationRequired: Scalars['Boolean']; userTags?: Maybe; visibleInSearch: Scalars['Boolean']; }; @@ -1167,8 +1167,8 @@ export type OrganizationInfoNode = { creator: User; description: Scalars['String']; image?: Maybe; - isPublic: Scalars['Boolean']; name: Scalars['String']; + userRegistrationRequired: Scalars['Boolean']; visibleInSearch: Scalars['Boolean']; }; @@ -1177,10 +1177,10 @@ export type OrganizationInput = { attendees?: InputMaybe; description: Scalars['String']; image?: InputMaybe; - isPublic: Scalars['Boolean']; location?: InputMaybe; name: Scalars['String']; - visibleInSearch: Scalars['Boolean']; + userRegistrationRequired?: InputMaybe; + visibleInSearch?: InputMaybe; }; export type OrganizationOrderByInput = @@ -1214,13 +1214,13 @@ export type OrganizationWhereInput = { id_not?: InputMaybe; id_not_in?: InputMaybe>; id_starts_with?: InputMaybe; - isPublic?: InputMaybe; name?: InputMaybe; name_contains?: InputMaybe; name_in?: InputMaybe>; name_not?: InputMaybe; name_not_in?: InputMaybe>; name_starts_with?: InputMaybe; + userRegistrationRequired?: InputMaybe; visibleInSearch?: InputMaybe; }; @@ -1673,9 +1673,9 @@ export type UpdateEventInput = { export type UpdateOrganizationInput = { description?: InputMaybe; - isPublic?: InputMaybe; location?: InputMaybe; name?: InputMaybe; + userRegistrationRequired?: InputMaybe; visibleInSearch?: InputMaybe; }; @@ -2693,12 +2693,12 @@ export type OrganizationResolvers>, ParentType, ContextType>; description?: Resolver; image?: Resolver, ParentType, ContextType>; - isPublic?: Resolver; location?: Resolver, ParentType, ContextType>; members?: Resolver>>, ParentType, ContextType>; membershipRequests?: Resolver>>, ParentType, ContextType>; name?: Resolver; pinnedPosts?: Resolver>>, ParentType, ContextType>; + userRegistrationRequired?: Resolver; userTags?: Resolver, ParentType, ContextType, Partial>; visibleInSearch?: Resolver; __isTypeOf?: IsTypeOfResolverFn; @@ -2718,8 +2718,8 @@ export type OrganizationInfoNodeResolvers; description?: Resolver; image?: Resolver, ParentType, ContextType>; - isPublic?: Resolver; name?: Resolver; + userRegistrationRequired?: Resolver; visibleInSearch?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }; diff --git a/tests/helpers/userAndOrg.ts b/tests/helpers/userAndOrg.ts index c7c189c227..fb7bcffa9d 100644 --- a/tests/helpers/userAndOrg.ts +++ b/tests/helpers/userAndOrg.ts @@ -28,12 +28,12 @@ export const createTestOrganizationWithAdmin = async ( userID: string, isMember = true, isAdmin = true, - isPublic = true + userRegistrationRequired = false ): Promise => { const testOrganization = await Organization.create({ name: `orgName${nanoid().toLowerCase()}`, description: `orgDesc${nanoid().toLowerCase()}`, - isPublic: isPublic ? true : false, + userRegistrationRequired: userRegistrationRequired ? true : false, creator: userID, admins: isAdmin ? [userID] : [], members: isMember ? [userID] : [], @@ -58,14 +58,14 @@ export const createTestOrganizationWithAdmin = async ( export const createTestUserAndOrganization = async ( isMember = true, isAdmin = true, - isPublic = true + userRegistrationRequired = false ): Promise<[TestUserType, TestOrganizationType]> => { const testUser = await createTestUser(); const testOrganization = await createTestOrganizationWithAdmin( testUser?._id, isMember, isAdmin, - isPublic + userRegistrationRequired ); return [testUser, testOrganization]; }; @@ -77,7 +77,7 @@ export const createOrganizationwithVisibility = async ( const testOrganization = await Organization.create({ name: `orgName${nanoid().toLowerCase()}`, description: `orgDesc${nanoid().toLowerCase()}`, - isPublic: true, + userRegistrationRequired: false, creator: userID, admins: [userID], members: [userID], diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index 9c6d7009e0..dacac9a9cf 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -4,24 +4,24 @@ import { Category, User } from "../../../src/models"; import type { MutationCreateOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; -import { createOrganization as createOrganizationResolver } from "../../../src/resolvers/Mutation/createOrganization"; import { - LENGTH_VALIDATION_ERROR, - USER_NOT_AUTHORIZED_SUPERADMIN, -} from "../../../src/constants"; -import * as uploadImage from "../../../src/utilities/uploadImage"; -import { - beforeAll, afterAll, + afterEach, + beforeAll, describe, - it, expect, + it, vi, - afterEach, } from "vitest"; +import { + LENGTH_VALIDATION_ERROR, + USER_NOT_AUTHORIZED_SUPERADMIN, +} from "../../../src/constants"; +import { createOrganization as createOrganizationResolver } from "../../../src/resolvers/Mutation/createOrganization"; +import * as uploadEncodedImage from "../../../src/utilities/encodedImageStorage/uploadEncodedImage"; +import * as uploadImage from "../../../src/utilities/uploadImage"; import type { TestUserType } from "../../helpers/user"; import { createTestUserFunc } from "../../helpers/user"; -import * as uploadEncodedImage from "../../../src/utilities/encodedImageStorage/uploadEncodedImage"; let testUser: TestUserType; let MONGOOSE_INSTANCE: typeof mongoose; @@ -54,8 +54,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { const args: MutationCreateOrganizationArgs = { data: { description: "description", - isPublic: true, name: "name", + userRegistrationRequired: true, visibleInSearch: true, apiUrl: "apiUrl", location: "location", @@ -105,10 +105,10 @@ describe("resolvers -> Mutation -> createOrganization", () => { const args: MutationCreateOrganizationArgs = { data: { description: "description", - isPublic: true, name: "name", - visibleInSearch: true, apiUrl: "apiUrl", + userRegistrationRequired: true, + visibleInSearch: true, location: "location", }, file: "imagePath", @@ -125,10 +125,10 @@ describe("resolvers -> Mutation -> createOrganization", () => { expect(createOrganizationPayload).toEqual( expect.objectContaining({ description: "description", - isPublic: true, name: "name", - visibleInSearch: true, apiUrl: "apiUrl", + userRegistrationRequired: true, + visibleInSearch: true, location: "location", creator: testUser?._id, admins: [testUser?._id], @@ -174,8 +174,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { const args: MutationCreateOrganizationArgs = { data: { description: "description", - isPublic: true, name: "name", + userRegistrationRequired: true, visibleInSearch: true, apiUrl: "apiUrl", location: "location", @@ -194,8 +194,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { expect(createOrganizationPayload).toEqual( expect.objectContaining({ description: "description", - isPublic: true, name: "name", + userRegistrationRequired: true, visibleInSearch: true, apiUrl: "apiUrl", location: "location", @@ -216,9 +216,9 @@ describe("resolvers -> Mutation -> createOrganization", () => { const args: MutationCreateOrganizationArgs = { data: { description: "description", - isPublic: true, - name: "JWQPfpdkGGGKyryb86K4YN85nDj4m4F7gEAMBbMXLax73pn2okV6kpWY0EYO0XSlUc0fAlp45UCgg3s6mqsRYF9FOlzNIDFLZ1rd03Z17cdJRuvBcAmbC0imyqGdXHGDUQmVyOjDkaOLAvjhB5uDeuEqajcAPTcKpZ6LMpigXuqRAd0xGdPNXyITC03FEeKZAjjJL35cSIUeMv5eWmiFlmmm70FU1Bp6575zzBtEdyWPLflcA2GpGmmf4zvT7nfgN3NIkwQIhk9OwP8dn75YYczcYuUzLpxBu1Lyog77YlAj5DNdTIveXu9zHeC6V4EEUcPQtf1622mhdU3jZNMIAyxcAG4ErtztYYRqFs0ApUxXiQI38rmiaLcicYQgcOxpmFvqRGiSduiCprCYm90CHWbQFq4w2uhr8HhR3r9HYMIYtrRyO6C3rPXaQ7otpjuNgE0AKI57AZ4nGG1lvNwptFCY60JEndSLX9Za6XP1zkVRLaMZArQNl", + userRegistrationRequired: true, visibleInSearch: true, + name: "JWQPfpdkGGGKyryb86K4YN85nDj4m4F7gEAMBbMXLax73pn2okV6kpWY0EYO0XSlUc0fAlp45UCgg3s6mqsRYF9FOlzNIDFLZ1rd03Z17cdJRuvBcAmbC0imyqGdXHGDUQmVyOjDkaOLAvjhB5uDeuEqajcAPTcKpZ6LMpigXuqRAd0xGdPNXyITC03FEeKZAjjJL35cSIUeMv5eWmiFlmmm70FU1Bp6575zzBtEdyWPLflcA2GpGmmf4zvT7nfgN3NIkwQIhk9OwP8dn75YYczcYuUzLpxBu1Lyog77YlAj5DNdTIveXu9zHeC6V4EEUcPQtf1622mhdU3jZNMIAyxcAG4ErtztYYRqFs0ApUxXiQI38rmiaLcicYQgcOxpmFvqRGiSduiCprCYm90CHWbQFq4w2uhr8HhR3r9HYMIYtrRyO6C3rPXaQ7otpjuNgE0AKI57AZ4nGG1lvNwptFCY60JEndSLX9Za6XP1zkVRLaMZArQNl", apiUrl: "apiUrl", location: "location", }, @@ -245,8 +245,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { data: { description: "JWQPfpdkGGGKyryb86K4YN85nDj4m4F7gEAMBbMXLax73pn2okV6kpWY0EYO0XSlUc0fAlp45UCgg3s6mqsRYF9FOlzNIDFLZ1rd03Z17cdJRuvBcAmbC0imyqGdXHGDUQmVyOjDkaOLAvjhB5uDeuEqajcAPTcKpZ6LMpigXuqRAd0xGdPNXyITC03FEeKZAjjJL35cSIUeMv5eWmiFlmmm70FU1Bp6575zzBtEdyWPLflcA2GpGmmf4zvT7nfgN3NIkwQIhk9OwP8dn75YYczcYuUzLpxBu1Lyog77YlAj5DNdTIveXu9zHeC6V4EEUcPQtf1622mhdU3jZNMIAyxcAG4ErtztYYRqFs0ApUxXiQI38rmiaLcicYQgcOxpmFvqRGiSduiCprCYm90CHWbQFq4w2uhr8HhR3r9HYMIYtrRyO6C3rPXaQ7otpjuNgE0AKI57AZ4nGG1lvNwptFCY60JEndSLX9Za6XP1zkVRLaMZArQNl", - isPublic: true, name: "random", + userRegistrationRequired: true, visibleInSearch: true, apiUrl: "apiUrl", location: "location", @@ -273,8 +273,8 @@ describe("resolvers -> Mutation -> createOrganization", () => { const args: MutationCreateOrganizationArgs = { data: { description: "description", - isPublic: true, name: "random", + userRegistrationRequired: true, visibleInSearch: true, apiUrl: "apiUrl", location: diff --git a/tests/resolvers/Mutation/joinPublicOrganization.spec.ts b/tests/resolvers/Mutation/joinPublicOrganization.spec.ts index bb7d41f354..b06929e6b8 100644 --- a/tests/resolvers/Mutation/joinPublicOrganization.spec.ts +++ b/tests/resolvers/Mutation/joinPublicOrganization.spec.ts @@ -1,31 +1,31 @@ import "dotenv/config"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import { User, Organization } from "../../../src/models"; +import { Organization, User } from "../../../src/models"; import type { MutationJoinPublicOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; import { - ORGANIZATION_NOT_FOUND_ERROR, - USER_ALREADY_MEMBER_ERROR, - USER_NOT_AUTHORIZED_ERROR, - USER_NOT_FOUND_ERROR, -} from "../../../src/constants"; -import { - beforeAll, afterAll, + afterEach, + beforeAll, describe, + expect, it, vi, - expect, - afterEach, } from "vitest"; +import { + ORGANIZATION_NOT_FOUND_ERROR, + USER_ALREADY_MEMBER_ERROR, + USER_NOT_AUTHORIZED_ERROR, + USER_NOT_FOUND_ERROR, +} from "../../../src/constants"; +import { cacheOrganizations } from "../../../src/services/OrganizationCache/cacheOrganizations"; import type { TestOrganizationType, TestUserType, } from "../../helpers/userAndOrg"; import { createTestUserAndOrganization } from "../../helpers/userAndOrg"; -import { cacheOrganizations } from "../../../src/services/OrganizationCache/cacheOrganizations"; let testUser: TestUserType; let testOrganization: TestOrganizationType; @@ -33,7 +33,7 @@ let MONGOOSE_INSTANCE: typeof mongoose; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); - const temp = await createTestUserAndOrganization(true, true, false); + const temp = await createTestUserAndOrganization(true, true, true); testUser = temp[0]; testOrganization = temp[1]; }); @@ -71,8 +71,7 @@ describe("resolvers -> Mutation -> joinPublicOrganization", () => { expect(error.message).toEqual(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE); } }); - - it(`throws UnauthorizedError message if organization with _id === args.organizationId is not public`, async () => { + it(`throws UnauthorizedError message if organization with _id === args.organizationId required registration for the users`, async () => { const { requestContext } = await import("../../../src/libraries"); const spy = vi .spyOn(requestContext, "translate") @@ -108,7 +107,7 @@ describe("resolvers -> Mutation -> joinPublicOrganization", () => { }, { $set: { - isPublic: true, + userRegistrationRequired: false, }, }, { diff --git a/tests/resolvers/Mutation/updateOrganization.spec.ts b/tests/resolvers/Mutation/updateOrganization.spec.ts index 9726ae64d7..c81b3260ed 100644 --- a/tests/resolvers/Mutation/updateOrganization.spec.ts +++ b/tests/resolvers/Mutation/updateOrganization.spec.ts @@ -1,25 +1,25 @@ import "dotenv/config"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import { User, Organization } from "../../../src/models"; +import { Organization, User } from "../../../src/models"; import type { MutationUpdateOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; import { - ORGANIZATION_NOT_FOUND_ERROR, - USER_NOT_AUTHORIZED_ERROR, -} from "../../../src/constants"; -import * as uploadEncodedImage from "../../../src/utilities/encodedImageStorage/uploadEncodedImage"; -import { updateOrganization as updateOrganizationResolver } from "../../../src/resolvers/Mutation/updateOrganization"; -import { - beforeAll, afterAll, afterEach, + beforeAll, describe, + expect, it, vi, - expect, } from "vitest"; +import { + ORGANIZATION_NOT_FOUND_ERROR, + USER_NOT_AUTHORIZED_ERROR, +} from "../../../src/constants"; +import { updateOrganization as updateOrganizationResolver } from "../../../src/resolvers/Mutation/updateOrganization"; +import * as uploadEncodedImage from "../../../src/utilities/encodedImageStorage/uploadEncodedImage"; import type { TestOrganizationType, TestUserType, @@ -142,7 +142,7 @@ describe("resolvers -> Mutation -> updateOrganization", () => { id: testOrganization?._id, data: { description: "newDescription", - isPublic: false, + userRegistrationRequired: false, name: "newName", visibleInSearch: false, }, @@ -196,10 +196,11 @@ describe("resolvers -> Mutation -> updateOrganization", () => { id: testOrganization?._id, data: { description: "newDescription", - isPublic: false, + userRegistrationRequired: false, name: "newName", visibleInSearch: false, }, + file: "newImageFile.png", }; diff --git a/tests/resolvers/Query/organizationsConnection.spec.ts b/tests/resolvers/Query/organizationsConnection.spec.ts index 795d014c8b..516f2c2990 100644 --- a/tests/resolvers/Query/organizationsConnection.spec.ts +++ b/tests/resolvers/Query/organizationsConnection.spec.ts @@ -23,32 +23,32 @@ beforeAll(async () => { { name: `name${nanoid()}`, description: `description${nanoid()}`, - isPublic: true, creator: testUser?._id, admins: [testUser?._id], members: [testUser?._id], - apiUrl: `apiUrl${nanoid()}`, + userRegistrationRequired: true, visibleInSearch: true, + apiUrl: `apiUrl${nanoid()}`, }, { name: `name${nanoid()}`, description: `description${nanoid()}`, - isPublic: false, creator: testUser?._id, admins: [testUser?._id], + userRegistrationRequired: false, + visibleInSearch: false, members: [testUser?._id], apiUrl: `apiUrl${nanoid()}`, - visibleInSearch: false, }, { name: `name${nanoid()}`, description: `description${nanoid()}`, - isPublic: true, creator: testUser?._id, admins: [testUser?._id], + userRegistrationRequired: true, + visibleInSearch: true, members: [testUser?._id], apiUrl: `apiUrl${nanoid()}`, - visibleInSearch: true, }, ]); @@ -115,7 +115,7 @@ describe("resolvers -> Query -> organizationsConnection", () => { it(`returns paginated list of all existing organizations filtered by args.where === { id: testOrganizations[1]._id, name: testOrganizations[1].name, description: testOrganizations[1].description, apiUrl: testOrganizations[1].apiUrl, - visibleInSearch: testOrganizations[1].visibleInSearch, isPublic: testOrganizations[1].isPublic } + visibleInSearch: testOrganizations[1].visibleInSearch, userRegistrationRequired: testOrganizations[1].userRegistrationRequired } and sorted by ascending order of organization._id if args.orderBy === 'id_ASC'`, async () => { const sort = { _id: 1, @@ -127,7 +127,7 @@ describe("resolvers -> Query -> organizationsConnection", () => { description: testOrganizations[1].description, apiUrl: testOrganizations[1].apiUrl, visibleInSearch: testOrganizations[1].visibleInSearch, - isPublic: testOrganizations[1].isPublic, + userRegistrationRequired: testOrganizations[1].userRegistrationRequired, }; const args: QueryOrganizationsConnectionArgs = { @@ -139,7 +139,7 @@ describe("resolvers -> Query -> organizationsConnection", () => { description: testOrganizations[1].description, apiUrl: testOrganizations[1].apiUrl, visibleInSearch: testOrganizations[1].visibleInSearch, - isPublic: testOrganizations[1].isPublic, + userRegistrationRequired: testOrganizations[1].userRegistrationRequired, }, orderBy: "id_ASC", }; From a511465fe713f442499a655751e8bfc1f47c48f4 Mon Sep 17 00:00:00 2001 From: meetul Date: Wed, 17 Jan 2024 17:47:24 +0530 Subject: [PATCH 17/28] update generatedGraphqlTypes --- src/typeDefs/mutations.ts | 2 +- src/types/generatedGraphQLTypes.ts | 1403 ++++++++++++++-------------- 2 files changed, 709 insertions(+), 696 deletions(-) diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index d8ac9dc47a..f0aa810058 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -210,7 +210,7 @@ export const mutations = gql` unregisterForEventByUser(id: ID!): Event! @auth updateActionItem(id: ID!, data: UpdateActionItemInput!): ActionItem @auth - + updateAdvertisement( input: UpdateAdvertisementInput! ): UpdateAdvertisementPayload @auth diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index f6682124b8..be6e95f30d 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -27,83 +27,85 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; export type Omit = Pick>; export type RequireFields = Omit & { [P in K]-?: NonNullable }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - Any: any; - CountryCode: any; - Date: any; - DateTime: any; - EmailAddress: any; - JSON: any; - Latitude: any; - Longitude: any; - PhoneNumber: any; - PositiveInt: any; - Time: any; - URL: any; - Upload: any; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + Any: { input: any; output: any; } + CountryCode: { input: any; output: any; } + Date: { input: any; output: any; } + DateTime: { input: any; output: any; } + EmailAddress: { input: any; output: any; } + JSON: { input: any; output: any; } + Latitude: { input: any; output: any; } + Longitude: { input: any; output: any; } + PhoneNumber: { input: any; output: any; } + PositiveInt: { input: any; output: any; } + Time: { input: any; output: any; } + URL: { input: any; output: any; } + Upload: { input: any; output: any; } }; export type ActionItem = { __typename?: 'ActionItem'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; assignedBy?: Maybe; assignedTo?: Maybe; - assignmentDate?: Maybe; + assignmentDate?: Maybe; category?: Maybe; - completed?: Maybe; - completionDate?: Maybe; - createdAt: Scalars['Date']; + completed?: Maybe; + completionDate?: Maybe; + createdAt: Scalars['Date']['output']; createdBy?: Maybe; - dueDate?: Maybe; + dueDate?: Maybe; event?: Maybe; - postCompletionNotes?: Maybe; - preCompletionNotes?: Maybe; - updatedAt: Scalars['Date']; + postCompletionNotes?: Maybe; + preCompletionNotes?: Maybe; + updatedAt: Scalars['Date']['output']; }; export type Address = { __typename?: 'Address'; - city?: Maybe; - countryCode?: Maybe; - dependentLocality?: Maybe; - line1?: Maybe; - line2?: Maybe; - postalCode?: Maybe; - sortingCode?: Maybe; - state?: Maybe; + city?: Maybe; + countryCode?: Maybe; + dependentLocality?: Maybe; + line1?: Maybe; + line2?: Maybe; + postalCode?: Maybe; + sortingCode?: Maybe; + state?: Maybe; }; export type AddressInput = { - city?: InputMaybe; - countryCode?: InputMaybe; - dependentLocality?: InputMaybe; - line1?: InputMaybe; - line2?: InputMaybe; - postalCode?: InputMaybe; - sortingCode?: InputMaybe; - state?: InputMaybe; + city?: InputMaybe; + countryCode?: InputMaybe; + dependentLocality?: InputMaybe; + line1?: InputMaybe; + line2?: InputMaybe; + postalCode?: InputMaybe; + sortingCode?: InputMaybe; + state?: InputMaybe; }; export type Advertisement = { __typename?: 'Advertisement'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; - endDate: Scalars['Date']; - link: Scalars['String']; - name: Scalars['String']; - orgId: Scalars['ID']; - startDate: Scalars['Date']; + endDate: Scalars['Date']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + orgId: Scalars['ID']['output']; + startDate: Scalars['Date']['output']; type: AdvertisementType; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; }; export type AdvertisementType = @@ -113,161 +115,161 @@ export type AdvertisementType = export type AggregatePost = { __typename?: 'AggregatePost'; - count: Scalars['Int']; + count: Scalars['Int']['output']; }; export type AggregateUser = { __typename?: 'AggregateUser'; - count: Scalars['Int']; + count: Scalars['Int']['output']; }; export type AuthData = { __typename?: 'AuthData'; - accessToken: Scalars['String']; - refreshToken: Scalars['String']; + accessToken: Scalars['String']['output']; + refreshToken: Scalars['String']['output']; user: User; }; export type Category = { __typename?: 'Category'; - _id: Scalars['ID']; - category: Scalars['String']; - createdAt: Scalars['Date']; + _id: Scalars['ID']['output']; + category: Scalars['String']['output']; + createdAt: Scalars['Date']['output']; createdBy?: Maybe; - disabled: Scalars['Boolean']; + disabled: Scalars['Boolean']['output']; org?: Maybe; - updatedAt: Scalars['Date']; + updatedAt: Scalars['Date']['output']; }; export type CheckIn = { __typename?: 'CheckIn'; - _id: Scalars['ID']; - allotedRoom?: Maybe; - allotedSeat?: Maybe; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + allotedRoom?: Maybe; + allotedSeat?: Maybe; + createdAt: Scalars['DateTime']['output']; event: Event; - feedbackSubmitted: Scalars['Boolean']; - time: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; + feedbackSubmitted: Scalars['Boolean']['output']; + time: Scalars['DateTime']['output']; + updatedAt: Scalars['DateTime']['output']; user: User; }; export type CheckInInput = { - allotedRoom?: InputMaybe; - allotedSeat?: InputMaybe; - eventId: Scalars['ID']; - userId: Scalars['ID']; + allotedRoom?: InputMaybe; + allotedSeat?: InputMaybe; + eventId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type CheckInStatus = { __typename?: 'CheckInStatus'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; checkIn?: Maybe; user: User; }; export type Comment = { __typename?: 'Comment'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; - likeCount?: Maybe; + likeCount?: Maybe; likedBy?: Maybe>>; post: Post; - text: Scalars['String']; - updatedAt: Scalars['DateTime']; + text: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type CommentInput = { - text: Scalars['String']; + text: Scalars['String']['input']; }; export type ConnectionError = InvalidCursor | MaximumValueError; export type ConnectionPageInfo = { __typename?: 'ConnectionPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']; - hasPreviousPage: Scalars['Boolean']; - startCursor?: Maybe; + endCursor?: Maybe; + hasNextPage: Scalars['Boolean']['output']; + hasPreviousPage: Scalars['Boolean']['output']; + startCursor?: Maybe; }; export type CreateActionItemInput = { - assignedTo: Scalars['ID']; - assignmentDate?: InputMaybe; - completed?: InputMaybe; - completionDate?: InputMaybe; - dueDate?: InputMaybe; - eventId?: InputMaybe; - postCompletionNotes?: InputMaybe; - preCompletionNotes?: InputMaybe; + assignedTo: Scalars['ID']['input']; + assignmentDate?: InputMaybe; + completed?: InputMaybe; + completionDate?: InputMaybe; + dueDate?: InputMaybe; + eventId?: InputMaybe; + postCompletionNotes?: InputMaybe; + preCompletionNotes?: InputMaybe; }; export type CreateUserTagInput = { - name: Scalars['String']; - organizationId: Scalars['ID']; - parentTagId?: InputMaybe; + name: Scalars['String']['input']; + organizationId: Scalars['ID']['input']; + parentTagId?: InputMaybe; }; export type CursorPaginationInput = { - cursor?: InputMaybe; + cursor?: InputMaybe; direction: PaginationDirection; - limit: Scalars['PositiveInt']; + limit: Scalars['PositiveInt']['input']; }; export type DeletePayload = { __typename?: 'DeletePayload'; - success: Scalars['Boolean']; + success: Scalars['Boolean']['output']; }; export type DirectChat = { __typename?: 'DirectChat'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; messages?: Maybe>>; organization: Organization; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; users: Array; }; export type DirectChatMessage = { __typename?: 'DirectChatMessage'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; directChatMessageBelongsTo: DirectChat; - messageContent: Scalars['String']; + messageContent: Scalars['String']['output']; receiver: User; sender: User; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; }; export type Donation = { __typename?: 'Donation'; - _id: Scalars['ID']; - amount: Scalars['Float']; - createdAt: Scalars['DateTime']; - nameOfOrg: Scalars['String']; - nameOfUser: Scalars['String']; - orgId: Scalars['ID']; - payPalId: Scalars['String']; - updatedAt: Scalars['DateTime']; - userId: Scalars['ID']; + _id: Scalars['ID']['output']; + amount: Scalars['Float']['output']; + createdAt: Scalars['DateTime']['output']; + nameOfOrg: Scalars['String']['output']; + nameOfUser: Scalars['String']['output']; + orgId: Scalars['ID']['output']; + payPalId: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; + userId: Scalars['ID']['output']; }; export type DonationWhereInput = { - id?: InputMaybe; - id_contains?: InputMaybe; - id_in?: InputMaybe>; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - id_starts_with?: InputMaybe; - name_of_user?: InputMaybe; - name_of_user_contains?: InputMaybe; - name_of_user_in?: InputMaybe>; - name_of_user_not?: InputMaybe; - name_of_user_not_in?: InputMaybe>; - name_of_user_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_in?: InputMaybe>; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + id_starts_with?: InputMaybe; + name_of_user?: InputMaybe; + name_of_user_contains?: InputMaybe; + name_of_user_in?: InputMaybe>; + name_of_user_not?: InputMaybe; + name_of_user_not_in?: InputMaybe>; + name_of_user_starts_with?: InputMaybe; }; export type EducationGrade = @@ -294,65 +296,65 @@ export type EmploymentStatus = | 'UNEMPLOYED'; export type Error = { - message: Scalars['String']; + message: Scalars['String']['output']; }; export type Event = { __typename?: 'Event'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; actionItems?: Maybe>>; admins?: Maybe>; - allDay: Scalars['Boolean']; + allDay: Scalars['Boolean']['output']; attendees?: Maybe>; attendeesCheckInStatus?: Maybe>; - averageFeedbackScore?: Maybe; - createdAt: Scalars['DateTime']; + averageFeedbackScore?: Maybe; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; - description: Scalars['String']; - endDate: Scalars['Date']; - endTime?: Maybe; + description: Scalars['String']['output']; + endDate: Scalars['Date']['output']; + endTime?: Maybe; feedback?: Maybe>; - isPublic: Scalars['Boolean']; - isRegisterable: Scalars['Boolean']; - latitude?: Maybe; - location?: Maybe; - longitude?: Maybe; + isPublic: Scalars['Boolean']['output']; + isRegisterable: Scalars['Boolean']['output']; + latitude?: Maybe; + location?: Maybe; + longitude?: Maybe; organization?: Maybe; recurrance?: Maybe; - recurring: Scalars['Boolean']; - startDate: Scalars['Date']; - startTime?: Maybe; + recurring: Scalars['Boolean']['output']; + startDate: Scalars['Date']['output']; + startTime?: Maybe; status: Status; - title: Scalars['String']; - updatedAt: Scalars['DateTime']; + title: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type EventAdminsArgs = { - adminId?: InputMaybe; + adminId?: InputMaybe; }; export type EventAttendeeInput = { - eventId: Scalars['ID']; - userId: Scalars['ID']; + eventId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type EventInput = { - allDay: Scalars['Boolean']; - description: Scalars['String']; - endDate?: InputMaybe; - endTime?: InputMaybe; - isPublic: Scalars['Boolean']; - isRegisterable: Scalars['Boolean']; - latitude?: InputMaybe; - location?: InputMaybe; - longitude?: InputMaybe; - organizationId: Scalars['ID']; + allDay: Scalars['Boolean']['input']; + description: Scalars['String']['input']; + endDate?: InputMaybe; + endTime?: InputMaybe; + isPublic: Scalars['Boolean']['input']; + isRegisterable: Scalars['Boolean']['input']; + latitude?: InputMaybe; + location?: InputMaybe; + longitude?: InputMaybe; + organizationId: Scalars['ID']['input']; recurrance?: InputMaybe; - recurring: Scalars['Boolean']; - startDate: Scalars['Date']; - startTime?: InputMaybe; - title: Scalars['String']; + recurring: Scalars['Boolean']['input']; + startDate: Scalars['Date']['input']; + startTime?: InputMaybe; + title: Scalars['String']['input']; }; export type EventOrderByInput = @@ -378,64 +380,64 @@ export type EventOrderByInput = | 'title_DESC'; export type EventWhereInput = { - description?: InputMaybe; - description_contains?: InputMaybe; - description_in?: InputMaybe>; - description_not?: InputMaybe; - description_not_in?: InputMaybe>; - description_starts_with?: InputMaybe; - id?: InputMaybe; - id_contains?: InputMaybe; - id_in?: InputMaybe>; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - id_starts_with?: InputMaybe; - location?: InputMaybe; - location_contains?: InputMaybe; - location_in?: InputMaybe>; - location_not?: InputMaybe; - location_not_in?: InputMaybe>; - location_starts_with?: InputMaybe; - organization_id?: InputMaybe; - title?: InputMaybe; - title_contains?: InputMaybe; - title_in?: InputMaybe>; - title_not?: InputMaybe; - title_not_in?: InputMaybe>; - title_starts_with?: InputMaybe; + description?: InputMaybe; + description_contains?: InputMaybe; + description_in?: InputMaybe>; + description_not?: InputMaybe; + description_not_in?: InputMaybe>; + description_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_in?: InputMaybe>; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + id_starts_with?: InputMaybe; + location?: InputMaybe; + location_contains?: InputMaybe; + location_in?: InputMaybe>; + location_not?: InputMaybe; + location_not_in?: InputMaybe>; + location_starts_with?: InputMaybe; + organization_id?: InputMaybe; + title?: InputMaybe; + title_contains?: InputMaybe; + title_in?: InputMaybe>; + title_not?: InputMaybe; + title_not_in?: InputMaybe>; + title_starts_with?: InputMaybe; }; export type ExtendSession = { __typename?: 'ExtendSession'; - accessToken: Scalars['String']; - refreshToken: Scalars['String']; + accessToken: Scalars['String']['output']; + refreshToken: Scalars['String']['output']; }; export type Feedback = { __typename?: 'Feedback'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; event: Event; - rating: Scalars['Int']; - review?: Maybe; - updatedAt: Scalars['DateTime']; + rating: Scalars['Int']['output']; + review?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; export type FeedbackInput = { - eventId: Scalars['ID']; - rating: Scalars['Int']; - review?: InputMaybe; + eventId: Scalars['ID']['input']; + rating: Scalars['Int']['input']; + review?: InputMaybe; }; export type FieldError = { - message: Scalars['String']; - path: Array; + message: Scalars['String']['output']; + path: Array; }; export type ForgotPasswordData = { - newPassword: Scalars['String']; - otpToken: Scalars['String']; - userOtp: Scalars['String']; + newPassword: Scalars['String']['input']; + otpToken: Scalars['String']['input']; + userOtp: Scalars['String']['input']; }; export type Gender = @@ -445,68 +447,68 @@ export type Gender = export type Group = { __typename?: 'Group'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; admins: Array; - createdAt: Scalars['DateTime']; - description?: Maybe; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; organization: Organization; - title: Scalars['String']; - updatedAt: Scalars['DateTime']; + title: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type GroupChat = { __typename?: 'GroupChat'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; messages?: Maybe>>; organization: Organization; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; users: Array; }; export type GroupChatMessage = { __typename?: 'GroupChatMessage'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; groupChatMessageBelongsTo: GroupChat; - messageContent: Scalars['String']; + messageContent: Scalars['String']['output']; sender: User; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; }; export type InvalidCursor = FieldError & { __typename?: 'InvalidCursor'; - message: Scalars['String']; - path: Array; + message: Scalars['String']['output']; + path: Array; }; export type Language = { __typename?: 'Language'; - _id: Scalars['ID']; - createdAt: Scalars['String']; - en: Scalars['String']; + _id: Scalars['ID']['output']; + createdAt: Scalars['String']['output']; + en: Scalars['String']['output']; translation?: Maybe>>; }; export type LanguageInput = { - en_value: Scalars['String']; - translation_lang_code: Scalars['String']; - translation_value: Scalars['String']; + en_value: Scalars['String']['input']; + translation_lang_code: Scalars['String']['input']; + translation_value: Scalars['String']['input']; }; export type LanguageModel = { __typename?: 'LanguageModel'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; - lang_code: Scalars['String']; - value: Scalars['String']; - verified: Scalars['Boolean']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; + lang_code: Scalars['String']['output']; + value: Scalars['String']['output']; + verified: Scalars['Boolean']['output']; }; export type LoginInput = { - email: Scalars['EmailAddress']; - password: Scalars['String']; + email: Scalars['EmailAddress']['input']; + password: Scalars['String']['input']; }; export type MaritalStatus = @@ -519,67 +521,67 @@ export type MaritalStatus = export type MaximumLengthError = FieldError & { __typename?: 'MaximumLengthError'; - message: Scalars['String']; - path: Array; + message: Scalars['String']['output']; + path: Array; }; export type MaximumValueError = FieldError & { __typename?: 'MaximumValueError'; - limit: Scalars['Int']; - message: Scalars['String']; - path: Array; + limit: Scalars['Int']['output']; + message: Scalars['String']['output']; + path: Array; }; export type MembershipRequest = { __typename?: 'MembershipRequest'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; organization: Organization; user: User; }; export type Message = { __typename?: 'Message'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; - imageUrl?: Maybe; - text: Scalars['String']; - updatedAt: Scalars['DateTime']; - videoUrl?: Maybe; + imageUrl?: Maybe; + text: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; + videoUrl?: Maybe; }; export type MessageChat = { __typename?: 'MessageChat'; - _id: Scalars['ID']; - createdAt: Scalars['DateTime']; - languageBarrier?: Maybe; - message: Scalars['String']; + _id: Scalars['ID']['output']; + createdAt: Scalars['DateTime']['output']; + languageBarrier?: Maybe; + message: Scalars['String']['output']; receiver: User; sender: User; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; }; export type MessageChatInput = { - message: Scalars['String']; - receiver: Scalars['ID']; + message: Scalars['String']['input']; + receiver: Scalars['ID']['input']; }; export type MinimumLengthError = FieldError & { __typename?: 'MinimumLengthError'; - limit: Scalars['Int']; - message: Scalars['String']; - path: Array; + limit: Scalars['Int']['output']; + message: Scalars['String']['output']; + path: Array; }; export type MinimumValueError = FieldError & { __typename?: 'MinimumValueError'; - message: Scalars['String']; - path: Array; + message: Scalars['String']['output']; + path: Array; }; export type Mutation = { __typename?: 'Mutation'; - acceptAdmin: Scalars['Boolean']; + acceptAdmin: Scalars['Boolean']['output']; acceptMembershipRequest: MembershipRequest; addEventAttendee: User; addFeedback: Feedback; @@ -610,22 +612,22 @@ export type Mutation = { createOrganization: Organization; createPlugin: Plugin; createPost?: Maybe; - createSampleOrganization: Scalars['Boolean']; + createSampleOrganization: Scalars['Boolean']['output']; createUserTag?: Maybe; deleteAdvertisementById: DeletePayload; deleteDonationById: DeletePayload; - forgotPassword: Scalars['Boolean']; + forgotPassword: Scalars['Boolean']['output']; joinPublicOrganization: User; leaveOrganization: User; likeComment?: Maybe; likePost?: Maybe; login: AuthData; - logout: Scalars['Boolean']; + logout: Scalars['Boolean']['output']; otp: OtpData; - recaptcha: Scalars['Boolean']; + recaptcha: Scalars['Boolean']['output']; refreshToken: ExtendSession; registerForEvent: Event; - rejectAdmin: Scalars['Boolean']; + rejectAdmin: Scalars['Boolean']['output']; rejectMembershipRequest: MembershipRequest; removeActionItem: ActionItem; removeAdmin: User; @@ -640,13 +642,13 @@ export type Mutation = { removeOrganizationCustomField: OrganizationCustomField; removeOrganizationImage: Organization; removePost?: Maybe; - removeSampleOrganization: Scalars['Boolean']; + removeSampleOrganization: Scalars['Boolean']['output']; removeUserCustomData: UserCustomData; removeUserFromGroupChat: GroupChat; removeUserImage: User; removeUserTag?: Maybe; - revokeRefreshTokenForUser: Scalars['Boolean']; - saveFcmToken: Scalars['Boolean']; + revokeRefreshTokenForUser: Scalars['Boolean']['output']; + saveFcmToken: Scalars['Boolean']['output']; sendMembershipRequest: MembershipRequest; sendMessageToDirectChat: DirectChatMessage; sendMessageToGroupChat: GroupChatMessage; @@ -669,17 +671,17 @@ export type Mutation = { updateUserProfile: User; updateUserRoleInOrganization: Organization; updateUserTag?: Maybe; - updateUserType: Scalars['Boolean']; + updateUserType: Scalars['Boolean']['output']; }; export type MutationAcceptAdminArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationAcceptMembershipRequestArgs = { - membershipRequestId: Scalars['ID']; + membershipRequestId: Scalars['ID']['input']; }; @@ -699,43 +701,43 @@ export type MutationAddLanguageTranslationArgs = { export type MutationAddOrganizationCustomFieldArgs = { - name: Scalars['String']; - organizationId: Scalars['ID']; - type: Scalars['String']; + name: Scalars['String']['input']; + organizationId: Scalars['ID']['input']; + type: Scalars['String']['input']; }; export type MutationAddOrganizationImageArgs = { - file: Scalars['String']; - organizationId: Scalars['String']; + file: Scalars['String']['input']; + organizationId: Scalars['String']['input']; }; export type MutationAddUserCustomDataArgs = { - dataName: Scalars['String']; - dataValue: Scalars['Any']; - organizationId: Scalars['ID']; + dataName: Scalars['String']['input']; + dataValue: Scalars['Any']['input']; + organizationId: Scalars['ID']['input']; }; export type MutationAddUserImageArgs = { - file: Scalars['String']; + file: Scalars['String']['input']; }; export type MutationAddUserToGroupChatArgs = { - chatId: Scalars['ID']; - userId: Scalars['ID']; + chatId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type MutationAdminRemoveEventArgs = { - eventId: Scalars['ID']; + eventId: Scalars['ID']['input']; }; export type MutationAdminRemoveGroupArgs = { - groupId: Scalars['ID']; + groupId: Scalars['ID']['input']; }; @@ -745,19 +747,19 @@ export type MutationAssignUserTagArgs = { export type MutationBlockPluginCreationBySuperadminArgs = { - blockUser: Scalars['Boolean']; - userId: Scalars['ID']; + blockUser: Scalars['Boolean']['input']; + userId: Scalars['ID']['input']; }; export type MutationBlockUserArgs = { - organizationId: Scalars['ID']; - userId: Scalars['ID']; + organizationId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type MutationCancelMembershipRequestArgs = { - membershipRequestId: Scalars['ID']; + membershipRequestId: Scalars['ID']['input']; }; @@ -767,7 +769,7 @@ export type MutationCheckInArgs = { export type MutationCreateActionItemArgs = { - categoryId: Scalars['ID']; + categoryId: Scalars['ID']['input']; data: CreateActionItemInput; }; @@ -778,24 +780,24 @@ export type MutationCreateAdminArgs = { export type MutationCreateAdvertisementArgs = { - endDate: Scalars['Date']; - link: Scalars['String']; - name: Scalars['String']; - orgId: Scalars['ID']; - startDate: Scalars['Date']; - type: Scalars['String']; + endDate: Scalars['Date']['input']; + link: Scalars['String']['input']; + name: Scalars['String']['input']; + orgId: Scalars['ID']['input']; + startDate: Scalars['Date']['input']; + type: Scalars['String']['input']; }; export type MutationCreateCategoryArgs = { - category: Scalars['String']; - orgId: Scalars['ID']; + category: Scalars['String']['input']; + orgId: Scalars['ID']['input']; }; export type MutationCreateCommentArgs = { data: CommentInput; - postId: Scalars['ID']; + postId: Scalars['ID']['input']; }; @@ -805,12 +807,12 @@ export type MutationCreateDirectChatArgs = { export type MutationCreateDonationArgs = { - amount: Scalars['Float']; - nameOfOrg: Scalars['String']; - nameOfUser: Scalars['String']; - orgId: Scalars['ID']; - payPalId: Scalars['ID']; - userId: Scalars['ID']; + amount: Scalars['Float']['input']; + nameOfOrg: Scalars['String']['input']; + nameOfUser: Scalars['String']['input']; + orgId: Scalars['ID']['input']; + payPalId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; @@ -836,21 +838,21 @@ export type MutationCreateMessageChatArgs = { export type MutationCreateOrganizationArgs = { data?: InputMaybe; - file?: InputMaybe; + file?: InputMaybe; }; export type MutationCreatePluginArgs = { - pluginCreatedBy: Scalars['String']; - pluginDesc: Scalars['String']; - pluginName: Scalars['String']; - uninstalledOrgs?: InputMaybe>; + pluginCreatedBy: Scalars['String']['input']; + pluginDesc: Scalars['String']['input']; + pluginName: Scalars['String']['input']; + uninstalledOrgs?: InputMaybe>; }; export type MutationCreatePostArgs = { data: PostInput; - file?: InputMaybe; + file?: InputMaybe; }; @@ -860,12 +862,12 @@ export type MutationCreateUserTagArgs = { export type MutationDeleteAdvertisementByIdArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationDeleteDonationByIdArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -875,22 +877,22 @@ export type MutationForgotPasswordArgs = { export type MutationJoinPublicOrganizationArgs = { - organizationId: Scalars['ID']; + organizationId: Scalars['ID']['input']; }; export type MutationLeaveOrganizationArgs = { - organizationId: Scalars['ID']; + organizationId: Scalars['ID']['input']; }; export type MutationLikeCommentArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationLikePostArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -910,27 +912,27 @@ export type MutationRecaptchaArgs = { export type MutationRefreshTokenArgs = { - refreshToken: Scalars['String']; + refreshToken: Scalars['String']['input']; }; export type MutationRegisterForEventArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRejectAdminArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRejectMembershipRequestArgs = { - membershipRequestId: Scalars['ID']; + membershipRequestId: Scalars['ID']['input']; }; export type MutationRemoveActionItemArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -940,23 +942,23 @@ export type MutationRemoveAdminArgs = { export type MutationRemoveAdvertisementArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRemoveCommentArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRemoveDirectChatArgs = { - chatId: Scalars['ID']; - organizationId: Scalars['ID']; + chatId: Scalars['ID']['input']; + organizationId: Scalars['ID']['input']; }; export type MutationRemoveEventArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -966,7 +968,7 @@ export type MutationRemoveEventAttendeeArgs = { export type MutationRemoveGroupChatArgs = { - chatId: Scalars['ID']; + chatId: Scalars['ID']['input']; }; @@ -976,72 +978,72 @@ export type MutationRemoveMemberArgs = { export type MutationRemoveOrganizationArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRemoveOrganizationCustomFieldArgs = { - customFieldId: Scalars['ID']; - organizationId: Scalars['ID']; + customFieldId: Scalars['ID']['input']; + organizationId: Scalars['ID']['input']; }; export type MutationRemoveOrganizationImageArgs = { - organizationId: Scalars['String']; + organizationId: Scalars['String']['input']; }; export type MutationRemovePostArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationRemoveUserCustomDataArgs = { - organizationId: Scalars['ID']; + organizationId: Scalars['ID']['input']; }; export type MutationRemoveUserFromGroupChatArgs = { - chatId: Scalars['ID']; - userId: Scalars['ID']; + chatId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type MutationRemoveUserTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationSaveFcmTokenArgs = { - token?: InputMaybe; + token?: InputMaybe; }; export type MutationSendMembershipRequestArgs = { - organizationId: Scalars['ID']; + organizationId: Scalars['ID']['input']; }; export type MutationSendMessageToDirectChatArgs = { - chatId: Scalars['ID']; - messageContent: Scalars['String']; + chatId: Scalars['ID']['input']; + messageContent: Scalars['String']['input']; }; export type MutationSendMessageToGroupChatArgs = { - chatId: Scalars['ID']; - messageContent: Scalars['String']; + chatId: Scalars['ID']['input']; + messageContent: Scalars['String']['input']; }; export type MutationSignUpArgs = { data: UserInput; - file?: InputMaybe; + file?: InputMaybe; }; export type MutationTogglePostPinArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -1051,29 +1053,29 @@ export type MutationUnassignUserTagArgs = { export type MutationUnblockUserArgs = { - organizationId: Scalars['ID']; - userId: Scalars['ID']; + organizationId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type MutationUnlikeCommentArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationUnlikePostArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationUnregisterForEventByUserArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationUpdateActionItemArgs = { data: UpdateActionItemInput; - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -1084,37 +1086,37 @@ export type MutationUpdateAdvertisementArgs = { export type MutationUpdateCategoryArgs = { data: UpdateCategoryInput; - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationUpdateEventArgs = { data?: InputMaybe; - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type MutationUpdateLanguageArgs = { - languageCode: Scalars['String']; + languageCode: Scalars['String']['input']; }; export type MutationUpdateOrganizationArgs = { data?: InputMaybe; - file?: InputMaybe; - id: Scalars['ID']; + file?: InputMaybe; + id: Scalars['ID']['input']; }; export type MutationUpdatePluginStatusArgs = { - id: Scalars['ID']; - orgId: Scalars['ID']; + id: Scalars['ID']['input']; + orgId: Scalars['ID']['input']; }; export type MutationUpdatePostArgs = { data?: InputMaybe; - id: Scalars['ID']; + id: Scalars['ID']['input']; }; @@ -1125,14 +1127,14 @@ export type MutationUpdateUserPasswordArgs = { export type MutationUpdateUserProfileArgs = { data?: InputMaybe; - file?: InputMaybe; + file?: InputMaybe; }; export type MutationUpdateUserRoleInOrganizationArgs = { - organizationId: Scalars['ID']; - role: Scalars['String']; - userId: Scalars['ID']; + organizationId: Scalars['ID']['input']; + role: Scalars['String']['input']; + userId: Scalars['ID']['input']; }; @@ -1146,74 +1148,74 @@ export type MutationUpdateUserTypeArgs = { }; export type OtpInput = { - email: Scalars['EmailAddress']; + email: Scalars['EmailAddress']['input']; }; export type Organization = { __typename?: 'Organization'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; actionCategories?: Maybe>; admins?: Maybe>; - apiUrl: Scalars['URL']; + apiUrl: Scalars['URL']['output']; blockedUsers?: Maybe>>; - createdAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; customFields?: Maybe>; - description: Scalars['String']; - image?: Maybe; - location?: Maybe; + description: Scalars['String']['output']; + image?: Maybe; + location?: Maybe; members?: Maybe>; membershipRequests?: Maybe>>; - name: Scalars['String']; + name: Scalars['String']['output']; pinnedPosts?: Maybe>>; - updatedAt: Scalars['DateTime']; - userRegistrationRequired: Scalars['Boolean']; + updatedAt: Scalars['DateTime']['output']; + userRegistrationRequired: Scalars['Boolean']['output']; userTags?: Maybe; - visibleInSearch: Scalars['Boolean']; + visibleInSearch: Scalars['Boolean']['output']; }; export type OrganizationAdminsArgs = { - adminId?: InputMaybe; + adminId?: InputMaybe; }; export type OrganizationUserTagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type OrganizationCustomField = { __typename?: 'OrganizationCustomField'; - _id: Scalars['ID']; - name: Scalars['String']; - organizationId: Scalars['String']; - type: Scalars['String']; + _id: Scalars['ID']['output']; + name: Scalars['String']['output']; + organizationId: Scalars['String']['output']; + type: Scalars['String']['output']; }; export type OrganizationInfoNode = { __typename?: 'OrganizationInfoNode'; - _id: Scalars['ID']; - apiUrl: Scalars['URL']; + _id: Scalars['ID']['output']; + apiUrl: Scalars['URL']['output']; creator?: Maybe; - description: Scalars['String']; - image?: Maybe; - name: Scalars['String']; - userRegistrationRequired: Scalars['Boolean']; - visibleInSearch: Scalars['Boolean']; + description: Scalars['String']['output']; + image?: Maybe; + name: Scalars['String']['output']; + userRegistrationRequired: Scalars['Boolean']['output']; + visibleInSearch: Scalars['Boolean']['output']; }; export type OrganizationInput = { - apiUrl?: InputMaybe; - attendees?: InputMaybe; - description: Scalars['String']; - image?: InputMaybe; - location?: InputMaybe; - name: Scalars['String']; - userRegistrationRequired?: InputMaybe; - visibleInSearch?: InputMaybe; + apiUrl?: InputMaybe; + attendees?: InputMaybe; + description: Scalars['String']['input']; + image?: InputMaybe; + location?: InputMaybe; + name: Scalars['String']['input']; + userRegistrationRequired?: InputMaybe; + visibleInSearch?: InputMaybe; }; export type OrganizationOrderByInput = @@ -1229,50 +1231,50 @@ export type OrganizationOrderByInput = | 'name_DESC'; export type OrganizationWhereInput = { - apiUrl?: InputMaybe; - apiUrl_contains?: InputMaybe; - apiUrl_in?: InputMaybe>; - apiUrl_not?: InputMaybe; - apiUrl_not_in?: InputMaybe>; - apiUrl_starts_with?: InputMaybe; - description?: InputMaybe; - description_contains?: InputMaybe; - description_in?: InputMaybe>; - description_not?: InputMaybe; - description_not_in?: InputMaybe>; - description_starts_with?: InputMaybe; - id?: InputMaybe; - id_contains?: InputMaybe; - id_in?: InputMaybe>; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - id_starts_with?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_in?: InputMaybe>; - name_not?: InputMaybe; - name_not_in?: InputMaybe>; - name_starts_with?: InputMaybe; - userRegistrationRequired?: InputMaybe; - visibleInSearch?: InputMaybe; + apiUrl?: InputMaybe; + apiUrl_contains?: InputMaybe; + apiUrl_in?: InputMaybe>; + apiUrl_not?: InputMaybe; + apiUrl_not_in?: InputMaybe>; + apiUrl_starts_with?: InputMaybe; + description?: InputMaybe; + description_contains?: InputMaybe; + description_in?: InputMaybe>; + description_not?: InputMaybe; + description_not_in?: InputMaybe>; + description_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_in?: InputMaybe>; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + id_starts_with?: InputMaybe; + name?: InputMaybe; + name_contains?: InputMaybe; + name_in?: InputMaybe>; + name_not?: InputMaybe; + name_not_in?: InputMaybe>; + name_starts_with?: InputMaybe; + userRegistrationRequired?: InputMaybe; + visibleInSearch?: InputMaybe; }; export type OtpData = { __typename?: 'OtpData'; - otpToken: Scalars['String']; + otpToken: Scalars['String']['output']; }; /** Information about pagination in a connection. */ export type PageInfo = { __typename?: 'PageInfo'; - currPageNo?: Maybe; + currPageNo?: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars['Boolean']; + hasNextPage: Scalars['Boolean']['output']; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars['Boolean']; - nextPageNo?: Maybe; - prevPageNo?: Maybe; - totalPages?: Maybe; + hasPreviousPage: Scalars['Boolean']['output']; + nextPageNo?: Maybe; + prevPageNo?: Maybe; + totalPages?: Maybe; }; export type PaginationDirection = @@ -1281,50 +1283,50 @@ export type PaginationDirection = export type Plugin = { __typename?: 'Plugin'; - _id: Scalars['ID']; - pluginCreatedBy: Scalars['String']; - pluginDesc: Scalars['String']; - pluginName: Scalars['String']; - uninstalledOrgs?: Maybe>; + _id: Scalars['ID']['output']; + pluginCreatedBy: Scalars['String']['output']; + pluginDesc: Scalars['String']['output']; + pluginName: Scalars['String']['output']; + uninstalledOrgs?: Maybe>; }; export type PluginField = { __typename?: 'PluginField'; - createdAt: Scalars['DateTime']; - key: Scalars['String']; + createdAt: Scalars['DateTime']['output']; + key: Scalars['String']['output']; status: Status; - value: Scalars['String']; + value: Scalars['String']['output']; }; export type PluginFieldInput = { - key: Scalars['String']; - value: Scalars['String']; + key: Scalars['String']['input']; + value: Scalars['String']['input']; }; export type PluginInput = { fields?: InputMaybe>>; - orgId: Scalars['ID']; - pluginKey?: InputMaybe; - pluginName: Scalars['String']; + orgId: Scalars['ID']['input']; + pluginKey?: InputMaybe; + pluginName: Scalars['String']['input']; pluginType?: InputMaybe; }; export type Post = { __typename?: 'Post'; - _id?: Maybe; - commentCount?: Maybe; + _id?: Maybe; + commentCount?: Maybe; comments?: Maybe>>; - createdAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']['output']; creator?: Maybe; - imageUrl?: Maybe; - likeCount?: Maybe; + imageUrl?: Maybe; + likeCount?: Maybe; likedBy?: Maybe>>; organization: Organization; - pinned?: Maybe; - text: Scalars['String']; - title?: Maybe; - updatedAt: Scalars['DateTime']; - videoUrl?: Maybe; + pinned?: Maybe; + text: Scalars['String']['output']; + title?: Maybe; + updatedAt: Scalars['DateTime']['output']; + videoUrl?: Maybe; }; /** A connection to a list of items. */ @@ -1338,13 +1340,13 @@ export type PostConnection = { }; export type PostInput = { - _id?: InputMaybe; - imageUrl?: InputMaybe; - organizationId: Scalars['ID']; - pinned?: InputMaybe; - text: Scalars['String']; - title?: InputMaybe; - videoUrl?: InputMaybe; + _id?: InputMaybe; + imageUrl?: InputMaybe; + organizationId: Scalars['ID']['input']; + pinned?: InputMaybe; + text: Scalars['String']['input']; + title?: InputMaybe; + videoUrl?: InputMaybe; }; export type PostOrderByInput = @@ -1366,31 +1368,31 @@ export type PostOrderByInput = | 'videoUrl_DESC'; export type PostUpdateInput = { - imageUrl?: InputMaybe; - text?: InputMaybe; - title?: InputMaybe; - videoUrl?: InputMaybe; + imageUrl?: InputMaybe; + text?: InputMaybe; + title?: InputMaybe; + videoUrl?: InputMaybe; }; export type PostWhereInput = { - id?: InputMaybe; - id_contains?: InputMaybe; - id_in?: InputMaybe>; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - id_starts_with?: InputMaybe; - text?: InputMaybe; - text_contains?: InputMaybe; - text_in?: InputMaybe>; - text_not?: InputMaybe; - text_not_in?: InputMaybe>; - text_starts_with?: InputMaybe; - title?: InputMaybe; - title_contains?: InputMaybe; - title_in?: InputMaybe>; - title_not?: InputMaybe; - title_not_in?: InputMaybe>; - title_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_in?: InputMaybe>; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + id_starts_with?: InputMaybe; + text?: InputMaybe; + text_contains?: InputMaybe; + text_in?: InputMaybe>; + text_not?: InputMaybe; + text_not_in?: InputMaybe>; + text_starts_with?: InputMaybe; + title?: InputMaybe; + title_contains?: InputMaybe; + title_in?: InputMaybe>; + title_not?: InputMaybe; + title_not_in?: InputMaybe>; + title_starts_with?: InputMaybe; }; export type Query = { @@ -1414,11 +1416,11 @@ export type Query = { getDonationByOrgIdConnection: Array; getPlugins?: Maybe>>; getlanguage?: Maybe>>; - hasSubmittedFeedback?: Maybe; - isSampleOrganization: Scalars['Boolean']; + hasSubmittedFeedback?: Maybe; + isSampleOrganization: Scalars['Boolean']['output']; joinedOrganizations?: Maybe>>; me: User; - myLanguage?: Maybe; + myLanguage?: Maybe; organizations?: Maybe>>; organizationsConnection: Array>; organizationsMemberConnection: UserConnection; @@ -1429,203 +1431,203 @@ export type Query = { registeredEventsByUser?: Maybe>>; registrantsByEvent?: Maybe>>; user: User; - userLanguage?: Maybe; + userLanguage?: Maybe; users?: Maybe>>; usersConnection: Array>; }; export type QueryActionItemArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryActionItemsByEventArgs = { - eventId: Scalars['ID']; + eventId: Scalars['ID']['input']; }; export type QueryAdminPluginArgs = { - orgId: Scalars['ID']; + orgId: Scalars['ID']['input']; }; export type QueryCategoriesByOrganizationArgs = { - orgId: Scalars['ID']; + orgId: Scalars['ID']['input']; }; export type QueryCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryCustomDataByOrganizationArgs = { - organizationId: Scalars['ID']; + organizationId: Scalars['ID']['input']; }; export type QueryCustomFieldsByOrganizationArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryDirectChatsByUserIdArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryDirectChatsMessagesByChatIdArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryEventArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryEventsByOrganizationArgs = { - id?: InputMaybe; + id?: InputMaybe; orderBy?: InputMaybe; }; export type QueryEventsByOrganizationConnectionArgs = { - first?: InputMaybe; + first?: InputMaybe; orderBy?: InputMaybe; - skip?: InputMaybe; + skip?: InputMaybe; where?: InputMaybe; }; export type QueryGetDonationByIdArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryGetDonationByOrgIdArgs = { - orgId: Scalars['ID']; + orgId: Scalars['ID']['input']; }; export type QueryGetDonationByOrgIdConnectionArgs = { - first?: InputMaybe; - orgId: Scalars['ID']; - skip?: InputMaybe; + first?: InputMaybe; + orgId: Scalars['ID']['input']; + skip?: InputMaybe; where?: InputMaybe; }; export type QueryGetlanguageArgs = { - lang_code: Scalars['String']; + lang_code: Scalars['String']['input']; }; export type QueryHasSubmittedFeedbackArgs = { - eventId: Scalars['ID']; - userId: Scalars['ID']; + eventId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type QueryIsSampleOrganizationArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryJoinedOrganizationsArgs = { - id?: InputMaybe; + id?: InputMaybe; }; export type QueryOrganizationsArgs = { - id?: InputMaybe; + id?: InputMaybe; orderBy?: InputMaybe; }; export type QueryOrganizationsConnectionArgs = { - first?: InputMaybe; + first?: InputMaybe; orderBy?: InputMaybe; - skip?: InputMaybe; + skip?: InputMaybe; where?: InputMaybe; }; export type QueryOrganizationsMemberConnectionArgs = { - first?: InputMaybe; + first?: InputMaybe; orderBy?: InputMaybe; - orgId: Scalars['ID']; - skip?: InputMaybe; + orgId: Scalars['ID']['input']; + skip?: InputMaybe; where?: InputMaybe; }; export type QueryPluginArgs = { - orgId: Scalars['ID']; + orgId: Scalars['ID']['input']; }; export type QueryPostArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryPostsByOrganizationArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; orderBy?: InputMaybe; }; export type QueryPostsByOrganizationConnectionArgs = { - first?: InputMaybe; - id: Scalars['ID']; + first?: InputMaybe; + id: Scalars['ID']['input']; orderBy?: InputMaybe; - skip?: InputMaybe; + skip?: InputMaybe; where?: InputMaybe; }; export type QueryRegisteredEventsByUserArgs = { - id?: InputMaybe; + id?: InputMaybe; orderBy?: InputMaybe; }; export type QueryRegistrantsByEventArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryUserArgs = { - id: Scalars['ID']; + id: Scalars['ID']['input']; }; export type QueryUserLanguageArgs = { - userId: Scalars['ID']; + userId: Scalars['ID']['input']; }; export type QueryUsersArgs = { - adminApproved?: InputMaybe; - first?: InputMaybe; + adminApproved?: InputMaybe; + first?: InputMaybe; orderBy?: InputMaybe; - skip?: InputMaybe; - userType?: InputMaybe; + skip?: InputMaybe; + userType?: InputMaybe; where?: InputMaybe; }; export type QueryUsersConnectionArgs = { - first?: InputMaybe; + first?: InputMaybe; orderBy?: InputMaybe; - skip?: InputMaybe; + skip?: InputMaybe; where?: InputMaybe; }; export type RecaptchaVerification = { - recaptchaToken: Scalars['String']; + recaptchaToken: Scalars['String']['input']; }; export type Recurrance = @@ -1649,16 +1651,16 @@ export type Subscription = { }; export type ToggleUserTagAssignInput = { - tagId: Scalars['ID']; - userId: Scalars['ID']; + tagId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type Translation = { __typename?: 'Translation'; - en_value?: Maybe; - lang_code?: Maybe; - translation?: Maybe; - verified?: Maybe; + en_value?: Maybe; + lang_code?: Maybe; + translation?: Maybe; + verified?: Maybe; }; export type Type = @@ -1667,28 +1669,28 @@ export type Type = export type UnauthenticatedError = Error & { __typename?: 'UnauthenticatedError'; - message: Scalars['String']; + message: Scalars['String']['output']; }; export type UnauthorizedError = Error & { __typename?: 'UnauthorizedError'; - message: Scalars['String']; + message: Scalars['String']['output']; }; export type UpdateActionItemInput = { - assignedTo?: InputMaybe; - completed?: InputMaybe; - dueDate?: InputMaybe; - postCompletionNotes?: InputMaybe; - preCompletionNotes?: InputMaybe; + assignedTo?: InputMaybe; + completed?: InputMaybe; + dueDate?: InputMaybe; + postCompletionNotes?: InputMaybe; + preCompletionNotes?: InputMaybe; }; export type UpdateAdvertisementInput = { - _id: Scalars['ID']; - endDate?: InputMaybe; - link?: InputMaybe; - name?: InputMaybe; - startDate?: InputMaybe; + _id: Scalars['ID']['input']; + endDate?: InputMaybe; + link?: InputMaybe; + name?: InputMaybe; + startDate?: InputMaybe; type?: InputMaybe; }; @@ -1698,108 +1700,108 @@ export type UpdateAdvertisementPayload = { }; export type UpdateCategoryInput = { - category?: InputMaybe; - disabled?: InputMaybe; + category?: InputMaybe; + disabled?: InputMaybe; }; export type UpdateEventInput = { - allDay?: InputMaybe; - description?: InputMaybe; - endDate?: InputMaybe; - endTime?: InputMaybe; - isPublic?: InputMaybe; - isRegisterable?: InputMaybe; - latitude?: InputMaybe; - location?: InputMaybe; - longitude?: InputMaybe; + allDay?: InputMaybe; + description?: InputMaybe; + endDate?: InputMaybe; + endTime?: InputMaybe; + isPublic?: InputMaybe; + isRegisterable?: InputMaybe; + latitude?: InputMaybe; + location?: InputMaybe; + longitude?: InputMaybe; recurrance?: InputMaybe; - recurring?: InputMaybe; - startDate?: InputMaybe; - startTime?: InputMaybe; - title?: InputMaybe; + recurring?: InputMaybe; + startDate?: InputMaybe; + startTime?: InputMaybe; + title?: InputMaybe; }; export type UpdateOrganizationInput = { - description?: InputMaybe; - location?: InputMaybe; - name?: InputMaybe; - userRegistrationRequired?: InputMaybe; - visibleInSearch?: InputMaybe; + description?: InputMaybe; + location?: InputMaybe; + name?: InputMaybe; + userRegistrationRequired?: InputMaybe; + visibleInSearch?: InputMaybe; }; export type UpdateUserInput = { address?: InputMaybe; - birthDate?: InputMaybe; + birthDate?: InputMaybe; educationGrade?: InputMaybe; - email?: InputMaybe; + email?: InputMaybe; employmentStatus?: InputMaybe; - firstName?: InputMaybe; + firstName?: InputMaybe; gender?: InputMaybe; - lastName?: InputMaybe; + lastName?: InputMaybe; maritalStatus?: InputMaybe; phone?: InputMaybe; }; export type UpdateUserPasswordInput = { - confirmNewPassword: Scalars['String']; - newPassword: Scalars['String']; - previousPassword: Scalars['String']; + confirmNewPassword: Scalars['String']['input']; + newPassword: Scalars['String']['input']; + previousPassword: Scalars['String']['input']; }; export type UpdateUserTagInput = { - _id: Scalars['ID']; - name: Scalars['String']; + _id: Scalars['ID']['input']; + name: Scalars['String']['input']; }; export type UpdateUserTypeInput = { - id?: InputMaybe; - userType?: InputMaybe; + id?: InputMaybe; + userType?: InputMaybe; }; export type User = { __typename?: 'User'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; address?: Maybe
; - adminApproved?: Maybe; + adminApproved?: Maybe; adminFor?: Maybe>>; - appLanguageCode: Scalars['String']; - birthDate?: Maybe; - createdAt: Scalars['DateTime']; + appLanguageCode: Scalars['String']['output']; + birthDate?: Maybe; + createdAt: Scalars['DateTime']['output']; createdEvents?: Maybe>>; createdOrganizations?: Maybe>>; educationGrade?: Maybe; - email: Scalars['EmailAddress']; + email: Scalars['EmailAddress']['output']; employmentStatus?: Maybe; eventAdmin?: Maybe>>; - firstName: Scalars['String']; + firstName: Scalars['String']['output']; gender?: Maybe; - image?: Maybe; + image?: Maybe; joinedOrganizations?: Maybe>>; - lastName: Scalars['String']; + lastName: Scalars['String']['output']; maritalStatus?: Maybe; membershipRequests?: Maybe>>; organizationsBlockedBy?: Maybe>>; phone?: Maybe; - pluginCreationAllowed: Scalars['Boolean']; + pluginCreationAllowed: Scalars['Boolean']['output']; registeredEvents?: Maybe>>; tagsAssignedWith?: Maybe; - tokenVersion: Scalars['Int']; - updatedAt: Scalars['DateTime']; + tokenVersion: Scalars['Int']['output']; + updatedAt: Scalars['DateTime']['output']; userType: UserType; }; export type UserTagsAssignedWithArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; }; export type UserAndOrganizationInput = { - organizationId: Scalars['ID']; - userId: Scalars['ID']; + organizationId: Scalars['ID']['input']; + userId: Scalars['ID']['input']; }; export type UserConnection = { @@ -1811,25 +1813,25 @@ export type UserConnection = { export type UserCustomData = { __typename?: 'UserCustomData'; - _id: Scalars['ID']; - organizationId: Scalars['ID']; - userId: Scalars['ID']; - values: Scalars['JSON']; + _id: Scalars['ID']['output']; + organizationId: Scalars['ID']['output']; + userId: Scalars['ID']['output']; + values: Scalars['JSON']['output']; }; export type UserEdge = { __typename?: 'UserEdge'; - cursor: Scalars['String']; + cursor: Scalars['String']['output']; node: User; }; export type UserInput = { - appLanguageCode?: InputMaybe; - email: Scalars['EmailAddress']; - firstName: Scalars['String']; - lastName: Scalars['String']; - organizationUserBelongsToId?: InputMaybe; - password: Scalars['String']; + appLanguageCode?: InputMaybe; + email: Scalars['EmailAddress']['input']; + firstName: Scalars['String']['input']; + lastName: Scalars['String']['input']; + organizationUserBelongsToId?: InputMaybe; + password: Scalars['String']['input']; }; export type UserOrderByInput = @@ -1846,22 +1848,22 @@ export type UserOrderByInput = export type UserPhone = { __typename?: 'UserPhone'; - home?: Maybe; - mobile?: Maybe; - work?: Maybe; + home?: Maybe; + mobile?: Maybe; + work?: Maybe; }; export type UserPhoneInput = { - home?: InputMaybe; - mobile?: InputMaybe; - work?: InputMaybe; + home?: InputMaybe; + mobile?: InputMaybe; + work?: InputMaybe; }; export type UserTag = { __typename?: 'UserTag'; - _id: Scalars['ID']; + _id: Scalars['ID']['output']; childTags: UserTagsConnectionResult; - name: Scalars['String']; + name: Scalars['String']['output']; organization?: Maybe; parentTag?: Maybe; usersAssignedTo: UsersConnectionResult; @@ -1879,7 +1881,7 @@ export type UserTagUsersAssignedToArgs = { export type UserTagEdge = { __typename?: 'UserTagEdge'; - cursor: Scalars['String']; + cursor: Scalars['String']['output']; node: UserTag; }; @@ -1890,9 +1892,9 @@ export type UserTagsConnection = { }; export type UserTagsConnectionInput = { - cursor?: InputMaybe; + cursor?: InputMaybe; direction: PaginationDirection; - limit: Scalars['PositiveInt']; + limit: Scalars['PositiveInt']['input']; }; export type UserTagsConnectionResult = { @@ -1908,38 +1910,38 @@ export type UserType = | 'USER'; export type UserWhereInput = { - admin_for?: InputMaybe; - appLanguageCode?: InputMaybe; - appLanguageCode_contains?: InputMaybe; - appLanguageCode_in?: InputMaybe>; - appLanguageCode_not?: InputMaybe; - appLanguageCode_not_in?: InputMaybe>; - appLanguageCode_starts_with?: InputMaybe; - email?: InputMaybe; - email_contains?: InputMaybe; - email_in?: InputMaybe>; - email_not?: InputMaybe; - email_not_in?: InputMaybe>; - email_starts_with?: InputMaybe; - event_title_contains?: InputMaybe; - firstName?: InputMaybe; - firstName_contains?: InputMaybe; - firstName_in?: InputMaybe>; - firstName_not?: InputMaybe; - firstName_not_in?: InputMaybe>; - firstName_starts_with?: InputMaybe; - id?: InputMaybe; - id_contains?: InputMaybe; - id_in?: InputMaybe>; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - id_starts_with?: InputMaybe; - lastName?: InputMaybe; - lastName_contains?: InputMaybe; - lastName_in?: InputMaybe>; - lastName_not?: InputMaybe; - lastName_not_in?: InputMaybe>; - lastName_starts_with?: InputMaybe; + admin_for?: InputMaybe; + appLanguageCode?: InputMaybe; + appLanguageCode_contains?: InputMaybe; + appLanguageCode_in?: InputMaybe>; + appLanguageCode_not?: InputMaybe; + appLanguageCode_not_in?: InputMaybe>; + appLanguageCode_starts_with?: InputMaybe; + email?: InputMaybe; + email_contains?: InputMaybe; + email_in?: InputMaybe>; + email_not?: InputMaybe; + email_not_in?: InputMaybe>; + email_starts_with?: InputMaybe; + event_title_contains?: InputMaybe; + firstName?: InputMaybe; + firstName_contains?: InputMaybe; + firstName_in?: InputMaybe>; + firstName_not?: InputMaybe; + firstName_not_in?: InputMaybe>; + firstName_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_in?: InputMaybe>; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + id_starts_with?: InputMaybe; + lastName?: InputMaybe; + lastName_contains?: InputMaybe; + lastName_in?: InputMaybe>; + lastName_not?: InputMaybe; + lastName_not_in?: InputMaybe>; + lastName_starts_with?: InputMaybe; }; export type UsersConnection = { @@ -1949,9 +1951,9 @@ export type UsersConnection = { }; export type UsersConnectionInput = { - cursor?: InputMaybe; + cursor?: InputMaybe; direction: PaginationDirection; - limit: Scalars['PositiveInt']; + limit: Scalars['PositiveInt']['input']; }; export type UsersConnectionResult = { @@ -1961,14 +1963,14 @@ export type UsersConnectionResult = { }; export type CreateChatInput = { - organizationId: Scalars['ID']; - userIds: Array; + organizationId: Scalars['ID']['input']; + userIds: Array; }; export type CreateGroupChatInput = { - organizationId: Scalars['ID']; - title: Scalars['String']; - userIds: Array; + organizationId: Scalars['ID']['input']; + title: Scalars['String']['input']; + userIds: Array; }; @@ -2034,6 +2036,17 @@ export type DirectiveResolverFn TResult | Promise; +/** Mapping of union types */ +export type ResolversUnionTypes> = { + ConnectionError: ( InvalidCursor ) | ( MaximumValueError ); +}; + +/** Mapping of interface types */ +export type ResolversInterfaceTypes> = { + Error: ( UnauthenticatedError ) | ( UnauthorizedError ); + FieldError: ( InvalidCursor ) | ( MaximumLengthError ) | ( MaximumValueError ) | ( MinimumLengthError ) | ( MinimumValueError ); +}; + /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = { ActionItem: ResolverTypeWrapper; @@ -2043,32 +2056,32 @@ export type ResolversTypes = { AdvertisementType: AdvertisementType; AggregatePost: ResolverTypeWrapper; AggregateUser: ResolverTypeWrapper; - Any: ResolverTypeWrapper; + Any: ResolverTypeWrapper; AuthData: ResolverTypeWrapper & { user: ResolversTypes['User'] }>; - Boolean: ResolverTypeWrapper; + Boolean: ResolverTypeWrapper; Category: ResolverTypeWrapper; CheckIn: ResolverTypeWrapper; CheckInInput: CheckInInput; CheckInStatus: ResolverTypeWrapper & { checkIn?: Maybe, user: ResolversTypes['User'] }>; Comment: ResolverTypeWrapper; CommentInput: CommentInput; - ConnectionError: ResolversTypes['InvalidCursor'] | ResolversTypes['MaximumValueError']; + ConnectionError: ResolverTypeWrapper['ConnectionError']>; ConnectionPageInfo: ResolverTypeWrapper; - CountryCode: ResolverTypeWrapper; + CountryCode: ResolverTypeWrapper; CreateActionItemInput: CreateActionItemInput; CreateUserTagInput: CreateUserTagInput; CursorPaginationInput: CursorPaginationInput; - Date: ResolverTypeWrapper; - DateTime: ResolverTypeWrapper; + Date: ResolverTypeWrapper; + DateTime: ResolverTypeWrapper; DeletePayload: ResolverTypeWrapper; DirectChat: ResolverTypeWrapper; DirectChatMessage: ResolverTypeWrapper; Donation: ResolverTypeWrapper; DonationWhereInput: DonationWhereInput; EducationGrade: EducationGrade; - EmailAddress: ResolverTypeWrapper; + EmailAddress: ResolverTypeWrapper; EmploymentStatus: EmploymentStatus; - Error: ResolversTypes['UnauthenticatedError'] | ResolversTypes['UnauthorizedError']; + Error: ResolverTypeWrapper['Error']>; Event: ResolverTypeWrapper; EventAttendeeInput: EventAttendeeInput; EventInput: EventInput; @@ -2077,23 +2090,23 @@ export type ResolversTypes = { ExtendSession: ResolverTypeWrapper; Feedback: ResolverTypeWrapper; FeedbackInput: FeedbackInput; - FieldError: ResolversTypes['InvalidCursor'] | ResolversTypes['MaximumLengthError'] | ResolversTypes['MaximumValueError'] | ResolversTypes['MinimumLengthError'] | ResolversTypes['MinimumValueError']; - Float: ResolverTypeWrapper; + FieldError: ResolverTypeWrapper['FieldError']>; + Float: ResolverTypeWrapper; ForgotPasswordData: ForgotPasswordData; Gender: Gender; Group: ResolverTypeWrapper; GroupChat: ResolverTypeWrapper; GroupChatMessage: ResolverTypeWrapper; - ID: ResolverTypeWrapper; - Int: ResolverTypeWrapper; + ID: ResolverTypeWrapper; + Int: ResolverTypeWrapper; InvalidCursor: ResolverTypeWrapper; - JSON: ResolverTypeWrapper; + JSON: ResolverTypeWrapper; Language: ResolverTypeWrapper; LanguageInput: LanguageInput; LanguageModel: ResolverTypeWrapper; - Latitude: ResolverTypeWrapper; + Latitude: ResolverTypeWrapper; LoginInput: LoginInput; - Longitude: ResolverTypeWrapper; + Longitude: ResolverTypeWrapper; MaritalStatus: MaritalStatus; MaximumLengthError: ResolverTypeWrapper; MaximumValueError: ResolverTypeWrapper; @@ -2114,12 +2127,12 @@ export type ResolversTypes = { OtpData: ResolverTypeWrapper; PageInfo: ResolverTypeWrapper; PaginationDirection: PaginationDirection; - PhoneNumber: ResolverTypeWrapper; + PhoneNumber: ResolverTypeWrapper; Plugin: ResolverTypeWrapper; PluginField: ResolverTypeWrapper; PluginFieldInput: PluginFieldInput; PluginInput: PluginInput; - PositiveInt: ResolverTypeWrapper; + PositiveInt: ResolverTypeWrapper; Post: ResolverTypeWrapper; PostConnection: ResolverTypeWrapper & { edges: Array> }>; PostInput: PostInput; @@ -2130,13 +2143,13 @@ export type ResolversTypes = { RecaptchaVerification: RecaptchaVerification; Recurrance: Recurrance; Status: Status; - String: ResolverTypeWrapper; + String: ResolverTypeWrapper; Subscription: ResolverTypeWrapper<{}>; - Time: ResolverTypeWrapper; + Time: ResolverTypeWrapper; ToggleUserTagAssignInput: ToggleUserTagAssignInput; Translation: ResolverTypeWrapper; Type: Type; - URL: ResolverTypeWrapper; + URL: ResolverTypeWrapper; UnauthenticatedError: ResolverTypeWrapper; UnauthorizedError: ResolverTypeWrapper; UpdateActionItemInput: UpdateActionItemInput; @@ -2149,7 +2162,7 @@ export type ResolversTypes = { UpdateUserPasswordInput: UpdateUserPasswordInput; UpdateUserTagInput: UpdateUserTagInput; UpdateUserTypeInput: UpdateUserTypeInput; - Upload: ResolverTypeWrapper; + Upload: ResolverTypeWrapper; User: ResolverTypeWrapper; UserAndOrganizationInput: UserAndOrganizationInput; UserConnection: ResolverTypeWrapper & { edges: Array> }>; @@ -2181,30 +2194,30 @@ export type ResolversParentTypes = { Advertisement: Omit & { creator?: Maybe }; AggregatePost: AggregatePost; AggregateUser: AggregateUser; - Any: Scalars['Any']; + Any: Scalars['Any']['output']; AuthData: Omit & { user: ResolversParentTypes['User'] }; - Boolean: Scalars['Boolean']; + Boolean: Scalars['Boolean']['output']; Category: InterfaceCategoryModel; CheckIn: InterfaceCheckInModel; CheckInInput: CheckInInput; CheckInStatus: Omit & { checkIn?: Maybe, user: ResolversParentTypes['User'] }; Comment: InterfaceCommentModel; CommentInput: CommentInput; - ConnectionError: ResolversParentTypes['InvalidCursor'] | ResolversParentTypes['MaximumValueError']; + ConnectionError: ResolversUnionTypes['ConnectionError']; ConnectionPageInfo: ConnectionPageInfo; - CountryCode: Scalars['CountryCode']; + CountryCode: Scalars['CountryCode']['output']; CreateActionItemInput: CreateActionItemInput; CreateUserTagInput: CreateUserTagInput; CursorPaginationInput: CursorPaginationInput; - Date: Scalars['Date']; - DateTime: Scalars['DateTime']; + Date: Scalars['Date']['output']; + DateTime: Scalars['DateTime']['output']; DeletePayload: DeletePayload; DirectChat: InterfaceDirectChatModel; DirectChatMessage: InterfaceDirectChatMessageModel; Donation: InterfaceDonationModel; DonationWhereInput: DonationWhereInput; - EmailAddress: Scalars['EmailAddress']; - Error: ResolversParentTypes['UnauthenticatedError'] | ResolversParentTypes['UnauthorizedError']; + EmailAddress: Scalars['EmailAddress']['output']; + Error: ResolversInterfaceTypes['Error']; Event: InterfaceEventModel; EventAttendeeInput: EventAttendeeInput; EventInput: EventInput; @@ -2212,22 +2225,22 @@ export type ResolversParentTypes = { ExtendSession: ExtendSession; Feedback: InterfaceFeedbackModel; FeedbackInput: FeedbackInput; - FieldError: ResolversParentTypes['InvalidCursor'] | ResolversParentTypes['MaximumLengthError'] | ResolversParentTypes['MaximumValueError'] | ResolversParentTypes['MinimumLengthError'] | ResolversParentTypes['MinimumValueError']; - Float: Scalars['Float']; + FieldError: ResolversInterfaceTypes['FieldError']; + Float: Scalars['Float']['output']; ForgotPasswordData: ForgotPasswordData; Group: InterfaceGroupModel; GroupChat: InterfaceGroupChatModel; GroupChatMessage: InterfaceGroupChatMessageModel; - ID: Scalars['ID']; - Int: Scalars['Int']; + ID: Scalars['ID']['output']; + Int: Scalars['Int']['output']; InvalidCursor: InvalidCursor; - JSON: Scalars['JSON']; + JSON: Scalars['JSON']['output']; Language: InterfaceLanguageModel; LanguageInput: LanguageInput; LanguageModel: LanguageModel; - Latitude: Scalars['Latitude']; + Latitude: Scalars['Latitude']['output']; LoginInput: LoginInput; - Longitude: Scalars['Longitude']; + Longitude: Scalars['Longitude']['output']; MaximumLengthError: MaximumLengthError; MaximumValueError: MaximumValueError; MembershipRequest: InterfaceMembershipRequestModel; @@ -2245,12 +2258,12 @@ export type ResolversParentTypes = { OrganizationWhereInput: OrganizationWhereInput; OtpData: OtpData; PageInfo: PageInfo; - PhoneNumber: Scalars['PhoneNumber']; + PhoneNumber: Scalars['PhoneNumber']['output']; Plugin: InterfacePluginModel; PluginField: InterfacePluginFieldModel; PluginFieldInput: PluginFieldInput; PluginInput: PluginInput; - PositiveInt: Scalars['PositiveInt']; + PositiveInt: Scalars['PositiveInt']['output']; Post: InterfacePostModel; PostConnection: Omit & { edges: Array> }; PostInput: PostInput; @@ -2258,12 +2271,12 @@ export type ResolversParentTypes = { PostWhereInput: PostWhereInput; Query: {}; RecaptchaVerification: RecaptchaVerification; - String: Scalars['String']; + String: Scalars['String']['output']; Subscription: {}; - Time: Scalars['Time']; + Time: Scalars['Time']['output']; ToggleUserTagAssignInput: ToggleUserTagAssignInput; Translation: Translation; - URL: Scalars['URL']; + URL: Scalars['URL']['output']; UnauthenticatedError: UnauthenticatedError; UnauthorizedError: UnauthorizedError; UpdateActionItemInput: UpdateActionItemInput; @@ -2276,7 +2289,7 @@ export type ResolversParentTypes = { UpdateUserPasswordInput: UpdateUserPasswordInput; UpdateUserTagInput: UpdateUserTagInput; UpdateUserTypeInput: UpdateUserTypeInput; - Upload: Scalars['Upload']; + Upload: Scalars['Upload']['output']; User: InterfaceUserModel; UserAndOrganizationInput: UserAndOrganizationInput; UserConnection: Omit & { edges: Array> }; From 4fc5fe71fa6d4e8d25e6247deee25c39736d8d83 Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 22 Jan 2024 14:49:03 +0530 Subject: [PATCH 18/28] change Category name to ActionItemCategory --- codegen.ts | 2 +- locales/en.json | 2 +- locales/fr.json | 2 +- locales/hi.json | 2 +- locales/sp.json | 2 +- locales/zh.json | 2 +- src/constants.ts | 10 +- src/models/ActionItem.ts | 10 +- .../{Category.ts => ActionItemCategory.ts} | 26 ++-- src/models/Organization.ts | 8 +- src/models/index.ts | 2 +- .../ActionItem/actionItemCategory.ts | 8 ++ src/resolvers/ActionItem/category.ts | 8 -- src/resolvers/ActionItem/index.ts | 4 +- src/resolvers/ActionItemCategory/createdBy.ts | 8 ++ src/resolvers/ActionItemCategory/index.ts | 8 ++ src/resolvers/ActionItemCategory/org.ts | 8 ++ src/resolvers/Category/createdBy.ts | 8 -- src/resolvers/Category/index.ts | 8 -- src/resolvers/Category/org.ts | 8 -- src/resolvers/Mutation/createActionItem.ts | 30 ++-- ...ategory.ts => createActionItemCategory.ts} | 20 +-- src/resolvers/Mutation/createOrganization.ts | 10 +- src/resolvers/Mutation/index.ts | 4 +- src/resolvers/Mutation/removeActionItem.ts | 6 +- src/resolvers/Mutation/removeOrganization.ts | 10 +- src/resolvers/Mutation/updateActionItem.ts | 8 +- ...ategory.ts => updateActionItemCategory.ts} | 30 ++-- .../Organization/actionCategories.ts | 4 +- ... => actionItemCategoriesByOrganization.ts} | 6 +- src/resolvers/Query/actionItemCategory.ts | 27 ++++ src/resolvers/Query/category.ts | 27 ---- src/resolvers/Query/index.ts | 8 +- src/resolvers/index.ts | 4 +- src/typeDefs/inputs.ts | 4 +- src/typeDefs/mutations.ts | 6 +- src/typeDefs/queries.ts | 4 +- src/typeDefs/types.ts | 10 +- src/types/generatedGraphQLTypes.ts | 132 +++++++++--------- tests/helpers/actionItem.ts | 24 ++-- .../{category.ts => actionItemCategory.ts} | 20 +-- tests/resolvers/ActionItem/category.spec.ts | 18 +-- .../createdBy.spec.ts | 12 +- .../org.spec.ts | 12 +- .../Mutation/createActionItem.spec.ts | 36 ++--- ...ec.ts => createActionItemCategory.spec.ts} | 42 +++--- .../Mutation/createOrganization.spec.ts | 6 +- .../Mutation/removeActionItem.spec.ts | 10 +- .../Mutation/removeOrganization.spec.ts | 14 +- .../Mutation/updateActionItem.spec.ts | 10 +- ...ec.ts => updateActionItemCategory.spec.ts} | 56 ++++---- .../Organization/actionCategories.spec.ts | 6 +- .../Query/categoriesByOrganization.spec.ts | 10 +- tests/resolvers/Query/category.spec.ts | 30 ++-- 54 files changed, 396 insertions(+), 396 deletions(-) rename src/models/{Category.ts => ActionItemCategory.ts} (58%) create mode 100644 src/resolvers/ActionItem/actionItemCategory.ts delete mode 100644 src/resolvers/ActionItem/category.ts create mode 100644 src/resolvers/ActionItemCategory/createdBy.ts create mode 100644 src/resolvers/ActionItemCategory/index.ts create mode 100644 src/resolvers/ActionItemCategory/org.ts delete mode 100644 src/resolvers/Category/createdBy.ts delete mode 100644 src/resolvers/Category/index.ts delete mode 100644 src/resolvers/Category/org.ts rename src/resolvers/Mutation/{createCategory.ts => createActionItemCategory.ts} (78%) rename src/resolvers/Mutation/{updateCategory.ts => updateActionItemCategory.ts} (59%) rename src/resolvers/Query/{categoriesByOrganization.ts => actionItemCategoriesByOrganization.ts} (67%) create mode 100644 src/resolvers/Query/actionItemCategory.ts delete mode 100644 src/resolvers/Query/category.ts rename tests/helpers/{category.ts => actionItemCategory.ts} (67%) rename tests/resolvers/{Category => ActionItemCategory}/createdBy.spec.ts (70%) rename tests/resolvers/{Category => ActionItemCategory}/org.spec.ts (66%) rename tests/resolvers/Mutation/{createCategory.spec.ts => createActionItemCategory.spec.ts} (74%) rename tests/resolvers/Mutation/{updateCategory.spec.ts => updateActionItemCategory.spec.ts} (61%) diff --git a/codegen.ts b/codegen.ts index df55f659d2..9b193a3228 100644 --- a/codegen.ts +++ b/codegen.ts @@ -27,7 +27,7 @@ const config: CodegenConfig = { mappers: { ActionItem: "../models/ActionItem#InterfaceActionItem", - Category: "../models/Category#InterfaceCategory", + ActionItemCategory: "../models/ActionItemCategory#InterfaceActionItemCategory", CheckIn: "../models/CheckIn#InterfaceCheckIn", diff --git a/locales/en.json b/locales/en.json index 15ae6b5059..d977539b13 100644 --- a/locales/en.json +++ b/locales/en.json @@ -4,7 +4,7 @@ "user.notFound": "User not found", "user.alreadyMember": "User is already a member", "user.profileImage.notFound": "User profile image not found", - "category.notFound": "Category not found", + "actionItemCategory.notFound": "ActionItemCategory not found", "actionItem.notFound": "Action Item not found", "advertisement.notFound": "Advertisement not found", "event.notFound": "Event not found", diff --git a/locales/fr.json b/locales/fr.json index ac93735b87..61e52816a1 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -4,7 +4,7 @@ "user.notFound": "Utilisateur introuvable", "user.alreadyMember": "L'utilisateur est déjà membre", "user.profileImage.notFound": "Image du profil utilisateur introuvable", - "category.notFound": "Catégorie non trouvée", + "actionItemCategory.notFound": "Catégorie non trouvée", "actionItem.notFound": "Élément d\\’action non trouvé", "event.notFound": "Événement non trouvé", "organization.notFound": "Organisation introuvable", diff --git a/locales/hi.json b/locales/hi.json index ce1e901091..79c9071e0b 100644 --- a/locales/hi.json +++ b/locales/hi.json @@ -4,7 +4,7 @@ "user.notFound": "उपयोगकर्ता नहीं मिला", "user.alreadyMember": "उपयोगकर्ता पहले से ही एक सदस्य है", "user.profileImage.notFound": "उपयोगकर्ता प्रोफ़ाइल छवि नहीं मिली", - "category.notFound": "श्रेणी नहीं मिली", + "actionItemCategory.notFound": "श्रेणी नहीं मिली", "actionItem.notFound": "कार्रवाई का मद नहीं मिला", "advertisement.notFound": "विज्ञापन नहीं मिला", "event.notFound": "घटना नहीं मिली", diff --git a/locales/sp.json b/locales/sp.json index 4946e06055..4923eab91a 100644 --- a/locales/sp.json +++ b/locales/sp.json @@ -4,7 +4,7 @@ "user.notFound": "Usuario no encontrado", "user.alreadyMember": "El usuario ya es miembro", "user.profileImage.notFound": "No se encontró la imagen de perfil de usuario", - "category.notFound": "Categoría no encontrada", + "actionItemCategory.notFound": "Categoría no encontrada", "actionItem.notFound": "Elemento de acción no encontrado", "event.notFound": "Evento no encontrado", "organization.notFound": "Organización no encontrada", diff --git a/locales/zh.json b/locales/zh.json index 49506e7f18..cef354813a 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -4,7 +4,7 @@ "user.notFound": "找不到用戶", "user.alreadyMember": "用戶已經是會員", "user.profileImage.notFound": "未找到用戶個人資料圖像", - "category.notFound": "找不到类别", + "actionItemCategory.notFound": "找不到类别", "actionItem.notFound": "找不到操作项", "event.notFound": "未找到事件", "organization.notFound": "未找到組織", diff --git a/src/constants.ts b/src/constants.ts index 90d61568c1..e026f25991 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,11 +14,11 @@ export const ACTION_ITEM_NOT_FOUND_ERROR = { PARAM: "actionItem", }; -export const CATEGORY_NOT_FOUND_ERROR = { - DESC: "Category not found", - CODE: "category.notFound", - MESSAGE: "category.notFound", - PARAM: "category", +export const ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR = { + DESC: "ActionItemCategory not found", + CODE: "actionItemCategory.notFound", + MESSAGE: "actionItemCategory.notFound", + PARAM: "actionItemCategory", }; export const CHAT_NOT_FOUND_ERROR = { diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 705cb81590..72c1d7222f 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -2,7 +2,7 @@ import type { PopulatedDoc, Types, Document, Model } from "mongoose"; import { Schema, model, models } from "mongoose"; import type { InterfaceUser } from "./User"; import type { InterfaceEvent } from "./Event"; -import type { InterfaceCategory } from "./Category"; +import type { InterfaceActionItemCategory } from "./ActionItemCategory"; /** * This is an interface that represents a database(MongoDB) document for ActionItem. @@ -12,7 +12,7 @@ export interface InterfaceActionItem { _id: Types.ObjectId; assignedTo: PopulatedDoc; assignedBy: PopulatedDoc; - categoryId: PopulatedDoc; + actionItemCategoryId: PopulatedDoc; preCompletionNotes: string; postCompletionNotes: string; assignmentDate: Date; @@ -29,7 +29,7 @@ export interface InterfaceActionItem { * This describes the schema for a `ActionItem` that corresponds to `InterfaceActionItem` document. * @param assignedTo - User to whom the ActionItem is assigned, refer to `User` model. * @param assignedBy - User who assigned the ActionItem, refer to the `User` model. - * @param categoryId - Category to which the ActionItem is related, refer to the `Category` model. + * @param actionItemCategoryId - ActionItemCategory to which the ActionItem is related, refer to the `ActionItemCategory` model. * @param preCompletionNotes - Notes prior to completion. * @param postCompletionNotes - Notes on completion. * @param assignmentDate - Date of assignment. @@ -54,9 +54,9 @@ const actionItemSchema = new Schema( ref: "User", required: true, }, - categoryId: { + actionItemCategoryId: { type: Schema.Types.ObjectId, - ref: "Category", + ref: "ActionItemCategory", required: true, }, preCompletionNotes: { diff --git a/src/models/Category.ts b/src/models/ActionItemCategory.ts similarity index 58% rename from src/models/Category.ts rename to src/models/ActionItemCategory.ts index 0dd9eb01d0..ae86f9be79 100644 --- a/src/models/Category.ts +++ b/src/models/ActionItemCategory.ts @@ -4,12 +4,12 @@ import type { InterfaceUser } from "./User"; import type { InterfaceOrganization } from "./Organization"; /** - * This is an interface that represents a database(MongoDB) document for Category. + * This is an interface that represents a database(MongoDB) document for ActionItemCategory. */ -export interface InterfaceCategory { +export interface InterfaceActionItemCategory { _id: Types.ObjectId; - category: string; + name: string; orgId: PopulatedDoc; disabled: boolean; createdBy: PopulatedDoc; @@ -18,18 +18,18 @@ export interface InterfaceCategory { } /** - * This describes the schema for a `category` that corresponds to `InterfaceCategory` document. - * @param category - A category to be selected for ActionItems. - * @param orgId - Organization the category belongs to, refer to the `Organization` model. - * @param disabled - Whether category is disabled or not. + * This describes the schema for a `actionItemCategory` that corresponds to `InterfaceCategory` document. + * @param name - An actionItemCategory to be selected for ActionItems. + * @param orgId - Organization the actionItemCategory belongs to, refer to the `Organization` model. + * @param disabled - Whether actionItemCategory is disabled or not. * @param createdBy - Task creator, refer to `User` model. * @param createdAt - Time stamp of data creation. * @param updatedAt - Time stamp of data updation. */ -const categorySchema = new Schema( +const actionItemCategorySchema = new Schema( { - category: { + name: { type: String, required: true, }, @@ -51,10 +51,10 @@ const categorySchema = new Schema( { timestamps: true } ); -const categoryModel = (): Model => - model("Category", categorySchema); +const actionItemCategoryModel = (): Model => + model("ActionItemCategory", actionItemCategorySchema); // This syntax is needed to prevent Mongoose OverwriteModelError while running tests. -export const Category = (models.Category || categoryModel()) as ReturnType< - typeof categoryModel +export const ActionItemCategory = (models.ActionItemCategory || actionItemCategoryModel()) as ReturnType< + typeof actionItemCategoryModel >; diff --git a/src/models/Organization.ts b/src/models/Organization.ts index b18c95af44..a9c71eb5b0 100644 --- a/src/models/Organization.ts +++ b/src/models/Organization.ts @@ -5,7 +5,7 @@ import type { InterfaceMessage } from "./Message"; import type { InterfaceOrganizationCustomField } from "./OrganizationCustomField"; import type { InterfacePost } from "./Post"; import type { InterfaceUser } from "./User"; -import type { InterfaceCategory } from "./Category"; +import type { InterfaceActionItemCategory } from "./ActionItemCategory"; /** * This is an interface that represents a database(MongoDB) document for Organization. */ @@ -20,7 +20,7 @@ export interface InterfaceOrganization { status: string; members: PopulatedDoc[]; admins: PopulatedDoc[]; - actionCategories: PopulatedDoc[]; + actionCategories: PopulatedDoc[]; groupChats: PopulatedDoc[]; posts: PopulatedDoc[]; pinnedPosts: PopulatedDoc[]; @@ -43,7 +43,7 @@ export interface InterfaceOrganization { * @param status - Status. * @param members - Collection of members, each object refer to `User` model. * @param admins - Collection of organization admins, each object refer to `User` model. - * @param actionCategories - Collection of categories belonging to an organization, refer to `Category` model. + * @param actionCategories - Collection of categories belonging to an organization, refer to `ActionItemCategory` model. * @param groupChats - Collection of group chats, each object refer to `Message` model. * @param posts - Collection of Posts in the Organization, each object refer to `Post` model. * @param membershipRequests - Collection of membership requests in the Organization, each object refer to `MembershipRequest` model. @@ -90,7 +90,7 @@ const organizationSchema = new Schema( actionCategories: [ { type: Schema.Types.ObjectId, - ref: "Category", + ref: "ActionItemCategory", }, ], status: { diff --git a/src/models/index.ts b/src/models/index.ts index 73523445b0..cd287b1ec9 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,6 +1,6 @@ export * from "./ActionItem"; export * from "./Advertisement"; -export * from "./Category"; +export * from "./ActionItemCategory"; export * from "./CheckIn"; export * from "./MessageChat"; export * from "./Comment"; diff --git a/src/resolvers/ActionItem/actionItemCategory.ts b/src/resolvers/ActionItem/actionItemCategory.ts new file mode 100644 index 0000000000..e9e3c5e293 --- /dev/null +++ b/src/resolvers/ActionItem/actionItemCategory.ts @@ -0,0 +1,8 @@ +import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; +import { ActionItemCategory } from "../../models"; + +export const actionItemCategory: ActionItemResolvers["actionItemCategory"] = async (parent) => { + return ActionItemCategory.findOne({ + _id: parent.actionItemCategoryId, + }).lean(); +}; diff --git a/src/resolvers/ActionItem/category.ts b/src/resolvers/ActionItem/category.ts deleted file mode 100644 index f25e419dc4..0000000000 --- a/src/resolvers/ActionItem/category.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; -import { Category } from "../../models"; - -export const category: ActionItemResolvers["category"] = async (parent) => { - return Category.findOne({ - _id: parent.categoryId, - }).lean(); -}; diff --git a/src/resolvers/ActionItem/index.ts b/src/resolvers/ActionItem/index.ts index fdf29e7141..b2423a149a 100644 --- a/src/resolvers/ActionItem/index.ts +++ b/src/resolvers/ActionItem/index.ts @@ -1,14 +1,14 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; import { assignedTo } from "./assignedTo"; import { assignedBy } from "./assignedBy"; -import { category } from "./category"; +import { actionItemCategory } from "./actionItemCategory"; import { event } from "./event"; import { createdBy } from "./createdBy"; export const ActionItem: ActionItemResolvers = { assignedTo, assignedBy, - category, + actionItemCategory, event, createdBy, }; diff --git a/src/resolvers/ActionItemCategory/createdBy.ts b/src/resolvers/ActionItemCategory/createdBy.ts new file mode 100644 index 0000000000..1a3b46a3e0 --- /dev/null +++ b/src/resolvers/ActionItemCategory/createdBy.ts @@ -0,0 +1,8 @@ +import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { User } from "../../models"; + +export const createdBy: ActionItemCategoryResolvers["createdBy"] = async (parent) => { + return User.findOne({ + _id: parent.createdBy, + }).lean(); +}; diff --git a/src/resolvers/ActionItemCategory/index.ts b/src/resolvers/ActionItemCategory/index.ts new file mode 100644 index 0000000000..054c9b1f02 --- /dev/null +++ b/src/resolvers/ActionItemCategory/index.ts @@ -0,0 +1,8 @@ +import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { org } from "./org"; +import { createdBy } from "./createdBy"; + +export const ActionItemCategory: ActionItemCategoryResolvers = { + org, + createdBy, +}; diff --git a/src/resolvers/ActionItemCategory/org.ts b/src/resolvers/ActionItemCategory/org.ts new file mode 100644 index 0000000000..2ad41dd319 --- /dev/null +++ b/src/resolvers/ActionItemCategory/org.ts @@ -0,0 +1,8 @@ +import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; +import { Organization } from "../../models"; + +export const org: ActionItemCategoryResolvers["org"] = async (parent) => { + return Organization.findOne({ + _id: parent.orgId, + }).lean(); +}; diff --git a/src/resolvers/Category/createdBy.ts b/src/resolvers/Category/createdBy.ts deleted file mode 100644 index 64fa5ca4cd..0000000000 --- a/src/resolvers/Category/createdBy.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; -import { User } from "../../models"; - -export const createdBy: CategoryResolvers["createdBy"] = async (parent) => { - return User.findOne({ - _id: parent.createdBy, - }).lean(); -}; diff --git a/src/resolvers/Category/index.ts b/src/resolvers/Category/index.ts deleted file mode 100644 index 2b83845342..0000000000 --- a/src/resolvers/Category/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; -import { org } from "./org"; -import { createdBy } from "./createdBy"; - -export const Category: CategoryResolvers = { - org, - createdBy, -}; diff --git a/src/resolvers/Category/org.ts b/src/resolvers/Category/org.ts deleted file mode 100644 index ec7c62919c..0000000000 --- a/src/resolvers/Category/org.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { CategoryResolvers } from "../../types/generatedGraphQLTypes"; -import { Organization } from "../../models"; - -export const org: CategoryResolvers["org"] = async (parent) => { - return Organization.findOne({ - _id: parent.orgId, - }).lean(); -}; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index 176cb1f864..a8427d6e09 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -1,12 +1,12 @@ import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import type { InterfaceActionItem, InterfaceEvent } from "../../models"; -import { User, Event, Category, ActionItem } from "../../models"; +import { User, Event, ActionItemCategory, ActionItem } from "../../models"; import { errors, requestContext } from "../../libraries"; import { USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ERROR, EVENT_NOT_FOUND_ERROR, - CATEGORY_NOT_FOUND_ERROR, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR, USER_NOT_MEMBER_FOR_ORGANIZATION, } from "../../constants"; import { findEventsInCache } from "../../services/EventCache/findEventInCache"; @@ -21,7 +21,7 @@ import { Types } from "mongoose"; * @remarks The following checks are done: * 1. If the user exists * 3. If the asignee exists - * 4. If the category exists + * 4. If the actionItemCategory exists * 5. If the asignee is a member of the organization * 6. If the user is a member of the organization * 7. If the event exists (if action item related to an event) @@ -60,24 +60,24 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( ); } - const category = await Category.findOne({ - _id: args.categoryId, + const actionItemCategory = await ActionItemCategory.findOne({ + _id: args.actionItemCategoryId, }).lean(); - // Checks if the category exists - if (!category) { + // Checks if the actionItemCategory exists + if (!actionItemCategory) { throw new errors.NotFoundError( - requestContext.translate(CATEGORY_NOT_FOUND_ERROR.MESSAGE), - CATEGORY_NOT_FOUND_ERROR.CODE, - CATEGORY_NOT_FOUND_ERROR.PARAM + requestContext.translate(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE), + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.PARAM ); } let asigneeIsOrganizationMember = false; asigneeIsOrganizationMember = assignee.joinedOrganizations.some( (organizationId) => - organizationId === category.orgId || - Types.ObjectId(organizationId).equals(category.orgId) + organizationId === actionItemCategory.orgId || + Types.ObjectId(organizationId).equals(actionItemCategory.orgId) ); // Checks if the asignee is a member of the organization @@ -127,8 +127,8 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( // Checks if the currUser is an admin of the organization const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === category.orgId || - Types.ObjectId(ogranizationId).equals(category.orgId) + ogranizationId === actionItemCategory.orgId || + Types.ObjectId(ogranizationId).equals(actionItemCategory.orgId) ); // Checks whether currentUser with _id === context.userId is authorized for the operation. @@ -148,7 +148,7 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( const createActionItem = await ActionItem.create({ assignedTo: args.data.assignedTo, assignedBy: context.userId, - categoryId: args.categoryId, + actionItemCategoryId: args.actionItemCategoryId, preCompletionNotes: args.data.preCompletionNotes, postCompletionNotes: args.data.postCompletionNotes, dueDate: args.data.dueDate, diff --git a/src/resolvers/Mutation/createCategory.ts b/src/resolvers/Mutation/createActionItemCategory.ts similarity index 78% rename from src/resolvers/Mutation/createCategory.ts rename to src/resolvers/Mutation/createActionItemCategory.ts index 4246c1ea95..6d001cf4b2 100644 --- a/src/resolvers/Mutation/createCategory.ts +++ b/src/resolvers/Mutation/createActionItemCategory.ts @@ -1,5 +1,5 @@ import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; -import { User, Category, Organization } from "../../models"; +import { User, ActionItemCategory, Organization } from "../../models"; import { errors, requestContext } from "../../libraries"; import { USER_NOT_FOUND_ERROR, @@ -11,7 +11,7 @@ import { findOrganizationsInCache } from "../../services/OrganizationCache/findO import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrganizations"; /** - * This function enables to create a Category. + * This function enables to create an ActionItemCategory. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application @@ -19,10 +19,10 @@ import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrgani * 1. If the User exists * 2. If the Organization exists * 3. Is the User is Authorized - * @returns Created Category + * @returns Created ActionItemCategory */ -export const createCategory: MutationResolvers["createCategory"] = async ( +export const createActionItemCategory: MutationResolvers["createActionItemCategory"] = async ( _parent, args, context @@ -66,9 +66,9 @@ export const createCategory: MutationResolvers["createCategory"] = async ( // Checks whether the user is authorized to perform the operation await adminCheck(context.userId, organization); - // Creates new category. - const createdCategory = await Category.create({ - category: args.category, + // Creates new actionItemCategory. + const createdActionItemCategory = await ActionItemCategory.create({ + name: args.name, orgId: args.orgId, createdBy: context.userId, }); @@ -78,10 +78,10 @@ export const createCategory: MutationResolvers["createCategory"] = async ( _id: organization._id, }, { - $push: { actionCategories: createdCategory._id }, + $push: { actionCategories: createdActionItemCategory._id }, } ); - // Returns created category. - return createdCategory.toObject(); + // Returns created actionItemCategory. + return createdActionItemCategory.toObject(); }; diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index 5c5b1a8573..89650098a3 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -1,6 +1,6 @@ import "dotenv/config"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; -import { User, Organization, Category } from "../../models"; +import { User, Organization, ActionItemCategory } from "../../models"; import { errors, requestContext } from "../../libraries"; import { LENGTH_VALIDATION_ERROR } from "../../constants"; import { superAdminCheck } from "../../utilities"; @@ -83,14 +83,14 @@ export const createOrganization: MutationResolvers["createOrganization"] = members: [context.userId], }); - // Creating a default category - const createdCategory = await Category.create({ - category: "Default", + // Creating a default actionItemCategory + const createdCategory = await ActionItemCategory.create({ + name: "Default", orgId: createdOrganization._id, createdBy: context.userId, }); - // Adding the default category to the createdOrganization + // Adding the default actionItemCategory to the createdOrganization createdOrganization.actionCategories.push(createdCategory._id); await createdOrganization.save(); diff --git a/src/resolvers/Mutation/index.ts b/src/resolvers/Mutation/index.ts index d1f4076beb..823a70fe8f 100644 --- a/src/resolvers/Mutation/index.ts +++ b/src/resolvers/Mutation/index.ts @@ -31,7 +31,7 @@ import { createPlugin } from "./createPlugin"; import { createAdvertisement } from "./createAdvertisement"; import { createPost } from "./createPost"; import { createSampleOrganization } from "./createSampleOrganization"; -import { createCategory } from "./createCategory"; +import { createCategory } from "./createActionItemCategory"; import { createUserTag } from "./createUserTag"; import { deleteDonationById } from "./deleteDonationById"; import { forgotPassword } from "./forgotPassword"; @@ -78,7 +78,7 @@ import { unlikeComment } from "./unlikeComment"; import { unlikePost } from "./unlikePost"; import { unregisterForEventByUser } from "./unregisterForEventByUser"; import { updateActionItem } from "./updateActionItem"; -import { updateCategory } from "./updateCategory"; +import { updateCategory } from "./updateActionItemCategory"; import { updateEvent } from "./updateEvent"; import { updateLanguage } from "./updateLanguage"; import { updateOrganization } from "./updateOrganization"; diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 9a3901a5ae..32e7091417 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -44,7 +44,7 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const actionItem = await ActionItem.findOne({ _id: args.id, }) - .populate("categoryId") + .populate("actionItemCategoryId") .lean(); // Checks if the actionItem exists @@ -58,8 +58,8 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.categoryId.orgId || - Types.ObjectId(ogranizationId).equals(actionItem.categoryId.orgId) + ogranizationId === actionItem.actionItemCategoryId.orgId || + Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.orgId) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/removeOrganization.ts b/src/resolvers/Mutation/removeOrganization.ts index 399c3a1cab..a9506f3d8b 100644 --- a/src/resolvers/Mutation/removeOrganization.ts +++ b/src/resolvers/Mutation/removeOrganization.ts @@ -6,7 +6,7 @@ import { Post, Comment, MembershipRequest, - Category, + ActionItemCategory, ActionItem, } from "../../models"; import { superAdminCheck } from "../../utilities"; @@ -127,12 +127,12 @@ export const removeOrganization: MutationResolvers["removeOrganization"] = { $pull: { organizationsBlockedBy: organization._id } } ); - // Remove all Category documents whose id is in the actionCategories array - await Category.deleteMany({ _id: { $in: organization.actionCategories } }); + // Remove all ActionItemCategory documents whose id is in the actionCategories array + await ActionItemCategory.deleteMany({ _id: { $in: organization.actionCategories } }); - // Remove all ActionItem documents whose category is in the actionCategories array + // Remove all ActionItem documents whose actionItemCategory is in the actionCategories array await ActionItem.deleteMany({ - categoryId: { $in: organization.actionCategories }, + actionItemCategoryId: { $in: organization.actionCategories }, }); // Deletes the organzation. diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index 3a3e742587..c5f6ec9502 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -55,7 +55,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const actionItem = await ActionItem.findOne({ _id: args.id, }) - .populate("categoryId") + .populate("actionItemCategoryId") .lean(); // Checks if the actionItem exists @@ -89,7 +89,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( } let userIsOrganizationMember = false; - const currOrgId = actionItem.categoryId.orgId; + const currOrgId = actionItem.actionItemCategoryId.orgId; userIsOrganizationMember = newAssignedUser.joinedOrganizations.some( (organizationId) => organizationId === currOrgId || @@ -109,8 +109,8 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.categoryId.orgId || - Types.ObjectId(ogranizationId).equals(actionItem.categoryId.orgId) + ogranizationId === actionItem.actionItemCategoryId.orgId || + Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.orgId) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/updateCategory.ts b/src/resolvers/Mutation/updateActionItemCategory.ts similarity index 59% rename from src/resolvers/Mutation/updateCategory.ts rename to src/resolvers/Mutation/updateActionItemCategory.ts index f55f5c913a..f0a5088ba6 100644 --- a/src/resolvers/Mutation/updateCategory.ts +++ b/src/resolvers/Mutation/updateActionItemCategory.ts @@ -1,29 +1,29 @@ import { - CATEGORY_NOT_FOUND_ERROR, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, } from "../../constants"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; -import { User, Category } from "../../models"; +import { User, ActionItemCategory } from "../../models"; import { adminCheck } from "../../utilities"; /** - * This function enables to update a category. + * This function enables to update a actionItemCategory. * @param _parent - parent of current request * @param args - payload provided with the request * @param context - context of entire application * @remarks The following checks are done: * 1. If the user exists. - * 2. If the category exists. + * 2. If the actionItemCategory exists. * 3. If the user is authorized. - * @returns Updated category. + * @returns Updated actionItemCategory. */ type UpdateCategoryInputType = { - category: string; + name: string; disabled: boolean; }; -export const updateCategory: MutationResolvers["updateCategory"] = async ( +export const updateActionItemCategory: MutationResolvers["updateActionItemCategory"] = async ( _parent, args, context @@ -41,24 +41,24 @@ export const updateCategory: MutationResolvers["updateCategory"] = async ( ); } - const category = await Category.findOne({ + const actionItemCategory = await ActionItemCategory.findOne({ _id: args.id, }) .populate("orgId") .lean(); - // Checks if the category exists - if (!category) { + // Checks if the actionItemCategory exists + if (!actionItemCategory) { throw new errors.NotFoundError( - requestContext.translate(CATEGORY_NOT_FOUND_ERROR.MESSAGE), - CATEGORY_NOT_FOUND_ERROR.CODE, - CATEGORY_NOT_FOUND_ERROR.PARAM + requestContext.translate(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE), + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.PARAM ); } - await adminCheck(context.userId, category.orgId); + await adminCheck(context.userId, actionItemCategory.orgId); - const updatedCategory = await Category.findOneAndUpdate( + const updatedCategory = await ActionItemCategory.findOneAndUpdate( { _id: args.id, }, diff --git a/src/resolvers/Organization/actionCategories.ts b/src/resolvers/Organization/actionCategories.ts index b599c33c4b..f953cc8561 100644 --- a/src/resolvers/Organization/actionCategories.ts +++ b/src/resolvers/Organization/actionCategories.ts @@ -1,4 +1,4 @@ -import { Category } from "../../models"; +import { ActionItemCategory } from "../../models"; import type { OrganizationResolvers } from "../../types/generatedGraphQLTypes"; /** * This resolver function will fetch and return the categories of the Organization from database. @@ -7,7 +7,7 @@ import type { OrganizationResolvers } from "../../types/generatedGraphQLTypes"; */ export const actionCategories: OrganizationResolvers["actionCategories"] = async (parent) => { - return await Category.find({ + return await ActionItemCategory.find({ _id: { $in: parent.actionCategories, }, diff --git a/src/resolvers/Query/categoriesByOrganization.ts b/src/resolvers/Query/actionItemCategoriesByOrganization.ts similarity index 67% rename from src/resolvers/Query/categoriesByOrganization.ts rename to src/resolvers/Query/actionItemCategoriesByOrganization.ts index c0d7b5ec86..542c09da76 100644 --- a/src/resolvers/Query/categoriesByOrganization.ts +++ b/src/resolvers/Query/actionItemCategoriesByOrganization.ts @@ -1,14 +1,14 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; -import { Category } from "../../models"; +import { ActionItemCategory } from "../../models"; /** * This query will fetch all categories for the organization from database. * @param _parent- * @param args - An object that contains `orgId` which is the _id of the Organization. * @returns A `categories` object that holds all categories for the Organization. */ -export const categoriesByOrganization: QueryResolvers["categoriesByOrganization"] = +export const actionItemCategoriesByOrganization: QueryResolvers["actionItemCategoriesByOrganization"] = async (_parent, args) => { - const categories = await Category.find({ + const categories = await ActionItemCategory.find({ orgId: args.orgId, }).lean(); diff --git a/src/resolvers/Query/actionItemCategory.ts b/src/resolvers/Query/actionItemCategory.ts new file mode 100644 index 0000000000..8219851357 --- /dev/null +++ b/src/resolvers/Query/actionItemCategory.ts @@ -0,0 +1,27 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { ActionItemCategory } from "../../models"; +import { errors } from "../../libraries"; +import { ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR } from "../../constants"; +/** + * This query will fetch the actionItemCategory with given id from the database. + * @param _parent- + * @param args - An object that contains `id` of the actionItemCategory that need to be fetched. + * @returns An `actionItemCategory` object. If the `actionItemCategory` object is null then it throws `NotFoundError` error. + * @remarks You can learn about GraphQL `Resolvers` + * {@link https://www.apollographql.com/docs/apollo-server/data/resolvers/ | here}. + */ +export const actionItemCategory: QueryResolvers["actionItemCategory"] = async (_parent, args) => { + const actionItemCategory = await ActionItemCategory.findOne({ + _id: args.id, + }).lean(); + + if (!actionItemCategory) { + throw new errors.NotFoundError( + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.DESC, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.PARAM + ); + } + + return actionItemCategory; +}; diff --git a/src/resolvers/Query/category.ts b/src/resolvers/Query/category.ts deleted file mode 100644 index ca79977c0c..0000000000 --- a/src/resolvers/Query/category.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; -import { Category } from "../../models"; -import { errors } from "../../libraries"; -import { CATEGORY_NOT_FOUND_ERROR } from "../../constants"; -/** - * This query will fetch the category with given id from the database. - * @param _parent- - * @param args - An object that contains `id` of the category that need to be fetched. - * @returns An `category` object. If the `category` object is null then it throws `NotFoundError` error. - * @remarks You can learn about GraphQL `Resolvers` - * {@link https://www.apollographql.com/docs/apollo-server/data/resolvers/ | here}. - */ -export const category: QueryResolvers["category"] = async (_parent, args) => { - const category = await Category.findOne({ - _id: args.id, - }).lean(); - - if (!category) { - throw new errors.NotFoundError( - CATEGORY_NOT_FOUND_ERROR.DESC, - CATEGORY_NOT_FOUND_ERROR.CODE, - CATEGORY_NOT_FOUND_ERROR.PARAM - ); - } - - return category; -}; diff --git a/src/resolvers/Query/index.ts b/src/resolvers/Query/index.ts index 6d45f5a915..4b93a446d3 100644 --- a/src/resolvers/Query/index.ts +++ b/src/resolvers/Query/index.ts @@ -1,8 +1,8 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; import { actionItem } from "./actionItem"; import { actionItemsByEvent } from "./actionItemsByEvent"; -import { category } from "./category"; -import { categoriesByOrganization } from "./categoriesByOrganization"; +import { actionItemCategory } from "./actionItemCategory"; +import { actionItemCategoriesByOrganization } from "./actionItemCategoriesByOrganization"; import { checkAuth } from "./checkAuth"; import { customDataByOrganization } from "./customDataByOrganization"; import { customFieldsByOrganization } from "./customFieldsByOrganization"; @@ -35,8 +35,8 @@ import { usersConnection } from "./usersConnection"; export const Query: QueryResolvers = { actionItem, actionItemsByEvent, - category, - categoriesByOrganization, + actionItemCategory, + actionItemCategoriesByOrganization, checkAuth, customFieldsByOrganization, customDataByOrganization, diff --git a/src/resolvers/index.ts b/src/resolvers/index.ts index 4acf3ea3f6..7ded81a68f 100644 --- a/src/resolvers/index.ts +++ b/src/resolvers/index.ts @@ -1,6 +1,6 @@ import type { Resolvers } from "../types/generatedGraphQLTypes"; import { ActionItem } from "./ActionItem"; -import { Category } from "./Category"; +import { ActionItemCategory } from "./ActionItemCategory"; import { CheckIn } from "./CheckIn"; import { Comment } from "./Comment"; import { DirectChat } from "./DirectChat"; @@ -34,6 +34,7 @@ import { const resolvers: Resolvers = { ActionItem, + ActionItemCategory, CheckIn, Comment, DirectChat, @@ -48,7 +49,6 @@ const resolvers: Resolvers = { Post, Query, Subscription, - Category, User, UserTag, diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index e9972eea21..adf7265ed3 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -309,8 +309,8 @@ export const inputs = gql` name: String! } - input UpdateCategoryInput { - category: String + input UpdateActionItemCategoryInput { + name: String disabled: Boolean } diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index f0aa810058..8c8ac6aaa8 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -58,7 +58,7 @@ export const mutations = gql` createActionItem( data: CreateActionItemInput! - categoryId: ID! + actionItemCategoryId: ID! ): ActionItem! @auth createComment(postId: ID!, data: CommentInput!): Comment @auth @@ -106,7 +106,7 @@ export const mutations = gql` createSampleOrganization: Boolean! @auth - createCategory(category: String!, orgId: ID!): Category! @auth + createActionItemCategory(name: String!, orgId: ID!): ActionItemCategory! @auth deleteAdvertisementById(id: ID!): DeletePayload! @@ -231,7 +231,7 @@ export const mutations = gql` updateUserTag(input: UpdateUserTagInput!): UserTag @auth - updateCategory(id: ID!, data: UpdateCategoryInput!): Category @auth + updateActionItemCategory(id: ID!, data: UpdateActionItemCategoryInput!): ActionItemCategory @auth updateUserProfile(data: UpdateUserInput, file: String): User! @auth diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index e93a3dc35f..d577caf236 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -11,9 +11,9 @@ export const queries = gql` actionItemsByEvent(eventId: ID!): [ActionItem] - category(id: ID!): Category + actionItemCategory(id: ID!): ActionItemCategory - categoriesByOrganization(orgId: ID!): [Category] + actionItemCategoriesByOrganization(orgId: ID!): [ActionItemCategory] checkAuth: User! @auth diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 765562857f..22fda47cf7 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -16,12 +16,12 @@ export const types = gql` refreshToken: String! } - # Action Item for a Category + # Action Item for a ActionItemCategory type ActionItem { _id: ID! assignedTo: User assignedBy: User - category: Category + actionItemCategory: ActionItemCategory preCompletionNotes: String postCompletionNotes: String assignmentDate: Date @@ -248,7 +248,7 @@ export const types = gql` creator: User members: [User!] admins(adminId: ID): [User!] - actionCategories: [Category!] + actionCategories: [ActionItemCategory!] createdAt: DateTime! updatedAt: DateTime! membershipRequests: [MembershipRequest] @@ -358,9 +358,9 @@ export const types = gql` aggregate: AggregatePost! } - type Category { + type ActionItemCategory { _id: ID! - category: String! + name: String! org: Organization disabled: Boolean! createdBy: User diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index be6e95f30d..bf10220b38 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1,6 +1,6 @@ import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; import type { InterfaceActionItem as InterfaceActionItemModel } from '../models/ActionItem'; -import type { InterfaceCategory as InterfaceCategoryModel } from '../models/Category'; +import type { InterfaceActionItemCategory as InterfaceActionItemCategoryModel } from '../models/ActionItemCategory'; import type { InterfaceCheckIn as InterfaceCheckInModel } from '../models/CheckIn'; import type { InterfaceMessageChat as InterfaceMessageChatModel } from '../models/MessageChat'; import type { InterfaceComment as InterfaceCommentModel } from '../models/Comment'; @@ -56,10 +56,10 @@ export type Scalars = { export type ActionItem = { __typename?: 'ActionItem'; _id: Scalars['ID']['output']; + actionItemCategory?: Maybe; assignedBy?: Maybe; assignedTo?: Maybe; assignmentDate?: Maybe; - category?: Maybe; completed?: Maybe; completionDate?: Maybe; createdAt: Scalars['Date']['output']; @@ -71,6 +71,17 @@ export type ActionItem = { updatedAt: Scalars['Date']['output']; }; +export type ActionItemCategory = { + __typename?: 'ActionItemCategory'; + _id: Scalars['ID']['output']; + createdAt: Scalars['Date']['output']; + createdBy?: Maybe; + disabled: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + org?: Maybe; + updatedAt: Scalars['Date']['output']; +}; + export type Address = { __typename?: 'Address'; city?: Maybe; @@ -130,17 +141,6 @@ export type AuthData = { user: User; }; -export type Category = { - __typename?: 'Category'; - _id: Scalars['ID']['output']; - category: Scalars['String']['output']; - createdAt: Scalars['Date']['output']; - createdBy?: Maybe; - disabled: Scalars['Boolean']['output']; - org?: Maybe; - updatedAt: Scalars['Date']['output']; -}; - export type CheckIn = { __typename?: 'CheckIn'; _id: Scalars['ID']['output']; @@ -599,9 +599,9 @@ export type Mutation = { cancelMembershipRequest: MembershipRequest; checkIn: CheckIn; createActionItem: ActionItem; + createActionItemCategory: ActionItemCategory; createAdmin: User; createAdvertisement: Advertisement; - createCategory: Category; createComment?: Maybe; createDirectChat: DirectChat; createDonation: Donation; @@ -660,8 +660,8 @@ export type Mutation = { unlikePost?: Maybe; unregisterForEventByUser: Event; updateActionItem?: Maybe; + updateActionItemCategory?: Maybe; updateAdvertisement?: Maybe; - updateCategory?: Maybe; updateEvent: Event; updateLanguage: User; updateOrganization: Organization; @@ -769,11 +769,17 @@ export type MutationCheckInArgs = { export type MutationCreateActionItemArgs = { - categoryId: Scalars['ID']['input']; + actionItemCategoryId: Scalars['ID']['input']; data: CreateActionItemInput; }; +export type MutationCreateActionItemCategoryArgs = { + name: Scalars['String']['input']; + orgId: Scalars['ID']['input']; +}; + + export type MutationCreateAdminArgs = { data: UserAndOrganizationInput; }; @@ -789,12 +795,6 @@ export type MutationCreateAdvertisementArgs = { }; -export type MutationCreateCategoryArgs = { - category: Scalars['String']['input']; - orgId: Scalars['ID']['input']; -}; - - export type MutationCreateCommentArgs = { data: CommentInput; postId: Scalars['ID']['input']; @@ -1079,14 +1079,14 @@ export type MutationUpdateActionItemArgs = { }; -export type MutationUpdateAdvertisementArgs = { - input: UpdateAdvertisementInput; +export type MutationUpdateActionItemCategoryArgs = { + data: UpdateActionItemCategoryInput; + id: Scalars['ID']['input']; }; -export type MutationUpdateCategoryArgs = { - data: UpdateCategoryInput; - id: Scalars['ID']['input']; +export type MutationUpdateAdvertisementArgs = { + input: UpdateAdvertisementInput; }; @@ -1154,7 +1154,7 @@ export type OtpInput = { export type Organization = { __typename?: 'Organization'; _id: Scalars['ID']['output']; - actionCategories?: Maybe>; + actionCategories?: Maybe>; admins?: Maybe>; apiUrl: Scalars['URL']['output']; blockedUsers?: Maybe>>; @@ -1398,10 +1398,10 @@ export type PostWhereInput = { export type Query = { __typename?: 'Query'; actionItem?: Maybe; + actionItemCategoriesByOrganization?: Maybe>>; + actionItemCategory?: Maybe; actionItemsByEvent?: Maybe>>; adminPlugin?: Maybe>>; - categoriesByOrganization?: Maybe>>; - category?: Maybe; checkAuth: User; customDataByOrganization: Array; customFieldsByOrganization?: Maybe>>; @@ -1442,23 +1442,23 @@ export type QueryActionItemArgs = { }; -export type QueryActionItemsByEventArgs = { - eventId: Scalars['ID']['input']; +export type QueryActionItemCategoriesByOrganizationArgs = { + orgId: Scalars['ID']['input']; }; -export type QueryAdminPluginArgs = { - orgId: Scalars['ID']['input']; +export type QueryActionItemCategoryArgs = { + id: Scalars['ID']['input']; }; -export type QueryCategoriesByOrganizationArgs = { - orgId: Scalars['ID']['input']; +export type QueryActionItemsByEventArgs = { + eventId: Scalars['ID']['input']; }; -export type QueryCategoryArgs = { - id: Scalars['ID']['input']; +export type QueryAdminPluginArgs = { + orgId: Scalars['ID']['input']; }; @@ -1677,6 +1677,11 @@ export type UnauthorizedError = Error & { message: Scalars['String']['output']; }; +export type UpdateActionItemCategoryInput = { + disabled?: InputMaybe; + name?: InputMaybe; +}; + export type UpdateActionItemInput = { assignedTo?: InputMaybe; completed?: InputMaybe; @@ -1699,11 +1704,6 @@ export type UpdateAdvertisementPayload = { advertisement?: Maybe; }; -export type UpdateCategoryInput = { - category?: InputMaybe; - disabled?: InputMaybe; -}; - export type UpdateEventInput = { allDay?: InputMaybe; description?: InputMaybe; @@ -2050,6 +2050,7 @@ export type ResolversInterfaceTypes> = { /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = { ActionItem: ResolverTypeWrapper; + ActionItemCategory: ResolverTypeWrapper; Address: ResolverTypeWrapper
; AddressInput: AddressInput; Advertisement: ResolverTypeWrapper & { creator?: Maybe }>; @@ -2059,7 +2060,6 @@ export type ResolversTypes = { Any: ResolverTypeWrapper; AuthData: ResolverTypeWrapper & { user: ResolversTypes['User'] }>; Boolean: ResolverTypeWrapper; - Category: ResolverTypeWrapper; CheckIn: ResolverTypeWrapper; CheckInInput: CheckInInput; CheckInStatus: ResolverTypeWrapper & { checkIn?: Maybe, user: ResolversTypes['User'] }>; @@ -2152,10 +2152,10 @@ export type ResolversTypes = { URL: ResolverTypeWrapper; UnauthenticatedError: ResolverTypeWrapper; UnauthorizedError: ResolverTypeWrapper; + UpdateActionItemCategoryInput: UpdateActionItemCategoryInput; UpdateActionItemInput: UpdateActionItemInput; UpdateAdvertisementInput: UpdateAdvertisementInput; UpdateAdvertisementPayload: ResolverTypeWrapper & { advertisement?: Maybe }>; - UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateOrganizationInput: UpdateOrganizationInput; UpdateUserInput: UpdateUserInput; @@ -2189,6 +2189,7 @@ export type ResolversTypes = { /** Mapping between all available schema types and the resolvers parents */ export type ResolversParentTypes = { ActionItem: InterfaceActionItemModel; + ActionItemCategory: InterfaceActionItemCategoryModel; Address: Address; AddressInput: AddressInput; Advertisement: Omit & { creator?: Maybe }; @@ -2197,7 +2198,6 @@ export type ResolversParentTypes = { Any: Scalars['Any']['output']; AuthData: Omit & { user: ResolversParentTypes['User'] }; Boolean: Scalars['Boolean']['output']; - Category: InterfaceCategoryModel; CheckIn: InterfaceCheckInModel; CheckInInput: CheckInInput; CheckInStatus: Omit & { checkIn?: Maybe, user: ResolversParentTypes['User'] }; @@ -2279,10 +2279,10 @@ export type ResolversParentTypes = { URL: Scalars['URL']['output']; UnauthenticatedError: UnauthenticatedError; UnauthorizedError: UnauthorizedError; + UpdateActionItemCategoryInput: UpdateActionItemCategoryInput; UpdateActionItemInput: UpdateActionItemInput; UpdateAdvertisementInput: UpdateAdvertisementInput; UpdateAdvertisementPayload: Omit & { advertisement?: Maybe }; - UpdateCategoryInput: UpdateCategoryInput; UpdateEventInput: UpdateEventInput; UpdateOrganizationInput: UpdateOrganizationInput; UpdateUserInput: UpdateUserInput; @@ -2323,10 +2323,10 @@ export type RoleDirectiveResolver = { _id?: Resolver; + actionItemCategory?: Resolver, ParentType, ContextType>; assignedBy?: Resolver, ParentType, ContextType>; assignedTo?: Resolver, ParentType, ContextType>; assignmentDate?: Resolver, ParentType, ContextType>; - category?: Resolver, ParentType, ContextType>; completed?: Resolver, ParentType, ContextType>; completionDate?: Resolver, ParentType, ContextType>; createdAt?: Resolver; @@ -2339,6 +2339,17 @@ export type ActionItemResolvers; }; +export type ActionItemCategoryResolvers = { + _id?: Resolver; + createdAt?: Resolver; + createdBy?: Resolver, ParentType, ContextType>; + disabled?: Resolver; + name?: Resolver; + org?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver; + __isTypeOf?: IsTypeOfResolverFn; +}; + export type AddressResolvers = { city?: Resolver, ParentType, ContextType>; countryCode?: Resolver, ParentType, ContextType>; @@ -2386,17 +2397,6 @@ export type AuthDataResolvers; }; -export type CategoryResolvers = { - _id?: Resolver; - category?: Resolver; - createdAt?: Resolver; - createdBy?: Resolver, ParentType, ContextType>; - disabled?: Resolver; - org?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}; - export type CheckInResolvers = { _id?: Resolver; allotedRoom?: Resolver, ParentType, ContextType>; @@ -2694,10 +2694,10 @@ export type MutationResolvers>; cancelMembershipRequest?: Resolver>; checkIn?: Resolver>; - createActionItem?: Resolver>; + createActionItem?: Resolver>; + createActionItemCategory?: Resolver>; createAdmin?: Resolver>; createAdvertisement?: Resolver>; - createCategory?: Resolver>; createComment?: Resolver, ParentType, ContextType, RequireFields>; createDirectChat?: Resolver>; createDonation?: Resolver>; @@ -2756,8 +2756,8 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; unregisterForEventByUser?: Resolver>; updateActionItem?: Resolver, ParentType, ContextType, RequireFields>; + updateActionItemCategory?: Resolver, ParentType, ContextType, RequireFields>; updateAdvertisement?: Resolver, ParentType, ContextType, RequireFields>; - updateCategory?: Resolver, ParentType, ContextType, RequireFields>; updateEvent?: Resolver>; updateLanguage?: Resolver>; updateOrganization?: Resolver>; @@ -2772,7 +2772,7 @@ export type MutationResolvers = { _id?: Resolver; - actionCategories?: Resolver>, ParentType, ContextType>; + actionCategories?: Resolver>, ParentType, ContextType>; admins?: Resolver>, ParentType, ContextType, Partial>; apiUrl?: Resolver; blockedUsers?: Resolver>>, ParentType, ContextType>; @@ -2880,10 +2880,10 @@ export type PostConnectionResolvers = { actionItem?: Resolver, ParentType, ContextType, RequireFields>; + actionItemCategoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; + actionItemCategory?: Resolver, ParentType, ContextType, RequireFields>; actionItemsByEvent?: Resolver>>, ParentType, ContextType, RequireFields>; adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; - categoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; - category?: Resolver, ParentType, ContextType, RequireFields>; checkAuth?: Resolver; customDataByOrganization?: Resolver, ParentType, ContextType, RequireFields>; customFieldsByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; @@ -3062,13 +3062,13 @@ export type UsersConnectionResultResolvers = { ActionItem?: ActionItemResolvers; + ActionItemCategory?: ActionItemCategoryResolvers; Address?: AddressResolvers; Advertisement?: AdvertisementResolvers; AggregatePost?: AggregatePostResolvers; AggregateUser?: AggregateUserResolvers; Any?: GraphQLScalarType; AuthData?: AuthDataResolvers; - Category?: CategoryResolvers; CheckIn?: CheckInResolvers; CheckInStatus?: CheckInStatusResolvers; Comment?: CommentResolvers; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index b4f0c9d1cc..616fcaa82f 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -1,5 +1,5 @@ import type { InterfaceActionItem } from "../../src/models"; -import { ActionItem, Category, Event } from "../../src/models"; +import { ActionItem, ActionItemCategory, Event } from "../../src/models"; import type { Document } from "mongoose"; import { createTestUser, @@ -7,8 +7,8 @@ import { type TestOrganizationType, type TestUserType, } from "./userAndOrg"; -import type { TestCategoryType } from "./category"; -import { createTestCategory } from "./category"; +import type { TestActionItemCategoryType } from "./actionItemCategory"; +import { createTestCategory } from "./actionItemCategory"; import { nanoid } from "nanoid"; import type { TestEventType } from "./events"; @@ -18,7 +18,7 @@ export const createTestActionItem = async (): Promise< [ TestUserType, TestOrganizationType, - TestCategoryType, + TestActionItemCategoryType, TestActionItemType, TestUserType ] @@ -26,17 +26,17 @@ export const createTestActionItem = async (): Promise< const [testUser, testOrganization] = await createTestUserAndOrganization(); const randomUser = await createTestUser(); - const testCategory = await Category.create({ + const testCategory = await ActionItemCategory.create({ createdBy: testUser?._id, orgId: testOrganization?._id, - category: "Default", + name: "Default", }); const testActionItem = await ActionItem.create({ createdBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); return [testUser, testOrganization, testCategory, testActionItem, randomUser]; @@ -45,19 +45,19 @@ export const createTestActionItem = async (): Promise< interface InterfaceCreateNewTestAction { currUserId: string; assignedUserId: string; - categoryId: string; + actionItemCategoryId: string; } export const createNewTestActionItem = async ({ currUserId, assignedUserId, - categoryId, + actionItemCategoryId, }: InterfaceCreateNewTestAction): Promise => { const newTestActionItem = await ActionItem.create({ createdBy: currUserId, assignedTo: assignedUserId, assignedBy: currUserId, - categoryId: categoryId, + actionItemCategoryId: actionItemCategoryId, }); return newTestActionItem; @@ -73,14 +73,14 @@ export const createTestActionItems = async (): Promise< createdBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); const testActionItem2 = await ActionItem.create({ createdBy: testUser?._id, assignedTo: randomUser?._id, assignedBy: testUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); const testEvent = await Event.create({ diff --git a/tests/helpers/category.ts b/tests/helpers/actionItemCategory.ts similarity index 67% rename from tests/helpers/category.ts rename to tests/helpers/actionItemCategory.ts index b17ac348ee..5d632942a4 100644 --- a/tests/helpers/category.ts +++ b/tests/helpers/actionItemCategory.ts @@ -1,5 +1,5 @@ -import type { InterfaceCategory } from "../../src/models"; -import { Category, Organization } from "../../src/models"; +import type { InterfaceActionItemCategory } from "../../src/models"; +import { ActionItemCategory, Organization } from "../../src/models"; import type { Document } from "mongoose"; import { createTestUserAndOrganization, @@ -7,16 +7,16 @@ import { type TestUserType, } from "./userAndOrg"; -export type TestCategoryType = InterfaceCategory & Document; +export type TestActionItemCategoryType = InterfaceActionItemCategory & Document; export const createTestCategory = async (): Promise< - [TestUserType, TestOrganizationType, TestCategoryType] + [TestUserType, TestOrganizationType, TestActionItemCategoryType] > => { const [testUser, testOrganization] = await createTestUserAndOrganization(); - const testCategory = await Category.create({ + const testCategory = await ActionItemCategory.create({ createdBy: testUser?._id, orgId: testOrganization?._id, - category: "Default", + name: "Default", }); return [testUser, testOrganization, testCategory]; @@ -27,16 +27,16 @@ export const createTestCategories = async (): Promise< > => { const [testUser, testOrganization] = await createTestUserAndOrganization(); - const testCategory1 = await Category.create({ + const testCategory1 = await ActionItemCategory.create({ createdBy: testUser?._id, orgId: testOrganization?._id, - category: "Default", + name: "Default", }); - const testCategory2 = await Category.create({ + const testCategory2 = await ActionItemCategory.create({ createdBy: testUser?._id, orgId: testOrganization?._id, - category: "Default2", + name: "Default2", }); const updatedTestOrganization = await Organization.findOneAndUpdate( diff --git a/tests/resolvers/ActionItem/category.spec.ts b/tests/resolvers/ActionItem/category.spec.ts index 3e87ab0c43..19edbc30d0 100644 --- a/tests/resolvers/ActionItem/category.spec.ts +++ b/tests/resolvers/ActionItem/category.spec.ts @@ -1,16 +1,16 @@ import "dotenv/config"; -import { category as categoryResolver } from "../../../src/resolvers/ActionItem/category"; +import { actionItemCategory as actionItemCategoryResolver } from "../../../src/resolvers/ActionItem/actionItemCategory"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; -import { Category } from "../../../src/models"; +import { ActionItemCategory } from "../../../src/models"; import type { TestActionItemType } from "../../helpers/actionItem"; import { createTestActionItem } from "../../helpers/actionItem"; -import type { TestCategoryType } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; let MONGOOSE_INSTANCE: typeof mongoose; let testActionItem: TestActionItemType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -21,16 +21,16 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItem -> category", () => { - it(`returns the category for parent action item`, async () => { +describe("resolvers -> ActionItem -> actionItemCategory", () => { + it(`returns the actionItemCategory for parent action item`, async () => { const parent = testActionItem?.toObject(); - const categoryPayload = await categoryResolver?.(parent, {}, {}); + const actionItemCategoryPayload = await actionItemCategoryResolver?.(parent, {}, {}); - const categoryObject = await Category.findOne({ + const actionItemCategoryObject = await ActionItemCategory.findOne({ _id: testCategory?._id, }).lean(); - expect(categoryPayload).toEqual(categoryObject); + expect(actionItemCategoryPayload).toEqual(actionItemCategoryObject); }); }); diff --git a/tests/resolvers/Category/createdBy.spec.ts b/tests/resolvers/ActionItemCategory/createdBy.spec.ts similarity index 70% rename from tests/resolvers/Category/createdBy.spec.ts rename to tests/resolvers/ActionItemCategory/createdBy.spec.ts index 79d4f36a29..c7506b847d 100644 --- a/tests/resolvers/Category/createdBy.spec.ts +++ b/tests/resolvers/ActionItemCategory/createdBy.spec.ts @@ -1,16 +1,16 @@ import "dotenv/config"; -import { createdBy as createdByResolver } from "../../../src/resolvers/Category/createdBy"; +import { createdBy as createdByResolver } from "../../../src/resolvers/ActionItemCategory/createdBy"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; import { User } from "../../../src/models"; import type { TestUserType } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; +import { createTestCategory } from "../../helpers/actionItemCategory"; let MONGOOSE_INSTANCE: typeof mongoose; let testUser: TestUserType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -21,8 +21,8 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Category -> createdBy", () => { - it(`returns the creator for parent category`, async () => { +describe("resolvers -> ActionItemCategory -> createdBy", () => { + it(`returns the creator for parent actionItemCategory`, async () => { const parent = testCategory?.toObject(); const createdByPayload = await createdByResolver?.(parent, {}, {}); diff --git a/tests/resolvers/Category/org.spec.ts b/tests/resolvers/ActionItemCategory/org.spec.ts similarity index 66% rename from tests/resolvers/Category/org.spec.ts rename to tests/resolvers/ActionItemCategory/org.spec.ts index 48cddde924..769bba8ab6 100644 --- a/tests/resolvers/Category/org.spec.ts +++ b/tests/resolvers/ActionItemCategory/org.spec.ts @@ -1,16 +1,16 @@ import "dotenv/config"; -import { org as orgResolver } from "../../../src/resolvers/Category/org"; +import { org as orgResolver } from "../../../src/resolvers/ActionItemCategory/org"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; import { Organization } from "../../../src/models"; import { type TestOrganizationType } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; +import { createTestCategory } from "../../helpers/actionItemCategory"; let MONGOOSE_INSTANCE: typeof mongoose; let testOrganization: TestOrganizationType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -21,8 +21,8 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Category -> org", () => { - it(`returns the organization object for parent category`, async () => { +describe("resolvers -> ActionItemCategory -> org", () => { + it(`returns the organization object for parent actionItemCategory`, async () => { const parent = testCategory?.toObject(); const orgPayload = await orgResolver?.(parent, {}, {}); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index b7b3e52e80..ad7c8c0cc1 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -6,7 +6,7 @@ import { createActionItem as createActionItemResolver } from "../../../src/resol import { connect, disconnect } from "../../helpers/db"; import { USER_NOT_FOUND_ERROR, - CATEGORY_NOT_FOUND_ERROR, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ERROR, EVENT_NOT_FOUND_ERROR, USER_NOT_MEMBER_FOR_ORGANIZATION, @@ -18,8 +18,8 @@ import type { TestUserType, } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; +import { createTestCategory } from "../../helpers/actionItemCategory"; import type { TestEventType } from "../../helpers/events"; import { Event, User } from "../../../src/models"; import { nanoid } from "nanoid"; @@ -29,7 +29,7 @@ let randomUser2: TestUserType; let superAdminTestUser: TestUserType; let testUser: TestUserType; let testOrganization: TestOrganizationType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; let testEvent: TestEventType; let MONGOOSE_INSTANCE: typeof mongoose; @@ -82,7 +82,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: randomUser?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -95,13 +95,13 @@ describe("resolvers -> Mutation -> createActionItem", () => { } }); - it(`throws NotFoundError if no category exists with _id === args.orgId`, async () => { + it(`throws NotFoundError if no actionItemCategory exists with _id === args.orgId`, async () => { try { const args: MutationCreateActionItemArgs = { data: { assignedTo: randomUser?._id, }, - categoryId: Types.ObjectId().toString(), + actionItemCategoryId: Types.ObjectId().toString(), }; const context = { @@ -110,7 +110,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { await createActionItemResolver?.({}, args, context); } catch (error: any) { - expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.MESSAGE); + expect(error.message).toEqual(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE); } }); @@ -120,7 +120,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: Types.ObjectId().toString(), }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -139,7 +139,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: randomUser?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -168,7 +168,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { assignedTo: randomUser?._id, eventId: Types.ObjectId().toString(), }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -187,7 +187,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: randomUser?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -206,7 +206,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { assignedTo: randomUser?._id, eventId: testEvent?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -221,7 +221,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }) ); @@ -243,7 +243,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: randomUser?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -258,7 +258,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }) ); }); @@ -268,7 +268,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { data: { assignedTo: randomUser?._id, }, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }; const context = { @@ -283,7 +283,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { expect(createActionItemPayload).toEqual( expect.objectContaining({ - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }) ); }); diff --git a/tests/resolvers/Mutation/createCategory.spec.ts b/tests/resolvers/Mutation/createActionItemCategory.spec.ts similarity index 74% rename from tests/resolvers/Mutation/createCategory.spec.ts rename to tests/resolvers/Mutation/createActionItemCategory.spec.ts index 299c88dd31..bb47c97955 100644 --- a/tests/resolvers/Mutation/createCategory.spec.ts +++ b/tests/resolvers/Mutation/createActionItemCategory.spec.ts @@ -1,9 +1,9 @@ import "dotenv/config"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import type { MutationCreateCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import type { MutationCreateActionItemCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; -import { createCategory as createCategoryResolver } from "../../../src/resolvers/Mutation/createCategory"; +import { createActionItemCategory as createActionItemCategoryResolver } from "../../../src/resolvers/Mutation/createActionItemCategory"; import { ORGANIZATION_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, @@ -45,16 +45,16 @@ afterAll(async () => { describe("resolvers -> Mutation -> createCategory", () => { it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { try { - const args: MutationCreateCategoryArgs = { + const args: MutationCreateActionItemCategoryArgs = { orgId: testOrganization?._id, - category: "Default", + name: "Default", }; const context = { userId: Types.ObjectId().toString(), }; - await createCategoryResolver?.({}, args, context); + await createActionItemCategoryResolver?.({}, args, context); } catch (error: any) { expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); } @@ -62,16 +62,16 @@ describe("resolvers -> Mutation -> createCategory", () => { it(`throws NotFoundError if no organization exists with _id === args.orgId`, async () => { try { - const args: MutationCreateCategoryArgs = { + const args: MutationCreateActionItemCategoryArgs = { orgId: Types.ObjectId().toString(), - category: "Default", + name: "Default", }; const context = { userId: testUser?.id, }; - await createCategoryResolver?.({}, args, context); + await createActionItemCategoryResolver?.({}, args, context); } catch (error: any) { expect(error.message).toEqual(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE); } @@ -79,32 +79,32 @@ describe("resolvers -> Mutation -> createCategory", () => { it(`throws NotAuthorizedError if the user is not a superadmin or the admin of the organization`, async () => { try { - const args: MutationCreateCategoryArgs = { + const args: MutationCreateActionItemCategoryArgs = { orgId: testOrganization?._id, - category: "Default", + name: "Default", }; const context = { userId: randomUser?.id, }; - await createCategoryResolver?.({}, args, context); + await createActionItemCategoryResolver?.({}, args, context); } catch (error: any) { expect(error.message).toEqual(USER_NOT_AUTHORIZED_ADMIN.MESSAGE); } }); - it(`creates the category and returns it as an admin`, async () => { - const args: MutationCreateCategoryArgs = { + it(`creates the actionItemCategory and returns it as an admin`, async () => { + const args: MutationCreateActionItemCategoryArgs = { orgId: testOrganization?._id, - category: "Default", + name: "Default", }; const context = { userId: testUser?._id, }; - const createCategoryPayload = await createCategoryResolver?.( + const createCategoryPayload = await createActionItemCategoryResolver?.( {}, args, context @@ -113,7 +113,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ orgId: testOrganization?._id, - category: "Default", + name: "Default", }) ); @@ -130,7 +130,7 @@ describe("resolvers -> Mutation -> createCategory", () => { ); }); - it(`creates the category and returns it as superAdmin`, async () => { + it(`creates the actionItemCategory and returns it as superAdmin`, async () => { const superAdminTestUser = await User.findOneAndUpdate( { _id: randomUser?._id, @@ -143,16 +143,16 @@ describe("resolvers -> Mutation -> createCategory", () => { } ); - const args: MutationCreateCategoryArgs = { + const args: MutationCreateActionItemCategoryArgs = { orgId: testOrganization?._id, - category: "Default", + name: "Default", }; const context = { userId: superAdminTestUser?._id, }; - const createCategoryPayload = await createCategoryResolver?.( + const createCategoryPayload = await createActionItemCategoryResolver?.( {}, args, context @@ -161,7 +161,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ orgId: testOrganization?._id, - category: "Default", + name: "Default", }) ); diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index c05643d973..848725a8a6 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -1,6 +1,6 @@ import "dotenv/config"; import type mongoose from "mongoose"; -import { Category, User } from "../../../src/models"; +import { ActionItemCategory, User } from "../../../src/models"; import type { MutationCreateOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; @@ -152,14 +152,14 @@ describe("resolvers -> Mutation -> createOrganization", () => { }) ); - const defaultCategory = await Category.findOne({ + const defaultCategory = await ActionItemCategory.findOne({ orgId: createOrganizationPayload?._id, }).lean(); expect(defaultCategory).toEqual( expect.objectContaining({ orgId: createOrganizationPayload?._id, - category: "Default", + name: "Default", disabled: false, }) ); diff --git a/tests/resolvers/Mutation/removeActionItem.spec.ts b/tests/resolvers/Mutation/removeActionItem.spec.ts index 36e70832d4..c1117b6830 100644 --- a/tests/resolvers/Mutation/removeActionItem.spec.ts +++ b/tests/resolvers/Mutation/removeActionItem.spec.ts @@ -20,7 +20,7 @@ import type { TestUserType, } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; import { ActionItem, Event, User } from "../../../src/models"; import type { TestActionItemType } from "../../helpers/actionItem"; import { @@ -35,7 +35,7 @@ let assignedTestUser: TestUserType; let testUser: TestUserType; let testUser2: TestUserType; let testOrganization: TestOrganizationType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; let testActionItem: TestActionItemType; let testEvent: TestEventType; let MONGOOSE_INSTANCE: typeof mongoose; @@ -147,7 +147,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { const newTestActionItem = await createNewTestActionItem({ currUserId: testUser?._id, assignedUserId: randomUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); const superAdminTestUser = await User.findOneAndUpdate( @@ -187,7 +187,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { const newTestActionItem = await createNewTestActionItem({ currUserId: testUser?._id, assignedUserId: randomUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); const updatedTestActionItem = await ActionItem.findOneAndUpdate( @@ -221,7 +221,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { const newTestActionItem = await createNewTestActionItem({ currUserId: testUser?._id, assignedUserId: randomUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); const updatedTestActionItem = await ActionItem.findOneAndUpdate( diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index adb89f6069..9566e6baac 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -6,7 +6,7 @@ import type { InterfaceOrganization, InterfaceComment, InterfacePost, - InterfaceCategory, + InterfaceActionItemCategory, InterfaceActionItem, } from "../../../src/models"; import { @@ -15,7 +15,7 @@ import { Post, Comment, MembershipRequest, - Category, + ActionItemCategory, ActionItem, } from "../../../src/models"; import type { MutationRemoveOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; @@ -46,7 +46,7 @@ let testOrganization: InterfaceOrganization & Document; let testPost: InterfacePost & Document; let testComment: InterfaceComment & Document; -let testCategory: InterfaceCategory & Document; +let testCategory: InterfaceActionItemCategory & Document; let testActionItem: InterfaceActionItem & Document; beforeAll(async () => { @@ -113,17 +113,17 @@ beforeAll(async () => { organization: testOrganization._id, }); - testCategory = await Category.create({ + testCategory = await ActionItemCategory.create({ createdBy: testUsers[0]?._id, orgId: testOrganization?._id, - category: "Default", + name: "Default", }); testActionItem = await ActionItem.create({ createdBy: testUsers[0]?._id, assignedTo: testUsers[1]?._id, assignedBy: testUsers[0]?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }); await Organization.updateOne( @@ -342,7 +342,7 @@ describe("resolvers -> Mutation -> removeOrganization", () => { _id: testComment._id, }).lean(); - const deletedTestCategories = await Category.find({ + const deletedTestCategories = await ActionItemCategory.find({ orgId: testOrganization?._id, }).lean(); diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts index 0b654dc425..a089752ccd 100644 --- a/tests/resolvers/Mutation/updateActionItem.spec.ts +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -21,7 +21,7 @@ import type { TestUserType, } from "../../helpers/userAndOrg"; -import type { TestCategoryType } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; import { ActionItem, Event, User } from "../../../src/models"; import type { TestActionItemType } from "../../helpers/actionItem"; import { createTestActionItem } from "../../helpers/actionItem"; @@ -33,7 +33,7 @@ let assignedTestUser: TestUserType; let testUser: TestUserType; let testUser2: TestUserType; let testOrganization: TestOrganizationType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; let testActionItem: TestActionItemType; let testEvent: TestEventType; let MONGOOSE_INSTANCE: typeof mongoose; @@ -186,7 +186,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ assignedTo: assignedTestUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }) ); }); @@ -224,7 +224,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ assignedTo: testUser?._id, - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, }) ); }); @@ -301,7 +301,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ - categoryId: testCategory?._id, + actionItemCategoryId: testCategory?._id, assignedTo: testUser?._id, }) ); diff --git a/tests/resolvers/Mutation/updateCategory.spec.ts b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts similarity index 61% rename from tests/resolvers/Mutation/updateCategory.spec.ts rename to tests/resolvers/Mutation/updateActionItemCategory.spec.ts index 063acfe987..b3108bd714 100644 --- a/tests/resolvers/Mutation/updateCategory.spec.ts +++ b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts @@ -1,12 +1,12 @@ import "dotenv/config"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import type { MutationUpdateCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import type { MutationUpdateActionItemCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; import { connect, disconnect } from "../../helpers/db"; import { USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ADMIN, - CATEGORY_NOT_FOUND_ERROR, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR, } from "../../../src/constants"; import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; import { createTestUser } from "../../helpers/userAndOrg"; @@ -15,15 +15,15 @@ import type { TestUserType, } from "../../helpers/userAndOrg"; -import { updateCategory as updateCategoryResolver } from "../../../src/resolvers/Mutation/updateCategory"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; +import { updateActionItemCategory as updateActionItemCategoryResolver } from "../../../src/resolvers/Mutation/updateActionItemCategory"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; +import { createTestCategory } from "../../helpers/actionItemCategory"; import { User } from "../../../src/models"; let randomUser: TestUserType; let testUser: TestUserType; let testOrganization: TestOrganizationType; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; let MONGOOSE_INSTANCE: typeof mongoose; beforeAll(async () => { @@ -42,13 +42,13 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Mutation -> updateCategoryResolver", () => { +describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { try { - const args: MutationUpdateCategoryArgs = { + const args: MutationUpdateActionItemCategoryArgs = { id: Types.ObjectId().toString(), data: { - category: "updatedDefault", + name: "updatedDefault", disabled: true, }, }; @@ -57,18 +57,18 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { userId: Types.ObjectId().toString(), }; - await updateCategoryResolver?.({}, args, context); + await updateActionItemCategoryResolver?.({}, args, context); } catch (error: any) { expect(error.message).toEqual(USER_NOT_FOUND_ERROR.MESSAGE); } }); - it(`throws NotFoundError if no category exists with _id === args.id`, async () => { + it(`throws NotFoundError if no actionItemCategory exists with _id === args.id`, async () => { try { - const args: MutationUpdateCategoryArgs = { + const args: MutationUpdateActionItemCategoryArgs = { id: Types.ObjectId().toString(), data: { - category: "updatedDefault", + name: "updatedDefault", disabled: true, }, }; @@ -77,18 +77,18 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { userId: testUser?.id, }; - await updateCategoryResolver?.({}, args, context); + await updateActionItemCategoryResolver?.({}, args, context); } catch (error: any) { - expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.MESSAGE); + expect(error.message).toEqual(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE); } }); it(`throws NotAuthorizedError if the user is not a superadmin or the admin of the organization`, async () => { try { - const args: MutationUpdateCategoryArgs = { + const args: MutationUpdateActionItemCategoryArgs = { id: testCategory?._id, data: { - category: "updatedDefault", + name: "updatedDefault", disabled: true, }, }; @@ -97,17 +97,17 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { userId: randomUser?.id, }; - await updateCategoryResolver?.({}, args, context); + await updateActionItemCategoryResolver?.({}, args, context); } catch (error: any) { expect(error.message).toEqual(USER_NOT_AUTHORIZED_ADMIN.MESSAGE); } }); - it(`updates the category and returns it as an admin`, async () => { - const args: MutationUpdateCategoryArgs = { + it(`updates the actionItemCategory and returns it as an admin`, async () => { + const args: MutationUpdateActionItemCategoryArgs = { id: testCategory?._id, data: { - category: "updatedDefault", + name: "updatedDefault", disabled: true, }, }; @@ -116,18 +116,18 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { userId: testUser?._id, }; - const updatedCategory = await updateCategoryResolver?.({}, args, context); + const updatedCategory = await updateActionItemCategoryResolver?.({}, args, context); expect(updatedCategory).toEqual( expect.objectContaining({ orgId: testOrganization?._id, - category: "updatedDefault", + name: "updatedDefault", disabled: true, }) ); }); - it(`updates the category and returns it as superadmin`, async () => { + it(`updates the actionItemCategory and returns it as superadmin`, async () => { const superAdminTestUser = await User.findOneAndUpdate( { _id: randomUser?._id, @@ -140,10 +140,10 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { } ); - const args: MutationUpdateCategoryArgs = { + const args: MutationUpdateActionItemCategoryArgs = { id: testCategory?._id, data: { - category: "updatedDefault", + name: "updatedDefault", disabled: false, }, }; @@ -152,12 +152,12 @@ describe("resolvers -> Mutation -> updateCategoryResolver", () => { userId: superAdminTestUser?._id, }; - const updatedCategory = await updateCategoryResolver?.({}, args, context); + const updatedCategory = await updateActionItemCategoryResolver?.({}, args, context); expect(updatedCategory).toEqual( expect.objectContaining({ orgId: testOrganization?._id, - category: "updatedDefault", + name: "updatedDefault", disabled: false, }) ); diff --git a/tests/resolvers/Organization/actionCategories.spec.ts b/tests/resolvers/Organization/actionCategories.spec.ts index ed3fa4960a..817c333542 100644 --- a/tests/resolvers/Organization/actionCategories.spec.ts +++ b/tests/resolvers/Organization/actionCategories.spec.ts @@ -2,10 +2,10 @@ import "dotenv/config"; import { actionCategories as actionCategoriesResolver } from "../../../src/resolvers/Organization/actionCategories"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; -import { Category } from "../../../src/models"; +import { ActionItemCategory } from "../../../src/models"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; import type { TestOrganizationType } from "../../helpers/userAndOrg"; -import { createTestCategories } from "../../helpers/category"; +import { createTestCategories } from "../../helpers/actionItemCategory"; let MONGOOSE_INSTANCE: typeof mongoose; let testOrganization: TestOrganizationType; @@ -29,7 +29,7 @@ describe("resolvers -> Organization -> actionCategories", () => { {} ); - const categories = await Category.find({ + const categories = await ActionItemCategory.find({ orgId: testOrganization?._id, }).lean(); diff --git a/tests/resolvers/Query/categoriesByOrganization.spec.ts b/tests/resolvers/Query/categoriesByOrganization.spec.ts index 8c85ef0149..25ae54daef 100644 --- a/tests/resolvers/Query/categoriesByOrganization.spec.ts +++ b/tests/resolvers/Query/categoriesByOrganization.spec.ts @@ -1,9 +1,9 @@ import "dotenv/config"; -import { Category } from "../../../src/models"; +import { ActionItemCategory } from "../../../src/models"; import { connect, disconnect } from "../../helpers/db"; import type { QueryCategoriesByOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; -import { categoriesByOrganization as categoriesByOrganizationResolver } from "../../../src/resolvers/Query/categoriesByOrganization"; -import { createTestCategories } from "../../helpers/category"; +import { actionItemCategoriesByOrganization as categoriesByOrganizationResolver } from "../../../src/resolvers/Query/actionItemCategoriesByOrganization"; +import { createTestCategories } from "../../helpers/actionItemCategory"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; import type { TestOrganizationType } from "../../helpers/userAndOrg"; import type mongoose from "mongoose"; @@ -20,7 +20,7 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Query -> categoriesByOrganization", () => { +describe("resolvers -> Query -> actionItemCategoriesByOrganization", () => { it(`returns list of all categories belonging to an organization`, async () => { const args: QueryCategoriesByOrganizationArgs = { orgId: testOrganization?._id, @@ -29,7 +29,7 @@ describe("resolvers -> Query -> categoriesByOrganization", () => { const categoriesByOrganizationPayload = await categoriesByOrganizationResolver?.({}, args, {}); - const categoriesByOrganizationInfo = await Category.find({ + const categoriesByOrganizationInfo = await ActionItemCategory.find({ orgId: testOrganization?._id, }).lean(); diff --git a/tests/resolvers/Query/category.spec.ts b/tests/resolvers/Query/category.spec.ts index 4af059e6ee..bd7f736778 100644 --- a/tests/resolvers/Query/category.spec.ts +++ b/tests/resolvers/Query/category.spec.ts @@ -1,16 +1,16 @@ import "dotenv/config"; -import { category as categoryResolver } from "../../../src/resolvers/Query/category"; +import { actionItemCategory as actionItemCategoryResolver } from "../../../src/resolvers/Query/actionItemCategory"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { Types } from "mongoose"; -import { CATEGORY_NOT_FOUND_ERROR } from "../../../src/constants"; -import type { QueryCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; +import { ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR } from "../../../src/constants"; +import type { QueryActionItemCategoryArgs } from "../../../src/types/generatedGraphQLTypes"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; -import type { TestCategoryType } from "../../helpers/category"; -import { createTestCategory } from "../../helpers/category"; +import type { TestActionItemCategoryType } from "../../helpers/actionItemCategory"; +import { createTestCategory } from "../../helpers/actionItemCategory"; let MONGOOSE_INSTANCE: typeof mongoose; -let testCategory: TestCategoryType; +let testCategory: TestActionItemCategoryType; beforeAll(async () => { MONGOOSE_INSTANCE = await connect(); @@ -22,27 +22,27 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Query -> category", () => { - it(`throws NotFoundError if no category exists with _id === args.id`, async () => { +describe("resolvers -> Query -> actionItemCategory", () => { + it(`throws NotFoundError if no actionItemCategory exists with _id === args.id`, async () => { try { - const args: QueryCategoryArgs = { + const args: QueryActionItemCategoryArgs = { id: Types.ObjectId().toString(), }; - await categoryResolver?.({}, args, {}); + await actionItemCategoryResolver?.({}, args, {}); } catch (error: any) { - expect(error.message).toEqual(CATEGORY_NOT_FOUND_ERROR.DESC); + expect(error.message).toEqual(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.DESC); } }); - it(`returns category with _id === args.id`, async () => { - const args: QueryCategoryArgs = { + it(`returns actionItemCategory with _id === args.id`, async () => { + const args: QueryActionItemCategoryArgs = { id: testCategory?._id, }; - const categoryPayload = await categoryResolver?.({}, args, {}); + const actionItemCategoryPayload = await actionItemCategoryResolver?.({}, args, {}); - expect(categoryPayload).toEqual( + expect(actionItemCategoryPayload).toEqual( expect.objectContaining({ _id: testCategory?._id, }) From cc13bcf10d05b6e0688a5497f7f0a20b808eeb94 Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 22 Jan 2024 15:45:39 +0530 Subject: [PATCH 19/28] update field names --- src/models/ActionItem.ts | 28 +++++---- src/models/ActionItemCategory.ts | 19 +++--- .../ActionItem/{createdBy.ts => assignee.ts} | 4 +- .../ActionItem/{assignedBy.ts => assigner.ts} | 4 +- .../ActionItem/{assignedTo.ts => creator.ts} | 4 +- src/resolvers/ActionItem/index.ts | 12 ++-- .../{createdBy.ts => creator.ts} | 4 +- src/resolvers/ActionItemCategory/index.ts | 8 +-- .../{org.ts => organization.ts} | 4 +- src/resolvers/Mutation/createActionItem.ts | 16 ++--- .../Mutation/createActionItemCategory.ts | 10 ++-- src/resolvers/Mutation/createOrganization.ts | 4 +- src/resolvers/Mutation/removeActionItem.ts | 4 +- src/resolvers/Mutation/updateActionItem.ts | 26 ++++----- .../Mutation/updateActionItemCategory.ts | 10 ++-- .../actionItemCategoriesByOrganization.ts | 4 +- src/typeDefs/inputs.ts | 10 ++-- src/typeDefs/mutations.ts | 8 +-- src/typeDefs/queries.ts | 2 +- src/typeDefs/types.ts | 34 +++++------ src/types/generatedGraphQLTypes.ts | 58 +++++++++---------- tests/helpers/actionItem.ts | 28 ++++----- tests/helpers/actionItemCategory.ts | 12 ++-- .../{assignedTo.spec.ts => assignee.spec.ts} | 6 +- .../{assignedBy.spec.ts => assigner.spec.ts} | 6 +- .../{createdBy.spec.ts => creator.spec.ts} | 6 +- .../{createdBy.spec.ts => creator.spec.ts} | 6 +- .../{org.spec.ts => organization.spec.ts} | 4 +- .../Mutation/createActionItem.spec.ts | 22 +++---- .../Mutation/createActionItemCategory.spec.ts | 16 ++--- .../Mutation/createOrganization.spec.ts | 6 +- .../Mutation/removeActionItem.spec.ts | 6 +- .../Mutation/removeOrganization.spec.ts | 12 ++-- .../Mutation/updateActionItem.spec.ts | 26 ++++----- .../Mutation/updateActionItemCategory.spec.ts | 18 +++--- .../Organization/actionCategories.spec.ts | 2 +- ...ctionItemCategoriesByOrganization.spec.ts} | 8 +-- ...ory.spec.ts => actionItemCategory.spec.ts} | 0 38 files changed, 231 insertions(+), 226 deletions(-) rename src/resolvers/ActionItem/{createdBy.ts => assignee.ts} (59%) rename src/resolvers/ActionItem/{assignedBy.ts => assigner.ts} (58%) rename src/resolvers/ActionItem/{assignedTo.ts => creator.ts} (58%) rename src/resolvers/ActionItemCategory/{createdBy.ts => creator.ts} (58%) rename src/resolvers/ActionItemCategory/{org.ts => organization.ts} (59%) rename tests/resolvers/ActionItem/{assignedTo.spec.ts => assignee.spec.ts} (81%) rename tests/resolvers/ActionItem/{assignedBy.spec.ts => assigner.spec.ts} (81%) rename tests/resolvers/ActionItem/{createdBy.spec.ts => creator.spec.ts} (81%) rename tests/resolvers/ActionItemCategory/{createdBy.spec.ts => creator.spec.ts} (81%) rename tests/resolvers/ActionItemCategory/{org.spec.ts => organization.spec.ts} (86%) rename tests/resolvers/Query/{categoriesByOrganization.spec.ts => actionItemCategoriesByOrganization.spec.ts} (83%) rename tests/resolvers/Query/{category.spec.ts => actionItemCategory.spec.ts} (100%) diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 72c1d7222f..923095a211 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -10,46 +10,46 @@ import type { InterfaceActionItemCategory } from "./ActionItemCategory"; export interface InterfaceActionItem { _id: Types.ObjectId; - assignedTo: PopulatedDoc; - assignedBy: PopulatedDoc; + assigneeId: PopulatedDoc; + assignerId: PopulatedDoc; actionItemCategoryId: PopulatedDoc; preCompletionNotes: string; postCompletionNotes: string; assignmentDate: Date; dueDate: Date; completionDate: Date; - completed: boolean; + isCompleted: boolean; eventId: PopulatedDoc; - createdBy: PopulatedDoc; + creatorId: PopulatedDoc; createdAt: Date; updatedAt: Date; } /** * This describes the schema for a `ActionItem` that corresponds to `InterfaceActionItem` document. - * @param assignedTo - User to whom the ActionItem is assigned, refer to `User` model. - * @param assignedBy - User who assigned the ActionItem, refer to the `User` model. + * @param assigneeId - User to whom the ActionItem is assigned, refer to `User` model. + * @param assignerId - User who assigned the ActionItem, refer to the `User` model. * @param actionItemCategoryId - ActionItemCategory to which the ActionItem is related, refer to the `ActionItemCategory` model. * @param preCompletionNotes - Notes prior to completion. * @param postCompletionNotes - Notes on completion. * @param assignmentDate - Date of assignment. * @param dueDate - Due date. * @param completionDate - Completion date. - * @param completed - Whether the ActionItem has been completed. + * @param isCompleted - Whether the ActionItem has been completed. * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. - * @param createdBy - User who created the ActionItem, refer to the `User` model. + * @param creatorId - User who created the ActionItem, refer to the `User` model. * @param createdAt - Timestamp when the ActionItem was created. * @param updatedAt - Timestamp when the ActionItem was last updated. */ const actionItemSchema = new Schema( { - assignedTo: { + assigneeId: { type: Schema.Types.ObjectId, ref: "User", required: true, }, - assignedBy: { + assignerId: { type: Schema.Types.ObjectId, ref: "User", required: true, @@ -67,25 +67,29 @@ const actionItemSchema = new Schema( }, assignmentDate: { type: Date, + required: true, default: Date.now(), }, dueDate: { type: Date, + required: true, default: Date.now() + 7 * 24 * 60 * 60 * 1000, }, completionDate: { type: Date, + required: true, default: Date.now() + 7 * 24 * 60 * 60 * 1000, }, - completed: { + isCompleted: { type: Boolean, + required: true, default: false, }, eventId: { type: Schema.Types.ObjectId, ref: "Event", }, - createdBy: { + creatorId: { type: Schema.Types.ObjectId, ref: "User", required: true, diff --git a/src/models/ActionItemCategory.ts b/src/models/ActionItemCategory.ts index ae86f9be79..1d2e32c165 100644 --- a/src/models/ActionItemCategory.ts +++ b/src/models/ActionItemCategory.ts @@ -10,9 +10,9 @@ import type { InterfaceOrganization } from "./Organization"; export interface InterfaceActionItemCategory { _id: Types.ObjectId; name: string; - orgId: PopulatedDoc; - disabled: boolean; - createdBy: PopulatedDoc; + organizationId: PopulatedDoc; + isDisabled: boolean; + creatorId: PopulatedDoc; createdAt: Date; updatedAt: Date; } @@ -20,9 +20,9 @@ export interface InterfaceActionItemCategory { /** * This describes the schema for a `actionItemCategory` that corresponds to `InterfaceCategory` document. * @param name - An actionItemCategory to be selected for ActionItems. - * @param orgId - Organization the actionItemCategory belongs to, refer to the `Organization` model. - * @param disabled - Whether actionItemCategory is disabled or not. - * @param createdBy - Task creator, refer to `User` model. + * @param organizationId - Organization the actionItemCategory belongs to, refer to the `Organization` model. + * @param isDisabled - Whether actionItemCategory is disabled or not. + * @param creatorId - Task creator, refer to `User` model. * @param createdAt - Time stamp of data creation. * @param updatedAt - Time stamp of data updation. */ @@ -33,16 +33,17 @@ const actionItemCategorySchema = new Schema( type: String, required: true, }, - orgId: { + organizationId: { type: Schema.Types.ObjectId, ref: "Organization", required: true, }, - disabled: { + isDisabled: { type: Boolean, + required: true, default: false, }, - createdBy: { + creatorId: { type: Schema.Types.ObjectId, ref: "User", required: true, diff --git a/src/resolvers/ActionItem/createdBy.ts b/src/resolvers/ActionItem/assignee.ts similarity index 59% rename from src/resolvers/ActionItem/createdBy.ts rename to src/resolvers/ActionItem/assignee.ts index 7caa70b35d..c3f3d13090 100644 --- a/src/resolvers/ActionItem/createdBy.ts +++ b/src/resolvers/ActionItem/assignee.ts @@ -1,8 +1,8 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; import { User } from "../../models"; -export const createdBy: ActionItemResolvers["createdBy"] = async (parent) => { +export const assignee: ActionItemResolvers["assignee"] = async (parent) => { return User.findOne({ - _id: parent.createdBy, + _id: parent.assigneeId, }).lean(); }; diff --git a/src/resolvers/ActionItem/assignedBy.ts b/src/resolvers/ActionItem/assigner.ts similarity index 58% rename from src/resolvers/ActionItem/assignedBy.ts rename to src/resolvers/ActionItem/assigner.ts index 3e482a6f17..1668d3b4a3 100644 --- a/src/resolvers/ActionItem/assignedBy.ts +++ b/src/resolvers/ActionItem/assigner.ts @@ -1,8 +1,8 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; import { User } from "../../models"; -export const assignedBy: ActionItemResolvers["assignedBy"] = async (parent) => { +export const assigner: ActionItemResolvers["assigner"] = async (parent) => { return User.findOne({ - _id: parent.assignedBy, + _id: parent.assignerId, }).lean(); }; diff --git a/src/resolvers/ActionItem/assignedTo.ts b/src/resolvers/ActionItem/creator.ts similarity index 58% rename from src/resolvers/ActionItem/assignedTo.ts rename to src/resolvers/ActionItem/creator.ts index d4f6ffe19d..70dbf78957 100644 --- a/src/resolvers/ActionItem/assignedTo.ts +++ b/src/resolvers/ActionItem/creator.ts @@ -1,8 +1,8 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; import { User } from "../../models"; -export const assignedTo: ActionItemResolvers["assignedTo"] = async (parent) => { +export const creator: ActionItemResolvers["creator"] = async (parent) => { return User.findOne({ - _id: parent.assignedTo, + _id: parent.creatorId, }).lean(); }; diff --git a/src/resolvers/ActionItem/index.ts b/src/resolvers/ActionItem/index.ts index b2423a149a..dc5979e0d9 100644 --- a/src/resolvers/ActionItem/index.ts +++ b/src/resolvers/ActionItem/index.ts @@ -1,14 +1,14 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; -import { assignedTo } from "./assignedTo"; -import { assignedBy } from "./assignedBy"; +import { assignee } from "./assignee"; +import { assigner } from "./assigner"; import { actionItemCategory } from "./actionItemCategory"; import { event } from "./event"; -import { createdBy } from "./createdBy"; +import { creator } from "./creator"; export const ActionItem: ActionItemResolvers = { - assignedTo, - assignedBy, + assignee, + assigner, actionItemCategory, event, - createdBy, + creator, }; diff --git a/src/resolvers/ActionItemCategory/createdBy.ts b/src/resolvers/ActionItemCategory/creator.ts similarity index 58% rename from src/resolvers/ActionItemCategory/createdBy.ts rename to src/resolvers/ActionItemCategory/creator.ts index 1a3b46a3e0..4e39055a8f 100644 --- a/src/resolvers/ActionItemCategory/createdBy.ts +++ b/src/resolvers/ActionItemCategory/creator.ts @@ -1,8 +1,8 @@ import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; import { User } from "../../models"; -export const createdBy: ActionItemCategoryResolvers["createdBy"] = async (parent) => { +export const creator: ActionItemCategoryResolvers["creator"] = async (parent) => { return User.findOne({ - _id: parent.createdBy, + _id: parent.creatorId, }).lean(); }; diff --git a/src/resolvers/ActionItemCategory/index.ts b/src/resolvers/ActionItemCategory/index.ts index 054c9b1f02..94bdba820f 100644 --- a/src/resolvers/ActionItemCategory/index.ts +++ b/src/resolvers/ActionItemCategory/index.ts @@ -1,8 +1,8 @@ import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; -import { org } from "./org"; -import { createdBy } from "./createdBy"; +import { organization } from "./organization"; +import { creator } from "./creator"; export const ActionItemCategory: ActionItemCategoryResolvers = { - org, - createdBy, + organization, + creator, }; diff --git a/src/resolvers/ActionItemCategory/org.ts b/src/resolvers/ActionItemCategory/organization.ts similarity index 59% rename from src/resolvers/ActionItemCategory/org.ts rename to src/resolvers/ActionItemCategory/organization.ts index 2ad41dd319..0ba8db4aeb 100644 --- a/src/resolvers/ActionItemCategory/org.ts +++ b/src/resolvers/ActionItemCategory/organization.ts @@ -1,8 +1,8 @@ import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; import { Organization } from "../../models"; -export const org: ActionItemCategoryResolvers["org"] = async (parent) => { +export const organization: ActionItemCategoryResolvers["organization"] = async (parent) => { return Organization.findOne({ - _id: parent.orgId, + _id: parent.organizationId, }).lean(); }; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index a8427d6e09..c25e4e92a9 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -48,7 +48,7 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( } const assignee = await User.findOne({ - _id: args.data.assignedTo, + _id: args.data.assigneeId, }); // Checks whether the asignee exists. @@ -76,8 +76,8 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( let asigneeIsOrganizationMember = false; asigneeIsOrganizationMember = assignee.joinedOrganizations.some( (organizationId) => - organizationId === actionItemCategory.orgId || - Types.ObjectId(organizationId).equals(actionItemCategory.orgId) + organizationId === actionItemCategory.organizationId || + Types.ObjectId(organizationId).equals(actionItemCategory.organizationId) ); // Checks if the asignee is a member of the organization @@ -127,8 +127,8 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( // Checks if the currUser is an admin of the organization const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItemCategory.orgId || - Types.ObjectId(ogranizationId).equals(actionItemCategory.orgId) + ogranizationId === actionItemCategory.organizationId || + Types.ObjectId(ogranizationId).equals(actionItemCategory.organizationId) ); // Checks whether currentUser with _id === context.userId is authorized for the operation. @@ -146,15 +146,15 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( // Creates new action item. const createActionItem = await ActionItem.create({ - assignedTo: args.data.assignedTo, - assignedBy: context.userId, + assigneeId: args.data.assigneeId, + assignerId: context.userId, actionItemCategoryId: args.actionItemCategoryId, preCompletionNotes: args.data.preCompletionNotes, postCompletionNotes: args.data.postCompletionNotes, dueDate: args.data.dueDate, completionDate: args.data.completionDate, eventId: args.data.eventId, - createdBy: context.userId, + creatorId: context.userId, }); if (args.data.eventId) { diff --git a/src/resolvers/Mutation/createActionItemCategory.ts b/src/resolvers/Mutation/createActionItemCategory.ts index 6d001cf4b2..99b190de57 100644 --- a/src/resolvers/Mutation/createActionItemCategory.ts +++ b/src/resolvers/Mutation/createActionItemCategory.ts @@ -42,19 +42,19 @@ export const createActionItemCategory: MutationResolvers["createActionItemCatego let organization; - const organizationFoundInCache = await findOrganizationsInCache([args.orgId]); + const organizationFoundInCache = await findOrganizationsInCache([args.organizationId]); organization = organizationFoundInCache[0]; if (organizationFoundInCache[0] == null) { organization = await Organization.findOne({ - _id: args.orgId, + _id: args.organizationId, }).lean(); await cacheOrganizations([organization!]); } - // Checks whether the organization with _id === args.orgId exists. + // Checks whether the organization with _id === args.organizationId exists. if (!organization) { throw new errors.NotFoundError( requestContext.translate(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE), @@ -69,8 +69,8 @@ export const createActionItemCategory: MutationResolvers["createActionItemCatego // Creates new actionItemCategory. const createdActionItemCategory = await ActionItemCategory.create({ name: args.name, - orgId: args.orgId, - createdBy: context.userId, + organizationId: args.organizationId, + creatorId: context.userId, }); await Organization.findOneAndUpdate( diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index 89650098a3..a9c6d21b08 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -86,8 +86,8 @@ export const createOrganization: MutationResolvers["createOrganization"] = // Creating a default actionItemCategory const createdCategory = await ActionItemCategory.create({ name: "Default", - orgId: createdOrganization._id, - createdBy: context.userId, + organizationId: createdOrganization._id, + creatorId: context.userId, }); // Adding the default actionItemCategory to the createdOrganization diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 32e7091417..2125211ce0 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -58,8 +58,8 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.actionItemCategoryId.orgId || - Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.orgId) + ogranizationId === actionItem.actionItemCategoryId.organizationId || + Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.organizationId) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index c5f6ec9502..9aadef364d 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -27,11 +27,11 @@ import { cacheEvents } from "../../services/EventCache/cacheEvents"; */ type UpdateActionItemInputType = { - assignedTo: string; + assigneeId: string; preCompletionNotes: string; postCompletionNotes: string; dueDate: Date; - completed: boolean; + isCompleted: boolean; }; export const updateActionItem: MutationResolvers["updateActionItem"] = async ( @@ -69,14 +69,14 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( let sameAssignedUser = false; - if (args.data.assignedTo) { - sameAssignedUser = Types.ObjectId(actionItem.assignedTo).equals( - args.data.assignedTo + if (args.data.assigneeId) { + sameAssignedUser = Types.ObjectId(actionItem.assigneeId).equals( + args.data.assigneeId ); if (!sameAssignedUser) { const newAssignedUser = await User.findOne({ - _id: args.data.assignedTo, + _id: args.data.assigneeId, }); // Checks if the new asignee exists @@ -89,11 +89,11 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( } let userIsOrganizationMember = false; - const currOrgId = actionItem.actionItemCategoryId.orgId; + const currorganizationId = actionItem.actionItemCategoryId.organizationId; userIsOrganizationMember = newAssignedUser.joinedOrganizations.some( (organizationId) => - organizationId === currOrgId || - Types.ObjectId(organizationId).equals(currOrgId) + organizationId === currorganizationId || + Types.ObjectId(organizationId).equals(currorganizationId) ); // Checks if the new asignee is a member of the organization @@ -109,8 +109,8 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => - ogranizationId === actionItem.actionItemCategoryId.orgId || - Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.orgId) + ogranizationId === actionItem.actionItemCategoryId.organizationId || + Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.organizationId) ); let currentUserIsEventAdmin = false; @@ -166,7 +166,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( : new Date(); const updatedAssignedBy = sameAssignedUser - ? actionItem.assignedBy + ? actionItem.assignerId : context.userId; const updatedActionItem = await ActionItem.findOneAndUpdate( @@ -176,7 +176,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( { ...(args.data as UpdateActionItemInputType), assignmentDate: updatedAssignmentDate, - assignedBy: updatedAssignedBy, + assignerId: updatedAssignedBy, }, { new: true, diff --git a/src/resolvers/Mutation/updateActionItemCategory.ts b/src/resolvers/Mutation/updateActionItemCategory.ts index f0a5088ba6..0767fd3b2c 100644 --- a/src/resolvers/Mutation/updateActionItemCategory.ts +++ b/src/resolvers/Mutation/updateActionItemCategory.ts @@ -18,9 +18,9 @@ import { adminCheck } from "../../utilities"; * @returns Updated actionItemCategory. */ -type UpdateCategoryInputType = { +type UpdateActionItemCategoryInputType = { name: string; - disabled: boolean; + isDisabled: boolean; }; export const updateActionItemCategory: MutationResolvers["updateActionItemCategory"] = async ( @@ -44,7 +44,7 @@ export const updateActionItemCategory: MutationResolvers["updateActionItemCatego const actionItemCategory = await ActionItemCategory.findOne({ _id: args.id, }) - .populate("orgId") + .populate("organizationId") .lean(); // Checks if the actionItemCategory exists @@ -56,14 +56,14 @@ export const updateActionItemCategory: MutationResolvers["updateActionItemCatego ); } - await adminCheck(context.userId, actionItemCategory.orgId); + await adminCheck(context.userId, actionItemCategory.organizationId); const updatedCategory = await ActionItemCategory.findOneAndUpdate( { _id: args.id, }, { - ...(args.data as UpdateCategoryInputType), + ...(args.data as UpdateActionItemCategoryInputType), }, { new: true, diff --git a/src/resolvers/Query/actionItemCategoriesByOrganization.ts b/src/resolvers/Query/actionItemCategoriesByOrganization.ts index 542c09da76..ffb8c85e48 100644 --- a/src/resolvers/Query/actionItemCategoriesByOrganization.ts +++ b/src/resolvers/Query/actionItemCategoriesByOrganization.ts @@ -3,13 +3,13 @@ import { ActionItemCategory } from "../../models"; /** * This query will fetch all categories for the organization from database. * @param _parent- - * @param args - An object that contains `orgId` which is the _id of the Organization. + * @param args - An object that contains `organizationId` which is the _id of the Organization. * @returns A `categories` object that holds all categories for the Organization. */ export const actionItemCategoriesByOrganization: QueryResolvers["actionItemCategoriesByOrganization"] = async (_parent, args) => { const categories = await ActionItemCategory.find({ - orgId: args.orgId, + organizationId: args.organizationId, }).lean(); return categories; diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index adf7265ed3..5deb34e469 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -36,13 +36,13 @@ export const inputs = gql` } input CreateActionItemInput { - assignedTo: ID! + assigneeId: ID! preCompletionNotes: String postCompletionNotes: String assignmentDate: Date dueDate: Date completionDate: Date - completed: Boolean + isCompleted: Boolean eventId: ID } @@ -249,11 +249,11 @@ export const inputs = gql` } input UpdateActionItemInput { - assignedTo: ID + assigneeId: ID preCompletionNotes: String postCompletionNotes: String dueDate: Date - completed: Boolean + isCompleted: Boolean } input UpdateEventInput { @@ -311,7 +311,7 @@ export const inputs = gql` input UpdateActionItemCategoryInput { name: String - disabled: Boolean + isDisabled: Boolean } input AddressInput { diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index 8c8ac6aaa8..c775defa78 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -61,6 +61,8 @@ export const mutations = gql` actionItemCategoryId: ID! ): ActionItem! @auth + createActionItemCategory(name: String!, organizationId: ID!): ActionItemCategory! @auth + createComment(postId: ID!, data: CommentInput!): Comment @auth createDirectChat(data: createChatInput!): DirectChat! @auth @@ -106,8 +108,6 @@ export const mutations = gql` createSampleOrganization: Boolean! @auth - createActionItemCategory(name: String!, orgId: ID!): ActionItemCategory! @auth - deleteAdvertisementById(id: ID!): DeletePayload! deleteDonationById(id: ID!): DeletePayload! @@ -211,6 +211,8 @@ export const mutations = gql` updateActionItem(id: ID!, data: UpdateActionItemInput!): ActionItem @auth + updateActionItemCategory(id: ID!, data: UpdateActionItemCategoryInput!): ActionItemCategory @auth + updateAdvertisement( input: UpdateAdvertisementInput! ): UpdateAdvertisementPayload @auth @@ -231,8 +233,6 @@ export const mutations = gql` updateUserTag(input: UpdateUserTagInput!): UserTag @auth - updateActionItemCategory(id: ID!, data: UpdateActionItemCategoryInput!): ActionItemCategory @auth - updateUserProfile(data: UpdateUserInput, file: String): User! @auth updateUserPassword(data: UpdateUserPasswordInput!): User! @auth diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index d577caf236..cef093bc6f 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -13,7 +13,7 @@ export const queries = gql` actionItemCategory(id: ID!): ActionItemCategory - actionItemCategoriesByOrganization(orgId: ID!): [ActionItemCategory] + actionItemCategoriesByOrganization(organizationId: ID!): [ActionItemCategory] checkAuth: User! @auth diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 22fda47cf7..4be6534e6d 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -16,20 +16,30 @@ export const types = gql` refreshToken: String! } + type ActionItemCategory { + _id: ID! + name: String! + organization: Organization + isDisabled: Boolean! + creator: User + createdAt: Date! + updatedAt: Date! + } + # Action Item for a ActionItemCategory type ActionItem { _id: ID! - assignedTo: User - assignedBy: User + assignee: User + assigner: User actionItemCategory: ActionItemCategory preCompletionNotes: String postCompletionNotes: String - assignmentDate: Date - dueDate: Date - completionDate: Date - completed: Boolean + assignmentDate: Date! + dueDate: Date! + completionDate: Date! + isCompleted: Boolean! event: Event - createdBy: User + creator: User createdAt: Date! updatedAt: Date! } @@ -358,16 +368,6 @@ export const types = gql` aggregate: AggregatePost! } - type ActionItemCategory { - _id: ID! - name: String! - org: Organization - disabled: Boolean! - createdBy: User - createdAt: Date! - updatedAt: Date! - } - type Translation { lang_code: String en_value: String diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index bf10220b38..c0ba1ab9d0 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -57,15 +57,15 @@ export type ActionItem = { __typename?: 'ActionItem'; _id: Scalars['ID']['output']; actionItemCategory?: Maybe; - assignedBy?: Maybe; - assignedTo?: Maybe; - assignmentDate?: Maybe; - completed?: Maybe; - completionDate?: Maybe; + assignee?: Maybe; + assigner?: Maybe; + assignmentDate: Scalars['Date']['output']; + completionDate: Scalars['Date']['output']; createdAt: Scalars['Date']['output']; - createdBy?: Maybe; - dueDate?: Maybe; + creator?: Maybe; + dueDate: Scalars['Date']['output']; event?: Maybe; + isCompleted: Scalars['Boolean']['output']; postCompletionNotes?: Maybe; preCompletionNotes?: Maybe; updatedAt: Scalars['Date']['output']; @@ -75,10 +75,10 @@ export type ActionItemCategory = { __typename?: 'ActionItemCategory'; _id: Scalars['ID']['output']; createdAt: Scalars['Date']['output']; - createdBy?: Maybe; - disabled: Scalars['Boolean']['output']; + creator?: Maybe; + isDisabled: Scalars['Boolean']['output']; name: Scalars['String']['output']; - org?: Maybe; + organization?: Maybe; updatedAt: Scalars['Date']['output']; }; @@ -195,12 +195,12 @@ export type ConnectionPageInfo = { }; export type CreateActionItemInput = { - assignedTo: Scalars['ID']['input']; + assigneeId: Scalars['ID']['input']; assignmentDate?: InputMaybe; - completed?: InputMaybe; completionDate?: InputMaybe; dueDate?: InputMaybe; eventId?: InputMaybe; + isCompleted?: InputMaybe; postCompletionNotes?: InputMaybe; preCompletionNotes?: InputMaybe; }; @@ -776,7 +776,7 @@ export type MutationCreateActionItemArgs = { export type MutationCreateActionItemCategoryArgs = { name: Scalars['String']['input']; - orgId: Scalars['ID']['input']; + organizationId: Scalars['ID']['input']; }; @@ -1443,7 +1443,7 @@ export type QueryActionItemArgs = { export type QueryActionItemCategoriesByOrganizationArgs = { - orgId: Scalars['ID']['input']; + organizationId: Scalars['ID']['input']; }; @@ -1678,14 +1678,14 @@ export type UnauthorizedError = Error & { }; export type UpdateActionItemCategoryInput = { - disabled?: InputMaybe; + isDisabled?: InputMaybe; name?: InputMaybe; }; export type UpdateActionItemInput = { - assignedTo?: InputMaybe; - completed?: InputMaybe; + assigneeId?: InputMaybe; dueDate?: InputMaybe; + isCompleted?: InputMaybe; postCompletionNotes?: InputMaybe; preCompletionNotes?: InputMaybe; }; @@ -2324,15 +2324,15 @@ export type RoleDirectiveResolver = { _id?: Resolver; actionItemCategory?: Resolver, ParentType, ContextType>; - assignedBy?: Resolver, ParentType, ContextType>; - assignedTo?: Resolver, ParentType, ContextType>; - assignmentDate?: Resolver, ParentType, ContextType>; - completed?: Resolver, ParentType, ContextType>; - completionDate?: Resolver, ParentType, ContextType>; + assignee?: Resolver, ParentType, ContextType>; + assigner?: Resolver, ParentType, ContextType>; + assignmentDate?: Resolver; + completionDate?: Resolver; createdAt?: Resolver; - createdBy?: Resolver, ParentType, ContextType>; - dueDate?: Resolver, ParentType, ContextType>; + creator?: Resolver, ParentType, ContextType>; + dueDate?: Resolver; event?: Resolver, ParentType, ContextType>; + isCompleted?: Resolver; postCompletionNotes?: Resolver, ParentType, ContextType>; preCompletionNotes?: Resolver, ParentType, ContextType>; updatedAt?: Resolver; @@ -2342,10 +2342,10 @@ export type ActionItemResolvers = { _id?: Resolver; createdAt?: Resolver; - createdBy?: Resolver, ParentType, ContextType>; - disabled?: Resolver; + creator?: Resolver, ParentType, ContextType>; + isDisabled?: Resolver; name?: Resolver; - org?: Resolver, ParentType, ContextType>; + organization?: Resolver, ParentType, ContextType>; updatedAt?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }; @@ -2695,7 +2695,7 @@ export type MutationResolvers>; checkIn?: Resolver>; createActionItem?: Resolver>; - createActionItemCategory?: Resolver>; + createActionItemCategory?: Resolver>; createAdmin?: Resolver>; createAdvertisement?: Resolver>; createComment?: Resolver, ParentType, ContextType, RequireFields>; @@ -2880,7 +2880,7 @@ export type PostConnectionResolvers = { actionItem?: Resolver, ParentType, ContextType, RequireFields>; - actionItemCategoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; + actionItemCategoriesByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; actionItemCategory?: Resolver, ParentType, ContextType, RequireFields>; actionItemsByEvent?: Resolver>>, ParentType, ContextType, RequireFields>; adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index 616fcaa82f..90d44e69ae 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -27,15 +27,15 @@ export const createTestActionItem = async (): Promise< const randomUser = await createTestUser(); const testCategory = await ActionItemCategory.create({ - createdBy: testUser?._id, - orgId: testOrganization?._id, + creatorId: testUser?._id, + organizationId: testOrganization?._id, name: "Default", }); const testActionItem = await ActionItem.create({ - createdBy: testUser?._id, - assignedTo: randomUser?._id, - assignedBy: testUser?._id, + creatorId: testUser?._id, + assigneeId: randomUser?._id, + assignerId: testUser?._id, actionItemCategoryId: testCategory?._id, }); @@ -54,9 +54,9 @@ export const createNewTestActionItem = async ({ actionItemCategoryId, }: InterfaceCreateNewTestAction): Promise => { const newTestActionItem = await ActionItem.create({ - createdBy: currUserId, - assignedTo: assignedUserId, - assignedBy: currUserId, + creatorId: currUserId, + assigneeId: assignedUserId, + assignerId: currUserId, actionItemCategoryId: actionItemCategoryId, }); @@ -70,16 +70,16 @@ export const createTestActionItems = async (): Promise< const [testUser, testOrganization, testCategory] = await createTestCategory(); const testActionItem1 = await ActionItem.create({ - createdBy: testUser?._id, - assignedTo: randomUser?._id, - assignedBy: testUser?._id, + creatorId: testUser?._id, + assigneeId: randomUser?._id, + assignerId: testUser?._id, actionItemCategoryId: testCategory?._id, }); const testActionItem2 = await ActionItem.create({ - createdBy: testUser?._id, - assignedTo: randomUser?._id, - assignedBy: testUser?._id, + creatorId: testUser?._id, + assigneeId: randomUser?._id, + assignerId: testUser?._id, actionItemCategoryId: testCategory?._id, }); diff --git a/tests/helpers/actionItemCategory.ts b/tests/helpers/actionItemCategory.ts index 5d632942a4..ec7974b74b 100644 --- a/tests/helpers/actionItemCategory.ts +++ b/tests/helpers/actionItemCategory.ts @@ -14,8 +14,8 @@ export const createTestCategory = async (): Promise< > => { const [testUser, testOrganization] = await createTestUserAndOrganization(); const testCategory = await ActionItemCategory.create({ - createdBy: testUser?._id, - orgId: testOrganization?._id, + creatorId: testUser?._id, + organizationId: testOrganization?._id, name: "Default", }); @@ -28,14 +28,14 @@ export const createTestCategories = async (): Promise< const [testUser, testOrganization] = await createTestUserAndOrganization(); const testCategory1 = await ActionItemCategory.create({ - createdBy: testUser?._id, - orgId: testOrganization?._id, + creatorId: testUser?._id, + organizationId: testOrganization?._id, name: "Default", }); const testCategory2 = await ActionItemCategory.create({ - createdBy: testUser?._id, - orgId: testOrganization?._id, + creatorId: testUser?._id, + organizationId: testOrganization?._id, name: "Default2", }); diff --git a/tests/resolvers/ActionItem/assignedTo.spec.ts b/tests/resolvers/ActionItem/assignee.spec.ts similarity index 81% rename from tests/resolvers/ActionItem/assignedTo.spec.ts rename to tests/resolvers/ActionItem/assignee.spec.ts index 224cec50f7..d910b54919 100644 --- a/tests/resolvers/ActionItem/assignedTo.spec.ts +++ b/tests/resolvers/ActionItem/assignee.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { assignedTo as assignedToResolver } from "../../../src/resolvers/ActionItem/assignedTo"; +import { assignee as assigneeResolver } from "../../../src/resolvers/ActionItem/assignee"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -21,11 +21,11 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItem -> assignedTo", () => { +describe("resolvers -> ActionItem -> assignee", () => { it(`returns the assignee for parent action item`, async () => { const parent = testActionItem?.toObject(); - const assignedToPayload = await assignedToResolver?.(parent, {}, {}); + const assignedToPayload = await assigneeResolver?.(parent, {}, {}); const assignedToObject = await User.findOne({ _id: randomTestUser?._id, diff --git a/tests/resolvers/ActionItem/assignedBy.spec.ts b/tests/resolvers/ActionItem/assigner.spec.ts similarity index 81% rename from tests/resolvers/ActionItem/assignedBy.spec.ts rename to tests/resolvers/ActionItem/assigner.spec.ts index 2d6e79bbed..e27fee41cb 100644 --- a/tests/resolvers/ActionItem/assignedBy.spec.ts +++ b/tests/resolvers/ActionItem/assigner.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { assignedBy as assignedByResolver } from "../../../src/resolvers/ActionItem/assignedBy"; +import { assigner as assignerResolver } from "../../../src/resolvers/ActionItem/assigner"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -21,11 +21,11 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItem -> assignedBy", () => { +describe("resolvers -> ActionItem -> assigner", () => { it(`returns the assigner for parent action item`, async () => { const parent = testActionItem?.toObject(); - const assignedByPayload = await assignedByResolver?.(parent, {}, {}); + const assignedByPayload = await assignerResolver?.(parent, {}, {}); const assignedByObject = await User.findOne({ _id: testUser?._id, diff --git a/tests/resolvers/ActionItem/createdBy.spec.ts b/tests/resolvers/ActionItem/creator.spec.ts similarity index 81% rename from tests/resolvers/ActionItem/createdBy.spec.ts rename to tests/resolvers/ActionItem/creator.spec.ts index 574fd5e6e7..91a19580bf 100644 --- a/tests/resolvers/ActionItem/createdBy.spec.ts +++ b/tests/resolvers/ActionItem/creator.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { createdBy as createdByResolver } from "../../../src/resolvers/ActionItem/createdBy"; +import { creator as creatorResolver } from "../../../src/resolvers/ActionItem/creator"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -21,11 +21,11 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItem -> createdBy", () => { +describe("resolvers -> ActionItem -> creator", () => { it(`returns the creator for parent action item`, async () => { const parent = testActionItem?.toObject(); - const createdByPayload = await createdByResolver?.(parent, {}, {}); + const createdByPayload = await creatorResolver?.(parent, {}, {}); const createdByObject = await User.findOne({ _id: testUser?._id, diff --git a/tests/resolvers/ActionItemCategory/createdBy.spec.ts b/tests/resolvers/ActionItemCategory/creator.spec.ts similarity index 81% rename from tests/resolvers/ActionItemCategory/createdBy.spec.ts rename to tests/resolvers/ActionItemCategory/creator.spec.ts index c7506b847d..dd6fe80367 100644 --- a/tests/resolvers/ActionItemCategory/createdBy.spec.ts +++ b/tests/resolvers/ActionItemCategory/creator.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { createdBy as createdByResolver } from "../../../src/resolvers/ActionItemCategory/createdBy"; +import { creator as creatorResolver } from "../../../src/resolvers/ActionItemCategory/creator"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -21,11 +21,11 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> ActionItemCategory -> createdBy", () => { +describe("resolvers -> ActionItemCategory -> creator", () => { it(`returns the creator for parent actionItemCategory`, async () => { const parent = testCategory?.toObject(); - const createdByPayload = await createdByResolver?.(parent, {}, {}); + const createdByPayload = await creatorResolver?.(parent, {}, {}); const createdByObject = await User.findOne({ _id: testUser?._id, diff --git a/tests/resolvers/ActionItemCategory/org.spec.ts b/tests/resolvers/ActionItemCategory/organization.spec.ts similarity index 86% rename from tests/resolvers/ActionItemCategory/org.spec.ts rename to tests/resolvers/ActionItemCategory/organization.spec.ts index 769bba8ab6..2c1a06e0d2 100644 --- a/tests/resolvers/ActionItemCategory/org.spec.ts +++ b/tests/resolvers/ActionItemCategory/organization.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { org as orgResolver } from "../../../src/resolvers/ActionItemCategory/org"; +import { organization as organizationResolver } from "../../../src/resolvers/ActionItemCategory/organization"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -25,7 +25,7 @@ describe("resolvers -> ActionItemCategory -> org", () => { it(`returns the organization object for parent actionItemCategory`, async () => { const parent = testCategory?.toObject(); - const orgPayload = await orgResolver?.(parent, {}, {}); + const orgPayload = await organizationResolver?.(parent, {}, {}); const orgObject = await Organization.findOne({ _id: testOrganization?._id, diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index ad7c8c0cc1..698fdc68dc 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -80,7 +80,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: testCategory?._id, }; @@ -95,11 +95,11 @@ describe("resolvers -> Mutation -> createActionItem", () => { } }); - it(`throws NotFoundError if no actionItemCategory exists with _id === args.orgId`, async () => { + it(`throws NotFoundError if no actionItemCategory exists with _id === args.organizationId`, async () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: Types.ObjectId().toString(), }; @@ -114,11 +114,11 @@ describe("resolvers -> Mutation -> createActionItem", () => { } }); - it(`throws NotFoundError if no user exists with _id === args.data.assignedTo`, async () => { + it(`throws NotFoundError if no user exists with _id === args.data.assigneeId`, async () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: Types.ObjectId().toString(), + assigneeId: Types.ObjectId().toString(), }, actionItemCategoryId: testCategory?._id, }; @@ -137,7 +137,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: testCategory?._id, }; @@ -165,7 +165,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, eventId: Types.ObjectId().toString(), }, actionItemCategoryId: testCategory?._id, @@ -185,7 +185,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { try { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: testCategory?._id, }; @@ -203,7 +203,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { it(`creates the actionItem when user is authorized as an eventAdmin`, async () => { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, eventId: testEvent?._id, }, actionItemCategoryId: testCategory?._id, @@ -241,7 +241,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { it(`creates the actionItem when user is authorized as an orgAdmin`, async () => { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: testCategory?._id, }; @@ -266,7 +266,7 @@ describe("resolvers -> Mutation -> createActionItem", () => { it(`creates the actionItem when user is authorized as superadmin`, async () => { const args: MutationCreateActionItemArgs = { data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, actionItemCategoryId: testCategory?._id, }; diff --git a/tests/resolvers/Mutation/createActionItemCategory.spec.ts b/tests/resolvers/Mutation/createActionItemCategory.spec.ts index bb47c97955..f520312d14 100644 --- a/tests/resolvers/Mutation/createActionItemCategory.spec.ts +++ b/tests/resolvers/Mutation/createActionItemCategory.spec.ts @@ -46,7 +46,7 @@ describe("resolvers -> Mutation -> createCategory", () => { it(`throws NotFoundError if no user exists with _id === context.userId`, async () => { try { const args: MutationCreateActionItemCategoryArgs = { - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }; @@ -60,10 +60,10 @@ describe("resolvers -> Mutation -> createCategory", () => { } }); - it(`throws NotFoundError if no organization exists with _id === args.orgId`, async () => { + it(`throws NotFoundError if no organization exists with _id === args.organizationId`, async () => { try { const args: MutationCreateActionItemCategoryArgs = { - orgId: Types.ObjectId().toString(), + organizationId: Types.ObjectId().toString(), name: "Default", }; @@ -80,7 +80,7 @@ describe("resolvers -> Mutation -> createCategory", () => { it(`throws NotAuthorizedError if the user is not a superadmin or the admin of the organization`, async () => { try { const args: MutationCreateActionItemCategoryArgs = { - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }; @@ -96,7 +96,7 @@ describe("resolvers -> Mutation -> createCategory", () => { it(`creates the actionItemCategory and returns it as an admin`, async () => { const args: MutationCreateActionItemCategoryArgs = { - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }; @@ -112,7 +112,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }) ); @@ -144,7 +144,7 @@ describe("resolvers -> Mutation -> createCategory", () => { ); const args: MutationCreateActionItemCategoryArgs = { - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }; @@ -160,7 +160,7 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "Default", }) ); diff --git a/tests/resolvers/Mutation/createOrganization.spec.ts b/tests/resolvers/Mutation/createOrganization.spec.ts index 848725a8a6..e777ba661e 100644 --- a/tests/resolvers/Mutation/createOrganization.spec.ts +++ b/tests/resolvers/Mutation/createOrganization.spec.ts @@ -153,14 +153,14 @@ describe("resolvers -> Mutation -> createOrganization", () => { ); const defaultCategory = await ActionItemCategory.findOne({ - orgId: createOrganizationPayload?._id, + organizationId: createOrganizationPayload?._id, }).lean(); expect(defaultCategory).toEqual( expect.objectContaining({ - orgId: createOrganizationPayload?._id, + organizationId: createOrganizationPayload?._id, name: "Default", - disabled: false, + isDisabled: false, }) ); }); diff --git a/tests/resolvers/Mutation/removeActionItem.spec.ts b/tests/resolvers/Mutation/removeActionItem.spec.ts index c1117b6830..26e4e374a0 100644 --- a/tests/resolvers/Mutation/removeActionItem.spec.ts +++ b/tests/resolvers/Mutation/removeActionItem.spec.ts @@ -138,7 +138,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { // console.log(removedActionItemPayload); expect(removedActionItemPayload).toEqual( expect.objectContaining({ - assignedTo: assignedTestUser?._id, + assigneeId: assignedTestUser?._id, }) ); }); @@ -178,7 +178,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { expect(removedActionItemPayload).toEqual( expect.objectContaining({ - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }) ); }); @@ -272,7 +272,7 @@ describe("resolvers -> Mutation -> removeActionItem", () => { expect(removedActionItemPayload).toEqual( expect.objectContaining({ - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }) ); diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 9566e6baac..05d6a187d7 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -114,15 +114,15 @@ beforeAll(async () => { }); testCategory = await ActionItemCategory.create({ - createdBy: testUsers[0]?._id, - orgId: testOrganization?._id, + creatorId: testUsers[0]?._id, + organizationId: testOrganization?._id, name: "Default", }); testActionItem = await ActionItem.create({ - createdBy: testUsers[0]?._id, - assignedTo: testUsers[1]?._id, - assignedBy: testUsers[0]?._id, + creatorId: testUsers[0]?._id, + assigneeId: testUsers[1]?._id, + assignerId: testUsers[0]?._id, actionItemCategoryId: testCategory?._id, }); @@ -343,7 +343,7 @@ describe("resolvers -> Mutation -> removeOrganization", () => { }).lean(); const deletedTestCategories = await ActionItemCategory.find({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, }).lean(); const deteledTestActionItems = await ActionItem.find({ diff --git a/tests/resolvers/Mutation/updateActionItem.spec.ts b/tests/resolvers/Mutation/updateActionItem.spec.ts index a089752ccd..db74533b50 100644 --- a/tests/resolvers/Mutation/updateActionItem.spec.ts +++ b/tests/resolvers/Mutation/updateActionItem.spec.ts @@ -75,7 +75,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: Types.ObjectId().toString(), data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, }; @@ -94,7 +94,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: Types.ObjectId().toString(), data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, }; @@ -108,12 +108,12 @@ describe("resolvers -> Mutation -> updateActionItem", () => { } }); - it(`throws NotFoundError if no user exists with _id === args.data.assignedTo`, async () => { + it(`throws NotFoundError if no user exists with _id === args.data.assigneeId`, async () => { try { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, data: { - assignedTo: Types.ObjectId().toString(), + assigneeId: Types.ObjectId().toString(), }, }; @@ -132,7 +132,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, }; @@ -151,7 +151,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, data: { - assignedTo: testUser?._id, + assigneeId: testUser?._id, }, }; @@ -169,7 +169,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, data: { - assignedTo: assignedTestUser?._id, + assigneeId: assignedTestUser?._id, }, }; @@ -185,7 +185,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ - assignedTo: assignedTestUser?._id, + assigneeId: assignedTestUser?._id, actionItemCategoryId: testCategory?._id, }) ); @@ -207,7 +207,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: testActionItem?._id, data: { - assignedTo: testUser?._id, + assigneeId: testUser?._id, }, }; @@ -223,7 +223,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ - assignedTo: testUser?._id, + assigneeId: testUser?._id, actionItemCategoryId: testCategory?._id, }) ); @@ -255,7 +255,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { id: updatedTestActionItem?._id, data: { - assignedTo: randomUser?._id, + assigneeId: randomUser?._id, }, }; @@ -284,7 +284,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { const args: MutationUpdateActionItemArgs = { data: { - assignedTo: testUser?._id, + assigneeId: testUser?._id, }, id: updatedTestActionItem?._id, }; @@ -302,7 +302,7 @@ describe("resolvers -> Mutation -> updateActionItem", () => { expect(updatedActionItemPayload).toEqual( expect.objectContaining({ actionItemCategoryId: testCategory?._id, - assignedTo: testUser?._id, + assigneeId: testUser?._id, }) ); }); diff --git a/tests/resolvers/Mutation/updateActionItemCategory.spec.ts b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts index b3108bd714..2ac8dd200c 100644 --- a/tests/resolvers/Mutation/updateActionItemCategory.spec.ts +++ b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts @@ -49,7 +49,7 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { id: Types.ObjectId().toString(), data: { name: "updatedDefault", - disabled: true, + isDisabled: true, }, }; @@ -69,7 +69,7 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { id: Types.ObjectId().toString(), data: { name: "updatedDefault", - disabled: true, + isDisabled: true, }, }; @@ -89,7 +89,7 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { id: testCategory?._id, data: { name: "updatedDefault", - disabled: true, + isDisabled: true, }, }; @@ -108,7 +108,7 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { id: testCategory?._id, data: { name: "updatedDefault", - disabled: true, + isDisabled: true, }, }; @@ -120,9 +120,9 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { expect(updatedCategory).toEqual( expect.objectContaining({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "updatedDefault", - disabled: true, + isDisabled: true, }) ); }); @@ -144,7 +144,7 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { id: testCategory?._id, data: { name: "updatedDefault", - disabled: false, + isDisabled: false, }, }; @@ -156,9 +156,9 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { expect(updatedCategory).toEqual( expect.objectContaining({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, name: "updatedDefault", - disabled: false, + isDisabled: false, }) ); }); diff --git a/tests/resolvers/Organization/actionCategories.spec.ts b/tests/resolvers/Organization/actionCategories.spec.ts index 817c333542..283deca35a 100644 --- a/tests/resolvers/Organization/actionCategories.spec.ts +++ b/tests/resolvers/Organization/actionCategories.spec.ts @@ -30,7 +30,7 @@ describe("resolvers -> Organization -> actionCategories", () => { ); const categories = await ActionItemCategory.find({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, }).lean(); expect(actionCategoriesPayload).toEqual(categories); diff --git a/tests/resolvers/Query/categoriesByOrganization.spec.ts b/tests/resolvers/Query/actionItemCategoriesByOrganization.spec.ts similarity index 83% rename from tests/resolvers/Query/categoriesByOrganization.spec.ts rename to tests/resolvers/Query/actionItemCategoriesByOrganization.spec.ts index 25ae54daef..1889c27e85 100644 --- a/tests/resolvers/Query/categoriesByOrganization.spec.ts +++ b/tests/resolvers/Query/actionItemCategoriesByOrganization.spec.ts @@ -1,7 +1,7 @@ import "dotenv/config"; import { ActionItemCategory } from "../../../src/models"; import { connect, disconnect } from "../../helpers/db"; -import type { QueryCategoriesByOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; +import type { QueryActionItemCategoriesByOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; import { actionItemCategoriesByOrganization as categoriesByOrganizationResolver } from "../../../src/resolvers/Query/actionItemCategoriesByOrganization"; import { createTestCategories } from "../../helpers/actionItemCategory"; import { beforeAll, afterAll, describe, it, expect } from "vitest"; @@ -22,15 +22,15 @@ afterAll(async () => { describe("resolvers -> Query -> actionItemCategoriesByOrganization", () => { it(`returns list of all categories belonging to an organization`, async () => { - const args: QueryCategoriesByOrganizationArgs = { - orgId: testOrganization?._id, + const args: QueryActionItemCategoriesByOrganizationArgs = { + organizationId: testOrganization?._id, }; const categoriesByOrganizationPayload = await categoriesByOrganizationResolver?.({}, args, {}); const categoriesByOrganizationInfo = await ActionItemCategory.find({ - orgId: testOrganization?._id, + organizationId: testOrganization?._id, }).lean(); expect(categoriesByOrganizationPayload).toEqual( diff --git a/tests/resolvers/Query/category.spec.ts b/tests/resolvers/Query/actionItemCategory.spec.ts similarity index 100% rename from tests/resolvers/Query/category.spec.ts rename to tests/resolvers/Query/actionItemCategory.spec.ts From 9298ace2fcc396f3655c5fb5fde0823a59a6011a Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 22 Jan 2024 16:21:00 +0530 Subject: [PATCH 20/28] remove redundant relationships from Organization and Event --- src/models/Event.ts | 9 ------ src/models/Organization.ts | 9 ------ src/resolvers/Event/actionItems.ts | 4 +-- src/resolvers/Mutation/createActionItem.ts | 11 ------- .../Mutation/createActionItemCategory.ts | 9 ------ src/resolvers/Mutation/createOrganization.ts | 6 +--- src/resolvers/Mutation/removeActionItem.ts | 11 ------- src/resolvers/Mutation/removeEvent.ts | 2 +- src/resolvers/Mutation/removeOrganization.ts | 12 ++++--- ...nCategories.ts => actionItemCategories.ts} | 6 ++-- src/resolvers/Organization/index.ts | 4 +-- src/typeDefs/types.ts | 2 +- src/types/generatedGraphQLTypes.ts | 4 +-- tests/helpers/actionItemCategory.ts | 22 ++----------- tests/resolvers/ActionItem/event.spec.ts | 7 +--- tests/resolvers/Event/actionItems.spec.ts | 4 +-- .../Mutation/createActionItem.spec.ts | 12 ------- .../Mutation/createActionItemCategory.spec.ts | 24 -------------- .../Mutation/removeActionItem.spec.ts | 32 ------------------- .../Mutation/removeOrganization.spec.ts | 1 - ...s.spec.ts => actionItemCategories.spec.ts} | 8 ++--- 21 files changed, 28 insertions(+), 171 deletions(-) rename src/resolvers/Organization/{actionCategories.ts => actionItemCategories.ts} (78%) rename tests/resolvers/Organization/{actionCategories.spec.ts => actionItemCategories.spec.ts} (73%) diff --git a/src/models/Event.ts b/src/models/Event.ts index 19692df204..05b72ac0f5 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -2,7 +2,6 @@ import type { Types, PopulatedDoc, Document, Model } from "mongoose"; import { Schema, model, models } from "mongoose"; import type { InterfaceOrganization } from "./Organization"; import type { InterfaceUser } from "./User"; -import type { InterfaceActionItem } from "./ActionItem"; /** * This is an interface representing a document for an event in the database(MongoDB). @@ -26,7 +25,6 @@ export interface InterfaceEvent { isRegisterable: boolean; creatorId: PopulatedDoc; admins: PopulatedDoc[]; - actionItems: PopulatedDoc[]; organization: PopulatedDoc; status: string; createdAt: Date; @@ -52,7 +50,6 @@ export interface InterfaceEvent { * @param isRegisterable - Is the event Registrable * @param creatorId - Creator of the event * @param admins - Admins - * @param actionItems - Action Items * @param organization - Organization * @param status - whether the event is active, blocked, or deleted. * @param createdAt - Timestamp of event creation @@ -140,12 +137,6 @@ const eventSchema = new Schema( ref: "User", required: true, }, - actionItems: [ - { - type: Schema.Types.ObjectId, - ref: "ActionItem", - }, - ], admins: [ { type: Schema.Types.ObjectId, diff --git a/src/models/Organization.ts b/src/models/Organization.ts index a9c71eb5b0..092cbb1a0a 100644 --- a/src/models/Organization.ts +++ b/src/models/Organization.ts @@ -5,7 +5,6 @@ import type { InterfaceMessage } from "./Message"; import type { InterfaceOrganizationCustomField } from "./OrganizationCustomField"; import type { InterfacePost } from "./Post"; import type { InterfaceUser } from "./User"; -import type { InterfaceActionItemCategory } from "./ActionItemCategory"; /** * This is an interface that represents a database(MongoDB) document for Organization. */ @@ -20,7 +19,6 @@ export interface InterfaceOrganization { status: string; members: PopulatedDoc[]; admins: PopulatedDoc[]; - actionCategories: PopulatedDoc[]; groupChats: PopulatedDoc[]; posts: PopulatedDoc[]; pinnedPosts: PopulatedDoc[]; @@ -43,7 +41,6 @@ export interface InterfaceOrganization { * @param status - Status. * @param members - Collection of members, each object refer to `User` model. * @param admins - Collection of organization admins, each object refer to `User` model. - * @param actionCategories - Collection of categories belonging to an organization, refer to `ActionItemCategory` model. * @param groupChats - Collection of group chats, each object refer to `Message` model. * @param posts - Collection of Posts in the Organization, each object refer to `Post` model. * @param membershipRequests - Collection of membership requests in the Organization, each object refer to `MembershipRequest` model. @@ -87,12 +84,6 @@ const organizationSchema = new Schema( ref: "User", required: true, }, - actionCategories: [ - { - type: Schema.Types.ObjectId, - ref: "ActionItemCategory", - }, - ], status: { type: String, required: true, diff --git a/src/resolvers/Event/actionItems.ts b/src/resolvers/Event/actionItems.ts index 34ecd9b8c0..f1c83a7d1d 100644 --- a/src/resolvers/Event/actionItems.ts +++ b/src/resolvers/Event/actionItems.ts @@ -7,8 +7,6 @@ import type { EventResolvers } from "../../types/generatedGraphQLTypes"; */ export const actionItems: EventResolvers["actionItems"] = async (parent) => { return await ActionItem.find({ - _id: { - $in: parent.actionItems, - }, + eventId: parent._id }).lean(); }; diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index c25e4e92a9..b207858448 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -157,17 +157,6 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( creatorId: context.userId, }); - if (args.data.eventId) { - await Event.findOneAndUpdate( - { - _id: args.data.eventId, - }, - { - $push: { actionItems: createActionItem._id }, - } - ); - } - // Returns created action item. return createActionItem.toObject(); }; diff --git a/src/resolvers/Mutation/createActionItemCategory.ts b/src/resolvers/Mutation/createActionItemCategory.ts index 99b190de57..74b601fb5d 100644 --- a/src/resolvers/Mutation/createActionItemCategory.ts +++ b/src/resolvers/Mutation/createActionItemCategory.ts @@ -73,15 +73,6 @@ export const createActionItemCategory: MutationResolvers["createActionItemCatego creatorId: context.userId, }); - await Organization.findOneAndUpdate( - { - _id: organization._id, - }, - { - $push: { actionCategories: createdActionItemCategory._id }, - } - ); - // Returns created actionItemCategory. return createdActionItemCategory.toObject(); }; diff --git a/src/resolvers/Mutation/createOrganization.ts b/src/resolvers/Mutation/createOrganization.ts index a9c6d21b08..dd5593a30b 100644 --- a/src/resolvers/Mutation/createOrganization.ts +++ b/src/resolvers/Mutation/createOrganization.ts @@ -84,16 +84,12 @@ export const createOrganization: MutationResolvers["createOrganization"] = }); // Creating a default actionItemCategory - const createdCategory = await ActionItemCategory.create({ + await ActionItemCategory.create({ name: "Default", organizationId: createdOrganization._id, creatorId: context.userId, }); - // Adding the default actionItemCategory to the createdOrganization - createdOrganization.actionCategories.push(createdCategory._id); - await createdOrganization.save(); - await cacheOrganizations([createdOrganization.toObject()!]); /* diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 2125211ce0..06eecc943a 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -110,17 +110,6 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( ); } - if (actionItem.eventId) { - await Event.updateOne( - { - _id: actionItem.eventId, - }, - { - $pull: { actionItems: actionItem._id }, - } - ); - } - await ActionItem.deleteOne({ _id: args.id, }); diff --git a/src/resolvers/Mutation/removeEvent.ts b/src/resolvers/Mutation/removeEvent.ts index c4bc3d06f4..63322f847c 100644 --- a/src/resolvers/Mutation/removeEvent.ts +++ b/src/resolvers/Mutation/removeEvent.ts @@ -127,7 +127,7 @@ export const removeEvent: MutationResolvers["removeEvent"] = async ( await cacheEvents([updatedEvent]); } - await ActionItem.deleteMany({ _id: { $in: event.actionItems } }); + await ActionItem.deleteMany({ eventId: event?._id }); return event; }; diff --git a/src/resolvers/Mutation/removeOrganization.ts b/src/resolvers/Mutation/removeOrganization.ts index a9506f3d8b..38cffbcada 100644 --- a/src/resolvers/Mutation/removeOrganization.ts +++ b/src/resolvers/Mutation/removeOrganization.ts @@ -127,12 +127,16 @@ export const removeOrganization: MutationResolvers["removeOrganization"] = { $pull: { organizationsBlockedBy: organization._id } } ); - // Remove all ActionItemCategory documents whose id is in the actionCategories array - await ActionItemCategory.deleteMany({ _id: { $in: organization.actionCategories } }); + // Get the ids of all ActionItemCategories associated with the organization + const actionItemCategories = await ActionItemCategory.find({ organizationId: organization?._id }); + const actionItemCategoriesIds = actionItemCategories.map(category => category._id); - // Remove all ActionItem documents whose actionItemCategory is in the actionCategories array + // Remove all ActionItemCategory documents whose id is in the actionItemCategories array + await ActionItemCategory.deleteMany({ _id: { $in: actionItemCategoriesIds } }); + + // Remove all ActionItem documents whose actionItemCategory is in the actionItemCategories array await ActionItem.deleteMany({ - actionItemCategoryId: { $in: organization.actionCategories }, + actionItemCategoryId: { $in: actionItemCategoriesIds }, }); // Deletes the organzation. diff --git a/src/resolvers/Organization/actionCategories.ts b/src/resolvers/Organization/actionItemCategories.ts similarity index 78% rename from src/resolvers/Organization/actionCategories.ts rename to src/resolvers/Organization/actionItemCategories.ts index f953cc8561..e958d304b6 100644 --- a/src/resolvers/Organization/actionCategories.ts +++ b/src/resolvers/Organization/actionItemCategories.ts @@ -5,11 +5,9 @@ import type { OrganizationResolvers } from "../../types/generatedGraphQLTypes"; * @param parent - An object that is the return value of the resolver for this field's parent. * @returns An object that contains the list of all categories of the organization. */ -export const actionCategories: OrganizationResolvers["actionCategories"] = +export const actionItemCategories: OrganizationResolvers["actionItemCategories"] = async (parent) => { return await ActionItemCategory.find({ - _id: { - $in: parent.actionCategories, - }, + organizationId: parent._id }).lean(); }; diff --git a/src/resolvers/Organization/index.ts b/src/resolvers/Organization/index.ts index 0b7f2d88b9..1851c85ab1 100644 --- a/src/resolvers/Organization/index.ts +++ b/src/resolvers/Organization/index.ts @@ -6,12 +6,12 @@ import { image } from "./image"; import { members } from "./members"; import { pinnedPosts } from "./pinnedPosts"; import { membershipRequests } from "./membershipRequests"; -import { actionCategories } from "./actionCategories"; +import { actionItemCategories } from "./actionItemCategories"; // import { userTags } from "./userTags"; export const Organization: OrganizationResolvers = { admins, - actionCategories, + actionItemCategories, blockedUsers, creator, image, diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 4be6534e6d..833009849f 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -258,7 +258,7 @@ export const types = gql` creator: User members: [User!] admins(adminId: ID): [User!] - actionCategories: [ActionItemCategory!] + actionItemCategories: [ActionItemCategory!] createdAt: DateTime! updatedAt: DateTime! membershipRequests: [MembershipRequest] diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index c0ba1ab9d0..f9c0c725c9 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1154,7 +1154,7 @@ export type OtpInput = { export type Organization = { __typename?: 'Organization'; _id: Scalars['ID']['output']; - actionCategories?: Maybe>; + actionItemCategories?: Maybe>; admins?: Maybe>; apiUrl: Scalars['URL']['output']; blockedUsers?: Maybe>>; @@ -2772,7 +2772,7 @@ export type MutationResolvers = { _id?: Resolver; - actionCategories?: Resolver>, ParentType, ContextType>; + actionItemCategories?: Resolver>, ParentType, ContextType>; admins?: Resolver>, ParentType, ContextType, Partial>; apiUrl?: Resolver; blockedUsers?: Resolver>>, ParentType, ContextType>; diff --git a/tests/helpers/actionItemCategory.ts b/tests/helpers/actionItemCategory.ts index ec7974b74b..c9c73ac2bd 100644 --- a/tests/helpers/actionItemCategory.ts +++ b/tests/helpers/actionItemCategory.ts @@ -27,33 +27,17 @@ export const createTestCategories = async (): Promise< > => { const [testUser, testOrganization] = await createTestUserAndOrganization(); - const testCategory1 = await ActionItemCategory.create({ + await ActionItemCategory.create({ creatorId: testUser?._id, organizationId: testOrganization?._id, name: "Default", }); - const testCategory2 = await ActionItemCategory.create({ + await ActionItemCategory.create({ creatorId: testUser?._id, organizationId: testOrganization?._id, name: "Default2", }); - const updatedTestOrganization = await Organization.findOneAndUpdate( - { - _id: testOrganization?._id, - }, - { - $push: { - actionCategories: { - $each: [testCategory1._id, testCategory2._id], - }, - }, - }, - { - new: true, - } - ); - - return [testUser, updatedTestOrganization]; + return [testUser, testOrganization]; }; diff --git a/tests/resolvers/ActionItem/event.spec.ts b/tests/resolvers/ActionItem/event.spec.ts index 0ea139c772..f93397e5a5 100644 --- a/tests/resolvers/ActionItem/event.spec.ts +++ b/tests/resolvers/ActionItem/event.spec.ts @@ -40,7 +40,6 @@ describe("resolvers -> ActionItem -> event", () => { creatorId: testUser?._id, admins: [testUser?._id], organization: testOrganization?._id, - actionItems: [testActionItem?._id], }); const updatedTestActionItem = await ActionItem.findOneAndUpdate( @@ -63,10 +62,6 @@ describe("resolvers -> ActionItem -> event", () => { {} ); - expect(eventByPayload).toEqual( - expect.objectContaining({ - actionItems: [updatedTestActionItem?._id], - }) - ); + expect(eventByPayload?._id).toEqual(updatedTestActionItem?.eventId); }); }); diff --git a/tests/resolvers/Event/actionItems.spec.ts b/tests/resolvers/Event/actionItems.spec.ts index e243fcbad5..a084779776 100644 --- a/tests/resolvers/Event/actionItems.spec.ts +++ b/tests/resolvers/Event/actionItems.spec.ts @@ -23,7 +23,7 @@ describe("resolvers -> Organization -> actionItems", () => { it(`returns all actionItems for parent Event`, async () => { const parent = testEvent?.toObject(); if (parent) { - const actionCategoriesPayload = await actionItemsResolver?.( + const actionItemsPayload = await actionItemsResolver?.( parent, {}, {} @@ -33,7 +33,7 @@ describe("resolvers -> Organization -> actionItems", () => { eventId: testEvent?._id, }).lean(); - expect(actionCategoriesPayload).toEqual(actionItems); + expect(actionItemsPayload).toEqual(actionItems); } }); }); diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index 698fdc68dc..779102e31d 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -224,18 +224,6 @@ describe("resolvers -> Mutation -> createActionItem", () => { actionItemCategoryId: testCategory?._id, }) ); - - const updatedTestEvent = await Event.findOne({ - _id: testEvent?._id, - }) - .select(["actionItems"]) - .lean(); - - expect(updatedTestEvent).toEqual( - expect.objectContaining({ - actionItems: expect.arrayContaining([createActionItemPayload?._id]), - }) - ); }); it(`creates the actionItem when user is authorized as an orgAdmin`, async () => { diff --git a/tests/resolvers/Mutation/createActionItemCategory.spec.ts b/tests/resolvers/Mutation/createActionItemCategory.spec.ts index f520312d14..68f4b9a6bd 100644 --- a/tests/resolvers/Mutation/createActionItemCategory.spec.ts +++ b/tests/resolvers/Mutation/createActionItemCategory.spec.ts @@ -116,18 +116,6 @@ describe("resolvers -> Mutation -> createCategory", () => { name: "Default", }) ); - - const updatedTestOrganization = await Organization.findOne({ - _id: testOrganization?._id, - }) - .select(["actionCategories"]) - .lean(); - - expect(updatedTestOrganization).toEqual( - expect.objectContaining({ - actionCategories: [createCategoryPayload?._id], - }) - ); }); it(`creates the actionItemCategory and returns it as superAdmin`, async () => { @@ -164,17 +152,5 @@ describe("resolvers -> Mutation -> createCategory", () => { name: "Default", }) ); - - const updatedTestOrganization = await Organization.findOne({ - _id: testOrganization?._id, - }) - .select(["actionCategories"]) - .lean(); - - expect(updatedTestOrganization).toEqual( - expect.objectContaining({ - actionCategories: expect.arrayContaining([createCategoryPayload?._id]), - }) - ); }); }); diff --git a/tests/resolvers/Mutation/removeActionItem.spec.ts b/tests/resolvers/Mutation/removeActionItem.spec.ts index 26e4e374a0..780980096a 100644 --- a/tests/resolvers/Mutation/removeActionItem.spec.ts +++ b/tests/resolvers/Mutation/removeActionItem.spec.ts @@ -236,26 +236,6 @@ describe("resolvers -> Mutation -> removeActionItem", () => { } ); - const updatedTestEvent = await Event.findOneAndUpdate( - { - _id: testEvent?._id, - }, - { - $push: { actionItems: newTestActionItem?._id }, - }, - { - new: true, - } - ) - .select(["actionItems"]) - .lean(); - - expect(updatedTestEvent).toEqual( - expect.objectContaining({ - actionItems: expect.arrayContaining([updatedTestActionItem?._id]), - }) - ); - const args: MutationRemoveActionItemArgs = { id: updatedTestActionItem?._id, }; @@ -275,17 +255,5 @@ describe("resolvers -> Mutation -> removeActionItem", () => { assigneeId: randomUser?._id, }) ); - - const updatedTestEventInfo = await Event.findOne({ - _id: testEvent?._id, - }) - .select(["actionItems"]) - .lean(); - - expect(updatedTestEventInfo).toEqual( - expect.objectContaining({ - actionItems: expect.not.arrayContaining([updatedTestActionItem?._id]), - }) - ); }); }); diff --git a/tests/resolvers/Mutation/removeOrganization.spec.ts b/tests/resolvers/Mutation/removeOrganization.spec.ts index 05d6a187d7..a8d900af34 100644 --- a/tests/resolvers/Mutation/removeOrganization.spec.ts +++ b/tests/resolvers/Mutation/removeOrganization.spec.ts @@ -134,7 +134,6 @@ beforeAll(async () => { $push: { membershipRequests: testMembershipRequest._id, posts: testPost._id, - actionCategories: testCategory?._id, }, } ); diff --git a/tests/resolvers/Organization/actionCategories.spec.ts b/tests/resolvers/Organization/actionItemCategories.spec.ts similarity index 73% rename from tests/resolvers/Organization/actionCategories.spec.ts rename to tests/resolvers/Organization/actionItemCategories.spec.ts index 283deca35a..ac51d984f8 100644 --- a/tests/resolvers/Organization/actionCategories.spec.ts +++ b/tests/resolvers/Organization/actionItemCategories.spec.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { actionCategories as actionCategoriesResolver } from "../../../src/resolvers/Organization/actionCategories"; +import { actionItemCategories as actionItemCategoriesResolver } from "../../../src/resolvers/Organization/actionItemCategories"; import { connect, disconnect } from "../../helpers/db"; import type mongoose from "mongoose"; import { ActionItemCategory } from "../../../src/models"; @@ -19,11 +19,11 @@ afterAll(async () => { await disconnect(MONGOOSE_INSTANCE); }); -describe("resolvers -> Organization -> actionCategories", () => { - it(`returns all actionCategories for parent organization`, async () => { +describe("resolvers -> Organization -> actionItemCategories", () => { + it(`returns all actionItemCategories for parent organization`, async () => { const parent = testOrganization?.toObject(); if (parent) { - const actionCategoriesPayload = await actionCategoriesResolver?.( + const actionCategoriesPayload = await actionItemCategoriesResolver?.( parent, {}, {} From a74d184564e08f39a769dff9443ec98f73e883dc Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 22 Jan 2024 17:28:16 +0530 Subject: [PATCH 21/28] making actionItemCategory name unique for a given Organization --- codegen.ts | 3 +- locales/en.json | 3 +- locales/fr.json | 3 +- locales/hi.json | 1 + locales/sp.json | 3 +- locales/zh.json | 3 +- src/constants.ts | 7 + src/models/ActionItemCategory.ts | 15 ++- .../ActionItem/actionItemCategory.ts | 11 +- src/resolvers/ActionItemCategory/creator.ts | 4 +- .../ActionItemCategory/organization.ts | 4 +- src/resolvers/Event/actionItems.ts | 2 +- .../Mutation/createActionItemCategory.ts | 124 ++++++++++-------- src/resolvers/Mutation/index.ts | 8 +- src/resolvers/Mutation/removeActionItem.ts | 4 +- src/resolvers/Mutation/removeOrganization.ts | 12 +- src/resolvers/Mutation/updateActionItem.ts | 4 +- .../Mutation/updateActionItemCategory.ts | 83 ++++++------ .../Organization/actionItemCategories.ts | 2 +- src/resolvers/Query/actionItemCategory.ts | 5 +- src/typeDefs/mutations.ts | 10 +- src/typeDefs/queries.ts | 4 +- src/typeDefs/types.ts | 20 +-- src/types/generatedGraphQLTypes.ts | 24 ++-- tests/resolvers/ActionItem/category.spec.ts | 6 +- tests/resolvers/Event/actionItems.spec.ts | 6 +- .../Mutation/createActionItem.spec.ts | 4 +- .../Mutation/createActionItemCategory.spec.ts | 24 +++- .../Mutation/updateActionItemCategory.spec.ts | 16 ++- .../Query/actionItemCategory.spec.ts | 6 +- 30 files changed, 258 insertions(+), 163 deletions(-) diff --git a/codegen.ts b/codegen.ts index 9b193a3228..47f6985cad 100644 --- a/codegen.ts +++ b/codegen.ts @@ -27,7 +27,8 @@ const config: CodegenConfig = { mappers: { ActionItem: "../models/ActionItem#InterfaceActionItem", - ActionItemCategory: "../models/ActionItemCategory#InterfaceActionItemCategory", + ActionItemCategory: + "../models/ActionItemCategory#InterfaceActionItemCategory", CheckIn: "../models/CheckIn#InterfaceCheckIn", diff --git a/locales/en.json b/locales/en.json index d977539b13..69060fe459 100644 --- a/locales/en.json +++ b/locales/en.json @@ -4,7 +4,8 @@ "user.notFound": "User not found", "user.alreadyMember": "User is already a member", "user.profileImage.notFound": "User profile image not found", - "actionItemCategory.notFound": "ActionItemCategory not found", + "actionItemCategory.notFound": "Action Item Category not found", + "actionItemCategory.alreadyExists": "Action Item Category already exists", "actionItem.notFound": "Action Item not found", "advertisement.notFound": "Advertisement not found", "event.notFound": "Event not found", diff --git a/locales/fr.json b/locales/fr.json index 61e52816a1..d3fafdc5cb 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -4,7 +4,8 @@ "user.notFound": "Utilisateur introuvable", "user.alreadyMember": "L'utilisateur est déjà membre", "user.profileImage.notFound": "Image du profil utilisateur introuvable", - "actionItemCategory.notFound": "Catégorie non trouvée", + "actionItemCategory.notFound": "Catégorie d’élément d’action introuvable", + "actionItemCategory.alreadyExists": "La catégorie d’élément d’action existe déjà", "actionItem.notFound": "Élément d\\’action non trouvé", "event.notFound": "Événement non trouvé", "organization.notFound": "Organisation introuvable", diff --git a/locales/hi.json b/locales/hi.json index 79c9071e0b..959f97b093 100644 --- a/locales/hi.json +++ b/locales/hi.json @@ -5,6 +5,7 @@ "user.alreadyMember": "उपयोगकर्ता पहले से ही एक सदस्य है", "user.profileImage.notFound": "उपयोगकर्ता प्रोफ़ाइल छवि नहीं मिली", "actionItemCategory.notFound": "श्रेणी नहीं मिली", + "actionItemCategory.alreadyExists": "यह श्रेणी पहले से मौजूद है", "actionItem.notFound": "कार्रवाई का मद नहीं मिला", "advertisement.notFound": "विज्ञापन नहीं मिला", "event.notFound": "घटना नहीं मिली", diff --git a/locales/sp.json b/locales/sp.json index 4923eab91a..cfee07ce87 100644 --- a/locales/sp.json +++ b/locales/sp.json @@ -4,7 +4,8 @@ "user.notFound": "Usuario no encontrado", "user.alreadyMember": "El usuario ya es miembro", "user.profileImage.notFound": "No se encontró la imagen de perfil de usuario", - "actionItemCategory.notFound": "Categoría no encontrada", + "actionItemCategory.notFound": "No se encontró la categoría de elemento de acción", + "actionItemCategory.alreadyExists": "Ya existe una categoría de elemento de acción", "actionItem.notFound": "Elemento de acción no encontrado", "event.notFound": "Evento no encontrado", "organization.notFound": "Organización no encontrada", diff --git a/locales/zh.json b/locales/zh.json index cef354813a..5ef0656cb6 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -4,7 +4,8 @@ "user.notFound": "找不到用戶", "user.alreadyMember": "用戶已經是會員", "user.profileImage.notFound": "未找到用戶個人資料圖像", - "actionItemCategory.notFound": "找不到类别", + "actionItemCategory.notFound": "未找到措施项类别", + "actionItemCategory.alreadyExists": "措施项类别已存在", "actionItem.notFound": "找不到操作项", "event.notFound": "未找到事件", "organization.notFound": "未找到組織", diff --git a/src/constants.ts b/src/constants.ts index e026f25991..22ef758fb3 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -21,6 +21,13 @@ export const ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR = { PARAM: "actionItemCategory", }; +export const ACTION_ITEM_CATEGORY_ALREADY_EXISTS = { + DESC: "Action Item Category already exists", + CODE: "actionItemCategory.alreadyExists", + MESSAGE: "actionItemCategory.alreadyExists", + PARAM: "actionItemCategory", +}; + export const CHAT_NOT_FOUND_ERROR = { DESC: "Chat not found", CODE: "chat.notFound", diff --git a/src/models/ActionItemCategory.ts b/src/models/ActionItemCategory.ts index 1d2e32c165..4110dfa88c 100644 --- a/src/models/ActionItemCategory.ts +++ b/src/models/ActionItemCategory.ts @@ -52,10 +52,17 @@ const actionItemCategorySchema = new Schema( { timestamps: true } ); +actionItemCategorySchema.index( + { organizationId: 1, name: 1 }, + { unique: true } +); + const actionItemCategoryModel = (): Model => - model("ActionItemCategory", actionItemCategorySchema); + model( + "ActionItemCategory", + actionItemCategorySchema + ); // This syntax is needed to prevent Mongoose OverwriteModelError while running tests. -export const ActionItemCategory = (models.ActionItemCategory || actionItemCategoryModel()) as ReturnType< - typeof actionItemCategoryModel ->; +export const ActionItemCategory = (models.ActionItemCategory || + actionItemCategoryModel()) as ReturnType; diff --git a/src/resolvers/ActionItem/actionItemCategory.ts b/src/resolvers/ActionItem/actionItemCategory.ts index e9e3c5e293..146d836017 100644 --- a/src/resolvers/ActionItem/actionItemCategory.ts +++ b/src/resolvers/ActionItem/actionItemCategory.ts @@ -1,8 +1,9 @@ import type { ActionItemResolvers } from "../../types/generatedGraphQLTypes"; import { ActionItemCategory } from "../../models"; -export const actionItemCategory: ActionItemResolvers["actionItemCategory"] = async (parent) => { - return ActionItemCategory.findOne({ - _id: parent.actionItemCategoryId, - }).lean(); -}; +export const actionItemCategory: ActionItemResolvers["actionItemCategory"] = + async (parent) => { + return ActionItemCategory.findOne({ + _id: parent.actionItemCategoryId, + }).lean(); + }; diff --git a/src/resolvers/ActionItemCategory/creator.ts b/src/resolvers/ActionItemCategory/creator.ts index 4e39055a8f..b9d355ed0a 100644 --- a/src/resolvers/ActionItemCategory/creator.ts +++ b/src/resolvers/ActionItemCategory/creator.ts @@ -1,7 +1,9 @@ import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; import { User } from "../../models"; -export const creator: ActionItemCategoryResolvers["creator"] = async (parent) => { +export const creator: ActionItemCategoryResolvers["creator"] = async ( + parent +) => { return User.findOne({ _id: parent.creatorId, }).lean(); diff --git a/src/resolvers/ActionItemCategory/organization.ts b/src/resolvers/ActionItemCategory/organization.ts index 0ba8db4aeb..98fcb42897 100644 --- a/src/resolvers/ActionItemCategory/organization.ts +++ b/src/resolvers/ActionItemCategory/organization.ts @@ -1,7 +1,9 @@ import type { ActionItemCategoryResolvers } from "../../types/generatedGraphQLTypes"; import { Organization } from "../../models"; -export const organization: ActionItemCategoryResolvers["organization"] = async (parent) => { +export const organization: ActionItemCategoryResolvers["organization"] = async ( + parent +) => { return Organization.findOne({ _id: parent.organizationId, }).lean(); diff --git a/src/resolvers/Event/actionItems.ts b/src/resolvers/Event/actionItems.ts index f1c83a7d1d..0fcc7b29fb 100644 --- a/src/resolvers/Event/actionItems.ts +++ b/src/resolvers/Event/actionItems.ts @@ -7,6 +7,6 @@ import type { EventResolvers } from "../../types/generatedGraphQLTypes"; */ export const actionItems: EventResolvers["actionItems"] = async (parent) => { return await ActionItem.find({ - eventId: parent._id + eventId: parent._id, }).lean(); }; diff --git a/src/resolvers/Mutation/createActionItemCategory.ts b/src/resolvers/Mutation/createActionItemCategory.ts index 74b601fb5d..62182ff432 100644 --- a/src/resolvers/Mutation/createActionItemCategory.ts +++ b/src/resolvers/Mutation/createActionItemCategory.ts @@ -4,6 +4,7 @@ import { errors, requestContext } from "../../libraries"; import { USER_NOT_FOUND_ERROR, ORGANIZATION_NOT_FOUND_ERROR, + ACTION_ITEM_CATEGORY_ALREADY_EXISTS, } from "../../constants"; import { adminCheck } from "../../utilities"; @@ -22,57 +23,72 @@ import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrgani * @returns Created ActionItemCategory */ -export const createActionItemCategory: MutationResolvers["createActionItemCategory"] = async ( - _parent, - args, - context -) => { - const currentUser = await User.findOne({ - _id: context.userId, - }); - - // Checks whether currentUser with _id == context.userId exists. - if (currentUser === null) { - throw new errors.NotFoundError( - requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), - USER_NOT_FOUND_ERROR.CODE, - USER_NOT_FOUND_ERROR.PARAM - ); - } - - let organization; - - const organizationFoundInCache = await findOrganizationsInCache([args.organizationId]); - - organization = organizationFoundInCache[0]; - - if (organizationFoundInCache[0] == null) { - organization = await Organization.findOne({ - _id: args.organizationId, - }).lean(); - - await cacheOrganizations([organization!]); - } - - // Checks whether the organization with _id === args.organizationId exists. - if (!organization) { - throw new errors.NotFoundError( - requestContext.translate(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE), - ORGANIZATION_NOT_FOUND_ERROR.CODE, - ORGANIZATION_NOT_FOUND_ERROR.PARAM - ); - } - - // Checks whether the user is authorized to perform the operation - await adminCheck(context.userId, organization); - - // Creates new actionItemCategory. - const createdActionItemCategory = await ActionItemCategory.create({ - name: args.name, - organizationId: args.organizationId, - creatorId: context.userId, - }); - - // Returns created actionItemCategory. - return createdActionItemCategory.toObject(); -}; +export const createActionItemCategory: MutationResolvers["createActionItemCategory"] = + async (_parent, args, context) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); + + // Checks whether currentUser with _id == context.userId exists. + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } + + let organization; + + const organizationFoundInCache = await findOrganizationsInCache([ + args.organizationId, + ]); + + organization = organizationFoundInCache[0]; + + if (organizationFoundInCache[0] == null) { + organization = await Organization.findOne({ + _id: args.organizationId, + }).lean(); + + await cacheOrganizations([organization!]); + } + + // Checks whether + + // Checks whether the organization with _id === args.organizationId exists. + if (!organization) { + throw new errors.NotFoundError( + requestContext.translate(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE), + ORGANIZATION_NOT_FOUND_ERROR.CODE, + ORGANIZATION_NOT_FOUND_ERROR.PARAM + ); + } + + // Checks whether the user is authorized to perform the operation + await adminCheck(context.userId, organization); + + // Checks whether an actionItemCategory with given name already exists for the current organization + const existingActionItemCategory = await ActionItemCategory.findOne({ + organizationId: organization?._id, + name: args.name, + }); + + if (existingActionItemCategory) { + throw new errors.ConflictError( + requestContext.translate(ACTION_ITEM_CATEGORY_ALREADY_EXISTS.MESSAGE), + ACTION_ITEM_CATEGORY_ALREADY_EXISTS.CODE, + ACTION_ITEM_CATEGORY_ALREADY_EXISTS.PARAM + ); + } + + // Creates new actionItemCategory. + const createdActionItemCategory = await ActionItemCategory.create({ + name: args.name, + organizationId: args.organizationId, + creatorId: context.userId, + }); + + // Returns created actionItemCategory. + return createdActionItemCategory.toObject(); + }; diff --git a/src/resolvers/Mutation/index.ts b/src/resolvers/Mutation/index.ts index 823a70fe8f..68e6c4c916 100644 --- a/src/resolvers/Mutation/index.ts +++ b/src/resolvers/Mutation/index.ts @@ -31,7 +31,7 @@ import { createPlugin } from "./createPlugin"; import { createAdvertisement } from "./createAdvertisement"; import { createPost } from "./createPost"; import { createSampleOrganization } from "./createSampleOrganization"; -import { createCategory } from "./createActionItemCategory"; +import { createActionItemCategory } from "./createActionItemCategory"; import { createUserTag } from "./createUserTag"; import { deleteDonationById } from "./deleteDonationById"; import { forgotPassword } from "./forgotPassword"; @@ -78,7 +78,7 @@ import { unlikeComment } from "./unlikeComment"; import { unlikePost } from "./unlikePost"; import { unregisterForEventByUser } from "./unregisterForEventByUser"; import { updateActionItem } from "./updateActionItem"; -import { updateCategory } from "./updateActionItemCategory"; +import { updateActionItemCategory } from "./updateActionItemCategory"; import { updateEvent } from "./updateEvent"; import { updateLanguage } from "./updateLanguage"; import { updateOrganization } from "./updateOrganization"; @@ -124,7 +124,7 @@ export const Mutation: MutationResolvers = { createPlugin, createPost, createSampleOrganization, - createCategory, + createActionItemCategory, createUserTag, deleteDonationById, deleteAdvertisementById, @@ -172,7 +172,7 @@ export const Mutation: MutationResolvers = { unlikePost, unregisterForEventByUser, updateActionItem, - updateCategory, + updateActionItemCategory, updateEvent, updateLanguage, updateOrganization, diff --git a/src/resolvers/Mutation/removeActionItem.ts b/src/resolvers/Mutation/removeActionItem.ts index 06eecc943a..ae1c023213 100644 --- a/src/resolvers/Mutation/removeActionItem.ts +++ b/src/resolvers/Mutation/removeActionItem.ts @@ -59,7 +59,9 @@ export const removeActionItem: MutationResolvers["removeActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => ogranizationId === actionItem.actionItemCategoryId.organizationId || - Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.organizationId) + Types.ObjectId(ogranizationId).equals( + actionItem.actionItemCategoryId.organizationId + ) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/removeOrganization.ts b/src/resolvers/Mutation/removeOrganization.ts index 38cffbcada..5396eaaef8 100644 --- a/src/resolvers/Mutation/removeOrganization.ts +++ b/src/resolvers/Mutation/removeOrganization.ts @@ -128,11 +128,17 @@ export const removeOrganization: MutationResolvers["removeOrganization"] = ); // Get the ids of all ActionItemCategories associated with the organization - const actionItemCategories = await ActionItemCategory.find({ organizationId: organization?._id }); - const actionItemCategoriesIds = actionItemCategories.map(category => category._id); + const actionItemCategories = await ActionItemCategory.find({ + organizationId: organization?._id, + }); + const actionItemCategoriesIds = actionItemCategories.map( + (category) => category._id + ); // Remove all ActionItemCategory documents whose id is in the actionItemCategories array - await ActionItemCategory.deleteMany({ _id: { $in: actionItemCategoriesIds } }); + await ActionItemCategory.deleteMany({ + _id: { $in: actionItemCategoriesIds }, + }); // Remove all ActionItem documents whose actionItemCategory is in the actionItemCategories array await ActionItem.deleteMany({ diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index 9aadef364d..c0fadbe810 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -110,7 +110,9 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( const currentUserIsOrgAdmin = currentUser.adminFor.some( (ogranizationId) => ogranizationId === actionItem.actionItemCategoryId.organizationId || - Types.ObjectId(ogranizationId).equals(actionItem.actionItemCategoryId.organizationId) + Types.ObjectId(ogranizationId).equals( + actionItem.actionItemCategoryId.organizationId + ) ); let currentUserIsEventAdmin = false; diff --git a/src/resolvers/Mutation/updateActionItemCategory.ts b/src/resolvers/Mutation/updateActionItemCategory.ts index 0767fd3b2c..d2deaf31f8 100644 --- a/src/resolvers/Mutation/updateActionItemCategory.ts +++ b/src/resolvers/Mutation/updateActionItemCategory.ts @@ -23,52 +23,49 @@ type UpdateActionItemCategoryInputType = { isDisabled: boolean; }; -export const updateActionItemCategory: MutationResolvers["updateActionItemCategory"] = async ( - _parent, - args, - context -) => { - const currentUser = await User.findOne({ - _id: context.userId, - }); +export const updateActionItemCategory: MutationResolvers["updateActionItemCategory"] = + async (_parent, args, context) => { + const currentUser = await User.findOne({ + _id: context.userId, + }); - // Checks if the user exists - if (currentUser === null) { - throw new errors.NotFoundError( - requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), - USER_NOT_FOUND_ERROR.CODE, - USER_NOT_FOUND_ERROR.PARAM - ); - } + // Checks if the user exists + if (currentUser === null) { + throw new errors.NotFoundError( + requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE), + USER_NOT_FOUND_ERROR.CODE, + USER_NOT_FOUND_ERROR.PARAM + ); + } - const actionItemCategory = await ActionItemCategory.findOne({ - _id: args.id, - }) - .populate("organizationId") - .lean(); + const actionItemCategory = await ActionItemCategory.findOne({ + _id: args.id, + }) + .populate("organizationId") + .lean(); - // Checks if the actionItemCategory exists - if (!actionItemCategory) { - throw new errors.NotFoundError( - requestContext.translate(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE), - ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.CODE, - ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.PARAM - ); - } + // Checks if the actionItemCategory exists + if (!actionItemCategory) { + throw new errors.NotFoundError( + requestContext.translate(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE), + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.CODE, + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.PARAM + ); + } - await adminCheck(context.userId, actionItemCategory.organizationId); + await adminCheck(context.userId, actionItemCategory.organizationId); - const updatedCategory = await ActionItemCategory.findOneAndUpdate( - { - _id: args.id, - }, - { - ...(args.data as UpdateActionItemCategoryInputType), - }, - { - new: true, - } - ).lean(); + const updatedCategory = await ActionItemCategory.findOneAndUpdate( + { + _id: args.id, + }, + { + ...(args.data as UpdateActionItemCategoryInputType), + }, + { + new: true, + } + ).lean(); - return updatedCategory; -}; + return updatedCategory; + }; diff --git a/src/resolvers/Organization/actionItemCategories.ts b/src/resolvers/Organization/actionItemCategories.ts index e958d304b6..37dbe69f26 100644 --- a/src/resolvers/Organization/actionItemCategories.ts +++ b/src/resolvers/Organization/actionItemCategories.ts @@ -8,6 +8,6 @@ import type { OrganizationResolvers } from "../../types/generatedGraphQLTypes"; export const actionItemCategories: OrganizationResolvers["actionItemCategories"] = async (parent) => { return await ActionItemCategory.find({ - organizationId: parent._id + organizationId: parent._id, }).lean(); }; diff --git a/src/resolvers/Query/actionItemCategory.ts b/src/resolvers/Query/actionItemCategory.ts index 8219851357..e0cfb1232e 100644 --- a/src/resolvers/Query/actionItemCategory.ts +++ b/src/resolvers/Query/actionItemCategory.ts @@ -10,7 +10,10 @@ import { ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR } from "../../constants"; * @remarks You can learn about GraphQL `Resolvers` * {@link https://www.apollographql.com/docs/apollo-server/data/resolvers/ | here}. */ -export const actionItemCategory: QueryResolvers["actionItemCategory"] = async (_parent, args) => { +export const actionItemCategory: QueryResolvers["actionItemCategory"] = async ( + _parent, + args +) => { const actionItemCategory = await ActionItemCategory.findOne({ _id: args.id, }).lean(); diff --git a/src/typeDefs/mutations.ts b/src/typeDefs/mutations.ts index c775defa78..0b3be5e4c8 100644 --- a/src/typeDefs/mutations.ts +++ b/src/typeDefs/mutations.ts @@ -61,7 +61,10 @@ export const mutations = gql` actionItemCategoryId: ID! ): ActionItem! @auth - createActionItemCategory(name: String!, organizationId: ID!): ActionItemCategory! @auth + createActionItemCategory( + name: String! + organizationId: ID! + ): ActionItemCategory! @auth createComment(postId: ID!, data: CommentInput!): Comment @auth @@ -211,7 +214,10 @@ export const mutations = gql` updateActionItem(id: ID!, data: UpdateActionItemInput!): ActionItem @auth - updateActionItemCategory(id: ID!, data: UpdateActionItemCategoryInput!): ActionItemCategory @auth + updateActionItemCategory( + id: ID! + data: UpdateActionItemCategoryInput! + ): ActionItemCategory @auth updateAdvertisement( input: UpdateAdvertisementInput! diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index cef093bc6f..7706e82a13 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -13,7 +13,9 @@ export const queries = gql` actionItemCategory(id: ID!): ActionItemCategory - actionItemCategoriesByOrganization(organizationId: ID!): [ActionItemCategory] + actionItemCategoriesByOrganization( + organizationId: ID! + ): [ActionItemCategory] checkAuth: User! @auth diff --git a/src/typeDefs/types.ts b/src/typeDefs/types.ts index 833009849f..622b2e4cd9 100644 --- a/src/typeDefs/types.ts +++ b/src/typeDefs/types.ts @@ -158,15 +158,15 @@ export const types = gql` longitude: Longitude organization: Organization creator: User - attendees: [User!] - # For each attendee, gives information about whether he/she has checked in yet or not - attendeesCheckInStatus: [CheckInStatus!] - admins(adminId: ID): [User!] - actionItems: [ActionItem] createdAt: DateTime! updatedAt: DateTime! + attendees: [User] + # For each attendee, gives information about whether he/she has checked in yet or not + attendeesCheckInStatus: [CheckInStatus!]! + actionItems: [ActionItem] + admins(adminId: ID): [User!] status: Status! - feedback: [Feedback!] + feedback: [Feedback!]! averageFeedbackScore: Float } @@ -256,11 +256,11 @@ export const types = gql` description: String! location: String creator: User - members: [User!] - admins(adminId: ID): [User!] - actionItemCategories: [ActionItemCategory!] createdAt: DateTime! updatedAt: DateTime! + members: [User] + actionItemCategories: [ActionItemCategory] + admins(adminId: ID): [User!] membershipRequests: [MembershipRequest] userRegistrationRequired: Boolean! visibleInSearch: Boolean! @@ -273,7 +273,7 @@ export const types = gql` first: PositiveInt last: PositiveInt ): UserTagsConnection - customFields: [OrganizationCustomField!] + customFields: [OrganizationCustomField!]! } type OrganizationCustomField { diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index f9c0c725c9..9002a9cbd3 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -305,15 +305,15 @@ export type Event = { actionItems?: Maybe>>; admins?: Maybe>; allDay: Scalars['Boolean']['output']; - attendees?: Maybe>; - attendeesCheckInStatus?: Maybe>; + attendees?: Maybe>>; + attendeesCheckInStatus: Array; averageFeedbackScore?: Maybe; createdAt: Scalars['DateTime']['output']; creator?: Maybe; description: Scalars['String']['output']; endDate: Scalars['Date']['output']; endTime?: Maybe; - feedback?: Maybe>; + feedback: Array; isPublic: Scalars['Boolean']['output']; isRegisterable: Scalars['Boolean']['output']; latitude?: Maybe; @@ -1154,17 +1154,17 @@ export type OtpInput = { export type Organization = { __typename?: 'Organization'; _id: Scalars['ID']['output']; - actionItemCategories?: Maybe>; + actionItemCategories?: Maybe>>; admins?: Maybe>; apiUrl: Scalars['URL']['output']; blockedUsers?: Maybe>>; createdAt: Scalars['DateTime']['output']; creator?: Maybe; - customFields?: Maybe>; + customFields: Array; description: Scalars['String']['output']; image?: Maybe; location?: Maybe; - members?: Maybe>; + members?: Maybe>>; membershipRequests?: Maybe>>; name: Scalars['String']['output']; pinnedPosts?: Maybe>>; @@ -2507,15 +2507,15 @@ export type EventResolvers>>, ParentType, ContextType>; admins?: Resolver>, ParentType, ContextType, Partial>; allDay?: Resolver; - attendees?: Resolver>, ParentType, ContextType>; - attendeesCheckInStatus?: Resolver>, ParentType, ContextType>; + attendees?: Resolver>>, ParentType, ContextType>; + attendeesCheckInStatus?: Resolver, ParentType, ContextType>; averageFeedbackScore?: Resolver, ParentType, ContextType>; createdAt?: Resolver; creator?: Resolver, ParentType, ContextType>; description?: Resolver; endDate?: Resolver; endTime?: Resolver, ParentType, ContextType>; - feedback?: Resolver>, ParentType, ContextType>; + feedback?: Resolver, ParentType, ContextType>; isPublic?: Resolver; isRegisterable?: Resolver; latitude?: Resolver, ParentType, ContextType>; @@ -2772,17 +2772,17 @@ export type MutationResolvers = { _id?: Resolver; - actionItemCategories?: Resolver>, ParentType, ContextType>; + actionItemCategories?: Resolver>>, ParentType, ContextType>; admins?: Resolver>, ParentType, ContextType, Partial>; apiUrl?: Resolver; blockedUsers?: Resolver>>, ParentType, ContextType>; createdAt?: Resolver; creator?: Resolver, ParentType, ContextType>; - customFields?: Resolver>, ParentType, ContextType>; + customFields?: Resolver, ParentType, ContextType>; description?: Resolver; image?: Resolver, ParentType, ContextType>; location?: Resolver, ParentType, ContextType>; - members?: Resolver>, ParentType, ContextType>; + members?: Resolver>>, ParentType, ContextType>; membershipRequests?: Resolver>>, ParentType, ContextType>; name?: Resolver; pinnedPosts?: Resolver>>, ParentType, ContextType>; diff --git a/tests/resolvers/ActionItem/category.spec.ts b/tests/resolvers/ActionItem/category.spec.ts index 19edbc30d0..d034f89468 100644 --- a/tests/resolvers/ActionItem/category.spec.ts +++ b/tests/resolvers/ActionItem/category.spec.ts @@ -25,7 +25,11 @@ describe("resolvers -> ActionItem -> actionItemCategory", () => { it(`returns the actionItemCategory for parent action item`, async () => { const parent = testActionItem?.toObject(); - const actionItemCategoryPayload = await actionItemCategoryResolver?.(parent, {}, {}); + const actionItemCategoryPayload = await actionItemCategoryResolver?.( + parent, + {}, + {} + ); const actionItemCategoryObject = await ActionItemCategory.findOne({ _id: testCategory?._id, diff --git a/tests/resolvers/Event/actionItems.spec.ts b/tests/resolvers/Event/actionItems.spec.ts index a084779776..a984e00f05 100644 --- a/tests/resolvers/Event/actionItems.spec.ts +++ b/tests/resolvers/Event/actionItems.spec.ts @@ -23,11 +23,7 @@ describe("resolvers -> Organization -> actionItems", () => { it(`returns all actionItems for parent Event`, async () => { const parent = testEvent?.toObject(); if (parent) { - const actionItemsPayload = await actionItemsResolver?.( - parent, - {}, - {} - ); + const actionItemsPayload = await actionItemsResolver?.(parent, {}, {}); const actionItems = await ActionItem.find({ eventId: testEvent?._id, diff --git a/tests/resolvers/Mutation/createActionItem.spec.ts b/tests/resolvers/Mutation/createActionItem.spec.ts index 779102e31d..c2b0ec22fc 100644 --- a/tests/resolvers/Mutation/createActionItem.spec.ts +++ b/tests/resolvers/Mutation/createActionItem.spec.ts @@ -110,7 +110,9 @@ describe("resolvers -> Mutation -> createActionItem", () => { await createActionItemResolver?.({}, args, context); } catch (error: any) { - expect(error.message).toEqual(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE); + expect(error.message).toEqual( + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE + ); } }); diff --git a/tests/resolvers/Mutation/createActionItemCategory.spec.ts b/tests/resolvers/Mutation/createActionItemCategory.spec.ts index 68f4b9a6bd..f796341472 100644 --- a/tests/resolvers/Mutation/createActionItemCategory.spec.ts +++ b/tests/resolvers/Mutation/createActionItemCategory.spec.ts @@ -8,6 +8,7 @@ import { ORGANIZATION_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_ADMIN, + ACTION_ITEM_CATEGORY_ALREADY_EXISTS, } from "../../../src/constants"; import { beforeAll, afterAll, describe, it, expect, vi } from "vitest"; import { @@ -133,7 +134,7 @@ describe("resolvers -> Mutation -> createCategory", () => { const args: MutationCreateActionItemCategoryArgs = { organizationId: testOrganization?._id, - name: "Default", + name: "Default2", }; const context = { @@ -149,8 +150,27 @@ describe("resolvers -> Mutation -> createCategory", () => { expect(createCategoryPayload).toEqual( expect.objectContaining({ organizationId: testOrganization?._id, - name: "Default", + name: "Default2", }) ); }); + + it(`throws ConflictError when the actionItemCategory with given name already exists for the current organization`, async () => { + try { + const args: MutationCreateActionItemCategoryArgs = { + organizationId: testOrganization?._id, + name: "Default2", + }; + + const context = { + userId: randomUser?._id, + }; + + await createActionItemCategoryResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual( + ACTION_ITEM_CATEGORY_ALREADY_EXISTS.MESSAGE + ); + } + }); }); diff --git a/tests/resolvers/Mutation/updateActionItemCategory.spec.ts b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts index 2ac8dd200c..e2718e69cc 100644 --- a/tests/resolvers/Mutation/updateActionItemCategory.spec.ts +++ b/tests/resolvers/Mutation/updateActionItemCategory.spec.ts @@ -79,7 +79,9 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { await updateActionItemCategoryResolver?.({}, args, context); } catch (error: any) { - expect(error.message).toEqual(ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE); + expect(error.message).toEqual( + ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR.MESSAGE + ); } }); @@ -116,7 +118,11 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { userId: testUser?._id, }; - const updatedCategory = await updateActionItemCategoryResolver?.({}, args, context); + const updatedCategory = await updateActionItemCategoryResolver?.( + {}, + args, + context + ); expect(updatedCategory).toEqual( expect.objectContaining({ @@ -152,7 +158,11 @@ describe("resolvers -> Mutation -> updateActionItemCategoryResolver", () => { userId: superAdminTestUser?._id, }; - const updatedCategory = await updateActionItemCategoryResolver?.({}, args, context); + const updatedCategory = await updateActionItemCategoryResolver?.( + {}, + args, + context + ); expect(updatedCategory).toEqual( expect.objectContaining({ diff --git a/tests/resolvers/Query/actionItemCategory.spec.ts b/tests/resolvers/Query/actionItemCategory.spec.ts index bd7f736778..dbccdfd506 100644 --- a/tests/resolvers/Query/actionItemCategory.spec.ts +++ b/tests/resolvers/Query/actionItemCategory.spec.ts @@ -40,7 +40,11 @@ describe("resolvers -> Query -> actionItemCategory", () => { id: testCategory?._id, }; - const actionItemCategoryPayload = await actionItemCategoryResolver?.({}, args, {}); + const actionItemCategoryPayload = await actionItemCategoryResolver?.( + {}, + args, + {} + ); expect(actionItemCategoryPayload).toEqual( expect.objectContaining({ From 7455a81293842d2d608ed517f788dbf35971d4e5 Mon Sep 17 00:00:00 2001 From: meetul Date: Mon, 22 Jan 2024 20:15:58 +0530 Subject: [PATCH 22/28] minor correction --- src/resolvers/Mutation/createActionItemCategory.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resolvers/Mutation/createActionItemCategory.ts b/src/resolvers/Mutation/createActionItemCategory.ts index 62182ff432..2df722f91a 100644 --- a/src/resolvers/Mutation/createActionItemCategory.ts +++ b/src/resolvers/Mutation/createActionItemCategory.ts @@ -20,6 +20,7 @@ import { cacheOrganizations } from "../../services/OrganizationCache/cacheOrgani * 1. If the User exists * 2. If the Organization exists * 3. Is the User is Authorized + * 4. If the action item category already exists * @returns Created ActionItemCategory */ @@ -54,8 +55,6 @@ export const createActionItemCategory: MutationResolvers["createActionItemCatego await cacheOrganizations([organization!]); } - // Checks whether - // Checks whether the organization with _id === args.organizationId exists. if (!organization) { throw new errors.NotFoundError( From e3619b3f5e2e5d4afcfdcd5573d85fe706ba591f Mon Sep 17 00:00:00 2001 From: meetul Date: Fri, 26 Jan 2024 14:08:06 +0530 Subject: [PATCH 23/28] update Action Item inputs --- src/resolvers/Mutation/createActionItem.ts | 2 -- src/resolvers/Mutation/updateActionItem.ts | 5 +++-- src/typeDefs/inputs.ts | 5 +---- src/types/generatedGraphQLTypes.ts | 5 +---- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/resolvers/Mutation/createActionItem.ts b/src/resolvers/Mutation/createActionItem.ts index b207858448..c2ec83ff93 100644 --- a/src/resolvers/Mutation/createActionItem.ts +++ b/src/resolvers/Mutation/createActionItem.ts @@ -150,9 +150,7 @@ export const createActionItem: MutationResolvers["createActionItem"] = async ( assignerId: context.userId, actionItemCategoryId: args.actionItemCategoryId, preCompletionNotes: args.data.preCompletionNotes, - postCompletionNotes: args.data.postCompletionNotes, dueDate: args.data.dueDate, - completionDate: args.data.completionDate, eventId: args.data.eventId, creatorId: context.userId, }); diff --git a/src/resolvers/Mutation/updateActionItem.ts b/src/resolvers/Mutation/updateActionItem.ts index c0fadbe810..7a17387f2b 100644 --- a/src/resolvers/Mutation/updateActionItem.ts +++ b/src/resolvers/Mutation/updateActionItem.ts @@ -31,6 +31,7 @@ type UpdateActionItemInputType = { preCompletionNotes: string; postCompletionNotes: string; dueDate: Date; + completionDate: Date; isCompleted: boolean; }; @@ -167,7 +168,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( ? actionItem.assignmentDate : new Date(); - const updatedAssignedBy = sameAssignedUser + const updatedAssigner = sameAssignedUser ? actionItem.assignerId : context.userId; @@ -178,7 +179,7 @@ export const updateActionItem: MutationResolvers["updateActionItem"] = async ( { ...(args.data as UpdateActionItemInputType), assignmentDate: updatedAssignmentDate, - assignerId: updatedAssignedBy, + assignerId: updatedAssigner, }, { new: true, diff --git a/src/typeDefs/inputs.ts b/src/typeDefs/inputs.ts index 5deb34e469..85696679a5 100644 --- a/src/typeDefs/inputs.ts +++ b/src/typeDefs/inputs.ts @@ -38,11 +38,7 @@ export const inputs = gql` input CreateActionItemInput { assigneeId: ID! preCompletionNotes: String - postCompletionNotes: String - assignmentDate: Date dueDate: Date - completionDate: Date - isCompleted: Boolean eventId: ID } @@ -253,6 +249,7 @@ export const inputs = gql` preCompletionNotes: String postCompletionNotes: String dueDate: Date + completionDate: Date isCompleted: Boolean } diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index 9002a9cbd3..ab796076c0 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -196,12 +196,8 @@ export type ConnectionPageInfo = { export type CreateActionItemInput = { assigneeId: Scalars['ID']['input']; - assignmentDate?: InputMaybe; - completionDate?: InputMaybe; dueDate?: InputMaybe; eventId?: InputMaybe; - isCompleted?: InputMaybe; - postCompletionNotes?: InputMaybe; preCompletionNotes?: InputMaybe; }; @@ -1684,6 +1680,7 @@ export type UpdateActionItemCategoryInput = { export type UpdateActionItemInput = { assigneeId?: InputMaybe; + completionDate?: InputMaybe; dueDate?: InputMaybe; isCompleted?: InputMaybe; postCompletionNotes?: InputMaybe; From 5657fa002b50589ae97c5499ef6bb33cd1688c64 Mon Sep 17 00:00:00 2001 From: meetul Date: Sat, 27 Jan 2024 15:10:59 +0530 Subject: [PATCH 24/28] add actionItemsByOrganization query --- .../Query/actionItemsByOrganization.ts | 24 +++++++++ src/resolvers/Query/index.ts | 2 + src/typeDefs/queries.ts | 2 + src/types/generatedGraphQLTypes.ts | 7 +++ tests/helpers/actionItem.ts | 4 +- .../Query/actionItemsByOrganization.spec.ts | 49 +++++++++++++++++++ 6 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 src/resolvers/Query/actionItemsByOrganization.ts create mode 100644 tests/resolvers/Query/actionItemsByOrganization.spec.ts diff --git a/src/resolvers/Query/actionItemsByOrganization.ts b/src/resolvers/Query/actionItemsByOrganization.ts new file mode 100644 index 0000000000..4520f02af6 --- /dev/null +++ b/src/resolvers/Query/actionItemsByOrganization.ts @@ -0,0 +1,24 @@ +import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; +import { ActionItem, ActionItemCategory } from "../../models"; +/** + * This query will fetch all action items for an organization from database. + * @param _parent- + * @param args - An object that contains `organizationId` which is the _id of the Organization. + * @returns An `actionItems` object that holds all action items for the Event. + */ +export const actionItemsByOrganization: QueryResolvers["actionItemsByOrganization"] = + async (_parent, args) => { + // Get the ids of all ActionItemCategories associated with the organization + const actionItemCategories = await ActionItemCategory.find({ + organizationId: args.organizationId, + }); + const actionItemCategoriesIds = actionItemCategories.map( + (category) => category._id + ); + + const actionItems = await ActionItem.find({ + actionItemCategoryId: { $in: actionItemCategoriesIds }, + }).lean(); + + return actionItems; + }; diff --git a/src/resolvers/Query/index.ts b/src/resolvers/Query/index.ts index 4b93a446d3..69e92fe7ce 100644 --- a/src/resolvers/Query/index.ts +++ b/src/resolvers/Query/index.ts @@ -2,6 +2,7 @@ import type { QueryResolvers } from "../../types/generatedGraphQLTypes"; import { actionItem } from "./actionItem"; import { actionItemsByEvent } from "./actionItemsByEvent"; import { actionItemCategory } from "./actionItemCategory"; +import { actionItemsByOrganization } from "./actionItemsByOrganization"; import { actionItemCategoriesByOrganization } from "./actionItemCategoriesByOrganization"; import { checkAuth } from "./checkAuth"; import { customDataByOrganization } from "./customDataByOrganization"; @@ -36,6 +37,7 @@ export const Query: QueryResolvers = { actionItem, actionItemsByEvent, actionItemCategory, + actionItemsByOrganization, actionItemCategoriesByOrganization, checkAuth, customFieldsByOrganization, diff --git a/src/typeDefs/queries.ts b/src/typeDefs/queries.ts index 7706e82a13..975f839ad9 100644 --- a/src/typeDefs/queries.ts +++ b/src/typeDefs/queries.ts @@ -11,6 +11,8 @@ export const queries = gql` actionItemsByEvent(eventId: ID!): [ActionItem] + actionItemsByOrganization(organizationId: ID!): [ActionItem] + actionItemCategory(id: ID!): ActionItemCategory actionItemCategoriesByOrganization( diff --git a/src/types/generatedGraphQLTypes.ts b/src/types/generatedGraphQLTypes.ts index ab796076c0..6dd2eb623b 100644 --- a/src/types/generatedGraphQLTypes.ts +++ b/src/types/generatedGraphQLTypes.ts @@ -1397,6 +1397,7 @@ export type Query = { actionItemCategoriesByOrganization?: Maybe>>; actionItemCategory?: Maybe; actionItemsByEvent?: Maybe>>; + actionItemsByOrganization?: Maybe>>; adminPlugin?: Maybe>>; checkAuth: User; customDataByOrganization: Array; @@ -1453,6 +1454,11 @@ export type QueryActionItemsByEventArgs = { }; +export type QueryActionItemsByOrganizationArgs = { + organizationId: Scalars['ID']['input']; +}; + + export type QueryAdminPluginArgs = { orgId: Scalars['ID']['input']; }; @@ -2880,6 +2886,7 @@ export type QueryResolvers>>, ParentType, ContextType, RequireFields>; actionItemCategory?: Resolver, ParentType, ContextType, RequireFields>; actionItemsByEvent?: Resolver>>, ParentType, ContextType, RequireFields>; + actionItemsByOrganization?: Resolver>>, ParentType, ContextType, RequireFields>; adminPlugin?: Resolver>>, ParentType, ContextType, RequireFields>; checkAuth?: Resolver; customDataByOrganization?: Resolver, ParentType, ContextType, RequireFields>; diff --git a/tests/helpers/actionItem.ts b/tests/helpers/actionItem.ts index 90d44e69ae..1ebb112f69 100644 --- a/tests/helpers/actionItem.ts +++ b/tests/helpers/actionItem.ts @@ -64,7 +64,7 @@ export const createNewTestActionItem = async ({ }; export const createTestActionItems = async (): Promise< - [TestUserType, TestEventType] + [TestUserType, TestEventType, TestOrganizationType] > => { const randomUser = await createTestUser(); const [testUser, testOrganization, testCategory] = await createTestCategory(); @@ -115,5 +115,5 @@ export const createTestActionItems = async (): Promise< } ); - return [testUser, testEvent]; + return [testUser, testEvent, testOrganization]; }; diff --git a/tests/resolvers/Query/actionItemsByOrganization.spec.ts b/tests/resolvers/Query/actionItemsByOrganization.spec.ts new file mode 100644 index 0000000000..3c6c3326dc --- /dev/null +++ b/tests/resolvers/Query/actionItemsByOrganization.spec.ts @@ -0,0 +1,49 @@ +import "dotenv/config"; +import { ActionItem, ActionItemCategory } from "../../../src/models"; +import { connect, disconnect } from "../../helpers/db"; +import type { QueryActionItemsByOrganizationArgs } from "../../../src/types/generatedGraphQLTypes"; +import { actionItemsByOrganization as actionItemsByOrganizationResolver } from "../../../src/resolvers/Query/actionItemsByOrganization"; +import { beforeAll, afterAll, describe, it, expect } from "vitest"; +import type mongoose from "mongoose"; +import { createTestActionItems } from "../../helpers/actionItem"; +import type { TestEventType } from "../../helpers/events"; +import { TestOrganizationType } from "../../helpers/userAndOrg"; + +let MONGOOSE_INSTANCE: typeof mongoose; +let testEvent: TestEventType; +let testOrganization: TestOrganizationType; + +beforeAll(async () => { + MONGOOSE_INSTANCE = await connect(); + [, testEvent, testOrganization] = await createTestActionItems(); +}); + +afterAll(async () => { + await disconnect(MONGOOSE_INSTANCE); +}); + +describe("resolvers -> Query -> actionItemsByOrganization", () => { + it(`returns list of all action items associated with an organization`, async () => { + const args: QueryActionItemsByOrganizationArgs = { + organizationId: testOrganization?._id, + }; + + const actionItemsByOrganizationPayload = + await actionItemsByOrganizationResolver?.({}, args, {}); + + const actionItemCategories = await ActionItemCategory.find({ + organizationId: args.organizationId, + }); + const actionItemCategoriesIds = actionItemCategories.map( + (category) => category._id + ); + + const actionItemsByOrganizationInfo = await ActionItem.find({ + actionItemCategoryId: { $in: actionItemCategoriesIds }, + }).lean(); + + expect(actionItemsByOrganizationPayload).toEqual( + actionItemsByOrganizationInfo + ); + }); +}); From 0476a3525cc2da289a8e15b27434b4b1ff0af9cc Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 28 Jan 2024 13:23:51 +0530 Subject: [PATCH 25/28] add constant for milliseconds in a week --- src/constants.ts | 2 ++ src/models/ActionItem.ts | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 22ef758fb3..5ad9ce0c77 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -495,5 +495,7 @@ export const REDIS_HOST = process.env.REDIS_HOST!; export const REDIS_PORT = Number(process.env.REDIS_PORT); export const REDIS_PASSWORD = process.env.REDIS_PASSWORD; +export const MILLISECONDS_IN_A_WEEK = 7 * 24 * 60 * 60 * 1000; + export const key = process.env.ENCRYPTION_KEY as string; export const iv = crypto.randomBytes(16).toString("hex"); diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 923095a211..a02a3406ed 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -3,6 +3,7 @@ import { Schema, model, models } from "mongoose"; import type { InterfaceUser } from "./User"; import type { InterfaceEvent } from "./Event"; import type { InterfaceActionItemCategory } from "./ActionItemCategory"; +import { MILLISECONDS_IN_A_WEEK } from "../constants"; /** * This is an interface that represents a database(MongoDB) document for ActionItem. @@ -33,8 +34,8 @@ export interface InterfaceActionItem { * @param preCompletionNotes - Notes prior to completion. * @param postCompletionNotes - Notes on completion. * @param assignmentDate - Date of assignment. - * @param dueDate - Due date. - * @param completionDate - Completion date. + * @param dueDate - Due date (defaults to one week from creation). + * @param completionDate - Completion date (defaults to one week from creation). * @param isCompleted - Whether the ActionItem has been completed. * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. * @param creatorId - User who created the ActionItem, refer to the `User` model. @@ -73,12 +74,12 @@ const actionItemSchema = new Schema( dueDate: { type: Date, required: true, - default: Date.now() + 7 * 24 * 60 * 60 * 1000, + default: Date.now() + MILLISECONDS_IN_A_WEEK, }, completionDate: { type: Date, required: true, - default: Date.now() + 7 * 24 * 60 * 60 * 1000, + default: Date.now() + MILLISECONDS_IN_A_WEEK, }, isCompleted: { type: Boolean, From 76e698265dcf67e621da0fd0bf0ea28be054b9c1 Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 28 Jan 2024 13:52:53 +0530 Subject: [PATCH 26/28] restore unwanted changes --- src/resolvers/Mutation/createPost.ts | 15 + src/resolvers/Mutation/togglePostPin.ts | 24 + src/resolvers/Mutation/updatePost.ts | 15 + ...rrors_applicationError.ApplicationError.md | 6 +- ...ries_errors_conflictError.ConflictError.md | 6 +- ...putValidationError.InputValidationError.md | 6 +- ...internalServerError.InternalServerError.md | 6 +- ...validFileTypeError.InvalidFileTypeError.md | 6 +- ...ries_errors_notFoundError.NotFoundError.md | 6 +- ...authenticatedError.UnauthenticatedError.md | 6 +- ...ors_unauthorizedError.UnauthorizedError.md | 6 +- ..._errors_validationError.ValidationError.md | 6 +- .../enums/constants.TransactionLogTypes.md | 6 +- ...ries_dbLogger.InterfaceLoggableDocument.md | 2 +- ...braries_dbLogger.InterfaceLoggableQuery.md | 2 +- ..._errors_applicationError.InterfaceError.md | 8 +- .../middleware_isAuth.InterfaceAuthData.md | 6 +- ...ls_Advertisement.InterfaceAdvertisement.md | 20 +- .../models_CheckIn.InterfaceCheckIn.md | 16 +- .../models_Comment.InterfaceComment.md | 18 +- .../models_DirectChat.InterfaceDirectChat.md | 16 +- ...tChatMessage.InterfaceDirectChatMessage.md | 16 +- .../models_Donation.InterfaceDonation.md | 16 +- ...dels_EncodedImage.InterfaceEncodedImage.md | 8 +- ...dels_EncodedVideo.InterfaceEncodedVideo.md | 8 +- .../interfaces/models_Event.InterfaceEvent.md | 44 +- ...ls_EventAttendee.InterfaceEventAttendee.md | 8 +- .../models_Feedback.InterfaceFeedback.md | 12 +- .../interfaces/models_File.InterfaceFile.md | 18 +- .../interfaces/models_Group.InterfaceGroup.md | 16 +- .../models_GroupChat.InterfaceGroupChat.md | 18 +- ...upChatMessage.InterfaceGroupChatMessage.md | 14 +- .../models_ImageHash.InterfaceImageHash.md | 10 +- .../models_Language.InterfaceLanguage.md | 8 +- .../models_Language.InterfaceLanguageModel.md | 8 +- ...rshipRequest.InterfaceMembershipRequest.md | 8 +- .../models_Message.InterfaceMessage.md | 18 +- ...models_MessageChat.InterfaceMessageChat.md | 14 +- ...dels_Organization.InterfaceOrganization.md | 40 +- ...mField.InterfaceOrganizationCustomField.md | 8 +- ...ionTagUser.InterfaceOrganizationTagUser.md | 8 +- .../models_Plugin.InterfacePlugin.md | 10 +- ...models_PluginField.InterfacePluginField.md | 10 +- .../interfaces/models_Post.InterfacePost.md | 28 +- .../models_SampleData.InterfaceSampleData.md | 4 +- .../models_TagUser.InterfaceTagUser.md | 6 +- .../interfaces/models_User.InterfaceUser.md | 60 +- ..._UserCustomData.InterfaceUserCustomData.md | 8 +- ...s_generatedGraphQLTypes.AnyScalarConfig.md | 2 +- ...tedGraphQLTypes.CountryCodeScalarConfig.md | 2 +- ..._generatedGraphQLTypes.DateScalarConfig.md | 2 +- ...eratedGraphQLTypes.DateTimeScalarConfig.md | 2 +- ...edGraphQLTypes.EmailAddressScalarConfig.md | 2 +- ..._generatedGraphQLTypes.JsonScalarConfig.md | 2 +- ...eratedGraphQLTypes.LatitudeScalarConfig.md | 2 +- ...ratedGraphQLTypes.LongitudeScalarConfig.md | 2 +- ...tedGraphQLTypes.PhoneNumberScalarConfig.md | 2 +- ...tedGraphQLTypes.PositiveIntScalarConfig.md | 2 +- ...GraphQLTypes.SubscriptionResolverObject.md | 4 +- ...aphQLTypes.SubscriptionSubscriberObject.md | 4 +- ..._generatedGraphQLTypes.TimeScalarConfig.md | 2 +- ...eneratedGraphQLTypes.UploadScalarConfig.md | 2 +- ...s_generatedGraphQLTypes.UrlScalarConfig.md | 2 +- ...utilities_auth.InterfaceJwtTokenPayload.md | 10 +- .../utilities_mailer.InterfaceMailFields.md | 6 +- talawa-api-docs/modules/app.md | 4 +- talawa-api-docs/modules/checks.md | 2 +- talawa-api-docs/modules/config_appConfig.md | 2 +- .../modules/config_plugins_loadPlugins.md | 2 +- talawa-api-docs/modules/constants.md | 218 +++--- talawa-api-docs/modules/db.md | 6 +- ...iveTransformer_authDirectiveTransformer.md | 2 +- ...iveTransformer_roleDirectiveTransformer.md | 2 +- talawa-api-docs/modules/env.md | 4 +- .../modules/helpers_eventInstances_once.md | 2 +- .../modules/helpers_eventInstances_weekly.md | 2 +- talawa-api-docs/modules/index.md | 2 +- talawa-api-docs/modules/libraries_dbLogger.md | 6 +- talawa-api-docs/modules/libraries_logger.md | 4 +- .../modules/libraries_requestContext.md | 16 +- .../modules/libraries_requestTracing.md | 12 +- .../libraries_validators_compareDates.md | 2 +- ...aries_validators_validatePaginationArgs.md | 2 +- .../libraries_validators_validateString.md | 2 +- talawa-api-docs/modules/middleware_isAuth.md | 2 +- .../modules/models_Advertisement.md | 2 +- talawa-api-docs/modules/models_CheckIn.md | 2 +- talawa-api-docs/modules/models_Comment.md | 2 +- talawa-api-docs/modules/models_DirectChat.md | 2 +- .../modules/models_DirectChatMessage.md | 2 +- talawa-api-docs/modules/models_Donation.md | 2 +- .../modules/models_EncodedImage.md | 2 +- .../modules/models_EncodedVideo.md | 2 +- talawa-api-docs/modules/models_Event.md | 2 +- .../modules/models_EventAttendee.md | 2 +- talawa-api-docs/modules/models_Feedback.md | 2 +- talawa-api-docs/modules/models_File.md | 2 +- talawa-api-docs/modules/models_Group.md | 2 +- talawa-api-docs/modules/models_GroupChat.md | 2 +- .../modules/models_GroupChatMessage.md | 2 +- talawa-api-docs/modules/models_ImageHash.md | 2 +- talawa-api-docs/modules/models_Language.md | 2 +- .../modules/models_MembershipRequest.md | 2 +- talawa-api-docs/modules/models_Message.md | 2 +- talawa-api-docs/modules/models_MessageChat.md | 2 +- .../modules/models_Organization.md | 2 +- .../modules/models_OrganizationCustomField.md | 2 +- .../modules/models_OrganizationTagUser.md | 2 +- talawa-api-docs/modules/models_Plugin.md | 2 +- talawa-api-docs/modules/models_PluginField.md | 2 +- talawa-api-docs/modules/models_Post.md | 2 +- talawa-api-docs/modules/models_SampleData.md | 2 +- talawa-api-docs/modules/models_TagUser.md | 2 +- talawa-api-docs/modules/models_User.md | 2 +- .../modules/models_UserCustomData.md | 2 +- talawa-api-docs/modules/resolvers.md | 2 +- talawa-api-docs/modules/resolvers_CheckIn.md | 2 +- .../modules/resolvers_CheckIn_event.md | 2 +- .../modules/resolvers_CheckIn_user.md | 2 +- talawa-api-docs/modules/resolvers_Comment.md | 2 +- .../modules/resolvers_Comment_creator.md | 2 +- .../modules/resolvers_DirectChat.md | 2 +- .../modules/resolvers_DirectChatMessage.md | 2 +- ...tChatMessage_directChatMessageBelongsTo.md | 2 +- .../resolvers_DirectChatMessage_receiver.md | 2 +- .../resolvers_DirectChatMessage_sender.md | 2 +- .../modules/resolvers_DirectChat_creator.md | 2 +- .../modules/resolvers_DirectChat_messages.md | 2 +- .../resolvers_DirectChat_organization.md | 2 +- .../modules/resolvers_DirectChat_users.md | 2 +- talawa-api-docs/modules/resolvers_Event.md | 2 +- .../modules/resolvers_Event_attendees.md | 2 +- .../resolvers_Event_attendeesCheckInStatus.md | 2 +- .../resolvers_Event_averageFeedbackScore.md | 2 +- .../modules/resolvers_Event_creator.md | 2 +- .../modules/resolvers_Event_feedback.md | 2 +- .../modules/resolvers_Event_organization.md | 2 +- talawa-api-docs/modules/resolvers_Feedback.md | 2 +- .../modules/resolvers_Feedback_event.md | 2 +- .../modules/resolvers_GroupChat.md | 2 +- .../modules/resolvers_GroupChatMessage.md | 2 +- ...upChatMessage_groupChatMessageBelongsTo.md | 2 +- .../resolvers_GroupChatMessage_sender.md | 2 +- .../modules/resolvers_GroupChat_creator.md | 2 +- .../modules/resolvers_GroupChat_messages.md | 2 +- .../resolvers_GroupChat_organization.md | 2 +- .../modules/resolvers_GroupChat_users.md | 2 +- .../modules/resolvers_MembershipRequest.md | 2 +- ...esolvers_MembershipRequest_organization.md | 2 +- .../resolvers_MembershipRequest_user.md | 2 +- talawa-api-docs/modules/resolvers_Mutation.md | 2 +- .../modules/resolvers_Mutation_acceptAdmin.md | 2 +- ...olvers_Mutation_acceptMembershipRequest.md | 2 +- .../resolvers_Mutation_addEventAttendee.md | 2 +- .../modules/resolvers_Mutation_addFeedback.md | 2 +- ...solvers_Mutation_addLanguageTranslation.md | 2 +- ...ers_Mutation_addOrganizationCustomField.md | 2 +- ...resolvers_Mutation_addOrganizationImage.md | 2 +- .../resolvers_Mutation_addUserCustomData.md | 2 +- .../resolvers_Mutation_addUserImage.md | 2 +- .../resolvers_Mutation_addUserToGroupChat.md | 2 +- .../resolvers_Mutation_adminRemoveEvent.md | 2 +- .../resolvers_Mutation_adminRemoveGroup.md | 2 +- .../resolvers_Mutation_assignUserTag.md | 2 +- ...utation_blockPluginCreationBySuperadmin.md | 2 +- .../modules/resolvers_Mutation_blockUser.md | 2 +- ...olvers_Mutation_cancelMembershipRequest.md | 2 +- .../modules/resolvers_Mutation_checkIn.md | 2 +- .../modules/resolvers_Mutation_createAdmin.md | 2 +- .../resolvers_Mutation_createAdvertisement.md | 2 +- .../resolvers_Mutation_createComment.md | 2 +- .../resolvers_Mutation_createDirectChat.md | 2 +- .../resolvers_Mutation_createDonation.md | 2 +- .../modules/resolvers_Mutation_createEvent.md | 2 +- .../resolvers_Mutation_createGroupChat.md | 2 +- .../resolvers_Mutation_createMember.md | 2 +- .../resolvers_Mutation_createMessageChat.md | 2 +- .../resolvers_Mutation_createOrganization.md | 2 +- .../resolvers_Mutation_createPlugin.md | 2 +- .../modules/resolvers_Mutation_createPost.md | 2 +- ...lvers_Mutation_createSampleOrganization.md | 2 +- .../resolvers_Mutation_createUserTag.md | 2 +- ...olvers_Mutation_deleteAdvertisementById.md | 2 +- .../resolvers_Mutation_deleteDonationById.md | 2 +- .../resolvers_Mutation_forgotPassword.md | 2 +- ...solvers_Mutation_joinPublicOrganization.md | 2 +- .../resolvers_Mutation_leaveOrganization.md | 2 +- .../modules/resolvers_Mutation_likeComment.md | 2 +- .../modules/resolvers_Mutation_likePost.md | 2 +- .../modules/resolvers_Mutation_login.md | 2 +- .../modules/resolvers_Mutation_logout.md | 2 +- .../modules/resolvers_Mutation_otp.md | 2 +- .../modules/resolvers_Mutation_recaptcha.md | 2 +- .../resolvers_Mutation_refreshToken.md | 2 +- .../resolvers_Mutation_registerForEvent.md | 2 +- .../modules/resolvers_Mutation_rejectAdmin.md | 2 +- ...olvers_Mutation_rejectMembershipRequest.md | 2 +- .../modules/resolvers_Mutation_removeAdmin.md | 2 +- .../resolvers_Mutation_removeAdvertisement.md | 2 +- .../resolvers_Mutation_removeComment.md | 2 +- .../resolvers_Mutation_removeDirectChat.md | 2 +- .../modules/resolvers_Mutation_removeEvent.md | 2 +- .../resolvers_Mutation_removeEventAttendee.md | 2 +- .../resolvers_Mutation_removeGroupChat.md | 2 +- .../resolvers_Mutation_removeMember.md | 2 +- .../resolvers_Mutation_removeOrganization.md | 2 +- ..._Mutation_removeOrganizationCustomField.md | 2 +- ...olvers_Mutation_removeOrganizationImage.md | 2 +- .../modules/resolvers_Mutation_removePost.md | 2 +- ...lvers_Mutation_removeSampleOrganization.md | 2 +- ...resolvers_Mutation_removeUserCustomData.md | 2 +- ...olvers_Mutation_removeUserFromGroupChat.md | 2 +- .../resolvers_Mutation_removeUserImage.md | 2 +- .../resolvers_Mutation_removeUserTag.md | 2 +- ...vers_Mutation_revokeRefreshTokenForUser.md | 2 +- .../resolvers_Mutation_saveFcmToken.md | 2 +- ...esolvers_Mutation_sendMembershipRequest.md | 2 +- ...olvers_Mutation_sendMessageToDirectChat.md | 2 +- ...solvers_Mutation_sendMessageToGroupChat.md | 2 +- .../modules/resolvers_Mutation_signUp.md | 2 +- .../resolvers_Mutation_togglePostPin.md | 2 +- .../resolvers_Mutation_unassignUserTag.md | 2 +- .../modules/resolvers_Mutation_unblockUser.md | 2 +- .../resolvers_Mutation_unlikeComment.md | 2 +- .../modules/resolvers_Mutation_unlikePost.md | 2 +- ...lvers_Mutation_unregisterForEventByUser.md | 2 +- .../resolvers_Mutation_updateAdvertisement.md | 2 +- .../modules/resolvers_Mutation_updateEvent.md | 2 +- .../resolvers_Mutation_updateLanguage.md | 2 +- .../resolvers_Mutation_updateOrganization.md | 2 +- .../resolvers_Mutation_updatePluginStatus.md | 2 +- .../modules/resolvers_Mutation_updatePost.md | 2 +- .../resolvers_Mutation_updateUserPassword.md | 2 +- .../resolvers_Mutation_updateUserProfile.md | 2 +- ...s_Mutation_updateUserRoleInOrganization.md | 2 +- .../resolvers_Mutation_updateUserTag.md | 2 +- .../resolvers_Mutation_updateUserType.md | 2 +- .../modules/resolvers_Organization.md | 2 +- .../modules/resolvers_Organization_admins.md | 2 +- .../resolvers_Organization_blockedUsers.md | 2 +- .../modules/resolvers_Organization_creator.md | 2 +- .../modules/resolvers_Organization_image.md | 2 +- .../modules/resolvers_Organization_members.md | 2 +- ...solvers_Organization_membershipRequests.md | 2 +- .../resolvers_Organization_pinnedPosts.md | 2 +- talawa-api-docs/modules/resolvers_Post.md | 2 +- .../modules/resolvers_Post_comments.md | 2 +- .../modules/resolvers_Post_creator.md | 2 +- talawa-api-docs/modules/resolvers_Query.md | 2 +- .../modules/resolvers_Query_checkAuth.md | 2 +- ...esolvers_Query_customDataByOrganization.md | 2 +- ...olvers_Query_customFieldsByOrganization.md | 2 +- .../resolvers_Query_directChatsByUserID.md | 2 +- ...lvers_Query_directChatsMessagesByChatID.md | 2 +- .../modules/resolvers_Query_event.md | 2 +- .../resolvers_Query_eventsByOrganization.md | 2 +- ...rs_Query_eventsByOrganizationConnection.md | 2 +- .../resolvers_Query_getAdvertisements.md | 2 +- .../resolvers_Query_getDonationById.md | 2 +- .../resolvers_Query_getDonationByOrgId.md | 2 +- ...vers_Query_getDonationByOrgIdConnection.md | 2 +- .../modules/resolvers_Query_getPlugins.md | 2 +- .../modules/resolvers_Query_getlanguage.md | 2 +- .../resolvers_Query_hasSubmittedFeedback.md | 2 +- ...resolvers_Query_helperFunctions_getSort.md | 2 +- ...esolvers_Query_helperFunctions_getWhere.md | 2 +- talawa-api-docs/modules/resolvers_Query_me.md | 2 +- .../modules/resolvers_Query_myLanguage.md | 2 +- .../resolvers_Query_organizationIsSample.md | 2 +- .../modules/resolvers_Query_organizations.md | 2 +- ...resolvers_Query_organizationsConnection.md | 2 +- ...ers_Query_organizationsMemberConnection.md | 2 +- .../modules/resolvers_Query_post.md | 2 +- .../resolvers_Query_postsByOrganization.md | 2 +- ...ers_Query_postsByOrganizationConnection.md | 2 +- .../resolvers_Query_registeredEventsByUser.md | 2 +- .../modules/resolvers_Query_user.md | 2 +- .../modules/resolvers_Query_userLanguage.md | 2 +- .../modules/resolvers_Query_users.md | 2 +- .../resolvers_Query_usersConnection.md | 2 +- .../modules/resolvers_Subscription.md | 2 +- ...esolvers_Subscription_directMessageChat.md | 2 +- ...rs_Subscription_messageSentToDirectChat.md | 4 +- ...ers_Subscription_messageSentToGroupChat.md | 4 +- .../resolvers_Subscription_onPluginUpdate.md | 4 +- talawa-api-docs/modules/resolvers_User.md | 2 +- talawa-api-docs/modules/resolvers_UserTag.md | 2 +- .../modules/resolvers_UserTag_childTags.md | 2 +- .../modules/resolvers_UserTag_organization.md | 2 +- .../modules/resolvers_UserTag_parentTag.md | 2 +- .../resolvers_UserTag_usersAssignedTo.md | 2 +- .../resolvers_middleware_currentUserExists.md | 2 +- .../services_CommentCache_cacheComments.md | 2 +- ...ces_CommentCache_deleteCommentFromCache.md | 2 +- ...ommentCache_findCommentsByPostIdInCache.md | 2 +- ...rvices_CommentCache_findCommentsInCache.md | 2 +- .../services_EventCache_cacheEvents.md | 2 +- ...ervices_EventCache_deleteEventFromCache.md | 2 +- .../services_EventCache_findEventInCache.md | 2 +- ...es_OrganizationCache_cacheOrganizations.md | 2 +- ...zationCache_deleteOrganizationFromCache.md | 2 +- ...anizationCache_findOrganizationsInCache.md | 2 +- .../modules/services_PostCache_cachePosts.md | 2 +- .../services_PostCache_deletePostFromCache.md | 2 +- .../services_PostCache_findPostsInCache.md | 2 +- .../modules/services_redisCache.md | 2 +- talawa-api-docs/modules/typeDefs.md | 2 +- .../modules/typeDefs_directives.md | 2 +- talawa-api-docs/modules/typeDefs_enums.md | 2 +- talawa-api-docs/modules/typeDefs_errors.md | 2 +- .../modules/typeDefs_errors_common.md | 2 +- .../typeDefs_errors_connectionError.md | 2 +- talawa-api-docs/modules/typeDefs_inputs.md | 2 +- .../modules/typeDefs_interfaces.md | 2 +- talawa-api-docs/modules/typeDefs_mutations.md | 2 +- talawa-api-docs/modules/typeDefs_queries.md | 2 +- talawa-api-docs/modules/typeDefs_scalars.md | 2 +- .../modules/typeDefs_subscriptions.md | 2 +- talawa-api-docs/modules/typeDefs_types.md | 2 +- talawa-api-docs/modules/typeDefs_unions.md | 2 +- .../modules/types_generatedGraphQLTypes.md | 635 +++++++++--------- .../modules/utilities_PII_decryption.md | 2 +- .../modules/utilities_PII_encryption.md | 2 +- .../modules/utilities_PII_isAuthorised.md | 2 +- .../modules/utilities_adminCheck.md | 2 +- talawa-api-docs/modules/utilities_auth.md | 6 +- .../modules/utilities_copyToClipboard.md | 2 +- .../utilities_createSampleOrganizationUtil.md | 10 +- .../utilities_deleteDuplicatedImage.md | 2 +- .../modules/utilities_deleteImage.md | 2 +- ...encodedImageStorage_deletePreviousImage.md | 2 +- ...ImageStorage_encodedImageExtensionCheck.md | 2 +- ..._encodedImageStorage_uploadEncodedImage.md | 2 +- ...encodedVideoStorage_deletePreviousVideo.md | 2 +- ...VideoStorage_encodedVideoExtensionCheck.md | 2 +- ..._encodedVideoStorage_uploadEncodedVideo.md | 2 +- .../utilities_graphqlConnectionFactory.md | 10 +- .../utilities_imageAlreadyInDbCheck.md | 2 +- .../modules/utilities_imageExtensionCheck.md | 2 +- talawa-api-docs/modules/utilities_mailer.md | 2 +- .../utilities_removeSampleOrganizationUtil.md | 2 +- .../utilities_reuploadDuplicateCheck.md | 4 +- .../modules/utilities_superAdminCheck.md | 2 +- .../modules/utilities_uploadImage.md | 2 +- tests/resolvers/Mutation/createPost.spec.ts | 61 ++ .../resolvers/Mutation/togglePostPin.spec.ts | 54 ++ tests/resolvers/Mutation/updatePost.spec.ts | 71 +- 347 files changed, 1305 insertions(+), 1032 deletions(-) diff --git a/src/resolvers/Mutation/createPost.ts b/src/resolvers/Mutation/createPost.ts index 0724804a05..10f4b782ee 100644 --- a/src/resolvers/Mutation/createPost.ts +++ b/src/resolvers/Mutation/createPost.ts @@ -6,6 +6,8 @@ import { ORGANIZATION_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_TO_PIN, + POST_NEEDS_TO_BE_PINNED, + PLEASE_PROVIDE_TITLE, } from "../../constants"; import { isValidString } from "../../libraries/validators/validateString"; import { uploadEncodedImage } from "../../utilities/encodedImageStorage/uploadEncodedImage"; @@ -81,6 +83,19 @@ export const createPost: MutationResolvers["createPost"] = async ( } } + // Check title and pinpost + if (args.data?.title && !args.data.pinned) { + throw new errors.InputValidationError( + requestContext.translate(POST_NEEDS_TO_BE_PINNED.MESSAGE), + POST_NEEDS_TO_BE_PINNED.CODE + ); + } else if (!args.data?.title && args.data.pinned) { + throw new errors.InputValidationError( + requestContext.translate(PLEASE_PROVIDE_TITLE.MESSAGE), + PLEASE_PROVIDE_TITLE.CODE + ); + } + // Checks if the recieved arguments are valid according to standard input norms if (args.data?.title && args.data?.text) { const validationResultTitle = isValidString(args.data?.title, 256); diff --git a/src/resolvers/Mutation/togglePostPin.ts b/src/resolvers/Mutation/togglePostPin.ts index 7c132dfef1..ebd55e4ee5 100644 --- a/src/resolvers/Mutation/togglePostPin.ts +++ b/src/resolvers/Mutation/togglePostPin.ts @@ -2,6 +2,8 @@ import { POST_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_TO_PIN, + PLEASE_PROVIDE_TITLE, + LENGTH_VALIDATION_ERROR, } from "../../constants"; import type { MutationResolvers } from "../../types/generatedGraphQLTypes"; import { errors, requestContext } from "../../libraries"; @@ -12,6 +14,7 @@ import { findOrganizationsInCache } from "../../services/OrganizationCache/findO import { Types } from "mongoose"; import { findPostsInCache } from "../../services/PostCache/findPostsInCache"; import { cachePosts } from "../../services/PostCache/cachePosts"; +import { isValidString } from "../../libraries/validators/validateString"; export const togglePostPin: MutationResolvers["togglePostPin"] = async ( _parent, @@ -118,6 +121,7 @@ export const togglePostPin: MutationResolvers["togglePostPin"] = async ( { $set: { pinned: false, + title: "", }, } ).lean(); @@ -128,6 +132,25 @@ export const togglePostPin: MutationResolvers["togglePostPin"] = async ( return updatedPost!; } else { + if (!args.title) { + throw new errors.InputValidationError( + requestContext.translate(PLEASE_PROVIDE_TITLE.MESSAGE), + PLEASE_PROVIDE_TITLE.CODE + ); + } + + if (args?.title) { + const validationResultTitle = isValidString(args?.title, 256); + if (!validationResultTitle.isLessThanMaxLength) { + throw new errors.InputValidationError( + requestContext.translate( + `${LENGTH_VALIDATION_ERROR.MESSAGE} 256 characters in title` + ), + LENGTH_VALIDATION_ERROR.CODE + ); + } + } + const updatedOrganization = await Organization.findOneAndUpdate( { _id: post.organization, @@ -152,6 +175,7 @@ export const togglePostPin: MutationResolvers["togglePostPin"] = async ( { $set: { pinned: true, + title: args?.title, }, } ).lean(); diff --git a/src/resolvers/Mutation/updatePost.ts b/src/resolvers/Mutation/updatePost.ts index a87ba712d0..6b358993ef 100644 --- a/src/resolvers/Mutation/updatePost.ts +++ b/src/resolvers/Mutation/updatePost.ts @@ -6,6 +6,8 @@ import { USER_NOT_AUTHORIZED_ERROR, POST_NOT_FOUND_ERROR, LENGTH_VALIDATION_ERROR, + POST_NEEDS_TO_BE_PINNED, + PLEASE_PROVIDE_TITLE, } from "../../constants"; import { isValidString } from "../../libraries/validators/validateString"; import { findPostsInCache } from "../../services/PostCache/findPostsInCache"; @@ -67,6 +69,19 @@ export const updatePost: MutationResolvers["updatePost"] = async ( ); } + // Check title and pinpost + if (args.data?.title && !post.pinned) { + throw new errors.InputValidationError( + requestContext.translate(POST_NEEDS_TO_BE_PINNED.MESSAGE), + POST_NEEDS_TO_BE_PINNED.CODE + ); + } else if (!args.data?.title && post.pinned) { + throw new errors.InputValidationError( + requestContext.translate(PLEASE_PROVIDE_TITLE.MESSAGE), + PLEASE_PROVIDE_TITLE.CODE + ); + } + // Checks if the recieved arguments are valid according to standard input norms const validationResultTitle = isValidString(args.data?.title ?? "", 256); const validationResultText = isValidString(args.data?.text ?? "", 500); diff --git a/talawa-api-docs/classes/libraries_errors_applicationError.ApplicationError.md b/talawa-api-docs/classes/libraries_errors_applicationError.ApplicationError.md index 2f06ee23c0..d4f3b1a718 100644 --- a/talawa-api-docs/classes/libraries_errors_applicationError.ApplicationError.md +++ b/talawa-api-docs/classes/libraries_errors_applicationError.ApplicationError.md @@ -72,7 +72,7 @@ Error.constructor #### Defined in -[src/libraries/errors/applicationError.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L14) +[src/libraries/errors/applicationError.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L14) ## Properties @@ -82,7 +82,7 @@ Error.constructor #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -92,7 +92,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_conflictError.ConflictError.md b/talawa-api-docs/classes/libraries_errors_conflictError.ConflictError.md index f3dc7b7ec9..dfc858a99a 100644 --- a/talawa-api-docs/classes/libraries_errors_conflictError.ConflictError.md +++ b/talawa-api-docs/classes/libraries_errors_conflictError.ConflictError.md @@ -57,7 +57,7 @@ This class detects conflict errors and sends those errors to the superclass Appl #### Defined in -[src/libraries/errors/conflictError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/conflictError.ts#L6) +[src/libraries/errors/conflictError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/conflictError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects conflict errors and sends those errors to the superclass Appl #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_inputValidationError.InputValidationError.md b/talawa-api-docs/classes/libraries_errors_inputValidationError.InputValidationError.md index 4646177f92..e95c5a5446 100644 --- a/talawa-api-docs/classes/libraries_errors_inputValidationError.InputValidationError.md +++ b/talawa-api-docs/classes/libraries_errors_inputValidationError.InputValidationError.md @@ -57,7 +57,7 @@ This class detects input validation errors and sends those errors to the supercl #### Defined in -[src/libraries/errors/inputValidationError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/inputValidationError.ts#L6) +[src/libraries/errors/inputValidationError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/inputValidationError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects input validation errors and sends those errors to the supercl #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_internalServerError.InternalServerError.md b/talawa-api-docs/classes/libraries_errors_internalServerError.InternalServerError.md index 96b026571a..eb759d3e08 100644 --- a/talawa-api-docs/classes/libraries_errors_internalServerError.InternalServerError.md +++ b/talawa-api-docs/classes/libraries_errors_internalServerError.InternalServerError.md @@ -57,7 +57,7 @@ This class detects internal server errors and sends those errors to the supercla #### Defined in -[src/libraries/errors/internalServerError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/internalServerError.ts#L6) +[src/libraries/errors/internalServerError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/internalServerError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects internal server errors and sends those errors to the supercla #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_invalidFileTypeError.InvalidFileTypeError.md b/talawa-api-docs/classes/libraries_errors_invalidFileTypeError.InvalidFileTypeError.md index c585c87f80..e8b4ddbdad 100644 --- a/talawa-api-docs/classes/libraries_errors_invalidFileTypeError.InvalidFileTypeError.md +++ b/talawa-api-docs/classes/libraries_errors_invalidFileTypeError.InvalidFileTypeError.md @@ -57,7 +57,7 @@ This class detects invalid file type errors and sends those errors to the superc #### Defined in -[src/libraries/errors/invalidFileTypeError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/invalidFileTypeError.ts#L6) +[src/libraries/errors/invalidFileTypeError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/invalidFileTypeError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects invalid file type errors and sends those errors to the superc #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_notFoundError.NotFoundError.md b/talawa-api-docs/classes/libraries_errors_notFoundError.NotFoundError.md index d4e005b066..a2fc21aa6e 100644 --- a/talawa-api-docs/classes/libraries_errors_notFoundError.NotFoundError.md +++ b/talawa-api-docs/classes/libraries_errors_notFoundError.NotFoundError.md @@ -57,7 +57,7 @@ This class detects Not Found errors and sends those errors to the superclass App #### Defined in -[src/libraries/errors/notFoundError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/notFoundError.ts#L6) +[src/libraries/errors/notFoundError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/notFoundError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects Not Found errors and sends those errors to the superclass App #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_unauthenticatedError.UnauthenticatedError.md b/talawa-api-docs/classes/libraries_errors_unauthenticatedError.UnauthenticatedError.md index 84c147fa28..1c2e608196 100644 --- a/talawa-api-docs/classes/libraries_errors_unauthenticatedError.UnauthenticatedError.md +++ b/talawa-api-docs/classes/libraries_errors_unauthenticatedError.UnauthenticatedError.md @@ -57,7 +57,7 @@ This class detects unauthenticated errors and sends those errors to the supercla #### Defined in -[src/libraries/errors/unauthenticatedError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/unauthenticatedError.ts#L6) +[src/libraries/errors/unauthenticatedError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/unauthenticatedError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects unauthenticated errors and sends those errors to the supercla #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_unauthorizedError.UnauthorizedError.md b/talawa-api-docs/classes/libraries_errors_unauthorizedError.UnauthorizedError.md index 08de3ec0de..cf46e27189 100644 --- a/talawa-api-docs/classes/libraries_errors_unauthorizedError.UnauthorizedError.md +++ b/talawa-api-docs/classes/libraries_errors_unauthorizedError.UnauthorizedError.md @@ -57,7 +57,7 @@ This class detects unauthorized errors and sends those errors to the superclass #### Defined in -[src/libraries/errors/unauthorizedError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/unauthorizedError.ts#L6) +[src/libraries/errors/unauthorizedError.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/unauthorizedError.ts#L6) ## Properties @@ -71,7 +71,7 @@ This class detects unauthorized errors and sends those errors to the superclass #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/classes/libraries_errors_validationError.ValidationError.md b/talawa-api-docs/classes/libraries_errors_validationError.ValidationError.md index df8587a3ca..bc92cd24fa 100644 --- a/talawa-api-docs/classes/libraries_errors_validationError.ValidationError.md +++ b/talawa-api-docs/classes/libraries_errors_validationError.ValidationError.md @@ -55,7 +55,7 @@ This class detects validation errors and sends those errors to the superclass Ap #### Defined in -[src/libraries/errors/validationError.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/validationError.ts#L7) +[src/libraries/errors/validationError.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/validationError.ts#L7) ## Properties @@ -69,7 +69,7 @@ This class detects validation errors and sends those errors to the superclass Ap #### Defined in -[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L11) +[src/libraries/errors/applicationError.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L11) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L12) +[src/libraries/errors/applicationError.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L12) ___ diff --git a/talawa-api-docs/enums/constants.TransactionLogTypes.md b/talawa-api-docs/enums/constants.TransactionLogTypes.md index bd1b4837f4..5f70db5364 100644 --- a/talawa-api-docs/enums/constants.TransactionLogTypes.md +++ b/talawa-api-docs/enums/constants.TransactionLogTypes.md @@ -20,7 +20,7 @@ #### Defined in -[src/constants.ts:485](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L485) +[src/constants.ts:497](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L497) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[src/constants.ts:487](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L487) +[src/constants.ts:499](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L499) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[src/constants.ts:486](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L486) +[src/constants.ts:498](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L498) diff --git a/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableDocument.md b/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableDocument.md index cc26a30715..0c22dbecf8 100644 --- a/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableDocument.md +++ b/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableDocument.md @@ -263,7 +263,7 @@ ___ #### Defined in -[src/libraries/dbLogger.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/dbLogger.ts#L33) +[src/libraries/dbLogger.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/dbLogger.ts#L33) ___ diff --git a/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableQuery.md b/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableQuery.md index 47f76dc591..af1785e41b 100644 --- a/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableQuery.md +++ b/talawa-api-docs/interfaces/libraries_dbLogger.InterfaceLoggableQuery.md @@ -184,7 +184,7 @@ ___ #### Defined in -[src/libraries/dbLogger.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/dbLogger.ts#L37) +[src/libraries/dbLogger.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/dbLogger.ts#L37) ___ diff --git a/talawa-api-docs/interfaces/libraries_errors_applicationError.InterfaceError.md b/talawa-api-docs/interfaces/libraries_errors_applicationError.InterfaceError.md index a5eae1735a..3d6cb78543 100644 --- a/talawa-api-docs/interfaces/libraries_errors_applicationError.InterfaceError.md +++ b/talawa-api-docs/interfaces/libraries_errors_applicationError.InterfaceError.md @@ -21,7 +21,7 @@ #### Defined in -[src/libraries/errors/applicationError.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L3) +[src/libraries/errors/applicationError.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L3) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:2](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L2) +[src/libraries/errors/applicationError.ts:2](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L2) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L5) +[src/libraries/errors/applicationError.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L5) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[src/libraries/errors/applicationError.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/errors/applicationError.ts#L4) +[src/libraries/errors/applicationError.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/errors/applicationError.ts#L4) diff --git a/talawa-api-docs/interfaces/middleware_isAuth.InterfaceAuthData.md b/talawa-api-docs/interfaces/middleware_isAuth.InterfaceAuthData.md index b0418bc67b..cb2f6888bc 100644 --- a/talawa-api-docs/interfaces/middleware_isAuth.InterfaceAuthData.md +++ b/talawa-api-docs/interfaces/middleware_isAuth.InterfaceAuthData.md @@ -20,7 +20,7 @@ #### Defined in -[src/middleware/isAuth.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/middleware/isAuth.ts#L9) +[src/middleware/isAuth.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/middleware/isAuth.ts#L9) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[src/middleware/isAuth.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/middleware/isAuth.ts#L8) +[src/middleware/isAuth.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/middleware/isAuth.ts#L8) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[src/middleware/isAuth.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/middleware/isAuth.ts#L10) +[src/middleware/isAuth.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/middleware/isAuth.ts#L10) diff --git a/talawa-api-docs/interfaces/models_Advertisement.InterfaceAdvertisement.md b/talawa-api-docs/interfaces/models_Advertisement.InterfaceAdvertisement.md index 88b6a2cc98..1c07dbe31a 100644 --- a/talawa-api-docs/interfaces/models_Advertisement.InterfaceAdvertisement.md +++ b/talawa-api-docs/interfaces/models_Advertisement.InterfaceAdvertisement.md @@ -29,7 +29,7 @@ This is an interface that represents a database(MongoDB) document for Advertisem #### Defined in -[src/models/Advertisement.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L8) +[src/models/Advertisement.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L8) ___ @@ -39,7 +39,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L16) +[src/models/Advertisement.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L16) ___ @@ -49,7 +49,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L11) +[src/models/Advertisement.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L11) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L15) +[src/models/Advertisement.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L15) ___ @@ -69,7 +69,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L12) +[src/models/Advertisement.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L12) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L10) +[src/models/Advertisement.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L10) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L9) +[src/models/Advertisement.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L9) ___ @@ -99,7 +99,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L14) +[src/models/Advertisement.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L14) ___ @@ -109,7 +109,7 @@ ___ #### Defined in -[src/models/Advertisement.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L13) +[src/models/Advertisement.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L13) ___ @@ -119,4 +119,4 @@ ___ #### Defined in -[src/models/Advertisement.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L17) +[src/models/Advertisement.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L17) diff --git a/talawa-api-docs/interfaces/models_CheckIn.InterfaceCheckIn.md b/talawa-api-docs/interfaces/models_CheckIn.InterfaceCheckIn.md index 82bd5b1e54..9b674e6230 100644 --- a/talawa-api-docs/interfaces/models_CheckIn.InterfaceCheckIn.md +++ b/talawa-api-docs/interfaces/models_CheckIn.InterfaceCheckIn.md @@ -25,7 +25,7 @@ #### Defined in -[src/models/CheckIn.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L13) +[src/models/CheckIn.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L13) ___ @@ -35,7 +35,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L16) +[src/models/CheckIn.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L16) ___ @@ -45,7 +45,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L17) +[src/models/CheckIn.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L17) ___ @@ -55,7 +55,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L19) +[src/models/CheckIn.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L19) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L14) +[src/models/CheckIn.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L14) ___ @@ -75,7 +75,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L18) +[src/models/CheckIn.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L18) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/models/CheckIn.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L15) +[src/models/CheckIn.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L15) ___ @@ -95,4 +95,4 @@ ___ #### Defined in -[src/models/CheckIn.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L20) +[src/models/CheckIn.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L20) diff --git a/talawa-api-docs/interfaces/models_Comment.InterfaceComment.md b/talawa-api-docs/interfaces/models_Comment.InterfaceComment.md index 230bad3782..5b86444679 100644 --- a/talawa-api-docs/interfaces/models_Comment.InterfaceComment.md +++ b/talawa-api-docs/interfaces/models_Comment.InterfaceComment.md @@ -28,7 +28,7 @@ This is an interface representing a document for a comment in the database(Mongo #### Defined in -[src/models/Comment.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L9) +[src/models/Comment.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L9) ___ @@ -38,7 +38,7 @@ ___ #### Defined in -[src/models/Comment.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L11) +[src/models/Comment.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L11) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[src/models/Comment.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L12) +[src/models/Comment.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L12) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[src/models/Comment.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L16) +[src/models/Comment.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L16) ___ @@ -68,7 +68,7 @@ ___ #### Defined in -[src/models/Comment.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L15) +[src/models/Comment.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L15) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/models/Comment.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L14) +[src/models/Comment.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L14) ___ @@ -88,7 +88,7 @@ ___ #### Defined in -[src/models/Comment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L17) +[src/models/Comment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L17) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[src/models/Comment.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L10) +[src/models/Comment.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L10) ___ @@ -108,4 +108,4 @@ ___ #### Defined in -[src/models/Comment.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L13) +[src/models/Comment.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L13) diff --git a/talawa-api-docs/interfaces/models_DirectChat.InterfaceDirectChat.md b/talawa-api-docs/interfaces/models_DirectChat.InterfaceDirectChat.md index 50e5030b01..fdbacba165 100644 --- a/talawa-api-docs/interfaces/models_DirectChat.InterfaceDirectChat.md +++ b/talawa-api-docs/interfaces/models_DirectChat.InterfaceDirectChat.md @@ -27,7 +27,7 @@ This is an interface representing a document for direct chat in the database(Mon #### Defined in -[src/models/DirectChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L10) +[src/models/DirectChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L10) ___ @@ -37,7 +37,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L16) +[src/models/DirectChat.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L16) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L13) +[src/models/DirectChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L13) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L12) +[src/models/DirectChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L12) ___ @@ -67,7 +67,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L14) +[src/models/DirectChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L14) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L15) +[src/models/DirectChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L15) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[src/models/DirectChat.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L17) +[src/models/DirectChat.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L17) ___ @@ -97,4 +97,4 @@ ___ #### Defined in -[src/models/DirectChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L11) +[src/models/DirectChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L11) diff --git a/talawa-api-docs/interfaces/models_DirectChatMessage.InterfaceDirectChatMessage.md b/talawa-api-docs/interfaces/models_DirectChatMessage.InterfaceDirectChatMessage.md index 4ce93c03d6..f0bd80492f 100644 --- a/talawa-api-docs/interfaces/models_DirectChatMessage.InterfaceDirectChatMessage.md +++ b/talawa-api-docs/interfaces/models_DirectChatMessage.InterfaceDirectChatMessage.md @@ -27,7 +27,7 @@ This is an interface representing a document for a direct chat message in the da #### Defined in -[src/models/DirectChatMessage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L9) +[src/models/DirectChatMessage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L9) ___ @@ -37,7 +37,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L15) +[src/models/DirectChatMessage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L15) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L10) +[src/models/DirectChatMessage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L10) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L13) +[src/models/DirectChatMessage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L13) ___ @@ -67,7 +67,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L12) +[src/models/DirectChatMessage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L12) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L11) +[src/models/DirectChatMessage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L11) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L14) +[src/models/DirectChatMessage.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L14) ___ @@ -97,4 +97,4 @@ ___ #### Defined in -[src/models/DirectChatMessage.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L16) +[src/models/DirectChatMessage.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L16) diff --git a/talawa-api-docs/interfaces/models_Donation.InterfaceDonation.md b/talawa-api-docs/interfaces/models_Donation.InterfaceDonation.md index cd8c9e6622..db1a12b6ca 100644 --- a/talawa-api-docs/interfaces/models_Donation.InterfaceDonation.md +++ b/talawa-api-docs/interfaces/models_Donation.InterfaceDonation.md @@ -27,7 +27,7 @@ This is an interface representing a document for a donation in the database(Mong #### Defined in -[src/models/Donation.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L12) +[src/models/Donation.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L12) ___ @@ -37,7 +37,7 @@ ___ #### Defined in -[src/models/Donation.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L13) +[src/models/Donation.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L13) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[src/models/Donation.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L9) +[src/models/Donation.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L9) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[src/models/Donation.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L11) +[src/models/Donation.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L11) ___ @@ -67,7 +67,7 @@ ___ #### Defined in -[src/models/Donation.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L8) +[src/models/Donation.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L8) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[src/models/Donation.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L10) +[src/models/Donation.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L10) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[src/models/Donation.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L14) +[src/models/Donation.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L14) ___ @@ -97,4 +97,4 @@ ___ #### Defined in -[src/models/Donation.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L7) +[src/models/Donation.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L7) diff --git a/talawa-api-docs/interfaces/models_EncodedImage.InterfaceEncodedImage.md b/talawa-api-docs/interfaces/models_EncodedImage.InterfaceEncodedImage.md index 0dfac9a17f..b325c19405 100644 --- a/talawa-api-docs/interfaces/models_EncodedImage.InterfaceEncodedImage.md +++ b/talawa-api-docs/interfaces/models_EncodedImage.InterfaceEncodedImage.md @@ -23,7 +23,7 @@ This is an interface that represents a database(MongoDB) document for Encoded Im #### Defined in -[src/models/EncodedImage.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedImage.ts#L7) +[src/models/EncodedImage.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedImage.ts#L7) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/EncodedImage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedImage.ts#L9) +[src/models/EncodedImage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedImage.ts#L9) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/EncodedImage.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedImage.ts#L8) +[src/models/EncodedImage.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedImage.ts#L8) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/EncodedImage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedImage.ts#L10) +[src/models/EncodedImage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedImage.ts#L10) diff --git a/talawa-api-docs/interfaces/models_EncodedVideo.InterfaceEncodedVideo.md b/talawa-api-docs/interfaces/models_EncodedVideo.InterfaceEncodedVideo.md index bb578d6afe..6ddd8d39e1 100644 --- a/talawa-api-docs/interfaces/models_EncodedVideo.InterfaceEncodedVideo.md +++ b/talawa-api-docs/interfaces/models_EncodedVideo.InterfaceEncodedVideo.md @@ -23,7 +23,7 @@ This is an interface that represents a database(MongoDB) document for Encoded Vi #### Defined in -[src/models/EncodedVideo.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedVideo.ts#L7) +[src/models/EncodedVideo.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedVideo.ts#L7) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/EncodedVideo.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedVideo.ts#L9) +[src/models/EncodedVideo.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedVideo.ts#L9) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/EncodedVideo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedVideo.ts#L8) +[src/models/EncodedVideo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedVideo.ts#L8) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/EncodedVideo.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedVideo.ts#L10) +[src/models/EncodedVideo.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedVideo.ts#L10) diff --git a/talawa-api-docs/interfaces/models_Event.InterfaceEvent.md b/talawa-api-docs/interfaces/models_Event.InterfaceEvent.md index 3ca4c40607..10eb402ea0 100644 --- a/talawa-api-docs/interfaces/models_Event.InterfaceEvent.md +++ b/talawa-api-docs/interfaces/models_Event.InterfaceEvent.md @@ -41,7 +41,7 @@ This is an interface representing a document for an event in the database(MongoD #### Defined in -[src/models/Event.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L10) +[src/models/Event.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L10) ___ @@ -51,7 +51,7 @@ ___ #### Defined in -[src/models/Event.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L27) +[src/models/Event.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L27) ___ @@ -61,7 +61,7 @@ ___ #### Defined in -[src/models/Event.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L18) +[src/models/Event.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L18) ___ @@ -71,7 +71,7 @@ ___ #### Defined in -[src/models/Event.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L13) +[src/models/Event.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L13) ___ @@ -81,7 +81,7 @@ ___ #### Defined in -[src/models/Event.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L30) +[src/models/Event.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L30) ___ @@ -91,7 +91,7 @@ ___ #### Defined in -[src/models/Event.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L26) +[src/models/Event.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L26) ___ @@ -101,7 +101,7 @@ ___ #### Defined in -[src/models/Event.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L12) +[src/models/Event.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L12) ___ @@ -111,7 +111,7 @@ ___ #### Defined in -[src/models/Event.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L20) +[src/models/Event.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L20) ___ @@ -121,7 +121,7 @@ ___ #### Defined in -[src/models/Event.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L22) +[src/models/Event.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L22) ___ @@ -131,7 +131,7 @@ ___ #### Defined in -[src/models/Event.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L24) +[src/models/Event.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L24) ___ @@ -141,7 +141,7 @@ ___ #### Defined in -[src/models/Event.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L25) +[src/models/Event.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L25) ___ @@ -151,7 +151,7 @@ ___ #### Defined in -[src/models/Event.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L15) +[src/models/Event.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L15) ___ @@ -161,7 +161,7 @@ ___ #### Defined in -[src/models/Event.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L14) +[src/models/Event.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L14) ___ @@ -171,7 +171,7 @@ ___ #### Defined in -[src/models/Event.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L16) +[src/models/Event.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L16) ___ @@ -181,7 +181,7 @@ ___ #### Defined in -[src/models/Event.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L28) +[src/models/Event.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L28) ___ @@ -191,7 +191,7 @@ ___ #### Defined in -[src/models/Event.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L23) +[src/models/Event.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L23) ___ @@ -201,7 +201,7 @@ ___ #### Defined in -[src/models/Event.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L17) +[src/models/Event.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L17) ___ @@ -211,7 +211,7 @@ ___ #### Defined in -[src/models/Event.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L19) +[src/models/Event.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L19) ___ @@ -221,7 +221,7 @@ ___ #### Defined in -[src/models/Event.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L21) +[src/models/Event.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L21) ___ @@ -231,7 +231,7 @@ ___ #### Defined in -[src/models/Event.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L29) +[src/models/Event.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L29) ___ @@ -241,7 +241,7 @@ ___ #### Defined in -[src/models/Event.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L11) +[src/models/Event.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L11) ___ @@ -251,4 +251,4 @@ ___ #### Defined in -[src/models/Event.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L31) +[src/models/Event.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L31) diff --git a/talawa-api-docs/interfaces/models_EventAttendee.InterfaceEventAttendee.md b/talawa-api-docs/interfaces/models_EventAttendee.InterfaceEventAttendee.md index 4760ea2b16..806fb6076d 100644 --- a/talawa-api-docs/interfaces/models_EventAttendee.InterfaceEventAttendee.md +++ b/talawa-api-docs/interfaces/models_EventAttendee.InterfaceEventAttendee.md @@ -21,7 +21,7 @@ #### Defined in -[src/models/EventAttendee.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EventAttendee.ts#L8) +[src/models/EventAttendee.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EventAttendee.ts#L8) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[src/models/EventAttendee.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EventAttendee.ts#L11) +[src/models/EventAttendee.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EventAttendee.ts#L11) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/models/EventAttendee.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EventAttendee.ts#L10) +[src/models/EventAttendee.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EventAttendee.ts#L10) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[src/models/EventAttendee.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EventAttendee.ts#L9) +[src/models/EventAttendee.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EventAttendee.ts#L9) diff --git a/talawa-api-docs/interfaces/models_Feedback.InterfaceFeedback.md b/talawa-api-docs/interfaces/models_Feedback.InterfaceFeedback.md index c1672ac90a..999f3cf561 100644 --- a/talawa-api-docs/interfaces/models_Feedback.InterfaceFeedback.md +++ b/talawa-api-docs/interfaces/models_Feedback.InterfaceFeedback.md @@ -23,7 +23,7 @@ #### Defined in -[src/models/Feedback.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L6) +[src/models/Feedback.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L6) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/Feedback.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L10) +[src/models/Feedback.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L10) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/Feedback.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L7) +[src/models/Feedback.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L7) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[src/models/Feedback.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L8) +[src/models/Feedback.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L8) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[src/models/Feedback.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L9) +[src/models/Feedback.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L9) ___ @@ -73,4 +73,4 @@ ___ #### Defined in -[src/models/Feedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L11) +[src/models/Feedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L11) diff --git a/talawa-api-docs/interfaces/models_File.InterfaceFile.md b/talawa-api-docs/interfaces/models_File.InterfaceFile.md index 9835b4da2e..ee2b79b10d 100644 --- a/talawa-api-docs/interfaces/models_File.InterfaceFile.md +++ b/talawa-api-docs/interfaces/models_File.InterfaceFile.md @@ -28,7 +28,7 @@ This is an interface representing a document for a file in the database(MongoDB) #### Defined in -[src/models/File.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L8) +[src/models/File.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L8) ___ @@ -38,7 +38,7 @@ ___ #### Defined in -[src/models/File.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L13) +[src/models/File.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L13) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[src/models/File.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L15) +[src/models/File.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L15) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[src/models/File.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L9) +[src/models/File.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L9) ___ @@ -68,7 +68,7 @@ ___ #### Defined in -[src/models/File.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L12) +[src/models/File.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L12) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/models/File.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L11) +[src/models/File.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L11) ___ @@ -88,7 +88,7 @@ ___ #### Defined in -[src/models/File.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L14) +[src/models/File.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L14) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[src/models/File.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L16) +[src/models/File.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L16) ___ @@ -108,4 +108,4 @@ ___ #### Defined in -[src/models/File.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L10) +[src/models/File.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L10) diff --git a/talawa-api-docs/interfaces/models_Group.InterfaceGroup.md b/talawa-api-docs/interfaces/models_Group.InterfaceGroup.md index 18687e35cd..f8e9917abe 100644 --- a/talawa-api-docs/interfaces/models_Group.InterfaceGroup.md +++ b/talawa-api-docs/interfaces/models_Group.InterfaceGroup.md @@ -27,7 +27,7 @@ This is an interface representing a document for a group in the database(MongoDB #### Defined in -[src/models/Group.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L9) +[src/models/Group.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L9) ___ @@ -37,7 +37,7 @@ ___ #### Defined in -[src/models/Group.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L14) +[src/models/Group.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L14) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[src/models/Group.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L15) +[src/models/Group.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L15) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[src/models/Group.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L11) +[src/models/Group.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L11) ___ @@ -67,7 +67,7 @@ ___ #### Defined in -[src/models/Group.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L12) +[src/models/Group.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L12) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[src/models/Group.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L13) +[src/models/Group.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L13) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[src/models/Group.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L10) +[src/models/Group.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L10) ___ @@ -97,4 +97,4 @@ ___ #### Defined in -[src/models/Group.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L16) +[src/models/Group.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L16) diff --git a/talawa-api-docs/interfaces/models_GroupChat.InterfaceGroupChat.md b/talawa-api-docs/interfaces/models_GroupChat.InterfaceGroupChat.md index 30596447e4..46a192151e 100644 --- a/talawa-api-docs/interfaces/models_GroupChat.InterfaceGroupChat.md +++ b/talawa-api-docs/interfaces/models_GroupChat.InterfaceGroupChat.md @@ -28,7 +28,7 @@ This is an interface representing a document for a group chat in the database(Mo #### Defined in -[src/models/GroupChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L10) +[src/models/GroupChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L10) ___ @@ -38,7 +38,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L15) +[src/models/GroupChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L15) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L14) +[src/models/GroupChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L14) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L13) +[src/models/GroupChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L13) ___ @@ -68,7 +68,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L17) +[src/models/GroupChat.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L17) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L18) +[src/models/GroupChat.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L18) ___ @@ -88,7 +88,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L11) +[src/models/GroupChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L11) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[src/models/GroupChat.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L16) +[src/models/GroupChat.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L16) ___ @@ -108,4 +108,4 @@ ___ #### Defined in -[src/models/GroupChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L12) +[src/models/GroupChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L12) diff --git a/talawa-api-docs/interfaces/models_GroupChatMessage.InterfaceGroupChatMessage.md b/talawa-api-docs/interfaces/models_GroupChatMessage.InterfaceGroupChatMessage.md index ffe25cd1c8..3247c7fba5 100644 --- a/talawa-api-docs/interfaces/models_GroupChatMessage.InterfaceGroupChatMessage.md +++ b/talawa-api-docs/interfaces/models_GroupChatMessage.InterfaceGroupChatMessage.md @@ -26,7 +26,7 @@ This is an interface that represents a database(MongoDB) document for Group Chat #### Defined in -[src/models/GroupChatMessage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L9) +[src/models/GroupChatMessage.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L9) ___ @@ -36,7 +36,7 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L12) +[src/models/GroupChatMessage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L12) ___ @@ -46,7 +46,7 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L10) +[src/models/GroupChatMessage.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L10) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L14) +[src/models/GroupChatMessage.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L14) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L11) +[src/models/GroupChatMessage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L11) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L15) +[src/models/GroupChatMessage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L15) ___ @@ -86,4 +86,4 @@ ___ #### Defined in -[src/models/GroupChatMessage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L13) +[src/models/GroupChatMessage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L13) diff --git a/talawa-api-docs/interfaces/models_ImageHash.InterfaceImageHash.md b/talawa-api-docs/interfaces/models_ImageHash.InterfaceImageHash.md index f8381252cb..55958fc9de 100644 --- a/talawa-api-docs/interfaces/models_ImageHash.InterfaceImageHash.md +++ b/talawa-api-docs/interfaces/models_ImageHash.InterfaceImageHash.md @@ -24,7 +24,7 @@ This is an interface that represents a database(MongoDB) document for Image Hash #### Defined in -[src/models/ImageHash.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L7) +[src/models/ImageHash.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L7) ___ @@ -34,7 +34,7 @@ ___ #### Defined in -[src/models/ImageHash.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L9) +[src/models/ImageHash.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L9) ___ @@ -44,7 +44,7 @@ ___ #### Defined in -[src/models/ImageHash.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L8) +[src/models/ImageHash.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L8) ___ @@ -54,7 +54,7 @@ ___ #### Defined in -[src/models/ImageHash.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L10) +[src/models/ImageHash.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L10) ___ @@ -64,4 +64,4 @@ ___ #### Defined in -[src/models/ImageHash.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L11) +[src/models/ImageHash.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L11) diff --git a/talawa-api-docs/interfaces/models_Language.InterfaceLanguage.md b/talawa-api-docs/interfaces/models_Language.InterfaceLanguage.md index 6eeabd411c..d6c2f100d7 100644 --- a/talawa-api-docs/interfaces/models_Language.InterfaceLanguage.md +++ b/talawa-api-docs/interfaces/models_Language.InterfaceLanguage.md @@ -23,7 +23,7 @@ This is an interface that represents a database(MongoDB) document for Language. #### Defined in -[src/models/Language.ts:47](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L47) +[src/models/Language.ts:47](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L47) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/Language.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L50) +[src/models/Language.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L50) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/Language.ts:48](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L48) +[src/models/Language.ts:48](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L48) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/Language.ts:49](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L49) +[src/models/Language.ts:49](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L49) diff --git a/talawa-api-docs/interfaces/models_Language.InterfaceLanguageModel.md b/talawa-api-docs/interfaces/models_Language.InterfaceLanguageModel.md index c6551f5cb6..626a2da04e 100644 --- a/talawa-api-docs/interfaces/models_Language.InterfaceLanguageModel.md +++ b/talawa-api-docs/interfaces/models_Language.InterfaceLanguageModel.md @@ -23,7 +23,7 @@ This is an interface that represents a database document. #### Defined in -[src/models/Language.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L10) +[src/models/Language.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L10) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/Language.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L7) +[src/models/Language.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L7) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/Language.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L8) +[src/models/Language.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L8) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/Language.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L9) +[src/models/Language.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L9) diff --git a/talawa-api-docs/interfaces/models_MembershipRequest.InterfaceMembershipRequest.md b/talawa-api-docs/interfaces/models_MembershipRequest.InterfaceMembershipRequest.md index 97a2a92556..13dc3e7510 100644 --- a/talawa-api-docs/interfaces/models_MembershipRequest.InterfaceMembershipRequest.md +++ b/talawa-api-docs/interfaces/models_MembershipRequest.InterfaceMembershipRequest.md @@ -23,7 +23,7 @@ This is an interface that represents a database(MongoDB) document for Membership #### Defined in -[src/models/MembershipRequest.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MembershipRequest.ts#L9) +[src/models/MembershipRequest.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MembershipRequest.ts#L9) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/MembershipRequest.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MembershipRequest.ts#L10) +[src/models/MembershipRequest.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MembershipRequest.ts#L10) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/MembershipRequest.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MembershipRequest.ts#L12) +[src/models/MembershipRequest.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MembershipRequest.ts#L12) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/MembershipRequest.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MembershipRequest.ts#L11) +[src/models/MembershipRequest.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MembershipRequest.ts#L11) diff --git a/talawa-api-docs/interfaces/models_Message.InterfaceMessage.md b/talawa-api-docs/interfaces/models_Message.InterfaceMessage.md index 0701cb521b..2c7aabf703 100644 --- a/talawa-api-docs/interfaces/models_Message.InterfaceMessage.md +++ b/talawa-api-docs/interfaces/models_Message.InterfaceMessage.md @@ -28,7 +28,7 @@ This is an interface that represents a database(MongoDB) document for Message. #### Defined in -[src/models/Message.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L9) +[src/models/Message.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L9) ___ @@ -38,7 +38,7 @@ ___ #### Defined in -[src/models/Message.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L13) +[src/models/Message.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L13) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[src/models/Message.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L15) +[src/models/Message.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L15) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[src/models/Message.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L16) +[src/models/Message.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L16) ___ @@ -68,7 +68,7 @@ ___ #### Defined in -[src/models/Message.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L11) +[src/models/Message.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L11) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/models/Message.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L17) +[src/models/Message.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L17) ___ @@ -88,7 +88,7 @@ ___ #### Defined in -[src/models/Message.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L10) +[src/models/Message.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L10) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[src/models/Message.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L14) +[src/models/Message.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L14) ___ @@ -108,4 +108,4 @@ ___ #### Defined in -[src/models/Message.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L12) +[src/models/Message.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L12) diff --git a/talawa-api-docs/interfaces/models_MessageChat.InterfaceMessageChat.md b/talawa-api-docs/interfaces/models_MessageChat.InterfaceMessageChat.md index 923d0d2e78..712c6051a6 100644 --- a/talawa-api-docs/interfaces/models_MessageChat.InterfaceMessageChat.md +++ b/talawa-api-docs/interfaces/models_MessageChat.InterfaceMessageChat.md @@ -26,7 +26,7 @@ This is an interface representing a document for a chat in the database(MongoDB) #### Defined in -[src/models/MessageChat.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L8) +[src/models/MessageChat.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L8) ___ @@ -36,7 +36,7 @@ ___ #### Defined in -[src/models/MessageChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L13) +[src/models/MessageChat.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L13) ___ @@ -46,7 +46,7 @@ ___ #### Defined in -[src/models/MessageChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L10) +[src/models/MessageChat.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L10) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[src/models/MessageChat.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L9) +[src/models/MessageChat.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L9) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[src/models/MessageChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L12) +[src/models/MessageChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L12) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[src/models/MessageChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L11) +[src/models/MessageChat.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L11) ___ @@ -86,4 +86,4 @@ ___ #### Defined in -[src/models/MessageChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L14) +[src/models/MessageChat.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L14) diff --git a/talawa-api-docs/interfaces/models_Organization.InterfaceOrganization.md b/talawa-api-docs/interfaces/models_Organization.InterfaceOrganization.md index 87b7f641a1..088292fae2 100644 --- a/talawa-api-docs/interfaces/models_Organization.InterfaceOrganization.md +++ b/talawa-api-docs/interfaces/models_Organization.InterfaceOrganization.md @@ -39,7 +39,7 @@ This is an interface that represents a database(MongoDB) document for Organizati #### Defined in -[src/models/Organization.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L12) +[src/models/Organization.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L12) ___ @@ -62,7 +62,7 @@ ___ #### Defined in -[src/models/Organization.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L17) +[src/models/Organization.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L17) ___ @@ -72,7 +72,7 @@ ___ #### Defined in -[src/models/Organization.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L30) +[src/models/Organization.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L30) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[src/models/Organization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L13) +[src/models/Organization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L13) ___ @@ -92,7 +92,7 @@ ___ #### Defined in -[src/models/Organization.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L35) +[src/models/Organization.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L35) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[src/models/Organization.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L37) +[src/models/Organization.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L37) ___ @@ -112,7 +112,7 @@ ___ #### Defined in -[src/models/Organization.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L27) +[src/models/Organization.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L27) ___ @@ -122,7 +122,7 @@ ___ #### Defined in -[src/models/Organization.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L36) +[src/models/Organization.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L36) ___ @@ -132,7 +132,7 @@ ___ #### Defined in -[src/models/Organization.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L16) +[src/models/Organization.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L16) ___ @@ -142,7 +142,7 @@ ___ #### Defined in -[src/models/Organization.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L31) +[src/models/Organization.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L31) ___ @@ -152,7 +152,7 @@ ___ #### Defined in -[src/models/Organization.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L14) +[src/models/Organization.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L14) ___ @@ -162,7 +162,7 @@ ___ #### Defined in -[src/models/Organization.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L29) +[src/models/Organization.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L29) ___ @@ -172,7 +172,7 @@ ___ #### Defined in -[src/models/Organization.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L34) +[src/models/Organization.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L34) ___ @@ -182,7 +182,7 @@ ___ #### Defined in -[src/models/Organization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L15) +[src/models/Organization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L15) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[src/models/Organization.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L33) +[src/models/Organization.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L33) ___ @@ -202,7 +202,7 @@ ___ #### Defined in -[src/models/Organization.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L32) +[src/models/Organization.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L32) ___ @@ -212,7 +212,7 @@ ___ #### Defined in -[src/models/Organization.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L28) +[src/models/Organization.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L28) ___ @@ -222,7 +222,7 @@ ___ #### Defined in -[src/models/Organization.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L38) +[src/models/Organization.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L38) ___ @@ -232,7 +232,7 @@ ___ #### Defined in -[src/models/Organization.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L39) +[src/models/Organization.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L39) ___ @@ -242,4 +242,4 @@ ___ #### Defined in -[src/models/Organization.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L40) +[src/models/Organization.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L40) diff --git a/talawa-api-docs/interfaces/models_OrganizationCustomField.InterfaceOrganizationCustomField.md b/talawa-api-docs/interfaces/models_OrganizationCustomField.InterfaceOrganizationCustomField.md index 01a992df35..74472d8c17 100644 --- a/talawa-api-docs/interfaces/models_OrganizationCustomField.InterfaceOrganizationCustomField.md +++ b/talawa-api-docs/interfaces/models_OrganizationCustomField.InterfaceOrganizationCustomField.md @@ -21,7 +21,7 @@ #### Defined in -[src/models/OrganizationCustomField.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationCustomField.ts#L5) +[src/models/OrganizationCustomField.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationCustomField.ts#L5) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[src/models/OrganizationCustomField.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationCustomField.ts#L8) +[src/models/OrganizationCustomField.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationCustomField.ts#L8) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/models/OrganizationCustomField.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationCustomField.ts#L6) +[src/models/OrganizationCustomField.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationCustomField.ts#L6) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[src/models/OrganizationCustomField.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationCustomField.ts#L7) +[src/models/OrganizationCustomField.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationCustomField.ts#L7) diff --git a/talawa-api-docs/interfaces/models_OrganizationTagUser.InterfaceOrganizationTagUser.md b/talawa-api-docs/interfaces/models_OrganizationTagUser.InterfaceOrganizationTagUser.md index f9f9b88378..b8038a88de 100644 --- a/talawa-api-docs/interfaces/models_OrganizationTagUser.InterfaceOrganizationTagUser.md +++ b/talawa-api-docs/interfaces/models_OrganizationTagUser.InterfaceOrganizationTagUser.md @@ -21,7 +21,7 @@ #### Defined in -[src/models/OrganizationTagUser.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationTagUser.ts#L6) +[src/models/OrganizationTagUser.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationTagUser.ts#L6) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[src/models/OrganizationTagUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationTagUser.ts#L9) +[src/models/OrganizationTagUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationTagUser.ts#L9) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/models/OrganizationTagUser.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationTagUser.ts#L7) +[src/models/OrganizationTagUser.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationTagUser.ts#L7) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[src/models/OrganizationTagUser.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationTagUser.ts#L8) +[src/models/OrganizationTagUser.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationTagUser.ts#L8) diff --git a/talawa-api-docs/interfaces/models_Plugin.InterfacePlugin.md b/talawa-api-docs/interfaces/models_Plugin.InterfacePlugin.md index 22ff551f80..44bb1bbd8a 100644 --- a/talawa-api-docs/interfaces/models_Plugin.InterfacePlugin.md +++ b/talawa-api-docs/interfaces/models_Plugin.InterfacePlugin.md @@ -24,7 +24,7 @@ This is an interface that represents a database(MongoDB) document for Plugin. #### Defined in -[src/models/Plugin.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L7) +[src/models/Plugin.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L7) ___ @@ -34,7 +34,7 @@ ___ #### Defined in -[src/models/Plugin.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L9) +[src/models/Plugin.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L9) ___ @@ -44,7 +44,7 @@ ___ #### Defined in -[src/models/Plugin.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L10) +[src/models/Plugin.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L10) ___ @@ -54,7 +54,7 @@ ___ #### Defined in -[src/models/Plugin.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L8) +[src/models/Plugin.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L8) ___ @@ -64,4 +64,4 @@ ___ #### Defined in -[src/models/Plugin.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L11) +[src/models/Plugin.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L11) diff --git a/talawa-api-docs/interfaces/models_PluginField.InterfacePluginField.md b/talawa-api-docs/interfaces/models_PluginField.InterfacePluginField.md index 8b8bbb6fc1..1d0e02dae1 100644 --- a/talawa-api-docs/interfaces/models_PluginField.InterfacePluginField.md +++ b/talawa-api-docs/interfaces/models_PluginField.InterfacePluginField.md @@ -24,7 +24,7 @@ This is an interface that represents a database(MongoDB) document for Plugin Fie #### Defined in -[src/models/PluginField.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L7) +[src/models/PluginField.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L7) ___ @@ -34,7 +34,7 @@ ___ #### Defined in -[src/models/PluginField.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L11) +[src/models/PluginField.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L11) ___ @@ -44,7 +44,7 @@ ___ #### Defined in -[src/models/PluginField.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L8) +[src/models/PluginField.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L8) ___ @@ -54,7 +54,7 @@ ___ #### Defined in -[src/models/PluginField.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L10) +[src/models/PluginField.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L10) ___ @@ -64,4 +64,4 @@ ___ #### Defined in -[src/models/PluginField.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L9) +[src/models/PluginField.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L9) diff --git a/talawa-api-docs/interfaces/models_Post.InterfacePost.md b/talawa-api-docs/interfaces/models_Post.InterfacePost.md index 3d170a09cf..7c299e784b 100644 --- a/talawa-api-docs/interfaces/models_Post.InterfacePost.md +++ b/talawa-api-docs/interfaces/models_Post.InterfacePost.md @@ -33,7 +33,7 @@ This is an interface that represents a database(MongoDB) document for Post. #### Defined in -[src/models/Post.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L10) +[src/models/Post.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L10) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/Post.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L11) +[src/models/Post.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L11) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[src/models/Post.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L12) +[src/models/Post.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L12) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[src/models/Post.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L13) +[src/models/Post.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L13) ___ @@ -73,7 +73,7 @@ ___ #### Defined in -[src/models/Post.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L14) +[src/models/Post.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L14) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[src/models/Post.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L15) +[src/models/Post.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L15) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[src/models/Post.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L16) +[src/models/Post.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L16) ___ @@ -103,7 +103,7 @@ ___ #### Defined in -[src/models/Post.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L17) +[src/models/Post.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L17) ___ @@ -113,7 +113,7 @@ ___ #### Defined in -[src/models/Post.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L18) +[src/models/Post.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L18) ___ @@ -123,7 +123,7 @@ ___ #### Defined in -[src/models/Post.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L19) +[src/models/Post.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L19) ___ @@ -133,7 +133,7 @@ ___ #### Defined in -[src/models/Post.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L20) +[src/models/Post.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L20) ___ @@ -143,7 +143,7 @@ ___ #### Defined in -[src/models/Post.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L21) +[src/models/Post.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L21) ___ @@ -153,7 +153,7 @@ ___ #### Defined in -[src/models/Post.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L22) +[src/models/Post.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L22) ___ @@ -163,4 +163,4 @@ ___ #### Defined in -[src/models/Post.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L23) +[src/models/Post.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L23) diff --git a/talawa-api-docs/interfaces/models_SampleData.InterfaceSampleData.md b/talawa-api-docs/interfaces/models_SampleData.InterfaceSampleData.md index 08a3b6e9d4..186eee5a80 100644 --- a/talawa-api-docs/interfaces/models_SampleData.InterfaceSampleData.md +++ b/talawa-api-docs/interfaces/models_SampleData.InterfaceSampleData.md @@ -19,7 +19,7 @@ #### Defined in -[src/models/SampleData.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/SampleData.ts#L6) +[src/models/SampleData.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/SampleData.ts#L6) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[src/models/SampleData.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/SampleData.ts#L5) +[src/models/SampleData.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/SampleData.ts#L5) diff --git a/talawa-api-docs/interfaces/models_TagUser.InterfaceTagUser.md b/talawa-api-docs/interfaces/models_TagUser.InterfaceTagUser.md index 1a999909e3..ca8da98ec1 100644 --- a/talawa-api-docs/interfaces/models_TagUser.InterfaceTagUser.md +++ b/talawa-api-docs/interfaces/models_TagUser.InterfaceTagUser.md @@ -20,7 +20,7 @@ #### Defined in -[src/models/TagUser.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/TagUser.ts#L7) +[src/models/TagUser.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/TagUser.ts#L7) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[src/models/TagUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/TagUser.ts#L9) +[src/models/TagUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/TagUser.ts#L9) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[src/models/TagUser.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/TagUser.ts#L8) +[src/models/TagUser.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/TagUser.ts#L8) diff --git a/talawa-api-docs/interfaces/models_User.InterfaceUser.md b/talawa-api-docs/interfaces/models_User.InterfaceUser.md index e765107010..ed055aa344 100644 --- a/talawa-api-docs/interfaces/models_User.InterfaceUser.md +++ b/talawa-api-docs/interfaces/models_User.InterfaceUser.md @@ -49,7 +49,7 @@ This is an interface that represents a database(MongoDB) document for User. #### Defined in -[src/models/User.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L15) +[src/models/User.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L15) ___ @@ -72,7 +72,7 @@ ___ #### Defined in -[src/models/User.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L16) +[src/models/User.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L16) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[src/models/User.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L26) +[src/models/User.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L26) ___ @@ -92,7 +92,7 @@ ___ #### Defined in -[src/models/User.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L27) +[src/models/User.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L27) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[src/models/User.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L28) +[src/models/User.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L28) ___ @@ -112,7 +112,7 @@ ___ #### Defined in -[src/models/User.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L29) +[src/models/User.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L29) ___ @@ -122,7 +122,7 @@ ___ #### Defined in -[src/models/User.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L30) +[src/models/User.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L30) ___ @@ -132,7 +132,7 @@ ___ #### Defined in -[src/models/User.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L31) +[src/models/User.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L31) ___ @@ -142,7 +142,7 @@ ___ #### Defined in -[src/models/User.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L32) +[src/models/User.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L32) ___ @@ -152,7 +152,7 @@ ___ #### Defined in -[src/models/User.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L33) +[src/models/User.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L33) ___ @@ -162,7 +162,7 @@ ___ #### Defined in -[src/models/User.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L34) +[src/models/User.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L34) ___ @@ -172,7 +172,7 @@ ___ #### Defined in -[src/models/User.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L35) +[src/models/User.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L35) ___ @@ -182,7 +182,7 @@ ___ #### Defined in -[src/models/User.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L36) +[src/models/User.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L36) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[src/models/User.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L37) +[src/models/User.ts:37](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L37) ___ @@ -202,7 +202,7 @@ ___ #### Defined in -[src/models/User.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L38) +[src/models/User.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L38) ___ @@ -212,7 +212,7 @@ ___ #### Defined in -[src/models/User.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L39) +[src/models/User.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L39) ___ @@ -222,7 +222,7 @@ ___ #### Defined in -[src/models/User.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L40) +[src/models/User.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L40) ___ @@ -232,7 +232,7 @@ ___ #### Defined in -[src/models/User.ts:41](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L41) +[src/models/User.ts:41](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L41) ___ @@ -242,7 +242,7 @@ ___ #### Defined in -[src/models/User.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L42) +[src/models/User.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L42) ___ @@ -252,7 +252,7 @@ ___ #### Defined in -[src/models/User.ts:43](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L43) +[src/models/User.ts:43](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L43) ___ @@ -262,7 +262,7 @@ ___ #### Defined in -[src/models/User.ts:44](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L44) +[src/models/User.ts:44](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L44) ___ @@ -272,7 +272,7 @@ ___ #### Defined in -[src/models/User.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L45) +[src/models/User.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L45) ___ @@ -290,7 +290,7 @@ ___ #### Defined in -[src/models/User.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L46) +[src/models/User.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L46) ___ @@ -300,7 +300,7 @@ ___ #### Defined in -[src/models/User.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L51) +[src/models/User.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L51) ___ @@ -310,7 +310,7 @@ ___ #### Defined in -[src/models/User.ts:52](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L52) +[src/models/User.ts:52](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L52) ___ @@ -320,7 +320,7 @@ ___ #### Defined in -[src/models/User.ts:53](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L53) +[src/models/User.ts:53](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L53) ___ @@ -330,7 +330,7 @@ ___ #### Defined in -[src/models/User.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L54) +[src/models/User.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L54) ___ @@ -340,7 +340,7 @@ ___ #### Defined in -[src/models/User.ts:55](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L55) +[src/models/User.ts:55](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L55) ___ @@ -350,7 +350,7 @@ ___ #### Defined in -[src/models/User.ts:56](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L56) +[src/models/User.ts:56](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L56) ___ @@ -360,4 +360,4 @@ ___ #### Defined in -[src/models/User.ts:57](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L57) +[src/models/User.ts:57](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L57) diff --git a/talawa-api-docs/interfaces/models_UserCustomData.InterfaceUserCustomData.md b/talawa-api-docs/interfaces/models_UserCustomData.InterfaceUserCustomData.md index 377adc3313..39c1c5a010 100644 --- a/talawa-api-docs/interfaces/models_UserCustomData.InterfaceUserCustomData.md +++ b/talawa-api-docs/interfaces/models_UserCustomData.InterfaceUserCustomData.md @@ -23,7 +23,7 @@ This is an interface representing a document for custom field in the database(Mo #### Defined in -[src/models/UserCustomData.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/UserCustomData.ts#L8) +[src/models/UserCustomData.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/UserCustomData.ts#L8) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/models/UserCustomData.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/UserCustomData.ts#L9) +[src/models/UserCustomData.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/UserCustomData.ts#L9) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/models/UserCustomData.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/UserCustomData.ts#L11) +[src/models/UserCustomData.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/UserCustomData.ts#L11) ___ @@ -53,4 +53,4 @@ ___ #### Defined in -[src/models/UserCustomData.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/UserCustomData.ts#L10) +[src/models/UserCustomData.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/UserCustomData.ts#L10) diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.AnyScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.AnyScalarConfig.md index 7dce32c039..bb3921dbf4 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.AnyScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.AnyScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2236](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2236) +[src/types/generatedGraphQLTypes.ts:2237](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2237) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.CountryCodeScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.CountryCodeScalarConfig.md index 63eee5fb6c..1916017cba 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.CountryCodeScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.CountryCodeScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2291](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2291) +[src/types/generatedGraphQLTypes.ts:2292](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2292) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateScalarConfig.md index 84aaea92e9..a8de4a8997 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2295](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2295) +[src/types/generatedGraphQLTypes.ts:2296](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2296) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateTimeScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateTimeScalarConfig.md index 5e63149e93..f2dedc55ed 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateTimeScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.DateTimeScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2299](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2299) +[src/types/generatedGraphQLTypes.ts:2300](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2300) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.EmailAddressScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.EmailAddressScalarConfig.md index 38a5d84f0d..3de51e491e 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.EmailAddressScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.EmailAddressScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2343](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2343) +[src/types/generatedGraphQLTypes.ts:2344](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2344) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.JsonScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.JsonScalarConfig.md index 47c1ed9415..dd7373e8b5 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.JsonScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.JsonScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2441](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2441) +[src/types/generatedGraphQLTypes.ts:2442](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2442) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LatitudeScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LatitudeScalarConfig.md index 87e2756fe2..189851d5f5 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LatitudeScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LatitudeScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2462](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2462) +[src/types/generatedGraphQLTypes.ts:2463](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2463) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LongitudeScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LongitudeScalarConfig.md index 4165319f74..42c8fd2d38 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LongitudeScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.LongitudeScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2466](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2466) +[src/types/generatedGraphQLTypes.ts:2467](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2467) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PhoneNumberScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PhoneNumberScalarConfig.md index 9f6c9046f7..89941bac68 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PhoneNumberScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PhoneNumberScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2671](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2671) +[src/types/generatedGraphQLTypes.ts:2672](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2672) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PositiveIntScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PositiveIntScalarConfig.md index 1939a9e2a4..2d3991ee02 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PositiveIntScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.PositiveIntScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2692](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2692) +[src/types/generatedGraphQLTypes.ts:2693](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2693) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionResolverObject.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionResolverObject.md index ba9aaabb2e..45ff88c4ad 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionResolverObject.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionResolverObject.md @@ -28,7 +28,7 @@ #### Defined in -[src/types/generatedGraphQLTypes.ts:1895](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1895) +[src/types/generatedGraphQLTypes.ts:1896](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1896) ___ @@ -38,4 +38,4 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1894](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1894) +[src/types/generatedGraphQLTypes.ts:1895](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1895) diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionSubscriberObject.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionSubscriberObject.md index abefdcf1b0..3500d2f04a 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionSubscriberObject.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.SubscriptionSubscriberObject.md @@ -29,7 +29,7 @@ #### Defined in -[src/types/generatedGraphQLTypes.ts:1890](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1890) +[src/types/generatedGraphQLTypes.ts:1891](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1891) ___ @@ -39,4 +39,4 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1889](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1889) +[src/types/generatedGraphQLTypes.ts:1890](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1890) diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.TimeScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.TimeScalarConfig.md index 24d36e6496..44795ba0dd 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.TimeScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.TimeScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2764](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2764) +[src/types/generatedGraphQLTypes.ts:2765](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2765) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UploadScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UploadScalarConfig.md index c67c10dead..7f479b08bd 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UploadScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UploadScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2795](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2795) +[src/types/generatedGraphQLTypes.ts:2796](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2796) ___ diff --git a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UrlScalarConfig.md b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UrlScalarConfig.md index 5b3a96aee6..64cfa31153 100644 --- a/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UrlScalarConfig.md +++ b/talawa-api-docs/interfaces/types_generatedGraphQLTypes.UrlScalarConfig.md @@ -92,7 +92,7 @@ GraphQLScalarTypeConfig.name #### Defined in -[src/types/generatedGraphQLTypes.ts:2776](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2776) +[src/types/generatedGraphQLTypes.ts:2777](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2777) ___ diff --git a/talawa-api-docs/interfaces/utilities_auth.InterfaceJwtTokenPayload.md b/talawa-api-docs/interfaces/utilities_auth.InterfaceJwtTokenPayload.md index 52fe112d6e..154c3115de 100644 --- a/talawa-api-docs/interfaces/utilities_auth.InterfaceJwtTokenPayload.md +++ b/talawa-api-docs/interfaces/utilities_auth.InterfaceJwtTokenPayload.md @@ -22,7 +22,7 @@ #### Defined in -[src/utilities/auth.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L11) +[src/utilities/auth.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L11) ___ @@ -32,7 +32,7 @@ ___ #### Defined in -[src/utilities/auth.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L9) +[src/utilities/auth.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L9) ___ @@ -42,7 +42,7 @@ ___ #### Defined in -[src/utilities/auth.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L10) +[src/utilities/auth.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L10) ___ @@ -52,7 +52,7 @@ ___ #### Defined in -[src/utilities/auth.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L7) +[src/utilities/auth.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L7) ___ @@ -62,4 +62,4 @@ ___ #### Defined in -[src/utilities/auth.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L8) +[src/utilities/auth.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L8) diff --git a/talawa-api-docs/interfaces/utilities_mailer.InterfaceMailFields.md b/talawa-api-docs/interfaces/utilities_mailer.InterfaceMailFields.md index e1195ac82a..50bf27bcb8 100644 --- a/talawa-api-docs/interfaces/utilities_mailer.InterfaceMailFields.md +++ b/talawa-api-docs/interfaces/utilities_mailer.InterfaceMailFields.md @@ -20,7 +20,7 @@ #### Defined in -[src/utilities/mailer.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/mailer.ts#L14) +[src/utilities/mailer.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/mailer.ts#L14) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[src/utilities/mailer.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/mailer.ts#L12) +[src/utilities/mailer.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/mailer.ts#L12) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[src/utilities/mailer.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/mailer.ts#L13) +[src/utilities/mailer.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/mailer.ts#L13) diff --git a/talawa-api-docs/modules/app.md b/talawa-api-docs/modules/app.md index deed00d6f8..39a0f026e2 100644 --- a/talawa-api-docs/modules/app.md +++ b/talawa-api-docs/modules/app.md @@ -30,7 +30,7 @@ third argument. #### Defined in -[src/app.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/app.ts#L15) +[src/app.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/app.ts#L15) ▸ **default**(`req`, `res`, `next`): `void` @@ -48,4 +48,4 @@ third argument. #### Defined in -[src/app.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/app.ts#L15) +[src/app.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/app.ts#L15) diff --git a/talawa-api-docs/modules/checks.md b/talawa-api-docs/modules/checks.md index 4e51ecb6a9..bc149637d7 100644 --- a/talawa-api-docs/modules/checks.md +++ b/talawa-api-docs/modules/checks.md @@ -20,4 +20,4 @@ #### Defined in -[src/checks.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/checks.ts#L27) +[src/checks.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/checks.ts#L27) diff --git a/talawa-api-docs/modules/config_appConfig.md b/talawa-api-docs/modules/config_appConfig.md index 39d45abe77..3d0a540e1b 100644 --- a/talawa-api-docs/modules/config_appConfig.md +++ b/talawa-api-docs/modules/config_appConfig.md @@ -26,4 +26,4 @@ #### Defined in -[src/config/appConfig.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/config/appConfig.ts#L1) +[src/config/appConfig.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/config/appConfig.ts#L1) diff --git a/talawa-api-docs/modules/config_plugins_loadPlugins.md b/talawa-api-docs/modules/config_plugins_loadPlugins.md index 72e52c38e9..1bdbb395d0 100644 --- a/talawa-api-docs/modules/config_plugins_loadPlugins.md +++ b/talawa-api-docs/modules/config_plugins_loadPlugins.md @@ -20,4 +20,4 @@ #### Defined in -[src/config/plugins/loadPlugins.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/config/plugins/loadPlugins.ts#L7) +[src/config/plugins/loadPlugins.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/config/plugins/loadPlugins.ts#L7) diff --git a/talawa-api-docs/modules/constants.md b/talawa-api-docs/modules/constants.md index c54656ba24..28c4947b15 100644 --- a/talawa-api-docs/modules/constants.md +++ b/talawa-api-docs/modules/constants.md @@ -55,7 +55,9 @@ - [ORGANIZATION\_MEMBER\_NOT\_FOUND\_ERROR](constants.md#organization_member_not_found_error) - [ORGANIZATION\_NOT\_AUTHORIZED\_ERROR](constants.md#organization_not_authorized_error) - [ORGANIZATION\_NOT\_FOUND\_ERROR](constants.md#organization_not_found_error) +- [PLEASE\_PROVIDE\_TITLE](constants.md#please_provide_title) - [PLUGIN\_NOT\_FOUND](constants.md#plugin_not_found) +- [POST\_NEEDS\_TO\_BE\_PINNED](constants.md#post_needs_to_be_pinned) - [POST\_NOT\_FOUND\_ERROR](constants.md#post_not_found_error) - [RECAPTCHA\_SECRET\_KEY](constants.md#recaptcha_secret_key) - [REDIS\_HOST](constants.md#redis_host) @@ -109,7 +111,7 @@ #### Defined in -[src/constants.ts:449](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L449) +[src/constants.ts:461](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L461) ___ @@ -127,7 +129,7 @@ ___ #### Defined in -[src/constants.ts:227](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L227) +[src/constants.ts:227](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L227) ___ @@ -145,7 +147,7 @@ ___ #### Defined in -[src/constants.ts:220](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L220) +[src/constants.ts:220](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L220) ___ @@ -163,7 +165,7 @@ ___ #### Defined in -[src/constants.ts:208](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L208) +[src/constants.ts:208](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L208) ___ @@ -181,7 +183,7 @@ ___ #### Defined in -[src/constants.ts:214](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L214) +[src/constants.ts:214](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L214) ___ @@ -200,7 +202,7 @@ ___ #### Defined in -[src/constants.ts:301](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L301) +[src/constants.ts:313](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L313) ___ @@ -210,7 +212,7 @@ ___ #### Defined in -[src/constants.ts:447](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L447) +[src/constants.ts:459](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L459) ___ @@ -229,7 +231,7 @@ ___ #### Defined in -[src/constants.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L10) +[src/constants.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L10) ___ @@ -248,7 +250,7 @@ ___ #### Defined in -[src/constants.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L16) +[src/constants.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L16) ___ @@ -266,7 +268,7 @@ ___ #### Defined in -[src/constants.ts:421](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L421) +[src/constants.ts:433](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L433) ___ @@ -284,7 +286,7 @@ ___ #### Defined in -[src/constants.ts:433](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L433) +[src/constants.ts:445](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L445) ___ @@ -302,7 +304,7 @@ ___ #### Defined in -[src/constants.ts:427](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L427) +[src/constants.ts:439](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L439) ___ @@ -320,7 +322,7 @@ ___ #### Defined in -[src/constants.ts:439](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L439) +[src/constants.ts:451](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L451) ___ @@ -339,7 +341,7 @@ ___ #### Defined in -[src/constants.ts:387](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L387) +[src/constants.ts:399](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L399) ___ @@ -357,7 +359,7 @@ ___ #### Defined in -[src/constants.ts:128](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L128) +[src/constants.ts:128](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L128) ___ @@ -367,7 +369,7 @@ ___ #### Defined in -[src/constants.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L22) +[src/constants.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L22) ___ @@ -386,7 +388,7 @@ ___ #### Defined in -[src/constants.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L23) +[src/constants.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L23) ___ @@ -404,7 +406,7 @@ ___ #### Defined in -[src/constants.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L30) +[src/constants.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L30) ___ @@ -422,7 +424,7 @@ ___ #### Defined in -[src/constants.ts:140](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L140) +[src/constants.ts:140](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L140) ___ @@ -440,7 +442,7 @@ ___ #### Defined in -[src/constants.ts:260](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L260) +[src/constants.ts:272](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L272) ___ @@ -458,7 +460,7 @@ ___ #### Defined in -[src/constants.ts:307](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L307) +[src/constants.ts:319](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L319) ___ @@ -476,7 +478,7 @@ ___ #### Defined in -[src/constants.ts:116](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L116) +[src/constants.ts:116](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L116) ___ @@ -495,7 +497,7 @@ ___ #### Defined in -[src/constants.ts:367](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L367) +[src/constants.ts:379](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L379) ___ @@ -513,7 +515,7 @@ ___ #### Defined in -[src/constants.ts:97](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L97) +[src/constants.ts:97](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L97) ___ @@ -523,7 +525,7 @@ ___ #### Defined in -[src/constants.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L36) +[src/constants.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L36) ___ @@ -542,7 +544,7 @@ ___ #### Defined in -[src/constants.ts:373](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L373) +[src/constants.ts:385](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L385) ___ @@ -561,7 +563,7 @@ ___ #### Defined in -[src/constants.ts:103](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L103) +[src/constants.ts:103](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L103) ___ @@ -579,7 +581,7 @@ ___ #### Defined in -[src/constants.ts:253](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L253) +[src/constants.ts:265](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L265) ___ @@ -589,7 +591,7 @@ ___ #### Defined in -[src/constants.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L38) +[src/constants.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L38) ___ @@ -599,7 +601,7 @@ ___ #### Defined in -[src/constants.ts:461](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L461) +[src/constants.ts:473](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L473) ___ @@ -617,7 +619,7 @@ ___ #### Defined in -[src/constants.ts:147](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L147) +[src/constants.ts:147](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L147) ___ @@ -627,7 +629,7 @@ ___ #### Defined in -[src/constants.ts:480](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L480) +[src/constants.ts:492](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L492) ___ @@ -637,7 +639,7 @@ ___ #### Defined in -[src/constants.ts:482](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L482) +[src/constants.ts:494](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L494) ___ @@ -647,7 +649,7 @@ ___ #### Defined in -[src/constants.ts:459](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L459) +[src/constants.ts:471](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L471) ___ @@ -657,7 +659,7 @@ ___ #### Defined in -[src/constants.ts:457](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L457) +[src/constants.ts:469](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L469) ___ @@ -667,7 +669,7 @@ ___ #### Defined in -[src/constants.ts:445](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L445) +[src/constants.ts:457](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L457) ___ @@ -677,7 +679,7 @@ ___ #### Defined in -[src/constants.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L51) +[src/constants.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L51) ___ @@ -696,7 +698,7 @@ ___ #### Defined in -[src/constants.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L45) +[src/constants.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L45) ___ @@ -715,7 +717,7 @@ ___ #### Defined in -[src/constants.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L39) +[src/constants.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L39) ___ @@ -725,7 +727,7 @@ ___ #### Defined in -[src/constants.ts:453](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L453) +[src/constants.ts:465](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L465) ___ @@ -743,7 +745,7 @@ ___ #### Defined in -[src/constants.ts:266](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L266) +[src/constants.ts:278](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L278) ___ @@ -762,7 +764,7 @@ ___ #### Defined in -[src/constants.ts:72](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L72) +[src/constants.ts:72](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L72) ___ @@ -781,7 +783,7 @@ ___ #### Defined in -[src/constants.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L54) +[src/constants.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L54) ___ @@ -800,7 +802,7 @@ ___ #### Defined in -[src/constants.ts:60](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L60) +[src/constants.ts:60](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L60) ___ @@ -819,7 +821,25 @@ ___ #### Defined in -[src/constants.ts:66](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L66) +[src/constants.ts:66](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L66) + +___ + +### PLEASE\_PROVIDE\_TITLE + +• `Const` **PLEASE\_PROVIDE\_TITLE**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `CODE` | `string` | +| `MESSAGE` | `string` | +| `PARAM` | `string` | + +#### Defined in + +[src/constants.ts:239](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L239) ___ @@ -838,7 +858,25 @@ ___ #### Defined in -[src/constants.ts:78](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L78) +[src/constants.ts:78](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L78) + +___ + +### POST\_NEEDS\_TO\_BE\_PINNED + +• `Const` **POST\_NEEDS\_TO\_BE\_PINNED**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `CODE` | `string` | +| `MESSAGE` | `string` | +| `PARAM` | `string` | + +#### Defined in + +[src/constants.ts:233](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L233) ___ @@ -857,7 +895,7 @@ ___ #### Defined in -[src/constants.ts:84](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L84) +[src/constants.ts:84](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L84) ___ @@ -867,7 +905,7 @@ ___ #### Defined in -[src/constants.ts:455](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L455) +[src/constants.ts:467](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L467) ___ @@ -877,7 +915,7 @@ ___ #### Defined in -[src/constants.ts:473](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L473) +[src/constants.ts:485](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L485) ___ @@ -887,7 +925,7 @@ ___ #### Defined in -[src/constants.ts:475](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L475) +[src/constants.ts:487](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L487) ___ @@ -897,7 +935,7 @@ ___ #### Defined in -[src/constants.ts:474](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L474) +[src/constants.ts:486](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L486) ___ @@ -907,7 +945,7 @@ ___ #### Defined in -[src/constants.ts:451](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L451) +[src/constants.ts:463](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L463) ___ @@ -925,7 +963,7 @@ ___ #### Defined in -[src/constants.ts:153](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L153) +[src/constants.ts:153](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L153) ___ @@ -944,7 +982,7 @@ ___ #### Defined in -[src/constants.ts:90](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L90) +[src/constants.ts:90](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L90) ___ @@ -962,7 +1000,7 @@ ___ #### Defined in -[src/constants.ts:110](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L110) +[src/constants.ts:110](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L110) ___ @@ -981,7 +1019,7 @@ ___ #### Defined in -[src/constants.ts:414](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L414) +[src/constants.ts:426](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L426) ___ @@ -1002,7 +1040,7 @@ ___ #### Defined in -[src/constants.ts:464](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L464) +[src/constants.ts:476](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L476) ___ @@ -1020,7 +1058,7 @@ ___ #### Defined in -[src/constants.ts:134](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L134) +[src/constants.ts:134](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L134) ___ @@ -1030,7 +1068,7 @@ ___ #### Defined in -[src/constants.ts:312](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L312) +[src/constants.ts:324](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L324) ___ @@ -1048,7 +1086,7 @@ ___ #### Defined in -[src/constants.ts:355](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L355) +[src/constants.ts:367](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L367) ___ @@ -1066,7 +1104,7 @@ ___ #### Defined in -[src/constants.ts:273](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L273) +[src/constants.ts:285](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L285) ___ @@ -1084,7 +1122,7 @@ ___ #### Defined in -[src/constants.ts:240](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L240) +[src/constants.ts:252](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L252) ___ @@ -1103,7 +1141,7 @@ ___ #### Defined in -[src/constants.ts:361](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L361) +[src/constants.ts:373](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L373) ___ @@ -1121,7 +1159,7 @@ ___ #### Defined in -[src/constants.ts:122](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L122) +[src/constants.ts:122](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L122) ___ @@ -1131,7 +1169,7 @@ ___ #### Defined in -[src/constants.ts:314](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L314) +[src/constants.ts:326](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L326) ___ @@ -1149,7 +1187,7 @@ ___ #### Defined in -[src/constants.ts:408](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L408) +[src/constants.ts:420](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L420) ___ @@ -1167,7 +1205,7 @@ ___ #### Defined in -[src/constants.ts:287](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L287) +[src/constants.ts:299](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L299) ___ @@ -1186,7 +1224,7 @@ ___ #### Defined in -[src/constants.ts:319](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L319) +[src/constants.ts:331](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L331) ___ @@ -1204,7 +1242,7 @@ ___ #### Defined in -[src/constants.ts:171](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L171) +[src/constants.ts:171](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L171) ___ @@ -1223,7 +1261,7 @@ ___ #### Defined in -[src/constants.ts:325](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L325) +[src/constants.ts:337](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L337) ___ @@ -1241,7 +1279,7 @@ ___ #### Defined in -[src/constants.ts:195](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L195) +[src/constants.ts:195](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L195) ___ @@ -1259,7 +1297,7 @@ ___ #### Defined in -[src/constants.ts:246](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L246) +[src/constants.ts:258](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L258) ___ @@ -1277,7 +1315,7 @@ ___ #### Defined in -[src/constants.ts:294](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L294) +[src/constants.ts:306](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L306) ___ @@ -1295,7 +1333,7 @@ ___ #### Defined in -[src/constants.ts:165](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L165) +[src/constants.ts:165](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L165) ___ @@ -1314,7 +1352,7 @@ ___ #### Defined in -[src/constants.ts:331](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L331) +[src/constants.ts:343](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L343) ___ @@ -1332,7 +1370,7 @@ ___ #### Defined in -[src/constants.ts:159](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L159) +[src/constants.ts:159](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L159) ___ @@ -1350,7 +1388,7 @@ ___ #### Defined in -[src/constants.ts:280](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L280) +[src/constants.ts:292](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L292) ___ @@ -1368,7 +1406,7 @@ ___ #### Defined in -[src/constants.ts:233](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L233) +[src/constants.ts:245](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L245) ___ @@ -1386,7 +1424,7 @@ ___ #### Defined in -[src/constants.ts:183](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L183) +[src/constants.ts:183](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L183) ___ @@ -1405,7 +1443,7 @@ ___ #### Defined in -[src/constants.ts:337](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L337) +[src/constants.ts:349](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L349) ___ @@ -1424,7 +1462,7 @@ ___ #### Defined in -[src/constants.ts:343](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L343) +[src/constants.ts:355](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L355) ___ @@ -1442,7 +1480,7 @@ ___ #### Defined in -[src/constants.ts:189](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L189) +[src/constants.ts:189](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L189) ___ @@ -1460,7 +1498,7 @@ ___ #### Defined in -[src/constants.ts:177](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L177) +[src/constants.ts:177](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L177) ___ @@ -1479,7 +1517,7 @@ ___ #### Defined in -[src/constants.ts:380](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L380) +[src/constants.ts:392](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L392) ___ @@ -1497,7 +1535,7 @@ ___ #### Defined in -[src/constants.ts:201](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L201) +[src/constants.ts:201](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L201) ___ @@ -1516,7 +1554,7 @@ ___ #### Defined in -[src/constants.ts:349](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L349) +[src/constants.ts:361](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L361) ___ @@ -1535,7 +1573,7 @@ ___ #### Defined in -[src/constants.ts:394](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L394) +[src/constants.ts:406](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L406) ___ @@ -1554,7 +1592,7 @@ ___ #### Defined in -[src/constants.ts:401](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L401) +[src/constants.ts:413](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L413) ___ @@ -1564,7 +1602,7 @@ ___ #### Defined in -[src/constants.ts:478](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L478) +[src/constants.ts:490](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L490) ___ @@ -1574,4 +1612,4 @@ ___ #### Defined in -[src/constants.ts:477](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/constants.ts#L477) +[src/constants.ts:489](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/constants.ts#L489) diff --git a/talawa-api-docs/modules/db.md b/talawa-api-docs/modules/db.md index 620561c975..68b0e38918 100644 --- a/talawa-api-docs/modules/db.md +++ b/talawa-api-docs/modules/db.md @@ -21,7 +21,7 @@ #### Defined in -[src/db.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/db.ts#L5) +[src/db.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/db.ts#L5) ## Functions @@ -35,7 +35,7 @@ #### Defined in -[src/db.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/db.ts#L7) +[src/db.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/db.ts#L7) ___ @@ -49,4 +49,4 @@ ___ #### Defined in -[src/db.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/db.ts#L50) +[src/db.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/db.ts#L50) diff --git a/talawa-api-docs/modules/directives_directiveTransformer_authDirectiveTransformer.md b/talawa-api-docs/modules/directives_directiveTransformer_authDirectiveTransformer.md index 764e3775b2..fae50d5781 100644 --- a/talawa-api-docs/modules/directives_directiveTransformer_authDirectiveTransformer.md +++ b/talawa-api-docs/modules/directives_directiveTransformer_authDirectiveTransformer.md @@ -27,4 +27,4 @@ #### Defined in -[src/directives/directiveTransformer/authDirectiveTransformer.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/directives/directiveTransformer/authDirectiveTransformer.ts#L6) +[src/directives/directiveTransformer/authDirectiveTransformer.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/directives/directiveTransformer/authDirectiveTransformer.ts#L6) diff --git a/talawa-api-docs/modules/directives_directiveTransformer_roleDirectiveTransformer.md b/talawa-api-docs/modules/directives_directiveTransformer_roleDirectiveTransformer.md index ccb9c1df95..c7d0604881 100644 --- a/talawa-api-docs/modules/directives_directiveTransformer_roleDirectiveTransformer.md +++ b/talawa-api-docs/modules/directives_directiveTransformer_roleDirectiveTransformer.md @@ -27,4 +27,4 @@ #### Defined in -[src/directives/directiveTransformer/roleDirectiveTransformer.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/directives/directiveTransformer/roleDirectiveTransformer.ts#L11) +[src/directives/directiveTransformer/roleDirectiveTransformer.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/directives/directiveTransformer/roleDirectiveTransformer.ts#L11) diff --git a/talawa-api-docs/modules/env.md b/talawa-api-docs/modules/env.md index 9b09628362..b276c2b0ba 100644 --- a/talawa-api-docs/modules/env.md +++ b/talawa-api-docs/modules/env.md @@ -20,7 +20,7 @@ #### Defined in -[src/env.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/env.ts#L3) +[src/env.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/env.ts#L3) ## Functions @@ -34,4 +34,4 @@ #### Defined in -[src/env.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/env.ts#L36) +[src/env.ts:36](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/env.ts#L36) diff --git a/talawa-api-docs/modules/helpers_eventInstances_once.md b/talawa-api-docs/modules/helpers_eventInstances_once.md index 0e998409d1..55f28ed508 100644 --- a/talawa-api-docs/modules/helpers_eventInstances_once.md +++ b/talawa-api-docs/modules/helpers_eventInstances_once.md @@ -29,4 +29,4 @@ #### Defined in -[src/helpers/eventInstances/once.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/helpers/eventInstances/once.ts#L10) +[src/helpers/eventInstances/once.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/helpers/eventInstances/once.ts#L10) diff --git a/talawa-api-docs/modules/helpers_eventInstances_weekly.md b/talawa-api-docs/modules/helpers_eventInstances_weekly.md index 4af2600017..7c403d3573 100644 --- a/talawa-api-docs/modules/helpers_eventInstances_weekly.md +++ b/talawa-api-docs/modules/helpers_eventInstances_weekly.md @@ -29,4 +29,4 @@ #### Defined in -[src/helpers/eventInstances/weekly.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/helpers/eventInstances/weekly.ts#L18) +[src/helpers/eventInstances/weekly.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/helpers/eventInstances/weekly.ts#L18) diff --git a/talawa-api-docs/modules/index.md b/talawa-api-docs/modules/index.md index 6f850dcb5d..0571b093c0 100644 --- a/talawa-api-docs/modules/index.md +++ b/talawa-api-docs/modules/index.md @@ -16,4 +16,4 @@ #### Defined in -[src/index.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/index.ts#L25) +[src/index.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/index.ts#L25) diff --git a/talawa-api-docs/modules/libraries_dbLogger.md b/talawa-api-docs/modules/libraries_dbLogger.md index 80b1450ea1..97837b391f 100644 --- a/talawa-api-docs/modules/libraries_dbLogger.md +++ b/talawa-api-docs/modules/libraries_dbLogger.md @@ -39,7 +39,7 @@ #### Defined in -[src/libraries/dbLogger.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/dbLogger.ts#L5) +[src/libraries/dbLogger.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/dbLogger.ts#L5) ## Variables @@ -49,7 +49,7 @@ #### Defined in -[src/libraries/dbLogger.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/dbLogger.ts#L13) +[src/libraries/dbLogger.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/dbLogger.ts#L13) ## Functions @@ -76,4 +76,4 @@ #### Defined in -[src/libraries/dbLogger.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/dbLogger.ts#L40) +[src/libraries/dbLogger.ts:40](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/dbLogger.ts#L40) diff --git a/talawa-api-docs/modules/libraries_logger.md b/talawa-api-docs/modules/libraries_logger.md index 9254c157cd..139d9fabfd 100644 --- a/talawa-api-docs/modules/libraries_logger.md +++ b/talawa-api-docs/modules/libraries_logger.md @@ -17,7 +17,7 @@ #### Defined in -[src/libraries/logger.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/logger.ts#L42) +[src/libraries/logger.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/logger.ts#L42) ___ @@ -33,4 +33,4 @@ ___ #### Defined in -[src/libraries/logger.ts:55](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/logger.ts#L55) +[src/libraries/logger.ts:55](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/logger.ts#L55) diff --git a/talawa-api-docs/modules/libraries_requestContext.md b/talawa-api-docs/modules/libraries_requestContext.md index 46158951b6..fcaf9fb4c3 100644 --- a/talawa-api-docs/modules/libraries_requestContext.md +++ b/talawa-api-docs/modules/libraries_requestContext.md @@ -26,7 +26,7 @@ #### Defined in -[src/libraries/requestContext.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L8) +[src/libraries/requestContext.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L8) ## Functions @@ -52,7 +52,7 @@ #### Defined in -[src/libraries/requestContext.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L19) +[src/libraries/requestContext.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L19) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/libraries/requestContext.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L45) +[src/libraries/requestContext.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L45) ___ @@ -106,7 +106,7 @@ ___ #### Defined in -[src/libraries/requestContext.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L28) +[src/libraries/requestContext.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L28) ___ @@ -126,7 +126,7 @@ ___ #### Defined in -[src/libraries/requestContext.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L23) +[src/libraries/requestContext.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L23) ___ @@ -153,7 +153,7 @@ ___ #### Defined in -[src/libraries/requestContext.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L14) +[src/libraries/requestContext.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L14) ___ @@ -173,7 +173,7 @@ ___ #### Defined in -[src/libraries/requestContext.ts:62](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L62) +[src/libraries/requestContext.ts:62](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L62) ___ @@ -193,4 +193,4 @@ ___ #### Defined in -[src/libraries/requestContext.ts:71](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestContext.ts#L71) +[src/libraries/requestContext.ts:71](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestContext.ts#L71) diff --git a/talawa-api-docs/modules/libraries_requestTracing.md b/talawa-api-docs/modules/libraries_requestTracing.md index 5f63ec34bb..dbb30a0e54 100644 --- a/talawa-api-docs/modules/libraries_requestTracing.md +++ b/talawa-api-docs/modules/libraries_requestTracing.md @@ -24,7 +24,7 @@ #### Defined in -[src/libraries/requestTracing.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L17) +[src/libraries/requestTracing.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L17) ___ @@ -34,7 +34,7 @@ ___ #### Defined in -[src/libraries/requestTracing.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L21) +[src/libraries/requestTracing.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L21) ## Functions @@ -48,7 +48,7 @@ ___ #### Defined in -[src/libraries/requestTracing.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L29) +[src/libraries/requestTracing.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L29) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[src/libraries/requestTracing.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L33) +[src/libraries/requestTracing.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L33) ___ @@ -96,7 +96,7 @@ ___ #### Defined in -[src/libraries/requestTracing.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L25) +[src/libraries/requestTracing.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L25) ___ @@ -123,4 +123,4 @@ ___ #### Defined in -[src/libraries/requestTracing.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/requestTracing.ts#L50) +[src/libraries/requestTracing.ts:50](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/requestTracing.ts#L50) diff --git a/talawa-api-docs/modules/libraries_validators_compareDates.md b/talawa-api-docs/modules/libraries_validators_compareDates.md index aafb2fe55c..ed9f2ecf6d 100644 --- a/talawa-api-docs/modules/libraries_validators_compareDates.md +++ b/talawa-api-docs/modules/libraries_validators_compareDates.md @@ -27,4 +27,4 @@ #### Defined in -[src/libraries/validators/compareDates.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/validators/compareDates.ts#L1) +[src/libraries/validators/compareDates.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/validators/compareDates.ts#L1) diff --git a/talawa-api-docs/modules/libraries_validators_validatePaginationArgs.md b/talawa-api-docs/modules/libraries_validators_validatePaginationArgs.md index acf03b4c7f..878b9c8f6c 100644 --- a/talawa-api-docs/modules/libraries_validators_validatePaginationArgs.md +++ b/talawa-api-docs/modules/libraries_validators_validatePaginationArgs.md @@ -26,4 +26,4 @@ #### Defined in -[src/libraries/validators/validatePaginationArgs.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/validators/validatePaginationArgs.ts#L7) +[src/libraries/validators/validatePaginationArgs.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/validators/validatePaginationArgs.ts#L7) diff --git a/talawa-api-docs/modules/libraries_validators_validateString.md b/talawa-api-docs/modules/libraries_validators_validateString.md index a6db46086b..02d2fea798 100644 --- a/talawa-api-docs/modules/libraries_validators_validateString.md +++ b/talawa-api-docs/modules/libraries_validators_validateString.md @@ -31,4 +31,4 @@ #### Defined in -[src/libraries/validators/validateString.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/libraries/validators/validateString.ts#L1) +[src/libraries/validators/validateString.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/libraries/validators/validateString.ts#L1) diff --git a/talawa-api-docs/modules/middleware_isAuth.md b/talawa-api-docs/modules/middleware_isAuth.md index 8c83a26175..1f27b66e99 100644 --- a/talawa-api-docs/modules/middleware_isAuth.md +++ b/talawa-api-docs/modules/middleware_isAuth.md @@ -34,4 +34,4 @@ Returns `authData` object with `isAuth`, `expired` and `userId` properties. #### Defined in -[src/middleware/isAuth.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/middleware/isAuth.ts#L17) +[src/middleware/isAuth.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/middleware/isAuth.ts#L17) diff --git a/talawa-api-docs/modules/models_Advertisement.md b/talawa-api-docs/modules/models_Advertisement.md index 22ce615aab..55f0bf73d3 100644 --- a/talawa-api-docs/modules/models_Advertisement.md +++ b/talawa-api-docs/modules/models_Advertisement.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Advertisement.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Advertisement.ts#L106) +[src/models/Advertisement.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Advertisement.ts#L106) diff --git a/talawa-api-docs/modules/models_CheckIn.md b/talawa-api-docs/modules/models_CheckIn.md index e5f1696f1c..d6bdef2559 100644 --- a/talawa-api-docs/modules/models_CheckIn.md +++ b/talawa-api-docs/modules/models_CheckIn.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/CheckIn.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/CheckIn.ts#L64) +[src/models/CheckIn.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/CheckIn.ts#L64) diff --git a/talawa-api-docs/modules/models_Comment.md b/talawa-api-docs/modules/models_Comment.md index d5c39633e1..636939582e 100644 --- a/talawa-api-docs/modules/models_Comment.md +++ b/talawa-api-docs/modules/models_Comment.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Comment.ts:72](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Comment.ts#L72) +[src/models/Comment.ts:72](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Comment.ts#L72) diff --git a/talawa-api-docs/modules/models_DirectChat.md b/talawa-api-docs/modules/models_DirectChat.md index face3a47ea..cc43d64be8 100644 --- a/talawa-api-docs/modules/models_DirectChat.md +++ b/talawa-api-docs/modules/models_DirectChat.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/DirectChat.ts:70](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChat.ts#L70) +[src/models/DirectChat.ts:70](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChat.ts#L70) diff --git a/talawa-api-docs/modules/models_DirectChatMessage.md b/talawa-api-docs/modules/models_DirectChatMessage.md index f79a583183..667083e1fe 100644 --- a/talawa-api-docs/modules/models_DirectChatMessage.md +++ b/talawa-api-docs/modules/models_DirectChatMessage.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/DirectChatMessage.ts:68](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/DirectChatMessage.ts#L68) +[src/models/DirectChatMessage.ts:68](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/DirectChatMessage.ts#L68) diff --git a/talawa-api-docs/modules/models_Donation.md b/talawa-api-docs/modules/models_Donation.md index a77d369427..85ad666bbc 100644 --- a/talawa-api-docs/modules/models_Donation.md +++ b/talawa-api-docs/modules/models_Donation.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Donation.ts:63](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Donation.ts#L63) +[src/models/Donation.ts:63](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Donation.ts#L63) diff --git a/talawa-api-docs/modules/models_EncodedImage.md b/talawa-api-docs/modules/models_EncodedImage.md index 8b591256e7..84999565e8 100644 --- a/talawa-api-docs/modules/models_EncodedImage.md +++ b/talawa-api-docs/modules/models_EncodedImage.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/EncodedImage.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedImage.ts#L38) +[src/models/EncodedImage.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedImage.ts#L38) diff --git a/talawa-api-docs/modules/models_EncodedVideo.md b/talawa-api-docs/modules/models_EncodedVideo.md index f0bf124e27..36f3e0aee3 100644 --- a/talawa-api-docs/modules/models_EncodedVideo.md +++ b/talawa-api-docs/modules/models_EncodedVideo.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/EncodedVideo.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EncodedVideo.ts#L38) +[src/models/EncodedVideo.ts:38](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EncodedVideo.ts#L38) diff --git a/talawa-api-docs/modules/models_Event.md b/talawa-api-docs/modules/models_Event.md index 8617fac3e5..7d1d8490a3 100644 --- a/talawa-api-docs/modules/models_Event.md +++ b/talawa-api-docs/modules/models_Event.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Event.ts:168](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Event.ts#L168) +[src/models/Event.ts:168](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Event.ts#L168) diff --git a/talawa-api-docs/modules/models_EventAttendee.md b/talawa-api-docs/modules/models_EventAttendee.md index 51fa007e19..83749bcfe5 100644 --- a/talawa-api-docs/modules/models_EventAttendee.md +++ b/talawa-api-docs/modules/models_EventAttendee.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/EventAttendee.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/EventAttendee.ts#L39) +[src/models/EventAttendee.ts:39](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/EventAttendee.ts#L39) diff --git a/talawa-api-docs/modules/models_Feedback.md b/talawa-api-docs/modules/models_Feedback.md index 3b441ca0a9..df69ada3d0 100644 --- a/talawa-api-docs/modules/models_Feedback.md +++ b/talawa-api-docs/modules/models_Feedback.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Feedback.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Feedback.ts#L46) +[src/models/Feedback.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Feedback.ts#L46) diff --git a/talawa-api-docs/modules/models_File.md b/talawa-api-docs/modules/models_File.md index 2d097dbb89..ced376a824 100644 --- a/talawa-api-docs/modules/models_File.md +++ b/talawa-api-docs/modules/models_File.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/File.ts:65](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/File.ts#L65) +[src/models/File.ts:65](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/File.ts#L65) diff --git a/talawa-api-docs/modules/models_Group.md b/talawa-api-docs/modules/models_Group.md index 343063e4b9..d3fdbd909f 100644 --- a/talawa-api-docs/modules/models_Group.md +++ b/talawa-api-docs/modules/models_Group.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Group.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Group.ts#L64) +[src/models/Group.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Group.ts#L64) diff --git a/talawa-api-docs/modules/models_GroupChat.md b/talawa-api-docs/modules/models_GroupChat.md index c00d9ab3b8..f11f410a23 100644 --- a/talawa-api-docs/modules/models_GroupChat.md +++ b/talawa-api-docs/modules/models_GroupChat.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/GroupChat.ts:76](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChat.ts#L76) +[src/models/GroupChat.ts:76](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChat.ts#L76) diff --git a/talawa-api-docs/modules/models_GroupChatMessage.md b/talawa-api-docs/modules/models_GroupChatMessage.md index 2ccce1aeb7..92c021ec1e 100644 --- a/talawa-api-docs/modules/models_GroupChatMessage.md +++ b/talawa-api-docs/modules/models_GroupChatMessage.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/GroupChatMessage.ts:58](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/GroupChatMessage.ts#L58) +[src/models/GroupChatMessage.ts:58](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/GroupChatMessage.ts#L58) diff --git a/talawa-api-docs/modules/models_ImageHash.md b/talawa-api-docs/modules/models_ImageHash.md index 9c66082e3d..dd9952fcf8 100644 --- a/talawa-api-docs/modules/models_ImageHash.md +++ b/talawa-api-docs/modules/models_ImageHash.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/ImageHash.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/ImageHash.ts#L46) +[src/models/ImageHash.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/ImageHash.ts#L46) diff --git a/talawa-api-docs/modules/models_Language.md b/talawa-api-docs/modules/models_Language.md index 72c0e899f1..f7277be393 100644 --- a/talawa-api-docs/modules/models_Language.md +++ b/talawa-api-docs/modules/models_Language.md @@ -21,4 +21,4 @@ #### Defined in -[src/models/Language.ts:77](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Language.ts#L77) +[src/models/Language.ts:77](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Language.ts#L77) diff --git a/talawa-api-docs/modules/models_MembershipRequest.md b/talawa-api-docs/modules/models_MembershipRequest.md index 64f0d46307..4633742c5a 100644 --- a/talawa-api-docs/modules/models_MembershipRequest.md +++ b/talawa-api-docs/modules/models_MembershipRequest.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/MembershipRequest.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MembershipRequest.ts#L46) +[src/models/MembershipRequest.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MembershipRequest.ts#L46) diff --git a/talawa-api-docs/modules/models_Message.md b/talawa-api-docs/modules/models_Message.md index 1e84896b5a..eb02e879ff 100644 --- a/talawa-api-docs/modules/models_Message.md +++ b/talawa-api-docs/modules/models_Message.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Message.ts:70](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Message.ts#L70) +[src/models/Message.ts:70](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Message.ts#L70) diff --git a/talawa-api-docs/modules/models_MessageChat.md b/talawa-api-docs/modules/models_MessageChat.md index def98940d8..060047a4a2 100644 --- a/talawa-api-docs/modules/models_MessageChat.md +++ b/talawa-api-docs/modules/models_MessageChat.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/MessageChat.ts:56](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/MessageChat.ts#L56) +[src/models/MessageChat.ts:56](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/MessageChat.ts#L56) diff --git a/talawa-api-docs/modules/models_Organization.md b/talawa-api-docs/modules/models_Organization.md index 21849b074e..e036b2a7a0 100644 --- a/talawa-api-docs/modules/models_Organization.md +++ b/talawa-api-docs/modules/models_Organization.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Organization.ts:184](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Organization.ts#L184) +[src/models/Organization.ts:184](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Organization.ts#L184) diff --git a/talawa-api-docs/modules/models_OrganizationCustomField.md b/talawa-api-docs/modules/models_OrganizationCustomField.md index 66b4b70e5f..67669eb482 100644 --- a/talawa-api-docs/modules/models_OrganizationCustomField.md +++ b/talawa-api-docs/modules/models_OrganizationCustomField.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/OrganizationCustomField.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationCustomField.ts#L29) +[src/models/OrganizationCustomField.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationCustomField.ts#L29) diff --git a/talawa-api-docs/modules/models_OrganizationTagUser.md b/talawa-api-docs/modules/models_OrganizationTagUser.md index a5ab49728c..6358e885b4 100644 --- a/talawa-api-docs/modules/models_OrganizationTagUser.md +++ b/talawa-api-docs/modules/models_OrganizationTagUser.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/OrganizationTagUser.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/OrganizationTagUser.ts#L45) +[src/models/OrganizationTagUser.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/OrganizationTagUser.ts#L45) diff --git a/talawa-api-docs/modules/models_Plugin.md b/talawa-api-docs/modules/models_Plugin.md index 6d1072476a..f09839b39e 100644 --- a/talawa-api-docs/modules/models_Plugin.md +++ b/talawa-api-docs/modules/models_Plugin.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Plugin.ts:47](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Plugin.ts#L47) +[src/models/Plugin.ts:47](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Plugin.ts#L47) diff --git a/talawa-api-docs/modules/models_PluginField.md b/talawa-api-docs/modules/models_PluginField.md index c6f45df10c..8101b29d0e 100644 --- a/talawa-api-docs/modules/models_PluginField.md +++ b/talawa-api-docs/modules/models_PluginField.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/PluginField.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/PluginField.ts#L45) +[src/models/PluginField.ts:45](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/PluginField.ts#L45) diff --git a/talawa-api-docs/modules/models_Post.md b/talawa-api-docs/modules/models_Post.md index 8d715e1996..4832c69c8d 100644 --- a/talawa-api-docs/modules/models_Post.md +++ b/talawa-api-docs/modules/models_Post.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/Post.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/Post.ts#L106) +[src/models/Post.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/Post.ts#L106) diff --git a/talawa-api-docs/modules/models_SampleData.md b/talawa-api-docs/modules/models_SampleData.md index f497d350e4..78acaa99f0 100644 --- a/talawa-api-docs/modules/models_SampleData.md +++ b/talawa-api-docs/modules/models_SampleData.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/SampleData.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/SampleData.ts#L24) +[src/models/SampleData.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/SampleData.ts#L24) diff --git a/talawa-api-docs/modules/models_TagUser.md b/talawa-api-docs/modules/models_TagUser.md index 0b410d44ca..1d98c58446 100644 --- a/talawa-api-docs/modules/models_TagUser.md +++ b/talawa-api-docs/modules/models_TagUser.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/TagUser.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/TagUser.ts#L32) +[src/models/TagUser.ts:32](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/TagUser.ts#L32) diff --git a/talawa-api-docs/modules/models_User.md b/talawa-api-docs/modules/models_User.md index ff2a80e54c..bbd4a09379 100644 --- a/talawa-api-docs/modules/models_User.md +++ b/talawa-api-docs/modules/models_User.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/User.ts:292](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/User.ts#L292) +[src/models/User.ts:292](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/User.ts#L292) diff --git a/talawa-api-docs/modules/models_UserCustomData.md b/talawa-api-docs/modules/models_UserCustomData.md index 5569ad23ae..0139bc4638 100644 --- a/talawa-api-docs/modules/models_UserCustomData.md +++ b/talawa-api-docs/modules/models_UserCustomData.md @@ -20,4 +20,4 @@ #### Defined in -[src/models/UserCustomData.ts:43](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/models/UserCustomData.ts#L43) +[src/models/UserCustomData.ts:43](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/models/UserCustomData.ts#L43) diff --git a/talawa-api-docs/modules/resolvers.md b/talawa-api-docs/modules/resolvers.md index d2a5e70465..e37482ed14 100644 --- a/talawa-api-docs/modules/resolvers.md +++ b/talawa-api-docs/modules/resolvers.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/index.ts:88](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/index.ts#L88) +[src/resolvers/index.ts:88](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/index.ts#L88) diff --git a/talawa-api-docs/modules/resolvers_CheckIn.md b/talawa-api-docs/modules/resolvers_CheckIn.md index af1d297a8d..cc6a5207f4 100644 --- a/talawa-api-docs/modules/resolvers_CheckIn.md +++ b/talawa-api-docs/modules/resolvers_CheckIn.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/CheckIn/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/CheckIn/index.ts#L5) +[src/resolvers/CheckIn/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/CheckIn/index.ts#L5) diff --git a/talawa-api-docs/modules/resolvers_CheckIn_event.md b/talawa-api-docs/modules/resolvers_CheckIn_event.md index 68c0faf39b..e30d4df756 100644 --- a/talawa-api-docs/modules/resolvers_CheckIn_event.md +++ b/talawa-api-docs/modules/resolvers_CheckIn_event.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/CheckIn/event.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/CheckIn/event.ts#L4) +[src/resolvers/CheckIn/event.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/CheckIn/event.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_CheckIn_user.md b/talawa-api-docs/modules/resolvers_CheckIn_user.md index 4e9c4435bd..7b183b06ad 100644 --- a/talawa-api-docs/modules/resolvers_CheckIn_user.md +++ b/talawa-api-docs/modules/resolvers_CheckIn_user.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/CheckIn/user.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/CheckIn/user.ts#L4) +[src/resolvers/CheckIn/user.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/CheckIn/user.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Comment.md b/talawa-api-docs/modules/resolvers_Comment.md index 0bf07aaae0..d61f583ac5 100644 --- a/talawa-api-docs/modules/resolvers_Comment.md +++ b/talawa-api-docs/modules/resolvers_Comment.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Comment/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Comment/index.ts#L4) +[src/resolvers/Comment/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Comment/index.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Comment_creator.md b/talawa-api-docs/modules/resolvers_Comment_creator.md index 5d1ce0e69c..948f7420b2 100644 --- a/talawa-api-docs/modules/resolvers_Comment_creator.md +++ b/talawa-api-docs/modules/resolvers_Comment_creator.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Comment/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Comment/creator.ts#L4) +[src/resolvers/Comment/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Comment/creator.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_DirectChat.md b/talawa-api-docs/modules/resolvers_DirectChat.md index 90dbc3876f..c0628bf91e 100644 --- a/talawa-api-docs/modules/resolvers_DirectChat.md +++ b/talawa-api-docs/modules/resolvers_DirectChat.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/DirectChat/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChat/index.ts#L7) +[src/resolvers/DirectChat/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChat/index.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_DirectChatMessage.md b/talawa-api-docs/modules/resolvers_DirectChatMessage.md index cfbbf3afa5..5e85f2b8b5 100644 --- a/talawa-api-docs/modules/resolvers_DirectChatMessage.md +++ b/talawa-api-docs/modules/resolvers_DirectChatMessage.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/DirectChatMessage/index.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChatMessage/index.ts#L6) +[src/resolvers/DirectChatMessage/index.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChatMessage/index.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_DirectChatMessage_directChatMessageBelongsTo.md b/talawa-api-docs/modules/resolvers_DirectChatMessage_directChatMessageBelongsTo.md index 900f056708..675b1044e8 100644 --- a/talawa-api-docs/modules/resolvers_DirectChatMessage_directChatMessageBelongsTo.md +++ b/talawa-api-docs/modules/resolvers_DirectChatMessage_directChatMessageBelongsTo.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChatMessage/directChatMessageBelongsTo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChatMessage/directChatMessageBelongsTo.ts#L8) +[src/resolvers/DirectChatMessage/directChatMessageBelongsTo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChatMessage/directChatMessageBelongsTo.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_DirectChatMessage_receiver.md b/talawa-api-docs/modules/resolvers_DirectChatMessage_receiver.md index 8a5388631c..140d6eacfb 100644 --- a/talawa-api-docs/modules/resolvers_DirectChatMessage_receiver.md +++ b/talawa-api-docs/modules/resolvers_DirectChatMessage_receiver.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChatMessage/receiver.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChatMessage/receiver.ts#L8) +[src/resolvers/DirectChatMessage/receiver.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChatMessage/receiver.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_DirectChatMessage_sender.md b/talawa-api-docs/modules/resolvers_DirectChatMessage_sender.md index b220ab24f9..7586ca92d0 100644 --- a/talawa-api-docs/modules/resolvers_DirectChatMessage_sender.md +++ b/talawa-api-docs/modules/resolvers_DirectChatMessage_sender.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChatMessage/sender.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChatMessage/sender.ts#L8) +[src/resolvers/DirectChatMessage/sender.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChatMessage/sender.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_DirectChat_creator.md b/talawa-api-docs/modules/resolvers_DirectChat_creator.md index 994a830143..65306e59ca 100644 --- a/talawa-api-docs/modules/resolvers_DirectChat_creator.md +++ b/talawa-api-docs/modules/resolvers_DirectChat_creator.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChat/creator.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChat/creator.ts#L8) +[src/resolvers/DirectChat/creator.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChat/creator.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_DirectChat_messages.md b/talawa-api-docs/modules/resolvers_DirectChat_messages.md index 499b914e96..1dbccd8e72 100644 --- a/talawa-api-docs/modules/resolvers_DirectChat_messages.md +++ b/talawa-api-docs/modules/resolvers_DirectChat_messages.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChat/messages.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChat/messages.ts#L8) +[src/resolvers/DirectChat/messages.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChat/messages.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_DirectChat_organization.md b/talawa-api-docs/modules/resolvers_DirectChat_organization.md index de197e2133..e75a4da8b5 100644 --- a/talawa-api-docs/modules/resolvers_DirectChat_organization.md +++ b/talawa-api-docs/modules/resolvers_DirectChat_organization.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChat/organization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChat/organization.ts#L10) +[src/resolvers/DirectChat/organization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChat/organization.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_DirectChat_users.md b/talawa-api-docs/modules/resolvers_DirectChat_users.md index 21e02745c8..f7189473f0 100644 --- a/talawa-api-docs/modules/resolvers_DirectChat_users.md +++ b/talawa-api-docs/modules/resolvers_DirectChat_users.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/DirectChat/users.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/DirectChat/users.ts#L8) +[src/resolvers/DirectChat/users.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/DirectChat/users.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Event.md b/talawa-api-docs/modules/resolvers_Event.md index 29b93a62ee..8bd8ce06ff 100644 --- a/talawa-api-docs/modules/resolvers_Event.md +++ b/talawa-api-docs/modules/resolvers_Event.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/index.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/index.ts#L9) +[src/resolvers/Event/index.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/index.ts#L9) diff --git a/talawa-api-docs/modules/resolvers_Event_attendees.md b/talawa-api-docs/modules/resolvers_Event_attendees.md index 25352ecc2e..80ddab0330 100644 --- a/talawa-api-docs/modules/resolvers_Event_attendees.md +++ b/talawa-api-docs/modules/resolvers_Event_attendees.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/attendees.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/attendees.ts#L4) +[src/resolvers/Event/attendees.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/attendees.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Event_attendeesCheckInStatus.md b/talawa-api-docs/modules/resolvers_Event_attendeesCheckInStatus.md index a49b379198..4ca3771ff9 100644 --- a/talawa-api-docs/modules/resolvers_Event_attendeesCheckInStatus.md +++ b/talawa-api-docs/modules/resolvers_Event_attendeesCheckInStatus.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/attendeesCheckInStatus.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/attendeesCheckInStatus.ts#L4) +[src/resolvers/Event/attendeesCheckInStatus.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/attendeesCheckInStatus.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Event_averageFeedbackScore.md b/talawa-api-docs/modules/resolvers_Event_averageFeedbackScore.md index c3b53ed1cf..cd31918077 100644 --- a/talawa-api-docs/modules/resolvers_Event_averageFeedbackScore.md +++ b/talawa-api-docs/modules/resolvers_Event_averageFeedbackScore.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/averageFeedbackScore.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/averageFeedbackScore.ts#L4) +[src/resolvers/Event/averageFeedbackScore.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/averageFeedbackScore.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Event_creator.md b/talawa-api-docs/modules/resolvers_Event_creator.md index 751af119b7..b0d80b6c58 100644 --- a/talawa-api-docs/modules/resolvers_Event_creator.md +++ b/talawa-api-docs/modules/resolvers_Event_creator.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/creator.ts#L4) +[src/resolvers/Event/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/creator.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Event_feedback.md b/talawa-api-docs/modules/resolvers_Event_feedback.md index 3d62b10e08..5286cd62e7 100644 --- a/talawa-api-docs/modules/resolvers_Event_feedback.md +++ b/talawa-api-docs/modules/resolvers_Event_feedback.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/feedback.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/feedback.ts#L4) +[src/resolvers/Event/feedback.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/feedback.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Event_organization.md b/talawa-api-docs/modules/resolvers_Event_organization.md index d848687c87..a2380bd98a 100644 --- a/talawa-api-docs/modules/resolvers_Event_organization.md +++ b/talawa-api-docs/modules/resolvers_Event_organization.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Event/organization.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Event/organization.ts#L4) +[src/resolvers/Event/organization.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Event/organization.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Feedback.md b/talawa-api-docs/modules/resolvers_Feedback.md index 76b5455771..9d8aee6a55 100644 --- a/talawa-api-docs/modules/resolvers_Feedback.md +++ b/talawa-api-docs/modules/resolvers_Feedback.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Feedback/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Feedback/index.ts#L4) +[src/resolvers/Feedback/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Feedback/index.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Feedback_event.md b/talawa-api-docs/modules/resolvers_Feedback_event.md index fd1d0e0182..c223527800 100644 --- a/talawa-api-docs/modules/resolvers_Feedback_event.md +++ b/talawa-api-docs/modules/resolvers_Feedback_event.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Feedback/event.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Feedback/event.ts#L4) +[src/resolvers/Feedback/event.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Feedback/event.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_GroupChat.md b/talawa-api-docs/modules/resolvers_GroupChat.md index 5f48c5123d..41acf58437 100644 --- a/talawa-api-docs/modules/resolvers_GroupChat.md +++ b/talawa-api-docs/modules/resolvers_GroupChat.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/GroupChat/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChat/index.ts#L7) +[src/resolvers/GroupChat/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChat/index.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_GroupChatMessage.md b/talawa-api-docs/modules/resolvers_GroupChatMessage.md index 9204322f6b..f6e6733cd2 100644 --- a/talawa-api-docs/modules/resolvers_GroupChatMessage.md +++ b/talawa-api-docs/modules/resolvers_GroupChatMessage.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/GroupChatMessage/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChatMessage/index.ts#L5) +[src/resolvers/GroupChatMessage/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChatMessage/index.ts#L5) diff --git a/talawa-api-docs/modules/resolvers_GroupChatMessage_groupChatMessageBelongsTo.md b/talawa-api-docs/modules/resolvers_GroupChatMessage_groupChatMessageBelongsTo.md index d6740010e9..3ab3b224ce 100644 --- a/talawa-api-docs/modules/resolvers_GroupChatMessage_groupChatMessageBelongsTo.md +++ b/talawa-api-docs/modules/resolvers_GroupChatMessage_groupChatMessageBelongsTo.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChatMessage/groupChatMessageBelongsTo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChatMessage/groupChatMessageBelongsTo.ts#L8) +[src/resolvers/GroupChatMessage/groupChatMessageBelongsTo.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChatMessage/groupChatMessageBelongsTo.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_GroupChatMessage_sender.md b/talawa-api-docs/modules/resolvers_GroupChatMessage_sender.md index e15093b67c..74ba026368 100644 --- a/talawa-api-docs/modules/resolvers_GroupChatMessage_sender.md +++ b/talawa-api-docs/modules/resolvers_GroupChatMessage_sender.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChatMessage/sender.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChatMessage/sender.ts#L8) +[src/resolvers/GroupChatMessage/sender.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChatMessage/sender.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_GroupChat_creator.md b/talawa-api-docs/modules/resolvers_GroupChat_creator.md index 93c2fb06bd..f507f5f869 100644 --- a/talawa-api-docs/modules/resolvers_GroupChat_creator.md +++ b/talawa-api-docs/modules/resolvers_GroupChat_creator.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChat/creator.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChat/creator.ts#L8) +[src/resolvers/GroupChat/creator.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChat/creator.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_GroupChat_messages.md b/talawa-api-docs/modules/resolvers_GroupChat_messages.md index bdbbb61986..86d71690f0 100644 --- a/talawa-api-docs/modules/resolvers_GroupChat_messages.md +++ b/talawa-api-docs/modules/resolvers_GroupChat_messages.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChat/messages.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChat/messages.ts#L8) +[src/resolvers/GroupChat/messages.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChat/messages.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_GroupChat_organization.md b/talawa-api-docs/modules/resolvers_GroupChat_organization.md index c108865849..4ecbe3a0c8 100644 --- a/talawa-api-docs/modules/resolvers_GroupChat_organization.md +++ b/talawa-api-docs/modules/resolvers_GroupChat_organization.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChat/organization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChat/organization.ts#L10) +[src/resolvers/GroupChat/organization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChat/organization.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_GroupChat_users.md b/talawa-api-docs/modules/resolvers_GroupChat_users.md index ff96711918..be16275d60 100644 --- a/talawa-api-docs/modules/resolvers_GroupChat_users.md +++ b/talawa-api-docs/modules/resolvers_GroupChat_users.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/GroupChat/users.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/GroupChat/users.ts#L8) +[src/resolvers/GroupChat/users.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/GroupChat/users.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_MembershipRequest.md b/talawa-api-docs/modules/resolvers_MembershipRequest.md index f96d4fb4a7..53a73db9a6 100644 --- a/talawa-api-docs/modules/resolvers_MembershipRequest.md +++ b/talawa-api-docs/modules/resolvers_MembershipRequest.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/MembershipRequest/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/MembershipRequest/index.ts#L5) +[src/resolvers/MembershipRequest/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/MembershipRequest/index.ts#L5) diff --git a/talawa-api-docs/modules/resolvers_MembershipRequest_organization.md b/talawa-api-docs/modules/resolvers_MembershipRequest_organization.md index cd899c6574..44e75b5631 100644 --- a/talawa-api-docs/modules/resolvers_MembershipRequest_organization.md +++ b/talawa-api-docs/modules/resolvers_MembershipRequest_organization.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/MembershipRequest/organization.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/MembershipRequest/organization.ts#L8) +[src/resolvers/MembershipRequest/organization.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/MembershipRequest/organization.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_MembershipRequest_user.md b/talawa-api-docs/modules/resolvers_MembershipRequest_user.md index 21c5cbaced..c92110d61f 100644 --- a/talawa-api-docs/modules/resolvers_MembershipRequest_user.md +++ b/talawa-api-docs/modules/resolvers_MembershipRequest_user.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/MembershipRequest/user.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/MembershipRequest/user.ts#L8) +[src/resolvers/MembershipRequest/user.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/MembershipRequest/user.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Mutation.md b/talawa-api-docs/modules/resolvers_Mutation.md index 926da502e4..44d7ca7295 100644 --- a/talawa-api-docs/modules/resolvers_Mutation.md +++ b/talawa-api-docs/modules/resolvers_Mutation.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/index.ts:89](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/index.ts#L89) +[src/resolvers/Mutation/index.ts:89](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/index.ts#L89) diff --git a/talawa-api-docs/modules/resolvers_Mutation_acceptAdmin.md b/talawa-api-docs/modules/resolvers_Mutation_acceptAdmin.md index 2b702837ee..1ea38f25cd 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_acceptAdmin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_acceptAdmin.md @@ -36,4 +36,4 @@ THe following checks are done: #### Defined in -[src/resolvers/Mutation/acceptAdmin.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/acceptAdmin.ts#L15) +[src/resolvers/Mutation/acceptAdmin.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/acceptAdmin.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_acceptMembershipRequest.md b/talawa-api-docs/modules/resolvers_Mutation_acceptMembershipRequest.md index 09813f26c3..d103f2267e 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_acceptMembershipRequest.md +++ b/talawa-api-docs/modules/resolvers_Mutation_acceptMembershipRequest.md @@ -39,4 +39,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/acceptMembershipRequest.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/acceptMembershipRequest.ts#L25) +[src/resolvers/Mutation/acceptMembershipRequest.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/acceptMembershipRequest.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addEventAttendee.md b/talawa-api-docs/modules/resolvers_Mutation_addEventAttendee.md index 4d4ed7e0f5..79f517aa22 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addEventAttendee.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addEventAttendee.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/addEventAttendee.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addEventAttendee.ts#L15) +[src/resolvers/Mutation/addEventAttendee.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addEventAttendee.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addFeedback.md b/talawa-api-docs/modules/resolvers_Mutation_addFeedback.md index 517f8dbafe..bbe87e56d7 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addFeedback.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addFeedback.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/addFeedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addFeedback.ts#L11) +[src/resolvers/Mutation/addFeedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addFeedback.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addLanguageTranslation.md b/talawa-api-docs/modules/resolvers_Mutation_addLanguageTranslation.md index 348d42d5b9..cb5a1ca003 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addLanguageTranslation.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addLanguageTranslation.md @@ -32,4 +32,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addLanguageTranslation.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addLanguageTranslation.ts#L14) +[src/resolvers/Mutation/addLanguageTranslation.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addLanguageTranslation.ts#L14) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addOrganizationCustomField.md b/talawa-api-docs/modules/resolvers_Mutation_addOrganizationCustomField.md index e3e14e198f..0b5e03b628 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addOrganizationCustomField.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addOrganizationCustomField.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addOrganizationCustomField.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addOrganizationCustomField.ts#L25) +[src/resolvers/Mutation/addOrganizationCustomField.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addOrganizationCustomField.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addOrganizationImage.md b/talawa-api-docs/modules/resolvers_Mutation_addOrganizationImage.md index 6c04b4dcbf..72781eef0b 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addOrganizationImage.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addOrganizationImage.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addOrganizationImage.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addOrganizationImage.ts#L21) +[src/resolvers/Mutation/addOrganizationImage.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addOrganizationImage.ts#L21) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addUserCustomData.md b/talawa-api-docs/modules/resolvers_Mutation_addUserCustomData.md index 447084a796..1e4ef965bd 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addUserCustomData.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addUserCustomData.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addUserCustomData.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addUserCustomData.ts#L20) +[src/resolvers/Mutation/addUserCustomData.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addUserCustomData.ts#L20) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addUserImage.md b/talawa-api-docs/modules/resolvers_Mutation_addUserImage.md index 3dd8a0afa8..966c6ab50f 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addUserImage.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addUserImage.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addUserImage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addUserImage.ts#L15) +[src/resolvers/Mutation/addUserImage.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addUserImage.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_addUserToGroupChat.md b/talawa-api-docs/modules/resolvers_Mutation_addUserToGroupChat.md index 1ee87794ef..3144e6ac5f 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_addUserToGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_addUserToGroupChat.md @@ -39,4 +39,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/addUserToGroupChat.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/addUserToGroupChat.ts#L27) +[src/resolvers/Mutation/addUserToGroupChat.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/addUserToGroupChat.ts#L27) diff --git a/talawa-api-docs/modules/resolvers_Mutation_adminRemoveEvent.md b/talawa-api-docs/modules/resolvers_Mutation_adminRemoveEvent.md index 381bfd50b8..20190bf331 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_adminRemoveEvent.md +++ b/talawa-api-docs/modules/resolvers_Mutation_adminRemoveEvent.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/adminRemoveEvent.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/adminRemoveEvent.ts#L27) +[src/resolvers/Mutation/adminRemoveEvent.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/adminRemoveEvent.ts#L27) diff --git a/talawa-api-docs/modules/resolvers_Mutation_adminRemoveGroup.md b/talawa-api-docs/modules/resolvers_Mutation_adminRemoveGroup.md index cf60b66b92..f29dba8d7d 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_adminRemoveGroup.md +++ b/talawa-api-docs/modules/resolvers_Mutation_adminRemoveGroup.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/adminRemoveGroup.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/adminRemoveGroup.ts#L25) +[src/resolvers/Mutation/adminRemoveGroup.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/adminRemoveGroup.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_assignUserTag.md b/talawa-api-docs/modules/resolvers_Mutation_assignUserTag.md index ee1fcad8b3..058abe84dd 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_assignUserTag.md +++ b/talawa-api-docs/modules/resolvers_Mutation_assignUserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/assignUserTag.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/assignUserTag.ts#L12) +[src/resolvers/Mutation/assignUserTag.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/assignUserTag.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_blockPluginCreationBySuperadmin.md b/talawa-api-docs/modules/resolvers_Mutation_blockPluginCreationBySuperadmin.md index db70071a03..0af33bcbe4 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_blockPluginCreationBySuperadmin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_blockPluginCreationBySuperadmin.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/blockPluginCreationBySuperadmin.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/blockPluginCreationBySuperadmin.ts#L16) +[src/resolvers/Mutation/blockPluginCreationBySuperadmin.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/blockPluginCreationBySuperadmin.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Mutation_blockUser.md b/talawa-api-docs/modules/resolvers_Mutation_blockUser.md index dfae82aa27..7b8e5325b8 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_blockUser.md +++ b/talawa-api-docs/modules/resolvers_Mutation_blockUser.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/blockUser.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/blockUser.ts#L27) +[src/resolvers/Mutation/blockUser.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/blockUser.ts#L27) diff --git a/talawa-api-docs/modules/resolvers_Mutation_cancelMembershipRequest.md b/talawa-api-docs/modules/resolvers_Mutation_cancelMembershipRequest.md index 9b6b66ece2..8e4a78ca97 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_cancelMembershipRequest.md +++ b/talawa-api-docs/modules/resolvers_Mutation_cancelMembershipRequest.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/cancelMembershipRequest.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/cancelMembershipRequest.ts#L24) +[src/resolvers/Mutation/cancelMembershipRequest.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/cancelMembershipRequest.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_checkIn.md b/talawa-api-docs/modules/resolvers_Mutation_checkIn.md index 87d7f9434e..75c7787b15 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_checkIn.md +++ b/talawa-api-docs/modules/resolvers_Mutation_checkIn.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/checkIn.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/checkIn.ts#L16) +[src/resolvers/Mutation/checkIn.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/checkIn.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createAdmin.md b/talawa-api-docs/modules/resolvers_Mutation_createAdmin.md index a37aadc2e9..a0b388664d 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createAdmin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createAdmin.md @@ -39,4 +39,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createAdmin.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createAdmin.ts#L27) +[src/resolvers/Mutation/createAdmin.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createAdmin.ts#L27) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createAdvertisement.md b/talawa-api-docs/modules/resolvers_Mutation_createAdvertisement.md index 948183f4aa..e3688b719c 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createAdvertisement.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createAdvertisement.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/createAdvertisement.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createAdvertisement.ts#L4) +[src/resolvers/Mutation/createAdvertisement.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createAdvertisement.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createComment.md b/talawa-api-docs/modules/resolvers_Mutation_createComment.md index fe0906f44b..51491187a5 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createComment.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createComment.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createComment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createComment.ts#L17) +[src/resolvers/Mutation/createComment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createComment.ts#L17) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createDirectChat.md b/talawa-api-docs/modules/resolvers_Mutation_createDirectChat.md index a88f941ac1..b2b49496da 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createDirectChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createDirectChat.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createDirectChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createDirectChat.ts#L20) +[src/resolvers/Mutation/createDirectChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createDirectChat.ts#L20) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createDonation.md b/talawa-api-docs/modules/resolvers_Mutation_createDonation.md index 28f29a0d03..3dd9176233 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createDonation.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createDonation.md @@ -30,4 +30,4 @@ context of entire application #### Defined in -[src/resolvers/Mutation/createDonation.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createDonation.ts#L11) +[src/resolvers/Mutation/createDonation.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createDonation.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createEvent.md b/talawa-api-docs/modules/resolvers_Mutation_createEvent.md index bb16da9fe5..5d06d7ed00 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createEvent.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createEvent.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createEvent.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createEvent.ts#L30) +[src/resolvers/Mutation/createEvent.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createEvent.ts#L30) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createGroupChat.md b/talawa-api-docs/modules/resolvers_Mutation_createGroupChat.md index 55e79ffdac..ddfc358775 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createGroupChat.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createGroupChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createGroupChat.ts#L20) +[src/resolvers/Mutation/createGroupChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createGroupChat.ts#L20) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createMember.md b/talawa-api-docs/modules/resolvers_Mutation_createMember.md index 129f1ce4ce..31c2416967 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createMember.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createMember.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createMember.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createMember.ts#L24) +[src/resolvers/Mutation/createMember.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createMember.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createMessageChat.md b/talawa-api-docs/modules/resolvers_Mutation_createMessageChat.md index bd7ee41a9b..f11529069b 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createMessageChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createMessageChat.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createMessageChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createMessageChat.ts#L15) +[src/resolvers/Mutation/createMessageChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createMessageChat.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_createOrganization.md index 44ced6ef4e..5e6e1de1b2 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createOrganization.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createOrganization.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createOrganization.ts#L22) +[src/resolvers/Mutation/createOrganization.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createOrganization.ts#L22) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createPlugin.md b/talawa-api-docs/modules/resolvers_Mutation_createPlugin.md index cb7f1ca380..64a4072f32 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createPlugin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createPlugin.md @@ -30,4 +30,4 @@ context of entire application #### Defined in -[src/resolvers/Mutation/createPlugin.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createPlugin.ts#L12) +[src/resolvers/Mutation/createPlugin.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createPlugin.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createPost.md b/talawa-api-docs/modules/resolvers_Mutation_createPost.md index 9d09e88f3c..2d90fd959c 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createPost.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createPost.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/createPost.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createPost.ts#L26) +[src/resolvers/Mutation/createPost.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createPost.ts#L28) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createSampleOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_createSampleOrganization.md index 5cc8d53bf6..7d90508c63 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createSampleOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createSampleOrganization.md @@ -18,4 +18,4 @@ Generates sample data for testing or development purposes. #### Defined in -[src/resolvers/Mutation/createSampleOrganization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createSampleOrganization.ts#L15) +[src/resolvers/Mutation/createSampleOrganization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createSampleOrganization.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_createUserTag.md b/talawa-api-docs/modules/resolvers_Mutation_createUserTag.md index cdcf8610e5..9c6d7de2a3 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_createUserTag.md +++ b/talawa-api-docs/modules/resolvers_Mutation_createUserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/createUserTag.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/createUserTag.ts#L13) +[src/resolvers/Mutation/createUserTag.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/createUserTag.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Mutation_deleteAdvertisementById.md b/talawa-api-docs/modules/resolvers_Mutation_deleteAdvertisementById.md index 196ff212ba..f8de0682b0 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_deleteAdvertisementById.md +++ b/talawa-api-docs/modules/resolvers_Mutation_deleteAdvertisementById.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/deleteAdvertisementById.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/deleteAdvertisementById.ts#L10) +[src/resolvers/Mutation/deleteAdvertisementById.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/deleteAdvertisementById.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Mutation_deleteDonationById.md b/talawa-api-docs/modules/resolvers_Mutation_deleteDonationById.md index 406fff56ca..f5a1ca1faf 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_deleteDonationById.md +++ b/talawa-api-docs/modules/resolvers_Mutation_deleteDonationById.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/deleteDonationById.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/deleteDonationById.ts#L10) +[src/resolvers/Mutation/deleteDonationById.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/deleteDonationById.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Mutation_forgotPassword.md b/talawa-api-docs/modules/resolvers_Mutation_forgotPassword.md index 97c77a5f2b..4ca74b0a84 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_forgotPassword.md +++ b/talawa-api-docs/modules/resolvers_Mutation_forgotPassword.md @@ -34,4 +34,4 @@ The following tasks are done: #### Defined in -[src/resolvers/Mutation/forgotPassword.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/forgotPassword.ts#L17) +[src/resolvers/Mutation/forgotPassword.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/forgotPassword.ts#L17) diff --git a/talawa-api-docs/modules/resolvers_Mutation_joinPublicOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_joinPublicOrganization.md index 63bfb90fed..bd15ebe6e9 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_joinPublicOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_joinPublicOrganization.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/joinPublicOrganization.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/joinPublicOrganization.ts#L25) +[src/resolvers/Mutation/joinPublicOrganization.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/joinPublicOrganization.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_leaveOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_leaveOrganization.md index b56bfcb62f..c83ec21f11 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_leaveOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_leaveOrganization.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/leaveOrganization.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/leaveOrganization.ts#L24) +[src/resolvers/Mutation/leaveOrganization.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/leaveOrganization.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_likeComment.md b/talawa-api-docs/modules/resolvers_Mutation_likeComment.md index af4a582811..35a67f9e03 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_likeComment.md +++ b/talawa-api-docs/modules/resolvers_Mutation_likeComment.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/likeComment.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/likeComment.ts#L18) +[src/resolvers/Mutation/likeComment.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/likeComment.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Mutation_likePost.md b/talawa-api-docs/modules/resolvers_Mutation_likePost.md index 7ad221e3cc..638a849fb8 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_likePost.md +++ b/talawa-api-docs/modules/resolvers_Mutation_likePost.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/likePost.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/likePost.ts#L18) +[src/resolvers/Mutation/likePost.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/likePost.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Mutation_login.md b/talawa-api-docs/modules/resolvers_Mutation_login.md index f922238070..eccc319d7d 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_login.md +++ b/talawa-api-docs/modules/resolvers_Mutation_login.md @@ -32,4 +32,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/login.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/login.ts#L25) +[src/resolvers/Mutation/login.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/login.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_logout.md b/talawa-api-docs/modules/resolvers_Mutation_logout.md index 85138f0a9e..f548e718e6 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_logout.md +++ b/talawa-api-docs/modules/resolvers_Mutation_logout.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/logout.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/logout.ts#L13) +[src/resolvers/Mutation/logout.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/logout.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Mutation_otp.md b/talawa-api-docs/modules/resolvers_Mutation_otp.md index ff1512f053..e9fcae7d40 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_otp.md +++ b/talawa-api-docs/modules/resolvers_Mutation_otp.md @@ -31,4 +31,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/otp.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/otp.ts#L16) +[src/resolvers/Mutation/otp.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/otp.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Mutation_recaptcha.md b/talawa-api-docs/modules/resolvers_Mutation_recaptcha.md index 12a2ad8cb7..46c16bf2bf 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_recaptcha.md +++ b/talawa-api-docs/modules/resolvers_Mutation_recaptcha.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/recaptcha.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/recaptcha.ts#L10) +[src/resolvers/Mutation/recaptcha.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/recaptcha.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Mutation_refreshToken.md b/talawa-api-docs/modules/resolvers_Mutation_refreshToken.md index c17c77c7d9..40bb3c486e 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_refreshToken.md +++ b/talawa-api-docs/modules/resolvers_Mutation_refreshToken.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/refreshToken.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/refreshToken.ts#L23) +[src/resolvers/Mutation/refreshToken.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/refreshToken.ts#L23) diff --git a/talawa-api-docs/modules/resolvers_Mutation_registerForEvent.md b/talawa-api-docs/modules/resolvers_Mutation_registerForEvent.md index a169be7306..395cd45be1 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_registerForEvent.md +++ b/talawa-api-docs/modules/resolvers_Mutation_registerForEvent.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/registerForEvent.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/registerForEvent.ts#L24) +[src/resolvers/Mutation/registerForEvent.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/registerForEvent.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_rejectAdmin.md b/talawa-api-docs/modules/resolvers_Mutation_rejectAdmin.md index 5c22b2604a..4f22ee12d8 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_rejectAdmin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_rejectAdmin.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/rejectAdmin.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/rejectAdmin.ts#L17) +[src/resolvers/Mutation/rejectAdmin.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/rejectAdmin.ts#L17) diff --git a/talawa-api-docs/modules/resolvers_Mutation_rejectMembershipRequest.md b/talawa-api-docs/modules/resolvers_Mutation_rejectMembershipRequest.md index 8ee4dc2d46..e8475d3609 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_rejectMembershipRequest.md +++ b/talawa-api-docs/modules/resolvers_Mutation_rejectMembershipRequest.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/rejectMembershipRequest.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/rejectMembershipRequest.ts#L23) +[src/resolvers/Mutation/rejectMembershipRequest.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/rejectMembershipRequest.ts#L23) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeAdmin.md b/talawa-api-docs/modules/resolvers_Mutation_removeAdmin.md index 646a39cc5d..7d7f18fd54 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeAdmin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeAdmin.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeAdmin.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeAdmin.ts#L26) +[src/resolvers/Mutation/removeAdmin.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeAdmin.ts#L26) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeAdvertisement.md b/talawa-api-docs/modules/resolvers_Mutation_removeAdvertisement.md index fa81268be9..886b81aa95 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeAdvertisement.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeAdvertisement.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/removeAdvertisement.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeAdvertisement.ts#L7) +[src/resolvers/Mutation/removeAdvertisement.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeAdvertisement.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeComment.md b/talawa-api-docs/modules/resolvers_Mutation_removeComment.md index 80859cb1a1..d3eec590a5 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeComment.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeComment.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeComment.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeComment.ts#L26) +[src/resolvers/Mutation/removeComment.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeComment.ts#L26) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeDirectChat.md b/talawa-api-docs/modules/resolvers_Mutation_removeDirectChat.md index eb408ed425..31dfb5810c 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeDirectChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeDirectChat.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeDirectChat.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeDirectChat.ts#L22) +[src/resolvers/Mutation/removeDirectChat.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeDirectChat.ts#L22) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeEvent.md b/talawa-api-docs/modules/resolvers_Mutation_removeEvent.md index 1b916b686f..6b2ad41476 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeEvent.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeEvent.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeEvent.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeEvent.ts#L24) +[src/resolvers/Mutation/removeEvent.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeEvent.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeEventAttendee.md b/talawa-api-docs/modules/resolvers_Mutation_removeEventAttendee.md index d7b3c84656..fb26b09817 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeEventAttendee.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeEventAttendee.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/removeEventAttendee.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeEventAttendee.ts#L14) +[src/resolvers/Mutation/removeEventAttendee.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeEventAttendee.ts#L14) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeGroupChat.md b/talawa-api-docs/modules/resolvers_Mutation_removeGroupChat.md index 9aff481793..ce2638ce52 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeGroupChat.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeGroupChat.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeGroupChat.ts#L22) +[src/resolvers/Mutation/removeGroupChat.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeGroupChat.ts#L22) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeMember.md b/talawa-api-docs/modules/resolvers_Mutation_removeMember.md index caf0c62ec5..d0f7a66bba 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeMember.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeMember.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeMember.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeMember.ts#L29) +[src/resolvers/Mutation/removeMember.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeMember.ts#L29) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_removeOrganization.md index c56be9a0d4..56458730ce 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeOrganization.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeOrganization.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeOrganization.ts#L30) +[src/resolvers/Mutation/removeOrganization.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeOrganization.ts#L30) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationCustomField.md b/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationCustomField.md index 8cee7f5d7b..262e103a06 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationCustomField.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationCustomField.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeOrganizationCustomField.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeOrganizationCustomField.ts#L24) +[src/resolvers/Mutation/removeOrganizationCustomField.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeOrganizationCustomField.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationImage.md b/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationImage.md index 9543a76227..f4d1db7759 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationImage.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeOrganizationImage.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeOrganizationImage.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeOrganizationImage.ts#L22) +[src/resolvers/Mutation/removeOrganizationImage.ts:22](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeOrganizationImage.ts#L22) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removePost.md b/talawa-api-docs/modules/resolvers_Mutation_removePost.md index e3254931ca..f8c322cc69 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removePost.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removePost.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removePost.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removePost.ts#L28) +[src/resolvers/Mutation/removePost.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removePost.ts#L28) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeSampleOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_removeSampleOrganization.md index 5b4ece6b5f..a524472097 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeSampleOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeSampleOrganization.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/removeSampleOrganization.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeSampleOrganization.ts#L11) +[src/resolvers/Mutation/removeSampleOrganization.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeSampleOrganization.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeUserCustomData.md b/talawa-api-docs/modules/resolvers_Mutation_removeUserCustomData.md index ac07d8dc8c..43f15dd37a 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeUserCustomData.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeUserCustomData.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/removeUserCustomData.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeUserCustomData.ts#L12) +[src/resolvers/Mutation/removeUserCustomData.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeUserCustomData.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeUserFromGroupChat.md b/talawa-api-docs/modules/resolvers_Mutation_removeUserFromGroupChat.md index fed2ae1dfe..b84ce60653 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeUserFromGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeUserFromGroupChat.md @@ -38,4 +38,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeUserFromGroupChat.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeUserFromGroupChat.ts#L24) +[src/resolvers/Mutation/removeUserFromGroupChat.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeUserFromGroupChat.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeUserImage.md b/talawa-api-docs/modules/resolvers_Mutation_removeUserImage.md index e39daf6f4e..3779e5e5ff 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeUserImage.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeUserImage.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/removeUserImage.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeUserImage.ts#L19) +[src/resolvers/Mutation/removeUserImage.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeUserImage.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_Mutation_removeUserTag.md b/talawa-api-docs/modules/resolvers_Mutation_removeUserTag.md index 2bc0075074..a22f13c38e 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_removeUserTag.md +++ b/talawa-api-docs/modules/resolvers_Mutation_removeUserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/removeUserTag.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/removeUserTag.ts#L10) +[src/resolvers/Mutation/removeUserTag.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/removeUserTag.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Mutation_revokeRefreshTokenForUser.md b/talawa-api-docs/modules/resolvers_Mutation_revokeRefreshTokenForUser.md index f3890d0262..d8b1bbfa93 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_revokeRefreshTokenForUser.md +++ b/talawa-api-docs/modules/resolvers_Mutation_revokeRefreshTokenForUser.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/revokeRefreshTokenForUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/revokeRefreshTokenForUser.ts#L9) +[src/resolvers/Mutation/revokeRefreshTokenForUser.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/revokeRefreshTokenForUser.ts#L9) diff --git a/talawa-api-docs/modules/resolvers_Mutation_saveFcmToken.md b/talawa-api-docs/modules/resolvers_Mutation_saveFcmToken.md index 0eaee85705..7ab8cdcac6 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_saveFcmToken.md +++ b/talawa-api-docs/modules/resolvers_Mutation_saveFcmToken.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/saveFcmToken.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/saveFcmToken.ts#L12) +[src/resolvers/Mutation/saveFcmToken.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/saveFcmToken.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_sendMembershipRequest.md b/talawa-api-docs/modules/resolvers_Mutation_sendMembershipRequest.md index deea386926..226c34b09b 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_sendMembershipRequest.md +++ b/talawa-api-docs/modules/resolvers_Mutation_sendMembershipRequest.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/sendMembershipRequest.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/sendMembershipRequest.ts#L21) +[src/resolvers/Mutation/sendMembershipRequest.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/sendMembershipRequest.ts#L21) diff --git a/talawa-api-docs/modules/resolvers_Mutation_sendMessageToDirectChat.md b/talawa-api-docs/modules/resolvers_Mutation_sendMessageToDirectChat.md index b7ade1a898..3a2d4e1d59 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_sendMessageToDirectChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_sendMessageToDirectChat.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/sendMessageToDirectChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/sendMessageToDirectChat.ts#L15) +[src/resolvers/Mutation/sendMessageToDirectChat.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/sendMessageToDirectChat.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Mutation_sendMessageToGroupChat.md b/talawa-api-docs/modules/resolvers_Mutation_sendMessageToGroupChat.md index 5a9d9bd8a1..c36820ad8a 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_sendMessageToGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Mutation_sendMessageToGroupChat.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/sendMessageToGroupChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/sendMessageToGroupChat.ts#L20) +[src/resolvers/Mutation/sendMessageToGroupChat.ts:20](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/sendMessageToGroupChat.ts#L20) diff --git a/talawa-api-docs/modules/resolvers_Mutation_signUp.md b/talawa-api-docs/modules/resolvers_Mutation_signUp.md index ead3e83856..58bc2c141f 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_signUp.md +++ b/talawa-api-docs/modules/resolvers_Mutation_signUp.md @@ -26,4 +26,4 @@ payload provided with the request #### Defined in -[src/resolvers/Mutation/signUp.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/signUp.ts#L28) +[src/resolvers/Mutation/signUp.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/signUp.ts#L28) diff --git a/talawa-api-docs/modules/resolvers_Mutation_togglePostPin.md b/talawa-api-docs/modules/resolvers_Mutation_togglePostPin.md index 4c046c4467..2eba74168d 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_togglePostPin.md +++ b/talawa-api-docs/modules/resolvers_Mutation_togglePostPin.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/togglePostPin.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/togglePostPin.ts#L16) +[src/resolvers/Mutation/togglePostPin.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/togglePostPin.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_Mutation_unassignUserTag.md b/talawa-api-docs/modules/resolvers_Mutation_unassignUserTag.md index 7b2523d02f..289b8760bf 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_unassignUserTag.md +++ b/talawa-api-docs/modules/resolvers_Mutation_unassignUserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/unassignUserTag.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/unassignUserTag.ts#L11) +[src/resolvers/Mutation/unassignUserTag.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/unassignUserTag.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Mutation_unblockUser.md b/talawa-api-docs/modules/resolvers_Mutation_unblockUser.md index 26d475e0d7..6e0ba9241d 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_unblockUser.md +++ b/talawa-api-docs/modules/resolvers_Mutation_unblockUser.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/unblockUser.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/unblockUser.ts#L25) +[src/resolvers/Mutation/unblockUser.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/unblockUser.ts#L25) diff --git a/talawa-api-docs/modules/resolvers_Mutation_unlikeComment.md b/talawa-api-docs/modules/resolvers_Mutation_unlikeComment.md index d2fd913ccf..bd39cc5767 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_unlikeComment.md +++ b/talawa-api-docs/modules/resolvers_Mutation_unlikeComment.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/unlikeComment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/unlikeComment.ts#L17) +[src/resolvers/Mutation/unlikeComment.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/unlikeComment.ts#L17) diff --git a/talawa-api-docs/modules/resolvers_Mutation_unlikePost.md b/talawa-api-docs/modules/resolvers_Mutation_unlikePost.md index 976f85c3cf..8b854ca6a4 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_unlikePost.md +++ b/talawa-api-docs/modules/resolvers_Mutation_unlikePost.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/unlikePost.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/unlikePost.ts#L18) +[src/resolvers/Mutation/unlikePost.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/unlikePost.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Mutation_unregisterForEventByUser.md b/talawa-api-docs/modules/resolvers_Mutation_unregisterForEventByUser.md index b52db99d61..77f64390fe 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_unregisterForEventByUser.md +++ b/talawa-api-docs/modules/resolvers_Mutation_unregisterForEventByUser.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/unregisterForEventByUser.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/unregisterForEventByUser.ts#L24) +[src/resolvers/Mutation/unregisterForEventByUser.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/unregisterForEventByUser.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateAdvertisement.md b/talawa-api-docs/modules/resolvers_Mutation_updateAdvertisement.md index 88b9c7d0fc..4cbbfb816f 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateAdvertisement.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateAdvertisement.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/updateAdvertisement.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateAdvertisement.ts#L14) +[src/resolvers/Mutation/updateAdvertisement.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateAdvertisement.ts#L14) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateEvent.md b/talawa-api-docs/modules/resolvers_Mutation_updateEvent.md index 025ca5b296..ef9b296155 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateEvent.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateEvent.md @@ -37,4 +37,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/updateEvent.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateEvent.ts#L26) +[src/resolvers/Mutation/updateEvent.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateEvent.ts#L26) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateLanguage.md b/talawa-api-docs/modules/resolvers_Mutation_updateLanguage.md index 7fd0e07764..7e5b9f6dd9 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateLanguage.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateLanguage.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/updateLanguage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateLanguage.ts#L12) +[src/resolvers/Mutation/updateLanguage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateLanguage.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_updateOrganization.md index 3e15410a30..37ec15b457 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateOrganization.md @@ -36,4 +36,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/updateOrganization.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateOrganization.ts#L21) +[src/resolvers/Mutation/updateOrganization.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateOrganization.ts#L21) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updatePluginStatus.md b/talawa-api-docs/modules/resolvers_Mutation_updatePluginStatus.md index 3b408cf89e..93a7a4ace9 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updatePluginStatus.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updatePluginStatus.md @@ -30,4 +30,4 @@ context of entire application #### Defined in -[src/resolvers/Mutation/updatePluginStatus.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updatePluginStatus.ts#L16) +[src/resolvers/Mutation/updatePluginStatus.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updatePluginStatus.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updatePost.md b/talawa-api-docs/modules/resolvers_Mutation_updatePost.md index 2d2553743b..168c3a3b0e 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updatePost.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updatePost.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/updatePost.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updatePost.ts#L16) +[src/resolvers/Mutation/updatePost.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updatePost.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateUserPassword.md b/talawa-api-docs/modules/resolvers_Mutation_updateUserPassword.md index e49fc5ee7f..29d37de592 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateUserPassword.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateUserPassword.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/updateUserPassword.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateUserPassword.ts#L10) +[src/resolvers/Mutation/updateUserPassword.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateUserPassword.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateUserProfile.md b/talawa-api-docs/modules/resolvers_Mutation_updateUserProfile.md index bfad86413a..ba4a7d065e 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateUserProfile.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateUserProfile.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/updateUserProfile.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateUserProfile.ts#L19) +[src/resolvers/Mutation/updateUserProfile.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateUserProfile.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateUserRoleInOrganization.md b/talawa-api-docs/modules/resolvers_Mutation_updateUserRoleInOrganization.md index 13334a6a8f..082c8f79e9 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateUserRoleInOrganization.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateUserRoleInOrganization.md @@ -30,4 +30,4 @@ context of entire application #### Defined in -[src/resolvers/Mutation/updateUserRoleInOrganization.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateUserRoleInOrganization.ts#L23) +[src/resolvers/Mutation/updateUserRoleInOrganization.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateUserRoleInOrganization.ts#L23) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateUserTag.md b/talawa-api-docs/modules/resolvers_Mutation_updateUserTag.md index ec5117a4a5..532ab39a2b 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateUserTag.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateUserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Mutation/updateUserTag.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateUserTag.ts#L12) +[src/resolvers/Mutation/updateUserTag.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateUserTag.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Mutation_updateUserType.md b/talawa-api-docs/modules/resolvers_Mutation_updateUserType.md index be9c3e433e..e7e4b12f73 100644 --- a/talawa-api-docs/modules/resolvers_Mutation_updateUserType.md +++ b/talawa-api-docs/modules/resolvers_Mutation_updateUserType.md @@ -35,4 +35,4 @@ The following checks are done: #### Defined in -[src/resolvers/Mutation/updateUserType.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Mutation/updateUserType.ts#L18) +[src/resolvers/Mutation/updateUserType.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Mutation/updateUserType.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Organization.md b/talawa-api-docs/modules/resolvers_Organization.md index 3215618711..b444d5ce59 100644 --- a/talawa-api-docs/modules/resolvers_Organization.md +++ b/talawa-api-docs/modules/resolvers_Organization.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Organization/index.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/index.ts#L11) +[src/resolvers/Organization/index.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/index.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Organization_admins.md b/talawa-api-docs/modules/resolvers_Organization_admins.md index c753f62138..fbdd84a86d 100644 --- a/talawa-api-docs/modules/resolvers_Organization_admins.md +++ b/talawa-api-docs/modules/resolvers_Organization_admins.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/Organization/admins.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/admins.ts#L8) +[src/resolvers/Organization/admins.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/admins.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Organization_blockedUsers.md b/talawa-api-docs/modules/resolvers_Organization_blockedUsers.md index 3088c4695f..01f3cfc907 100644 --- a/talawa-api-docs/modules/resolvers_Organization_blockedUsers.md +++ b/talawa-api-docs/modules/resolvers_Organization_blockedUsers.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/Organization/blockedUsers.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/blockedUsers.ts#L8) +[src/resolvers/Organization/blockedUsers.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/blockedUsers.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Organization_creator.md b/talawa-api-docs/modules/resolvers_Organization_creator.md index e4150bb04d..ee7cabd8f1 100644 --- a/talawa-api-docs/modules/resolvers_Organization_creator.md +++ b/talawa-api-docs/modules/resolvers_Organization_creator.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/Organization/creator.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/creator.ts#L10) +[src/resolvers/Organization/creator.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/creator.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Organization_image.md b/talawa-api-docs/modules/resolvers_Organization_image.md index 1ca87932f4..a1e76bcee7 100644 --- a/talawa-api-docs/modules/resolvers_Organization_image.md +++ b/talawa-api-docs/modules/resolvers_Organization_image.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Organization/image.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/image.ts#L4) +[src/resolvers/Organization/image.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/image.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Organization_members.md b/talawa-api-docs/modules/resolvers_Organization_members.md index 3ba33e4268..afce3c9dba 100644 --- a/talawa-api-docs/modules/resolvers_Organization_members.md +++ b/talawa-api-docs/modules/resolvers_Organization_members.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/Organization/members.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/members.ts#L9) +[src/resolvers/Organization/members.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/members.ts#L9) diff --git a/talawa-api-docs/modules/resolvers_Organization_membershipRequests.md b/talawa-api-docs/modules/resolvers_Organization_membershipRequests.md index b3379c53c8..5ae1be8c17 100644 --- a/talawa-api-docs/modules/resolvers_Organization_membershipRequests.md +++ b/talawa-api-docs/modules/resolvers_Organization_membershipRequests.md @@ -22,4 +22,4 @@ An object that is the return value of the resolver for this field's parent. #### Defined in -[src/resolvers/Organization/membershipRequests.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/membershipRequests.ts#L8) +[src/resolvers/Organization/membershipRequests.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/membershipRequests.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Organization_pinnedPosts.md b/talawa-api-docs/modules/resolvers_Organization_pinnedPosts.md index fcabd02694..8c05ac3516 100644 --- a/talawa-api-docs/modules/resolvers_Organization_pinnedPosts.md +++ b/talawa-api-docs/modules/resolvers_Organization_pinnedPosts.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Organization/pinnedPosts.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Organization/pinnedPosts.ts#L6) +[src/resolvers/Organization/pinnedPosts.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Organization/pinnedPosts.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Post.md b/talawa-api-docs/modules/resolvers_Post.md index fdaf66e8bd..169df4ee55 100644 --- a/talawa-api-docs/modules/resolvers_Post.md +++ b/talawa-api-docs/modules/resolvers_Post.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Post/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Post/index.ts#L5) +[src/resolvers/Post/index.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Post/index.ts#L5) diff --git a/talawa-api-docs/modules/resolvers_Post_comments.md b/talawa-api-docs/modules/resolvers_Post_comments.md index 5b5b8d857a..bab8dbf74b 100644 --- a/talawa-api-docs/modules/resolvers_Post_comments.md +++ b/talawa-api-docs/modules/resolvers_Post_comments.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Post/comments.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Post/comments.ts#L6) +[src/resolvers/Post/comments.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Post/comments.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Post_creator.md b/talawa-api-docs/modules/resolvers_Post_creator.md index 397eff51c8..8239e628f8 100644 --- a/talawa-api-docs/modules/resolvers_Post_creator.md +++ b/talawa-api-docs/modules/resolvers_Post_creator.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Post/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Post/creator.ts#L4) +[src/resolvers/Post/creator.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Post/creator.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_Query.md b/talawa-api-docs/modules/resolvers_Query.md index 2028e848a8..2938b4dc5e 100644 --- a/talawa-api-docs/modules/resolvers_Query.md +++ b/talawa-api-docs/modules/resolvers_Query.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Query/index.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/index.ts#L31) +[src/resolvers/Query/index.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/index.ts#L31) diff --git a/talawa-api-docs/modules/resolvers_Query_checkAuth.md b/talawa-api-docs/modules/resolvers_Query_checkAuth.md index 8e6134b561..724720c442 100644 --- a/talawa-api-docs/modules/resolvers_Query_checkAuth.md +++ b/talawa-api-docs/modules/resolvers_Query_checkAuth.md @@ -34,4 +34,4 @@ You can learn about GraphQL `Resolvers` [here](https://www.apollographql.com/doc #### Defined in -[src/resolvers/Query/checkAuth.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/checkAuth.ts#L13) +[src/resolvers/Query/checkAuth.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/checkAuth.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_customDataByOrganization.md b/talawa-api-docs/modules/resolvers_Query_customDataByOrganization.md index 390fbb98dd..a4b783e858 100644 --- a/talawa-api-docs/modules/resolvers_Query_customDataByOrganization.md +++ b/talawa-api-docs/modules/resolvers_Query_customDataByOrganization.md @@ -24,4 +24,4 @@ An object that contains `id` of the organization. #### Defined in -[src/resolvers/Query/customDataByOrganization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/customDataByOrganization.ts#L13) +[src/resolvers/Query/customDataByOrganization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/customDataByOrganization.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_customFieldsByOrganization.md b/talawa-api-docs/modules/resolvers_Query_customFieldsByOrganization.md index 6065be91cb..6729d2eeea 100644 --- a/talawa-api-docs/modules/resolvers_Query_customFieldsByOrganization.md +++ b/talawa-api-docs/modules/resolvers_Query_customFieldsByOrganization.md @@ -24,4 +24,4 @@ An object that contains `id` of the organization. #### Defined in -[src/resolvers/Query/customFieldsByOrganization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/customFieldsByOrganization.ts#L15) +[src/resolvers/Query/customFieldsByOrganization.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/customFieldsByOrganization.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Query_directChatsByUserID.md b/talawa-api-docs/modules/resolvers_Query_directChatsByUserID.md index bc006824e2..91048d4ea8 100644 --- a/talawa-api-docs/modules/resolvers_Query_directChatsByUserID.md +++ b/talawa-api-docs/modules/resolvers_Query_directChatsByUserID.md @@ -29,4 +29,4 @@ You can learn about GraphQL `Resolvers` #### Defined in -[src/resolvers/Query/directChatsByUserID.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/directChatsByUserID.ts#L13) +[src/resolvers/Query/directChatsByUserID.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/directChatsByUserID.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_directChatsMessagesByChatID.md b/talawa-api-docs/modules/resolvers_Query_directChatsMessagesByChatID.md index fb8ff1e61f..6e06d28782 100644 --- a/talawa-api-docs/modules/resolvers_Query_directChatsMessagesByChatID.md +++ b/talawa-api-docs/modules/resolvers_Query_directChatsMessagesByChatID.md @@ -29,4 +29,4 @@ You can learn about GraphQL `Resolvers` #### Defined in -[src/resolvers/Query/directChatsMessagesByChatID.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/directChatsMessagesByChatID.ts#L16) +[src/resolvers/Query/directChatsMessagesByChatID.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/directChatsMessagesByChatID.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Query_event.md b/talawa-api-docs/modules/resolvers_Query_event.md index 0593189487..8c6ce9f923 100644 --- a/talawa-api-docs/modules/resolvers_Query_event.md +++ b/talawa-api-docs/modules/resolvers_Query_event.md @@ -29,4 +29,4 @@ You can learn about GraphQL `Resolvers` #### Defined in -[src/resolvers/Query/event.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/event.ts#L13) +[src/resolvers/Query/event.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/event.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_eventsByOrganization.md b/talawa-api-docs/modules/resolvers_Query_eventsByOrganization.md index acdd3a2dc9..9779afca6b 100644 --- a/talawa-api-docs/modules/resolvers_Query_eventsByOrganization.md +++ b/talawa-api-docs/modules/resolvers_Query_eventsByOrganization.md @@ -24,4 +24,4 @@ An object that contains `orderBy` to sort the object as specified and `id` of th #### Defined in -[src/resolvers/Query/eventsByOrganization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/eventsByOrganization.ts#L10) +[src/resolvers/Query/eventsByOrganization.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/eventsByOrganization.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Query_eventsByOrganizationConnection.md b/talawa-api-docs/modules/resolvers_Query_eventsByOrganizationConnection.md index fe0d4f02a1..b735ad800b 100644 --- a/talawa-api-docs/modules/resolvers_Query_eventsByOrganizationConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_eventsByOrganizationConnection.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Query/eventsByOrganizationConnection.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/eventsByOrganizationConnection.ts#L7) +[src/resolvers/Query/eventsByOrganizationConnection.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/eventsByOrganizationConnection.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_Query_getAdvertisements.md b/talawa-api-docs/modules/resolvers_Query_getAdvertisements.md index cbe7aa11c6..3a93e46bcb 100644 --- a/talawa-api-docs/modules/resolvers_Query_getAdvertisements.md +++ b/talawa-api-docs/modules/resolvers_Query_getAdvertisements.md @@ -18,4 +18,4 @@ This function returns list of Advertisement from the database. #### Defined in -[src/resolvers/Query/getAdvertisements.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getAdvertisements.ts#L8) +[src/resolvers/Query/getAdvertisements.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getAdvertisements.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Query_getDonationById.md b/talawa-api-docs/modules/resolvers_Query_getDonationById.md index eefda23e07..4da092c7eb 100644 --- a/talawa-api-docs/modules/resolvers_Query_getDonationById.md +++ b/talawa-api-docs/modules/resolvers_Query_getDonationById.md @@ -24,4 +24,4 @@ An object that contains `id` of the donation. #### Defined in -[src/resolvers/Query/getDonationById.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getDonationById.ts#L11) +[src/resolvers/Query/getDonationById.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getDonationById.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Query_getDonationByOrgId.md b/talawa-api-docs/modules/resolvers_Query_getDonationByOrgId.md index 93354e97ae..6bf846cfd2 100644 --- a/talawa-api-docs/modules/resolvers_Query_getDonationByOrgId.md +++ b/talawa-api-docs/modules/resolvers_Query_getDonationByOrgId.md @@ -24,4 +24,4 @@ An object that contains `orgId` of the Organization. #### Defined in -[src/resolvers/Query/getDonationByOrgId.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getDonationByOrgId.ts#L10) +[src/resolvers/Query/getDonationByOrgId.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getDonationByOrgId.ts#L10) diff --git a/talawa-api-docs/modules/resolvers_Query_getDonationByOrgIdConnection.md b/talawa-api-docs/modules/resolvers_Query_getDonationByOrgIdConnection.md index e4fb9e1e3a..d1f304c256 100644 --- a/talawa-api-docs/modules/resolvers_Query_getDonationByOrgIdConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_getDonationByOrgIdConnection.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Query/getDonationByOrgIdConnection.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getDonationByOrgIdConnection.ts#L6) +[src/resolvers/Query/getDonationByOrgIdConnection.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getDonationByOrgIdConnection.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Query_getPlugins.md b/talawa-api-docs/modules/resolvers_Query_getPlugins.md index 2491a31cc2..e78b964000 100644 --- a/talawa-api-docs/modules/resolvers_Query_getPlugins.md +++ b/talawa-api-docs/modules/resolvers_Query_getPlugins.md @@ -18,4 +18,4 @@ This function returns list of plugins from the database. #### Defined in -[src/resolvers/Query/getPlugins.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getPlugins.ts#L8) +[src/resolvers/Query/getPlugins.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getPlugins.ts#L8) diff --git a/talawa-api-docs/modules/resolvers_Query_getlanguage.md b/talawa-api-docs/modules/resolvers_Query_getlanguage.md index 9620509b49..108400ca8a 100644 --- a/talawa-api-docs/modules/resolvers_Query_getlanguage.md +++ b/talawa-api-docs/modules/resolvers_Query_getlanguage.md @@ -24,4 +24,4 @@ An object that contains `lang_code`. #### Defined in -[src/resolvers/Query/getlanguage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/getlanguage.ts#L12) +[src/resolvers/Query/getlanguage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/getlanguage.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Query_hasSubmittedFeedback.md b/talawa-api-docs/modules/resolvers_Query_hasSubmittedFeedback.md index fed92eb28f..a031b0c084 100644 --- a/talawa-api-docs/modules/resolvers_Query_hasSubmittedFeedback.md +++ b/talawa-api-docs/modules/resolvers_Query_hasSubmittedFeedback.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Query/hasSubmittedFeedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/hasSubmittedFeedback.ts#L11) +[src/resolvers/Query/hasSubmittedFeedback.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/hasSubmittedFeedback.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Query_helperFunctions_getSort.md b/talawa-api-docs/modules/resolvers_Query_helperFunctions_getSort.md index c59ddad573..04d3970609 100644 --- a/talawa-api-docs/modules/resolvers_Query_helperFunctions_getSort.md +++ b/talawa-api-docs/modules/resolvers_Query_helperFunctions_getSort.md @@ -26,4 +26,4 @@ #### Defined in -[src/resolvers/Query/helperFunctions/getSort.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/helperFunctions/getSort.ts#L9) +[src/resolvers/Query/helperFunctions/getSort.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/helperFunctions/getSort.ts#L9) diff --git a/talawa-api-docs/modules/resolvers_Query_helperFunctions_getWhere.md b/talawa-api-docs/modules/resolvers_Query_helperFunctions_getWhere.md index 6a4f7a8d3e..35770bf462 100644 --- a/talawa-api-docs/modules/resolvers_Query_helperFunctions_getWhere.md +++ b/talawa-api-docs/modules/resolvers_Query_helperFunctions_getWhere.md @@ -48,4 +48,4 @@ const inputArgs = getWhere(args.where); #### Defined in -[src/resolvers/Query/helperFunctions/getWhere.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/helperFunctions/getWhere.ts#L24) +[src/resolvers/Query/helperFunctions/getWhere.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/helperFunctions/getWhere.ts#L24) diff --git a/talawa-api-docs/modules/resolvers_Query_me.md b/talawa-api-docs/modules/resolvers_Query_me.md index 51718d248d..2cbfe9dbee 100644 --- a/talawa-api-docs/modules/resolvers_Query_me.md +++ b/talawa-api-docs/modules/resolvers_Query_me.md @@ -26,4 +26,4 @@ An object that contains `userId`. #### Defined in -[src/resolvers/Query/me.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/me.ts#L13) +[src/resolvers/Query/me.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/me.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_myLanguage.md b/talawa-api-docs/modules/resolvers_Query_myLanguage.md index e9b7d48186..1b9b3c641c 100644 --- a/talawa-api-docs/modules/resolvers_Query_myLanguage.md +++ b/talawa-api-docs/modules/resolvers_Query_myLanguage.md @@ -26,4 +26,4 @@ An object that contains `userId`. #### Defined in -[src/resolvers/Query/myLanguage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/myLanguage.ts#L13) +[src/resolvers/Query/myLanguage.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/myLanguage.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_organizationIsSample.md b/talawa-api-docs/modules/resolvers_Query_organizationIsSample.md index 583f4fafbd..9b39f15d62 100644 --- a/talawa-api-docs/modules/resolvers_Query_organizationIsSample.md +++ b/talawa-api-docs/modules/resolvers_Query_organizationIsSample.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Query/organizationIsSample.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/organizationIsSample.ts#L6) +[src/resolvers/Query/organizationIsSample.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/organizationIsSample.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Query_organizations.md b/talawa-api-docs/modules/resolvers_Query_organizations.md index 9a8362b1ff..04b637d42e 100644 --- a/talawa-api-docs/modules/resolvers_Query_organizations.md +++ b/talawa-api-docs/modules/resolvers_Query_organizations.md @@ -29,4 +29,4 @@ An object containing `orderBy` and `id` of the Organization. #### Defined in -[src/resolvers/Query/organizations.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/organizations.ts#L16) +[src/resolvers/Query/organizations.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/organizations.ts#L16) diff --git a/talawa-api-docs/modules/resolvers_Query_organizationsConnection.md b/talawa-api-docs/modules/resolvers_Query_organizationsConnection.md index 6574b72fa9..800affd407 100644 --- a/talawa-api-docs/modules/resolvers_Query_organizationsConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_organizationsConnection.md @@ -32,4 +32,4 @@ learn more about Connection [here](https://relay.dev/graphql/connections.htm). #### Defined in -[src/resolvers/Query/organizationsConnection.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/organizationsConnection.ts#L18) +[src/resolvers/Query/organizationsConnection.ts:18](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/organizationsConnection.ts#L18) diff --git a/talawa-api-docs/modules/resolvers_Query_organizationsMemberConnection.md b/talawa-api-docs/modules/resolvers_Query_organizationsMemberConnection.md index 8b0322ef7a..54a7ce6719 100644 --- a/talawa-api-docs/modules/resolvers_Query_organizationsMemberConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_organizationsMemberConnection.md @@ -32,4 +32,4 @@ learn more about Connection [here](https://relay.dev/graphql/connections.htm). #### Defined in -[src/resolvers/Query/organizationsMemberConnection.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/organizationsMemberConnection.ts#L19) +[src/resolvers/Query/organizationsMemberConnection.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/organizationsMemberConnection.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_Query_post.md b/talawa-api-docs/modules/resolvers_Query_post.md index d61bc81588..99319c6e19 100644 --- a/talawa-api-docs/modules/resolvers_Query_post.md +++ b/talawa-api-docs/modules/resolvers_Query_post.md @@ -24,4 +24,4 @@ An object that contains `id` of the Post. #### Defined in -[src/resolvers/Query/post.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/post.ts#L11) +[src/resolvers/Query/post.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/post.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Query_postsByOrganization.md b/talawa-api-docs/modules/resolvers_Query_postsByOrganization.md index a34934986b..d44af23654 100644 --- a/talawa-api-docs/modules/resolvers_Query_postsByOrganization.md +++ b/talawa-api-docs/modules/resolvers_Query_postsByOrganization.md @@ -28,4 +28,4 @@ The query function uses `getSort()` function to sort the data in specified order #### Defined in -[src/resolvers/Query/postsByOrganization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/postsByOrganization.ts#L13) +[src/resolvers/Query/postsByOrganization.ts:13](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/postsByOrganization.ts#L13) diff --git a/talawa-api-docs/modules/resolvers_Query_postsByOrganizationConnection.md b/talawa-api-docs/modules/resolvers_Query_postsByOrganizationConnection.md index 2958c825df..eb821bfa22 100644 --- a/talawa-api-docs/modules/resolvers_Query_postsByOrganizationConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_postsByOrganizationConnection.md @@ -32,4 +32,4 @@ learn more about Connection [here](https://relay.dev/graphql/connections.htm). #### Defined in -[src/resolvers/Query/postsByOrganizationConnection.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/postsByOrganizationConnection.ts#L19) +[src/resolvers/Query/postsByOrganizationConnection.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/postsByOrganizationConnection.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_Query_registeredEventsByUser.md b/talawa-api-docs/modules/resolvers_Query_registeredEventsByUser.md index 2ca6b6edee..da77162599 100644 --- a/talawa-api-docs/modules/resolvers_Query_registeredEventsByUser.md +++ b/talawa-api-docs/modules/resolvers_Query_registeredEventsByUser.md @@ -28,4 +28,4 @@ The query function uses `getSort()` function to sort the data in specified. #### Defined in -[src/resolvers/Query/registeredEventsByUser.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/registeredEventsByUser.ts#L12) +[src/resolvers/Query/registeredEventsByUser.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/registeredEventsByUser.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Query_user.md b/talawa-api-docs/modules/resolvers_Query_user.md index 24d1e1d2de..d215fe2407 100644 --- a/talawa-api-docs/modules/resolvers_Query_user.md +++ b/talawa-api-docs/modules/resolvers_Query_user.md @@ -26,4 +26,4 @@ An object that contains `id` for the user. #### Defined in -[src/resolvers/Query/user.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/user.ts#L12) +[src/resolvers/Query/user.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/user.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Query_userLanguage.md b/talawa-api-docs/modules/resolvers_Query_userLanguage.md index dcd814eef6..7ec56b5a68 100644 --- a/talawa-api-docs/modules/resolvers_Query_userLanguage.md +++ b/talawa-api-docs/modules/resolvers_Query_userLanguage.md @@ -24,4 +24,4 @@ An object that contains `userId`. #### Defined in -[src/resolvers/Query/userLanguage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/userLanguage.ts#L11) +[src/resolvers/Query/userLanguage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/userLanguage.ts#L11) diff --git a/talawa-api-docs/modules/resolvers_Query_users.md b/talawa-api-docs/modules/resolvers_Query_users.md index f8253cea81..f1434b8671 100644 --- a/talawa-api-docs/modules/resolvers_Query_users.md +++ b/talawa-api-docs/modules/resolvers_Query_users.md @@ -30,4 +30,4 @@ The query function uses `getSort()` function to sort the data in specified. #### Defined in -[src/resolvers/Query/users.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/users.ts#L17) +[src/resolvers/Query/users.ts:17](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/users.ts#L17) diff --git a/talawa-api-docs/modules/resolvers_Query_usersConnection.md b/talawa-api-docs/modules/resolvers_Query_usersConnection.md index 838958334d..111da07abc 100644 --- a/talawa-api-docs/modules/resolvers_Query_usersConnection.md +++ b/talawa-api-docs/modules/resolvers_Query_usersConnection.md @@ -29,4 +29,4 @@ learn more about Connection [here](https://relay.dev/graphql/connections.htm). #### Defined in -[src/resolvers/Query/usersConnection.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Query/usersConnection.ts#L15) +[src/resolvers/Query/usersConnection.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Query/usersConnection.ts#L15) diff --git a/talawa-api-docs/modules/resolvers_Subscription.md b/talawa-api-docs/modules/resolvers_Subscription.md index 2c82a9300a..fffc049595 100644 --- a/talawa-api-docs/modules/resolvers_Subscription.md +++ b/talawa-api-docs/modules/resolvers_Subscription.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/Subscription/index.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/index.ts#L6) +[src/resolvers/Subscription/index.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/index.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Subscription_directMessageChat.md b/talawa-api-docs/modules/resolvers_Subscription_directMessageChat.md index 75cecdacf7..d7fe6cc9e7 100644 --- a/talawa-api-docs/modules/resolvers_Subscription_directMessageChat.md +++ b/talawa-api-docs/modules/resolvers_Subscription_directMessageChat.md @@ -25,4 +25,4 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/directMessageChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/directMessageChat.ts#L12) +[src/resolvers/Subscription/directMessageChat.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/directMessageChat.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_Subscription_messageSentToDirectChat.md b/talawa-api-docs/modules/resolvers_Subscription_messageSentToDirectChat.md index ae03b4493f..eed6b8ace5 100644 --- a/talawa-api-docs/modules/resolvers_Subscription_messageSentToDirectChat.md +++ b/talawa-api-docs/modules/resolvers_Subscription_messageSentToDirectChat.md @@ -29,7 +29,7 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/messageSentToDirectChat.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/messageSentToDirectChat.ts#L21) +[src/resolvers/Subscription/messageSentToDirectChat.ts:21](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/messageSentToDirectChat.ts#L21) ## Functions @@ -50,4 +50,4 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/messageSentToDirectChat.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/messageSentToDirectChat.ts#L6) +[src/resolvers/Subscription/messageSentToDirectChat.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/messageSentToDirectChat.ts#L6) diff --git a/talawa-api-docs/modules/resolvers_Subscription_messageSentToGroupChat.md b/talawa-api-docs/modules/resolvers_Subscription_messageSentToGroupChat.md index 66367e7d5b..7bfaa38b58 100644 --- a/talawa-api-docs/modules/resolvers_Subscription_messageSentToGroupChat.md +++ b/talawa-api-docs/modules/resolvers_Subscription_messageSentToGroupChat.md @@ -29,7 +29,7 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/messageSentToGroupChat.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/messageSentToGroupChat.ts#L35) +[src/resolvers/Subscription/messageSentToGroupChat.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/messageSentToGroupChat.ts#L35) ## Functions @@ -50,4 +50,4 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/messageSentToGroupChat.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/messageSentToGroupChat.ts#L7) +[src/resolvers/Subscription/messageSentToGroupChat.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/messageSentToGroupChat.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_Subscription_onPluginUpdate.md b/talawa-api-docs/modules/resolvers_Subscription_onPluginUpdate.md index 0e1f254ebf..421e68e9ea 100644 --- a/talawa-api-docs/modules/resolvers_Subscription_onPluginUpdate.md +++ b/talawa-api-docs/modules/resolvers_Subscription_onPluginUpdate.md @@ -20,7 +20,7 @@ #### Defined in -[src/resolvers/Subscription/onPluginUpdate.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/onPluginUpdate.ts#L28) +[src/resolvers/Subscription/onPluginUpdate.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/onPluginUpdate.ts#L28) ## Functions @@ -50,4 +50,4 @@ You can learn about `subscription` [here](https://www.apollographql.com/docs/apo #### Defined in -[src/resolvers/Subscription/onPluginUpdate.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/Subscription/onPluginUpdate.ts#L19) +[src/resolvers/Subscription/onPluginUpdate.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/Subscription/onPluginUpdate.ts#L19) diff --git a/talawa-api-docs/modules/resolvers_User.md b/talawa-api-docs/modules/resolvers_User.md index 2eddd76b05..76f0945685 100644 --- a/talawa-api-docs/modules/resolvers_User.md +++ b/talawa-api-docs/modules/resolvers_User.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/User/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/User/index.ts#L4) +[src/resolvers/User/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/User/index.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_UserTag.md b/talawa-api-docs/modules/resolvers_UserTag.md index ab12b5921b..8287e62251 100644 --- a/talawa-api-docs/modules/resolvers_UserTag.md +++ b/talawa-api-docs/modules/resolvers_UserTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/UserTag/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/UserTag/index.ts#L7) +[src/resolvers/UserTag/index.ts:7](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/UserTag/index.ts#L7) diff --git a/talawa-api-docs/modules/resolvers_UserTag_childTags.md b/talawa-api-docs/modules/resolvers_UserTag_childTags.md index 00c1ce0f31..a612314c94 100644 --- a/talawa-api-docs/modules/resolvers_UserTag_childTags.md +++ b/talawa-api-docs/modules/resolvers_UserTag_childTags.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/UserTag/childTags.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/UserTag/childTags.ts#L12) +[src/resolvers/UserTag/childTags.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/UserTag/childTags.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_UserTag_organization.md b/talawa-api-docs/modules/resolvers_UserTag_organization.md index 4498a54df1..bd5255a412 100644 --- a/talawa-api-docs/modules/resolvers_UserTag_organization.md +++ b/talawa-api-docs/modules/resolvers_UserTag_organization.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/UserTag/organization.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/UserTag/organization.ts#L4) +[src/resolvers/UserTag/organization.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/UserTag/organization.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_UserTag_parentTag.md b/talawa-api-docs/modules/resolvers_UserTag_parentTag.md index 999faed8db..a772d2fa9b 100644 --- a/talawa-api-docs/modules/resolvers_UserTag_parentTag.md +++ b/talawa-api-docs/modules/resolvers_UserTag_parentTag.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/UserTag/parentTag.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/UserTag/parentTag.ts#L4) +[src/resolvers/UserTag/parentTag.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/UserTag/parentTag.ts#L4) diff --git a/talawa-api-docs/modules/resolvers_UserTag_usersAssignedTo.md b/talawa-api-docs/modules/resolvers_UserTag_usersAssignedTo.md index 633cb383aa..faeb521123 100644 --- a/talawa-api-docs/modules/resolvers_UserTag_usersAssignedTo.md +++ b/talawa-api-docs/modules/resolvers_UserTag_usersAssignedTo.md @@ -16,4 +16,4 @@ #### Defined in -[src/resolvers/UserTag/usersAssignedTo.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/UserTag/usersAssignedTo.ts#L12) +[src/resolvers/UserTag/usersAssignedTo.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/UserTag/usersAssignedTo.ts#L12) diff --git a/talawa-api-docs/modules/resolvers_middleware_currentUserExists.md b/talawa-api-docs/modules/resolvers_middleware_currentUserExists.md index fc01081135..e6cb95a063 100644 --- a/talawa-api-docs/modules/resolvers_middleware_currentUserExists.md +++ b/talawa-api-docs/modules/resolvers_middleware_currentUserExists.md @@ -48,4 +48,4 @@ #### Defined in -[src/resolvers/middleware/currentUserExists.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/resolvers/middleware/currentUserExists.ts#L8) +[src/resolvers/middleware/currentUserExists.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/resolvers/middleware/currentUserExists.ts#L8) diff --git a/talawa-api-docs/modules/services_CommentCache_cacheComments.md b/talawa-api-docs/modules/services_CommentCache_cacheComments.md index 5e9e830916..fd4bc3deaa 100644 --- a/talawa-api-docs/modules/services_CommentCache_cacheComments.md +++ b/talawa-api-docs/modules/services_CommentCache_cacheComments.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/CommentCache/cacheComments.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/CommentCache/cacheComments.ts#L6) +[src/services/CommentCache/cacheComments.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/CommentCache/cacheComments.ts#L6) diff --git a/talawa-api-docs/modules/services_CommentCache_deleteCommentFromCache.md b/talawa-api-docs/modules/services_CommentCache_deleteCommentFromCache.md index b023466884..c032d98473 100644 --- a/talawa-api-docs/modules/services_CommentCache_deleteCommentFromCache.md +++ b/talawa-api-docs/modules/services_CommentCache_deleteCommentFromCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/CommentCache/deleteCommentFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/CommentCache/deleteCommentFromCache.ts#L4) +[src/services/CommentCache/deleteCommentFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/CommentCache/deleteCommentFromCache.ts#L4) diff --git a/talawa-api-docs/modules/services_CommentCache_findCommentsByPostIdInCache.md b/talawa-api-docs/modules/services_CommentCache_findCommentsByPostIdInCache.md index 7955ed8a18..26c140ae56 100644 --- a/talawa-api-docs/modules/services_CommentCache_findCommentsByPostIdInCache.md +++ b/talawa-api-docs/modules/services_CommentCache_findCommentsByPostIdInCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/CommentCache/findCommentsByPostIdInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/CommentCache/findCommentsByPostIdInCache.ts#L6) +[src/services/CommentCache/findCommentsByPostIdInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/CommentCache/findCommentsByPostIdInCache.ts#L6) diff --git a/talawa-api-docs/modules/services_CommentCache_findCommentsInCache.md b/talawa-api-docs/modules/services_CommentCache_findCommentsInCache.md index 18d4edc8ca..9bf80379bc 100644 --- a/talawa-api-docs/modules/services_CommentCache_findCommentsInCache.md +++ b/talawa-api-docs/modules/services_CommentCache_findCommentsInCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/CommentCache/findCommentsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/CommentCache/findCommentsInCache.ts#L6) +[src/services/CommentCache/findCommentsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/CommentCache/findCommentsInCache.ts#L6) diff --git a/talawa-api-docs/modules/services_EventCache_cacheEvents.md b/talawa-api-docs/modules/services_EventCache_cacheEvents.md index 54db5c4a17..6d9518dfbd 100644 --- a/talawa-api-docs/modules/services_EventCache_cacheEvents.md +++ b/talawa-api-docs/modules/services_EventCache_cacheEvents.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/EventCache/cacheEvents.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/EventCache/cacheEvents.ts#L6) +[src/services/EventCache/cacheEvents.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/EventCache/cacheEvents.ts#L6) diff --git a/talawa-api-docs/modules/services_EventCache_deleteEventFromCache.md b/talawa-api-docs/modules/services_EventCache_deleteEventFromCache.md index 95e23aa3d3..5ddfc9b11e 100644 --- a/talawa-api-docs/modules/services_EventCache_deleteEventFromCache.md +++ b/talawa-api-docs/modules/services_EventCache_deleteEventFromCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/EventCache/deleteEventFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/EventCache/deleteEventFromCache.ts#L4) +[src/services/EventCache/deleteEventFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/EventCache/deleteEventFromCache.ts#L4) diff --git a/talawa-api-docs/modules/services_EventCache_findEventInCache.md b/talawa-api-docs/modules/services_EventCache_findEventInCache.md index c629eec867..86394b0e54 100644 --- a/talawa-api-docs/modules/services_EventCache_findEventInCache.md +++ b/talawa-api-docs/modules/services_EventCache_findEventInCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/EventCache/findEventInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/EventCache/findEventInCache.ts#L6) +[src/services/EventCache/findEventInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/EventCache/findEventInCache.ts#L6) diff --git a/talawa-api-docs/modules/services_OrganizationCache_cacheOrganizations.md b/talawa-api-docs/modules/services_OrganizationCache_cacheOrganizations.md index 251645a69a..a19de89889 100644 --- a/talawa-api-docs/modules/services_OrganizationCache_cacheOrganizations.md +++ b/talawa-api-docs/modules/services_OrganizationCache_cacheOrganizations.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/OrganizationCache/cacheOrganizations.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/OrganizationCache/cacheOrganizations.ts#L6) +[src/services/OrganizationCache/cacheOrganizations.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/OrganizationCache/cacheOrganizations.ts#L6) diff --git a/talawa-api-docs/modules/services_OrganizationCache_deleteOrganizationFromCache.md b/talawa-api-docs/modules/services_OrganizationCache_deleteOrganizationFromCache.md index c9ab77dd20..1508ba66a2 100644 --- a/talawa-api-docs/modules/services_OrganizationCache_deleteOrganizationFromCache.md +++ b/talawa-api-docs/modules/services_OrganizationCache_deleteOrganizationFromCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/OrganizationCache/deleteOrganizationFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/OrganizationCache/deleteOrganizationFromCache.ts#L4) +[src/services/OrganizationCache/deleteOrganizationFromCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/OrganizationCache/deleteOrganizationFromCache.ts#L4) diff --git a/talawa-api-docs/modules/services_OrganizationCache_findOrganizationsInCache.md b/talawa-api-docs/modules/services_OrganizationCache_findOrganizationsInCache.md index 82da4056c3..4ab8bba6ba 100644 --- a/talawa-api-docs/modules/services_OrganizationCache_findOrganizationsInCache.md +++ b/talawa-api-docs/modules/services_OrganizationCache_findOrganizationsInCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/OrganizationCache/findOrganizationsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/OrganizationCache/findOrganizationsInCache.ts#L6) +[src/services/OrganizationCache/findOrganizationsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/OrganizationCache/findOrganizationsInCache.ts#L6) diff --git a/talawa-api-docs/modules/services_PostCache_cachePosts.md b/talawa-api-docs/modules/services_PostCache_cachePosts.md index 97b6acdc20..45f51af9db 100644 --- a/talawa-api-docs/modules/services_PostCache_cachePosts.md +++ b/talawa-api-docs/modules/services_PostCache_cachePosts.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/PostCache/cachePosts.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/PostCache/cachePosts.ts#L6) +[src/services/PostCache/cachePosts.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/PostCache/cachePosts.ts#L6) diff --git a/talawa-api-docs/modules/services_PostCache_deletePostFromCache.md b/talawa-api-docs/modules/services_PostCache_deletePostFromCache.md index 6a2caa81cb..d76b06fdbf 100644 --- a/talawa-api-docs/modules/services_PostCache_deletePostFromCache.md +++ b/talawa-api-docs/modules/services_PostCache_deletePostFromCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/PostCache/deletePostFromCache.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/PostCache/deletePostFromCache.ts#L3) +[src/services/PostCache/deletePostFromCache.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/PostCache/deletePostFromCache.ts#L3) diff --git a/talawa-api-docs/modules/services_PostCache_findPostsInCache.md b/talawa-api-docs/modules/services_PostCache_findPostsInCache.md index b203ae16ab..d0098f334a 100644 --- a/talawa-api-docs/modules/services_PostCache_findPostsInCache.md +++ b/talawa-api-docs/modules/services_PostCache_findPostsInCache.md @@ -26,4 +26,4 @@ #### Defined in -[src/services/PostCache/findPostsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/PostCache/findPostsInCache.ts#L6) +[src/services/PostCache/findPostsInCache.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/PostCache/findPostsInCache.ts#L6) diff --git a/talawa-api-docs/modules/services_redisCache.md b/talawa-api-docs/modules/services_redisCache.md index 76017036a6..bb0fdd4be6 100644 --- a/talawa-api-docs/modules/services_redisCache.md +++ b/talawa-api-docs/modules/services_redisCache.md @@ -16,4 +16,4 @@ #### Defined in -[src/services/redisCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/services/redisCache.ts#L4) +[src/services/redisCache.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/services/redisCache.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs.md b/talawa-api-docs/modules/typeDefs.md index a09a9f1863..dd217b8936 100644 --- a/talawa-api-docs/modules/typeDefs.md +++ b/talawa-api-docs/modules/typeDefs.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/index.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/index.ts#L19) +[src/typeDefs/index.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/index.ts#L19) diff --git a/talawa-api-docs/modules/typeDefs_directives.md b/talawa-api-docs/modules/typeDefs_directives.md index dd43bd8816..618f1bcdb5 100644 --- a/talawa-api-docs/modules/typeDefs_directives.md +++ b/talawa-api-docs/modules/typeDefs_directives.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/directives.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/directives.ts#L4) +[src/typeDefs/directives.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/directives.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_enums.md b/talawa-api-docs/modules/typeDefs_enums.md index 51d4e23df3..27d4b3421b 100644 --- a/talawa-api-docs/modules/typeDefs_enums.md +++ b/talawa-api-docs/modules/typeDefs_enums.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/enums.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/enums.ts#L4) +[src/typeDefs/enums.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/enums.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_errors.md b/talawa-api-docs/modules/typeDefs_errors.md index c741177096..069ee0b7ab 100644 --- a/talawa-api-docs/modules/typeDefs_errors.md +++ b/talawa-api-docs/modules/typeDefs_errors.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/errors/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/errors/index.ts#L4) +[src/typeDefs/errors/index.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/errors/index.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_errors_common.md b/talawa-api-docs/modules/typeDefs_errors_common.md index 8eafcc0ee0..6a1807b3e0 100644 --- a/talawa-api-docs/modules/typeDefs_errors_common.md +++ b/talawa-api-docs/modules/typeDefs_errors_common.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/errors/common.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/errors/common.ts#L3) +[src/typeDefs/errors/common.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/errors/common.ts#L3) diff --git a/talawa-api-docs/modules/typeDefs_errors_connectionError.md b/talawa-api-docs/modules/typeDefs_errors_connectionError.md index ca46937b56..dfed22ea0d 100644 --- a/talawa-api-docs/modules/typeDefs_errors_connectionError.md +++ b/talawa-api-docs/modules/typeDefs_errors_connectionError.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/errors/connectionError.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/errors/connectionError.ts#L3) +[src/typeDefs/errors/connectionError.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/errors/connectionError.ts#L3) diff --git a/talawa-api-docs/modules/typeDefs_inputs.md b/talawa-api-docs/modules/typeDefs_inputs.md index 9a455e7b99..c42ab50c73 100644 --- a/talawa-api-docs/modules/typeDefs_inputs.md +++ b/talawa-api-docs/modules/typeDefs_inputs.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/inputs.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/inputs.ts#L4) +[src/typeDefs/inputs.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/inputs.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_interfaces.md b/talawa-api-docs/modules/typeDefs_interfaces.md index 161b2d3deb..ff1f2ec1d3 100644 --- a/talawa-api-docs/modules/typeDefs_interfaces.md +++ b/talawa-api-docs/modules/typeDefs_interfaces.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/interfaces.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/interfaces.ts#L4) +[src/typeDefs/interfaces.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/interfaces.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_mutations.md b/talawa-api-docs/modules/typeDefs_mutations.md index a3aa814e57..4202710f26 100644 --- a/talawa-api-docs/modules/typeDefs_mutations.md +++ b/talawa-api-docs/modules/typeDefs_mutations.md @@ -18,4 +18,4 @@ This graphQL typeDef defines the logic for different mutations defined in the ta #### Defined in -[src/typeDefs/mutations.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/mutations.ts#L6) +[src/typeDefs/mutations.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/mutations.ts#L6) diff --git a/talawa-api-docs/modules/typeDefs_queries.md b/talawa-api-docs/modules/typeDefs_queries.md index d89b718c5c..1be226617b 100644 --- a/talawa-api-docs/modules/typeDefs_queries.md +++ b/talawa-api-docs/modules/typeDefs_queries.md @@ -18,4 +18,4 @@ This graphQL typeDef defines the logic for different queries defined in the tala #### Defined in -[src/typeDefs/queries.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/queries.ts#L6) +[src/typeDefs/queries.ts:6](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/queries.ts#L6) diff --git a/talawa-api-docs/modules/typeDefs_scalars.md b/talawa-api-docs/modules/typeDefs_scalars.md index 2416cbee86..c12918ed8f 100644 --- a/talawa-api-docs/modules/typeDefs_scalars.md +++ b/talawa-api-docs/modules/typeDefs_scalars.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/scalars.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/scalars.ts#L4) +[src/typeDefs/scalars.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/scalars.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_subscriptions.md b/talawa-api-docs/modules/typeDefs_subscriptions.md index 4524c41136..13abe85524 100644 --- a/talawa-api-docs/modules/typeDefs_subscriptions.md +++ b/talawa-api-docs/modules/typeDefs_subscriptions.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/subscriptions.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/subscriptions.ts#L4) +[src/typeDefs/subscriptions.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/subscriptions.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_types.md b/talawa-api-docs/modules/typeDefs_types.md index 0042c057ee..a7699c685c 100644 --- a/talawa-api-docs/modules/typeDefs_types.md +++ b/talawa-api-docs/modules/typeDefs_types.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/types.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/types.ts#L4) +[src/typeDefs/types.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/types.ts#L4) diff --git a/talawa-api-docs/modules/typeDefs_unions.md b/talawa-api-docs/modules/typeDefs_unions.md index 8891cf2245..3668ea8031 100644 --- a/talawa-api-docs/modules/typeDefs_unions.md +++ b/talawa-api-docs/modules/typeDefs_unions.md @@ -16,4 +16,4 @@ #### Defined in -[src/typeDefs/unions.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/typeDefs/unions.ts#L4) +[src/typeDefs/unions.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/typeDefs/unions.ts#L4) diff --git a/talawa-api-docs/modules/types_generatedGraphQLTypes.md b/talawa-api-docs/modules/types_generatedGraphQLTypes.md index 35ef008237..1a756326f1 100644 --- a/talawa-api-docs/modules/types_generatedGraphQLTypes.md +++ b/talawa-api-docs/modules/types_generatedGraphQLTypes.md @@ -364,7 +364,7 @@ #### Defined in -[src/types/generatedGraphQLTypes.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L54) +[src/types/generatedGraphQLTypes.ts:54](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L54) ___ @@ -387,7 +387,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:66](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L66) +[src/types/generatedGraphQLTypes.ts:66](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L66) ___ @@ -418,7 +418,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2199](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2199) +[src/types/generatedGraphQLTypes.ts:2200](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2200) ___ @@ -444,7 +444,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:77](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L77) +[src/types/generatedGraphQLTypes.ts:77](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L77) ___ @@ -477,7 +477,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2211](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2211) +[src/types/generatedGraphQLTypes.ts:2212](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2212) ___ @@ -487,7 +487,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:91](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L91) +[src/types/generatedGraphQLTypes.ts:91](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L91) ___ @@ -504,7 +504,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:96](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L96) +[src/types/generatedGraphQLTypes.ts:96](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L96) ___ @@ -528,7 +528,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2225](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2225) +[src/types/generatedGraphQLTypes.ts:2226](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2226) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:101](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L101) +[src/types/generatedGraphQLTypes.ts:101](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L101) ___ @@ -569,7 +569,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2230](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2230) +[src/types/generatedGraphQLTypes.ts:2231](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2231) ___ @@ -588,7 +588,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L106) +[src/types/generatedGraphQLTypes.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L106) ___ @@ -614,7 +614,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2239](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2239) +[src/types/generatedGraphQLTypes.ts:2240](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2240) ___ @@ -624,7 +624,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2189](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2189) +[src/types/generatedGraphQLTypes.ts:2190](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2190) ___ @@ -643,7 +643,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2191](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2191) +[src/types/generatedGraphQLTypes.ts:2192](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2192) ___ @@ -668,7 +668,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:113](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L113) +[src/types/generatedGraphQLTypes.ts:113](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L113) ___ @@ -687,7 +687,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:126](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L126) +[src/types/generatedGraphQLTypes.ts:126](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L126) ___ @@ -719,7 +719,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2246](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2246) +[src/types/generatedGraphQLTypes.ts:2247](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2247) ___ @@ -738,7 +738,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:133](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L133) +[src/types/generatedGraphQLTypes.ts:133](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L133) ___ @@ -764,7 +764,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2259](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2259) +[src/types/generatedGraphQLTypes.ts:2260](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2260) ___ @@ -788,7 +788,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:140](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L140) +[src/types/generatedGraphQLTypes.ts:140](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L140) ___ @@ -804,7 +804,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:152](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L152) +[src/types/generatedGraphQLTypes.ts:152](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L152) ___ @@ -835,7 +835,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2266](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2266) +[src/types/generatedGraphQLTypes.ts:2267](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2267) ___ @@ -845,7 +845,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:156](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L156) +[src/types/generatedGraphQLTypes.ts:156](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L156) ___ @@ -868,7 +868,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2278](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2278) +[src/types/generatedGraphQLTypes.ts:2279](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2279) ___ @@ -888,7 +888,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:158](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L158) +[src/types/generatedGraphQLTypes.ts:158](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L158) ___ @@ -915,7 +915,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2282](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2282) +[src/types/generatedGraphQLTypes.ts:2283](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2283) ___ @@ -932,7 +932,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1850](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1850) +[src/types/generatedGraphQLTypes.ts:1851](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1851) ___ @@ -950,7 +950,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1855](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1855) +[src/types/generatedGraphQLTypes.ts:1856](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1856) ___ @@ -968,7 +968,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:166](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L166) +[src/types/generatedGraphQLTypes.ts:166](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L166) ___ @@ -986,7 +986,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:172](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L172) +[src/types/generatedGraphQLTypes.ts:172](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L172) ___ @@ -1003,7 +1003,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:178](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L178) +[src/types/generatedGraphQLTypes.ts:178](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L178) ___ @@ -1027,7 +1027,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2302](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2302) +[src/types/generatedGraphQLTypes.ts:2303](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2303) ___ @@ -1050,7 +1050,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:183](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L183) +[src/types/generatedGraphQLTypes.ts:183](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L183) ___ @@ -1073,7 +1073,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:194](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L194) +[src/types/generatedGraphQLTypes.ts:194](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L194) ___ @@ -1103,7 +1103,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2318](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2318) +[src/types/generatedGraphQLTypes.ts:2319](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2319) ___ @@ -1133,7 +1133,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2307](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2307) +[src/types/generatedGraphQLTypes.ts:2308](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2308) ___ @@ -1170,7 +1170,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1916](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1916) +[src/types/generatedGraphQLTypes.ts:1917](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1917) ___ @@ -1193,7 +1193,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2973](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2973) +[src/types/generatedGraphQLTypes.ts:2974](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2974) ___ @@ -1218,7 +1218,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:205](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L205) +[src/types/generatedGraphQLTypes.ts:205](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L205) ___ @@ -1250,7 +1250,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2329](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2329) +[src/types/generatedGraphQLTypes.ts:2330](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2330) ___ @@ -1277,7 +1277,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:218](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L218) +[src/types/generatedGraphQLTypes.ts:218](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L218) ___ @@ -1287,7 +1287,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:233](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L233) +[src/types/generatedGraphQLTypes.ts:233](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L233) ___ @@ -1297,7 +1297,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:251](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L251) +[src/types/generatedGraphQLTypes.ts:251](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L251) ___ @@ -1313,7 +1313,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:256](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L256) +[src/types/generatedGraphQLTypes.ts:256](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L256) ___ @@ -1337,7 +1337,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2346](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2346) +[src/types/generatedGraphQLTypes.ts:2347](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2347) ___ @@ -1378,7 +1378,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:260](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L260) +[src/types/generatedGraphQLTypes.ts:260](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L260) ___ @@ -1394,7 +1394,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:290](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L290) +[src/types/generatedGraphQLTypes.ts:290](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L290) ___ @@ -1411,7 +1411,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:294](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L294) +[src/types/generatedGraphQLTypes.ts:294](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L294) ___ @@ -1441,7 +1441,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:299](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L299) +[src/types/generatedGraphQLTypes.ts:299](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L299) ___ @@ -1451,7 +1451,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:317](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L317) +[src/types/generatedGraphQLTypes.ts:317](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L317) ___ @@ -1499,7 +1499,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2351](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2351) +[src/types/generatedGraphQLTypes.ts:2352](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2352) ___ @@ -1539,7 +1539,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:339](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L339) +[src/types/generatedGraphQLTypes.ts:339](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L339) ___ @@ -1555,7 +1555,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L25) +[src/types/generatedGraphQLTypes.ts:25](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L25) ___ @@ -1573,7 +1573,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:367](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L367) +[src/types/generatedGraphQLTypes.ts:367](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L367) ___ @@ -1598,7 +1598,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2380](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2380) +[src/types/generatedGraphQLTypes.ts:2381](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2381) ___ @@ -1620,7 +1620,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:373](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L373) +[src/types/generatedGraphQLTypes.ts:373](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L373) ___ @@ -1638,7 +1638,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:383](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L383) +[src/types/generatedGraphQLTypes.ts:383](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L383) ___ @@ -1667,7 +1667,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2386](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2386) +[src/types/generatedGraphQLTypes.ts:2387](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2387) ___ @@ -1684,7 +1684,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:389](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L389) +[src/types/generatedGraphQLTypes.ts:389](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L389) ___ @@ -1709,7 +1709,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2396](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2396) +[src/types/generatedGraphQLTypes.ts:2397](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2397) ___ @@ -1727,7 +1727,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:394](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L394) +[src/types/generatedGraphQLTypes.ts:394](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L394) ___ @@ -1737,7 +1737,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:400](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L400) +[src/types/generatedGraphQLTypes.ts:400](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L400) ___ @@ -1760,7 +1760,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:405](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L405) +[src/types/generatedGraphQLTypes.ts:405](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L405) ___ @@ -1783,7 +1783,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:416](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L416) +[src/types/generatedGraphQLTypes.ts:416](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L416) ___ @@ -1805,7 +1805,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:427](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L427) +[src/types/generatedGraphQLTypes.ts:427](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L427) ___ @@ -1834,7 +1834,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2424](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2424) +[src/types/generatedGraphQLTypes.ts:2425](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2425) ___ @@ -1864,7 +1864,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2413](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2413) +[src/types/generatedGraphQLTypes.ts:2414](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2414) ___ @@ -1894,7 +1894,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2402](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2402) +[src/types/generatedGraphQLTypes.ts:2403](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2403) ___ @@ -1910,7 +1910,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L29) +[src/types/generatedGraphQLTypes.ts:29](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L29) ___ @@ -1926,7 +1926,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L24) +[src/types/generatedGraphQLTypes.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L24) ___ @@ -1936,7 +1936,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:437](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L437) +[src/types/generatedGraphQLTypes.ts:437](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L437) ___ @@ -1961,7 +1961,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2434](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2434) +[src/types/generatedGraphQLTypes.ts:2435](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2435) ___ @@ -1994,7 +1994,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1912](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1912) +[src/types/generatedGraphQLTypes.ts:1913](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1913) ___ @@ -2014,7 +2014,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:443](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L443) +[src/types/generatedGraphQLTypes.ts:443](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L443) ___ @@ -2032,7 +2032,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:451](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L451) +[src/types/generatedGraphQLTypes.ts:451](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L451) ___ @@ -2053,7 +2053,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:457](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L457) +[src/types/generatedGraphQLTypes.ts:457](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L457) ___ @@ -2081,7 +2081,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2452](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2452) +[src/types/generatedGraphQLTypes.ts:2453](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2453) ___ @@ -2108,7 +2108,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2444](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2444) +[src/types/generatedGraphQLTypes.ts:2445](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2445) ___ @@ -2125,7 +2125,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:466](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L466) +[src/types/generatedGraphQLTypes.ts:466](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L466) ___ @@ -2142,7 +2142,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L28) +[src/types/generatedGraphQLTypes.ts:28](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L28) ___ @@ -2159,7 +2159,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L27) +[src/types/generatedGraphQLTypes.ts:27](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L27) ___ @@ -2176,7 +2176,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L26) +[src/types/generatedGraphQLTypes.ts:26](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L26) ___ @@ -2186,7 +2186,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:471](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L471) +[src/types/generatedGraphQLTypes.ts:471](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L471) ___ @@ -2196,7 +2196,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:479](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L479) +[src/types/generatedGraphQLTypes.ts:479](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L479) ___ @@ -2221,7 +2221,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2469](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2469) +[src/types/generatedGraphQLTypes.ts:2470](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2470) ___ @@ -2231,7 +2231,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:485](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L485) +[src/types/generatedGraphQLTypes.ts:485](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L485) ___ @@ -2257,7 +2257,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2475](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2475) +[src/types/generatedGraphQLTypes.ts:2476](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2476) ___ @@ -2273,7 +2273,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L23) +[src/types/generatedGraphQLTypes.ts:23](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L23) ___ @@ -2292,7 +2292,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:492](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L492) +[src/types/generatedGraphQLTypes.ts:492](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L492) ___ @@ -2318,7 +2318,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2482](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2482) +[src/types/generatedGraphQLTypes.ts:2483](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2483) ___ @@ -2341,7 +2341,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:499](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L499) +[src/types/generatedGraphQLTypes.ts:499](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L499) ___ @@ -2364,7 +2364,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:510](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L510) +[src/types/generatedGraphQLTypes.ts:510](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L510) ___ @@ -2381,7 +2381,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:521](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L521) +[src/types/generatedGraphQLTypes.ts:521](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L521) ___ @@ -2411,7 +2411,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2500](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2500) +[src/types/generatedGraphQLTypes.ts:2501](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2501) ___ @@ -2441,7 +2441,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2489](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2489) +[src/types/generatedGraphQLTypes.ts:2490](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2490) ___ @@ -2451,7 +2451,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:526](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L526) +[src/types/generatedGraphQLTypes.ts:526](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L526) ___ @@ -2477,7 +2477,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2511](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2511) +[src/types/generatedGraphQLTypes.ts:2512](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2512) ___ @@ -2487,7 +2487,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:533](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L533) +[src/types/generatedGraphQLTypes.ts:533](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L533) ___ @@ -2512,7 +2512,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2518](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2518) +[src/types/generatedGraphQLTypes.ts:2519](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2519) ___ @@ -2614,7 +2614,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:539](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L539) +[src/types/generatedGraphQLTypes.ts:539](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L539) ___ @@ -2630,7 +2630,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:630](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L630) +[src/types/generatedGraphQLTypes.ts:630](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L630) ___ @@ -2646,7 +2646,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:635](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L635) +[src/types/generatedGraphQLTypes.ts:635](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L635) ___ @@ -2662,7 +2662,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:640](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L640) +[src/types/generatedGraphQLTypes.ts:640](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L640) ___ @@ -2678,7 +2678,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:645](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L645) +[src/types/generatedGraphQLTypes.ts:645](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L645) ___ @@ -2694,7 +2694,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:650](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L650) +[src/types/generatedGraphQLTypes.ts:650](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L650) ___ @@ -2712,7 +2712,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:655](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L655) +[src/types/generatedGraphQLTypes.ts:655](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L655) ___ @@ -2729,7 +2729,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:662](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L662) +[src/types/generatedGraphQLTypes.ts:662](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L662) ___ @@ -2747,7 +2747,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:668](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L668) +[src/types/generatedGraphQLTypes.ts:668](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L668) ___ @@ -2763,7 +2763,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:675](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L675) +[src/types/generatedGraphQLTypes.ts:675](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L675) ___ @@ -2780,7 +2780,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:680](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L680) +[src/types/generatedGraphQLTypes.ts:680](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L680) ___ @@ -2796,7 +2796,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:686](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L686) +[src/types/generatedGraphQLTypes.ts:686](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L686) ___ @@ -2812,7 +2812,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:691](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L691) +[src/types/generatedGraphQLTypes.ts:691](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L691) ___ @@ -2828,7 +2828,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:696](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L696) +[src/types/generatedGraphQLTypes.ts:696](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L696) ___ @@ -2845,7 +2845,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:701](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L701) +[src/types/generatedGraphQLTypes.ts:701](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L701) ___ @@ -2862,7 +2862,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:707](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L707) +[src/types/generatedGraphQLTypes.ts:707](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L707) ___ @@ -2878,7 +2878,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:713](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L713) +[src/types/generatedGraphQLTypes.ts:713](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L713) ___ @@ -2894,7 +2894,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:718](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L718) +[src/types/generatedGraphQLTypes.ts:718](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L718) ___ @@ -2910,7 +2910,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:723](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L723) +[src/types/generatedGraphQLTypes.ts:723](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L723) ___ @@ -2931,7 +2931,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:728](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L728) +[src/types/generatedGraphQLTypes.ts:728](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L728) ___ @@ -2948,7 +2948,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:738](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L738) +[src/types/generatedGraphQLTypes.ts:738](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L738) ___ @@ -2964,7 +2964,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:744](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L744) +[src/types/generatedGraphQLTypes.ts:744](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L744) ___ @@ -2985,7 +2985,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:749](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L749) +[src/types/generatedGraphQLTypes.ts:749](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L749) ___ @@ -3001,7 +3001,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:759](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L759) +[src/types/generatedGraphQLTypes.ts:759](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L759) ___ @@ -3017,7 +3017,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:764](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L764) +[src/types/generatedGraphQLTypes.ts:764](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L764) ___ @@ -3033,7 +3033,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:769](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L769) +[src/types/generatedGraphQLTypes.ts:769](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L769) ___ @@ -3049,7 +3049,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:774](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L774) +[src/types/generatedGraphQLTypes.ts:774](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L774) ___ @@ -3066,7 +3066,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:779](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L779) +[src/types/generatedGraphQLTypes.ts:779](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L779) ___ @@ -3085,7 +3085,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:785](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L785) +[src/types/generatedGraphQLTypes.ts:785](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L785) ___ @@ -3102,7 +3102,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:793](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L793) +[src/types/generatedGraphQLTypes.ts:793](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L793) ___ @@ -3118,7 +3118,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:799](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L799) +[src/types/generatedGraphQLTypes.ts:799](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L799) ___ @@ -3134,7 +3134,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:804](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L804) +[src/types/generatedGraphQLTypes.ts:804](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L804) ___ @@ -3150,7 +3150,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:809](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L809) +[src/types/generatedGraphQLTypes.ts:809](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L809) ___ @@ -3166,7 +3166,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:814](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L814) +[src/types/generatedGraphQLTypes.ts:814](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L814) ___ @@ -3182,7 +3182,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:819](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L819) +[src/types/generatedGraphQLTypes.ts:819](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L819) ___ @@ -3198,7 +3198,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:824](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L824) +[src/types/generatedGraphQLTypes.ts:824](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L824) ___ @@ -3214,7 +3214,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:829](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L829) +[src/types/generatedGraphQLTypes.ts:829](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L829) ___ @@ -3230,7 +3230,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:834](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L834) +[src/types/generatedGraphQLTypes.ts:834](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L834) ___ @@ -3246,7 +3246,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:839](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L839) +[src/types/generatedGraphQLTypes.ts:839](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L839) ___ @@ -3262,7 +3262,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:844](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L844) +[src/types/generatedGraphQLTypes.ts:844](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L844) ___ @@ -3278,7 +3278,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:849](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L849) +[src/types/generatedGraphQLTypes.ts:849](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L849) ___ @@ -3294,7 +3294,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:854](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L854) +[src/types/generatedGraphQLTypes.ts:854](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L854) ___ @@ -3310,7 +3310,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:859](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L859) +[src/types/generatedGraphQLTypes.ts:859](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L859) ___ @@ -3326,7 +3326,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:864](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L864) +[src/types/generatedGraphQLTypes.ts:864](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L864) ___ @@ -3342,7 +3342,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:869](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L869) +[src/types/generatedGraphQLTypes.ts:869](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L869) ___ @@ -3358,7 +3358,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:874](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L874) +[src/types/generatedGraphQLTypes.ts:874](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L874) ___ @@ -3374,7 +3374,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:879](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L879) +[src/types/generatedGraphQLTypes.ts:879](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L879) ___ @@ -3390,7 +3390,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:884](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L884) +[src/types/generatedGraphQLTypes.ts:884](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L884) ___ @@ -3407,7 +3407,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:889](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L889) +[src/types/generatedGraphQLTypes.ts:889](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L889) ___ @@ -3423,7 +3423,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:895](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L895) +[src/types/generatedGraphQLTypes.ts:895](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L895) ___ @@ -3439,7 +3439,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:900](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L900) +[src/types/generatedGraphQLTypes.ts:900](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L900) ___ @@ -3455,7 +3455,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:905](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L905) +[src/types/generatedGraphQLTypes.ts:905](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L905) ___ @@ -3471,7 +3471,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:910](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L910) +[src/types/generatedGraphQLTypes.ts:910](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L910) ___ @@ -3487,7 +3487,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:915](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L915) +[src/types/generatedGraphQLTypes.ts:915](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L915) ___ @@ -3504,7 +3504,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:920](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L920) +[src/types/generatedGraphQLTypes.ts:920](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L920) ___ @@ -3520,7 +3520,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:926](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L926) +[src/types/generatedGraphQLTypes.ts:926](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L926) ___ @@ -3536,7 +3536,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:931](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L931) +[src/types/generatedGraphQLTypes.ts:931](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L931) ___ @@ -3552,7 +3552,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:936](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L936) +[src/types/generatedGraphQLTypes.ts:936](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L936) ___ @@ -3569,7 +3569,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:941](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L941) +[src/types/generatedGraphQLTypes.ts:941](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L941) ___ @@ -3585,7 +3585,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:947](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L947) +[src/types/generatedGraphQLTypes.ts:947](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L947) ___ @@ -3693,7 +3693,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2524](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2524) +[src/types/generatedGraphQLTypes.ts:2525](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2525) ___ @@ -3709,7 +3709,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:952](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L952) +[src/types/generatedGraphQLTypes.ts:952](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L952) ___ @@ -3725,7 +3725,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:957](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L957) +[src/types/generatedGraphQLTypes.ts:957](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L957) ___ @@ -3742,7 +3742,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:962](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L962) +[src/types/generatedGraphQLTypes.ts:962](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L962) ___ @@ -3759,7 +3759,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:968](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L968) +[src/types/generatedGraphQLTypes.ts:968](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L968) ___ @@ -3776,7 +3776,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:974](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L974) +[src/types/generatedGraphQLTypes.ts:974](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L974) ___ @@ -3789,10 +3789,11 @@ ___ | Name | Type | | :------ | :------ | | `id` | [`Scalars`](types_generatedGraphQLTypes.md#scalars)[``"ID"``][``"input"``] | +| `title?` | [`InputMaybe`](types_generatedGraphQLTypes.md#inputmaybe)\<[`Scalars`](types_generatedGraphQLTypes.md#scalars)[``"String"``][``"input"``]\> | #### Defined in -[src/types/generatedGraphQLTypes.ts:980](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L980) +[src/types/generatedGraphQLTypes.ts:980](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L980) ___ @@ -3808,7 +3809,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:985](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L985) +[src/types/generatedGraphQLTypes.ts:986](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L986) ___ @@ -3825,7 +3826,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:990](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L990) +[src/types/generatedGraphQLTypes.ts:991](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L991) ___ @@ -3841,7 +3842,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:996](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L996) +[src/types/generatedGraphQLTypes.ts:997](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L997) ___ @@ -3857,7 +3858,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1001](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1001) +[src/types/generatedGraphQLTypes.ts:1002](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1002) ___ @@ -3873,7 +3874,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1006](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1006) +[src/types/generatedGraphQLTypes.ts:1007](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1007) ___ @@ -3889,7 +3890,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1011](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1011) +[src/types/generatedGraphQLTypes.ts:1012](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1012) ___ @@ -3906,7 +3907,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1016](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1016) +[src/types/generatedGraphQLTypes.ts:1017](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1017) ___ @@ -3922,7 +3923,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1022](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1022) +[src/types/generatedGraphQLTypes.ts:1023](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1023) ___ @@ -3940,7 +3941,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1027](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1027) +[src/types/generatedGraphQLTypes.ts:1028](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1028) ___ @@ -3957,7 +3958,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1034](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1034) +[src/types/generatedGraphQLTypes.ts:1035](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1035) ___ @@ -3974,7 +3975,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1040](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1040) +[src/types/generatedGraphQLTypes.ts:1041](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1041) ___ @@ -3990,7 +3991,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1046](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1046) +[src/types/generatedGraphQLTypes.ts:1047](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1047) ___ @@ -4007,7 +4008,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1051](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1051) +[src/types/generatedGraphQLTypes.ts:1052](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1052) ___ @@ -4025,7 +4026,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1057](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1057) +[src/types/generatedGraphQLTypes.ts:1058](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1058) ___ @@ -4041,7 +4042,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1064](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1064) +[src/types/generatedGraphQLTypes.ts:1065](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1065) ___ @@ -4057,7 +4058,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1069](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1069) +[src/types/generatedGraphQLTypes.ts:1070](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1070) ___ @@ -4081,7 +4082,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1914](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1914) +[src/types/generatedGraphQLTypes.ts:1915](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1915) ___ @@ -4098,7 +4099,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L30) +[src/types/generatedGraphQLTypes.ts:30](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L30) ___ @@ -4132,7 +4133,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1077](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1077) +[src/types/generatedGraphQLTypes.ts:1078](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1078) ___ @@ -4148,7 +4149,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1100](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1100) +[src/types/generatedGraphQLTypes.ts:1101](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1101) ___ @@ -4168,7 +4169,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1112](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1112) +[src/types/generatedGraphQLTypes.ts:1113](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1113) ___ @@ -4195,7 +4196,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2635](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2635) +[src/types/generatedGraphQLTypes.ts:2636](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2636) ___ @@ -4219,7 +4220,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1120](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1120) +[src/types/generatedGraphQLTypes.ts:1121](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1121) ___ @@ -4250,7 +4251,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2643](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2643) +[src/types/generatedGraphQLTypes.ts:2644](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2644) ___ @@ -4273,7 +4274,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1132](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1132) +[src/types/generatedGraphQLTypes.ts:1133](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1133) ___ @@ -4283,7 +4284,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1143](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1143) +[src/types/generatedGraphQLTypes.ts:1144](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1144) ___ @@ -4324,7 +4325,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2613](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2613) +[src/types/generatedGraphQLTypes.ts:2614](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2614) ___ @@ -4343,7 +4344,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1105](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1105) +[src/types/generatedGraphQLTypes.ts:1106](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1106) ___ @@ -4384,7 +4385,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1155](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1155) +[src/types/generatedGraphQLTypes.ts:1156](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1156) ___ @@ -4401,7 +4402,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1184](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1184) +[src/types/generatedGraphQLTypes.ts:1185](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1185) ___ @@ -4425,7 +4426,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2655](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2655) +[src/types/generatedGraphQLTypes.ts:2656](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2656) ___ @@ -4441,7 +4442,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1073](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1073) +[src/types/generatedGraphQLTypes.ts:1074](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1074) ___ @@ -4465,7 +4466,7 @@ Information about pagination in a connection. #### Defined in -[src/types/generatedGraphQLTypes.ts:1190](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1190) +[src/types/generatedGraphQLTypes.ts:1191](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1191) ___ @@ -4494,7 +4495,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2660](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2660) +[src/types/generatedGraphQLTypes.ts:2661](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2661) ___ @@ -4504,7 +4505,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1202](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1202) +[src/types/generatedGraphQLTypes.ts:1203](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1203) ___ @@ -4525,7 +4526,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1206](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1206) +[src/types/generatedGraphQLTypes.ts:1207](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1207) ___ @@ -4545,7 +4546,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1215](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1215) +[src/types/generatedGraphQLTypes.ts:1216](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1216) ___ @@ -4562,7 +4563,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1223](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1223) +[src/types/generatedGraphQLTypes.ts:1224](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1224) ___ @@ -4589,7 +4590,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2683](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2683) +[src/types/generatedGraphQLTypes.ts:2684](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2684) ___ @@ -4609,7 +4610,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1228](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1228) +[src/types/generatedGraphQLTypes.ts:1229](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1229) ___ @@ -4637,7 +4638,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2674](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2674) +[src/types/generatedGraphQLTypes.ts:2675](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2675) ___ @@ -4667,7 +4668,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1236](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1236) +[src/types/generatedGraphQLTypes.ts:1237](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1237) ___ @@ -4688,7 +4689,7 @@ A connection to a list of items. #### Defined in -[src/types/generatedGraphQLTypes.ts:1255](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1255) +[src/types/generatedGraphQLTypes.ts:1256](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1256) ___ @@ -4714,7 +4715,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2713](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2713) +[src/types/generatedGraphQLTypes.ts:2714](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2714) ___ @@ -4736,7 +4737,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1264](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1264) +[src/types/generatedGraphQLTypes.ts:1265](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1265) ___ @@ -4746,7 +4747,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1274](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1274) +[src/types/generatedGraphQLTypes.ts:1275](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1275) ___ @@ -4783,7 +4784,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2695](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2695) +[src/types/generatedGraphQLTypes.ts:2696](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2696) ___ @@ -4802,7 +4803,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1292](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1292) +[src/types/generatedGraphQLTypes.ts:1293](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1293) ___ @@ -4835,7 +4836,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1299](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1299) +[src/types/generatedGraphQLTypes.ts:1300](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1300) ___ @@ -4884,7 +4885,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1320](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1320) +[src/types/generatedGraphQLTypes.ts:1321](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1321) ___ @@ -4900,7 +4901,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1358](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1358) +[src/types/generatedGraphQLTypes.ts:1359](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1359) ___ @@ -4916,7 +4917,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1363](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1363) +[src/types/generatedGraphQLTypes.ts:1364](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1364) ___ @@ -4932,7 +4933,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1368](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1368) +[src/types/generatedGraphQLTypes.ts:1369](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1369) ___ @@ -4948,7 +4949,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1373](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1373) +[src/types/generatedGraphQLTypes.ts:1374](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1374) ___ @@ -4964,7 +4965,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1378](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1378) +[src/types/generatedGraphQLTypes.ts:1379](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1379) ___ @@ -4980,7 +4981,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1383](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1383) +[src/types/generatedGraphQLTypes.ts:1384](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1384) ___ @@ -4997,7 +4998,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1388](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1388) +[src/types/generatedGraphQLTypes.ts:1389](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1389) ___ @@ -5016,7 +5017,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1394](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1394) +[src/types/generatedGraphQLTypes.ts:1395](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1395) ___ @@ -5032,7 +5033,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1402](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1402) +[src/types/generatedGraphQLTypes.ts:1403](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1403) ___ @@ -5048,7 +5049,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1407](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1407) +[src/types/generatedGraphQLTypes.ts:1408](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1408) ___ @@ -5067,7 +5068,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1412](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1412) +[src/types/generatedGraphQLTypes.ts:1413](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1413) ___ @@ -5083,7 +5084,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1420](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1420) +[src/types/generatedGraphQLTypes.ts:1421](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1421) ___ @@ -5100,7 +5101,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1425](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1425) +[src/types/generatedGraphQLTypes.ts:1426](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1426) ___ @@ -5116,7 +5117,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1431](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1431) +[src/types/generatedGraphQLTypes.ts:1432](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1432) ___ @@ -5132,7 +5133,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1436](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1436) +[src/types/generatedGraphQLTypes.ts:1437](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1437) ___ @@ -5149,7 +5150,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1441](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1441) +[src/types/generatedGraphQLTypes.ts:1442](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1442) ___ @@ -5168,7 +5169,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1447](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1447) +[src/types/generatedGraphQLTypes.ts:1448](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1448) ___ @@ -5188,7 +5189,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1455](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1455) +[src/types/generatedGraphQLTypes.ts:1456](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1456) ___ @@ -5204,7 +5205,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1464](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1464) +[src/types/generatedGraphQLTypes.ts:1465](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1465) ___ @@ -5220,7 +5221,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1469](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1469) +[src/types/generatedGraphQLTypes.ts:1470](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1470) ___ @@ -5237,7 +5238,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1474](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1474) +[src/types/generatedGraphQLTypes.ts:1475](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1475) ___ @@ -5257,7 +5258,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1480](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1480) +[src/types/generatedGraphQLTypes.ts:1481](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1481) ___ @@ -5274,7 +5275,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1489](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1489) +[src/types/generatedGraphQLTypes.ts:1490](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1490) ___ @@ -5290,7 +5291,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1495](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1495) +[src/types/generatedGraphQLTypes.ts:1496](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1496) ___ @@ -5345,7 +5346,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2720](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2720) +[src/types/generatedGraphQLTypes.ts:2721](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2721) ___ @@ -5361,7 +5362,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1500](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1500) +[src/types/generatedGraphQLTypes.ts:1501](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1501) ___ @@ -5377,7 +5378,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1505](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1505) +[src/types/generatedGraphQLTypes.ts:1506](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1506) ___ @@ -5398,7 +5399,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1510](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1510) +[src/types/generatedGraphQLTypes.ts:1511](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1511) ___ @@ -5417,7 +5418,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1520](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1520) +[src/types/generatedGraphQLTypes.ts:1521](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1521) ___ @@ -5433,7 +5434,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1527](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1527) +[src/types/generatedGraphQLTypes.ts:1528](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1528) ___ @@ -5443,7 +5444,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1531](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1531) +[src/types/generatedGraphQLTypes.ts:1532](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1532) ___ @@ -5460,7 +5461,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L31) +[src/types/generatedGraphQLTypes.ts:31](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L31) ___ @@ -5479,7 +5480,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1865](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1865) +[src/types/generatedGraphQLTypes.ts:1866](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1866) ___ @@ -5515,7 +5516,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1867](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1867) +[src/types/generatedGraphQLTypes.ts:1868](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1868) ___ @@ -5531,7 +5532,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1863](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1863) +[src/types/generatedGraphQLTypes.ts:1864](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1864) ___ @@ -5624,7 +5625,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2898](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2898) +[src/types/generatedGraphQLTypes.ts:2899](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2899) ___ @@ -5649,7 +5650,7 @@ Mapping of interface types #### Defined in -[src/types/generatedGraphQLTypes.ts:1930](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1930) +[src/types/generatedGraphQLTypes.ts:1931](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1931) ___ @@ -5782,7 +5783,7 @@ Mapping between all available schema types and the resolvers parents #### Defined in -[src/types/generatedGraphQLTypes.ts:2070](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2070) +[src/types/generatedGraphQLTypes.ts:2071](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2071) ___ @@ -5929,7 +5930,7 @@ Mapping between all available schema types and the resolvers types #### Defined in -[src/types/generatedGraphQLTypes.ts:1936](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1936) +[src/types/generatedGraphQLTypes.ts:1937](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1937) ___ @@ -5953,7 +5954,7 @@ Mapping of union types #### Defined in -[src/types/generatedGraphQLTypes.ts:1925](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1925) +[src/types/generatedGraphQLTypes.ts:1926](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1926) ___ @@ -5969,7 +5970,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2193](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2193) +[src/types/generatedGraphQLTypes.ts:2194](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2194) ___ @@ -5988,7 +5989,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2197](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2197) +[src/types/generatedGraphQLTypes.ts:2198](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2198) ___ @@ -6059,7 +6060,7 @@ All built-in and custom scalars, mapped to their actual values #### Defined in -[src/types/generatedGraphQLTypes.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L33) +[src/types/generatedGraphQLTypes.ts:33](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L33) ___ @@ -6069,7 +6070,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1538](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1538) +[src/types/generatedGraphQLTypes.ts:1539](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1539) ___ @@ -6089,7 +6090,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1543](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1543) +[src/types/generatedGraphQLTypes.ts:1544](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1544) ___ @@ -6109,7 +6110,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1898](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1898) +[src/types/generatedGraphQLTypes.ts:1899](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1899) ___ @@ -6145,7 +6146,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1881](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1881) +[src/types/generatedGraphQLTypes.ts:1882](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1882) ___ @@ -6165,7 +6166,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1902](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1902) +[src/types/generatedGraphQLTypes.ts:1903](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1903) ___ @@ -6191,7 +6192,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2756](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2756) +[src/types/generatedGraphQLTypes.ts:2757](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2757) ___ @@ -6227,7 +6228,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1874](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1874) +[src/types/generatedGraphQLTypes.ts:1875](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1875) ___ @@ -6244,7 +6245,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1551](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1551) +[src/types/generatedGraphQLTypes.ts:1552](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1552) ___ @@ -6264,7 +6265,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1556](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1556) +[src/types/generatedGraphQLTypes.ts:1557](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1557) ___ @@ -6291,7 +6292,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2767](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2767) +[src/types/generatedGraphQLTypes.ts:2768](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2768) ___ @@ -6301,7 +6302,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1564](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1564) +[src/types/generatedGraphQLTypes.ts:1565](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1565) ___ @@ -6335,7 +6336,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1906](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1906) +[src/types/generatedGraphQLTypes.ts:1907](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1907) ___ @@ -6345,7 +6346,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1568](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1568) +[src/types/generatedGraphQLTypes.ts:1569](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1569) ___ @@ -6369,7 +6370,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2779](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2779) +[src/types/generatedGraphQLTypes.ts:2780](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2780) ___ @@ -6379,7 +6380,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1573](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1573) +[src/types/generatedGraphQLTypes.ts:1574](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1574) ___ @@ -6403,7 +6404,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2784](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2784) +[src/types/generatedGraphQLTypes.ts:2785](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2785) ___ @@ -6424,7 +6425,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1578](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1578) +[src/types/generatedGraphQLTypes.ts:1579](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1579) ___ @@ -6441,7 +6442,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1587](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1587) +[src/types/generatedGraphQLTypes.ts:1588](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1588) ___ @@ -6465,7 +6466,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2789](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2789) +[src/types/generatedGraphQLTypes.ts:2790](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2790) ___ @@ -6494,7 +6495,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1592](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1592) +[src/types/generatedGraphQLTypes.ts:1593](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1593) ___ @@ -6514,7 +6515,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1609](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1609) +[src/types/generatedGraphQLTypes.ts:1610](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1610) ___ @@ -6539,7 +6540,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1617](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1617) +[src/types/generatedGraphQLTypes.ts:1618](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1618) ___ @@ -6557,7 +6558,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1630](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1630) +[src/types/generatedGraphQLTypes.ts:1631](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1631) ___ @@ -6574,7 +6575,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1636](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1636) +[src/types/generatedGraphQLTypes.ts:1637](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1637) ___ @@ -6591,7 +6592,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1641](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1641) +[src/types/generatedGraphQLTypes.ts:1642](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1642) ___ @@ -6635,7 +6636,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1646](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1646) +[src/types/generatedGraphQLTypes.ts:1647](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1647) ___ @@ -6652,7 +6653,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1687](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1687) +[src/types/generatedGraphQLTypes.ts:1688](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1688) ___ @@ -6671,7 +6672,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1692](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1692) +[src/types/generatedGraphQLTypes.ts:1693](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1693) ___ @@ -6697,7 +6698,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2830](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2830) +[src/types/generatedGraphQLTypes.ts:2831](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2831) ___ @@ -6717,7 +6718,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1699](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1699) +[src/types/generatedGraphQLTypes.ts:1700](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1700) ___ @@ -6744,7 +6745,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2837](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2837) +[src/types/generatedGraphQLTypes.ts:2838](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2838) ___ @@ -6762,7 +6763,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1707](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1707) +[src/types/generatedGraphQLTypes.ts:1708](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1708) ___ @@ -6787,7 +6788,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2845](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2845) +[src/types/generatedGraphQLTypes.ts:2846](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2846) ___ @@ -6808,7 +6809,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1713](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1713) +[src/types/generatedGraphQLTypes.ts:1714](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1714) ___ @@ -6818,7 +6819,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1722](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1722) +[src/types/generatedGraphQLTypes.ts:1723](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1723) ___ @@ -6837,7 +6838,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1734](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1734) +[src/types/generatedGraphQLTypes.ts:1735](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1735) ___ @@ -6855,7 +6856,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1741](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1741) +[src/types/generatedGraphQLTypes.ts:1742](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1742) ___ @@ -6881,7 +6882,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2851](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2851) +[src/types/generatedGraphQLTypes.ts:2852](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2852) ___ @@ -6932,7 +6933,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2798](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2798) +[src/types/generatedGraphQLTypes.ts:2799](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2799) ___ @@ -6954,7 +6955,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1747](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1747) +[src/types/generatedGraphQLTypes.ts:1748](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1748) ___ @@ -6970,7 +6971,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1758](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1758) +[src/types/generatedGraphQLTypes.ts:1759](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1759) ___ @@ -6988,7 +6989,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1767](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1767) +[src/types/generatedGraphQLTypes.ts:1768](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1768) ___ @@ -7013,7 +7014,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2868](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2868) +[src/types/generatedGraphQLTypes.ts:2869](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2869) ___ @@ -7042,7 +7043,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2858](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2858) +[src/types/generatedGraphQLTypes.ts:2859](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2859) ___ @@ -7058,7 +7059,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1763](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1763) +[src/types/generatedGraphQLTypes.ts:1764](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1764) ___ @@ -7078,7 +7079,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1679](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1679) +[src/types/generatedGraphQLTypes.ts:1680](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1680) ___ @@ -7096,7 +7097,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1773](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1773) +[src/types/generatedGraphQLTypes.ts:1774](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1774) ___ @@ -7114,7 +7115,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1779](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1779) +[src/types/generatedGraphQLTypes.ts:1780](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1780) ___ @@ -7139,7 +7140,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2874](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2874) +[src/types/generatedGraphQLTypes.ts:2875](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2875) ___ @@ -7157,7 +7158,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1785](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1785) +[src/types/generatedGraphQLTypes.ts:1786](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1786) ___ @@ -7182,7 +7183,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2880](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2880) +[src/types/generatedGraphQLTypes.ts:2881](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2881) ___ @@ -7192,7 +7193,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1791](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1791) +[src/types/generatedGraphQLTypes.ts:1792](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1792) ___ @@ -7239,7 +7240,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1797](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1797) +[src/types/generatedGraphQLTypes.ts:1798](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1798) ___ @@ -7257,7 +7258,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1832](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1832) +[src/types/generatedGraphQLTypes.ts:1833](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1833) ___ @@ -7275,7 +7276,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1838](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1838) +[src/types/generatedGraphQLTypes.ts:1839](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1839) ___ @@ -7300,7 +7301,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2886](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2886) +[src/types/generatedGraphQLTypes.ts:2887](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2887) ___ @@ -7318,7 +7319,7 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:1844](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L1844) +[src/types/generatedGraphQLTypes.ts:1845](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L1845) ___ @@ -7343,4 +7344,4 @@ ___ #### Defined in -[src/types/generatedGraphQLTypes.ts:2892](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/types/generatedGraphQLTypes.ts#L2892) +[src/types/generatedGraphQLTypes.ts:2893](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/types/generatedGraphQLTypes.ts#L2893) diff --git a/talawa-api-docs/modules/utilities_PII_decryption.md b/talawa-api-docs/modules/utilities_PII_decryption.md index 7da89f3465..0c8e5cf153 100644 --- a/talawa-api-docs/modules/utilities_PII_decryption.md +++ b/talawa-api-docs/modules/utilities_PII_decryption.md @@ -28,4 +28,4 @@ #### Defined in -[src/utilities/PII/decryption.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/PII/decryption.ts#L4) +[src/utilities/PII/decryption.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/PII/decryption.ts#L4) diff --git a/talawa-api-docs/modules/utilities_PII_encryption.md b/talawa-api-docs/modules/utilities_PII_encryption.md index 023baf9fe6..b86209d561 100644 --- a/talawa-api-docs/modules/utilities_PII_encryption.md +++ b/talawa-api-docs/modules/utilities_PII_encryption.md @@ -28,4 +28,4 @@ #### Defined in -[src/utilities/PII/encryption.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/PII/encryption.ts#L4) +[src/utilities/PII/encryption.ts:4](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/PII/encryption.ts#L4) diff --git a/talawa-api-docs/modules/utilities_PII_isAuthorised.md b/talawa-api-docs/modules/utilities_PII_isAuthorised.md index 1385fe4044..b89f521f30 100644 --- a/talawa-api-docs/modules/utilities_PII_isAuthorised.md +++ b/talawa-api-docs/modules/utilities_PII_isAuthorised.md @@ -27,4 +27,4 @@ #### Defined in -[src/utilities/PII/isAuthorised.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/PII/isAuthorised.ts#L3) +[src/utilities/PII/isAuthorised.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/PII/isAuthorised.ts#L3) diff --git a/talawa-api-docs/modules/utilities_adminCheck.md b/talawa-api-docs/modules/utilities_adminCheck.md index 0ac5c114e7..d716d7d82b 100644 --- a/talawa-api-docs/modules/utilities_adminCheck.md +++ b/talawa-api-docs/modules/utilities_adminCheck.md @@ -35,4 +35,4 @@ This is a utility method. #### Defined in -[src/utilities/adminCheck.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/adminCheck.ts#L14) +[src/utilities/adminCheck.ts:14](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/adminCheck.ts#L14) diff --git a/talawa-api-docs/modules/utilities_auth.md b/talawa-api-docs/modules/utilities_auth.md index ca0267ba41..58d9d59463 100644 --- a/talawa-api-docs/modules/utilities_auth.md +++ b/talawa-api-docs/modules/utilities_auth.md @@ -37,7 +37,7 @@ JSON Web Token string payload #### Defined in -[src/utilities/auth.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L19) +[src/utilities/auth.ts:19](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L19) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[src/utilities/auth.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L35) +[src/utilities/auth.ts:35](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L35) ___ @@ -77,4 +77,4 @@ ___ #### Defined in -[src/utilities/auth.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/auth.ts#L51) +[src/utilities/auth.ts:51](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/auth.ts#L51) diff --git a/talawa-api-docs/modules/utilities_copyToClipboard.md b/talawa-api-docs/modules/utilities_copyToClipboard.md index 81f422f52b..0338ea4b46 100644 --- a/talawa-api-docs/modules/utilities_copyToClipboard.md +++ b/talawa-api-docs/modules/utilities_copyToClipboard.md @@ -32,4 +32,4 @@ This is a utility method. This works only in development or test mode. #### Defined in -[src/utilities/copyToClipboard.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/copyToClipboard.ts#L9) +[src/utilities/copyToClipboard.ts:9](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/copyToClipboard.ts#L9) diff --git a/talawa-api-docs/modules/utilities_createSampleOrganizationUtil.md b/talawa-api-docs/modules/utilities_createSampleOrganizationUtil.md index 627dadb3e2..9e57590f7f 100644 --- a/talawa-api-docs/modules/utilities_createSampleOrganizationUtil.md +++ b/talawa-api-docs/modules/utilities_createSampleOrganizationUtil.md @@ -24,7 +24,7 @@ #### Defined in -[src/utilities/createSampleOrganizationUtil.ts:215](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/createSampleOrganizationUtil.ts#L215) +[src/utilities/createSampleOrganizationUtil.ts:215](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/createSampleOrganizationUtil.ts#L215) ___ @@ -45,7 +45,7 @@ ___ #### Defined in -[src/utilities/createSampleOrganizationUtil.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/createSampleOrganizationUtil.ts#L64) +[src/utilities/createSampleOrganizationUtil.ts:64](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/createSampleOrganizationUtil.ts#L64) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[src/utilities/createSampleOrganizationUtil.ts:128](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/createSampleOrganizationUtil.ts#L128) +[src/utilities/createSampleOrganizationUtil.ts:128](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/createSampleOrganizationUtil.ts#L128) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[src/utilities/createSampleOrganizationUtil.ts:185](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/createSampleOrganizationUtil.ts#L185) +[src/utilities/createSampleOrganizationUtil.ts:185](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/createSampleOrganizationUtil.ts#L185) ___ @@ -108,4 +108,4 @@ ___ #### Defined in -[src/utilities/createSampleOrganizationUtil.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/createSampleOrganizationUtil.ts#L10) +[src/utilities/createSampleOrganizationUtil.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/createSampleOrganizationUtil.ts#L10) diff --git a/talawa-api-docs/modules/utilities_deleteDuplicatedImage.md b/talawa-api-docs/modules/utilities_deleteDuplicatedImage.md index d0d73c7a74..228df55b76 100644 --- a/talawa-api-docs/modules/utilities_deleteDuplicatedImage.md +++ b/talawa-api-docs/modules/utilities_deleteDuplicatedImage.md @@ -28,4 +28,4 @@ This function deletes a duplicated image using the function fs.unlink(). #### Defined in -[src/utilities/deleteDuplicatedImage.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/deleteDuplicatedImage.ts#L8) +[src/utilities/deleteDuplicatedImage.ts:8](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/deleteDuplicatedImage.ts#L8) diff --git a/talawa-api-docs/modules/utilities_deleteImage.md b/talawa-api-docs/modules/utilities_deleteImage.md index 71ba1709b6..97eb9f9fe8 100644 --- a/talawa-api-docs/modules/utilities_deleteImage.md +++ b/talawa-api-docs/modules/utilities_deleteImage.md @@ -31,4 +31,4 @@ After deleting the image, the number of uses of the hashed image are decremented #### Defined in -[src/utilities/deleteImage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/deleteImage.ts#L12) +[src/utilities/deleteImage.ts:12](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/deleteImage.ts#L12) diff --git a/talawa-api-docs/modules/utilities_encodedImageStorage_deletePreviousImage.md b/talawa-api-docs/modules/utilities_encodedImageStorage_deletePreviousImage.md index f25da32490..5c47fe8dc5 100644 --- a/talawa-api-docs/modules/utilities_encodedImageStorage_deletePreviousImage.md +++ b/talawa-api-docs/modules/utilities_encodedImageStorage_deletePreviousImage.md @@ -26,4 +26,4 @@ #### Defined in -[src/utilities/encodedImageStorage/deletePreviousImage.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedImageStorage/deletePreviousImage.ts#L5) +[src/utilities/encodedImageStorage/deletePreviousImage.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedImageStorage/deletePreviousImage.ts#L5) diff --git a/talawa-api-docs/modules/utilities_encodedImageStorage_encodedImageExtensionCheck.md b/talawa-api-docs/modules/utilities_encodedImageStorage_encodedImageExtensionCheck.md index 08b0ad2cf7..63ec52a3c8 100644 --- a/talawa-api-docs/modules/utilities_encodedImageStorage_encodedImageExtensionCheck.md +++ b/talawa-api-docs/modules/utilities_encodedImageStorage_encodedImageExtensionCheck.md @@ -26,4 +26,4 @@ #### Defined in -[src/utilities/encodedImageStorage/encodedImageExtensionCheck.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedImageStorage/encodedImageExtensionCheck.ts#L1) +[src/utilities/encodedImageStorage/encodedImageExtensionCheck.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedImageStorage/encodedImageExtensionCheck.ts#L1) diff --git a/talawa-api-docs/modules/utilities_encodedImageStorage_uploadEncodedImage.md b/talawa-api-docs/modules/utilities_encodedImageStorage_uploadEncodedImage.md index 726e4bae44..60f28d3b9e 100644 --- a/talawa-api-docs/modules/utilities_encodedImageStorage_uploadEncodedImage.md +++ b/talawa-api-docs/modules/utilities_encodedImageStorage_uploadEncodedImage.md @@ -27,4 +27,4 @@ #### Defined in -[src/utilities/encodedImageStorage/uploadEncodedImage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedImageStorage/uploadEncodedImage.ts#L11) +[src/utilities/encodedImageStorage/uploadEncodedImage.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedImageStorage/uploadEncodedImage.ts#L11) diff --git a/talawa-api-docs/modules/utilities_encodedVideoStorage_deletePreviousVideo.md b/talawa-api-docs/modules/utilities_encodedVideoStorage_deletePreviousVideo.md index fcd2bc8d33..f06216de66 100644 --- a/talawa-api-docs/modules/utilities_encodedVideoStorage_deletePreviousVideo.md +++ b/talawa-api-docs/modules/utilities_encodedVideoStorage_deletePreviousVideo.md @@ -26,4 +26,4 @@ #### Defined in -[src/utilities/encodedVideoStorage/deletePreviousVideo.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedVideoStorage/deletePreviousVideo.ts#L5) +[src/utilities/encodedVideoStorage/deletePreviousVideo.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedVideoStorage/deletePreviousVideo.ts#L5) diff --git a/talawa-api-docs/modules/utilities_encodedVideoStorage_encodedVideoExtensionCheck.md b/talawa-api-docs/modules/utilities_encodedVideoStorage_encodedVideoExtensionCheck.md index 41cbeac296..f616d240a4 100644 --- a/talawa-api-docs/modules/utilities_encodedVideoStorage_encodedVideoExtensionCheck.md +++ b/talawa-api-docs/modules/utilities_encodedVideoStorage_encodedVideoExtensionCheck.md @@ -26,4 +26,4 @@ #### Defined in -[src/utilities/encodedVideoStorage/encodedVideoExtensionCheck.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedVideoStorage/encodedVideoExtensionCheck.ts#L1) +[src/utilities/encodedVideoStorage/encodedVideoExtensionCheck.ts:1](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedVideoStorage/encodedVideoExtensionCheck.ts#L1) diff --git a/talawa-api-docs/modules/utilities_encodedVideoStorage_uploadEncodedVideo.md b/talawa-api-docs/modules/utilities_encodedVideoStorage_uploadEncodedVideo.md index 40ef3fd988..31ea31abe6 100644 --- a/talawa-api-docs/modules/utilities_encodedVideoStorage_uploadEncodedVideo.md +++ b/talawa-api-docs/modules/utilities_encodedVideoStorage_uploadEncodedVideo.md @@ -27,4 +27,4 @@ #### Defined in -[src/utilities/encodedVideoStorage/uploadEncodedVideo.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/encodedVideoStorage/uploadEncodedVideo.ts#L11) +[src/utilities/encodedVideoStorage/uploadEncodedVideo.ts:11](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/encodedVideoStorage/uploadEncodedVideo.ts#L11) diff --git a/talawa-api-docs/modules/utilities_graphqlConnectionFactory.md b/talawa-api-docs/modules/utilities_graphqlConnectionFactory.md index a1c77562d9..7a65aba2e5 100644 --- a/talawa-api-docs/modules/utilities_graphqlConnectionFactory.md +++ b/talawa-api-docs/modules/utilities_graphqlConnectionFactory.md @@ -39,7 +39,7 @@ #### Defined in -[src/utilities/graphqlConnectionFactory.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/graphqlConnectionFactory.ts#L106) +[src/utilities/graphqlConnectionFactory.ts:106](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/graphqlConnectionFactory.ts#L106) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[src/utilities/graphqlConnectionFactory.ts:75](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/graphqlConnectionFactory.ts#L75) +[src/utilities/graphqlConnectionFactory.ts:75](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/graphqlConnectionFactory.ts#L75) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[src/utilities/graphqlConnectionFactory.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/graphqlConnectionFactory.ts#L46) +[src/utilities/graphqlConnectionFactory.ts:46](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/graphqlConnectionFactory.ts#L46) ___ @@ -100,7 +100,7 @@ ___ #### Defined in -[src/utilities/graphqlConnectionFactory.ts:53](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/graphqlConnectionFactory.ts#L53) +[src/utilities/graphqlConnectionFactory.ts:53](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/graphqlConnectionFactory.ts#L53) ___ @@ -120,4 +120,4 @@ ___ #### Defined in -[src/utilities/graphqlConnectionFactory.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/graphqlConnectionFactory.ts#L34) +[src/utilities/graphqlConnectionFactory.ts:34](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/graphqlConnectionFactory.ts#L34) diff --git a/talawa-api-docs/modules/utilities_imageAlreadyInDbCheck.md b/talawa-api-docs/modules/utilities_imageAlreadyInDbCheck.md index 4d92e75eff..e615d728f9 100644 --- a/talawa-api-docs/modules/utilities_imageAlreadyInDbCheck.md +++ b/talawa-api-docs/modules/utilities_imageAlreadyInDbCheck.md @@ -33,4 +33,4 @@ file name. #### Defined in -[src/utilities/imageAlreadyInDbCheck.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/imageAlreadyInDbCheck.ts#L16) +[src/utilities/imageAlreadyInDbCheck.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/imageAlreadyInDbCheck.ts#L16) diff --git a/talawa-api-docs/modules/utilities_imageExtensionCheck.md b/talawa-api-docs/modules/utilities_imageExtensionCheck.md index dfb706786c..6779032045 100644 --- a/talawa-api-docs/modules/utilities_imageExtensionCheck.md +++ b/talawa-api-docs/modules/utilities_imageExtensionCheck.md @@ -30,4 +30,4 @@ then the file is deleted and a validation error is thrown. #### Defined in -[src/utilities/imageExtensionCheck.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/imageExtensionCheck.ts#L10) +[src/utilities/imageExtensionCheck.ts:10](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/imageExtensionCheck.ts#L10) diff --git a/talawa-api-docs/modules/utilities_mailer.md b/talawa-api-docs/modules/utilities_mailer.md index f857a3811c..4d1a5e73d6 100644 --- a/talawa-api-docs/modules/utilities_mailer.md +++ b/talawa-api-docs/modules/utilities_mailer.md @@ -38,4 +38,4 @@ This is a utility method. #### Defined in -[src/utilities/mailer.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/mailer.ts#L24) +[src/utilities/mailer.ts:24](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/mailer.ts#L24) diff --git a/talawa-api-docs/modules/utilities_removeSampleOrganizationUtil.md b/talawa-api-docs/modules/utilities_removeSampleOrganizationUtil.md index 4f7891ddc2..9d6d0a10db 100644 --- a/talawa-api-docs/modules/utilities_removeSampleOrganizationUtil.md +++ b/talawa-api-docs/modules/utilities_removeSampleOrganizationUtil.md @@ -20,4 +20,4 @@ #### Defined in -[src/utilities/removeSampleOrganizationUtil.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/removeSampleOrganizationUtil.ts#L3) +[src/utilities/removeSampleOrganizationUtil.ts:3](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/removeSampleOrganizationUtil.ts#L3) diff --git a/talawa-api-docs/modules/utilities_reuploadDuplicateCheck.md b/talawa-api-docs/modules/utilities_reuploadDuplicateCheck.md index 2b6c6c8e65..2e24e56e6f 100644 --- a/talawa-api-docs/modules/utilities_reuploadDuplicateCheck.md +++ b/talawa-api-docs/modules/utilities_reuploadDuplicateCheck.md @@ -20,7 +20,7 @@ #### Defined in -[src/utilities/reuploadDuplicateCheck.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/reuploadDuplicateCheck.ts#L15) +[src/utilities/reuploadDuplicateCheck.ts:15](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/reuploadDuplicateCheck.ts#L15) ## Functions @@ -50,4 +50,4 @@ This is a utility method. #### Defined in -[src/utilities/reuploadDuplicateCheck.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/reuploadDuplicateCheck.ts#L42) +[src/utilities/reuploadDuplicateCheck.ts:42](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/reuploadDuplicateCheck.ts#L42) diff --git a/talawa-api-docs/modules/utilities_superAdminCheck.md b/talawa-api-docs/modules/utilities_superAdminCheck.md index 905683edef..f824a1d5fb 100644 --- a/talawa-api-docs/modules/utilities_superAdminCheck.md +++ b/talawa-api-docs/modules/utilities_superAdminCheck.md @@ -26,4 +26,4 @@ #### Defined in -[src/utilities/superAdminCheck.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/superAdminCheck.ts#L5) +[src/utilities/superAdminCheck.ts:5](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/superAdminCheck.ts#L5) diff --git a/talawa-api-docs/modules/utilities_uploadImage.md b/talawa-api-docs/modules/utilities_uploadImage.md index 178adc2dd0..de6d230ae4 100644 --- a/talawa-api-docs/modules/utilities_uploadImage.md +++ b/talawa-api-docs/modules/utilities_uploadImage.md @@ -35,4 +35,4 @@ This is a utility method. #### Defined in -[src/utilities/uploadImage.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/fcc2f8f/src/utilities/uploadImage.ts#L16) +[src/utilities/uploadImage.ts:16](https://github.com/PalisadoesFoundation/talawa-api/blob/ac416c4/src/utilities/uploadImage.ts#L16) diff --git a/tests/resolvers/Mutation/createPost.spec.ts b/tests/resolvers/Mutation/createPost.spec.ts index 02dbc92193..c3a69250b4 100644 --- a/tests/resolvers/Mutation/createPost.spec.ts +++ b/tests/resolvers/Mutation/createPost.spec.ts @@ -210,6 +210,7 @@ describe("resolvers -> Mutation -> createPost", () => { text: "text", videoUrl: "videoUrl", title: "title", + pinned: true, }, }; @@ -277,6 +278,7 @@ describe("resolvers -> Mutation -> createPost", () => { title: "AfGtN9o7IJXH9Xr5P4CcKTWMVWKOOHTldleLrWfZcThgoX5scPE5o0jARvtVA8VhneyxXquyhWb5nluW2jtP0Ry1zIOUFYfJ6BUXvpo4vCw4GVleGBnoKwkFLp5oW9L8OsEIrjVtYBwaOtXZrkTEBySZ1prr0vFcmrSoCqrCTaChNOxL3tDoHK6h44ChFvgmoVYMSq3IzJohKtbBn68D9NfEVMEtoimkGarUnVBAOsGkKv0mIBJaCl2pnR8Xwq1cG1", imageUrl: null, + pinned: true, }, }; @@ -308,6 +310,7 @@ describe("resolvers -> Mutation -> createPost", () => { videoUrl: "", title: "random", imageUrl: null, + pinned: true, }, }; @@ -326,4 +329,62 @@ describe("resolvers -> Mutation -> createPost", () => { ); } }); + + it("throws error if title is provided and post is not pinned", async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationCreatePostArgs = { + data: { + organizationId: testOrganization?._id, + title: "Test title", + text: "Test text", + pinned: false, + }, + }; + + const context = { + userId: testUser?.id, + }; + + const { createPost: createPostResolver } = await import( + "../../../src/resolvers/Mutation/createPost" + ); + await createPostResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual( + `Post needs to be pinned inorder to add a title` + ); + } + }); + + it("throws error if title is not provided and post is pinned", async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationCreatePostArgs = { + data: { + organizationId: testOrganization?._id, + title: "", + text: "Test text", + pinned: true, + }, + }; + + const context = { + userId: testUser?.id, + }; + + const { createPost: createPostResolver } = await import( + "../../../src/resolvers/Mutation/createPost" + ); + await createPostResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(`Please provide a title to pin post`); + } + }); }); diff --git a/tests/resolvers/Mutation/togglePostPin.spec.ts b/tests/resolvers/Mutation/togglePostPin.spec.ts index 81f8dc6bff..7b42435c29 100644 --- a/tests/resolvers/Mutation/togglePostPin.spec.ts +++ b/tests/resolvers/Mutation/togglePostPin.spec.ts @@ -9,6 +9,7 @@ import { POST_NOT_FOUND_ERROR, USER_NOT_FOUND_ERROR, USER_NOT_AUTHORIZED_TO_PIN, + LENGTH_VALIDATION_ERROR, } from "../../../src/constants"; import { beforeAll, @@ -139,6 +140,7 @@ describe("resolvers -> Mutation -> togglePostPin", () => { ); const args: MutationTogglePostPinArgs = { id: testPost?._id, + title: "Test title", }; const context = { @@ -199,4 +201,56 @@ describe("resolvers -> Mutation -> togglePostPin", () => { expect(currentPostIsPinned).toBeFalsy(); expect(updatedPost?.pinned).toBeFalsy(); }); + + it("throws error if title is not provided to pin post", async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationTogglePostPinArgs = { + id: testPost?._id, + }; + + const context = { + userId: testUser?._id, + }; + + const { togglePostPin: togglePostPinResolver } = await import( + "../../../src/resolvers/Mutation/togglePostPin" + ); + + await togglePostPinResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(`Please provide a title to pin post`); + } + }); + + it(`throws String Length Validation error if title is greater than 256 characters`, async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationTogglePostPinArgs = { + id: testPost?._id, + title: + "AfGtN9o7IJXH9Xr5P4CcKTWMVWKOOHTldleLrWfZcThgoX5scPE5o0jARvtVA8VhneyxXquyhWb5nluW2jtP0Ry1zIOUFYfJ6BUXvpo4vCw4GVleGBnoKwkFLp5oW9L8OsEIrjVtYBwaOtXZrkTEBySZ1prr0vFcmrSoCqrCTaChNOxL3tDoHK6h44ChFvgmoVYMSq3IzJohKtbBn68D9NfEVMEtoimkGarUnVBAOsGkKv0mIBJaCl2pnR8Xwq1cG1", + }; + + const context = { + userId: testUser?._id, + }; + + const { togglePostPin: togglePostPinResolver } = await import( + "../../../src/resolvers/Mutation/togglePostPin" + ); + + await togglePostPinResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual( + `${LENGTH_VALIDATION_ERROR.MESSAGE} 256 characters in title` + ); + } + }); }); diff --git a/tests/resolvers/Mutation/updatePost.spec.ts b/tests/resolvers/Mutation/updatePost.spec.ts index bb13852369..828f1d1ad8 100644 --- a/tests/resolvers/Mutation/updatePost.spec.ts +++ b/tests/resolvers/Mutation/updatePost.spec.ts @@ -10,18 +10,26 @@ import { USER_NOT_AUTHORIZED_ERROR, } from "../../../src/constants"; import { beforeEach, afterEach, describe, it, expect, vi } from "vitest"; -import type { TestUserType } from "../../helpers/userAndOrg"; +import type { + TestOrganizationType, + TestUserType, +} from "../../helpers/userAndOrg"; import type { TestPostType } from "../../helpers/posts"; -import { createTestPost } from "../../helpers/posts"; +import { createTestPost, createTestSinglePost } from "../../helpers/posts"; let testUser: TestUserType; let testPost: TestPostType; +let testOrganization: TestOrganizationType; +let testPost2: TestPostType; beforeEach(async () => { await connect(); - const temp = await createTestPost(); + const temp = await createTestPost(true); testUser = temp[0]; + testOrganization = temp[1]; testPost = temp[2]; + testPost2 = await createTestSinglePost(testUser?.id, testOrganization?.id); + const { requestContext } = await import("../../../src/libraries"); vi.spyOn(requestContext, "translate").mockImplementation( (message) => message @@ -199,4 +207,61 @@ describe("resolvers -> Mutation -> updatePost", () => { ); } }); + + it("throws error if title is provided and post is not pinned", async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationUpdatePostArgs = { + id: testPost2?._id, + data: { + title: "Test title", + text: "Test text", + }, + }; + + const context = { + userId: testUser?.id, + }; + + const { updatePost: updatePostResolver } = await import( + "../../../src/resolvers/Mutation/updatePost" + ); + + await updatePostResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual( + `Post needs to be pinned inorder to add a title` + ); + } + }); + + it(`throws error if title is not provided and post is pinned`, async () => { + const { requestContext } = await import("../../../src/libraries"); + vi.spyOn(requestContext, "translate").mockImplementationOnce( + (message) => message + ); + try { + const args: MutationUpdatePostArgs = { + id: testPost?._id, + data: { + text: "Testing text", + }, + }; + + const context = { + userId: testUser?.id, + }; + + const { updatePost: updatePostResolver } = await import( + "../../../src/resolvers/Mutation/updatePost" + ); + + await updatePostResolver?.({}, args, context); + } catch (error: any) { + expect(error.message).toEqual(`Please provide a title to pin post`); + } + }); }); From 0d56d46680632482124925a5acf57a28220ffb7c Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 28 Jan 2024 13:59:06 +0530 Subject: [PATCH 27/28] Revert "add constant for milliseconds in a week" This reverts commit 0476a3525cc2da289a8e15b27434b4b1ff0af9cc. --- src/models/ActionItem.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index a02a3406ed..923095a211 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -3,7 +3,6 @@ import { Schema, model, models } from "mongoose"; import type { InterfaceUser } from "./User"; import type { InterfaceEvent } from "./Event"; import type { InterfaceActionItemCategory } from "./ActionItemCategory"; -import { MILLISECONDS_IN_A_WEEK } from "../constants"; /** * This is an interface that represents a database(MongoDB) document for ActionItem. @@ -34,8 +33,8 @@ export interface InterfaceActionItem { * @param preCompletionNotes - Notes prior to completion. * @param postCompletionNotes - Notes on completion. * @param assignmentDate - Date of assignment. - * @param dueDate - Due date (defaults to one week from creation). - * @param completionDate - Completion date (defaults to one week from creation). + * @param dueDate - Due date. + * @param completionDate - Completion date. * @param isCompleted - Whether the ActionItem has been completed. * @param eventId - Event to which the ActionItem is related, refer to the `Event` model. * @param creatorId - User who created the ActionItem, refer to the `User` model. @@ -74,12 +73,12 @@ const actionItemSchema = new Schema( dueDate: { type: Date, required: true, - default: Date.now() + MILLISECONDS_IN_A_WEEK, + default: Date.now() + 7 * 24 * 60 * 60 * 1000, }, completionDate: { type: Date, required: true, - default: Date.now() + MILLISECONDS_IN_A_WEEK, + default: Date.now() + 7 * 24 * 60 * 60 * 1000, }, isCompleted: { type: Boolean, From 9577a5968c5baa6e0ab4822a6304ca9891e7da41 Mon Sep 17 00:00:00 2001 From: meetul Date: Sun, 28 Jan 2024 14:05:22 +0530 Subject: [PATCH 28/28] add constant for milliseconds in a week --- src/models/ActionItem.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/ActionItem.ts b/src/models/ActionItem.ts index 923095a211..d8832d579c 100644 --- a/src/models/ActionItem.ts +++ b/src/models/ActionItem.ts @@ -3,6 +3,7 @@ import { Schema, model, models } from "mongoose"; import type { InterfaceUser } from "./User"; import type { InterfaceEvent } from "./Event"; import type { InterfaceActionItemCategory } from "./ActionItemCategory"; +import { MILLISECONDS_IN_A_WEEK } from "../constants"; /** * This is an interface that represents a database(MongoDB) document for ActionItem. @@ -73,12 +74,12 @@ const actionItemSchema = new Schema( dueDate: { type: Date, required: true, - default: Date.now() + 7 * 24 * 60 * 60 * 1000, + default: Date.now() + MILLISECONDS_IN_A_WEEK, }, completionDate: { type: Date, required: true, - default: Date.now() + 7 * 24 * 60 * 60 * 1000, + default: Date.now() + MILLISECONDS_IN_A_WEEK, }, isCompleted: { type: Boolean,