Skip to main content

talawa-api / Exports / utilities/createSampleOrganizationUtil

Module: utilities/createSampleOrganizationUtil

Table of contents

Functions

Functions

createSampleOrganization

createSampleOrganization(): Promise<void>

Returns

Promise<void>

Defined in

src/utilities/createSampleOrganizationUtil.ts:215


generateEventData

generateEventData(users, organizationId): Promise<InterfaceEvent>

Parameters

NameType
usersInterfaceUser[]
organizationIdstring

Returns

Promise<InterfaceEvent>

Defined in

src/utilities/createSampleOrganizationUtil.ts:64


generatePostData

generatePostData(users, organizationId): Promise<InterfacePost & Document<any, any, InterfacePost>>

Parameters

NameType
usersInterfaceUser[]
organizationIdstring

Returns

Promise<InterfacePost & Document<any, any, InterfacePost>>

Defined in

src/utilities/createSampleOrganizationUtil.ts:128


generateRandomPlugins

generateRandomPlugins(numberOfPlugins, users): Promise<Promise<any>[]>

Parameters

NameType
numberOfPluginsnumber
usersstring[]

Returns

Promise<Promise<any>[]>

Defined in

src/utilities/createSampleOrganizationUtil.ts:185


generateUserData

generateUserData(organizationId, userType): Promise<InterfaceUser & Document<any, any, InterfaceUser>>

Parameters

NameType
organizationIdstring
userTypestring

Returns

Promise<InterfaceUser & Document<any, any, InterfaceUser>>

Defined in

src/utilities/createSampleOrganizationUtil.ts:10