signal-desktop/ts/util/index.ts

85 lines
2.7 KiB
TypeScript
Raw Normal View History

2021-01-07 18:06:09 +00:00
// Copyright 2018-2021 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
import * as GoogleChrome from './GoogleChrome';
import * as Registration from './registration';
2018-04-14 02:14:58 +00:00
import { arrayBufferToObjectURL } from './arrayBufferToObjectURL';
import { combineNames } from './combineNames';
2019-09-26 19:56:31 +00:00
import { createBatcher } from './batcher';
import { createWaitBatcher } from './waitBatcher';
import { deleteForEveryone } from './deleteForEveryone';
import { downloadAttachment } from './downloadAttachment';
import { generateSecurityNumber } from './safetyNumber';
import { getStringForProfileChange } from './getStringForProfileChange';
2020-09-18 21:43:57 +00:00
import { getTextWithMentions } from './getTextWithMentions';
import { getUserAgent } from './getUserAgent';
import { hasExpired } from './hasExpired';
2021-09-08 23:28:18 +00:00
import {
incrementMessageCounter,
flushMessageCounter,
} from './incrementMessageCounter';
2018-10-04 01:12:42 +00:00
import { isFileDangerous } from './isFileDangerous';
2019-01-14 21:49:58 +00:00
import { makeLookup } from './makeLookup';
import {
queueUpdateMessage,
saveNewMessageBatcher,
setBatchingStrategy,
} from './messageBatcher';
import { missingCaseError } from './missingCaseError';
import { parseRemoteClientExpiration } from './parseRemoteClientExpiration';
import { sleep } from './sleep';
import { longRunningTaskWrapper } from './longRunningTaskWrapper';
import { toWebSafeBase64, fromWebSafeBase64 } from './webSafeBase64';
2021-02-18 16:40:26 +00:00
import { mapToSupportLocale } from './mapToSupportLocale';
import {
sessionRecordToProtobuf,
sessionStructureToArrayBuffer,
} from './sessionTranslation';
import * as zkgroup from './zkgroup';
2021-03-13 01:22:36 +00:00
import { StartupQueue } from './StartupQueue';
import { postLinkExperience } from './postLinkExperience';
2021-05-25 22:40:04 +00:00
import { sendToGroup, sendContentMessageToGroup } from './sendToGroup';
2021-05-28 19:11:19 +00:00
import { RetryPlaceholders } from './retryPlaceholders';
2021-06-01 20:45:43 +00:00
import * as expirationTimer from './expirationTimer';
import { MessageController } from './MessageController';
2018-10-04 01:12:42 +00:00
export {
2021-03-04 21:44:57 +00:00
GoogleChrome,
Registration,
2021-03-13 01:22:36 +00:00
StartupQueue,
2018-10-04 01:12:42 +00:00
arrayBufferToObjectURL,
combineNames,
2019-09-26 19:56:31 +00:00
createBatcher,
createWaitBatcher,
deleteForEveryone,
downloadAttachment,
2021-09-08 23:28:18 +00:00
flushMessageCounter,
fromWebSafeBase64,
generateSecurityNumber,
getStringForProfileChange,
2020-09-18 21:43:57 +00:00
getTextWithMentions,
getUserAgent,
hasExpired,
2021-03-04 21:44:57 +00:00
incrementMessageCounter,
2018-10-04 01:12:42 +00:00
isFileDangerous,
longRunningTaskWrapper,
2019-01-14 21:49:58 +00:00
makeLookup,
2021-02-18 16:40:26 +00:00
mapToSupportLocale,
MessageController,
2018-10-04 01:12:42 +00:00
missingCaseError,
parseRemoteClientExpiration,
postLinkExperience,
queueUpdateMessage,
2021-05-28 19:11:19 +00:00
RetryPlaceholders,
2021-03-04 21:44:57 +00:00
saveNewMessageBatcher,
2021-05-25 22:40:04 +00:00
sendContentMessageToGroup,
sendToGroup,
setBatchingStrategy,
sessionRecordToProtobuf,
sessionStructureToArrayBuffer,
sleep,
toWebSafeBase64,
zkgroup,
2021-06-01 20:45:43 +00:00
expirationTimer,
2018-10-04 01:12:42 +00:00
};