@idfy/sdk
Version:
Node.js SDK for Idfy REST API
34 lines • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IdfyClient = void 0;
const IdfyConfiguration_1 = require("./IdfyConfiguration");
const identification_1 = require("./services/identification");
const identificationv2_1 = require("./services/identificationv2");
const signature_1 = require("./services/signature");
const notification_1 = require("./services/notification");
class IdfyClient {
constructor(clientId, clientSecret, scopes) {
IdfyConfiguration_1.IdfyConfiguration.setClientCredentials(clientId, clientSecret, scopes);
this.identificationService = new identification_1.IdentificationService();
this.identificationV2Service = new identificationv2_1.IdentificationV2Service();
this.signatureService = new signature_1.SignatureService();
this.notificationService = new notification_1.NotificationService();
}
/**
* @deprecated Use identificationV2 instead.
*/
get identification() {
return this.identificationService;
}
get identificationV2() {
return this.identificationV2Service;
}
get signature() {
return this.signatureService;
}
get notification() {
return this.notificationService;
}
}
exports.IdfyClient = IdfyClient;
//# sourceMappingURL=IdfyClient.js.map