@nomalism-com/api 0.51.15 → 0.51.16

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/index.cjs CHANGED
@@ -1876,9 +1876,10 @@ var Repository47 = class {
1876
1876
  const response = await this.api.get(`${this.route}auth`);
1877
1877
  return response.data;
1878
1878
  }
1879
- async emails() {
1879
+ async emails(params) {
1880
1880
  const response = await this.api.get(
1881
- `${this.route}emails`
1881
+ `${this.route}emails`,
1882
+ { params }
1882
1883
  );
1883
1884
  return response.data;
1884
1885
  }
@@ -2364,7 +2365,9 @@ var Repository58 = class {
2364
2365
  return response.data;
2365
2366
  }
2366
2367
  async from_master_checked() {
2367
- const response = await this.api.post(`${this.route}from_master`);
2368
+ const response = await this.api.post(
2369
+ `${this.route}from_master_checked`
2370
+ );
2368
2371
  return response.data;
2369
2372
  }
2370
2373
  };
package/dist/index.js CHANGED
@@ -1843,9 +1843,10 @@ var Repository47 = class {
1843
1843
  const response = await this.api.get(`${this.route}auth`);
1844
1844
  return response.data;
1845
1845
  }
1846
- async emails() {
1846
+ async emails(params) {
1847
1847
  const response = await this.api.get(
1848
- `${this.route}emails`
1848
+ `${this.route}emails`,
1849
+ { params }
1849
1850
  );
1850
1851
  return response.data;
1851
1852
  }
@@ -2331,7 +2332,9 @@ var Repository58 = class {
2331
2332
  return response.data;
2332
2333
  }
2333
2334
  async from_master_checked() {
2334
- const response = await this.api.post(`${this.route}from_master`);
2335
+ const response = await this.api.post(
2336
+ `${this.route}from_master_checked`
2337
+ );
2335
2338
  return response.data;
2336
2339
  }
2337
2340
  };
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.Settings.IRepository {
4
4
  route: string;
5
5
  private api;
6
6
  constructor({ api, route }: IModuleConstructor);
7
- findByKey(params: Nomalism.Settings.IFindByKeyRequest): Promise<Nomalism.Settings.Entity | null>;
8
- update(body: Nomalism.Settings.IUpdateRequest): Promise<Nomalism.Settings.Entity | null>;
9
- find(): Promise<Nomalism.Settings.Entity[]>;
7
+ findByKey(params: Nomalism.Settings.IFindByKeyRequest): Promise<Nomalism.Settings.IFindResponse | null>;
8
+ update(body: Nomalism.Settings.IUpdateRequest): Promise<Nomalism.Settings.IFindResponse | null>;
9
+ find(): Promise<Nomalism.Settings.IFindResponse[]>;
10
10
  }
@@ -5,5 +5,5 @@ export default class Repository implements Nomalism.Gmails.IRepository {
5
5
  private api;
6
6
  constructor({ api, route }: IModuleConstructor);
7
7
  auth(): Promise<string>;
8
- emails(): Promise<Nomalism.Gmails.IGmailsResponse[]>;
8
+ emails(params?: Nomalism.Gmails.IFindRequest): Promise<Nomalism.Gmails.IFindResponse>;
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.51.15",
4
+ "version": "0.51.16",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,19 +30,19 @@
30
30
  "prepare": "husky"
31
31
  },
32
32
  "dependencies": {
33
- "@nomalism-com/types": "^0.51.15",
33
+ "@nomalism-com/types": "^0.51.16",
34
34
  "axios": "^1.21.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/js": "^10.0.1",
38
- "@swc/core": "^1.16.20",
38
+ "@swc/core": "^1.16.21",
39
39
  "@types/node": "^26.6.6",
40
40
  "@typescript-eslint/eslint-plugin": "^8.62.0",
41
41
  "@typescript-eslint/parser": "^8.62.0",
42
- "eslint": "^10.13.0",
42
+ "eslint": "^10.14.0",
43
43
  "eslint-config-prettier": "^10.1.8",
44
44
  "eslint-plugin-simple-import-sort": "^14.0.0",
45
- "globals": "^17.13.0",
45
+ "globals": "^17.14.0",
46
46
  "husky": "^9.1.7",
47
47
  "lint-staged": "^17.6.0",
48
48
  "prettier": "^3.9.10",