Skip to content

Commit a0226bd

Browse files
committed
fix: unnecessary async signatures
1 parent b0c805b commit a0226bd

File tree

8 files changed

+82
-82
lines changed

8 files changed

+82
-82
lines changed

src/services/account.ts

Lines changed: 45 additions & 45 deletions
Large diffs are not rendered by default.

src/services/databases.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Databases extends Service {
2323
* @throws {AppwriteException}
2424
* @returns {Promise}
2525
*/
26-
async listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {
26+
listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {
2727
if (typeof databaseId === 'undefined') {
2828
throw new AppwriteException('Missing required parameter: "databaseId"');
2929
}
@@ -59,7 +59,7 @@ export class Databases extends Service {
5959
* @throws {AppwriteException}
6060
* @returns {Promise}
6161
*/
62-
async createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: object, permissions?: string[]): Promise<Document> {
62+
createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: object, permissions?: string[]): Promise<Document> {
6363
if (typeof databaseId === 'undefined') {
6464
throw new AppwriteException('Missing required parameter: "databaseId"');
6565
}
@@ -108,7 +108,7 @@ export class Databases extends Service {
108108
* @throws {AppwriteException}
109109
* @returns {Promise}
110110
*/
111-
async getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {
111+
getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document> {
112112
if (typeof databaseId === 'undefined') {
113113
throw new AppwriteException('Missing required parameter: "databaseId"');
114114
}
@@ -146,7 +146,7 @@ export class Databases extends Service {
146146
* @throws {AppwriteException}
147147
* @returns {Promise}
148148
*/
149-
async updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: object, permissions?: string[]): Promise<Document> {
149+
updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: object, permissions?: string[]): Promise<Document> {
150150
if (typeof databaseId === 'undefined') {
151151
throw new AppwriteException('Missing required parameter: "databaseId"');
152152
}
@@ -185,7 +185,7 @@ export class Databases extends Service {
185185
* @throws {AppwriteException}
186186
* @returns {Promise}
187187
*/
188-
async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
188+
deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
189189
if (typeof databaseId === 'undefined') {
190190
throw new AppwriteException('Missing required parameter: "databaseId"');
191191
}

src/services/functions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Functions extends Service {
2424
* @throws {AppwriteException}
2525
* @returns {Promise}
2626
*/
27-
async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {
27+
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {
2828
if (typeof functionId === 'undefined') {
2929
throw new AppwriteException('Missing required parameter: "functionId"');
3030
}
@@ -62,7 +62,7 @@ export class Functions extends Service {
6262
* @throws {AppwriteException}
6363
* @returns {Promise}
6464
*/
65-
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
65+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
6666
if (typeof functionId === 'undefined') {
6767
throw new AppwriteException('Missing required parameter: "functionId"');
6868
}
@@ -108,7 +108,7 @@ export class Functions extends Service {
108108
* @throws {AppwriteException}
109109
* @returns {Promise}
110110
*/
111-
async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {
111+
getExecution(functionId: string, executionId: string): Promise<Models.Execution> {
112112
if (typeof functionId === 'undefined') {
113113
throw new AppwriteException('Missing required parameter: "functionId"');
114114
}

src/services/graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Graphql extends Service {
2020
* @throws {AppwriteException}
2121
* @returns {Promise}
2222
*/
23-
async query(query: object): Promise<{}> {
23+
query(query: object): Promise<{}> {
2424
if (typeof query === 'undefined') {
2525
throw new AppwriteException('Missing required parameter: "query"');
2626
}
@@ -46,7 +46,7 @@ export class Graphql extends Service {
4646
* @throws {AppwriteException}
4747
* @returns {Promise}
4848
*/
49-
async mutation(query: object): Promise<{}> {
49+
mutation(query: object): Promise<{}> {
5050
if (typeof query === 'undefined') {
5151
throw new AppwriteException('Missing required parameter: "query"');
5252
}

src/services/locale.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Locale extends Service {
2424
* @throws {AppwriteException}
2525
* @returns {Promise}
2626
*/
27-
async get(): Promise<Models.Locale> {
27+
get(): Promise<Models.Locale> {
2828
const apiPath = '/locale';
2929
const payload: Payload = {};
3030

@@ -41,7 +41,7 @@ export class Locale extends Service {
4141
* @throws {AppwriteException}
4242
* @returns {Promise}
4343
*/
44-
async listCodes(): Promise<Models.LocaleCodeList> {
44+
listCodes(): Promise<Models.LocaleCodeList> {
4545
const apiPath = '/locale/codes';
4646
const payload: Payload = {};
4747

@@ -58,7 +58,7 @@ export class Locale extends Service {
5858
* @throws {AppwriteException}
5959
* @returns {Promise}
6060
*/
61-
async listContinents(): Promise<Models.ContinentList> {
61+
listContinents(): Promise<Models.ContinentList> {
6262
const apiPath = '/locale/continents';
6363
const payload: Payload = {};
6464

@@ -75,7 +75,7 @@ export class Locale extends Service {
7575
* @throws {AppwriteException}
7676
* @returns {Promise}
7777
*/
78-
async listCountries(): Promise<Models.CountryList> {
78+
listCountries(): Promise<Models.CountryList> {
7979
const apiPath = '/locale/countries';
8080
const payload: Payload = {};
8181

@@ -92,7 +92,7 @@ export class Locale extends Service {
9292
* @throws {AppwriteException}
9393
* @returns {Promise}
9494
*/
95-
async listCountriesEU(): Promise<Models.CountryList> {
95+
listCountriesEU(): Promise<Models.CountryList> {
9696
const apiPath = '/locale/countries/eu';
9797
const payload: Payload = {};
9898

@@ -109,7 +109,7 @@ export class Locale extends Service {
109109
* @throws {AppwriteException}
110110
* @returns {Promise}
111111
*/
112-
async listCountriesPhones(): Promise<Models.PhoneList> {
112+
listCountriesPhones(): Promise<Models.PhoneList> {
113113
const apiPath = '/locale/countries/phones';
114114
const payload: Payload = {};
115115

@@ -127,7 +127,7 @@ export class Locale extends Service {
127127
* @throws {AppwriteException}
128128
* @returns {Promise}
129129
*/
130-
async listCurrencies(): Promise<Models.CurrencyList> {
130+
listCurrencies(): Promise<Models.CurrencyList> {
131131
const apiPath = '/locale/currencies';
132132
const payload: Payload = {};
133133

@@ -144,7 +144,7 @@ export class Locale extends Service {
144144
* @throws {AppwriteException}
145145
* @returns {Promise}
146146
*/
147-
async listLanguages(): Promise<Models.LanguageList> {
147+
listLanguages(): Promise<Models.LanguageList> {
148148
const apiPath = '/locale/languages';
149149
const payload: Payload = {};
150150

src/services/messaging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Messaging extends Service {
2222
* @throws {AppwriteException}
2323
* @returns {Promise}
2424
*/
25-
async createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
25+
createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
2626
if (typeof topicId === 'undefined') {
2727
throw new AppwriteException('Missing required parameter: "topicId"');
2828
}
@@ -60,7 +60,7 @@ export class Messaging extends Service {
6060
* @throws {AppwriteException}
6161
* @returns {Promise}
6262
*/
63-
async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
63+
deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
6464
if (typeof topicId === 'undefined') {
6565
throw new AppwriteException('Missing required parameter: "topicId"');
6666
}

src/services/storage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Storage extends Service {
2525
* @throws {AppwriteException}
2626
* @returns {Promise}
2727
*/
28-
async listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList> {
28+
listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList> {
2929
if (typeof bucketId === 'undefined') {
3030
throw new AppwriteException('Missing required parameter: "bucketId"');
3131
}
@@ -171,7 +171,7 @@ export class Storage extends Service {
171171
* @throws {AppwriteException}
172172
* @returns {Promise}
173173
*/
174-
async getFile(bucketId: string, fileId: string): Promise<Models.File> {
174+
getFile(bucketId: string, fileId: string): Promise<Models.File> {
175175
if (typeof bucketId === 'undefined') {
176176
throw new AppwriteException('Missing required parameter: "bucketId"');
177177
}
@@ -200,7 +200,7 @@ export class Storage extends Service {
200200
* @throws {AppwriteException}
201201
* @returns {Promise}
202202
*/
203-
async updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File> {
203+
updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File> {
204204
if (typeof bucketId === 'undefined') {
205205
throw new AppwriteException('Missing required parameter: "bucketId"');
206206
}
@@ -235,7 +235,7 @@ export class Storage extends Service {
235235
* @throws {AppwriteException}
236236
* @returns {Promise}
237237
*/
238-
async deleteFile(bucketId: string, fileId: string): Promise<{}> {
238+
deleteFile(bucketId: string, fileId: string): Promise<{}> {
239239
if (typeof bucketId === 'undefined') {
240240
throw new AppwriteException('Missing required parameter: "bucketId"');
241241
}

src/services/teams.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Teams extends Service {
2222
* @throws {AppwriteException}
2323
* @returns {Promise}
2424
*/
25-
async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {
25+
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {
2626
const apiPath = '/teams';
2727
const payload: Payload = {};
2828

@@ -51,7 +51,7 @@ export class Teams extends Service {
5151
* @throws {AppwriteException}
5252
* @returns {Promise}
5353
*/
54-
async create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {
54+
create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {
5555
if (typeof teamId === 'undefined') {
5656
throw new AppwriteException('Missing required parameter: "teamId"');
5757
}
@@ -88,7 +88,7 @@ export class Teams extends Service {
8888
* @throws {AppwriteException}
8989
* @returns {Promise}
9090
*/
91-
async get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {
91+
get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {
9292
if (typeof teamId === 'undefined') {
9393
throw new AppwriteException('Missing required parameter: "teamId"');
9494
}
@@ -110,7 +110,7 @@ export class Teams extends Service {
110110
* @throws {AppwriteException}
111111
* @returns {Promise}
112112
*/
113-
async updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {
113+
updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {
114114
if (typeof teamId === 'undefined') {
115115
throw new AppwriteException('Missing required parameter: "teamId"');
116116
}
@@ -140,7 +140,7 @@ export class Teams extends Service {
140140
* @throws {AppwriteException}
141141
* @returns {Promise}
142142
*/
143-
async delete(teamId: string): Promise<{}> {
143+
delete(teamId: string): Promise<{}> {
144144
if (typeof teamId === 'undefined') {
145145
throw new AppwriteException('Missing required parameter: "teamId"');
146146
}
@@ -165,7 +165,7 @@ export class Teams extends Service {
165165
* @throws {AppwriteException}
166166
* @returns {Promise}
167167
*/
168-
async listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {
168+
listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {
169169
if (typeof teamId === 'undefined') {
170170
throw new AppwriteException('Missing required parameter: "teamId"');
171171
}
@@ -220,7 +220,7 @@ export class Teams extends Service {
220220
* @throws {AppwriteException}
221221
* @returns {Promise}
222222
*/
223-
async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {
223+
createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {
224224
if (typeof teamId === 'undefined') {
225225
throw new AppwriteException('Missing required parameter: "teamId"');
226226
}
@@ -272,7 +272,7 @@ export class Teams extends Service {
272272
* @throws {AppwriteException}
273273
* @returns {Promise}
274274
*/
275-
async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {
275+
getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {
276276
if (typeof teamId === 'undefined') {
277277
throw new AppwriteException('Missing required parameter: "teamId"');
278278
}
@@ -302,7 +302,7 @@ export class Teams extends Service {
302302
* @throws {AppwriteException}
303303
* @returns {Promise}
304304
*/
305-
async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {
305+
updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {
306306
if (typeof teamId === 'undefined') {
307307
throw new AppwriteException('Missing required parameter: "teamId"');
308308
}
@@ -338,7 +338,7 @@ export class Teams extends Service {
338338
* @throws {AppwriteException}
339339
* @returns {Promise}
340340
*/
341-
async deleteMembership(teamId: string, membershipId: string): Promise<{}> {
341+
deleteMembership(teamId: string, membershipId: string): Promise<{}> {
342342
if (typeof teamId === 'undefined') {
343343
throw new AppwriteException('Missing required parameter: "teamId"');
344344
}
@@ -372,7 +372,7 @@ export class Teams extends Service {
372372
* @throws {AppwriteException}
373373
* @returns {Promise}
374374
*/
375-
async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {
375+
updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {
376376
if (typeof teamId === 'undefined') {
377377
throw new AppwriteException('Missing required parameter: "teamId"');
378378
}
@@ -415,7 +415,7 @@ export class Teams extends Service {
415415
* @throws {AppwriteException}
416416
* @returns {Promise}
417417
*/
418-
async getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {
418+
getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {
419419
if (typeof teamId === 'undefined') {
420420
throw new AppwriteException('Missing required parameter: "teamId"');
421421
}
@@ -439,7 +439,7 @@ export class Teams extends Service {
439439
* @throws {AppwriteException}
440440
* @returns {Promise}
441441
*/
442-
async updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {
442+
updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {
443443
if (typeof teamId === 'undefined') {
444444
throw new AppwriteException('Missing required parameter: "teamId"');
445445
}

0 commit comments

Comments
 (0)