2022-02-21 13:32:38 +00:00
|
|
|
import { gql } from "@apollo/client";
|
2020-07-22 10:54:15 +00:00
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const appsList = gql`
|
2020-07-22 10:54:15 +00:00
|
|
|
query AppsList(
|
|
|
|
$before: String
|
|
|
|
$after: String
|
|
|
|
$first: Int
|
|
|
|
$last: Int
|
|
|
|
$sort: AppSortingInput
|
|
|
|
$filter: AppFilterInput
|
|
|
|
) {
|
|
|
|
apps(
|
|
|
|
before: $before
|
|
|
|
after: $after
|
|
|
|
first: $first
|
|
|
|
last: $last
|
|
|
|
sortBy: $sort
|
|
|
|
filter: $filter
|
|
|
|
) {
|
|
|
|
pageInfo {
|
|
|
|
hasNextPage
|
|
|
|
hasPreviousPage
|
|
|
|
startCursor
|
|
|
|
endCursor
|
|
|
|
}
|
|
|
|
totalCount
|
|
|
|
edges {
|
|
|
|
node {
|
2022-05-31 15:18:15 +00:00
|
|
|
...AppListItem
|
2020-07-22 10:54:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const appsInProgressList = gql`
|
2020-07-22 10:54:15 +00:00
|
|
|
query AppsInstallations {
|
|
|
|
appsInstallations {
|
2023-01-19 11:54:57 +00:00
|
|
|
...AppInstallation
|
2020-07-22 10:54:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const appDetails = gql`
|
2020-07-22 10:54:15 +00:00
|
|
|
query App($id: ID!) {
|
|
|
|
app(id: $id) {
|
2022-03-09 08:56:55 +00:00
|
|
|
...App
|
2020-07-22 10:54:15 +00:00
|
|
|
aboutApp
|
2023-04-20 07:39:54 +00:00
|
|
|
author
|
2020-07-22 10:54:15 +00:00
|
|
|
permissions {
|
|
|
|
code
|
|
|
|
name
|
|
|
|
}
|
|
|
|
dataPrivacy
|
|
|
|
dataPrivacyUrl
|
2023-06-15 14:06:08 +00:00
|
|
|
brand {
|
|
|
|
logo {
|
2023-06-27 08:50:26 +00:00
|
|
|
default(size: 64, format: WEBP)
|
2023-06-15 14:06:08 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-22 10:54:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-08-20 13:58:53 +00:00
|
|
|
export const extensionList = gql`
|
|
|
|
query ExtensionList($filter: AppExtensionFilterInput!) {
|
2022-02-02 15:30:34 +00:00
|
|
|
appExtensions(filter: $filter, first: 100) {
|
2021-08-20 13:58:53 +00:00
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
url
|
2022-02-02 15:30:34 +00:00
|
|
|
mount
|
2021-08-20 13:58:53 +00:00
|
|
|
target
|
|
|
|
accessToken
|
2022-02-02 15:30:34 +00:00
|
|
|
permissions {
|
|
|
|
code
|
|
|
|
}
|
|
|
|
app {
|
|
|
|
id
|
|
|
|
appUrl
|
|
|
|
}
|
2021-08-20 13:58:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2022-03-21 12:35:32 +00:00
|
|
|
|
|
|
|
export const EXTENSION_LIST_QUERY = "ExtensionList";
|