Skip to main content

generateUserData

talawa-apiDocs


talawa-api / utilities/createSampleOrganizationUtil / generateUserData

Function: generateUserData()

> generateUserData(organizationId, userType): Promise<object>

Generates user data for a given organization and user type.

Parameters

organizationId: string

The ID of the organization the user belongs to

userType: string

The type of the user ('ADMIN' or 'USER')

Returns

Promise<object>

A promise that resolves to an object containing the created user and their application profile

appUserProfile

> appUserProfile: Document<unknown, object, InterfaceAppUserProfile> & InterfaceAppUserProfile & Required<object>

user

> user: Document<unknown, object, InterfaceUser> & InterfaceUser & Required<object>

Defined in

src/utilities/createSampleOrganizationUtil.ts:24