HandlerAndValidators
createAttachment
createAttachment: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
emailVerified: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
createChangeRequest
createChangeRequest: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
organizationExists: undefined | Predicate;
validBody: undefined | Predicate;
validateOwnerOrganizationNewNameNotDuplicate: undefined | Predicate;
} & Record<string, Predicate>>
createFollow
createFollow: HandlerAndValidators<{
authentication: undefined | Predicate;
isFollowExists: undefined | Predicate;
validBody: undefined | Predicate;
validFollowerId: undefined | Predicate;
validFollowerType: undefined | Predicate;
validUserType: undefined | Predicate;
} & Record<string, Predicate>>
createOrganization
createOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isParentIdValid: undefined | Predicate;
validBody: undefined | Predicate;
validateOwnerIdIsAnExistingUser: undefined | Predicate;
validateOwnerOrganizationNameNotExist: undefined | Predicate;
validateUserCanSetParentId: undefined | Predicate;
validateUserTypeCanCreateOrganization: undefined | Predicate;
} & Record<string, Predicate>>
createUpdateManyOrgUsers
createUpdateManyOrgUsers: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isNormalStatusOrganization: undefined | Predicate;
isOrganizationChildless: undefined | Predicate;
organizationExists: undefined | Predicate;
preventOwnerChangingRole: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
deleteAttachment
deleteAttachment: HandlerAndValidators<{
attachmentExists: undefined | Predicate;
authentication: undefined | Predicate;
authorization: undefined | Predicate;
emailVerified: undefined | Predicate;
} & Record<string, Predicate>>
deleteFollow
deleteFollow: HandlerAndValidators<{
authentication: undefined | Predicate;
validBody: undefined | Predicate;
validFollowerId: undefined | Predicate;
validFollowerType: undefined | Predicate;
validUserType: undefined | Predicate;
} & Record<string, Predicate>>
deleteOrgUser
deleteOrgUser: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isNormalStatusOrganization: undefined | Predicate;
isNotLastOwner: undefined | Predicate;
organizationExists: undefined | Predicate;
} & Record<string, Predicate>>
deleteOrganization
deleteOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isOrganizationChildless: undefined | Predicate;
organizationExists: undefined | Predicate;
} & Record<string, Predicate>>
getAttachment
getAttachment: HandlerAndValidators<{
attachmentExists: undefined | Predicate;
authentication: undefined | Predicate;
authorization: undefined | Predicate;
emailVerified: undefined | Predicate;
} & Record<string, Predicate>>
getAttachmentUploadUrl
getAttachmentUploadUrl: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
getOrgUserExistence
getOrgUserExistence: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
getOrgUserRole
getOrgUserRole: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
getOrganization
getOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
organizationExists: undefined | Predicate;
} & Record<string, Predicate>>
listAttachments
listAttachments: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listAttachmentsForOrganization
listAttachmentsForOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listChangeRequestsForOrganization
listChangeRequestsForOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
organizationExists: undefined | Predicate;
} & Record<string, Predicate>>
listFollowers
listFollowers: HandlerAndValidators<{
authentication: undefined | Predicate;
validUserType: undefined | Predicate;
} & Record<string, Predicate>>
listFollows
listFollows: HandlerAndValidators<{
authentication: undefined | Predicate;
validUserType: undefined | Predicate;
} & Record<string, Predicate>>
listOrgUsersForOrganization
listOrgUsersForOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
organizationExists: undefined | Predicate;
} & Record<string, Predicate>>
listOrganizations
listOrganizations: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listOrganizationsForUser
listOrganizationsForUser: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isRolesValid: undefined | Predicate;
} & Record<string, Predicate>>
updateOrganization
updateOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isParentIdValid: undefined | Predicate;
organizationExists: undefined | Predicate;
preventUserUpdateReviewStats: undefined | Predicate;
validBody: undefined | Predicate;
validateUserCanUpdateField: undefined | Predicate;
} & Record<string, Predicate>>
Description
Create attachment handler and validators
handler: createAttachmentHandler
validators: