@intuitionrobotics/bug-report 2.0.1 → 2.0.2
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/dist/app-backend/api/routes.d.ts +2 -1
- package/dist/app-backend/api/routes.d.ts.map +1 -1
- package/dist/app-backend/api/routes.js +3 -4
- package/dist/app-backend/api/routes.js.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/download.d.ts +2 -2
- package/dist/app-backend/api/v1/bug-reports/download.d.ts.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/download.js +3 -3
- package/dist/app-backend/api/v1/bug-reports/download.js.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts +2 -2
- package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/get-logs.js +3 -3
- package/dist/app-backend/api/v1/bug-reports/get-logs.js.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/reports.d.ts +2 -2
- package/dist/app-backend/api/v1/bug-reports/reports.d.ts.map +1 -1
- package/dist/app-backend/api/v1/bug-reports/reports.js +3 -3
- package/dist/app-backend/api/v1/bug-reports/reports.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAa/B,eAAO,MAAM,eAAe,EAAE,MAAiB,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Auto-generated by thunderstorm-bootstrap-routes — initial seed.
|
|
2
2
|
// Hand-edit this from here. The tool runs ONCE; do not regenerate.
|
|
3
3
|
import { Router } from "express";
|
|
4
|
-
import { mount } from "@intuitionrobotics/thunderstorm/backend";
|
|
5
4
|
import download from "./v1/bug-reports/download.js";
|
|
6
5
|
import getLogs from "./v1/bug-reports/get-logs.js";
|
|
7
6
|
import reports from "./v1/bug-reports/reports.js";
|
|
8
7
|
const bugReports = Router();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
bugReports.post("/download", download.handler);
|
|
9
|
+
bugReports.get("/get-logs", getLogs.handler);
|
|
10
|
+
bugReports.post("/reports", reports.handler);
|
|
12
11
|
const v1 = Router();
|
|
13
12
|
v1.use("/bug-reports", bugReports);
|
|
14
13
|
export const bugReportRoutes = Router();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,mEAAmE;AAEnE,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/routes.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,mEAAmE;AAEnE,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAE/B,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AACpD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,OAAO,MAAM,6BAA6B,CAAC;AAClD,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAC5B,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC/C,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AAC7C,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AAE7C,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACpB,EAAE,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,eAAe,GAAW,MAAM,EAAE,CAAC;AAChD,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiResponse, type ExpressRequest,
|
|
1
|
+
import { ApiResponse, type ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { type ApiPostPath, type Paths } from "./_imports.js";
|
|
3
|
-
declare class ServerApi_DownloadLogs extends
|
|
3
|
+
declare class ServerApi_DownloadLogs extends ServerApi<ApiPostPath> {
|
|
4
4
|
constructor();
|
|
5
5
|
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Paths): Promise<{
|
|
6
6
|
fileName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,KAAK,cAAc,EAAc,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAChH,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,MAAM,eAAe,CAAC;AAEvB,cAAM,sBACL,SAAQ,SAAS,CAAC,WAAW,CAAC;;cAMd,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK;;;;;CAGpG;;AAED,wBAA4C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiResponse,
|
|
1
|
+
import { ApiResponse, HttpMethod, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { AdminBRModule } from "./_imports.js";
|
|
3
|
-
class ServerApi_DownloadLogs extends
|
|
3
|
+
class ServerApi_DownloadLogs extends ServerApi {
|
|
4
4
|
constructor() {
|
|
5
|
-
super();
|
|
5
|
+
super(HttpMethod.POST);
|
|
6
6
|
}
|
|
7
7
|
async process(request, response, queryParams, body) {
|
|
8
8
|
return AdminBRModule.downloadFiles(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAuB,UAAU,EAAE,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAChH,OAAO,EACN,aAAa,EAGb,MAAM,eAAe,CAAC;AAEvB,MAAM,sBACL,SAAQ,SAAsB;IAE9B;QACC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAW;QACnG,OAAO,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACD;AAED,eAAe,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiResponse, type ExpressRequest,
|
|
1
|
+
import { ApiResponse, type ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { type ApiGetLog } from "./_imports.js";
|
|
3
|
-
declare class ServerApi_GetReport extends
|
|
3
|
+
declare class ServerApi_GetReport extends ServerApi<ApiGetLog> {
|
|
4
4
|
constructor();
|
|
5
5
|
protected process(_request: ExpressRequest, _response: ApiResponse, _queryParams: {}, _body: void): Promise<import("./_imports.js").DB_BugReport[]>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-logs.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/get-logs.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"get-logs.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/get-logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,KAAK,cAAc,EAAc,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAChH,OAAO,EAEN,KAAK,SAAS,EACd,MAAM,eAAe,CAAC;AAEvB,cAAM,mBACL,SAAQ,SAAS,CAAC,SAAS,CAAC;;cAMZ,OAAO,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI;CAGvG;;AAED,wBAAyC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiResponse,
|
|
1
|
+
import { ApiResponse, HttpMethod, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { AdminBRModule } from "./_imports.js";
|
|
3
|
-
class ServerApi_GetReport extends
|
|
3
|
+
class ServerApi_GetReport extends ServerApi {
|
|
4
4
|
constructor() {
|
|
5
|
-
super();
|
|
5
|
+
super(HttpMethod.GET);
|
|
6
6
|
}
|
|
7
7
|
async process(_request, _response, _queryParams, _body) {
|
|
8
8
|
return AdminBRModule.getFilesFirebase();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-logs.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/get-logs.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"get-logs.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/get-logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAuB,UAAU,EAAE,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAChH,OAAO,EACN,aAAa,EAEb,MAAM,eAAe,CAAC;AAEvB,MAAM,mBACL,SAAQ,SAAoB;IAE5B;QACC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,QAAwB,EAAE,SAAsB,EAAE,YAAgB,EAAE,KAAW;QACtG,OAAO,aAAa,CAAC,gBAAgB,EAAE,CAAC;IACzC,CAAC;CACD;AAED,eAAe,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiResponse, type ExpressRequest,
|
|
1
|
+
import { ApiResponse, type ExpressRequest, ServerApi } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { type ApiBugReport, type Request_BugReport } from "./_imports.js";
|
|
3
|
-
declare class ServerApi_SendReport extends
|
|
3
|
+
declare class ServerApi_SendReport extends ServerApi<ApiBugReport> {
|
|
4
4
|
constructor();
|
|
5
5
|
protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_BugReport): Promise<import("./_imports.js").TicketDetails[]>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,KAAK,cAAc,EAAc,SAAS,EAA4B,MAAM,yCAAyC,CAAC;AAC3I,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EACtB,MAAM,eAAe,CAAC;AAKvB,cAAM,oBACL,SAAQ,SAAS,CAAC,YAAY,CAAC;;cAgBf,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB;CAMhH;;AAED,wBAA0C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ApiResponse,
|
|
1
|
+
import { ApiResponse, HttpMethod, ServerApi, dispatch_queryRequestInfo } from "@intuitionrobotics/thunderstorm/backend";
|
|
2
2
|
import { BugReportModule } from "./_imports.js";
|
|
3
3
|
import { validateArray, validateObjectValues, validateString } from "@intuitionrobotics/ts-common";
|
|
4
4
|
// import {AccountModule} from "@intuitionrobotics/user-account/backend";
|
|
5
|
-
class ServerApi_SendReport extends
|
|
5
|
+
class ServerApi_SendReport extends ServerApi {
|
|
6
6
|
constructor() {
|
|
7
|
-
super();
|
|
7
|
+
super(HttpMethod.POST);
|
|
8
8
|
this.setBodyValidator({
|
|
9
9
|
subject: validateString(),
|
|
10
10
|
description: validateString(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAuB,UAAU,EAAE,SAAS,EAAE,yBAAyB,EAAC,MAAM,yCAAyC,CAAC;AAC3I,OAAO,EAEN,eAAe,EAEf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAEjG,yEAAyE;AAEzE,MAAM,oBACL,SAAQ,SAAuB;IAE/B;QACC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACvB,IAAI,CAAC,gBAAgB,CACpB;YACC,OAAO,EAAE,cAAc,EAAE;YACzB,WAAW,EAAE,cAAc,EAAE;YAC7B,OAAO,EAAE,aAAa,CAAC,oBAAoB,CAAC;gBAC3C,IAAI,EAAE,cAAc,EAAE;gBACtB,GAAG,EAAE,aAAa,CAAC,cAAc,EAAE,CAAC;aAC7B,CAAC,CAAC;YACV,SAAS,EAAE,aAAa,CAAC,cAAc,EAAE,CAAC;SAC1C,CAAC,CAAA;IACJ,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAuB;QAC/G,MAAM,IAAI,GAAG,MAAM,yBAAyB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAuB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC,EAAE,IAAI,CAAC;QAE5I,OAAO,MAAM,eAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;CACD;AAED,eAAe,IAAI,oBAAoB,EAAE,CAAC"}
|