Skip to content

Latest commit

 

History

History
111 lines (64 loc) · 3.91 KB

utilities_createSampleOrganizationUtil.md

File metadata and controls

111 lines (64 loc) · 3.91 KB

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

Name Type
users InterfaceUser[]
organizationId string

Returns

Promise<InterfaceEvent>

Defined in

src/utilities/createSampleOrganizationUtil.ts:64


generatePostData

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

Parameters

Name Type
users InterfaceUser[]
organizationId string

Returns

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

Defined in

src/utilities/createSampleOrganizationUtil.ts:128


generateRandomPlugins

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

Parameters

Name Type
numberOfPlugins number
users string[]

Returns

Promise<Promise<any>[]>

Defined in

src/utilities/createSampleOrganizationUtil.ts:185


generateUserData

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

Parameters

Name Type
organizationId string
userType string

Returns

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

Defined in

src/utilities/createSampleOrganizationUtil.ts:10