@intuitionrobotics/bug-report 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/app-backend/api/_bug-report.js +20 -2
  2. package/app-backend/api/_bug-report.js.map +1 -1
  3. package/app-backend/api/v1/bug-reports/_imports.d.ts +3 -0
  4. package/app-backend/api/v1/bug-reports/_imports.js +38 -0
  5. package/app-backend/api/v1/bug-reports/_imports.js.map +1 -0
  6. package/app-backend/api/v1/bug-reports/download.js +22 -4
  7. package/app-backend/api/v1/bug-reports/download.js.map +1 -1
  8. package/app-backend/api/v1/bug-reports/get-logs.js +22 -4
  9. package/app-backend/api/v1/bug-reports/get-logs.js.map +1 -1
  10. package/app-backend/api/v1/bug-reports/reports.js +24 -6
  11. package/app-backend/api/v1/bug-reports/reports.js.map +1 -1
  12. package/app-backend/core/module-pack.d.ts +1 -1
  13. package/app-backend/core/module-pack.js +20 -2
  14. package/app-backend/core/module-pack.js.map +1 -1
  15. package/app-backend/modules/AdminBRModule.d.ts +2 -2
  16. package/app-backend/modules/AdminBRModule.js +22 -4
  17. package/app-backend/modules/AdminBRModule.js.map +1 -1
  18. package/app-backend/modules/BugReportModule.d.ts +6 -6
  19. package/app-backend/modules/BugReportModule.js +27 -13
  20. package/app-backend/modules/BugReportModule.js.map +1 -1
  21. package/app-backend/modules/JiraBugReportIntegrator.d.ts +5 -5
  22. package/app-backend/modules/JiraBugReportIntegrator.js +26 -9
  23. package/app-backend/modules/JiraBugReportIntegrator.js.map +1 -1
  24. package/app-backend/modules/SlackBugReportIntegrator.d.ts +4 -4
  25. package/app-backend/modules/SlackBugReportIntegrator.js +24 -8
  26. package/app-backend/modules/SlackBugReportIntegrator.js.map +1 -1
  27. package/app-frontend/core/module-pack.d.ts +2 -0
  28. package/app-frontend/core/module-pack.js +34 -0
  29. package/app-frontend/core/module-pack.js.map +1 -1
  30. package/app-frontend/modules/AdminBRModule.d.ts +1 -1
  31. package/app-frontend/modules/AdminBRModule.js +26 -8
  32. package/app-frontend/modules/AdminBRModule.js.map +1 -1
  33. package/app-frontend/modules/BugReportModule.d.ts +2 -2
  34. package/app-frontend/modules/BugReportModule.js +28 -12
  35. package/app-frontend/modules/BugReportModule.js.map +1 -1
  36. package/app-frontend/ui/AdminBR.d.ts +2 -2
  37. package/app-frontend/ui/AdminBR.js +24 -21
  38. package/app-frontend/ui/AdminBR.js.map +1 -1
  39. package/app-frontend/ui/BugReport.d.ts +2 -2
  40. package/app-frontend/ui/BugReport.js +29 -15
  41. package/app-frontend/ui/BugReport.js.map +1 -1
  42. package/app-frontend/ui/Dialog_JiraOpened.d.ts +2 -2
  43. package/app-frontend/ui/Dialog_JiraOpened.js +1 -1
  44. package/app-frontend/ui/Dialog_JiraOpened.js.map +1 -1
  45. package/backend.d.ts +5 -0
  46. package/backend.js +40 -0
  47. package/backend.js.map +1 -0
  48. package/frontend.d.ts +3 -0
  49. package/frontend.js +38 -0
  50. package/frontend.js.map +1 -0
  51. package/index.d.ts +1 -0
  52. package/index.js +34 -0
  53. package/index.js.map +1 -1
  54. package/package.json +9 -9
  55. package/shared/api.d.ts +16 -12
  56. package/shared/api.js +18 -0
  57. package/shared/api.js.map +1 -1
package/index.js CHANGED
@@ -1,2 +1,36 @@
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
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./shared/api"), exports);
2
36
  //# 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/bug-report",
3
- "version": "0.46.00",
3
+ "version": "0.47.0",
4
4
  "description": "Bug Report",
5
5
  "keywords": [
6
6
  "IR",
@@ -24,15 +24,15 @@
24
24
  "main": "./index.js",
25
25
  "types": "./index.d.ts",
26
26
  "scripts": {
27
- "build": "tsc"
27
+ "build": "tsc -v && tsc -p src/main/tsconfig.json --rootDir ./src/main --outDir dist"
28
28
  },
29
29
  "dependencies": {
30
- "@intuitionrobotics/ts-common": "~0.46.0",
31
- "@intuitionrobotics/firebase": "~0.46.0",
32
- "@intuitionrobotics/testelot": "~0.46.0",
33
- "@intuitionrobotics/thunderstorm": "~0.46.0",
34
- "@intuitionrobotics/user-account": "~0.46.0",
35
- "@intuitionrobotics/jira": "~0.46.0",
30
+ "@intuitionrobotics/ts-common": "~0.47.0",
31
+ "@intuitionrobotics/firebase": "~0.47.0",
32
+ "@intuitionrobotics/testelot": "~0.47.0",
33
+ "@intuitionrobotics/thunderstorm": "~0.47.0",
34
+ "@intuitionrobotics/user-account": "~0.47.0",
35
+ "@intuitionrobotics/jira": "~0.47.0",
36
36
  "express": "^4.16.4",
37
37
  "jszip": "^3.3.0",
38
38
  "moment": "^2.29.4",
@@ -45,6 +45,6 @@
45
45
  "module-alias": "^2.2.0",
46
46
  "ts-node": "^8.6.2",
47
47
  "tslint": "^5.16.0",
48
- "typescript": "~4.1.0"
48
+ "typescript": "^5.3.0"
49
49
  }
50
50
  }
package/shared/api.d.ts CHANGED
@@ -1,42 +1,46 @@
1
- import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm/shared/types";
2
- import { Auditable, DB_Object } from "@intuitionrobotics/ts-common/utils/types";
1
+ import { ApiWithBody, ApiWithQuery } from "@intuitionrobotics/thunderstorm";
2
+ import { Auditable } from "@intuitionrobotics/ts-common";
3
3
  import { TicketDetails } from "../app-backend/modules/BugReportModule";
4
- export declare type BugReport = {
4
+ type DB_Object = {
5
+ _id: string;
6
+ };
7
+ export type BugReport = {
5
8
  name: string;
6
9
  log: string[];
7
10
  };
8
11
  export declare const Platform_Jira = "jira";
9
12
  export declare const Platform_Slack = "slack";
10
- export declare type Request_BugReport = {
13
+ export type Request_BugReport = {
11
14
  subject: string;
12
15
  description: string;
13
16
  reports: BugReport[];
14
17
  platforms?: string[];
15
18
  };
16
- export declare type ReportMetaData = {
19
+ export type ReportMetaData = {
17
20
  description: string;
18
21
  path: string;
19
22
  minPath: string;
20
23
  };
21
- export declare type DB_BugReport = DB_Object & Auditable & {
24
+ export type DB_BugReport = DB_Object & Auditable & {
22
25
  subject: string;
23
26
  description: string;
24
27
  reports: ReportLogFile[];
25
28
  bucket?: string;
26
29
  tickets?: TicketDetails[];
27
30
  };
28
- export declare type ReportLogFile = {
31
+ export type ReportLogFile = {
29
32
  name: string;
30
33
  path: string;
31
34
  };
32
- export declare type Paths = {
35
+ export type Paths = {
33
36
  path: string;
34
37
  };
35
- export declare type SecuredUrl = {
38
+ export type SecuredUrl = {
36
39
  fileName: string;
37
40
  securedUrl: string;
38
41
  publicUrl: string;
39
42
  };
40
- export declare type ApiGetLog = ApiWithQuery<string, DB_BugReport[]>;
41
- export declare type ApiPostPath = ApiWithBody<'/v1/bug-reports/download-logs', Paths, SecuredUrl>;
42
- export declare type ApiBugReport = ApiWithBody<'/v1/bug-reports/report', Request_BugReport, TicketDetails[]>;
43
+ export type ApiGetLog = ApiWithQuery<string, DB_BugReport[]>;
44
+ export type ApiPostPath = ApiWithBody<'/v1/bug-reports/download-logs', Paths, SecuredUrl>;
45
+ export 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":";;;AAUa,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC"}
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"}