fix: fix credential3rd graphql
This commit is contained in:
54
apps/webui/src/domains/recorder/graphql/credential3rd.ts
Normal file
54
apps/webui/src/domains/recorder/graphql/credential3rd.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_CREDENTIAL_3RD = gql`
|
||||
query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {
|
||||
credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {
|
||||
nodes {
|
||||
id
|
||||
cookies
|
||||
username
|
||||
password
|
||||
userAgent
|
||||
createdAt
|
||||
updatedAt
|
||||
credentialType
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSERT_CREDENTIAL_3RD = gql`
|
||||
mutation InsertCredential3rd($data: Credential3rdInsertInput!) {
|
||||
credential3rdCreateOne(data: $data) {
|
||||
id
|
||||
cookies
|
||||
username
|
||||
password
|
||||
userAgent
|
||||
createdAt
|
||||
updatedAt
|
||||
credentialType
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_CREDENTIAL_3RD = gql`
|
||||
mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {
|
||||
credential3rdUpdate(data: $data, filter: $filters) {
|
||||
id
|
||||
cookies
|
||||
username
|
||||
password
|
||||
userAgent
|
||||
createdAt
|
||||
updatedAt
|
||||
credentialType
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_CREDENTIAL_3RD = gql`
|
||||
mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {
|
||||
credential3rdDelete(filter: $filters)
|
||||
}
|
||||
`;
|
||||
87
apps/webui/src/domains/recorder/graphql/subscriptions.ts
Normal file
87
apps/webui/src/domains/recorder/graphql/subscriptions.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_SUBSCRIPTIONS = gql`
|
||||
query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {
|
||||
subscriptions(
|
||||
pagination: $pagination
|
||||
filters: $filters
|
||||
orderBy: $orderBy
|
||||
) {
|
||||
nodes {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
displayName
|
||||
category
|
||||
sourceUrl
|
||||
enabled
|
||||
}
|
||||
paginationInfo {
|
||||
total
|
||||
pages
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_SUBSCRIPTIONS = gql`
|
||||
mutation UpdateSubscriptions(
|
||||
$data: SubscriptionsUpdateInput!,
|
||||
$filters: SubscriptionsFilterInput!,
|
||||
) {
|
||||
subscriptionsUpdate (
|
||||
data: $data
|
||||
filter: $filters
|
||||
) {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
displayName
|
||||
category
|
||||
sourceUrl
|
||||
enabled
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_SUBSCRIPTIONS = gql`
|
||||
mutation DeleteSubscriptions($filters: SubscriptionsFilterInput) {
|
||||
subscriptionsDelete(filter: $filters)
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_SUBSCRIPTION_DETAIL = gql`
|
||||
query GetSubscriptionDetail ($id: Int!) {
|
||||
subscriptions(filters: { id: {
|
||||
eq: $id
|
||||
} }) {
|
||||
nodes {
|
||||
id
|
||||
displayName
|
||||
createdAt
|
||||
updatedAt
|
||||
category
|
||||
sourceUrl
|
||||
enabled
|
||||
bangumi {
|
||||
nodes {
|
||||
createdAt
|
||||
updatedAt
|
||||
id
|
||||
mikanBangumiId
|
||||
displayName
|
||||
rawName
|
||||
season
|
||||
seasonRaw
|
||||
fansub
|
||||
mikanFansubId
|
||||
rssLink
|
||||
posterLink
|
||||
savePath
|
||||
homepage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user