@nomalism-com/api 0.45.2 → 0.45.5

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.js CHANGED
@@ -1412,7 +1412,7 @@ var Repository37 = class {
1412
1412
  return response.data;
1413
1413
  }
1414
1414
  async logout() {
1415
- await this.api.post(`${this.route}`);
1415
+ await this.api.post(`${this.route}logout`);
1416
1416
  }
1417
1417
  };
1418
1418
 
@@ -2874,10 +2874,6 @@ var Repository78 = class {
2874
2874
  async publicUpdate(selector, body) {
2875
2875
  await this.api.put(`${this.route}public/${selector.id}`, body);
2876
2876
  }
2877
- async publicAuthenticate({ id }) {
2878
- const response = await this.api.get(`${this.route}authenticate/${id}`);
2879
- return response.data;
2880
- }
2881
2877
  };
2882
2878
 
2883
2879
  // src/modules/integration/projectInfo.ts
@@ -3782,6 +3778,10 @@ var Repository109 = class {
3782
3778
  async deleteByDocumentHeader({ id }) {
3783
3779
  await this.api.delete(`${this.route}document_header/${id}`);
3784
3780
  }
3781
+ async publicAuthenticate({ id }) {
3782
+ const response = await this.api.get(`${this.route}authenticate/${id}`);
3783
+ return response.data;
3784
+ }
3785
3785
  };
3786
3786
 
3787
3787
  // src/modules/stock/tag.ts
@@ -3874,7 +3874,7 @@ var Repository114 = class {
3874
3874
  this.route = route;
3875
3875
  }
3876
3876
  async findCurrentAccountByOwnerId(params) {
3877
- const response = await this.api.get(`${this.route}current_account`, {
3877
+ const response = await this.api.get(`${this.route}`, {
3878
3878
  params
3879
3879
  });
3880
3880
  return response.data;
@@ -3886,7 +3886,7 @@ var Repository114 = class {
3886
3886
  return response.data;
3887
3887
  }
3888
3888
  async exportCurrentAccount(params) {
3889
- const response = await this.api.get(`${this.route}export_current_account`, {
3889
+ const response = await this.api.get(`${this.route}export`, {
3890
3890
  params
3891
3891
  });
3892
3892
  return response.data;
@@ -4345,7 +4345,7 @@ var API = class {
4345
4345
  getModuleParams("stock", Nomalism.ReturnReason.Route)
4346
4346
  );
4347
4347
  this.PropostaSheets = new Repository69(
4348
- getModuleParams("stock", Nomalism.Providers.Route)
4348
+ getModuleParams("stock", Nomalism.PropostaSheets.Route)
4349
4349
  );
4350
4350
  this.Schedule = new Repository70(getModuleParams("stock", Nomalism.Schedule.Route));
4351
4351
  this.GoogleFilePermission = new Repository71(
@@ -10,4 +10,5 @@ export default class Repository implements Nomalism.ChatSubscriber.IRepository {
10
10
  createOrUpdate(data: Nomalism.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
11
11
  deleteOne({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
12
12
  deleteByDocumentHeader({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
13
+ publicAuthenticate({ id }: Nomalism.shared.IFindByIdRequest): Promise<string | null>;
13
14
  }
@@ -15,5 +15,4 @@ export default class Repository implements Nomalism.Persona.IRepository {
15
15
  findClientOrProvider(params: Nomalism.Persona.IFindClientOrProviderRequest): Promise<Nomalism.Persona.IFindClientOrProviderResponse[]>;
16
16
  findForGmail(params: Nomalism.Persona.IFindForGmailRequest): Promise<Nomalism.Persona.IFindForGmailResponse | null>;
17
17
  publicUpdate(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.Persona.IPublicUpdateRequest): Promise<void>;
18
- publicAuthenticate({ id }: Nomalism.shared.IFindByIdRequest): Promise<string | null>;
19
18
  }
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.45.2",
4
+ "version": "0.45.5",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.45.3",
26
+ "@nomalism-com/types": "^0.45.5",
27
27
  "axios": "^1.16.1"
28
28
  },
29
29
  "devDependencies": {