@things-factory/organization 7.1.20 → 7.1.21

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.1.20",
3
+ "version": "7.1.21",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -33,10 +33,10 @@
33
33
  "@operato/graphql": "^7.0.0",
34
34
  "@operato/p13n": "^7.0.0",
35
35
  "@operato/shell": "^7.0.0",
36
- "@things-factory/auth-base": "^7.1.20",
37
- "@things-factory/code-ui": "^7.1.20",
38
- "@things-factory/contact": "^7.1.20",
36
+ "@things-factory/auth-base": "^7.1.21",
37
+ "@things-factory/code-ui": "^7.1.21",
38
+ "@things-factory/contact": "^7.1.21",
39
39
  "@things-factory/shell": "^7.1.17"
40
40
  },
41
- "gitHead": "b8381954019a1057a32c23379277c45447708d84"
41
+ "gitHead": "8391c69c808451e0fdc16a5aaa952bb128466f16"
42
42
  }
@@ -128,8 +128,14 @@ export class DepartmentHistory implements HistoryEntityInterface<Department> {
128
128
  ? 'enum'
129
129
  : DATABASE_TYPE == 'oracle'
130
130
  ? 'varchar2'
131
- : 'smallint',
132
- enum: HistoryActionType
131
+ : DATABASE_TYPE == 'mssql'
132
+ ? 'nvarchar'
133
+ : 'varchar',
134
+ enum:
135
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
136
+ ? HistoryActionType
137
+ : undefined,
138
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
133
139
  })
134
140
  public action!: HistoryActionType
135
141
  }
@@ -160,8 +160,14 @@ export class EmployeeHistory implements HistoryEntityInterface<Employee> {
160
160
  ? 'enum'
161
161
  : DATABASE_TYPE == 'oracle'
162
162
  ? 'varchar2'
163
- : 'smallint',
164
- enum: HistoryActionType
163
+ : DATABASE_TYPE == 'mssql'
164
+ ? 'nvarchar'
165
+ : 'varchar',
166
+ enum:
167
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
168
+ ? HistoryActionType
169
+ : undefined,
170
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
165
171
  })
166
172
  public action!: HistoryActionType
167
173
  }