@nomalism-com/api 0.39.21 → 0.39.22

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
@@ -657,6 +657,7 @@ declare class Repository$19 implements Nomalism$1.StoreOperator.IRepository {
657
657
  findMinified(params?: Nomalism$1.shared.IFindMinifiedRequest): Promise<Nomalism$1.shared.IFindMinifiedResponse[]>;
658
658
  create(body: Nomalism$1.StoreOperator.ICreateRequest): Promise<string>;
659
659
  update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdateRequest): Promise<void>;
660
+ updatePassword(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdatePasswordRequest): Promise<void>;
660
661
  deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
661
662
  }
662
663
 
package/dist/index.js CHANGED
@@ -1620,6 +1620,10 @@ var Repository42 = class {
1620
1620
  const response = await this.api.put(`${this.route}${selector.id}`, body);
1621
1621
  return response.data;
1622
1622
  }
1623
+ async updatePassword(selector, body) {
1624
+ const response = await this.api.put(`${this.route}password/${selector.id}`, body);
1625
+ return response.data;
1626
+ }
1623
1627
  async deleteOne(selector) {
1624
1628
  const response = await this.api.delete(`${this.route}${selector.id}`);
1625
1629
  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.21",
4
+ "version": "0.39.22",
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.28",
26
+ "@nomalism-com/types": "^0.39.29",
27
27
  "axios": "^1.9.0"
28
28
  },
29
29
  "devDependencies": {