MCPcopy Create free account

hub / github.com/connorads/lockbot / functions

Functions38 in github.com/connorads/lockbot

↓ 49 callersFunctionexecute
( input: string, params?: { user?: string; channel?: string; team?: string } )
test/lock-bot.test.ts:16
↓ 13 callersMethoddelete
(resource: string, channel: string, team: string)
src/lock-bot.ts:4
↓ 5 callersMethodgetOwner
( resource: string, channel: string, team: string )
src/lock-bot.ts:9
↓ 4 callersFunctiongetFirstParam
(commandText: string)
src/handlers/slack/command-parsers.ts:8
↓ 4 callersFunctionhandleCommand
( getResponse: (command: SlashCommand) => Promise<Response> )
src/handlers/slack/handle-command.ts:47
↓ 3 callersFunctionrecreateAccessTokenTable
( accessTokenTableName: string )
test/utils.ts:35
↓ 2 callersFunctioncreateToken
(user: string)
test/api.test.ts:24
↓ 2 callersMethodgetAll
( channel: string, team: string )
src/lock-bot.ts:5
↓ 2 callersFunctionparseUnlock
( commandText: string )
src/handlers/slack/command-parsers.ts:1
↓ 2 callersFunctionrecreateResourcesTable
(resourcesTableName: string)
test/utils.ts:8
↓ 2 callersFunctionrunAllTests
()
test/lock-bot.test.ts:15
↓ 2 callersFunctionrunAllTests
()
test/token-authorizer.test.ts:8
↓ 2 callersMethodsetOwner
( resource: string, owner: string, channel: string, team: string, metadata?: Record<string
src/lock-bot.ts:14
↓ 1 callersFunctiongenerateToken
()
src/token-authorizer.ts:4
↓ 1 callersMethodgetAccessToken
( user: string, channel: string, team: string )
src/token-authorizer.ts:18
↓ 1 callersFunctiongetResponseType
(destination: Destination)
src/handlers/slack/handle-command.ts:9
↓ 1 callersFunctionhandleResponse
( response: Promise<Response>, respond: RespondFn, logger: Logger )
src/handlers/slack/handle-command.ts:22
↓ 1 callersMethodputAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/token-authorizer.ts:12
Functionauthorizer
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:31
FunctionbodyValidator
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:52
Methodconstructor
(private readonly tokenRepo: AccessTokenRepo)
src/token-authorizer.ts:26
Methodconstructor
( private readonly lockRepo: LockRepo, private readonly tokenAuthorizer: TokenAuthorizer )
src/lock-bot.ts:31
Methodconstructor
( private readonly documentClient: DocumentClient, private readonly resourcesTableName: string )
src/storage/dynamodb-lock-repo.ts:5
Methodconstructor
( private readonly documentClient: DocumentClient, private readonly accessTokenTableName: string )
src/storage/dynamodb-token-repo.ts:5
Methoddelete
(resource: string, channel: string, team: string)
src/storage/dynamodb-lock-repo.ts:10
Methoddelete
(resource: string, channel: string, team: string)
src/storage/in-memory-lock-repo.ts:21
MethodgetAccessToken
( user: string, channel: string, team: string )
src/storage/dynamodb-token-repo.ts:28
MethodgetAccessToken
( user: string, channel: string, team: string )
src/storage/in-memory-token-repo.ts:24
MethodgetAll
( channel: string, team: string )
src/storage/dynamodb-lock-repo.ts:19
MethodgetAll
( channel: string, team: string )
src/storage/in-memory-lock-repo.ts:25
MethodgetOwner
( resource: string, channel: string, team: string )
src/storage/dynamodb-lock-repo.ts:40
MethodgetOwner
( resource: string, channel: string, team: string )
src/storage/in-memory-lock-repo.ts:43
FunctionhandleErrors
( err: ExpressError, req: Request, res: Response, // eslint-disable-next-line @typescript-eslint/no-un
src/handlers/api/middleware.ts:12
FunctionparamsValidator
( req: Request, res: Response, next: NextFunction )
src/handlers/api/middleware.ts:67
MethodputAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/storage/dynamodb-token-repo.ts:10
MethodputAccessToken
( accessToken: string, user: string, channel: string, team: string )
src/storage/in-memory-token-repo.ts:12
MethodsetOwner
( resource: string, owner: string, channel: string, team: string, metadata?: Record<string
src/storage/dynamodb-lock-repo.ts:54
MethodsetOwner
( resource: string, owner: string, channel: string, team: string )
src/storage/in-memory-lock-repo.ts:52