@things-factory/document-template-base 6.2.170 → 6.2.178
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-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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -4
- package/dist-server/service/template-file/template-file.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -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;;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AAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAGb;IADC,IAAA,oBAAK,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),
|
|
@@ -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":";;;;AACA,qCAUgB;AAChB,+CAAoD;AAEpD,yD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B","sourcesContent":["\nimport {\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({ 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({ 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"]}
|