Skip to content

Commit 97861c2

Browse files
authored
fix: add crashTypeId to CrashesApiRow (#105)
* fix: add crashTypeId to CrashesApiRow * chore: increase e2e test timeout * chore: increase timeout again
1 parent 4d63c8a commit 97861c2

File tree

2 files changed

+54
-24
lines changed

2 files changed

+54
-24
lines changed

spec/support/timeout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
1+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 180000;

src/crashes/crashes-api-row/crashes-api-row.ts

Lines changed: 53 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ interface CrashData {
33
stackKey: string;
44
appName: string;
55
appVersion: string;
6+
crashTypeId: CrashTypeId;
67
appDescription: string;
78
userDescription: string;
89
user: string;
@@ -35,30 +36,58 @@ export interface CrashesApiResponseRow extends CrashData {
3536
IpAddress: string;
3637
}
3738

39+
export enum CrashTypeId {
40+
unknown = 0,
41+
windowsNative = 1,
42+
java = 4,
43+
crashpad = 6,
44+
dotnet = 8,
45+
unity = 12,
46+
macOS = 13,
47+
javascript = 14,
48+
unityNative = 15,
49+
unrealLinuxServer = 16,
50+
unreal = 17,
51+
dotnetStandard = 18,
52+
angular = 19,
53+
node = 20,
54+
xml = 21,
55+
electron = 22,
56+
python = 23,
57+
unityDotNetStandard = 24,
58+
asan = 25,
59+
iOS = 26,
60+
xbox = 27,
61+
ps4 = 28,
62+
ps5 = 29,
63+
playStationRecap = 30,
64+
}
65+
3866
export class CrashesApiRow implements CrashDataWithMappedProperties {
39-
public id: number;
40-
public groupByCount: number;
41-
public stackKey: string;
42-
public stackId: number;
43-
public stackKeyId: number;
44-
public appName: string;
45-
public appVersion: string;
46-
public appDescription: string;
47-
public userDescription: string;
48-
public user: string;
49-
public email: string;
50-
public ipAddress: string;
51-
public crashTime: string;
52-
public defectId: string;
53-
public defectUrl: string;
54-
public defectLabel: string;
55-
public skDefectId: string;
56-
public skDefectUrl: string;
57-
public skDefectLabel: string;
58-
public comments: string;
59-
public skComments: string;
60-
public exceptionCode: string;
61-
public exceptionMessage: string;
67+
id: number;
68+
groupByCount: number;
69+
stackKey: string;
70+
stackId: number;
71+
stackKeyId: number;
72+
appName: string;
73+
appVersion: string;
74+
crashTypeId: CrashTypeId;
75+
appDescription: string;
76+
userDescription: string;
77+
user: string;
78+
email: string;
79+
ipAddress: string;
80+
crashTime: string;
81+
defectId: string;
82+
defectUrl: string;
83+
defectLabel: string;
84+
skDefectId: string;
85+
skDefectUrl: string;
86+
skDefectLabel: string;
87+
comments: string;
88+
skComments: string;
89+
exceptionCode: string;
90+
exceptionMessage: string;
6291

6392
constructor(rawApiRow: CrashesApiResponseRow) {
6493
this.id = Number(rawApiRow.id);
@@ -68,6 +97,7 @@ export class CrashesApiRow implements CrashDataWithMappedProperties {
6897
this.stackId = Number(rawApiRow.stackId);
6998
this.appName = rawApiRow.appName;
7099
this.appVersion = rawApiRow.appVersion;
100+
this.crashTypeId = rawApiRow.crashTypeId;
71101
this.appDescription = rawApiRow.appDescription;
72102
this.userDescription = rawApiRow.userDescription;
73103
this.user = rawApiRow.user;

0 commit comments

Comments
 (0)