node-appwrite 7.0.3 → 8.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.
Files changed (82) hide show
  1. package/.travis.yml +12 -3
  2. package/LICENSE +1 -1
  3. package/README.md +5 -5
  4. package/docs/examples/account/list-logs.md +20 -0
  5. package/docs/examples/account/list-sessions.md +20 -0
  6. package/docs/examples/databases/create-boolean-attribute.md +2 -2
  7. package/docs/examples/databases/create-collection.md +2 -2
  8. package/docs/examples/databases/create-datetime-attribute.md +20 -0
  9. package/docs/examples/databases/create-document.md +2 -2
  10. package/docs/examples/databases/create-email-attribute.md +2 -2
  11. package/docs/examples/databases/create-enum-attribute.md +2 -2
  12. package/docs/examples/databases/create-float-attribute.md +2 -2
  13. package/docs/examples/databases/create-index.md +2 -2
  14. package/docs/examples/databases/create-integer-attribute.md +2 -2
  15. package/docs/examples/databases/create-ip-attribute.md +2 -2
  16. package/docs/examples/databases/create-string-attribute.md +2 -2
  17. package/docs/examples/databases/create-url-attribute.md +2 -2
  18. package/docs/examples/databases/create.md +2 -2
  19. package/docs/examples/databases/delete-attribute.md +2 -2
  20. package/docs/examples/databases/delete-collection.md +2 -2
  21. package/docs/examples/databases/delete-document.md +2 -2
  22. package/docs/examples/databases/delete-index.md +2 -2
  23. package/docs/examples/databases/delete.md +2 -2
  24. package/docs/examples/databases/get-attribute.md +2 -2
  25. package/docs/examples/databases/get-collection.md +2 -2
  26. package/docs/examples/databases/get-document.md +2 -2
  27. package/docs/examples/databases/get-index.md +2 -2
  28. package/docs/examples/databases/get.md +2 -2
  29. package/docs/examples/databases/list-attributes.md +2 -2
  30. package/docs/examples/databases/list-collections.md +2 -2
  31. package/docs/examples/databases/list-documents.md +2 -2
  32. package/docs/examples/databases/list-indexes.md +2 -2
  33. package/docs/examples/databases/list.md +1 -1
  34. package/docs/examples/databases/update-collection.md +2 -2
  35. package/docs/examples/databases/update-document.md +2 -2
  36. package/docs/examples/databases/update.md +2 -2
  37. package/docs/examples/functions/create-deployment.md +1 -1
  38. package/docs/examples/functions/create-variable.md +20 -0
  39. package/docs/examples/functions/create.md +1 -1
  40. package/docs/examples/functions/delete-variable.md +20 -0
  41. package/docs/examples/functions/get-variable.md +20 -0
  42. package/docs/examples/functions/list-variables.md +20 -0
  43. package/docs/examples/functions/update-variable.md +20 -0
  44. package/docs/examples/functions/update.md +1 -1
  45. package/docs/examples/locale/list-continents.md +20 -0
  46. package/docs/examples/locale/list-countries-e-u.md +20 -0
  47. package/docs/examples/locale/list-countries-phones.md +20 -0
  48. package/docs/examples/locale/list-countries.md +20 -0
  49. package/docs/examples/locale/list-currencies.md +20 -0
  50. package/docs/examples/locale/list-languages.md +20 -0
  51. package/docs/examples/storage/create-bucket.md +1 -1
  52. package/docs/examples/storage/create-file.md +1 -1
  53. package/docs/examples/storage/update-bucket.md +1 -1
  54. package/docs/examples/teams/list-memberships.md +20 -0
  55. package/docs/examples/users/create-argon2user.md +20 -0
  56. package/docs/examples/users/create-bcrypt-user.md +20 -0
  57. package/docs/examples/users/create-m-d5user.md +20 -0
  58. package/docs/examples/users/create-p-h-pass-user.md +20 -0
  59. package/docs/examples/users/create-s-h-a-user.md +20 -0
  60. package/docs/examples/users/create-scrypt-modified-user.md +20 -0
  61. package/docs/examples/users/create-scrypt-user.md +20 -0
  62. package/docs/examples/users/create.md +1 -1
  63. package/docs/examples/users/list-logs.md +20 -0
  64. package/docs/examples/users/list-memberships.md +20 -0
  65. package/docs/examples/users/list-sessions.md +20 -0
  66. package/index.d.ts +736 -280
  67. package/index.js +6 -0
  68. package/lib/client.js +5 -2
  69. package/lib/id.js +12 -0
  70. package/lib/permission.js +24 -0
  71. package/lib/query.js +30 -12
  72. package/lib/role.js +34 -0
  73. package/lib/services/account.js +46 -45
  74. package/lib/services/avatars.js +22 -20
  75. package/lib/services/databases.js +385 -243
  76. package/lib/services/functions.js +219 -109
  77. package/lib/services/health.js +7 -1
  78. package/lib/services/locale.js +13 -7
  79. package/lib/services/storage.js +78 -129
  80. package/lib/services/teams.js +40 -74
  81. package/lib/services/users.js +487 -68
  82. package/package.json +1 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "node-appwrite",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "7.0.3",
5
+ "version": "8.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",