2021-12-03 19:27:57 +00:00
|
|
|
import { NewMessageStackParamList } from '../../stacks/types';
|
2022-01-12 12:54:04 +00:00
|
|
|
import { SubscriptionType } from '../../definitions/ISubscription';
|
2022-02-02 18:51:18 +00:00
|
|
|
import { IBaseScreen } from '../../definitions';
|
|
|
|
|
|
|
|
export interface IResult {
|
|
|
|
rid: string;
|
|
|
|
t: SubscriptionType;
|
|
|
|
prid: string;
|
|
|
|
}
|
2021-12-03 19:27:57 +00:00
|
|
|
|
2022-02-02 18:51:18 +00:00
|
|
|
export interface IError {
|
|
|
|
reason: string;
|
|
|
|
}
|
|
|
|
export interface ICreateChannelViewProps extends IBaseScreen<NewMessageStackParamList, 'CreateDiscussionView'> {
|
2021-09-15 19:58:14 +00:00
|
|
|
server: string;
|
|
|
|
user: {
|
|
|
|
id: string;
|
|
|
|
token: string;
|
|
|
|
};
|
|
|
|
create: Function;
|
|
|
|
loading: boolean;
|
2022-02-02 18:51:18 +00:00
|
|
|
result: IResult;
|
2021-09-15 19:58:14 +00:00
|
|
|
failure: boolean;
|
2022-02-02 18:51:18 +00:00
|
|
|
error: IError;
|
2021-09-15 19:58:14 +00:00
|
|
|
isMasterDetail: boolean;
|
|
|
|
blockUnauthenticatedAccess: boolean;
|
|
|
|
serverVersion: string;
|
|
|
|
encryptionEnabled: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICreateDiscussionViewSelectChannel {
|
|
|
|
server: string;
|
|
|
|
token: string;
|
|
|
|
userId: string;
|
|
|
|
initial: object;
|
|
|
|
onChannelSelect: Function;
|
|
|
|
blockUnauthenticatedAccess: boolean;
|
|
|
|
serverVersion: string;
|
|
|
|
theme: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICreateDiscussionViewSelectUsers {
|
|
|
|
server: string;
|
|
|
|
token: string;
|
|
|
|
userId: string;
|
|
|
|
selected: any[];
|
|
|
|
onUserSelect: Function;
|
|
|
|
blockUnauthenticatedAccess: boolean;
|
|
|
|
serverVersion: string;
|
|
|
|
theme: string;
|
|
|
|
}
|