@regulaforensics/face-sdk 7.2.429-beta → 7.2.433-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 (173) hide show
  1. package/README.md +3 -2
  2. package/RNFaceSDK.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +0 -2
  6. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +0 -18
  7. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +2 -2
  8. package/examples/capacitor/index.html +7 -2
  9. package/examples/capacitor/package-lock.json +162 -12
  10. package/examples/capacitor/package.json +4 -4
  11. package/examples/capacitor/scripts/setup.sh +2 -4
  12. package/examples/capacitor/src/main.css +6 -60
  13. package/examples/capacitor/src/main.html +1 -1
  14. package/examples/capacitor/src/main.tsx +87 -51
  15. package/examples/cordova/.vscode/launch.json +28 -0
  16. package/examples/cordova/README.md +25 -0
  17. package/examples/cordova/config.xml +26 -0
  18. package/examples/cordova/package-lock.json +1327 -0
  19. package/examples/cordova/package.json +30 -0
  20. package/examples/cordova/scripts/android.sh +8 -0
  21. package/examples/cordova/scripts/ios.sh +8 -0
  22. package/examples/cordova/scripts/setup.sh +8 -0
  23. package/examples/cordova/www/images/logo.png +0 -0
  24. package/examples/cordova/www/index.html +21 -0
  25. package/examples/cordova/www/src/main.css +83 -0
  26. package/examples/cordova/www/src/main.html +25 -0
  27. package/examples/cordova/www/src/main.js +152 -0
  28. package/examples/ionic/README.md +1 -1
  29. package/examples/ionic/angular.json +3 -3
  30. package/examples/ionic/config.xml +2 -4
  31. package/examples/ionic/index.ts +17 -0
  32. package/examples/ionic/package-lock.json +68 -42
  33. package/examples/ionic/package.json +2 -2
  34. package/examples/ionic/src/images/portrait.png +0 -0
  35. package/examples/ionic/src/main.css +6 -60
  36. package/examples/ionic/src/main.html +1 -1
  37. package/examples/ionic/src/{main.tsx → main.ts} +97 -52
  38. package/examples/ionic/tsconfig.json +2 -3
  39. package/examples/react_native/README.md +0 -1
  40. package/examples/react_native/app.config.ts +1 -1
  41. package/examples/react_native/index.tsx +7 -49
  42. package/examples/react_native/package-lock.json +597 -594
  43. package/examples/react_native/package.json +9 -9
  44. package/examples/react_native/src/main.css +6 -60
  45. package/examples/react_native/src/main.html +1 -1
  46. package/examples/react_native/src/main.tsx +77 -54
  47. package/ios/RFSWJSONConstructor.h +1 -0
  48. package/ios/RFSWJSONConstructor.m +14 -5
  49. package/ios/RFSWMain.m +0 -30
  50. package/package.json +1 -1
  51. package/plugin.xml +2 -2
  52. package/www/capacitor/customization/customization_fonts.js +1 -1
  53. package/www/capacitor/customization/customization_images.js +1 -1
  54. package/www/capacitor/customization/font.js +0 -8
  55. package/www/capacitor/detect_faces/detect_face_result.js +0 -12
  56. package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -9
  57. package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -7
  58. package/www/capacitor/detect_faces/detect_faces_config.js +0 -34
  59. package/www/capacitor/detect_faces/detect_faces_exception.js +0 -8
  60. package/www/capacitor/detect_faces/detect_faces_request.js +0 -22
  61. package/www/capacitor/detect_faces/detect_faces_response.js +0 -9
  62. package/www/capacitor/face_capture/face_capture_config.js +0 -37
  63. package/www/capacitor/face_capture/face_capture_exception.js +0 -7
  64. package/www/capacitor/face_capture/face_capture_image.js +0 -8
  65. package/www/capacitor/face_capture/face_capture_response.js +0 -7
  66. package/www/capacitor/image_params/output_image_crop.js +0 -23
  67. package/www/capacitor/image_params/output_image_params.js +0 -19
  68. package/www/capacitor/image_params/point.js +0 -7
  69. package/www/capacitor/image_params/rect.js +0 -9
  70. package/www/capacitor/image_params/size.js +0 -12
  71. package/www/capacitor/image_quality/image_quality_characteristic.js +0 -22
  72. package/www/capacitor/image_quality/image_quality_range.js +0 -7
  73. package/www/capacitor/image_quality/image_quality_result.js +0 -10
  74. package/www/capacitor/index.js +0 -48
  75. package/www/capacitor/init/face_sdk_version.js +0 -8
  76. package/www/capacitor/init/init_config.js +0 -19
  77. package/www/capacitor/init/init_exception.js +0 -8
  78. package/www/capacitor/init/license_exception.js +0 -7
  79. package/www/capacitor/internal/bridge.js +1 -20
  80. package/www/capacitor/liveness/liveness_backend_exception.js +0 -7
  81. package/www/capacitor/liveness/liveness_config.js +0 -43
  82. package/www/capacitor/liveness/liveness_exception.js +0 -8
  83. package/www/capacitor/liveness/liveness_notification.js +0 -7
  84. package/www/capacitor/liveness/liveness_response.js +0 -11
  85. package/www/capacitor/match_faces/compared_face.js +0 -9
  86. package/www/capacitor/match_faces/compared_faces_pair.js +0 -10
  87. package/www/capacitor/match_faces/compared_faces_split.js +0 -7
  88. package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -7
  89. package/www/capacitor/match_faces/match_faces_config.js +0 -19
  90. package/www/capacitor/match_faces/match_faces_detection.js +0 -9
  91. package/www/capacitor/match_faces/match_faces_detection_face.js +0 -11
  92. package/www/capacitor/match_faces/match_faces_exception.js +0 -8
  93. package/www/capacitor/match_faces/match_faces_image.js +0 -9
  94. package/www/capacitor/match_faces/match_faces_request.js +0 -27
  95. package/www/capacitor/match_faces/match_faces_response.js +0 -9
  96. package/www/capacitor/person_database/edit_group_persons_request.js +0 -15
  97. package/www/capacitor/person_database/image_upload.js +0 -17
  98. package/www/capacitor/person_database/pageable_item_list.js +0 -8
  99. package/www/capacitor/person_database/person.js +0 -13
  100. package/www/capacitor/person_database/person_group.js +0 -11
  101. package/www/capacitor/person_database/person_image.js +0 -13
  102. package/www/capacitor/person_database/search_person.js +0 -14
  103. package/www/capacitor/person_database/search_person_detection.js +0 -9
  104. package/www/capacitor/person_database/search_person_image.js +0 -15
  105. package/www/capacitor/person_database/search_person_request.js +0 -29
  106. package/www/cordova.js +6 -753
  107. package/www/react-native/customization/customization_fonts.js +1 -1
  108. package/www/react-native/customization/customization_images.js +1 -1
  109. package/www/react-native/customization/font.js +0 -8
  110. package/www/react-native/detect_faces/detect_face_result.js +0 -12
  111. package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -9
  112. package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -7
  113. package/www/react-native/detect_faces/detect_faces_config.js +0 -34
  114. package/www/react-native/detect_faces/detect_faces_exception.js +0 -8
  115. package/www/react-native/detect_faces/detect_faces_request.js +0 -22
  116. package/www/react-native/detect_faces/detect_faces_response.js +0 -9
  117. package/www/react-native/face_capture/face_capture_config.js +0 -37
  118. package/www/react-native/face_capture/face_capture_exception.js +0 -7
  119. package/www/react-native/face_capture/face_capture_image.js +0 -8
  120. package/www/react-native/face_capture/face_capture_response.js +0 -7
  121. package/www/react-native/image_params/output_image_crop.js +0 -23
  122. package/www/react-native/image_params/output_image_params.js +0 -19
  123. package/www/react-native/image_params/point.js +0 -7
  124. package/www/react-native/image_params/rect.js +0 -9
  125. package/www/react-native/image_params/size.js +0 -12
  126. package/www/react-native/image_quality/image_quality_characteristic.js +0 -22
  127. package/www/react-native/image_quality/image_quality_range.js +0 -7
  128. package/www/react-native/image_quality/image_quality_result.js +0 -10
  129. package/www/react-native/index.js +0 -48
  130. package/www/react-native/init/face_sdk_version.js +0 -8
  131. package/www/react-native/init/init_config.js +0 -19
  132. package/www/react-native/init/init_exception.js +0 -8
  133. package/www/react-native/init/license_exception.js +0 -7
  134. package/www/react-native/internal/bridge.js +1 -20
  135. package/www/react-native/liveness/liveness_backend_exception.js +0 -7
  136. package/www/react-native/liveness/liveness_config.js +0 -43
  137. package/www/react-native/liveness/liveness_exception.js +0 -8
  138. package/www/react-native/liveness/liveness_notification.js +0 -7
  139. package/www/react-native/liveness/liveness_response.js +0 -11
  140. package/www/react-native/match_faces/compared_face.js +0 -9
  141. package/www/react-native/match_faces/compared_faces_pair.js +0 -10
  142. package/www/react-native/match_faces/compared_faces_split.js +0 -7
  143. package/www/react-native/match_faces/match_faces_backend_exception.js +0 -7
  144. package/www/react-native/match_faces/match_faces_config.js +0 -19
  145. package/www/react-native/match_faces/match_faces_detection.js +0 -9
  146. package/www/react-native/match_faces/match_faces_detection_face.js +0 -11
  147. package/www/react-native/match_faces/match_faces_exception.js +0 -8
  148. package/www/react-native/match_faces/match_faces_image.js +0 -9
  149. package/www/react-native/match_faces/match_faces_request.js +0 -27
  150. package/www/react-native/match_faces/match_faces_response.js +0 -9
  151. package/www/react-native/person_database/edit_group_persons_request.js +0 -15
  152. package/www/react-native/person_database/image_upload.js +0 -17
  153. package/www/react-native/person_database/pageable_item_list.js +0 -8
  154. package/www/react-native/person_database/person.js +0 -13
  155. package/www/react-native/person_database/person_group.js +0 -11
  156. package/www/react-native/person_database/person_image.js +0 -13
  157. package/www/react-native/person_database/search_person.js +0 -14
  158. package/www/react-native/person_database/search_person_detection.js +0 -9
  159. package/www/react-native/person_database/search_person_image.js +0 -15
  160. package/www/react-native/person_database/search_person_request.js +0 -29
  161. package/www/types/index.d.ts +0 -12
  162. package/www/types/match_faces/match_faces_config.d.ts +0 -2
  163. package/www/types/person_database/search_person_request.d.ts +0 -4
  164. package/examples/capacitor/index.tsx +0 -53
  165. package/examples/ionic/index.tsx +0 -68
  166. package/test/json.tsx +0 -375
  167. package/test/package-lock.json +0 -584
  168. package/test/package.json +0 -9
  169. package/test/test.tsx +0 -61
  170. package/test/utils.tsx +0 -38
  171. /package/examples/{ionic → cordova/www}/images/portrait.png +0 -0
  172. /package/examples/ionic/{assets → src/assets}/.gitkeep +0 -0
  173. /package/examples/ionic/{images → src/images}/icon.png +0 -0
package/www/cordova.js CHANGED
@@ -465,7 +465,7 @@ class CustomizationFonts {
465
465
  }
466
466
 
467
467
  _apply() {
468
- this._set(this.toJson())
468
+ this._set(toJson())
469
469
  }
470
470
  }
471
471
 
@@ -608,7 +608,7 @@ class CustomizationImages {
608
608
  }
609
609
 
610
610
  _apply() {
611
- this._set(this.toJson())
611
+ this._set(toJson())
612
612
  }
613
613
  }
614
614
 
@@ -647,14 +647,6 @@ class Font {
647
647
 
648
648
  return result
649
649
  }
650
-
651
- toJson() {
652
- return {
653
- "name": this.name,
654
- "size": this.size,
655
- "style": this.style,
656
- }
657
- }
658
650
  }
659
651
 
660
652
  const FontStyle = {
@@ -735,18 +727,6 @@ class DetectFaceResult {
735
727
 
736
728
  return result
737
729
  }
738
-
739
- toJson() {
740
- return {
741
- "quality": this.quality?.map(e => e.toJson()),
742
- "crop": this.crop,
743
- "attributes": this.attributes?.map(e => e.toJson()),
744
- "landmarks": this.landmarks?.map(e => e.toJson()),
745
- "faceRect": this.faceRect?.toJson(),
746
- "originalRect": this.originalRect?.toJson(),
747
- "isQualityCompliant": this.isQualityCompliant,
748
- }
749
- }
750
730
  }
751
731
 
752
732
  /***/ }),
@@ -809,15 +789,6 @@ class DetectFacesAttributeResult {
809
789
 
810
790
  return result
811
791
  }
812
-
813
- toJson() {
814
- return {
815
- "attribute": this.attribute,
816
- "value": this.value,
817
- "range": this.range?.toJson(),
818
- "confidence": this.confidence,
819
- }
820
- }
821
792
  }
822
793
 
823
794
  /***/ }),
@@ -846,13 +817,6 @@ class DetectFacesBackendException {
846
817
 
847
818
  return result
848
819
  }
849
-
850
- toJson() {
851
- return {
852
- "code": this.code,
853
- "message": this.message,
854
- }
855
- }
856
820
  }
857
821
 
858
822
  const DetectFacesBackendErrorCode = {
@@ -876,11 +840,6 @@ __webpack_require__.r(__webpack_exports__);
876
840
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
877
841
  /* harmony export */ DetectFacesConfig: () => (/* binding */ DetectFacesConfig)
878
842
  /* harmony export */ });
879
- /* harmony import */ var _image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_quality/image_quality_characteristic */ "./src/image_quality/image_quality_characteristic.js");
880
- /* harmony import */ var _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_params/output_image_params */ "./src/image_params/output_image_params.js");
881
-
882
-
883
-
884
843
  class DetectFacesConfig {
885
844
  attributes
886
845
  customQuality
@@ -894,37 +853,6 @@ class DetectFacesConfig {
894
853
  this.outputImageParams = params?.outputImageParams
895
854
  this.onlyCentralFace = params?.onlyCentralFace ?? this.onlyCentralFace
896
855
  }
897
-
898
- static fromJson(jsonObject) {
899
- if (jsonObject == null) return null
900
- const result = new DetectFacesConfig()
901
-
902
- if (jsonObject["attributes"] != null) {
903
- result.attributes = []
904
- for (const item of jsonObject["attributes"]) {
905
- result.attributes.push(item)
906
- }
907
- }
908
- if (jsonObject["customQuality"] != null) {
909
- result.customQuality = []
910
- for (const item of jsonObject["customQuality"]) {
911
- result.customQuality.push(_image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic.fromJson(item))
912
- }
913
- }
914
- result.outputImageParams = _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_1__.OutputImageParams.fromJson(jsonObject["outputImageParams"])
915
- result.onlyCentralFace = jsonObject["onlyCentralFace"]
916
-
917
- return result
918
- }
919
-
920
- toJson() {
921
- return {
922
- "attributes": this.attributes?.map(e => e),
923
- "customQuality": this.customQuality?.map(e => e.toJson()),
924
- "outputImageParams": this.outputImageParams?.toJson(),
925
- "onlyCentralFace": this.onlyCentralFace,
926
- }
927
- }
928
856
  }
929
857
 
930
858
  /***/ }),
@@ -958,14 +886,6 @@ class DetectFacesException {
958
886
 
959
887
  return result
960
888
  }
961
-
962
- toJson() {
963
- return {
964
- "code": this.code,
965
- "message": this.message,
966
- "underlyingError": this.underlyingError?.toJson(),
967
- }
968
- }
969
889
  }
970
890
 
971
891
  const DetectFacesErrorCode = {
@@ -993,8 +913,6 @@ __webpack_require__.r(__webpack_exports__);
993
913
  /* harmony export */ DetectFacesRequest: () => (/* binding */ DetectFacesRequest)
994
914
  /* harmony export */ });
995
915
  /* harmony import */ var _detect_faces_scenario__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_faces_scenario */ "./src/detect_faces/detect_faces_scenario.js");
996
- /* harmony import */ var _detect_faces_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detect_faces_config */ "./src/detect_faces/detect_faces_config.js");
997
-
998
916
 
999
917
 
1000
918
  class DetectFacesRequest {
@@ -1063,27 +981,6 @@ class DetectFacesRequest {
1063
981
  result.scenario = _detect_faces_scenario__WEBPACK_IMPORTED_MODULE_0__.DetectFacesScenario.ATTRIBUTES_ALL
1064
982
  return result
1065
983
  }
1066
-
1067
- static fromJson(jsonObject) {
1068
- if (jsonObject == null) return null
1069
- const result = new DetectFacesRequest()
1070
-
1071
- result.tag = jsonObject["tag"]
1072
- result.scenario = jsonObject["scenario"]
1073
- result.image = jsonObject["image"]
1074
- result.configuration = _detect_faces_config__WEBPACK_IMPORTED_MODULE_1__.DetectFacesConfig.fromJson(jsonObject["configuration"])
1075
-
1076
- return result
1077
- }
1078
-
1079
- toJson() {
1080
- return {
1081
- "tag": this.tag,
1082
- "scenario": this.scenario,
1083
- "image": this.image,
1084
- "configuration": this.configuration?.toJson(),
1085
- }
1086
- }
1087
984
  }
1088
985
 
1089
986
  /***/ }),
@@ -1123,15 +1020,6 @@ class DetectFacesResponse {
1123
1020
 
1124
1021
  return result
1125
1022
  }
1126
-
1127
- toJson() {
1128
- return {
1129
- "detection": this.detection?.toJson(),
1130
- "allDetections": this.allDetections?.map(e => e.toJson()),
1131
- "scenario": this.scenario,
1132
- "error": this.error?.toJson(),
1133
- }
1134
- }
1135
1023
  }
1136
1024
 
1137
1025
  /***/ }),
@@ -1202,43 +1090,6 @@ class FaceCaptureConfig {
1202
1090
  this.timeout = params?.timeout
1203
1091
  this.holdStillDuration = params?.holdStillDuration
1204
1092
  }
1205
-
1206
- static fromJson(jsonObject) {
1207
- if (jsonObject == null) return null
1208
- const result = new FaceCaptureConfig()
1209
-
1210
- result.copyright = jsonObject["copyright"]
1211
- result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
1212
- result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
1213
- result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
1214
- result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
1215
- result.detectOcclusion = jsonObject["detectOcclusion"]
1216
- result.showFaceAnimation = jsonObject["showFaceAnimation"]
1217
- result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
1218
- result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
1219
- result.screenOrientation = jsonObject["screenOrientation"]
1220
- result.timeout = jsonObject["timeout"]
1221
- result.holdStillDuration = jsonObject["holdStillDuration"]
1222
-
1223
- return result
1224
- }
1225
-
1226
- toJson() {
1227
- return {
1228
- "copyright": this.copyright,
1229
- "cameraSwitchEnabled": this.cameraSwitchEnabled,
1230
- "closeButtonEnabled": this.closeButtonEnabled,
1231
- "torchButtonEnabled": this.torchButtonEnabled,
1232
- "vibrateOnSteps": this.vibrateOnSteps,
1233
- "detectOcclusion": this.detectOcclusion,
1234
- "showFaceAnimation": this.showFaceAnimation,
1235
- "cameraPositionAndroid": this.cameraPositionAndroid,
1236
- "cameraPositionIOS": this.cameraPositionIOS,
1237
- "screenOrientation": this.screenOrientation,
1238
- "timeout": this.timeout,
1239
- "holdStillDuration": this.holdStillDuration,
1240
- }
1241
- }
1242
1093
  }
1243
1094
 
1244
1095
  /***/ }),
@@ -1267,13 +1118,6 @@ class FaceCaptureException {
1267
1118
 
1268
1119
  return result
1269
1120
  }
1270
-
1271
- toJson() {
1272
- return {
1273
- "code": this.code,
1274
- "message": this.message,
1275
- }
1276
- }
1277
1121
  }
1278
1122
 
1279
1123
  const FaceCaptureErrorCode = {
@@ -1315,14 +1159,6 @@ class FaceCaptureImage {
1315
1159
 
1316
1160
  return result
1317
1161
  }
1318
-
1319
- toJson() {
1320
- return {
1321
- "imageType": this.imageType,
1322
- "image": this.image,
1323
- "tag": this.tag,
1324
- }
1325
- }
1326
1162
  }
1327
1163
 
1328
1164
  const ImageType = {
@@ -1365,13 +1201,6 @@ class FaceCaptureResponse {
1365
1201
 
1366
1202
  return result
1367
1203
  }
1368
-
1369
- toJson() {
1370
- return {
1371
- "image": this.image?.toJson(),
1372
- "error": this.error?.toJson(),
1373
- }
1374
- }
1375
1204
  }
1376
1205
 
1377
1206
  /***/ }),
@@ -1387,9 +1216,6 @@ __webpack_require__.r(__webpack_exports__);
1387
1216
  /* harmony export */ OutputImageCrop: () => (/* binding */ OutputImageCrop),
1388
1217
  /* harmony export */ OutputImageCropAspectRatio: () => (/* binding */ OutputImageCropAspectRatio)
1389
1218
  /* harmony export */ });
1390
- /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./size */ "./src/image_params/size.js");
1391
-
1392
-
1393
1219
  class OutputImageCrop {
1394
1220
  type
1395
1221
  size
@@ -1402,27 +1228,6 @@ class OutputImageCrop {
1402
1228
  this.padColor = params?.padColor
1403
1229
  this.returnOriginalRect = params?.returnOriginalRect ?? false
1404
1230
  }
1405
-
1406
- static fromJson(jsonObject) {
1407
- if (jsonObject == null) return null
1408
- return new OutputImageCrop(
1409
- jsonObject["type"],
1410
- {
1411
- size: _size__WEBPACK_IMPORTED_MODULE_0__.Size.fromJson(jsonObject["size"]),
1412
- padColor: jsonObject["padColor"],
1413
- returnOriginalRect: jsonObject["returnOriginalRect"],
1414
- }
1415
- )
1416
- }
1417
-
1418
- toJson() {
1419
- return {
1420
- "type": this.type,
1421
- "size": this.size?.toJson(),
1422
- "padColor": this.padColor,
1423
- "returnOriginalRect": this.returnOriginalRect,
1424
- }
1425
- }
1426
1231
  }
1427
1232
 
1428
1233
  const OutputImageCropAspectRatio = {
@@ -1445,9 +1250,6 @@ __webpack_require__.r(__webpack_exports__);
1445
1250
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1446
1251
  /* harmony export */ OutputImageParams: () => (/* binding */ OutputImageParams)
1447
1252
  /* harmony export */ });
1448
- /* harmony import */ var _output_image_crop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./output_image_crop */ "./src/image_params/output_image_crop.js");
1449
-
1450
-
1451
1253
  class OutputImageParams {
1452
1254
  crop
1453
1255
  backgroundColor
@@ -1456,23 +1258,6 @@ class OutputImageParams {
1456
1258
  this.crop = params?.crop
1457
1259
  this.backgroundColor = params?.backgroundColor
1458
1260
  }
1459
-
1460
- static fromJson(jsonObject) {
1461
- if (jsonObject == null) return null
1462
- const result = new OutputImageParams()
1463
-
1464
- result.crop = _output_image_crop__WEBPACK_IMPORTED_MODULE_0__.OutputImageCrop.fromJson(jsonObject["crop"])
1465
- result.backgroundColor = jsonObject["backgroundColor"]
1466
-
1467
- return result
1468
- }
1469
-
1470
- toJson() {
1471
- return {
1472
- "crop": this.crop?.toJson(),
1473
- "backgroundColor": this.backgroundColor,
1474
- }
1475
- }
1476
1261
  }
1477
1262
 
1478
1263
  /***/ }),
@@ -1500,13 +1285,6 @@ class Point {
1500
1285
 
1501
1286
  return result
1502
1287
  }
1503
-
1504
- toJson() {
1505
- return {
1506
- "x": this.x,
1507
- "y": this.y,
1508
- }
1509
- }
1510
1288
  }
1511
1289
 
1512
1290
  /***/ }),
@@ -1538,15 +1316,6 @@ class Rect {
1538
1316
 
1539
1317
  return result
1540
1318
  }
1541
-
1542
- toJson() {
1543
- return {
1544
- "left": this.left,
1545
- "top": this.top,
1546
- "right": this.right,
1547
- "bottom": this.bottom,
1548
- }
1549
- }
1550
1319
  }
1551
1320
 
1552
1321
  /***/ }),
@@ -1569,18 +1338,6 @@ class Size {
1569
1338
  this.width = width
1570
1339
  this.height = height
1571
1340
  }
1572
-
1573
- static fromJson(jsonObject) {
1574
- if (jsonObject == null) return null
1575
- return new Size(jsonObject["width"], jsonObject["height"])
1576
- }
1577
-
1578
- toJson() {
1579
- return {
1580
- "width": this.width,
1581
- "height": this.height,
1582
- }
1583
- }
1584
1341
  }
1585
1342
 
1586
1343
  /***/ }),
@@ -1621,28 +1378,6 @@ class ImageQualityCharacteristic {
1621
1378
  this.customRange = _image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.withValue(value)
1622
1379
  return this
1623
1380
  }
1624
-
1625
- static fromJson(jsonObject) {
1626
- if (jsonObject == null) return null
1627
-
1628
- return ImageQualityCharacteristic._create(
1629
- jsonObject["characteristicName"],
1630
- {
1631
- recommended: _image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["recommendedRange"]),
1632
- custom: _image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["customRange"]),
1633
- color: jsonObject["color"],
1634
- }
1635
- )
1636
- }
1637
-
1638
- toJson() {
1639
- return {
1640
- "characteristicName": this.characteristicName,
1641
- "recommendedRange": this.recommendedRange?.toJson(),
1642
- "customRange": this.customRange?.toJson(),
1643
- "color": this.color,
1644
- }
1645
- }
1646
1381
  }
1647
1382
 
1648
1383
  /***/ }),
@@ -2110,13 +1845,6 @@ class ImageQualityRange {
2110
1845
 
2111
1846
  return result
2112
1847
  }
2113
-
2114
- toJson() {
2115
- return {
2116
- "min": this.min,
2117
- "max": this.max,
2118
- }
2119
- }
2120
1848
  }
2121
1849
 
2122
1850
  /***/ }),
@@ -2155,16 +1883,6 @@ class ImageQualityResult {
2155
1883
 
2156
1884
  return result
2157
1885
  }
2158
-
2159
- toJson() {
2160
- return {
2161
- "group": this.group,
2162
- "name": this.name,
2163
- "status": this.status,
2164
- "value": this.value,
2165
- "range": this.range?.toJson(),
2166
- }
2167
- }
2168
1886
  }
2169
1887
 
2170
1888
  const ImageQualityGroupName = {
@@ -2445,27 +2163,6 @@ class FaceSDK {
2445
2163
  this._setServiceUrl(val)
2446
2164
  }
2447
2165
 
2448
- get tenant() { return this._tenant }
2449
- _tenant = null
2450
- set tenant(val) {
2451
- this._tenant = val;
2452
- this._setTenant(val);
2453
- }
2454
-
2455
- get env() { return this._env }
2456
- _env = null
2457
- set env(val) {
2458
- this._env = val;
2459
- this._setEnv(val);
2460
- }
2461
-
2462
- get locale() { return this._locale }
2463
- _locale = null
2464
- set locale(val) {
2465
- this._locale = val;
2466
- this._setLocale(val);
2467
- }
2468
-
2469
2166
  get localizationDictionary() { return this._localizationDictionary }
2470
2167
  _localizationDictionary
2471
2168
  set localizationDictionary(val) {
@@ -2557,9 +2254,6 @@ class FaceSDK {
2557
2254
  async _onInit() {
2558
2255
  this._version = await this._getVersion()
2559
2256
  this._serviceUrl = await this._getServiceUrl()
2560
- this._tenant = await this._getTenant();
2561
- this._env = await this._getEnv();
2562
- this._locale = await this._getLocale();
2563
2257
  }
2564
2258
 
2565
2259
  async _getVersion() {
@@ -2575,30 +2269,6 @@ class FaceSDK {
2575
2269
  (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
2576
2270
  }
2577
2271
 
2578
- async _getTenant() {
2579
- return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getTenant", []);
2580
- }
2581
-
2582
- _setTenant(tenant) {
2583
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setTenant", [tenant]);
2584
- }
2585
-
2586
- async _getEnv() {
2587
- return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getEnv", []);
2588
- }
2589
-
2590
- _setEnv(env) {
2591
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setEnv", [env]);
2592
- }
2593
-
2594
- async _getLocale() {
2595
- return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getLocale", []);
2596
- }
2597
-
2598
- _setLocale(locale) {
2599
- (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocale", [locale]);
2600
- }
2601
-
2602
2272
  _setLocalizationDictionary(dictionary) {
2603
2273
  (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
2604
2274
  }
@@ -2636,14 +2306,6 @@ class FaceSDKVersion {
2636
2306
 
2637
2307
  return result
2638
2308
  }
2639
-
2640
- toJson() {
2641
- return {
2642
- "api": this.api,
2643
- "core": this.core,
2644
- "coreMode": this.coreMode,
2645
- }
2646
- }
2647
2309
  }
2648
2310
 
2649
2311
  /***/ }),
@@ -2674,25 +2336,6 @@ class InitConfig {
2674
2336
  this.licenseUpdate = params?.licenseUpdate
2675
2337
  this.useBleDevice = false
2676
2338
  }
2677
-
2678
- static fromJson(jsonObject) {
2679
- if (jsonObject == null) return null
2680
- const result = new InitConfig()
2681
-
2682
- result.license = jsonObject["license"]
2683
- result.licenseUpdate = jsonObject["licenseUpdate"]
2684
- result.useBleDevice = jsonObject["useBleDevice"]
2685
-
2686
- return result
2687
- }
2688
-
2689
- toJson() {
2690
- return {
2691
- "license": this.license,
2692
- "licenseUpdate": this.licenseUpdate,
2693
- "useBleDevice": this.useBleDevice,
2694
- }
2695
- }
2696
2339
  }
2697
2340
 
2698
2341
  /***/ }),
@@ -2726,14 +2369,6 @@ class InitException {
2726
2369
 
2727
2370
  return result
2728
2371
  }
2729
-
2730
- toJson() {
2731
- return {
2732
- "code": this.code,
2733
- "message": this.message,
2734
- "underlyingError": this.underlyingError?.toJson(),
2735
- }
2736
- }
2737
2372
  }
2738
2373
 
2739
2374
  const InitErrorCode = {
@@ -2773,13 +2408,6 @@ class LicenseException {
2773
2408
 
2774
2409
  return result
2775
2410
  }
2776
-
2777
- toJson() {
2778
- return {
2779
- "code": this.code,
2780
- "message": this.message,
2781
- }
2782
- }
2783
2411
  }
2784
2412
 
2785
2413
  const LicensingResultCode = {
@@ -2811,7 +2439,6 @@ __webpack_require__.r(__webpack_exports__);
2811
2439
  /* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
2812
2440
  /* harmony export */ _setLivenessNotificationCompletion: () => (/* binding */ _setLivenessNotificationCompletion),
2813
2441
  /* harmony export */ _setVideoEncoderCompletion: () => (/* binding */ _setVideoEncoderCompletion),
2814
- /* harmony export */ dateToString: () => (/* binding */ dateToString),
2815
2442
  /* harmony export */ exec: () => (/* binding */ exec)
2816
2443
  /* harmony export */ });
2817
2444
  /* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
@@ -2857,26 +2484,6 @@ function _setCameraSwitchCallback(completion) {
2857
2484
  _setEvent("cameraSwitchEvent", completion)
2858
2485
  }
2859
2486
 
2860
- function dateToString(date) {
2861
- if (date == null) return null
2862
- const fmt = new Intl.DateTimeFormat('en', {
2863
- year: 'numeric',
2864
- month: '2-digit',
2865
- day: '2-digit',
2866
- hour: '2-digit',
2867
- minute: '2-digit',
2868
- second: '2-digit',
2869
- fractionalSecondDigits: 3,
2870
- hour12: false
2871
- });
2872
-
2873
- const parts = fmt.formatToParts(date);
2874
- const get = (t) => parts.find(p => p.type === t)?.value ?? '';
2875
-
2876
- return `${get('year')}-${get('month')}-${get('day')} ${get('hour')}:${get('minute')}:${get('second')}.${get('fractionalSecond')}`;
2877
- }
2878
-
2879
-
2880
2487
  /***/ }),
2881
2488
 
2882
2489
  /***/ "./src/internal/cordova.js":
@@ -2934,13 +2541,6 @@ class LivenessBackendException {
2934
2541
 
2935
2542
  return result
2936
2543
  }
2937
-
2938
- toJson() {
2939
- return {
2940
- "code": this.code,
2941
- "message": this.message,
2942
- }
2943
- }
2944
2544
  }
2945
2545
 
2946
2546
  const LivenessBackendErrorCode = {
@@ -3032,49 +2632,6 @@ class LivenessConfig {
3032
2632
  this.skipStep = params?.skipStep ?? []
3033
2633
  this.metadata = params?.metadata
3034
2634
  }
3035
-
3036
- static fromJson(jsonObject) {
3037
- if (jsonObject == null) return null
3038
- const result = new LivenessConfig()
3039
-
3040
- result.copyright = jsonObject["copyright"]
3041
- result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
3042
- result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
3043
- result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
3044
- result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
3045
- result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
3046
- result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
3047
- result.screenOrientation = jsonObject["screenOrientation"]
3048
- result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
3049
- result.attemptsCount = jsonObject["attemptsCount"]
3050
- result.recordingProcess = jsonObject["recordingProcess"]
3051
- result.livenessType = jsonObject["livenessType"]
3052
- result.tag = jsonObject["tag"]
3053
- result.skipStep = jsonObject["skipStep"]
3054
- result.metadata = jsonObject["metadata"]
3055
-
3056
- return result
3057
- }
3058
-
3059
- toJson() {
3060
- return {
3061
- "copyright": this.copyright,
3062
- "cameraSwitchEnabled": this.cameraSwitchEnabled,
3063
- "closeButtonEnabled": this.closeButtonEnabled,
3064
- "torchButtonEnabled": this.torchButtonEnabled,
3065
- "vibrateOnSteps": this.vibrateOnSteps,
3066
- "cameraPositionAndroid": this.cameraPositionAndroid,
3067
- "cameraPositionIOS": this.cameraPositionIOS,
3068
- "screenOrientation": this.screenOrientation,
3069
- "locationTrackingEnabled": this.locationTrackingEnabled,
3070
- "attemptsCount": this.attemptsCount,
3071
- "recordingProcess": this.recordingProcess,
3072
- "livenessType": this.livenessType,
3073
- "tag": this.tag,
3074
- "skipStep": this.skipStep,
3075
- "metadata": this.metadata,
3076
- }
3077
- }
3078
2635
  }
3079
2636
 
3080
2637
  const RecordingProcess = {
@@ -3124,14 +2681,6 @@ class LivenessException {
3124
2681
 
3125
2682
  return result
3126
2683
  }
3127
-
3128
- toJson() {
3129
- return {
3130
- "code": this.code,
3131
- "message": this.message,
3132
- "underlyingError": this.underlyingError?.toJson(),
3133
- }
3134
- }
3135
2684
  }
3136
2685
 
3137
2686
  const LivenessErrorCode = {
@@ -3180,13 +2729,6 @@ class LivenessNotification {
3180
2729
 
3181
2730
  return result
3182
2731
  }
3183
-
3184
- toJson() {
3185
- return {
3186
- "status": this.status,
3187
- "response": this.response?.toJson(),
3188
- }
3189
- }
3190
2732
  }
3191
2733
 
3192
2734
  const LivenessProcessStatus = {
@@ -3245,17 +2787,6 @@ class LivenessResponse {
3245
2787
 
3246
2788
  return result
3247
2789
  }
3248
-
3249
- toJson() {
3250
- return {
3251
- "image": this.image,
3252
- "liveness": this.liveness,
3253
- "tag": this.tag,
3254
- "transactionId": this.transactionId,
3255
- "estimatedAge": this.estimatedAge,
3256
- "error": this.error?.toJson(),
3257
- }
3258
- }
3259
2790
  }
3260
2791
 
3261
2792
  const LivenessStatus = {
@@ -3297,15 +2828,6 @@ class ComparedFace {
3297
2828
 
3298
2829
  return result
3299
2830
  }
3300
-
3301
- toJson() {
3302
- return {
3303
- "imageIndex": this.imageIndex,
3304
- "image": this.image?.toJson(),
3305
- "faceIndex": this.faceIndex,
3306
- "face": this.face?.toJson(),
3307
- }
3308
- }
3309
2831
  }
3310
2832
 
3311
2833
  /***/ }),
@@ -3344,16 +2866,6 @@ class ComparedFacesPair {
3344
2866
 
3345
2867
  return result
3346
2868
  }
3347
-
3348
- toJson() {
3349
- return {
3350
- "first": this.first?.toJson(),
3351
- "second": this.second?.toJson(),
3352
- "similarity": this.similarity,
3353
- "score": this.score,
3354
- "error": this.error?.toJson(),
3355
- }
3356
- }
3357
2869
  }
3358
2870
 
3359
2871
  /***/ }),
@@ -3390,13 +2902,6 @@ class ComparedFacesSplit {
3390
2902
 
3391
2903
  return result
3392
2904
  }
3393
-
3394
- toJson() {
3395
- return {
3396
- "matchedFaces": this.matchedFaces?.map(e => e.toJson()),
3397
- "unmatchedFaces": this.unmatchedFaces?.map(e => e.toJson()),
3398
- }
3399
- }
3400
2905
  }
3401
2906
 
3402
2907
  /***/ }),
@@ -3424,13 +2929,6 @@ class MatchFacesBackendException {
3424
2929
 
3425
2930
  return result
3426
2931
  }
3427
-
3428
- toJson() {
3429
- return {
3430
- "code": this.code,
3431
- "message": this.message,
3432
- }
3433
- }
3434
2932
  }
3435
2933
 
3436
2934
  /***/ }),
@@ -3448,28 +2946,9 @@ __webpack_require__.r(__webpack_exports__);
3448
2946
  /* harmony export */ });
3449
2947
  class MatchFacesConfig {
3450
2948
  processingMode
3451
- locationTrackingEnabled
3452
2949
 
3453
2950
  constructor(params) {
3454
2951
  this.processingMode = params?.processingMode ?? ProcessingMode.ONLINE
3455
- this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
3456
- }
3457
-
3458
- static fromJson(jsonObject) {
3459
- if (jsonObject == null) return null
3460
- const result = new MatchFacesConfig()
3461
-
3462
- result.processingMode = jsonObject["processingMode"]
3463
- result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
3464
-
3465
- return result
3466
- }
3467
-
3468
- toJson() {
3469
- return {
3470
- "processingMode": this.processingMode,
3471
- "locationTrackingEnabled": this.locationTrackingEnabled,
3472
- }
3473
2952
  }
3474
2953
  }
3475
2954
 
@@ -3517,15 +2996,6 @@ class MatchFacesDetection {
3517
2996
 
3518
2997
  return result
3519
2998
  }
3520
-
3521
- toJson() {
3522
- return {
3523
- "imageIndex": this.imageIndex,
3524
- "image": this.image?.toJson(),
3525
- "faces": this.faces?.map(e => e.toJson()),
3526
- "error": this.error?.toJson(),
3527
- }
3528
- }
3529
2999
  }
3530
3000
 
3531
3001
  /***/ }),
@@ -3569,17 +3039,6 @@ class MatchFacesDetectionFace {
3569
3039
 
3570
3040
  return result
3571
3041
  }
3572
-
3573
- toJson() {
3574
- return {
3575
- "faceIndex": this.faceIndex,
3576
- "landmarks": this.landmarks?.map(e => e.toJson()),
3577
- "faceRect": this.faceRect?.toJson(),
3578
- "rotationAngle": this.rotationAngle,
3579
- "originalRect": this.originalRect?.toJson(),
3580
- "crop": this.crop,
3581
- }
3582
- }
3583
3042
  }
3584
3043
 
3585
3044
  /***/ }),
@@ -3613,14 +3072,6 @@ class MatchFacesException {
3613
3072
 
3614
3073
  return result
3615
3074
  }
3616
-
3617
- toJson() {
3618
- return {
3619
- "code": this.code,
3620
- "message": this.message,
3621
- "underlyingError": this.underlyingError?.toJson(),
3622
- }
3623
- }
3624
3075
  }
3625
3076
 
3626
3077
  const MatchFacesErrorCode = {
@@ -3671,15 +3122,6 @@ class MatchFacesImage {
3671
3122
 
3672
3123
  return result
3673
3124
  }
3674
-
3675
- toJson() {
3676
- return {
3677
- "image": this.image,
3678
- "imageType": this.imageType,
3679
- "detectAll": this.detectAll,
3680
- "identifier": this.identifier,
3681
- }
3682
- }
3683
3125
  }
3684
3126
 
3685
3127
  /***/ }),
@@ -3694,11 +3136,6 @@ __webpack_require__.r(__webpack_exports__);
3694
3136
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3695
3137
  /* harmony export */ MatchFacesRequest: () => (/* binding */ MatchFacesRequest)
3696
3138
  /* harmony export */ });
3697
- /* harmony import */ var _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_params/output_image_params */ "./src/image_params/output_image_params.js");
3698
- /* harmony import */ var _match_faces_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_image */ "./src/match_faces/match_faces_image.js");
3699
-
3700
-
3701
-
3702
3139
  class MatchFacesRequest {
3703
3140
  images
3704
3141
  outputImageParams
@@ -3711,30 +3148,6 @@ class MatchFacesRequest {
3711
3148
  this.tag = params?.tag
3712
3149
  this.metadata = params?.metadata
3713
3150
  }
3714
-
3715
- static fromJson(jsonObject) {
3716
- if (jsonObject == null) return null
3717
-
3718
- const images = []
3719
- for (const item of jsonObject["images"]) {
3720
- images.push(_match_faces_image__WEBPACK_IMPORTED_MODULE_1__.MatchFacesImage.fromJson(item))
3721
- }
3722
-
3723
- return new MatchFacesRequest(images, {
3724
- outputImageParams: _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_0__.OutputImageParams.fromJson(jsonObject["outputImageParams"]),
3725
- tag: jsonObject["tag"],
3726
- metadata: jsonObject["metadata"],
3727
- })
3728
- }
3729
-
3730
- toJson() {
3731
- return {
3732
- "images": this.images?.map(e => e.toJson()),
3733
- "outputImageParams": this.outputImageParams?.toJson(),
3734
- "tag": this.tag,
3735
- "metadata": this.metadata,
3736
- }
3737
- }
3738
3151
  }
3739
3152
 
3740
3153
  /***/ }),
@@ -3779,15 +3192,6 @@ class MatchFacesResponse {
3779
3192
 
3780
3193
  return result
3781
3194
  }
3782
-
3783
- toJson() {
3784
- return {
3785
- "results": this.results?.map(e => e.toJson()),
3786
- "detections": this.detections?.map(e => e.toJson()),
3787
- "tag": this.tag,
3788
- "error": this.error?.toJson(),
3789
- }
3790
- }
3791
3195
  }
3792
3196
 
3793
3197
  /***/ }),
@@ -3810,21 +3214,6 @@ class EditGroupPersonsRequest {
3810
3214
  this.personIdsToAdd = params?.personIdsToAdd
3811
3215
  this.personIdsToRemove = params?.personIdsToRemove
3812
3216
  }
3813
-
3814
- static fromJson(jsonObject) {
3815
- if (jsonObject == null) return null
3816
- return new EditGroupPersonsRequest({
3817
- personIdsToAdd: jsonObject["personIdsToAdd"],
3818
- personIdsToRemove: jsonObject["personIdsToRemove"],
3819
- })
3820
- }
3821
-
3822
- toJson() {
3823
- return {
3824
- "personIdsToAdd": this.personIdsToAdd,
3825
- "personIdsToRemove": this.personIdsToRemove,
3826
- }
3827
- }
3828
3217
  }
3829
3218
 
3830
3219
 
@@ -3855,23 +3244,6 @@ class ImageUpload {
3855
3244
  result.imageUrl = imageUrl
3856
3245
  return result
3857
3246
  }
3858
-
3859
- static fromJson(jsonObject) {
3860
- if (jsonObject == null) return null
3861
- var result = new ImageUpload()
3862
-
3863
- result.imageData = jsonObject["imageData"]
3864
- result.imageUrl = jsonObject["imageUrl"]
3865
-
3866
- return result
3867
- }
3868
-
3869
- toJson() {
3870
- return {
3871
- "imageData": this.imageData,
3872
- "imageUrl": this.imageUrl,
3873
- }
3874
- }
3875
3247
  }
3876
3248
 
3877
3249
 
@@ -3908,14 +3280,6 @@ class PageableItemList {
3908
3280
 
3909
3281
  return result
3910
3282
  }
3911
-
3912
- toJson() {
3913
- return {
3914
- "items": this.items?.map(e => e.toJson()),
3915
- "page": this.page,
3916
- "totalPages": this.totalPages,
3917
- }
3918
- }
3919
3283
  }
3920
3284
 
3921
3285
 
@@ -3931,9 +3295,6 @@ __webpack_require__.r(__webpack_exports__);
3931
3295
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3932
3296
  /* harmony export */ Person: () => (/* binding */ Person)
3933
3297
  /* harmony export */ });
3934
- /* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
3935
-
3936
-
3937
3298
  class Person {
3938
3299
  name
3939
3300
  updatedAt
@@ -3955,17 +3316,6 @@ class Person {
3955
3316
 
3956
3317
  return result
3957
3318
  }
3958
-
3959
- toJson() {
3960
- return {
3961
- "name": this.name,
3962
- "updatedAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.updatedAt),
3963
- "groups": this.groups,
3964
- "id": this.id,
3965
- "metadata": this.metadata,
3966
- "createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
3967
- }
3968
- }
3969
3319
  }
3970
3320
 
3971
3321
 
@@ -4146,9 +3496,6 @@ __webpack_require__.r(__webpack_exports__);
4146
3496
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4147
3497
  /* harmony export */ PersonGroup: () => (/* binding */ PersonGroup)
4148
3498
  /* harmony export */ });
4149
- /* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
4150
-
4151
-
4152
3499
  class PersonGroup {
4153
3500
  name
4154
3501
  id
@@ -4166,15 +3513,6 @@ class PersonGroup {
4166
3513
 
4167
3514
  return result
4168
3515
  }
4169
-
4170
- toJson() {
4171
- return {
4172
- "name": this.name,
4173
- "id": this.id,
4174
- "metadata": this.metadata,
4175
- "createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
4176
- }
4177
- }
4178
3516
  }
4179
3517
 
4180
3518
 
@@ -4190,9 +3528,6 @@ __webpack_require__.r(__webpack_exports__);
4190
3528
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4191
3529
  /* harmony export */ PersonImage: () => (/* binding */ PersonImage)
4192
3530
  /* harmony export */ });
4193
- /* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
4194
-
4195
-
4196
3531
  class PersonImage {
4197
3532
  path
4198
3533
  url
@@ -4214,17 +3549,6 @@ class PersonImage {
4214
3549
 
4215
3550
  return result
4216
3551
  }
4217
-
4218
- toJson() {
4219
- return {
4220
- "path": this.path,
4221
- "url": this.url,
4222
- "contentType": this.contentType,
4223
- "id": this.id,
4224
- "metadata": this.metadata,
4225
- "createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
4226
- }
4227
- }
4228
3552
  }
4229
3553
 
4230
3554
 
@@ -4240,10 +3564,8 @@ __webpack_require__.r(__webpack_exports__);
4240
3564
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4241
3565
  /* harmony export */ SearchPerson: () => (/* binding */ SearchPerson)
4242
3566
  /* harmony export */ });
4243
- /* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
4244
- /* harmony import */ var _search_person_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./search_person_image */ "./src/person_database/search_person_image.js");
4245
- /* harmony import */ var _search_person_detection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./search_person_detection */ "./src/person_database/search_person_detection.js");
4246
-
3567
+ /* harmony import */ var _search_person_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./search_person_image */ "./src/person_database/search_person_image.js");
3568
+ /* harmony import */ var _search_person_detection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./search_person_detection */ "./src/person_database/search_person_detection.js");
4247
3569
 
4248
3570
 
4249
3571
 
@@ -4263,8 +3585,8 @@ class SearchPerson {
4263
3585
 
4264
3586
  if (jsonObject["images"] != null)
4265
3587
  for (var item of jsonObject["images"])
4266
- result.images.push(_search_person_image__WEBPACK_IMPORTED_MODULE_1__.SearchPersonImage.fromJson(item))
4267
- result.detection = _search_person_detection__WEBPACK_IMPORTED_MODULE_2__.SearchPersonDetection.fromJson(jsonObject["detection"])
3588
+ result.images.push(_search_person_image__WEBPACK_IMPORTED_MODULE_0__.SearchPersonImage.fromJson(item))
3589
+ result.detection = _search_person_detection__WEBPACK_IMPORTED_MODULE_1__.SearchPersonDetection.fromJson(jsonObject["detection"])
4268
3590
  result.name = jsonObject["name"]
4269
3591
  result.updatedAt = new Date(jsonObject["updatedAt"])
4270
3592
  result.groups = jsonObject["groups"]
@@ -4274,19 +3596,6 @@ class SearchPerson {
4274
3596
 
4275
3597
  return result
4276
3598
  }
4277
-
4278
- toJson() {
4279
- return {
4280
- "images": this.images?.map(e => e.toJson()),
4281
- "detection": this.detection?.toJson(),
4282
- "name": this.name,
4283
- "updatedAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.updatedAt),
4284
- "groups": this.groups,
4285
- "id": this.id,
4286
- "metadata": this.metadata,
4287
- "createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
4288
- }
4289
- }
4290
3599
  }
4291
3600
 
4292
3601
 
@@ -4325,15 +3634,6 @@ class SearchPersonDetection {
4325
3634
 
4326
3635
  return result
4327
3636
  }
4328
-
4329
- toJson() {
4330
- return {
4331
- "landmarks": this.landmarks?.map(e => e.toJson()),
4332
- "rect": this.rect?.toJson(),
4333
- "crop": this.crop,
4334
- "rotationAngle": this.rotationAngle,
4335
- }
4336
- }
4337
3637
  }
4338
3638
 
4339
3639
 
@@ -4349,9 +3649,6 @@ __webpack_require__.r(__webpack_exports__);
4349
3649
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4350
3650
  /* harmony export */ SearchPersonImage: () => (/* binding */ SearchPersonImage)
4351
3651
  /* harmony export */ });
4352
- /* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
4353
-
4354
-
4355
3652
  class SearchPersonImage {
4356
3653
  similarity
4357
3654
  distance
@@ -4377,19 +3674,6 @@ class SearchPersonImage {
4377
3674
 
4378
3675
  return result
4379
3676
  }
4380
-
4381
- toJson() {
4382
- return {
4383
- "similarity": this.similarity,
4384
- "distance": this.distance,
4385
- "path": this.path,
4386
- "url": this.url,
4387
- "contentType": this.contentType,
4388
- "id": this.id,
4389
- "metadata": this.metadata,
4390
- "createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
4391
- }
4392
- }
4393
3677
  }
4394
3678
 
4395
3679
 
@@ -4405,17 +3689,11 @@ __webpack_require__.r(__webpack_exports__);
4405
3689
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4406
3690
  /* harmony export */ SearchPersonRequest: () => (/* binding */ SearchPersonRequest)
4407
3691
  /* harmony export */ });
4408
- /* harmony import */ var _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_params/output_image_params */ "./src/image_params/output_image_params.js");
4409
- /* harmony import */ var _image_upload__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./image_upload */ "./src/person_database/image_upload.js");
4410
-
4411
-
4412
-
4413
3692
  class SearchPersonRequest {
4414
3693
  imageUpload
4415
3694
  groupIdsForSearch
4416
3695
  threshold
4417
3696
  limit
4418
- tag
4419
3697
  detectAll
4420
3698
  outputImageParams
4421
3699
 
@@ -4424,34 +3702,9 @@ class SearchPersonRequest {
4424
3702
  this.groupIdsForSearch = params?.groupIdsForSearch
4425
3703
  this.threshold = params?.threshold
4426
3704
  this.limit = params?.limit
4427
- this.tag = params?.tag
4428
3705
  this.detectAll = params?.detectAll ?? false
4429
3706
  this.outputImageParams = params?.outputImageParams
4430
3707
  }
4431
-
4432
- static fromJson(jsonObject) {
4433
- if (jsonObject == null) return null
4434
- return new SearchPersonRequest(_image_upload__WEBPACK_IMPORTED_MODULE_1__.ImageUpload.fromJson(jsonObject["imageUpload"]), {
4435
- groupIdsForSearch: jsonObject["groupIdsForSearch"],
4436
- threshold: jsonObject["threshold"],
4437
- limit: jsonObject["limit"],
4438
- tag: jsonObject["tag"],
4439
- detectAll: jsonObject["detectAll"],
4440
- outputImageParams: _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_0__.OutputImageParams.fromJson(jsonObject["outputImageParams"]),
4441
- })
4442
- }
4443
-
4444
- toJson() {
4445
- return {
4446
- "imageUpload": this.imageUpload?.toJson(),
4447
- "groupIdsForSearch": this.groupIdsForSearch,
4448
- "threshold": this.threshold,
4449
- "limit": this.limit,
4450
- "tag": this.tag,
4451
- "detectAll": this.detectAll,
4452
- "outputImageParams": this.outputImageParams?.toJson(),
4453
- }
4454
- }
4455
3708
  }
4456
3709
 
4457
3710