Email Sorter Beta

Ich habe soweit automatisiert the Emails sortieren aber ich muss noch schauen was es fur bugs es gibt wenn die app online  ist deswegen wurde ich mit diesen Commit die website veroffentlichen obwohjl es sein konnte  das es noch nicht fertig ist und verkaufs bereit
This commit is contained in:
2026-01-22 19:32:12 +01:00
parent 95349af50b
commit abf761db07
596 changed files with 56405 additions and 51231 deletions

View File

@@ -7,17 +7,21 @@ class Health {
this.client = client;
}
/**
* Get HTTP
*
* Check the Appwrite HTTP server is up and responsive.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
get() {
async get() {
const apiPath = "/health";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -25,17 +29,21 @@ class Health {
);
}
/**
* Get antivirus
*
* Check the Appwrite Antivirus server is up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthAntivirus>}
*/
getAntivirus() {
async getAntivirus() {
const apiPath = "/health/anti-virus";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -43,41 +51,47 @@ class Health {
);
}
/**
* Get cache
*
* Check the Appwrite in-memory cache servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getCache() {
async getCache() {
const apiPath = "/health/cache";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getCertificate(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
domain: paramsOrFirst
};
}
const domain = params.domain;
/**
* Get the SSL certificate for a domain
*
* Get the SSL certificate for a domain
*
* @param {string} domain
* @throws {AppwriteException}
* @returns {Promise<Models.HealthCertificate>}
*/
async getCertificate(domain) {
const apiPath = "/health/certificate";
const payload = {};
if (typeof domain !== "undefined") {
payload["domain"] = domain;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -85,17 +99,21 @@ class Health {
);
}
/**
* Get DB
*
* Check the Appwrite database servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getDB() {
async getDB() {
const apiPath = "/health/db";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -103,83 +121,112 @@ class Health {
);
}
/**
* Get pubsub
*
* Check the Appwrite pub-sub servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getPubSub() {
async getPubSub() {
const apiPath = "/health/pubsub";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueBuilds(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get queue
*
* Check the Appwrite queue messaging servers are up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
async getQueue() {
const apiPath = "/health/queue";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
/**
* Get builds queue
*
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueBuilds(threshold) {
const apiPath = "/health/queue/builds";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueCertificates(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get certificates queue
*
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueCertificates(threshold) {
const apiPath = "/health/queue/certificates";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueDatabases(paramsOrFirst, ...rest) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
name: paramsOrFirst,
threshold: rest[0]
};
}
const name = params.name;
const threshold = params.threshold;
/**
* Get databases queue
*
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
*
* @param {string} name
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueDatabases(name, threshold) {
const apiPath = "/health/queue/databases";
const payload = {};
if (typeof name !== "undefined") {
@@ -189,50 +236,54 @@ class Health {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueDeletes(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get deletes queue
*
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueDeletes(threshold) {
const apiPath = "/health/queue/deletes";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getFailedJobs(paramsOrFirst, ...rest) {
let params;
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst) && "name" in paramsOrFirst) {
params = paramsOrFirst || {};
} else {
params = {
name: paramsOrFirst,
threshold: rest[0]
};
}
const name = params.name;
const threshold = params.threshold;
/**
* Get number of failed queue jobs
*
* Returns the amount of failed jobs in a given queue.
*
* @param {Name} name
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getFailedJobs(name, threshold) {
if (typeof name === "undefined") {
throw new client.AppwriteException('Missing required parameter: "name"');
}
@@ -242,200 +293,218 @@ class Health {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueFunctions(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get functions queue
*
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueFunctions(threshold) {
const apiPath = "/health/queue/functions";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueLogs(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get logs queue
*
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueLogs(threshold) {
const apiPath = "/health/queue/logs";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueMails(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get mails queue
*
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueMails(threshold) {
const apiPath = "/health/queue/mails";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueMessaging(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get messaging queue
*
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueMessaging(threshold) {
const apiPath = "/health/queue/messaging";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueMigrations(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get migrations queue
*
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueMigrations(threshold) {
const apiPath = "/health/queue/migrations";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueStatsResources(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
const apiPath = "/health/queue/stats-resources";
/**
* Get usage queue
*
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueUsage(threshold) {
const apiPath = "/health/queue/usage";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueUsage(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
const apiPath = "/health/queue/stats-usage";
/**
* Get usage dump queue
*
* Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueUsageDump(threshold) {
const apiPath = "/health/queue/usage-dump";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
payload
);
}
getQueueWebhooks(paramsOrFirst) {
let params;
if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
params = paramsOrFirst || {};
} else {
params = {
threshold: paramsOrFirst
};
}
const threshold = params.threshold;
/**
* Get webhooks queue
*
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
*
* @param {number} threshold
* @throws {AppwriteException}
* @returns {Promise<Models.HealthQueue>}
*/
async getQueueWebhooks(threshold) {
const apiPath = "/health/queue/webhooks";
const payload = {};
if (typeof threshold !== "undefined") {
payload["threshold"] = threshold;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -443,17 +512,21 @@ class Health {
);
}
/**
* Get storage
*
* Check the Appwrite storage device is up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getStorage() {
async getStorage() {
const apiPath = "/health/storage";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -461,17 +534,21 @@ class Health {
);
}
/**
* Get local storage
*
* Check the Appwrite local storage device is up and connection is successful.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthStatus>}
*/
getStorageLocal() {
async getStorageLocal() {
const apiPath = "/health/storage/local";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,
@@ -479,17 +556,21 @@ class Health {
);
}
/**
* Get time
*
* Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
*
* @throws {AppwriteException}
* @returns {Promise<Models.HealthTime>}
*/
getTime() {
async getTime() {
const apiPath = "/health/time";
const payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders = {};
return this.client.call(
const apiHeaders = {
"content-type": "application/json"
};
return await this.client.call(
"get",
uri,
apiHeaders,