mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
20 lines
589 B
TypeScript
20 lines
589 B
TypeScript
import type {NewInternalAppApiToken} from 'sentry/types';
|
|
|
|
export function ApiTokenFixture(
|
|
params: Partial<NewInternalAppApiToken> = {}
|
|
): NewInternalAppApiToken {
|
|
return {
|
|
id: '1',
|
|
name: 'token_name1',
|
|
token: 'apitoken123',
|
|
dateCreated: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
|
|
scopes: ['project:read', 'project:write'],
|
|
application: null,
|
|
refreshToken: 'refresh_token',
|
|
expiresAt: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)').toISOString(),
|
|
state: 'active',
|
|
tokenLastCharacters: 'n123',
|
|
...params,
|
|
};
|
|
}
|