@intuitionrobotics/bug-report 0.47.59 → 1.0.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.
Files changed (130) hide show
  1. package/LICENSE +3 -0
  2. package/dist/app-backend/api/_bug-report.d.ts +4 -0
  3. package/dist/app-backend/api/_bug-report.d.ts.map +1 -0
  4. package/dist/app-backend/api/_bug-report.js +3 -0
  5. package/{app-backend → dist/app-backend}/api/_bug-report.js.map +1 -1
  6. package/dist/app-backend/api/v1/bug-reports/_imports.d.ts +4 -0
  7. package/dist/app-backend/api/v1/bug-reports/_imports.d.ts.map +1 -0
  8. package/dist/app-backend/api/v1/bug-reports/_imports.js +4 -0
  9. package/{app-backend → dist/app-backend}/api/v1/bug-reports/_imports.js.map +1 -1
  10. package/dist/app-backend/api/v1/bug-reports/download.d.ts +13 -0
  11. package/dist/app-backend/api/v1/bug-reports/download.d.ts.map +1 -0
  12. package/dist/app-backend/api/v1/bug-reports/download.js +12 -0
  13. package/dist/app-backend/api/v1/bug-reports/download.js.map +1 -0
  14. package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts +9 -0
  15. package/dist/app-backend/api/v1/bug-reports/get-logs.d.ts.map +1 -0
  16. package/dist/app-backend/api/v1/bug-reports/get-logs.js +12 -0
  17. package/dist/app-backend/api/v1/bug-reports/get-logs.js.map +1 -0
  18. package/dist/app-backend/api/v1/bug-reports/reports.d.ts +9 -0
  19. package/dist/app-backend/api/v1/bug-reports/reports.d.ts.map +1 -0
  20. package/dist/app-backend/api/v1/bug-reports/reports.js +25 -0
  21. package/dist/app-backend/api/v1/bug-reports/reports.js.map +1 -0
  22. package/dist/app-backend/core/module-pack.d.ts +2 -0
  23. package/dist/app-backend/core/module-pack.d.ts.map +1 -0
  24. package/dist/app-backend/core/module-pack.js +15 -0
  25. package/dist/app-backend/core/module-pack.js.map +1 -0
  26. package/{app-backend → dist/app-backend}/modules/AdminBRModule.d.ts +2 -1
  27. package/dist/app-backend/modules/AdminBRModule.d.ts.map +1 -0
  28. package/dist/app-backend/modules/AdminBRModule.js +24 -0
  29. package/dist/app-backend/modules/AdminBRModule.js.map +1 -0
  30. package/{app-backend → dist/app-backend}/modules/BugReportModule.d.ts +2 -1
  31. package/dist/app-backend/modules/BugReportModule.d.ts.map +1 -0
  32. package/dist/app-backend/modules/BugReportModule.js +53 -0
  33. package/dist/app-backend/modules/BugReportModule.js.map +1 -0
  34. package/{app-backend → dist/app-backend}/modules/JiraBugReportIntegrator.d.ts +4 -3
  35. package/dist/app-backend/modules/JiraBugReportIntegrator.d.ts.map +1 -0
  36. package/dist/app-backend/modules/JiraBugReportIntegrator.js +29 -0
  37. package/dist/app-backend/modules/JiraBugReportIntegrator.js.map +1 -0
  38. package/{app-backend → dist/app-backend}/modules/SlackBugReportIntegrator.d.ts +3 -2
  39. package/dist/app-backend/modules/SlackBugReportIntegrator.d.ts.map +1 -0
  40. package/dist/app-backend/modules/SlackBugReportIntegrator.js +28 -0
  41. package/dist/app-backend/modules/SlackBugReportIntegrator.js.map +1 -0
  42. package/dist/app-frontend/core/module-pack.d.ts +4 -0
  43. package/dist/app-frontend/core/module-pack.d.ts.map +1 -0
  44. package/dist/app-frontend/core/module-pack.js +9 -0
  45. package/dist/app-frontend/core/module-pack.js.map +1 -0
  46. package/{app-frontend → dist/app-frontend}/modules/AdminBRModule.d.ts +2 -1
  47. package/dist/app-frontend/modules/AdminBRModule.d.ts.map +1 -0
  48. package/dist/app-frontend/modules/AdminBRModule.js +39 -0
  49. package/dist/app-frontend/modules/AdminBRModule.js.map +1 -0
  50. package/{app-frontend → dist/app-frontend}/modules/BugReportModule.d.ts +1 -0
  51. package/dist/app-frontend/modules/BugReportModule.d.ts.map +1 -0
  52. package/dist/app-frontend/modules/BugReportModule.js +38 -0
  53. package/dist/app-frontend/modules/BugReportModule.js.map +1 -0
  54. package/{app-frontend → dist/app-frontend}/ui/AdminBR.d.ts +3 -2
  55. package/dist/app-frontend/ui/AdminBR.d.ts.map +1 -0
  56. package/dist/app-frontend/ui/AdminBR.js +30 -0
  57. package/dist/app-frontend/ui/AdminBR.js.map +1 -0
  58. package/{app-frontend → dist/app-frontend}/ui/BugReport.d.ts +1 -0
  59. package/dist/app-frontend/ui/BugReport.d.ts.map +1 -0
  60. package/dist/app-frontend/ui/BugReport.js +80 -0
  61. package/dist/app-frontend/ui/BugReport.js.map +1 -0
  62. package/{app-frontend → dist/app-frontend}/ui/Dialog_JiraOpened.d.ts +1 -0
  63. package/dist/app-frontend/ui/Dialog_JiraOpened.d.ts.map +1 -0
  64. package/{app-frontend → dist/app-frontend}/ui/Dialog_JiraOpened.js +9 -13
  65. package/dist/app-frontend/ui/Dialog_JiraOpened.js.map +1 -0
  66. package/dist/backend.d.ts +6 -0
  67. package/dist/backend.d.ts.map +1 -0
  68. package/dist/backend.js +6 -0
  69. package/dist/backend.js.map +1 -0
  70. package/dist/frontend.d.ts +4 -0
  71. package/dist/frontend.d.ts.map +1 -0
  72. package/dist/frontend.js +3 -0
  73. package/dist/frontend.js.map +1 -0
  74. package/dist/index.d.ts +2 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +2 -0
  77. package/dist/index.js.map +1 -0
  78. package/{shared → dist/shared}/api.d.ts +4 -3
  79. package/dist/shared/api.d.ts.map +1 -0
  80. package/dist/shared/api.js +6 -0
  81. package/dist/shared/api.js.map +1 -0
  82. package/dist/tsconfig.tsbuildinfo +1 -0
  83. package/package.json +65 -16
  84. package/app-backend/api/_bug-report.d.ts +0 -1
  85. package/app-backend/api/_bug-report.js +0 -5
  86. package/app-backend/api/v1/bug-reports/_imports.d.ts +0 -3
  87. package/app-backend/api/v1/bug-reports/_imports.js +0 -20
  88. package/app-backend/api/v1/bug-reports/download.d.ts +0 -1
  89. package/app-backend/api/v1/bug-reports/download.js +0 -25
  90. package/app-backend/api/v1/bug-reports/download.js.map +0 -1
  91. package/app-backend/api/v1/bug-reports/get-logs.d.ts +0 -1
  92. package/app-backend/api/v1/bug-reports/get-logs.js +0 -25
  93. package/app-backend/api/v1/bug-reports/get-logs.js.map +0 -1
  94. package/app-backend/api/v1/bug-reports/reports.d.ts +0 -1
  95. package/app-backend/api/v1/bug-reports/reports.js +0 -29
  96. package/app-backend/api/v1/bug-reports/reports.js.map +0 -1
  97. package/app-backend/core/module-pack.d.ts +0 -1
  98. package/app-backend/core/module-pack.js +0 -18
  99. package/app-backend/core/module-pack.js.map +0 -1
  100. package/app-backend/modules/AdminBRModule.js +0 -35
  101. package/app-backend/modules/AdminBRModule.js.map +0 -1
  102. package/app-backend/modules/BugReportModule.js +0 -65
  103. package/app-backend/modules/BugReportModule.js.map +0 -1
  104. package/app-backend/modules/JiraBugReportIntegrator.js +0 -42
  105. package/app-backend/modules/JiraBugReportIntegrator.js.map +0 -1
  106. package/app-backend/modules/SlackBugReportIntegrator.js +0 -40
  107. package/app-backend/modules/SlackBugReportIntegrator.js.map +0 -1
  108. package/app-frontend/core/module-pack.d.ts +0 -3
  109. package/app-frontend/core/module-pack.js +0 -26
  110. package/app-frontend/core/module-pack.js.map +0 -1
  111. package/app-frontend/modules/AdminBRModule.js +0 -51
  112. package/app-frontend/modules/AdminBRModule.js.map +0 -1
  113. package/app-frontend/modules/BugReportModule.js +0 -42
  114. package/app-frontend/modules/BugReportModule.js.map +0 -1
  115. package/app-frontend/ui/AdminBR.js +0 -35
  116. package/app-frontend/ui/AdminBR.js.map +0 -1
  117. package/app-frontend/ui/BugReport.js +0 -84
  118. package/app-frontend/ui/BugReport.js.map +0 -1
  119. package/app-frontend/ui/Dialog_JiraOpened.js.map +0 -1
  120. package/backend.d.ts +0 -5
  121. package/backend.js +0 -22
  122. package/backend.js.map +0 -1
  123. package/frontend.d.ts +0 -3
  124. package/frontend.js +0 -20
  125. package/frontend.js.map +0 -1
  126. package/index.d.ts +0 -1
  127. package/index.js +0 -18
  128. package/index.js.map +0 -1
  129. package/shared/api.js +0 -6
  130. package/shared/api.js.map +0 -1
package/LICENSE ADDED
@@ -0,0 +1,3 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ Full license here: http://www.apache.org/licenses/LICENSE-2.0
@@ -0,0 +1,4 @@
1
+ import { RouteResolver } from "@intuitionrobotics/thunderstorm/backend";
2
+ declare const _default: RouteResolver;
3
+ export default _default;
4
+ //# sourceMappingURL=_bug-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_bug-report.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/api/_bug-report.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,yCAAyC,CAAC;;AAEtE,wBAAkD"}
@@ -0,0 +1,3 @@
1
+ import { RouteResolver } from "@intuitionrobotics/thunderstorm/backend";
2
+ export default new RouteResolver(import.meta.url);
3
+ //# sourceMappingURL=_bug-report.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_bug-report.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/_bug-report.ts"],"names":[],"mappings":";;AACA,qEAAsE;AAEtE,MAAM,CAAC,OAAO,GAAG,IAAI,uBAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"_bug-report.js","sourceRoot":"","sources":["../../../src/main/app-backend/api/_bug-report.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,yCAAyC,CAAC;AAEtE,eAAe,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "../../../../shared/api.js";
2
+ export * from "../../../modules/BugReportModule.js";
3
+ export * from "../../../modules/AdminBRModule.js";
4
+ //# sourceMappingURL=_imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_imports.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/_imports.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from "../../../../shared/api.js";
2
+ export * from "../../../modules/BugReportModule.js";
3
+ export * from "../../../modules/AdminBRModule.js";
4
+ //# sourceMappingURL=_imports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_imports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/_imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,yDAAuC;AACvC,mEAAiD;AACjD,iEAA8C"}
1
+ {"version":3,"file":"_imports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/_imports.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { ApiResponse, type ExpressRequest, ServerApi_Post } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { type ApiPostPath, type Paths } from "./_imports.js";
3
+ declare class ServerApi_DownloadLogs extends ServerApi_Post<ApiPostPath> {
4
+ constructor();
5
+ protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Paths): Promise<{
6
+ fileName: string;
7
+ securedUrl: string;
8
+ publicUrl: string;
9
+ }>;
10
+ }
11
+ declare const _default: ServerApi_DownloadLogs;
12
+ export default _default;
13
+ //# sourceMappingURL=download.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EACX,KAAK,cAAc,EACnB,cAAc,EACd,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,MAAM,eAAe,CAAC;AAEvB,cAAM,sBACL,SAAQ,cAAc,CAAC,WAAW,CAAC;;cAMnB,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK;;;;;CAGpG;;AAED,wBAA4C"}
@@ -0,0 +1,12 @@
1
+ import { ApiResponse, ServerApi_Post } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { AdminBRModule } from "./_imports.js";
3
+ class ServerApi_DownloadLogs extends ServerApi_Post {
4
+ constructor() {
5
+ super("download-logs");
6
+ }
7
+ async process(request, response, queryParams, body) {
8
+ return AdminBRModule.downloadFiles(body);
9
+ }
10
+ }
11
+ export default new ServerApi_DownloadLogs();
12
+ //# sourceMappingURL=download.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/download.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EAEX,cAAc,EACd,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACN,aAAa,EAGb,MAAM,eAAe,CAAC;AAEvB,MAAM,sBACL,SAAQ,cAA2B;IAEnC;QACC,KAAK,CAAC,eAAe,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"}
@@ -0,0 +1,9 @@
1
+ import { ApiResponse, type ExpressRequest, ServerApi_Get } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { type ApiGetLog } from "./_imports.js";
3
+ declare class ServerApi_GetReport extends ServerApi_Get<ApiGetLog> {
4
+ constructor();
5
+ protected process(_request: ExpressRequest, _response: ApiResponse, _queryParams: {}, _body: void): Promise<import("./_imports.js").DB_BugReport[]>;
6
+ }
7
+ declare const _default: ServerApi_GetReport;
8
+ export default _default;
9
+ //# sourceMappingURL=get-logs.d.ts.map
@@ -0,0 +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,EACN,WAAW,EACX,KAAK,cAAc,EACnB,aAAa,EACb,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEN,KAAK,SAAS,EACd,MAAM,eAAe,CAAC;AAEvB,cAAM,mBACL,SAAQ,aAAa,CAAC,SAAS,CAAC;;cAMhB,OAAO,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI;CAGvG;;AAED,wBAAyC"}
@@ -0,0 +1,12 @@
1
+ import { ApiResponse, ServerApi_Get, } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { AdminBRModule } from "./_imports.js";
3
+ class ServerApi_GetReport extends ServerApi_Get {
4
+ constructor() {
5
+ super("get-logs");
6
+ }
7
+ async process(_request, _response, _queryParams, _body) {
8
+ return AdminBRModule.getFilesFirebase();
9
+ }
10
+ }
11
+ export default new ServerApi_GetReport();
12
+ //# sourceMappingURL=get-logs.js.map
@@ -0,0 +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,EACN,WAAW,EAEX,aAAa,GACb,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACN,aAAa,EAEb,MAAM,eAAe,CAAC;AAEvB,MAAM,mBACL,SAAQ,aAAwB;IAEhC;QACC,KAAK,CAAC,UAAU,CAAC,CAAC;IACnB,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"}
@@ -0,0 +1,9 @@
1
+ import { ApiResponse, type ExpressRequest, ServerApi_Post } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { type ApiBugReport, type Request_BugReport } from "./_imports.js";
3
+ declare class ServerApi_SendReport extends ServerApi_Post<ApiBugReport> {
4
+ constructor();
5
+ protected process(request: ExpressRequest, response: ApiResponse, queryParams: {}, body: Request_BugReport): Promise<import("./_imports.js").TicketDetails[]>;
6
+ }
7
+ declare const _default: ServerApi_SendReport;
8
+ export default _default;
9
+ //# sourceMappingURL=reports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EAEX,KAAK,cAAc,EACnB,cAAc,EACd,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,iBAAiB,EACtB,MAAM,eAAe,CAAC;AAKvB,cAAM,oBACL,SAAQ,cAAc,CAAC,YAAY,CAAC;;cAgBpB,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB;CAMhH;;AAED,wBAA0C"}
@@ -0,0 +1,25 @@
1
+ import { ApiResponse, dispatch_queryRequestInfo, ServerApi_Post, } from "@intuitionrobotics/thunderstorm/backend";
2
+ import { BugReportModule } from "./_imports.js";
3
+ import { validateArray, validateObjectValues, validateString } from "@intuitionrobotics/ts-common";
4
+ // import {AccountModule} from "@intuitionrobotics/user-account/backend";
5
+ class ServerApi_SendReport extends ServerApi_Post {
6
+ constructor() {
7
+ super("report");
8
+ this.setBodyValidator({
9
+ subject: validateString(),
10
+ description: validateString(),
11
+ reports: validateArray(validateObjectValues({
12
+ name: validateString(),
13
+ log: validateArray(validateString())
14
+ })),
15
+ platforms: validateArray(validateString())
16
+ });
17
+ }
18
+ async process(request, response, queryParams, body) {
19
+ const resp = await dispatch_queryRequestInfo.dispatchModuleAsync(request);
20
+ const userId = resp.find(e => e.key === 'AccountsModule')?.data?.email || resp.find(e => e.key === 'RemoteProxy')?.data;
21
+ return await BugReportModule.saveFile(body, userId);
22
+ }
23
+ }
24
+ export default new ServerApi_SendReport();
25
+ //# sourceMappingURL=reports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EACX,yBAAyB,EAEzB,cAAc,GACd,MAAM,yCAAyC,CAAC;AACjD,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,cAA4B;IAEpC;QACC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,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"}
@@ -0,0 +1,2 @@
1
+ export declare const Backend_ModulePack_BugReport: (import("../modules/BugReportModule.js").BugReportModule_Class | import("../modules/AdminBRModule.js").AdminBRModule_Class | import("../modules/JiraBugReportIntegrator.js").JiraBugReportIntegrator_Class | import("@intuitionrobotics/jira").JiraModule_Class | import("../modules/SlackBugReportIntegrator.js").SlackBugReportIntegrator_Class | import("@intuitionrobotics/thunderstorm/app-backend/modules/SlackModule").SlackModule_Class)[];
2
+ //# sourceMappingURL=module-pack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-pack.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/core/module-pack.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,4BAA4B,obAOxC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { BugReportModule } from "../modules/BugReportModule.js";
2
+ import { AdminBRModule } from "../modules/AdminBRModule.js";
3
+ import { JiraBugReportIntegrator } from "../modules/JiraBugReportIntegrator.js";
4
+ import { JiraModule } from "@intuitionrobotics/jira";
5
+ import { SlackBugReportIntegrator } from "../modules/SlackBugReportIntegrator.js";
6
+ import { SlackModule } from "@intuitionrobotics/thunderstorm/app-backend/modules/SlackModule";
7
+ export const Backend_ModulePack_BugReport = [
8
+ BugReportModule,
9
+ AdminBRModule,
10
+ JiraBugReportIntegrator,
11
+ JiraModule,
12
+ SlackBugReportIntegrator,
13
+ SlackModule
14
+ ];
15
+ //# sourceMappingURL=module-pack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/module-pack.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,uBAAuB,EAAC,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAC,WAAW,EAAC,MAAM,iEAAiE,CAAC;AAG5F,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C,eAAe;IACf,aAAa;IACb,uBAAuB;IACvB,UAAU;IACV,wBAAwB;IACxB,WAAW;CACX,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
- import { DB_BugReport, Paths } from "../../shared/api";
2
+ import { type DB_BugReport, type Paths } from "../../shared/api.js";
3
3
  type Config = {
4
4
  projectId: string;
5
5
  bucket?: string;
@@ -18,3 +18,4 @@ export declare class AdminBRModule_Class extends Module<Config> {
18
18
  }
19
19
  export declare const AdminBRModule: AdminBRModule_Class;
20
20
  export {};
21
+ //# sourceMappingURL=AdminBRModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBRModule.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/modules/AdminBRModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AACpD,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,MAAM,qBAAqB,CAAC;AAQ7B,KAAK,MAAM,GAAG;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,qBAAa,mBACZ,SAAQ,MAAM,CAAC,MAAM,CAAC;;IAMtB,OAAO,CAAC,SAAS,CAAqC;IACtD,OAAO,CAAC,OAAO,CAAkB;IAEjC,SAAS,CAAC,IAAI,IAAI,IAAI;IAOtB,gBAAgB,gCAAuC;IAEvD,aAAa,GAAU,MAAM,KAAK;;;;OAIjC;CACD;AAED,eAAO,MAAM,aAAa,qBAA4B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
+ import {} from "../../shared/api.js";
3
+ import { FirebaseModule, FirestoreCollection, StorageWrapper } from "@intuitionrobotics/firebase/backend";
4
+ export class AdminBRModule_Class extends Module {
5
+ constructor() {
6
+ super("AdminBRModule");
7
+ }
8
+ bugReport;
9
+ storage;
10
+ init() {
11
+ const sessAdmin = FirebaseModule.createAdminSession();
12
+ const firestore = sessAdmin.getFirestore();
13
+ this.bugReport = firestore.getCollection('bug-report', ['_id']);
14
+ this.storage = sessAdmin.getStorage();
15
+ }
16
+ getFilesFirebase = async () => this.bugReport.getAll();
17
+ downloadFiles = async (path) => {
18
+ const bucket = await this.storage.getOrCreateBucket(this.config?.bucket);
19
+ const file = await bucket.getFile(path.path);
20
+ return file.getReadSecuredUrl(600000);
21
+ };
22
+ }
23
+ export const AdminBRModule = new AdminBRModule_Class();
24
+ //# sourceMappingURL=AdminBRModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/AdminBRModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAGN,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACN,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,MAAM,qCAAqC,CAAC;AAO7C,MAAM,OAAO,mBACZ,SAAQ,MAAc;IAEtB;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxB,CAAC;IAEO,SAAS,CAAqC;IAC9C,OAAO,CAAkB;IAEvB,IAAI;QACb,MAAM,SAAS,GAAG,cAAc,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;IAED,gBAAgB,GAAG,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;IAEvD,aAAa,GAAG,KAAK,EAAE,IAAW,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC,CAAA;CACD;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
- import { BugReport, ReportLogFile, Request_BugReport } from "../..";
2
+ import { type BugReport, type ReportLogFile, type Request_BugReport } from "../../index.js";
3
3
  export type TicketDetails = {
4
4
  platform: string;
5
5
  issueId: string;
@@ -21,3 +21,4 @@ export declare class BugReportModule_Class extends Module<Config> {
21
21
  }
22
22
  export declare const BugReportModule: BugReportModule_Class;
23
23
  export {};
24
+ //# sourceMappingURL=BugReportModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BugReportModule.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/modules/BugReportModule.ts"],"names":[],"mappings":"AACA,OAAO,EAKN,MAAM,EAEN,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EACN,KAAK,SAAS,EAEd,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,MAAM,aAAa,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CACf,CAAA;AACD,KAAK,MAAM,GAAG;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,KAAK,gBAAgB,GAAG,CAAC,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;AAEpI,qBAAa,qBACZ,SAAQ,MAAM,CAAC,MAAM,CAAC;;IAMtB,OAAO,CAAC,SAAS,CAAqC;IACtD,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,iBAAiB,CAA0B;IAEnD,SAAS,CAAC,IAAI,IAAI,IAAI;IAOtB,gBAAgB,CAAC,aAAa,EAAE,gBAAgB;IAIhD,OAAO,GAAU,QAAQ,SAAS,EAAE,IAAI,MAAM,KAAG,OAAO,CAAC,aAAa,CAAC,CAcrE;IAEF,QAAQ,GAAU,WAAW,iBAAiB,EAAE,QAAQ,MAAM,8BAoB5D;CACF;AAED,eAAO,MAAM,eAAe,uBAA8B,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { addItemToArray, auditBy, filterInstances, generateHex, Module, padNumber } from "@intuitionrobotics/ts-common";
2
+ import { FirebaseModule, FirestoreCollection, StorageWrapper } from "@intuitionrobotics/firebase/backend";
3
+ import {} from "../../index.js";
4
+ import JSZip from "jszip";
5
+ export class BugReportModule_Class extends Module {
6
+ constructor() {
7
+ super("BugReportModule");
8
+ }
9
+ bugReport;
10
+ storage;
11
+ ticketCreatorApis = [];
12
+ init() {
13
+ const sessionAdmin = FirebaseModule.createAdminSession();
14
+ const firestore = sessionAdmin.getFirestore();
15
+ this.bugReport = firestore.getCollection('bug-report', ["_id"]);
16
+ this.storage = sessionAdmin.getStorage();
17
+ }
18
+ addTicketCreator(ticketCreator) {
19
+ addItemToArray(this.ticketCreatorApis, ticketCreator);
20
+ }
21
+ saveLog = async (report, id) => {
22
+ const zip = new JSZip();
23
+ report.log.forEach((message, i) => zip.file(`${report.name}_${padNumber(i, 2)}.txt`, message));
24
+ const buffer = await zip.generateAsync({ type: "nodebuffer" });
25
+ const bucket = await this.storage.getOrCreateBucket(this.config?.bucket);
26
+ const fileName = `${id}-${report.name}.zip`;
27
+ const file = await bucket.getFile(fileName);
28
+ await 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
+ saveFile = async (bugReport, email) => {
35
+ const _id = generateHex(16);
36
+ const logs = await Promise.all(bugReport.reports.map(report => this.saveLog(report, _id)));
37
+ const instance = {
38
+ _id,
39
+ subject: bugReport.subject,
40
+ description: bugReport.description,
41
+ reports: logs,
42
+ _audit: auditBy(email || "bug-report"),
43
+ };
44
+ if (this.config?.bucket)
45
+ instance.bucket = this.config.bucket;
46
+ const tickets = await Promise.all(this.ticketCreatorApis.map(api => api(bugReport, logs, email)));
47
+ instance.tickets = filterInstances(tickets);
48
+ await this.bugReport.insert(instance);
49
+ return instance.tickets;
50
+ };
51
+ }
52
+ export const BugReportModule = new BugReportModule_Class();
53
+ //# sourceMappingURL=BugReportModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/BugReportModule.ts"],"names":[],"mappings":"AACA,OAAO,EACN,cAAc,EACd,OAAO,EACP,eAAe,EACf,WAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAKN,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,OAAO,qBACZ,SAAQ,MAAc;IAEtB;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC1B,CAAC;IAEO,SAAS,CAAqC;IAC9C,OAAO,CAAkB;IACzB,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raProject, LabelType } from "@intuitionrobotics/jira";
3
- import { ReportLogFile, Request_BugReport } from "../..";
4
- import { TicketDetails } from "./BugReportModule";
2
+ import { type IssueType, type JiraProject, type LabelType } from "@intuitionrobotics/jira";
3
+ import { type ReportLogFile, type Request_BugReport } from "../../index.js";
4
+ import { type TicketDetails } from "./BugReportModule.js";
5
5
  type Config = {
6
6
  jiraProject: JiraProject;
7
7
  issueType: IssueType;
@@ -15,3 +15,4 @@ export declare class JiraBugReportIntegrator_Class extends Module<Config> {
15
15
  }
16
16
  export declare const JiraBugReportIntegrator: JiraBugReportIntegrator_Class;
17
17
  export {};
18
+ //# sourceMappingURL=JiraBugReportIntegrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JiraBugReportIntegrator.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/modules/JiraBugReportIntegrator.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,MAAM,EACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,KAAK,SAAS,EAGd,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEN,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAExD,KAAK,MAAM,GAAG;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,qBAAa,6BACZ,SAAQ,MAAM,CAAC,MAAM,CAAC;;IAMtB,sBAAsB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM;IAIvD,OAAO,CAAC,MAAM,CAAoC;IAElD,UAAU,GAAU,WAAW,iBAAiB,EAAE,MAAM,aAAa,EAAE,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAkB7H;CACF;AAED,eAAO,MAAM,uBAAuB,+BAAsC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { ImplementationMissingException, Module } from "@intuitionrobotics/ts-common";
2
+ import { JiraModule } from "@intuitionrobotics/jira";
3
+ import { Platform_Jira } from "../../index.js";
4
+ import {} from "./BugReportModule.js";
5
+ export class JiraBugReportIntegrator_Class extends Module {
6
+ constructor() {
7
+ super("JiraBugReportIntegrator");
8
+ }
9
+ setIssueTitleProcessor(parser) {
10
+ this.parser = parser;
11
+ }
12
+ parser = (name) => `Bug: ${name}`;
13
+ openTicket = async (bugReport, logs, reporter) => {
14
+ if (bugReport.platforms && !bugReport.platforms.includes(Platform_Jira))
15
+ return;
16
+ if (!this.config.jiraProject)
17
+ throw new ImplementationMissingException("missing Jira project in bug report configurations");
18
+ const description = logs.reduce((carry, log, i) => {
19
+ carry.push({ href: log.path, text: "\nClick to view logs (" + i + ")" });
20
+ return carry;
21
+ }, [bugReport.description]);
22
+ if (reporter)
23
+ description.push("\nReported by: " + reporter);
24
+ const issue = await JiraModule.issue.create(this.config.jiraProject, this.config.issueType, this.parser(bugReport.subject), description, this.config.label?.label);
25
+ return { platform: Platform_Jira, issueId: issue.url };
26
+ };
27
+ }
28
+ export const JiraBugReportIntegrator = new JiraBugReportIntegrator_Class();
29
+ //# sourceMappingURL=JiraBugReportIntegrator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JiraBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/JiraBugReportIntegrator.ts"],"names":[],"mappings":"AACA,OAAO,EACN,8BAA8B,EAC9B,MAAM,EACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAGN,UAAU,EAGV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,aAAa,EAGb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AAQxD,MAAM,OAAO,6BACZ,SAAQ,MAAc;IAEtB;QACC,KAAK,CAAC,yBAAyB,CAAC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AM,CAAC,MAAM,uBAAuB,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
- import { ReportLogFile, Request_BugReport } from "../..";
3
- import { TicketDetails } from "./BugReportModule";
2
+ import { type ReportLogFile, type Request_BugReport } from "../../index.js";
3
+ import { type TicketDetails } from "./BugReportModule.js";
4
4
  type Config = {
5
5
  channel: string;
6
6
  };
@@ -10,3 +10,4 @@ export declare class SlackBugReportIntegrator_Class extends Module<Config> {
10
10
  }
11
11
  export declare const SlackBugReportIntegrator: SlackBugReportIntegrator_Class;
12
12
  export {};
13
+ //# sourceMappingURL=SlackBugReportIntegrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlackBugReportIntegrator.d.ts","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackBugReportIntegrator.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,MAAM,EACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAGxD,KAAK,MAAM,GAAG;IACb,OAAO,EAAE,MAAM,CAAA;CACf,CAAA;AAED,qBAAa,8BACZ,SAAQ,MAAM,CAAC,MAAM,CAAC;;IAMtB,UAAU,GAAU,WAAW,iBAAiB,EAAE,MAAM,aAAa,EAAE,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAoB7H;CACF;AAED,eAAO,MAAM,wBAAwB,gCAAuC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { generateHex, ImplementationMissingException, Module } from "@intuitionrobotics/ts-common";
2
+ import { Platform_Slack } from "../../index.js";
3
+ import {} from "./BugReportModule.js";
4
+ import { SlackModule } from "@intuitionrobotics/thunderstorm/app-backend/modules/SlackModule";
5
+ export class SlackBugReportIntegrator_Class extends Module {
6
+ constructor() {
7
+ super("SlackBugReportIntegrator");
8
+ }
9
+ openTicket = async (bugReport, logs, reporter) => {
10
+ if (bugReport.platforms && !bugReport.platforms.includes(Platform_Slack))
11
+ return;
12
+ if (!this.config.channel)
13
+ throw new ImplementationMissingException("Missing Slack Channel in bug report configurations");
14
+ let description = logs.reduce((carry, log, i) => {
15
+ return carry + "\n" + `<${log.path}|Click to view logs (${i})>`;
16
+ }, bugReport.subject + "\n" + bugReport.description);
17
+ if (reporter)
18
+ description += "\nReported by: " + reporter;
19
+ const slackMessage = {
20
+ text: description,
21
+ channel: this.config.channel
22
+ };
23
+ await SlackModule.postMessage(slackMessage);
24
+ return { platform: Platform_Slack, issueId: generateHex(32) };
25
+ };
26
+ }
27
+ export const SlackBugReportIntegrator = new SlackBugReportIntegrator_Class();
28
+ //# sourceMappingURL=SlackBugReportIntegrator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlackBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackBugReportIntegrator.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EACX,8BAA8B,EAC9B,MAAM,EACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iEAAiE,CAAC;AAM5F,MAAM,OAAO,8BACZ,SAAQ,MAAc;IAEtB;QACC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,GAAG,KAAK,EAAE,SAA4B,EAAE,IAAqB,EAAE,QAAiB,EAAsC,EAAE;QACjI,IAAG,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC;YACtE,OAAO;QAER,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;YACvB,MAAM,IAAI,8BAA8B,CAAC,oDAAoD,CAAC,CAAC;QAEhG,IAAI,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,GAAkB,EAAE,CAAS,EAAE,EAAE;YAC9E,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,wBAAwB,CAAC,IAAI,CAAC;QACjE,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;QAErD,IAAI,QAAQ;YACX,WAAW,IAAI,iBAAiB,GAAG,QAAQ,CAAC;QAE7C,MAAM,YAAY,GAAG;YACpB,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;SAC5B,CAAC;QACF,MAAM,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QAC3C,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC,EAAC,CAAC;IAC7D,CAAC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,8BAA8B,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const Frontend_ModulePack_BugReport: (import("../modules/BugReportModule.js").BugReportModule_Class | import("../modules/AdminBRModule.js").AdminBRModule_Class)[];
2
+ export * from "../modules/AdminBRModule.js";
3
+ export * from "../modules/BugReportModule.js";
4
+ //# sourceMappingURL=module-pack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-pack.d.ts","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B,+HAGzC,CAAC;AAEF,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { BugReportModule } from "../modules/BugReportModule.js";
2
+ import { AdminBRModule } from "../modules/AdminBRModule.js";
3
+ export const Frontend_ModulePack_BugReport = [
4
+ BugReportModule,
5
+ AdminBRModule
6
+ ];
7
+ export * from "../modules/AdminBRModule.js";
8
+ export * from "../modules/BugReportModule.js";
9
+ //# sourceMappingURL=module-pack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-frontend/core/module-pack.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAE1D,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,eAAe;IACf,aAAa;CACb,CAAC;AAEF,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
- import { DB_BugReport, ReportLogFile } from "../../shared/api";
2
+ import { type DB_BugReport, type ReportLogFile } from "../../shared/api.js";
3
3
  export declare const RequestKey_GetLog = "GetLog";
4
4
  export declare const RequestKey_PostPath = "PostPath";
5
5
  export declare class AdminBRModule_Class extends Module {
@@ -11,3 +11,4 @@ export declare class AdminBRModule_Class extends Module {
11
11
  getLogs: () => DB_BugReport[];
12
12
  }
13
13
  export declare const AdminBRModule: AdminBRModule_Class;
14
+ //# sourceMappingURL=AdminBRModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBRModule.d.ts","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AAGpD,OAAO,EAGN,KAAK,YAAY,EAEjB,KAAK,aAAa,EAClB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,qBAAa,mBACZ,SAAQ,MAAM;;IAMd,OAAO,CAAC,IAAI,CAAsB;IAE3B,YAAY,aAWjB;IAEK,YAAY,GAAI,MAAM,MAAM,UASjC;IAEK,iBAAiB,GAAI,SAAS,aAAa,EAAE,UAEnD;IAEM,OAAO,uBAAkB;CAChC;AAED,eAAO,MAAM,aAAa,qBAA4B,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
+ import { XhrHttpModule } from "@intuitionrobotics/thunderstorm/frontend";
3
+ import { HttpMethod } from "@intuitionrobotics/thunderstorm";
4
+ import {} from "../../shared/api.js";
5
+ export const RequestKey_GetLog = "GetLog";
6
+ export const RequestKey_PostPath = "PostPath";
7
+ export class AdminBRModule_Class extends Module {
8
+ constructor() {
9
+ super("AdminBRModule");
10
+ }
11
+ logs = [];
12
+ retrieveLogs = () => {
13
+ this.logInfo("getting logs from firestore...");
14
+ XhrHttpModule
15
+ .createRequest(HttpMethod.GET, RequestKey_GetLog)
16
+ .setRelativeUrl("/v1/bug-reports/get-logs")
17
+ .setOnError(`Error getting new message from backend`)
18
+ .execute(async (response) => {
19
+ this.logs = response;
20
+ });
21
+ this.logInfo("continue... will receive an event once request is completed..");
22
+ };
23
+ downloadLogs = (path) => {
24
+ this.logInfo("downloading the logs to the client..");
25
+ const bodyObject = { path: path };
26
+ XhrHttpModule
27
+ .createRequest(HttpMethod.POST, RequestKey_PostPath)
28
+ .setJsonBody(bodyObject)
29
+ .setRelativeUrl("/v1/bug-reports/download-logs")
30
+ .setOnError(`Error getting new message from backend`)
31
+ .execute();
32
+ };
33
+ downloadMultiLogs = (reports) => {
34
+ reports.forEach(report => this.downloadLogs(report.path));
35
+ };
36
+ getLogs = () => this.logs;
37
+ }
38
+ export const AdminBRModule = new AdminBRModule_Class();
39
+ //# sourceMappingURL=AdminBRModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBRModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/AdminBRModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC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C,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;IAC1D,CAAC,CAAA;IAEM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAA;CAChC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
@@ -7,3 +7,4 @@ export declare class BugReportModule_Class extends Module {
7
7
  sendBugReport: (subject: string, description: string, platforms?: string[]) => void;
8
8
  }
9
9
  export declare const BugReportModule: BugReportModule_Class;
10
+ //# sourceMappingURL=BugReportModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BugReportModule.d.ts","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":"AACA,OAAO,EAMN,MAAM,EACN,MAAM,8BAA8B,CAAC;AAUtC,eAAO,MAAM,uBAAuB,cAAc,CAAC;AAEnD,qBAAa,qBACZ,SAAQ,MAAM;IAEd,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;;IASrD,SAAS,CAAC,IAAI,IAAI,IAAI;IAItB,aAAa,GAAI,SAAS,MAAM,EAAE,aAAa,MAAM,EAAE,YAAY,MAAM,EAAE,UAkBzE;CACF;AAED,eAAO,MAAM,eAAe,uBAA8B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { addItemToArray, BeLogged, LogClient_MemBuffer, LogLevel, LogLevelOrdinal, Module } from "@intuitionrobotics/ts-common";
2
+ import { XhrHttpModule } from "@intuitionrobotics/thunderstorm/frontend";
3
+ import { HttpMethod } from "@intuitionrobotics/thunderstorm";
4
+ import { Platform_Jira } from "../../shared/api.js";
5
+ import { Dialog_JiraOpened } from "../ui/Dialog_JiraOpened.js";
6
+ export const RequestKey_BugReportApi = "BugReport";
7
+ export class BugReportModule_Class extends Module {
8
+ reports = [];
9
+ constructor() {
10
+ super("BugReportModule");
11
+ addItemToArray(this.reports, new LogClient_MemBuffer("default"));
12
+ addItemToArray(this.reports, new LogClient_MemBuffer("info")
13
+ .setFilter(level => LogLevelOrdinal.indexOf(level) >= LogLevelOrdinal.indexOf(LogLevel.Info)));
14
+ }
15
+ init() {
16
+ this.reports.forEach(report => BeLogged.addClient(report));
17
+ }
18
+ sendBugReport = (subject, description, platforms) => {
19
+ const body = {
20
+ subject,
21
+ description,
22
+ reports: this.reports.map(report => ({ log: report.buffers, name: report.name })),
23
+ platforms
24
+ };
25
+ XhrHttpModule
26
+ .createRequest(HttpMethod.POST, RequestKey_BugReportApi)
27
+ .setJsonBody(body)
28
+ .setRelativeUrl("/v1/bug-reports/report")
29
+ .setOnError(() => this.logWarning(`Error updating the report`))
30
+ .execute((response) => {
31
+ const jiraTicket = response.find(ticket => ticket.platform === Platform_Jira);
32
+ if (jiraTicket)
33
+ Dialog_JiraOpened.show(jiraTicket.issueId);
34
+ });
35
+ };
36
+ }
37
+ export const BugReportModule = new BugReportModule_Class();
38
+ //# sourceMappingURL=BugReportModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":"AACA,OAAO,EACN,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,eAAe,EACf,MAAM,EACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAEN,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAE7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC;AAEnD,MAAM,OAAO,qBACZ,SAAQ,MAAM;IAEG,OAAO,GAA0B,EAAE,CAAC;IAErD;QACC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,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C;CACF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { BaseComponent } from "@intuitionrobotics/thunderstorm/frontend";
3
- import { OnRequestListener } from "@intuitionrobotics/thunderstorm";
3
+ import { type OnRequestListener } from "@intuitionrobotics/thunderstorm";
4
4
  export declare class AdminBR extends BaseComponent implements OnRequestListener {
5
5
  render(): React.JSX.Element;
6
6
  private createRow;
7
- __onRequestCompleted: (key: string, success: boolean) => void;
7
+ __onRequestCompleted: (key: string, _success: boolean) => void;
8
8
  }
9
+ //# sourceMappingURL=AdminBR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminBR.d.ts","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/AdminBR.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAC,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGxE,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,iCAAiC,CAAC;AAEvE,qBAAa,OACZ,SAAQ,aACR,YAAW,iBAAiB;IAE5B,MAAM;IAYN,OAAO,CAAC,SAAS,CAOX;IAEN,oBAAoB,GAAI,KAAK,MAAM,EAAE,UAAU,OAAO,UAQpD;CACF"}