Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArnasDon/wacrm
/ functions
Functions
1,053 in github.com/ArnasDon/wacrm
⨍
Functions
1,053
◇
Types & classes
317
↓ 4 callers
Function
updateVariable
(key: string, patch: Partial<VariableMapping>)
src/components/broadcasts/step3-personalize.tsx:181
↓ 4 callers
Function
uploadAccountMedia
( bucket: string, file: File, )
src/lib/storage/upload-media.ts:79
↓ 4 callers
Function
uploadResumableMedia
( args: UploadResumableMediaArgs, )
src/lib/whatsapp/meta-api.ts:477
↓ 4 callers
Function
validateFooter
(footerText: string | undefined)
src/lib/whatsapp/template-validators.ts:102
↓ 4 callers
Function
validateSampleValues
( payload: TemplatePayload, bodyVarCount: number, headerVarCount: number, )
src/lib/whatsapp/template-validators.ts:285
↓ 4 callers
Function
xFor
(i: number)
src/components/dashboard/conversations-chart.tsx:127
↓ 3 callers
Function
advanceCurrentNodeKey
* Optimistic UPDATE — only advance current_node_key when it matches * the value we read at the top of dispatch. If another webhook beat * us, the ro
src/lib/flows/engine.ts:796
↓ 3 callers
Function
appendResults
( logId: string | null, newItems: AutomationLogStepResult[], status: 'success' | 'partial' | 'failed' |
src/lib/automations/engine.ts:660
↓ 3 callers
Function
attempt
(phone: string)
src/lib/flows/meta-send.ts:91
↓ 3 callers
Function
avg
(arr: number[])
src/lib/dashboard/queries.ts:243
↓ 3 callers
Function
beat
()
src/components/presence/presence-heartbeat.tsx:51
↓ 3 callers
Function
buildSystemPrompt
(args: { userPrompt: string | null mode: 'draft' | 'auto_reply' /** Knowledge-base excerpts retrieved fo
src/lib/ai/defaults.ts:52
↓ 3 callers
Function
callRuntimeCallbacks
(callbacks)
public/opus/encoderWorker.min.js:1
↓ 3 callers
Function
customStep
(field: string, value: string)
src/lib/automations/engine.test.ts:249
↓ 3 callers
Function
dbReturning
(row: Record<string, unknown> | null)
src/lib/ai/config.test.ts:11
↓ 3 callers
Function
dedupeByPhone
( rows: T[], )
src/lib/contacts/dedupe.ts:83
↓ 3 callers
Function
deleteAccountMedia
( bucket: string, path: string, )
src/lib/storage/upload-media.ts:130
↓ 3 callers
Function
deltaLabel
(delta: number, suffix: string)
src/app/(dashboard)/dashboard/page.tsx:221
↓ 3 callers
Function
engineSendText
( args: SendTextEngineArgs, )
src/lib/flows/meta-send.ts:60
↓ 3 callers
Function
errorResponse
(status: number, body: unknown)
src/lib/whatsapp/template-lifecycle.test.ts:19
↓ 3 callers
Function
fakeDb
Minimal fake matching the query chain in buildConversationContext: * from().select().eq().eq().order().limit() → { data, error }.
src/lib/ai/context.test.ts:7
↓ 3 callers
Function
fetchTemplates
(userId: string)
src/components/settings/template-manager.tsx:188
↓ 3 callers
Function
flush
()
src/lib/ai/chunk.ts:29
↓ 3 callers
Function
fmtDate
(iso: string)
src/components/settings/api-keys-settings.tsx:56
↓ 3 callers
Function
generateWebhookSecret
()
src/lib/webhooks/endpoints.ts:32
↓ 3 callers
Function
getColorClassName
( color: AvailableChartColorsKeys, type: ColorUtility, )
src/components/tremor/chart-colors.ts:94
↓ 3 callers
Function
handleOpenChange
(next: boolean)
src/components/inbox/template-picker.tsx:139
↓ 3 callers
Function
imgResponse
(type = 'image/jpeg', size = 1024, ok = true, status = 200)
src/lib/whatsapp/template-header-handle.test.ts:24
↓ 3 callers
Function
isExactMatch
(existing: ExistingContact, phone: string)
src/lib/contacts/dedupe.ts:63
↓ 3 callers
Function
isMode
(value: unknown)
src/lib/themes.ts:50
↓ 3 callers
Function
isThemeId
(value: unknown)
src/lib/themes.ts:102
↓ 3 callers
Function
loadEmbeddingsKey
( db: SupabaseClient, accountId: string, )
src/lib/ai/config.ts:94
↓ 3 callers
Function
markPending
(id: string, status: 'done' | 'failed')
src/lib/automations/engine.ts:698
↓ 3 callers
Function
okEmbeddings
(count: number, shuffle = false)
src/lib/ai/embeddings.test.ts:5
↓ 3 callers
Function
parseContactCsv
(text: string)
src/lib/contacts/parse-contact-csv.ts:42
↓ 3 callers
Function
postContactTemplate
(overrides: Record<string, unknown> = {})
src/app/api/whatsapp/send/route.test.ts:157
↓ 3 callers
Function
providerHttpError
( provider: string, res: Response, )
src/lib/ai/providers/shared.ts:32
↓ 3 callers
Function
push
(v: string)
src/lib/whatsapp/phone-utils.ts:67
↓ 3 callers
Function
recordFailure
(db: SupabaseClient, row: EndpointRow)
src/lib/webhooks/deliver.ts:145
↓ 3 callers
Function
requireOwnership
* GET /api/flows/[id] — fetch one flow with its nodes. * PUT /api/flows/[id] — replace name/trigger/entry/fallback + the *
src/app/api/flows/[id]/route.ts:20
↓ 3 callers
Function
requireUser
()
src/app/api/automations/[id]/route.ts:14
↓ 3 callers
Function
reset
()
src/components/settings/api-keys-settings.tsx:295
↓ 3 callers
Function
resolveAccountId
* Resolve the caller's account_id from their profile. Inlined here * (rather than going through `@/lib/auth/account.getCurrentAccount`) * because th
src/app/api/whatsapp/config/route.ts:21
↓ 3 callers
Function
sendTextMessage
( args: SendTextMessageArgs )
src/lib/whatsapp/meta-api.ts:232
↓ 3 callers
Function
serializeConversation
(conv: Conversation)
src/lib/api/v1/conversations.ts:53
↓ 3 callers
Function
serializeMessage
(m: Message)
src/lib/api/v1/conversations.ts:83
↓ 3 callers
Function
stopPolling
()
src/app/(dashboard)/broadcasts/page.tsx:100
↓ 3 callers
Function
stubDb
(rows: Array<{ id: string; phone: string }>)
src/lib/contacts/dedupe.test.ts:72
↓ 3 callers
Function
subscribeWabaToApp
( args: SubscribeWabaToAppArgs )
src/lib/whatsapp/meta-api.ts:167
↓ 3 callers
Function
summarize
(statuses: PresenceStatus[])
src/lib/presence.ts:113
↓ 3 callers
Function
swap
(arr: T[], i: number)
src/components/automations/automation-builder.tsx:1528
↓ 3 callers
Function
timingSafeHexEqual
(a: string, b: string)
src/lib/api-keys/keys.ts:88
↓ 3 callers
Function
toNetworkError
(err: unknown)
src/lib/ai/providers/shared.ts:16
↓ 3 callers
Function
toValue
(name: string, lang: string)
src/components/automations/automation-builder.tsx:550
↓ 3 callers
Function
toVectorLiteral
(embedding: number[])
src/lib/ai/embeddings.ts:32
↓ 3 callers
Function
toggleTag
(tagId: string)
src/components/contacts/contact-form.tsx:114
↓ 3 callers
Function
updateButton
( idx: number, patch: Partial<NonNullable<SendButtonsCfg["buttons"]>[number]>, )
src/components/flows/forms/node-config-form.tsx:235
↓ 3 callers
Function
updateCustomField
(patch: Partial<CustomFieldFilter>)
src/components/broadcasts/step2-select-audience.tsx:230
↓ 3 callers
Function
updateRow
( sIdx: number, rIdx: number, patch: Partial< NonNullable<SendListCfg["sections"]>[number]["
src/components/flows/forms/node-config-form.tsx:403
↓ 3 callers
Function
validateSendMessageParams
(params: { messageType: string; contentText?: string | null; mediaUrl?: string | null; templateName?:
src/lib/whatsapp/send-message.ts:101
↓ 3 callers
Function
verifyPhoneNumber
( args: VerifyPhoneNumberArgs )
src/lib/whatsapp/meta-api.ts:54
↓ 3 callers
Function
withRefreshedCookies
(response: T)
src/middleware.ts:38
↓ 2 callers
Function
POST
(request: Request)
src/app/api/whatsapp/send/route.ts:23
↓ 2 callers
Function
UTF8ArrayToString
(heap,idx,maxBytesToRead)
public/opus/encoderWorker.min.js:1
↓ 2 callers
Function
advanceFromNodeKey
( db: AdminClient, run: FlowRunRow, startNodeKey: string, nodes: Map<string, FlowNodeRow>, )
src/lib/flows/engine.ts:547
↓ 2 callers
Function
aiConfig
(overrides: Partial<AiConfig> = {})
src/lib/ai/auto-reply.test.ts:69
↓ 2 callers
Function
aiRequestTimeoutMs
()
src/lib/ai/defaults.ts:33
↓ 2 callers
Function
applyNodePositions
( nodes: BuilderNode[], positions: Record<string, { x: number; y: number }>, )
src/components/flows/flow-editor-state.tsx:192
↓ 2 callers
Function
assert
(condition,text)
public/opus/encoderWorker.min.js:1
↓ 2 callers
Function
buildReplyPreview
(message: Message)
src/components/inbox/reply-quote.tsx:77
↓ 2 callers
Function
buildUpsertRow
* Shared upsert payload builder — both the Meta-failure path and the * Meta-success path write nearly identical rows; dropping the shared * fields h
src/app/api/whatsapp/templates/submit/route.ts:19
↓ 2 callers
Function
cbcEncryptLegacy
(plaintext: string)
src/lib/whatsapp/encryption.test.ts:7
↓ 2 callers
Function
choose
(next: View)
src/components/flows/flow-editor-shell.tsx:84
↓ 2 callers
Function
cid
()
src/components/automations/automation-builder.tsx:132
↓ 2 callers
Function
collectVariableSlots
* Templates may need values for: body variables, a text-header * variable, and per-URL-button suffixes. Collect them all so the * send-message path
src/components/inbox/template-picker.tsx:57
↓ 2 callers
Function
deepEqual
(obj1: T, obj2: T)
src/components/tremor/bar-chart.tsx:52
↓ 2 callers
Function
doRun
()
public/opus/encoderWorker.min.js:1
↓ 2 callers
Function
emptyButton
(type: TemplateButton['type'])
src/components/settings/template-manager.tsx:113
↓ 2 callers
Function
engineSendText
(args: SendTextArgs)
src/lib/automations/meta-send.ts:46
↓ 2 callers
Function
executeStepsFrom
(args: ExecuteArgs)
src/lib/automations/engine.ts:226
↓ 2 callers
Function
fetchBroadcasts
()
src/app/(dashboard)/broadcasts/page.tsx:69
↓ 2 callers
Function
fetchTags
()
src/components/contacts/contact-form.tsx:104
↓ 2 callers
Function
finalizeLog
( logId: string | null, status: 'success' | 'partial' | 'failed', errorMessage: string | null, )
src/lib/automations/engine.ts:686
↓ 2 callers
Function
findActiveKeyByHash
( hash: string )
src/lib/api-keys/store.ts:34
↓ 2 callers
Function
fmt
(mins: number | null)
src/components/dashboard/response-time-chart.tsx:111
↓ 2 callers
Function
fmtDate
(iso: string)
src/components/settings/members-tab.tsx:108
↓ 2 callers
Function
formatDuration
(seconds: number)
src/components/inbox/message-composer.tsx:104
↓ 2 callers
Function
formatRelative
(iso: string | null | undefined)
src/lib/automations/trigger-meta.ts:49
↓ 2 callers
Function
getMediaUrl
( args: GetMediaUrlArgs )
src/lib/whatsapp/meta-api.ts:998
↓ 2 callers
Function
initials
(name?: string, fallback?: string)
src/components/pipelines/deal-card.tsx:22
↓ 2 callers
Function
insertResult
()
src/app/api/whatsapp/send/route.test.ts:62
↓ 2 callers
Function
insertSteps
( automationId: string, input: BuilderStepInput[], )
src/lib/automations/steps-tree.ts:49
↓ 2 callers
Function
isDataURI
(filename)
public/opus/encoderWorker.min.js:1
↓ 2 callers
Function
isDuplicate
Case-insensitive name clash within the loaded list.
src/components/contacts/custom-fields-manager.tsx:89
↓ 2 callers
Function
isHostAllowed
( hostname: string, allowList: readonly string[] | null, )
src/app/api/account/invitations/route.ts:86
↓ 2 callers
Function
keyDownHandler
(key: string)
src/components/tremor/bar-chart.tsx:283
↓ 2 callers
Function
keyPayload
()
src/components/settings/ai-config.tsx:122
↓ 2 callers
Function
ladderLevel
(s: string)
src/app/api/whatsapp/webhook/route.ts:327
↓ 2 callers
Function
loadAllNodes
* Load every node of a flow in one round trip and key them by * `node_key`. The advance loop is then in-memory — a 5-node * auto-advancing chain cos
src/lib/flows/engine.ts:228
↓ 2 callers
Function
loadConversationsSeries
( db: DB, rangeDays: number, )
src/lib/dashboard/queries.ts:104
← previous
next →
201–300 of 1,053, ranked by callers