signal-desktop/ts/util/index.ts

83 lines
2.6 KiB
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2018 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 { getUuidsForE164s } from './getUuidsForE164s';
import { getUserAgent } from './getUserAgent';
2021-09-08 23:28:18 +00:00
import {
2021-09-15 18:45:22 +00:00
initializeMessageCounter,
2021-09-08 23:28:18 +00:00
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,
2021-09-24 00:49:05 +00:00
sessionStructureToBytes,
} from './sessionTranslation';
import * as zkgroup from './zkgroup';
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,
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,
2021-03-04 21:44:57 +00:00
incrementMessageCounter,
2021-09-15 18:45:22 +00:00
initializeMessageCounter,
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,
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,
2021-09-24 00:49:05 +00:00
sessionStructureToBytes,
sleep,
toWebSafeBase64,
zkgroup,
2021-06-01 20:45:43 +00:00
expirationTimer,
getUuidsForE164s,
2018-10-04 01:12:42 +00:00
};