@appwrite.io/console 0.0.1 → 0.1.0-preview-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 (56) hide show
  1. package/.travis.yml +32 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +7743 -0
  4. package/dist/cjs/sdk.js.map +1 -0
  5. package/dist/esm/sdk.js +7725 -0
  6. package/dist/esm/sdk.js.map +1 -0
  7. package/dist/iife/sdk.js +7744 -0
  8. package/docs/examples/account/create.md +1 -1
  9. package/docs/examples/account/update-password.md +1 -1
  10. package/docs/examples/databases/update-boolean-attribute.md +18 -0
  11. package/docs/examples/databases/update-datetime-attribute.md +18 -0
  12. package/docs/examples/databases/update-email-attribute.md +18 -0
  13. package/docs/examples/databases/update-enum-attribute.md +18 -0
  14. package/docs/examples/databases/update-float-attribute.md +18 -0
  15. package/docs/examples/databases/update-integer-attribute.md +18 -0
  16. package/docs/examples/databases/update-ip-attribute.md +18 -0
  17. package/docs/examples/databases/update-string-attribute.md +18 -0
  18. package/docs/examples/databases/update-url-attribute.md +18 -0
  19. package/docs/examples/functions/create.md +1 -1
  20. package/docs/examples/functions/update.md +1 -1
  21. package/docs/examples/projects/update-auth-password-dictionary.md +18 -0
  22. package/docs/examples/projects/update-auth-password-history.md +18 -0
  23. package/docs/examples/teams/create-membership.md +1 -1
  24. package/docs/examples/teams/get-prefs.md +18 -0
  25. package/docs/examples/teams/update-name.md +18 -0
  26. package/docs/examples/teams/update-prefs.md +18 -0
  27. package/docs/examples/teams/update.md +1 -1
  28. package/docs/examples/users/update-password.md +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +1 -1
  31. package/src/models.ts +15 -3
  32. package/src/services/account.ts +7 -7
  33. package/src/services/databases.ts +516 -0
  34. package/src/services/functions.ts +3 -11
  35. package/src/services/projects.ts +62 -0
  36. package/src/services/teams.ts +92 -22
  37. package/types/client.d.ts +135 -0
  38. package/types/id.d.ts +4 -0
  39. package/types/index.d.ts +17 -0
  40. package/types/models.d.ts +2552 -0
  41. package/types/permission.d.ts +7 -0
  42. package/types/query.d.ts +21 -0
  43. package/types/role.d.ts +8 -0
  44. package/types/service.d.ts +8 -0
  45. package/types/services/account.d.ts +442 -0
  46. package/types/services/avatars.d.ts +145 -0
  47. package/types/services/databases.d.ts +637 -0
  48. package/types/services/functions.d.ts +280 -0
  49. package/types/services/graphql.d.ts +25 -0
  50. package/types/services/health.d.ts +106 -0
  51. package/types/services/locale.d.ts +81 -0
  52. package/types/services/projects.d.ts +400 -0
  53. package/types/services/storage.d.ts +229 -0
  54. package/types/services/teams.d.ts +207 -0
  55. package/types/services/users.d.ts +340 -0
  56. package/.github/workflows/publish.yml +0 -18
package/.travis.yml ADDED
@@ -0,0 +1,32 @@
1
+ language: node_js
2
+ node_js:
3
+ - "14.16"
4
+
5
+ jobs:
6
+ include:
7
+ - stage: NPM RC Release
8
+ if: tag == *-RC*
9
+ node_js: "14.16"
10
+ script:
11
+ - npm install
12
+ - npm run build
13
+ - echo "Deploying RC to NPM..."
14
+ deploy:
15
+ provider: npm
16
+ email: $NPM_EMAIL
17
+ api_key: $NPM_API_KEY
18
+ tag: next
19
+ - stage: NPM Release
20
+ if: tag != *-RC*
21
+ node_js: "14.16"
22
+ script:
23
+ - npm install
24
+ - npm run build
25
+ - echo "Deploying to NPM..."
26
+ deploy:
27
+ provider: npm
28
+ email: $NPM_EMAIL
29
+ api_key: $NPM_API_KEY
30
+ skip_cleanup: true
31
+ on:
32
+ tags: true
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
7
7
  [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
8
8
 
9
- **This SDK is compatible with Appwrite server version 1.2.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
9
+ **This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
10
10
 
11
11
  Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
12
12
 
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.0.1"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.1.0-preview-0.0"></script>
37
37
  ```
38
38
 
39
39