mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
refactor: extract inline type definitions
This commit is contained in:
@@ -24,42 +24,7 @@ export interface SCFeedbackRequest extends SCMessage {
|
||||
/**
|
||||
* Meta data that helps to understand the feedback
|
||||
*/
|
||||
metaData: {
|
||||
/**
|
||||
* Whether or not the user enabled the debug mode
|
||||
*/
|
||||
debug?: boolean;
|
||||
|
||||
/**
|
||||
* Platform identifier
|
||||
*/
|
||||
platform: string;
|
||||
|
||||
/**
|
||||
* Scope/app state at feedback invocation
|
||||
*/
|
||||
scope: any;
|
||||
|
||||
/**
|
||||
* Whether or not the feedback is sendable
|
||||
*/
|
||||
sendable?: boolean;
|
||||
|
||||
/**
|
||||
* App state that feedback was invoked from
|
||||
*/
|
||||
state: any;
|
||||
|
||||
/**
|
||||
* User agent
|
||||
*/
|
||||
userAgent: string;
|
||||
|
||||
/**
|
||||
* StApps version string
|
||||
*/
|
||||
version: string;
|
||||
};
|
||||
metaData: SCFeedbackRequestMetaData;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -82,3 +47,43 @@ export class SCFeedbackRoute extends SCAbstractRoute {
|
||||
this.urlFragment = '/feedback';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request Meta Data
|
||||
*/
|
||||
export interface SCFeedbackRequestMetaData {
|
||||
/**
|
||||
* Whether or not the user enabled the debug mode
|
||||
*/
|
||||
debug?: boolean;
|
||||
|
||||
/**
|
||||
* Platform identifier
|
||||
*/
|
||||
platform: string;
|
||||
|
||||
/**
|
||||
* Scope/app state at feedback invocation
|
||||
*/
|
||||
scope: any;
|
||||
|
||||
/**
|
||||
* Whether or not the feedback is sendable
|
||||
*/
|
||||
sendable?: boolean;
|
||||
|
||||
/**
|
||||
* App state that feedback was invoked from
|
||||
*/
|
||||
state: any;
|
||||
|
||||
/**
|
||||
* User agent
|
||||
*/
|
||||
userAgent: string;
|
||||
|
||||
/**
|
||||
* StApps version string
|
||||
*/
|
||||
version: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user