@spytecgps/nova-orm 0.0.102 → 0.0.104
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/index.js +1 -1
- package/dist/repositories/blacklist/getBlacklists.d.ts +5 -0
- package/dist/repositories/blacklist/index.d.ts +13 -0
- package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -0
- package/dist/repositories/devices/index.d.ts +15 -2
- package/dist/repositories/index.d.ts +2 -1
- package/dist/types/blacklist.d.ts +7 -0
- package/dist/types/devices.d.ts +9 -0
- package/dist/types/enums.d.ts +8 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Blacklist } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetBlacklistsParams } from '../../types/blacklist';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getBlacklists: (novaDataSource: NovaDataSource, params: GetBlacklistsParams, logger: Logger) => Promise<Blacklist[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Blacklist } from '../../entities';
|
|
2
|
+
import { GetBlacklistsParams } from '../../types/blacklist';
|
|
3
|
+
import { BaseRepository } from '../baseRepository';
|
|
4
|
+
export declare class BlacklistRepository extends BaseRepository {
|
|
5
|
+
/**
|
|
6
|
+
* Get blacklists
|
|
7
|
+
* @param {GetBlacklistsParams} params containing information to get blacklists
|
|
8
|
+
* - filters.blacklistType The blacklist type
|
|
9
|
+
* - filters.value The value
|
|
10
|
+
* @returns The blacklists information
|
|
11
|
+
*/
|
|
12
|
+
getBlacklists(params: GetBlacklistsParams): Promise<Blacklist[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeviceReplacement } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { CreateDeviceReplacementParams } from '../../types/devices';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const createDeviceReplacement: (novaDataSource: NovaDataSource, params: CreateDeviceReplacementParams, logger: Logger) => Promise<DeviceReplacement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceType, ImeiIccidCarrier } from '../../entities';
|
|
2
|
-
import { CreateClientDeviceSettingParams, CreateDeviceParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateImeiIccidCarrierParams } from '../../types/devices';
|
|
1
|
+
import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceReplacement, DeviceType, ImeiIccidCarrier } from '../../entities';
|
|
2
|
+
import { CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateImeiIccidCarrierParams } from '../../types/devices';
|
|
3
3
|
import { BaseRepository } from './../baseRepository';
|
|
4
4
|
export declare class DevicesRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -189,4 +189,17 @@ export declare class DevicesRepository extends BaseRepository {
|
|
|
189
189
|
* @returns The device custom configurations if found, empty array otherwise
|
|
190
190
|
*/
|
|
191
191
|
getDeviceCustomConfigs(params: GetDeviceCustomConfigParams): Promise<DeviceCustomConfiguration[]>;
|
|
192
|
+
/**
|
|
193
|
+
* Create a device replacement
|
|
194
|
+
* @param {CreateDeviceReplacementParams} params containing information to create a device replacement
|
|
195
|
+
* - id: The id of the device replacement, optional
|
|
196
|
+
* - imeiOld: The old imei of the device, required
|
|
197
|
+
* - imeiNew: The new imei of the device, required
|
|
198
|
+
* - iccidOld: The old iccid of the device, required
|
|
199
|
+
* - iccidNew: The new iccid of the device, required
|
|
200
|
+
* - userId: The user id, required
|
|
201
|
+
* - clientId: The client id, required
|
|
202
|
+
* @returns {Promise<DeviceReplacement>} The created device replacement
|
|
203
|
+
*/
|
|
204
|
+
createDeviceReplacement(params: CreateDeviceReplacementParams): Promise<DeviceReplacement>;
|
|
192
205
|
}
|
|
@@ -3,6 +3,7 @@ import { AlertRepository } from './alerts';
|
|
|
3
3
|
import { AlertTypesRepository } from './alertTypes';
|
|
4
4
|
import { AssetCategoriesRepository } from './assetCategories';
|
|
5
5
|
import { BillingRepository } from './billing';
|
|
6
|
+
import { BlacklistRepository } from './blacklist';
|
|
6
7
|
import { BoundariesRepository } from './boundaries';
|
|
7
8
|
import { ClientsRepository } from './clients';
|
|
8
9
|
import { CountriesRepository } from './countries';
|
|
@@ -19,4 +20,4 @@ import { UserDataDeletionRequestsRepository } from './userDataDeletionRequests';
|
|
|
19
20
|
import { UserInvitationsRepository } from './userInvitations';
|
|
20
21
|
import { UserRatingRequestsRepository } from './userRatingRequests';
|
|
21
22
|
import { UsersRepository } from './users';
|
|
22
|
-
export { AcumaticaRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
|
|
23
|
+
export { AcumaticaRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BlacklistRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
|
package/dist/types/devices.d.ts
CHANGED
|
@@ -171,3 +171,12 @@ export interface GetDeviceCustomConfigParams {
|
|
|
171
171
|
imei: string;
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
+
export interface CreateDeviceReplacementParams {
|
|
175
|
+
id?: number;
|
|
176
|
+
imeiOld: string;
|
|
177
|
+
iccidOld: string;
|
|
178
|
+
imeiNew: string;
|
|
179
|
+
iccidNew: string;
|
|
180
|
+
userId: string;
|
|
181
|
+
clientId: number;
|
|
182
|
+
}
|
package/dist/types/enums.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as Acumatica from './acumatica';
|
|
|
2
2
|
import * as Alerts from './alert';
|
|
3
3
|
import * as AlertTypes from './alertTypes';
|
|
4
4
|
import * as Billing from './billing';
|
|
5
|
+
import * as Blacklist from './blacklist';
|
|
5
6
|
import * as Boundaries from './boundaries';
|
|
6
7
|
import * as Clients from './clients';
|
|
7
8
|
import * as Countries from './countries';
|
|
@@ -19,4 +20,4 @@ import * as UserConfigurations from './userConfigurations';
|
|
|
19
20
|
import * as UserDataDeletionRequests from './userDataDeletionRequests';
|
|
20
21
|
import * as UserInvitations from './userInvitations';
|
|
21
22
|
import * as UserRatingRequests from './userRatingRequests';
|
|
22
|
-
export { Acumatica, Alerts, AlertTypes, Billing, Boundaries, Clients, Countries, DeviceBehaviors, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Users, UserActivations, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, };
|
|
23
|
+
export { Acumatica, Alerts, AlertTypes, Billing, Blacklist, Boundaries, Clients, Countries, DeviceBehaviors, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Users, UserActivations, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, };
|