@intuitionrobotics/bug-report 0.45.0 → 0.45.1
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/app-backend/api/_bug-report.js +20 -2
- package/app-backend/api/_bug-report.js.map +1 -1
- package/app-backend/api/v1/bug-reports/_imports.d.ts +3 -0
- package/app-backend/api/v1/bug-reports/_imports.js +34 -0
- package/app-backend/api/v1/bug-reports/_imports.js.map +1 -0
- package/app-backend/api/v1/bug-reports/download.js +22 -4
- package/app-backend/api/v1/bug-reports/download.js.map +1 -1
- package/app-backend/api/v1/bug-reports/get-logs.js +22 -4
- package/app-backend/api/v1/bug-reports/get-logs.js.map +1 -1
- package/app-backend/api/v1/bug-reports/reports.js +24 -6
- package/app-backend/api/v1/bug-reports/reports.js.map +1 -1
- package/app-backend/core/module-pack.d.ts +1 -1
- package/app-backend/core/module-pack.js +20 -2
- package/app-backend/core/module-pack.js.map +1 -1
- package/app-backend/modules/AdminBRModule.d.ts +1 -1
- package/app-backend/modules/AdminBRModule.js +22 -4
- package/app-backend/modules/AdminBRModule.js.map +1 -1
- package/app-backend/modules/BugReportModule.d.ts +2 -2
- package/app-backend/modules/BugReportModule.js +27 -13
- package/app-backend/modules/BugReportModule.js.map +1 -1
- package/app-backend/modules/JiraBugReportIntegrator.d.ts +3 -3
- package/app-backend/modules/JiraBugReportIntegrator.js +26 -9
- package/app-backend/modules/JiraBugReportIntegrator.js.map +1 -1
- package/app-backend/modules/SlackBugReportIntegrator.d.ts +2 -2
- package/app-backend/modules/SlackBugReportIntegrator.js +24 -8
- package/app-backend/modules/SlackBugReportIntegrator.js.map +1 -1
- package/app-frontend/core/module-pack.d.ts +2 -0
- package/app-frontend/core/module-pack.js +30 -0
- package/app-frontend/core/module-pack.js.map +1 -1
- package/app-frontend/modules/AdminBRModule.d.ts +1 -1
- package/app-frontend/modules/AdminBRModule.js +26 -8
- package/app-frontend/modules/AdminBRModule.js.map +1 -1
- package/app-frontend/modules/BugReportModule.d.ts +1 -1
- package/app-frontend/modules/BugReportModule.js +28 -12
- package/app-frontend/modules/BugReportModule.js.map +1 -1
- package/app-frontend/ui/AdminBR.d.ts +2 -2
- package/app-frontend/ui/AdminBR.js +24 -21
- package/app-frontend/ui/AdminBR.js.map +1 -1
- package/app-frontend/ui/BugReport.js +29 -15
- package/app-frontend/ui/BugReport.js.map +1 -1
- package/app-frontend/ui/Dialog_JiraOpened.d.ts +1 -1
- package/app-frontend/ui/Dialog_JiraOpened.js +1 -1
- package/app-frontend/ui/Dialog_JiraOpened.js.map +1 -1
- package/backend.d.ts +5 -0
- package/backend.js +36 -0
- package/backend.js.map +1 -0
- package/frontend.d.ts +3 -0
- package/frontend.js +34 -0
- package/frontend.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/shared/api.d.ts +6 -2
- package/shared/api.js +18 -0
- package/shared/api.js.map +1 -1
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
2
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
31
|
exports.Frontend_ModulePack_BugReport = void 0;
|
|
4
32
|
const BugReportModule_1 = require("../modules/BugReportModule");
|
|
@@ -7,4 +35,6 @@ exports.Frontend_ModulePack_BugReport = [
|
|
|
7
35
|
BugReportModule_1.BugReportModule,
|
|
8
36
|
AdminBRModule_1.AdminBRModule
|
|
9
37
|
];
|
|
38
|
+
__exportStar(require("../modules/AdminBRModule"), exports);
|
|
39
|
+
__exportStar(require("../modules/BugReportModule"), exports);
|
|
10
40
|
//# sourceMappingURL=module-pack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;AAEH,gEAA2D;AAC3D,4DAAuD;AAE1C,QAAA,6BAA6B,GAAG;IAC5C,iCAAe;IACf,6BAAa;CACb,CAAC;AAEF,2DAAwC;AACxC,6DAA0C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Module } from "@intuitionrobotics/ts-common
|
|
1
|
+
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
2
|
import { DB_BugReport, ReportLogFile } from "../../shared/api";
|
|
3
3
|
export declare const RequestKey_GetLog = "GetLog";
|
|
4
4
|
export declare const RequestKey_PostPath = "PostPath";
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
21
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
22
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,19 +28,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
28
|
};
|
|
11
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
30
|
exports.AdminBRModule = exports.AdminBRModule_Class = exports.RequestKey_PostPath = exports.RequestKey_GetLog = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
31
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
32
|
+
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
33
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
16
34
|
exports.RequestKey_GetLog = "GetLog";
|
|
17
35
|
exports.RequestKey_PostPath = "PostPath";
|
|
18
|
-
class AdminBRModule_Class extends
|
|
36
|
+
class AdminBRModule_Class extends ts_common_1.Module {
|
|
19
37
|
constructor() {
|
|
20
38
|
super("AdminBRModule");
|
|
21
39
|
this.logs = [];
|
|
22
40
|
this.retrieveLogs = () => {
|
|
23
41
|
this.logInfo("getting logs from firestore...");
|
|
24
|
-
|
|
25
|
-
.createRequest(
|
|
42
|
+
frontend_1.XhrHttpModule
|
|
43
|
+
.createRequest(thunderstorm_1.HttpMethod.GET, exports.RequestKey_GetLog)
|
|
26
44
|
.setRelativeUrl("/v1/bug-reports/get-logs")
|
|
27
45
|
.setOnError(`Error getting new message from backend`)
|
|
28
46
|
.execute((response) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,8 +51,8 @@ class AdminBRModule_Class extends module_1.Module {
|
|
|
33
51
|
this.downloadLogs = (path) => {
|
|
34
52
|
this.logInfo("downloading the logs to the client..");
|
|
35
53
|
const bodyObject = { path: path };
|
|
36
|
-
|
|
37
|
-
.createRequest(
|
|
54
|
+
frontend_1.XhrHttpModule
|
|
55
|
+
.createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_PostPath)
|
|
38
56
|
.setJsonBody(bodyObject)
|
|
39
57
|
.setRelativeUrl("/v1/bug-reports/download-logs")
|
|
40
58
|
.setOnError(`Error getting new message from backend`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,4DAAoD;AACpD,uEAAuE;AACvE,kEAA2D;AAS9C,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B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BAAmB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Module } from "@intuitionrobotics/ts-common
|
|
1
|
+
import { Module } from "@intuitionrobotics/ts-common";
|
|
2
2
|
export declare const RequestKey_BugReportApi = "BugReport";
|
|
3
3
|
export declare class BugReportModule_Class extends Module {
|
|
4
4
|
private readonly reports;
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
21
|
exports.BugReportModule = exports.BugReportModule_Class = exports.RequestKey_BugReportApi = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
22
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
23
|
+
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
24
|
+
const thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
|
|
7
25
|
const api_1 = require("../../shared/api");
|
|
8
26
|
const Dialog_JiraOpened_1 = require("../ui/Dialog_JiraOpened");
|
|
9
|
-
const LogClient_MemBuffer_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_MemBuffer");
|
|
10
|
-
const types_2 = require("@intuitionrobotics/ts-common/core/logger/types");
|
|
11
|
-
const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
|
|
12
27
|
exports.RequestKey_BugReportApi = "BugReport";
|
|
13
|
-
class BugReportModule_Class extends
|
|
28
|
+
class BugReportModule_Class extends ts_common_1.Module {
|
|
14
29
|
constructor() {
|
|
15
30
|
super("BugReportModule");
|
|
16
31
|
this.reports = [];
|
|
@@ -21,8 +36,8 @@ class BugReportModule_Class extends module_1.Module {
|
|
|
21
36
|
reports: this.reports.map(report => ({ log: report.buffers, name: report.name })),
|
|
22
37
|
platforms
|
|
23
38
|
};
|
|
24
|
-
|
|
25
|
-
.createRequest(
|
|
39
|
+
frontend_1.XhrHttpModule
|
|
40
|
+
.createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_BugReportApi)
|
|
26
41
|
.setJsonBody(body)
|
|
27
42
|
.setRelativeUrl("/v1/bug-reports/report")
|
|
28
43
|
.setOnError(() => this.logWarning(`Error updating the report`))
|
|
@@ -32,11 +47,12 @@ class BugReportModule_Class extends module_1.Module {
|
|
|
32
47
|
Dialog_JiraOpened_1.Dialog_JiraOpened.show(jiraTicket.issueId);
|
|
33
48
|
});
|
|
34
49
|
};
|
|
35
|
-
this.reports
|
|
36
|
-
this.reports
|
|
50
|
+
ts_common_1.addItemToArray(this.reports, new ts_common_1.LogClient_MemBuffer("default"));
|
|
51
|
+
ts_common_1.addItemToArray(this.reports, new ts_common_1.LogClient_MemBuffer("info")
|
|
52
|
+
.setFilter(level => ts_common_1.LogLevelOrdinal.indexOf(level) >= ts_common_1.LogLevelOrdinal.indexOf(ts_common_1.LogLevel.Info)));
|
|
37
53
|
}
|
|
38
54
|
init() {
|
|
39
|
-
this.reports.forEach(report =>
|
|
55
|
+
this.reports.forEach(report => ts_common_1.BeLogged.addClient(report));
|
|
40
56
|
}
|
|
41
57
|
}
|
|
42
58
|
exports.BugReportModule_Class = BugReportModule_Class;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,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,EAAC,CAAC,CAAC;gBAC/E,SAAS;aACT,CAAC;YAEF,wBAAa;iBACX,aAAa,CAAe,yBAAU,CAAC,IAAI,EAAE,+BAAuB,CAAC;iBACrE,WAAW,CAAC,IAAI,CAAC;iBACjB,cAAc,CAAC,wBAAwB,CAAC;iBACxC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;iBAC9D,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACrB,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,KAAK,mBAAa,CAAC,CAAC;gBAC9E,IAAG,UAAU;oBACZ,qCAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;YAC5C,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QA3BD,0BAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,+BAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjE,0BAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,+BAAmB,CAAC,MAAM,CAAC;aAC1D,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAe,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,2BAAe,CAAC,OAAO,CAAC,oBAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjG,CAAC;IAES,IAAI;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,oBAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;CAqBD;AAnCD,sDAmCC;AAEY,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { BaseComponent } from "@intuitionrobotics/thunderstorm/
|
|
3
|
-
import { OnRequestListener } from "@intuitionrobotics/thunderstorm
|
|
2
|
+
import { BaseComponent } from "@intuitionrobotics/thunderstorm/frontend";
|
|
3
|
+
import { OnRequestListener } from "@intuitionrobotics/thunderstorm";
|
|
4
4
|
export declare class AdminBR extends BaseComponent implements OnRequestListener {
|
|
5
5
|
render(): React.JSX.Element;
|
|
6
6
|
private createRow;
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
21
|
exports.AdminBR = void 0;
|
|
4
22
|
const React = require("react");
|
|
5
23
|
const AdminBRModule_1 = require("../modules/AdminBRModule");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
class AdminBR extends
|
|
24
|
+
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
25
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
26
|
+
class AdminBR extends frontend_1.BaseComponent {
|
|
9
27
|
constructor() {
|
|
10
28
|
super(...arguments);
|
|
11
29
|
this.createRow = (report) => React.createElement("tr", null,
|
|
12
|
-
React.createElement("td", { style: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
border: "1px solid #ddd",
|
|
16
|
-
fontSize: "15px"
|
|
17
|
-
} }, report.description),
|
|
18
|
-
React.createElement("td", { style: {
|
|
19
|
-
padding: "15px",
|
|
20
|
-
textAlign: "left",
|
|
21
|
-
border: "1px solid #ddd",
|
|
22
|
-
fontSize: "15px"
|
|
23
|
-
} }, report.reports[0].path),
|
|
24
|
-
React.createElement("td", { style: {
|
|
25
|
-
padding: "15px",
|
|
26
|
-
textAlign: "left",
|
|
27
|
-
border: "1px solid #ddd",
|
|
28
|
-
fontSize: "15px"
|
|
29
|
-
} }, tools_1.__stringify(report.tickets)),
|
|
30
|
+
React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, report.description),
|
|
31
|
+
React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, report.reports[0].path),
|
|
32
|
+
React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } }, ts_common_1.__stringify(report.tickets)),
|
|
30
33
|
React.createElement("td", { style: { padding: "15px", textAlign: "left", border: "1px solid #ddd", fontSize: "15px" } },
|
|
31
34
|
React.createElement("button", { onClick: () => AdminBRModule_1.AdminBRModule.downloadMultiLogs(report.reports) }, "download")));
|
|
32
35
|
this.__onRequestCompleted = (key, success) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminBR.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/AdminBR.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AdminBR.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/AdminBR.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,+BAA+B;AAC/B,4DAGkC;AAClC,uEAAwE;AAExE,4DAAyD;AAGzD,MAAa,OACZ,SAAQ,wBAAa;IADtB;;QAgBS,cAAS,GAAG,CAAC,MAAoB,EAAE,EAAE,CAAC;YAC7C,4BAAI,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAC,IAAG,MAAM,CAAC,WAAW,CAAM;YACtH,4BAAI,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAC,IAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAM;YAC1H,4BAAI,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAC,IAAG,uBAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAM;YAC/H,4BAAI,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAC;gBAC1F,gCAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,6BAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,eAAmB,CACrF,CACD,CAAC;QAEN,yBAAoB,GAAG,CAAC,GAAW,EAAE,OAAgB,EAAE,EAAE;YACxD,QAAQ,GAAG,EAAE;gBACZ;oBACC,OAAO;gBAER,KAAK,iCAAiB;oBACrB,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACF,CAAC,CAAC;IACH,CAAC;IA9BA,MAAM;QACL,MAAM,IAAI,GAAG,6BAAa,CAAC,OAAO,EAAE,CAAC;QACrC,OAAO,CACN;YACC,gCAAQ,OAAO,EAAE,6BAAa,CAAC,YAAY,4BAAgC;YAC3E;gBACC,+BAAO,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC,IAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAS,CAC5D,CACD,CACN,CAAC;IACH,CAAC;CAoBD;AAlCD,0BAkCC"}
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
21
|
exports.BugReport = void 0;
|
|
4
22
|
const React = require("react");
|
|
5
23
|
const BugReportModule_1 = require("../modules/BugReportModule");
|
|
6
|
-
const
|
|
24
|
+
const frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
|
|
25
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
7
26
|
const api_1 = require("../../shared/api");
|
|
8
|
-
const DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
|
|
9
|
-
const Dialog_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/Dialog");
|
|
10
|
-
const ToasterModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/toaster/ToasterModule");
|
|
11
|
-
const TS_Input_1 = require("@intuitionrobotics/thunderstorm/app-frontend/components/TS_Input");
|
|
12
|
-
const TS_TextArea_1 = require("@intuitionrobotics/thunderstorm/app-frontend/components/TS_TextArea");
|
|
13
27
|
const style = {
|
|
14
28
|
cursor: "pointer",
|
|
15
29
|
display: "flex",
|
|
@@ -32,12 +46,12 @@ class BugReport extends React.Component {
|
|
|
32
46
|
const title = "Bug Report";
|
|
33
47
|
const onSubmit = () => {
|
|
34
48
|
if (!this.state.subject)
|
|
35
|
-
return
|
|
49
|
+
return frontend_1.ToastModule.toastError('you must first add a subject');
|
|
36
50
|
if (!this.state.description)
|
|
37
|
-
return
|
|
51
|
+
return frontend_1.ToastModule.toastError('you must first add a description');
|
|
38
52
|
BugReportModule_1.BugReportModule.sendBugReport(this.state.subject, this.state.description || '', [api_1.Platform_Jira]);
|
|
39
53
|
this.setState({ subject: undefined, description: undefined });
|
|
40
|
-
|
|
54
|
+
frontend_1.DialogModule.close();
|
|
41
55
|
};
|
|
42
56
|
const content = React.createElement("div", { className: 'll_v_c' },
|
|
43
57
|
React.createElement("div", { style: {
|
|
@@ -46,15 +60,15 @@ class BugReport extends React.Component {
|
|
|
46
60
|
width: "91%",
|
|
47
61
|
margin: "8px"
|
|
48
62
|
} },
|
|
49
|
-
React.createElement(
|
|
50
|
-
React.createElement(
|
|
51
|
-
new
|
|
63
|
+
React.createElement(frontend_1.TS_Input, { id: "bug-report-subject", type: "text", value: this.state.subject || '', placeholder: "type bug name here", name: ts_common_1.generateHex(8), onChange: (subject) => this.setState({ subject }) })),
|
|
64
|
+
React.createElement(frontend_1.TS_TextArea, { id: "bug-report-description", type: "text", style: { height: "110px", margin: "8px", width: "100%", outline: "none" }, value: this.state.description || '', placeholder: "type bug description here", onChange: (description) => this.setState({ description }) }));
|
|
65
|
+
new frontend_1.Dialog_Builder(content)
|
|
52
66
|
.setTitle(title)
|
|
53
|
-
.addButton(
|
|
67
|
+
.addButton(frontend_1.DialogButton_Cancel(() => {
|
|
54
68
|
this.setState({ description: undefined, subject: undefined });
|
|
55
|
-
|
|
69
|
+
frontend_1.DialogModule.close();
|
|
56
70
|
}))
|
|
57
|
-
.addButton(
|
|
71
|
+
.addButton(frontend_1.DialogButton_Submit(() => onSubmit(), 'Submit'))
|
|
58
72
|
.setOverlayColor("rgba(102, 255, 255, 0.4)")
|
|
59
73
|
.show();
|
|
60
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BugReport.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/BugReport.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"BugReport.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/BugReport.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,+BAA+B;AAC/B,gEAA2D;AAC3D,uEAQkD;AAClD,4DAAyD;AACzD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AA;IAChB,CAAC;IAED,iBAAiB,CAAC,KAAY,EAAE,SAA0B;QACzD,iCAAe,CAAC,aAAa,CAAC,sBAAsB,EAAE,2CAA2C,EAAC,CAAC,oBAAc,CAAC,CAAC,CAAC;QACpH,IAAI,CAAC,QAAQ,CAAC;YACC,KAAK,EAAE,KAAK;YACZ,SAAS,EAAE,SAAS;SACpB,CAAC,CAAC;IAClB,CAAC;IAqDD,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;YACzB,OAAO,CACN;gBACC,wDAA8B;gBAC9B,iCAAS,KAAK,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC;oBACtC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE;oBAChD,+BAAK;oBACJ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAC3B;gBACV,gCAAQ,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAkB,CAC1E,CACN,CAAC;SACF;QAED,OAAO,CACN;YACE,IAAI,CAAC,KAAK,CAAC,QAAQ;YACpB,6BACC,OAAO,EAAE,IAAI,CAAC,gCAAgC,IAC7C,IAAI,CAAC,KAAK,CAAC,SAAS;gBACrB,gCAAQ,KAAK,EAAE,KAAK,QAAY,CAC3B,CACJ,CACH,CAAC;IACH,CAAC;CACD;AA7FD,8BA6FC;AAAA,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Dialog_JiraOpened = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
4
|
const DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
|
|
6
5
|
const BaseComponent_1 = require("@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent");
|
|
6
|
+
const React = require("react");
|
|
7
7
|
class Dialog_JiraOpened extends BaseComponent_1.BaseComponent {
|
|
8
8
|
constructor(props) {
|
|
9
9
|
super(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog_JiraOpened.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/Dialog_JiraOpened.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;
|
|
1
|
+
{"version":3,"file":"Dialog_JiraOpened.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/Dialog_JiraOpened.tsx"],"names":[],"mappings":";;;AAAA,2GAAwG;AACxG,mGAA8F;AAC9F,+BAA+B;AAO/B,MAAa,iBACZ,SAAQ,6BAAwB;IAGhC,YAAY,KAAW;QACtB,KAAK,CAAC,KAAK,CAAC,CAAC;QASd,mBAAc,GAAG,GAAG,EAAE;YACrB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG;gBACjB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC,CAAC;IAXF,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,GAAW;QAC7B,IAAI,6BAAc,CAAC,oBAAC,iBAAiB,IAAC,GAAG,EAAE,GAAG,GAAG,CAAC;aAChD,uBAAuB,CAAC,IAAI,CAAC;aAC7B,IAAI,EAAE,CAAC;IACV,CAAC;IAOD,MAAM;QACL,OAAO,6BAAK,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAC;YACxD,6BAAK,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAC;gBAC/D,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,cAAe;gBAC3G,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAC,wCAAyC;gBACpI,6BAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC;oBACjD,6BACC,SAAS,EAAE,kBAAkB,EAC7B,KAAK,EAAE;4BACN,UAAU,EAAE,aAAa;4BACzB,MAAM,EAAE,EAAE;4BACV,YAAY,EAAE,EAAE;4BAChB,WAAW,EAAE,EAAE;4BACf,YAAY,EAAE,EAAE;4BAChB,QAAQ,EAAE,MAAM;4BAChB,KAAK,EAAE,eAAe;4BACtB,QAAQ,EAAE,UAAU;4BACpB,KAAK,EAAE,KAAK;yBACZ,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,sBAE/B,CACD,CACD,CACD,CAAC;IACR,CAAC;CACD;AA7CD,8CA6CC"}
|
package/backend.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./app-backend/core/module-pack";
|
|
2
|
+
export * from "./app-backend/modules/AdminBRModule";
|
|
3
|
+
export * from "./app-backend/modules/BugReportModule";
|
|
4
|
+
export * from "./app-backend/modules/JiraBugReportIntegrator";
|
|
5
|
+
export * from "./app-backend/modules/SlackBugReportIntegrator";
|
package/backend.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
__exportStar(require("./app-backend/core/module-pack"), exports);
|
|
32
|
+
__exportStar(require("./app-backend/modules/AdminBRModule"), exports);
|
|
33
|
+
__exportStar(require("./app-backend/modules/BugReportModule"), exports);
|
|
34
|
+
__exportStar(require("./app-backend/modules/JiraBugReportIntegrator"), exports);
|
|
35
|
+
__exportStar(require("./app-backend/modules/SlackBugReportIntegrator"), exports);
|
|
36
|
+
//# sourceMappingURL=backend.js.map
|
package/backend.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAE/C,sEAAoD;AACpD,wEAAsD;AACtD,gFAA8D;AAC9D,iFAA+D"}
|
package/frontend.d.ts
ADDED
package/frontend.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
__exportStar(require("./app-frontend/core/module-pack"), exports);
|
|
32
|
+
__exportStar(require("./app-frontend/ui/BugReport"), exports);
|
|
33
|
+
__exportStar(require("./app-frontend/ui/AdminBR"), exports);
|
|
34
|
+
//# sourceMappingURL=frontend.js.map
|
package/frontend.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend.js","sourceRoot":"","sources":["../src/main/frontend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,kEAAgD;AAChD,8DAA2C;AAC3C,4DAAyC"}
|
package/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./shared/api";
|
package/index.js
CHANGED
|
@@ -1,2 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
__exportStar(require("./shared/api"), exports);
|
|
2
32
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,+CAA6B"}
|
package/package.json
CHANGED
package/shared/api.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm
|
|
2
|
-
import { Auditable
|
|
1
|
+
import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm";
|
|
2
|
+
import { Auditable } from "@intuitionrobotics/ts-common";
|
|
3
3
|
import { TicketDetails } from "../app-backend/modules/BugReportModule";
|
|
4
|
+
declare type DB_Object = {
|
|
5
|
+
_id: string;
|
|
6
|
+
};
|
|
4
7
|
export declare type BugReport = {
|
|
5
8
|
name: string;
|
|
6
9
|
log: string[];
|
|
@@ -40,3 +43,4 @@ export declare type SecuredUrl = {
|
|
|
40
43
|
export declare type ApiGetLog = ApiWithQuery<string, DB_BugReport[]>;
|
|
41
44
|
export declare type ApiPostPath = ApiWithBody<'/v1/bug-reports/download-logs', Paths, SecuredUrl>;
|
|
42
45
|
export declare type ApiBugReport = ApiWithBody<'/v1/bug-reports/report', Request_BugReport, TicketDetails[]>;
|
|
46
|
+
export {};
|
package/shared/api.js
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Permissions management system, define access level for each of
|
|
4
|
+
* your server apis, and restrict users by giving them access levels
|
|
5
|
+
*
|
|
6
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
2
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
21
|
exports.Platform_Slack = exports.Platform_Jira = void 0;
|
|
4
22
|
exports.Platform_Jira = "jira";
|
package/shared/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/main/shared/api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/main/shared/api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAkBU,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC"}
|