2021-12-03 19:27:57 +00:00
|
|
|
import { RouteProp } from '@react-navigation/core';
|
|
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
|
|
|
|
import { NewMessageStackParamList } from '../../stacks/types';
|
2022-01-12 12:54:04 +00:00
|
|
|
import { SubscriptionType } from '../../definitions/ISubscription';
|
2021-12-03 19:27:57 +00:00
|
|
|
|
2021-09-15 19:58:14 +00:00
|
|
|
export interface ICreateChannelViewProps {
|
2021-12-03 19:27:57 +00:00
|
|
|
navigation: StackNavigationProp<NewMessageStackParamList, 'CreateDiscussionView'>;
|
|
|
|
route: RouteProp<NewMessageStackParamList, 'CreateDiscussionView'>;
|
2021-09-15 19:58:14 +00:00
|
|
|
server: string;
|
|
|
|
user: {
|
|
|
|
id: string;
|
|
|
|
token: string;
|
|
|
|
};
|
|
|
|
create: Function;
|
|
|
|
loading: boolean;
|
|
|
|
result: {
|
|
|
|
rid: string;
|
2022-01-12 12:54:04 +00:00
|
|
|
t: SubscriptionType;
|
2021-09-15 19:58:14 +00:00
|
|
|
prid: string;
|
|
|
|
};
|
|
|
|
failure: boolean;
|
|
|
|
error: {
|
|
|
|
reason: string;
|
|
|
|
};
|
|
|
|
theme: string;
|
|
|
|
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;
|
|
|
|
}
|