@spytecgps/nova-orm 0.0.58 → 0.0.60

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.
Files changed (24) hide show
  1. package/dist/entities/userDeviceBehaviorTask.d.ts +1 -2
  2. package/dist/index.js +1 -1
  3. package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -0
  4. package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -0
  5. package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -0
  6. package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -0
  7. package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.d.ts +4 -0
  8. package/dist/repositories/deviceBehaviors/index.d.ts +72 -0
  9. package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -0
  10. package/dist/repositories/index.d.ts +3 -1
  11. package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +4 -0
  12. package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -0
  13. package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -0
  14. package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -0
  15. package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -0
  16. package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -0
  17. package/dist/repositories/userConfigurations/index.d.ts +104 -0
  18. package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -0
  19. package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -0
  20. package/dist/types/deviceBehaviors.d.ts +61 -0
  21. package/dist/types/enums.d.ts +16 -0
  22. package/dist/types/index.d.ts +3 -1
  23. package/dist/types/userConfigurations.d.ts +78 -0
  24. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { UserDeviceBehaviorTask } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { CreateDeviceBehaviorTaskParams } from '../../types/deviceBehaviors';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const createDeviceBehaviorTask: (novaDataSource: NovaDataSource, params: CreateDeviceBehaviorTaskParams, logger: Logger) => Promise<UserDeviceBehaviorTask>;
@@ -0,0 +1,5 @@
1
+ import { UserDeviceBehaviorTask } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { GetDeviceBehaviorTasksParams } from '../../types/deviceBehaviors';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const getDeviceBehaviorTasks: (novaDataSource: NovaDataSource, params: GetDeviceBehaviorTasksParams, logger: Logger) => Promise<UserDeviceBehaviorTask[]>;
@@ -0,0 +1,5 @@
1
+ import { DeviceBehavior } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { GetDeviceBehaviorsParams } from '../../types/deviceBehaviors';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const getDeviceBehaviors: (novaDataSource: NovaDataSource, params: GetDeviceBehaviorsParams, logger: Logger) => Promise<DeviceBehavior[]>;
@@ -0,0 +1,5 @@
1
+ import { DeviceBehavior } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { GetDeviceBehaviorsByIdsParams } from '../../types/deviceBehaviors';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const getDeviceBehaviorsByIds: (novaDataSource: NovaDataSource, params: GetDeviceBehaviorsByIdsParams, logger: Logger) => Promise<DeviceBehavior[]>;
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { GetLatestDeviceBehaviorTasksParams, GetLatestDeviceBehaviorTasksResult } from '../../types/deviceBehaviors';
3
+ import { Logger } from '../../types/logger';
4
+ export declare const getLatestDeviceBehaviorTasks: (novaDataSource: NovaDataSource, params: GetLatestDeviceBehaviorTasksParams, logger: Logger) => Promise<GetLatestDeviceBehaviorTasksResult[]>;
@@ -0,0 +1,72 @@
1
+ import { DeviceBehavior, UserDeviceBehaviorTask } from '../../entities';
2
+ import { CreateDeviceBehaviorTaskParams, GetDeviceBehaviorsByIdsParams, GetDeviceBehaviorsParams, GetDeviceBehaviorTasksParams, GetLatestDeviceBehaviorTasksParams, GetLatestDeviceBehaviorTasksResult, UpdateDeviceBehaviorTaskParams } from '../../types/deviceBehaviors';
3
+ import { BaseRepository } from '../baseRepository';
4
+ export declare class DeviceBehaviorsRepository extends BaseRepository {
5
+ /**
6
+ * Get user rating requests
7
+ * @param {GetDeviceBehaviorsParams} params containing information to get device behaviors
8
+ * - filters.status: The status
9
+ * - filters.imeiList: The imei list
10
+ * - filters.deviceTypeIdList: The device type id list
11
+ * - filters.stage: The stage
12
+ * - filters.clientId: The client id, optional
13
+ * - filters.type: The type, optional
14
+ * @returns The device behaviors list
15
+ */
16
+ getDeviceBehaviors(params: GetDeviceBehaviorsParams): Promise<DeviceBehavior[]>;
17
+ /**
18
+ * Get device behaviors by ids
19
+ * @params {GetDeviceBehaviorsByIdsParams} params containing information to get device behaviors by ids
20
+ * - filters.deviceBehaviorIdList: The device behavior id list, required
21
+ * @returns The device behaviors list
22
+ */
23
+ getDeviceBehaviorsByIds(params: GetDeviceBehaviorsByIdsParams): Promise<DeviceBehavior[]>;
24
+ /**
25
+ * Get device behavior tasks
26
+ * @param {GetDeviceBehaviorTasksParams} params containing information to get device behavior tasks
27
+ * Filters (One of taskId or imeiList is required):
28
+ * - filters.taskId: The task id
29
+ * - filters.imeiList: The imei list
30
+ * - filters.status: The status, optional
31
+ * - filters.deviceBehaviorIdList: The device behavior id list, optional
32
+ * Paging options:
33
+ * - pagingOptions.offset: The offset, optional. Default is 0
34
+ * - pagingOptions.limit: The limit, optional. Default is 100
35
+ * @returns The device behavior tasks list
36
+ */
37
+ getDeviceBehaviorTasks(params: GetDeviceBehaviorTasksParams): Promise<UserDeviceBehaviorTask[]>;
38
+ /**
39
+ * Create device behavior task
40
+ * @param {CreateDeviceBehaviorTaskParams} params containing information to create a device behavior task
41
+ * - params.taskId: The task id
42
+ * - params.deviceBehaviorId: The device behavior id
43
+ * - params.clientId: The client id
44
+ * - params.userId: The user id
45
+ * - params.imei: The imei
46
+ * - params.behaviorName: The behavior name
47
+ * - params.behaviorParams: The behavior params, optional
48
+ * - params.status: The status
49
+ * - params.extraParams: The extra params, optional
50
+ * @returns The device behavior task
51
+ */
52
+ createDeviceBehaviorTask(params: CreateDeviceBehaviorTaskParams): Promise<UserDeviceBehaviorTask>;
53
+ /**
54
+ * Update device behavior task
55
+ * @param {UpdateDeviceBehaviorTaskParams} params containing information to update a device behavior task
56
+ * Filters:
57
+ * - params.filters.taskId: The task id
58
+ * Values:
59
+ * - params.values.status: The status
60
+ * @returns Whether the device behavior task was updated
61
+ */
62
+ updateDeviceBehaviorTask(params: UpdateDeviceBehaviorTaskParams): Promise<boolean>;
63
+ /**
64
+ * Get latest device behavior tasks
65
+ * @param {GetLatestDeviceBehaviorTasksParams} params containing information to get latest device behavior tasks
66
+ * - params.filters.clientId: The client id
67
+ * - params.filters.type: The device behavior type
68
+ * - params.filters.status: The task status
69
+ * @returns The latest device behavior tasks list
70
+ */
71
+ getLatestDeviceBehaviorTasks(params: GetLatestDeviceBehaviorTasksParams): Promise<GetLatestDeviceBehaviorTasksResult[]>;
72
+ }
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { UpdateDeviceBehaviorTaskParams } from '../../types/deviceBehaviors';
3
+ import { Logger } from '../../types/logger';
4
+ export declare const updateDeviceBehaviorTask: (novaDataSource: NovaDataSource, params: UpdateDeviceBehaviorTaskParams, logger: Logger) => Promise<boolean>;
@@ -2,12 +2,14 @@ import { AlertRepository } from './alerts';
2
2
  import { BoundariesRepository } from './boundaries';
3
3
  import { ClientsRepository } from './clients';
4
4
  import { CountriesRepository } from './countries';
5
+ import { DeviceBehaviorsRepository } from './deviceBehaviors';
5
6
  import { DevicesRepository } from './devices';
6
7
  import { FirmwaresRepository } from './firmwares';
7
8
  import { PositionRepository } from './positions';
8
9
  import { SecurityRepository } from './security';
10
+ import { UserConfigurationsRepository } from './userConfigurations';
9
11
  import { UserDataDeletionRequestsRepository } from './userDataDeletionRequests';
10
12
  import { UserInvitationsRepository } from './userInvitations';
11
13
  import { UserRatingRequestsRepository } from './userRatingRequests';
12
14
  import { UsersRepository } from './users';
13
- export { SecurityRepository, DevicesRepository, BoundariesRepository, ClientsRepository, FirmwaresRepository, PositionRepository, AlertRepository, UsersRepository, CountriesRepository, UserInvitationsRepository, UserDataDeletionRequestsRepository, UserRatingRequestsRepository, };
15
+ export { AlertRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, PositionRepository, SecurityRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { BulkCreateUserAlertConfigurationsParams } from '../../types/userConfigurations';
4
+ export declare const bulkCreateUserAlertConfigurations: (novaDataSource: NovaDataSource, params: BulkCreateUserAlertConfigurationsParams, logger: Logger) => Promise<boolean>;
@@ -0,0 +1,5 @@
1
+ import { UserConfiguration } from '../../entities/userConfiguration';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { Logger } from '../../types/logger';
4
+ import { CreateUserConfigurationParams } from '../../types/userConfigurations';
5
+ export declare const createUserConfiguration: (novaDataSource: NovaDataSource, params: CreateUserConfigurationParams, logger: Logger) => Promise<UserConfiguration>;
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { DeleteUserAlertConfigurationsParams } from '../../types/userConfigurations';
4
+ export declare const deleteUserAlertConfigurations: (novaDataSource: NovaDataSource, params: DeleteUserAlertConfigurationsParams, logger: Logger) => Promise<boolean>;
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { DeleteUserConfigurationParams } from '../../types/userConfigurations';
4
+ export declare const deleteUserConfiguration: (novaDataSource: NovaDataSource, params: DeleteUserConfigurationParams, logger: Logger) => Promise<boolean>;
@@ -0,0 +1,5 @@
1
+ import { UserAlertConfiguration } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { Logger } from '../../types/logger';
4
+ import { GetUserAlertConfigurationsParams } from '../../types/userConfigurations';
5
+ export declare const getUserAlertConfigurations: (novaDataSource: NovaDataSource, params: GetUserAlertConfigurationsParams, logger: Logger) => Promise<UserAlertConfiguration[]>;
@@ -0,0 +1,5 @@
1
+ import { UserConfiguration } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { Logger } from '../../types/logger';
4
+ import { GetUserConfigurationsParams } from '../../types/userConfigurations';
5
+ export declare const getUserConfigurations: (novaDataSource: NovaDataSource, params: GetUserConfigurationsParams, logger: Logger) => Promise<UserConfiguration[]>;
@@ -0,0 +1,104 @@
1
+ import { UserAlertConfiguration, UserConfiguration } from '../../entities';
2
+ import { BulkCreateUserAlertConfigurationsParams, CreateUserConfigurationParams, DeleteUserAlertConfigurationsParams, DeleteUserConfigurationParams, GetUserAlertConfigurationsParams, GetUserConfigurationsParams, UpdateUserAlertConfigurationsParams, UpdateUserConfigurationParams } from '../../types/userConfigurations';
3
+ import { BaseRepository } from '../baseRepository';
4
+ export declare class UserConfigurationsRepository extends BaseRepository {
5
+ /**
6
+ * Get user configurations
7
+ * @param {GetUserConfigurationsParams} params containing information to get user configurations
8
+ * - filters.clientId: The client id to obtain all user configurations from that client
9
+ * - filters.userId: The user id to obtain all user configurations from that user
10
+ * @returns The user configurations
11
+ */
12
+ getUserConfigurations(params: GetUserConfigurationsParams): Promise<UserConfiguration[]>;
13
+ /**
14
+ * Create user configuration
15
+ * @param {CreateUserConfigurationParams} params containing information to create a user configuration
16
+ * - id: The user configuration id, optional. If not provided, it will be generated
17
+ * - userId: The user id, required
18
+ * - isMetric: Whether is metric, required
19
+ * - timezone: The user timezone, optional
20
+ * - defaultMapLayer: The user default map layer, optional
21
+ * - speedUnits: The user speed units, optional
22
+ * - distanceUnits: The user distance units, optional
23
+ * - alertsNotificationsOn: The user alerts notifications on, optional. If not provided, it will be true
24
+ * - dataSourceTypeId: The user data source type id, optional
25
+ * - homepage: The user homepage, optional
26
+ * - temperatureUnits: The user temperature units, optional
27
+ * @returns The created user configuration
28
+ */
29
+ createUserConfiguration(params: CreateUserConfigurationParams): Promise<UserConfiguration>;
30
+ /**
31
+ * Update user configuration
32
+ * @param {UpdateUserConfigurationParams} params containing information to update a user configuration
33
+ * Filters:
34
+ * - filters.userId: The user id to update the user configuration, required
35
+ * Values:
36
+ * One of the following values is required
37
+ * - values.timezone: The user timezone, optional
38
+ * - values.defaultMapLayer: The user default map layer, optional
39
+ * - values.speedUnits: The user speed units, optional
40
+ * - values.distanceUnits: The user distance units, optional
41
+ * - values.alertsNotificationsOn: The user alerts notifications on, optional
42
+ * - values.dataSourceTypeId: The user data source type id, optional
43
+ * - values.homepage: The user homepage, optional
44
+ * - values.temperatureUnits: The user temperature units, optional
45
+ * @returns Whether the user configuration was updated
46
+ */
47
+ updateUserConfiguration(params: UpdateUserConfigurationParams): Promise<boolean>;
48
+ /**
49
+ * Delete user configuration
50
+ * @param {DeleteUserConfigurationParams} params containing information to delete a user configuration
51
+ * - filters.userId: The user id to delete the user configuration, required
52
+ * @returns Whether the user configuration was deleted
53
+ */
54
+ deleteUserConfiguration(params: DeleteUserConfigurationParams): Promise<boolean>;
55
+ /**
56
+ * Get user alert configurations
57
+ * @param {GetUserAlertConfigurationsParams} params containing information to get user alert configurations
58
+ * - filters.userId: The user id to obtain all user alert configurations from that user, required
59
+ * - filters.includeBeta: Whether to include beta alert types, required
60
+ * @returns The user alert configurations
61
+ */
62
+ getUserAlertConfigurations(params: GetUserAlertConfigurationsParams): Promise<UserAlertConfiguration[]>;
63
+ /**
64
+ * Bulk create user alert configurations
65
+ * @param {BulkCreateUserAlertConfigurationsParams} params containing information to bulk create user alert configurations
66
+ * - alertConfigurations: The user alert configurations to create, required
67
+ * Each user alert configuration should contain:
68
+ * - id: The user alert configuration id, optional. If not provided, it will be generated
69
+ * - userId: The user id, required
70
+ * - alertTypeId: The alert type id, required
71
+ * - smsNotification: The user sms notification, optional
72
+ * - emailNotification: The user email notification, optional
73
+ * - appNotification: The user app notification, optional. If not provided, it will be true
74
+ * - pushNotification: The user push notification, optional. If not provided, it will be true
75
+ * - alertValue: The user alert value, optional
76
+ * - alertMetadata: The user alert metadata, optional
77
+ * @returns Whether the user alert configurations were created
78
+ */
79
+ bulkCreateUserAlertConfigurations(params: BulkCreateUserAlertConfigurationsParams): Promise<boolean>;
80
+ /**
81
+ * Update user alert configurations
82
+ * @param {UpdateUserAlertConfigurationsParams} params containing information to update user alert configurations
83
+ * Filters:
84
+ * - filters.userId: The user id to update the user alert configurations, required
85
+ * - filters.alertTypeId: The alert type id to update the user alert configurations, optional
86
+ * Values:
87
+ * One of the following values is required
88
+ * - values.smsNotification: The user sms notification, optional
89
+ * - values.emailNotification: The user email notification, optional
90
+ * - values.appNotification: The user app notification, optional
91
+ * - values.pushNotification: The user push notification, optional
92
+ * - values.alertValue: The user alert value, optional
93
+ * - values.alertMetadata: The user alert metadata, optional
94
+ * @returns Whether the user alert configurations were updated
95
+ */
96
+ updateUserAlertConfigurations(params: UpdateUserAlertConfigurationsParams): Promise<boolean>;
97
+ /**
98
+ * Delete user alert configurations
99
+ * @param {DeleteUserAlertConfigurationsParams} params containing information to delete user alert configurations
100
+ * - filters.userId: The user id to delete the user alert configurations, required
101
+ * @returns Whether the user alert configurations were deleted
102
+ */
103
+ deleteUserAlertConfigurations(params: DeleteUserAlertConfigurationsParams): Promise<boolean>;
104
+ }
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { UpdateUserAlertConfigurationsParams } from '../../types/userConfigurations';
4
+ export declare const updateUserAlertConfigurations: (novaDataSource: NovaDataSource, params: UpdateUserAlertConfigurationsParams, logger: Logger) => Promise<boolean>;
@@ -0,0 +1,4 @@
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { UpdateUserConfigurationParams } from '../../types/userConfigurations';
4
+ export declare const updateUserConfiguration: (novaDataSource: NovaDataSource, params: UpdateUserConfigurationParams, logger: Logger) => Promise<boolean>;
@@ -0,0 +1,61 @@
1
+ import { DeviceBehaviorStatus, DeviceBehaviorTaskStatus, DeviceBehaviorType } from './enums';
2
+ export interface GetDeviceBehaviorsParams {
3
+ filters: {
4
+ status: DeviceBehaviorStatus;
5
+ imeiList: string[];
6
+ deviceTypeIdList: number[];
7
+ stage: string;
8
+ clientId?: number;
9
+ type?: DeviceBehaviorType;
10
+ };
11
+ }
12
+ export interface GetDeviceBehaviorsByIdsParams {
13
+ filters: {
14
+ deviceBehaviorIdList: number[];
15
+ };
16
+ }
17
+ export interface GetDeviceBehaviorTasksParams {
18
+ filters: {
19
+ taskId?: string;
20
+ imeiList?: string[];
21
+ status?: DeviceBehaviorTaskStatus;
22
+ deviceBehaviorIdList?: number[];
23
+ };
24
+ pagingOptions?: {
25
+ limit?: number;
26
+ offset?: number;
27
+ };
28
+ }
29
+ export interface CreateDeviceBehaviorTaskParams {
30
+ taskId: string;
31
+ deviceBehaviorId: number;
32
+ clientId: number;
33
+ userId: string;
34
+ imei: string;
35
+ behaviorName: string;
36
+ behaviorParams?: object;
37
+ status: DeviceBehaviorTaskStatus;
38
+ extraParams?: object;
39
+ }
40
+ export interface UpdateDeviceBehaviorTaskParams {
41
+ filters: {
42
+ taskId: string;
43
+ };
44
+ values: {
45
+ status: DeviceBehaviorTaskStatus;
46
+ };
47
+ }
48
+ export interface GetLatestDeviceBehaviorTasksParams {
49
+ filters: {
50
+ clientId: number;
51
+ type: DeviceBehaviorType;
52
+ status: DeviceBehaviorTaskStatus;
53
+ };
54
+ }
55
+ export interface GetLatestDeviceBehaviorTasksResult {
56
+ imei: string;
57
+ name: string;
58
+ description: string;
59
+ taskId: string;
60
+ modifiedAt: Date;
61
+ }
@@ -17,3 +17,19 @@ export declare enum HapnClientType {
17
17
  b2b = 2,
18
18
  test = 3
19
19
  }
20
+ export declare enum DeviceBehaviorType {
21
+ ReportingFrequency = "ReportingFrequency",
22
+ Advanced = "Advanced",
23
+ Query = "Query",
24
+ General = "General"
25
+ }
26
+ export declare enum DeviceBehaviorStatus {
27
+ Active = "active",
28
+ Inactive = "inactive"
29
+ }
30
+ export declare enum DeviceBehaviorTaskStatus {
31
+ InProgress = "InProgress",
32
+ Completed = "Completed",
33
+ Canceled = "Canceled",
34
+ Failed = "Failed"
35
+ }
@@ -1,11 +1,13 @@
1
1
  import * as Boundaries from './boundaries';
2
2
  import * as Clients from './clients';
3
+ import * as DeviceBehaviors from './deviceBehaviors';
3
4
  import * as Devices from './devices';
4
5
  import * as Firmwares from './firmwares';
5
6
  import * as Logger from './logger';
6
7
  import * as Security from './security';
7
8
  import * as Users from './user';
9
+ import * as UserConfigurations from './userConfigurations';
8
10
  import * as UserDataDeletionRequests from './userDataDeletionRequests';
9
11
  import * as UserInvitations from './userInvitations';
10
12
  import * as UserRatingRequests from './userRatingRequests';
11
- export { Logger, Devices, Firmwares, Security, Boundaries, Clients, Users, UserInvitations, UserDataDeletionRequests, UserRatingRequests, };
13
+ export { Boundaries, Clients, DeviceBehaviors, Devices, Firmwares, Logger, Security, Users, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, };
@@ -0,0 +1,78 @@
1
+ export interface GetUserConfigurationsParams {
2
+ filters: {
3
+ clientId?: number;
4
+ userId?: string;
5
+ };
6
+ }
7
+ export interface CreateUserConfigurationParams {
8
+ id?: number;
9
+ userId: string;
10
+ isMetric: boolean;
11
+ timezone?: string;
12
+ defaultMapLayer?: string;
13
+ speedUnits?: string;
14
+ distanceUnits?: string;
15
+ alertsNotificationsOn?: boolean;
16
+ dataSourceTypeId?: number;
17
+ homepage?: string;
18
+ temperatureUnits?: string;
19
+ }
20
+ export interface UpdateUserConfigurationParams {
21
+ filters: {
22
+ userId: string;
23
+ };
24
+ values: {
25
+ timezone?: string;
26
+ defaultMapLayer?: string;
27
+ speedUnits?: string;
28
+ distanceUnits?: string;
29
+ alertsNotificationsOn?: boolean;
30
+ dataSourceTypeId?: number;
31
+ homepage?: string;
32
+ temperatureUnits?: string;
33
+ };
34
+ }
35
+ export interface DeleteUserConfigurationParams {
36
+ filters: {
37
+ userId: string;
38
+ };
39
+ }
40
+ export interface GetUserAlertConfigurationsParams {
41
+ filters: {
42
+ userId: string;
43
+ includeBeta: boolean;
44
+ };
45
+ }
46
+ export interface CreateUserAlertConfigurationParams {
47
+ id?: number;
48
+ userId: string;
49
+ alertTypeId: number;
50
+ smsNotification?: boolean;
51
+ emailNotification?: boolean;
52
+ appNotification?: boolean;
53
+ pushNotification?: boolean;
54
+ alertValue?: string;
55
+ alertMetadata?: string;
56
+ }
57
+ export interface BulkCreateUserAlertConfigurationsParams {
58
+ alertConfigurations: CreateUserAlertConfigurationParams[];
59
+ }
60
+ export interface UpdateUserAlertConfigurationsParams {
61
+ filters: {
62
+ userId: string;
63
+ alertTypeId?: number;
64
+ };
65
+ values: {
66
+ smsNotification?: boolean;
67
+ emailNotification?: boolean;
68
+ appNotification?: boolean;
69
+ pushNotification?: boolean;
70
+ alertValue?: string;
71
+ alertMetadata?: string;
72
+ };
73
+ }
74
+ export interface DeleteUserAlertConfigurationsParams {
75
+ filters: {
76
+ userId: string;
77
+ };
78
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",