@wireapp/api-client 24.15.8-draft-20-cc.0 → 24.16.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/self/SelfAPI.d.ts +0 -7
- package/lib/self/SelfAPI.d.ts.map +1 -1
- package/lib/self/SelfAPI.js +0 -13
- package/lib/user/User.d.ts +1 -2
- package/lib/user/User.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/self/SelfAPI.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ConversationProtocol } from '../conversation';
|
|
3
2
|
import { HttpClient, TraceState } from '../http/';
|
|
4
3
|
import { UserUpdate } from '../user/';
|
|
5
4
|
import { ChangePassword, Consent, ConsentResults, Delete, Name, Self } from './';
|
|
@@ -14,7 +13,6 @@ export declare class SelfAPI {
|
|
|
14
13
|
NAME: string;
|
|
15
14
|
PASSWORD: string;
|
|
16
15
|
PHONE: string;
|
|
17
|
-
SUPPORTED_PROTOCOLS: string;
|
|
18
16
|
SELF: string;
|
|
19
17
|
};
|
|
20
18
|
/**
|
|
@@ -88,11 +86,6 @@ export declare class SelfAPI {
|
|
|
88
86
|
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/updateSelf
|
|
89
87
|
*/
|
|
90
88
|
putSelf(profileData: UserUpdate): Promise<void>;
|
|
91
|
-
/**
|
|
92
|
-
* Update self user's list of supported-protocols
|
|
93
|
-
* @param supportedProtocols The list of supported protocols
|
|
94
|
-
*/
|
|
95
|
-
putSupportedProtocols(supportedProtocols: ConversationProtocol[]): Promise<void>;
|
|
96
89
|
/**
|
|
97
90
|
* Check if password is set.
|
|
98
91
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelfAPI.d.ts","sourceRoot":"","sources":["../../src/self/SelfAPI.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAqB,aAAa,EAAC,MAAM,OAAO,C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EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUrE;;;;OAIG;IACU,QAAQ,CAAC,SAAS,EAAE;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUhE;;;;OAIG;IACU,OAAO,CAAC,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5D;;OAEG;IACI,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;CAQpD"}
|
package/lib/self/SelfAPI.js
CHANGED
|
@@ -174,18 +174,6 @@ class SelfAPI {
|
|
|
174
174
|
};
|
|
175
175
|
await this.client.sendJSON(config);
|
|
176
176
|
}
|
|
177
|
-
/**
|
|
178
|
-
* Update self user's list of supported-protocols
|
|
179
|
-
* @param supportedProtocols The list of supported protocols
|
|
180
|
-
*/
|
|
181
|
-
async putSupportedProtocols(supportedProtocols) {
|
|
182
|
-
const config = {
|
|
183
|
-
data: { supported_protocols: supportedProtocols },
|
|
184
|
-
method: 'put',
|
|
185
|
-
url: `${SelfAPI.URL.SELF}/${SelfAPI.URL.SUPPORTED_PROTOCOLS}`,
|
|
186
|
-
};
|
|
187
|
-
await this.client.sendJSON(config);
|
|
188
|
-
}
|
|
189
177
|
/**
|
|
190
178
|
* Check if password is set.
|
|
191
179
|
*/
|
|
@@ -206,6 +194,5 @@ SelfAPI.URL = {
|
|
|
206
194
|
NAME: 'name',
|
|
207
195
|
PASSWORD: 'password',
|
|
208
196
|
PHONE: 'phone',
|
|
209
|
-
SUPPORTED_PROTOCOLS: 'supported-protocols',
|
|
210
197
|
SELF: '/self',
|
|
211
198
|
};
|
package/lib/user/User.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccentColor } from '@wireapp/commons';
|
|
2
2
|
import { QualifiedId } from './QualifiedId';
|
|
3
|
-
import {
|
|
3
|
+
import { ServiceRef } from '../conversation/';
|
|
4
4
|
import { Picture } from '../self/';
|
|
5
5
|
import { UserAsset } from '../user/';
|
|
6
6
|
export interface User {
|
|
@@ -17,6 +17,5 @@ export interface User {
|
|
|
17
17
|
qualified_id: QualifiedId;
|
|
18
18
|
service?: ServiceRef;
|
|
19
19
|
team?: string;
|
|
20
|
-
supported_protocols?: ConversationProtocol[];
|
|
21
20
|
}
|
|
22
21
|
//# sourceMappingURL=User.d.ts.map
|
package/lib/user/User.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/user/User.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/user/User.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,MAAM,WAAW,IAAI;IACnB,SAAS,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC;IACtC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"watch": "webpack serve --config webpack.browser.js",
|
|
64
64
|
"prepare": "yarn dist"
|
|
65
65
|
},
|
|
66
|
-
"version": "24.
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"version": "24.16.0",
|
|
67
|
+
"gitHead": "d6eb4b120856344e4520cdbee87ada23c61c9257"
|
|
68
68
|
}
|