@things-factory/auth-base 7.1.20 → 7.1.22

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/auth-base",
3
- "version": "7.1.20",
3
+ "version": "7.1.22",
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
  "dependencies": {
33
33
  "@simplewebauthn/browser": "^10.0.0",
34
34
  "@simplewebauthn/server": "^10.0.0",
35
- "@things-factory/email-base": "^7.1.17",
35
+ "@things-factory/email-base": "^7.1.22",
36
36
  "@things-factory/env": "^7.1.16",
37
- "@things-factory/shell": "^7.1.17",
37
+ "@things-factory/shell": "^7.1.22",
38
38
  "@things-factory/utils": "^7.1.17",
39
39
  "@types/webappsec-credential-management": "^0.6.8",
40
40
  "jsonwebtoken": "^9.0.0",
@@ -46,5 +46,5 @@
46
46
  "passport-jwt": "^4.0.0",
47
47
  "passport-local": "^1.0.0"
48
48
  },
49
- "gitHead": "b8381954019a1057a32c23379277c45447708d84"
49
+ "gitHead": "b4b8efde4096ab1ec02bcf7623e32131254cbfd0"
50
50
  }
@@ -118,8 +118,14 @@ export class Application {
118
118
  ? 'enum'
119
119
  : DATABASE_TYPE == 'oracle'
120
120
  ? 'varchar2'
121
- : 'smallint',
122
- enum: ApplicationType,
121
+ : DATABASE_TYPE == 'mssql'
122
+ ? 'nvarchar'
123
+ : 'varchar',
124
+ enum:
125
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
126
+ ? ApplicationType
127
+ : undefined,
128
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 32,
123
129
  default: ApplicationType.OTHERS
124
130
  })
125
131
  @Field()
@@ -114,8 +114,12 @@ export class User {
114
114
  ? 'enum'
115
115
  : DATABASE_TYPE == 'oracle'
116
116
  ? 'varchar2'
117
- : 'varchar',
118
- enum: UserStatus,
117
+ : DATABASE_TYPE == 'mssql'
118
+ ? 'nvarchar'
119
+ : 'varchar',
120
+ enum:
121
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? UserStatus : undefined,
122
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 32,
119
123
  default: UserStatus.INACTIVE
120
124
  })
121
125
  @Field(type => String)
@@ -30,9 +30,15 @@ export class VerificationToken {
30
30
  DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
31
31
  ? 'enum'
32
32
  : DATABASE_TYPE == 'oracle'
33
- ? 'varchar2'
34
- : 'smallint',
35
- enum: VerificationTokenType,
33
+ ? 'varchar2'
34
+ : DATABASE_TYPE == 'mssql'
35
+ ? 'nvarchar'
36
+ : 'varchar',
37
+ enum:
38
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
39
+ ? VerificationTokenType
40
+ : undefined,
41
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 32,
36
42
  default: VerificationTokenType.ACTIVATION
37
43
  })
38
44
  @Field()