@drax/identity-back 2.9.0 → 2.11.0
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/dist/repository/mongo/RoleMongoRepository.js +1 -1
- package/dist/repository/mongo/TenantMongoRepository.js +1 -1
- package/dist/repository/mongo/UserApiKeyMongoRepository.js +1 -1
- package/dist/repository/mongo/UserMongoRepository.js +1 -1
- package/package.json +5 -5
- package/src/repository/mongo/RoleMongoRepository.ts +1 -1
- package/src/repository/mongo/TenantMongoRepository.ts +1 -1
- package/src/repository/mongo/UserApiKeyMongoRepository.ts +1 -1
- package/src/repository/mongo/UserMongoRepository.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -28,7 +28,7 @@ class RoleMongoRepository extends AbstractMongoRepository {
|
|
|
28
28
|
query['$or'] = this._searchFields.map(field => ({ [field]: new RegExp(search.toString(), 'i') }));
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
MongooseQueryFilter.applyFilters(query, filters);
|
|
31
|
+
MongooseQueryFilter.applyFilters(query, filters, RoleModel);
|
|
32
32
|
const sort = MongooseSort.applySort(orderBy, order);
|
|
33
33
|
return RoleModel.find(query).limit(limit).sort(sort).cursor();
|
|
34
34
|
}
|
|
@@ -27,7 +27,7 @@ class TenantMongoRepository extends AbstractMongoRepository {
|
|
|
27
27
|
query['$or'] = this._searchFields.map(field => ({ [field]: new RegExp(search.toString(), 'i') }));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
MongooseQueryFilter.applyFilters(query, filters);
|
|
30
|
+
MongooseQueryFilter.applyFilters(query, filters, TenantModel);
|
|
31
31
|
const sort = MongooseSort.applySort(orderBy, order);
|
|
32
32
|
return TenantModel.find(query).limit(limit).sort(sort).cursor();
|
|
33
33
|
}
|
|
@@ -37,7 +37,7 @@ class UserApiKeyMongoRepository extends AbstractMongoRepository {
|
|
|
37
37
|
query['$or'] = this._searchFields.map(field => ({ [field]: new RegExp(search.toString(), 'i') }));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
MongooseQueryFilter.applyFilters(query, filters);
|
|
40
|
+
MongooseQueryFilter.applyFilters(query, filters, UserApiKeyModel);
|
|
41
41
|
const sort = MongooseSort.applySort(orderBy, order);
|
|
42
42
|
const populate = ['user', 'user.tenant', 'user.role', 'createdBy'];
|
|
43
43
|
const lean = this._lean;
|
|
@@ -121,7 +121,7 @@ class UserMongoRepository extends AbstractMongoRepository {
|
|
|
121
121
|
query['$or'] = this._searchFields.map(field => ({ [field]: new RegExp(search.toString(), 'i') }));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
MongooseQueryFilter.applyFilters(query, filters);
|
|
124
|
+
MongooseQueryFilter.applyFilters(query, filters, UserModel);
|
|
125
125
|
const sort = MongooseSort.applySort(orderBy, order);
|
|
126
126
|
return UserModel.find(query).populate(['role', 'tenant']).limit(limit).sort(sort).cursor();
|
|
127
127
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.11.0",
|
|
7
7
|
"description": "Identity module for user management, authentication and authorization.",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "types/index.d.ts",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"author": "Cristian Incarnato & Drax Team",
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@drax/common-back": "^2.
|
|
32
|
-
"@drax/crud-back": "^2.
|
|
33
|
-
"@drax/crud-share": "^2.
|
|
31
|
+
"@drax/common-back": "^2.11.0",
|
|
32
|
+
"@drax/crud-back": "^2.11.0",
|
|
33
|
+
"@drax/crud-share": "^2.11.0",
|
|
34
34
|
"@drax/email-back": "^2.0.0",
|
|
35
35
|
"@drax/identity-share": "^2.0.0",
|
|
36
36
|
"bcryptjs": "^2.4.3",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"debug": "0"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8919d31d4d9512e48ac461b0876dc85a5849daea"
|
|
67
67
|
}
|
|
@@ -47,7 +47,7 @@ class RoleMongoRepository extends AbstractMongoRepository<IRole, IRoleBase,IRole
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
MongooseQueryFilter.applyFilters(query, filters)
|
|
50
|
+
MongooseQueryFilter.applyFilters(query, filters,RoleModel)
|
|
51
51
|
|
|
52
52
|
const sort = MongooseSort.applySort(orderBy, order)
|
|
53
53
|
|
|
@@ -41,7 +41,7 @@ class TenantMongoRepository extends AbstractMongoRepository<ITenant, ITenantBase
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
MongooseQueryFilter.applyFilters(query, filters)
|
|
44
|
+
MongooseQueryFilter.applyFilters(query, filters, TenantModel)
|
|
45
45
|
|
|
46
46
|
const sort = MongooseSort.applySort(orderBy, order)
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@ class UserApiKeyMongoRepository extends AbstractMongoRepository<IUserApiKey,IUse
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
MongooseQueryFilter.applyFilters(query, filters)
|
|
62
|
+
MongooseQueryFilter.applyFilters(query, filters, UserApiKeyModel)
|
|
63
63
|
|
|
64
64
|
const sort = MongooseSort.applySort(orderBy, order)
|
|
65
65
|
const populate = ['user', 'user.tenant', 'user.role', 'createdBy']
|
|
@@ -153,7 +153,7 @@ class UserMongoRepository extends AbstractMongoRepository<IUser,IUserCreate,IUse
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
MongooseQueryFilter.applyFilters(query, filters)
|
|
156
|
+
MongooseQueryFilter.applyFilters(query, filters, UserModel)
|
|
157
157
|
|
|
158
158
|
const sort = MongooseSort.applySort(orderBy, order)
|
|
159
159
|
|