-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from getyoti/release/3.18.0
Release/3.18.0
- Loading branch information
Showing
74 changed files
with
3,048 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "yoti", | ||
"version": "3.17.0", | ||
"version": "3.18.0", | ||
"description": "Yoti NodeJS SDK for back-end integration", | ||
"author": "Yoti LTD <[email protected]> (https://www.yoti.com/developers)", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/doc_scan_service/session/create/check/requested.ca.matching.strategy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use strict'; | ||
|
||
const Validation = require('../../../../yoti_common/validation'); | ||
/** | ||
* | ||
* @class RequestedCaMatchingStrategy | ||
*/ | ||
class RequestedCaMatchingStrategy { | ||
constructor(type) { | ||
if (new.target === RequestedCaMatchingStrategy) { | ||
throw TypeError('RequestedCaMatchingStrategy cannot be instantiated'); | ||
} | ||
|
||
Validation.notNullOrEmpty(type, 'type'); | ||
Validation.isString(type, 'type'); | ||
this.type = type; | ||
} | ||
} | ||
|
||
module.exports = RequestedCaMatchingStrategy; |
20 changes: 20 additions & 0 deletions
20
src/doc_scan_service/session/create/check/requested.ca.sources.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use strict'; | ||
|
||
const Validation = require('../../../../yoti_common/validation'); | ||
/** | ||
* | ||
* @class RequestedCaSources | ||
*/ | ||
class RequestedCaSources { | ||
constructor(type) { | ||
if (new.target === RequestedCaSources) { | ||
throw TypeError('RequestedCaSources cannot be instantiated'); | ||
} | ||
|
||
Validation.notNullOrEmpty(type, 'type'); | ||
Validation.isString(type, 'type'); | ||
this.type = type; | ||
} | ||
} | ||
|
||
module.exports = RequestedCaSources; |
90 changes: 90 additions & 0 deletions
90
...ice/session/create/check/requested.custom.account.watchlist.advanced.ca.config.builder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
'use strict'; | ||
|
||
const Validation = require('../../../../yoti_common/validation'); | ||
const RequestedCustomAccountWatchlistAdvancedCaConfig = require('./requested.custom.account.watchlist.advanced.ca.config'); | ||
const RequestedWatchlistAdvancedCaConfigBuilder = require('./requested.watchlist.advanced.ca.config.builder'); | ||
|
||
/** | ||
* Builder to assist creation of {@link RequestedCustomAccountWatchlistAdvancedCaConfig}. | ||
* | ||
* @class RequestedWatchlistScreeningConfig | ||
*/ | ||
// eslint-disable-next-line max-len | ||
class RequestedCustomAccountWatchlistAdvancedCaConfigBuilder extends RequestedWatchlistAdvancedCaConfigBuilder { | ||
/** | ||
* Sets monitoring used for custom account watchlist advanced ca | ||
* | ||
* @param apiKey {string} | ||
* | ||
* @returns {this} | ||
*/ | ||
withApiKey(apiKey) { | ||
Validation.notNullOrEmpty(apiKey, 'apiKey'); | ||
Validation.isString(apiKey, 'apiKey'); | ||
this.apiKey = apiKey; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets monitoring used for custom account watchlist advanced ca | ||
* | ||
* @param monitoring {boolean} | ||
* | ||
* @returns {this} | ||
*/ | ||
withMonitoring(monitoring) { | ||
Validation.isBoolean(monitoring, 'monitoring'); | ||
this.monitoring = monitoring; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets tags used for custom account watchlist advanced ca | ||
* | ||
* @param tags {object} | ||
* | ||
* @returns {this} | ||
*/ | ||
withTags(tags) { | ||
Validation.isPlainObject(tags, 'tags'); | ||
Validation.isArrayOfStrings(Object.keys(tags), 'tags.keys'); | ||
Object.keys(tags).forEach((key) => { | ||
Validation.notNull(tags[key], `tags.${key}`); | ||
}); | ||
this.tags = tags; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets monitoring used for custom account watchlist advanced ca | ||
* | ||
* @param clientRef {string} | ||
* | ||
* @returns {this} | ||
*/ | ||
withClientRef(clientRef) { | ||
Validation.notNullOrEmpty(clientRef, 'clientRef'); | ||
Validation.isString(clientRef, 'clientRef'); | ||
this.clientRef = clientRef; | ||
return this; | ||
} | ||
|
||
/** | ||
* | ||
* @return {RequestedCustomAccountWatchlistAdvancedCaConfig} | ||
*/ | ||
build() { | ||
return new RequestedCustomAccountWatchlistAdvancedCaConfig( | ||
this.removeDeceased, | ||
this.shareUrl, | ||
this.sources, | ||
this.matchingStrategy, | ||
this.apiKey, | ||
this.monitoring, | ||
this.tags, | ||
this.clientRef | ||
); | ||
} | ||
} | ||
|
||
module.exports = RequestedCustomAccountWatchlistAdvancedCaConfigBuilder; |
Oops, something went wrong.