@wireapp/core 39.3.3 → 40.0.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.
@@ -4,6 +4,10 @@ export declare class UserService {
4
4
  private readonly apiClient;
5
5
  constructor(apiClient: APIClient);
6
6
  getUser(userId: string | QualifiedId): Promise<User>;
7
- getUsers(userIds: string[] | QualifiedId[]): Promise<User[]>;
7
+ getUsers(userIds: QualifiedId[]): Promise<{
8
+ found?: User[] | undefined;
9
+ failed?: QualifiedId[] | undefined;
10
+ not_found?: QualifiedId[] | undefined;
11
+ } | never[]>;
8
12
  }
9
13
  //# sourceMappingURL=UserService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/user/UserService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAE,IAAI,EAAC,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAI9C,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;gBAE1B,SAAS,EAAE,SAAS;IAIzB,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;CAQ1E"}
1
+ {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/user/UserService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAE,IAAI,EAAC,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;gBAE1B,SAAS,EAAE,SAAS;IAIzB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE;;;;;CAM7C"}
@@ -19,7 +19,6 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.UserService = void 0;
22
- const TypePredicateUtil_1 = require("../util/TypePredicateUtil");
23
22
  class UserService {
24
23
  constructor(apiClient) {
25
24
  this.apiClient = apiClient;
@@ -31,9 +30,7 @@ class UserService {
31
30
  if (!userIds.length) {
32
31
  return [];
33
32
  }
34
- return (0, TypePredicateUtil_1.isQualifiedIdArray)(userIds)
35
- ? this.apiClient.api.user.postListUsers({ qualified_ids: userIds })
36
- : this.apiClient.api.user.getUsers({ ids: userIds });
33
+ return this.apiClient.api.user.postListUsers({ qualified_ids: userIds });
37
34
  }
38
35
  }
39
36
  exports.UserService = UserService;
@@ -2,7 +2,6 @@ import { Conversation, QualifiedUserClients, UserClients } from '@wireapp/api-cl
2
2
  import { QualifiedId } from '@wireapp/api-client/lib/user/';
3
3
  import { MLSConversation } from '../messagingProtocols/mls/types';
4
4
  export declare function isStringArray(obj: any): obj is string[];
5
- export declare function isQualifiedId(obj: any): obj is QualifiedId;
6
5
  export declare function isQualifiedIdArray(obj: any): obj is QualifiedId[];
7
6
  export declare function isQualifiedUserClients(obj: any): obj is QualifiedUserClients;
8
7
  export declare function isUserClients(obj: any): obj is UserClients;
@@ -1 +1 @@
1
- {"version":3,"file":"TypePredicateUtil.d.ts","sourceRoot":"","sources":["../../src/util/TypePredicateUtil.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EAEZ,oBAAoB,EACpB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAEhE,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,EAAE,CAEvD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW,CAE1D;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW,EAAE,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB,CAS5E;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW,CAM1D;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,YAAY,IAAI,eAAe,CAG7F"}
1
+ {"version":3,"file":"TypePredicateUtil.d.ts","sourceRoot":"","sources":["../../src/util/TypePredicateUtil.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EAEZ,oBAAoB,EACpB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAEhE,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,EAAE,CAEvD;AAMD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW,EAAE,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB,CAS5E;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW,CAM1D;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,YAAY,IAAI,eAAe,CAG7F"}
@@ -18,7 +18,7 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.isMLSConversation = exports.isUserClients = exports.isQualifiedUserClients = exports.isQualifiedIdArray = exports.isQualifiedId = exports.isStringArray = void 0;
21
+ exports.isMLSConversation = exports.isUserClients = exports.isQualifiedUserClients = exports.isQualifiedIdArray = exports.isStringArray = void 0;
22
22
  const conversation_1 = require("@wireapp/api-client/lib/conversation/");
23
23
  function isStringArray(obj) {
24
24
  return Array.isArray(obj) && (obj.length === 0 || typeof obj[0] === 'string');
@@ -27,7 +27,6 @@ exports.isStringArray = isStringArray;
27
27
  function isQualifiedId(obj) {
28
28
  return typeof obj === 'object' && typeof obj['domain'] === 'string';
29
29
  }
30
- exports.isQualifiedId = isQualifiedId;
31
30
  function isQualifiedIdArray(obj) {
32
31
  return Array.isArray(obj) && isQualifiedId(obj[0]);
33
32
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
12
12
  },
13
13
  "dependencies": {
14
- "@wireapp/api-client": "^23.3.0",
14
+ "@wireapp/api-client": "^24.0.0",
15
15
  "@wireapp/commons": "^5.0.4",
16
16
  "@wireapp/core-crypto": "0.7.0-rc.3",
17
17
  "@wireapp/cryptobox": "12.8.0",
@@ -60,6 +60,6 @@
60
60
  "test:coverage": "jest --coverage",
61
61
  "watch": "tsc --watch"
62
62
  },
63
- "version": "39.3.3",
64
- "gitHead": "91eee49b4d2d06c5d375bfbbcd4b6b32ccc3667b"
63
+ "version": "40.0.0",
64
+ "gitHead": "017d872483bcdea00b20a75101e905788629e632"
65
65
  }