@dssp/supervision 0.0.18 → 0.0.19
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/building-inspection/building-inspection-detail-checklist.ts +0 -2
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +17 -5
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +4 -1
- package/client/pages/checklist/checklist-view.ts +0 -13
- package/client/pages/checklist-template/checklist-template-list.ts +31 -8
- package/client/pages/checklist-template/checklist-type-management.ts +34 -14
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -1
- 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 +21 -10
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +4 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.js +0 -12
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +8 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +32 -9
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +8 -1
- package/dist-client/pages/checklist-template/checklist-type-management.js +35 -14
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/server/service/checklist-type/checklist-type-query.ts +1 -1
|
@@ -14,7 +14,7 @@ let ChecklistTypeQuery = class ChecklistTypeQuery {
|
|
|
14
14
|
domain,
|
|
15
15
|
params,
|
|
16
16
|
repository: await (0, shell_1.getRepository)(checklist_type_1.ChecklistType),
|
|
17
|
-
searchables: ['
|
|
17
|
+
searchables: ['mainType', 'detailType']
|
|
18
18
|
});
|
|
19
19
|
const [items, total] = await queryBuilder.getManyAndCount();
|
|
20
20
|
return { items, total };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-type-query.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AAGlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,WAAW,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"checklist-type-query.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AAGlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,W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GK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AA9BU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CA+B9B;AA/BY,gDAAkB","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistType } from './checklist-type'\nimport { ChecklistTypeList } from './checklist-type-type'\n\n@Resolver(ChecklistType)\nexport class ChecklistTypeQuery {\n @Query(returns => ChecklistTypeList, { description: 'To fetch multiple ChecklistTypes' })\n async checklistTypes(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistTypeList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(ChecklistType),\n searchables: ['mainType', 'detailType']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() checklistType: ChecklistType): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: checklistType.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.creatorId })\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export * from './checklist-item/checklist-item';
|
|
|
8
8
|
export * from './checklist-template/checklist-template';
|
|
9
9
|
export * from './checklist-template-item/checklist-template-item';
|
|
10
10
|
export * from './building-inspection/building-inspection';
|
|
11
|
-
export declare const entities: (typeof import("./
|
|
11
|
+
export declare const entities: (typeof import("./supervisor/supervisor").Supervisor | typeof import("./project-report/project-report").ProjectReport | typeof import("./checklist-item/checklist-item").ChecklistItem | typeof import("./checklist/checklist").Checklist | typeof import("./building-inspection/building-inspection").BuildingInspection | typeof import("./checklist/checklist-history").ChecklistHistory | typeof import("./building-inspection/building-inspection-history").BuildingInspectionHistory | typeof import("./action-plan/action-plan").ActionPlan | typeof import("./issue/issue").Issue | typeof import("./checklist-type/checklist-type").ChecklistType | typeof import("./checklist-template-item/checklist-template-item").ChecklistTemplateItem | typeof import("./checklist-template/checklist-template").ChecklistTemplate)[];
|
|
12
12
|
export declare const subscribers: any[];
|
|
13
13
|
export declare const schema: {
|
|
14
14
|
resolverClasses: typeof import("./checklist-item/checklist-item-mutation").ChecklistItemMutation[];
|