appwrite-cli 13.4.0 → 13.6.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 (75) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +2 -2
  3. package/cli.ts +4 -2
  4. package/dist/bundle-win-arm64.mjs +1633 -2075
  5. package/dist/cli.cjs +1633 -2075
  6. package/dist/index.cjs +109645 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +780 -1831
  10. package/dist/lib/commands/generators/base.d.ts +16 -5
  11. package/dist/lib/commands/generators/base.d.ts.map +1 -1
  12. package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
  13. package/dist/lib/commands/push.d.ts +1 -0
  14. package/dist/lib/commands/push.d.ts.map +1 -1
  15. package/dist/lib/commands/schema.d.ts.map +1 -1
  16. package/dist/lib/commands/services/activities.d.ts +3 -0
  17. package/dist/lib/commands/services/activities.d.ts.map +1 -0
  18. package/dist/lib/commands/services/backups.d.ts +3 -0
  19. package/dist/lib/commands/services/backups.d.ts.map +1 -0
  20. package/dist/lib/commands/utils/attributes.d.ts +3 -1
  21. package/dist/lib/commands/utils/attributes.d.ts.map +1 -1
  22. package/dist/lib/commands/utils/pools.d.ts +3 -1
  23. package/dist/lib/commands/utils/pools.d.ts.map +1 -1
  24. package/dist/lib/constants.d.ts +1 -1
  25. package/dist/lib/json.d.ts.map +1 -1
  26. package/dist/lib/utils.d.ts +1 -0
  27. package/dist/lib/utils.d.ts.map +1 -1
  28. package/docs/examples/account/create-key.md +5 -0
  29. package/docs/examples/account/delete-key.md +4 -0
  30. package/docs/examples/account/get-key.md +4 -0
  31. package/docs/examples/account/list-keys.md +3 -0
  32. package/docs/examples/account/update-key.md +6 -0
  33. package/docs/examples/activities/get-event.md +4 -0
  34. package/docs/examples/activities/list-events.md +3 -0
  35. package/docs/examples/backups/create-archive.md +4 -0
  36. package/docs/examples/backups/create-policy.md +7 -0
  37. package/docs/examples/backups/create-restoration.md +5 -0
  38. package/docs/examples/backups/delete-archive.md +4 -0
  39. package/docs/examples/backups/delete-policy.md +4 -0
  40. package/docs/examples/backups/get-archive.md +4 -0
  41. package/docs/examples/backups/get-policy.md +4 -0
  42. package/docs/examples/backups/get-restoration.md +4 -0
  43. package/docs/examples/backups/list-archives.md +3 -0
  44. package/docs/examples/backups/list-policies.md +3 -0
  45. package/docs/examples/backups/list-restorations.md +3 -0
  46. package/docs/examples/backups/update-policy.md +4 -0
  47. package/docs/examples/projects/create-schedule.md +7 -0
  48. package/docs/examples/projects/get-schedule.md +5 -0
  49. package/docs/examples/projects/list-schedules.md +4 -0
  50. package/index.ts +1 -0
  51. package/install.ps1 +2 -2
  52. package/install.sh +1 -1
  53. package/lib/commands/generators/base.ts +30 -9
  54. package/lib/commands/generators/typescript/databases.ts +12 -18
  55. package/lib/commands/push.ts +276 -201
  56. package/lib/commands/schema.ts +1 -3
  57. package/lib/commands/services/account.ts +234 -0
  58. package/lib/commands/services/activities.ts +51 -0
  59. package/lib/commands/services/backups.ts +184 -0
  60. package/lib/commands/services/health.ts +55 -0
  61. package/lib/commands/services/migrations.ts +1 -1
  62. package/lib/commands/services/projects.ts +51 -0
  63. package/lib/commands/services/storage.ts +2 -2
  64. package/lib/commands/utils/attributes.ts +9 -6
  65. package/lib/commands/utils/pools.ts +9 -6
  66. package/lib/constants.ts +1 -1
  67. package/lib/json.ts +14 -7
  68. package/lib/utils.ts +15 -0
  69. package/package.json +19 -5
  70. package/scoop/appwrite.config.json +3 -3
  71. package/dist/lib/commands/services/console.d.ts +0 -3
  72. package/dist/lib/commands/services/console.d.ts.map +0 -1
  73. package/docs/examples/console/get-resource.md +0 -5
  74. package/docs/examples/console/variables.md +0 -3
  75. package/lib/commands/services/console.ts +0 -49
package/CHANGELOG.md CHANGED
@@ -1,9 +1,24 @@
1
1
  # Change Log
2
2
 
3
+ ## 13.6.0
4
+
5
+ * Fix large double values (e.g. `1.7976931348623157e+308`) being expanded into huge integer literals.
6
+ * Added `activities` command with `list-events` and `get-event`.
7
+ * Added `backups` command with full support for archives, policies, and restorations.
8
+ * Added account billing commands (addresses, coupons, invoices).
9
+ * Added account API key management commands.
10
+ * Added account payment method management commands (including provider and mandate updates).
11
+
12
+ ## 13.5.0
13
+
14
+ * New: Added CLI commands under projects: `list-schedules`, `create-schedule`, and `get-schedule` for managing project schedules.
15
+ * Packaging/build: Updated packaging to support explicit ESM/CJS outputs with exports. main now points to dist/index.cjs, module to dist/index.js, and exports include type and entry-point mappings. This enables better compatibility for both ESM and CommonJS users.
16
+
3
17
  ## 13.4.0
4
18
 
5
19
  * Add `--queries` option to `list-keys` command
6
20
  * Add `--key-id` option to `create-key` command
21
+ * Add support for the new `Backups` service
7
22
  * Add `encrypt` param support to new string type attributes
8
23
  * Fix `bignumber.js` bundler conflict by removing direct dependency in favor of transitive dependency from `json-bigint`
9
24
  * Fix missing region in console failUrl for failed deployments
package/README.md CHANGED
@@ -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
- 13.4.0
32
+ 13.6.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
- 13.4.0
63
+ 13.6.0
64
64
  ```
65
65
 
66
66
  ## Getting Started
package/cli.ts CHANGED
@@ -25,7 +25,8 @@ import { update } from './lib/commands/update.js';
25
25
  import { generate } from './lib/commands/generate.js';
26
26
 
27
27
  import { account } from './lib/commands/services/account.js';
28
- import { console } from './lib/commands/services/console.js';
28
+ import { activities } from './lib/commands/services/activities.js';
29
+ import { backups } from './lib/commands/services/backups.js';
29
30
  import { databases } from './lib/commands/services/databases.js';
30
31
  import { functions } from './lib/commands/services/functions.js';
31
32
  import { graphql } from './lib/commands/services/graphql.js';
@@ -134,7 +135,8 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
134
135
  .addCommand(generate)
135
136
  .addCommand(logout)
136
137
  .addCommand(account)
137
- .addCommand(console)
138
+ .addCommand(activities)
139
+ .addCommand(backups)
138
140
  .addCommand(databases)
139
141
  .addCommand(functions)
140
142
  .addCommand(graphql)