@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.
@@ -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
+ }
@@ -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;
@@ -0,0 +1,5 @@
1
+ export interface GetUsersConfigurationByImeiParams {
2
+ filters: {
3
+ imei: string;
4
+ };
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",