Skip to content

Commit d6f2f30

Browse files
committed
chore: regenerate sdk
1 parent 065fdf0 commit d6f2f30

File tree

9 files changed

+99
-348
lines changed

9 files changed

+99
-348
lines changed

src/services/account.ts

+51-186
Large diffs are not rendered by default.

src/services/avatars.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
5050
for (const [key, value] of Object.entries(Service.flatten(payload))) {
5151
uri.searchParams.append(key, value);
5252
}
53-
53+
5454
return uri.toString();
5555
}
5656
/**
@@ -92,7 +92,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
9292
for (const [key, value] of Object.entries(Service.flatten(payload))) {
9393
uri.searchParams.append(key, value);
9494
}
95-
95+
9696
return uri.toString();
9797
}
9898
/**
@@ -124,7 +124,7 @@ This endpoint does not follow HTTP redirects.
124124
for (const [key, value] of Object.entries(Service.flatten(payload))) {
125125
uri.searchParams.append(key, value);
126126
}
127-
127+
128128
return uri.toString();
129129
}
130130
/**
@@ -166,7 +166,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
166166
for (const [key, value] of Object.entries(Service.flatten(payload))) {
167167
uri.searchParams.append(key, value);
168168
}
169-
169+
170170
return uri.toString();
171171
}
172172
/**
@@ -208,7 +208,7 @@ This endpoint does not follow HTTP redirects.
208208
for (const [key, value] of Object.entries(Service.flatten(payload))) {
209209
uri.searchParams.append(key, value);
210210
}
211-
211+
212212
return uri.toString();
213213
}
214214
/**
@@ -252,7 +252,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
252252
for (const [key, value] of Object.entries(Service.flatten(payload))) {
253253
uri.searchParams.append(key, value);
254254
}
255-
255+
256256
return uri.toString();
257257
}
258258
/**
@@ -295,7 +295,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
295295
for (const [key, value] of Object.entries(Service.flatten(payload))) {
296296
uri.searchParams.append(key, value);
297297
}
298-
298+
299299
return uri.toString();
300300
}
301301
}

src/services/databases.ts

+5-20
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class Databases {
1818
* @throws {AppwriteException}
1919
* @returns {Promise<Models.DocumentList<Document>>}
2020
*/
21-
async listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {
21+
listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {
2222
if (typeof databaseId === 'undefined') {
2323
throw new AppwriteException('Missing required parameter: "databaseId"');
2424
}
@@ -36,9 +36,6 @@ export class Databases {
3636
'content-type': 'application/json',
3737
}
3838

39-
payload['project'] = this.client.config.project;
40-
41-
4239
return this.client.call(
4340
'get',
4441
uri,
@@ -57,7 +54,7 @@ export class Databases {
5754
* @throws {AppwriteException}
5855
* @returns {Promise<Document>}
5956
*/
60-
async createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document> {
57+
createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document> {
6158
if (typeof databaseId === 'undefined') {
6259
throw new AppwriteException('Missing required parameter: "databaseId"');
6360
}
@@ -87,9 +84,6 @@ export class Databases {
8784
'content-type': 'application/json',
8885
}
8986

90-
payload['project'] = this.client.config.project;
91-
92-
9387
return this.client.call(
9488
'post',
9589
uri,
@@ -107,7 +101,7 @@ export class Databases {
107101
* @throws {AppwriteException}
108102
* @returns {Promise<Document>}
109103
*/
110-
async getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {
104+
getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {
111105
if (typeof databaseId === 'undefined') {
112106
throw new AppwriteException('Missing required parameter: "databaseId"');
113107
}
@@ -128,9 +122,6 @@ export class Databases {
128122
'content-type': 'application/json',
129123
}
130124

131-
payload['project'] = this.client.config.project;
132-
133-
134125
return this.client.call(
135126
'get',
136127
uri,
@@ -149,7 +140,7 @@ export class Databases {
149140
* @throws {AppwriteException}
150141
* @returns {Promise<Document>}
151142
*/
152-
async updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document> {
143+
updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document> {
153144
if (typeof databaseId === 'undefined') {
154145
throw new AppwriteException('Missing required parameter: "databaseId"');
155146
}
@@ -173,9 +164,6 @@ export class Databases {
173164
'content-type': 'application/json',
174165
}
175166

176-
payload['project'] = this.client.config.project;
177-
178-
179167
return this.client.call(
180168
'patch',
181169
uri,
@@ -192,7 +180,7 @@ export class Databases {
192180
* @throws {AppwriteException}
193181
* @returns {Promise<{}>}
194182
*/
195-
async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
183+
deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
196184
if (typeof databaseId === 'undefined') {
197185
throw new AppwriteException('Missing required parameter: "databaseId"');
198186
}
@@ -210,9 +198,6 @@ export class Databases {
210198
'content-type': 'application/json',
211199
}
212200

213-
payload['project'] = this.client.config.project;
214-
215-
216201
return this.client.call(
217202
'delete',
218203
uri,

src/services/functions.ts

+3-12
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Functions {
1919
* @throws {AppwriteException}
2020
* @returns {Promise<Models.ExecutionList>}
2121
*/
22-
async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {
22+
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {
2323
if (typeof functionId === 'undefined') {
2424
throw new AppwriteException('Missing required parameter: "functionId"');
2525
}
@@ -37,9 +37,6 @@ export class Functions {
3737
'content-type': 'application/json',
3838
}
3939

40-
payload['project'] = this.client.config.project;
41-
42-
4340
return this.client.call(
4441
'get',
4542
uri,
@@ -60,7 +57,7 @@ export class Functions {
6057
* @throws {AppwriteException}
6158
* @returns {Promise<Models.Execution>}
6259
*/
63-
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
60+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
6461
if (typeof functionId === 'undefined') {
6562
throw new AppwriteException('Missing required parameter: "functionId"');
6663
}
@@ -90,9 +87,6 @@ export class Functions {
9087
'content-type': 'application/json',
9188
}
9289

93-
payload['project'] = this.client.config.project;
94-
95-
9690
return this.client.call(
9791
'post',
9892
uri,
@@ -108,7 +102,7 @@ export class Functions {
108102
* @throws {AppwriteException}
109103
* @returns {Promise<Models.Execution>}
110104
*/
111-
async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {
105+
getExecution(functionId: string, executionId: string): Promise<Models.Execution> {
112106
if (typeof functionId === 'undefined') {
113107
throw new AppwriteException('Missing required parameter: "functionId"');
114108
}
@@ -123,9 +117,6 @@ export class Functions {
123117
'content-type': 'application/json',
124118
}
125119

126-
payload['project'] = this.client.config.project;
127-
128-
129120
return this.client.call(
130121
'get',
131122
uri,

src/services/graphql.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Graphql {
1616
* @throws {AppwriteException}
1717
* @returns {Promise<{}>}
1818
*/
19-
async query(query: object): Promise<{}> {
19+
query(query: object): Promise<{}> {
2020
if (typeof query === 'undefined') {
2121
throw new AppwriteException('Missing required parameter: "query"');
2222
}
@@ -32,9 +32,6 @@ export class Graphql {
3232
'content-type': 'application/json',
3333
}
3434

35-
payload['project'] = this.client.config.project;
36-
37-
3835
return this.client.call(
3936
'post',
4037
uri,
@@ -49,7 +46,7 @@ export class Graphql {
4946
* @throws {AppwriteException}
5047
* @returns {Promise<{}>}
5148
*/
52-
async mutation(query: object): Promise<{}> {
49+
mutation(query: object): Promise<{}> {
5350
if (typeof query === 'undefined') {
5451
throw new AppwriteException('Missing required parameter: "query"');
5552
}
@@ -65,9 +62,6 @@ export class Graphql {
6562
'content-type': 'application/json',
6663
}
6764

68-
payload['project'] = this.client.config.project;
69-
70-
7165
return this.client.call(
7266
'post',
7367
uri,

0 commit comments

Comments
 (0)