@nomalism-com/api 0.46.5 → 0.46.6
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
|
@@ -1713,6 +1713,10 @@ var Repository39 = class {
|
|
|
1713
1713
|
const response = await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
1714
1714
|
return response.data;
|
|
1715
1715
|
}
|
|
1716
|
+
async updateOwnPin(body) {
|
|
1717
|
+
const response = await this.api.put(`${this.route}pin`, body);
|
|
1718
|
+
return response.data;
|
|
1719
|
+
}
|
|
1716
1720
|
async deleteOne(selector) {
|
|
1717
1721
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1718
1722
|
return response.data;
|
|
@@ -10,5 +10,6 @@ export default class Repository implements Nomalism.StoreOperator.IRepository {
|
|
|
10
10
|
create(body: Nomalism.StoreOperator.ICreateRequest): Promise<string>;
|
|
11
11
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdateRequest): Promise<void>;
|
|
12
12
|
updatePassword(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdatePasswordRequest): Promise<void>;
|
|
13
|
+
updateOwnPin(body: Nomalism.StoreOperator.IUpdateOwnPinRequest): Promise<void>;
|
|
13
14
|
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
14
15
|
}
|
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.46.
|
|
4
|
+
"version": "0.46.6",
|
|
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.46.
|
|
26
|
+
"@nomalism-com/types": "^0.46.6",
|
|
27
27
|
"axios": "^1.18.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|