diff --git a/src/models.ts b/src/models.ts index 5e9eabc..3e35cf7 100644 --- a/src/models.ts +++ b/src/models.ts @@ -55,8 +55,8 @@ export namespace Models { logs: Log[]; } /** - * Files List - */ + * Files List + */ export type FileList = { /** * Total number of files documents that matched your query. @@ -212,6 +212,11 @@ export namespace Models { * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). */ $permissions: string[]; + } + /** + * AnyDocument + */ + export interface AnyDocument extends Document { [key: string]: any; } /** @@ -978,8 +983,8 @@ export namespace Models { code: string; } /** - * Language - */ + * Language + */ export type Language = { /** * Language name. diff --git a/src/services/databases.ts b/src/services/databases.ts index 51ac5f1..880a1ee 100644 --- a/src/services/databases.ts +++ b/src/services/databases.ts @@ -54,12 +54,12 @@ export class Databases { * @param {string} databaseId * @param {string} collectionId * @param {string} documentId - * @param {Omit} data + * @param {Omit} data * @param {string[]} permissions * @throws {AppwriteException} - * @returns {Promise} + * @returns {Promise} */ - async createDocument(databaseId: string, collectionId: string, documentId: string, data: Omit, permissions?: string[]): Promise { + async createDocument(databaseId: string, collectionId: string, documentId: string, data: Omit, permissions?: string[]): Promise { if (typeof databaseId === 'undefined') { throw new AppwriteException('Missing required parameter: "databaseId"'); }