MCPcopy Create free account

hub / github.com/constROD/template-hono-prisma-kysely / functions

Functions77 in github.com/constROD/template-hono-prisma-kysely

↓ 14 callersFunctionmakeFakeUser
(overrides?: Partial<User>)
src/data/users/__test-utils__/make-fake-user.ts:6
↓ 10 callersFunctiontransformToPaginatedResponse
({ records, totalRecords, limit, page, }: TransformToPaginatedResponseArgs<TRecords>)
src/data/transform-to-paginated-response.ts:10
↓ 7 callersFunctioncreateTestUsersInDB
({ dbClient, values }: CreateTestUsersInDBArgs)
src/data/users/__test-utils__/make-fake-user.ts:25
↓ 6 callersFunctionparseArguments
(args: string[])
cli/utils/parse-arguments.ts:1
↓ 6 callersFunctionsearchProductsData
({ dbClient, limit = 25, page = 1, sortBy = 'created_at', sortByUserField, orderBy = 'desc', inc
src/data/products/search-products.ts:26
↓ 6 callersFunctionupdateUserData
({ dbClient, id, values }: UpdateUserDataArgs)
src/data/users/update-user.ts:12
↓ 5 callersFunctionsearchUsersData
({ dbClient, limit = 25, page = 1, sortBy = 'created_at', orderBy = 'desc', includeArchived = fals
src/data/users/search-users.ts:19
↓ 4 callersFunctionformatLogMessage
(message: string, data?: TLogDataOrError)
src/utils/logger.ts:3
↓ 4 callersFunctiongetFeatureFlagService
({ dbClient, payload, dependencies = { getUserData, getFeatureFlagData, }, }: GetFeatureFlagSe
src/services/feature-flags/get-feature-flag.ts:17
↓ 4 callersFunctiongetProductsData
({ dbClient, limit = 25, page = 1, sortBy = 'created_at', orderBy = 'desc', includeArchived = fals
src/data/products/get-products.ts:14
↓ 4 callersFunctiongetUserData
({ dbClient, id }: GetUserDataArgs)
src/data/users/get-user.ts:9
↓ 4 callersFunctionmakeFakeProduct
(overrides?: Partial<Product>)
src/data/products/__test-utils__/make-fake-product.ts:5
↓ 4 callersFunctionrunApplyDbMigration
({ databaseUrl }: { databaseUrl: string })
cli/commands/run-apply-db-migration.ts:4
↓ 4 callersFunctionsetupTestData
({ dbClient, users, products, }: { dbClient: DbClient; users: Partial<User>[]; products: Partial<P
src/data/products/search-products.test.ts:9
↓ 3 callersFunctionauthorizationService
({ dbClient, payload, dependencies = { getUserData, }, }: AuthorizationServiceArgs)
src/services/authorization.ts:16
↓ 3 callersFunctiondeleteUserData
({ dbClient, id }: DeleteUserDataArgs)
src/data/users/delete-user.ts:9
↓ 3 callersFunctiongetUsersData
({ dbClient, limit = 25, page = 1, sortBy = 'created_at', orderBy = 'desc', includeArchived = fals
src/data/users/get-users.ts:14
↓ 3 callersFunctionparseStringBoolean
(value: string | undefined)
src/utils/query.ts:41
↓ 3 callersFunctionsetupTestData
({ dbClient, users, }: { dbClient: DbClient; users: Partial<User>[]; })
src/data/users/search-users.test.ts:8
↓ 2 callersFunctioncreateTestProductsInDB
({ dbClient, values }: CreateTestProductsInDBArgs)
src/data/products/__test-utils__/make-fake-product.ts:24
↓ 2 callersFunctioncreateUserData
({ dbClient, values }: CreateUserDataArgs)
src/data/users/create-user.ts:9
↓ 2 callersFunctiondivide
(a: string, b: string)
src/utils/decimal.ts:17
↓ 2 callersFunctionformatDateToISO
(date: string | Date)
src/utils/date.ts:7
↓ 2 callersFunctiongetServerDateTimeData
({ dbClient }: GetServerDateTimeDataArgs)
src/data/server/get-server-date-time.ts:9
↓ 2 callersFunctiongetValueFromPercentage
(args: { percentage: string; total: string })
src/utils/decimal.ts:25
↓ 2 callersFunctionisTest
()
src/env.ts:7
↓ 2 callersFunctionisValidStringDecimalNumber
(value: string)
src/utils/number.ts:1
↓ 2 callersFunctionmakeError
(error: TError)
src/utils/errors.ts:44
↓ 2 callersFunctionmultiply
(a: string, b: string)
src/utils/decimal.ts:13
↓ 2 callersFunctionrunCommand
(command: string)
cli/utils/run-command.ts:3
↓ 2 callersFunctionsetupTestData
({ dbClient, users, }: { dbClient: DbClient; users: Partial<User>[]; })
src/data/users/get-users.test.ts:8
↓ 2 callersFunctionsetupTestData
({ dbClient, users, products, }: { dbClient: DbClient; users: Partial<User>[]; products: Partial<P
src/data/products/get-products.test.ts:9
↓ 1 callersFunctionadd
(a: string, b: string)
src/utils/decimal.ts:1
↓ 1 callersFunctionbuildQueryString
(params: Record<string, unknown>)
src/utils/query.ts:1
↓ 1 callersFunctioncreateDbClient
()
src/db/create-db-client.ts:8
↓ 1 callersFunctioncreateTestDbClient
()
src/db/create-db-client.ts:31
↓ 1 callersFunctionerrorHandlerMiddleware
(err: Error, c: Context<HonoEnv>)
src/middlewares/error-handler.ts:6
↓ 1 callersFunctionrun
()
cli/db-migrate.ts:10
↓ 1 callersFunctionsetUpDbClientMiddleware
(c: Context<HonoEnv>, next: Next)
src/middlewares/set-up-db-client.ts:7
↓ 1 callersFunctionsetupTestData
({ dbClient, users, }: { dbClient: DbClient; users: Partial<User>[]; })
src/data/users/delete-user.test.ts:10
↓ 1 callersFunctionsetupTestData
({ dbClient, users, }: { dbClient: DbClient; users: Partial<User>[]; })
src/data/users/get-user.test.ts:10
↓ 1 callersFunctionsetupTestData
({ dbClient, users, }: { dbClient: DbClient; users: Partial<User>[]; })
src/data/users/update-user.test.ts:10
↓ 1 callersFunctionsubtract
(a: string, b: string)
src/utils/decimal.ts:7
FunctionaddPercent
(args: { value: string; percentage: string })
src/utils/decimal.ts:29
FunctionappendQueryToUrl
(baseUrl: string, params: Record<string, unknown>)
src/utils/query.ts:24
FunctionarchiveUserRouteHandler
src/controllers/users/archive-user.ts:46
FunctionauthenticationMiddleware
(c: Context<HonoEnv>, next: Next)
src/middlewares/authentication.ts:5
FunctioncalculatePercentage
(args: { value: string; total: string })
src/utils/decimal.ts:21
Methodconstructor
(message: string)
src/utils/errors.ts:5
Methodconstructor
(message: string)
src/utils/errors.ts:13
Methodconstructor
(message: string)
src/utils/errors.ts:21
Methodconstructor
(message: string)
src/utils/errors.ts:29
Methodconstructor
(message: string)
src/utils/errors.ts:37
FunctioncreateUserRouteHandler
src/controllers/users/create-user.ts:49
FunctiondeleteAllRecords
({ dbClient, tableName, }: { dbClient: DbClient; tableName: keyof KyselySchema; })
src/data/__test-utils__/delete-all-records.ts:8
FunctiondeleteUserRouteHandler
src/controllers/users/delete-user.ts:45
FunctionerrorLog
(title: string, message: string | unknown = '')
cli/utils/logger.ts:8
FunctiongetCurrentLocalDateISO
()
src/utils/date.ts:3
FunctiongetFeatureFlagData
({ dbClient, role }: GetFeatureFlagDataArgs)
src/data/feature-flags/get-feature-flag.ts:10
FunctiongetFeatureFlagRouteHandler
src/controllers/feature-flags/get-feature-flag.ts:34
FunctiongetMyProfileRouteHandler
src/controllers/me/get-my-profile.ts:34
FunctiongetProductsRouteHandler
src/controllers/products/get-products.ts:44
FunctiongetProductsWithUserDTO
(record: GetProductsWithUserDTOArgs)
src/controllers/products/dto/get-products-with-user.dto.ts:14
FunctiongetServerDateTimeRouteHandler
src/controllers/server/get-server-date-time.ts:33
FunctiongetUserRouteHandler
src/controllers/users/get-user.ts:45
FunctioninfoLog
(title: string, message: string | unknown = '')
cli/utils/logger.ts:13
FunctionmockHonoHandler
(c: typeof mockHonoContext)
src/middlewares/__test-utils__/mock-openapi-hono.ts:41
FunctionparseQueryString
(queryString: string)
src/utils/query.ts:29
FunctionrunCommandWithOutput
(command: string)
cli/utils/run-command.ts:12
FunctionsearchProductsRouteHandler
src/controllers/products/search-products.ts:53
FunctionsearchUsersRouteHandler
src/controllers/users/search-users.ts:45
FunctionsubtractPercent
(args: { value: string; percentage: string })
src/utils/decimal.ts:37
FunctionsuccessLog
(title: string, message: string | unknown = '')
cli/utils/logger.ts:3
FunctionunarchiveUserRouteHandler
src/controllers/users/unarchive-user.ts:45
FunctionupdateFeatureFlagData
({ dbClient, role, values }: UpdateFeatureFlagDataArgs)
src/data/feature-flags/update-feature-flag.ts:13
FunctionupdateMyProfileRouteHandler
src/controllers/me/update-my-profile.ts:52
FunctionupdateUserRouteHandler
src/controllers/users/update-user.ts:60