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

Function getGenerateBriefingMutationOptions

packages/shared/src/graphql/posts.ts:1403–1416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1401`;
1402
1403export const getGenerateBriefingMutationOptions = () => {
1404 return {
1405 mutationFn: async ({
1406 type = BriefingType.Daily,
1407 }: {
1408 type: BriefingType;
1409 }) => {
1410 const result = await gqlClient.request<{
1411 generateBriefing: Pick<Post, 'id'> & Pick<LoggedUser, 'balance'>;
1412 }>(GENERATE_BRIEFING, { type });
1413 return result.generateBriefing;
1414 },
1415 };
1416};
1417
1418export const defautRefetchMs = 4000;
1419export const briefRefetchIntervalMs = defautRefetchMs;

Callers 2

BriefCardDefaultFunction · 0.90
useGenerateBriefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected