@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
  }
@@ -4,3 +4,8 @@ export interface GetCountryParams {
4
4
  alpha2Code?: string;
5
5
  };
6
6
  }
7
+ export interface GetCountriesParams {
8
+ filters: {
9
+ idList?: string;
10
+ };
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",