airalo-sdk-type 0.0.2 → 0.0.3

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/package.d.ts CHANGED
@@ -1,11 +1,21 @@
1
1
  import { CountryData } from "./types/package";
2
- export declare const Packages: () => Promise<{
2
+ export declare const Packages: (data: {
3
+ filter?: any;
4
+ limit?: number;
5
+ page?: number;
6
+ include?: string;
7
+ }) => Promise<{
3
8
  success: boolean;
4
9
  data: CountryData[];
5
10
  message: string;
6
11
  }>;
7
12
  declare const _default: {
8
- Packages: () => Promise<{
13
+ Packages: (data: {
14
+ filter?: any;
15
+ limit?: number;
16
+ page?: number;
17
+ include?: string;
18
+ }) => Promise<{
9
19
  success: boolean;
10
20
  data: CountryData[];
11
21
  message: string;
package/dist/package.js CHANGED
@@ -4,7 +4,7 @@ exports.Packages = void 0;
4
4
  const _1 = require(".");
5
5
  const axios_master_1 = require("axios-master");
6
6
  const auth_1 = require("./auth");
7
- const Packages = async () => {
7
+ const Packages = async (data) => {
8
8
  try {
9
9
  const result = await (0, axios_master_1.axiosMasterLogger)({
10
10
  method: "GET",
@@ -15,6 +15,7 @@ const Packages = async () => {
15
15
  "Content-Type": "application/json",
16
16
  Authorization: `Bearer ${_1.config.token}`,
17
17
  },
18
+ params: data,
18
19
  }, {
19
20
  name: "Packages",
20
21
  timeout: 20000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airalo-sdk-type",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "UNOFFICIAL AIRALO API INTEGRATION FOR JAVASCRIPT/TYPESCRIPT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",