fix: fix credential3rd graphql
This commit is contained in:
parent
66413f92e3
commit
313b1bf1ba
@ -1,3 +1,4 @@
|
|||||||
|
import type { GetSubscriptionsQuery } from '@/infra/graphql/gql/graphql';
|
||||||
import { gql } from '@apollo/client';
|
import { gql } from '@apollo/client';
|
||||||
|
|
||||||
export const GET_SUBSCRIPTIONS = gql`
|
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`
|
export const UPDATE_SUBSCRIPTIONS = gql`
|
||||||
mutation UpdateSubscriptions(
|
mutation UpdateSubscriptions(
|
||||||
$data: SubscriptionsUpdateInput!,
|
$data: SubscriptionsUpdateInput!,
|
||||||
|
@ -11,6 +11,12 @@ import {
|
|||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from '@/components/ui/table';
|
} from '@/components/ui/table';
|
||||||
|
import {
|
||||||
|
DELETE_SUBSCRIPTIONS,
|
||||||
|
GET_SUBSCRIPTIONS,
|
||||||
|
type SubscriptionDto,
|
||||||
|
UPDATE_SUBSCRIPTIONS,
|
||||||
|
} from '@/domains/recorder/graphql/subscriptions';
|
||||||
import type {
|
import type {
|
||||||
GetSubscriptionsQuery,
|
GetSubscriptionsQuery,
|
||||||
SubscriptionsUpdateInput,
|
SubscriptionsUpdateInput,
|
||||||
@ -35,12 +41,6 @@ import {
|
|||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import { DataTableRowActions } from '../../../../components/ui/data-table-row-actions';
|
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')({
|
export const Route = createFileRoute('/_app/subscriptions/manage')({
|
||||||
component: SubscriptionManageRouteComponent,
|
component: SubscriptionManageRouteComponent,
|
||||||
|
Loading…
Reference in New Issue
Block a user