@nomalism-com/api 0.39.22 → 0.39.24

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.d.ts CHANGED
@@ -1788,9 +1788,7 @@ declare class Repository$2 implements Nomalism$1.ChatSubscriber.IRepository {
1788
1788
  private api;
1789
1789
  constructor({ api, route, publicRoute }: IModuleConstructor);
1790
1790
  createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<Nomalism$1.ChatSubscriber.Entity[]>;
1791
- findByOwnerId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1792
- findByDocumentHeaderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1793
- findByPersonaId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1791
+ find(data: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindResponse[]>;
1794
1792
  deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
1795
1793
  }
1796
1794
 
package/dist/index.js CHANGED
@@ -4053,16 +4053,8 @@ var Repository113 = class {
4053
4053
  const response = await this.api.post(`${this.route}`, data);
4054
4054
  return response.data;
4055
4055
  }
4056
- async findByOwnerId(selector) {
4057
- const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
4058
- return response.data;
4059
- }
4060
- async findByDocumentHeaderId(selector) {
4061
- const response = await this.api.get(`${this.route}by_document_header_id/${selector.id}`);
4062
- return response.data;
4063
- }
4064
- async findByPersonaId(selector) {
4065
- const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
4056
+ async find(data) {
4057
+ const response = await this.api.get(`${this.route}`, { params: data });
4066
4058
  return response.data;
4067
4059
  }
4068
4060
  async deleteOne(selector) {
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.22",
4
+ "version": "0.39.24",
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.39.29",
26
+ "@nomalism-com/types": "^0.39.32",
27
27
  "axios": "^1.9.0"
28
28
  },
29
29
  "devDependencies": {