@things-factory/document-template-base 7.0.1-beta.1 → 7.0.1-beta.10

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.
Files changed (36) hide show
  1. package/dist-server/constants/index.d.ts +1 -0
  2. package/dist-server/constants/template-type.d.ts +18 -0
  3. package/dist-server/controllers/index.d.ts +1 -0
  4. package/dist-server/controllers/report-to-html.d.ts +21 -0
  5. package/dist-server/index.d.ts +4 -0
  6. package/dist-server/migrations/index.d.ts +1 -0
  7. package/dist-server/routes.d.ts +1 -0
  8. package/dist-server/service/doc-template/doc-template-mutation.d.ts +9 -0
  9. package/dist-server/service/doc-template/doc-template-mutation.js +2 -2
  10. package/dist-server/service/doc-template/doc-template-mutation.js.map +1 -1
  11. package/dist-server/service/doc-template/doc-template-query.d.ts +12 -0
  12. package/dist-server/service/doc-template/doc-template-query.js +2 -2
  13. package/dist-server/service/doc-template/doc-template-query.js.map +1 -1
  14. package/dist-server/service/doc-template/doc-template-type.d.ts +29 -0
  15. package/dist-server/service/doc-template/doc-template-type.js +6 -6
  16. package/dist-server/service/doc-template/doc-template-type.js.map +1 -1
  17. package/dist-server/service/doc-template/doc-template.d.ts +22 -0
  18. package/dist-server/service/doc-template/doc-template.js +2 -2
  19. package/dist-server/service/doc-template/doc-template.js.map +1 -1
  20. package/dist-server/service/doc-template/index.d.ts +5 -0
  21. package/dist-server/service/index.d.ts +7 -0
  22. package/dist-server/service/template-file/index.d.ts +5 -0
  23. package/dist-server/service/template-file/template-file-mutation.d.ts +9 -0
  24. package/dist-server/service/template-file/template-file-mutation.js +2 -2
  25. package/dist-server/service/template-file/template-file-mutation.js.map +1 -1
  26. package/dist-server/service/template-file/template-file-query.d.ts +14 -0
  27. package/dist-server/service/template-file/template-file-query.js +2 -2
  28. package/dist-server/service/template-file/template-file-query.js.map +1 -1
  29. package/dist-server/service/template-file/template-file-type.d.ts +28 -0
  30. package/dist-server/service/template-file/template-file-type.js +6 -6
  31. package/dist-server/service/template-file/template-file-type.js.map +1 -1
  32. package/dist-server/service/template-file/template-file.d.ts +23 -0
  33. package/dist-server/service/template-file/template-file.js +3 -4
  34. package/dist-server/service/template-file/template-file.js.map +1 -1
  35. package/dist-server/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +5 -5
@@ -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", typeof (_a = typeof attachment_base_1.Attachment !== "undefined" && attachment_base_1.Attachment) === "function" ? _a : Object)
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":";;;;;AACA,qCAUgB;AAChB,+CAAoD;AAEpD,yDAAgD;AAChD,iDAA8C;AAC9C,qEAA4D;AASrD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAoExB,CAAA;AAnEC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;wCACC;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAC,MAAM,EAAE,QAAQ,EAAC,KAAK,EAAE,CAAC;IACvC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAC,KAAK,EAAE,CAAC;;0CACd;AAEZ;IAAC,IAAA,gBA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C;sCACd,IAAI;+CAAA;AAnEL,YAAY;IAPxB,IAAA,gBAAM,EAAC,gBAAgB,CAAC;IACxB,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACtH,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACvG,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxG,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAC3G,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAC1G,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;GAC1C,YAAY,CAoExB;AApEY,oCAAY","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"]}
1
+ {"version":3,"file":"template-file.js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AAC,CAAC;IAC1G,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;GAC1C,YAAY,CAoExB","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"]}