@regulaforensics/face-sdk 7.1.406-nightly → 7.1.407-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.
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +0 -2
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +0 -18
- package/examples/capacitor/package.json +2 -2
- package/examples/cordova/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/package.json +2 -2
- package/ios/RFSWJSONConstructor.h +1 -0
- package/ios/RFSWJSONConstructor.m +14 -5
- package/ios/RFSWMain.m +0 -30
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/index.js +0 -48
- package/www/capacitor/person_database/search_person_request.js +0 -2
- package/www/cordova.js +0 -50
- package/www/react-native/index.js +0 -48
- package/www/react-native/person_database/search_person_request.js +0 -2
- package/www/types/index.d.ts +0 -12
- package/www/types/person_database/search_person_request.d.ts +0 -4
package/RNFaceSDK.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNFaceSDK'
|
|
8
|
-
s.version = '7.1.
|
|
8
|
+
s.version = '7.1.407-rc'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '13.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency '
|
|
19
|
+
s.dependency 'FaceSDKStage', '7.2.3006'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -32,7 +32,7 @@ android {
|
|
|
32
32
|
rootProject.allprojects {
|
|
33
33
|
repositories {
|
|
34
34
|
maven {
|
|
35
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
35
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -41,7 +41,7 @@ dependencies {
|
|
|
41
41
|
//noinspection GradleDynamicVersion
|
|
42
42
|
implementation 'com.facebook.react:react-native:+'
|
|
43
43
|
//noinspection GradleDependency
|
|
44
|
-
implementation('com.regula.face:api:7.
|
|
44
|
+
implementation('com.regula.face:api:7.2.3946'){
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -6,13 +6,13 @@ android {
|
|
|
6
6
|
|
|
7
7
|
repositories {
|
|
8
8
|
maven {
|
|
9
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
9
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
dependencies {
|
|
14
14
|
//noinspection GradleDependency
|
|
15
|
-
implementation('com.regula.face:api:7.
|
|
15
|
+
implementation('com.regula.face:api:7.2.3946'){
|
|
16
16
|
transitive = true
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -833,7 +833,6 @@ fun searchPersonRequestFromJSON(it: JSONObject) = object : SearchPersonRequest()
|
|
|
833
833
|
groupIdsForSearch = it.getJSONArrayOrNull("groupIdsForSearch").toArray()
|
|
834
834
|
threshold = it.getDoubleOrNull("threshold")?.toFloat()
|
|
835
835
|
limit = it.getIntOrNull("limit")
|
|
836
|
-
tag = it.getStringOrNull("tag")
|
|
837
836
|
imageUpload = imageUploadFromJSON(it.getJSONObjectOrNull("imageUpload"))
|
|
838
837
|
isDetectAll = it.optBoolean("detectAll", false)
|
|
839
838
|
outputImageParams = outputImageParamsFromJSON(it.getJSONObjectOrNull("outputImageParams"))
|
|
@@ -844,7 +843,6 @@ fun generateSearchPersonRequest(it: SearchPersonRequest) = mapOf(
|
|
|
844
843
|
"groupIdsForSearch" to it.groupIdsForSearch.toJson(),
|
|
845
844
|
"threshold" to it.threshold,
|
|
846
845
|
"limit" to it.limit,
|
|
847
|
-
"tag" to it.tag,
|
|
848
846
|
"imageUpload" to generateImageUpload(it.imageUpload),
|
|
849
847
|
"detectAll" to it.isDetectAll,
|
|
850
848
|
"outputImageParams" to generateOutputImageParams(it.outputImageParams)
|
|
@@ -30,12 +30,6 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
|
|
|
30
30
|
"getVersion" -> getVersion(callback)
|
|
31
31
|
"getServiceUrl" -> getServiceUrl(callback)
|
|
32
32
|
"setServiceUrl" -> setServiceUrl(argsNullable(0))
|
|
33
|
-
"getTenant" -> getTenant(callback)
|
|
34
|
-
"setTenant" -> setTenant(argsNullable(0))
|
|
35
|
-
"getEnv" -> getEnv(callback)
|
|
36
|
-
"setEnv" -> setEnv(argsNullable(0))
|
|
37
|
-
"getLocale" -> getLocale(callback)
|
|
38
|
-
"setLocale" -> setLocale(argsNullable(0))
|
|
39
33
|
"setLocalizationDictionary" -> setLocalizationDictionary(args(0))
|
|
40
34
|
"setRequestHeaders" -> setRequestHeaders(args(0))
|
|
41
35
|
"setCustomization" -> setCustomization(args(0))
|
|
@@ -87,18 +81,6 @@ fun getServiceUrl(callback: Callback) = callback(Instance().serviceUrl)
|
|
|
87
81
|
|
|
88
82
|
fun setServiceUrl(url: String?) = url.let { Instance().serviceUrl = it }
|
|
89
83
|
|
|
90
|
-
fun getTenant(callback: Callback) = callback(Instance().tenant)
|
|
91
|
-
|
|
92
|
-
fun setTenant(tag: String?) = tag.let { Instance().tenant = it }
|
|
93
|
-
|
|
94
|
-
fun getEnv(callback: Callback) = callback(Instance().env)
|
|
95
|
-
|
|
96
|
-
fun setEnv(tag: String?) = tag.let { Instance().env = it }
|
|
97
|
-
|
|
98
|
-
fun getLocale(callback: Callback) = callback(Instance().locale)
|
|
99
|
-
|
|
100
|
-
fun setLocale(locale: String?) = locale.let { Instance().locale = it }
|
|
101
|
-
|
|
102
84
|
fun setLocalizationDictionary(dictionary: JSONObject) {
|
|
103
85
|
localizationCallbacks = LocalizationCallbacks { if (dictionary.has(it)) dictionary.getString(it) else null }
|
|
104
86
|
Instance().setLocalizationCallback(localizationCallbacks!!)
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.407-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.2.238-rc",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.407-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.2.238-rc",
|
|
11
11
|
"cordova-ios": "7.1.1",
|
|
12
12
|
"cordova-android": "13.0.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.407-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.2.238-rc",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.16.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.16.0",
|
|
13
13
|
"@awesome-cordova-plugins/dialogs": "6.16.0",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
12
|
-
"@regulaforensics/face-core-basic": "7.
|
|
11
|
+
"@regulaforensics/face-sdk": "7.1.407-rc",
|
|
12
|
+
"@regulaforensics/face-core-basic": "7.2.238-rc",
|
|
13
13
|
"react-native": "0.79.2",
|
|
14
14
|
"react-native-fs": "2.20.0",
|
|
15
15
|
"react-native-image-picker": "8.2.1",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
+(RFSImageQualityCharacteristic* _Nonnull)imageQualityCharacteristicFromJSON:(id _Nonnull)input;
|
|
53
53
|
+(NSDictionary<NSString*, id>* _Nonnull)generateImageQualityCharacteristic:(RFSImageQualityCharacteristic* _Nonnull)input;
|
|
54
54
|
|
|
55
|
+
+(RFSFaceSDKVersion* _Nonnull)faceSDKVersionFromJSON:(id _Nonnull)input;
|
|
55
56
|
+(NSDictionary<NSString*, id>* _Nonnull)generateFaceSDKVersion:(RFSFaceSDKVersion* _Nonnull)input;
|
|
56
57
|
|
|
57
58
|
+(RFSInitializationConfiguration* _Nonnull)initConfigFromJSON:(id _Nonnull)input;
|
|
@@ -203,7 +203,17 @@
|
|
|
203
203
|
return result;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
+(id)faceSDKVersionFromJSON:(NSDictionary*)input {
|
|
207
|
+
if (!input || [input isEqual:[NSNull null]]) return nil;
|
|
208
|
+
RFSFaceSDKVersion* result = [RFSFaceSDKVersion new];
|
|
209
|
+
|
|
210
|
+
[result setValue:input[@"api"] forKey:@"api"];
|
|
211
|
+
[result setValue:input[@"core"] forKey:@"core"];
|
|
212
|
+
[result setValue:input[@"coreMode"] forKey:@"coreMode"];
|
|
213
|
+
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
|
|
207
217
|
+(id)generateFaceSDKVersion:(RFSFaceSDKVersion*)input {
|
|
208
218
|
if (!input) return [NSNull null];
|
|
209
219
|
NSMutableDictionary* result = @{}.mutableCopy;
|
|
@@ -281,9 +291,9 @@
|
|
|
281
291
|
|
|
282
292
|
+(id)livenessResponseFromJSON:(NSDictionary*)input {
|
|
283
293
|
RFSLivenessResponse* result = [RFSLivenessResponse alloc];
|
|
284
|
-
SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:
|
|
294
|
+
SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:normalImage:scaledImage:error:");
|
|
285
295
|
IMP imp = [result methodForSelector:sel];
|
|
286
|
-
void (*func)(id, SEL, id, id, id, NSInteger, id, id) = (void *)imp;
|
|
296
|
+
void (*func)(id, SEL, id, id, id, NSInteger, id, id, id) = (void *)imp;
|
|
287
297
|
func(result,
|
|
288
298
|
sel,
|
|
289
299
|
input[@"tag"],
|
|
@@ -291,6 +301,7 @@
|
|
|
291
301
|
input[@"estimatedAge"],
|
|
292
302
|
[input[@"liveness"] integerValue],
|
|
293
303
|
[self imageWithBase64:input[@"image"]],
|
|
304
|
+
[self imageWithBase64:input[@"image"]],
|
|
294
305
|
nil);
|
|
295
306
|
return result;
|
|
296
307
|
}
|
|
@@ -882,7 +893,6 @@
|
|
|
882
893
|
imageUpload:[self imageUploadFromJSON:input[@"imageUpload"]]];
|
|
883
894
|
result.threshold = input[@"threshold"];
|
|
884
895
|
result.limit = input[@"limit"];
|
|
885
|
-
result.tag = input[@"tag"];
|
|
886
896
|
if (input[@"detectAll"] && ![input[@"detectAll"] isEqual:[NSNull null]]) result.detectAll = [input[@"detectAll"] boolValue];
|
|
887
897
|
result.outputImageParams = [self outputImageParamsFromJSON:input[@"outputImageParams"]];
|
|
888
898
|
return result;
|
|
@@ -896,7 +906,6 @@
|
|
|
896
906
|
}.mutableCopy;
|
|
897
907
|
if (input.threshold) result[@"threshold"] = input.threshold;
|
|
898
908
|
if (input.limit) result[@"limit"] = input.limit;
|
|
899
|
-
if (input.tag) result[@"tag"] = input.tag;
|
|
900
909
|
if (input.groupIdsForSearch) result[@"groupIdsForSearch"] = input.groupIdsForSearch;
|
|
901
910
|
if (input.outputImageParams) result[@"outputImageParams"] = [self generateOutputImageParams:input.outputImageParams];
|
|
902
911
|
return result;
|
package/ios/RFSWMain.m
CHANGED
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
@"getVersion": ^{ [self getVersion :callback]; },
|
|
10
10
|
@"getServiceUrl": ^{ [self getServiceUrl :callback]; },
|
|
11
11
|
@"setServiceUrl": ^{ [self setServiceUrl :args[0] :callback]; },
|
|
12
|
-
@"getTenant": ^{ [self getTenant :callback]; },
|
|
13
|
-
@"setTenant": ^{ [self setTenant :args[0]]; },
|
|
14
|
-
@"getEnv": ^{ [self getEnv :callback]; },
|
|
15
|
-
@"setEnv": ^{ [self setEnv :args[0]]; },
|
|
16
|
-
@"getLocale": ^{ [self getLocale :callback]; },
|
|
17
|
-
@"setLocale": ^{ [self setLocale :args[0]]; },
|
|
18
12
|
@"setLocalizationDictionary": ^{ [self setLocalizationDictionary :args[0]]; },
|
|
19
13
|
@"setRequestHeaders": ^{ [self setRequestHeaders :args[0]]; },
|
|
20
14
|
@"setCustomization": ^{ [self setCustomization :args[0]]; },
|
|
@@ -70,30 +64,6 @@ static NSDictionary* headers;
|
|
|
70
64
|
callback(@"");
|
|
71
65
|
}
|
|
72
66
|
|
|
73
|
-
+(void)getTenant:(RFSWCallback)callback {
|
|
74
|
-
callback([RFSFaceSDK.service tenant]);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
+(void)setTenant:(NSString*)tag {
|
|
78
|
-
[RFSFaceSDK.service setTenant:tag];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
+(void)getEnv:(RFSWCallback)callback {
|
|
82
|
-
callback([RFSFaceSDK.service env]);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
+(void)setEnv:(NSString*)tag {
|
|
86
|
-
[RFSFaceSDK.service setEnv:tag];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
+(void)getLocale:(RFSWCallback)callback {
|
|
90
|
-
callback([RFSFaceSDK.service languageLocaleCode]);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
+(void)setLocale:(NSString*)locale {
|
|
94
|
-
[RFSFaceSDK.service setLanguageLocaleCode:locale];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
67
|
+(void)setLocalizationDictionary:(NSDictionary*)dictionary {
|
|
98
68
|
RFSFaceSDK.service.localizationHandler = ^NSString* (NSString* localizationKey) {
|
|
99
69
|
if (dictionary[localizationKey]) return dictionary[localizationKey];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.407-rc",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/face-sdk" version="7.1.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="7.1.407-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="FaceSDKStage" spec="7.2.3006" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/www/capacitor/index.js
CHANGED
|
@@ -105,27 +105,6 @@ export class FaceSDK {
|
|
|
105
105
|
this._setServiceUrl(val)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
get tenant() { return this._tenant }
|
|
109
|
-
_tenant = null
|
|
110
|
-
set tenant(val) {
|
|
111
|
-
this._tenant = val;
|
|
112
|
-
this._setTenant(val);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
get env() { return this._env }
|
|
116
|
-
_env = null
|
|
117
|
-
set env(val) {
|
|
118
|
-
this._env = val;
|
|
119
|
-
this._setEnv(val);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
get locale() { return this._locale }
|
|
123
|
-
_locale = null
|
|
124
|
-
set locale(val) {
|
|
125
|
-
this._locale = val;
|
|
126
|
-
this._setLocale(val);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
108
|
get localizationDictionary() { return this._localizationDictionary }
|
|
130
109
|
_localizationDictionary
|
|
131
110
|
set localizationDictionary(val) {
|
|
@@ -217,9 +196,6 @@ export class FaceSDK {
|
|
|
217
196
|
async _onInit() {
|
|
218
197
|
this._version = await this._getVersion()
|
|
219
198
|
this._serviceUrl = await this._getServiceUrl()
|
|
220
|
-
this._tenant = await this._getTenant();
|
|
221
|
-
this._env = await this._getEnv();
|
|
222
|
-
this._locale = await this._getLocale();
|
|
223
199
|
}
|
|
224
200
|
|
|
225
201
|
async _getVersion() {
|
|
@@ -235,30 +211,6 @@ export class FaceSDK {
|
|
|
235
211
|
exec("setServiceUrl", [url])
|
|
236
212
|
}
|
|
237
213
|
|
|
238
|
-
async _getTenant() {
|
|
239
|
-
return await exec("getTenant", []);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
_setTenant(tenant) {
|
|
243
|
-
exec("setTenant", [tenant]);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
async _getEnv() {
|
|
247
|
-
return await exec("getEnv", []);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
_setEnv(env) {
|
|
251
|
-
exec("setEnv", [env]);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
async _getLocale() {
|
|
255
|
-
return await exec("getLocale", []);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
_setLocale(locale) {
|
|
259
|
-
exec("setLocale", [locale]);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
214
|
_setLocalizationDictionary(dictionary) {
|
|
263
215
|
exec("setLocalizationDictionary", [dictionary])
|
|
264
216
|
}
|
|
@@ -3,7 +3,6 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
-
tag
|
|
7
6
|
detectAll
|
|
8
7
|
outputImageParams
|
|
9
8
|
|
|
@@ -12,7 +11,6 @@ export class SearchPersonRequest {
|
|
|
12
11
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
13
12
|
this.threshold = params?.threshold
|
|
14
13
|
this.limit = params?.limit
|
|
15
|
-
this.tag = params?.tag
|
|
16
14
|
this.detectAll = params?.detectAll ?? false
|
|
17
15
|
this.outputImageParams = params?.outputImageParams
|
|
18
16
|
}
|
package/www/cordova.js
CHANGED
|
@@ -2163,27 +2163,6 @@ class FaceSDK {
|
|
|
2163
2163
|
this._setServiceUrl(val)
|
|
2164
2164
|
}
|
|
2165
2165
|
|
|
2166
|
-
get tenant() { return this._tenant }
|
|
2167
|
-
_tenant = null
|
|
2168
|
-
set tenant(val) {
|
|
2169
|
-
this._tenant = val;
|
|
2170
|
-
this._setTenant(val);
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
get env() { return this._env }
|
|
2174
|
-
_env = null
|
|
2175
|
-
set env(val) {
|
|
2176
|
-
this._env = val;
|
|
2177
|
-
this._setEnv(val);
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
get locale() { return this._locale }
|
|
2181
|
-
_locale = null
|
|
2182
|
-
set locale(val) {
|
|
2183
|
-
this._locale = val;
|
|
2184
|
-
this._setLocale(val);
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
2166
|
get localizationDictionary() { return this._localizationDictionary }
|
|
2188
2167
|
_localizationDictionary
|
|
2189
2168
|
set localizationDictionary(val) {
|
|
@@ -2275,9 +2254,6 @@ class FaceSDK {
|
|
|
2275
2254
|
async _onInit() {
|
|
2276
2255
|
this._version = await this._getVersion()
|
|
2277
2256
|
this._serviceUrl = await this._getServiceUrl()
|
|
2278
|
-
this._tenant = await this._getTenant();
|
|
2279
|
-
this._env = await this._getEnv();
|
|
2280
|
-
this._locale = await this._getLocale();
|
|
2281
2257
|
}
|
|
2282
2258
|
|
|
2283
2259
|
async _getVersion() {
|
|
@@ -2293,30 +2269,6 @@ class FaceSDK {
|
|
|
2293
2269
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
|
|
2294
2270
|
}
|
|
2295
2271
|
|
|
2296
|
-
async _getTenant() {
|
|
2297
|
-
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getTenant", []);
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
_setTenant(tenant) {
|
|
2301
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setTenant", [tenant]);
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
async _getEnv() {
|
|
2305
|
-
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getEnv", []);
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
_setEnv(env) {
|
|
2309
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setEnv", [env]);
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
async _getLocale() {
|
|
2313
|
-
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getLocale", []);
|
|
2314
|
-
}
|
|
2315
|
-
|
|
2316
|
-
_setLocale(locale) {
|
|
2317
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocale", [locale]);
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
2272
|
_setLocalizationDictionary(dictionary) {
|
|
2321
2273
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
|
|
2322
2274
|
}
|
|
@@ -3742,7 +3694,6 @@ class SearchPersonRequest {
|
|
|
3742
3694
|
groupIdsForSearch
|
|
3743
3695
|
threshold
|
|
3744
3696
|
limit
|
|
3745
|
-
tag
|
|
3746
3697
|
detectAll
|
|
3747
3698
|
outputImageParams
|
|
3748
3699
|
|
|
@@ -3751,7 +3702,6 @@ class SearchPersonRequest {
|
|
|
3751
3702
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
3752
3703
|
this.threshold = params?.threshold
|
|
3753
3704
|
this.limit = params?.limit
|
|
3754
|
-
this.tag = params?.tag
|
|
3755
3705
|
this.detectAll = params?.detectAll ?? false
|
|
3756
3706
|
this.outputImageParams = params?.outputImageParams
|
|
3757
3707
|
}
|
|
@@ -105,27 +105,6 @@ export class FaceSDK {
|
|
|
105
105
|
this._setServiceUrl(val)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
get tenant() { return this._tenant }
|
|
109
|
-
_tenant = null
|
|
110
|
-
set tenant(val) {
|
|
111
|
-
this._tenant = val;
|
|
112
|
-
this._setTenant(val);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
get env() { return this._env }
|
|
116
|
-
_env = null
|
|
117
|
-
set env(val) {
|
|
118
|
-
this._env = val;
|
|
119
|
-
this._setEnv(val);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
get locale() { return this._locale }
|
|
123
|
-
_locale = null
|
|
124
|
-
set locale(val) {
|
|
125
|
-
this._locale = val;
|
|
126
|
-
this._setLocale(val);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
108
|
get localizationDictionary() { return this._localizationDictionary }
|
|
130
109
|
_localizationDictionary
|
|
131
110
|
set localizationDictionary(val) {
|
|
@@ -217,9 +196,6 @@ export class FaceSDK {
|
|
|
217
196
|
async _onInit() {
|
|
218
197
|
this._version = await this._getVersion()
|
|
219
198
|
this._serviceUrl = await this._getServiceUrl()
|
|
220
|
-
this._tenant = await this._getTenant();
|
|
221
|
-
this._env = await this._getEnv();
|
|
222
|
-
this._locale = await this._getLocale();
|
|
223
199
|
}
|
|
224
200
|
|
|
225
201
|
async _getVersion() {
|
|
@@ -235,30 +211,6 @@ export class FaceSDK {
|
|
|
235
211
|
exec("setServiceUrl", [url])
|
|
236
212
|
}
|
|
237
213
|
|
|
238
|
-
async _getTenant() {
|
|
239
|
-
return await exec("getTenant", []);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
_setTenant(tenant) {
|
|
243
|
-
exec("setTenant", [tenant]);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
async _getEnv() {
|
|
247
|
-
return await exec("getEnv", []);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
_setEnv(env) {
|
|
251
|
-
exec("setEnv", [env]);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
async _getLocale() {
|
|
255
|
-
return await exec("getLocale", []);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
_setLocale(locale) {
|
|
259
|
-
exec("setLocale", [locale]);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
214
|
_setLocalizationDictionary(dictionary) {
|
|
263
215
|
exec("setLocalizationDictionary", [dictionary])
|
|
264
216
|
}
|
|
@@ -3,7 +3,6 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
-
tag
|
|
7
6
|
detectAll
|
|
8
7
|
outputImageParams
|
|
9
8
|
|
|
@@ -12,7 +11,6 @@ export class SearchPersonRequest {
|
|
|
12
11
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
13
12
|
this.threshold = params?.threshold
|
|
14
13
|
this.limit = params?.limit
|
|
15
|
-
this.tag = params?.tag
|
|
16
14
|
this.detectAll = params?.detectAll ?? false
|
|
17
15
|
this.outputImageParams = params?.outputImageParams
|
|
18
16
|
}
|
package/www/types/index.d.ts
CHANGED
|
@@ -97,18 +97,6 @@ export class FaceSDK {
|
|
|
97
97
|
get serviceUrl(): string | null
|
|
98
98
|
set serviceUrl(val: string | null)
|
|
99
99
|
|
|
100
|
-
/** Customer name. */
|
|
101
|
-
tenant: string | null;
|
|
102
|
-
|
|
103
|
-
/** Environment type. */
|
|
104
|
-
env: string | null;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Custom language locale code of DocumentReaderSDK.
|
|
108
|
-
* If empty or doesn't exist - app language is used. Format "en-US" or "en".
|
|
109
|
-
*/
|
|
110
|
-
locale: string | null;
|
|
111
|
-
|
|
112
100
|
/**
|
|
113
101
|
* A localization dictionary to override default localization logic.
|
|
114
102
|
* Allows to replace any string of FaceSDK with an arbitrary string.
|
|
@@ -20,9 +20,6 @@ export class SearchPersonRequest {
|
|
|
20
20
|
* @param params.limit - The number of returned Persons limit.
|
|
21
21
|
* Default: 100.
|
|
22
22
|
*
|
|
23
|
-
* @param tag - Defines tag that can be used in search request.
|
|
24
|
-
* Default: null.
|
|
25
|
-
*
|
|
26
23
|
* @param params.detectAll - Whether to process only the one face on the image or all the faces.
|
|
27
24
|
* Default: `false`.
|
|
28
25
|
*
|
|
@@ -35,7 +32,6 @@ export class SearchPersonRequest {
|
|
|
35
32
|
groupIdsForSearch?: string[],
|
|
36
33
|
threshold?: number,
|
|
37
34
|
limit?: number,
|
|
38
|
-
tag?: string,
|
|
39
35
|
detectAll?: boolean,
|
|
40
36
|
outputImageParams?: OutputImageParams
|
|
41
37
|
}
|