@regulaforensics/face-sdk 7.1.407-rc → 7.1.419-nightly
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 +2 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +18 -0
- 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 +0 -1
- package/ios/RFSWJSONConstructor.m +5 -14
- package/ios/RFSWMain.m +30 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/index.js +48 -0
- package/www/capacitor/person_database/search_person_request.js +2 -0
- package/www/cordova.js +50 -0
- package/www/react-native/index.js +48 -0
- package/www/react-native/person_database/search_person_request.js +2 -0
- package/www/types/index.d.ts +12 -0
- package/www/types/person_database/search_person_request.d.ts +4 -0
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.419-nightly'
|
|
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 'FaceSDKNightly', '7.1.3016'
|
|
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/Nightly"
|
|
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.1.3926'){
|
|
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/Nightly"
|
|
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.1.3926'){
|
|
16
16
|
transitive = true
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -833,6 +833,7 @@ 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")
|
|
836
837
|
imageUpload = imageUploadFromJSON(it.getJSONObjectOrNull("imageUpload"))
|
|
837
838
|
isDetectAll = it.optBoolean("detectAll", false)
|
|
838
839
|
outputImageParams = outputImageParamsFromJSON(it.getJSONObjectOrNull("outputImageParams"))
|
|
@@ -843,6 +844,7 @@ fun generateSearchPersonRequest(it: SearchPersonRequest) = mapOf(
|
|
|
843
844
|
"groupIdsForSearch" to it.groupIdsForSearch.toJson(),
|
|
844
845
|
"threshold" to it.threshold,
|
|
845
846
|
"limit" to it.limit,
|
|
847
|
+
"tag" to it.tag,
|
|
846
848
|
"imageUpload" to generateImageUpload(it.imageUpload),
|
|
847
849
|
"detectAll" to it.isDetectAll,
|
|
848
850
|
"outputImageParams" to generateOutputImageParams(it.outputImageParams)
|
|
@@ -30,6 +30,12 @@ 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))
|
|
33
39
|
"setLocalizationDictionary" -> setLocalizationDictionary(args(0))
|
|
34
40
|
"setRequestHeaders" -> setRequestHeaders(args(0))
|
|
35
41
|
"setCustomization" -> setCustomization(args(0))
|
|
@@ -81,6 +87,18 @@ fun getServiceUrl(callback: Callback) = callback(Instance().serviceUrl)
|
|
|
81
87
|
|
|
82
88
|
fun setServiceUrl(url: String?) = url.let { Instance().serviceUrl = it }
|
|
83
89
|
|
|
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
|
+
|
|
84
102
|
fun setLocalizationDictionary(dictionary: JSONObject) {
|
|
85
103
|
localizationCallbacks = LocalizationCallbacks { if (dictionary.has(it)) dictionary.getString(it) else null }
|
|
86
104
|
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.419-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.244-nightly",
|
|
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.419-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.244-nightly",
|
|
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.419-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.244-nightly",
|
|
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.419-nightly",
|
|
12
|
+
"@regulaforensics/face-core-basic": "7.1.244-nightly",
|
|
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,7 +52,6 @@
|
|
|
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;
|
|
56
55
|
+(NSDictionary<NSString*, id>* _Nonnull)generateFaceSDKVersion:(RFSFaceSDKVersion* _Nonnull)input;
|
|
57
56
|
|
|
58
57
|
+(RFSInitializationConfiguration* _Nonnull)initConfigFromJSON:(id _Nonnull)input;
|
|
@@ -203,17 +203,7 @@
|
|
|
203
203
|
return result;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
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
|
-
|
|
206
|
+
// No fromJSON and no tests for FaceSDKVersion because of its implementation.
|
|
217
207
|
+(id)generateFaceSDKVersion:(RFSFaceSDKVersion*)input {
|
|
218
208
|
if (!input) return [NSNull null];
|
|
219
209
|
NSMutableDictionary* result = @{}.mutableCopy;
|
|
@@ -291,9 +281,9 @@
|
|
|
291
281
|
|
|
292
282
|
+(id)livenessResponseFromJSON:(NSDictionary*)input {
|
|
293
283
|
RFSLivenessResponse* result = [RFSLivenessResponse alloc];
|
|
294
|
-
SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:
|
|
284
|
+
SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:image:error:");
|
|
295
285
|
IMP imp = [result methodForSelector:sel];
|
|
296
|
-
void (*func)(id, SEL, id, id, id, NSInteger, id, id
|
|
286
|
+
void (*func)(id, SEL, id, id, id, NSInteger, id, id) = (void *)imp;
|
|
297
287
|
func(result,
|
|
298
288
|
sel,
|
|
299
289
|
input[@"tag"],
|
|
@@ -301,7 +291,6 @@
|
|
|
301
291
|
input[@"estimatedAge"],
|
|
302
292
|
[input[@"liveness"] integerValue],
|
|
303
293
|
[self imageWithBase64:input[@"image"]],
|
|
304
|
-
[self imageWithBase64:input[@"image"]],
|
|
305
294
|
nil);
|
|
306
295
|
return result;
|
|
307
296
|
}
|
|
@@ -893,6 +882,7 @@
|
|
|
893
882
|
imageUpload:[self imageUploadFromJSON:input[@"imageUpload"]]];
|
|
894
883
|
result.threshold = input[@"threshold"];
|
|
895
884
|
result.limit = input[@"limit"];
|
|
885
|
+
result.tag = input[@"tag"];
|
|
896
886
|
if (input[@"detectAll"] && ![input[@"detectAll"] isEqual:[NSNull null]]) result.detectAll = [input[@"detectAll"] boolValue];
|
|
897
887
|
result.outputImageParams = [self outputImageParamsFromJSON:input[@"outputImageParams"]];
|
|
898
888
|
return result;
|
|
@@ -906,6 +896,7 @@
|
|
|
906
896
|
}.mutableCopy;
|
|
907
897
|
if (input.threshold) result[@"threshold"] = input.threshold;
|
|
908
898
|
if (input.limit) result[@"limit"] = input.limit;
|
|
899
|
+
if (input.tag) result[@"tag"] = input.tag;
|
|
909
900
|
if (input.groupIdsForSearch) result[@"groupIdsForSearch"] = input.groupIdsForSearch;
|
|
910
901
|
if (input.outputImageParams) result[@"outputImageParams"] = [self generateOutputImageParams:input.outputImageParams];
|
|
911
902
|
return result;
|
package/ios/RFSWMain.m
CHANGED
|
@@ -9,6 +9,12 @@
|
|
|
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]]; },
|
|
12
18
|
@"setLocalizationDictionary": ^{ [self setLocalizationDictionary :args[0]]; },
|
|
13
19
|
@"setRequestHeaders": ^{ [self setRequestHeaders :args[0]]; },
|
|
14
20
|
@"setCustomization": ^{ [self setCustomization :args[0]]; },
|
|
@@ -64,6 +70,30 @@ static NSDictionary* headers;
|
|
|
64
70
|
callback(@"");
|
|
65
71
|
}
|
|
66
72
|
|
|
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
|
+
|
|
67
97
|
+(void)setLocalizationDictionary:(NSDictionary*)dictionary {
|
|
68
98
|
RFSFaceSDK.service.localizationHandler = ^NSString* (NSString* localizationKey) {
|
|
69
99
|
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.419-nightly",
|
|
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.419-nightly" 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="FaceSDKNightly" spec="7.1.3016" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/www/capacitor/index.js
CHANGED
|
@@ -105,6 +105,27 @@ 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
|
+
|
|
108
129
|
get localizationDictionary() { return this._localizationDictionary }
|
|
109
130
|
_localizationDictionary
|
|
110
131
|
set localizationDictionary(val) {
|
|
@@ -196,6 +217,9 @@ export class FaceSDK {
|
|
|
196
217
|
async _onInit() {
|
|
197
218
|
this._version = await this._getVersion()
|
|
198
219
|
this._serviceUrl = await this._getServiceUrl()
|
|
220
|
+
this._tenant = await this._getTenant();
|
|
221
|
+
this._env = await this._getEnv();
|
|
222
|
+
this._locale = await this._getLocale();
|
|
199
223
|
}
|
|
200
224
|
|
|
201
225
|
async _getVersion() {
|
|
@@ -211,6 +235,30 @@ export class FaceSDK {
|
|
|
211
235
|
exec("setServiceUrl", [url])
|
|
212
236
|
}
|
|
213
237
|
|
|
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
|
+
|
|
214
262
|
_setLocalizationDictionary(dictionary) {
|
|
215
263
|
exec("setLocalizationDictionary", [dictionary])
|
|
216
264
|
}
|
|
@@ -3,6 +3,7 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
+
tag
|
|
6
7
|
detectAll
|
|
7
8
|
outputImageParams
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export class SearchPersonRequest {
|
|
|
11
12
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
13
|
this.threshold = params?.threshold
|
|
13
14
|
this.limit = params?.limit
|
|
15
|
+
this.tag = params?.tag
|
|
14
16
|
this.detectAll = params?.detectAll ?? false
|
|
15
17
|
this.outputImageParams = params?.outputImageParams
|
|
16
18
|
}
|
package/www/cordova.js
CHANGED
|
@@ -2163,6 +2163,27 @@ 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
|
+
|
|
2166
2187
|
get localizationDictionary() { return this._localizationDictionary }
|
|
2167
2188
|
_localizationDictionary
|
|
2168
2189
|
set localizationDictionary(val) {
|
|
@@ -2254,6 +2275,9 @@ class FaceSDK {
|
|
|
2254
2275
|
async _onInit() {
|
|
2255
2276
|
this._version = await this._getVersion()
|
|
2256
2277
|
this._serviceUrl = await this._getServiceUrl()
|
|
2278
|
+
this._tenant = await this._getTenant();
|
|
2279
|
+
this._env = await this._getEnv();
|
|
2280
|
+
this._locale = await this._getLocale();
|
|
2257
2281
|
}
|
|
2258
2282
|
|
|
2259
2283
|
async _getVersion() {
|
|
@@ -2269,6 +2293,30 @@ class FaceSDK {
|
|
|
2269
2293
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
|
|
2270
2294
|
}
|
|
2271
2295
|
|
|
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
|
+
|
|
2272
2320
|
_setLocalizationDictionary(dictionary) {
|
|
2273
2321
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
|
|
2274
2322
|
}
|
|
@@ -3694,6 +3742,7 @@ class SearchPersonRequest {
|
|
|
3694
3742
|
groupIdsForSearch
|
|
3695
3743
|
threshold
|
|
3696
3744
|
limit
|
|
3745
|
+
tag
|
|
3697
3746
|
detectAll
|
|
3698
3747
|
outputImageParams
|
|
3699
3748
|
|
|
@@ -3702,6 +3751,7 @@ class SearchPersonRequest {
|
|
|
3702
3751
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
3703
3752
|
this.threshold = params?.threshold
|
|
3704
3753
|
this.limit = params?.limit
|
|
3754
|
+
this.tag = params?.tag
|
|
3705
3755
|
this.detectAll = params?.detectAll ?? false
|
|
3706
3756
|
this.outputImageParams = params?.outputImageParams
|
|
3707
3757
|
}
|
|
@@ -105,6 +105,27 @@ 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
|
+
|
|
108
129
|
get localizationDictionary() { return this._localizationDictionary }
|
|
109
130
|
_localizationDictionary
|
|
110
131
|
set localizationDictionary(val) {
|
|
@@ -196,6 +217,9 @@ export class FaceSDK {
|
|
|
196
217
|
async _onInit() {
|
|
197
218
|
this._version = await this._getVersion()
|
|
198
219
|
this._serviceUrl = await this._getServiceUrl()
|
|
220
|
+
this._tenant = await this._getTenant();
|
|
221
|
+
this._env = await this._getEnv();
|
|
222
|
+
this._locale = await this._getLocale();
|
|
199
223
|
}
|
|
200
224
|
|
|
201
225
|
async _getVersion() {
|
|
@@ -211,6 +235,30 @@ export class FaceSDK {
|
|
|
211
235
|
exec("setServiceUrl", [url])
|
|
212
236
|
}
|
|
213
237
|
|
|
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
|
+
|
|
214
262
|
_setLocalizationDictionary(dictionary) {
|
|
215
263
|
exec("setLocalizationDictionary", [dictionary])
|
|
216
264
|
}
|
|
@@ -3,6 +3,7 @@ export class SearchPersonRequest {
|
|
|
3
3
|
groupIdsForSearch
|
|
4
4
|
threshold
|
|
5
5
|
limit
|
|
6
|
+
tag
|
|
6
7
|
detectAll
|
|
7
8
|
outputImageParams
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export class SearchPersonRequest {
|
|
|
11
12
|
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
13
|
this.threshold = params?.threshold
|
|
13
14
|
this.limit = params?.limit
|
|
15
|
+
this.tag = params?.tag
|
|
14
16
|
this.detectAll = params?.detectAll ?? false
|
|
15
17
|
this.outputImageParams = params?.outputImageParams
|
|
16
18
|
}
|
package/www/types/index.d.ts
CHANGED
|
@@ -97,6 +97,18 @@ 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
|
+
|
|
100
112
|
/**
|
|
101
113
|
* A localization dictionary to override default localization logic.
|
|
102
114
|
* Allows to replace any string of FaceSDK with an arbitrary string.
|
|
@@ -20,6 +20,9 @@ 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
|
+
*
|
|
23
26
|
* @param params.detectAll - Whether to process only the one face on the image or all the faces.
|
|
24
27
|
* Default: `false`.
|
|
25
28
|
*
|
|
@@ -32,6 +35,7 @@ export class SearchPersonRequest {
|
|
|
32
35
|
groupIdsForSearch?: string[],
|
|
33
36
|
threshold?: number,
|
|
34
37
|
limit?: number,
|
|
38
|
+
tag?: string,
|
|
35
39
|
detectAll?: boolean,
|
|
36
40
|
outputImageParams?: OutputImageParams
|
|
37
41
|
}
|