@regulaforensics/face-sdk 7.2.404-beta → 7.2.408-rc

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.
Files changed (129) hide show
  1. package/RNFaceSDK.podspec +2 -2
  2. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +0 -2
  3. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +0 -18
  4. package/examples/capacitor/package.json +2 -2
  5. package/examples/cordova/package.json +2 -2
  6. package/examples/ionic/package.json +2 -2
  7. package/examples/react_native/package.json +2 -2
  8. package/ios/RFSWJSONConstructor.h +1 -0
  9. package/ios/RFSWJSONConstructor.m +14 -5
  10. package/ios/RFSWMain.m +0 -30
  11. package/package.json +1 -1
  12. package/plugin.xml +2 -2
  13. package/www/capacitor/customization/customization_fonts.js +1 -1
  14. package/www/capacitor/customization/customization_images.js +1 -1
  15. package/www/capacitor/customization/font.js +0 -8
  16. package/www/capacitor/detect_faces/detect_face_result.js +0 -12
  17. package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -9
  18. package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -7
  19. package/www/capacitor/detect_faces/detect_faces_config.js +0 -34
  20. package/www/capacitor/detect_faces/detect_faces_exception.js +0 -8
  21. package/www/capacitor/detect_faces/detect_faces_request.js +0 -22
  22. package/www/capacitor/detect_faces/detect_faces_response.js +0 -9
  23. package/www/capacitor/face_capture/face_capture_config.js +0 -37
  24. package/www/capacitor/face_capture/face_capture_exception.js +0 -7
  25. package/www/capacitor/face_capture/face_capture_image.js +0 -8
  26. package/www/capacitor/face_capture/face_capture_response.js +0 -7
  27. package/www/capacitor/image_params/output_image_crop.js +0 -23
  28. package/www/capacitor/image_params/output_image_params.js +0 -19
  29. package/www/capacitor/image_params/point.js +0 -7
  30. package/www/capacitor/image_params/rect.js +0 -9
  31. package/www/capacitor/image_params/size.js +0 -12
  32. package/www/capacitor/image_quality/image_quality_characteristic.js +0 -22
  33. package/www/capacitor/image_quality/image_quality_range.js +0 -7
  34. package/www/capacitor/image_quality/image_quality_result.js +0 -10
  35. package/www/capacitor/index.js +0 -48
  36. package/www/capacitor/init/face_sdk_version.js +0 -8
  37. package/www/capacitor/init/init_config.js +0 -19
  38. package/www/capacitor/init/init_exception.js +0 -8
  39. package/www/capacitor/init/license_exception.js +0 -7
  40. package/www/capacitor/internal/bridge.js +1 -20
  41. package/www/capacitor/liveness/liveness_backend_exception.js +0 -7
  42. package/www/capacitor/liveness/liveness_config.js +0 -43
  43. package/www/capacitor/liveness/liveness_exception.js +0 -8
  44. package/www/capacitor/liveness/liveness_notification.js +0 -7
  45. package/www/capacitor/liveness/liveness_response.js +0 -11
  46. package/www/capacitor/match_faces/compared_face.js +0 -9
  47. package/www/capacitor/match_faces/compared_faces_pair.js +0 -10
  48. package/www/capacitor/match_faces/compared_faces_split.js +0 -7
  49. package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -7
  50. package/www/capacitor/match_faces/match_faces_config.js +0 -19
  51. package/www/capacitor/match_faces/match_faces_detection.js +0 -9
  52. package/www/capacitor/match_faces/match_faces_detection_face.js +0 -11
  53. package/www/capacitor/match_faces/match_faces_exception.js +0 -8
  54. package/www/capacitor/match_faces/match_faces_image.js +0 -9
  55. package/www/capacitor/match_faces/match_faces_request.js +0 -27
  56. package/www/capacitor/match_faces/match_faces_response.js +0 -9
  57. package/www/capacitor/person_database/edit_group_persons_request.js +0 -15
  58. package/www/capacitor/person_database/image_upload.js +0 -17
  59. package/www/capacitor/person_database/pageable_item_list.js +0 -8
  60. package/www/capacitor/person_database/person.js +0 -13
  61. package/www/capacitor/person_database/person_group.js +0 -11
  62. package/www/capacitor/person_database/person_image.js +0 -13
  63. package/www/capacitor/person_database/search_person.js +0 -14
  64. package/www/capacitor/person_database/search_person_detection.js +0 -9
  65. package/www/capacitor/person_database/search_person_image.js +0 -15
  66. package/www/capacitor/person_database/search_person_request.js +0 -29
  67. package/www/cordova.js +6 -753
  68. package/www/react-native/customization/customization_fonts.js +1 -1
  69. package/www/react-native/customization/customization_images.js +1 -1
  70. package/www/react-native/customization/font.js +0 -8
  71. package/www/react-native/detect_faces/detect_face_result.js +0 -12
  72. package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -9
  73. package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -7
  74. package/www/react-native/detect_faces/detect_faces_config.js +0 -34
  75. package/www/react-native/detect_faces/detect_faces_exception.js +0 -8
  76. package/www/react-native/detect_faces/detect_faces_request.js +0 -22
  77. package/www/react-native/detect_faces/detect_faces_response.js +0 -9
  78. package/www/react-native/face_capture/face_capture_config.js +0 -37
  79. package/www/react-native/face_capture/face_capture_exception.js +0 -7
  80. package/www/react-native/face_capture/face_capture_image.js +0 -8
  81. package/www/react-native/face_capture/face_capture_response.js +0 -7
  82. package/www/react-native/image_params/output_image_crop.js +0 -23
  83. package/www/react-native/image_params/output_image_params.js +0 -19
  84. package/www/react-native/image_params/point.js +0 -7
  85. package/www/react-native/image_params/rect.js +0 -9
  86. package/www/react-native/image_params/size.js +0 -12
  87. package/www/react-native/image_quality/image_quality_characteristic.js +0 -22
  88. package/www/react-native/image_quality/image_quality_range.js +0 -7
  89. package/www/react-native/image_quality/image_quality_result.js +0 -10
  90. package/www/react-native/index.js +0 -48
  91. package/www/react-native/init/face_sdk_version.js +0 -8
  92. package/www/react-native/init/init_config.js +0 -19
  93. package/www/react-native/init/init_exception.js +0 -8
  94. package/www/react-native/init/license_exception.js +0 -7
  95. package/www/react-native/internal/bridge.js +1 -20
  96. package/www/react-native/liveness/liveness_backend_exception.js +0 -7
  97. package/www/react-native/liveness/liveness_config.js +0 -43
  98. package/www/react-native/liveness/liveness_exception.js +0 -8
  99. package/www/react-native/liveness/liveness_notification.js +0 -7
  100. package/www/react-native/liveness/liveness_response.js +0 -11
  101. package/www/react-native/match_faces/compared_face.js +0 -9
  102. package/www/react-native/match_faces/compared_faces_pair.js +0 -10
  103. package/www/react-native/match_faces/compared_faces_split.js +0 -7
  104. package/www/react-native/match_faces/match_faces_backend_exception.js +0 -7
  105. package/www/react-native/match_faces/match_faces_config.js +0 -19
  106. package/www/react-native/match_faces/match_faces_detection.js +0 -9
  107. package/www/react-native/match_faces/match_faces_detection_face.js +0 -11
  108. package/www/react-native/match_faces/match_faces_exception.js +0 -8
  109. package/www/react-native/match_faces/match_faces_image.js +0 -9
  110. package/www/react-native/match_faces/match_faces_request.js +0 -27
  111. package/www/react-native/match_faces/match_faces_response.js +0 -9
  112. package/www/react-native/person_database/edit_group_persons_request.js +0 -15
  113. package/www/react-native/person_database/image_upload.js +0 -17
  114. package/www/react-native/person_database/pageable_item_list.js +0 -8
  115. package/www/react-native/person_database/person.js +0 -13
  116. package/www/react-native/person_database/person_group.js +0 -11
  117. package/www/react-native/person_database/person_image.js +0 -13
  118. package/www/react-native/person_database/search_person.js +0 -14
  119. package/www/react-native/person_database/search_person_detection.js +0 -9
  120. package/www/react-native/person_database/search_person_image.js +0 -15
  121. package/www/react-native/person_database/search_person_request.js +0 -29
  122. package/www/types/index.d.ts +0 -12
  123. package/www/types/match_faces/match_faces_config.d.ts +0 -2
  124. package/www/types/person_database/search_person_request.d.ts +0 -4
  125. package/test/json.tsx +0 -375
  126. package/test/package-lock.json +0 -584
  127. package/test/package.json +0 -9
  128. package/test/test.tsx +0 -61
  129. package/test/utils.tsx +0 -38
package/test/utils.tsx DELETED
@@ -1,38 +0,0 @@
1
- import test from 'node:test'
2
- import * as assert from 'assert'
3
-
4
- export function compare(
5
- name: string,
6
- json: Record<string, any>,
7
- fromJson: (json: Record<string, any>) => any,
8
- skip?: string[],
9
- ) {
10
- test(name, () => {
11
- var actual = removeUndefineds(fromJson(json).toJson())
12
- if (skip) for (const item of skip) delete actual[item]
13
- assert.deepEqual(actual, json)
14
- })
15
- }
16
-
17
- function removeUndefineds(input) {
18
- const isPlainObject = obj => Object.prototype.toString.call(obj) === '[object Object]';
19
-
20
- if (input === undefined) return undefined;
21
- if (input === null || typeof input !== 'object') return input;
22
-
23
- if (Array.isArray(input)) {
24
- return input
25
- .map(item => removeUndefineds(item))
26
- .filter(item => item !== undefined);
27
- }
28
-
29
- if (!isPlainObject(input)) return input;
30
-
31
- const result = {};
32
- for (const [key, value] of Object.entries(input)) {
33
- if (value === undefined) continue;
34
- const cleaned = removeUndefineds(value);
35
- if (cleaned !== undefined) result[key] = cleaned;
36
- }
37
- return result;
38
- }