@appwrite.io/console 4.0.0 → 6.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 (53) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +752 -383
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +752 -384
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +752 -383
  8. package/docs/examples/domains/update-purchase.md +16 -0
  9. package/docs/examples/domains/update-transfer-in.md +16 -0
  10. package/docs/examples/functions/create.md +3 -1
  11. package/docs/examples/functions/update.md +3 -1
  12. package/docs/examples/sites/create.md +4 -1
  13. package/docs/examples/sites/update.md +4 -1
  14. package/docs/examples/{projects/update-webhook.md → webhooks/create.md} +5 -6
  15. package/docs/examples/{projects/get-webhook.md → webhooks/delete.md} +3 -4
  16. package/docs/examples/{projects/delete-webhook.md → webhooks/get.md} +3 -4
  17. package/docs/examples/{projects/list-webhooks.md → webhooks/list.md} +4 -4
  18. package/docs/examples/{projects/update-webhook-signature.md → webhooks/update-signature.md} +3 -4
  19. package/docs/examples/{projects/create-webhook.md → webhooks/update.md} +6 -6
  20. package/package.json +1 -1
  21. package/src/client.ts +5 -1
  22. package/src/enums/appwrite-migration-resource.ts +4 -0
  23. package/src/enums/build-runtime.ts +86 -0
  24. package/src/enums/domain-purchase-status.ts +6 -0
  25. package/src/enums/{domain-transfer-status-status.ts → domain-transfer-status-enum.ts} +1 -1
  26. package/src/enums/runtime.ts +86 -0
  27. package/src/enums/runtimes.ts +86 -0
  28. package/src/enums/scopes.ts +2 -0
  29. package/src/index.ts +3 -1
  30. package/src/models.ts +140 -13
  31. package/src/services/account.ts +2 -2
  32. package/src/services/domains.ts +136 -10
  33. package/src/services/functions.ts +52 -24
  34. package/src/services/organizations.ts +2 -2
  35. package/src/services/projects.ts +0 -473
  36. package/src/services/sites.ts +83 -41
  37. package/src/services/webhooks.ts +451 -0
  38. package/types/enums/appwrite-migration-resource.d.ts +4 -0
  39. package/types/enums/build-runtime.d.ts +87 -1
  40. package/types/enums/domain-purchase-status.d.ts +6 -0
  41. package/types/enums/{domain-transfer-status-status.d.ts → domain-transfer-status-enum.d.ts} +1 -1
  42. package/types/enums/runtime.d.ts +87 -1
  43. package/types/enums/runtimes.d.ts +87 -1
  44. package/types/enums/scopes.d.ts +2 -0
  45. package/types/index.d.ts +3 -1
  46. package/types/models.d.ts +139 -13
  47. package/types/services/account.d.ts +2 -2
  48. package/types/services/domains.d.ts +52 -8
  49. package/types/services/functions.d.ts +20 -8
  50. package/types/services/organizations.d.ts +2 -2
  51. package/types/services/projects.d.ts +0 -171
  52. package/types/services/sites.d.ts +26 -8
  53. package/types/services/webhooks.d.ts +165 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0
4
+
5
+ * Breaking: Renamed `domains.confirmPurchase()` to `domains.updatePurchase()`
6
+ * Breaking: Renamed `domains.confirmTransferIn()` to `domains.updateTransferIn()`
7
+ * Breaking: Replaced `Projects` API with `Webhooks` for webhook usage
8
+ * Breaking: Renamed `updateWebhook()` to `update()` on `Webhooks`
9
+ * Breaking: Renamed `listWebhooks()` to `list()` on `Webhooks`
10
+ * Breaking: Replaced `DomainPurchasePaymentStatus` with `DomainPurchaseStatus`
11
+ * Breaking: Renamed `DomainTransferStatusStatus` to `DomainTransferStatus`
12
+ * Breaking: Removed `Deno121`, `Deno124`, `Deno135` from `BuildRuntime`/`Runtime` enums
13
+ * Updated README badge to API version `1.8.2`
14
+ * Added `queries` option to `webhooks.list()`
15
+
16
+ ## 5.0.0
17
+
18
+ * Breaking: Functions and Sites now require `specification` parameter and support `deploymentRetention`
19
+ * Breaking: New `buildSpecification` and `runtimeSpecification` parameters for functions
20
+ * Added messaging migration resource types: Provider, Topic, Subscriber, Message
21
+ * Added new build runtimes and runtime versions
22
+ * Added domain purchase and transfer confirmation endpoints
23
+ * Added `DomainPurchasePaymentStatus` enum
24
+
25
+ ## 4.0.0
26
+
27
+ * Breaking: Channel.collection() and Channel.table() now require explicit IDs
28
+ * Added migration resource enums: AppwriteMigrationResource, FirebaseMigrationResource, NHostMigrationResource, SupabaseMigrationResource
29
+ * Added DomainTransferStatusStatus enum
30
+ * Added ttl option to listDocuments and listRows
31
+ * Added new docs/examples across domains, health, migrations, projects, sites
32
+ * Updated docs and examples to reflect new resources and transfers
33
+
3
34
  ## 3.1.0
4
35
 
5
36
  * Add support for `createPurchase` method in `Domains` service
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Appwrite Console SDK
2
2
 
3
3
  ![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square)
4
- ![Version](https://img.shields.io/badge/api%20version-1.8.1-blue.svg?style=flat-square)
4
+ ![Version](https://img.shields.io/badge/api%20version-1.8.2-blue.svg?style=flat-square)
5
5
  [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
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)
@@ -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@4.0.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@6.0.0"></script>
37
37
  ```
38
38
 
39
39