@spytecgps/nova-orm 0.0.53 → 0.0.54
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,4 @@
|
|
|
1
|
+
import { Country } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetCountriesParams } from '../../types/countries';
|
|
4
|
+
export declare const getCountries: (novaDataSource: NovaDataSource, params: GetCountriesParams) => Promise<Country[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Country } from '../../entities';
|
|
2
|
-
import { GetCountryParams } from '../../types/countries';
|
|
2
|
+
import { GetCountriesParams, GetCountryParams } from '../../types/countries';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class CountriesRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -10,4 +10,11 @@ export declare class CountriesRepository extends BaseRepository {
|
|
|
10
10
|
* @returns The country information
|
|
11
11
|
*/
|
|
12
12
|
getCountry(params: GetCountryParams): Promise<Country>;
|
|
13
|
+
/**
|
|
14
|
+
* Get countries
|
|
15
|
+
* @param {GetCountriesParams} params containing information to get countries
|
|
16
|
+
* - filters.idList: The country id list. If not provided, all countries will be returned
|
|
17
|
+
* @returns The countries information
|
|
18
|
+
*/
|
|
19
|
+
getCountries(params: GetCountriesParams): Promise<Country[]>;
|
|
13
20
|
}
|