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

Function getGenerateBriefingMutationOptions

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

Source from the content-addressed store, hash-verified

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

Callers 2

BriefCardDefaultFunction · 0.90
useGenerateBriefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected