@spytecgps/nova-orm 0.0.99 → 0.0.100
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/acumatica/getAcumaticaImeiIccidData.d.ts +5 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -0
- package/dist/repositories/acumatica/index.d.ts +32 -0
- package/dist/repositories/index.d.ts +2 -1
- package/dist/types/acumatica.d.ts +30 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AcumaticaImeiIccidData } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetAcumaticaImeiIccidDataParams } from '../../types/acumatica';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getAcumaticaImeiIccidData: (novaDataSource: NovaDataSource, params: GetAcumaticaImeiIccidDataParams, logger: Logger) => Promise<AcumaticaImeiIccidData[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { AmazonDeviceShipmentDetails, GetAcumaticaShipmentDetailsParams } from '../../types/acumatica';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const getAcumaticaShipmentDetails: (novaDataSource: NovaDataSource, params: GetAcumaticaShipmentDetailsParams, logger: Logger) => Promise<AmazonDeviceShipmentDetails[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { AmazonDeviceShipmentDetails, GetLastAmazonDeviceShipmentDetailsParams } from '../../types/acumatica';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const getLastAcumaticaShipmentDetails: (novaDataSource: NovaDataSource, params: GetLastAmazonDeviceShipmentDetailsParams, logger: Logger) => Promise<AmazonDeviceShipmentDetails>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AcumaticaImeiIccidData } from '../../entities';
|
|
2
|
+
import { AmazonDeviceShipmentDetails, GetAcumaticaImeiIccidDataParams, GetAcumaticaShipmentDetailsParams, GetLastAmazonDeviceShipmentDetailsParams } from '../../types/acumatica';
|
|
3
|
+
import { BaseRepository } from '../baseRepository';
|
|
4
|
+
export declare class AcumaticaRepository extends BaseRepository {
|
|
5
|
+
/**
|
|
6
|
+
* Get Acumatica IMEI/ICCID data
|
|
7
|
+
* @param params containing information to get magento plan
|
|
8
|
+
* One of the following filters is required:
|
|
9
|
+
* - params.filters.imei IMEI to filter by
|
|
10
|
+
* - params.filters.excludeNullAsin Exclude IMEI/ICCID data with null ASIN
|
|
11
|
+
* - params.filters.excludeNullCountyCode Exclude IMEI/ICCID data with null country code
|
|
12
|
+
* - params.filters.excludeCountries Exclude IMEI/ICCID data with country code in this list
|
|
13
|
+
* - params.sortOptions.sortField Sort field
|
|
14
|
+
* - params.sortOptions.sortOrder Sort order
|
|
15
|
+
* @returns Acumatica IMEI/ICCID data list
|
|
16
|
+
*/
|
|
17
|
+
getAcumaticaImeiIccidData(params: GetAcumaticaImeiIccidDataParams): Promise<AcumaticaImeiIccidData[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Get last Acumatica shipment details
|
|
20
|
+
* @param params containing information to get last Acumatica shipment details
|
|
21
|
+
* - params.filters.clientId Client ID to filter by
|
|
22
|
+
* @returns last Amazon device shipment details
|
|
23
|
+
*/
|
|
24
|
+
getLastAcumaticaShipmentDetails(params: GetLastAmazonDeviceShipmentDetailsParams): Promise<AmazonDeviceShipmentDetails>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Acumatica shipment details list
|
|
27
|
+
* @param params containing information to get Acumatica shipment details list
|
|
28
|
+
* - params.filters.imeiList IMEI list to filter by
|
|
29
|
+
* @returns Acumatica shipment details list
|
|
30
|
+
*/
|
|
31
|
+
getAcumaticaShipmentDetails(params: GetAcumaticaShipmentDetailsParams): Promise<AmazonDeviceShipmentDetails[]>;
|
|
32
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AcumaticaRepository } from './acumatica';
|
|
1
2
|
import { AlertRepository } from './alerts';
|
|
2
3
|
import { AlertTypesRepository } from './alertTypes';
|
|
3
4
|
import { AssetCategoriesRepository } from './assetCategories';
|
|
@@ -18,4 +19,4 @@ import { UserDataDeletionRequestsRepository } from './userDataDeletionRequests';
|
|
|
18
19
|
import { UserInvitationsRepository } from './userInvitations';
|
|
19
20
|
import { UserRatingRequestsRepository } from './userRatingRequests';
|
|
20
21
|
import { UsersRepository } from './users';
|
|
21
|
-
export { AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
|
|
22
|
+
export { AcumaticaRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface GetAcumaticaImeiIccidDataParams {
|
|
2
|
+
filters: {
|
|
3
|
+
imei?: string;
|
|
4
|
+
excludeNullAsin?: boolean;
|
|
5
|
+
excludeNullCountyCode?: boolean;
|
|
6
|
+
excludeCountries?: string[];
|
|
7
|
+
};
|
|
8
|
+
sortOptions?: {
|
|
9
|
+
sortField: 'createdDate' | 'shipDate';
|
|
10
|
+
sortOrder: 'ASC' | 'DESC';
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface GetLastAmazonDeviceShipmentDetailsParams {
|
|
14
|
+
filters: {
|
|
15
|
+
clientId: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface AmazonDeviceShipmentDetails {
|
|
19
|
+
imei: string;
|
|
20
|
+
iccid: string;
|
|
21
|
+
shipmentDate: string;
|
|
22
|
+
orderType: string;
|
|
23
|
+
reviewUrl?: string | null;
|
|
24
|
+
productUrl?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface GetAcumaticaShipmentDetailsParams {
|
|
27
|
+
filters: {
|
|
28
|
+
imeiList: string[];
|
|
29
|
+
};
|
|
30
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as Acumatica from './acumatica';
|
|
1
2
|
import * as Alerts from './alert';
|
|
2
3
|
import * as AlertTypes from './alertTypes';
|
|
3
4
|
import * as Billing from './billing';
|
|
@@ -18,4 +19,4 @@ import * as UserConfigurations from './userConfigurations';
|
|
|
18
19
|
import * as UserDataDeletionRequests from './userDataDeletionRequests';
|
|
19
20
|
import * as UserInvitations from './userInvitations';
|
|
20
21
|
import * as UserRatingRequests from './userRatingRequests';
|
|
21
|
-
export { Alerts, AlertTypes, Billing, Boundaries, Clients, Countries, DeviceBehaviors, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Users, UserActivations, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, };
|
|
22
|
+
export { Acumatica, Alerts, AlertTypes, Billing, Boundaries, Clients, Countries, DeviceBehaviors, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Users, UserActivations, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, };
|