MCPcopy Create free account

hub / github.com/ArnasDon/wacrm / functions

Functions1,053 in github.com/ArnasDon/wacrm

↓ 4 callersFunctionupdateVariable
(key: string, patch: Partial<VariableMapping>)
src/components/broadcasts/step3-personalize.tsx:181
↓ 4 callersFunctionuploadAccountMedia
( bucket: string, file: File, )
src/lib/storage/upload-media.ts:79
↓ 4 callersFunctionuploadResumableMedia
( args: UploadResumableMediaArgs, )
src/lib/whatsapp/meta-api.ts:477
↓ 4 callersFunctionvalidateFooter
(footerText: string | undefined)
src/lib/whatsapp/template-validators.ts:102
↓ 4 callersFunctionvalidateSampleValues
( payload: TemplatePayload, bodyVarCount: number, headerVarCount: number, )
src/lib/whatsapp/template-validators.ts:285
↓ 4 callersFunctionxFor
(i: number)
src/components/dashboard/conversations-chart.tsx:127
↓ 3 callersFunctionadvanceCurrentNodeKey
* 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 callersFunctionappendResults
( logId: string | null, newItems: AutomationLogStepResult[], status: 'success' | 'partial' | 'failed' |
src/lib/automations/engine.ts:660
↓ 3 callersFunctionattempt
(phone: string)
src/lib/flows/meta-send.ts:91
↓ 3 callersFunctionavg
(arr: number[])
src/lib/dashboard/queries.ts:243
↓ 3 callersFunctionbeat
()
src/components/presence/presence-heartbeat.tsx:51
↓ 3 callersFunctionbuildSystemPrompt
(args: { userPrompt: string | null mode: 'draft' | 'auto_reply' /** Knowledge-base excerpts retrieved fo
src/lib/ai/defaults.ts:52
↓ 3 callersFunctioncallRuntimeCallbacks
(callbacks)
public/opus/encoderWorker.min.js:1
↓ 3 callersFunctioncustomStep
(field: string, value: string)
src/lib/automations/engine.test.ts:249
↓ 3 callersFunctiondbReturning
(row: Record<string, unknown> | null)
src/lib/ai/config.test.ts:11
↓ 3 callersFunctiondedupeByPhone
( rows: T[], )
src/lib/contacts/dedupe.ts:83
↓ 3 callersFunctiondeleteAccountMedia
( bucket: string, path: string, )
src/lib/storage/upload-media.ts:130
↓ 3 callersFunctiondeltaLabel
(delta: number, suffix: string)
src/app/(dashboard)/dashboard/page.tsx:221
↓ 3 callersFunctionengineSendText
( args: SendTextEngineArgs, )
src/lib/flows/meta-send.ts:60
↓ 3 callersFunctionerrorResponse
(status: number, body: unknown)
src/lib/whatsapp/template-lifecycle.test.ts:19
↓ 3 callersFunctionfakeDb
Minimal fake matching the query chain in buildConversationContext: * from().select().eq().eq().order().limit() → { data, error }.
src/lib/ai/context.test.ts:7
↓ 3 callersFunctionfetchTemplates
(userId: string)
src/components/settings/template-manager.tsx:188
↓ 3 callersFunctionflush
()
src/lib/ai/chunk.ts:29
↓ 3 callersFunctionfmtDate
(iso: string)
src/components/settings/api-keys-settings.tsx:56
↓ 3 callersFunctiongenerateWebhookSecret
()
src/lib/webhooks/endpoints.ts:32
↓ 3 callersFunctiongetColorClassName
( color: AvailableChartColorsKeys, type: ColorUtility, )
src/components/tremor/chart-colors.ts:94
↓ 3 callersFunctionhandleOpenChange
(next: boolean)
src/components/inbox/template-picker.tsx:139
↓ 3 callersFunctionimgResponse
(type = 'image/jpeg', size = 1024, ok = true, status = 200)
src/lib/whatsapp/template-header-handle.test.ts:24
↓ 3 callersFunctionisExactMatch
(existing: ExistingContact, phone: string)
src/lib/contacts/dedupe.ts:63
↓ 3 callersFunctionisMode
(value: unknown)
src/lib/themes.ts:50
↓ 3 callersFunctionisThemeId
(value: unknown)
src/lib/themes.ts:102
↓ 3 callersFunctionloadEmbeddingsKey
( db: SupabaseClient, accountId: string, )
src/lib/ai/config.ts:94
↓ 3 callersFunctionmarkPending
(id: string, status: 'done' | 'failed')
src/lib/automations/engine.ts:698
↓ 3 callersFunctionokEmbeddings
(count: number, shuffle = false)
src/lib/ai/embeddings.test.ts:5
↓ 3 callersFunctionparseContactCsv
(text: string)
src/lib/contacts/parse-contact-csv.ts:42
↓ 3 callersFunctionpostContactTemplate
(overrides: Record<string, unknown> = {})
src/app/api/whatsapp/send/route.test.ts:157
↓ 3 callersFunctionproviderHttpError
( provider: string, res: Response, )
src/lib/ai/providers/shared.ts:32
↓ 3 callersFunctionpush
(v: string)
src/lib/whatsapp/phone-utils.ts:67
↓ 3 callersFunctionrecordFailure
(db: SupabaseClient, row: EndpointRow)
src/lib/webhooks/deliver.ts:145
↓ 3 callersFunctionrequireOwnership
* 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 callersFunctionrequireUser
()
src/app/api/automations/[id]/route.ts:14
↓ 3 callersFunctionreset
()
src/components/settings/api-keys-settings.tsx:295
↓ 3 callersFunctionresolveAccountId
* 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 callersFunctionsendTextMessage
( args: SendTextMessageArgs )
src/lib/whatsapp/meta-api.ts:232
↓ 3 callersFunctionserializeConversation
(conv: Conversation)
src/lib/api/v1/conversations.ts:53
↓ 3 callersFunctionserializeMessage
(m: Message)
src/lib/api/v1/conversations.ts:83
↓ 3 callersFunctionstopPolling
()
src/app/(dashboard)/broadcasts/page.tsx:100
↓ 3 callersFunctionstubDb
(rows: Array<{ id: string; phone: string }>)
src/lib/contacts/dedupe.test.ts:72
↓ 3 callersFunctionsubscribeWabaToApp
( args: SubscribeWabaToAppArgs )
src/lib/whatsapp/meta-api.ts:167
↓ 3 callersFunctionsummarize
(statuses: PresenceStatus[])
src/lib/presence.ts:113
↓ 3 callersFunctionswap
(arr: T[], i: number)
src/components/automations/automation-builder.tsx:1528
↓ 3 callersFunctiontimingSafeHexEqual
(a: string, b: string)
src/lib/api-keys/keys.ts:88
↓ 3 callersFunctiontoNetworkError
(err: unknown)
src/lib/ai/providers/shared.ts:16
↓ 3 callersFunctiontoValue
(name: string, lang: string)
src/components/automations/automation-builder.tsx:550
↓ 3 callersFunctiontoVectorLiteral
(embedding: number[])
src/lib/ai/embeddings.ts:32
↓ 3 callersFunctiontoggleTag
(tagId: string)
src/components/contacts/contact-form.tsx:114
↓ 3 callersFunctionupdateButton
( idx: number, patch: Partial<NonNullable<SendButtonsCfg["buttons"]>[number]>, )
src/components/flows/forms/node-config-form.tsx:235
↓ 3 callersFunctionupdateCustomField
(patch: Partial<CustomFieldFilter>)
src/components/broadcasts/step2-select-audience.tsx:230
↓ 3 callersFunctionupdateRow
( sIdx: number, rIdx: number, patch: Partial< NonNullable<SendListCfg["sections"]>[number]["
src/components/flows/forms/node-config-form.tsx:403
↓ 3 callersFunctionvalidateSendMessageParams
(params: { messageType: string; contentText?: string | null; mediaUrl?: string | null; templateName?:
src/lib/whatsapp/send-message.ts:101
↓ 3 callersFunctionverifyPhoneNumber
( args: VerifyPhoneNumberArgs )
src/lib/whatsapp/meta-api.ts:54
↓ 3 callersFunctionwithRefreshedCookies
(response: T)
src/middleware.ts:38
↓ 2 callersFunctionPOST
(request: Request)
src/app/api/whatsapp/send/route.ts:23
↓ 2 callersFunctionUTF8ArrayToString
(heap,idx,maxBytesToRead)
public/opus/encoderWorker.min.js:1
↓ 2 callersFunctionadvanceFromNodeKey
( db: AdminClient, run: FlowRunRow, startNodeKey: string, nodes: Map<string, FlowNodeRow>, )
src/lib/flows/engine.ts:547
↓ 2 callersFunctionaiConfig
(overrides: Partial<AiConfig> = {})
src/lib/ai/auto-reply.test.ts:69
↓ 2 callersFunctionaiRequestTimeoutMs
()
src/lib/ai/defaults.ts:33
↓ 2 callersFunctionapplyNodePositions
( nodes: BuilderNode[], positions: Record<string, { x: number; y: number }>, )
src/components/flows/flow-editor-state.tsx:192
↓ 2 callersFunctionassert
(condition,text)
public/opus/encoderWorker.min.js:1
↓ 2 callersFunctionbuildReplyPreview
(message: Message)
src/components/inbox/reply-quote.tsx:77
↓ 2 callersFunctionbuildUpsertRow
* 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 callersFunctioncbcEncryptLegacy
(plaintext: string)
src/lib/whatsapp/encryption.test.ts:7
↓ 2 callersFunctionchoose
(next: View)
src/components/flows/flow-editor-shell.tsx:84
↓ 2 callersFunctioncid
()
src/components/automations/automation-builder.tsx:132
↓ 2 callersFunctioncollectVariableSlots
* 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 callersFunctiondeepEqual
(obj1: T, obj2: T)
src/components/tremor/bar-chart.tsx:52
↓ 2 callersFunctiondoRun
()
public/opus/encoderWorker.min.js:1
↓ 2 callersFunctionemptyButton
(type: TemplateButton['type'])
src/components/settings/template-manager.tsx:113
↓ 2 callersFunctionengineSendText
(args: SendTextArgs)
src/lib/automations/meta-send.ts:46
↓ 2 callersFunctionexecuteStepsFrom
(args: ExecuteArgs)
src/lib/automations/engine.ts:226
↓ 2 callersFunctionfetchBroadcasts
()
src/app/(dashboard)/broadcasts/page.tsx:69
↓ 2 callersFunctionfetchTags
()
src/components/contacts/contact-form.tsx:104
↓ 2 callersFunctionfinalizeLog
( logId: string | null, status: 'success' | 'partial' | 'failed', errorMessage: string | null, )
src/lib/automations/engine.ts:686
↓ 2 callersFunctionfindActiveKeyByHash
( hash: string )
src/lib/api-keys/store.ts:34
↓ 2 callersFunctionfmt
(mins: number | null)
src/components/dashboard/response-time-chart.tsx:111
↓ 2 callersFunctionfmtDate
(iso: string)
src/components/settings/members-tab.tsx:108
↓ 2 callersFunctionformatDuration
(seconds: number)
src/components/inbox/message-composer.tsx:104
↓ 2 callersFunctionformatRelative
(iso: string | null | undefined)
src/lib/automations/trigger-meta.ts:49
↓ 2 callersFunctiongetMediaUrl
( args: GetMediaUrlArgs )
src/lib/whatsapp/meta-api.ts:998
↓ 2 callersFunctioninitials
(name?: string, fallback?: string)
src/components/pipelines/deal-card.tsx:22
↓ 2 callersFunctioninsertResult
()
src/app/api/whatsapp/send/route.test.ts:62
↓ 2 callersFunctioninsertSteps
( automationId: string, input: BuilderStepInput[], )
src/lib/automations/steps-tree.ts:49
↓ 2 callersFunctionisDataURI
(filename)
public/opus/encoderWorker.min.js:1
↓ 2 callersFunctionisDuplicate
Case-insensitive name clash within the loaded list.
src/components/contacts/custom-fields-manager.tsx:89
↓ 2 callersFunctionisHostAllowed
( hostname: string, allowList: readonly string[] | null, )
src/app/api/account/invitations/route.ts:86
↓ 2 callersFunctionkeyDownHandler
(key: string)
src/components/tremor/bar-chart.tsx:283
↓ 2 callersFunctionkeyPayload
()
src/components/settings/ai-config.tsx:122
↓ 2 callersFunctionladderLevel
(s: string)
src/app/api/whatsapp/webhook/route.ts:327
↓ 2 callersFunctionloadAllNodes
* 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 callersFunctionloadConversationsSeries
( db: DB, rangeDays: number, )
src/lib/dashboard/queries.ts:104
← previousnext →201–300 of 1,053, ranked by callers