fix: fix credential3rd graphql

This commit is contained in:
master 2025-05-25 00:04:02 +08:00
parent 66413f92e3
commit 313b1bf1ba
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,4 @@
import type { GetSubscriptionsQuery } from '@/infra/graphql/gql/graphql';
import { gql } from '@apollo/client';
export const GET_SUBSCRIPTIONS = gql`
@ -24,6 +25,9 @@ export const GET_SUBSCRIPTIONS = gql`
}
`;
export type SubscriptionDto =
GetSubscriptionsQuery['subscriptions']['nodes'][number];
export const UPDATE_SUBSCRIPTIONS = gql`
mutation UpdateSubscriptions(
$data: SubscriptionsUpdateInput!,

View File

@ -11,6 +11,12 @@ import {
TableHeader,
TableRow,
} from '@/components/ui/table';
import {
DELETE_SUBSCRIPTIONS,
GET_SUBSCRIPTIONS,
type SubscriptionDto,
UPDATE_SUBSCRIPTIONS,
} from '@/domains/recorder/graphql/subscriptions';
import type {
GetSubscriptionsQuery,
SubscriptionsUpdateInput,
@ -35,12 +41,6 @@ import {
import { useMemo, useState } from 'react';
import { toast } from 'sonner';
import { DataTableRowActions } from '../../../../components/ui/data-table-row-actions';
import {
DELETE_SUBSCRIPTIONS,
GET_SUBSCRIPTIONS,
type SubscriptionDto,
UPDATE_SUBSCRIPTIONS,
} from '../../../../domains/recorder/graphql/subscriptions.js';
export const Route = createFileRoute('/_app/subscriptions/manage')({
component: SubscriptionManageRouteComponent,