@dssp/supervision 1.0.0-alpha.5 → 1.0.0-alpha.51
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-client/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +100 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +169 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +57 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +825 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +115 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +9 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +130 -72
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +77 -14
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +18 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +360 -28
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +104 -17
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +351 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +20 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +432 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +30 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +479 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +39 -17
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +22 -9
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +20 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +433 -57
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +131 -17
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +250 -67
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +5 -0
- package/dist-client/pages/checklist/checklist-view.js +99 -29
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +14 -3
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +50 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +684 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +14 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +6 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +130 -36
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +3 -5
- package/dist-server/service/building-inspection/building-inspection-query.js +16 -29
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +23 -7
- package/dist-server/service/building-inspection/building-inspection-type.js +80 -13
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +4 -0
- package/dist-server/service/building-inspection/building-inspection.js +17 -2
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +10 -3
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +34 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +157 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +1 -67
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +1 -49
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +28 -3
- package/dist-server/service/checklist/checklist.js +89 -15
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
- package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +4 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +2 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +5 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +6 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +16 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +4 -1
- package/dist-server/service/index.js +22 -3
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +0 -6
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/things-factory.config.js +2 -0
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-query.js","sourceRoot":"","sources":["../../../server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A;;6CAAqB,wCAAkB;;4DAEjE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;2DAShE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,uBAAa,CAAC;IACtB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;sDAa3D;kCAxPU,uBAAuB;IADnC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,uBAAuB,CAyPnC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Args, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getRepository, getQueryBuilderFromListParams, ListParam } from '@things-factory/shell'\nimport { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport {\n BuildingInspectionList,\n BuildingInspectionsOfBuildingLevel,\n BuildingInspectionsOfProject,\n BuildingInspectionSummary\n} from './building-inspection-type'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { Project, ManagerOutput } from '@dssp/project'\nimport { config } from '@things-factory/env'\nimport { User } from '@things-factory/auth-base'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(BuildingInspection)\nexport class BuildingInspectionQuery {\n @Query(returns => BuildingInspection!, { nullable: true, description: 'To fetch a BuildingInspection' })\n async buildingInspection(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOne({\n where: { id, projectType }\n })\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspections(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<BuildingInspectionList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(BuildingInspection),\n searchables: ['name']\n }).andWhere('project_type = :projectType', { projectType })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspectionsOfProject(\n @Arg('params') params: BuildingInspectionsOfProject,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionList> {\n const { domain } = context.state\n const { projectId, limit } = params\n\n const queryBuilder = getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('building_levels', 'bl', 'bi.building_level_id = bl.id')\n .innerJoin('buildings', 'b', 'bl.building_id = b.id')\n .innerJoin('building_complexes', 'bc', 'b.building_complex_id = bc.id')\n .innerJoin('projects', 'p', 'bc.id = p.building_complex_id')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .where('p.domain = :domain', { domain: domain.id })\n .andWhere('bi.project_type = :projectType', { projectType })\n .andWhere('p.id = :projectId', { projectId })\n .orderBy('bi.created_at', 'DESC')\n\n if (limit) {\n queryBuilder.limit(limit)\n }\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => Project!, { description: 'To fetch Project' })\n async projectByBuildingLevelId(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Ctx() context: ResolverContext\n ): Promise<Project> {\n const queryBuilder = getRepository(Project)\n .createQueryBuilder('p')\n .innerJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')\n .innerJoin('buildings', 'b', 'b.building_complex_id = bc.id')\n .innerJoin('building_levels', 'bl', 'bl.building_id = b.id')\n .where('bl.id = :buildingLevelId', { buildingLevelId })\n\n const result = await queryBuilder.getOne()\n\n return result\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspectionsOfBuildingLevel(\n @Arg('params') params: BuildingInspectionsOfBuildingLevel,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionList> {\n const { buildingLevelId, limit } = params\n\n const queryBuilder = getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('building_levels', 'bl', 'bi.building_level_id = bl.id')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .where('bl.id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .orderBy('bi.updated_at', 'DESC')\n\n if (limit) {\n queryBuilder.limit(limit)\n }\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n // 층 별로 검수 개수 써머리\n @Query(returns => BuildingInspectionSummary!, { nullable: true, description: 'To fetch a BuildingInspection Summary' })\n async buildingInspectionSummaryOfBuildingLevel(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .getRawOne()\n\n return {\n wait: buildingInspectionSummary?.wait || 0,\n request: buildingInspectionSummary?.request || 0,\n pass: buildingInspectionSummary?.pass || 0,\n fail: buildingInspectionSummary?.fail || 0\n }\n }\n\n // 층 별로 검수 개수 써머리\n @Query(returns => [BuildingInspectionSummary]!, { nullable: true, description: 'To fetch a BuildingInspection Summary' })\n async buildingInspectionDateSummaryOfLevelAndPeriod(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Arg('startDate') startDate: string,\n @Arg('endDate') endDate: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary[]> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(`TO_CHAR(bi.request_date, 'YYYY-MM-DD') AS \"requestDate\"`)\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.request_date BETWEEN :startDate AND :endDate', { startDate, endDate })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .addGroupBy('bi.request_date')\n .getRawMany()\n\n return buildingInspectionSummary\n }\n\n // 층 별로 검수 개수 써머리\n @FieldResolver(type => BuildingInspectionSummary)\n async buildingInspectionSummary(@Root() buildingLevel: BuildingLevel): Promise<BuildingInspectionSummary> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId: buildingLevel.id })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .getRawOne()\n\n return {\n wait: buildingInspectionSummary?.wait || 0,\n request: buildingInspectionSummary?.request || 0,\n pass: buildingInspectionSummary?.pass || 0,\n fail: buildingInspectionSummary?.fail || 0\n }\n }\n\n @Query(returns => BuildingInspectionSummary, { description: '프로젝트의 검측상태 별 카운트' })\n async buildingInspectionSummaryOfProject(\n @Arg('projectId') projectId: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary> {\n const { domain } = context.state\n\n const result = await getRepository(Project)\n .createQueryBuilder('p')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status = '${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status = '${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .innerJoin('p.buildingComplex', 'bc')\n .innerJoin('bc.buildings', 'b')\n .innerJoin('b.buildingLevels', 'bl')\n .leftJoin('building_inspections', 'bi', 'bi.building_level_id = bl.id AND bi.deleted_at IS NULL')\n .where('p.domain = :domain', { domain: domain.id })\n .andWhere('p.id = :projectId', { projectId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('p.id')\n .getRawOne()\n\n return {\n wait: result?.wait || 0,\n request: result?.request || 0,\n pass: result?.pass || 0,\n fail: result?.fail || 0\n }\n }\n\n @FieldResolver(type => Checklist)\n async checklist(@Root() buildingInspection: BuildingInspection): Promise<Checklist> {\n return await getRepository(Checklist).findOneBy({ id: buildingInspection.checklistId })\n }\n\n @FieldResolver(type => BuildingLevel)\n async buildingLevel(@Root() buildingInspection: BuildingInspection): Promise<BuildingLevel> {\n return await getRepository(BuildingLevel).findOneBy({ id: buildingInspection.buildingLevelId })\n }\n\n @FieldResolver(type => [Attachment])\n async attatchments(@Root() buildingInspection: BuildingInspection): Promise<Attachment[] | undefined> {\n const attachment: Attachment[] = await getRepository(Attachment).find({\n where: {\n refType: BuildingInspection.name,\n refBy: buildingInspection.id\n }\n })\n\n return attachment\n }\n\n @FieldResolver(type => ManagerOutput)\n async manager(@Root() buildingInspection: BuildingInspection): Promise<ManagerOutput> {\n const queryBuilder = getRepository(User)\n .createQueryBuilder('u')\n .select('m.id', 'id')\n .addSelect('m.phone', 'phone')\n .addSelect('m.position', 'position')\n .addSelect('u.id', 'userId')\n .addSelect('u.name', 'name')\n .addSelect('u.updated_at', 'updatedAt')\n .leftJoin('managers', 'm', 'u.id = m.user_id')\n .where('u.id = :userId', { userId: buildingInspection.managerId })\n\n return await queryBuilder.getRawOne()\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"building-inspection-query.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,+DAAiG;AACjG,yEAMmC;AACnC,6DAAsD;AACtD,sDAAkD;AAClD,6CAA4C;AAC5C,yDAAgD;AAEhD,MAAM,WAAW,GAAG,YAAM,CAAC,GAAG,CAAC,aAAa,EAAE,iCAAW,CAAC,IAAI,CAAC,CAAA;AAGxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAE5B,AAAN,KAAK,CA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AAE,CAAA;;6CAAgB,gCAAa;;wEAsBnE;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oDAAyB,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAE9E,mBAAA,IAAA,kBAAG,EAAC,WAAW,CAAC,CAAA;IAChB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iFA8BP;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,qBAAS,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;wDAE7D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gCAAa,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;4DAEjE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IACjB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;0DAS/D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,+CAAoB,CAAC;IAC7B,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAqB,wCAAkB;;sDAa3D;kCA/OU,uBAAuB;IADnC,IAAA,uBAAQ,EAAC,wCAAkB,CAAC;GAChB,uBAAuB,CAgPnC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Args, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getRepository, getQueryBuilderFromListParams, ListParam } from '@things-factory/shell'\nimport { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport {\n BuildingInspectionList,\n BuildingInspectionsOfBuildingLevel,\n BuildingInspectionsOfProject,\n BuildingInspectionSummary,\n ProjectManagerOutput\n} from './building-inspection-type'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { config } from '@things-factory/env'\nimport { User } from '@things-factory/auth-base'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(BuildingInspection)\nexport class BuildingInspectionQuery {\n @Query(returns => BuildingInspection!, { nullable: true, description: 'To fetch a BuildingInspection' })\n async buildingInspection(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOne({\n where: { id, projectType }\n })\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspections(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<BuildingInspectionList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(BuildingInspection),\n searchables: ['name']\n }).andWhere('project_type = :projectType', { projectType })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspectionsOfProject(\n @Arg('params') params: BuildingInspectionsOfProject,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionList> {\n const { domain } = context.state\n const { projectId, limit } = params\n\n const queryBuilder = getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('building_levels', 'bl', 'bi.building_level_id = bl.id')\n .innerJoin('buildings', 'b', 'bl.building_id = b.id')\n .innerJoin('building_complexes', 'bc', 'b.building_complex_id = bc.id')\n .innerJoin('projects', 'p', 'bc.id = p.building_complex_id')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .where('p.domain = :domain', { domain: domain.id })\n .andWhere('bi.project_type = :projectType', { projectType })\n .andWhere('p.id = :projectId', { projectId })\n .orderBy('bi.created_at', 'DESC')\n\n if (limit) {\n queryBuilder.limit(limit)\n }\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspectionList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspectionsOfBuildingLevel(\n @Arg('params') params: BuildingInspectionsOfBuildingLevel,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionList> {\n const { buildingLevelId, limit, startDate, endDate } = params\n\n const queryBuilder = getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('building_levels', 'bl', 'bi.building_level_id = bl.id')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .where('bl.id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .orderBy('bi.updated_at', 'DESC')\n\n if (startDate) {\n queryBuilder.andWhere('bi.request_date >= :startDate', { startDate })\n }\n\n if (endDate) {\n queryBuilder.andWhere('bi.request_date <= :endDate', { endDate })\n }\n\n if (limit) {\n queryBuilder.limit(limit)\n }\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n // 층 별로 검수 개수 써머리\n @Query(returns => BuildingInspectionSummary!, { nullable: true, description: 'To fetch a BuildingInspection Summary' })\n async buildingInspectionSummaryOfBuildingLevel(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .getRawOne()\n\n return {\n wait: buildingInspectionSummary?.wait || 0,\n request: buildingInspectionSummary?.request || 0,\n pass: buildingInspectionSummary?.pass || 0,\n fail: buildingInspectionSummary?.fail || 0\n }\n }\n\n // 층 별로 검수 개수 써머리\n @Query(returns => [BuildingInspectionSummary]!, { nullable: true, description: 'To fetch a BuildingInspection Summary' })\n async buildingInspectionDateSummaryOfLevelAndPeriod(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Arg('startDate') startDate: string,\n @Arg('endDate') endDate: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary[]> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(`TO_CHAR(bi.request_date, 'YYYY-MM-DD') AS \"requestDate\"`)\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId })\n .andWhere('bi.request_date BETWEEN :startDate AND :endDate', { startDate, endDate })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .addGroupBy('bi.request_date')\n .getRawMany()\n\n return buildingInspectionSummary\n }\n\n // 층 별로 검수 개수 써머리\n @FieldResolver(type => BuildingInspectionSummary)\n async buildingInspectionSummary(@Root() buildingLevel: BuildingLevel): Promise<BuildingInspectionSummary> {\n const buildingInspectionSummary = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .where('bi.building_level_id = :buildingLevelId', { buildingLevelId: buildingLevel.id })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('bi.building_level_id')\n .getRawOne()\n\n return {\n wait: buildingInspectionSummary?.wait || 0,\n request: buildingInspectionSummary?.request || 0,\n pass: buildingInspectionSummary?.pass || 0,\n fail: buildingInspectionSummary?.fail || 0\n }\n }\n\n @Query(returns => BuildingInspectionSummary, { description: '프로젝트의 검측상태 별 카운트' })\n async buildingInspectionSummaryOfProject(\n @Arg('projectId') projectId: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionSummary> {\n const { domain } = context.state\n\n const result = await getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .select(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.WAIT}' OR bi.status='${BuildingInspectionStatus.OVERALL_WAIT}' THEN 1 ELSE NULL END) AS wait`\n )\n .addSelect(\n `COUNT(CASE WHEN bi.status='${BuildingInspectionStatus.REQUEST}' OR bi.status='${BuildingInspectionStatus.OVERALL_REQUEST}' THEN 1 ELSE NULL END) AS request`\n )\n .addSelect(`COUNT(CASE WHEN bi.status = '${BuildingInspectionStatus.PASS}' THEN 1 ELSE NULL END) AS pass`)\n .addSelect(`COUNT(CASE WHEN bi.status = '${BuildingInspectionStatus.FAIL}' THEN 1 ELSE NULL END) AS fail`)\n .innerJoin('building_levels', 'bl', 'bi.building_level_id = bl.id')\n .innerJoin('buildings', 'b', 'bl.building_id = b.id')\n .innerJoin('building_complexes', 'bc', 'b.building_complex_id = bc.id')\n .innerJoin('projects', 'p', 'bc.id = p.building_complex_id')\n .where('p.domain = :domain', { domain: domain.id })\n .andWhere('p.id = :projectId', { projectId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .groupBy('p.id')\n .getRawOne()\n\n return {\n wait: result?.wait || 0,\n request: result?.request || 0,\n pass: result?.pass || 0,\n fail: result?.fail || 0\n }\n }\n\n @FieldResolver(type => Checklist)\n async checklist(@Root() buildingInspection: BuildingInspection): Promise<Checklist> {\n return await getRepository(Checklist).findOneBy({ id: buildingInspection.checklistId })\n }\n\n @FieldResolver(type => BuildingLevel)\n async buildingLevel(@Root() buildingInspection: BuildingInspection): Promise<BuildingLevel> {\n return await getRepository(BuildingLevel).findOneBy({ id: buildingInspection.buildingLevelId })\n }\n\n @FieldResolver(type => [Attachment])\n async attachments(@Root() buildingInspection: BuildingInspection): Promise<Attachment[] | undefined> {\n const attachment: Attachment[] = await getRepository(Attachment).find({\n where: {\n refType: BuildingInspection.name,\n refBy: buildingInspection.id\n }\n })\n\n return attachment\n }\n\n @FieldResolver(type => ProjectManagerOutput)\n async manager(@Root() buildingInspection: BuildingInspection): Promise<ProjectManagerOutput> {\n const queryBuilder = getRepository(User)\n .createQueryBuilder('u')\n .select('m.id', 'id')\n .addSelect('m.phone', 'phone')\n .addSelect('m.position', 'position')\n .addSelect('u.id', 'userId')\n .addSelect('u.name', 'name')\n .addSelect('u.updated_at', 'updatedAt')\n .leftJoin('managers', 'm', 'u.id = m.user_id')\n .where('u.id = :userId', { userId: buildingInspection.managerId })\n\n return await queryBuilder.getRawOne()\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BuildingInspection } from './building-inspection';
|
|
2
|
-
|
|
2
|
+
import { InspectionResultStatus, InspectionResultType } from '../checklist/checklist';
|
|
3
|
+
export declare class ChecklistInputType {
|
|
3
4
|
name: string;
|
|
4
5
|
constructionType?: string;
|
|
5
6
|
constructionDetailType?: string;
|
|
@@ -7,40 +8,46 @@ declare class ChecklistInputType {
|
|
|
7
8
|
inspectionDrawingType?: string;
|
|
8
9
|
inspectionParts?: string[];
|
|
9
10
|
}
|
|
10
|
-
declare class ChecklistItemInputType {
|
|
11
|
+
export declare class ChecklistItemInputType {
|
|
11
12
|
name: string;
|
|
12
13
|
mainType: string;
|
|
13
14
|
detailType: string;
|
|
14
15
|
inspctionCriteria: string;
|
|
15
16
|
}
|
|
16
17
|
export declare class NewBuildingInspection {
|
|
17
|
-
buildingLevelId
|
|
18
|
+
buildingLevelId?: string;
|
|
18
19
|
checklist: ChecklistInputType;
|
|
19
20
|
checklistItem: ChecklistItemInputType[];
|
|
20
21
|
cellX?: number;
|
|
21
22
|
cellY?: number;
|
|
22
23
|
managerId?: string;
|
|
23
24
|
}
|
|
24
|
-
declare class ChecklistSubmitInputType {
|
|
25
|
+
export declare class ChecklistSubmitInputType {
|
|
25
26
|
id: string;
|
|
26
27
|
overallConstructorSignature?: string;
|
|
27
28
|
taskConstructorSignature?: string;
|
|
28
29
|
overallSupervisorySignature?: string;
|
|
29
30
|
taskSupervisorySignature?: string;
|
|
31
|
+
inspectionRequestMemo?: string;
|
|
32
|
+
inspectionResultMemo?: string;
|
|
33
|
+
inspectionResultStatus?: InspectionResultStatus;
|
|
34
|
+
inspectionResultType?: InspectionResultType;
|
|
30
35
|
}
|
|
31
|
-
declare class ChecklistItemSubmitInputType {
|
|
36
|
+
export declare class ChecklistItemSubmitInputType {
|
|
32
37
|
id: string;
|
|
33
38
|
constructionConfirmStatus?: string;
|
|
34
39
|
supervisoryConfirmStatus?: string;
|
|
35
40
|
}
|
|
36
41
|
export declare class UpdateBuildingInspectionSubmitType {
|
|
37
42
|
id: string;
|
|
43
|
+
memo?: string;
|
|
38
44
|
checklist: ChecklistSubmitInputType;
|
|
39
45
|
checklistItem: ChecklistItemSubmitInputType[];
|
|
40
46
|
}
|
|
41
|
-
export declare class
|
|
47
|
+
export declare class UpdateBuildingInspection {
|
|
42
48
|
id: string;
|
|
43
49
|
drawingMarker?: string;
|
|
50
|
+
memo?: string;
|
|
44
51
|
}
|
|
45
52
|
export declare class BuildingInspectionsOfProject {
|
|
46
53
|
projectId: string;
|
|
@@ -49,6 +56,8 @@ export declare class BuildingInspectionsOfProject {
|
|
|
49
56
|
export declare class BuildingInspectionsOfBuildingLevel {
|
|
50
57
|
buildingLevelId: string;
|
|
51
58
|
limit: number;
|
|
59
|
+
startDate?: string;
|
|
60
|
+
endDate?: string;
|
|
52
61
|
}
|
|
53
62
|
export declare class BuildingInspectionSummary {
|
|
54
63
|
requestDate?: string;
|
|
@@ -61,4 +70,11 @@ export declare class BuildingInspectionList {
|
|
|
61
70
|
items: BuildingInspection[];
|
|
62
71
|
total: number;
|
|
63
72
|
}
|
|
64
|
-
export {
|
|
73
|
+
export declare class ProjectManagerOutput {
|
|
74
|
+
id?: string;
|
|
75
|
+
phone?: string;
|
|
76
|
+
position?: string;
|
|
77
|
+
userId?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
updatedAt?: string;
|
|
80
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.
|
|
3
|
+
exports.ProjectManagerOutput = exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.UpdateBuildingInspection = exports.UpdateBuildingInspectionSubmitType = exports.ChecklistItemSubmitInputType = exports.ChecklistSubmitInputType = exports.NewBuildingInspection = exports.ChecklistItemInputType = exports.ChecklistInputType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const building_inspection_1 = require("./building-inspection");
|
|
7
|
+
const checklist_1 = require("../checklist/checklist");
|
|
7
8
|
let ChecklistInputType = class ChecklistInputType {
|
|
8
9
|
};
|
|
10
|
+
exports.ChecklistInputType = ChecklistInputType;
|
|
9
11
|
tslib_1.__decorate([
|
|
10
12
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
11
13
|
tslib_1.__metadata("design:type", String)
|
|
@@ -19,7 +21,7 @@ tslib_1.__decorate([
|
|
|
19
21
|
tslib_1.__metadata("design:type", String)
|
|
20
22
|
], ChecklistInputType.prototype, "constructionDetailType", void 0);
|
|
21
23
|
tslib_1.__decorate([
|
|
22
|
-
(0, type_graphql_1.Field)({ nullable:
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
25
|
tslib_1.__metadata("design:type", String)
|
|
24
26
|
], ChecklistInputType.prototype, "location", void 0);
|
|
25
27
|
tslib_1.__decorate([
|
|
@@ -30,11 +32,12 @@ tslib_1.__decorate([
|
|
|
30
32
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
31
33
|
tslib_1.__metadata("design:type", Array)
|
|
32
34
|
], ChecklistInputType.prototype, "inspectionParts", void 0);
|
|
33
|
-
ChecklistInputType = tslib_1.__decorate([
|
|
35
|
+
exports.ChecklistInputType = ChecklistInputType = tslib_1.__decorate([
|
|
34
36
|
(0, type_graphql_1.InputType)()
|
|
35
37
|
], ChecklistInputType);
|
|
36
38
|
let ChecklistItemInputType = class ChecklistItemInputType {
|
|
37
39
|
};
|
|
40
|
+
exports.ChecklistItemInputType = ChecklistItemInputType;
|
|
38
41
|
tslib_1.__decorate([
|
|
39
42
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
40
43
|
tslib_1.__metadata("design:type", String)
|
|
@@ -51,14 +54,14 @@ tslib_1.__decorate([
|
|
|
51
54
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
52
55
|
tslib_1.__metadata("design:type", String)
|
|
53
56
|
], ChecklistItemInputType.prototype, "inspctionCriteria", void 0);
|
|
54
|
-
ChecklistItemInputType = tslib_1.__decorate([
|
|
57
|
+
exports.ChecklistItemInputType = ChecklistItemInputType = tslib_1.__decorate([
|
|
55
58
|
(0, type_graphql_1.InputType)()
|
|
56
59
|
], ChecklistItemInputType);
|
|
57
60
|
let NewBuildingInspection = class NewBuildingInspection {
|
|
58
61
|
};
|
|
59
62
|
exports.NewBuildingInspection = NewBuildingInspection;
|
|
60
63
|
tslib_1.__decorate([
|
|
61
|
-
(0, type_graphql_1.Field)({ nullable:
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
65
|
tslib_1.__metadata("design:type", String)
|
|
63
66
|
], NewBuildingInspection.prototype, "buildingLevelId", void 0);
|
|
64
67
|
tslib_1.__decorate([
|
|
@@ -86,6 +89,7 @@ exports.NewBuildingInspection = NewBuildingInspection = tslib_1.__decorate([
|
|
|
86
89
|
], NewBuildingInspection);
|
|
87
90
|
let ChecklistSubmitInputType = class ChecklistSubmitInputType {
|
|
88
91
|
};
|
|
92
|
+
exports.ChecklistSubmitInputType = ChecklistSubmitInputType;
|
|
89
93
|
tslib_1.__decorate([
|
|
90
94
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
91
95
|
tslib_1.__metadata("design:type", String)
|
|
@@ -106,11 +110,28 @@ tslib_1.__decorate([
|
|
|
106
110
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
107
111
|
tslib_1.__metadata("design:type", String)
|
|
108
112
|
], ChecklistSubmitInputType.prototype, "taskSupervisorySignature", void 0);
|
|
109
|
-
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
116
|
+
], ChecklistSubmitInputType.prototype, "inspectionRequestMemo", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultMemo", void 0);
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
123
|
+
tslib_1.__metadata("design:type", String)
|
|
124
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultStatus", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
127
|
+
tslib_1.__metadata("design:type", String)
|
|
128
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultType", void 0);
|
|
129
|
+
exports.ChecklistSubmitInputType = ChecklistSubmitInputType = tslib_1.__decorate([
|
|
110
130
|
(0, type_graphql_1.InputType)()
|
|
111
131
|
], ChecklistSubmitInputType);
|
|
112
132
|
let ChecklistItemSubmitInputType = class ChecklistItemSubmitInputType {
|
|
113
133
|
};
|
|
134
|
+
exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType;
|
|
114
135
|
tslib_1.__decorate([
|
|
115
136
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
116
137
|
tslib_1.__metadata("design:type", String)
|
|
@@ -123,7 +144,7 @@ tslib_1.__decorate([
|
|
|
123
144
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
124
145
|
tslib_1.__metadata("design:type", String)
|
|
125
146
|
], ChecklistItemSubmitInputType.prototype, "supervisoryConfirmStatus", void 0);
|
|
126
|
-
ChecklistItemSubmitInputType = tslib_1.__decorate([
|
|
147
|
+
exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType = tslib_1.__decorate([
|
|
127
148
|
(0, type_graphql_1.InputType)()
|
|
128
149
|
], ChecklistItemSubmitInputType);
|
|
129
150
|
let UpdateBuildingInspectionSubmitType = class UpdateBuildingInspectionSubmitType {
|
|
@@ -133,6 +154,10 @@ tslib_1.__decorate([
|
|
|
133
154
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
134
155
|
tslib_1.__metadata("design:type", String)
|
|
135
156
|
], UpdateBuildingInspectionSubmitType.prototype, "id", void 0);
|
|
157
|
+
tslib_1.__decorate([
|
|
158
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
159
|
+
tslib_1.__metadata("design:type", String)
|
|
160
|
+
], UpdateBuildingInspectionSubmitType.prototype, "memo", void 0);
|
|
136
161
|
tslib_1.__decorate([
|
|
137
162
|
(0, type_graphql_1.Field)(type => ChecklistSubmitInputType, { nullable: false }),
|
|
138
163
|
tslib_1.__metadata("design:type", ChecklistSubmitInputType)
|
|
@@ -144,20 +169,24 @@ tslib_1.__decorate([
|
|
|
144
169
|
exports.UpdateBuildingInspectionSubmitType = UpdateBuildingInspectionSubmitType = tslib_1.__decorate([
|
|
145
170
|
(0, type_graphql_1.InputType)()
|
|
146
171
|
], UpdateBuildingInspectionSubmitType);
|
|
147
|
-
let
|
|
172
|
+
let UpdateBuildingInspection = class UpdateBuildingInspection {
|
|
148
173
|
};
|
|
149
|
-
exports.
|
|
174
|
+
exports.UpdateBuildingInspection = UpdateBuildingInspection;
|
|
150
175
|
tslib_1.__decorate([
|
|
151
176
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
152
177
|
tslib_1.__metadata("design:type", String)
|
|
153
|
-
],
|
|
178
|
+
], UpdateBuildingInspection.prototype, "id", void 0);
|
|
154
179
|
tslib_1.__decorate([
|
|
155
180
|
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
156
181
|
tslib_1.__metadata("design:type", String)
|
|
157
|
-
],
|
|
158
|
-
|
|
182
|
+
], UpdateBuildingInspection.prototype, "drawingMarker", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
185
|
+
tslib_1.__metadata("design:type", String)
|
|
186
|
+
], UpdateBuildingInspection.prototype, "memo", void 0);
|
|
187
|
+
exports.UpdateBuildingInspection = UpdateBuildingInspection = tslib_1.__decorate([
|
|
159
188
|
(0, type_graphql_1.InputType)()
|
|
160
|
-
],
|
|
189
|
+
], UpdateBuildingInspection);
|
|
161
190
|
let BuildingInspectionsOfProject = class BuildingInspectionsOfProject {
|
|
162
191
|
};
|
|
163
192
|
exports.BuildingInspectionsOfProject = BuildingInspectionsOfProject;
|
|
@@ -183,6 +212,14 @@ tslib_1.__decorate([
|
|
|
183
212
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
184
213
|
tslib_1.__metadata("design:type", Number)
|
|
185
214
|
], BuildingInspectionsOfBuildingLevel.prototype, "limit", void 0);
|
|
215
|
+
tslib_1.__decorate([
|
|
216
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
217
|
+
tslib_1.__metadata("design:type", String)
|
|
218
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "startDate", void 0);
|
|
219
|
+
tslib_1.__decorate([
|
|
220
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
221
|
+
tslib_1.__metadata("design:type", String)
|
|
222
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "endDate", void 0);
|
|
186
223
|
exports.BuildingInspectionsOfBuildingLevel = BuildingInspectionsOfBuildingLevel = tslib_1.__decorate([
|
|
187
224
|
(0, type_graphql_1.InputType)()
|
|
188
225
|
], BuildingInspectionsOfBuildingLevel);
|
|
@@ -226,4 +263,34 @@ tslib_1.__decorate([
|
|
|
226
263
|
exports.BuildingInspectionList = BuildingInspectionList = tslib_1.__decorate([
|
|
227
264
|
(0, type_graphql_1.ObjectType)()
|
|
228
265
|
], BuildingInspectionList);
|
|
266
|
+
let ProjectManagerOutput = class ProjectManagerOutput {
|
|
267
|
+
};
|
|
268
|
+
exports.ProjectManagerOutput = ProjectManagerOutput;
|
|
269
|
+
tslib_1.__decorate([
|
|
270
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
271
|
+
tslib_1.__metadata("design:type", String)
|
|
272
|
+
], ProjectManagerOutput.prototype, "id", void 0);
|
|
273
|
+
tslib_1.__decorate([
|
|
274
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
275
|
+
tslib_1.__metadata("design:type", String)
|
|
276
|
+
], ProjectManagerOutput.prototype, "phone", void 0);
|
|
277
|
+
tslib_1.__decorate([
|
|
278
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
279
|
+
tslib_1.__metadata("design:type", String)
|
|
280
|
+
], ProjectManagerOutput.prototype, "position", void 0);
|
|
281
|
+
tslib_1.__decorate([
|
|
282
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
283
|
+
tslib_1.__metadata("design:type", String)
|
|
284
|
+
], ProjectManagerOutput.prototype, "userId", void 0);
|
|
285
|
+
tslib_1.__decorate([
|
|
286
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
287
|
+
tslib_1.__metadata("design:type", String)
|
|
288
|
+
], ProjectManagerOutput.prototype, "name", void 0);
|
|
289
|
+
tslib_1.__decorate([
|
|
290
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
291
|
+
tslib_1.__metadata("design:type", String)
|
|
292
|
+
], ProjectManagerOutput.prototype, "updatedAt", void 0);
|
|
293
|
+
exports.ProjectManagerOutput = ProjectManagerOutput = tslib_1.__decorate([
|
|
294
|
+
(0, type_graphql_1.ObjectType)()
|
|
295
|
+
], ProjectManagerOutput);
|
|
229
296
|
//# sourceMappingURL=building-inspection-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+DAA0D;AAC1D,sDAAqF;AAG9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkB9B,CAAA;AAlBY,gDAAkB;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hC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAkBhC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BuildingInspection } from './building-inspection'\nimport { InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\n\n@InputType()\nexport class ChecklistInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: true })\n constructionType?: string\n\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Field({ nullable: true })\n location?: string\n\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Field(type => [String], { nullable: true })\n inspectionParts?: string[]\n}\n\n@InputType()\nexport class ChecklistItemInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n mainType: string\n\n @Field({ nullable: false })\n detailType: string\n\n @Field({ nullable: true })\n inspctionCriteria: string\n}\n\n@InputType()\nexport class NewBuildingInspection {\n @Field({ nullable: true })\n buildingLevelId?: string\n\n @Field(type => ChecklistInputType, { nullable: false })\n checklist: ChecklistInputType\n\n @Field(type => [ChecklistItemInputType], { nullable: false })\n checklistItem: ChecklistItemInputType[]\n\n @Field({ nullable: true })\n cellX?: number\n\n @Field({ nullable: true })\n cellY?: number\n\n @Field({ nullable: true })\n managerId?: string\n}\n\n@InputType()\nexport class ChecklistSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n}\n\n@InputType()\nexport class ChecklistItemSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n constructionConfirmStatus?: string\n\n @Field({ nullable: true })\n supervisoryConfirmStatus?: string\n}\n\n@InputType()\nexport class UpdateBuildingInspectionSubmitType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field(type => ChecklistSubmitInputType, { nullable: false })\n checklist: ChecklistSubmitInputType\n\n @Field(type => [ChecklistItemSubmitInputType], { nullable: false })\n checklistItem: ChecklistItemSubmitInputType[]\n}\n@InputType()\nexport class UpdateBuildingInspection {\n @Field({ nullable: false })\n id: string\n\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Field(type => String, { nullable: true })\n memo?: string\n}\n\n@InputType()\nexport class BuildingInspectionsOfProject {\n @Field({ nullable: false })\n projectId: string\n\n @Field({ nullable: true })\n limit: number\n}\n\n@InputType()\nexport class BuildingInspectionsOfBuildingLevel {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field({ nullable: true })\n limit: number\n\n @Field({ nullable: true })\n startDate?: string\n\n @Field({ nullable: true })\n endDate?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionSummary {\n @Field(type => String, { nullable: true, description: '요청일자' })\n requestDate?: string\n\n @Field(type => Int, { description: '검측 대기 수' })\n wait: number\n\n @Field(type => Int, { description: '검측 요청 수' })\n request: number\n\n @Field(type => Int, { description: '검측 통과 수' })\n pass: number\n\n @Field(type => Int, { description: '검측 실패 수' })\n fail: number\n}\n\n@ObjectType()\nexport class BuildingInspectionList {\n @Field(type => [BuildingInspection])\n items: BuildingInspection[]\n\n @Field(type => Int)\n total: number\n}\n\n@ObjectType()\nexport class ProjectManagerOutput {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n position?: string\n\n @Field(type => ID)\n userId?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n updatedAt?: string\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User } from '@things-factory/auth-base';
|
|
2
2
|
import { BuildingLevel } from '@dssp/building-complex';
|
|
3
3
|
import { Checklist } from '../checklist/checklist';
|
|
4
|
+
import { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog';
|
|
4
5
|
export declare enum BuildingInspectionStatus {
|
|
5
6
|
WAIT = "WAIT",
|
|
6
7
|
OVERALL_WAIT = "OVERALL_WAIT",
|
|
@@ -21,12 +22,15 @@ export declare class BuildingInspection {
|
|
|
21
22
|
drawingMarker?: string;
|
|
22
23
|
cellX?: number;
|
|
23
24
|
cellY?: number;
|
|
25
|
+
memo?: string;
|
|
24
26
|
buildingLevel?: BuildingLevel;
|
|
25
27
|
buildingLevelId?: string;
|
|
26
28
|
checklist?: Checklist;
|
|
27
29
|
checklistId?: string;
|
|
28
30
|
manager?: User;
|
|
29
31
|
managerId?: string;
|
|
32
|
+
worklog?: BuildingInspectionDailyWorklog;
|
|
33
|
+
worklogId?: string;
|
|
30
34
|
createdAt?: Date;
|
|
31
35
|
updatedAt?: Date;
|
|
32
36
|
deletedAt?: Date;
|
|
@@ -7,7 +7,8 @@ const type_graphql_1 = require("type-graphql");
|
|
|
7
7
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
8
|
const building_complex_1 = require("@dssp/building-complex");
|
|
9
9
|
const checklist_1 = require("../checklist/checklist");
|
|
10
|
-
const
|
|
10
|
+
const building_inspection_type_1 = require("./building-inspection-type");
|
|
11
|
+
const building_inspection_daily_worklog_1 = require("../building-inspection-daily-worklog/building-inspection-daily-worklog");
|
|
11
12
|
var BuildingInspectionStatus;
|
|
12
13
|
(function (BuildingInspectionStatus) {
|
|
13
14
|
BuildingInspectionStatus["WAIT"] = "WAIT";
|
|
@@ -72,6 +73,11 @@ tslib_1.__decorate([
|
|
|
72
73
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
74
|
tslib_1.__metadata("design:type", Number)
|
|
74
75
|
], BuildingInspection.prototype, "cellY", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' }),
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], BuildingInspection.prototype, "memo", void 0);
|
|
75
81
|
tslib_1.__decorate([
|
|
76
82
|
(0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
|
|
77
83
|
(0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
|
|
@@ -93,13 +99,22 @@ tslib_1.__decorate([
|
|
|
93
99
|
], BuildingInspection.prototype, "checklistId", void 0);
|
|
94
100
|
tslib_1.__decorate([
|
|
95
101
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)(type =>
|
|
102
|
+
(0, type_graphql_1.Field)(type => building_inspection_type_1.ProjectManagerOutput, { nullable: true }),
|
|
97
103
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
104
|
], BuildingInspection.prototype, "manager", void 0);
|
|
99
105
|
tslib_1.__decorate([
|
|
100
106
|
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.manager),
|
|
101
107
|
tslib_1.__metadata("design:type", String)
|
|
102
108
|
], BuildingInspection.prototype, "managerId", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, typeorm_1.ManyToOne)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
111
|
+
(0, type_graphql_1.Field)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
112
|
+
tslib_1.__metadata("design:type", building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
113
|
+
], BuildingInspection.prototype, "worklog", void 0);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.worklog),
|
|
116
|
+
tslib_1.__metadata("design:type", String)
|
|
117
|
+
], BuildingInspection.prototype, "worklogId", void 0);
|
|
103
118
|
tslib_1.__decorate([
|
|
104
119
|
(0, typeorm_1.CreateDateColumn)(),
|
|
105
120
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAClD,yEAAiE;AACjE,8HAAuH;AAEvH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,yDAA6B,CAAA;IAC7B,+CAAmB,CAAA;IACnB,+DAAmC,CAAA;IACnC,yCAAa,CAAA;IACb,yCAAa,CAAA;AACf,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AACD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,OAAO;CACrB,CAAC,CAAA;AACF,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AAqBK,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CA+F9B,CAAA;AA/FY,gDAAkB;AAGpB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,i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,gBAAM,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC5C,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,aAAa;QAChC,kBAAkB,CAAC,KAAK;QACxB,kBAAkB,CAAC,KAAK;KACzB,EACD;QACE,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE;QAC7G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;QAC/G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,kBAAkB,CA+F9B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n PrimaryGeneratedColumn,\n JoinColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { ProjectManagerOutput } from './building-inspection-type'\nimport { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog'\n\nexport enum BuildingInspectionStatus {\n WAIT = 'WAIT',\n OVERALL_WAIT = 'OVERALL_WAIT',\n REQUEST = 'REQUEST',\n OVERALL_REQUEST = 'OVERALL_REQUEST',\n PASS = 'PASS',\n FAIL = 'FAIL'\n}\nexport enum ProjectType {\n DSSP = 'DSSP',\n DCSP = 'DCSP'\n}\n\nregisterEnumType(BuildingInspectionStatus, {\n name: 'BuildingInspectionStatus',\n description: '검측 상태'\n})\nregisterEnumType(ProjectType, {\n name: 'ProjectType',\n description: '프로젝트 타입'\n})\n\n@Entity({ comment: '시공 검측 (층별 도면의 검측 리스트)' })\n@Index(\n 'ix_building_inspection_0',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.cellX,\n buildingInspection.cellY\n ],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index('ix_building_inspection_1', (buildingInspection: BuildingInspection) => [buildingInspection.checklist], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_building_inspection_2', (buildingInspection: BuildingInspection) => [buildingInspection.requestDate], {\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType()\nexport class BuildingInspection {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)',\n default: BuildingInspectionStatus.WAIT\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Column({ nullable: true, comment: 'X좌표' })\n @Field({ nullable: true })\n cellX?: number\n\n @Column({ nullable: true, comment: 'Y좌표' })\n @Field({ nullable: true })\n cellY?: number\n\n @Column({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' })\n @Field({ nullable: true })\n memo?: string\n\n // 층 정보 (N:1 상위 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field(() => BuildingLevel, { nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.buildingLevel)\n buildingLevelId?: string\n\n // 체크리스트 (1:1 상위 테이블 참조)\n @OneToOne(type => Checklist)\n @JoinColumn()\n @Field(() => Checklist, { nullable: true })\n checklist?: Checklist\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.checklist)\n checklistId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => ProjectManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\n\n // 일일 업무 일지가 생성되면 ID를 넣어줌 (상위 테이블 참조)\n @ManyToOne(type => BuildingInspectionDailyWorklog, { nullable: true })\n @Field(type => BuildingInspectionDailyWorklog, { nullable: true })\n worklog?: BuildingInspectionDailyWorklog\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.worklog)\n worklogId?: string\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((buildingInspection: BuildingInspection) => buildingInspection.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection';
|
|
2
2
|
import { BuildingInspectionQuery } from './building-inspection-query';
|
|
3
3
|
import { BuildingInspectionMutation } from './building-inspection-mutation';
|
|
4
|
-
import { BuildingInspectionSummary } from './building-inspection-type';
|
|
5
|
-
|
|
6
|
-
export declare const entities: (typeof BuildingInspection | typeof BuildingInspectionHistory)[];
|
|
4
|
+
import { BuildingInspectionSummary, ChecklistInputType, ChecklistItemInputType, ChecklistSubmitInputType, ChecklistItemSubmitInputType } from './building-inspection-type';
|
|
5
|
+
export declare const entities: (typeof BuildingInspection)[];
|
|
7
6
|
export declare const resolvers: (typeof BuildingInspectionQuery | typeof BuildingInspectionMutation)[];
|
|
8
|
-
export declare const types: (typeof
|
|
7
|
+
export declare const types: (typeof ChecklistInputType | typeof ChecklistItemInputType | typeof ChecklistSubmitInputType | typeof ChecklistItemSubmitInputType | typeof BuildingInspectionSummary | typeof BuildingInspectionStatus | typeof ProjectType)[];
|
|
@@ -5,8 +5,15 @@ const building_inspection_1 = require("./building-inspection");
|
|
|
5
5
|
const building_inspection_query_1 = require("./building-inspection-query");
|
|
6
6
|
const building_inspection_mutation_1 = require("./building-inspection-mutation");
|
|
7
7
|
const building_inspection_type_1 = require("./building-inspection-type");
|
|
8
|
-
|
|
9
|
-
exports.entities = [building_inspection_1.BuildingInspection, building_inspection_history_1.BuildingInspectionHistory];
|
|
8
|
+
exports.entities = [building_inspection_1.BuildingInspection];
|
|
10
9
|
exports.resolvers = [building_inspection_query_1.BuildingInspectionQuery, building_inspection_mutation_1.BuildingInspectionMutation];
|
|
11
|
-
exports.types = [
|
|
10
|
+
exports.types = [
|
|
11
|
+
building_inspection_1.BuildingInspectionStatus,
|
|
12
|
+
building_inspection_type_1.BuildingInspectionSummary,
|
|
13
|
+
building_inspection_1.ProjectType,
|
|
14
|
+
building_inspection_type_1.ChecklistInputType,
|
|
15
|
+
building_inspection_type_1.ChecklistItemInputType,
|
|
16
|
+
building_inspection_type_1.ChecklistSubmitInputType,
|
|
17
|
+
building_inspection_type_1.ChecklistItemSubmitInputType
|
|
18
|
+
];
|
|
12
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,yEAMmC;AAEtB,QAAA,QAAQ,GAAG,CAAC,wCAAkB,CAAC,CAAA;AAC/B,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,KAAK,GAAG;IACnB,8CAAwB;IACxB,oDAAyB;IACzB,iCAAW;IACX,6CAAkB;IAClB,iDAAsB;IACtB,mDAAwB;IACxB,uDAA4B;CAC7B,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport { BuildingInspectionQuery } from './building-inspection-query'\nimport { BuildingInspectionMutation } from './building-inspection-mutation'\nimport {\n BuildingInspectionSummary,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n} from './building-inspection-type'\n\nexport const entities = [BuildingInspection]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const types = [\n BuildingInspectionStatus,\n BuildingInspectionSummary,\n ProjectType,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n]\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
import { BuildingInspectionDailyWorklogPatch, BuildingInspectionDailyWorklogNew } from './building-inspection-daily-worklog-type';
|
|
3
|
+
export declare class BuildingInspectionDailyWorklogMutation {
|
|
4
|
+
createBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogNew, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
|
|
5
|
+
updateBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogPatch, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
|
|
6
|
+
}
|