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

Function getGenerateBriefingMutationOptions

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

Source from the content-addressed store, hash-verified

1556`;
1557
1558export const getGenerateBriefingMutationOptions = () => {
1559 return {
1560 mutationFn: async ({
1561 type = BriefingType.Daily,
1562 }: {
1563 type: BriefingType;
1564 }) => {
1565 const result = await gqlClient.request<{
1566 generateBriefing: Pick<Post, 'id'> & Pick<LoggedUser, 'balance'>;
1567 }>(GENERATE_BRIEFING, { type });
1568 return result.generateBriefing;
1569 },
1570 };
1571};
1572
1573export const defautRefetchMs = 4000;
1574export const briefRefetchIntervalMs = defautRefetchMs;

Callers 2

BriefCardDefaultFunction · 0.90
useGenerateBriefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected