@intuitionrobotics/bug-report 0.47.59 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -0
- package/dist/app-backend/api/_bug-report.d.ts +4 -0
- package/dist/app-backend/api/_bug-report.d.ts.map +1 -0
- package/dist/app-backend/api/_bug-report.js +3 -0
- package/{app-backend → dist/app-backend}/api/_bug-report.js.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/_imports.d.ts +4 -0
- package/dist/app-backend/api/v1/bug-reports/_imports.d.ts.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/_imports.js +4 -0
- package/{app-backend → dist/app-backend}/api/v1/bug-reports/_imports.js.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/download.d.ts +13 -0
- package/dist/app-backend/api/v1/bug-reports/download.d.ts.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/download.js +12 -0
- package/dist/app-backend/api/v1/bug-reports/download.js.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts +9 -0
- package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/get-logs.js +12 -0
- package/dist/app-backend/api/v1/bug-reports/get-logs.js.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/reports.d.ts +9 -0
- package/dist/app-backend/api/v1/bug-reports/reports.d.ts.map +1 -0
- package/dist/app-backend/api/v1/bug-reports/reports.js +25 -0
- package/dist/app-backend/api/v1/bug-reports/reports.js.map +1 -0
- package/dist/app-backend/core/module-pack.d.ts +2 -0
- package/dist/app-backend/core/module-pack.d.ts.map +1 -0
- package/dist/app-backend/core/module-pack.js +15 -0
- package/dist/app-backend/core/module-pack.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/AdminBRModule.d.ts +2 -1
- package/dist/app-backend/modules/AdminBRModule.d.ts.map +1 -0
- package/dist/app-backend/modules/AdminBRModule.js +24 -0
- package/dist/app-backend/modules/AdminBRModule.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/BugReportModule.d.ts +2 -1
- package/dist/app-backend/modules/BugReportModule.d.ts.map +1 -0
- package/dist/app-backend/modules/BugReportModule.js +53 -0
- package/dist/app-backend/modules/BugReportModule.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/JiraBugReportIntegrator.d.ts +4 -3
- package/dist/app-backend/modules/JiraBugReportIntegrator.d.ts.map +1 -0
- package/dist/app-backend/modules/JiraBugReportIntegrator.js +29 -0
- package/dist/app-backend/modules/JiraBugReportIntegrator.js.map +1 -0
- package/{app-backend → dist/app-backend}/modules/SlackBugReportIntegrator.d.ts +3 -2
- package/dist/app-backend/modules/SlackBugReportIntegrator.d.ts.map +1 -0
- package/dist/app-backend/modules/SlackBugReportIntegrator.js +28 -0
- package/dist/app-backend/modules/SlackBugReportIntegrator.js.map +1 -0
- package/dist/app-frontend/core/module-pack.d.ts +4 -0
- package/dist/app-frontend/core/module-pack.d.ts.map +1 -0
- package/dist/app-frontend/core/module-pack.js +9 -0
- package/dist/app-frontend/core/module-pack.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/AdminBRModule.d.ts +2 -1
- package/dist/app-frontend/modules/AdminBRModule.d.ts.map +1 -0
- package/dist/app-frontend/modules/AdminBRModule.js +39 -0
- package/dist/app-frontend/modules/AdminBRModule.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/modules/BugReportModule.d.ts +1 -0
- package/dist/app-frontend/modules/BugReportModule.d.ts.map +1 -0
- package/dist/app-frontend/modules/BugReportModule.js +38 -0
- package/dist/app-frontend/modules/BugReportModule.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/ui/AdminBR.d.ts +3 -2
- package/dist/app-frontend/ui/AdminBR.d.ts.map +1 -0
- package/dist/app-frontend/ui/AdminBR.js +30 -0
- package/dist/app-frontend/ui/AdminBR.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/ui/BugReport.d.ts +1 -0
- package/dist/app-frontend/ui/BugReport.d.ts.map +1 -0
- package/dist/app-frontend/ui/BugReport.js +80 -0
- package/dist/app-frontend/ui/BugReport.js.map +1 -0
- package/{app-frontend → dist/app-frontend}/ui/Dialog_JiraOpened.d.ts +1 -0
- package/dist/app-frontend/ui/Dialog_JiraOpened.d.ts.map +1 -0
- package/{app-frontend → dist/app-frontend}/ui/Dialog_JiraOpened.js +9 -13
- package/dist/app-frontend/ui/Dialog_JiraOpened.js.map +1 -0
- package/dist/backend.d.ts +6 -0
- package/dist/backend.d.ts.map +1 -0
- package/dist/backend.js +6 -0
- package/dist/backend.js.map +1 -0
- package/dist/frontend.d.ts +4 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/frontend.js +3 -0
- package/dist/frontend.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/{shared → dist/shared}/api.d.ts +4 -3
- package/dist/shared/api.d.ts.map +1 -0
- package/dist/shared/api.js +6 -0
- package/dist/shared/api.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +65 -16
- package/app-backend/api/_bug-report.d.ts +0 -1
- package/app-backend/api/_bug-report.js +0 -5
- package/app-backend/api/v1/bug-reports/_imports.d.ts +0 -3
- package/app-backend/api/v1/bug-reports/_imports.js +0 -20
- package/app-backend/api/v1/bug-reports/download.d.ts +0 -1
- package/app-backend/api/v1/bug-reports/download.js +0 -25
- package/app-backend/api/v1/bug-reports/download.js.map +0 -1
- package/app-backend/api/v1/bug-reports/get-logs.d.ts +0 -1
- package/app-backend/api/v1/bug-reports/get-logs.js +0 -25
- package/app-backend/api/v1/bug-reports/get-logs.js.map +0 -1
- package/app-backend/api/v1/bug-reports/reports.d.ts +0 -1
- package/app-backend/api/v1/bug-reports/reports.js +0 -29
- package/app-backend/api/v1/bug-reports/reports.js.map +0 -1
- package/app-backend/core/module-pack.d.ts +0 -1
- package/app-backend/core/module-pack.js +0 -18
- package/app-backend/core/module-pack.js.map +0 -1
- package/app-backend/modules/AdminBRModule.js +0 -35
- package/app-backend/modules/AdminBRModule.js.map +0 -1
- package/app-backend/modules/BugReportModule.js +0 -65
- package/app-backend/modules/BugReportModule.js.map +0 -1
- package/app-backend/modules/JiraBugReportIntegrator.js +0 -42
- package/app-backend/modules/JiraBugReportIntegrator.js.map +0 -1
- package/app-backend/modules/SlackBugReportIntegrator.js +0 -40
- package/app-backend/modules/SlackBugReportIntegrator.js.map +0 -1
- package/app-frontend/core/module-pack.d.ts +0 -3
- package/app-frontend/core/module-pack.js +0 -26
- package/app-frontend/core/module-pack.js.map +0 -1
- package/app-frontend/modules/AdminBRModule.js +0 -51
- package/app-frontend/modules/AdminBRModule.js.map +0 -1
- package/app-frontend/modules/BugReportModule.js +0 -42
- package/app-frontend/modules/BugReportModule.js.map +0 -1
- package/app-frontend/ui/AdminBR.js +0 -35
- package/app-frontend/ui/AdminBR.js.map +0 -1
- package/app-frontend/ui/BugReport.js +0 -84
- package/app-frontend/ui/BugReport.js.map +0 -1
- package/app-frontend/ui/Dialog_JiraOpened.js.map +0 -1
- package/backend.d.ts +0 -5
- package/backend.js +0 -22
- package/backend.js.map +0 -1
- package/frontend.d.ts +0 -3
- package/frontend.js +0 -20
- package/frontend.js.map +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -18
- package/index.js.map +0 -1
- package/shared/api.js +0 -6
- package/shared/api.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/bug-report",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Bug Report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"author": "IR",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@intuitionrobotics/ts-common": "~0.47.0",
|
|
32
|
-
"@intuitionrobotics/firebase": "~0.47.0",
|
|
33
|
-
"@intuitionrobotics/testelot": "~0.47.0",
|
|
34
|
-
"@intuitionrobotics/thunderstorm": "~0.47.0",
|
|
35
|
-
"@intuitionrobotics/user-account": "~0.47.0",
|
|
36
|
-
"@intuitionrobotics/jira": "~0.47.0",
|
|
37
31
|
"express": "^4.16.4",
|
|
38
32
|
"jszip": "^3.3.0",
|
|
39
33
|
"moment": "^2.29.4",
|
|
40
|
-
"react": "^18.0.0"
|
|
34
|
+
"react": "^18.0.0",
|
|
35
|
+
"@intuitionrobotics/ts-common": "1.0.0",
|
|
36
|
+
"@intuitionrobotics/firebase": "1.0.0",
|
|
37
|
+
"@intuitionrobotics/testelot": "1.0.0",
|
|
38
|
+
"@intuitionrobotics/thunderstorm": "1.0.0",
|
|
39
|
+
"@intuitionrobotics/user-account": "1.0.0",
|
|
40
|
+
"@intuitionrobotics/jira": "1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/express": "^4.16.1",
|
|
@@ -45,7 +45,56 @@
|
|
|
45
45
|
"@types/node": "^20.0.0",
|
|
46
46
|
"module-alias": "^2.2.0",
|
|
47
47
|
"ts-node": "^8.6.2",
|
|
48
|
-
"tslint": "^6.1.3",
|
|
49
48
|
"typescript": "^5.3.0"
|
|
49
|
+
},
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"default": "./dist/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./frontend": {
|
|
56
|
+
"types": "./dist/frontend.d.ts",
|
|
57
|
+
"default": "./dist/frontend.js"
|
|
58
|
+
},
|
|
59
|
+
"./backend": {
|
|
60
|
+
"types": "./dist/backend.d.ts",
|
|
61
|
+
"default": "./dist/backend.js"
|
|
62
|
+
},
|
|
63
|
+
"./app-frontend/*": {
|
|
64
|
+
"types": "./dist/app-frontend/*.d.ts",
|
|
65
|
+
"default": "./dist/app-frontend/*.js"
|
|
66
|
+
},
|
|
67
|
+
"./app-backend/*": {
|
|
68
|
+
"types": "./dist/app-backend/*.d.ts",
|
|
69
|
+
"default": "./dist/app-backend/*.js"
|
|
70
|
+
},
|
|
71
|
+
"./shared/*": {
|
|
72
|
+
"types": "./dist/shared/*.d.ts",
|
|
73
|
+
"default": "./dist/shared/*.js"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"typesVersions": {
|
|
77
|
+
"*": {
|
|
78
|
+
"backend": [
|
|
79
|
+
"dist/backend"
|
|
80
|
+
],
|
|
81
|
+
"frontend": [
|
|
82
|
+
"dist/frontend"
|
|
83
|
+
],
|
|
84
|
+
"app-backend/*": [
|
|
85
|
+
"dist/app-backend/*"
|
|
86
|
+
],
|
|
87
|
+
"app-frontend/*": [
|
|
88
|
+
"dist/app-frontend/*"
|
|
89
|
+
],
|
|
90
|
+
"shared/*": [
|
|
91
|
+
"dist/shared/*"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"sideEffects": false,
|
|
96
|
+
"scripts": {
|
|
97
|
+
"build": "tsc -b src/main/tsconfig.json",
|
|
98
|
+
"lint": "eslint src/main"
|
|
50
99
|
}
|
|
51
|
-
}
|
|
100
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("../../../../shared/api"), exports);
|
|
18
|
-
__exportStar(require("../../../modules/BugReportModule"), exports);
|
|
19
|
-
__exportStar(require("../../../modules/AdminBRModule"), exports);
|
|
20
|
-
//# sourceMappingURL=_imports.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
13
|
-
const _imports_1 = require("./_imports");
|
|
14
|
-
class ServerApi_DownloadLogs extends backend_1.ServerApi_Post {
|
|
15
|
-
constructor() {
|
|
16
|
-
super("download-logs");
|
|
17
|
-
}
|
|
18
|
-
process(request, response, queryParams, body) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
return _imports_1.AdminBRModule.downloadFiles(body);
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
module.exports = new ServerApi_DownloadLogs();
|
|
25
|
-
//# sourceMappingURL=download.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,qEAIiD;AACjD,yCAIoB;AAEpB,MAAM,sBACL,SAAQ,wBAA2B;IAEnC;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxB,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAW;;YACnG,OAAO,wBAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
13
|
-
const _imports_1 = require("./_imports");
|
|
14
|
-
class ServerApi_GetReport extends backend_1.ServerApi_Get {
|
|
15
|
-
constructor() {
|
|
16
|
-
super("get-logs");
|
|
17
|
-
}
|
|
18
|
-
process(request, response, queryParams, body) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
return _imports_1.AdminBRModule.getFilesFirebase();
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
module.exports = new ServerApi_GetReport();
|
|
25
|
-
//# sourceMappingURL=get-logs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-logs.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/get-logs.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,qEAIiD;AACjD,yCAGoB;AAEpB,MAAM,mBACL,SAAQ,uBAAwB;IAEhC;QACC,KAAK,CAAC,UAAU,CAAC,CAAC;IACnB,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAClG,OAAO,wBAAa,CAAC,gBAAgB,EAAE,CAAC;QACzC,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const backend_1 = require("@intuitionrobotics/thunderstorm/backend");
|
|
13
|
-
const _imports_1 = require("./_imports");
|
|
14
|
-
// import {AccountModule} from "@intuitionrobotics/user-account/backend";
|
|
15
|
-
class ServerApi_SendReport extends backend_1.ServerApi_Post {
|
|
16
|
-
constructor() {
|
|
17
|
-
super("report");
|
|
18
|
-
}
|
|
19
|
-
process(request, response, queryParams, body) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, _b, _c;
|
|
22
|
-
const resp = yield backend_1.dispatch_queryRequestInfo.dispatchModuleAsync(request);
|
|
23
|
-
const userId = ((_b = (_a = resp.find(e => e.key === 'AccountsModule')) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.email) || ((_c = resp.find(e => e.key === 'RemoteProxy')) === null || _c === void 0 ? void 0 : _c.data);
|
|
24
|
-
return yield _imports_1.BugReportModule.saveFile(body, userId);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
module.exports = new ServerApi_SendReport();
|
|
29
|
-
//# sourceMappingURL=reports.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,qEAKiD;AACjD,yCAIoB;AAEpB,yEAAyE;AAEzE,MAAM,oBACL,SAAQ,wBAA4B;IAEpC;QACC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjB,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAuB;;;YAC/G,MAAM,IAAI,GAAG,MAAM,mCAAyB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC1E,MAAM,MAAM,GAAuB,CAAA,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,gBAAgB,CAAC,0CAAE,IAAI,0CAAE,KAAK,MAAI,MAAA,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC,0CAAE,IAAI,CAAA,CAAC;YAE5I,OAAO,MAAM,0BAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Backend_ModulePack_BugReport: (import("../modules/BugReportModule").BugReportModule_Class | import("../modules/AdminBRModule").AdminBRModule_Class | import("@intuitionrobotics/jira").JiraModule_Class | import("../modules/JiraBugReportIntegrator").JiraBugReportIntegrator_Class | import("@intuitionrobotics/thunderstorm/app-backend/modules/SlackModule").SlackModule_Class | import("../modules/SlackBugReportIntegrator").SlackBugReportIntegrator_Class)[];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Backend_ModulePack_BugReport = void 0;
|
|
4
|
-
const BugReportModule_1 = require("../modules/BugReportModule");
|
|
5
|
-
const AdminBRModule_1 = require("../modules/AdminBRModule");
|
|
6
|
-
const JiraBugReportIntegrator_1 = require("../modules/JiraBugReportIntegrator");
|
|
7
|
-
const jira_1 = require("@intuitionrobotics/jira");
|
|
8
|
-
const SlackBugReportIntegrator_1 = require("../modules/SlackBugReportIntegrator");
|
|
9
|
-
const SlackModule_1 = require("@intuitionrobotics/thunderstorm/app-backend/modules/SlackModule");
|
|
10
|
-
exports.Backend_ModulePack_BugReport = [
|
|
11
|
-
BugReportModule_1.BugReportModule,
|
|
12
|
-
AdminBRModule_1.AdminBRModule,
|
|
13
|
-
JiraBugReportIntegrator_1.JiraBugReportIntegrator,
|
|
14
|
-
jira_1.JiraModule,
|
|
15
|
-
SlackBugReportIntegrator_1.SlackBugReportIntegrator,
|
|
16
|
-
SlackModule_1.SlackModule
|
|
17
|
-
];
|
|
18
|
-
//# sourceMappingURL=module-pack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/module-pack.ts"],"names":[],"mappings":";;;AACA,gEAA2D;AAC3D,4DAAuD;AACvD,gFAA2E;AAC3E,kDAAmD;AACnD,kFAA6E;AAC7E,iGAA4F;AAG/E,QAAA,4BAA4B,GAAG;IAC3C,iCAAe;IACf,6BAAa;IACb,iDAAuB;IACvB,iBAAU;IACV,mDAAwB;IACxB,yBAAW;CACX,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AdminBRModule = exports.AdminBRModule_Class = void 0;
|
|
13
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
14
|
-
const backend_1 = require("@intuitionrobotics/firebase/backend");
|
|
15
|
-
class AdminBRModule_Class extends ts_common_1.Module {
|
|
16
|
-
constructor() {
|
|
17
|
-
super("AdminBRModule");
|
|
18
|
-
this.getFilesFirebase = () => __awaiter(this, void 0, void 0, function* () { return this.bugReport.getAll(); });
|
|
19
|
-
this.downloadFiles = (path) => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
var _a;
|
|
21
|
-
const bucket = yield this.storage.getOrCreateBucket((_a = this.config) === null || _a === void 0 ? void 0 : _a.bucket);
|
|
22
|
-
const file = yield bucket.getFile(path.path);
|
|
23
|
-
return file.getReadSecuredUrl(600000);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
init() {
|
|
27
|
-
const sessAdmin = backend_1.FirebaseModule.createAdminSession();
|
|
28
|
-
const firestore = sessAdmin.getFirestore();
|
|
29
|
-
this.bugReport = firestore.getCollection('bug-report', ['_id']);
|
|
30
|
-
this.storage = sessAdmin.getStorage();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.AdminBRModule_Class = AdminBRModule_Class;
|
|
34
|
-
exports.AdminBRModule = new AdminBRModule_Class();
|
|
35
|
-
//# sourceMappingURL=AdminBRModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/AdminBRModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAAoD;AAMpD,iEAI6C;AAO7C,MAAa,mBACZ,SAAQ,kBAAc;IAEtB;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;QAaxB,qBAAgB,GAAG,GAAS,EAAE,gDAAC,OAAA,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAA,GAAA,CAAC;QAEvD,kBAAa,GAAG,CAAO,IAAW,EAAE,EAAE;;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,CAAC,CAAC;YACzE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC,CAAA,CAAA;IAlBD,CAAC;IAKS,IAAI;QACb,MAAM,SAAS,GAAG,wBAAc,CAAC,kBAAkB,EAAE,CAAC;QACtD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,EAAE,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,aAAa,CAAe,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;IACvC,CAAC;CASD;AAxBD,kDAwBC;AAEY,QAAA,aAAa,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BugReportModule = exports.BugReportModule_Class = void 0;
|
|
13
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
14
|
-
const backend_1 = require("@intuitionrobotics/firebase/backend");
|
|
15
|
-
const JSZip = require("jszip");
|
|
16
|
-
class BugReportModule_Class extends ts_common_1.Module {
|
|
17
|
-
constructor() {
|
|
18
|
-
super("BugReportModule");
|
|
19
|
-
this.ticketCreatorApis = [];
|
|
20
|
-
this.saveLog = (report, id) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a;
|
|
22
|
-
const zip = new JSZip();
|
|
23
|
-
report.log.forEach((message, i) => zip.file(`${report.name}_${(0, ts_common_1.padNumber)(i, 2)}.txt`, message));
|
|
24
|
-
const buffer = yield zip.generateAsync({ type: "nodebuffer" });
|
|
25
|
-
const bucket = yield this.storage.getOrCreateBucket((_a = this.config) === null || _a === void 0 ? void 0 : _a.bucket);
|
|
26
|
-
const fileName = `${id}-${report.name}.zip`;
|
|
27
|
-
const file = yield bucket.getFile(fileName);
|
|
28
|
-
yield file.write(buffer);
|
|
29
|
-
return {
|
|
30
|
-
path: `https://storage.cloud.google.com/${file.file.metadata.bucket}/${file.file.metadata.name}`,
|
|
31
|
-
name: fileName
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
this.saveFile = (bugReport, email) => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
var _a;
|
|
36
|
-
const _id = (0, ts_common_1.generateHex)(16);
|
|
37
|
-
const logs = yield Promise.all(bugReport.reports.map(report => this.saveLog(report, _id)));
|
|
38
|
-
const instance = {
|
|
39
|
-
_id,
|
|
40
|
-
subject: bugReport.subject,
|
|
41
|
-
description: bugReport.description,
|
|
42
|
-
reports: logs,
|
|
43
|
-
_audit: (0, ts_common_1.auditBy)(email || "bug-report"),
|
|
44
|
-
};
|
|
45
|
-
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.bucket)
|
|
46
|
-
instance.bucket = this.config.bucket;
|
|
47
|
-
const tickets = yield Promise.all(this.ticketCreatorApis.map(api => api(bugReport, logs, email)));
|
|
48
|
-
instance.tickets = (0, ts_common_1.filterInstances)(tickets);
|
|
49
|
-
yield this.bugReport.insert(instance);
|
|
50
|
-
return instance.tickets;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
init() {
|
|
54
|
-
const sessionAdmin = backend_1.FirebaseModule.createAdminSession();
|
|
55
|
-
const firestore = sessionAdmin.getFirestore();
|
|
56
|
-
this.bugReport = firestore.getCollection('bug-report', ["_id"]);
|
|
57
|
-
this.storage = sessionAdmin.getStorage();
|
|
58
|
-
}
|
|
59
|
-
addTicketCreator(ticketCreator) {
|
|
60
|
-
(0, ts_common_1.addItemToArray)(this.ticketCreatorApis, ticketCreator);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.BugReportModule_Class = BugReportModule_Class;
|
|
64
|
-
exports.BugReportModule = new BugReportModule_Class();
|
|
65
|
-
//# sourceMappingURL=BugReportModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/BugReportModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAOsC;AAEtC,iEAI6C;AAS7C,+BAA+B;AAY/B,MAAa,qBACZ,SAAQ,kBAAc;IAEtB;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAKlB,sBAAiB,GAAuB,EAAE,CAAC;QAanD,YAAO,GAAG,CAAO,MAAiB,EAAE,EAAU,EAA0B,EAAE;;YACzE,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;YAExB,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,IAAA,qBAAS,EAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;YAE/F,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC,EAAC,IAAI,EAAE,YAAY,EAAC,CAAC,CAAC;YAC7D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iB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S,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;YAClG,QAAQ,CAAC,OAAO,GAAG,IAAA,2BAAe,EAAC,OAAO,CAAC,CAAA;YAC3C,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,OAAO,QAAQ,CAAC,OAAO,CAAC;QACzB,CAAC,CAAA,CAAC;IArDF,CAAC;IAMS,IAAI;QACb,MAAM,YAAY,GAAG,wBAAc,CAAC,kBAAkB,EAAE,CAAC;QACzD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,aAAa,CAAe,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAC1C,CAAC;IAED,gBAAgB,CAAC,aAA+B;QAC/C,IAAA,0BAAc,EAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IACvD,CAAC;CAuCD;AA3DD,sDA2DC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.JiraBugReportIntegrator = exports.JiraBugReportIntegrator_Class = void 0;
|
|
13
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
14
|
-
const jira_1 = require("@intuitionrobotics/jira");
|
|
15
|
-
const __1 = require("../..");
|
|
16
|
-
class JiraBugReportIntegrator_Class extends ts_common_1.Module {
|
|
17
|
-
constructor() {
|
|
18
|
-
super("JiraBugReportIntegrator");
|
|
19
|
-
this.parser = (name) => `Bug: ${name}`;
|
|
20
|
-
this.openTicket = (bugReport, logs, reporter) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a;
|
|
22
|
-
if (bugReport.platforms && !bugReport.platforms.includes(__1.Platform_Jira))
|
|
23
|
-
return;
|
|
24
|
-
if (!this.config.jiraProject)
|
|
25
|
-
throw new ts_common_1.ImplementationMissingException("missing Jira project in bug report configurations");
|
|
26
|
-
const description = logs.reduce((carry, log, i) => {
|
|
27
|
-
carry.push({ href: log.path, text: "\nClick to view logs (" + i + ")" });
|
|
28
|
-
return carry;
|
|
29
|
-
}, [bugReport.description]);
|
|
30
|
-
if (reporter)
|
|
31
|
-
description.push("\nReported by: " + reporter);
|
|
32
|
-
const issue = yield jira_1.JiraModule.issue.create(this.config.jiraProject, this.config.issueType, this.parser(bugReport.subject), description, (_a = this.config.label) === null || _a === void 0 ? void 0 : _a.label);
|
|
33
|
-
return { platform: __1.Platform_Jira, issueId: issue.url };
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
setIssueTitleProcessor(parser) {
|
|
37
|
-
this.parser = parser;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.JiraBugReportIntegrator_Class = JiraBugReportIntegrator_Class;
|
|
41
|
-
exports.JiraBugReportIntegrator = new JiraBugReportIntegrator_Class();
|
|
42
|
-
//# sourceMappingURL=JiraBugReportIntegrator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JiraBugReportIntegrator.js","sourceRoot":"","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C,QAAQ,EAAE,iBAAa,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAC,CAAC;QACtD,CAAC,CAAA,CAAC;IA1BF,CAAC;IAED,sBAAsB,CAAC,MAAgC;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;CAuBD;AAhCD,sEAgCC;AAEY,QAAA,uBAAuB,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SlackBugReportIntegrator = exports.SlackBugReportIntegrator_Class = void 0;
|
|
13
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
14
|
-
const __1 = require("../..");
|
|
15
|
-
const SlackModule_1 = require("@intuitionrobotics/thunderstorm//app-backend/modules/SlackModule");
|
|
16
|
-
class SlackBugReportIntegrator_Class extends ts_common_1.Module {
|
|
17
|
-
constructor() {
|
|
18
|
-
super("SlackBugReportIntegrator");
|
|
19
|
-
this.openTicket = (bugReport, logs, reporter) => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
if (bugReport.platforms && !bugReport.platforms.includes(__1.Platform_Slack))
|
|
21
|
-
return;
|
|
22
|
-
if (!this.config.channel)
|
|
23
|
-
throw new ts_common_1.ImplementationMissingException("Missing Slack Channel in bug report configurations");
|
|
24
|
-
let description = logs.reduce((carry, log, i) => {
|
|
25
|
-
return carry + "\n" + `<${log.path}|Click to view logs (${i})>`;
|
|
26
|
-
}, bugReport.subject + "\n" + bugReport.description);
|
|
27
|
-
if (reporter)
|
|
28
|
-
description += "\nReported by: " + reporter;
|
|
29
|
-
const slackMessage = {
|
|
30
|
-
text: description,
|
|
31
|
-
channel: this.config.channel
|
|
32
|
-
};
|
|
33
|
-
yield SlackModule_1.SlackModule.postMessage(slackMessage);
|
|
34
|
-
return { platform: __1.Platform_Slack, issueId: (0, ts_common_1.generateHex)(32) };
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.SlackBugReportIntegrator_Class = SlackBugReportIntegrator_Class;
|
|
39
|
-
exports.SlackBugReportIntegrator = new SlackBugReportIntegrator_Class();
|
|
40
|
-
//# sourceMappingURL=SlackBugReportIntegrator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlackBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackBugReportIntegrator.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAIsC;AACtC,6BAIe;AAEf,kGAA6F;AAM7F,MAAa,8BACZ,SAAQ,kBAAc;IAEtB;QACC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAGnC,eAAU,GAAG,CAAO,SAA4B,EAAE,IAAqB,EAAE,QAAiB,EAAsC,EAAE;YACjI,IAAG,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAc,CAAC;gBACtE,OAAO;YAER,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;gBACvB,MAAM,IAAI,0CAA8B,CAAC,oDAAoD,CAAC,CAAC;YAEhG,IAAI,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,GAAkB,EAAE,CAAS,EAAE,EAAE;gBAC9E,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC;YACjE,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;YAErD,IAAI,QAAQ;gBACX,WAAW,IAAI,iBAAiB,GAAG,QAAQ,CAAC;YAE7C,MAAM,YAAY,GAAG;gBACpB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;aAC5B,CAAC;YACF,MAAM,yBAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;YAC3C,OAAO,EAAC,QAAQ,EAAE,kBAAc,EAAE,OAAO,EAAE,IAAA,uBAAW,EAAC,EAAE,CAAC,EAAC,CAAC;QAC7D,CAAC,CAAA,CAAC;IAtBF,CAAC;CAuBD;AA5BD,wEA4BC;AAEY,QAAA,wBAAwB,GAAG,IAAI,8BAA8B,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Frontend_ModulePack_BugReport = void 0;
|
|
18
|
-
const BugReportModule_1 = require("../modules/BugReportModule");
|
|
19
|
-
const AdminBRModule_1 = require("../modules/AdminBRModule");
|
|
20
|
-
exports.Frontend_ModulePack_BugReport = [
|
|
21
|
-
BugReportModule_1.BugReportModule,
|
|
22
|
-
AdminBRModule_1.AdminBRModule
|
|
23
|
-
];
|
|
24
|
-
__exportStar(require("../modules/AdminBRModule"), exports);
|
|
25
|
-
__exportStar(require("../modules/BugReportModule"), exports);
|
|
26
|
-
//# sourceMappingURL=module-pack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA2D;AAC3D,4DAAuD;AAE1C,QAAA,6BAA6B,GAAG;IAC5C,iCAAe;IACf,6BAAa;CACb,CAAC;AAEF,2DAAwC;AACxC,6DAA0C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AdminBRModule = exports.AdminBRModule_Class = exports.RequestKey_PostPath = exports.RequestKey_GetLog = void 0;
|
|
13
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
14
|
-
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
15
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
16
|
-
exports.RequestKey_GetLog = "GetLog";
|
|
17
|
-
exports.RequestKey_PostPath = "PostPath";
|
|
18
|
-
class AdminBRModule_Class extends ts_common_1.Module {
|
|
19
|
-
constructor() {
|
|
20
|
-
super("AdminBRModule");
|
|
21
|
-
this.logs = [];
|
|
22
|
-
this.retrieveLogs = () => {
|
|
23
|
-
this.logInfo("getting logs from firestore...");
|
|
24
|
-
frontend_1.XhrHttpModule
|
|
25
|
-
.createRequest(thunderstorm_1.HttpMethod.GET, exports.RequestKey_GetLog)
|
|
26
|
-
.setRelativeUrl("/v1/bug-reports/get-logs")
|
|
27
|
-
.setOnError(`Error getting new message from backend`)
|
|
28
|
-
.execute((response) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
this.logs = response;
|
|
30
|
-
}));
|
|
31
|
-
this.logInfo("continue... will receive an event once request is completed..");
|
|
32
|
-
};
|
|
33
|
-
this.downloadLogs = (path) => {
|
|
34
|
-
this.logInfo("downloading the logs to the client..");
|
|
35
|
-
const bodyObject = { path: path };
|
|
36
|
-
frontend_1.XhrHttpModule
|
|
37
|
-
.createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_PostPath)
|
|
38
|
-
.setJsonBody(bodyObject)
|
|
39
|
-
.setRelativeUrl("/v1/bug-reports/download-logs")
|
|
40
|
-
.setOnError(`Error getting new message from backend`)
|
|
41
|
-
.execute();
|
|
42
|
-
};
|
|
43
|
-
this.downloadMultiLogs = (reports) => {
|
|
44
|
-
reports.forEach(report => this.downloadLogs(report.path));
|
|
45
|
-
};
|
|
46
|
-
this.getLogs = () => this.logs;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.AdminBRModule_Class = AdminBRModule_Class;
|
|
50
|
-
exports.AdminBRModule = new AdminBRModule_Class();
|
|
51
|
-
//# sourceMappingURL=AdminBRModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAAoD;AACpD,uEAAuE;AACvE,kEAA2D;AAS9C,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C,MAAa,mBACZ,SAAQ,kBAAM;IAEd;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;QAGhB,SAAI,GAAmB,EAAE,CAAC;QAE3B,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;YAC/C,wBAAa;iBACX,aAAa,CAAY,yBAAU,CAAC,GAAG,EAAE,yBAAiB,CAAC;iBAC3D,cAAc,CAAC,0BAA0B,CAAC;iBAC1C,UAAU,CAAC,wCAAwC,CAAC;iBACpD,OAAO,CAAC,CAAM,QAAQ,EAAC,EAAE;gBACzB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;YACrB,CAAC,CAAA,CAAC,CAAC;YAEJ,IAAI,CAAC,OAAO,CAAC,+DAA+D,CAAC,CAAC;QAC/E,CAAC,CAAC;QAEK,iBAAY,GAAG,CAAC,IAAY,EAAE,EAAE;YACtC,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;YACrD,MAAM,UAAU,GAAU,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;YACvC,wBAAa;iBACX,aAAa,CAAc,yBAAU,CAAC,IAAI,EAAE,2BAAmB,CAAC;iBAChE,WAAW,CAAC,UAAU,CAAC;iBACvB,cAAc,CAAC,+BAA+B,CAAC;iBAC/C,UAAU,CAAC,wCAAwC,CAAC;iBACpD,OAAO,EAAE,CAAC;QACb,CAAC,CAAC;QAEK,sBAAiB,GAAG,CAAC,OAAwB,EAAE,EAAE;YACvD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;QAC1D,CAAC,CAAA;QAEM,YAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAA;IAhChC,CAAC;CAiCD;AAtCD,kDAsCC;AAEY,QAAA,aAAa,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BugReportModule = exports.BugReportModule_Class = exports.RequestKey_BugReportApi = void 0;
|
|
4
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
5
|
-
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
6
|
-
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
7
|
-
const api_1 = require("../../shared/api");
|
|
8
|
-
const Dialog_JiraOpened_1 = require("../ui/Dialog_JiraOpened");
|
|
9
|
-
exports.RequestKey_BugReportApi = "BugReport";
|
|
10
|
-
class BugReportModule_Class extends ts_common_1.Module {
|
|
11
|
-
constructor() {
|
|
12
|
-
super("BugReportModule");
|
|
13
|
-
this.reports = [];
|
|
14
|
-
this.sendBugReport = (subject, description, platforms) => {
|
|
15
|
-
const body = {
|
|
16
|
-
subject,
|
|
17
|
-
description,
|
|
18
|
-
reports: this.reports.map(report => ({ log: report.buffers, name: report.name })),
|
|
19
|
-
platforms
|
|
20
|
-
};
|
|
21
|
-
frontend_1.XhrHttpModule
|
|
22
|
-
.createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_BugReportApi)
|
|
23
|
-
.setJsonBody(body)
|
|
24
|
-
.setRelativeUrl("/v1/bug-reports/report")
|
|
25
|
-
.setOnError(() => this.logWarning(`Error updating the report`))
|
|
26
|
-
.execute((response) => {
|
|
27
|
-
const jiraTicket = response.find(ticket => ticket.platform === api_1.Platform_Jira);
|
|
28
|
-
if (jiraTicket)
|
|
29
|
-
Dialog_JiraOpened_1.Dialog_JiraOpened.show(jiraTicket.issueId);
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
(0, ts_common_1.addItemToArray)(this.reports, new ts_common_1.LogClient_MemBuffer("default"));
|
|
33
|
-
(0, ts_common_1.addItemToArray)(this.reports, new ts_common_1.LogClient_MemBuffer("info")
|
|
34
|
-
.setFilter(level => ts_common_1.LogLevelOrdinal.indexOf(level) >= ts_common_1.LogLevelOrdinal.indexOf(ts_common_1.LogLevel.Info)));
|
|
35
|
-
}
|
|
36
|
-
init() {
|
|
37
|
-
this.reports.forEach(report => ts_common_1.BeLogged.addClient(report));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.BugReportModule_Class = BugReportModule_Class;
|
|
41
|
-
exports.BugReportModule = new BugReportModule_Class();
|
|
42
|
-
//# sourceMappingURL=BugReportModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":";;;AACA,4DAOsC;AACtC,uEAAuE;AACvE,kEAA2D;AAC3D,0CAI0B;AAC1B,+DAA0D;AAE7C,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAEnD,MAAa,qBACZ,SAAQ,kBAAM;IAId;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAHT,YAAO,GAA0B,EAAE,CAAC;QAarD,kBAAa,GAAG,CAAC,OAAe,EAAE,WAAmB,EAAE,SAAoB,EAAE,EAAE;YAC9E,MAAM,IAAI,GAAsB;gBAC/B,OAAO;gBACP,WAAW;gBACX,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAC,GAAG,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,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