@wireapp/api-client 27.85.0 → 27.87.0
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/lib/conversation/Conversation.d.ts +4 -3
- package/lib/conversation/Conversation.d.ts.map +1 -1
- package/lib/conversation/ConversationAPI/ConversationAPI.d.ts +3 -2
- package/lib/conversation/ConversationAPI/ConversationAPI.d.ts.map +1 -1
- package/lib/conversation/NewConversation.d.ts +2 -7
- package/lib/conversation/NewConversation.d.ts.map +1 -1
- package/lib/conversation/NewConversation.js +0 -7
- package/lib/conversation/data/ConversationProtocolUpdateData.d.ts +2 -2
- package/lib/conversation/data/ConversationProtocolUpdateData.d.ts.map +1 -1
- package/lib/self/SelfAPI.d.ts +2 -2
- package/lib/self/SelfAPI.d.ts.map +1 -1
- package/lib/team/feature/FeatureAPI.d.ts +13 -31
- package/lib/team/feature/FeatureAPI.d.ts.map +1 -1
- package/lib/team/feature/FeatureAPI.js +71 -84
- package/lib/team/feature/FeatureList.helper.d.ts +3 -0
- package/lib/team/feature/FeatureList.helper.d.ts.map +1 -0
- package/lib/team/feature/FeatureList.helper.js +38 -0
- package/lib/team/feature/FeatureList.schema.d.ts +2187 -0
- package/lib/team/feature/FeatureList.schema.d.ts.map +1 -0
- package/lib/team/feature/FeatureList.schema.js +168 -0
- package/lib/team/feature/FeatureList.types.d.ts +113 -0
- package/lib/team/feature/FeatureList.types.d.ts.map +1 -0
- package/lib/team/feature/FeatureList.types.js +91 -0
- package/lib/team/feature/index.d.ts +3 -2
- package/lib/team/feature/index.d.ts.map +1 -1
- package/lib/team/feature/index.js +3 -2
- package/lib/user/User.d.ts +3 -2
- package/lib/user/User.d.ts.map +1 -1
- package/lib/user/UserAPI.d.ts +3 -2
- package/lib/user/UserAPI.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/team/feature/Feature.d.ts +0 -96
- package/lib/team/feature/Feature.d.ts.map +0 -1
- package/lib/team/feature/Feature.js +0 -47
- package/lib/team/feature/FeatureList.d.ts +0 -55
- package/lib/team/feature/FeatureList.d.ts.map +0 -1
- package/lib/team/feature/FeatureList.js +0 -48
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2025 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.mapToConversationProtocol = void 0;
|
|
22
|
+
const FeatureList_types_1 = require("./FeatureList.types");
|
|
23
|
+
const mapToConversationProtocol = (protocol) => {
|
|
24
|
+
if (typeof protocol !== 'string') {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
switch (protocol) {
|
|
28
|
+
case FeatureList_types_1.CONVERSATION_PROTOCOL.MLS:
|
|
29
|
+
return FeatureList_types_1.CONVERSATION_PROTOCOL.MLS;
|
|
30
|
+
case FeatureList_types_1.CONVERSATION_PROTOCOL.PROTEUS:
|
|
31
|
+
return FeatureList_types_1.CONVERSATION_PROTOCOL.PROTEUS;
|
|
32
|
+
case FeatureList_types_1.CONVERSATION_PROTOCOL.MIXED:
|
|
33
|
+
return FeatureList_types_1.CONVERSATION_PROTOCOL.MIXED;
|
|
34
|
+
default:
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.mapToConversationProtocol = mapToConversationProtocol;
|