@appwrite.io/console 0.4.0 → 0.4.2

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/iife/sdk.js CHANGED
@@ -102,7 +102,7 @@
102
102
  'x-sdk-name': 'Console',
103
103
  'x-sdk-platform': 'console',
104
104
  'x-sdk-language': 'web',
105
- 'x-sdk-version': '0.4.0',
105
+ 'x-sdk-version': '0.4.2',
106
106
  'X-Appwrite-Response-Format': '1.4.0',
107
107
  };
108
108
  this.realtime = {
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 abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "0.4.0",
5
+ "version": "0.4.2",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/src/client.ts CHANGED
@@ -104,7 +104,7 @@ class Client {
104
104
  'x-sdk-name': 'Console',
105
105
  'x-sdk-platform': 'console',
106
106
  'x-sdk-language': 'web',
107
- 'x-sdk-version': '0.4.0',
107
+ 'x-sdk-version': '0.4.2',
108
108
  'X-Appwrite-Response-Format': '1.4.0',
109
109
  };
110
110
 
package/src/models.ts CHANGED
@@ -2573,6 +2573,23 @@ export namespace Models {
2573
2573
  */
2574
2574
  date: string;
2575
2575
  }
2576
+ /**
2577
+ * Metric Breakdown
2578
+ */
2579
+ export type MetricBreakdown = {
2580
+ /**
2581
+ * Resource ID.
2582
+ */
2583
+ resourceId: string;
2584
+ /**
2585
+ * Resource name.
2586
+ */
2587
+ name: string;
2588
+ /**
2589
+ * The value of this metric at the timestamp.
2590
+ */
2591
+ value: number;
2592
+ }
2576
2593
  /**
2577
2594
  * UsageDatabases
2578
2595
  */
@@ -2835,11 +2852,27 @@ export namespace Models {
2835
2852
  /**
2836
2853
  * Aggregated number of requests per period.
2837
2854
  */
2838
- requests: string[];
2855
+ requests: Metric[];
2839
2856
  /**
2840
2857
  * Aggregated number of consumed bandwidth per period.
2841
2858
  */
2842
- network: string[];
2859
+ network: Metric[];
2860
+ /**
2861
+ * Aggregated number of users per period.
2862
+ */
2863
+ users: Metric[];
2864
+ /**
2865
+ * Aggregated number of executions per period.
2866
+ */
2867
+ executions: Metric[];
2868
+ /**
2869
+ * Aggregated breakdown in totals of executions by functions.
2870
+ */
2871
+ executionsBreakdown: MetricBreakdown[];
2872
+ /**
2873
+ * Aggregated breakdown in totals of usage by buckets.
2874
+ */
2875
+ bucketsBreakdown: MetricBreakdown[];
2843
2876
  }
2844
2877
  /**
2845
2878
  * Headers
package/types/models.d.ts CHANGED
@@ -2573,6 +2573,23 @@ export declare namespace Models {
2573
2573
  */
2574
2574
  date: string;
2575
2575
  };
2576
+ /**
2577
+ * Metric Breakdown
2578
+ */
2579
+ type MetricBreakdown = {
2580
+ /**
2581
+ * Resource ID.
2582
+ */
2583
+ resourceId: string;
2584
+ /**
2585
+ * Resource name.
2586
+ */
2587
+ name: string;
2588
+ /**
2589
+ * The value of this metric at the timestamp.
2590
+ */
2591
+ value: number;
2592
+ };
2576
2593
  /**
2577
2594
  * UsageDatabases
2578
2595
  */
@@ -2835,11 +2852,27 @@ export declare namespace Models {
2835
2852
  /**
2836
2853
  * Aggregated number of requests per period.
2837
2854
  */
2838
- requests: string[];
2855
+ requests: Metric[];
2839
2856
  /**
2840
2857
  * Aggregated number of consumed bandwidth per period.
2841
2858
  */
2842
- network: string[];
2859
+ network: Metric[];
2860
+ /**
2861
+ * Aggregated number of users per period.
2862
+ */
2863
+ users: Metric[];
2864
+ /**
2865
+ * Aggregated number of executions per period.
2866
+ */
2867
+ executions: Metric[];
2868
+ /**
2869
+ * Aggregated breakdown in totals of executions by functions.
2870
+ */
2871
+ executionsBreakdown: MetricBreakdown[];
2872
+ /**
2873
+ * Aggregated breakdown in totals of usage by buckets.
2874
+ */
2875
+ bucketsBreakdown: MetricBreakdown[];
2843
2876
  };
2844
2877
  /**
2845
2878
  * Headers