@wireapp/core 37.5.0 → 38.0.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -8
- package/LICENSE +0 -674
- package/lib/Account.d.ts +0 -213
- package/lib/Account.d.ts.map +0 -1
- package/lib/Account.js +0 -543
- package/lib/CoreError.d.ts +0 -10
- package/lib/CoreError.d.ts.map +0 -1
- package/lib/CoreError.js +0 -25
- package/lib/account/AccountService.d.ts +0 -8
- package/lib/account/AccountService.d.ts.map +0 -1
- package/lib/account/AccountService.js +0 -32
- package/lib/account/index.d.ts +0 -2
- package/lib/account/index.d.ts.map +0 -1
- package/lib/account/index.js +0 -35
- package/lib/auth/LoginSanitizer.d.ts +0 -6
- package/lib/auth/LoginSanitizer.d.ts.map +0 -1
- package/lib/auth/LoginSanitizer.js +0 -40
- package/lib/auth/index.d.ts +0 -2
- package/lib/auth/index.d.ts.map +0 -1
- package/lib/auth/index.js +0 -35
- package/lib/broadcast/AvailabilityType.d.ts +0 -3
- package/lib/broadcast/AvailabilityType.d.ts.map +0 -1
- package/lib/broadcast/AvailabilityType.js +0 -20
- package/lib/broadcast/BroadcastService.d.ts +0 -21
- package/lib/broadcast/BroadcastService.d.ts.map +0 -1
- package/lib/broadcast/BroadcastService.js +0 -77
- package/lib/broadcast/index.d.ts +0 -3
- package/lib/broadcast/index.d.ts.map +0 -1
- package/lib/broadcast/index.js +0 -36
- package/lib/client/ClientBackendRepository.d.ts +0 -12
- package/lib/client/ClientBackendRepository.d.ts.map +0 -1
- package/lib/client/ClientBackendRepository.js +0 -42
- package/lib/client/ClientDatabaseRepository.d.ts +0 -28
- package/lib/client/ClientDatabaseRepository.d.ts.map +0 -1
- package/lib/client/ClientDatabaseRepository.js +0 -84
- package/lib/client/ClientInfo.d.ts +0 -9
- package/lib/client/ClientInfo.d.ts.map +0 -1
- package/lib/client/ClientInfo.js +0 -20
- package/lib/client/ClientService.d.ts +0 -41
- package/lib/client/ClientService.d.ts.map +0 -1
- package/lib/client/ClientService.js +0 -102
- package/lib/client/index.d.ts +0 -5
- package/lib/client/index.d.ts.map +0 -1
- package/lib/client/index.js +0 -38
- package/lib/connection/ConnectionService.d.ts +0 -12
- package/lib/connection/ConnectionService.d.ts.map +0 -1
- package/lib/connection/ConnectionService.js +0 -44
- package/lib/connection/index.d.ts +0 -2
- package/lib/connection/index.d.ts.map +0 -1
- package/lib/connection/index.js +0 -35
- package/lib/conversation/AbortReason.d.ts +0 -3
- package/lib/conversation/AbortReason.d.ts.map +0 -1
- package/lib/conversation/AbortReason.js +0 -20
- package/lib/conversation/AssetService/AssetService.d.ts +0 -66
- package/lib/conversation/AssetService/AssetService.d.ts.map +0 -1
- package/lib/conversation/AssetService/AssetService.js +0 -87
- package/lib/conversation/AssetService/index.d.ts +0 -2
- package/lib/conversation/AssetService/index.d.ts.map +0 -1
- package/lib/conversation/AssetService/index.js +0 -35
- package/lib/conversation/AssetTransferState.d.ts +0 -5
- package/lib/conversation/AssetTransferState.d.ts.map +0 -1
- package/lib/conversation/AssetTransferState.js +0 -26
- package/lib/conversation/ClientActionType.d.ts +0 -2
- package/lib/conversation/ClientActionType.d.ts.map +0 -1
- package/lib/conversation/ClientActionType.js +0 -23
- package/lib/conversation/ConversationMapper/ConversationMapper.d.ts +0 -8
- package/lib/conversation/ConversationMapper/ConversationMapper.d.ts.map +0 -1
- package/lib/conversation/ConversationMapper/ConversationMapper.js +0 -57
- package/lib/conversation/ConversationService/ConversationService.d.ts +0 -98
- package/lib/conversation/ConversationService/ConversationService.d.ts.map +0 -1
- package/lib/conversation/ConversationService/ConversationService.js +0 -316
- package/lib/conversation/ConversationService/ConversationService.types.d.ts +0 -95
- package/lib/conversation/ConversationService/ConversationService.types.d.ts.map +0 -1
- package/lib/conversation/ConversationService/ConversationService.types.js +0 -27
- package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts +0 -9
- package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts.map +0 -1
- package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.js +0 -34
- package/lib/conversation/ConversationService/index.d.ts +0 -3
- package/lib/conversation/ConversationService/index.d.ts.map +0 -1
- package/lib/conversation/ConversationService/index.js +0 -36
- package/lib/conversation/GenericMessageType.d.ts +0 -26
- package/lib/conversation/GenericMessageType.d.ts.map +0 -1
- package/lib/conversation/GenericMessageType.js +0 -48
- package/lib/conversation/MessageTimer/MessageTimer.d.ts +0 -11
- package/lib/conversation/MessageTimer/MessageTimer.d.ts.map +0 -1
- package/lib/conversation/MessageTimer/MessageTimer.js +0 -53
- package/lib/conversation/MessageTimer/index.d.ts +0 -2
- package/lib/conversation/MessageTimer/index.d.ts.map +0 -1
- package/lib/conversation/MessageTimer/index.js +0 -35
- package/lib/conversation/ReactionType.d.ts +0 -5
- package/lib/conversation/ReactionType.d.ts.map +0 -1
- package/lib/conversation/ReactionType.js +0 -26
- package/lib/conversation/content/AssetContent.d.ts +0 -43
- package/lib/conversation/content/AssetContent.d.ts.map +0 -1
- package/lib/conversation/content/AssetContent.js +0 -20
- package/lib/conversation/content/ButtonActionConfirmationContent.d.ts +0 -3
- package/lib/conversation/content/ButtonActionConfirmationContent.d.ts.map +0 -1
- package/lib/conversation/content/ButtonActionConfirmationContent.js +0 -20
- package/lib/conversation/content/ButtonActionContent.d.ts +0 -3
- package/lib/conversation/content/ButtonActionContent.d.ts.map +0 -1
- package/lib/conversation/content/ButtonActionContent.js +0 -20
- package/lib/conversation/content/CallingContent.d.ts +0 -2
- package/lib/conversation/content/CallingContent.d.ts.map +0 -1
- package/lib/conversation/content/CallingContent.js +0 -20
- package/lib/conversation/content/ClearedContent.d.ts +0 -3
- package/lib/conversation/content/ClearedContent.d.ts.map +0 -1
- package/lib/conversation/content/ClearedContent.js +0 -20
- package/lib/conversation/content/ClientActionContent.d.ts +0 -3
- package/lib/conversation/content/ClientActionContent.d.ts.map +0 -1
- package/lib/conversation/content/ClientActionContent.js +0 -20
- package/lib/conversation/content/ClientAddContent.d.ts +0 -5
- package/lib/conversation/content/ClientAddContent.d.ts.map +0 -1
- package/lib/conversation/content/ClientAddContent.js +0 -20
- package/lib/conversation/content/ClientRemoveContent.d.ts +0 -7
- package/lib/conversation/content/ClientRemoveContent.d.ts.map +0 -1
- package/lib/conversation/content/ClientRemoveContent.js +0 -20
- package/lib/conversation/content/CompositeContent.d.ts +0 -3
- package/lib/conversation/content/CompositeContent.d.ts.map +0 -1
- package/lib/conversation/content/CompositeContent.js +0 -20
- package/lib/conversation/content/ConfirmationContent.d.ts +0 -3
- package/lib/conversation/content/ConfirmationContent.d.ts.map +0 -1
- package/lib/conversation/content/ConfirmationContent.js +0 -20
- package/lib/conversation/content/ContentType.d.ts +0 -22
- package/lib/conversation/content/ContentType.d.ts.map +0 -1
- package/lib/conversation/content/ContentType.js +0 -93
- package/lib/conversation/content/ConversationContent.d.ts +0 -4
- package/lib/conversation/content/ConversationContent.d.ts.map +0 -1
- package/lib/conversation/content/ConversationContent.js +0 -20
- package/lib/conversation/content/DeletedContent.d.ts +0 -3
- package/lib/conversation/content/DeletedContent.d.ts.map +0 -1
- package/lib/conversation/content/DeletedContent.js +0 -20
- package/lib/conversation/content/EditedTextContent.d.ts +0 -12
- package/lib/conversation/content/EditedTextContent.d.ts.map +0 -1
- package/lib/conversation/content/EditedTextContent.js +0 -20
- package/lib/conversation/content/FileContent.d.ts +0 -14
- package/lib/conversation/content/FileContent.d.ts.map +0 -1
- package/lib/conversation/content/FileContent.js +0 -20
- package/lib/conversation/content/HiddenContent.d.ts +0 -3
- package/lib/conversation/content/HiddenContent.d.ts.map +0 -1
- package/lib/conversation/content/HiddenContent.js +0 -20
- package/lib/conversation/content/ImageContent.d.ts +0 -8
- package/lib/conversation/content/ImageContent.d.ts.map +0 -1
- package/lib/conversation/content/ImageContent.js +0 -20
- package/lib/conversation/content/KnockContent.d.ts +0 -3
- package/lib/conversation/content/KnockContent.d.ts.map +0 -1
- package/lib/conversation/content/KnockContent.js +0 -20
- package/lib/conversation/content/LinkPreviewContent.d.ts +0 -11
- package/lib/conversation/content/LinkPreviewContent.d.ts.map +0 -1
- package/lib/conversation/content/LinkPreviewContent.js +0 -20
- package/lib/conversation/content/LocationContent.d.ts +0 -10
- package/lib/conversation/content/LocationContent.d.ts.map +0 -1
- package/lib/conversation/content/LocationContent.js +0 -20
- package/lib/conversation/content/MentionContent.d.ts +0 -3
- package/lib/conversation/content/MentionContent.d.ts.map +0 -1
- package/lib/conversation/content/MentionContent.js +0 -20
- package/lib/conversation/content/QuoteContent.d.ts +0 -8
- package/lib/conversation/content/QuoteContent.d.ts.map +0 -1
- package/lib/conversation/content/QuoteContent.js +0 -20
- package/lib/conversation/content/ReactionContent.d.ts +0 -8
- package/lib/conversation/content/ReactionContent.d.ts.map +0 -1
- package/lib/conversation/content/ReactionContent.js +0 -20
- package/lib/conversation/content/TextContent.d.ts +0 -10
- package/lib/conversation/content/TextContent.d.ts.map +0 -1
- package/lib/conversation/content/TextContent.js +0 -20
- package/lib/conversation/content/TweetContent.d.ts +0 -3
- package/lib/conversation/content/TweetContent.d.ts.map +0 -1
- package/lib/conversation/content/TweetContent.js +0 -20
- package/lib/conversation/content/index.d.ts +0 -29
- package/lib/conversation/content/index.d.ts.map +0 -1
- package/lib/conversation/content/index.js +0 -75
- package/lib/conversation/index.d.ts +0 -11
- package/lib/conversation/index.d.ts.map +0 -1
- package/lib/conversation/index.js +0 -44
- package/lib/conversation/message/Message.d.ts +0 -5
- package/lib/conversation/message/Message.d.ts.map +0 -1
- package/lib/conversation/message/Message.js +0 -20
- package/lib/conversation/message/Message.types.d.ts +0 -7
- package/lib/conversation/message/Message.types.d.ts.map +0 -1
- package/lib/conversation/message/Message.types.js +0 -28
- package/lib/conversation/message/MessageBuilder.d.ts +0 -26
- package/lib/conversation/message/MessageBuilder.d.ts.map +0 -1
- package/lib/conversation/message/MessageBuilder.js +0 -291
- package/lib/conversation/message/MessageService.d.ts +0 -68
- package/lib/conversation/message/MessageService.d.ts.map +0 -1
- package/lib/conversation/message/MessageService.js +0 -291
- package/lib/conversation/message/MessageToProtoMapper.d.ts +0 -7
- package/lib/conversation/message/MessageToProtoMapper.d.ts.map +0 -1
- package/lib/conversation/message/MessageToProtoMapper.js +0 -98
- package/lib/conversation/message/OtrMessage.d.ts +0 -81
- package/lib/conversation/message/OtrMessage.d.ts.map +0 -1
- package/lib/conversation/message/OtrMessage.js +0 -20
- package/lib/conversation/message/PayloadBundle.d.ts +0 -68
- package/lib/conversation/message/PayloadBundle.d.ts.map +0 -1
- package/lib/conversation/message/PayloadBundle.js +0 -67
- package/lib/conversation/message/TeamMessage.d.ts +0 -32
- package/lib/conversation/message/TeamMessage.d.ts.map +0 -1
- package/lib/conversation/message/TeamMessage.js +0 -20
- package/lib/conversation/message/TextContentBuilder.d.ts +0 -12
- package/lib/conversation/message/TextContentBuilder.d.ts.map +0 -1
- package/lib/conversation/message/TextContentBuilder.js +0 -61
- package/lib/conversation/message/UserClientsUtil.d.ts +0 -23
- package/lib/conversation/message/UserClientsUtil.d.ts.map +0 -1
- package/lib/conversation/message/UserClientsUtil.js +0 -37
- package/lib/conversation/message/UserMessage.d.ts +0 -44
- package/lib/conversation/message/UserMessage.d.ts.map +0 -1
- package/lib/conversation/message/UserMessage.js +0 -20
- package/lib/conversation/message/index.d.ts +0 -2
- package/lib/conversation/message/index.d.ts.map +0 -1
- package/lib/conversation/message/index.js +0 -35
- package/lib/conversation/message/messageSender.d.ts +0 -7
- package/lib/conversation/message/messageSender.d.ts.map +0 -1
- package/lib/conversation/message/messageSender.js +0 -43
- package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts +0 -12
- package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts.map +0 -1
- package/lib/cryptography/AssetCryptography/EncryptedAsset.js +0 -20
- package/lib/cryptography/AssetCryptography/crypto.browser.d.ts +0 -3
- package/lib/cryptography/AssetCryptography/crypto.browser.d.ts.map +0 -1
- package/lib/cryptography/AssetCryptography/crypto.browser.js +0 -45
- package/lib/cryptography/AssetCryptography/crypto.node.d.ts +0 -3
- package/lib/cryptography/AssetCryptography/crypto.node.d.ts.map +0 -1
- package/lib/cryptography/AssetCryptography/crypto.node.js +0 -71
- package/lib/cryptography/AssetCryptography/index.d.ts +0 -9
- package/lib/cryptography/AssetCryptography/index.d.ts.map +0 -1
- package/lib/cryptography/AssetCryptography/index.js +0 -52
- package/lib/cryptography/AssetCryptography/interfaces.d.ts +0 -10
- package/lib/cryptography/AssetCryptography/interfaces.d.ts.map +0 -1
- package/lib/cryptography/AssetCryptography/interfaces.js +0 -20
- package/lib/cryptography/CryptographyDatabaseRepository.d.ts +0 -16
- package/lib/cryptography/CryptographyDatabaseRepository.d.ts.map +0 -1
- package/lib/cryptography/CryptographyDatabaseRepository.js +0 -42
- package/lib/cryptography/CryptographyService.d.ts +0 -77
- package/lib/cryptography/CryptographyService.d.ts.map +0 -1
- package/lib/cryptography/CryptographyService.js +0 -222
- package/lib/cryptography/GenericMessageMapper.d.ts +0 -8
- package/lib/cryptography/GenericMessageMapper.d.ts.map +0 -1
- package/lib/cryptography/GenericMessageMapper.js +0 -159
- package/lib/cryptography/MessageHashService.d.ts +0 -17
- package/lib/cryptography/MessageHashService.d.ts.map +0 -1
- package/lib/cryptography/MessageHashService.js +0 -117
- package/lib/cryptography/SessionPayloadBundle.d.ts +0 -5
- package/lib/cryptography/SessionPayloadBundle.d.ts.map +0 -1
- package/lib/cryptography/SessionPayloadBundle.js +0 -20
- package/lib/cryptography/Utlility/generateDecryptionError.d.ts +0 -6
- package/lib/cryptography/Utlility/generateDecryptionError.d.ts.map +0 -1
- package/lib/cryptography/Utlility/generateDecryptionError.js +0 -50
- package/lib/cryptography/index.d.ts +0 -5
- package/lib/cryptography/index.d.ts.map +0 -1
- package/lib/cryptography/index.js +0 -38
- package/lib/errors/DecryptionError.d.ts +0 -6
- package/lib/errors/DecryptionError.d.ts.map +0 -1
- package/lib/errors/DecryptionError.js +0 -29
- package/lib/giphy/GiphyService.d.ts +0 -10
- package/lib/giphy/GiphyService.d.ts.map +0 -1
- package/lib/giphy/GiphyService.js +0 -36
- package/lib/giphy/index.d.ts +0 -2
- package/lib/giphy/index.d.ts.map +0 -1
- package/lib/giphy/index.js +0 -35
- package/lib/index.d.ts +0 -8
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -54
- package/lib/linkPreview/LinkPreviewService.d.ts +0 -8
- package/lib/linkPreview/LinkPreviewService.d.ts.map +0 -1
- package/lib/linkPreview/LinkPreviewService.js +0 -51
- package/lib/linkPreview/index.d.ts +0 -2
- package/lib/linkPreview/index.d.ts.map +0 -1
- package/lib/linkPreview/index.js +0 -35
- package/lib/messagingProtocols/common.types.d.ts +0 -3
- package/lib/messagingProtocols/common.types.d.ts.map +0 -1
- package/lib/messagingProtocols/common.types.js +0 -20
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts +0 -5
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.js +0 -37
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.d.ts +0 -3
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.js +0 -36
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.js +0 -35
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts +0 -12
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.js +0 -62
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.js +0 -35
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts +0 -10
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.js +0 -36
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.js +0 -35
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.d.ts +0 -5
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.js +0 -24
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.d.ts +0 -11
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.js +0 -20
- package/lib/messagingProtocols/mls/EventHandler/index.d.ts +0 -3
- package/lib/messagingProtocols/mls/EventHandler/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/EventHandler/index.js +0 -36
- package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts +0 -126
- package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/MLSService.js +0 -428
- package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts +0 -16
- package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/MLSService.types.js +0 -20
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts +0 -8
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.js +0 -50
- package/lib/messagingProtocols/mls/MLSService/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/MLSService/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/index.js +0 -35
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.js +0 -35
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts +0 -11
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js +0 -50
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.js +0 -35
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts +0 -10
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.js +0 -50
- package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.d.ts +0 -9
- package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.js +0 -43
- package/lib/messagingProtocols/mls/index.d.ts +0 -2
- package/lib/messagingProtocols/mls/index.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/index.js +0 -35
- package/lib/messagingProtocols/mls/types.d.ts +0 -55
- package/lib/messagingProtocols/mls/types.d.ts.map +0 -1
- package/lib/messagingProtocols/mls/types.js +0 -20
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.d.ts +0 -5
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.js +0 -29
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.d.ts +0 -2
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.js +0 -35
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.d.ts +0 -2
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.js +0 -35
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.d.ts +0 -10
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.js +0 -46
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.d.ts +0 -2
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.js +0 -35
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.d.ts +0 -5
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.js +0 -24
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.d.ts +0 -11
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.js +0 -20
- package/lib/messagingProtocols/proteus/EventHandler/index.d.ts +0 -3
- package/lib/messagingProtocols/proteus/EventHandler/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/EventHandler/index.js +0 -36
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts +0 -20
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.js +0 -93
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts +0 -25
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.js +0 -20
- package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts +0 -24
- package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.js +0 -86
- package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts +0 -17
- package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.js +0 -43
- package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts +0 -12
- package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.js +0 -38
- package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts +0 -35
- package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.js +0 -87
- package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts +0 -6
- package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/index.js +0 -39
- package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.d.ts +0 -4
- package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.js +0 -29
- package/lib/messagingProtocols/proteus/ProteusService/index.d.ts +0 -4
- package/lib/messagingProtocols/proteus/ProteusService/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/ProteusService/index.js +0 -37
- package/lib/messagingProtocols/proteus/index.d.ts +0 -2
- package/lib/messagingProtocols/proteus/index.d.ts.map +0 -1
- package/lib/messagingProtocols/proteus/index.js +0 -35
- package/lib/notification/NotificationBackendRepository.d.ts +0 -12
- package/lib/notification/NotificationBackendRepository.d.ts.map +0 -1
- package/lib/notification/NotificationBackendRepository.js +0 -33
- package/lib/notification/NotificationDatabaseRepository.d.ts +0 -21
- package/lib/notification/NotificationDatabaseRepository.d.ts.map +0 -1
- package/lib/notification/NotificationDatabaseRepository.js +0 -67
- package/lib/notification/NotificationService.d.ts +0 -70
- package/lib/notification/NotificationService.d.ts.map +0 -1
- package/lib/notification/NotificationService.js +0 -224
- package/lib/notification/Notifications.types.d.ts +0 -6
- package/lib/notification/Notifications.types.d.ts.map +0 -1
- package/lib/notification/Notifications.types.js +0 -27
- package/lib/notification/index.d.ts +0 -3
- package/lib/notification/index.d.ts.map +0 -1
- package/lib/notification/index.js +0 -36
- package/lib/self/SelfService.d.ts +0 -14
- package/lib/self/SelfService.d.ts.map +0 -1
- package/lib/self/SelfService.js +0 -54
- package/lib/self/index.d.ts +0 -2
- package/lib/self/index.d.ts.map +0 -1
- package/lib/self/index.js +0 -35
- package/lib/team/TeamService.d.ts +0 -16
- package/lib/team/TeamService.d.ts.map +0 -1
- package/lib/team/TeamService.js +0 -54
- package/lib/team/index.d.ts +0 -2
- package/lib/team/index.d.ts.map +0 -1
- package/lib/team/index.js +0 -35
- package/lib/user/UserMapper.d.ts +0 -7
- package/lib/user/UserMapper.d.ts.map +0 -1
- package/lib/user/UserMapper.js +0 -87
- package/lib/user/UserService.d.ts +0 -24
- package/lib/user/UserService.d.ts.map +0 -1
- package/lib/user/UserService.js +0 -81
- package/lib/user/index.d.ts +0 -2
- package/lib/user/index.d.ts.map +0 -1
- package/lib/user/index.js +0 -35
- package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts +0 -22
- package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts.map +0 -1
- package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js +0 -66
- package/lib/util/LowPrecisionTaskScheduler/index.d.ts +0 -2
- package/lib/util/LowPrecisionTaskScheduler/index.d.ts.map +0 -1
- package/lib/util/LowPrecisionTaskScheduler/index.js +0 -35
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts +0 -9
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts.map +0 -1
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.js +0 -52
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts +0 -4
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts.map +0 -1
- package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.js +0 -34
- package/lib/util/RecurringTaskScheduler/index.d.ts +0 -2
- package/lib/util/RecurringTaskScheduler/index.d.ts.map +0 -1
- package/lib/util/RecurringTaskScheduler/index.js +0 -35
- package/lib/util/TaskScheduler/TaskScheduler.d.ts +0 -11
- package/lib/util/TaskScheduler/TaskScheduler.d.ts.map +0 -1
- package/lib/util/TaskScheduler/TaskScheduler.js +0 -70
- package/lib/util/TaskScheduler/index.d.ts +0 -2
- package/lib/util/TaskScheduler/index.d.ts.map +0 -1
- package/lib/util/TaskScheduler/index.js +0 -35
- package/lib/util/TypePredicateUtil.d.ts +0 -10
- package/lib/util/TypePredicateUtil.d.ts.map +0 -1
- package/lib/util/TypePredicateUtil.js +0 -60
- package/lib/util/encryptedStore.d.ts +0 -46
- package/lib/util/encryptedStore.d.ts.map +0 -1
- package/lib/util/encryptedStore.js +0 -115
- package/lib/util/encryptedStore.test.node.d.ts +0 -2
- package/lib/util/encryptedStore.test.node.d.ts.map +0 -1
- package/lib/util/encryptedStore.test.node.js +0 -53
- package/lib/util/fullyQualifiedClientIdUtils.d.ts +0 -14
- package/lib/util/fullyQualifiedClientIdUtils.d.ts.map +0 -1
- package/lib/util/fullyQualifiedClientIdUtils.js +0 -41
- package/lib/util/index.d.ts +0 -2
- package/lib/util/index.d.ts.map +0 -1
- package/lib/util/index.js +0 -35
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2022 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.NotificationSource = void 0;
|
|
22
|
-
var NotificationSource;
|
|
23
|
-
(function (NotificationSource) {
|
|
24
|
-
NotificationSource["LOCAL"] = "LOCAL";
|
|
25
|
-
NotificationSource["NOTIFICATION_STREAM"] = "NOTIFICATION_STREAM";
|
|
26
|
-
NotificationSource["WEBSOCKET"] = "WEBSOCKET";
|
|
27
|
-
})(NotificationSource = exports.NotificationSource || (exports.NotificationSource = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAmBA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(o, k2, desc);
|
|
27
|
-
}) : (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
o[k2] = m[k];
|
|
30
|
-
}));
|
|
31
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
__exportStar(require("./NotificationService"), exports);
|
|
36
|
-
__exportStar(require("./Notifications.types"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Self } from '@wireapp/api-client/lib/self/';
|
|
2
|
-
import { APIClient } from '@wireapp/api-client';
|
|
3
|
-
export declare class SelfService {
|
|
4
|
-
private readonly apiClient;
|
|
5
|
-
constructor(apiClient: APIClient);
|
|
6
|
-
checkUsername(username: string): Promise<boolean>;
|
|
7
|
-
checkUsernames(usernames: string[]): Promise<string[]>;
|
|
8
|
-
getName(): Promise<string>;
|
|
9
|
-
getSelf(): Promise<Self>;
|
|
10
|
-
getUsername(): Promise<string | undefined>;
|
|
11
|
-
setName(name: string): Promise<void>;
|
|
12
|
-
setUsername(username: string): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=SelfService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelfService.d.ts","sourceRoot":"","sources":["../../src/self/SelfService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,+BAA+B,CAAC;AAEnD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEpC,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKvD,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMhD,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAK1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxB,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKhD,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpD"}
|
package/lib/self/SelfService.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.SelfService = void 0;
|
|
22
|
-
class SelfService {
|
|
23
|
-
constructor(apiClient) {
|
|
24
|
-
this.apiClient = apiClient;
|
|
25
|
-
}
|
|
26
|
-
async checkUsername(username) {
|
|
27
|
-
const [availableUsername] = await this.checkUsernames([username]);
|
|
28
|
-
return !!availableUsername;
|
|
29
|
-
}
|
|
30
|
-
checkUsernames(usernames) {
|
|
31
|
-
return this.apiClient.api.user.postHandles({
|
|
32
|
-
handles: usernames,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
async getName() {
|
|
36
|
-
const { name } = await this.apiClient.api.self.getName();
|
|
37
|
-
return name;
|
|
38
|
-
}
|
|
39
|
-
async getSelf() {
|
|
40
|
-
const selfData = await this.apiClient.api.self.getSelf();
|
|
41
|
-
return selfData;
|
|
42
|
-
}
|
|
43
|
-
async getUsername() {
|
|
44
|
-
const { handle } = await this.getSelf();
|
|
45
|
-
return handle;
|
|
46
|
-
}
|
|
47
|
-
setName(name) {
|
|
48
|
-
return this.apiClient.api.self.putSelf({ name });
|
|
49
|
-
}
|
|
50
|
-
setUsername(username) {
|
|
51
|
-
return this.apiClient.api.self.putHandle({ handle: username });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.SelfService = SelfService;
|
package/lib/self/index.d.ts
DELETED
package/lib/self/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/self/index.ts"],"names":[],"mappings":"AAmBA,cAAc,eAAe,CAAC"}
|
package/lib/self/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(o, k2, desc);
|
|
27
|
-
}) : (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
o[k2] = m[k];
|
|
30
|
-
}));
|
|
31
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
__exportStar(require("./SelfService"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MemberData, Members, NewTeamData, TeamChunkData, TeamData, UpdateTeamData } from '@wireapp/api-client/lib/team/';
|
|
2
|
-
import { APIClient } from '@wireapp/api-client';
|
|
3
|
-
export declare class TeamService {
|
|
4
|
-
private readonly apiClient;
|
|
5
|
-
constructor(apiClient: APIClient);
|
|
6
|
-
addMember(teamId: string, memberData: MemberData): Promise<void>;
|
|
7
|
-
createTeam(teamData: NewTeamData): Promise<void>;
|
|
8
|
-
deleteTeam(teamId: string, password: string): Promise<void>;
|
|
9
|
-
getAllMembers(teamId: string): Promise<Members>;
|
|
10
|
-
getTeam(teamId: string): Promise<TeamData>;
|
|
11
|
-
getTeams(): Promise<TeamChunkData>;
|
|
12
|
-
removeMember(teamId: string, userId: string, password: string): Promise<void>;
|
|
13
|
-
updateMember(teamId: string, memberData: MemberData): Promise<void>;
|
|
14
|
-
updateTeam(teamId: string, teamData: UpdateTeamData): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=TeamService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamService.d.ts","sourceRoot":"","sources":["../../src/team/TeamService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAExH,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAE1C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE,UAAU,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/C,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI1C,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC;IAIlC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7E,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAInE,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3E"}
|
package/lib/team/TeamService.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.TeamService = void 0;
|
|
22
|
-
class TeamService {
|
|
23
|
-
constructor(apiClient) {
|
|
24
|
-
this.apiClient = apiClient;
|
|
25
|
-
}
|
|
26
|
-
addMember(teamId, memberData) {
|
|
27
|
-
return this.apiClient.api.teams.member.postMembers(teamId, memberData);
|
|
28
|
-
}
|
|
29
|
-
createTeam(teamData) {
|
|
30
|
-
return this.apiClient.api.teams.team.postTeam(teamData);
|
|
31
|
-
}
|
|
32
|
-
deleteTeam(teamId, password) {
|
|
33
|
-
return this.apiClient.api.teams.team.deleteTeam(teamId, password);
|
|
34
|
-
}
|
|
35
|
-
getAllMembers(teamId) {
|
|
36
|
-
return this.apiClient.api.teams.member.getAllMembers(teamId);
|
|
37
|
-
}
|
|
38
|
-
getTeam(teamId) {
|
|
39
|
-
return this.apiClient.api.teams.team.getTeam(teamId);
|
|
40
|
-
}
|
|
41
|
-
getTeams() {
|
|
42
|
-
return this.apiClient.api.teams.team.getTeams();
|
|
43
|
-
}
|
|
44
|
-
removeMember(teamId, userId, password) {
|
|
45
|
-
return this.apiClient.api.teams.member.deleteMember(teamId, userId, password);
|
|
46
|
-
}
|
|
47
|
-
updateMember(teamId, memberData) {
|
|
48
|
-
return this.apiClient.api.teams.member.putMembers(teamId, memberData);
|
|
49
|
-
}
|
|
50
|
-
updateTeam(teamId, teamData) {
|
|
51
|
-
return this.apiClient.api.teams.team.putTeam(teamId, teamData);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.TeamService = TeamService;
|
package/lib/team/index.d.ts
DELETED
package/lib/team/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/team/index.ts"],"names":[],"mappings":"AAmBA,cAAc,eAAe,CAAC"}
|
package/lib/team/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(o, k2, desc);
|
|
27
|
-
}) : (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
o[k2] = m[k];
|
|
30
|
-
}));
|
|
31
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
__exportStar(require("./TeamService"), exports);
|
package/lib/user/UserMapper.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UserEvent } from '@wireapp/api-client/lib/event';
|
|
2
|
-
import { PayloadBundle } from '../conversation';
|
|
3
|
-
import { NotificationSource } from '../notification';
|
|
4
|
-
export declare class UserMapper {
|
|
5
|
-
static mapUserEvent(event: UserEvent, selfUserId: string, source: NotificationSource): PayloadBundle | undefined;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=UserMapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserMapper.d.ts","sourceRoot":"","sources":["../../src/user/UserMapper.ts"],"names":[],"mappings":"AAmBA,OAAO,EAKL,SAAS,EAEV,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAsB,aAAa,EAAoB,MAAM,iBAAiB,CAAC;AAEtF,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,UAAU;WACP,YAAY,CACxB,KAAK,EAAE,SAAS,EAChB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,kBAAkB,GACzB,aAAa,GAAG,SAAS;CA4D7B"}
|
package/lib/user/UserMapper.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2019 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.UserMapper = void 0;
|
|
22
|
-
const event_1 = require("@wireapp/api-client/lib/event");
|
|
23
|
-
const conversation_1 = require("../conversation");
|
|
24
|
-
const MessageBuilder_1 = require("../conversation/message/MessageBuilder");
|
|
25
|
-
class UserMapper {
|
|
26
|
-
static mapUserEvent(event, selfUserId, source) {
|
|
27
|
-
switch (event.type) {
|
|
28
|
-
case event_1.USER_EVENT.CONNECTION: {
|
|
29
|
-
const { connection, user } = event;
|
|
30
|
-
return {
|
|
31
|
-
content: { connection, user },
|
|
32
|
-
conversation: connection.conversation,
|
|
33
|
-
from: connection.from,
|
|
34
|
-
id: (0, MessageBuilder_1.createId)(),
|
|
35
|
-
messageTimer: 0,
|
|
36
|
-
source,
|
|
37
|
-
state: conversation_1.MessageSendingState.INCOMING,
|
|
38
|
-
timestamp: new Date(connection.last_update).getTime(),
|
|
39
|
-
type: conversation_1.PayloadBundleType.CONNECTION_REQUEST,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
case event_1.USER_EVENT.CLIENT_ADD: {
|
|
43
|
-
const { client } = event;
|
|
44
|
-
return {
|
|
45
|
-
content: { client },
|
|
46
|
-
conversation: selfUserId,
|
|
47
|
-
from: selfUserId,
|
|
48
|
-
id: (0, MessageBuilder_1.createId)(),
|
|
49
|
-
messageTimer: 0,
|
|
50
|
-
source,
|
|
51
|
-
state: conversation_1.MessageSendingState.INCOMING,
|
|
52
|
-
timestamp: new Date().getTime(),
|
|
53
|
-
type: conversation_1.PayloadBundleType.CLIENT_ADD,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
case event_1.USER_EVENT.UPDATE: {
|
|
57
|
-
const { user } = event;
|
|
58
|
-
return {
|
|
59
|
-
content: { user },
|
|
60
|
-
conversation: selfUserId,
|
|
61
|
-
from: selfUserId,
|
|
62
|
-
id: (0, MessageBuilder_1.createId)(),
|
|
63
|
-
source,
|
|
64
|
-
state: conversation_1.MessageSendingState.INCOMING,
|
|
65
|
-
timestamp: new Date().getTime(),
|
|
66
|
-
type: conversation_1.PayloadBundleType.USER_UPDATE,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
case event_1.USER_EVENT.CLIENT_REMOVE: {
|
|
70
|
-
const { client } = event;
|
|
71
|
-
return {
|
|
72
|
-
content: { client },
|
|
73
|
-
conversation: selfUserId,
|
|
74
|
-
from: selfUserId,
|
|
75
|
-
id: (0, MessageBuilder_1.createId)(),
|
|
76
|
-
messageTimer: 0,
|
|
77
|
-
source,
|
|
78
|
-
state: conversation_1.MessageSendingState.INCOMING,
|
|
79
|
-
timestamp: new Date().getTime(),
|
|
80
|
-
type: conversation_1.PayloadBundleType.CLIENT_REMOVE,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return undefined;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.UserMapper = UserMapper;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { QualifiedId, User } from '@wireapp/api-client/lib/user/';
|
|
2
|
-
import { APIClient } from '@wireapp/api-client';
|
|
3
|
-
import { AvailabilityType, BroadcastService } from '../broadcast/';
|
|
4
|
-
import { ConnectionService } from '../connection';
|
|
5
|
-
export declare class UserService {
|
|
6
|
-
private readonly apiClient;
|
|
7
|
-
private readonly broadcastService;
|
|
8
|
-
private readonly connectionService;
|
|
9
|
-
constructor(apiClient: APIClient, broadcastService: BroadcastService, connectionService: ConnectionService);
|
|
10
|
-
getUser(userId: string | QualifiedId): Promise<User>;
|
|
11
|
-
getUsers(userIds: string[] | QualifiedId[]): Promise<User[]>;
|
|
12
|
-
/**
|
|
13
|
-
* Sends a availability update to members of the same team
|
|
14
|
-
* @param teamId
|
|
15
|
-
* @param type
|
|
16
|
-
* @param options.sendAll=false will broadcast the message to all the members of the team (instead of just direct connections). Should be avoided in a big team
|
|
17
|
-
* @param options.sendAsProtobuf=false
|
|
18
|
-
*/
|
|
19
|
-
setAvailability(teamId: string, type: AvailabilityType, { sendAll, sendAsProtobuf }?: {
|
|
20
|
-
sendAll?: boolean | undefined;
|
|
21
|
-
sendAsProtobuf?: boolean | undefined;
|
|
22
|
-
}): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=UserService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/user/UserService.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,WAAW,EAAE,IAAI,EAAsB,MAAM,+BAA+B,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAKhD,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;gBAE1C,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB;IAMnG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IASzE;;;;;;OAMG;IACU,eAAe,CAC1B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,EAAC,OAAe,EAAE,cAAsB,EAAC;;;KAAK,GAC7C,OAAO,CAAC,IAAI,CAAC;CAuCjB"}
|
package/lib/user/UserService.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.UserService = void 0;
|
|
22
|
-
const connection_1 = require("@wireapp/api-client/lib/connection");
|
|
23
|
-
const protocol_messaging_1 = require("@wireapp/protocol-messaging");
|
|
24
|
-
const MessageBuilder_1 = require("../conversation/message/MessageBuilder");
|
|
25
|
-
const proteus_1 = require("../messagingProtocols/proteus");
|
|
26
|
-
const TypePredicateUtil_1 = require("../util/TypePredicateUtil");
|
|
27
|
-
class UserService {
|
|
28
|
-
constructor(apiClient, broadcastService, connectionService) {
|
|
29
|
-
this.apiClient = apiClient;
|
|
30
|
-
this.broadcastService = broadcastService;
|
|
31
|
-
this.connectionService = connectionService;
|
|
32
|
-
}
|
|
33
|
-
getUser(userId) {
|
|
34
|
-
return this.apiClient.api.user.getUser(userId);
|
|
35
|
-
}
|
|
36
|
-
async getUsers(userIds) {
|
|
37
|
-
if (!userIds.length) {
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
return (0, TypePredicateUtil_1.isQualifiedIdArray)(userIds)
|
|
41
|
-
? this.apiClient.api.user.postListUsers({ qualified_ids: userIds })
|
|
42
|
-
: this.apiClient.api.user.getUsers({ ids: userIds });
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Sends a availability update to members of the same team
|
|
46
|
-
* @param teamId
|
|
47
|
-
* @param type
|
|
48
|
-
* @param options.sendAll=false will broadcast the message to all the members of the team (instead of just direct connections). Should be avoided in a big team
|
|
49
|
-
* @param options.sendAsProtobuf=false
|
|
50
|
-
*/
|
|
51
|
-
async setAvailability(teamId, type, { sendAll = false, sendAsProtobuf = false } = {}) {
|
|
52
|
-
// Get pre-key bundles for members of your own team
|
|
53
|
-
const preKeyBundlesFromTeam = await this.broadcastService.getPreKeyBundlesFromTeam(teamId, false, !sendAll);
|
|
54
|
-
// Get pre-key bundles for all of your other 1:1 connections
|
|
55
|
-
const connections = await this.connectionService.getConnections();
|
|
56
|
-
const acceptedConnections = connections.filter(connection => connection.status === connection_1.ConnectionStatus.ACCEPTED);
|
|
57
|
-
const preKeyBundlePromises = acceptedConnections.map(connection => {
|
|
58
|
-
const mappedConnection = {
|
|
59
|
-
userId: connection.to,
|
|
60
|
-
conversationId: connection.conversation,
|
|
61
|
-
};
|
|
62
|
-
return (0, proteus_1.getPreKeyBundleMap)({
|
|
63
|
-
apiClient: this.apiClient,
|
|
64
|
-
conversationId: { id: mappedConnection.conversationId, domain: '' },
|
|
65
|
-
userIds: [mappedConnection.userId],
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
const preKeyBundlesFromConnections = await Promise.all(preKeyBundlePromises);
|
|
69
|
-
// Merge pre-key bundles
|
|
70
|
-
const allPreKeyBundles = preKeyBundlesFromConnections.reduce((accumulator, preKeyBundleMap) => {
|
|
71
|
-
return Object.assign(Object.assign({}, accumulator), preKeyBundleMap);
|
|
72
|
-
}, preKeyBundlesFromTeam);
|
|
73
|
-
const genericMessage = protocol_messaging_1.GenericMessage.create({
|
|
74
|
-
availability: new protocol_messaging_1.Availability({ type }),
|
|
75
|
-
messageId: (0, MessageBuilder_1.createId)(),
|
|
76
|
-
});
|
|
77
|
-
// Broadcast availability status to your team members & external 1:1 connections
|
|
78
|
-
await this.broadcastService.broadcastGenericMessage(genericMessage, allPreKeyBundles, sendAsProtobuf);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.UserService = UserService;
|
package/lib/user/index.d.ts
DELETED
package/lib/user/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AAmBA,cAAc,eAAe,CAAC"}
|
package/lib/user/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Wire
|
|
4
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(o, k2, desc);
|
|
27
|
-
}) : (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
o[k2] = m[k];
|
|
30
|
-
}));
|
|
31
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
__exportStar(require("./UserService"), exports);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface IntervalTask {
|
|
2
|
-
key: string;
|
|
3
|
-
firingDate: number;
|
|
4
|
-
task: () => void;
|
|
5
|
-
}
|
|
6
|
-
interface ScheduleLowPrecisionTaskParams extends IntervalTask {
|
|
7
|
-
intervalDelay: number;
|
|
8
|
-
}
|
|
9
|
-
interface CancelLowPrecisionTaskParams {
|
|
10
|
-
key: string;
|
|
11
|
-
intervalDelay: number;
|
|
12
|
-
}
|
|
13
|
-
interface CancelLowPrecisionTaskParams {
|
|
14
|
-
key: string;
|
|
15
|
-
intervalDelay: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const LowPrecisionTaskScheduler: {
|
|
18
|
-
addTask: ({ key, firingDate, task, intervalDelay }: ScheduleLowPrecisionTaskParams) => void;
|
|
19
|
-
cancelTask: ({ intervalDelay, key }: CancelLowPrecisionTaskParams) => void;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=LowPrecisionTaskScheduler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LowPrecisionTaskScheduler.d.ts","sourceRoot":"","sources":["../../../src/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.ts"],"names":[],"mappings":"AAqBA,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,UAAU,8BAA+B,SAAQ,YAAY;IAC3D,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,4BAA4B;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAkCD,UAAU,4BAA4B;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAgBD,eAAO,MAAM,yBAAyB;wDAhDmB,8BAA8B;yCAkC7C,4BAA4B;CAcR,CAAC"}
|