@wireapp/api-client 26.3.2 → 26.4.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/ConversationAPI/ConversationAPI.d.ts +3 -26
- package/lib/conversation/ConversationAPI/ConversationAPI.d.ts.map +1 -1
- package/lib/conversation/ConversationAPI/ConversationAPI.js +6 -59
- package/lib/conversation/index.d.ts +0 -1
- package/lib/conversation/index.d.ts.map +1 -1
- package/lib/conversation/index.js +0 -1
- package/lib/demo/http401.js +1 -1
- package/package.json +2 -2
- package/lib/conversation/Conversations.d.ts +0 -6
- package/lib/conversation/Conversations.d.ts.map +0 -1
- package/lib/conversation/Conversations.js +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proteus as ProtobufOTR } from '@wireapp/protocol-messaging/web/otr';
|
|
2
|
-
import { Conversation, ConversationCode, ConversationProtocol, ConversationRolesList,
|
|
2
|
+
import { Conversation, ConversationCode, ConversationProtocol, ConversationRolesList, Invite, JoinConversationByCodePayload, Member, MessageSendingStatus, MLSConversation, NewConversation, RemoteConversations } from '..';
|
|
3
3
|
import { BackendFeatures } from '../../APIClient';
|
|
4
4
|
import { ConversationAccessUpdateEvent, ConversationCodeDeleteEvent, ConversationCodeUpdateEvent, ConversationEvent, ConversationMemberJoinEvent, ConversationMemberLeaveEvent, ConversationMessageTimerUpdateEvent, ConversationProtocolUpdateEvent, ConversationReceiptModeUpdateEvent, ConversationRenameEvent } from '../../event';
|
|
5
5
|
import { HttpClient } from '../../http';
|
|
@@ -95,14 +95,6 @@ export declare class ConversationAPI {
|
|
|
95
95
|
* @param limit Max. number of qualified IDs to return
|
|
96
96
|
*/
|
|
97
97
|
getQualifiedConversationIds(limit?: number): Promise<QualifiedId[]>;
|
|
98
|
-
/**
|
|
99
|
-
* Get conversations as chunks.
|
|
100
|
-
* Note: At most 500 conversations are returned per request.
|
|
101
|
-
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
102
|
-
* @param limit Max. number of conversations to return
|
|
103
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
104
|
-
*/
|
|
105
|
-
getConversations(startConversationId?: string, limit?: number): Promise<Conversations>;
|
|
106
98
|
/**
|
|
107
99
|
* Get conversation metadata for a list of conversation qualified ids
|
|
108
100
|
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_conversations_list_v2
|
|
@@ -110,24 +102,9 @@ export declare class ConversationAPI {
|
|
|
110
102
|
getConversationsByQualifiedIds(conversations: QualifiedId[]): Promise<RemoteConversations>;
|
|
111
103
|
/**
|
|
112
104
|
* Get all local & remote conversations from a federated backend.
|
|
105
|
+
* @param conversationIdsToSkip Conversation qualified Ids to skip
|
|
113
106
|
*/
|
|
114
|
-
getConversationList(): Promise<RemoteConversations>;
|
|
115
|
-
/**
|
|
116
|
-
* Get conversations.
|
|
117
|
-
* Note: At most 500 conversations are returned per request.
|
|
118
|
-
* @param conversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
119
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
120
|
-
*/
|
|
121
|
-
getConversationsByIds(filteredConversationIds: string[]): Promise<Conversation[]>;
|
|
122
|
-
/**
|
|
123
|
-
* Get conversations.
|
|
124
|
-
* Note: At most 500 conversations are returned per request.
|
|
125
|
-
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
126
|
-
* @param filteredConversationIds Mutually exclusive with `startConversationId`. At most 32 IDs per request.
|
|
127
|
-
* @param limit Max. number of conversations to return
|
|
128
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
129
|
-
*/
|
|
130
|
-
private _getConversations;
|
|
107
|
+
getConversationList(conversationIdsToSkip?: QualifiedId[]): Promise<RemoteConversations>;
|
|
131
108
|
/**
|
|
132
109
|
* see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/get_conversations__cnv_domain___cnv__groupinfo
|
|
133
110
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationAPI.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationAPI/ConversationAPI.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ConversationAPI.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationAPI/ConversationAPI.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EAErB,MAAM,EACN,6BAA6B,EAC7B,MAAM,EACN,oBAAoB,EACpB,eAAe,EACf,eAAe,EAEf,mBAAmB,EACpB,MAAM,IAAI,CAAC;AACZ,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,mCAAmC,EACnC,+BAA+B,EAC/B,kCAAkC,EAClC,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAkC,UAAU,EAAC,MAAM,YAAY,CAAC;AACvE,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AAMvC,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC5B,kCAAkC,EAClC,0BAA0B,EAC1B,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAEvE,MAAM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|
return getConversationChunks();
|
|
185
185
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Get conversations as chunks.
|
|
188
|
-
* Note: At most 500 conversations are returned per request.
|
|
189
|
-
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
190
|
-
* @param limit Max. number of conversations to return
|
|
191
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
192
|
-
*/
|
|
193
|
-
getConversations(startConversationId, limit = ConversationAPI.MAX_CHUNK_SIZE) {
|
|
194
|
-
return this._getConversations(startConversationId, undefined, limit);
|
|
195
|
-
}
|
|
196
186
|
/**
|
|
197
187
|
* Get conversation metadata for a list of conversation qualified ids
|
|
198
188
|
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_conversations_list_v2
|
|
@@ -220,57 +210,14 @@ class ConversationAPI {
|
|
|
220
210
|
}
|
|
221
211
|
/**
|
|
222
212
|
* Get all local & remote conversations from a federated backend.
|
|
213
|
+
* @param conversationIdsToSkip Conversation qualified Ids to skip
|
|
223
214
|
*/
|
|
224
|
-
async getConversationList() {
|
|
215
|
+
async getConversationList(conversationIdsToSkip = []) {
|
|
225
216
|
const allConversationIds = await this.getQualifiedConversationIds();
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
* Get conversations.
|
|
231
|
-
* Note: At most 500 conversations are returned per request.
|
|
232
|
-
* @param conversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
233
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
234
|
-
*/
|
|
235
|
-
async getConversationsByIds(filteredConversationIds) {
|
|
236
|
-
let allConversations = [];
|
|
237
|
-
const getConversationChunk = async (chunkedConversationIds) => {
|
|
238
|
-
const { conversations } = await this._getConversations(undefined, chunkedConversationIds, ConversationAPI.MAX_CHUNK_SIZE);
|
|
239
|
-
return conversations;
|
|
240
|
-
};
|
|
241
|
-
for (let index = 0; index < filteredConversationIds.length; index += ConversationAPI.MAX_CHUNK_SIZE) {
|
|
242
|
-
const requestChunk = filteredConversationIds.slice(index, index + ConversationAPI.MAX_CHUNK_SIZE);
|
|
243
|
-
if (requestChunk.length) {
|
|
244
|
-
const conversationChunk = await getConversationChunk(requestChunk);
|
|
245
|
-
if (conversationChunk.length) {
|
|
246
|
-
allConversations = allConversations.concat(conversationChunk);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
return allConversations;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Get conversations.
|
|
254
|
-
* Note: At most 500 conversations are returned per request.
|
|
255
|
-
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
256
|
-
* @param filteredConversationIds Mutually exclusive with `startConversationId`. At most 32 IDs per request.
|
|
257
|
-
* @param limit Max. number of conversations to return
|
|
258
|
-
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
259
|
-
*/
|
|
260
|
-
async _getConversations(startConversationId, filteredConversationIds, limit = ConversationAPI.MAX_CHUNK_SIZE) {
|
|
261
|
-
const config = {
|
|
262
|
-
method: 'get',
|
|
263
|
-
params: {
|
|
264
|
-
size: limit,
|
|
265
|
-
start: startConversationId,
|
|
266
|
-
},
|
|
267
|
-
url: ConversationAPI.URL.CONVERSATIONS,
|
|
268
|
-
};
|
|
269
|
-
if (filteredConversationIds) {
|
|
270
|
-
config.params.ids = filteredConversationIds.join(',');
|
|
271
|
-
}
|
|
272
|
-
const response = await this.client.sendJSON(config);
|
|
273
|
-
return response.data;
|
|
217
|
+
const filteredConversationIds = allConversationIds.filter(qualifiedId => {
|
|
218
|
+
return !conversationIdsToSkip.some(({ id, domain }) => id === qualifiedId.id && domain === qualifiedId.domain);
|
|
219
|
+
});
|
|
220
|
+
return this.getConversationsByQualifiedIds(filteredConversationIds);
|
|
274
221
|
}
|
|
275
222
|
/**
|
|
276
223
|
* see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/get_conversations__cnv_domain___cnv__groupinfo
|
|
@@ -5,7 +5,6 @@ export * from './ConversationError';
|
|
|
5
5
|
export * from './FederatedBackendsError';
|
|
6
6
|
export * from './ConversationIds';
|
|
7
7
|
export * from './ConversationMembers';
|
|
8
|
-
export * from './Conversations';
|
|
9
8
|
export * from './ConversationRole';
|
|
10
9
|
export * from './Invite';
|
|
11
10
|
export * from './Member';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversation/index.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversation/index.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
@@ -39,7 +39,6 @@ __exportStar(require("./ConversationError"), exports);
|
|
|
39
39
|
__exportStar(require("./FederatedBackendsError"), exports);
|
|
40
40
|
__exportStar(require("./ConversationIds"), exports);
|
|
41
41
|
__exportStar(require("./ConversationMembers"), exports);
|
|
42
|
-
__exportStar(require("./Conversations"), exports);
|
|
43
42
|
__exportStar(require("./ConversationRole"), exports);
|
|
44
43
|
__exportStar(require("./Invite"), exports);
|
|
45
44
|
__exportStar(require("./Member"), exports);
|
package/lib/demo/http401.js
CHANGED
|
@@ -22,7 +22,7 @@ const initClient_1 = require("./initClient");
|
|
|
22
22
|
(async () => {
|
|
23
23
|
const apiClient = await (0, initClient_1.initClient)();
|
|
24
24
|
apiClient['accessTokenStore'].accessToken.access_token = 'invalid';
|
|
25
|
-
await apiClient.api.conversation.
|
|
25
|
+
await apiClient.api.conversation.getConversationList();
|
|
26
26
|
})().catch(error => {
|
|
27
27
|
console.error(error);
|
|
28
28
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Conversations.d.ts","sourceRoot":"","sources":["../../src/conversation/Conversations.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,IAAI,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,20 +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 });
|