eclesiar-sdk 1.1.5 → 1.1.7

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,7 @@
1
+ import { Region } from "../../types/country";
2
+ type GetCountryTransactions = {
3
+ country_id: number;
4
+ page?: number;
5
+ };
6
+ export declare function getCountryTransactions({ country_id, page }: GetCountryTransactions): Promise<Region[]>;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ import { apiFetch } from "../../client";
2
+ export async function getCountryTransactions({ country_id, page = 1 }) {
3
+ const params = new URLSearchParams({ country_id: String(country_id) });
4
+ return apiFetch(`/country/currency-transactions?${params.toString()}`);
5
+ }
@@ -1,6 +1,7 @@
1
1
  import { getCountries } from './getCountries';
2
2
  import { getCountryRegions } from './getCountryRegions';
3
+ import { getCountryTransactions } from './getTransactions';
3
4
  import type { CountriesApi } from './types';
4
5
  export declare const countriesApi: CountriesApi;
5
6
  export type { CountriesApi };
6
- export { getCountries, getCountryRegions, };
7
+ export { getCountries, getCountryRegions, getCountryTransactions, };
@@ -1,7 +1,9 @@
1
1
  import { getCountries } from './getCountries';
2
2
  import { getCountryRegions } from './getCountryRegions';
3
+ import { getCountryTransactions } from './getTransactions';
3
4
  export const countriesApi = {
4
5
  getCountries,
5
6
  getCountryRegions,
7
+ getCountryTransactions,
6
8
  };
7
- export { getCountries, getCountryRegions, };
9
+ export { getCountries, getCountryRegions, getCountryTransactions, };
@@ -4,4 +4,8 @@ export interface CountriesApi {
4
4
  getCountryRegions({ country_id }: {
5
5
  country_id: number;
6
6
  }): Promise<Region[]>;
7
+ getCountryTransactions({ country_id, page }: {
8
+ country_id: number;
9
+ page?: number;
10
+ }): Promise<Region[]>;
7
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eclesiar-sdk",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",