node-appwrite 21.1.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/client.js +37 -5
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1505 -5
- package/dist/client.mjs.map +1 -1
- package/dist/enums/browser-permission.d.mts +24 -0
- package/dist/enums/browser-permission.d.ts +24 -0
- package/dist/enums/browser-permission.js +29 -0
- package/dist/enums/browser-permission.js.map +1 -0
- package/dist/enums/browser-permission.mjs +28 -0
- package/dist/enums/browser-permission.mjs.map +1 -0
- package/dist/enums/deployment-status.d.mts +1 -0
- package/dist/enums/deployment-status.d.ts +1 -0
- package/dist/enums/deployment-status.js +1 -0
- package/dist/enums/deployment-status.js.map +1 -1
- package/dist/enums/deployment-status.mjs +1 -0
- package/dist/enums/deployment-status.mjs.map +1 -1
- package/dist/enums/name.d.mts +1 -0
- package/dist/enums/name.d.ts +1 -0
- package/dist/enums/name.js +1 -0
- package/dist/enums/name.js.map +1 -1
- package/dist/enums/name.mjs +1 -0
- package/dist/enums/name.mjs.map +1 -1
- package/dist/enums/o-auth-provider.d.mts +1 -2
- package/dist/enums/o-auth-provider.d.ts +1 -2
- package/dist/enums/o-auth-provider.js +0 -1
- package/dist/enums/o-auth-provider.js.map +1 -1
- package/dist/enums/o-auth-provider.mjs +0 -1
- package/dist/enums/o-auth-provider.mjs.map +1 -1
- package/dist/enums/order-by.d.mts +6 -0
- package/dist/enums/order-by.d.ts +6 -0
- package/dist/enums/order-by.js +11 -0
- package/dist/enums/order-by.js.map +1 -0
- package/dist/enums/order-by.mjs +10 -0
- package/dist/enums/order-by.mjs.map +1 -0
- package/dist/enums/roles.d.mts +7 -0
- package/dist/enums/roles.d.ts +7 -0
- package/dist/enums/roles.js +12 -0
- package/dist/enums/roles.js.map +1 -0
- package/dist/enums/roles.mjs +11 -0
- package/dist/enums/roles.mjs.map +1 -0
- package/dist/enums/scopes.d.mts +59 -0
- package/dist/enums/scopes.d.ts +59 -0
- package/dist/enums/scopes.js +64 -0
- package/dist/enums/scopes.js.map +1 -0
- package/dist/enums/scopes.mjs +63 -0
- package/dist/enums/scopes.mjs.map +1 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +367 -6
- package/dist/models.d.ts +367 -6
- package/dist/query.d.mts +38 -8
- package/dist/query.d.ts +38 -8
- package/dist/query.js +48 -7
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +44 -7
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.d.mts +13 -1
- package/dist/services/account.d.ts +13 -1
- package/dist/services/account.js +13 -7
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +13 -7
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +9 -8
- package/dist/services/avatars.d.ts +9 -8
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +329 -34
- package/dist/services/databases.d.ts +329 -34
- package/dist/services/databases.js +469 -9
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +469 -9
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +9 -8
- package/dist/services/functions.d.ts +9 -8
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +25 -6
- package/dist/services/health.d.ts +25 -6
- package/dist/services/health.js +27 -3
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +27 -3
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +12 -12
- package/dist/services/storage.d.ts +12 -12
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +329 -32
- package/dist/services/tables-db.d.ts +329 -32
- package/dist/services/tables-db.js +469 -6
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +469 -6
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +9 -8
- package/dist/services/teams.d.ts +9 -8
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/tokens.js.map +1 -1
- package/dist/services/tokens.mjs.map +1 -1
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs.map +1 -1
- package/package.json +4 -2
- package/dist/enums/output.d.mts +0 -11
- package/dist/enums/output.d.ts +0 -11
- package/dist/enums/output.js +0 -16
- package/dist/enums/output.js.map +0 -1
- package/dist/enums/output.mjs +0 -15
- package/dist/enums/output.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/services/health.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAKjE,IAAM,SAAN,MAAa;AAAA,EAGhB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAoC;AAEhC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAA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I,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAA2C;AAEvC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,kBAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAsC;AAElC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { AppwriteException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Name } from '../enums/name';\n\nexport class Health {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Check the Appwrite HTTP server is up and responsive.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n get(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite Antivirus server is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthAntivirus>}\n */\n getAntivirus(): Promise<Models.HealthAntivirus> {\n\n const apiPath = '/health/anti-virus';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite in-memory cache servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getCache(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/cache';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} params.domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n */\n getCertificate(params?: { domain?: string }): Promise<Models.HealthCertificate>;\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getCertificate(domain?: string): Promise<Models.HealthCertificate>;\n getCertificate(\n paramsOrFirst?: { domain?: string } | string \n ): Promise<Models.HealthCertificate> {\n let params: { domain?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { domain?: string };\n } else {\n params = {\n domain: paramsOrFirst as string \n };\n }\n \n const domain = params.domain;\n\n\n const apiPath = '/health/certificate';\n const payload: Payload = {};\n if (typeof domain !== 'undefined') {\n payload['domain'] = domain;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite database servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getDB(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/db';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite pub-sub servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getPubSub(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/pubsub';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBuilds(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/builds';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueCertificates(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;\n getQueueCertificates(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/certificates';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} params.name - Queue name for which to check the queue size\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDatabases(params?: { name?: string, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} name - Queue name for which to check the queue size\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;\n getQueueDatabases(\n paramsOrFirst?: { name?: string, threshold?: number } | string,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name?: string, threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { name?: string, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as string,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/databases';\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDeletes(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;\n getQueueDeletes(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/deletes';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} params.name - The name of the queue\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getFailedJobs(params: { name: Name, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} name - The name of the queue\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;\n getFailedJobs(\n paramsOrFirst: { name: Name, threshold?: number } | Name,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name: Name, threshold?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'name' in paramsOrFirst)) {\n params = (paramsOrFirst || {}) as { name: Name, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as Name,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueFunctions(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;\n getQueueFunctions(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/functions';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueLogs(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;\n getQueueLogs(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/logs';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMails(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMails(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMails(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/mails';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMessaging(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMessaging(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/messaging';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMigrations(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMigrations(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/migrations';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueStatsResources(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;\n getQueueStatsResources(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-resources';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueUsage(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;\n getQueueUsage(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-usage';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueWebhooks(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;\n getQueueWebhooks(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/webhooks';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorage(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite local storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorageLocal(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage/local';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * 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.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthTime>}\n */\n getTime(): Promise<Models.HealthTime> {\n\n const apiPath = '/health/time';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/services/health.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAKjE,IAAM,SAAN,MAAa;AAAA,EAGhB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,MAAoC;AAEhC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAA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AAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,kBAAgD;AAE5C,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAsC;AAElC,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { AppwriteException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Name } from '../enums/name';\n\nexport class Health {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Check the Appwrite HTTP server is up and responsive.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n get(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite Antivirus server is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthAntivirus>}\n */\n getAntivirus(): Promise<Models.HealthAntivirus> {\n\n const apiPath = '/health/anti-virus';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite in-memory cache servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getCache(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/cache';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} params.domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n */\n getCertificate(params?: { domain?: string }): Promise<Models.HealthCertificate>;\n /**\n * Get the SSL certificate for a domain\n *\n * @param {string} domain - string\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthCertificate>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getCertificate(domain?: string): Promise<Models.HealthCertificate>;\n getCertificate(\n paramsOrFirst?: { domain?: string } | string \n ): Promise<Models.HealthCertificate> {\n let params: { domain?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { domain?: string };\n } else {\n params = {\n domain: paramsOrFirst as string \n };\n }\n \n const domain = params.domain;\n\n\n const apiPath = '/health/certificate';\n const payload: Payload = {};\n if (typeof domain !== 'undefined') {\n payload['domain'] = domain;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite database servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getDB(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/db';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite pub-sub servers are up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatusList>}\n */\n getPubSub(): Promise<Models.HealthStatusList> {\n\n const apiPath = '/health/pubsub';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueAudits(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueAudits(threshold?: number): Promise<Models.HealthQueue>;\n getQueueAudits(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/audits';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;\n getQueueBuilds(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/builds';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueCertificates(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;\n getQueueCertificates(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/certificates';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} params.name - Queue name for which to check the queue size\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDatabases(params?: { name?: string, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {string} name - Queue name for which to check the queue size\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;\n getQueueDatabases(\n paramsOrFirst?: { name?: string, threshold?: number } | string,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name?: string, threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { name?: string, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as string,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/databases';\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueDeletes(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;\n getQueueDeletes(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/deletes';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} params.name - The name of the queue\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getFailedJobs(params: { name: Name, threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Returns the amount of failed jobs in a given queue.\n * \n *\n * @param {Name} name - The name of the queue\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;\n getFailedJobs(\n paramsOrFirst: { name: Name, threshold?: number } | Name,\n ...rest: [(number)?] \n ): Promise<Models.HealthQueue> {\n let params: { name: Name, threshold?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'name' in paramsOrFirst)) {\n params = (paramsOrFirst || {}) as { name: Name, threshold?: number };\n } else {\n params = {\n name: paramsOrFirst as Name,\n threshold: rest[0] as number \n };\n }\n \n const name = params.name;\n const threshold = params.threshold;\n\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n\n const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueFunctions(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;\n getQueueFunctions(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/functions';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueLogs(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;\n getQueueLogs(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/logs';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMails(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMails(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMails(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/mails';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMessaging(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMessaging(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/messaging';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueMigrations(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;\n getQueueMigrations(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/migrations';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueStatsResources(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;\n getQueueStatsResources(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-resources';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueUsage(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;\n getQueueUsage(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/stats-usage';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n */\n getQueueWebhooks(params?: { threshold?: number }): Promise<Models.HealthQueue>;\n /**\n * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.\n *\n * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthQueue>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;\n getQueueWebhooks(\n paramsOrFirst?: { threshold?: number } | number \n ): Promise<Models.HealthQueue> {\n let params: { threshold?: number };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { threshold?: number };\n } else {\n params = {\n threshold: paramsOrFirst as number \n };\n }\n \n const threshold = params.threshold;\n\n\n const apiPath = '/health/queue/webhooks';\n const payload: Payload = {};\n if (typeof threshold !== 'undefined') {\n payload['threshold'] = threshold;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorage(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * Check the Appwrite local storage device is up and connection is successful.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthStatus>}\n */\n getStorageLocal(): Promise<Models.HealthStatus> {\n\n const apiPath = '/health/storage/local';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n\n /**\n * 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.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.HealthTime>}\n */\n getTime(): Promise<Models.HealthTime> {\n\n const apiPath = '/health/time';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
|