MCPcopy Create free account

hub / github.com/ArnasDon/wacrm / functions

Functions1,053 in github.com/ArnasDon/wacrm

↓ 2 callersFunctionloadStepsTree
(automationId: string)
src/lib/automations/steps-tree.ts:128
↓ 2 callersFunctionlookupInternalIdByMetaId
* Resolve a Meta-side message_id into the matching internal UUID, scoped * to one conversation. Returns null when we never received the parent * (e.
src/app/api/whatsapp/webhook/route.ts:484
↓ 2 callersFunctionmakeSupabaseMock
()
src/app/api/whatsapp/send/route.test.ts:31
↓ 2 callersFunctionmergeConsecutive
(messages: ChatMessage[])
src/lib/ai/providers/shared.ts:74
↓ 2 callersFunctionnoDb
()
src/lib/whatsapp/send-message.test.ts:12
↓ 2 callersFunctionopenDetail
(contactId: string)
src/app/(dashboard)/contacts/page.tsx:240
↓ 2 callersFunctionopenEdit
(template: MessageTemplate)
src/components/settings/template-manager.tsx:234
↓ 2 callersFunctionparse
(s: string)
src/lib/automations/engine.ts:633
↓ 2 callersFunctionremoveFromBranches
( branches: BuilderStep["branches"], path: StepPath, )
src/components/automations/automation-builder.tsx:1500
↓ 2 callersFunctionrequireUser
* GET /api/flows — list the caller's flows. * POST /api/flows — create a new (draft) flow. * * Available to every authenticated user. The previous
src/app/api/flows/route.ts:16
↓ 2 callersFunctionresolveConversationId
* Pick the conversation a send-type step should use. Prefer the id the * webhook handed us (it's the one that just got the inbound message); * fall
src/lib/automations/engine.ts:566
↓ 2 callersFunctionresolveImportTagIds
( supabase: SupabaseClient, params: { accountId: string; userId: string; tagNames: string[];
src/lib/contacts/resolve-import-tags.ts:21
↓ 2 callersFunctionrpcErrorToResponse
(err: PostgrestError)
src/app/api/account/members/[userId]/route.ts:31
↓ 2 callersFunctionrun
(args)
public/opus/encoderWorker.min.js:1
↓ 2 callersFunctionsave
()
src/components/settings/ai-knowledge.tsx:93
↓ 2 callersFunctionselectResult
()
src/app/api/whatsapp/send/route.test.ts:35
↓ 2 callersFunctionsendButtonsAndSuspend
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:355
↓ 2 callersFunctionsendInteractiveViaMeta
( input: SendInput, )
src/lib/flows/meta-send.ts:318
↓ 2 callersFunctionsendListAndSuspend
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:391
↓ 2 callersFunctionsendViaMeta
(input: SendInput)
src/lib/automations/meta-send.ts:60
↓ 2 callersFunctionsetContactTags
( db: SupabaseClient, accountId: string, auditUserId: string, contactId: string, tagNames: string[]
src/lib/api/v1/contacts.ts:159
↓ 2 callersFunctionstartPolling
()
src/app/(dashboard)/broadcasts/page.tsx:96
↓ 2 callersFunctionsummarizeNode
(node: BuilderNode)
src/components/flows/shared.tsx:308
↓ 2 callersFunctionthisMonth
(d: Deal)
src/components/pipelines/pipeline-analytics.tsx:73
↓ 2 callersFunctiontoggleTagFilter
(tagId: string)
src/app/(dashboard)/contacts/page.tsx:326
↓ 2 callersFunctiontouchLastUsed
(id: string)
src/lib/api-keys/store.ts:81
↓ 2 callersFunctionunauthorized
(message = 'Missing or invalid API key')
src/lib/api/v1/respond.ts:54
↓ 2 callersFunctionupdateStep
()
src/lib/automations/engine.test.ts:238
↓ 2 callersFunctionupsertTemplateRow
( supabase: SupabaseClient, row: ReturnType<typeof buildUpsertRow>, )
src/app/api/whatsapp/templates/submit/route.ts:59
↓ 2 callersFunctionusePresence
(enabled = true)
src/hooks/use-presence.ts:45
↓ 2 callersFunctionuseUserTags
* Shared loader for both `condition` (subject=tag) and `set_tag`. * Falls back to raw UUID input if the endpoint is absent on older * deployments —
src/components/flows/forms/node-config-form.tsx:830
↓ 2 callersFunctionvalidateAiCredentials
(config: AiConfig)
src/lib/ai/validate.ts:12
↓ 2 callersFunctionvalidateInteractiveBody
(bodyText: string)
src/lib/whatsapp/meta-api.ts:960
↓ 2 callersFunctionvalidateInteractiveHeaderFooter
( headerText: string | undefined, footerText: string | undefined, )
src/lib/whatsapp/meta-api.ts:969
↓ 2 callersFunctionwalkBranches
( branches: BuilderStep["branches"], path: StepPath, updater: (s: BuilderStep) => BuilderStep, )
src/components/automations/automation-builder.tsx:1456
↓ 1 callersFunctionChartLegend
( { payload }: any, categoryColors: Map<string, AvailableChartColorsKeys>, setLegendHeight: React.Dispat
src/components/tremor/bar-chart.tsx:389
↓ 1 callersFunctionUTF8ToString
(ptr,maxBytesToRead)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionabortOnCannotGrowMemory
(requestedSize)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionaddOnInit
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionaddOnPostRun
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionaddOnPreRun
(cb)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionaddRow
(sIdx: number)
src/components/flows/forms/node-config-form.tsx:421
↓ 1 callersFunctionaddRunDependency
(id)
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctionaiContextMessageLimit
()
src/lib/ai/defaults.ts:40
↓ 1 callersFunctionapplyRow
(row: { user_id: string; status: StoredPresence; last_seen_at: string; })
src/hooks/use-presence.ts:64
↓ 1 callersFunctionarcPath
(cx: number, cy: number, r: number, startRad: number, endRad: number)
src/components/dashboard/pipeline-donut.tsx:134
↓ 1 callersFunctionassertContiguous
* Meta requires contiguous, 1-indexed variables. `{{1}} {{3}}` is * invalid — it must be `{{1}} {{2}}`.
src/lib/whatsapp/template-validators.ts:78
↓ 1 callersFunctionassignImportedContactTags
( supabase: SupabaseClient, assignments: ContactTagAssignment[], tagIdByKey: Map<string, string> )
src/lib/contacts/resolve-import-tags.ts:107
↓ 1 callersFunctionattempt
(phone: string)
src/lib/whatsapp/send-message.ts:304
↓ 1 callersFunctionattempt
(phone: string)
src/lib/automations/meta-send.ts:97
↓ 1 callersFunctionblankConfig
(type: AutomationStepType)
src/components/automations/automation-builder.tsx:141
↓ 1 callersFunctionbuildBody
()
src/components/settings/ai-config.tsx:128
↓ 1 callersFunctionbuildBodyComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:69
↓ 1 callersFunctionbuildBodyComponent
( template: MessageTemplate, params: SendTimeParams, )
src/lib/whatsapp/template-send-builder.ts:126
↓ 1 callersFunctionbuildButtonComponent
( button: TemplateButton, index: number, override: string | undefined, )
src/lib/whatsapp/template-send-builder.ts:165
↓ 1 callersFunctionbuildButtonsComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:109
↓ 1 callersFunctionbuildFooterComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:84
↓ 1 callersFunctionbuildHeaderComponent
(payload: TemplatePayload)
src/lib/whatsapp/template-components.ts:37
↓ 1 callersFunctionbuildHeaderComponent
( template: MessageTemplate, params: SendTimeParams, )
src/lib/whatsapp/template-send-builder.ts:72
↓ 1 callersFunctionbuildSubmitPayload
()
src/components/settings/template-manager.tsx:206
↓ 1 callersFunctionbuilder
(table: string)
src/lib/automations/engine.test.ts:56
↓ 1 callersFunctionbuilder
(table: string)
src/app/api/whatsapp/send/route.test.ts:32
↓ 1 callersFunctionbuttonNeedsSendParam
( button: TemplateButton, override: string | undefined, )
src/lib/whatsapp/template-send-builder.ts:147
↓ 1 callersFunctioncalculateHeight
(height: number | undefined)
src/components/tremor/bar-chart.tsx:402
↓ 1 callersFunctioncalculateReach
()
src/components/broadcasts/step4-schedule-send.tsx:53
↓ 1 callersFunctioncancelEdit
()
src/components/settings/ai-knowledge.tsx:87
↓ 1 callersFunctioncap
(s: string)
src/components/settings/settings-overview.tsx:148
↓ 1 callersFunctionchangeButtonType
(index: number, type: TemplateButton['type'])
src/components/settings/template-manager.tsx:425
↓ 1 callersFunctioncheckConnection
()
src/app/(dashboard)/inbox/page.tsx:164
↓ 1 callersFunctioncommit
()
src/components/automations/automation-builder.tsx:862
↓ 1 callersFunctioncommit
()
src/components/flows/flow-builder.tsx:229
↓ 1 callersFunctioncomputeStageProbability
* Weighted pipeline value: value × per-stage probability. * First stage ≈ 10%, stages interpolate up to 90% before the final stage, * final stage (W
src/components/pipelines/pipeline-analytics.tsx:33
↓ 1 callersFunctionconfirm
()
src/components/inbox/template-picker.tsx:161
↓ 1 callersFunctionconfirmDelete
(tag: Tag)
src/components/settings/tag-manager.tsx:122
↓ 1 callersFunctionconfirmDelete
(contact: Contact)
src/app/(dashboard)/contacts/page.tsx:245
↓ 1 callersFunctionconstructCategoryColors
( categories: string[], colors: AvailableChartColorsKeys[], )
src/components/tremor/chart-colors.ts:83
↓ 1 callersFunctioncountButtonsByType
( buttons: TemplateButton[], )
src/lib/whatsapp/template-validators.ts:169
↓ 1 callersFunctioncreateAndSendBroadcast
(payload: BroadcastPayload)
src/hooks/use-broadcast-sending.ts:323
↓ 1 callersFunctioncreateWasm
()
public/opus/encoderWorker.min.js:1
↓ 1 callersFunctioncurrentStatus
()
src/components/presence/presence-heartbeat.tsx:45
↓ 1 callersFunctiondeleteNote
(noteId: string)
src/components/contacts/contact-detail-view.tsx:284
↓ 1 callersFunctiondeliverBroadcast
( db: SupabaseClient, plan: BroadcastPlan )
src/lib/whatsapp/broadcast-core.ts:262
↓ 1 callersFunctiondeliverOne
( db: SupabaseClient, row: EndpointRow, event: WebhookEvent, payload: string, tsSeconds: number )
src/lib/webhooks/deliver.ts:86
↓ 1 callersFunctiondescribeTrigger
(flow: FlowRow)
src/app/(dashboard)/flows/page.tsx:425
↓ 1 callersFunctiondispatchInboundToFlows
( input: DispatchInboundInput & { isFirstInboundMessage: boolean }, )
src/lib/flows/engine.ts:829
↓ 1 callersFunctiondownloadBlob
(filename: string, content: string)
src/app/(dashboard)/broadcasts/[id]/page.tsx:132
↓ 1 callersFunctiondownloadMedia
( args: DownloadMediaArgs )
src/lib/whatsapp/meta-api.ts:1022
↓ 1 callersFunctionduplicate
(a: Automation)
src/app/(dashboard)/automations/page.tsx:108
↓ 1 callersFunctionembeddingsKeyPayload
()
src/components/settings/ai-config.tsx:125
↓ 1 callersFunctionengineSendInteractiveButtons
( args: SendInteractiveButtonsEngineArgs, )
src/lib/flows/meta-send.ts:298
↓ 1 callersFunctionengineSendInteractiveList
( args: SendInteractiveListEngineArgs, )
src/lib/flows/meta-send.ts:308
↓ 1 callersFunctionengineSendMedia
( args: SendMediaEngineArgs, )
src/lib/flows/meta-send.ts:169
↓ 1 callersFunctionengineSendTemplate
( args: SendTemplateArgs, )
src/lib/automations/meta-send.ts:50
↓ 1 callersFunctionerrResponse
(status: number, json: unknown)
src/lib/ai/generate.test.ts:27
↓ 1 callersFunctionevaluateCondition
(cfg: ConditionStepConfig, args: ExecuteArgs)
src/lib/automations/engine.ts:594
↓ 1 callersFunctionevaluateConditionNode
* Resolve a condition node's subject value from DB / run state, then * call the pure `evaluateConditionPredicate`. Splits out so the * predicate its
src/lib/flows/engine.ts:469
↓ 1 callersFunctionexecuteAutomation
(automation: Automation, input: DispatchInput)
src/lib/automations/engine.ts:166
↓ 1 callersFunctionexecuteHandoff
( db: AdminClient, run: FlowRunRow, node: FlowNodeRow, )
src/lib/flows/engine.ts:433
↓ 1 callersFunctionexpandFromSeeds
Template seeds are flat with parent_index references. Expand into the * builder's nested tree, preserving order within each scope.
src/app/(dashboard)/automations/new/page.tsx:71
↓ 1 callersFunctionextractKey
* Extract the bearer token from the `Authorization` header. * Tolerates the `Bearer ` prefix being absent (some clients send the * bare key) but req
src/lib/auth/api-context.ts:59
← previousnext →301–400 of 1,053, ranked by callers