@ha_tecno/live-id-sdk 2.12.2 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/lib/commonjs/components/Typograph/typograph.js +28 -0
  2. package/lib/commonjs/components/Typograph/typograph.js.map +1 -0
  3. package/lib/commonjs/components/index.js +14 -0
  4. package/lib/commonjs/components/index.js.map +1 -1
  5. package/lib/commonjs/index.js +12 -0
  6. package/lib/commonjs/index.js.map +1 -1
  7. package/lib/commonjs/screens/FingerAuth/FingerAuth.js +4 -1
  8. package/lib/commonjs/screens/FingerAuth/FingerAuth.js.map +1 -1
  9. package/lib/commonjs/screens/FingerRegister/FingerRegister.js +4 -1
  10. package/lib/commonjs/screens/FingerRegister/FingerRegister.js.map +1 -1
  11. package/lib/commonjs/screens/LifeCertificate/LifeCertificate.js +6 -3
  12. package/lib/commonjs/screens/LifeCertificate/LifeCertificate.js.map +1 -1
  13. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsBiometrics.js +185 -0
  14. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsBiometrics.js.map +1 -0
  15. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsLifeCertificate.js +165 -0
  16. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsLifeCertificate.js.map +1 -0
  17. package/lib/commonjs/screens/RegisterOperations/styles.js +47 -0
  18. package/lib/commonjs/screens/RegisterOperations/styles.js.map +1 -0
  19. package/lib/commonjs/screens/index.js +14 -0
  20. package/lib/commonjs/screens/index.js.map +1 -1
  21. package/lib/commonjs/services/index.js +18 -0
  22. package/lib/commonjs/services/index.js.map +1 -1
  23. package/lib/commonjs/services/services.js +106 -1
  24. package/lib/commonjs/services/services.js.map +1 -1
  25. package/lib/commonjs/store/modules/operationPoints/index.js +19 -0
  26. package/lib/commonjs/store/modules/operationPoints/index.js.map +1 -0
  27. package/lib/commonjs/store/modules/operationPoints/selectors.js +13 -0
  28. package/lib/commonjs/store/modules/operationPoints/selectors.js.map +1 -0
  29. package/lib/commonjs/store/modules/operationPoints/slice.js +233 -0
  30. package/lib/commonjs/store/modules/operationPoints/slice.js.map +1 -0
  31. package/lib/commonjs/store/modules/operationPoints/types.js +2 -0
  32. package/lib/commonjs/store/modules/operationPoints/types.js.map +1 -0
  33. package/lib/commonjs/utils/index.js +12 -0
  34. package/lib/commonjs/utils/index.js.map +1 -1
  35. package/lib/commonjs/utils/utils.js +9 -1
  36. package/lib/commonjs/utils/utils.js.map +1 -1
  37. package/lib/module/components/Typograph/typograph.js +21 -0
  38. package/lib/module/components/Typograph/typograph.js.map +1 -0
  39. package/lib/module/components/index.js +3 -1
  40. package/lib/module/components/index.js.map +1 -1
  41. package/lib/module/index.js +2 -2
  42. package/lib/module/index.js.map +1 -1
  43. package/lib/module/screens/FingerAuth/FingerAuth.js +5 -2
  44. package/lib/module/screens/FingerAuth/FingerAuth.js.map +1 -1
  45. package/lib/module/screens/FingerRegister/FingerRegister.js +5 -2
  46. package/lib/module/screens/FingerRegister/FingerRegister.js.map +1 -1
  47. package/lib/module/screens/LifeCertificate/LifeCertificate.js +6 -3
  48. package/lib/module/screens/LifeCertificate/LifeCertificate.js.map +1 -1
  49. package/lib/module/screens/RegisterOperations/registerOperationPointsBiometrics.js +176 -0
  50. package/lib/module/screens/RegisterOperations/registerOperationPointsBiometrics.js.map +1 -0
  51. package/lib/module/screens/RegisterOperations/registerOperationPointsLifeCertificate.js +157 -0
  52. package/lib/module/screens/RegisterOperations/registerOperationPointsLifeCertificate.js.map +1 -0
  53. package/lib/module/screens/RegisterOperations/styles.js +41 -0
  54. package/lib/module/screens/RegisterOperations/styles.js.map +1 -0
  55. package/lib/module/screens/index.js +3 -1
  56. package/lib/module/screens/index.js.map +1 -1
  57. package/lib/module/services/index.js +2 -2
  58. package/lib/module/services/index.js.map +1 -1
  59. package/lib/module/services/services.js +102 -0
  60. package/lib/module/services/services.js.map +1 -1
  61. package/lib/module/store/modules/operationPoints/index.js +3 -0
  62. package/lib/module/store/modules/operationPoints/index.js.map +1 -0
  63. package/lib/module/store/modules/operationPoints/selectors.js +6 -0
  64. package/lib/module/store/modules/operationPoints/selectors.js.map +1 -0
  65. package/lib/module/store/modules/operationPoints/slice.js +227 -0
  66. package/lib/module/store/modules/operationPoints/slice.js.map +1 -0
  67. package/lib/module/store/modules/operationPoints/types.js +2 -0
  68. package/lib/module/store/modules/operationPoints/types.js.map +1 -0
  69. package/lib/module/utils/index.js +2 -2
  70. package/lib/module/utils/index.js.map +1 -1
  71. package/lib/module/utils/utils.js +7 -1
  72. package/lib/module/utils/utils.js.map +1 -1
  73. package/lib/typescript/src/components/Typograph/typograph.d.ts +10 -0
  74. package/lib/typescript/src/components/Typograph/typograph.d.ts.map +1 -0
  75. package/lib/typescript/src/components/index.d.ts +3 -1
  76. package/lib/typescript/src/components/index.d.ts.map +1 -1
  77. package/lib/typescript/src/index.d.ts +2 -2
  78. package/lib/typescript/src/index.d.ts.map +1 -1
  79. package/lib/typescript/src/screens/FingerAuth/FingerAuth.d.ts.map +1 -1
  80. package/lib/typescript/src/screens/FingerRegister/FingerRegister.d.ts.map +1 -1
  81. package/lib/typescript/src/screens/LifeCertificate/LifeCertificate.d.ts.map +1 -1
  82. package/lib/typescript/src/screens/RegisterOperations/registerOperationPointsBiometrics.d.ts +7 -0
  83. package/lib/typescript/src/screens/RegisterOperations/registerOperationPointsBiometrics.d.ts.map +1 -0
  84. package/lib/typescript/src/screens/RegisterOperations/registerOperationPointsLifeCertificate.d.ts +7 -0
  85. package/lib/typescript/src/screens/RegisterOperations/registerOperationPointsLifeCertificate.d.ts.map +1 -0
  86. package/lib/typescript/src/screens/RegisterOperations/styles.d.ts +40 -0
  87. package/lib/typescript/src/screens/RegisterOperations/styles.d.ts.map +1 -0
  88. package/lib/typescript/src/screens/index.d.ts +3 -1
  89. package/lib/typescript/src/screens/index.d.ts.map +1 -1
  90. package/lib/typescript/src/services/index.d.ts +2 -2
  91. package/lib/typescript/src/services/index.d.ts.map +1 -1
  92. package/lib/typescript/src/services/services.d.ts +4 -1
  93. package/lib/typescript/src/services/services.d.ts.map +1 -1
  94. package/lib/typescript/src/services/types.d.ts +29 -0
  95. package/lib/typescript/src/services/types.d.ts.map +1 -1
  96. package/lib/typescript/src/store/modules/operationPoints/index.d.ts +3 -0
  97. package/lib/typescript/src/store/modules/operationPoints/index.d.ts.map +1 -0
  98. package/lib/typescript/src/store/modules/operationPoints/selectors.d.ts +24 -0
  99. package/lib/typescript/src/store/modules/operationPoints/selectors.d.ts.map +1 -0
  100. package/lib/typescript/src/store/modules/operationPoints/slice.d.ts +4 -0
  101. package/lib/typescript/src/store/modules/operationPoints/slice.d.ts.map +1 -0
  102. package/lib/typescript/src/store/modules/operationPoints/types.d.ts +51 -0
  103. package/lib/typescript/src/store/modules/operationPoints/types.d.ts.map +1 -0
  104. package/lib/typescript/src/utils/index.d.ts +2 -2
  105. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  106. package/lib/typescript/src/utils/utils.d.ts +3 -1
  107. package/lib/typescript/src/utils/utils.d.ts.map +1 -1
  108. package/package.json +2 -1
  109. package/src/components/Typograph/typograph.tsx +24 -0
  110. package/src/components/index.ts +3 -1
  111. package/src/index.tsx +14 -2
  112. package/src/screens/FingerAuth/FingerAuth.tsx +7 -3
  113. package/src/screens/FingerRegister/FingerRegister.tsx +6 -2
  114. package/src/screens/LifeCertificate/LifeCertificate.tsx +6 -2
  115. package/src/screens/RegisterOperations/registerOperationPointsBiometrics.tsx +168 -0
  116. package/src/screens/RegisterOperations/registerOperationPointsLifeCertificate.tsx +175 -0
  117. package/src/screens/RegisterOperations/styles.ts +41 -0
  118. package/src/screens/index.ts +9 -1
  119. package/src/services/index.ts +18 -2
  120. package/src/services/services.ts +113 -1
  121. package/src/services/types.ts +33 -0
  122. package/src/store/modules/operationPoints/index.ts +3 -0
  123. package/src/store/modules/operationPoints/selectors.ts +7 -0
  124. package/src/store/modules/operationPoints/slice.ts +240 -0
  125. package/src/store/modules/operationPoints/types.ts +61 -0
  126. package/src/utils/index.ts +2 -2
  127. package/src/utils/utils.ts +9 -1
@@ -0,0 +1,227 @@
1
+ import { create } from "zustand";
2
+ import { Platform } from "react-native";
3
+ import { getConfigOperationPoints, sendImagesForRegisterOperationPoints, sendVideoForRegisterOperationPoints } from "../../../services";
4
+ import { getModel } from "react-native-device-info";
5
+ import { scale0to1, scale0to1Inverse } from "../../../utils";
6
+ const initialState = {
7
+ state: {
8
+ loading: "idle",
9
+ hasConfigOperationPointsBiometrics: "idle",
10
+ hasConfigOperationPointsLifeCertificate: "idle",
11
+ base64Images: [],
12
+ exposureScaleZeroToOneBiometrics: Platform.OS === "android" ? 0.12 : 0.3,
13
+ exposureScaleZeroToOneLifeCertificate: Platform.OS === "android" ? 0.12 : 0.3,
14
+ registered: false,
15
+ helpStep: "introduction"
16
+ }
17
+ };
18
+ const resetState = () => {
19
+ slice.setState(state => ({
20
+ state: {
21
+ ...state.state,
22
+ loading: "idle",
23
+ base64Images: [],
24
+ registered: false,
25
+ helpStep: "introduction"
26
+ }
27
+ }));
28
+ };
29
+ const loadingPending = () => {
30
+ slice.setState(state => ({
31
+ state: {
32
+ ...state.state,
33
+ loading: "pending"
34
+ }
35
+ }));
36
+ };
37
+ const setImageBase64 = imageBase64 => {
38
+ slice.setState(state => ({
39
+ state: {
40
+ ...state.state,
41
+ base64Images: [...state.state.base64Images, imageBase64]
42
+ }
43
+ }));
44
+ };
45
+ const changeExposureBiometrics = () => {
46
+ resetState();
47
+ const exposureMap = {
48
+ 0.12: 0.2,
49
+ 0.2: 0.35,
50
+ 0.3: 0.4,
51
+ 0.35: 0.5,
52
+ 0.4: 0.5,
53
+ 0.5: Platform.OS === "android" ? 0.65 : 0.6,
54
+ 0.65: 0.8,
55
+ 0.6: 0.7,
56
+ 0.7: 0.3,
57
+ 0.8: 0.12
58
+ };
59
+ slice.setState(state => {
60
+ const {
61
+ exposureScaleZeroToOneBiometrics
62
+ } = state.state;
63
+ return {
64
+ state: {
65
+ ...state.state,
66
+ exposureScaleZeroToOneBiometrics: exposureMap[exposureScaleZeroToOneBiometrics] || exposureScaleZeroToOneBiometrics
67
+ }
68
+ };
69
+ });
70
+ };
71
+ const changeExposureLifeCertificate = () => {
72
+ resetState();
73
+ const exposureMap = {
74
+ 0.12: 0.2,
75
+ 0.2: 0.35,
76
+ 0.3: 0.4,
77
+ 0.35: 0.5,
78
+ 0.4: 0.5,
79
+ 0.5: Platform.OS === "android" ? 0.65 : 0.6,
80
+ 0.65: 0.8,
81
+ 0.6: 0.7,
82
+ 0.7: 0.3,
83
+ 0.8: 0.12
84
+ };
85
+ slice.setState(state => {
86
+ const {
87
+ exposureScaleZeroToOneLifeCertificate
88
+ } = state.state;
89
+ return {
90
+ state: {
91
+ ...state.state,
92
+ exposureScaleZeroToOneLifeCertificate: exposureMap[exposureScaleZeroToOneLifeCertificate] || exposureScaleZeroToOneLifeCertificate
93
+ }
94
+ };
95
+ });
96
+ };
97
+ const handleStepHelp = () => {
98
+ slice.setState(state => {
99
+ const {
100
+ helpStep
101
+ } = state.state;
102
+ return {
103
+ state: {
104
+ ...state.state,
105
+ helpStep: helpStep === "introduction" ? "instruction" : "introduction"
106
+ }
107
+ };
108
+ });
109
+ };
110
+
111
+ // separar a lógica do store
112
+ const getConfigDefault = async operation => {
113
+ const configs = await getConfigOperationPoints();
114
+ const deviceModel = getModel();
115
+ const deviceType = Platform.OS;
116
+ const configsDeviceType = configs.filter(config => config.deviceType === deviceType && config.serviceType === operation);
117
+ const configDeviceModel = configsDeviceType.find(config => config.deviceModels.includes(deviceModel));
118
+ return configDeviceModel === undefined ? false : true;
119
+ };
120
+ const getConfigDefaultBiometrics = async () => {
121
+ const payload = await getConfigDefault("finger");
122
+ slice.setState(state => ({
123
+ state: {
124
+ ...state.state,
125
+ hasConfigOperationPointsBiometrics: payload ? "notEmpty" : "empty"
126
+ }
127
+ }));
128
+ resetState();
129
+ };
130
+ const getConfigDefaultLifeCertificate = async () => {
131
+ const payload = await getConfigDefault("liveness");
132
+ slice.setState(state => ({
133
+ state: {
134
+ ...state.state,
135
+ hasConfigOperationPointsLifeCertificate: payload ? "notEmpty" : "empty"
136
+ }
137
+ }));
138
+ resetState();
139
+ };
140
+
141
+ // separar a lógica do store
142
+ const sendImagesBase64 = async ({
143
+ exposureScaleZeroToOneBiometrics,
144
+ base64Images,
145
+ exposureMax,
146
+ exposureMin,
147
+ zoomMax,
148
+ zoomMin
149
+ }) => {
150
+ loadingPending();
151
+ const deviceModel = getModel();
152
+ const zoom = 3;
153
+ const zoomScaleZeroToOne = scale0to1(zoom, zoomMin, zoomMax);
154
+ const exposure = scale0to1Inverse(exposureScaleZeroToOneBiometrics, exposureMin, exposureMax);
155
+ const {
156
+ message,
157
+ status
158
+ } = await sendImagesForRegisterOperationPoints({
159
+ deviceModel,
160
+ images: base64Images,
161
+ exposure,
162
+ exposureMin,
163
+ exposureMax,
164
+ exposureScaleZeroToOneBiometrics,
165
+ zoom,
166
+ zoomMin,
167
+ zoomMax,
168
+ zoomScaleZeroToOne
169
+ });
170
+ slice.setState(state => ({
171
+ state: {
172
+ ...state.state,
173
+ loading: status === 200 ? "succeeded" : "failed",
174
+ status: status,
175
+ message: message
176
+ }
177
+ }));
178
+ };
179
+
180
+ // separar a lógica do store
181
+ const sendVideosLifeCertificate = async ({
182
+ exposureMax,
183
+ exposureMin,
184
+ videoPath,
185
+ exposureScaleZeroToOneLifeCertificate
186
+ }) => {
187
+ loadingPending();
188
+ const deviceModel = getModel();
189
+ const exposure = scale0to1Inverse(exposureScaleZeroToOneLifeCertificate, exposureMin, exposureMax);
190
+ const {
191
+ message,
192
+ status,
193
+ hasConfig
194
+ } = await sendVideoForRegisterOperationPoints({
195
+ deviceModel,
196
+ exposure,
197
+ videoPath,
198
+ exposureMax,
199
+ exposureMin,
200
+ exposureScaleZeroToOneLifeCertificate
201
+ });
202
+ slice.setState(state => ({
203
+ state: {
204
+ ...state.state,
205
+ registered: hasConfig ?? false,
206
+ loading: status === 200 && hasConfig ? "succeeded" : "failed",
207
+ status: status,
208
+ message: message
209
+ }
210
+ }));
211
+ };
212
+ const slice = create(() => ({
213
+ ...initialState,
214
+ dispatch: {
215
+ setImageBase64,
216
+ resetState,
217
+ changeExposureBiometrics,
218
+ changeExposureLifeCertificate,
219
+ handleStepHelp,
220
+ getConfigDefaultBiometrics,
221
+ getConfigDefaultLifeCertificate,
222
+ sendImagesBase64,
223
+ sendVideosLifeCertificate
224
+ }
225
+ }));
226
+ export default slice;
227
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["create","Platform","getConfigOperationPoints","sendImagesForRegisterOperationPoints","sendVideoForRegisterOperationPoints","getModel","scale0to1","scale0to1Inverse","initialState","state","loading","hasConfigOperationPointsBiometrics","hasConfigOperationPointsLifeCertificate","base64Images","exposureScaleZeroToOneBiometrics","OS","exposureScaleZeroToOneLifeCertificate","registered","helpStep","resetState","slice","setState","loadingPending","setImageBase64","imageBase64","changeExposureBiometrics","exposureMap","changeExposureLifeCertificate","handleStepHelp","getConfigDefault","operation","configs","deviceModel","deviceType","configsDeviceType","filter","config","serviceType","configDeviceModel","find","deviceModels","includes","undefined","getConfigDefaultBiometrics","payload","getConfigDefaultLifeCertificate","sendImagesBase64","exposureMax","exposureMin","zoomMax","zoomMin","zoom","zoomScaleZeroToOne","exposure","message","status","images","sendVideosLifeCertificate","videoPath","hasConfig","dispatch"],"sourceRoot":"../../../../../src","sources":["store/modules/operationPoints/slice.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,SAAS;AAShC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SACEC,wBAAwB,EACxBC,oCAAoC,EACpCC,mCAAmC,QAC9B,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,0BAA0B;AACnD,SAASC,SAAS,EAAEC,gBAAgB,QAAQ,gBAAgB;AAE5D,MAAMC,YAA0B,GAAG;EACjCC,KAAK,EAAE;IACLC,OAAO,EAAE,MAAM;IACfC,kCAAkC,EAAE,MAAM;IAC1CC,uCAAuC,EAAE,MAAM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C,MAAM;IAAEI;EAAU,CAAC,GAAG,MAAMvD,mCAAmC,CAAC;IAC/E4B,WAAW;IACXqB,QAAQ;IACRK,SAAS;IACTX,WAAW;IACXC,WAAW;IACXhC;EACF,CAAC,CAAC;EACFI,KAAK,CAACC,QAAQ,CAAEZ,KAAK,KAAM;IACzBA,KAAK,EAAE;MACL,GAAGA,KAAK,CAACA,KAAK;MACdQ,UAAU,EAAE0C,SAAS,IAAI,KAAK;MAC9BjD,OAAO,EAAE6C,MAAM,KAAK,GAAG,IAAII,SAAS,GAAG,WAAW,GAAG,QAAQ;MAC7DJ,MAAM,EAAEA,MAAM;MACdD,OAAO,EAAEA;IACX;EACF,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAMlC,KAAK,GAAGpB,MAAM,CAAuB,OAAO;EAChD,GAAGQ,YAAY;EACfoD,QAAQ,EAAE;IACRrC,cAAc;IACdJ,UAAU;IACVM,wBAAwB;IACxBE,6BAA6B;IAC7BC,cAAc;IACde,0BAA0B;IAC1BE,+BAA+B;IAC/BC,gBAAgB;IAChBW;EACF;AACF,CAAC,CAAC,CAAC;AAEH,eAAerC,KAAK"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["store/modules/operationPoints/types.ts"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import getConfigCamera from "./getConfigCamera";
2
- import { randomHeartRate, filteredFingers } from "./utils";
2
+ import { randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse } from "./utils";
3
3
  import { useIsForeground } from "./hooks/useIsForeground";
4
- export { getConfigCamera, useIsForeground, randomHeartRate, filteredFingers };
4
+ export { getConfigCamera, useIsForeground, randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse };
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getConfigCamera","randomHeartRate","filteredFingers","useIsForeground"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,OAAOA,eAAe,MAAM,mBAAmB;AAC/C,SAASC,eAAe,EAAEC,eAAe,QAAQ,SAAS;AAC1D,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASH,eAAe,EAAEG,eAAe,EAAEF,eAAe,EAAEC,eAAe"}
1
+ {"version":3,"names":["getConfigCamera","randomHeartRate","filteredFingers","scale0to1","scale0to1Inverse","useIsForeground"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,OAAOA,eAAe,MAAM,mBAAmB;AAC/C,SAASC,eAAe,EAAEC,eAAe,EAAEC,SAAS,EAAEC,gBAAgB,QAAQ,SAAS;AACvF,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASL,eAAe,EAAEK,eAAe,EAAEJ,eAAe,EAAEC,eAAe,EAAEC,SAAS,EAAEC,gBAAgB"}
@@ -4,5 +4,11 @@ const randomHeartRate = () => {
4
4
  const filteredFingers = (registeredFingers, items) => {
5
5
  return items.filter(item => !registeredFingers.includes(item.value));
6
6
  };
7
- export { randomHeartRate, filteredFingers };
7
+ const scale0to1 = (value, min, max) => {
8
+ return (value - min) / (max - min);
9
+ };
10
+ const scale0to1Inverse = (scaledValue, min, max) => {
11
+ return scaledValue * (max - min) + min;
12
+ };
13
+ export { randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse };
8
14
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["randomHeartRate","Math","floor","random","filteredFingers","registeredFingers","items","filter","item","includes","value"],"sourceRoot":"../../../src","sources":["utils/utils.ts"],"mappings":"AAEA,MAAMA,eAAe,GAAGA,CAAA,KAAc;EACpC,OAAOC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;AACvD,CAAC;AAED,MAAMC,eAAe,GAAGA,CACtBC,iBAA2B,EAC3BC,KAAyC,KACF;EACvC,OAAOA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAK,CAACH,iBAAiB,CAACI,QAAQ,CAACD,IAAI,CAACE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,SAASV,eAAe,EAAEI,eAAe"}
1
+ {"version":3,"names":["randomHeartRate","Math","floor","random","filteredFingers","registeredFingers","items","filter","item","includes","value","scale0to1","min","max","scale0to1Inverse","scaledValue"],"sourceRoot":"../../../src","sources":["utils/utils.ts"],"mappings":"AAEA,MAAMA,eAAe,GAAGA,CAAA,KAAc;EACpC,OAAOC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;AACvD,CAAC;AAED,MAAMC,eAAe,GAAGA,CACtBC,iBAA2B,EAC3BC,KAAyC,KACF;EACvC,OAAOA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAK,CAACH,iBAAiB,CAACI,QAAQ,CAACD,IAAI,CAACE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAMC,SAAS,GAAGA,CAACD,KAAa,EAAEE,GAAW,EAAEC,GAAW,KAAK;EAC7D,OAAO,CAACH,KAAK,GAAGE,GAAG,KAAKC,GAAG,GAAGD,GAAG,CAAC;AACpC,CAAC;AAED,MAAME,gBAAgB,GAAGA,CAACC,WAAmB,EAAEH,GAAW,EAAEC,GAAW,KAAK;EAC1E,OAAOE,WAAW,IAAIF,GAAG,GAAGD,GAAG,CAAC,GAAGA,GAAG;AACxC,CAAC;AAED,SAASZ,eAAe,EAAEI,eAAe,EAAEO,SAAS,EAAEG,gBAAgB"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TextStyle } from "react-native";
3
+ type Props = {
4
+ children: string | string[] | undefined;
5
+ bold?: boolean;
6
+ style?: TextStyle;
7
+ };
8
+ declare const HAText: ({ children, bold, style }: Props) => JSX.Element;
9
+ export default HAText;
10
+ //# sourceMappingURL=typograph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typograph.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typograph/typograph.tsx"],"names":[],"mappings":";AACA,OAAO,EAAQ,SAAS,EAAkB,MAAM,cAAc,CAAC;AAG/D,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,MAAM,8BAA+B,KAAK,gBAW/C,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -4,5 +4,7 @@ import RecordButton from "./recordButton/recordButton";
4
4
  import CaptureButton from "./CaptureButton";
5
5
  import CameraConfigInfo from "./CameraConfigInfo";
6
6
  import Gabarito from "./Gabarito";
7
- export { DeviceNotFound, ModalMessage, RecordButton, CaptureButton, CameraConfigInfo, Gabarito };
7
+ import HAText from "./Typograph/typograph";
8
+ import Icon from "./icon/icon";
9
+ export { DeviceNotFound, ModalMessage, RecordButton, CaptureButton, CameraConfigInfo, Gabarito, HAText, Icon };
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- import { LifeCertificate, FingerRegister, FingerAuth } from "./screens";
2
- export { LifeCertificate, FingerRegister, FingerAuth };
1
+ import { LifeCertificate, FingerRegister, FingerAuth, RegisterOperationPointsBiometrics, RegisterOperationPointsLifeCertificate } from "./screens";
2
+ export { LifeCertificate, FingerRegister, FingerAuth, RegisterOperationPointsBiometrics, RegisterOperationPointsLifeCertificate };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,iCAAiC,EACjC,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,iCAAiC,EACjC,sCAAsC,EACvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FingerAuth.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerAuth/FingerAuth.tsx"],"names":[],"mappings":";AAYA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,UAAU,gDAAiD,KAAK,gBA+FrE,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"FingerAuth.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerAuth/FingerAuth.tsx"],"names":[],"mappings":";AAYA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,UAAU,gDAAiD,KAAK,gBAmGrE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FingerRegister.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/FingerRegister.tsx"],"names":[],"mappings":";AA2BA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,mBAAmB,iFAAkF,KAAK,gBA8J/G,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"FingerRegister.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/FingerRegister.tsx"],"names":[],"mappings":";AA2BA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,mBAAmB,iFAAkF,KAAK,gBAkK/G,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LifeCertificate.d.ts","sourceRoot":"","sources":["../../../../../src/screens/LifeCertificate/LifeCertificate.tsx"],"names":[],"mappings":";AASA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,eAAe,0BAA2B,KAAK,gBAyIpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"LifeCertificate.d.ts","sourceRoot":"","sources":["../../../../../src/screens/LifeCertificate/LifeCertificate.tsx"],"names":[],"mappings":";AASA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,eAAe,0BAA2B,KAAK,gBA6IpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ onSuccess: () => void;
4
+ };
5
+ declare const RegisterOperationPointsBiometrics: ({ onSuccess }: Props) => JSX.Element;
6
+ export default RegisterOperationPointsBiometrics;
7
+ //# sourceMappingURL=registerOperationPointsBiometrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOperationPointsBiometrics.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/registerOperationPointsBiometrics.tsx"],"names":[],"mappings":";AAaA,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,iCAAiC,kBAAmB,KAAK,gBAoJ9D,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ onSuccess: () => void;
4
+ };
5
+ declare const RegisterOperationPointsLifeCertificate: ({ onSuccess }: Props) => JSX.Element;
6
+ export default RegisterOperationPointsLifeCertificate;
7
+ //# sourceMappingURL=registerOperationPointsLifeCertificate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerOperationPointsLifeCertificate.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/registerOperationPointsLifeCertificate.tsx"],"names":[],"mappings":";AASA,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,sCAAsC,kBAAmB,KAAK,gBA+JnE,CAAC;AAEF,eAAe,sCAAsC,CAAC"}
@@ -0,0 +1,40 @@
1
+ export declare const styles: {
2
+ containerCamera: {
3
+ flex: number;
4
+ justifyContent: "center";
5
+ };
6
+ camera: {
7
+ flex: number;
8
+ };
9
+ box: {
10
+ flexDirection: "row";
11
+ height: number;
12
+ justifyContent: "center";
13
+ alignItems: "center";
14
+ borderRadius: number;
15
+ backgroundColor: string;
16
+ marginVertical: number;
17
+ };
18
+ text: {
19
+ position: "absolute";
20
+ color: string;
21
+ };
22
+ containerCapture: {
23
+ position: "absolute";
24
+ width: "100%";
25
+ marginBottom: "30%";
26
+ alignItems: "center";
27
+ };
28
+ containerModalLoading: {
29
+ flex: number;
30
+ justifyContent: "center";
31
+ alignItems: "center";
32
+ backgroundColor: string;
33
+ };
34
+ containerSlider: {
35
+ height: number;
36
+ padding: number;
37
+ gap: number;
38
+ };
39
+ };
40
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCjB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import FingerRegister from "./FingerRegister/FingerRegister";
2
2
  import LifeCertificate from "./LifeCertificate/LifeCertificate";
3
3
  import FingerAuth from "./FingerAuth/FingerAuth";
4
- export { FingerRegister, LifeCertificate, FingerAuth };
4
+ import RegisterOperationPointsBiometrics from "./RegisterOperations/registerOperationPointsBiometrics";
5
+ import RegisterOperationPointsLifeCertificate from "./RegisterOperations/registerOperationPointsLifeCertificate";
6
+ export { FingerRegister, LifeCertificate, FingerAuth, RegisterOperationPointsBiometrics, RegisterOperationPointsLifeCertificate };
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,iCAAiC,MAAM,wDAAwD,CAAC;AACvG,OAAO,sCAAsC,MAAM,6DAA6D,CAAC;AAEjH,OAAO,EACL,cAAc,EACd,eAAe,EACf,UAAU,EACV,iCAAiC,EACjC,sCAAsC,EACvC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { lifeCertificate, getConfigsApi, registerFingerImages, authFinger } from "./services";
1
+ import { lifeCertificate, getConfigsApi, registerFingerImages, authFinger, getConfigOperationPoints, sendImagesForRegisterOperationPoints, sendVideoForRegisterOperationPoints } from "./services";
2
2
  export declare const login: (cpf: any, senha: any) => Promise<any>;
3
3
  export declare const cadastro: (cpf: string, name: string, senha: string) => Promise<any>;
4
4
  export declare const verificaCPF: (cpf: any) => Promise<any>;
5
- export { lifeCertificate, getConfigsApi, registerFingerImages, authFinger };
5
+ export { lifeCertificate, getConfigsApi, registerFingerImages, authFinger, getConfigOperationPoints, sendImagesForRegisterOperationPoints, sendVideoForRegisterOperationPoints };
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAW9F,eAAO,MAAM,KAAK,QAAe,GAAG,SAAS,GAAG,iBAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAe,MAAM,QAAQ,MAAM,SAAS,MAAM,iBAQtE,CAAC;AAEF,eAAO,MAAM,WAAW,QAAe,GAAG,iBAQzC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,oBAAoB,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,oCAAoC,EACpC,mCAAmC,EACpC,MAAM,YAAY,CAAC;AAWpB,eAAO,MAAM,KAAK,QAAe,GAAG,SAAS,GAAG,iBAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAe,MAAM,QAAQ,MAAM,SAAS,MAAM,iBAQtE,CAAC;AAEF,eAAO,MAAM,WAAW,QAAe,GAAG,iBAQzC,CAAC;AAEF,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,oCAAoC,EACpC,mCAAmC,EACpC,CAAC"}
@@ -1,6 +1,9 @@
1
- import type { GetConfigApiResponse, LifeCertificateResponse, LifeCertificateType, RegisterFingerResponse, RegisterFingerImagesType, AuthFingerType, AuthFingerResponse } from "./types";
1
+ import type { GetConfigApiResponse, LifeCertificateResponse, LifeCertificateType, RegisterFingerResponse, RegisterFingerImagesType, AuthFingerType, AuthFingerResponse, SendImagesForRegisterOperationPointsType, SendImagesForRegisterOperationPointsResponse, SendVideoForRegisterOperationPointsType, SendVideoForRegisterOperationPointsResponse } from "./types";
2
2
  export declare const getConfigsApi: () => Promise<GetConfigApiResponse>;
3
3
  export declare const registerFingerImages: ({ UID, images, finger, exposure, zoom }: RegisterFingerImagesType) => Promise<RegisterFingerResponse>;
4
4
  export declare const authFinger: ({ UID, image, exposure, zoom }: AuthFingerType) => Promise<AuthFingerResponse>;
5
5
  export declare const lifeCertificate: ({ videoPath, exposure, UID }: LifeCertificateType) => Promise<LifeCertificateResponse>;
6
+ export declare const getConfigOperationPoints: () => Promise<GetConfigApiResponse>;
7
+ export declare const sendImagesForRegisterOperationPoints: ({ deviceModel, exposure, exposureMax, exposureMin, exposureScaleZeroToOneBiometrics, images, zoom, zoomMax, zoomMin, zoomScaleZeroToOne }: SendImagesForRegisterOperationPointsType) => Promise<SendImagesForRegisterOperationPointsResponse>;
8
+ export declare const sendVideoForRegisterOperationPoints: ({ deviceModel, exposure, exposureMax, exposureMin, exposureScaleZeroToOneLifeCertificate, videoPath }: SendVideoForRegisterOperationPointsType) => Promise<SendVideoForRegisterOperationPointsResponse>;
6
9
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/services/services.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,aAAa,QAAa,QAAQ,oBAAoB,CAQlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,4CAM9B,wBAAwB,KAAG,QAAQ,sBAAsB,CA8B3D,CAAC;AAEF,eAAO,MAAM,UAAU,mCAA0C,cAAc,KAAG,QAAQ,kBAAkB,CAwB3G,CAAC;AAEF,eAAO,MAAM,eAAe,iCAIzB,mBAAmB,KAAG,QAAQ,uBAAuB,CAmCvD,CAAC"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/services/services.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EAClB,wCAAwC,EACxC,4CAA4C,EAC5C,uCAAuC,EACvC,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,aAAa,QAAa,QAAQ,oBAAoB,CAQlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,4CAM9B,wBAAwB,KAAG,QAAQ,sBAAsB,CA8B3D,CAAC;AAEF,eAAO,MAAM,UAAU,mCAA0C,cAAc,KAAG,QAAQ,kBAAkB,CAwB3G,CAAC;AAEF,eAAO,MAAM,eAAe,iCAIzB,mBAAmB,KAAG,QAAQ,uBAAuB,CAmCvD,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAa,QAAQ,oBAAoB,CAQ7E,CAAC;AAEF,eAAO,MAAM,oCAAoC,8IAW9C,wCAAwC,KAAG,QAAQ,4CAA4C,CAkCjG,CAAC;AAEF,eAAO,MAAM,mCAAmC,0GAO7C,uCAAuC,KAAG,QAAQ,2CAA2C,CA0C/F,CAAC"}
@@ -51,4 +51,33 @@ export type LifeCertificateResponse = {
51
51
  bpm?: number;
52
52
  message?: string;
53
53
  };
54
+ export type SendImagesForRegisterOperationPointsType = {
55
+ deviceModel: string;
56
+ images: string[];
57
+ exposure: number;
58
+ exposureMin: number;
59
+ exposureMax: number;
60
+ exposureScaleZeroToOneBiometrics: number;
61
+ zoom: number;
62
+ zoomMax: number;
63
+ zoomMin: number;
64
+ zoomScaleZeroToOne: number;
65
+ };
66
+ export type SendImagesForRegisterOperationPointsResponse = {
67
+ status: number;
68
+ message: string;
69
+ };
70
+ export type SendVideoForRegisterOperationPointsType = {
71
+ deviceModel: string;
72
+ videoPath: string;
73
+ exposure: number;
74
+ exposureScaleZeroToOneLifeCertificate: number;
75
+ exposureMin: number;
76
+ exposureMax: number;
77
+ };
78
+ export type SendVideoForRegisterOperationPointsResponse = {
79
+ status: number;
80
+ message: string;
81
+ hasConfig?: boolean;
82
+ };
54
83
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/services/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB,EAAE,CAAC;AAEJ,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AAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC,EAAE,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC,EAAE,MAAM,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { useDispatch, useSelector } from "./selectors";
2
+ export { useDispatch, useSelector };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const useSelector: () => {
2
+ exposureScaleZeroToOneBiometrics: 0.5 | 0.4 | 0.2 | 0.12 | 0.35 | 0.65 | 0.8 | 0.3 | 0.6 | 0.7;
3
+ exposureScaleZeroToOneLifeCertificate: 0.5 | 0.4 | 0.2 | 0.12 | 0.35 | 0.65 | 0.8 | 0.3 | 0.6 | 0.7;
4
+ loading: "idle" | "pending" | "succeeded" | "failed";
5
+ hasConfigOperationPointsBiometrics: "empty" | "notEmpty" | "idle";
6
+ hasConfigOperationPointsLifeCertificate: "empty" | "notEmpty" | "idle";
7
+ base64Images: string[];
8
+ status?: number | undefined;
9
+ message?: string | undefined;
10
+ registered: boolean;
11
+ helpStep: "introduction" | "instruction";
12
+ };
13
+ export declare const useDispatch: () => {
14
+ setImageBase64: (imageBase64: string) => void;
15
+ resetState: () => void;
16
+ changeExposureBiometrics: () => void;
17
+ changeExposureLifeCertificate: () => void;
18
+ handleStepHelp: () => void;
19
+ getConfigDefaultBiometrics: () => void;
20
+ getConfigDefaultLifeCertificate: () => void;
21
+ sendImagesBase64: (payload: import("./types").SendImagesBase64Payload) => void;
22
+ sendVideosLifeCertificate: (payload: import("./types").sendVideosLifeCertificatePayload) => void;
23
+ };
24
+ //# sourceMappingURL=selectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/selectors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;CAAqB,CAAC;AAC9C,eAAO,MAAM,WAAW;;;;;;;;;;CAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { OperationPointsState } from "./types";
2
+ declare const slice: import("zustand").UseBoundStore<import("zustand").StoreApi<OperationPointsState>>;
3
+ export default slice;
4
+ //# sourceMappingURL=slice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/slice.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAIrB,MAAM,SAAS,CAAC;AAwNjB,QAAA,MAAM,KAAK,mFAaR,CAAC;AAEJ,eAAe,KAAK,CAAC"}
@@ -0,0 +1,51 @@
1
+ type ScaleZeroToOneAndroid = 0.12 | 0.2 | 0.35 | 0.5 | 0.65 | 0.8;
2
+ type ScaleZeroToOneIOS = 0.3 | 0.4 | 0.5 | 0.6 | 0.7;
3
+ type StatusConfigOperationPoints = "empty" | "notEmpty" | "idle";
4
+ type State = {
5
+ exposureScaleZeroToOneBiometrics: ScaleZeroToOneIOS | ScaleZeroToOneAndroid;
6
+ exposureScaleZeroToOneLifeCertificate: ScaleZeroToOneIOS | ScaleZeroToOneAndroid;
7
+ loading: "idle" | "pending" | "succeeded" | "failed";
8
+ hasConfigOperationPointsBiometrics: StatusConfigOperationPoints;
9
+ hasConfigOperationPointsLifeCertificate: StatusConfigOperationPoints;
10
+ base64Images: string[];
11
+ status?: number;
12
+ message?: string;
13
+ registered: boolean;
14
+ helpStep: "introduction" | "instruction";
15
+ };
16
+ type Dispatch = {
17
+ setImageBase64: (imageBase64: SetImageBase64Payload) => void;
18
+ resetState: () => void;
19
+ changeExposureBiometrics: () => void;
20
+ changeExposureLifeCertificate: () => void;
21
+ handleStepHelp: () => void;
22
+ getConfigDefaultBiometrics: () => void;
23
+ getConfigDefaultLifeCertificate: () => void;
24
+ sendImagesBase64: (payload: SendImagesBase64Payload) => void;
25
+ sendVideosLifeCertificate: (payload: sendVideosLifeCertificatePayload) => void;
26
+ };
27
+ export type InitialState = {
28
+ state: State;
29
+ };
30
+ export type OperationPointsState = {
31
+ state: State;
32
+ dispatch: Dispatch;
33
+ };
34
+ export type ExposureMapOperationPoints = Record<State["exposureScaleZeroToOneBiometrics"], State["exposureScaleZeroToOneBiometrics"]>;
35
+ export type SetImageBase64Payload = string;
36
+ export type SendImagesBase64Payload = {
37
+ base64Images: string[];
38
+ exposureScaleZeroToOneBiometrics: State["exposureScaleZeroToOneBiometrics"];
39
+ exposureMin: number;
40
+ exposureMax: number;
41
+ zoomMin: number;
42
+ zoomMax: number;
43
+ };
44
+ export type sendVideosLifeCertificatePayload = {
45
+ exposureMin: number;
46
+ exposureMax: number;
47
+ videoPath: string;
48
+ exposureScaleZeroToOneLifeCertificate: State["exposureScaleZeroToOneLifeCertificate"];
49
+ };
50
+ export {};
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/types.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;AAClE,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAErD,KAAK,2BAA2B,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAEjE,KAAK,KAAK,GAAG;IACX,gCAAgC,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IAC5E,qCAAqC,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IACjF,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACrD,kCAAkC,EAAE,2BAA2B,CAAC;IAChE,uCAAuC,EAAE,2BAA2B,CAAC;IACrE,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,cAAc,GAAG,aAAa,CAAC;CAC1C,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,cAAc,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7D,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,6BAA6B,EAAE,MAAM,IAAI,CAAC;IAC1C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,+BAA+B,EAAE,MAAM,IAAI,CAAC;IAC5C,gBAAgB,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC7D,yBAAyB,EAAE,CAAC,OAAO,EAAE,gCAAgC,KAAK,IAAI,CAAC;CAChF,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAC7C,KAAK,CAAC,kCAAkC,CAAC,EACzC,KAAK,CAAC,kCAAkC,CAAC,CAC1C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gCAAgC,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC,EAAE,KAAK,CAAC,uCAAuC,CAAC,CAAC;CACvF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import getConfigCamera from "./getConfigCamera";
2
- import { randomHeartRate, filteredFingers } from "./utils";
2
+ import { randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse } from "./utils";
3
3
  import { useIsForeground } from "./hooks/useIsForeground";
4
- export { getConfigCamera, useIsForeground, randomHeartRate, filteredFingers };
4
+ export { getConfigCamera, useIsForeground, randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse };
5
5
  //# sourceMappingURL=index.d.ts.map