node-appwrite 15.0.0 → 15.0.1

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.
Files changed (73) hide show
  1. package/dist/client.js +7 -4
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +7 -4
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/models.d.mts +2 -2
  6. package/dist/models.d.ts +2 -2
  7. package/dist/services/account.d.mts +0 -86
  8. package/dist/services/account.d.ts +0 -86
  9. package/dist/services/account.js +86 -172
  10. package/dist/services/account.js.map +1 -1
  11. package/dist/services/account.mjs +86 -172
  12. package/dist/services/account.mjs.map +1 -1
  13. package/dist/services/avatars.d.mts +0 -14
  14. package/dist/services/avatars.d.ts +0 -14
  15. package/dist/services/avatars.js +14 -28
  16. package/dist/services/avatars.js.map +1 -1
  17. package/dist/services/avatars.mjs +14 -28
  18. package/dist/services/avatars.mjs.map +1 -1
  19. package/dist/services/databases.d.mts +0 -84
  20. package/dist/services/databases.d.ts +0 -84
  21. package/dist/services/databases.js +84 -168
  22. package/dist/services/databases.js.map +1 -1
  23. package/dist/services/databases.mjs +84 -168
  24. package/dist/services/databases.mjs.map +1 -1
  25. package/dist/services/functions.d.mts +0 -48
  26. package/dist/services/functions.d.ts +0 -48
  27. package/dist/services/functions.js +48 -96
  28. package/dist/services/functions.js.map +1 -1
  29. package/dist/services/functions.mjs +48 -96
  30. package/dist/services/functions.mjs.map +1 -1
  31. package/dist/services/graphql.d.mts +0 -4
  32. package/dist/services/graphql.d.ts +0 -4
  33. package/dist/services/graphql.js +4 -8
  34. package/dist/services/graphql.js.map +1 -1
  35. package/dist/services/graphql.mjs +4 -8
  36. package/dist/services/graphql.mjs.map +1 -1
  37. package/dist/services/health.d.mts +0 -46
  38. package/dist/services/health.d.ts +0 -46
  39. package/dist/services/health.js +46 -92
  40. package/dist/services/health.js.map +1 -1
  41. package/dist/services/health.mjs +46 -92
  42. package/dist/services/health.mjs.map +1 -1
  43. package/dist/services/locale.d.mts +0 -16
  44. package/dist/services/locale.d.ts +0 -16
  45. package/dist/services/locale.js +16 -32
  46. package/dist/services/locale.js.map +1 -1
  47. package/dist/services/locale.mjs +16 -32
  48. package/dist/services/locale.mjs.map +1 -1
  49. package/dist/services/messaging.d.mts +3 -95
  50. package/dist/services/messaging.d.ts +3 -95
  51. package/dist/services/messaging.js +95 -187
  52. package/dist/services/messaging.js.map +1 -1
  53. package/dist/services/messaging.mjs +95 -187
  54. package/dist/services/messaging.mjs.map +1 -1
  55. package/dist/services/storage.d.mts +0 -26
  56. package/dist/services/storage.d.ts +0 -26
  57. package/dist/services/storage.js +26 -52
  58. package/dist/services/storage.js.map +1 -1
  59. package/dist/services/storage.mjs +26 -52
  60. package/dist/services/storage.mjs.map +1 -1
  61. package/dist/services/teams.d.mts +0 -26
  62. package/dist/services/teams.d.ts +0 -26
  63. package/dist/services/teams.js +26 -52
  64. package/dist/services/teams.js.map +1 -1
  65. package/dist/services/teams.mjs +26 -52
  66. package/dist/services/teams.mjs.map +1 -1
  67. package/dist/services/users.d.mts +0 -84
  68. package/dist/services/users.d.ts +0 -84
  69. package/dist/services/users.js +84 -168
  70. package/dist/services/users.js.map +1 -1
  71. package/dist/services/users.mjs +84 -168
  72. package/dist/services/users.mjs.map +1 -1
  73. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/services/functions.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAKjE,IAAM,YAAN,MAAgB;AAAA,EAGnB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,MAAM,KAAK,SAAoB,QAA+C;AAC1E,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,YAAY,aAAa;AAChC,cAAQ,SAAS,IAAI;AAAA,IACzB;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,c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AA0C;AAAA,IAC1E;AACA,QAAI,OAAO,QAAQ,aAAa;AAC5B,YAAM,IAAI,kBAAkB,mCAAmC;AAAA,IACnE;AACA,UAAM,UAAU,iDAAiD,QAAQ,gBAAgB,UAAU,EAAE,QAAQ,gBAAgB,UAAU;AACvI,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,QAAQ,aAAa;AAC5B,cAAQ,KAAK,IAAI;AAAA,IACrB;AACA,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,eAAe,YAAoB,YAAiC;AACtE,QAAI,OAAO,eAAe,aAAa;AACnC,YAAM,IAAI,kBAAkB,0CAA0C;AAAA,IAC1E;AACA,QAAI,OAAO,eAAe,aAAa;AACnC,YAAM,IAAI,kBAAkB,0CAA0C;AAAA,IAC1E;AACA,UAAM,UAAU,iDAAiD,QAAQ,gBAAgB,UAAU,EAAE,QAAQ,gBAAgB,UAAU;AACvI,UAAM,UAAmB,CAAC;AAC1B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;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';\nimport { Runtime } from '../enums/runtime';\nimport { ExecutionMethod } from '../enums/execution-method';\n\nexport class Functions {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * List functions\n *\n * Get a list of all the project&#039;s functions. You can use the query params to filter your results.\n *\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.FunctionList>}\n */\n async list(queries?: string[], search?: string): Promise<Models.FunctionList> {\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create function\n *\n * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.\n *\n * @param {string} functionId\n * @param {string} name\n * @param {Runtime} runtime\n * @param {string[]} execute\n * @param {string[]} events\n * @param {string} schedule\n * @param {number} timeout\n * @param {boolean} enabled\n * @param {boolean} logging\n * @param {string} entrypoint\n * @param {string} commands\n * @param {string[]} scopes\n * @param {string} installationId\n * @param {string} providerRepositoryId\n * @param {string} providerBranch\n * @param {boolean} providerSilentMode\n * @param {string} providerRootDirectory\n * @param {string} templateRepository\n * @param {string} templateOwner\n * @param {string} templateRootDirectory\n * @param {string} templateVersion\n * @param {string} specification\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n async create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n if (typeof runtime === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"runtime\"');\n }\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof functionId !== 'undefined') {\n payload['functionId'] = functionId;\n }\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof templateRepository !== 'undefined') {\n payload['templateRepository'] = templateRepository;\n }\n if (typeof templateOwner !== 'undefined') {\n payload['templateOwner'] = templateOwner;\n }\n if (typeof templateRootDirectory !== 'undefined') {\n payload['templateRootDirectory'] = templateRootDirectory;\n }\n if (typeof templateVersion !== 'undefined') {\n payload['templateVersion'] = templateVersion;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * List runtimes\n *\n * Get a list of all runtimes that are currently active on your instance.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.RuntimeList>}\n */\n async listRuntimes(): Promise<Models.RuntimeList> {\n const apiPath = '/functions/runtimes';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * List available function runtime specifications\n *\n * List allowed function specifications for this instance.\n\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.SpecificationList>}\n */\n async listSpecifications(): Promise<Models.SpecificationList> {\n const apiPath = '/functions/specifications';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get function\n *\n * Get a function by its unique ID.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n async get(functionId: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update function\n *\n * Update function by its unique ID.\n *\n * @param {string} functionId\n * @param {string} name\n * @param {Runtime} runtime\n * @param {string[]} execute\n * @param {string[]} events\n * @param {string} schedule\n * @param {number} timeout\n * @param {boolean} enabled\n * @param {boolean} logging\n * @param {string} entrypoint\n * @param {string} commands\n * @param {string[]} scopes\n * @param {string} installationId\n * @param {string} providerRepositoryId\n * @param {string} providerBranch\n * @param {boolean} providerSilentMode\n * @param {string} providerRootDirectory\n * @param {string} specification\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n async update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete function\n *\n * Delete a function by its unique ID.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async delete(functionId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * List deployments\n *\n * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.\n *\n * @param {string} functionId\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.DeploymentList>}\n */\n async listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create deployment\n *\n * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).\n\nUse the &quot;command&quot; param to set the entrypoint used to execute your code.\n *\n * @param {string} functionId\n * @param {File} code\n * @param {boolean} activate\n * @param {string} entrypoint\n * @param {string} commands\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n async createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress = (progress: UploadProgress) => {}): Promise<Models.Deployment> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n if (typeof activate === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"activate\"');\n }\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof code !== 'undefined') {\n payload['code'] = code;\n }\n if (typeof activate !== 'undefined') {\n payload['activate'] = activate;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'multipart/form-data',\n }\n\n return await this.client.chunkedUpload(\n 'post',\n uri,\n apiHeaders,\n payload,\n onProgress\n );\n }\n /**\n * Get deployment\n *\n * Get a code deployment by its unique ID.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n async getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update deployment\n *\n * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n async updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete deployment\n *\n * Delete a code deployment by its unique ID.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async deleteDeployment(functionId: string, deploymentId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Rebuild deployment\n *\n * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @param {string} buildId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n if (typeof buildId !== 'undefined') {\n payload['buildId'] = buildId;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Cancel deployment\n *\n * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Build>}\n */\n async updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Download deployment\n *\n * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<ArrayBuffer>}\n */\n async getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n 'arrayBuffer'\n );\n }\n /**\n * List executions\n *\n * Get a list of all the current user function execution logs. You can use the query params to filter your results.\n *\n * @param {string} functionId\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.ExecutionList>}\n */\n async listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create execution\n *\n * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.\n *\n * @param {string} functionId\n * @param {string} body\n * @param {boolean} async\n * @param {string} xpath\n * @param {ExecutionMethod} method\n * @param {object} headers\n * @param {string} scheduledAt\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof body !== 'undefined') {\n payload['body'] = body;\n }\n if (typeof async !== 'undefined') {\n payload['async'] = async;\n }\n if (typeof xpath !== 'undefined') {\n payload['path'] = xpath;\n }\n if (typeof method !== 'undefined') {\n payload['method'] = method;\n }\n if (typeof headers !== 'undefined') {\n payload['headers'] = headers;\n }\n if (typeof scheduledAt !== 'undefined') {\n payload['scheduledAt'] = scheduledAt;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get execution\n *\n * Get a function execution log by its unique ID.\n *\n * @param {string} functionId\n * @param {string} executionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n async getExecution(functionId: string, executionId: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete execution\n *\n * Delete a function execution by its unique ID.\n\n *\n * @param {string} functionId\n * @param {string} executionId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async deleteExecution(functionId: string, executionId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * List variables\n *\n * Get a list of all variables of a specific function.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.VariableList>}\n */\n async listVariables(functionId: string): Promise<Models.VariableList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create variable\n *\n * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.\n *\n * @param {string} functionId\n * @param {string} key\n * @param {string} value\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n async createVariable(functionId: string, key: string, value: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n if (typeof value === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"value\"');\n }\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get variable\n *\n * Get a variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n async getVariable(functionId: string, variableId: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update variable\n *\n * Update variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @param {string} key\n * @param {string} value\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n async updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete variable\n *\n * Delete a variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async deleteVariable(functionId: string, variableId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/services/functions.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAKjE,IAAM,YAAN,MAAgB;AAAA,EAGnB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,KAAK,SAAoB,QAA+C;AACpE,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,YAAY,aAAa;AAChC,cAAQ,SAAS,IAAI;AAAA,IACzB;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,cAAQ,QAAQ,IAAI;AAAA,IACxB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;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';\nimport { Runtime } from '../enums/runtime';\nimport { ExecutionMethod } from '../enums/execution-method';\n\nexport class Functions {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Get a list of all the project&#039;s functions. You can use the query params to filter your results.\n *\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.FunctionList>}\n */\n list(queries?: string[], search?: string): Promise<Models.FunctionList> {\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.\n *\n * @param {string} functionId\n * @param {string} name\n * @param {Runtime} runtime\n * @param {string[]} execute\n * @param {string[]} events\n * @param {string} schedule\n * @param {number} timeout\n * @param {boolean} enabled\n * @param {boolean} logging\n * @param {string} entrypoint\n * @param {string} commands\n * @param {string[]} scopes\n * @param {string} installationId\n * @param {string} providerRepositoryId\n * @param {string} providerBranch\n * @param {boolean} providerSilentMode\n * @param {string} providerRootDirectory\n * @param {string} templateRepository\n * @param {string} templateOwner\n * @param {string} templateRootDirectory\n * @param {string} templateVersion\n * @param {string} specification\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n if (typeof runtime === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"runtime\"');\n }\n const apiPath = '/functions';\n const payload: Payload = {};\n if (typeof functionId !== 'undefined') {\n payload['functionId'] = functionId;\n }\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof templateRepository !== 'undefined') {\n payload['templateRepository'] = templateRepository;\n }\n if (typeof templateOwner !== 'undefined') {\n payload['templateOwner'] = templateOwner;\n }\n if (typeof templateRootDirectory !== 'undefined') {\n payload['templateRootDirectory'] = templateRootDirectory;\n }\n if (typeof templateVersion !== 'undefined') {\n payload['templateVersion'] = templateVersion;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a list of all runtimes that are currently active on your instance.\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.RuntimeList>}\n */\n listRuntimes(): Promise<Models.RuntimeList> {\n const apiPath = '/functions/runtimes';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * List allowed function specifications for this instance.\n\n *\n * @throws {AppwriteException}\n * @returns {Promise<Models.SpecificationList>}\n */\n listSpecifications(): Promise<Models.SpecificationList> {\n const apiPath = '/functions/specifications';\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a function by its unique ID.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n get(functionId: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update function by its unique ID.\n *\n * @param {string} functionId\n * @param {string} name\n * @param {Runtime} runtime\n * @param {string[]} execute\n * @param {string[]} events\n * @param {string} schedule\n * @param {number} timeout\n * @param {boolean} enabled\n * @param {boolean} logging\n * @param {string} entrypoint\n * @param {string} commands\n * @param {string[]} scopes\n * @param {string} installationId\n * @param {string} providerRepositoryId\n * @param {string} providerBranch\n * @param {boolean} providerSilentMode\n * @param {string} providerRootDirectory\n * @param {string} specification\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof name === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"name\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof name !== 'undefined') {\n payload['name'] = name;\n }\n if (typeof runtime !== 'undefined') {\n payload['runtime'] = runtime;\n }\n if (typeof execute !== 'undefined') {\n payload['execute'] = execute;\n }\n if (typeof events !== 'undefined') {\n payload['events'] = events;\n }\n if (typeof schedule !== 'undefined') {\n payload['schedule'] = schedule;\n }\n if (typeof timeout !== 'undefined') {\n payload['timeout'] = timeout;\n }\n if (typeof enabled !== 'undefined') {\n payload['enabled'] = enabled;\n }\n if (typeof logging !== 'undefined') {\n payload['logging'] = logging;\n }\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof scopes !== 'undefined') {\n payload['scopes'] = scopes;\n }\n if (typeof installationId !== 'undefined') {\n payload['installationId'] = installationId;\n }\n if (typeof providerRepositoryId !== 'undefined') {\n payload['providerRepositoryId'] = providerRepositoryId;\n }\n if (typeof providerBranch !== 'undefined') {\n payload['providerBranch'] = providerBranch;\n }\n if (typeof providerSilentMode !== 'undefined') {\n payload['providerSilentMode'] = providerSilentMode;\n }\n if (typeof providerRootDirectory !== 'undefined') {\n payload['providerRootDirectory'] = providerRootDirectory;\n }\n if (typeof specification !== 'undefined') {\n payload['specification'] = specification;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete a function by its unique ID.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n delete(functionId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.\n *\n * @param {string} functionId\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.DeploymentList>}\n */\n listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.\n\nThis endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).\n\nUse the &quot;command&quot; param to set the entrypoint used to execute your code.\n *\n * @param {string} functionId\n * @param {File} code\n * @param {boolean} activate\n * @param {string} entrypoint\n * @param {string} commands\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress = (progress: UploadProgress) => {}): Promise<Models.Deployment> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof code === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"code\"');\n }\n if (typeof activate === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"activate\"');\n }\n const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof entrypoint !== 'undefined') {\n payload['entrypoint'] = entrypoint;\n }\n if (typeof commands !== 'undefined') {\n payload['commands'] = commands;\n }\n if (typeof code !== 'undefined') {\n payload['code'] = code;\n }\n if (typeof activate !== 'undefined') {\n payload['activate'] = activate;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'multipart/form-data',\n }\n\n return this.client.chunkedUpload(\n 'post',\n uri,\n apiHeaders,\n payload,\n onProgress\n );\n }\n /**\n * Get a code deployment by its unique ID.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Deployment>}\n */\n getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Function>}\n */\n updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete a code deployment by its unique ID.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteDeployment(functionId: string, deploymentId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @param {string} buildId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n if (typeof buildId !== 'undefined') {\n payload['buildId'] = buildId;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Build>}\n */\n updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'patch',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.\n *\n * @param {string} functionId\n * @param {string} deploymentId\n * @throws {AppwriteException}\n * @returns {Promise<ArrayBuffer>}\n */\n getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof deploymentId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"deploymentId\"');\n }\n const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n 'arrayBuffer'\n );\n }\n /**\n * Get a list of all the current user function execution logs. You can use the query params to filter your results.\n *\n * @param {string} functionId\n * @param {string[]} queries\n * @param {string} search\n * @throws {AppwriteException}\n * @returns {Promise<Models.ExecutionList>}\n */\n listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof queries !== 'undefined') {\n payload['queries'] = queries;\n }\n if (typeof search !== 'undefined') {\n payload['search'] = search;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.\n *\n * @param {string} functionId\n * @param {string} body\n * @param {boolean} async\n * @param {string} xpath\n * @param {ExecutionMethod} method\n * @param {object} headers\n * @param {string} scheduledAt\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof body !== 'undefined') {\n payload['body'] = body;\n }\n if (typeof async !== 'undefined') {\n payload['async'] = async;\n }\n if (typeof xpath !== 'undefined') {\n payload['path'] = xpath;\n }\n if (typeof method !== 'undefined') {\n payload['method'] = method;\n }\n if (typeof headers !== 'undefined') {\n payload['headers'] = headers;\n }\n if (typeof scheduledAt !== 'undefined') {\n payload['scheduledAt'] = scheduledAt;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a function execution log by its unique ID.\n *\n * @param {string} functionId\n * @param {string} executionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Execution>}\n */\n getExecution(functionId: string, executionId: string): Promise<Models.Execution> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete a function execution by its unique ID.\n\n *\n * @param {string} functionId\n * @param {string} executionId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteExecution(functionId: string, executionId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof executionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"executionId\"');\n }\n const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a list of all variables of a specific function.\n *\n * @param {string} functionId\n * @throws {AppwriteException}\n * @returns {Promise<Models.VariableList>}\n */\n listVariables(functionId: string): Promise<Models.VariableList> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.\n *\n * @param {string} functionId\n * @param {string} key\n * @param {string} value\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n createVariable(functionId: string, key: string, value: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n if (typeof value === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"value\"');\n }\n const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Get a variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n getVariable(functionId: string, variableId: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Update variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @param {string} key\n * @param {string} value\n * @throws {AppwriteException}\n * @returns {Promise<Models.Variable>}\n */\n updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n if (typeof key === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"key\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n if (typeof key !== 'undefined') {\n payload['key'] = key;\n }\n if (typeof value !== 'undefined') {\n payload['value'] = value;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'put',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Delete a variable by its unique ID.\n *\n * @param {string} functionId\n * @param {string} variableId\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n deleteVariable(functionId: string, variableId: string): Promise<{}> {\n if (typeof functionId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"functionId\"');\n }\n if (typeof variableId === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"variableId\"');\n }\n const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);\n const payload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'delete',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
@@ -6,8 +6,6 @@ declare class Graphql {
6
6
  client: Client;
7
7
  constructor(client: Client);
8
8
  /**
9
- * GraphQL endpoint
10
- *
11
9
  * Execute a GraphQL mutation.
12
10
  *
13
11
  * @param {object} query
@@ -16,8 +14,6 @@ declare class Graphql {
16
14
  */
17
15
  query(query: object): Promise<{}>;
18
16
  /**
19
- * GraphQL endpoint
20
- *
21
17
  * Execute a GraphQL mutation.
22
18
  *
23
19
  * @param {object} query
@@ -6,8 +6,6 @@ declare class Graphql {
6
6
  client: Client;
7
7
  constructor(client: Client);
8
8
  /**
9
- * GraphQL endpoint
10
- *
11
9
  * Execute a GraphQL mutation.
12
10
  *
13
11
  * @param {object} query
@@ -16,8 +14,6 @@ declare class Graphql {
16
14
  */
17
15
  query(query: object): Promise<{}>;
18
16
  /**
19
- * GraphQL endpoint
20
- *
21
17
  * Execute a GraphQL mutation.
22
18
  *
23
19
  * @param {object} query
@@ -7,15 +7,13 @@ class Graphql {
7
7
  this.client = client;
8
8
  }
9
9
  /**
10
- * GraphQL endpoint
11
- *
12
10
  * Execute a GraphQL mutation.
13
11
  *
14
12
  * @param {object} query
15
13
  * @throws {AppwriteException}
16
14
  * @returns {Promise<{}>}
17
15
  */
18
- async query(query) {
16
+ query(query) {
19
17
  if (typeof query === "undefined") {
20
18
  throw new client.AppwriteException('Missing required parameter: "query"');
21
19
  }
@@ -29,7 +27,7 @@ class Graphql {
29
27
  "x-sdk-graphql": "true",
30
28
  "content-type": "application/json"
31
29
  };
32
- return await this.client.call(
30
+ return this.client.call(
33
31
  "post",
34
32
  uri,
35
33
  apiHeaders,
@@ -37,15 +35,13 @@ class Graphql {
37
35
  );
38
36
  }
39
37
  /**
40
- * GraphQL endpoint
41
- *
42
38
  * Execute a GraphQL mutation.
43
39
  *
44
40
  * @param {object} query
45
41
  * @throws {AppwriteException}
46
42
  * @returns {Promise<{}>}
47
43
  */
48
- async mutation(query) {
44
+ mutation(query) {
49
45
  if (typeof query === "undefined") {
50
46
  throw new client.AppwriteException('Missing required parameter: "query"');
51
47
  }
@@ -59,7 +55,7 @@ class Graphql {
59
55
  "x-sdk-graphql": "true",
60
56
  "content-type": "application/json"
61
57
  };
62
- return await this.client.call(
58
+ return this.client.call(
63
59
  "post",
64
60
  uri,
65
61
  apiHeaders,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/services/graphql.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAGjE,MAAM,QAAQ;AAAA,EAGjB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,MAAM,OAA4B;AACpC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,SAAS,OAA4B;AACvC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;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\nexport class Graphql {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * GraphQL endpoint\n *\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * GraphQL endpoint\n *\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/services/graphql.ts"],"names":[],"mappings":"AAAA,SAAS,yBAA+D;AAGjE,MAAM,QAAQ;AAAA,EAGjB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,OAA4B;AAC9B,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,SAAS,OAA4B;AACjC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;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\nexport class Graphql {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
@@ -6,15 +6,13 @@ var Graphql = class {
6
6
  this.client = client;
7
7
  }
8
8
  /**
9
- * GraphQL endpoint
10
- *
11
9
  * Execute a GraphQL mutation.
12
10
  *
13
11
  * @param {object} query
14
12
  * @throws {AppwriteException}
15
13
  * @returns {Promise<{}>}
16
14
  */
17
- async query(query) {
15
+ query(query) {
18
16
  if (typeof query === "undefined") {
19
17
  throw new AppwriteException('Missing required parameter: "query"');
20
18
  }
@@ -28,7 +26,7 @@ var Graphql = class {
28
26
  "x-sdk-graphql": "true",
29
27
  "content-type": "application/json"
30
28
  };
31
- return await this.client.call(
29
+ return this.client.call(
32
30
  "post",
33
31
  uri,
34
32
  apiHeaders,
@@ -36,15 +34,13 @@ var Graphql = class {
36
34
  );
37
35
  }
38
36
  /**
39
- * GraphQL endpoint
40
- *
41
37
  * Execute a GraphQL mutation.
42
38
  *
43
39
  * @param {object} query
44
40
  * @throws {AppwriteException}
45
41
  * @returns {Promise<{}>}
46
42
  */
47
- async mutation(query) {
43
+ mutation(query) {
48
44
  if (typeof query === "undefined") {
49
45
  throw new AppwriteException('Missing required parameter: "query"');
50
46
  }
@@ -58,7 +54,7 @@ var Graphql = class {
58
54
  "x-sdk-graphql": "true",
59
55
  "content-type": "application/json"
60
56
  };
61
- return await this.client.call(
57
+ return this.client.call(
62
58
  "post",
63
59
  uri,
64
60
  apiHeaders,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/services/graphql.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAGjE,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,MAAM,OAA4B;AACpC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,SAAS,OAA4B;AACvC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,MAAM,KAAK,OAAO;AAAA,MACrB;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\nexport class Graphql {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * GraphQL endpoint\n *\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * GraphQL endpoint\n *\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n async mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return await this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/services/graphql.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAGjE,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,OAA4B;AAC9B,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,SAAS,OAA4B;AACjC,QAAI,OAAO,UAAU,aAAa;AAC9B,YAAM,IAAI,kBAAkB,qCAAqC;AAAA,IACrE;AACA,UAAM,UAAU;AAChB,UAAM,UAAmB,CAAC;AAC1B,QAAI,OAAO,UAAU,aAAa;AAC9B,cAAQ,OAAO,IAAI;AAAA,IACvB;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IACpB;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\nexport class Graphql {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n query(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n /**\n * Execute a GraphQL mutation.\n *\n * @param {object} query\n * @throws {AppwriteException}\n * @returns {Promise<{}>}\n */\n mutation(query: object): Promise<{}> {\n if (typeof query === 'undefined') {\n throw new AppwriteException('Missing required parameter: \"query\"');\n }\n const apiPath = '/graphql/mutation';\n const payload: Payload = {};\n if (typeof query !== 'undefined') {\n payload['query'] = query;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'x-sdk-graphql': 'true',\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n payload,\n );\n }\n}\n"]}
@@ -7,8 +7,6 @@ declare class Health {
7
7
  client: Client;
8
8
  constructor(client: Client);
9
9
  /**
10
- * Get HTTP
11
- *
12
10
  * Check the Appwrite HTTP server is up and responsive.
13
11
  *
14
12
  * @throws {AppwriteException}
@@ -16,8 +14,6 @@ declare class Health {
16
14
  */
17
15
  get(): Promise<Models.HealthStatus>;
18
16
  /**
19
- * Get antivirus
20
- *
21
17
  * Check the Appwrite Antivirus server is up and connection is successful.
22
18
  *
23
19
  * @throws {AppwriteException}
@@ -25,8 +21,6 @@ declare class Health {
25
21
  */
26
22
  getAntivirus(): Promise<Models.HealthAntivirus>;
27
23
  /**
28
- * Get cache
29
- *
30
24
  * Check the Appwrite in-memory cache servers are up and connection is successful.
31
25
  *
32
26
  * @throws {AppwriteException}
@@ -34,8 +28,6 @@ declare class Health {
34
28
  */
35
29
  getCache(): Promise<Models.HealthStatus>;
36
30
  /**
37
- * Get the SSL certificate for a domain
38
- *
39
31
  * Get the SSL certificate for a domain
40
32
  *
41
33
  * @param {string} domain
@@ -44,8 +36,6 @@ declare class Health {
44
36
  */
45
37
  getCertificate(domain?: string): Promise<Models.HealthCertificate>;
46
38
  /**
47
- * Get DB
48
- *
49
39
  * Check the Appwrite database servers are up and connection is successful.
50
40
  *
51
41
  * @throws {AppwriteException}
@@ -53,8 +43,6 @@ declare class Health {
53
43
  */
54
44
  getDB(): Promise<Models.HealthStatus>;
55
45
  /**
56
- * Get pubsub
57
- *
58
46
  * Check the Appwrite pub-sub servers are up and connection is successful.
59
47
  *
60
48
  * @throws {AppwriteException}
@@ -62,8 +50,6 @@ declare class Health {
62
50
  */
63
51
  getPubSub(): Promise<Models.HealthStatus>;
64
52
  /**
65
- * Get queue
66
- *
67
53
  * Check the Appwrite queue messaging servers are up and connection is successful.
68
54
  *
69
55
  * @throws {AppwriteException}
@@ -71,8 +57,6 @@ declare class Health {
71
57
  */
72
58
  getQueue(): Promise<Models.HealthStatus>;
73
59
  /**
74
- * Get builds queue
75
- *
76
60
  * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
77
61
  *
78
62
  * @param {number} threshold
@@ -81,8 +65,6 @@ declare class Health {
81
65
  */
82
66
  getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
83
67
  /**
84
- * Get certificates queue
85
- *
86
68
  * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
87
69
  *
88
70
  * @param {number} threshold
@@ -91,8 +73,6 @@ declare class Health {
91
73
  */
92
74
  getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
93
75
  /**
94
- * Get databases queue
95
- *
96
76
  * Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
97
77
  *
98
78
  * @param {string} name
@@ -102,8 +82,6 @@ declare class Health {
102
82
  */
103
83
  getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
104
84
  /**
105
- * Get deletes queue
106
- *
107
85
  * Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
108
86
  *
109
87
  * @param {number} threshold
@@ -112,8 +90,6 @@ declare class Health {
112
90
  */
113
91
  getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
114
92
  /**
115
- * Get number of failed queue jobs
116
- *
117
93
  * Returns the amount of failed jobs in a given queue.
118
94
 
119
95
  *
@@ -124,8 +100,6 @@ declare class Health {
124
100
  */
125
101
  getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;
126
102
  /**
127
- * Get functions queue
128
- *
129
103
  * Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
130
104
  *
131
105
  * @param {number} threshold
@@ -134,8 +108,6 @@ declare class Health {
134
108
  */
135
109
  getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
136
110
  /**
137
- * Get logs queue
138
- *
139
111
  * Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
140
112
  *
141
113
  * @param {number} threshold
@@ -144,8 +116,6 @@ declare class Health {
144
116
  */
145
117
  getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
146
118
  /**
147
- * Get mails queue
148
- *
149
119
  * Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
150
120
  *
151
121
  * @param {number} threshold
@@ -154,8 +124,6 @@ declare class Health {
154
124
  */
155
125
  getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
156
126
  /**
157
- * Get messaging queue
158
- *
159
127
  * Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
160
128
  *
161
129
  * @param {number} threshold
@@ -164,8 +132,6 @@ declare class Health {
164
132
  */
165
133
  getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
166
134
  /**
167
- * Get migrations queue
168
- *
169
135
  * Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
170
136
  *
171
137
  * @param {number} threshold
@@ -174,8 +140,6 @@ declare class Health {
174
140
  */
175
141
  getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
176
142
  /**
177
- * Get usage queue
178
- *
179
143
  * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
180
144
  *
181
145
  * @param {number} threshold
@@ -184,8 +148,6 @@ declare class Health {
184
148
  */
185
149
  getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
186
150
  /**
187
- * Get usage dump queue
188
- *
189
151
  * Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
190
152
  *
191
153
  * @param {number} threshold
@@ -194,8 +156,6 @@ declare class Health {
194
156
  */
195
157
  getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue>;
196
158
  /**
197
- * Get webhooks queue
198
- *
199
159
  * Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
200
160
  *
201
161
  * @param {number} threshold
@@ -204,8 +164,6 @@ declare class Health {
204
164
  */
205
165
  getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
206
166
  /**
207
- * Get storage
208
- *
209
167
  * Check the Appwrite storage device is up and connection is successful.
210
168
  *
211
169
  * @throws {AppwriteException}
@@ -213,8 +171,6 @@ declare class Health {
213
171
  */
214
172
  getStorage(): Promise<Models.HealthStatus>;
215
173
  /**
216
- * Get local storage
217
- *
218
174
  * Check the Appwrite local storage device is up and connection is successful.
219
175
  *
220
176
  * @throws {AppwriteException}
@@ -222,8 +178,6 @@ declare class Health {
222
178
  */
223
179
  getStorageLocal(): Promise<Models.HealthStatus>;
224
180
  /**
225
- * Get time
226
- *
227
181
  * 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.
228
182
  *
229
183
  * @throws {AppwriteException}