@appwrite.io/console 15.1.1 → 15.2.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/README.md +1 -1
- package/dist/cjs/sdk.js +10 -3
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +10 -3
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +10 -3
- package/package.json +1 -1
- package/types/services/usage.d.ts +2 -2
package/dist/iife/sdk.js
CHANGED
|
@@ -4420,7 +4420,7 @@
|
|
|
4420
4420
|
'x-sdk-name': 'Console',
|
|
4421
4421
|
'x-sdk-platform': 'console',
|
|
4422
4422
|
'x-sdk-language': 'web',
|
|
4423
|
-
'x-sdk-version': '15.
|
|
4423
|
+
'x-sdk-version': '15.2.0',
|
|
4424
4424
|
'X-Appwrite-Response-Format': '1.9.5',
|
|
4425
4425
|
};
|
|
4426
4426
|
this.realtime = {
|
|
@@ -4472,7 +4472,10 @@
|
|
|
4472
4472
|
}
|
|
4473
4473
|
const encodedProject = encodeURIComponent((_b = this.config.project) !== null && _b !== void 0 ? _b : '');
|
|
4474
4474
|
// URL carries only the project; channels/queries are sent via subscribe message.
|
|
4475
|
-
|
|
4475
|
+
let queryParams = 'project=' + encodedProject;
|
|
4476
|
+
if (this.config.jwt) {
|
|
4477
|
+
queryParams += '&jwt=' + encodeURIComponent(this.config.jwt);
|
|
4478
|
+
}
|
|
4476
4479
|
const url = this.config.endpointRealtime + '/realtime?' + queryParams;
|
|
4477
4480
|
if (url !== this.realtime.url || // Check if URL is present
|
|
4478
4481
|
!this.realtime.socket || // Check if WebSocket has not been created
|
|
@@ -40593,7 +40596,11 @@
|
|
|
40593
40596
|
throw new AppwriteException('Missing project ID');
|
|
40594
40597
|
}
|
|
40595
40598
|
// URL carries only the project; channels/queries are sent via the subscribe message.
|
|
40596
|
-
|
|
40599
|
+
let queryParams = `project=${projectId}`;
|
|
40600
|
+
const jwt = this.client.config.jwt;
|
|
40601
|
+
if (jwt) {
|
|
40602
|
+
queryParams += `&jwt=${encodeURIComponent(jwt)}`;
|
|
40603
|
+
}
|
|
40597
40604
|
const endpoint = this.client.config.endpointRealtime !== ''
|
|
40598
40605
|
? this.client.config.endpointRealtime
|
|
40599
40606
|
: this.client.config.endpoint || '';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "15.
|
|
5
|
+
"version": "15.2.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
|
@@ -16,7 +16,7 @@ export declare class Usage {
|
|
|
16
16
|
* @param {string} params.resource - Resource type filter (singular form). Common values: function, site, database, bucket, file, webhook, team, user, project.
|
|
17
17
|
* @param {string} params.resourceId - Resource id filter.
|
|
18
18
|
* @param {string} params.interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
|
|
19
|
-
* @param {string[]} params.dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
|
|
19
|
+
* @param {string[]} params.dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, resource, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
|
|
20
20
|
* @param {string} params.startAt - Range start in ISO 8601. Defaults adapt to interval (7d for the no-interval aggregate).
|
|
21
21
|
* @param {string} params.endAt - Range end in ISO 8601. Defaults to the current time.
|
|
22
22
|
* @param {string} params.orderBy - Column to order by. Allowed: time, value. Default time when an interval is set; otherwise value.
|
|
@@ -52,7 +52,7 @@ export declare class Usage {
|
|
|
52
52
|
* @param {string} resource - Resource type filter (singular form). Common values: function, site, database, bucket, file, webhook, team, user, project.
|
|
53
53
|
* @param {string} resourceId - Resource id filter.
|
|
54
54
|
* @param {string} interval - Time interval size. Omit (null) for a flat aggregate over the whole window. Allowed: 1m, 15m, 30m, 1h, 1d.
|
|
55
|
-
* @param {string[]} dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
|
|
55
|
+
* @param {string[]} dimensions - Break-down dimensions (max 10). Allowed: path, method, status, service, resource, country, region, hostname, osName, clientType, clientName, deviceName, teamId, resourceId.
|
|
56
56
|
* @param {string} startAt - Range start in ISO 8601. Defaults adapt to interval (7d for the no-interval aggregate).
|
|
57
57
|
* @param {string} endAt - Range end in ISO 8601. Defaults to the current time.
|
|
58
58
|
* @param {string} orderBy - Column to order by. Allowed: time, value. Default time when an interval is set; otherwise value.
|