@inweb/client 26.10.4 → 26.10.6
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/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +2 -2
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Client.d.ts +3 -4
- package/package.json +2 -2
- package/src/Api/Client.ts +3 -4
package/lib/Api/Client.d.ts
CHANGED
|
@@ -68,9 +68,7 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
68
68
|
hash: string;
|
|
69
69
|
}>;
|
|
70
70
|
/**
|
|
71
|
-
* Registers a new user on the server.
|
|
72
|
-
*
|
|
73
|
-
* No login is required to register a new user.
|
|
71
|
+
* Registers a new user on the server. No authorization is required to register a new user.
|
|
74
72
|
*
|
|
75
73
|
* @param email - User email. Cannot be empty. Must be unique within the server.
|
|
76
74
|
* @param password - User password. Cannot be empty. Password can only contain letters (a-z, A-Z),
|
|
@@ -122,7 +120,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
122
120
|
*/
|
|
123
121
|
getCurrentUser(): User | null;
|
|
124
122
|
/**
|
|
125
|
-
* Returns the list of server enabled indentity providers.
|
|
123
|
+
* Returns the list of server enabled indentity providers. No authorization is required to obtain a
|
|
124
|
+
* list of providers.
|
|
126
125
|
*/
|
|
127
126
|
getIdentityProviders(): Promise<{
|
|
128
127
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/client",
|
|
3
|
-
"version": "26.10.
|
|
3
|
+
"version": "26.10.6",
|
|
4
4
|
"description": "JavaScript REST API client for the Open Cloud Server",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"docs": "typedoc"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@inweb/eventemitter2": "~26.10.
|
|
29
|
+
"@inweb/eventemitter2": "~26.10.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"fflate": "^0.8.2"
|
package/src/Api/Client.ts
CHANGED
|
@@ -157,9 +157,7 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* Registers a new user on the server.
|
|
161
|
-
*
|
|
162
|
-
* No login is required to register a new user.
|
|
160
|
+
* Registers a new user on the server. No authorization is required to register a new user.
|
|
163
161
|
*
|
|
164
162
|
* @param email - User email. Cannot be empty. Must be unique within the server.
|
|
165
163
|
* @param password - User password. Cannot be empty. Password can only contain letters (a-z, A-Z),
|
|
@@ -265,7 +263,8 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
265
263
|
}
|
|
266
264
|
|
|
267
265
|
/**
|
|
268
|
-
* Returns the list of server enabled indentity providers.
|
|
266
|
+
* Returns the list of server enabled indentity providers. No authorization is required to obtain a
|
|
267
|
+
* list of providers.
|
|
269
268
|
*/
|
|
270
269
|
getIdentityProviders(): Promise<{ name: string; url: string }[]> {
|
|
271
270
|
return this.httpClient.get("/identity").then((response) => response.json());
|