adHocId |
adHocId()
|
Returns :
string
|
assert | |||||||||||||||
assert(x, e, context?, cause?)
|
|||||||||||||||
Parameters :
|
assertMap | ||||
assertMap(x)
|
||||
Parameters :
Returns :
Map<KEY | VALUE>
|
assertProperty | ||||||||||||
assertProperty(x, keys: PropertyNames, message?: string)
|
||||||||||||
Checks if all keys are property names of given object x. Works as a typeguard assertig that properties to all the keys exist. Will throw an error if a property is missing -- unlike has.
Parameters :
|
b64DecodeUnicode | ||||||
b64DecodeUnicode(str: string)
|
||||||
Decode base64 string into utf-8
Parameters :
Returns :
string
|
b64EncodeUnicode | ||||||
b64EncodeUnicode(str: string)
|
||||||
Encode a utf-8 string as base64
Parameters :
Returns :
string
|
camel2Underscore | ||||||
camel2Underscore(str: string)
|
||||||
Parameters :
Returns :
string
|
cycleString | ||||||
cycleString(str: string)
|
||||||
Parameters :
Returns :
string
|
deflateObject |
deflateObject(obj, path: string, recursionCount: number)
|
Needs documentation :D obj, 'PROP1.PROP2' -> obj.PROP1.PROP2
Returns :
NestedRecord | T | undefined
|
fallbackPromise | |||||||||
fallbackPromise(ms: number, data?: T)
|
|||||||||
Returns a promise, that will resolve after a given number of milliseconds with optionally provided data. Meant to be used in Promise.race in conjunction with other promises, that are prone to never resolve.
Parameters :
Returns :
Promise<T>
|
flattenErrors | ||||
flattenErrors(callback)
|
||||
Use isErrorFree() instead
Parameters :
Returns :
boolean
|
gcd | ||||
gcd(...numbers: undefined)
|
||||
Find the greatest common divisor. *
Parameters :
Returns :
number
|
getDecimalPlaces | ||||
getDecimalPlaces(num)
|
||||
Counts the number of decimal places
Parameters :
Returns :
number
Number of decimal places if a single number is provides. If an array of number is provided, returns the the maximum of the individual results. |
getFallbackPromise | |||||||||
getFallbackPromise(ms: number, data?: T)
|
|||||||||
Returns a promise, that will resolve after a given number of milliseconds with optionally provided data. Meant to be used in Promise.race in conjunction with other promises, that are prone to never resolve.
Parameters :
Returns :
Promise<T>
|
getTimeoutPromise |
getTimeoutPromise(ms: number, message?: string)
|
Returns a promise that will never resolve, but reject after the given number of milliseconds with an optional message. Meant to be used in Promise.race in conjunction with other promises, that are prone to never resolve.
Returns :
Promise<void>
|
has | |||||||||
has(x, ...keys: PropertyNames)
|
|||||||||
Checks if all keys are property names of given object x. Works as a typeguard assertig that properties to all the keys exist. Will return false if a proerty is missing-- unlike assertProperties.
Parameters :
|
hasErrors | |||||||||
hasErrors(callback, log_errors)
|
|||||||||
Checks if callback throws any errors; returns true if so.
Parameters :
Returns :
boolean
|
inflateObject |
inflateObject(obj, path: string, recursionCount: number)
|
Needs documentation :D obj, 'PROP1.PROP2' -> { PROP1: { PROP2: obj }}
Returns :
NestedRecord<T>
|
isErrorFree | |||||||||
isErrorFree(callback, log_errors)
|
|||||||||
Checks if callback throws any errors; returns true if not.
Parameters :
Returns :
boolean
|
isNestedRecord | ||||||
isNestedRecord(x, type)
|
||||||
Parameters :
Returns :
NestedRecord<T>
|
log | ||||
log(...args: undefined)
|
||||
Parameters :
|
mapSort | ||||||
mapSort(map, sort)
|
||||||
Parameters :
Returns :
number
|
mergeObjects | ||||||||
mergeObjects(obj1, obj2, recursionCount?)
|
||||||||
Needs documentation -.-
Parameters :
Returns :
NestedRecord<T>
|
mergeObjects | ||||||||||||
mergeObjects(obj1, obj2, recursionCount?: number)
|
||||||||||||
Parameters :
Returns :
NestedRecord | T
|
round |
round(num: number, decimal_places: number)
|
Round a number to a given number of decimal places.
Returns :
number
|
sortByKeyFn | ||||||||||||
sortByKeyFn(key: string, secondary_key)
|
||||||||||||
Returs a sorting function to be used in Array.sort(). Objects will be sorted by their property mathching the first parameter. If a second paramter is given, the property matching it will be used as secondary sort criterium. Values will be sorted by biEndSortFn. If a property turns out to be a function, the function will be called and its return value used for sorting.
Parameters :
Returns :
| "0" | "1"
|
throwError | ||||||||
throwError(e, offender?, context?)
|
||||||||
Throws an error and logs extra information.
Also unlike normal throw it can be used after a return statement:
Parameters :
Returns :
never
|
timeoutPromise |
timeoutPromise(ms: number, message?: string)
|
Returns a promise that will never resolve, but reject after the given number of milliseconds with an optional message. Meant to be used in Promise.race in conjunction with other promises, that are prone to never resolve.
Returns :
Promise<void>
|
uuidv4 |
uuidv4()
|
Returns :
string
|
assertCmbTransmissionConfig | ||||
assertCmbTransmissionConfig(x)
|
||||
Parameters :
Returns :
CmbTransmissionConfig
|
assertCmbTransmissionMeta | ||||
assertCmbTransmissionMeta(x)
|
||||
Parameters :
Returns :
CmbTransmissionMeta
|
isCmbTransmissionConfig | ||||
isCmbTransmissionConfig(x)
|
||||
Parameters :
Returns :
CmbTransmissionConfig
|
isCmbTransmissionMeta | ||||
isCmbTransmissionMeta(x)
|
||||
Parameters :
Returns :
CmbTransmissionMeta
|
assertEntryConfig | ||||
assertEntryConfig(x)
|
||||
Parameters :
Returns :
EntryConfig
|
isEntryConfig | |||||||||
isEntryConfig(x, throw_errors)
|
|||||||||
Parameters :
Returns :
EntryConfig
|
assertItemStorage | ||||
assertItemStorage(x)
|
||||
Checks if an input conforms to ItemStorage interface. Throws an error it doesn't.
Parameters :
Returns :
ItemStorage
|
assertItemStoreConfig | ||||
assertItemStoreConfig(x)
|
||||
Checks if an input is an ItemStoreConfig. Throws an error if it isn't
Parameters :
Returns :
ItemStoreConfig
|
assertNumberOptionConfig | ||||
assertNumberOptionConfig(x)
|
||||
Parameters :
Returns :
NumberOptionConfig
|
assertQuestionConfig | ||||
assertQuestionConfig(x)
|
||||
Parameters :
Returns :
QuestionConfig
|
isAnswerType | ||||
isAnswerType(x)
|
||||
Parameters :
Returns :
AnswerType
|
isBooleanOptionConfig | ||||
isBooleanOptionConfig(x)
|
||||
Parameters :
Returns :
BooleanOptionConfig
|
isNumberOptionConfig | ||||
isNumberOptionConfig(x)
|
||||
Parameters :
Returns :
NumberOptionConfig
|
isQuestionConfig | ||||
isQuestionConfig(x)
|
||||
Parameters :
Returns :
QuestionConfig
|
isStringOptionConfig | ||||
isStringOptionConfig(x)
|
||||
Parameters :
Returns :
StringOptionConfig
|
isTranslationList | ||||
isTranslationList(x)
|
||||
Parameters :
Returns :
TranslationList
|
assertRccRtcConfig | ||||
assertRccRtcConfig(x)
|
||||
Parameters :
Returns :
RccRtcConfig
|
isRccRtcConfig | ||||
isRccRtcConfig(x)
|
||||
Parameters :
Returns :
RccRtcConfig
|
assertRccWebSocketConfig | ||||
assertRccWebSocketConfig(x)
|
||||
Parameters :
Returns :
RccWebSocketConfig
|
isRccWebSocketConfig | ||||
isRccWebSocketConfig(x)
|
||||
Parameters :
Returns :
RccWebSocketConfig
|
assertReportConfig | ||||
assertReportConfig(x)
|
||||
Parameters :
Returns :
ReportConfig
|
isReportConfig | ||||
isReportConfig(x)
|
||||
Parameters :
Returns :
ReportConfig
|
assertScheduledNotification | ||||
assertScheduledNotification(x)
|
||||
Parameters :
Returns :
ScheduledNotification
|
isScheduledNotification | ||||
isScheduledNotification(x)
|
||||
Parameters :
Returns :
ScheduledNotification
|
assertSessionConfig | ||||
assertSessionConfig(x)
|
||||
Checks if a value conforms to the SessionConfig interface. If not, throw an AssertionError.
Parameters :
Returns :
SessionConfig
|
isSessionConfig | ||||
isSessionConfig(x)
|
||||
Checks if a value conforms to the SessionConfig interface.
Parameters :
Returns :
boolean
|
assertSymptomCheckConfig | ||||
assertSymptomCheckConfig(x)
|
||||
Parameters :
Returns :
SymptomCheckConfig
|
assertSymptomCheckMetaConfig | ||||
assertSymptomCheckMetaConfig(x)
|
||||
Parameters :
Returns :
SymptomCheckMetaConfig
|
isQuestionScheduleConfig | |||||||||
isQuestionScheduleConfig(x, throw_errors)
|
|||||||||
Parameters :
Returns :
QuestionScheduleConfig
|
isSymptomCheckConfig | ||||
isSymptomCheckConfig(x)
|
||||
Parameters :
Returns :
SymptomCheckConfig
|
booleanChecks | |||||||||
booleanChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
decimalChecks | |||||||||
decimalChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
integerChecks | |||||||||
integerChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
stringChecks | |||||||||
stringChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
undefinedChecks | |||||||||
undefinedChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
unknownChecks | |||||||||
unknownChecks(value, config: QuestionConfig)
|
|||||||||
Parameters :
Returns :
void
|
decrypt | ||||||||||||
decrypt(encryptionHandler: EncryptionHandler, pass_through)
|
||||||||||||
Parameters :
Returns :
OperatorFunction<any, any>
|
encrypt | ||||||
encrypt(encryptionHandler: EncryptionHandler)
|
||||||
Parameters :
Returns :
OperatorFunction<any, any>
|
extendTranslationKey | |||||||||
extendTranslationKey(key: TranslationKey, ...content: undefined)
|
|||||||||
This function is meant for basic replacements in translation strings. Occurences of %n , with n being some integer, will be replaced by the n-th paramter, starting at 1. Occurences of %s with s being a single lowercase letter, will be replaced by the parameters in the order of their appearance; same lower case letters will be replaced by different values. The replacement text will only include capital letters, digits, dots and underscores, everything else will be stripped off:
Parameters :
Returns :
TranslationKey
|
isTranslationKey | ||||||
isTranslationKey(key: string)
|
||||||
Parameters :
Returns :
TranslationKey
|
isTranslationMap | ||||
isTranslationMap(x)
|
||||
Parameters :
Returns :
TranslationMap
|
isTranslationTemplate | ||||||
isTranslationTemplate(str: string)
|
||||||
Parameters :
Returns :
TranslationTemplate
|
normalizeTranslationKey | ||||||
normalizeTranslationKey(str: string)
|
||||||
Strips everything, that is not a capital letter, underscore, dot, a digit or a curley bracket, off a given string. If the result would be an empty string (thus no translation key) '_EMPTY_KEY' is returned instead and a warning logged.
Parameters :
Returns :
TranslationKey
|
fromBase64 | ||||||
fromBase64(base64: string)
|
||||||
Parameters :
Returns :
Uint8Array
|
GcmCreateKey |
GcmCreateKey()
|
Returns :
Promise<string>
|
GcmDecrypt |
GcmDecrypt(b64_combined: string, b64_key: string)
|
Returns :
Promise<any>
|
GcmEncrypt |
GcmEncrypt(data: any, b64_key: string)
|
Returns :
Promise<string>
|
randomString | ||||||
randomString(length: number)
|
||||||
Parameters :
Returns :
string
|
toBase64 | ||||
toBase64(b)
|
||||
Parameters :
Returns :
string
|
getBooleanRun | ||||||
getBooleanRun(length: number)
|
||||||
Parameters :
Returns :
boolean[]
|
getValueRun | ||||||
getValueRun(length: number)
|
||||||
Parameters :
Returns :
number[]
|
randomValue | ||||||||
randomValue(last: number)
|
||||||||
Parameters :
Returns :
number
|
getPastDate | ||||||
getPastDate(days_ago: number)
|
||||||
Parameters :
Returns :
string
|
random |
random(min: number, max: number, p: number)
|
Returns :
number
|
randomWalk | ||||||||
randomWalk(max: number)
|
||||||||
Parameters :
Returns :
number[]
|
getProvider | ||||||||||||||||
getProvider(token, x: ProductOrFactory, multi: boolean)
|
||||||||||||||||
Parameters :
Returns :
Provider
|
isFactory | ||||||
isFactory(x: ProductOrFactory)
|
||||||
Parameters :
Returns :
Factory<T>
|
getSteps | ||||
getSteps(a)
|
||||
Parameters :
Returns :
number[]
|
hasDescription | ||||
hasDescription(action)
|
||||
Parameters :
|
hasNotification | ||||
hasNotification(action)
|
||||
Parameters :
|
isCustomAction | ||||
isCustomAction(action)
|
||||
Parameters :
Returns :
HandlerAction
|
isDownloadAction | ||||
isDownloadAction(action)
|
||||
Parameters :
Returns :
DownloadAction
|
isHandlerAction | ||||
isHandlerAction(action)
|
||||
Parameters :
Returns :
HandlerAction
|
isPathAction | ||||
isPathAction(action)
|
||||
Parameters :
Returns :
PathAction
|
hasTranslations | ||||
hasTranslations(x)
|
||||
Type guard for ObjectWithTranslations
Parameters :
Returns :
ObjectWithTranslations
|
identifyItemBy | ||||||
identifyItemBy(item: Entry)
|
||||||
Parameters :
Returns :
string
|
identifyItemBy | ||||||
identifyItemBy(item: Report)
|
||||||
Parameters :
Returns :
string
|
identifyItemBy | ||||||
identifyItemBy(item: Session)
|
||||||
Parameters :
Returns :
string
|
identifyItemBy | ||||||
identifyItemBy(item: SymptomCheck)
|
||||||
Parameters :
Returns :
string
|
isExportResult | |||||||||
isExportResult(x, throw_errors)
|
|||||||||
Parameters :
Returns :
ExportResult<T>
|
isFinal | ||||||
isFinal(x: TranslationResult)
|
||||||
Parameters :
Returns :
TranslationResultFinal
|
isIntermediate | ||||||
isIntermediate(x: TranslationResult)
|
||||||
Parameters :
Returns :
TranslationResultIntermediate
|
isRtcTransmissionConfig | |||||||||
isRtcTransmissionConfig(x, throw_errors)
|
|||||||||
Parameters :
Returns :
RtcTransmissionConfig
|
isRtcTransmissionMeta | |||||||||
isRtcTransmissionMeta(x, throw_errors)
|
|||||||||
Parameters :
Returns :
RtcTransmissionMeta
|
isScheduleConfig | |||||||||
isScheduleConfig(x, flatten_errors)
|
|||||||||
Parameters :
Returns :
ScheduleConfig
|
isWsTransmissionConfig | |||||||||
isWsTransmissionConfig(x, throw_errors)
|
|||||||||
Parameters :
Returns :
WsTransmissionConfig
|
isWsTransmissionMeta | |||||||||
isWsTransmissionMeta(x, throw_errors)
|
|||||||||
Parameters :
Returns :
WsTransmissionMeta
|
overrideRoute | ||||||
overrideRoute(route: Route)
|
||||||
Parameters :
Returns :
Provider
|
provideHomePageEntry | ||||
provideHomePageEntry(config)
|
||||
Parameters :
Returns :
Provider
|
provideItemAction | ||||||
provideItemAction(x: ProductOrFactory)
|
||||||
Add an action to the item type of the provided ItemAction. Any time the app makes item actions available to the user the given ItemAction will be included - if appropriate.
Parameters :
Returns :
Provider
|
provideItemRepresentation | ||||||
provideItemRepresentation(x: ProductOrFactory)
|
||||||
Assign a {@ItemRepresentation} to an item type. Only one such representation can be assigned to each item type. If you assign multiple representations to the same item type, there is no guarantee of which one will be used.
Parameters :
Returns :
Provider
|
provideItemSelectionFilter | ||||||
provideItemSelectionFilter(x: ProductOrFactory)
|
||||||
Register an ItemSelectionFilter. Whenever items are selected a filter menu will provide the option to filter out all items that match this filter.
Parameters :
Returns :
Provider
|
provideMainMenuEntry | ||||||
provideMainMenuEntry(entry: ProductOrFactory)
|
||||||
Parameters :
Returns :
Provider
|
provideSettingsEntry | ||||||
provideSettingsEntry(config: ProductOrFactory)
|
||||||
Parameters :
Returns :
Provider
|
provideTranslationMap | |||||||||
provideTranslationMap(scope, translationMap: TranslationMap)
|
|||||||||
Parameters :
Returns :
Provider
|
provideTranslator | |||||||||
provideTranslator(translatorClass: Type, ...dependencies: undefined)
|
|||||||||
This function makes a Translator avaible to RccTranslationService and RccTranslatePipe. The Translator will also be injectable. ```
Parameters :
Returns :
Provider
|
provideWidget | ||||||
provideWidget(widgetComponent: Type)
|
||||||
Registers WidgetComponents to be used by RccWidgetComponent.
Parameters :
|
report2fhir |
report2fhir(report: Report, questions, languageCode: string)
|
Returns :
R4.IQuestionnaireResponse
|
runTranslatorTests | ||||
runTranslatorTests(TranslatorExtension)
|
||||
Parameters :
Returns :
void
|
toDE | ||||||
toDE(schedule: Schedule)
|
||||||
Parameters :
Returns :
string
|
toEN | ||||||
toEN(schedule: Schedule)
|
||||||
Parameters :
Returns :
string
|
unknownConfig | ||||||
unknownConfig(id: string)
|
||||||
Parameters :
Returns :
QuestionConfig
|
validateAnswerType | ||||
validateAnswerType(answerTypes)
|
||||
Validatior function factory. Validates the answer type. The Factory requires an array of valid answer types.
Parameters :
Returns :
ValidationErrors | null
|
validateMinMax | ||||||
validateMinMax(control: AbstractControl)
|
||||||
Validates FormControls for minimum and maximum asnwer values, when editing questions. Controls for min and max must either be disabled or have a number value. Expects a AbstractControl similar to this: ``FormGroup({
enableMin: FormControl
Parameters :
Returns :
ValidationErrors | null
|
validateOption | ||||
validateOption(answerType)
|
||||
Validatior function factory. Validates a FormGroup representing an answer Option. The Factory requires a string or an AbstractControl representing the answer type. Can only be used on FormGroups similiar to this: ``
FormGroup({
value: FormControl<string|number>(),
label: FormControl
Parameters :
|
validateOptions | ||||
validateOptions(answerType)
|
||||
Validatior function factory. Validates FormArrays that contain controls for options, when editing questions. Checks if the number of options is correct depending on answer type and no dupliocates exist. Can only be used on a FormArray like this: ``FormArray<FormGroup<{ value: FormControl<string|number>(), label: FormControl<string()}>> ```
Parameters :
|
validateWording | ||||||
validateWording(control: AbstractControl)
|
||||||
Parameters :
Returns :
ValidationErrors | null
|