Skip to content

fix: pong response & chunked upload #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors.
Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
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": "14.2.0",
"version": "15.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/14.2.0';
let ua = 'AppwriteNodeJSSDK/15.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': '14.2.0',
'x-sdk-version': '15.0.0',
'user-agent' : getUserAgent(),
'X-Appwrite-Response-Format': '1.6.0',
};
Expand Down
1 change: 1 addition & 0 deletions src/enums/image-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export enum ImageFormat {
Gif = 'gif',
Png = 'png',
Webp = 'webp',
Heic = 'heic',
Avif = 'avif',
}
4 changes: 2 additions & 2 deletions src/services/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ This endpoint can also be used to convert an anonymous account to a normal one,
* @param {string} challengeId
* @param {string} otp
* @throws {AppwriteException}
* @returns {Promise<{}>}
* @returns {Promise<Models.Session>}
*/
async updateMfaChallenge(challengeId: string, otp: string): Promise<{}> {
async updateMfaChallenge(challengeId: string, otp: string): Promise<Models.Session> {
if (typeof challengeId === 'undefined') {
throw new AppwriteException('Missing required parameter: "challengeId"');
}
Expand Down
2 changes: 2 additions & 0 deletions src/services/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
/**
* Rebuild deployment
*
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.
*
* @param {string} functionId
* @param {string} deploymentId
Expand Down Expand Up @@ -592,6 +593,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
/**
* Cancel deployment
*
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.
*
* @param {string} functionId
* @param {string} deploymentId
Expand Down
2 changes: 1 addition & 1 deletion src/services/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class Messaging {
/**
* Update SMS
*
* Update an email message by its unique ID.
* Update an SMS message by its unique ID.

*
* @param {string} messageId
Expand Down
4 changes: 2 additions & 2 deletions src/services/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,9 @@ Labels can be used to grant access to resources. While teams are a way for user&
* @param {string} userId
* @param {AuthenticatorType} type
* @throws {AppwriteException}
* @returns {Promise<Models.User<Preferences>>}
* @returns {Promise<{}>}
*/
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>> {
async deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}> {
if (typeof userId === 'undefined') {
throw new AppwriteException('Missing required parameter: "userId"');
}
Expand Down