@things-factory/organization 7.0.0-alpha.7 → 7.0.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/organization",
3
- "version": "7.0.0-alpha.7",
3
+ "version": "7.0.0-alpha.8",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,9 +32,9 @@
32
32
  "@operato/data-tree": "^2.0.0-alpha.0",
33
33
  "@operato/graphql": "^2.0.0-alpha.0",
34
34
  "@operato/shell": "^2.0.0-alpha.0",
35
- "@things-factory/auth-base": "^7.0.0-alpha.7",
36
- "@things-factory/contact": "^7.0.0-alpha.7",
37
- "@things-factory/shell": "^7.0.0-alpha.7"
35
+ "@things-factory/auth-base": "^7.0.0-alpha.8",
36
+ "@things-factory/contact": "^7.0.0-alpha.8",
37
+ "@things-factory/shell": "^7.0.0-alpha.8"
38
38
  },
39
- "gitHead": "85c46b9027d6188ddbd5104215a2256ff5331c19"
39
+ "gitHead": "b4981ea2721e7eaf4dbd618b6c77316ebc000ee5"
40
40
  }
@@ -1,15 +1,4 @@
1
- import {
2
- CreateDateColumn,
3
- UpdateDateColumn,
4
- DeleteDateColumn,
5
- Entity,
6
- Index,
7
- Column,
8
- RelationId,
9
- ManyToOne,
10
- PrimaryGeneratedColumn,
11
- VersionColumn
12
- } from 'typeorm'
1
+ import { CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Entity, Index, Column, RelationId, ManyToOne, PrimaryGeneratedColumn, VersionColumn } from 'typeorm'
13
2
  import { InputType, ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'
14
3
 
15
4
  import { Domain, ObjectRef } from '@things-factory/shell'
@@ -47,18 +36,9 @@ export class ApprovalLineOwner {
47
36
  }
48
37
 
49
38
  @Entity()
50
- @Index(
51
- 'ix_approval_line_0',
52
- (approvalLine: ApprovalLine) => [
53
- approvalLine.domain,
54
- approvalLine.ownerType,
55
- approvalLine.ownerValue,
56
- approvalLine.name
57
- ],
58
- {
59
- unique: true
60
- }
61
- )
39
+ @Index('ix_approval_line_0', (approvalLine: ApprovalLine) => [approvalLine.domain, approvalLine.ownerType, approvalLine.ownerValue, approvalLine.name], {
40
+ unique: true
41
+ })
62
42
  @ObjectType({ description: 'Entity for ApprovalLine' })
63
43
  export class ApprovalLine {
64
44
  @PrimaryGeneratedColumn('uuid')
@@ -84,7 +64,7 @@ export class ApprovalLine {
84
64
  @Field(type => [ApprovalLineItem], { nullable: true })
85
65
  model?: ApprovalLineItem[]
86
66
 
87
- @Column({ nullable: true })
67
+ @Column({ nullable: true, length: 20 })
88
68
  @Field({ nullable: true })
89
69
  ownerType?: ApprovalLineOwnerType
90
70