File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 0.0.77 " ,
2
+ "version" : " 0.0.78 " ,
3
3
"license" : " MIT" ,
4
4
"main" : " dist/index.js" ,
5
5
"typings" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
SettingsResponse ,
14
14
UserSettingsResponse ,
15
15
} from '../../index' ;
16
- import { SET_USER_SETTINGS_MUTATION } from '../../mutations' ;
16
+ import { SET_APP_SETTINGS_MUTATION , SET_USER_SETTINGS_MUTATION } from '../../mutations' ;
17
17
18
18
export default class Settings {
19
19
constructor ( protected client : ClientType , protected key : string ) { }
@@ -87,4 +87,17 @@ export default class Settings {
87
87
return undefined ;
88
88
}
89
89
}
90
+ async setAppSettings ( input : ConfigInput ) {
91
+ try {
92
+ await this . client . mutate ( {
93
+ mutation : SET_APP_SETTINGS_MUTATION ,
94
+ variables : {
95
+ input,
96
+ } ,
97
+ } ) ;
98
+ return true ;
99
+ } catch {
100
+ return undefined ;
101
+ }
102
+ }
90
103
}
You can’t perform that action at this time.
0 commit comments