@wireapp/api-client 27.8.1 → 27.10.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/team/invitation/TeamInvitation.d.ts +1 -0
- package/lib/team/invitation/TeamInvitation.d.ts.map +1 -1
- package/lib/team/invitation/TeamInvitationAPI.d.ts +3 -0
- package/lib/team/invitation/TeamInvitationAPI.d.ts.map +1 -1
- package/lib/team/invitation/TeamInvitationAPI.js +10 -0
- package/lib/team/invitation/TeamMigrationPayload.d.ts +7 -0
- package/lib/team/invitation/TeamMigrationPayload.d.ts.map +1 -0
- package/lib/team/invitation/TeamMigrationPayload.js +20 -0
- package/lib/team/invitation/index.d.ts +1 -0
- package/lib/team/invitation/index.d.ts.map +1 -1
- package/lib/team/invitation/index.js +1 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
1
|
+
{"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TeamMigrationPayload } from './TeamMigrationPayload';
|
|
1
2
|
import { HttpClient } from '../../http/';
|
|
2
3
|
import { NewTeamInvitation, TeamInvitation, TeamInvitationChunk } from '../invitation/';
|
|
3
4
|
export declare class TeamInvitationAPI {
|
|
@@ -8,6 +9,7 @@ export declare class TeamInvitationAPI {
|
|
|
8
9
|
INVITATIONS: string;
|
|
9
10
|
EMAIL: string;
|
|
10
11
|
ACCEPT: string;
|
|
12
|
+
UPGRADE_PERSONAL_TO_TEAM: string;
|
|
11
13
|
};
|
|
12
14
|
constructor(client: HttpClient);
|
|
13
15
|
getInvitation(teamId: string, invitationId: string): Promise<TeamInvitation>;
|
|
@@ -21,5 +23,6 @@ export declare class TeamInvitationAPI {
|
|
|
21
23
|
code: string;
|
|
22
24
|
password: string;
|
|
23
25
|
}): Promise<TeamInvitation>;
|
|
26
|
+
upgradePersonalToTeamUser({ iconKey, icon, name, currency, }: TeamMigrationPayload): Promise<TeamInvitation>;
|
|
24
27
|
}
|
|
25
28
|
//# sourceMappingURL=TeamInvitationAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamInvitationAPI.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitationAPI.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TeamInvitationAPI.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitationAPI.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAC,UAAU,EAAkC,MAAM,aAAa,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,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
|
constructor(client) {
|
|
40
41
|
this.client = client;
|
|
@@ -148,5 +149,14 @@ class TeamInvitationAPI {
|
|
|
148
149
|
const response = await this.client.sendJSON(config);
|
|
149
150
|
return response.data;
|
|
150
151
|
}
|
|
152
|
+
async upgradePersonalToTeamUser({ iconKey, icon = 'default', name, currency, }) {
|
|
153
|
+
const config = {
|
|
154
|
+
data: { icon_key: iconKey, icon, name, currency },
|
|
155
|
+
method: 'post',
|
|
156
|
+
url: `/${TeamInvitationAPI.URL.UPGRADE_PERSONAL_TO_TEAM}`,
|
|
157
|
+
};
|
|
158
|
+
const response = await this.client.sendJSON(config);
|
|
159
|
+
return response.data;
|
|
160
|
+
}
|
|
151
161
|
}
|
|
152
162
|
exports.TeamInvitationAPI = TeamInvitationAPI;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamMigrationPayload.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamMigrationPayload.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2024 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 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/index.ts"],"names":[],"mappings":"AAmBA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/index.ts"],"names":[],"mappings":"AAmBA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -37,3 +37,4 @@ __exportStar(require("./TeamInvitationAPI"), exports);
|
|
|
37
37
|
__exportStar(require("./InvitationError"), exports);
|
|
38
38
|
__exportStar(require("./TeamInvitationChunk"), exports);
|
|
39
39
|
__exportStar(require("./TeamInvitation"), exports);
|
|
40
|
+
__exportStar(require("./TeamMigrationPayload"), exports);
|
package/package.json
CHANGED
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@wireapp/store-engine": "^5.1.11",
|
|
41
41
|
"@wireapp/store-engine-fs": "^3.1.11",
|
|
42
42
|
"browser-sync": "3.0.3",
|
|
43
|
-
"concurrently": "9.0
|
|
43
|
+
"concurrently": "9.1.0",
|
|
44
44
|
"cross-env": "7.0.3",
|
|
45
45
|
"dotenv": "16.4.5",
|
|
46
46
|
"jest": "^29.2.1",
|
|
47
|
-
"nock": "13.5.
|
|
47
|
+
"nock": "13.5.6",
|
|
48
48
|
"react": "18.3.1",
|
|
49
49
|
"react-dom": "18.3.1",
|
|
50
50
|
"rimraf": "6.0.1",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"watch": "webpack serve --config webpack.browser.js",
|
|
67
67
|
"prepare": "yarn dist"
|
|
68
68
|
},
|
|
69
|
-
"version": "27.
|
|
70
|
-
"gitHead": "
|
|
69
|
+
"version": "27.10.0",
|
|
70
|
+
"gitHead": "0857e53a2e17840297c9172e10ab7201b35c66cd"
|
|
71
71
|
}
|