Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
341 changes: 341 additions & 0 deletions client/src/graphql/generated.ts

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions client/src/graphql/operations/hashBanks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,54 @@ export const HASH_BANK_BY_ID_QUERY = gql`
hma_name
enabled_ratio
org_id
exchange {
api
enabled
has_auth
error
last_fetch_succeeded
last_fetch_time
up_to_date
fetched_items
is_fetching
}
}
}
`;

export const EXCHANGE_APIS_QUERY = gql`
query ExchangeApis {
exchangeApis {
name
supports_auth
has_auth
}
}
`;

export const EXCHANGE_API_SCHEMA_QUERY = gql`
query ExchangeApiSchema($apiName: String!) {
exchangeApiSchema(apiName: $apiName) {
config_schema {
fields {
name
type
required
default
help
choices
}
}
credentials_schema {
fields {
name
type
required
default
help
choices
}
}
}
}
`;
Expand All @@ -38,6 +86,7 @@ export const CREATE_HASH_BANK_MUTATION = gql`
enabled_ratio
org_id
}
warning
}
... on MatchingBankNameExistsError {
title
Expand Down Expand Up @@ -80,4 +129,10 @@ export const DELETE_HASH_BANK_MUTATION = gql`
mutation DeleteHashBank($id: ID!) {
deleteHashBank(id: $id)
}
`;

export const UPDATE_EXCHANGE_CREDENTIALS_MUTATION = gql`
mutation UpdateExchangeCredentials($apiName: String!, $credentialsJson: String!) {
updateExchangeCredentials(apiName: $apiName, credentialsJson: $credentialsJson)
}
`;
Loading
Loading