@appwrite.io/console 2.3.0 → 3.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/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +294 -28
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +294 -28
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +347 -61
  8. package/docs/examples/activities/get-event.md +15 -0
  9. package/docs/examples/activities/list-events.md +15 -0
  10. package/docs/examples/databases/create-longtext-attribute.md +2 -1
  11. package/docs/examples/databases/create-mediumtext-attribute.md +2 -1
  12. package/docs/examples/databases/create-text-attribute.md +2 -1
  13. package/docs/examples/databases/create-varchar-attribute.md +2 -1
  14. package/docs/examples/projects/create-schedule.md +20 -0
  15. package/docs/examples/projects/get-schedule.md +16 -0
  16. package/docs/examples/projects/list-schedules.md +17 -0
  17. package/docs/examples/tablesdb/create-longtext-column.md +2 -1
  18. package/docs/examples/tablesdb/create-mediumtext-column.md +2 -1
  19. package/docs/examples/tablesdb/create-text-column.md +2 -1
  20. package/docs/examples/tablesdb/create-varchar-column.md +2 -1
  21. package/package.json +2 -3
  22. package/src/channel.ts +4 -0
  23. package/src/client.ts +11 -3
  24. package/src/enums/build-runtime.ts +20 -3
  25. package/src/enums/email-template-type.ts +4 -4
  26. package/src/enums/o-auth-provider.ts +0 -2
  27. package/src/enums/resource-type.ts +6 -0
  28. package/src/enums/runtime.ts +20 -3
  29. package/src/enums/runtimes.ts +20 -3
  30. package/src/enums/scopes.ts +2 -0
  31. package/src/enums/sms-template-type.ts +1 -1
  32. package/src/index.ts +3 -0
  33. package/src/models.ts +250 -6
  34. package/src/services/account.ts +4 -4
  35. package/src/services/activities.ts +116 -0
  36. package/src/services/databases.ts +56 -28
  37. package/src/services/migrations.ts +2 -2
  38. package/src/services/projects.ts +223 -0
  39. package/src/services/tables-db.ts +56 -28
  40. package/types/channel.d.ts +1 -0
  41. package/types/enums/build-runtime.d.ts +20 -3
  42. package/types/enums/email-template-type.d.ts +4 -4
  43. package/types/enums/o-auth-provider.d.ts +1 -3
  44. package/types/enums/resource-type.d.ts +6 -0
  45. package/types/enums/runtime.d.ts +20 -3
  46. package/types/enums/runtimes.d.ts +20 -3
  47. package/types/enums/scopes.d.ts +2 -0
  48. package/types/enums/sms-template-type.d.ts +1 -1
  49. package/types/index.d.ts +3 -0
  50. package/types/models.d.ts +246 -6
  51. package/types/services/account.d.ts +4 -4
  52. package/types/services/activities.d.ts +46 -0
  53. package/types/services/databases.d.ts +16 -4
  54. package/types/services/migrations.d.ts +2 -2
  55. package/types/services/projects.d.ts +82 -0
  56. package/types/services/tables-db.d.ts +16 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.0
4
+
5
+ * Breaking: EmailTemplateType enum values renamed and updated (Magicsession -> MagicSession, Mfachallenge -> MfaChallenge, Sessionalert -> SessionAlert, Otpsession -> OtpSession) and their underlying string values changed accordingly, which may affect existing integrations.
6
+ * Breaking: OAuthProvider enum removed GithubImagine and GoogleImagine options, potentially breaking code that referenced those providers.
7
+ * New: Channel.upsert() method added to support upserting documents/rows with Channel.
8
+ * New: Expanded runtime support with additional runtimes across BuildRuntime, Runtime, and Runtimes enums (Node.js 23-25, PHP 8.4, Ruby 3.4/4.0, Python 3.13/3.14, Deno 2.5/2.6, Bun 1.2/1.3, Go 1.24-1.26, Java 25, Kotlin 2.3, Swift 6.2, etc.).
9
+ * Chore: Removed bignumber.js dependency; library now relies on json-bigint and native BigInt handling; ensure compatibility for users that depended on bignumber.js.
10
+ * Documentation: Update README to reflect Appwrite server compatibility 1.8.x.
11
+ * Maintenance: Changelog updated with 2.3.1 patch: Add missing `queries` parameter to new string type attributes (backward-compatible improvement).
12
+
13
+ ## 2.3.1
14
+
15
+ * Add missing `queries` parameter to new string type attributes
16
+
3
17
  ## 2.3.0
4
18
 
5
19
  * Add `queries` parameter to `Realtime.subscribe()` and `client.subscribe()` for server-side query filtering
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 latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
9
+ **This SDK is compatible with Appwrite server version 1.8.x. 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 abstracts and simplifies 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@2.3.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@3.0.0"></script>
37
37
  ```
38
38
 
39
39