Skip to content

Commit a4e2441

Browse files
committed
Added customeSetting unit and some typing
1 parent 1d17181 commit a4e2441

21 files changed

Lines changed: 91 additions & 28 deletions

js/appTemplates/Application.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@ export declare class Application {
5252
*/
5353
setCustomSettings(content: any): Promise<any>;
5454
/**
55-
* Get current settings previously set with setCustomSettings()
55+
* Get all current settings previously set with setCustomSettings()
5656
*/
5757
getCustomSettings(forceRefresh?: boolean): Promise<any>;
58+
/**
59+
* Update value of a custom setting by its key
60+
* @param {*} value if value is `null` key will be deleted
61+
*/
62+
setCustomSetting(key: string, value: any): Promise<any>;
5863
/**
5964
* Force loading of streamData
6065
*/

js/appTemplates/Application.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/Application.js

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/Application.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/CollectorClient.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { CollectorRequest } from './CollectorRequest';
2+
import { CollectorSectionInterface } from './interfaces';
23
/**
34
* Client App in relation to an AppManagingAccount/Collector
45
*/
@@ -59,5 +60,6 @@ export declare class CollectorClient {
5960
* @param {PryvAccessInfo} accessInfo
6061
*/
6162
static keyFromInfo(info: any): string;
63+
getSections(): Array<CollectorSectionInterface>;
6264
}
6365
//# sourceMappingURL=CollectorClient.d.ts.map

js/appTemplates/CollectorClient.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/appTemplates/CollectorClient.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)