appwrite-cli 15.1.0 → 17.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 (51) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +4 -4
  3. package/cli.ts +2 -0
  4. package/dist/bundle-win-arm64.mjs +1785 -1288
  5. package/dist/cli.cjs +1729 -1232
  6. package/dist/index.cjs +836 -994
  7. package/dist/index.js +892 -1050
  8. package/dist/lib/commands/generators/typescript/databases.d.ts +5 -0
  9. package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
  10. package/dist/lib/commands/pull.d.ts.map +1 -1
  11. package/dist/lib/commands/push.d.ts.map +1 -1
  12. package/dist/lib/commands/run.d.ts.map +1 -1
  13. package/dist/lib/commands/services/webhooks.d.ts +3 -0
  14. package/dist/lib/commands/services/webhooks.d.ts.map +1 -0
  15. package/dist/lib/commands/utils/deployment.d.ts.map +1 -1
  16. package/dist/lib/constants.d.ts +1 -1
  17. package/dist/lib/parser.d.ts.map +1 -1
  18. package/dist/lib/questions.d.ts.map +1 -1
  19. package/docs/examples/project/create-variable.md +1 -0
  20. package/docs/examples/project/update-variable.md +1 -2
  21. package/docs/examples/users/update-impersonator.md +5 -0
  22. package/docs/examples/webhooks/create.md +7 -0
  23. package/docs/examples/webhooks/delete.md +4 -0
  24. package/docs/examples/webhooks/get.md +4 -0
  25. package/docs/examples/webhooks/list.md +3 -0
  26. package/docs/examples/webhooks/update-signature.md +4 -0
  27. package/docs/examples/webhooks/update.md +7 -0
  28. package/install.ps1 +2 -2
  29. package/install.sh +1 -1
  30. package/lib/commands/generators/typescript/databases.ts +36 -6
  31. package/lib/commands/pull.ts +30 -12
  32. package/lib/commands/push.ts +6 -24
  33. package/lib/commands/run.ts +5 -7
  34. package/lib/commands/services/account.ts +0 -169
  35. package/lib/commands/services/health.ts +0 -68
  36. package/lib/commands/services/project.ts +21 -12
  37. package/lib/commands/services/projects.ts +0 -112
  38. package/lib/commands/services/users.ts +14 -1
  39. package/lib/commands/services/webhooks.ts +134 -0
  40. package/lib/commands/utils/deployment.ts +4 -1
  41. package/lib/constants.ts +1 -1
  42. package/lib/parser.ts +1 -0
  43. package/lib/questions.ts +13 -7
  44. package/package.json +2 -2
  45. package/scoop/appwrite.config.json +3 -3
  46. package/docs/examples/projects/create-webhook.md +0 -8
  47. package/docs/examples/projects/delete-webhook.md +0 -5
  48. package/docs/examples/projects/get-webhook.md +0 -5
  49. package/docs/examples/projects/list-webhooks.md +0 -4
  50. package/docs/examples/projects/update-webhook-signature.md +0 -5
  51. package/docs/examples/projects/update-webhook.md +0 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Change Log
2
2
 
3
+ ## 17.0.0
4
+
5
+ * [BREAKING] Changed `$sequence` type from `int` to `string` for rows and documents
6
+ * [BREAKING] Removed `--key` required option from `appwrite project update-variable` (now optional)
7
+ * [BREAKING] Removed billing/payment commands from `appwrite account`: `list-billing-addresses`, `create-billing-address`, `get-billing-address`, `update-billing-address`, `delete-billing-address`, `get-coupon`, `list-invoices`, `list-payment-methods`, `create-payment-method`, `get-payment-method`, `update-payment-method`, `delete-payment-method`, `update-payment-method-provider`, `update-payment-method-mandate-options`
8
+ * [BREAKING] Removed cloud-specific health commands: `get-console-pausing`, `get-queue-billing-project-aggregation`, `get-queue-billing-team-aggregation`, `get-queue-priority-builds`, `get-queue-region-manager`, `get-queue-threats`
9
+ * [BREAKING] Removed `appwrite projects update-console-access` command
10
+ * Added `--variable-id` required parameter to `appwrite project create-variable`
11
+ * Added `--queries` and `--total` optional parameters to `appwrite project list-variables`
12
+ * Added new `appwrite users update-impersonator` command
13
+ * Added `impersonator` as a filterable attribute in `appwrite users list`
14
+ * Updated API version badge to `1.9.0` and compatibility to server version `1.9.x`
15
+
16
+ ## 16.0.0
17
+
18
+ * Breaking: Moved webhook commands from `projects` to new `webhooks` service.
19
+
3
20
  ## 15.1.0
4
21
 
5
22
  * Added `resolveFileParam` to convert file or directory paths into `File` objects and tar.gz packages
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Appwrite Command Line SDK
2
2
 
3
3
  ![License](https://img.shields.io/github/license/appwrite/sdk-for-cli.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.9.0-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)
8
8
 
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-cli/releases).**
9
+ **This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/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 Command Line 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
 
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
29
29
 
30
30
  ```sh
31
31
  $ appwrite -v
32
- 15.1.0
32
+ 17.0.0
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
60
60
  Once the installation completes, you can verify your install using
61
61
  ```
62
62
  $ appwrite -v
63
- 15.1.0
63
+ 17.0.0
64
64
  ```
65
65
 
66
66
  ## Getting Started
package/cli.ts CHANGED
@@ -44,6 +44,7 @@ import { teams } from './lib/commands/services/teams.js';
44
44
  import { tokens } from './lib/commands/services/tokens.js';
45
45
  import { users } from './lib/commands/services/users.js';
46
46
  import { vcs } from './lib/commands/services/vcs.js';
47
+ import { webhooks } from './lib/commands/services/webhooks.js';
47
48
 
48
49
  const { version } = packageJson;
49
50
  inquirer.registerPrompt('search-list', inquirerSearchList);
@@ -154,6 +155,7 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
154
155
  .addCommand(tokens)
155
156
  .addCommand(users)
156
157
  .addCommand(vcs)
158
+ .addCommand(webhooks)
157
159
  .addCommand(client)
158
160
  .parse(process.argv);
159
161