@sheerid/jslib
Preparing search index...
VerificationServiceFunctions
Interface VerificationServiceFunctions<T>
interface
VerificationServiceFunctions
<
T
extends
ViewModel
=
ViewModel
>
{
dispatch
?:
Dispatch
;
fetchExistingVerificationRequest
:
(
programId
:
string
,
verificationId
:
string
,
previousVerificationResponse
?:
VerificationResponse
,
previousViewModel
?:
T
,
needsLoading
?:
boolean
,
)
=>
Promise
<
object
>
;
fetchNewVerificationRequest
:
(
programId
:
string
,
segment
:
Segment
,
previousViewModel
:
T
,
trackingId
?:
string
,
forceNewVerificationRequest
?:
boolean
,
)
=>
Promise
<
object
>
;
resetState
:
()
=>
void
;
submitStep
:
(
stepName
:
VerificationStep
,
viewModel
:
T
,
previousResponse
:
VerificationResponse
,
)
=>
Promise
<
object
>
;
updateFieldValidationErrors
:
(
fieldValidationErrors
:
FieldValidationErrors
,
)
=>
void
;
updateLocale
:
(
locale
:
|
"es"
|
"id"
|
"is"
|
"no"
|
"ar"
|
"bg"
|
"bn-IN"
|
"cs"
|
"da"
|
"de"
|
"el"
|
"en-GB"
|
"en-US"
|
"es-ES"
|
"fi"
|
"fr-CA"
|
"fr"
|
"ga"
|
"hi-IN"
|
"hr"
|
"hu"
|
"it"
|
"iw"
|
"ja"
|
"ko"
|
"lo"
|
"lt"
|
"ms"
|
"nl"
|
"nl-BE"
|
"pl"
|
"pt-BR"
|
"pt"
|
"ro"
|
"ru"
|
"sk"
|
"sl"
|
"sr"
|
"sv"
|
"sw"
|
"uk"
|
"ur"
|
"vi"
|
"th"
|
"tr"
|
"zh-HK"
|
"zh"
|
"zu"
,
segment
:
Segment
,
)
=>
void
;
updateProgramTheme
:
(
programTheme
:
ProgramTheme
)
=>
void
;
updateViewModel
:
<
Opts
extends
Partial
<
ViewModelUpdateOptions
>
=
{
externalUserIdCheck
:
false
;
metadataCheck
:
false
;
partial
:
false
;
}
,
>
(
viewModel
:
Opts
[
"partial"
]
extends
true
?
Partial
<
T
>
:
T
,
options
?:
Opts
,
)
=>
void
;
}
Type Parameters
T
extends
ViewModel
=
ViewModel
Index
Properties
dispatch?
fetch
Existing
Verification
Request
fetch
New
Verification
Request
reset
State
submit
Step
update
Field
Validation
Errors
update
Locale
update
Program
Theme
update
View
Model
Properties
Optional
Readonly
dispatch
dispatch
?:
Dispatch
Readonly
fetch
Existing
Verification
Request
fetchExistingVerificationRequest
:
(
programId
:
string
,
verificationId
:
string
,
previousVerificationResponse
?:
VerificationResponse
,
previousViewModel
?:
T
,
needsLoading
?:
boolean
,
)
=>
Promise
<
object
>
Readonly
fetch
New
Verification
Request
fetchNewVerificationRequest
:
(
programId
:
string
,
segment
:
Segment
,
previousViewModel
:
T
,
trackingId
?:
string
,
forceNewVerificationRequest
?:
boolean
,
)
=>
Promise
<
object
>
Readonly
reset
State
resetState
:
()
=>
void
Readonly
submit
Step
submitStep
:
(
stepName
:
VerificationStep
,
viewModel
:
T
,
previousResponse
:
VerificationResponse
,
)
=>
Promise
<
object
>
Readonly
update
Field
Validation
Errors
updateFieldValidationErrors
:
(
fieldValidationErrors
:
FieldValidationErrors
,
)
=>
void
Readonly
update
Locale
updateLocale
:
(
locale
:
|
"es"
|
"id"
|
"is"
|
"no"
|
"ar"
|
"bg"
|
"bn-IN"
|
"cs"
|
"da"
|
"de"
|
"el"
|
"en-GB"
|
"en-US"
|
"es-ES"
|
"fi"
|
"fr-CA"
|
"fr"
|
"ga"
|
"hi-IN"
|
"hr"
|
"hu"
|
"it"
|
"iw"
|
"ja"
|
"ko"
|
"lo"
|
"lt"
|
"ms"
|
"nl"
|
"nl-BE"
|
"pl"
|
"pt-BR"
|
"pt"
|
"ro"
|
"ru"
|
"sk"
|
"sl"
|
"sr"
|
"sv"
|
"sw"
|
"uk"
|
"ur"
|
"vi"
|
"th"
|
"tr"
|
"zh-HK"
|
"zh"
|
"zu"
,
segment
:
Segment
,
)
=>
void
Readonly
update
Program
Theme
updateProgramTheme
:
(
programTheme
:
ProgramTheme
)
=>
void
Readonly
update
View
Model
updateViewModel
:
<
Opts
extends
Partial
<
ViewModelUpdateOptions
>
=
{
externalUserIdCheck
:
false
;
metadataCheck
:
false
;
partial
:
false
;
}
,
>
(
viewModel
:
Opts
[
"partial"
]
extends
true
?
Partial
<
T
>
:
T
,
options
?:
Opts
,
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dispatch
fetch
Existing
Verification
Request
fetch
New
Verification
Request
reset
State
submit
Step
update
Field
Validation
Errors
update
Locale
update
Program
Theme
update
View
Model
@sheerid/jslib
Loading...