@@ -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 ,
0 commit comments