@spytecgps/nova-orm 0.0.23 → 0.0.24
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/alert.d.ts +1 -0
- package/dist/entities/{geofence.d.ts → boundary.d.ts} +3 -4
- package/dist/entities/{geofenceEvent.d.ts → boundaryEvent.d.ts} +2 -2
- package/dist/entities/client.d.ts +0 -2
- package/dist/entities/device.d.ts +0 -2
- package/dist/entities/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/repositories/boundaries/createBoundary.d.ts +2 -2
- package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +2 -2
- package/dist/repositories/boundaries/getBoundaryById.d.ts +2 -2
- package/dist/repositories/boundaries/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Boundary } from '../../entities';
|
|
2
2
|
import { NovaDataSource } from '../../novaDataSource';
|
|
3
3
|
import { CreateBoundaryParams } from '../../types/boundaries';
|
|
4
4
|
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const createBoundary: (novaDataSource: NovaDataSource, params: CreateBoundaryParams, logger: Logger) => Promise<
|
|
5
|
+
export declare const createBoundary: (novaDataSource: NovaDataSource, params: CreateBoundaryParams, logger: Logger) => Promise<Boundary>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Boundary } from '../../entities';
|
|
2
2
|
import { NovaDataSource } from '../../novaDataSource';
|
|
3
3
|
import { GetBoundariesByClientIdParams } from '../../types/boundaries';
|
|
4
4
|
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const getBoundariesByClientId: (novaDataSource: NovaDataSource, params: GetBoundariesByClientIdParams, logger: Logger) => Promise<
|
|
5
|
+
export declare const getBoundariesByClientId: (novaDataSource: NovaDataSource, params: GetBoundariesByClientIdParams, logger: Logger) => Promise<Boundary[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Boundary } from '../../entities';
|
|
2
2
|
import { NovaDataSource } from '../../novaDataSource';
|
|
3
3
|
import { GetBoundaryByIdParams } from '../../types/boundaries';
|
|
4
4
|
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const getBoundaryById: (novaDataSource: NovaDataSource, params: GetBoundaryByIdParams, logger: Logger) => Promise<
|
|
5
|
+
export declare const getBoundaryById: (novaDataSource: NovaDataSource, params: GetBoundaryByIdParams, logger: Logger) => Promise<Boundary>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Boundary } from '../../entities';
|
|
2
2
|
import { CreateBoundaryParams, DeleteBoundaryParams, GetBoundariesByClientIdParams, GetBoundaryByIdParams, UpdateBoundaryParams } from '../../types/boundaries';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class BoundariesRepository extends BaseRepository {
|
|
@@ -8,7 +8,7 @@ export declare class BoundariesRepository extends BaseRepository {
|
|
|
8
8
|
* - filters.clientId: The client id
|
|
9
9
|
* - filters.status: The status to only obtain boundaries with that status, optional
|
|
10
10
|
*/
|
|
11
|
-
getBoundariesByClientId(params: GetBoundariesByClientIdParams): Promise<
|
|
11
|
+
getBoundariesByClientId(params: GetBoundariesByClientIdParams): Promise<Boundary[]>;
|
|
12
12
|
/**
|
|
13
13
|
* Get all boundaries ids by client id
|
|
14
14
|
* @param {GetBoundariesByClientIdParams} params containing information to get boundaries ids by clientId
|
|
@@ -21,7 +21,7 @@ export declare class BoundariesRepository extends BaseRepository {
|
|
|
21
21
|
* @param {GetBoundaryByIdParams} params containing information to get a boundary by id
|
|
22
22
|
* - filters.boundaryId: The boundary id
|
|
23
23
|
*/
|
|
24
|
-
getBoundaryById(params: GetBoundaryByIdParams): Promise<
|
|
24
|
+
getBoundaryById(params: GetBoundaryByIdParams): Promise<Boundary>;
|
|
25
25
|
/**
|
|
26
26
|
* Create a boundary
|
|
27
27
|
* @param {CreateBoundaryParams} params containing information to create a boundary
|
|
@@ -39,7 +39,7 @@ export declare class BoundariesRepository extends BaseRepository {
|
|
|
39
39
|
* - isUserCreated: if the boundary was created by a user, optional
|
|
40
40
|
* - area: area of the boundary, optional
|
|
41
41
|
*/
|
|
42
|
-
createBoundary(params: CreateBoundaryParams): Promise<
|
|
42
|
+
createBoundary(params: CreateBoundaryParams): Promise<Boundary>;
|
|
43
43
|
/**
|
|
44
44
|
* Update a boundary
|
|
45
45
|
* @param {UpdateBoundaryParams} params containing information to update a boundary
|