🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

node-appwrite

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-appwrite - npm Package Compare versions

Comparing version

to
16.0.0

@@ -18,3 +18,3 @@ 'use strict';

function getUserAgent() {
let ua = "AppwriteNodeJSSDK/15.0.1";
let ua = "AppwriteNodeJSSDK/16.0.0";
const platform = [];

@@ -55,3 +55,3 @@ if (typeof process !== "undefined") {

"x-sdk-language": "nodejs",
"x-sdk-version": "15.0.1",
"x-sdk-version": "16.0.0",
"user-agent": getUserAgent(),

@@ -71,2 +71,5 @@ "X-Appwrite-Response-Format": "1.6.0"

setEndpoint(endpoint) {
if (!endpoint.startsWith("http://") && !endpoint.startsWith("https://")) {
throw new AppwriteException("Invalid endpoint URL: " + endpoint);
}
this.config.endpoint = endpoint;

@@ -222,2 +225,5 @@ return this;

const file = Object.values(originalPayload).find((value) => value instanceof nodeFetchNativeWithAgent.File);
if (!file) {
throw new Error("File not found in payload");
}
if (file.size <= _Client.CHUNK_SIZE) {

@@ -268,6 +274,5 @@ return await this.call(method, url, headers, originalPayload);

async call(method, url, headers = {}, params = {}, responseType = "json") {
var _a;
var _a, _b;
const { uri, options } = this.prepareRequest(method, url, headers, params);
let data = null;
let text = "";
const response = await nodeFetchNativeWithAgent.fetch(uri, options);

@@ -280,13 +285,17 @@ const warnings = response.headers.get("x-appwrite-warning");

data = await response.json();
text = JSON.stringify(data);
} else if (responseType === "arrayBuffer") {
data = await response.arrayBuffer();
} else {
text = await response.text();
data = {
message: text
message: await response.text()
};
}
if (400 <= response.status) {
throw new AppwriteException(data == null ? void 0 : data.message, response.status, data == null ? void 0 : data.type, text);
let responseText = "";
if (((_b = response.headers.get("content-type")) == null ? void 0 : _b.includes("application/json")) || responseType === "arrayBuffer") {
responseText = JSON.stringify(data);
} else {
responseText = data == null ? void 0 : data.message;
}
throw new AppwriteException(data == null ? void 0 : data.message, response.status, data == null ? void 0 : data.type, responseText);
}

@@ -293,0 +302,0 @@ return data;

@@ -17,5 +17,6 @@ declare enum CreditCard {

MIR = "mir",
Maestro = "maestro"
Maestro = "maestro",
Rupay = "rupay"
}
export { CreditCard };

@@ -20,2 +20,3 @@ 'use strict';

CreditCard2["Maestro"] = "maestro";
CreditCard2["Rupay"] = "rupay";
return CreditCard2;

@@ -22,0 +23,0 @@ })(CreditCard || {});

@@ -7,4 +7,4 @@ declare enum Name {

V1functions = "v1-functions",
V1usage = "v1-usage",
V1usagedump = "v1-usage-dump",
V1statsresources = "v1-stats-resources",
V1statsusage = "v1-stats-usage",
V1webhooks = "v1-webhooks",

@@ -11,0 +11,0 @@ V1certificates = "v1-certificates",

@@ -9,4 +9,4 @@ 'use strict';

Name2["V1functions"] = "v1-functions";
Name2["V1usage"] = "v1-usage";
Name2["V1usagedump"] = "v1-usage-dump";
Name2["V1statsresources"] = "v1-stats-resources";
Name2["V1statsusage"] = "v1-stats-usage";
Name2["V1webhooks"] = "v1-webhooks";

@@ -13,0 +13,0 @@ Name2["V1certificates"] = "v1-certificates";

@@ -16,2 +16,3 @@ declare enum OAuthProvider {

Facebook = "facebook",
Figma = "figma",
Github = "github",

@@ -18,0 +19,0 @@ Gitlab = "gitlab",

@@ -18,2 +18,3 @@ 'use strict';

OAuthProvider2["Facebook"] = "facebook";
OAuthProvider2["Figma"] = "figma";
OAuthProvider2["Github"] = "github";

@@ -20,0 +21,0 @@ OAuthProvider2["Gitlab"] = "gitlab";

@@ -19,5 +19,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -125,5 +123,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -194,5 +190,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -382,5 +376,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -403,5 +395,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -556,5 +546,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -681,5 +669,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -884,5 +870,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1078,5 +1062,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.redirect(

@@ -1083,0 +1065,0 @@ "get",

@@ -37,5 +37,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -78,5 +76,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -109,5 +105,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -150,5 +144,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -191,5 +183,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -234,5 +224,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -276,5 +264,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -281,0 +267,0 @@ "get",

@@ -256,5 +256,5 @@ import { Client } from '../client.js';

* @param {boolean} required
* @param {number} xdefault
* @param {number} min
* @param {number} max
* @param {number} xdefault
* @param {string} newKey

@@ -264,3 +264,3 @@ * @throws {AppwriteException}

*/
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number, newKey?: string): Promise<Models.AttributeFloat>;
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeFloat>;
/**

@@ -290,5 +290,5 @@ * Create an integer attribute. Optionally, minimum and maximum values can be provided.

* @param {boolean} required
* @param {number} xdefault
* @param {number} min
* @param {number} max
* @param {number} xdefault
* @param {string} newKey

@@ -298,3 +298,3 @@ * @throws {AppwriteException}

*/
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number, newKey?: string): Promise<Models.AttributeInteger>;
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeInteger>;
/**

@@ -448,2 +448,3 @@ * Create IP address attribute.

* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*

@@ -450,0 +451,0 @@ * @param {string} databaseId

@@ -27,5 +27,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -165,5 +163,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -187,5 +183,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -212,5 +206,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -364,5 +356,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -445,5 +435,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -590,5 +578,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -624,5 +610,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -701,5 +685,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -755,5 +737,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -822,5 +802,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -827,0 +805,0 @@ "get",

@@ -53,9 +53,2 @@ import { Client } from '../client.js';

/**
* Check the Appwrite queue messaging servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getQueue(): Promise<Models.HealthStatus>;
/**
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.

@@ -144,3 +137,3 @@ *

/**
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
*

@@ -151,5 +144,5 @@ * @param {number} threshold

*/
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;
/**
* Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
*

@@ -160,3 +153,3 @@ * @param {number} threshold

*/
getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue>;
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
/**

@@ -163,0 +156,0 @@ * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.

@@ -19,5 +19,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -40,5 +38,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -61,5 +57,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -86,5 +80,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -107,5 +99,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -128,5 +118,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -140,22 +128,2 @@ "get",

/**
* Check the Appwrite queue messaging servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getQueue() {
const apiPath = "/health/queue";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
return this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
/**
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.

@@ -174,5 +142,3 @@ *

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -199,5 +165,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -228,5 +192,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -253,5 +215,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -283,5 +243,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -308,5 +266,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -333,5 +289,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -358,5 +312,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -383,5 +335,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -408,5 +358,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -420,3 +368,3 @@ "get",

/**
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
*

@@ -427,4 +375,4 @@ * @param {number} threshold

*/
getQueueUsage(threshold) {
const apiPath = "/health/queue/usage";
getQueueStatsResources(threshold) {
const apiPath = "/health/queue/stats-resources";
const payload = {};

@@ -435,5 +383,3 @@ if (typeof threshold !== "undefined") {

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -447,3 +393,3 @@ "get",

/**
* Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
*

@@ -454,4 +400,4 @@ * @param {number} threshold

*/
getQueueUsageDump(threshold) {
const apiPath = "/health/queue/usage-dump";
getQueueUsage(threshold) {
const apiPath = "/health/queue/stats-usage";
const payload = {};

@@ -462,5 +408,3 @@ if (typeof threshold !== "undefined") {

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -487,5 +431,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -508,5 +450,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -529,5 +469,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -550,5 +488,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -555,0 +491,0 @@ "get",

@@ -19,5 +19,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -40,5 +38,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -61,5 +57,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -82,5 +76,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -103,5 +95,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -124,5 +114,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -145,5 +133,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -166,5 +152,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -171,0 +155,0 @@ "get",

@@ -27,5 +27,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -498,5 +496,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -551,5 +547,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -580,5 +574,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -609,5 +601,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1690,5 +1680,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1743,5 +1731,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1772,5 +1758,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1801,5 +1785,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1865,5 +1847,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1951,5 +1931,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1984,5 +1962,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -2052,5 +2028,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -2057,0 +2031,0 @@ "get",

@@ -27,5 +27,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -118,5 +116,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -238,5 +234,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -318,5 +312,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -411,5 +403,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -485,5 +475,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -515,5 +503,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -520,0 +506,0 @@ "get",

@@ -27,5 +27,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -90,5 +88,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -178,5 +174,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -265,5 +259,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -399,5 +391,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -404,0 +394,0 @@ "get",

@@ -27,5 +27,3 @@ 'use strict';

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -189,5 +187,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -523,5 +519,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -672,5 +666,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -697,5 +689,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -781,5 +771,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -806,5 +794,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -972,5 +958,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1028,5 +1012,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1166,5 +1148,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1248,5 +1228,3 @@ "get",

const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
const apiHeaders = {};
return this.client.call(

@@ -1253,0 +1231,0 @@ "get",

@@ -5,3 +5,3 @@ {

"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": "15.0.1",
"version": "16.0.0",
"license": "BSD-3-Clause",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

# Appwrite Node.js SDK
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.6.1-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.6.2-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)

@@ -6,0 +6,0 @@ [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet