@things-factory/i18n-base 7.0.0-alpha.0 → 7.0.0-alpha.18
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.
|
@@ -35,12 +35,12 @@ tslib_1.__decorate([
|
|
|
35
35
|
], Terminology.prototype, "description", void 0);
|
|
36
36
|
tslib_1.__decorate([
|
|
37
37
|
(0, type_graphql_1.Field)(),
|
|
38
|
-
(0, typeorm_1.Column)(),
|
|
38
|
+
(0, typeorm_1.Column)({ length: 20 }),
|
|
39
39
|
tslib_1.__metadata("design:type", String)
|
|
40
40
|
], Terminology.prototype, "locale", void 0);
|
|
41
41
|
tslib_1.__decorate([
|
|
42
42
|
(0, type_graphql_1.Field)(),
|
|
43
|
-
(0, typeorm_1.Column)(),
|
|
43
|
+
(0, typeorm_1.Column)({ length: 20 }),
|
|
44
44
|
tslib_1.__metadata("design:type", String)
|
|
45
45
|
], Terminology.prototype, "category", void 0);
|
|
46
46
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminology.js","sourceRoot":"","sources":["../../../server/service/terminology/terminology.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"terminology.js","sourceRoot":"","sources":["../../../server/service/terminology/terminology.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAAkI;AAElI,iDAA8C;AAQvC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAyCvB,CAAA;AAxCC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;uCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;2CAAA;AAEf;IAAC,IAAA,oBAAU,EA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,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACrE,IAAA,eAAK,EAAC,WAAW,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;GACpE,WAAW,CAyCvB;AAzCY,kCAAW","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@ObjectType({ description: 'Entity for Terminology' })\n@Index('ix_term_0', (term: Terminology) => [term.domain, term.locale, term.category, term.name], { unique: true })\n@Index('ix_term_1', (term: Terminology) => [term.domain])\n@Index('ix_term_2', (term: Terminology) => [term.domain, term.locale])\n@Index('ix_term_3', (term: Terminology) => [term.domain, term.locale, term.name])\nexport class Terminology {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((terminology: Terminology) => terminology.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description?: string\n\n @Field()\n @Column({ length: 20 })\n locale: string\n\n @Field()\n @Column({ length: 20 })\n category: string\n\n @Field()\n @Column()\n display: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n}\n"]}
|