@inweb/client 25.6.6 → 25.7.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/dist/client.js +10 -2
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +5 -2
- package/dist/client.module.js.map +1 -1
- package/lib/Api/User.d.ts +6 -0
- package/package.json +2 -2
- package/src/Api/User.ts +9 -0
package/lib/Api/User.d.ts
CHANGED
|
@@ -127,6 +127,12 @@ export declare class User {
|
|
|
127
127
|
*/
|
|
128
128
|
get storageLimit(): number;
|
|
129
129
|
set storageLimit(value: number);
|
|
130
|
+
/**
|
|
131
|
+
* The total size of the user's files in the storage.
|
|
132
|
+
*
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
get storageUsed(): number;
|
|
130
136
|
/**
|
|
131
137
|
* The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
|
|
132
138
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/client",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.7.0",
|
|
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,6 +26,6 @@
|
|
|
26
26
|
"ts-docs": "typedoc"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@inweb/eventemitter2": "~25.
|
|
29
|
+
"@inweb/eventemitter2": "~25.7.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/Api/User.ts
CHANGED
|
@@ -248,6 +248,15 @@ export class User {
|
|
|
248
248
|
this._data.storageLimit = value;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* The total size of the user's files in the storage.
|
|
253
|
+
*
|
|
254
|
+
* @readonly
|
|
255
|
+
*/
|
|
256
|
+
get storageUsed(): number {
|
|
257
|
+
return this.data.storageUsed;
|
|
258
|
+
}
|
|
259
|
+
|
|
251
260
|
/**
|
|
252
261
|
* The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
|
|
253
262
|
*
|