diff options
Diffstat (limited to 'src/stores.types.ts')
-rw-r--r-- | src/stores.types.ts | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/src/stores.types.ts b/src/stores.types.ts index 24eefc416..1899db92c 100644 --- a/src/stores.types.ts +++ b/src/stores.types.ts | |||
@@ -2,6 +2,7 @@ import Workspace from './features/workspaces/models/Workspace'; | |||
2 | import Recipe from './models/Recipe'; | 2 | import Recipe from './models/Recipe'; |
3 | import Service from './models/Service'; | 3 | import Service from './models/Service'; |
4 | import User from './models/User'; | 4 | import User from './models/User'; |
5 | import { Request } from './stores/lib/Request'; | ||
5 | import { CachedRequest } from './stores/lib/CachedRequest'; | 6 | import { CachedRequest } from './stores/lib/CachedRequest'; |
6 | import Reaction from './stores/lib/Reaction'; | 7 | import Reaction from './stores/lib/Reaction'; |
7 | 8 | ||
@@ -98,6 +99,7 @@ interface AppStore extends TypedStore { | |||
98 | isSystemDarkModeEnabled: () => void; | 99 | isSystemDarkModeEnabled: () => void; |
99 | isSystemMuteOverridden: () => void; | 100 | isSystemMuteOverridden: () => void; |
100 | locale: () => void; | 101 | locale: () => void; |
102 | lockedPassword: string; | ||
101 | reloadAfterResume: boolean; | 103 | reloadAfterResume: boolean; |
102 | reloadAfterResumeTime: number; | 104 | reloadAfterResumeTime: number; |
103 | searchEngine: string; | 105 | searchEngine: string; |
@@ -192,7 +194,7 @@ interface RouterStore { | |||
192 | 194 | ||
193 | export interface ServicesStore extends TypedStore { | 195 | export interface ServicesStore extends TypedStore { |
194 | clearCacheRequest: () => void; | 196 | clearCacheRequest: () => void; |
195 | createServiceRequest: () => void; | 197 | createServiceRequest: CachedRequest; |
196 | deleteServiceRequest: () => void; | 198 | deleteServiceRequest: () => void; |
197 | allServicesRequest: CachedRequest; | 199 | allServicesRequest: CachedRequest; |
198 | filterNeedle: string; | 200 | filterNeedle: string; |
@@ -216,7 +218,9 @@ interface ISettings { | |||
216 | [key: string]: any; | 218 | [key: string]: any; |
217 | } | 219 | } |
218 | 220 | ||
219 | interface SettingsStore extends TypedStore { | 221 | export interface SettingsStore extends TypedStore { |
222 | update: (value: any) => void; | ||
223 | remove: (value: any) => void; | ||
220 | fileSystemSettingsTypes: any[]; | 224 | fileSystemSettingsTypes: any[]; |
221 | loaded: boolean; | 225 | loaded: boolean; |
222 | updateAppSettingsRequest: () => void; | 226 | updateAppSettingsRequest: () => void; |
@@ -247,6 +251,7 @@ interface TodosStore extends TypedStore { | |||
247 | isFeatureEnabledByUser: () => void; | 251 | isFeatureEnabledByUser: () => void; |
248 | isTodoUrlValid: () => void; | 252 | isTodoUrlValid: () => void; |
249 | isTodosPanelForceHidden: () => void; | 253 | isTodosPanelForceHidden: () => void; |
254 | isTodosEnabled: boolean; | ||
250 | isTodosPanelVisible: () => void; | 255 | isTodosPanelVisible: () => void; |
251 | isUsingPredefinedTodoServer: () => void; | 256 | isUsingPredefinedTodoServer: () => void; |
252 | settings: { | 257 | settings: { |
@@ -274,7 +279,7 @@ interface UIStore extends TypedStore { | |||
274 | theme: () => void; | 279 | theme: () => void; |
275 | } | 280 | } |
276 | 281 | ||
277 | interface UserStore extends TypedStore { | 282 | export interface UserStore extends TypedStore { |
278 | BASE_ROUTE: '/auth'; | 283 | BASE_ROUTE: '/auth'; |
279 | CHANGE_SERVER_ROUTE: '/auth/server'; | 284 | CHANGE_SERVER_ROUTE: '/auth/server'; |
280 | IMPORT_ROUTE: '/auth/signup/import'; | 285 | IMPORT_ROUTE: '/auth/signup/import'; |
@@ -293,30 +298,34 @@ interface UserStore extends TypedStore { | |||
293 | getUserInfoRequest: CachedRequest; | 298 | getUserInfoRequest: CachedRequest; |
294 | hasCompletedSignup: () => void; | 299 | hasCompletedSignup: () => void; |
295 | id: () => void; | 300 | id: () => void; |
301 | importLegacyServices: () => Promise<void>; | ||
296 | inviteRequest: () => void; | 302 | inviteRequest: () => void; |
297 | isImportLegacyServicesCompleted: () => void; | 303 | isImportLegacyServicesCompleted: boolean; |
298 | isImportLegacyServicesExecuting: () => void; | 304 | isImportLegacyServicesExecuting: boolean; |
299 | isLoggingOut: () => void; | 305 | isLoggingOut: () => void; |
300 | loginRequest: () => void; | 306 | loginRequest: () => void; |
301 | logoutReason: () => void; | 307 | logoutReason: () => void; |
302 | logoutReasonTypes: { SERVER: 'SERVER' }; | 308 | logoutReasonTypes: { SERVER: 'SERVER' }; |
303 | passwordRequest: () => void; | 309 | passwordRequest: Request; |
310 | retrievePassword: Promise<void> | ||
304 | signupRequest: () => void; | 311 | signupRequest: () => void; |
305 | updateUserInfoRequest: () => void; | 312 | updateUserInfoRequest: () => void; |
306 | userData: () => void; | 313 | userData: () => void; |
307 | _requireAuthenticatedUser: () => void; | 314 | _requireAuthenticatedUser: () => void; |
315 | _importLegacyServices: () => void; | ||
316 | _retrievePassword: () => void; | ||
308 | changeServerRoute: () => void; | 317 | changeServerRoute: () => void; |
309 | data: User; | 318 | data: User; |
310 | importRoute: () => void; | 319 | importRoute: string; |
311 | inviteRoute: () => void; | 320 | inviteRoute: string; |
312 | isLoggedIn: boolean; | 321 | isLoggedIn: boolean; |
313 | isTokenExpired: () => boolean; | 322 | isTokenExpired: boolean; |
314 | legacyServices: () => void; | 323 | legacyServices: () => void; |
315 | loginRoute: () => void; | 324 | loginRoute: string; |
316 | logoutRoute: () => void; | 325 | logoutRoute: string; |
317 | passwordRoute: () => void; | 326 | passwordRoute: string; |
318 | setupRoute: () => void; | 327 | setupRoute: string; |
319 | signupRoute: () => void; | 328 | signupRoute: string; |
320 | team: () => void; | 329 | team: () => void; |
321 | } | 330 | } |
322 | 331 | ||