Skip to content

Commit e629607

Browse files
new type release
1 parent bb1f812 commit e629607

File tree

3 files changed

+80
-75
lines changed

3 files changed

+80
-75
lines changed

src/typeDefs/event.ts

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -16,81 +16,6 @@ type SourceCodeLine {
1616
content: String
1717
}
1818
19-
"""
20-
Source map file details
21-
"""
22-
type SourceMapData {
23-
"""
24-
Source map filename
25-
"""
26-
mapFileName: String!
27-
28-
"""
29-
Original source filename
30-
"""
31-
originFileName: String!
32-
33-
"""
34-
File size in bytes
35-
"""
36-
size: Int!
37-
}
38-
39-
"""
40-
Release commit
41-
"""
42-
type Commit {
43-
"""
44-
Hash of the commit
45-
"""
46-
hash: String!
47-
48-
"""
49-
Commit author
50-
"""
51-
author: String!
52-
53-
"""
54-
Commit title
55-
"""
56-
title: String!
57-
58-
"""
59-
Commit creation date
60-
"""
61-
date: DateTime!
62-
}
63-
64-
"""
65-
Release data
66-
"""
67-
type Release {
68-
"""
69-
Release ID
70-
"""
71-
id: ID! @renameFrom(name: "_id")
72-
73-
"""
74-
Release name
75-
"""
76-
releaseName: String! @renameFrom(name: "release")
77-
78-
"""
79-
Project ID associated with the release
80-
"""
81-
projectId: ID!
82-
83-
"""
84-
Release commits
85-
"""
86-
commits: [Commit!]!
87-
88-
"""
89-
Source maps associated with the release
90-
"""
91-
files: [SourceMapData!]!
92-
}
93-
9419
"""
9520
Event backtrace representation
9621
"""

src/typeDefs/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import workspaceMutations from './workspaceMutations';
1515
import chart from './chart';
1616
import plans from './plans';
1717
import seed from './seed';
18+
import release from './release';
1819
import isE2E from '../utils/isE2E';
1920

2021
const rootSchema = gql`
@@ -98,6 +99,7 @@ const typeDefinitions = [
9899
workspaceMutations,
99100
chart,
100101
plans,
102+
release,
101103
];
102104

103105
if (isE2E) {

src/typeDefs/release.ts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import { gql } from 'apollo-server-express';
2+
3+
export default gql`
4+
"""
5+
Source map file details
6+
"""
7+
type SourceMapData {
8+
"""
9+
Source map filename
10+
"""
11+
mapFileName: String!
12+
13+
"""
14+
Original source filename
15+
"""
16+
originFileName: String!
17+
18+
"""
19+
File size in bytes
20+
"""
21+
size: Int!
22+
}
23+
24+
"""
25+
Release commit
26+
"""
27+
type Commit {
28+
"""
29+
Hash of the commit
30+
"""
31+
hash: String!
32+
33+
"""
34+
Commit author
35+
"""
36+
author: String!
37+
38+
"""
39+
Commit title
40+
"""
41+
title: String!
42+
43+
"""
44+
Commit creation date
45+
"""
46+
date: DateTime!
47+
}
48+
49+
"""
50+
Release data
51+
"""
52+
type Release {
53+
"""
54+
Release ID
55+
"""
56+
id: ID! @renameFrom(name: "_id")
57+
58+
"""
59+
Release name
60+
"""
61+
releaseName: String! @renameFrom(name: "release")
62+
63+
"""
64+
Project ID associated with the release
65+
"""
66+
projectId: ID!
67+
68+
"""
69+
Release commits
70+
"""
71+
commits: [Commit!]!
72+
73+
"""
74+
Source maps associated with the release
75+
"""
76+
files: [SourceMapData!]!
77+
}
78+
`;

0 commit comments

Comments
 (0)