UNPKG

react-native-persona

Version:

Launch a mobile native implementation of the Persona inquiry flow from React Native.

66 lines (65 loc) 2.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UiStepData = exports.SelfieStepData = exports.SelfieCaptureMethod = exports.GovernmentIdStepData = exports.GovernmentIdCaptureSide = exports.GovernmentIdCaptureMethod = exports.DocumentStepData = void 0; function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } class DocumentStepData { constructor() { _defineProperty(this, "stepName", void 0); _defineProperty(this, "documents", void 0); this.stepName = ''; this.documents = []; } } exports.DocumentStepData = DocumentStepData; class GovernmentIdStepData { constructor() { _defineProperty(this, "stepName", void 0); _defineProperty(this, "captures", void 0); this.stepName = ''; this.captures = []; } } exports.GovernmentIdStepData = GovernmentIdStepData; let GovernmentIdCaptureMethod = exports.GovernmentIdCaptureMethod = /*#__PURE__*/function (GovernmentIdCaptureMethod) { GovernmentIdCaptureMethod["Manual"] = "Manual"; GovernmentIdCaptureMethod["Auto"] = "Auto"; GovernmentIdCaptureMethod["Upload"] = "Upload"; return GovernmentIdCaptureMethod; }({}); let GovernmentIdCaptureSide = exports.GovernmentIdCaptureSide = /*#__PURE__*/function (GovernmentIdCaptureSide) { GovernmentIdCaptureSide["Front"] = "Front"; GovernmentIdCaptureSide["Back"] = "Back"; return GovernmentIdCaptureSide; }({}); class SelfieStepData { constructor() { _defineProperty(this, "stepName", void 0); _defineProperty(this, "centerCapture", void 0); _defineProperty(this, "leftCapture", void 0); _defineProperty(this, "rightCapture", void 0); this.stepName = ''; this.centerCapture = null; this.leftCapture = null; this.rightCapture = null; } } exports.SelfieStepData = SelfieStepData; let SelfieCaptureMethod = exports.SelfieCaptureMethod = /*#__PURE__*/function (SelfieCaptureMethod) { SelfieCaptureMethod["Manual"] = "Manual"; SelfieCaptureMethod["Auto"] = "Auto"; return SelfieCaptureMethod; }({}); class UiStepData { constructor() { _defineProperty(this, "stepName", void 0); _defineProperty(this, "componentParams", void 0); this.stepName = ''; this.componentParams = {}; } } exports.UiStepData = UiStepData; //# sourceMappingURL=StepData.js.map