@things-factory/organization 7.0.0-alpha.3 → 7.0.0-alpha.30

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.3",
3
+ "version": "7.0.0-alpha.30",
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.1",
36
- "@things-factory/contact": "^7.0.0-alpha.1",
37
- "@things-factory/shell": "^7.0.0-alpha.1"
35
+ "@things-factory/auth-base": "^7.0.0-alpha.30",
36
+ "@things-factory/contact": "^7.0.0-alpha.30",
37
+ "@things-factory/shell": "^7.0.0-alpha.30"
38
38
  },
39
- "gitHead": "8b545949d9f8f915251dabfc633dfb68e1270fff"
39
+ "gitHead": "64f2ff6e284ecb26530d1a456a0627dced03fde7"
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
- "button.add-child-dept": "peer dept.",
3
- "button.add-sibling-dept": "sub. dept.",
2
+ "button.add-child-dept": "sub. dept.",
3
+ "button.add-sibling-dept": "peer dept.",
4
4
  "button.copy from": "copy from",
5
5
  "button.detach": "detach",
6
6
  "field.approver": "approver",
@@ -1,6 +1,6 @@
1
1
  {
2
- "button.add-child-dept": "同等部門追加",
3
- "button.add-sibling-dept": "下位部門追加",
2
+ "button.add-child-dept": "下位部門追加",
3
+ "button.add-sibling-dept": "同等部門追加",
4
4
  "button.copy from": "コピーしてくる",
5
5
  "button.detach": "連結解除",
6
6
  "field.approver": "決裁者",
@@ -1,6 +1,6 @@
1
1
  {
2
- "button.add-child-dept": "동급부서",
3
- "button.add-sibling-dept": "하위부서",
2
+ "button.add-child-dept": "하위부서",
3
+ "button.add-sibling-dept": "동급부서",
4
4
  "button.copy from": "복사해오기",
5
5
  "button.detach": "연결해제",
6
6
  "field.approver": "결재자",
@@ -1,6 +1,6 @@
1
1
  {
2
- "button.add-child-dept": "tambah jabatan sejawat",
3
- "button.add-sibling-dept": "tambah jabatan bawahan",
2
+ "button.add-child-dept": "tambah jabatan bawahan",
3
+ "button.add-sibling-dept": "tambah jabatan sejawat",
4
4
  "button.copy from": "salin dari",
5
5
  "button.detach": "lepaskan",
6
6
  "field.approver": "penyetuju",
@@ -1,6 +1,6 @@
1
1
  {
2
- "button.add-child-dept": "添加同级部门",
3
- "button.add-sibling-dept": "添加下级部门",
2
+ "button.add-child-dept": "添加下级部门",
3
+ "button.add-sibling-dept": "添加同级部门",
4
4
  "button.copy from": "复制自",
5
5
  "button.detach": "分离",
6
6
  "field.approver": "审批人",