@wireapp/api-client 20.6.7 → 20.6.9
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 +2 -3
- package/src/notification/{NotificationAPI.d.ts → NotificationAPI/NotificationAPI.d.ts} +2 -2
- package/src/notification/{NotificationAPI.js → NotificationAPI/NotificationAPI.js} +9 -6
- package/src/notification/{NotificationAPI.js.map → NotificationAPI/NotificationAPI.js.map} +1 -1
- package/src/notification/NotificationAPI/NotificationsAPI.mocks.d.ts +38 -0
- package/src/notification/NotificationAPI/NotificationsAPI.mocks.js +86 -0
- package/src/notification/NotificationAPI/NotificationsAPI.mocks.js.map +1 -0
- package/src/notification/NotificationAPI/index.d.ts +1 -0
- package/src/notification/NotificationAPI/index.js +36 -0
- package/src/notification/NotificationAPI/index.js.map +1 -0
package/package.json
CHANGED
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@types/spark-md5": "3.0.2",
|
|
31
31
|
"@types/tough-cookie": "4.0.1",
|
|
32
32
|
"@types/ws": "7.4.7",
|
|
33
|
-
"@wireapp/react-ui-kit": "^8.15.0",
|
|
34
33
|
"@wireapp/store-engine": "^4.10.6",
|
|
35
34
|
"@wireapp/store-engine-fs": "^2.5.6",
|
|
36
35
|
"babel-loader": "8.2.2",
|
|
@@ -75,6 +74,6 @@
|
|
|
75
74
|
"watch": "webpack serve --config webpack.browser.js",
|
|
76
75
|
"prepare": "yarn dist"
|
|
77
76
|
},
|
|
78
|
-
"version": "20.6.
|
|
79
|
-
"gitHead": "
|
|
77
|
+
"version": "20.6.9",
|
|
78
|
+
"gitHead": "0368f45ba491397a1fab4ba38f50beb85f7a58e7"
|
|
80
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpClient } from '
|
|
2
|
-
import { Notification, NotificationList } from '
|
|
1
|
+
import { HttpClient } from '../../http';
|
|
2
|
+
import { Notification, NotificationList } from '..';
|
|
3
3
|
export declare const NOTIFICATION_SIZE_MAXIMUM = 10000;
|
|
4
4
|
declare type NotificationsReponse = {
|
|
5
5
|
notifications: Notification[];
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.NotificationAPI = exports.NOTIFICATION_SIZE_MAXIMUM = void 0;
|
|
22
|
-
const http_1 = require("
|
|
22
|
+
const http_1 = require("../../http");
|
|
23
23
|
exports.NOTIFICATION_SIZE_MAXIMUM = 10000;
|
|
24
24
|
class NotificationAPI {
|
|
25
25
|
constructor(client) {
|
|
@@ -69,27 +69,30 @@ class NotificationAPI {
|
|
|
69
69
|
async getAllNotifications(clientId, lastNotificationId) {
|
|
70
70
|
let notificationList = [];
|
|
71
71
|
const getNotificationChunks = async (currentClientId, currentNotificationId) => {
|
|
72
|
-
var _a, _b;
|
|
73
|
-
|
|
72
|
+
var _a, _b, _c;
|
|
73
|
+
const defaultPayload = {
|
|
74
74
|
notifications: [],
|
|
75
75
|
time: '0',
|
|
76
76
|
has_more: false,
|
|
77
77
|
};
|
|
78
|
+
let payload = Object.assign({}, defaultPayload);
|
|
78
79
|
let hasMissedNotifications = false;
|
|
79
80
|
try {
|
|
80
81
|
payload = await this.getNotifications(currentClientId, exports.NOTIFICATION_SIZE_MAXIMUM, currentNotificationId);
|
|
81
82
|
}
|
|
82
83
|
catch (error) {
|
|
83
84
|
if (http_1.HttpClient.isAxiosError(error)) {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
if ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.notifications) {
|
|
86
|
+
hasMissedNotifications = true;
|
|
87
|
+
payload = Object.assign(Object.assign({}, defaultPayload), (_c = error.response) === null || _c === void 0 ? void 0 : _c.data);
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
else {
|
|
88
91
|
throw error;
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
const { notifications, has_more } = payload;
|
|
92
|
-
if (notifications.length) {
|
|
95
|
+
if (notifications === null || notifications === void 0 ? void 0 : notifications.length) {
|
|
93
96
|
notificationList = notificationList.concat(notifications);
|
|
94
97
|
}
|
|
95
98
|
if (has_more) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationAPI.js","sourceRoot":"","sources":["NotificationAPI.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAIH,
|
|
1
|
+
{"version":3,"file":"NotificationAPI.js","sourceRoot":"","sources":["NotificationAPI.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAIH,qCAAsC;AAGzB,QAAA,yBAAyB,GAAG,KAAK,CAAC;AAO/C,MAAa,eAAe;IAC1B,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAOnD;;;OAGG;IACI,KAAK,CAAC,mBAAmB,CAAC,QAAiB;QAChD,MAAM,MAAM,GAAuB;YACjC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,MAAM,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE,GAAG,eAAe,CAAC,GAAG,CAAC,YAAY,IAAI,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE;SACvE,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAe,MAAM,CAAC,CAAC;QAClE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,gBAAgB,CAC3B,QAAiB,EACjB,OAAe,iCAAyB,EACxC,KAAc;QAEd,MAAM,MAAM,GAAuB;YACjC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,MAAM,EAAE,QAAQ;gBAChB,KAAK;gBACL,IAAI;aACL;YACD,GAAG,EAAE,eAAe,CAAC,GAAG,CAAC,YAAY;SACtC,CAAC;QAEF,MAAM,QAAQ,GAAG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C,CAAC;gBACjE,IAAI,gBAAgB,EAAE;oBACpB,OAAO,qBAAqB,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC;iBACpE;aACF;YAED,OAAO;gBACL,aAAa,EAAE,gBAAgB;gBAC/B,kBAAkB,EAAE,sBAAsB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS;aAC/E,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO,qBAAqB,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,eAAe,CAAC,cAAsB,EAAE,QAAiB;QACpE,MAAM,MAAM,GAAuB;YACjC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,MAAM,EAAE,QAAQ;aACjB;YACD,GAAG,EAAE,GAAG,eAAe,CAAC,GAAG,CAAC,YAAY,IAAI,cAAc,EAAE;SAC7D,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAe,MAAM,CAAC,CAAC;QAClE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;;AAzHH,0CA0HC;AAvHwB,mBAAG,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,gBAAgB;CAC/B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient } from '../../http';
|
|
2
|
+
import { NotificationAPI } from './NotificationAPI';
|
|
3
|
+
declare const mockedNotificationId = "test-notification-id";
|
|
4
|
+
declare const mockedResultData: {
|
|
5
|
+
has_more: boolean;
|
|
6
|
+
notifications: {
|
|
7
|
+
id: string;
|
|
8
|
+
payload: {
|
|
9
|
+
conversation: string;
|
|
10
|
+
data: {
|
|
11
|
+
qualified_user_ids: {
|
|
12
|
+
domain: string;
|
|
13
|
+
id: string;
|
|
14
|
+
}[];
|
|
15
|
+
user_ids: string[];
|
|
16
|
+
};
|
|
17
|
+
from: string;
|
|
18
|
+
qualified_conversation: {
|
|
19
|
+
domain: string;
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
qualified_from: {
|
|
23
|
+
domain: string;
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
time: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
30
|
+
time: string;
|
|
31
|
+
};
|
|
32
|
+
declare const client: HttpClient;
|
|
33
|
+
declare const notificationAPI: NotificationAPI;
|
|
34
|
+
declare const getAllNotificationsResult: () => Promise<{
|
|
35
|
+
notifications: import("..").Notification[];
|
|
36
|
+
missedNotification?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export { client, notificationAPI, getAllNotificationsResult, mockedResultData, mockedNotificationId };
|
|
@@ -0,0 +1,86 @@
|
|
|
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.mockedNotificationId = exports.mockedResultData = exports.getAllNotificationsResult = exports.notificationAPI = exports.client = void 0;
|
|
22
|
+
const http_1 = require("../../http");
|
|
23
|
+
const NotificationAPI_1 = require("./NotificationAPI");
|
|
24
|
+
const domain = 'https://test.zinfra.io';
|
|
25
|
+
const testConfig = { urls: { rest: domain, ws: '', name: 'test' } };
|
|
26
|
+
const mockedAccessTokenStore = {
|
|
27
|
+
accessToken: {
|
|
28
|
+
access_token: 'iJCRCjc8oROO-dkrkqCXOade997oa8Jhbz6awMUQPBQo80VenWqp_oNvfY6AnU5BxEsd' +
|
|
29
|
+
'DPOBfBP-uz_b0gAKBQ==.v=1.k=1.d=1498600993.t=a.l=.u=aaf9a833-ef30-4c2' +
|
|
30
|
+
'2-86a0-9adc8a15b3b4.c=15037015562284012115',
|
|
31
|
+
expires_in: 900,
|
|
32
|
+
token_type: 'Bearer',
|
|
33
|
+
user: 'aaf9a833-ef30-4c22-86a0-9adc8a15b3b4',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const mockedClientId = 'test-client-id';
|
|
37
|
+
const mockedNotificationId = 'test-notification-id';
|
|
38
|
+
exports.mockedNotificationId = mockedNotificationId;
|
|
39
|
+
const mockedResultData = {
|
|
40
|
+
has_more: false,
|
|
41
|
+
notifications: [
|
|
42
|
+
{
|
|
43
|
+
id: '649b75ed-3a72-11ed-8001-222b177be93e',
|
|
44
|
+
payload: [
|
|
45
|
+
{
|
|
46
|
+
conversation: '79930ec2-a09e-4b4a-a83c-dc7e4be1a829',
|
|
47
|
+
data: {
|
|
48
|
+
qualified_user_ids: [{ domain, id: '9b77306d-e761-4276-b5c7-e5dc2c4d8067' }],
|
|
49
|
+
user_ids: ['9b77306d-e761-4276-b5c7-e5dc2c4d8067'],
|
|
50
|
+
},
|
|
51
|
+
from: '9b77306d-e761-4276-b5c7-e5dc2c4d8067',
|
|
52
|
+
qualified_conversation: { domain, id: '79930ec2-a09e-4b4a-a83c-dc7e4be1a829' },
|
|
53
|
+
qualified_from: { domain, id: '9b77306d-e761-4276-b5c7-e5dc2c4d8067' },
|
|
54
|
+
time: '2022-09-22T12:30:50.693Z',
|
|
55
|
+
type: 'conversation.member-leave',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: '725549ca-3a72-11ed-8001-222b177be93e',
|
|
61
|
+
payload: [
|
|
62
|
+
{
|
|
63
|
+
conversation: 'a8dbcf9f-c275-4100-8f95-a8c00e43ca7c',
|
|
64
|
+
data: {
|
|
65
|
+
qualified_user_ids: [{ domain, id: '9b77306d-e761-4276-b5c7-e5dc2c4d8067' }],
|
|
66
|
+
user_ids: ['9b77306d-e761-4276-b5c7-e5dc2c4d8067'],
|
|
67
|
+
},
|
|
68
|
+
from: '9b77306d-e761-4276-b5c7-e5dc2c4d8067',
|
|
69
|
+
qualified_conversation: { domain, id: 'a8dbcf9f-c275-4100-8f95-a8c00e43ca7c' },
|
|
70
|
+
qualified_from: { domain, id: '9b77306d-e761-4276-b5c7-e5dc2c4d8067' },
|
|
71
|
+
time: '2022-09-22T12:31:13.721Z',
|
|
72
|
+
type: 'conversation.member-leave',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
time: '2022-10-18T08:34:45Z',
|
|
78
|
+
};
|
|
79
|
+
exports.mockedResultData = mockedResultData;
|
|
80
|
+
const client = new http_1.HttpClient(testConfig, mockedAccessTokenStore);
|
|
81
|
+
exports.client = client;
|
|
82
|
+
const notificationAPI = new NotificationAPI_1.NotificationAPI(client);
|
|
83
|
+
exports.notificationAPI = notificationAPI;
|
|
84
|
+
const getAllNotificationsResult = () => notificationAPI.getAllNotifications(mockedClientId, mockedNotificationId);
|
|
85
|
+
exports.getAllNotificationsResult = getAllNotificationsResult;
|
|
86
|
+
//# sourceMappingURL=NotificationsAPI.mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationsAPI.mocks.js","sourceRoot":"","sources":["NotificationsAPI.mocks.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAGH,qCAAsC;AACtC,u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AAI,EAAE,sCAAsC;oBAC5C,sBAAsB,EAAE,EAAC,MAAM,EAAE,EAAE,EAAE,sCAAsC,EAAC;oBAC5E,cAAc,EAAE,EAAC,MAAM,EAAE,EAAE,EAAE,sCAAsC,EAAC;oBACpE,IAAI,EAAE,0BAA0B;oBAChC,IAAI,EAAE,2BAA2B;iBAClC;aACF;SACF;KACF;IACD,IAAI,EAAE,sBAAsB;CAC7B,CAAC;AAQ0D,4CAAgB;AAN5E,MAAM,MAAM,GAAG,IAAI,iBAAU,CAAC,UAAU,EAAE,sBAA0C,CAAC,CAAC;AAM9E,wBAAM;AAJd,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,MAAM,CAAC,CAAC;AAIpC,0CAAe;AAF/B,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAAC,eAAe,CAAC,mBAAmB,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC;AAEjF,8DAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NotificationAPI';
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
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("./NotificationAPI"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,oDAAkC"}
|