[AAE-7244] fix process services cloud eslint warnings (#7503)

* fix process services cloud eslint warnings

* fix export of private consts

* improve constant export

* fix unit tests
This commit is contained in:
Denys Vuika
2022-02-17 14:08:41 +00:00
committed by GitHub
parent e017423c8c
commit 5b7f255eec
95 changed files with 2496 additions and 2613 deletions

View File

@@ -27,6 +27,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Gets local preferences
*
* @param _ Name of the target app
* @param key Key of the target preference
* @returns List of local preferences
@@ -37,8 +38,8 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
}
return of(
{
'list': {
'entries': []
list: {
entries: []
}
}
);
@@ -46,6 +47,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Gets local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @returns Observable of local preference
@@ -56,6 +58,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Creates local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @param newPreference Details of new local preference
@@ -70,6 +73,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Updates local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @param updatedPreference Details of updated preference
@@ -84,6 +88,7 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Deletes local preference by given preference key.
*
* @param key Key of the target preference
* @param preferences Details of updated preferences
* @returns Observable of preferences without deleted preference
@@ -97,12 +102,12 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
prepareLocalPreferenceResponse(key: string): any {
return {
'list': {
'entries': [
list: {
entries: [
{
'entry': {
'key': key,
'value': this.storage.getItem(key) || '[]'
entry: {
key,
value: this.storage.getItem(key) || '[]'
}
}
]