@nomalism-com/api 0.51.12 → 0.51.13
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.cjs +7 -0
- package/dist/index.js +7 -0
- package/dist/modules/user/storeOperator.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4847,6 +4847,13 @@ var Repository124 = class {
|
|
|
4847
4847
|
async updatePassword(selector, body) {
|
|
4848
4848
|
await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
4849
4849
|
}
|
|
4850
|
+
async validatePin(body) {
|
|
4851
|
+
const response = await this.api.post(
|
|
4852
|
+
`${this.route}validate_pin`,
|
|
4853
|
+
body
|
|
4854
|
+
);
|
|
4855
|
+
return response.data;
|
|
4856
|
+
}
|
|
4850
4857
|
async updateOwnPin(body) {
|
|
4851
4858
|
await this.api.put(`${this.route}pin`, body);
|
|
4852
4859
|
}
|
package/dist/index.js
CHANGED
|
@@ -4814,6 +4814,13 @@ var Repository124 = class {
|
|
|
4814
4814
|
async updatePassword(selector, body) {
|
|
4815
4815
|
await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
4816
4816
|
}
|
|
4817
|
+
async validatePin(body) {
|
|
4818
|
+
const response = await this.api.post(
|
|
4819
|
+
`${this.route}validate_pin`,
|
|
4820
|
+
body
|
|
4821
|
+
);
|
|
4822
|
+
return response.data;
|
|
4823
|
+
}
|
|
4817
4824
|
async updateOwnPin(body) {
|
|
4818
4825
|
await this.api.put(`${this.route}pin`, body);
|
|
4819
4826
|
}
|
|
@@ -9,5 +9,6 @@ export default class Repository implements Nomalism.StoreOperator.IRepository {
|
|
|
9
9
|
create(body: Nomalism.StoreOperator.ICreateRequest): Promise<string>;
|
|
10
10
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdateRequest): Promise<void>;
|
|
11
11
|
updatePassword(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdatePasswordRequest): Promise<void>;
|
|
12
|
+
validatePin(body: Nomalism.StoreOperator.IValidatePinRequest): Promise<Nomalism.StoreOperator.IFindResponse>;
|
|
12
13
|
updateOwnPin(body: Nomalism.StoreOperator.IUpdateOwnPinRequest): Promise<void>;
|
|
13
14
|
}
|
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.51.
|
|
4
|
+
"version": "0.51.13",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.13",
|
|
34
34
|
"axios": "^1.21.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|