Skip to content

Commit 619f00b

Browse files
committed
update: regen sdk.
1 parent 71ffdcb commit 619f00b

File tree

7 files changed

+56
-50
lines changed

7 files changed

+56
-50
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
9+
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
3333
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.5.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.5.1"></script>
3737
```
3838

3939

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@appwrite.io/console",
33
"homepage": "https://appwrite.io/support",
44
"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": "1.5.0",
5+
"version": "1.5.1",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ type Headers = {
1919
*/
2020
type RealtimeResponse = {
2121
/**
22-
* Type of the response: 'error', 'event', 'connected', 'pong', or 'response'.
22+
* Type of the response: 'error', 'event', 'connected', 'response' or 'pong'.
2323
*/
2424
type: 'error' | 'event' | 'connected' | 'response' | 'pong';
2525

2626
/**
2727
* Data associated with the response based on the response type.
2828
*/
29-
data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown>;
29+
data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown> | undefined;
3030
}
3131

3232
/**
@@ -316,7 +316,7 @@ class Client {
316316
'x-sdk-name': 'Console',
317317
'x-sdk-platform': 'console',
318318
'x-sdk-language': 'web',
319-
'x-sdk-version': '1.5.0',
319+
'x-sdk-version': '1.5.1',
320320
'X-Appwrite-Response-Format': '1.6.0',
321321
};
322322

@@ -544,6 +544,8 @@ class Client {
544544
})
545545
}
546546
break;
547+
case 'pong':
548+
break; // Handle pong response if needed
547549
case 'error':
548550
throw message.data;
549551
default:

src/models.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,14 @@ export namespace Models {
31353135
* Total aggregated number of total databases storage in bytes.
31363136
*/
31373137
storageTotal: number;
3138+
/**
3139+
* Total number of databases reads.
3140+
*/
3141+
databasesReadsTotal: number;
3142+
/**
3143+
* Total number of databases writes.
3144+
*/
3145+
databasesWritesTotal: number;
31383146
/**
31393147
* Aggregated number of databases per period.
31403148
*/
@@ -3151,6 +3159,14 @@ export namespace Models {
31513159
* An array of the aggregated number of databases storage in bytes per period.
31523160
*/
31533161
storage: Metric[];
3162+
/**
3163+
* An array of aggregated number of database reads.
3164+
*/
3165+
databasesReads: Metric[];
3166+
/**
3167+
* An array of aggregated number of database writes.
3168+
*/
3169+
databasesWrites: Metric[];
31543170
}
31553171
/**
31563172
* UsageDatabase
@@ -3172,6 +3188,14 @@ export namespace Models {
31723188
* Total aggregated number of total storage used in bytes.
31733189
*/
31743190
storageTotal: number;
3191+
/**
3192+
* Total number of databases reads.
3193+
*/
3194+
databaseReadsTotal: number;
3195+
/**
3196+
* Total number of databases writes.
3197+
*/
3198+
databaseWritesTotal: number;
31753199
/**
31763200
* Aggregated number of collections per period.
31773201
*/
@@ -3184,6 +3208,14 @@ export namespace Models {
31843208
* Aggregated storage used in bytes per period.
31853209
*/
31863210
storage: Metric[];
3211+
/**
3212+
* An array of aggregated number of database reads.
3213+
*/
3214+
databaseReads: Metric[];
3215+
/**
3216+
* An array of aggregated number of database writes.
3217+
*/
3218+
databaseWrites: Metric[];
31873219
}
31883220
/**
31893221
* UsageCollection
@@ -3507,6 +3539,14 @@ export namespace Models {
35073539
* Total aggregated number of function builds mbSeconds.
35083540
*/
35093541
buildsMbSecondsTotal: number;
3542+
/**
3543+
* Total number of databases reads.
3544+
*/
3545+
databasesReadsTotal: number;
3546+
/**
3547+
* Total number of databases writes.
3548+
*/
3549+
databasesWritesTotal: number;
35103550
/**
35113551
* Aggregated number of requests per period.
35123552
*/
@@ -3559,6 +3599,14 @@ export namespace Models {
35593599
* Aggregated breakdown in totals of phone auth by country.
35603600
*/
35613601
authPhoneCountryBreakdown: MetricBreakdown[];
3602+
/**
3603+
* An array of aggregated number of database reads.
3604+
*/
3605+
databasesReads: Metric[];
3606+
/**
3607+
* An array of aggregated number of database writes.
3608+
*/
3609+
databasesWrites: Metric[];
35623610
}
35633611
/**
35643612
* Headers

src/services/avatars.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
5454

5555
payload['project'] = this.client.config.project;
5656

57-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
58-
uri.searchParams.append(key, value);
59-
}
60-
6157
return uri.toString();
6258
}
6359
/**
@@ -103,10 +99,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
10399

104100
payload['project'] = this.client.config.project;
105101

106-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
107-
uri.searchParams.append(key, value);
108-
}
109-
110102
return uri.toString();
111103
}
112104
/**
@@ -142,10 +134,6 @@ This endpoint does not follow HTTP redirects.
142134

143135
payload['project'] = this.client.config.project;
144136

145-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
146-
uri.searchParams.append(key, value);
147-
}
148-
149137
return uri.toString();
150138
}
151139
/**
@@ -191,10 +179,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
191179

192180
payload['project'] = this.client.config.project;
193181

194-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
195-
uri.searchParams.append(key, value);
196-
}
197-
198182
return uri.toString();
199183
}
200184
/**
@@ -240,10 +224,6 @@ This endpoint does not follow HTTP redirects.
240224

241225
payload['project'] = this.client.config.project;
242226

243-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
244-
uri.searchParams.append(key, value);
245-
}
246-
247227
return uri.toString();
248228
}
249229
/**
@@ -291,10 +271,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
291271

292272
payload['project'] = this.client.config.project;
293273

294-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
295-
uri.searchParams.append(key, value);
296-
}
297-
298274
return uri.toString();
299275
}
300276
/**
@@ -341,10 +317,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
341317

342318
payload['project'] = this.client.config.project;
343319

344-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
345-
uri.searchParams.append(key, value);
346-
}
347-
348320
return uri.toString();
349321
}
350322
}

src/services/functions.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
769769

770770
payload['project'] = this.client.config.project;
771771

772-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
773-
uri.searchParams.append(key, value);
774-
}
775-
776772
return uri.toString();
777773
}
778774
/**

src/services/storage.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
474474

475475
payload['project'] = this.client.config.project;
476476

477-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
478-
uri.searchParams.append(key, value);
479-
}
480-
481477
return uri.toString();
482478
}
483479
/**
@@ -556,10 +552,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
556552

557553
payload['project'] = this.client.config.project;
558554

559-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
560-
uri.searchParams.append(key, value);
561-
}
562-
563555
return uri.toString();
564556
}
565557
/**
@@ -594,10 +586,6 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
594586

595587
payload['project'] = this.client.config.project;
596588

597-
for (const [key, value] of Object.entries(Client.flatten(payload))) {
598-
uri.searchParams.append(key, value);
599-
}
600-
601589
return uri.toString();
602590
}
603591
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy