@dssp/supervision 0.0.2 → 0.0.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/client/pages/action-plan/action-plan-importer.ts +6 -8
- package/client/pages/action-plan/action-plan-list-page.ts +10 -25
- package/client/pages/check-item/check-item-importer.ts +6 -8
- package/client/pages/check-item/check-item-list-page.ts +10 -25
- package/client/pages/issue/issue-importer.ts +6 -8
- package/client/pages/issue/issue-list-page.ts +10 -25
- package/client/pages/project-report/project-report-importer.ts +6 -8
- package/client/pages/project-report/project-report-list-page.ts +10 -25
- package/client/pages/supervisor/supervisor-importer.ts +6 -8
- package/client/pages/supervisor/supervisor-list-page.ts +10 -25
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +1 -0
- package/dist-client/pages/action-plan/action-plan-importer.js +3 -2
- package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.js +8 -16
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/check-item/check-item-importer.d.ts +1 -0
- package/dist-client/pages/check-item/check-item-importer.js +3 -2
- package/dist-client/pages/check-item/check-item-importer.js.map +1 -1
- package/dist-client/pages/check-item/check-item-list-page.d.ts +1 -0
- package/dist-client/pages/check-item/check-item-list-page.js +8 -16
- package/dist-client/pages/check-item/check-item-list-page.js.map +1 -1
- package/dist-client/pages/issue/issue-importer.d.ts +1 -0
- package/dist-client/pages/issue/issue-importer.js +3 -2
- package/dist-client/pages/issue/issue-importer.js.map +1 -1
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -0
- package/dist-client/pages/issue/issue-list-page.js +8 -16
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-report/project-report-importer.d.ts +1 -0
- package/dist-client/pages/project-report/project-report-importer.js +3 -2
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -0
- package/dist-client/pages/project-report/project-report-list-page.js +8 -16
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +1 -0
- package/dist-client/pages/supervisor/supervisor-importer.js +3 -2
- package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -0
- package/dist-client/pages/supervisor/supervisor-list-page.js +8 -16
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/index.d.ts +3 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/service/action-plan/action-plan-mutation.d.ts +10 -0
- package/dist-server/service/action-plan/action-plan-query.d.ts +12 -0
- package/dist-server/service/action-plan/action-plan-type.d.ts +23 -0
- package/dist-server/service/action-plan/action-plan.d.ts +27 -0
- package/dist-server/service/action-plan/index.d.ts +6 -0
- package/dist-server/service/check-item/check-item-mutation.d.ts +10 -0
- package/dist-server/service/check-item/check-item-query.d.ts +12 -0
- package/dist-server/service/check-item/check-item-type.d.ts +23 -0
- package/dist-server/service/check-item/check-item.d.ts +28 -0
- package/dist-server/service/check-item/index.d.ts +6 -0
- package/dist-server/service/index.d.ts +10 -0
- package/dist-server/service/issue/index.d.ts +6 -0
- package/dist-server/service/issue/issue-mutation.d.ts +10 -0
- package/dist-server/service/issue/issue-query.d.ts +12 -0
- package/dist-server/service/issue/issue-type.d.ts +23 -0
- package/dist-server/service/issue/issue.d.ts +28 -0
- package/dist-server/service/project-report/index.d.ts +6 -0
- package/dist-server/service/project-report/project-report-mutation.d.ts +10 -0
- package/dist-server/service/project-report/project-report-query.d.ts +12 -0
- package/dist-server/service/project-report/project-report-type.d.ts +23 -0
- package/dist-server/service/project-report/project-report.d.ts +30 -0
- package/dist-server/service/project-report/project-report.js +1 -2
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/index.d.ts +6 -0
- package/dist-server/service/supervisor/supervisor-mutation.d.ts +10 -0
- package/dist-server/service/supervisor/supervisor-query.d.ts +12 -0
- package/dist-server/service/supervisor/supervisor-type.d.ts +23 -0
- package/dist-server/service/supervisor/supervisor.d.ts +30 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initMiddlewares(app: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare var migrations: any[];
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActionPlan } from './action-plan';
|
|
2
|
+
import { NewActionPlan, ActionPlanPatch } from './action-plan-type';
|
|
3
|
+
export declare class ActionPlanMutation {
|
|
4
|
+
createActionPlan(actionPlan: NewActionPlan, context: ResolverContext): Promise<ActionPlan>;
|
|
5
|
+
updateActionPlan(id: string, patch: ActionPlanPatch, context: ResolverContext): Promise<ActionPlan>;
|
|
6
|
+
updateMultipleActionPlan(patches: ActionPlanPatch[], context: ResolverContext): Promise<ActionPlan[]>;
|
|
7
|
+
deleteActionPlan(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteActionPlans(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importActionPlans(actionPlans: ActionPlanPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ActionPlan } from './action-plan';
|
|
4
|
+
import { ActionPlanList } from './action-plan-type';
|
|
5
|
+
export declare class ActionPlanQuery {
|
|
6
|
+
actionPlan(id: string, context: ResolverContext): Promise<ActionPlan>;
|
|
7
|
+
actionPlans(params: ListParam, context: ResolverContext): Promise<ActionPlanList>;
|
|
8
|
+
thumbnail(actionPlan: ActionPlan): Promise<string | undefined>;
|
|
9
|
+
domain(actionPlan: ActionPlan): Promise<Domain>;
|
|
10
|
+
updater(actionPlan: ActionPlan): Promise<User>;
|
|
11
|
+
creator(actionPlan: ActionPlan): Promise<User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { ActionPlan, ActionPlanStatus } from './action-plan';
|
|
3
|
+
export declare class NewActionPlan {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
state?: ActionPlanStatus;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
params?: string;
|
|
9
|
+
thumbnail?: FileUpload;
|
|
10
|
+
}
|
|
11
|
+
export declare class ActionPlanPatch {
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
state?: ActionPlanStatus;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
thumbnail?: FileUpload;
|
|
18
|
+
cuFlag?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class ActionPlanList {
|
|
21
|
+
items: ActionPlan[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Issue } from '../issue/issue';
|
|
4
|
+
export declare enum ActionPlanStatus {
|
|
5
|
+
STATUS_A = "STATUS_A",
|
|
6
|
+
STATUS_B = "STATUS_B"
|
|
7
|
+
}
|
|
8
|
+
export declare class ActionPlan {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
domain?: Domain;
|
|
11
|
+
domainId?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
state?: ActionPlanStatus;
|
|
16
|
+
params?: string;
|
|
17
|
+
issue: Issue;
|
|
18
|
+
content: string;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
updatedAt?: Date;
|
|
21
|
+
deletedAt?: Date;
|
|
22
|
+
creator?: User;
|
|
23
|
+
creatorId?: string;
|
|
24
|
+
updater?: User;
|
|
25
|
+
updaterId?: string;
|
|
26
|
+
thumbnail?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionPlan } from './action-plan';
|
|
2
|
+
import { ActionPlanQuery } from './action-plan-query';
|
|
3
|
+
import { ActionPlanMutation } from './action-plan-mutation';
|
|
4
|
+
export declare const entities: (typeof ActionPlan)[];
|
|
5
|
+
export declare const resolvers: (typeof ActionPlanQuery | typeof ActionPlanMutation)[];
|
|
6
|
+
export declare const subscribers: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CheckItem } from './check-item';
|
|
2
|
+
import { NewCheckItem, CheckItemPatch } from './check-item-type';
|
|
3
|
+
export declare class CheckItemMutation {
|
|
4
|
+
createCheckItem(checkItem: NewCheckItem, context: ResolverContext): Promise<CheckItem>;
|
|
5
|
+
updateCheckItem(id: string, patch: CheckItemPatch, context: ResolverContext): Promise<CheckItem>;
|
|
6
|
+
updateMultipleCheckItem(patches: CheckItemPatch[], context: ResolverContext): Promise<CheckItem[]>;
|
|
7
|
+
deleteCheckItem(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteCheckItems(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importCheckItems(checkItems: CheckItemPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { CheckItem } from './check-item';
|
|
4
|
+
import { CheckItemList } from './check-item-type';
|
|
5
|
+
export declare class CheckItemQuery {
|
|
6
|
+
checkItem(id: string, context: ResolverContext): Promise<CheckItem>;
|
|
7
|
+
checkItems(params: ListParam, context: ResolverContext): Promise<CheckItemList>;
|
|
8
|
+
thumbnail(checkItem: CheckItem): Promise<string | undefined>;
|
|
9
|
+
domain(checkItem: CheckItem): Promise<Domain>;
|
|
10
|
+
updater(checkItem: CheckItem): Promise<User>;
|
|
11
|
+
creator(checkItem: CheckItem): Promise<User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { CheckItem, CheckItemStatus } from './check-item';
|
|
3
|
+
export declare class NewCheckItem {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
state?: CheckItemStatus;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
params?: string;
|
|
9
|
+
thumbnail?: FileUpload;
|
|
10
|
+
}
|
|
11
|
+
export declare class CheckItemPatch {
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
state?: CheckItemStatus;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
thumbnail?: FileUpload;
|
|
18
|
+
cuFlag?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class CheckItemList {
|
|
21
|
+
items: CheckItem[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Issue } from '../issue/issue';
|
|
4
|
+
import { Supervisor } from '../supervisor/supervisor';
|
|
5
|
+
export declare enum CheckItemStatus {
|
|
6
|
+
STATUS_A = "STATUS_A",
|
|
7
|
+
STATUS_B = "STATUS_B"
|
|
8
|
+
}
|
|
9
|
+
export declare class CheckItem {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
state?: CheckItemStatus;
|
|
17
|
+
params?: string;
|
|
18
|
+
supervisor: Supervisor;
|
|
19
|
+
issues: Issue[];
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
updatedAt?: Date;
|
|
22
|
+
deletedAt?: Date;
|
|
23
|
+
creator?: User;
|
|
24
|
+
creatorId?: string;
|
|
25
|
+
updater?: User;
|
|
26
|
+
updaterId?: string;
|
|
27
|
+
thumbnail?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckItem } from './check-item';
|
|
2
|
+
import { CheckItemQuery } from './check-item-query';
|
|
3
|
+
import { CheckItemMutation } from './check-item-mutation';
|
|
4
|
+
export declare const entities: (typeof CheckItem)[];
|
|
5
|
+
export declare const resolvers: (typeof CheckItemQuery | typeof CheckItemMutation)[];
|
|
6
|
+
export declare const subscribers: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './action-plan/action-plan';
|
|
2
|
+
export * from './issue/issue';
|
|
3
|
+
export * from './check-item/check-item';
|
|
4
|
+
export * from './project-report/project-report';
|
|
5
|
+
export * from './supervisor/supervisor';
|
|
6
|
+
export declare const entities: (typeof import("./project-report/project-report").ProjectReport | typeof import("./supervisor/supervisor").Supervisor | typeof import("./check-item/check-item").CheckItem | typeof import("./issue/issue").Issue | typeof import("./action-plan/action-plan").ActionPlan)[];
|
|
7
|
+
export declare const subscribers: any[];
|
|
8
|
+
export declare const schema: {
|
|
9
|
+
resolverClasses: (typeof import("./action-plan/action-plan-query").ActionPlanQuery | typeof import("./action-plan/action-plan-mutation").ActionPlanMutation | typeof import("./issue/issue-query").IssueQuery | typeof import("./issue/issue-mutation").IssueMutation | typeof import("./check-item/check-item-query").CheckItemQuery | typeof import("./check-item/check-item-mutation").CheckItemMutation | typeof import("./project-report/project-report-query").ProjectReportQuery | typeof import("./project-report/project-report-mutation").ProjectReportMutation | typeof import("./supervisor/supervisor-query").SupervisorQuery | typeof import("./supervisor/supervisor-mutation").SupervisorMutation)[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Issue } from './issue';
|
|
2
|
+
import { IssueQuery } from './issue-query';
|
|
3
|
+
import { IssueMutation } from './issue-mutation';
|
|
4
|
+
export declare const entities: (typeof Issue)[];
|
|
5
|
+
export declare const resolvers: (typeof IssueQuery | typeof IssueMutation)[];
|
|
6
|
+
export declare const subscribers: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Issue } from './issue';
|
|
2
|
+
import { NewIssue, IssuePatch } from './issue-type';
|
|
3
|
+
export declare class IssueMutation {
|
|
4
|
+
createIssue(issue: NewIssue, context: ResolverContext): Promise<Issue>;
|
|
5
|
+
updateIssue(id: string, patch: IssuePatch, context: ResolverContext): Promise<Issue>;
|
|
6
|
+
updateMultipleIssue(patches: IssuePatch[], context: ResolverContext): Promise<Issue[]>;
|
|
7
|
+
deleteIssue(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteIssues(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importIssues(issues: IssuePatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Issue } from './issue';
|
|
4
|
+
import { IssueList } from './issue-type';
|
|
5
|
+
export declare class IssueQuery {
|
|
6
|
+
issue(id: string, context: ResolverContext): Promise<Issue>;
|
|
7
|
+
issues(params: ListParam, context: ResolverContext): Promise<IssueList>;
|
|
8
|
+
thumbnail(issue: Issue): Promise<string | undefined>;
|
|
9
|
+
domain(issue: Issue): Promise<Domain>;
|
|
10
|
+
updater(issue: Issue): Promise<User>;
|
|
11
|
+
creator(issue: Issue): Promise<User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { Issue, IssueStatus } from './issue';
|
|
3
|
+
export declare class NewIssue {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
state?: IssueStatus;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
params?: string;
|
|
9
|
+
thumbnail?: FileUpload;
|
|
10
|
+
}
|
|
11
|
+
export declare class IssuePatch {
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
state?: IssueStatus;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
thumbnail?: FileUpload;
|
|
18
|
+
cuFlag?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class IssueList {
|
|
21
|
+
items: Issue[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { CheckItem } from 'service/check-item/check-item';
|
|
4
|
+
import { ActionPlan } from 'service/action-plan/action-plan';
|
|
5
|
+
export declare enum IssueStatus {
|
|
6
|
+
STATUS_A = "STATUS_A",
|
|
7
|
+
STATUS_B = "STATUS_B"
|
|
8
|
+
}
|
|
9
|
+
export declare class Issue {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
state?: IssueStatus;
|
|
17
|
+
params?: string;
|
|
18
|
+
checkItem: CheckItem;
|
|
19
|
+
actionPlans: ActionPlan[];
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
updatedAt?: Date;
|
|
22
|
+
deletedAt?: Date;
|
|
23
|
+
creator?: User;
|
|
24
|
+
creatorId?: string;
|
|
25
|
+
updater?: User;
|
|
26
|
+
updaterId?: string;
|
|
27
|
+
thumbnail?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProjectReport } from './project-report';
|
|
2
|
+
import { ProjectReportQuery } from './project-report-query';
|
|
3
|
+
import { ProjectReportMutation } from './project-report-mutation';
|
|
4
|
+
export declare const entities: (typeof ProjectReport)[];
|
|
5
|
+
export declare const resolvers: (typeof ProjectReportQuery | typeof ProjectReportMutation)[];
|
|
6
|
+
export declare const subscribers: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProjectReport } from './project-report';
|
|
2
|
+
import { NewProjectReport, ProjectReportPatch } from './project-report-type';
|
|
3
|
+
export declare class ProjectReportMutation {
|
|
4
|
+
createProjectReport(projectReport: NewProjectReport, context: ResolverContext): Promise<ProjectReport>;
|
|
5
|
+
updateProjectReport(id: string, patch: ProjectReportPatch, context: ResolverContext): Promise<ProjectReport>;
|
|
6
|
+
updateMultipleProjectReport(patches: ProjectReportPatch[], context: ResolverContext): Promise<ProjectReport[]>;
|
|
7
|
+
deleteProjectReport(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteProjectReports(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importProjectReports(projectReports: ProjectReportPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ProjectReport } from './project-report';
|
|
4
|
+
import { ProjectReportList } from './project-report-type';
|
|
5
|
+
export declare class ProjectReportQuery {
|
|
6
|
+
projectReport(id: string, context: ResolverContext): Promise<ProjectReport>;
|
|
7
|
+
projectReports(params: ListParam, context: ResolverContext): Promise<ProjectReportList>;
|
|
8
|
+
thumbnail(projectReport: ProjectReport): Promise<string | undefined>;
|
|
9
|
+
domain(projectReport: ProjectReport): Promise<Domain>;
|
|
10
|
+
updater(projectReport: ProjectReport): Promise<User>;
|
|
11
|
+
creator(projectReport: ProjectReport): Promise<User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { ProjectReport, ProjectReportStatus } from './project-report';
|
|
3
|
+
export declare class NewProjectReport {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
state?: ProjectReportStatus;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
params?: string;
|
|
9
|
+
thumbnail?: FileUpload;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProjectReportPatch {
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
state?: ProjectReportStatus;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
thumbnail?: FileUpload;
|
|
18
|
+
cuFlag?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class ProjectReportList {
|
|
21
|
+
items: ProjectReport[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Project } from '@dssp/project';
|
|
4
|
+
import { Supervisor } from '../supervisor/supervisor';
|
|
5
|
+
export declare enum ProjectReportStatus {
|
|
6
|
+
STATUS_A = "STATUS_A",
|
|
7
|
+
STATUS_B = "STATUS_B"
|
|
8
|
+
}
|
|
9
|
+
export declare class ProjectReport {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
state?: ProjectReportStatus;
|
|
17
|
+
params?: string;
|
|
18
|
+
content?: string;
|
|
19
|
+
date?: Date;
|
|
20
|
+
project?: Project;
|
|
21
|
+
supervisor: Supervisor;
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
deletedAt?: Date;
|
|
25
|
+
creator?: User;
|
|
26
|
+
creatorId?: string;
|
|
27
|
+
updater?: User;
|
|
28
|
+
updaterId?: string;
|
|
29
|
+
thumbnail?: string;
|
|
30
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.ProjectReport = exports.ProjectReportStatus = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
@@ -72,7 +71,7 @@ tslib_1.__decorate([
|
|
|
72
71
|
tslib_1.__decorate([
|
|
73
72
|
(0, type_graphql_1.Field)(() => project_1.Project),
|
|
74
73
|
(0, typeorm_1.ManyToOne)(() => project_1.Project),
|
|
75
|
-
tslib_1.__metadata("design:type",
|
|
74
|
+
tslib_1.__metadata("design:type", project_1.Project)
|
|
76
75
|
], ProjectReport.prototype, "project", void 0);
|
|
77
76
|
tslib_1.__decorate([
|
|
78
77
|
(0, type_graphql_1.Field)(() => supervisor_1.Supervisor),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-report.js","sourceRoot":"","sources":["../../../server/service/project-report/project-report.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-report.js","sourceRoot":"","sources":["../../../server/service/project-report/project-report.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,2CAAuC;AAEvC,yDAAqD;AAErD,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;AACvB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAED,IAAA,+BAAgB,EAAC,mBAAmB,EAAE;IACpC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,sCAAsC;CACpD,CAAC,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AE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;8CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACxB;AA3EP,aAAa;IANzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE;QAC1G,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;GAC3C,aAAa,CA4EzB;AA5EY,sCAAa","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Project } from '@dssp/project'\n\nimport { Supervisor } from '../supervisor/supervisor'\n\nexport enum ProjectReportStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(ProjectReportStatus, {\n name: 'ProjectReportStatus',\n description: 'state enumeration of a projectReport'\n})\n\n@Entity()\n@Index('ix_project_report_0', (projectReport: ProjectReport) => [projectReport.domain, projectReport.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for ProjectReport' })\nexport class ProjectReport {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((projectReport: ProjectReport) => projectReport.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: ProjectReportStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n content?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n date?: Date\n\n @Field(() => Project)\n @ManyToOne(() => Project)\n project?: Project\n\n @Field(() => Supervisor)\n @ManyToOne(() => Supervisor, supervisor => supervisor.reports)\n supervisor: Supervisor\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((projectReport: ProjectReport) => projectReport.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((projectReport: ProjectReport) => projectReport.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Supervisor } from './supervisor';
|
|
2
|
+
import { SupervisorQuery } from './supervisor-query';
|
|
3
|
+
import { SupervisorMutation } from './supervisor-mutation';
|
|
4
|
+
export declare const entities: (typeof Supervisor)[];
|
|
5
|
+
export declare const resolvers: (typeof SupervisorQuery | typeof SupervisorMutation)[];
|
|
6
|
+
export declare const subscribers: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Supervisor } from './supervisor';
|
|
2
|
+
import { NewSupervisor, SupervisorPatch } from './supervisor-type';
|
|
3
|
+
export declare class SupervisorMutation {
|
|
4
|
+
createSupervisor(supervisor: NewSupervisor, context: ResolverContext): Promise<Supervisor>;
|
|
5
|
+
updateSupervisor(id: string, patch: SupervisorPatch, context: ResolverContext): Promise<Supervisor>;
|
|
6
|
+
updateMultipleSupervisor(patches: SupervisorPatch[], context: ResolverContext): Promise<Supervisor[]>;
|
|
7
|
+
deleteSupervisor(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
deleteSupervisors(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
+
importSupervisors(supervisors: SupervisorPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Supervisor } from './supervisor';
|
|
4
|
+
import { SupervisorList } from './supervisor-type';
|
|
5
|
+
export declare class SupervisorQuery {
|
|
6
|
+
supervisor(id: string, context: ResolverContext): Promise<Supervisor>;
|
|
7
|
+
supervisors(params: ListParam, context: ResolverContext): Promise<SupervisorList>;
|
|
8
|
+
thumbnail(supervisor: Supervisor): Promise<string | undefined>;
|
|
9
|
+
domain(supervisor: Supervisor): Promise<Domain>;
|
|
10
|
+
updater(supervisor: Supervisor): Promise<User>;
|
|
11
|
+
creator(supervisor: Supervisor): Promise<User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { Supervisor, SupervisorStatus } from './supervisor';
|
|
3
|
+
export declare class NewSupervisor {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
state?: SupervisorStatus;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
params?: string;
|
|
9
|
+
thumbnail?: FileUpload;
|
|
10
|
+
}
|
|
11
|
+
export declare class SupervisorPatch {
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
state?: SupervisorStatus;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
thumbnail?: FileUpload;
|
|
18
|
+
cuFlag?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class SupervisorList {
|
|
21
|
+
items: Supervisor[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ProjectReport } from 'service/project-report/project-report';
|
|
4
|
+
import { CheckItem } from 'service/check-item/check-item';
|
|
5
|
+
export declare enum SupervisorStatus {
|
|
6
|
+
STATUS_A = "STATUS_A",
|
|
7
|
+
STATUS_B = "STATUS_B"
|
|
8
|
+
}
|
|
9
|
+
export declare class Supervisor {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
state?: SupervisorStatus;
|
|
17
|
+
params?: string;
|
|
18
|
+
email: string;
|
|
19
|
+
phoneNumber: string;
|
|
20
|
+
reports: ProjectReport[];
|
|
21
|
+
checkItems: CheckItem[];
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
deletedAt?: Date;
|
|
25
|
+
creator?: User;
|
|
26
|
+
creatorId?: string;
|
|
27
|
+
updater?: User;
|
|
28
|
+
updaterId?: string;
|
|
29
|
+
thumbnail?: string;
|
|
30
|
+
}
|