@flusys/ng-auth 6.2.2 → 6.4.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.
|
@@ -460,6 +460,10 @@ class UserApiService extends ApiResourceService {
|
|
|
460
460
|
updateProfile(data) {
|
|
461
461
|
return this.http.post(`${this.baseUrl}/profile`, data);
|
|
462
462
|
}
|
|
463
|
+
lookup(filter, search = '') {
|
|
464
|
+
const params = search ? { q: search } : undefined;
|
|
465
|
+
return this.http.post(`${this.baseUrl}/lookup`, filter, params ? { params } : undefined);
|
|
466
|
+
}
|
|
463
467
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
464
468
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserApiService, providedIn: 'root' });
|
|
465
469
|
}
|
|
@@ -779,6 +783,7 @@ const AUTH_MESSAGES = {
|
|
|
779
783
|
'user.email.verify.success': 'Email verified successfully',
|
|
780
784
|
'user.phone.verify.success': 'Phone verified successfully',
|
|
781
785
|
'user.status.update.success': 'User status updated successfully',
|
|
786
|
+
'user.lookup.success': 'Users retrieved successfully',
|
|
782
787
|
// Company CRUD messages (API keys)
|
|
783
788
|
'company.create.success': 'Company created successfully',
|
|
784
789
|
'company.create.many.success': '{{count}} companies created successfully',
|
|
@@ -1344,7 +1349,7 @@ class AuthUserProviderAdapter {
|
|
|
1344
1349
|
},
|
|
1345
1350
|
sort: { name: 'ASC' },
|
|
1346
1351
|
};
|
|
1347
|
-
return
|
|
1352
|
+
return this.userApi.lookup(apiFilter, search ?? '').pipe(map((response) => ({
|
|
1348
1353
|
success: response.success,
|
|
1349
1354
|
message: response.message,
|
|
1350
1355
|
messageKey: response.messageKey,
|