@things-factory/document-template-base 7.0.0-alpha.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/bootstrap.js +1 -1
- package/dist-server/constants/index.d.ts +1 -0
- package/dist-server/constants/template-type.d.ts +18 -0
- package/dist-server/controllers/index.d.ts +1 -0
- package/dist-server/controllers/report-to-html.d.ts +20 -0
- package/dist-server/controllers/report-to-html.js +4 -5
- package/dist-server/controllers/report-to-html.js.map +1 -1
- package/dist-server/index.d.ts +4 -0
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/service/doc-template/doc-template-mutation.d.ts +9 -0
- package/dist-server/service/doc-template/doc-template-mutation.js +2 -2
- package/dist-server/service/doc-template/doc-template-mutation.js.map +1 -1
- package/dist-server/service/doc-template/doc-template-query.d.ts +12 -0
- package/dist-server/service/doc-template/doc-template-query.js +3 -3
- package/dist-server/service/doc-template/doc-template-query.js.map +1 -1
- package/dist-server/service/doc-template/doc-template-type.d.ts +29 -0
- package/dist-server/service/doc-template/doc-template-type.js +6 -6
- package/dist-server/service/doc-template/doc-template-type.js.map +1 -1
- package/dist-server/service/doc-template/doc-template.d.ts +22 -0
- package/dist-server/service/doc-template/doc-template.js +4 -4
- package/dist-server/service/doc-template/doc-template.js.map +1 -1
- package/dist-server/service/doc-template/index.d.ts +5 -0
- package/dist-server/service/index.d.ts +7 -0
- package/dist-server/service/template-file/index.d.ts +5 -0
- package/dist-server/service/template-file/template-file-mutation.d.ts +9 -0
- package/dist-server/service/template-file/template-file-mutation.js +2 -2
- package/dist-server/service/template-file/template-file-mutation.js.map +1 -1
- package/dist-server/service/template-file/template-file-query.d.ts +14 -0
- package/dist-server/service/template-file/template-file-query.js +3 -3
- package/dist-server/service/template-file/template-file-query.js.map +1 -1
- package/dist-server/service/template-file/template-file-type.d.ts +28 -0
- package/dist-server/service/template-file/template-file-type.js +6 -6
- package/dist-server/service/template-file/template-file-type.js.map +1 -1
- package/dist-server/service/template-file/template-file.d.ts +23 -0
- package/dist-server/service/template-file/template-file.js +5 -6
- package/dist-server/service/template-file/template-file.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/server/service/doc-template/doc-template-query.ts +6 -7
- package/server/service/doc-template/doc-template.ts +26 -27
- package/server/service/template-file/template-file-query.ts +8 -9
- package/server/service/template-file/template-file.ts +27 -28
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-file-query.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file-query.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"template-file-query.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAC9F,iDAA+F;AAC/F,mDAA8C;AAC9C,6DAAuD;AAEvD,yDAAgD;AAChD,iDAA8C;AAC9C,qEAA4D;AAGrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEtB,AAAN,KAAK,CAAC,YAAY,CAAY,EAAU,EAAS,OAAY;QAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAChC,OAAO,MAAM,IAAA,qBAAa,EAAC,4BAAY,CAAC,CAAC,OAAO,CAAC;YAC/C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CAA0B,MAAiB,EAAS,OAAY;QACjF,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,4BAAY,CAAC;YAC7C,WAAW,EAAE,CAAC,MAAM,EAAE,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AAiC,EAAE,CAAC;IAClE,mBAAA,IAAA,mBAAI,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,CAAC,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;sDAY7D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAU,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAe,4BAAY;;mDAElD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAe,4BAAY;;+CAE9C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAe,4BAAY;;gDAE/C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAe,4BAAY;;gDAE/C;4BA1CU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,4BAAY,CAAC;GACV,iBAAiB,CA2C7B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'\nimport { ListParam, getRepository, getQueryBuilderFromListParams } from '@things-factory/shell'\nimport { TemplateFile } from './template-file'\nimport { TemplateFileList } from './template-file-type'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\nimport { Attachment } from '@things-factory/attachment-base'\n\n@Resolver(TemplateFile)\nexport class TemplateFileQuery {\n @Query(returns => TemplateFile, { description: 'To fetch a TemplateFile' })\n async templateFile(@Arg('id') id: string, @Ctx() context: any): Promise<TemplateFile> {\n const { domain } = context.state\n return await getRepository(TemplateFile).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => TemplateFileList, { description: 'To fetch multiple TemplateFiles' })\n async templateFiles(@Args(type => ListParam) params: ListParam, @Ctx() context: any): Promise<TemplateFileList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(TemplateFile),\n searchables: ['name', 'description', 'note']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n return { items, total }\n }\n\n @FieldResolver(type => Attachment)\n async attachment(@Root() templateFile: TemplateFile): Promise<Attachment> {\n return await getRepository(Attachment).findOneBy({ id: templateFile.attachmentId })\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() templateFile: TemplateFile): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: templateFile.domainId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() templateFile: TemplateFile): Promise<User> {\n return await getRepository(User).findOneBy({ id: templateFile.creatorId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() templateFile: TemplateFile): Promise<User> {\n return await getRepository(User).findOneBy({ id: templateFile.updaterId })\n }\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ObjectRef } from '@things-factory/shell';
|
|
2
|
+
import { TemplateFile } from './template-file';
|
|
3
|
+
export declare class NewTemplateFile {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
jobType?: string;
|
|
7
|
+
jobClass?: string;
|
|
8
|
+
jobCategory?: string;
|
|
9
|
+
activeFlag?: boolean;
|
|
10
|
+
note?: string;
|
|
11
|
+
attachment?: ObjectRef;
|
|
12
|
+
}
|
|
13
|
+
export declare class TemplateFilePatch {
|
|
14
|
+
id?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
jobType?: string;
|
|
18
|
+
jobClass?: string;
|
|
19
|
+
jobCategory?: string;
|
|
20
|
+
activeFlag?: boolean;
|
|
21
|
+
note?: string;
|
|
22
|
+
attachment?: ObjectRef;
|
|
23
|
+
cuFlag: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class TemplateFileList {
|
|
26
|
+
items: TemplateFile[];
|
|
27
|
+
total: number;
|
|
28
|
+
}
|
|
@@ -7,6 +7,7 @@ const shell_1 = require("@things-factory/shell");
|
|
|
7
7
|
const template_file_1 = require("./template-file");
|
|
8
8
|
let NewTemplateFile = class NewTemplateFile {
|
|
9
9
|
};
|
|
10
|
+
exports.NewTemplateFile = NewTemplateFile;
|
|
10
11
|
tslib_1.__decorate([
|
|
11
12
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
12
13
|
tslib_1.__metadata("design:type", String)
|
|
@@ -39,12 +40,12 @@ tslib_1.__decorate([
|
|
|
39
40
|
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
40
41
|
tslib_1.__metadata("design:type", shell_1.ObjectRef)
|
|
41
42
|
], NewTemplateFile.prototype, "attachment", void 0);
|
|
42
|
-
NewTemplateFile = tslib_1.__decorate([
|
|
43
|
+
exports.NewTemplateFile = NewTemplateFile = tslib_1.__decorate([
|
|
43
44
|
(0, type_graphql_1.InputType)()
|
|
44
45
|
], NewTemplateFile);
|
|
45
|
-
exports.NewTemplateFile = NewTemplateFile;
|
|
46
46
|
let TemplateFilePatch = class TemplateFilePatch {
|
|
47
47
|
};
|
|
48
|
+
exports.TemplateFilePatch = TemplateFilePatch;
|
|
48
49
|
tslib_1.__decorate([
|
|
49
50
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
50
51
|
tslib_1.__metadata("design:type", String)
|
|
@@ -85,12 +86,12 @@ tslib_1.__decorate([
|
|
|
85
86
|
(0, type_graphql_1.Field)(),
|
|
86
87
|
tslib_1.__metadata("design:type", String)
|
|
87
88
|
], TemplateFilePatch.prototype, "cuFlag", void 0);
|
|
88
|
-
TemplateFilePatch = tslib_1.__decorate([
|
|
89
|
+
exports.TemplateFilePatch = TemplateFilePatch = tslib_1.__decorate([
|
|
89
90
|
(0, type_graphql_1.InputType)()
|
|
90
91
|
], TemplateFilePatch);
|
|
91
|
-
exports.TemplateFilePatch = TemplateFilePatch;
|
|
92
92
|
let TemplateFileList = class TemplateFileList {
|
|
93
93
|
};
|
|
94
|
+
exports.TemplateFileList = TemplateFileList;
|
|
94
95
|
tslib_1.__decorate([
|
|
95
96
|
(0, type_graphql_1.Field)(type => [template_file_1.TemplateFile]),
|
|
96
97
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -99,8 +100,7 @@ tslib_1.__decorate([
|
|
|
99
100
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
100
101
|
tslib_1.__metadata("design:type", Number)
|
|
101
102
|
], TemplateFileList.prototype, "total", void 0);
|
|
102
|
-
TemplateFileList = tslib_1.__decorate([
|
|
103
|
+
exports.TemplateFileList = TemplateFileList = tslib_1.__decorate([
|
|
103
104
|
(0, type_graphql_1.ObjectType)()
|
|
104
105
|
], TemplateFileList);
|
|
105
|
-
exports.TemplateFileList = TemplateFileList;
|
|
106
106
|
//# sourceMappingURL=template-file-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-file-type.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file-type.ts"],"names":[],"mappings":";;;;AACA,+CAAoE;AACpE,iDAAiD;AACjD,mDAA8C;AAGvC,IAAM,eAAe,GAArB,MAAM,eAAe;CAwB3B,CAAA;
|
|
1
|
+
{"version":3,"file":"template-file-type.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file-type.ts"],"names":[],"mappings":";;;;AACA,+CAAoE;AACpE,iDAAiD;AACjD,mDAA8C;AAGvC,IAAM,eAAe,GAArB,MAAM,eAAe;CAwB3B,CAAA;AAxBY,0CAAe;AAE1B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CACf;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACR;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;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AK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChC,iBAAS;qDAAA;AAGtB;IADC,IAAA,oBAAK,GAAE;;iDACM;4BA7BH,iBAAiB;IAD7B,IAAA,wBAAS,GAAE;GACC,iBAAiB,CA8B7B;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAM5B,CAAA;AANY,4CAAgB;AAE3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,CAAC;;+CACT;AAGrB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;+CACN;2BALF,gBAAgB;IAD5B,IAAA,yBAAU,GAAE;GACA,gBAAgB,CAM5B","sourcesContent":["\nimport { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ObjectRef } from '@things-factory/shell'\nimport { TemplateFile } from './template-file'\n\n@InputType()\nexport class NewTemplateFile {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n description: string\n\n @Field({ nullable: true })\n jobType?: string\n\n @Field({ nullable: true })\n jobClass?: string\n\n @Field({ nullable: true })\n jobCategory?: string\n\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRef, { nullable: true })\n attachment?: ObjectRef\n}\n\n@InputType()\nexport class TemplateFilePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n jobType?: string\n\n @Field({ nullable: true })\n jobClass?: string\n\n @Field({ nullable: true })\n jobCategory?: string\n\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRef, { nullable: true })\n attachment?: ObjectRef\n\n @Field()\n cuFlag: string\n}\n\n@ObjectType()\nexport class TemplateFileList {\n @Field(type => [TemplateFile])\n items: TemplateFile[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { Domain } from '@things-factory/shell';
|
|
3
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
4
|
+
export declare class TemplateFile {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
jobType?: string;
|
|
9
|
+
jobClass?: string;
|
|
10
|
+
jobCategory?: string;
|
|
11
|
+
activeFlag?: boolean;
|
|
12
|
+
note?: string;
|
|
13
|
+
attachment: Attachment;
|
|
14
|
+
attachmentId?: string;
|
|
15
|
+
domain: Domain;
|
|
16
|
+
domainId: string;
|
|
17
|
+
creator?: User;
|
|
18
|
+
creatorId?: string;
|
|
19
|
+
updater?: User;
|
|
20
|
+
updaterId?: string;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.TemplateFile = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
@@ -10,6 +9,7 @@ const shell_1 = require("@things-factory/shell");
|
|
|
10
9
|
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
11
10
|
let TemplateFile = class TemplateFile {
|
|
12
11
|
};
|
|
12
|
+
exports.TemplateFile = TemplateFile;
|
|
13
13
|
tslib_1.__decorate([
|
|
14
14
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
15
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -53,7 +53,7 @@ tslib_1.__decorate([
|
|
|
53
53
|
tslib_1.__decorate([
|
|
54
54
|
(0, typeorm_1.ManyToOne)(type => attachment_base_1.Attachment, { createForeignKeyConstraints: false, nullable: true }),
|
|
55
55
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
-
tslib_1.__metadata("design:type",
|
|
56
|
+
tslib_1.__metadata("design:type", attachment_base_1.Attachment)
|
|
57
57
|
], TemplateFile.prototype, "attachment", void 0);
|
|
58
58
|
tslib_1.__decorate([
|
|
59
59
|
(0, typeorm_1.RelationId)((templateFile) => templateFile.attachment),
|
|
@@ -70,7 +70,7 @@ tslib_1.__decorate([
|
|
|
70
70
|
], TemplateFile.prototype, "domainId", void 0);
|
|
71
71
|
tslib_1.__decorate([
|
|
72
72
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { createForeignKeyConstraints: false, nullable: true }),
|
|
73
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
74
74
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
75
75
|
], TemplateFile.prototype, "creator", void 0);
|
|
76
76
|
tslib_1.__decorate([
|
|
@@ -79,7 +79,7 @@ tslib_1.__decorate([
|
|
|
79
79
|
], TemplateFile.prototype, "creatorId", void 0);
|
|
80
80
|
tslib_1.__decorate([
|
|
81
81
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { createForeignKeyConstraints: false, nullable: true }),
|
|
82
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
83
83
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
84
84
|
], TemplateFile.prototype, "updater", void 0);
|
|
85
85
|
tslib_1.__decorate([
|
|
@@ -96,7 +96,7 @@ tslib_1.__decorate([
|
|
|
96
96
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
97
|
tslib_1.__metadata("design:type", Date)
|
|
98
98
|
], TemplateFile.prototype, "updatedAt", void 0);
|
|
99
|
-
TemplateFile = tslib_1.__decorate([
|
|
99
|
+
exports.TemplateFile = TemplateFile = tslib_1.__decorate([
|
|
100
100
|
(0, typeorm_1.Entity)('template_files'),
|
|
101
101
|
(0, typeorm_1.Index)('ix_template_file_0', (templateFile) => [templateFile.domain, templateFile.name], { unique: true }),
|
|
102
102
|
(0, typeorm_1.Index)('ix_template_file_1', (templateFile) => [templateFile.domain, templateFile.jobType]),
|
|
@@ -105,5 +105,4 @@ TemplateFile = tslib_1.__decorate([
|
|
|
105
105
|
(0, typeorm_1.Index)('ix_template_file_4', (templateFile) => [templateFile.domain, templateFile.attachment]),
|
|
106
106
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for TemplateFile' })
|
|
107
107
|
], TemplateFile);
|
|
108
|
-
exports.TemplateFile = TemplateFile;
|
|
109
108
|
//# sourceMappingURL=template-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-file.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-file.js","sourceRoot":"","sources":["../../../server/service/template-file/template-file.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAAoD;AAEpD,yDAAgD;AAChD,iDAA8C;AAC9C,qEAA4D;AASrD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAoExB,CAAA;AApEY,oCAAY;AAGd;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;wCACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACf;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACR;A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A,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvH,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACxG,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IACzG,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAC5G,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC3G,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;GAC1C,YAAY,CAoExB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\nimport { Attachment } from '@things-factory/attachment-base'\n\n@Entity('template_files')\n@Index('ix_template_file_0', (templateFile: TemplateFile) => [templateFile.domain, templateFile.name], { unique: true })\n@Index('ix_template_file_1', (templateFile: TemplateFile) => [templateFile.domain, templateFile.jobType])\n@Index('ix_template_file_2', (templateFile: TemplateFile) => [templateFile.domain, templateFile.jobClass])\n@Index('ix_template_file_3', (templateFile: TemplateFile) => [templateFile.domain, templateFile.jobCategory])\n@Index('ix_template_file_4', (templateFile: TemplateFile) => [templateFile.domain, templateFile.attachment])\n@ObjectType({ description: 'Entity for TemplateFile' })\nexport class TemplateFile {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ name: 'name', nullable: false })\n @Field({ nullable: false })\n name: string\n\n @Column({ name: 'description', nullable: false })\n @Field({ nullable: false })\n description: string\n\n @Column({ name: 'job_type', nullable: true })\n @Field({ nullable: true })\n jobType?: string\n\n @Column({ name: 'job_class', nullable: true })\n @Field({ nullable: true })\n jobClass?: string\n\n @Column({ name: 'job_category', nullable: true })\n @Field({ nullable: true })\n jobCategory?: string\n\n @Column({ name: 'active_flag', type: 'boolean', nullable: true })\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @Column({ name: 'note', nullable: true })\n @Field({ nullable: true })\n note?: string\n\n @ManyToOne(type => Attachment, { createForeignKeyConstraints: false, nullable: true })\n @Field({ nullable: true })\n attachment: Attachment\n\n @RelationId((templateFile: TemplateFile) => templateFile.attachment)\n attachmentId?: string\n\n @ManyToOne(type => Domain, { createForeignKeyConstraints: false, nullable: false })\n @Field({ nullable: false })\n domain: Domain\n\n @RelationId((templateFile: TemplateFile) => templateFile.domain)\n domainId: string\n\n @ManyToOne(type => User, { createForeignKeyConstraints: false, nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((templateFile: TemplateFile) => templateFile.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { createForeignKeyConstraints: false, nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((templateFile: TemplateFile) => templateFile.updater)\n updaterId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n}\n"]}
|