debian-mirror-gitlab/spec/frontend/projects/settings/mock_data.js
2023-04-23 21:23:45 +05:30

53 lines
1 KiB
JavaScript

const accessLevelsMockResponse = [
{
__typename: 'PushAccessLevelEdge',
node: {
__typename: 'PushAccessLevel',
accessLevel: 40,
accessLevelDescription: 'Jona Langworth',
group: null,
user: {
__typename: 'UserCore',
id: '123',
webUrl: 'test.com',
name: 'peter',
avatarUrl: 'test.com/user.png',
},
},
},
{
__typename: 'PushAccessLevelEdge',
node: {
__typename: 'PushAccessLevel',
accessLevel: 40,
accessLevelDescription: 'Maintainers',
group: null,
user: null,
},
},
];
export const pushAccessLevelsMockResponse = {
__typename: 'PushAccessLevelConnection',
edges: accessLevelsMockResponse,
};
export const pushAccessLevelsMockResult = {
total: 2,
users: [
{
src: 'test.com/user.png',
__typename: 'UserCore',
id: '123',
webUrl: 'test.com',
name: 'peter',
avatarUrl: 'test.com/user.png',
},
],
groups: [],
roles: [
{
accessLevelDescription: 'Maintainers',
},
],
};