Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: update title and desc
  • Loading branch information
ChiragAgg5k committed Oct 3, 2025
commit cfa0f66540403e8b0ffa09bff831d977507217d0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "node-appwrite",
"homepage": "https://appwrite.io/support",
"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",
"version": "19.2.0",
"version": "20.0.0",
"license": "BSD-3-Clause",
"main": "dist/index.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppwriteException extends Error {
}

function getUserAgent() {
let ua = 'AppwriteNodeJSSDK/19.2.0';
let ua = 'AppwriteNodeJSSDK/20.0.0';

// `process` is a global in Node.js, but not fully available in all runtimes.
const platform: string[] = [];
Expand Down Expand Up @@ -82,7 +82,7 @@ class Client {
'x-sdk-name': 'Node.js',
'x-sdk-platform': 'server',
'x-sdk-language': 'nodejs',
'x-sdk-version': '19.2.0',
'x-sdk-version': '20.0.0',
'user-agent' : getUserAgent(),
'X-Appwrite-Response-Format': '1.8.0',
};
Expand Down
7 changes: 7 additions & 0 deletions src/enums/column-status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export enum ColumnStatus {
Available = 'available',
Processing = 'processing',
Deleting = 'deleting',
Stuck = 'stuck',
Failed = 'failed',
}
4 changes: 4 additions & 0 deletions src/enums/database-type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum DatabaseType {
Legacy = 'legacy',
Tablesdb = 'tablesdb',
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export { ImageGravity } from './enums/image-gravity';
export { ImageFormat } from './enums/image-format';
export { PasswordHash } from './enums/password-hash';
export { MessagingProviderType } from './enums/messaging-provider-type';
export { DatabaseType } from './enums/database-type';
export { AttributeStatus } from './enums/attribute-status';
export { ColumnStatus } from './enums/column-status';
export { IndexStatus } from './enums/index-status';
export { DeploymentStatus } from './enums/deployment-status';
export { ExecutionTrigger } from './enums/execution-trigger';
Expand Down
30 changes: 16 additions & 14 deletions src/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { DatabaseType } from "./enums/database-type"
import { AttributeStatus } from "./enums/attribute-status"
import { ColumnStatus } from "./enums/column-status"
import { IndexStatus } from "./enums/index-status"
import { DeploymentStatus } from "./enums/deployment-status"
import { ExecutionTrigger } from "./enums/execution-trigger"
Expand Down Expand Up @@ -531,7 +533,7 @@ export namespace Models {
/**
* Database type.
*/
type: string;
type: DatabaseType;
}

/**
Expand Down Expand Up @@ -1283,7 +1285,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1333,7 +1335,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1383,7 +1385,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1433,7 +1435,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1475,7 +1477,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1521,7 +1523,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1571,7 +1573,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1617,7 +1619,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1663,7 +1665,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1709,7 +1711,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1771,7 +1773,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1813,7 +1815,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down Expand Up @@ -1855,7 +1857,7 @@ export namespace Models {
/**
* Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
*/
status: string;
status: ColumnStatus;
/**
* Error message. Displays error generated on failure of creating or deleting an column.
*/
Expand Down