@nu-art/bug-report-shared 0.500.0 → 0.500.6
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/api.d.ts +11 -2
- package/api.js +11 -0
- package/package.json +8 -7
package/api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiDefResolver, BodyApi, QueryApi } from '@nu-art/api-types';
|
|
2
|
-
import { Auditable
|
|
2
|
+
import { Auditable } from '@nu-art/ts-common';
|
|
3
|
+
import { DB_Object, DB_ProtoSeed, DB_Prototype, Database, VersionsDeclaration } from '@nu-art/db-api-shared';
|
|
3
4
|
export type TicketDetails = {
|
|
4
5
|
platform: string;
|
|
5
6
|
issueId: string;
|
|
@@ -21,13 +22,20 @@ export type ReportMetaData = {
|
|
|
21
22
|
path: string;
|
|
22
23
|
minPath: string;
|
|
23
24
|
};
|
|
24
|
-
export
|
|
25
|
+
export declare const BugReport_DbKey = "bug-report";
|
|
26
|
+
type DBKey = typeof BugReport_DbKey;
|
|
27
|
+
type Versions = VersionsDeclaration<['1.0.0'], {
|
|
28
|
+
'1.0.0': DB_BugReport;
|
|
29
|
+
}>;
|
|
30
|
+
export type DB_BugReport = DB_Object<DBKey> & Auditable & {
|
|
25
31
|
subject: string;
|
|
26
32
|
description: string;
|
|
27
33
|
reports: ReportLogFile[];
|
|
28
34
|
bucket?: string;
|
|
29
35
|
tickets?: TicketDetails[];
|
|
30
36
|
};
|
|
37
|
+
export type DatabaseDef_BugReport = DB_Prototype<DB_ProtoSeed<DB_BugReport, DBKey, never, Versions>>;
|
|
38
|
+
export declare const DBDef_BugReport: Database<DatabaseDef_BugReport>;
|
|
31
39
|
export type ReportLogFile = {
|
|
32
40
|
name: string;
|
|
33
41
|
path: string;
|
|
@@ -49,3 +57,4 @@ export type API_BugReport = {
|
|
|
49
57
|
sendBugReport: BodyApi<TicketDetails[], Request_BugReport>;
|
|
50
58
|
};
|
|
51
59
|
export declare const ApiDef_BugReport: ApiDefResolver<API_BugReport>;
|
|
60
|
+
export {};
|
package/api.js
CHANGED
|
@@ -16,8 +16,19 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { HttpMethod } from '@nu-art/api-types';
|
|
19
|
+
import { tsValidateMustExist } from '@nu-art/ts-common';
|
|
19
20
|
export const Platform_Jira = 'jira';
|
|
20
21
|
export const Platform_Slack = 'slack';
|
|
22
|
+
export const BugReport_DbKey = 'bug-report';
|
|
23
|
+
export const DBDef_BugReport = {
|
|
24
|
+
dbKey: BugReport_DbKey,
|
|
25
|
+
entityName: 'BugReport',
|
|
26
|
+
backend: { name: 'bug-report' },
|
|
27
|
+
frontend: { group: 'ts-default', name: 'bug-report' },
|
|
28
|
+
versions: ['1.0.0'],
|
|
29
|
+
modifiablePropsValidator: tsValidateMustExist,
|
|
30
|
+
generatedPropsValidator: {},
|
|
31
|
+
};
|
|
21
32
|
export const ApiDef_AdminBugReport = {
|
|
22
33
|
downloadLogs: { method: HttpMethod.POST, path: 'v1/bug-reports/download-logs' },
|
|
23
34
|
retrieveLogs: { method: HttpMethod.GET, path: 'v1/bug-reports/get-logs' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/bug-report-shared",
|
|
3
|
-
"version": "0.500.
|
|
3
|
+
"version": "0.500.6",
|
|
4
4
|
"description": "Bug Report Shared",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
"build": "tsc"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nu-art/ts-common": "0.500.
|
|
33
|
-
"@nu-art/
|
|
34
|
-
"@nu-art/
|
|
35
|
-
"@nu-art/
|
|
36
|
-
"@nu-art/
|
|
32
|
+
"@nu-art/ts-common": "0.500.6",
|
|
33
|
+
"@nu-art/db-api-shared": "0.500.6",
|
|
34
|
+
"@nu-art/firebase-shared": "0.500.6",
|
|
35
|
+
"@nu-art/slack-shared": "0.500.6",
|
|
36
|
+
"@nu-art/user-account-shared": "0.500.6",
|
|
37
|
+
"@nu-art/jira-shared": "0.500.6",
|
|
37
38
|
"firebase": "^11.9.0",
|
|
38
39
|
"firebase-admin": "13.4.0",
|
|
39
40
|
"react": "^18.0.0",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"express": "^4.18.2",
|
|
43
44
|
"jszip": "^3.3.0",
|
|
44
45
|
"moment": "^2.29.4",
|
|
45
|
-
"@nu-art/api-types": "
|
|
46
|
+
"@nu-art/api-types": "0.500.6"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/express": "^4.17.17",
|