@nomalism-com/api 0.39.2 → 0.39.4

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
@@ -4101,6 +4101,10 @@ var Repository115 = class {
4101
4101
  this.route = route;
4102
4102
  this.publicRoute = publicRoute;
4103
4103
  }
4104
+ async auth() {
4105
+ const response = await this.api.get(`${this.route}auth`);
4106
+ return response.data;
4107
+ }
4104
4108
  async emails() {
4105
4109
  const response = await this.api.get(`${this.route}emails`);
4106
4110
  return response.data;
package/dist/index.d.ts CHANGED
@@ -1816,6 +1816,7 @@ declare class Repository implements Nomalism$1.Gmails.IRepository {
1816
1816
  publicRoute: string;
1817
1817
  private api;
1818
1818
  constructor({ api, route, publicRoute }: IModuleConstructor);
1819
+ auth(): Promise<string>;
1819
1820
  emails(): Promise<Nomalism$1.Gmails.IGmailsResponse[]>;
1820
1821
  executeGmailCommand(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Gmails.IGmailsResponse | null>;
1821
1822
  editPreviewChatMessage(selector: Nomalism$1.Gmails.IEditPreviewChatMessageRequest): Promise<Nomalism$1.Gmails.IEditPreviewChatMessageResponse | null>;
package/dist/index.js CHANGED
@@ -4101,6 +4101,10 @@ var Repository115 = class {
4101
4101
  this.route = route;
4102
4102
  this.publicRoute = publicRoute;
4103
4103
  }
4104
+ async auth() {
4105
+ const response = await this.api.get(`${this.route}auth`);
4106
+ return response.data;
4107
+ }
4104
4108
  async emails() {
4105
4109
  const response = await this.api.get(`${this.route}emails`);
4106
4110
  return response.data;
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.39.2",
4
+ "version": "0.39.4",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "prepack": "npm run lint && npm run build"
27
27
  },
28
28
  "dependencies": {
29
- "@nomalism-com/types": "^0.39.9",
29
+ "@nomalism-com/types": "^0.39.11",
30
30
  "axios": "^1.9.0"
31
31
  },
32
32
  "devDependencies": {