fc4075b372
* Add query to get api keys * Add a link to apiKey detail page * Reset generatedApiKey when leaving page * Simplify stuff * Regenerate key when clicking on button * Simplify * Fix test * Refetch apiKeys when delete or create one * Add test for utils * Create utils function * Enable null expiration dates * Update formatExpiration * Fix display * Fix noteCard * Fix errors * Fix reset * Fix display * Fix renaming * Fix tests * Fix ci * Fix mocked data * Fix test * Update coverage requiremeents * Rename folder * Code review returns * Symplify sht code
33 lines
965 B
TypeScript
33 lines
965 B
TypeScript
import { ApiKey } from '~/generated/graphql';
|
|
|
|
type MockedApiKey = Pick<
|
|
ApiKey,
|
|
'id' | 'name' | 'createdAt' | 'updatedAt' | 'expiresAt' | '__typename'
|
|
>;
|
|
export const mockedApiKeys: Array<MockedApiKey> = [
|
|
{
|
|
id: 'f7c6d736-8fcd-4e9c-ab99-28f6a9031570',
|
|
name: 'Zapier Integration',
|
|
createdAt: '2023-04-26T10:12:42.33625+00:00',
|
|
updatedAt: '2023-04-26T10:23:42.33625+00:00',
|
|
expiresAt: '2100-11-06T23:59:59.825Z',
|
|
__typename: 'ApiKey',
|
|
},
|
|
{
|
|
id: 'f7c6d736-8fcd-4e9c-ab99-28f6a9031571',
|
|
name: 'Gmail Integration',
|
|
createdAt: '2023-04-26T10:12:42.33625+00:00',
|
|
updatedAt: '2023-04-26T10:23:42.33625+00:00',
|
|
expiresAt: null,
|
|
__typename: 'ApiKey',
|
|
},
|
|
{
|
|
id: 'f7c6d736-8fcd-4e9c-ab99-28f6a9031572',
|
|
name: 'Github Integration',
|
|
createdAt: '2023-04-26T10:12:42.33625+00:00',
|
|
updatedAt: '2023-04-26T10:23:42.33625+00:00',
|
|
expiresAt: '2022-11-06T23:59:59.825Z',
|
|
__typename: 'ApiKey',
|
|
},
|
|
];
|