* Add folder for api settings * Init create api key page * Update create api key page * Implement api call to create apiKey * Add create api key mutation * Get id when creating apiKey * Display created Api Key * Add delete api key button * Remove button from InputText * Update stuff * Add test for ApiDetail * Fix type * Use recoil instead of router state * Remane route paths * Remove online return * Move and test date util * Remove useless Component * Rename ApiKeys paths * Rename ApiKeys files * Add input text info testing * Rename hooks to webhooks * Remove console error * Add tests to reach minimum coverage
12 lines
219 B
TypeScript
12 lines
219 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const INSERT_ONE_API_KEY = gql`
|
|
mutation InsertOneApiKey($data: ApiKeyCreateInput!) {
|
|
createOneApiKey(data: $data) {
|
|
id
|
|
token
|
|
expiresAt
|
|
}
|
|
}
|
|
`;
|