MCPcopy Create free account
hub / github.com/dailydotdev/apps / sendInterestCommand

Function sendInterestCommand

packages/shared/src/graphql/interests.ts:403–420  ·  view source on GitHub ↗
({
  id,
  text,
  runId,
  reply,
  questionId,
}: {
  id: string;
  text: string;
  runId?: string;
  reply?: boolean;
  questionId?: string;
})

Source from the content-addressed store, hash-verified

401};
402
403export const sendInterestCommand = async ({
404 id,
405 text,
406 runId,
407 reply,
408 questionId,
409}: {
410 id: string;
411 text: string;
412 runId?: string;
413 reply?: boolean;
414 questionId?: string;
415}): Promise<Pick<UserInterest, 'id'>> => {
416 const res = await gqlClient.request<{
417 sendInterestCommand: Pick<UserInterest, 'id'>;
418 }>(SEND_INTEREST_COMMAND_MUTATION, { id, text, runId, reply, questionId });
419 return res.sendInterestCommand;
420};
421
422export type InterestHistoryArgs = {
423 id: string;

Callers 1

useSendInterestCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected