
* Remove marketplace from Apps list * Move apps in progress to bottom * Remove pagination from InstalledApps * Add apps permissions tooltip * Activate/deactivate InstalledApps from list * Add changes description to CHANGELOG * Update package.json to include macaw required changes * Upadte fixtures * Rename Local Apps -> Third Party Apps * Update macaw, fix TS errors * Refactor AppPermission component to use permission fragment * Add fragment for app list query, refactor InstalledApps props type * Fix check for usage within context inside useAppListContext * Remove redundant errors check in mutation hooks inside AppsList * Update extracted messages * Fix AppListPage stories failing * Fix Tooltip not working in failed installed apps * Update messages
87 lines
1.4 KiB
TypeScript
87 lines
1.4 KiB
TypeScript
import { gql } from "@apollo/client";
|
|
|
|
export const appsList = gql`
|
|
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 {
|
|
...AppListItem
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const appsInProgressList = gql`
|
|
query AppsInstallations {
|
|
appsInstallations {
|
|
status
|
|
message
|
|
appName
|
|
manifestUrl
|
|
id
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const appDetails = gql`
|
|
query App($id: ID!) {
|
|
app(id: $id) {
|
|
...App
|
|
aboutApp
|
|
permissions {
|
|
code
|
|
name
|
|
}
|
|
dataPrivacy
|
|
dataPrivacyUrl
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const extensionList = gql`
|
|
query ExtensionList($filter: AppExtensionFilterInput!) {
|
|
appExtensions(filter: $filter, first: 100) {
|
|
edges {
|
|
node {
|
|
id
|
|
label
|
|
url
|
|
mount
|
|
target
|
|
accessToken
|
|
permissions {
|
|
code
|
|
}
|
|
app {
|
|
id
|
|
appUrl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const EXTENSION_LIST_QUERY = "ExtensionList";
|