@spytecgps/nova-orm 0.0.20 → 0.0.22

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.
@@ -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
+ }
@@ -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.22",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -38,8 +38,10 @@
38
38
  "typeorm": "typeorm-ts-node-commonjs",
39
39
  "lint": "eslint \"./src/**\"",
40
40
  "lint-fix": "eslint \"./src/**\" --fix",
41
+ "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
41
42
  "build-dev": "webpack --mode=development",
42
43
  "build": "webpack --mode=production",
44
+ "copydistfolder": "./scripts/copyDistFolder.sh",
43
45
  "schema-sync": "yarn typeorm schema:drop --dataSource ./data-source.ts && yarn typeorm schema:sync --dataSource ./data-source.ts && yarn typeorm migration:run --dataSource ./data-source.ts"
44
46
  },
45
47
  "author": "Spytec",