@xvia/mtcidadao-api
Advanced tools
Comparing version 2.82.1 to 2.82.2
import { Service } from "../Service"; | ||
export declare class SmartpassApi extends Service { | ||
validacaoFacial(fotosBase64: string, deviceId: string): Promise<any>; | ||
provaDeVida(fotosBase64: string): Promise<any>; | ||
AllCertificates(userId?: string, deviceId?: string): Promise<any>; | ||
cancelCertRequest(requestId?: string): Promise<any>; | ||
loadRegistration(): Promise<any>; | ||
} |
@@ -18,2 +18,13 @@ "use strict"; | ||
} | ||
provaDeVida(fotosBase64) { | ||
return this.request(`/v1/smartpass/provaDeVida`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
fotosBase64, | ||
}), | ||
}); | ||
} | ||
AllCertificates(userId, deviceId) { | ||
@@ -31,3 +42,23 @@ return this.request(`/v1/smartpass/getAllCertificates`, { | ||
} | ||
cancelCertRequest(requestId) { | ||
return this.request(`/v1/smartpass/cancelCertRequest`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
requestId, | ||
}), | ||
}); | ||
} | ||
loadRegistration() { | ||
return this.request(`/v1/smartpass/load-registration`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({}), | ||
}); | ||
} | ||
} | ||
exports.SmartpassApi = SmartpassApi; |
@@ -124,3 +124,2 @@ "use strict"; | ||
} | ||
console.log(item[0].split(" ")); | ||
return { | ||
@@ -127,0 +126,0 @@ servico: item[0], |
{ | ||
"name": "@xvia/mtcidadao-api", | ||
"version": "2.82.1", | ||
"version": "2.82.2", | ||
"description": "MTCidadão api sdk", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -18,2 +18,14 @@ // AUTO GENERATED. DO NOT EDIT IT | ||
provaDeVida(fotosBase64: string): Promise<any> { | ||
return this.request(`/v1/smartpass/provaDeVida`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
fotosBase64, | ||
}), | ||
}); | ||
} | ||
AllCertificates(userId?: string, deviceId?: string): Promise<any> { | ||
@@ -31,2 +43,24 @@ return this.request(`/v1/smartpass/getAllCertificates`, { | ||
} | ||
cancelCertRequest(requestId?: string): Promise<any> { | ||
return this.request(`/v1/smartpass/cancelCertRequest`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
requestId, | ||
}), | ||
}); | ||
} | ||
loadRegistration(): Promise<any> { | ||
return this.request(`/v1/smartpass/load-registration`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({}), | ||
}); | ||
} | ||
} |
311851
9891