Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decileapp/decile
/ functions
Functions
305 in github.com/decileapp/decile
⨍
Functions
305
◇
Types & classes
69
↓ 45 callers
Function
classNames
(...classes: string[])
utils/classnames.ts:1
↓ 20 callers
Function
protectServerRoute
(handler: any)
utils/auth/protectServerRoute.ts:7
↓ 9 callers
Function
isNumerical
(x: string)
utils/query/index.ts:137
↓ 8 callers
Function
getServiceSupabase
()
utils/supabaseClient.ts:8
↓ 7 callers
Function
decrypt
(ciphertext: string)
utils/encryption.ts:11
↓ 7 callers
Function
getBlockChildren
( notionClient: Client, block_id: string, totalPage: number | null )
utils/notion/utils/notion.ts:8
↓ 6 callers
Function
authoriseGoogle
()
utils/google/auth.ts:9
↓ 4 callers
Function
checkExistingToken
(userId: string)
utils/google/auth.ts:41
↓ 4 callers
Function
dateFormatter
({ dateVar, type = "date", emptyMessage = "No date available.", }: { dateVar: Date | null; type?: "d
utils/dateFormatter.ts:3
↓ 4 callers
Function
encrypt
(text: string)
utils/encryption.ts:3
↓ 4 callers
Function
handleTime
()
components/schedule/index.tsx:138
↓ 4 callers
Function
queryById
({ userId, orgId, queryId, }: { userId: string; orgId: string; queryId: string; })
utils/postgres/queryById.ts:6
↓ 3 callers
Function
Error
()
pages/404.tsx:3
↓ 3 callers
Method
blocksToMarkdown
* Converts list of Notion Blocks to Markdown Blocks * @param {ListBlockChildrenResponseResults | undefined} blocks - List of notion blocks * @pa
utils/notion/index.ts:111
↓ 3 callers
Function
fetchTablesAndColumns
(database: Source)
components/query/functions/index.ts:46
↓ 3 callers
Function
formatForSheets
(data: any)
utils/postgres/formatForSheets.ts:1
↓ 3 callers
Function
queryDb
()
components/query/ask.tsx:170
↓ 3 callers
Function
toQuery
(row: BasicQuery)
pages/queries/index.tsx:85
↓ 3 callers
Function
updateOrgForSession
(user: User)
utils/organisation/updateOrgForSession.ts:16
↓ 3 callers
Function
writeOnSpreadsheet
({ spreadsheet, auth, data, range, }: { spreadsheet: string; auth: OAuth2Client; data: any; ra
utils/google/sheets.ts:30
↓ 2 callers
Method
blockToMarkdown
* Converts a Notion Block to a Markdown Block * @param {ListBlockChildrenResponseResult} block - single notion block * @returns {string} corresp
utils/notion/index.ts:164
↓ 2 callers
Function
changeDatabase
(x: string)
components/query/ask.tsx:96
↓ 2 callers
Function
copyQuery
()
components/query/view.tsx:69
↓ 2 callers
Function
createQuery
()
pages/queries/index.tsx:30
↓ 2 callers
Function
emailHelper
({ from, to, templateId, vars, }: { from: string; to: string; templateId: string; vars: {}; })
utils/emailHelper.ts:21
↓ 2 callers
Function
fetchColumns
({ database, table, }: { database: Source; table: Table; })
components/query/functions/index.ts:23
↓ 2 callers
Function
graphTheme
(theme: string)
components/graphs/common/graphTheme.ts:3
↓ 2 callers
Function
marginProps
(x?: boolean)
components/graphs/common/graphTheme.ts:114
↓ 2 callers
Function
saveQuery
()
components/query/ask.tsx:256
↓ 2 callers
Function
signout
()
components/layouts/AppLayout/Topbar.tsx:70
↓ 2 callers
Function
toChart
(row: Chart)
pages/charts/index.tsx:45
↓ 2 callers
Method
toMarkdownString
* Converts Markdown Blocks to string * @param {MdBlock[]} mdBlocks - Array of markdown blocks * @param {number} nestingLevel - Defines max depth
utils/notion/index.ts:44
↓ 2 callers
Function
updatePlanForAllUsers
(orgId: string, planId: number)
utils/stripe/index.ts:51
↓ 2 callers
Function
updateSort
(v: string, index: number)
components/query/builder/QuerySortLimit.tsx:66
↓ 2 callers
Function
updateToPaidPlan
({ stripePriceId, stripeCustomerId, }: { stripePriceId: string; stripeCustomerId: string; })
utils/stripe/index.ts:5
↓ 2 callers
Function
validateLink
(input: Props)
components/sources/index.tsx:41
↓ 1 callers
Function
_buildPost
(pageObject: any)
pages/api/user/notion/get-posts.ts:22
↓ 1 callers
Function
addFilter
()
components/query/builder/QueryFilterSelector.tsx:33
↓ 1 callers
Function
addGroupBy
()
components/query/builder/QueryGroupBy.tsx:21
↓ 1 callers
Function
addVar
()
components/query/builder/QuerySortLimit.tsx:24
↓ 1 callers
Function
addVar
(v: Column)
components/query/builder/QueryVariableSelector.tsx:21
↓ 1 callers
Method
annotatePlainText
* Annoate text using provided annotations * @param {string} text - String to be annotated * @param {Annotations} annotations - Annotation object
utils/notion/index.ts:470
↓ 1 callers
Function
authoriseGoogle
()
pages/google.tsx:16
↓ 1 callers
Function
buffer
(readable: Readable)
pages/api/internal/stripe/webhook.ts:14
↓ 1 callers
Function
changeTable
(x: Table)
components/query/ask.tsx:128
↓ 1 callers
Function
checkEligibility
()
pages/settings/index.tsx:44
↓ 1 callers
Function
checkEligibility
()
pages/schedule/[id].tsx:26
↓ 1 callers
Function
checkGoogleAuth
()
pages/google.tsx:36
↓ 1 callers
Function
checkOrg
(user: User)
components/layouts/AppLayout/index.tsx:24
↓ 1 callers
Function
checkTrial
()
components/layouts/AppLayout/Topbar.tsx:76
↓ 1 callers
Function
createAndWriteSpreadsheet
({ title, auth, data, range, }: { title: string; auth: OAuth2Client; data: any; range: string;
utils/google/sheets.ts:71
↓ 1 callers
Function
createDate
({ time, day, dateOfMonth, frequency, }: { time: string | undefined; day: string | u
components/schedule/index.tsx:74
↓ 1 callers
Function
createSheet
()
pages/queries/export/[id].tsx:41
↓ 1 callers
Function
createSource
()
components/sources/index.tsx:77
↓ 1 callers
Function
createSpreadsheet
({ auth, title, }: { auth: OAuth2Client; title: string; })
utils/google/sheets.ts:5
↓ 1 callers
Function
createTab
({ auth, spreadsheet, tabName, }: { auth: OAuth2Client; spreadsheet: string; tabName: string; })
utils/google/sheets.ts:126
↓ 1 callers
Function
deleteChart
(id: string)
pages/charts/index.tsx:28
↓ 1 callers
Function
deleteJob
(id: string)
pages/schedule/index.tsx:25
↓ 1 callers
Function
deleteQuery
(id: string)
pages/queries/index.tsx:43
↓ 1 callers
Function
deleteSource
(id: string)
pages/sources/index.tsx:25
↓ 1 callers
Function
downgradeToFree
(stripeCustomerId: string)
utils/stripe/index.ts:37
↓ 1 callers
Function
editSource
()
components/sources/index.tsx:106
↓ 1 callers
Function
event
(event_name: string, props: any)
utils/mixpanel.ts:10
↓ 1 callers
Function
format
()
components/individual/Button.tsx:26
↓ 1 callers
Function
formatSchedule
(s: Schedule)
utils/schedule/index.ts:61
↓ 1 callers
Function
getColumns
(table_schema: string, table_name: string)
pages/api/user/postgres/get-schema.ts:28
↓ 1 callers
Function
getContent
()
pages/onboard/learn.tsx:17
↓ 1 callers
Function
getContent
()
pages/onboard/analytics.tsx:17
↓ 1 callers
Function
getContent
()
pages/learn/[id].tsx:31
↓ 1 callers
Function
getNewToken
(code: string)
utils/google/auth.ts:25
↓ 1 callers
Function
getPageProperties
( notionClient: Client, page_id: string )
utils/notion/utils/notion.ts:56
↓ 1 callers
Function
getPaymentLink
(x: string)
components/pricing/index.tsx:69
↓ 1 callers
Function
getPortalLink
()
pages/settings/index.tsx:72
↓ 1 callers
Function
getPosts
()
pages/learn/index.tsx:16
↓ 1 callers
Function
getQuestion
()
pages/learn/ask/[id].tsx:23
↓ 1 callers
Function
getSource
()
pages/sources/edit.tsx:19
↓ 1 callers
Function
getSpreadsheetId
(x: string)
utils/google/helpers.ts:1
↓ 1 callers
Function
googleSignIn
()
pages/auth/signin.tsx:57
↓ 1 callers
Function
googleSignUp
()
pages/auth/signup.tsx:76
↓ 1 callers
Function
handler
( req: NextApiRequest, res: NextApiResponse )
pages/api/auth/index.ts:5
↓ 1 callers
Function
initialLoad
()
pages/queries/edit/[id].tsx:66
↓ 1 callers
Function
inviteMember
()
pages/team/invite.tsx:25
↓ 1 callers
Function
isAdminRoute
(pathname: string)
utils/auth/protectServerRoute.ts:20
↓ 1 callers
Function
isInternalRoute
(pathname: string)
utils/auth/protectServerRoute.ts:30
↓ 1 callers
Function
isOrgRoute
(pathname: string)
utils/auth/protectServerRoute.ts:35
↓ 1 callers
Function
isUserRoute
(pathname: string)
utils/auth/protectServerRoute.ts:25
↓ 1 callers
Function
modifyNumberedListObject
( blocks: ListBlockChildrenResponseResults )
utils/notion/utils/notion.ts:40
↓ 1 callers
Function
nextPost
()
pages/learn/[id].tsx:69
↓ 1 callers
Function
onboardingBox
({ title, description, status, link, helperText, }: { title: string; description
pages/index.tsx:50
↓ 1 callers
Function
openSaveDialog
()
components/graphs/common/ChartContainer.tsx:291
↓ 1 callers
Method
pageToMarkdown
* Retrieves Notion Blocks based on ID and converts them to Markdown Blocks * @param {string} id - notion page id (not database id) * @param {num
utils/notion/index.ts:82
↓ 1 callers
Function
previousPost
()
pages/learn/[id].tsx:83
↓ 1 callers
Function
queryBuilder
({ tables, vars, sortBy, filterBy, limit, groupBy, }: QueryInputs)
utils/query/index.ts:159
↓ 1 callers
Function
queryDb
()
components/query/form.tsx:227
↓ 1 callers
Function
queryDb
()
pages/queries/view/[id].tsx:78
↓ 1 callers
Function
queryDb
()
pages/charts/[id].tsx:25
↓ 1 callers
Function
readSpreadsheet
({ auth, spreadsheet, range, }: { auth: OAuth2Client; spreadsheet: string; range: string; })
utils/google/sheets.ts:99
↓ 1 callers
Function
refreshSession
()
pages/settings/index.tsx:37
↓ 1 callers
Function
removeFilter
(v: number)
components/query/builder/QueryFilterSelector.tsx:44
↓ 1 callers
Function
removeGroupby
(v: number)
components/query/builder/QueryGroupBy.tsx:43
next →
1–100 of 305, ranked by callers