@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.
Files changed (37) hide show
  1. package/lib/conversation/Conversation.d.ts +4 -3
  2. package/lib/conversation/Conversation.d.ts.map +1 -1
  3. package/lib/conversation/ConversationAPI/ConversationAPI.d.ts +3 -2
  4. package/lib/conversation/ConversationAPI/ConversationAPI.d.ts.map +1 -1
  5. package/lib/conversation/NewConversation.d.ts +2 -7
  6. package/lib/conversation/NewConversation.d.ts.map +1 -1
  7. package/lib/conversation/NewConversation.js +0 -7
  8. package/lib/conversation/data/ConversationProtocolUpdateData.d.ts +2 -2
  9. package/lib/conversation/data/ConversationProtocolUpdateData.d.ts.map +1 -1
  10. package/lib/self/SelfAPI.d.ts +2 -2
  11. package/lib/self/SelfAPI.d.ts.map +1 -1
  12. package/lib/team/feature/FeatureAPI.d.ts +13 -31
  13. package/lib/team/feature/FeatureAPI.d.ts.map +1 -1
  14. package/lib/team/feature/FeatureAPI.js +71 -84
  15. package/lib/team/feature/FeatureList.helper.d.ts +3 -0
  16. package/lib/team/feature/FeatureList.helper.d.ts.map +1 -0
  17. package/lib/team/feature/FeatureList.helper.js +38 -0
  18. package/lib/team/feature/FeatureList.schema.d.ts +2187 -0
  19. package/lib/team/feature/FeatureList.schema.d.ts.map +1 -0
  20. package/lib/team/feature/FeatureList.schema.js +168 -0
  21. package/lib/team/feature/FeatureList.types.d.ts +113 -0
  22. package/lib/team/feature/FeatureList.types.d.ts.map +1 -0
  23. package/lib/team/feature/FeatureList.types.js +91 -0
  24. package/lib/team/feature/index.d.ts +3 -2
  25. package/lib/team/feature/index.d.ts.map +1 -1
  26. package/lib/team/feature/index.js +3 -2
  27. package/lib/user/User.d.ts +3 -2
  28. package/lib/user/User.d.ts.map +1 -1
  29. package/lib/user/UserAPI.d.ts +3 -2
  30. package/lib/user/UserAPI.d.ts.map +1 -1
  31. package/package.json +2 -2
  32. package/lib/team/feature/Feature.d.ts +0 -96
  33. package/lib/team/feature/Feature.d.ts.map +0 -1
  34. package/lib/team/feature/Feature.js +0 -47
  35. package/lib/team/feature/FeatureList.d.ts +0 -55
  36. package/lib/team/feature/FeatureList.d.ts.map +0 -1
  37. 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;