@spytecgps/nova-orm 0.0.20 → 0.0.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/dist/entities/client.d.ts +7 -0
- package/dist/entities/firmwareUpgradeTask.d.ts +2 -0
- package/dist/entities/user.d.ts +7 -2
- package/dist/index.js +1 -1
- package/dist/repositories/clients/index.d.ts +2 -0
- package/dist/repositories/user/getUsersConfigurationByImei.d.ts +5 -0
- package/dist/repositories/user/index.d.ts +11 -0
- package/dist/types/clients.d.ts +3 -0
- package/dist/types/user.d.ts +5 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare class ClientsRepository extends BaseRepository {
|
|
|
15
15
|
* - name: client name
|
|
16
16
|
* - email: client email
|
|
17
17
|
* - uuid: client uuid
|
|
18
|
+
* - appClientId: app client id, optional
|
|
18
19
|
* - clientTypeId: client type id, optional
|
|
19
20
|
* - dataSourceTypeId: data source type id, optional
|
|
20
21
|
* - sievaUserName: sieva user name, optional
|
|
@@ -36,6 +37,7 @@ export declare class ClientsRepository extends BaseRepository {
|
|
|
36
37
|
* - values.name: client name, optional
|
|
37
38
|
* - values.email: client email, optional
|
|
38
39
|
* - values.uuid: client uuid, optional
|
|
40
|
+
* - values.appClientId: app client id, optional
|
|
39
41
|
* - values.clientTypeId: client type id, optional
|
|
40
42
|
* - values.dataSourceTypeId: data source type id, optional
|
|
41
43
|
* - values.sievaUserName: sieva user name, optional
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { User } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
import { GetUsersConfigurationByImeiParams } from '../../types/user';
|
|
5
|
+
export declare const getUsersConfigurationByImei: (novaDataSource: NovaDataSource, params: GetUsersConfigurationByImeiParams, logger: Logger) => Promise<User[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { User } from '../../entities/user';
|
|
2
|
+
import { GetUsersConfigurationByImeiParams } from '../../types/user';
|
|
3
|
+
import { BaseRepository } from '../baseRepository';
|
|
4
|
+
export declare class UserRepository extends BaseRepository {
|
|
5
|
+
/**
|
|
6
|
+
* Get user data by imei
|
|
7
|
+
* @param {GetUsersConfigurationByImeiParams} params containing information to get a device by imei
|
|
8
|
+
* - filters.imei: The imei of the device
|
|
9
|
+
*/
|
|
10
|
+
getUsersConfigurationByImei(params: GetUsersConfigurationByImeiParams): Promise<User[]>;
|
|
11
|
+
}
|
package/dist/types/clients.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ export interface GetClientParams {
|
|
|
3
3
|
filters: {
|
|
4
4
|
clientId?: number;
|
|
5
5
|
email?: string;
|
|
6
|
+
appClientId?: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
export interface CreateClientParams {
|
|
9
10
|
name: string;
|
|
10
11
|
uuid: string;
|
|
11
12
|
email: string;
|
|
13
|
+
appClientId?: string;
|
|
12
14
|
clientTypeId?: HapnClientType;
|
|
13
15
|
dataSourceTypeId?: number;
|
|
14
16
|
sievaUserName?: string;
|
|
@@ -29,6 +31,7 @@ export interface UpdateClientParams {
|
|
|
29
31
|
name?: string;
|
|
30
32
|
uuid?: string;
|
|
31
33
|
email?: string;
|
|
34
|
+
appClientId?: string;
|
|
32
35
|
clientTypeId?: HapnClientType;
|
|
33
36
|
dataSourceTypeId?: number;
|
|
34
37
|
sievaUserName?: string;
|