73abba06cf
* WIP infinite load helper * finished automations pagination * runs pagination working * fn pagination * minor cleanup * subscription cache mutation fixes * filtered cache update fix * minor changes
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import { graphql } from '~/lib/common/generated/gql'
|
|
|
|
export const searchAutomateFunctionReleasesQuery = graphql(`
|
|
query SearchAutomateFunctionReleases(
|
|
$functionId: ID!
|
|
$cursor: String
|
|
$limit: Int
|
|
$filter: AutomateFunctionReleasesFilter
|
|
) {
|
|
automateFunction(id: $functionId) {
|
|
id
|
|
releases(cursor: $cursor, limit: $limit, filter: $filter) {
|
|
cursor
|
|
totalCount
|
|
items {
|
|
...SearchAutomateFunctionReleaseItem
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const functionAccessCheckQuery = graphql(`
|
|
query FunctionAccessCheck($id: ID!) {
|
|
automateFunction(id: $id) {
|
|
id
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const projectAutomationCreationPublicKeysQuery = graphql(`
|
|
query ProjectAutomationCreationPublicKeys(
|
|
$projectId: String!
|
|
$automationId: String!
|
|
) {
|
|
project(id: $projectId) {
|
|
id
|
|
automation(id: $automationId) {
|
|
id
|
|
creationPublicKeys
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const automateFunctionsPagePaginationQuery = graphql(`
|
|
query AutomateFunctionsPagePagination($search: String, $cursor: String) {
|
|
...AutomateFunctionsPageItems_Query
|
|
}
|
|
`)
|