@nomalism-com/api 0.39.22 → 0.39.23

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,10 +1788,11 @@ 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
+ find(data: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1792
+ deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
1791
1793
  findByOwnerId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1792
1794
  findByDocumentHeaderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1793
1795
  findByPersonaId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
1794
- deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
1795
1796
  }
1796
1797
 
1797
1798
  declare namespace chatSubscriber {
package/dist/index.js CHANGED
@@ -4053,6 +4053,14 @@ var Repository113 = class {
4053
4053
  const response = await this.api.post(`${this.route}`, data);
4054
4054
  return response.data;
4055
4055
  }
4056
+ async find(data) {
4057
+ const response = await this.api.get(`${this.route}`, { params: data });
4058
+ return response.data;
4059
+ }
4060
+ async deleteOne(selector) {
4061
+ await this.api.post(`${this.route}/id/${selector}`);
4062
+ }
4063
+ //TODELETE (start)
4056
4064
  async findByOwnerId(selector) {
4057
4065
  const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
4058
4066
  return response.data;
@@ -4065,9 +4073,7 @@ var Repository113 = class {
4065
4073
  const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
4066
4074
  return response.data;
4067
4075
  }
4068
- async deleteOne(selector) {
4069
- await this.api.post(`${this.route}/id/${selector}`);
4070
- }
4076
+ //TODELETE (end)
4071
4077
  };
4072
4078
 
4073
4079
  // src/modules/stock/tag.ts
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.23",
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.31",
27
27
  "axios": "^1.9.0"
28
28
  },
29
29
  "devDependencies": {