Changeset View
Changeset View
Standalone View
Standalone View
lib/types/messages/create-thread.js
// @flow | // @flow | ||||
import t, { type TInterface } from 'tcomb'; | import t, { type TInterface } from 'tcomb'; | ||||
import { values } from '../../utils/objects.js'; | import { values } from '../../utils/objects.js'; | ||||
import { | import { | ||||
tID, | tID, | ||||
tNumber, | tNumber, | ||||
tShape, | tShape, | ||||
tNumEnum, | tNumEnum, | ||||
} from '../../utils/validation-utils.js'; | } from '../../utils/validation-utils.js'; | ||||
import { messageTypes } from '../message-types-enum.js'; | import { messageTypes } from '../message-types-enum.js'; | ||||
import { | import { threadTypes, type ThreadType } from '../thread-types-enum.js'; | ||||
threadTypes, | import { type ThreadInfo } from '../thread-types.js'; | ||||
type ThreadInfo, | |||||
type ThreadType, | |||||
} from '../thread-types.js'; | |||||
import type { RelativeUserInfo } from '../user-types.js'; | import type { RelativeUserInfo } from '../user-types.js'; | ||||
export type CreateThreadMessageData = { | export type CreateThreadMessageData = { | ||||
type: 1, | type: 1, | ||||
threadID: string, | threadID: string, | ||||
creatorID: string, | creatorID: string, | ||||
time: number, | time: number, | ||||
initialThreadState: { | initialThreadState: { | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |