appwrite-cli 13.0.0-rc.1 → 13.0.0-rc.2
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.
- package/.github/workflows/build-verify.yml +71 -0
- package/.github/workflows/npm-publish.yml +41 -22
- package/CHANGELOG.md +106 -102
- package/LICENSE.md +1 -1
- package/README.md +58 -35
- package/bun.lock +625 -0
- package/dist/bundle.cjs +94853 -0
- package/dist/index.js +99 -99
- package/dist/index.js.map +1 -1
- package/dist/lib/client.d.ts +2 -3
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +56 -45
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/commands/generic.d.ts +2 -2
- package/dist/lib/commands/generic.d.ts.map +1 -1
- package/dist/lib/commands/generic.js +170 -157
- package/dist/lib/commands/generic.js.map +1 -1
- package/dist/lib/commands/init.d.ts +1 -1
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/init.js +197 -189
- package/dist/lib/commands/init.js.map +1 -1
- package/dist/lib/commands/pull.d.ts +2 -2
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/pull.js +215 -244
- package/dist/lib/commands/pull.js.map +1 -1
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/push.js +814 -841
- package/dist/lib/commands/push.js.map +1 -1
- package/dist/lib/commands/run.d.ts +1 -1
- package/dist/lib/commands/run.d.ts.map +1 -1
- package/dist/lib/commands/run.js +129 -127
- package/dist/lib/commands/run.js.map +1 -1
- package/dist/lib/commands/services/account.d.ts +3 -0
- package/dist/lib/commands/services/account.d.ts.map +1 -0
- package/dist/lib/commands/services/account.js +306 -0
- package/dist/lib/commands/services/account.js.map +1 -0
- package/dist/lib/commands/services/avatars.d.ts +3 -0
- package/dist/lib/commands/services/avatars.d.ts.map +1 -0
- package/dist/lib/commands/services/avatars.js +118 -0
- package/dist/lib/commands/services/avatars.js.map +1 -0
- package/dist/lib/commands/services/console.d.ts +3 -0
- package/dist/lib/commands/services/console.d.ts.map +1 -0
- package/dist/lib/commands/services/console.js +41 -0
- package/dist/lib/commands/services/console.js.map +1 -0
- package/dist/lib/commands/services/databases.d.ts +3 -0
- package/dist/lib/commands/services/databases.d.ts.map +1 -0
- package/dist/lib/commands/services/databases.js +612 -0
- package/dist/lib/commands/services/databases.js.map +1 -0
- package/dist/lib/commands/services/functions.d.ts +3 -0
- package/dist/lib/commands/services/functions.d.ts.map +1 -0
- package/dist/lib/commands/services/functions.js +258 -0
- package/dist/lib/commands/services/functions.js.map +1 -0
- package/dist/lib/commands/services/graphql.d.ts +3 -0
- package/dist/lib/commands/services/graphql.d.ts.map +1 -0
- package/dist/lib/commands/services/graphql.js +28 -0
- package/dist/lib/commands/services/graphql.js.map +1 -0
- package/dist/lib/commands/services/health.d.ts +3 -0
- package/dist/lib/commands/services/health.d.ts.map +1 -0
- package/dist/lib/commands/services/health.js +123 -0
- package/dist/lib/commands/services/health.js.map +1 -0
- package/dist/lib/commands/services/locale.d.ts +3 -0
- package/dist/lib/commands/services/locale.d.ts.map +1 -0
- package/dist/lib/commands/services/locale.js +52 -0
- package/dist/lib/commands/services/locale.js.map +1 -0
- package/dist/lib/commands/services/messaging.d.ts +3 -0
- package/dist/lib/commands/services/messaging.d.ts.map +1 -0
- package/dist/lib/commands/services/messaging.js +505 -0
- package/dist/lib/commands/services/messaging.js.map +1 -0
- package/dist/lib/commands/services/migrations.d.ts +3 -0
- package/dist/lib/commands/services/migrations.d.ts.map +1 -0
- package/dist/lib/commands/services/migrations.js +135 -0
- package/dist/lib/commands/services/migrations.js.map +1 -0
- package/dist/lib/commands/services/project.d.ts +3 -0
- package/dist/lib/commands/services/project.d.ts.map +1 -0
- package/dist/lib/commands/services/project.js +54 -0
- package/dist/lib/commands/services/project.js.map +1 -0
- package/dist/lib/commands/services/projects.d.ts +3 -0
- package/dist/lib/commands/services/projects.d.ts.map +1 -0
- package/dist/lib/commands/services/projects.js +415 -0
- package/dist/lib/commands/services/projects.js.map +1 -0
- package/dist/lib/commands/services/proxy.d.ts +3 -0
- package/dist/lib/commands/services/proxy.d.ts.map +1 -0
- package/dist/lib/commands/services/proxy.js +68 -0
- package/dist/lib/commands/services/proxy.js.map +1 -0
- package/dist/lib/commands/services/sites.d.ts +3 -0
- package/dist/lib/commands/services/sites.d.ts.map +1 -0
- package/dist/lib/commands/services/sites.js +242 -0
- package/dist/lib/commands/services/sites.js.map +1 -0
- package/dist/lib/commands/services/storage.d.ts +3 -0
- package/dist/lib/commands/services/storage.d.ts.map +1 -0
- package/dist/lib/commands/services/storage.js +153 -0
- package/dist/lib/commands/services/storage.js.map +1 -0
- package/dist/lib/commands/services/tablesdb.d.ts +3 -0
- package/dist/lib/commands/services/tablesdb.d.ts.map +1 -0
- package/dist/lib/commands/services/tablesdb.js +605 -0
- package/dist/lib/commands/services/tablesdb.js.map +1 -0
- package/dist/lib/commands/services/teams.d.ts +3 -0
- package/dist/lib/commands/services/teams.d.ts.map +1 -0
- package/dist/lib/commands/services/teams.js +123 -0
- package/dist/lib/commands/services/teams.js.map +1 -0
- package/dist/lib/commands/services/tokens.d.ts +3 -0
- package/dist/lib/commands/services/tokens.d.ts.map +1 -0
- package/dist/lib/commands/services/tokens.js +49 -0
- package/dist/lib/commands/services/tokens.js.map +1 -0
- package/dist/lib/commands/services/users.d.ts +3 -0
- package/dist/lib/commands/services/users.d.ts.map +1 -0
- package/dist/lib/commands/services/users.js +312 -0
- package/dist/lib/commands/services/users.js.map +1 -0
- package/dist/lib/commands/services/vcs.d.ts +3 -0
- package/dist/lib/commands/services/vcs.d.ts.map +1 -0
- package/dist/lib/commands/services/vcs.js +87 -0
- package/dist/lib/commands/services/vcs.js.map +1 -0
- package/dist/lib/commands/types.d.ts +1 -1
- package/dist/lib/commands/types.d.ts.map +1 -1
- package/dist/lib/commands/types.js +53 -57
- package/dist/lib/commands/types.js.map +1 -1
- package/dist/lib/commands/update.d.ts +1 -1
- package/dist/lib/commands/update.d.ts.map +1 -1
- package/dist/lib/commands/update.js +65 -66
- package/dist/lib/commands/update.js.map +1 -1
- package/dist/lib/config.d.ts +39 -39
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +264 -202
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/emulation/docker.d.ts +1 -9
- package/dist/lib/emulation/docker.d.ts.map +1 -1
- package/dist/lib/emulation/docker.js +111 -107
- package/dist/lib/emulation/docker.js.map +1 -1
- package/dist/lib/emulation/utils.d.ts +1 -1
- package/dist/lib/emulation/utils.d.ts.map +1 -1
- package/dist/lib/emulation/utils.js +55 -58
- package/dist/lib/emulation/utils.js.map +1 -1
- package/dist/lib/id.d.ts +1 -1
- package/dist/lib/id.d.ts.map +1 -1
- package/dist/lib/id.js +13 -18
- package/dist/lib/id.js.map +1 -1
- package/dist/lib/paginate.d.ts +3 -4
- package/dist/lib/paginate.d.ts.map +1 -1
- package/dist/lib/paginate.js +7 -10
- package/dist/lib/paginate.js.map +1 -1
- package/dist/lib/parser.d.ts +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/parser.js +84 -96
- package/dist/lib/parser.js.map +1 -1
- package/dist/lib/questions.d.ts +1 -1
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/questions.js +364 -368
- package/dist/lib/questions.js.map +1 -1
- package/dist/lib/sdks.d.ts +1 -1
- package/dist/lib/sdks.d.ts.map +1 -1
- package/dist/lib/sdks.js +40 -30
- package/dist/lib/sdks.js.map +1 -1
- package/dist/lib/services.d.ts +13 -0
- package/dist/lib/services.d.ts.map +1 -0
- package/dist/lib/services.js +47 -0
- package/dist/lib/services.js.map +1 -0
- package/dist/lib/spinner.d.ts +1 -1
- package/dist/lib/spinner.d.ts.map +1 -1
- package/dist/lib/spinner.js +25 -27
- package/dist/lib/spinner.js.map +1 -1
- package/dist/lib/type-generation/attribute.d.ts +1 -1
- package/dist/lib/type-generation/attribute.d.ts.map +1 -1
- package/dist/lib/type-generation/attribute.js +14 -17
- package/dist/lib/type-generation/attribute.js.map +1 -1
- package/dist/lib/type-generation/languages/csharp.d.ts +1 -1
- package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/csharp.js +34 -34
- package/dist/lib/type-generation/languages/csharp.js.map +1 -1
- package/dist/lib/type-generation/languages/dart.d.ts +1 -1
- package/dist/lib/type-generation/languages/dart.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/dart.js +57 -57
- package/dist/lib/type-generation/languages/dart.js.map +1 -1
- package/dist/lib/type-generation/languages/java.d.ts +1 -1
- package/dist/lib/type-generation/languages/java.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/java.js +35 -35
- package/dist/lib/type-generation/languages/java.js.map +1 -1
- package/dist/lib/type-generation/languages/javascript.d.ts +1 -1
- package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/javascript.js +45 -44
- package/dist/lib/type-generation/languages/javascript.js.map +1 -1
- package/dist/lib/type-generation/languages/kotlin.d.ts +1 -1
- package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/kotlin.js +35 -35
- package/dist/lib/type-generation/languages/kotlin.js.map +1 -1
- package/dist/lib/type-generation/languages/language.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/language.js +32 -37
- package/dist/lib/type-generation/languages/language.js.map +1 -1
- package/dist/lib/type-generation/languages/php.d.ts +1 -1
- package/dist/lib/type-generation/languages/php.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/php.js +34 -34
- package/dist/lib/type-generation/languages/php.js.map +1 -1
- package/dist/lib/type-generation/languages/swift.d.ts +1 -1
- package/dist/lib/type-generation/languages/swift.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/swift.js +35 -35
- package/dist/lib/type-generation/languages/swift.js.map +1 -1
- package/dist/lib/type-generation/languages/typescript.d.ts +1 -1
- package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -1
- package/dist/lib/type-generation/languages/typescript.js +49 -46
- package/dist/lib/type-generation/languages/typescript.js.map +1 -1
- package/dist/lib/types.d.ts +189 -45
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +1 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +102 -98
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/validations.d.ts.map +1 -1
- package/dist/lib/validations.js +2 -6
- package/dist/lib/validations.js.map +1 -1
- package/dist/package.json +67 -0
- package/dist/scripts/generate-commands.d.ts +2 -0
- package/dist/scripts/generate-commands.d.ts.map +1 -0
- package/dist/scripts/generate-commands.js +398 -0
- package/dist/scripts/generate-commands.js.map +1 -0
- package/index.ts +146 -130
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.ts +253 -220
- package/lib/commands/generic.ts +371 -269
- package/lib/commands/init.ts +620 -519
- package/lib/commands/pull.ts +581 -470
- package/lib/commands/push.ts +2838 -2269
- package/lib/commands/run.ts +382 -302
- package/lib/commands/services/account.ts +832 -0
- package/lib/commands/services/avatars.ts +400 -0
- package/lib/commands/services/console.ts +73 -0
- package/lib/commands/services/databases.ts +2080 -0
- package/lib/commands/services/functions.ts +855 -0
- package/lib/commands/services/graphql.ts +47 -0
- package/lib/commands/services/health.ts +322 -0
- package/lib/commands/services/locale.ts +99 -0
- package/lib/commands/services/messaging.ts +1871 -0
- package/lib/commands/services/migrations.ts +421 -0
- package/lib/commands/services/project.ts +116 -0
- package/lib/commands/services/projects.ts +1317 -0
- package/lib/commands/services/proxy.ts +163 -0
- package/lib/commands/services/sites.ts +777 -0
- package/lib/commands/services/storage.ts +547 -0
- package/lib/commands/services/tablesdb.ts +1928 -0
- package/lib/commands/services/teams.ts +294 -0
- package/lib/commands/services/tokens.ts +106 -0
- package/lib/commands/services/users.ts +886 -0
- package/lib/commands/services/vcs.ts +268 -0
- package/lib/commands/types.ts +144 -117
- package/lib/commands/update.ts +198 -159
- package/lib/config.ts +815 -700
- package/lib/emulation/docker.ts +291 -244
- package/lib/emulation/utils.ts +188 -174
- package/lib/id.ts +23 -23
- package/lib/paginate.ts +69 -55
- package/lib/parser.ts +215 -189
- package/lib/questions.ts +1025 -948
- package/lib/sdks.ts +80 -51
- package/lib/services.ts +72 -0
- package/lib/spinner.ts +112 -99
- package/lib/type-generation/attribute.ts +15 -14
- package/lib/type-generation/languages/csharp.ts +71 -60
- package/lib/type-generation/languages/dart.ts +106 -93
- package/lib/type-generation/languages/java.ts +69 -58
- package/lib/type-generation/languages/javascript.ts +84 -73
- package/lib/type-generation/languages/kotlin.ts +71 -60
- package/lib/type-generation/languages/language.ts +103 -95
- package/lib/type-generation/languages/php.ts +67 -56
- package/lib/type-generation/languages/swift.ts +71 -60
- package/lib/type-generation/languages/typescript.ts +93 -76
- package/lib/types.ts +261 -107
- package/lib/utils.ts +263 -233
- package/lib/validations.ts +17 -14
- package/package.json +27 -19
- package/scoop/appwrite.config.json +19 -29
- package/scripts/generate-commands.ts +539 -0
- package/tsconfig.json +7 -13
- package/.github/workflows/autoclose.yml +0 -11
- package/dist/lib/commands/account.d.ts +0 -379
- package/dist/lib/commands/account.d.ts.map +0 -1
- package/dist/lib/commands/account.js +0 -1228
- package/dist/lib/commands/account.js.map +0 -1
- package/dist/lib/commands/console.d.ts +0 -20
- package/dist/lib/commands/console.d.ts.map +0 -1
- package/dist/lib/commands/console.js +0 -78
- package/dist/lib/commands/console.js.map +0 -1
- package/dist/lib/commands/databases.d.ts +0 -732
- package/dist/lib/commands/databases.d.ts.map +0 -1
- package/dist/lib/commands/databases.js +0 -2196
- package/dist/lib/commands/databases.js.map +0 -1
- package/dist/lib/commands/functions.d.ts +0 -310
- package/dist/lib/commands/functions.d.ts.map +0 -1
- package/dist/lib/commands/functions.js +0 -1100
- package/dist/lib/commands/functions.js.map +0 -1
- package/dist/lib/commands/graphql.d.ts +0 -19
- package/dist/lib/commands/graphql.d.ts.map +0 -1
- package/dist/lib/commands/graphql.js +0 -77
- package/dist/lib/commands/graphql.js.map +0 -1
- package/dist/lib/commands/health.d.ts +0 -153
- package/dist/lib/commands/health.d.ts.map +0 -1
- package/dist/lib/commands/health.js +0 -464
- package/dist/lib/commands/health.js.map +0 -1
- package/dist/lib/commands/locale.d.ts +0 -53
- package/dist/lib/commands/locale.d.ts.map +0 -1
- package/dist/lib/commands/locale.js +0 -165
- package/dist/lib/commands/locale.js.map +0 -1
- package/dist/lib/commands/messaging.d.ts +0 -588
- package/dist/lib/commands/messaging.d.ts.map +0 -1
- package/dist/lib/commands/messaging.js +0 -2042
- package/dist/lib/commands/messaging.js.map +0 -1
- package/dist/lib/commands/migrations.d.ts +0 -150
- package/dist/lib/commands/migrations.d.ts.map +0 -1
- package/dist/lib/commands/migrations.js +0 -524
- package/dist/lib/commands/migrations.js.map +0 -1
- package/dist/lib/commands/organizations.d.ts +0 -11
- package/dist/lib/commands/organizations.d.ts.map +0 -1
- package/dist/lib/commands/organizations.js +0 -31
- package/dist/lib/commands/organizations.js.map +0 -1
- package/dist/lib/commands/project.d.ts +0 -53
- package/dist/lib/commands/project.d.ts.map +0 -1
- package/dist/lib/commands/project.js +0 -176
- package/dist/lib/commands/project.js.map +0 -1
- package/dist/lib/commands/projects.d.ts +0 -516
- package/dist/lib/commands/projects.d.ts.map +0 -1
- package/dist/lib/commands/projects.js +0 -1590
- package/dist/lib/commands/projects.js.map +0 -1
- package/dist/lib/commands/proxy.d.ts +0 -71
- package/dist/lib/commands/proxy.d.ts.map +0 -1
- package/dist/lib/commands/proxy.js +0 -240
- package/dist/lib/commands/proxy.js.map +0 -1
- package/dist/lib/commands/sites.d.ts +0 -296
- package/dist/lib/commands/sites.d.ts.map +0 -1
- package/dist/lib/commands/sites.js +0 -1046
- package/dist/lib/commands/sites.js.map +0 -1
- package/dist/lib/commands/storage.d.ts +0 -170
- package/dist/lib/commands/storage.d.ts.map +0 -1
- package/dist/lib/commands/storage.js +0 -651
- package/dist/lib/commands/storage.js.map +0 -1
- package/dist/lib/commands/tables-db.d.ts +0 -728
- package/dist/lib/commands/tables-db.d.ts.map +0 -1
- package/dist/lib/commands/tables-db.js +0 -2198
- package/dist/lib/commands/tables-db.js.map +0 -1
- package/dist/lib/commands/teams.d.ts +0 -129
- package/dist/lib/commands/teams.d.ts.map +0 -1
- package/dist/lib/commands/teams.js +0 -403
- package/dist/lib/commands/teams.js.map +0 -1
- package/dist/lib/commands/tokens.d.ts +0 -48
- package/dist/lib/commands/tokens.d.ts.map +0 -1
- package/dist/lib/commands/tokens.js +0 -156
- package/dist/lib/commands/tokens.js.map +0 -1
- package/dist/lib/commands/users.d.ts +0 -382
- package/dist/lib/commands/users.d.ts.map +0 -1
- package/dist/lib/commands/users.js +0 -1195
- package/dist/lib/commands/users.js.map +0 -1
- package/dist/lib/commands/vcs.d.ts +0 -92
- package/dist/lib/commands/vcs.d.ts.map +0 -1
- package/dist/lib/commands/vcs.js +0 -276
- package/dist/lib/commands/vcs.js.map +0 -1
- package/dist/lib/exception.d.ts +0 -8
- package/dist/lib/exception.d.ts.map +0 -1
- package/dist/lib/exception.js +0 -16
- package/dist/lib/exception.js.map +0 -1
- package/docs/examples/account/create-anonymous-session.md +0 -1
- package/docs/examples/account/create-email-password-session.md +0 -3
- package/docs/examples/account/create-email-token.md +0 -3
- package/docs/examples/account/create-email-verification.md +0 -2
- package/docs/examples/account/create-jwt.md +0 -1
- package/docs/examples/account/create-magic-url-token.md +0 -3
- package/docs/examples/account/create-mfa-authenticator.md +0 -2
- package/docs/examples/account/create-mfa-challenge.md +0 -2
- package/docs/examples/account/create-mfa-recovery-codes.md +0 -1
- package/docs/examples/account/create-o-auth-2-session.md +0 -2
- package/docs/examples/account/create-o-auth-2-token.md +0 -2
- package/docs/examples/account/create-phone-token.md +0 -3
- package/docs/examples/account/create-phone-verification.md +0 -1
- package/docs/examples/account/create-push-target.md +0 -3
- package/docs/examples/account/create-recovery.md +0 -3
- package/docs/examples/account/create-session.md +0 -3
- package/docs/examples/account/create-verification.md +0 -2
- package/docs/examples/account/create.md +0 -4
- package/docs/examples/account/delete-identity.md +0 -2
- package/docs/examples/account/delete-mfa-authenticator.md +0 -2
- package/docs/examples/account/delete-push-target.md +0 -2
- package/docs/examples/account/delete-session.md +0 -2
- package/docs/examples/account/delete-sessions.md +0 -1
- package/docs/examples/account/delete.md +0 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +0 -1
- package/docs/examples/account/get-prefs.md +0 -1
- package/docs/examples/account/get-session.md +0 -2
- package/docs/examples/account/get.md +0 -1
- package/docs/examples/account/list-identities.md +0 -1
- package/docs/examples/account/list-logs.md +0 -1
- package/docs/examples/account/list-mfa-factors.md +0 -1
- package/docs/examples/account/list-sessions.md +0 -1
- package/docs/examples/account/update-email-verification.md +0 -3
- package/docs/examples/account/update-email.md +0 -3
- package/docs/examples/account/update-magic-url-session.md +0 -3
- package/docs/examples/account/update-mfa-authenticator.md +0 -3
- package/docs/examples/account/update-mfa-challenge.md +0 -3
- package/docs/examples/account/update-mfa-recovery-codes.md +0 -1
- package/docs/examples/account/update-mfa.md +0 -2
- package/docs/examples/account/update-name.md +0 -2
- package/docs/examples/account/update-password.md +0 -2
- package/docs/examples/account/update-phone-session.md +0 -3
- package/docs/examples/account/update-phone-verification.md +0 -3
- package/docs/examples/account/update-phone.md +0 -3
- package/docs/examples/account/update-prefs.md +0 -2
- package/docs/examples/account/update-push-target.md +0 -3
- package/docs/examples/account/update-recovery.md +0 -4
- package/docs/examples/account/update-session.md +0 -2
- package/docs/examples/account/update-status.md +0 -1
- package/docs/examples/account/update-verification.md +0 -3
- package/docs/examples/console/get-resource.md +0 -3
- package/docs/examples/console/variables.md +0 -1
- package/docs/examples/databases/create-boolean-attribute.md +0 -5
- package/docs/examples/databases/create-collection.md +0 -4
- package/docs/examples/databases/create-datetime-attribute.md +0 -5
- package/docs/examples/databases/create-document.md +0 -5
- package/docs/examples/databases/create-documents.md +0 -4
- package/docs/examples/databases/create-email-attribute.md +0 -5
- package/docs/examples/databases/create-enum-attribute.md +0 -6
- package/docs/examples/databases/create-float-attribute.md +0 -5
- package/docs/examples/databases/create-index.md +0 -6
- package/docs/examples/databases/create-integer-attribute.md +0 -5
- package/docs/examples/databases/create-ip-attribute.md +0 -5
- package/docs/examples/databases/create-line-attribute.md +0 -5
- package/docs/examples/databases/create-operations.md +0 -2
- package/docs/examples/databases/create-point-attribute.md +0 -5
- package/docs/examples/databases/create-polygon-attribute.md +0 -5
- package/docs/examples/databases/create-relationship-attribute.md +0 -5
- package/docs/examples/databases/create-string-attribute.md +0 -6
- package/docs/examples/databases/create-transaction.md +0 -1
- package/docs/examples/databases/create-url-attribute.md +0 -5
- package/docs/examples/databases/create.md +0 -3
- package/docs/examples/databases/decrement-document-attribute.md +0 -5
- package/docs/examples/databases/delete-attribute.md +0 -4
- package/docs/examples/databases/delete-collection.md +0 -3
- package/docs/examples/databases/delete-document.md +0 -4
- package/docs/examples/databases/delete-documents.md +0 -3
- package/docs/examples/databases/delete-index.md +0 -4
- package/docs/examples/databases/delete-transaction.md +0 -2
- package/docs/examples/databases/delete.md +0 -2
- package/docs/examples/databases/get-attribute.md +0 -4
- package/docs/examples/databases/get-collection-usage.md +0 -3
- package/docs/examples/databases/get-collection.md +0 -3
- package/docs/examples/databases/get-document.md +0 -4
- package/docs/examples/databases/get-index.md +0 -4
- package/docs/examples/databases/get-transaction.md +0 -2
- package/docs/examples/databases/get-usage.md +0 -2
- package/docs/examples/databases/get.md +0 -2
- package/docs/examples/databases/increment-document-attribute.md +0 -5
- package/docs/examples/databases/list-attributes.md +0 -3
- package/docs/examples/databases/list-collection-logs.md +0 -3
- package/docs/examples/databases/list-collections.md +0 -2
- package/docs/examples/databases/list-document-logs.md +0 -4
- package/docs/examples/databases/list-documents.md +0 -3
- package/docs/examples/databases/list-indexes.md +0 -3
- package/docs/examples/databases/list-logs.md +0 -2
- package/docs/examples/databases/list-transactions.md +0 -1
- package/docs/examples/databases/list-usage.md +0 -1
- package/docs/examples/databases/list.md +0 -1
- package/docs/examples/databases/update-boolean-attribute.md +0 -6
- package/docs/examples/databases/update-collection.md +0 -4
- package/docs/examples/databases/update-datetime-attribute.md +0 -6
- package/docs/examples/databases/update-document.md +0 -4
- package/docs/examples/databases/update-documents.md +0 -3
- package/docs/examples/databases/update-email-attribute.md +0 -6
- package/docs/examples/databases/update-enum-attribute.md +0 -7
- package/docs/examples/databases/update-float-attribute.md +0 -6
- package/docs/examples/databases/update-integer-attribute.md +0 -6
- package/docs/examples/databases/update-ip-attribute.md +0 -6
- package/docs/examples/databases/update-line-attribute.md +0 -5
- package/docs/examples/databases/update-point-attribute.md +0 -5
- package/docs/examples/databases/update-polygon-attribute.md +0 -5
- package/docs/examples/databases/update-relationship-attribute.md +0 -4
- package/docs/examples/databases/update-string-attribute.md +0 -6
- package/docs/examples/databases/update-transaction.md +0 -2
- package/docs/examples/databases/update-url-attribute.md +0 -6
- package/docs/examples/databases/update.md +0 -3
- package/docs/examples/databases/upsert-document.md +0 -4
- package/docs/examples/databases/upsert-documents.md +0 -4
- package/docs/examples/functions/create-deployment.md +0 -4
- package/docs/examples/functions/create-duplicate-deployment.md +0 -3
- package/docs/examples/functions/create-execution.md +0 -2
- package/docs/examples/functions/create-template-deployment.md +0 -7
- package/docs/examples/functions/create-variable.md +0 -4
- package/docs/examples/functions/create-vcs-deployment.md +0 -4
- package/docs/examples/functions/create.md +0 -4
- package/docs/examples/functions/delete-deployment.md +0 -3
- package/docs/examples/functions/delete-execution.md +0 -3
- package/docs/examples/functions/delete-variable.md +0 -3
- package/docs/examples/functions/delete.md +0 -2
- package/docs/examples/functions/get-deployment-download.md +0 -3
- package/docs/examples/functions/get-deployment.md +0 -3
- package/docs/examples/functions/get-execution.md +0 -3
- package/docs/examples/functions/get-template.md +0 -2
- package/docs/examples/functions/get-usage.md +0 -2
- package/docs/examples/functions/get-variable.md +0 -3
- package/docs/examples/functions/get.md +0 -2
- package/docs/examples/functions/list-deployments.md +0 -2
- package/docs/examples/functions/list-executions.md +0 -2
- package/docs/examples/functions/list-runtimes.md +0 -1
- package/docs/examples/functions/list-specifications.md +0 -1
- package/docs/examples/functions/list-templates.md +0 -1
- package/docs/examples/functions/list-usage.md +0 -1
- package/docs/examples/functions/list-variables.md +0 -2
- package/docs/examples/functions/list.md +0 -1
- package/docs/examples/functions/update-deployment-status.md +0 -3
- package/docs/examples/functions/update-function-deployment.md +0 -3
- package/docs/examples/functions/update-variable.md +0 -4
- package/docs/examples/functions/update.md +0 -3
- package/docs/examples/graphql/mutation.md +0 -2
- package/docs/examples/graphql/query.md +0 -2
- package/docs/examples/health/get-antivirus.md +0 -1
- package/docs/examples/health/get-cache.md +0 -1
- package/docs/examples/health/get-certificate.md +0 -1
- package/docs/examples/health/get-db.md +0 -1
- package/docs/examples/health/get-failed-jobs.md +0 -2
- package/docs/examples/health/get-pub-sub.md +0 -1
- package/docs/examples/health/get-queue-builds.md +0 -1
- package/docs/examples/health/get-queue-certificates.md +0 -1
- package/docs/examples/health/get-queue-databases.md +0 -1
- package/docs/examples/health/get-queue-deletes.md +0 -1
- package/docs/examples/health/get-queue-functions.md +0 -1
- package/docs/examples/health/get-queue-logs.md +0 -1
- package/docs/examples/health/get-queue-mails.md +0 -1
- package/docs/examples/health/get-queue-messaging.md +0 -1
- package/docs/examples/health/get-queue-migrations.md +0 -1
- package/docs/examples/health/get-queue-stats-resources.md +0 -1
- package/docs/examples/health/get-queue-usage.md +0 -1
- package/docs/examples/health/get-queue-webhooks.md +0 -1
- package/docs/examples/health/get-storage-local.md +0 -1
- package/docs/examples/health/get-storage.md +0 -1
- package/docs/examples/health/get-time.md +0 -1
- package/docs/examples/health/get.md +0 -1
- package/docs/examples/locale/get.md +0 -1
- package/docs/examples/locale/list-codes.md +0 -1
- package/docs/examples/locale/list-continents.md +0 -1
- package/docs/examples/locale/list-countries-eu.md +0 -1
- package/docs/examples/locale/list-countries-phones.md +0 -1
- package/docs/examples/locale/list-countries.md +0 -1
- package/docs/examples/locale/list-currencies.md +0 -1
- package/docs/examples/locale/list-languages.md +0 -1
- package/docs/examples/messaging/create-apns-provider.md +0 -3
- package/docs/examples/messaging/create-email.md +0 -4
- package/docs/examples/messaging/create-fcm-provider.md +0 -3
- package/docs/examples/messaging/create-mailgun-provider.md +0 -3
- package/docs/examples/messaging/create-msg-91-provider.md +0 -3
- package/docs/examples/messaging/create-push.md +0 -2
- package/docs/examples/messaging/create-resend-provider.md +0 -3
- package/docs/examples/messaging/create-sendgrid-provider.md +0 -3
- package/docs/examples/messaging/create-sms.md +0 -3
- package/docs/examples/messaging/create-smtp-provider.md +0 -4
- package/docs/examples/messaging/create-subscriber.md +0 -4
- package/docs/examples/messaging/create-telesign-provider.md +0 -3
- package/docs/examples/messaging/create-textmagic-provider.md +0 -3
- package/docs/examples/messaging/create-topic.md +0 -3
- package/docs/examples/messaging/create-twilio-provider.md +0 -3
- package/docs/examples/messaging/create-vonage-provider.md +0 -3
- package/docs/examples/messaging/delete-provider.md +0 -2
- package/docs/examples/messaging/delete-subscriber.md +0 -3
- package/docs/examples/messaging/delete-topic.md +0 -2
- package/docs/examples/messaging/delete.md +0 -2
- package/docs/examples/messaging/get-message.md +0 -2
- package/docs/examples/messaging/get-provider.md +0 -2
- package/docs/examples/messaging/get-subscriber.md +0 -3
- package/docs/examples/messaging/get-topic.md +0 -2
- package/docs/examples/messaging/list-message-logs.md +0 -2
- package/docs/examples/messaging/list-messages.md +0 -1
- package/docs/examples/messaging/list-provider-logs.md +0 -2
- package/docs/examples/messaging/list-providers.md +0 -1
- package/docs/examples/messaging/list-subscriber-logs.md +0 -2
- package/docs/examples/messaging/list-subscribers.md +0 -2
- package/docs/examples/messaging/list-targets.md +0 -2
- package/docs/examples/messaging/list-topic-logs.md +0 -2
- package/docs/examples/messaging/list-topics.md +0 -1
- package/docs/examples/messaging/update-apns-provider.md +0 -2
- package/docs/examples/messaging/update-email.md +0 -2
- package/docs/examples/messaging/update-fcm-provider.md +0 -2
- package/docs/examples/messaging/update-mailgun-provider.md +0 -2
- package/docs/examples/messaging/update-msg-91-provider.md +0 -2
- package/docs/examples/messaging/update-push.md +0 -2
- package/docs/examples/messaging/update-resend-provider.md +0 -2
- package/docs/examples/messaging/update-sendgrid-provider.md +0 -2
- package/docs/examples/messaging/update-sms.md +0 -2
- package/docs/examples/messaging/update-smtp-provider.md +0 -2
- package/docs/examples/messaging/update-telesign-provider.md +0 -2
- package/docs/examples/messaging/update-textmagic-provider.md +0 -2
- package/docs/examples/messaging/update-topic.md +0 -2
- package/docs/examples/messaging/update-twilio-provider.md +0 -2
- package/docs/examples/messaging/update-vonage-provider.md +0 -2
- package/docs/examples/migrations/create-appwrite-migration.md +0 -5
- package/docs/examples/migrations/create-csv-export.md +0 -3
- package/docs/examples/migrations/create-csv-import.md +0 -4
- package/docs/examples/migrations/create-firebase-migration.md +0 -3
- package/docs/examples/migrations/create-n-host-migration.md +0 -8
- package/docs/examples/migrations/create-supabase-migration.md +0 -7
- package/docs/examples/migrations/delete.md +0 -2
- package/docs/examples/migrations/get-appwrite-report.md +0 -5
- package/docs/examples/migrations/get-firebase-report.md +0 -3
- package/docs/examples/migrations/get-n-host-report.md +0 -8
- package/docs/examples/migrations/get-supabase-report.md +0 -7
- package/docs/examples/migrations/get.md +0 -2
- package/docs/examples/migrations/list.md +0 -1
- package/docs/examples/migrations/retry.md +0 -2
- package/docs/examples/project/create-variable.md +0 -3
- package/docs/examples/project/delete-variable.md +0 -2
- package/docs/examples/project/get-usage.md +0 -3
- package/docs/examples/project/get-variable.md +0 -2
- package/docs/examples/project/list-variables.md +0 -1
- package/docs/examples/project/update-variable.md +0 -3
- package/docs/examples/projects/create-dev-key.md +0 -4
- package/docs/examples/projects/create-jwt.md +0 -3
- package/docs/examples/projects/create-key.md +0 -4
- package/docs/examples/projects/create-platform.md +0 -4
- package/docs/examples/projects/create-smtp-test.md +0 -6
- package/docs/examples/projects/create-webhook.md +0 -6
- package/docs/examples/projects/create.md +0 -4
- package/docs/examples/projects/delete-dev-key.md +0 -3
- package/docs/examples/projects/delete-email-template.md +0 -4
- package/docs/examples/projects/delete-key.md +0 -3
- package/docs/examples/projects/delete-platform.md +0 -3
- package/docs/examples/projects/delete-sms-template.md +0 -4
- package/docs/examples/projects/delete-webhook.md +0 -3
- package/docs/examples/projects/delete.md +0 -2
- package/docs/examples/projects/get-dev-key.md +0 -3
- package/docs/examples/projects/get-email-template.md +0 -4
- package/docs/examples/projects/get-key.md +0 -3
- package/docs/examples/projects/get-platform.md +0 -3
- package/docs/examples/projects/get-sms-template.md +0 -4
- package/docs/examples/projects/get-webhook.md +0 -3
- package/docs/examples/projects/get.md +0 -2
- package/docs/examples/projects/list-dev-keys.md +0 -2
- package/docs/examples/projects/list-keys.md +0 -2
- package/docs/examples/projects/list-platforms.md +0 -2
- package/docs/examples/projects/list-webhooks.md +0 -2
- package/docs/examples/projects/list.md +0 -1
- package/docs/examples/projects/update-api-status-all.md +0 -3
- package/docs/examples/projects/update-api-status.md +0 -4
- package/docs/examples/projects/update-auth-duration.md +0 -3
- package/docs/examples/projects/update-auth-limit.md +0 -3
- package/docs/examples/projects/update-auth-password-dictionary.md +0 -3
- package/docs/examples/projects/update-auth-password-history.md +0 -3
- package/docs/examples/projects/update-auth-sessions-limit.md +0 -3
- package/docs/examples/projects/update-auth-status.md +0 -4
- package/docs/examples/projects/update-dev-key.md +0 -5
- package/docs/examples/projects/update-email-template.md +0 -6
- package/docs/examples/projects/update-key.md +0 -5
- package/docs/examples/projects/update-memberships-privacy.md +0 -5
- package/docs/examples/projects/update-mock-numbers.md +0 -3
- package/docs/examples/projects/update-o-auth-2.md +0 -3
- package/docs/examples/projects/update-personal-data-check.md +0 -3
- package/docs/examples/projects/update-platform.md +0 -4
- package/docs/examples/projects/update-service-status-all.md +0 -3
- package/docs/examples/projects/update-service-status.md +0 -4
- package/docs/examples/projects/update-session-alerts.md +0 -3
- package/docs/examples/projects/update-session-invalidation.md +0 -3
- package/docs/examples/projects/update-sms-template.md +0 -5
- package/docs/examples/projects/update-smtp.md +0 -3
- package/docs/examples/projects/update-team.md +0 -3
- package/docs/examples/projects/update-webhook-signature.md +0 -3
- package/docs/examples/projects/update-webhook.md +0 -7
- package/docs/examples/projects/update.md +0 -3
- package/docs/examples/proxy/create-api-rule.md +0 -2
- package/docs/examples/proxy/create-function-rule.md +0 -3
- package/docs/examples/proxy/create-redirect-rule.md +0 -6
- package/docs/examples/proxy/create-site-rule.md +0 -3
- package/docs/examples/proxy/delete-rule.md +0 -2
- package/docs/examples/proxy/get-rule.md +0 -2
- package/docs/examples/proxy/list-rules.md +0 -1
- package/docs/examples/proxy/update-rule-verification.md +0 -2
- package/docs/examples/sites/create-deployment.md +0 -4
- package/docs/examples/sites/create-duplicate-deployment.md +0 -3
- package/docs/examples/sites/create-template-deployment.md +0 -7
- package/docs/examples/sites/create-variable.md +0 -4
- package/docs/examples/sites/create-vcs-deployment.md +0 -4
- package/docs/examples/sites/create.md +0 -5
- package/docs/examples/sites/delete-deployment.md +0 -3
- package/docs/examples/sites/delete-log.md +0 -3
- package/docs/examples/sites/delete-variable.md +0 -3
- package/docs/examples/sites/delete.md +0 -2
- package/docs/examples/sites/get-deployment-download.md +0 -3
- package/docs/examples/sites/get-deployment.md +0 -3
- package/docs/examples/sites/get-log.md +0 -3
- package/docs/examples/sites/get-template.md +0 -2
- package/docs/examples/sites/get-usage.md +0 -2
- package/docs/examples/sites/get-variable.md +0 -3
- package/docs/examples/sites/get.md +0 -2
- package/docs/examples/sites/list-deployments.md +0 -2
- package/docs/examples/sites/list-frameworks.md +0 -1
- package/docs/examples/sites/list-logs.md +0 -2
- package/docs/examples/sites/list-specifications.md +0 -1
- package/docs/examples/sites/list-templates.md +0 -1
- package/docs/examples/sites/list-usage.md +0 -1
- package/docs/examples/sites/list-variables.md +0 -2
- package/docs/examples/sites/list.md +0 -1
- package/docs/examples/sites/update-deployment-status.md +0 -3
- package/docs/examples/sites/update-site-deployment.md +0 -3
- package/docs/examples/sites/update-variable.md +0 -4
- package/docs/examples/sites/update.md +0 -4
- package/docs/examples/storage/create-bucket.md +0 -3
- package/docs/examples/storage/create-file.md +0 -4
- package/docs/examples/storage/delete-bucket.md +0 -2
- package/docs/examples/storage/delete-file.md +0 -3
- package/docs/examples/storage/get-bucket-usage.md +0 -2
- package/docs/examples/storage/get-bucket.md +0 -2
- package/docs/examples/storage/get-file-download.md +0 -3
- package/docs/examples/storage/get-file-preview.md +0 -3
- package/docs/examples/storage/get-file-view.md +0 -3
- package/docs/examples/storage/get-file.md +0 -3
- package/docs/examples/storage/get-usage.md +0 -1
- package/docs/examples/storage/list-buckets.md +0 -1
- package/docs/examples/storage/list-files.md +0 -2
- package/docs/examples/storage/update-bucket.md +0 -3
- package/docs/examples/storage/update-file.md +0 -3
- package/docs/examples/tablesdb/create-boolean-column.md +0 -5
- package/docs/examples/tablesdb/create-datetime-column.md +0 -5
- package/docs/examples/tablesdb/create-email-column.md +0 -5
- package/docs/examples/tablesdb/create-enum-column.md +0 -6
- package/docs/examples/tablesdb/create-float-column.md +0 -5
- package/docs/examples/tablesdb/create-index.md +0 -6
- package/docs/examples/tablesdb/create-integer-column.md +0 -5
- package/docs/examples/tablesdb/create-ip-column.md +0 -5
- package/docs/examples/tablesdb/create-line-column.md +0 -5
- package/docs/examples/tablesdb/create-operations.md +0 -2
- package/docs/examples/tablesdb/create-point-column.md +0 -5
- package/docs/examples/tablesdb/create-polygon-column.md +0 -5
- package/docs/examples/tablesdb/create-relationship-column.md +0 -5
- package/docs/examples/tablesdb/create-row.md +0 -5
- package/docs/examples/tablesdb/create-rows.md +0 -4
- package/docs/examples/tablesdb/create-string-column.md +0 -6
- package/docs/examples/tablesdb/create-table.md +0 -4
- package/docs/examples/tablesdb/create-transaction.md +0 -1
- package/docs/examples/tablesdb/create-url-column.md +0 -5
- package/docs/examples/tablesdb/create.md +0 -3
- package/docs/examples/tablesdb/decrement-row-column.md +0 -5
- package/docs/examples/tablesdb/delete-column.md +0 -4
- package/docs/examples/tablesdb/delete-index.md +0 -4
- package/docs/examples/tablesdb/delete-row.md +0 -4
- package/docs/examples/tablesdb/delete-rows.md +0 -3
- package/docs/examples/tablesdb/delete-table.md +0 -3
- package/docs/examples/tablesdb/delete-transaction.md +0 -2
- package/docs/examples/tablesdb/delete.md +0 -2
- package/docs/examples/tablesdb/get-column.md +0 -4
- package/docs/examples/tablesdb/get-index.md +0 -4
- package/docs/examples/tablesdb/get-row.md +0 -4
- package/docs/examples/tablesdb/get-table-usage.md +0 -3
- package/docs/examples/tablesdb/get-table.md +0 -3
- package/docs/examples/tablesdb/get-transaction.md +0 -2
- package/docs/examples/tablesdb/get-usage.md +0 -2
- package/docs/examples/tablesdb/get.md +0 -2
- package/docs/examples/tablesdb/increment-row-column.md +0 -5
- package/docs/examples/tablesdb/list-columns.md +0 -3
- package/docs/examples/tablesdb/list-indexes.md +0 -3
- package/docs/examples/tablesdb/list-row-logs.md +0 -4
- package/docs/examples/tablesdb/list-rows.md +0 -3
- package/docs/examples/tablesdb/list-table-logs.md +0 -3
- package/docs/examples/tablesdb/list-tables.md +0 -2
- package/docs/examples/tablesdb/list-transactions.md +0 -1
- package/docs/examples/tablesdb/list-usage.md +0 -1
- package/docs/examples/tablesdb/list.md +0 -1
- package/docs/examples/tablesdb/update-boolean-column.md +0 -6
- package/docs/examples/tablesdb/update-datetime-column.md +0 -6
- package/docs/examples/tablesdb/update-email-column.md +0 -6
- package/docs/examples/tablesdb/update-enum-column.md +0 -7
- package/docs/examples/tablesdb/update-float-column.md +0 -6
- package/docs/examples/tablesdb/update-integer-column.md +0 -6
- package/docs/examples/tablesdb/update-ip-column.md +0 -6
- package/docs/examples/tablesdb/update-line-column.md +0 -5
- package/docs/examples/tablesdb/update-point-column.md +0 -5
- package/docs/examples/tablesdb/update-polygon-column.md +0 -5
- package/docs/examples/tablesdb/update-relationship-column.md +0 -4
- package/docs/examples/tablesdb/update-row.md +0 -4
- package/docs/examples/tablesdb/update-rows.md +0 -3
- package/docs/examples/tablesdb/update-string-column.md +0 -6
- package/docs/examples/tablesdb/update-table.md +0 -4
- package/docs/examples/tablesdb/update-transaction.md +0 -2
- package/docs/examples/tablesdb/update-url-column.md +0 -6
- package/docs/examples/tablesdb/update.md +0 -3
- package/docs/examples/tablesdb/upsert-row.md +0 -4
- package/docs/examples/tablesdb/upsert-rows.md +0 -4
- package/docs/examples/teams/create-membership.md +0 -3
- package/docs/examples/teams/create.md +0 -3
- package/docs/examples/teams/delete-membership.md +0 -3
- package/docs/examples/teams/delete.md +0 -2
- package/docs/examples/teams/get-membership.md +0 -3
- package/docs/examples/teams/get-prefs.md +0 -2
- package/docs/examples/teams/get.md +0 -2
- package/docs/examples/teams/list-logs.md +0 -2
- package/docs/examples/teams/list-memberships.md +0 -2
- package/docs/examples/teams/list.md +0 -1
- package/docs/examples/teams/update-membership-status.md +0 -5
- package/docs/examples/teams/update-membership.md +0 -4
- package/docs/examples/teams/update-name.md +0 -3
- package/docs/examples/teams/update-prefs.md +0 -3
- package/docs/examples/tokens/create-file-token.md +0 -3
- package/docs/examples/tokens/delete.md +0 -2
- package/docs/examples/tokens/get.md +0 -2
- package/docs/examples/tokens/list.md +0 -3
- package/docs/examples/tokens/update.md +0 -2
- package/docs/examples/users/create-argon-2-user.md +0 -4
- package/docs/examples/users/create-bcrypt-user.md +0 -4
- package/docs/examples/users/create-jwt.md +0 -2
- package/docs/examples/users/create-md-5-user.md +0 -4
- package/docs/examples/users/create-mfa-recovery-codes.md +0 -2
- package/docs/examples/users/create-ph-pass-user.md +0 -4
- package/docs/examples/users/create-scrypt-modified-user.md +0 -7
- package/docs/examples/users/create-scrypt-user.md +0 -9
- package/docs/examples/users/create-session.md +0 -2
- package/docs/examples/users/create-sha-user.md +0 -4
- package/docs/examples/users/create-target.md +0 -5
- package/docs/examples/users/create-token.md +0 -2
- package/docs/examples/users/create.md +0 -2
- package/docs/examples/users/delete-identity.md +0 -2
- package/docs/examples/users/delete-mfa-authenticator.md +0 -3
- package/docs/examples/users/delete-session.md +0 -3
- package/docs/examples/users/delete-sessions.md +0 -2
- package/docs/examples/users/delete-target.md +0 -3
- package/docs/examples/users/delete.md +0 -2
- package/docs/examples/users/get-mfa-recovery-codes.md +0 -2
- package/docs/examples/users/get-prefs.md +0 -2
- package/docs/examples/users/get-target.md +0 -3
- package/docs/examples/users/get-usage.md +0 -1
- package/docs/examples/users/get.md +0 -2
- package/docs/examples/users/list-identities.md +0 -1
- package/docs/examples/users/list-logs.md +0 -2
- package/docs/examples/users/list-memberships.md +0 -2
- package/docs/examples/users/list-mfa-factors.md +0 -2
- package/docs/examples/users/list-sessions.md +0 -2
- package/docs/examples/users/list-targets.md +0 -2
- package/docs/examples/users/list.md +0 -1
- package/docs/examples/users/update-email-verification.md +0 -3
- package/docs/examples/users/update-email.md +0 -3
- package/docs/examples/users/update-labels.md +0 -3
- package/docs/examples/users/update-mfa-recovery-codes.md +0 -2
- package/docs/examples/users/update-mfa.md +0 -3
- package/docs/examples/users/update-name.md +0 -3
- package/docs/examples/users/update-password.md +0 -3
- package/docs/examples/users/update-phone-verification.md +0 -3
- package/docs/examples/users/update-phone.md +0 -3
- package/docs/examples/users/update-prefs.md +0 -3
- package/docs/examples/users/update-status.md +0 -3
- package/docs/examples/users/update-target.md +0 -3
- package/docs/examples/vcs/create-repository-detection.md +0 -4
- package/docs/examples/vcs/create-repository.md +0 -4
- package/docs/examples/vcs/delete-installation.md +0 -2
- package/docs/examples/vcs/get-installation.md +0 -2
- package/docs/examples/vcs/get-repository-contents.md +0 -3
- package/docs/examples/vcs/get-repository.md +0 -3
- package/docs/examples/vcs/list-installations.md +0 -1
- package/docs/examples/vcs/list-repositories.md +0 -3
- package/docs/examples/vcs/list-repository-branches.md +0 -3
- package/docs/examples/vcs/update-external-deployments.md +0 -4
- package/lib/commands/account.ts +0 -1867
- package/lib/commands/console.ts +0 -112
- package/lib/commands/databases.ts +0 -3272
- package/lib/commands/functions.ts +0 -1587
- package/lib/commands/graphql.ts +0 -110
- package/lib/commands/health.ts +0 -753
- package/lib/commands/locale.ts +0 -270
- package/lib/commands/messaging.ts +0 -2878
- package/lib/commands/migrations.ts +0 -754
- package/lib/commands/organizations.ts +0 -46
- package/lib/commands/project.ts +0 -266
- package/lib/commands/projects.ts +0 -2370
- package/lib/commands/proxy.ts +0 -357
- package/lib/commands/sites.ts +0 -1514
- package/lib/commands/storage.ts +0 -919
- package/lib/commands/tables-db.ts +0 -3260
- package/lib/commands/teams.ts +0 -609
- package/lib/commands/tokens.ts +0 -232
- package/lib/commands/users.ts +0 -1804
- package/lib/commands/vcs.ts +0 -428
- package/lib/exception.ts +0 -20
|
@@ -1,2196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.databasesCreateDocuments = exports.databasesCreateDocument = exports.databasesListDocuments = exports.databasesUpdateRelationshipAttribute = exports.databasesDeleteAttribute = exports.databasesGetAttribute = exports.databasesUpdateUrlAttribute = exports.databasesCreateUrlAttribute = exports.databasesUpdateStringAttribute = exports.databasesCreateStringAttribute = exports.databasesCreateRelationshipAttribute = exports.databasesUpdatePolygonAttribute = exports.databasesCreatePolygonAttribute = exports.databasesUpdatePointAttribute = exports.databasesCreatePointAttribute = exports.databasesUpdateLineAttribute = exports.databasesCreateLineAttribute = exports.databasesUpdateIpAttribute = exports.databasesCreateIpAttribute = exports.databasesUpdateIntegerAttribute = exports.databasesCreateIntegerAttribute = exports.databasesUpdateFloatAttribute = exports.databasesCreateFloatAttribute = exports.databasesUpdateEnumAttribute = exports.databasesCreateEnumAttribute = exports.databasesUpdateEmailAttribute = exports.databasesCreateEmailAttribute = exports.databasesUpdateDatetimeAttribute = exports.databasesCreateDatetimeAttribute = exports.databasesUpdateBooleanAttribute = exports.databasesCreateBooleanAttribute = exports.databasesListAttributes = exports.databasesDeleteCollection = exports.databasesUpdateCollection = exports.databasesGetCollection = exports.databasesCreateCollection = exports.databasesListCollections = exports.databasesDelete = exports.databasesUpdate = exports.databasesGet = exports.databasesListUsage = exports.databasesCreateOperations = exports.databasesDeleteTransaction = exports.databasesUpdateTransaction = exports.databasesGetTransaction = exports.databasesCreateTransaction = exports.databasesListTransactions = exports.databasesCreate = exports.databasesList = exports.databases = void 0;
|
|
4
|
-
exports.databasesGetUsage = exports.databasesListLogs = exports.databasesGetCollectionUsage = exports.databasesListCollectionLogs = exports.databasesDeleteIndex = exports.databasesGetIndex = exports.databasesCreateIndex = exports.databasesListIndexes = exports.databasesIncrementDocumentAttribute = exports.databasesDecrementDocumentAttribute = exports.databasesListDocumentLogs = exports.databasesDeleteDocument = exports.databasesUpdateDocument = exports.databasesUpsertDocument = exports.databasesGetDocument = exports.databasesDeleteDocuments = exports.databasesUpdateDocuments = exports.databasesUpsertDocuments = void 0;
|
|
5
|
-
const utils_1 = require("../utils");
|
|
6
|
-
const commander_1 = require("commander");
|
|
7
|
-
const sdks_1 = require("../sdks");
|
|
8
|
-
const parser_1 = require("../parser");
|
|
9
|
-
const web_1 = require("stream/web");
|
|
10
|
-
function convertReadStreamToReadableStream(readStream) {
|
|
11
|
-
return new web_1.ReadableStream({
|
|
12
|
-
start(controller) {
|
|
13
|
-
readStream.on("data", (chunk) => {
|
|
14
|
-
controller.enqueue(chunk);
|
|
15
|
-
});
|
|
16
|
-
readStream.on("end", () => {
|
|
17
|
-
controller.close();
|
|
18
|
-
});
|
|
19
|
-
readStream.on("error", (err) => {
|
|
20
|
-
controller.error(err);
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
cancel() {
|
|
24
|
-
readStream.destroy();
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
exports.databases = new commander_1.Command("databases").description(parser_1.commandDescriptions['databases'] ?? '').configureHelp({
|
|
29
|
-
helpWidth: process.stdout.columns || 80
|
|
30
|
-
});
|
|
31
|
-
const databasesList = async ({ queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
32
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
33
|
-
sdk;
|
|
34
|
-
let apiPath = '/databases';
|
|
35
|
-
let payload = {};
|
|
36
|
-
if (typeof queries !== 'undefined') {
|
|
37
|
-
payload['queries'] = queries;
|
|
38
|
-
}
|
|
39
|
-
if (typeof search !== 'undefined') {
|
|
40
|
-
payload['search'] = search;
|
|
41
|
-
}
|
|
42
|
-
if (typeof total !== 'undefined') {
|
|
43
|
-
payload['total'] = total;
|
|
44
|
-
}
|
|
45
|
-
let response = undefined;
|
|
46
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
47
|
-
if (parseOutput) {
|
|
48
|
-
if (showConsole) {
|
|
49
|
-
(0, utils_1.showConsoleLink)('databases', 'list');
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
(0, parser_1.parse)(response);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return response;
|
|
56
|
-
};
|
|
57
|
-
exports.databasesList = databasesList;
|
|
58
|
-
const databasesCreate = async ({ databaseId, name, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
59
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
60
|
-
sdk;
|
|
61
|
-
let apiPath = '/databases';
|
|
62
|
-
let payload = {};
|
|
63
|
-
if (typeof databaseId !== 'undefined') {
|
|
64
|
-
payload['databaseId'] = databaseId;
|
|
65
|
-
}
|
|
66
|
-
if (typeof name !== 'undefined') {
|
|
67
|
-
payload['name'] = name;
|
|
68
|
-
}
|
|
69
|
-
if (typeof enabled !== 'undefined') {
|
|
70
|
-
payload['enabled'] = enabled;
|
|
71
|
-
}
|
|
72
|
-
let response = undefined;
|
|
73
|
-
response = await client.call('post', apiPath, {
|
|
74
|
-
'content-type': 'application/json',
|
|
75
|
-
}, payload);
|
|
76
|
-
if (parseOutput) {
|
|
77
|
-
(0, parser_1.parse)(response);
|
|
78
|
-
}
|
|
79
|
-
return response;
|
|
80
|
-
};
|
|
81
|
-
exports.databasesCreate = databasesCreate;
|
|
82
|
-
const databasesListTransactions = async ({ queries, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
83
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
84
|
-
sdk;
|
|
85
|
-
let apiPath = '/databases/transactions';
|
|
86
|
-
let payload = {};
|
|
87
|
-
if (typeof queries !== 'undefined') {
|
|
88
|
-
payload['queries'] = queries;
|
|
89
|
-
}
|
|
90
|
-
let response = undefined;
|
|
91
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
92
|
-
if (parseOutput) {
|
|
93
|
-
if (showConsole) {
|
|
94
|
-
(0, utils_1.showConsoleLink)('databases', 'listTransactions');
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
(0, parser_1.parse)(response);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return response;
|
|
101
|
-
};
|
|
102
|
-
exports.databasesListTransactions = databasesListTransactions;
|
|
103
|
-
const databasesCreateTransaction = async ({ ttl, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
104
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
105
|
-
sdk;
|
|
106
|
-
let apiPath = '/databases/transactions';
|
|
107
|
-
let payload = {};
|
|
108
|
-
if (typeof ttl !== 'undefined') {
|
|
109
|
-
payload['ttl'] = ttl;
|
|
110
|
-
}
|
|
111
|
-
let response = undefined;
|
|
112
|
-
response = await client.call('post', apiPath, {
|
|
113
|
-
'content-type': 'application/json',
|
|
114
|
-
}, payload);
|
|
115
|
-
if (parseOutput) {
|
|
116
|
-
(0, parser_1.parse)(response);
|
|
117
|
-
}
|
|
118
|
-
return response;
|
|
119
|
-
};
|
|
120
|
-
exports.databasesCreateTransaction = databasesCreateTransaction;
|
|
121
|
-
const databasesGetTransaction = async ({ transactionId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
122
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
123
|
-
sdk;
|
|
124
|
-
let apiPath = '/databases/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
125
|
-
let payload = {};
|
|
126
|
-
let response = undefined;
|
|
127
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
128
|
-
if (parseOutput) {
|
|
129
|
-
if (showConsole) {
|
|
130
|
-
(0, utils_1.showConsoleLink)('databases', 'getTransaction', transactionId);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
(0, parser_1.parse)(response);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return response;
|
|
137
|
-
};
|
|
138
|
-
exports.databasesGetTransaction = databasesGetTransaction;
|
|
139
|
-
const databasesUpdateTransaction = async ({ transactionId, commit, rollback, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
140
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
141
|
-
sdk;
|
|
142
|
-
let apiPath = '/databases/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
143
|
-
let payload = {};
|
|
144
|
-
if (typeof commit !== 'undefined') {
|
|
145
|
-
payload['commit'] = commit;
|
|
146
|
-
}
|
|
147
|
-
if (typeof rollback !== 'undefined') {
|
|
148
|
-
payload['rollback'] = rollback;
|
|
149
|
-
}
|
|
150
|
-
let response = undefined;
|
|
151
|
-
response = await client.call('patch', apiPath, {
|
|
152
|
-
'content-type': 'application/json',
|
|
153
|
-
}, payload);
|
|
154
|
-
if (parseOutput) {
|
|
155
|
-
(0, parser_1.parse)(response);
|
|
156
|
-
}
|
|
157
|
-
return response;
|
|
158
|
-
};
|
|
159
|
-
exports.databasesUpdateTransaction = databasesUpdateTransaction;
|
|
160
|
-
const databasesDeleteTransaction = async ({ transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
161
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
162
|
-
sdk;
|
|
163
|
-
let apiPath = '/databases/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
164
|
-
let payload = {};
|
|
165
|
-
let response = undefined;
|
|
166
|
-
response = await client.call('delete', apiPath, {
|
|
167
|
-
'content-type': 'application/json',
|
|
168
|
-
}, payload);
|
|
169
|
-
if (parseOutput) {
|
|
170
|
-
(0, parser_1.parse)(response);
|
|
171
|
-
}
|
|
172
|
-
return response;
|
|
173
|
-
};
|
|
174
|
-
exports.databasesDeleteTransaction = databasesDeleteTransaction;
|
|
175
|
-
const databasesCreateOperations = async ({ transactionId, operations, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
176
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
177
|
-
sdk;
|
|
178
|
-
let apiPath = '/databases/transactions/{transactionId}/operations'.replace('{transactionId}', transactionId);
|
|
179
|
-
let payload = {};
|
|
180
|
-
operations = operations === true ? [] : operations;
|
|
181
|
-
if (typeof operations !== 'undefined') {
|
|
182
|
-
payload['operations'] = operations;
|
|
183
|
-
}
|
|
184
|
-
let response = undefined;
|
|
185
|
-
response = await client.call('post', apiPath, {
|
|
186
|
-
'content-type': 'application/json',
|
|
187
|
-
}, payload);
|
|
188
|
-
if (parseOutput) {
|
|
189
|
-
(0, parser_1.parse)(response);
|
|
190
|
-
}
|
|
191
|
-
return response;
|
|
192
|
-
};
|
|
193
|
-
exports.databasesCreateOperations = databasesCreateOperations;
|
|
194
|
-
const databasesListUsage = async ({ range, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
195
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
196
|
-
sdk;
|
|
197
|
-
let apiPath = '/databases/usage';
|
|
198
|
-
let payload = {};
|
|
199
|
-
if (typeof range !== 'undefined') {
|
|
200
|
-
payload['range'] = range;
|
|
201
|
-
}
|
|
202
|
-
let response = undefined;
|
|
203
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
204
|
-
if (parseOutput) {
|
|
205
|
-
if (showConsole) {
|
|
206
|
-
(0, utils_1.showConsoleLink)('databases', 'listUsage');
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
(0, parser_1.parse)(response);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
exports.databasesListUsage = databasesListUsage;
|
|
215
|
-
const databasesGet = async ({ databaseId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
216
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
217
|
-
sdk;
|
|
218
|
-
let apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
|
219
|
-
let payload = {};
|
|
220
|
-
let response = undefined;
|
|
221
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
222
|
-
if (parseOutput) {
|
|
223
|
-
if (showConsole) {
|
|
224
|
-
(0, utils_1.showConsoleLink)('databases', 'get', databaseId);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
(0, parser_1.parse)(response);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return response;
|
|
231
|
-
};
|
|
232
|
-
exports.databasesGet = databasesGet;
|
|
233
|
-
const databasesUpdate = async ({ databaseId, name, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
234
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
235
|
-
sdk;
|
|
236
|
-
let apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
|
237
|
-
let payload = {};
|
|
238
|
-
if (typeof name !== 'undefined') {
|
|
239
|
-
payload['name'] = name;
|
|
240
|
-
}
|
|
241
|
-
if (typeof enabled !== 'undefined') {
|
|
242
|
-
payload['enabled'] = enabled;
|
|
243
|
-
}
|
|
244
|
-
let response = undefined;
|
|
245
|
-
response = await client.call('put', apiPath, {
|
|
246
|
-
'content-type': 'application/json',
|
|
247
|
-
}, payload);
|
|
248
|
-
if (parseOutput) {
|
|
249
|
-
(0, parser_1.parse)(response);
|
|
250
|
-
}
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
exports.databasesUpdate = databasesUpdate;
|
|
254
|
-
const databasesDelete = async ({ databaseId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
255
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
256
|
-
sdk;
|
|
257
|
-
let apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
|
258
|
-
let payload = {};
|
|
259
|
-
let response = undefined;
|
|
260
|
-
response = await client.call('delete', apiPath, {
|
|
261
|
-
'content-type': 'application/json',
|
|
262
|
-
}, payload);
|
|
263
|
-
if (parseOutput) {
|
|
264
|
-
(0, parser_1.parse)(response);
|
|
265
|
-
}
|
|
266
|
-
return response;
|
|
267
|
-
};
|
|
268
|
-
exports.databasesDelete = databasesDelete;
|
|
269
|
-
const databasesListCollections = async ({ databaseId, queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
270
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
271
|
-
sdk;
|
|
272
|
-
let apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);
|
|
273
|
-
let payload = {};
|
|
274
|
-
if (typeof queries !== 'undefined') {
|
|
275
|
-
payload['queries'] = queries;
|
|
276
|
-
}
|
|
277
|
-
if (typeof search !== 'undefined') {
|
|
278
|
-
payload['search'] = search;
|
|
279
|
-
}
|
|
280
|
-
if (typeof total !== 'undefined') {
|
|
281
|
-
payload['total'] = total;
|
|
282
|
-
}
|
|
283
|
-
let response = undefined;
|
|
284
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
285
|
-
if (parseOutput) {
|
|
286
|
-
if (showConsole) {
|
|
287
|
-
(0, utils_1.showConsoleLink)('databases', 'listCollections', databaseId);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
(0, parser_1.parse)(response);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
exports.databasesListCollections = databasesListCollections;
|
|
296
|
-
const databasesCreateCollection = async ({ databaseId, collectionId, name, permissions, documentSecurity, enabled, attributes, indexes, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
297
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
298
|
-
sdk;
|
|
299
|
-
let apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);
|
|
300
|
-
let payload = {};
|
|
301
|
-
if (typeof collectionId !== 'undefined') {
|
|
302
|
-
payload['collectionId'] = collectionId;
|
|
303
|
-
}
|
|
304
|
-
if (typeof name !== 'undefined') {
|
|
305
|
-
payload['name'] = name;
|
|
306
|
-
}
|
|
307
|
-
permissions = permissions === true ? [] : permissions;
|
|
308
|
-
if (typeof permissions !== 'undefined') {
|
|
309
|
-
payload['permissions'] = permissions;
|
|
310
|
-
}
|
|
311
|
-
if (typeof documentSecurity !== 'undefined') {
|
|
312
|
-
payload['documentSecurity'] = documentSecurity;
|
|
313
|
-
}
|
|
314
|
-
if (typeof enabled !== 'undefined') {
|
|
315
|
-
payload['enabled'] = enabled;
|
|
316
|
-
}
|
|
317
|
-
attributes = attributes === true ? [] : attributes;
|
|
318
|
-
if (typeof attributes !== 'undefined') {
|
|
319
|
-
payload['attributes'] = attributes;
|
|
320
|
-
}
|
|
321
|
-
indexes = indexes === true ? [] : indexes;
|
|
322
|
-
if (typeof indexes !== 'undefined') {
|
|
323
|
-
payload['indexes'] = indexes;
|
|
324
|
-
}
|
|
325
|
-
let response = undefined;
|
|
326
|
-
response = await client.call('post', apiPath, {
|
|
327
|
-
'content-type': 'application/json',
|
|
328
|
-
}, payload);
|
|
329
|
-
if (parseOutput) {
|
|
330
|
-
(0, parser_1.parse)(response);
|
|
331
|
-
}
|
|
332
|
-
return response;
|
|
333
|
-
};
|
|
334
|
-
exports.databasesCreateCollection = databasesCreateCollection;
|
|
335
|
-
const databasesGetCollection = async ({ databaseId, collectionId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
336
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
337
|
-
sdk;
|
|
338
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
339
|
-
let payload = {};
|
|
340
|
-
let response = undefined;
|
|
341
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
342
|
-
if (parseOutput) {
|
|
343
|
-
if (showConsole) {
|
|
344
|
-
(0, utils_1.showConsoleLink)('databases', 'getCollection', databaseId, collectionId);
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
(0, parser_1.parse)(response);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
return response;
|
|
351
|
-
};
|
|
352
|
-
exports.databasesGetCollection = databasesGetCollection;
|
|
353
|
-
const databasesUpdateCollection = async ({ databaseId, collectionId, name, permissions, documentSecurity, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
354
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
355
|
-
sdk;
|
|
356
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
357
|
-
let payload = {};
|
|
358
|
-
if (typeof name !== 'undefined') {
|
|
359
|
-
payload['name'] = name;
|
|
360
|
-
}
|
|
361
|
-
permissions = permissions === true ? [] : permissions;
|
|
362
|
-
if (typeof permissions !== 'undefined') {
|
|
363
|
-
payload['permissions'] = permissions;
|
|
364
|
-
}
|
|
365
|
-
if (typeof documentSecurity !== 'undefined') {
|
|
366
|
-
payload['documentSecurity'] = documentSecurity;
|
|
367
|
-
}
|
|
368
|
-
if (typeof enabled !== 'undefined') {
|
|
369
|
-
payload['enabled'] = enabled;
|
|
370
|
-
}
|
|
371
|
-
let response = undefined;
|
|
372
|
-
response = await client.call('put', apiPath, {
|
|
373
|
-
'content-type': 'application/json',
|
|
374
|
-
}, payload);
|
|
375
|
-
if (parseOutput) {
|
|
376
|
-
(0, parser_1.parse)(response);
|
|
377
|
-
}
|
|
378
|
-
return response;
|
|
379
|
-
};
|
|
380
|
-
exports.databasesUpdateCollection = databasesUpdateCollection;
|
|
381
|
-
const databasesDeleteCollection = async ({ databaseId, collectionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
382
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
383
|
-
sdk;
|
|
384
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
385
|
-
let payload = {};
|
|
386
|
-
let response = undefined;
|
|
387
|
-
response = await client.call('delete', apiPath, {
|
|
388
|
-
'content-type': 'application/json',
|
|
389
|
-
}, payload);
|
|
390
|
-
if (parseOutput) {
|
|
391
|
-
(0, parser_1.parse)(response);
|
|
392
|
-
}
|
|
393
|
-
return response;
|
|
394
|
-
};
|
|
395
|
-
exports.databasesDeleteCollection = databasesDeleteCollection;
|
|
396
|
-
const databasesListAttributes = async ({ databaseId, collectionId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
397
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
398
|
-
sdk;
|
|
399
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
400
|
-
let payload = {};
|
|
401
|
-
if (typeof queries !== 'undefined') {
|
|
402
|
-
payload['queries'] = queries;
|
|
403
|
-
}
|
|
404
|
-
if (typeof total !== 'undefined') {
|
|
405
|
-
payload['total'] = total;
|
|
406
|
-
}
|
|
407
|
-
let response = undefined;
|
|
408
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
409
|
-
if (parseOutput) {
|
|
410
|
-
if (showConsole) {
|
|
411
|
-
(0, utils_1.showConsoleLink)('databases', 'listAttributes', databaseId, collectionId);
|
|
412
|
-
}
|
|
413
|
-
else {
|
|
414
|
-
(0, parser_1.parse)(response);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return response;
|
|
418
|
-
};
|
|
419
|
-
exports.databasesListAttributes = databasesListAttributes;
|
|
420
|
-
const databasesCreateBooleanAttribute = async ({ databaseId, collectionId, key, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
421
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
422
|
-
sdk;
|
|
423
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
424
|
-
let payload = {};
|
|
425
|
-
if (typeof key !== 'undefined') {
|
|
426
|
-
payload['key'] = key;
|
|
427
|
-
}
|
|
428
|
-
if (typeof required !== 'undefined') {
|
|
429
|
-
payload['required'] = required;
|
|
430
|
-
}
|
|
431
|
-
if (typeof xdefault !== 'undefined') {
|
|
432
|
-
payload['default'] = xdefault;
|
|
433
|
-
}
|
|
434
|
-
if (typeof array !== 'undefined') {
|
|
435
|
-
payload['array'] = array;
|
|
436
|
-
}
|
|
437
|
-
let response = undefined;
|
|
438
|
-
response = await client.call('post', apiPath, {
|
|
439
|
-
'content-type': 'application/json',
|
|
440
|
-
}, payload);
|
|
441
|
-
if (parseOutput) {
|
|
442
|
-
(0, parser_1.parse)(response);
|
|
443
|
-
}
|
|
444
|
-
return response;
|
|
445
|
-
};
|
|
446
|
-
exports.databasesCreateBooleanAttribute = databasesCreateBooleanAttribute;
|
|
447
|
-
const databasesUpdateBooleanAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
448
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
449
|
-
sdk;
|
|
450
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
451
|
-
let payload = {};
|
|
452
|
-
if (typeof required !== 'undefined') {
|
|
453
|
-
payload['required'] = required;
|
|
454
|
-
}
|
|
455
|
-
if (typeof xdefault !== 'undefined') {
|
|
456
|
-
payload['default'] = xdefault;
|
|
457
|
-
}
|
|
458
|
-
if (typeof newKey !== 'undefined') {
|
|
459
|
-
payload['newKey'] = newKey;
|
|
460
|
-
}
|
|
461
|
-
let response = undefined;
|
|
462
|
-
response = await client.call('patch', apiPath, {
|
|
463
|
-
'content-type': 'application/json',
|
|
464
|
-
}, payload);
|
|
465
|
-
if (parseOutput) {
|
|
466
|
-
(0, parser_1.parse)(response);
|
|
467
|
-
}
|
|
468
|
-
return response;
|
|
469
|
-
};
|
|
470
|
-
exports.databasesUpdateBooleanAttribute = databasesUpdateBooleanAttribute;
|
|
471
|
-
const databasesCreateDatetimeAttribute = async ({ databaseId, collectionId, key, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
472
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
473
|
-
sdk;
|
|
474
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
475
|
-
let payload = {};
|
|
476
|
-
if (typeof key !== 'undefined') {
|
|
477
|
-
payload['key'] = key;
|
|
478
|
-
}
|
|
479
|
-
if (typeof required !== 'undefined') {
|
|
480
|
-
payload['required'] = required;
|
|
481
|
-
}
|
|
482
|
-
if (typeof xdefault !== 'undefined') {
|
|
483
|
-
payload['default'] = xdefault;
|
|
484
|
-
}
|
|
485
|
-
if (typeof array !== 'undefined') {
|
|
486
|
-
payload['array'] = array;
|
|
487
|
-
}
|
|
488
|
-
let response = undefined;
|
|
489
|
-
response = await client.call('post', apiPath, {
|
|
490
|
-
'content-type': 'application/json',
|
|
491
|
-
}, payload);
|
|
492
|
-
if (parseOutput) {
|
|
493
|
-
(0, parser_1.parse)(response);
|
|
494
|
-
}
|
|
495
|
-
return response;
|
|
496
|
-
};
|
|
497
|
-
exports.databasesCreateDatetimeAttribute = databasesCreateDatetimeAttribute;
|
|
498
|
-
const databasesUpdateDatetimeAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
499
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
500
|
-
sdk;
|
|
501
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
502
|
-
let payload = {};
|
|
503
|
-
if (typeof required !== 'undefined') {
|
|
504
|
-
payload['required'] = required;
|
|
505
|
-
}
|
|
506
|
-
if (typeof xdefault !== 'undefined') {
|
|
507
|
-
payload['default'] = xdefault;
|
|
508
|
-
}
|
|
509
|
-
if (typeof newKey !== 'undefined') {
|
|
510
|
-
payload['newKey'] = newKey;
|
|
511
|
-
}
|
|
512
|
-
let response = undefined;
|
|
513
|
-
response = await client.call('patch', apiPath, {
|
|
514
|
-
'content-type': 'application/json',
|
|
515
|
-
}, payload);
|
|
516
|
-
if (parseOutput) {
|
|
517
|
-
(0, parser_1.parse)(response);
|
|
518
|
-
}
|
|
519
|
-
return response;
|
|
520
|
-
};
|
|
521
|
-
exports.databasesUpdateDatetimeAttribute = databasesUpdateDatetimeAttribute;
|
|
522
|
-
const databasesCreateEmailAttribute = async ({ databaseId, collectionId, key, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
523
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
524
|
-
sdk;
|
|
525
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
526
|
-
let payload = {};
|
|
527
|
-
if (typeof key !== 'undefined') {
|
|
528
|
-
payload['key'] = key;
|
|
529
|
-
}
|
|
530
|
-
if (typeof required !== 'undefined') {
|
|
531
|
-
payload['required'] = required;
|
|
532
|
-
}
|
|
533
|
-
if (typeof xdefault !== 'undefined') {
|
|
534
|
-
payload['default'] = xdefault;
|
|
535
|
-
}
|
|
536
|
-
if (typeof array !== 'undefined') {
|
|
537
|
-
payload['array'] = array;
|
|
538
|
-
}
|
|
539
|
-
let response = undefined;
|
|
540
|
-
response = await client.call('post', apiPath, {
|
|
541
|
-
'content-type': 'application/json',
|
|
542
|
-
}, payload);
|
|
543
|
-
if (parseOutput) {
|
|
544
|
-
(0, parser_1.parse)(response);
|
|
545
|
-
}
|
|
546
|
-
return response;
|
|
547
|
-
};
|
|
548
|
-
exports.databasesCreateEmailAttribute = databasesCreateEmailAttribute;
|
|
549
|
-
const databasesUpdateEmailAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
550
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
551
|
-
sdk;
|
|
552
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
553
|
-
let payload = {};
|
|
554
|
-
if (typeof required !== 'undefined') {
|
|
555
|
-
payload['required'] = required;
|
|
556
|
-
}
|
|
557
|
-
if (typeof xdefault !== 'undefined') {
|
|
558
|
-
payload['default'] = xdefault;
|
|
559
|
-
}
|
|
560
|
-
if (typeof newKey !== 'undefined') {
|
|
561
|
-
payload['newKey'] = newKey;
|
|
562
|
-
}
|
|
563
|
-
let response = undefined;
|
|
564
|
-
response = await client.call('patch', apiPath, {
|
|
565
|
-
'content-type': 'application/json',
|
|
566
|
-
}, payload);
|
|
567
|
-
if (parseOutput) {
|
|
568
|
-
(0, parser_1.parse)(response);
|
|
569
|
-
}
|
|
570
|
-
return response;
|
|
571
|
-
};
|
|
572
|
-
exports.databasesUpdateEmailAttribute = databasesUpdateEmailAttribute;
|
|
573
|
-
const databasesCreateEnumAttribute = async ({ databaseId, collectionId, key, elements, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
574
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
575
|
-
sdk;
|
|
576
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
577
|
-
let payload = {};
|
|
578
|
-
if (typeof key !== 'undefined') {
|
|
579
|
-
payload['key'] = key;
|
|
580
|
-
}
|
|
581
|
-
elements = elements === true ? [] : elements;
|
|
582
|
-
if (typeof elements !== 'undefined') {
|
|
583
|
-
payload['elements'] = elements;
|
|
584
|
-
}
|
|
585
|
-
if (typeof required !== 'undefined') {
|
|
586
|
-
payload['required'] = required;
|
|
587
|
-
}
|
|
588
|
-
if (typeof xdefault !== 'undefined') {
|
|
589
|
-
payload['default'] = xdefault;
|
|
590
|
-
}
|
|
591
|
-
if (typeof array !== 'undefined') {
|
|
592
|
-
payload['array'] = array;
|
|
593
|
-
}
|
|
594
|
-
let response = undefined;
|
|
595
|
-
response = await client.call('post', apiPath, {
|
|
596
|
-
'content-type': 'application/json',
|
|
597
|
-
}, payload);
|
|
598
|
-
if (parseOutput) {
|
|
599
|
-
(0, parser_1.parse)(response);
|
|
600
|
-
}
|
|
601
|
-
return response;
|
|
602
|
-
};
|
|
603
|
-
exports.databasesCreateEnumAttribute = databasesCreateEnumAttribute;
|
|
604
|
-
const databasesUpdateEnumAttribute = async ({ databaseId, collectionId, key, elements, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
605
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
606
|
-
sdk;
|
|
607
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
608
|
-
let payload = {};
|
|
609
|
-
elements = elements === true ? [] : elements;
|
|
610
|
-
if (typeof elements !== 'undefined') {
|
|
611
|
-
payload['elements'] = elements;
|
|
612
|
-
}
|
|
613
|
-
if (typeof required !== 'undefined') {
|
|
614
|
-
payload['required'] = required;
|
|
615
|
-
}
|
|
616
|
-
if (typeof xdefault !== 'undefined') {
|
|
617
|
-
payload['default'] = xdefault;
|
|
618
|
-
}
|
|
619
|
-
if (typeof newKey !== 'undefined') {
|
|
620
|
-
payload['newKey'] = newKey;
|
|
621
|
-
}
|
|
622
|
-
let response = undefined;
|
|
623
|
-
response = await client.call('patch', apiPath, {
|
|
624
|
-
'content-type': 'application/json',
|
|
625
|
-
}, payload);
|
|
626
|
-
if (parseOutput) {
|
|
627
|
-
(0, parser_1.parse)(response);
|
|
628
|
-
}
|
|
629
|
-
return response;
|
|
630
|
-
};
|
|
631
|
-
exports.databasesUpdateEnumAttribute = databasesUpdateEnumAttribute;
|
|
632
|
-
const databasesCreateFloatAttribute = async ({ databaseId, collectionId, key, required, min, max, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
633
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
634
|
-
sdk;
|
|
635
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
636
|
-
let payload = {};
|
|
637
|
-
if (typeof key !== 'undefined') {
|
|
638
|
-
payload['key'] = key;
|
|
639
|
-
}
|
|
640
|
-
if (typeof required !== 'undefined') {
|
|
641
|
-
payload['required'] = required;
|
|
642
|
-
}
|
|
643
|
-
if (typeof min !== 'undefined') {
|
|
644
|
-
payload['min'] = min;
|
|
645
|
-
}
|
|
646
|
-
if (typeof max !== 'undefined') {
|
|
647
|
-
payload['max'] = max;
|
|
648
|
-
}
|
|
649
|
-
if (typeof xdefault !== 'undefined') {
|
|
650
|
-
payload['default'] = xdefault;
|
|
651
|
-
}
|
|
652
|
-
if (typeof array !== 'undefined') {
|
|
653
|
-
payload['array'] = array;
|
|
654
|
-
}
|
|
655
|
-
let response = undefined;
|
|
656
|
-
response = await client.call('post', apiPath, {
|
|
657
|
-
'content-type': 'application/json',
|
|
658
|
-
}, payload);
|
|
659
|
-
if (parseOutput) {
|
|
660
|
-
(0, parser_1.parse)(response);
|
|
661
|
-
}
|
|
662
|
-
return response;
|
|
663
|
-
};
|
|
664
|
-
exports.databasesCreateFloatAttribute = databasesCreateFloatAttribute;
|
|
665
|
-
const databasesUpdateFloatAttribute = async ({ databaseId, collectionId, key, required, xdefault, min, max, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
666
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
667
|
-
sdk;
|
|
668
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
669
|
-
let payload = {};
|
|
670
|
-
if (typeof required !== 'undefined') {
|
|
671
|
-
payload['required'] = required;
|
|
672
|
-
}
|
|
673
|
-
if (typeof min !== 'undefined') {
|
|
674
|
-
payload['min'] = min;
|
|
675
|
-
}
|
|
676
|
-
if (typeof max !== 'undefined') {
|
|
677
|
-
payload['max'] = max;
|
|
678
|
-
}
|
|
679
|
-
if (typeof xdefault !== 'undefined') {
|
|
680
|
-
payload['default'] = xdefault;
|
|
681
|
-
}
|
|
682
|
-
if (typeof newKey !== 'undefined') {
|
|
683
|
-
payload['newKey'] = newKey;
|
|
684
|
-
}
|
|
685
|
-
let response = undefined;
|
|
686
|
-
response = await client.call('patch', apiPath, {
|
|
687
|
-
'content-type': 'application/json',
|
|
688
|
-
}, payload);
|
|
689
|
-
if (parseOutput) {
|
|
690
|
-
(0, parser_1.parse)(response);
|
|
691
|
-
}
|
|
692
|
-
return response;
|
|
693
|
-
};
|
|
694
|
-
exports.databasesUpdateFloatAttribute = databasesUpdateFloatAttribute;
|
|
695
|
-
const databasesCreateIntegerAttribute = async ({ databaseId, collectionId, key, required, min, max, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
696
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
697
|
-
sdk;
|
|
698
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
699
|
-
let payload = {};
|
|
700
|
-
if (typeof key !== 'undefined') {
|
|
701
|
-
payload['key'] = key;
|
|
702
|
-
}
|
|
703
|
-
if (typeof required !== 'undefined') {
|
|
704
|
-
payload['required'] = required;
|
|
705
|
-
}
|
|
706
|
-
if (typeof min !== 'undefined') {
|
|
707
|
-
payload['min'] = min;
|
|
708
|
-
}
|
|
709
|
-
if (typeof max !== 'undefined') {
|
|
710
|
-
payload['max'] = max;
|
|
711
|
-
}
|
|
712
|
-
if (typeof xdefault !== 'undefined') {
|
|
713
|
-
payload['default'] = xdefault;
|
|
714
|
-
}
|
|
715
|
-
if (typeof array !== 'undefined') {
|
|
716
|
-
payload['array'] = array;
|
|
717
|
-
}
|
|
718
|
-
let response = undefined;
|
|
719
|
-
response = await client.call('post', apiPath, {
|
|
720
|
-
'content-type': 'application/json',
|
|
721
|
-
}, payload);
|
|
722
|
-
if (parseOutput) {
|
|
723
|
-
(0, parser_1.parse)(response);
|
|
724
|
-
}
|
|
725
|
-
return response;
|
|
726
|
-
};
|
|
727
|
-
exports.databasesCreateIntegerAttribute = databasesCreateIntegerAttribute;
|
|
728
|
-
const databasesUpdateIntegerAttribute = async ({ databaseId, collectionId, key, required, xdefault, min, max, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
729
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
730
|
-
sdk;
|
|
731
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
732
|
-
let payload = {};
|
|
733
|
-
if (typeof required !== 'undefined') {
|
|
734
|
-
payload['required'] = required;
|
|
735
|
-
}
|
|
736
|
-
if (typeof min !== 'undefined') {
|
|
737
|
-
payload['min'] = min;
|
|
738
|
-
}
|
|
739
|
-
if (typeof max !== 'undefined') {
|
|
740
|
-
payload['max'] = max;
|
|
741
|
-
}
|
|
742
|
-
if (typeof xdefault !== 'undefined') {
|
|
743
|
-
payload['default'] = xdefault;
|
|
744
|
-
}
|
|
745
|
-
if (typeof newKey !== 'undefined') {
|
|
746
|
-
payload['newKey'] = newKey;
|
|
747
|
-
}
|
|
748
|
-
let response = undefined;
|
|
749
|
-
response = await client.call('patch', apiPath, {
|
|
750
|
-
'content-type': 'application/json',
|
|
751
|
-
}, payload);
|
|
752
|
-
if (parseOutput) {
|
|
753
|
-
(0, parser_1.parse)(response);
|
|
754
|
-
}
|
|
755
|
-
return response;
|
|
756
|
-
};
|
|
757
|
-
exports.databasesUpdateIntegerAttribute = databasesUpdateIntegerAttribute;
|
|
758
|
-
const databasesCreateIpAttribute = async ({ databaseId, collectionId, key, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
759
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
760
|
-
sdk;
|
|
761
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
762
|
-
let payload = {};
|
|
763
|
-
if (typeof key !== 'undefined') {
|
|
764
|
-
payload['key'] = key;
|
|
765
|
-
}
|
|
766
|
-
if (typeof required !== 'undefined') {
|
|
767
|
-
payload['required'] = required;
|
|
768
|
-
}
|
|
769
|
-
if (typeof xdefault !== 'undefined') {
|
|
770
|
-
payload['default'] = xdefault;
|
|
771
|
-
}
|
|
772
|
-
if (typeof array !== 'undefined') {
|
|
773
|
-
payload['array'] = array;
|
|
774
|
-
}
|
|
775
|
-
let response = undefined;
|
|
776
|
-
response = await client.call('post', apiPath, {
|
|
777
|
-
'content-type': 'application/json',
|
|
778
|
-
}, payload);
|
|
779
|
-
if (parseOutput) {
|
|
780
|
-
(0, parser_1.parse)(response);
|
|
781
|
-
}
|
|
782
|
-
return response;
|
|
783
|
-
};
|
|
784
|
-
exports.databasesCreateIpAttribute = databasesCreateIpAttribute;
|
|
785
|
-
const databasesUpdateIpAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
786
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
787
|
-
sdk;
|
|
788
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
789
|
-
let payload = {};
|
|
790
|
-
if (typeof required !== 'undefined') {
|
|
791
|
-
payload['required'] = required;
|
|
792
|
-
}
|
|
793
|
-
if (typeof xdefault !== 'undefined') {
|
|
794
|
-
payload['default'] = xdefault;
|
|
795
|
-
}
|
|
796
|
-
if (typeof newKey !== 'undefined') {
|
|
797
|
-
payload['newKey'] = newKey;
|
|
798
|
-
}
|
|
799
|
-
let response = undefined;
|
|
800
|
-
response = await client.call('patch', apiPath, {
|
|
801
|
-
'content-type': 'application/json',
|
|
802
|
-
}, payload);
|
|
803
|
-
if (parseOutput) {
|
|
804
|
-
(0, parser_1.parse)(response);
|
|
805
|
-
}
|
|
806
|
-
return response;
|
|
807
|
-
};
|
|
808
|
-
exports.databasesUpdateIpAttribute = databasesUpdateIpAttribute;
|
|
809
|
-
const databasesCreateLineAttribute = async ({ databaseId, collectionId, key, required, xdefault, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
810
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
811
|
-
sdk;
|
|
812
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/line'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
813
|
-
let payload = {};
|
|
814
|
-
if (typeof key !== 'undefined') {
|
|
815
|
-
payload['key'] = key;
|
|
816
|
-
}
|
|
817
|
-
if (typeof required !== 'undefined') {
|
|
818
|
-
payload['required'] = required;
|
|
819
|
-
}
|
|
820
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
821
|
-
if (typeof xdefault !== 'undefined') {
|
|
822
|
-
payload['default'] = xdefault;
|
|
823
|
-
}
|
|
824
|
-
let response = undefined;
|
|
825
|
-
response = await client.call('post', apiPath, {
|
|
826
|
-
'content-type': 'application/json',
|
|
827
|
-
}, payload);
|
|
828
|
-
if (parseOutput) {
|
|
829
|
-
(0, parser_1.parse)(response);
|
|
830
|
-
}
|
|
831
|
-
return response;
|
|
832
|
-
};
|
|
833
|
-
exports.databasesCreateLineAttribute = databasesCreateLineAttribute;
|
|
834
|
-
const databasesUpdateLineAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
835
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
836
|
-
sdk;
|
|
837
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/line/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
838
|
-
let payload = {};
|
|
839
|
-
if (typeof required !== 'undefined') {
|
|
840
|
-
payload['required'] = required;
|
|
841
|
-
}
|
|
842
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
843
|
-
if (typeof xdefault !== 'undefined') {
|
|
844
|
-
payload['default'] = xdefault;
|
|
845
|
-
}
|
|
846
|
-
if (typeof newKey !== 'undefined') {
|
|
847
|
-
payload['newKey'] = newKey;
|
|
848
|
-
}
|
|
849
|
-
let response = undefined;
|
|
850
|
-
response = await client.call('patch', apiPath, {
|
|
851
|
-
'content-type': 'application/json',
|
|
852
|
-
}, payload);
|
|
853
|
-
if (parseOutput) {
|
|
854
|
-
(0, parser_1.parse)(response);
|
|
855
|
-
}
|
|
856
|
-
return response;
|
|
857
|
-
};
|
|
858
|
-
exports.databasesUpdateLineAttribute = databasesUpdateLineAttribute;
|
|
859
|
-
const databasesCreatePointAttribute = async ({ databaseId, collectionId, key, required, xdefault, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
860
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
861
|
-
sdk;
|
|
862
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
863
|
-
let payload = {};
|
|
864
|
-
if (typeof key !== 'undefined') {
|
|
865
|
-
payload['key'] = key;
|
|
866
|
-
}
|
|
867
|
-
if (typeof required !== 'undefined') {
|
|
868
|
-
payload['required'] = required;
|
|
869
|
-
}
|
|
870
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
871
|
-
if (typeof xdefault !== 'undefined') {
|
|
872
|
-
payload['default'] = xdefault;
|
|
873
|
-
}
|
|
874
|
-
let response = undefined;
|
|
875
|
-
response = await client.call('post', apiPath, {
|
|
876
|
-
'content-type': 'application/json',
|
|
877
|
-
}, payload);
|
|
878
|
-
if (parseOutput) {
|
|
879
|
-
(0, parser_1.parse)(response);
|
|
880
|
-
}
|
|
881
|
-
return response;
|
|
882
|
-
};
|
|
883
|
-
exports.databasesCreatePointAttribute = databasesCreatePointAttribute;
|
|
884
|
-
const databasesUpdatePointAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
885
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
886
|
-
sdk;
|
|
887
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
888
|
-
let payload = {};
|
|
889
|
-
if (typeof required !== 'undefined') {
|
|
890
|
-
payload['required'] = required;
|
|
891
|
-
}
|
|
892
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
893
|
-
if (typeof xdefault !== 'undefined') {
|
|
894
|
-
payload['default'] = xdefault;
|
|
895
|
-
}
|
|
896
|
-
if (typeof newKey !== 'undefined') {
|
|
897
|
-
payload['newKey'] = newKey;
|
|
898
|
-
}
|
|
899
|
-
let response = undefined;
|
|
900
|
-
response = await client.call('patch', apiPath, {
|
|
901
|
-
'content-type': 'application/json',
|
|
902
|
-
}, payload);
|
|
903
|
-
if (parseOutput) {
|
|
904
|
-
(0, parser_1.parse)(response);
|
|
905
|
-
}
|
|
906
|
-
return response;
|
|
907
|
-
};
|
|
908
|
-
exports.databasesUpdatePointAttribute = databasesUpdatePointAttribute;
|
|
909
|
-
const databasesCreatePolygonAttribute = async ({ databaseId, collectionId, key, required, xdefault, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
910
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
911
|
-
sdk;
|
|
912
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
913
|
-
let payload = {};
|
|
914
|
-
if (typeof key !== 'undefined') {
|
|
915
|
-
payload['key'] = key;
|
|
916
|
-
}
|
|
917
|
-
if (typeof required !== 'undefined') {
|
|
918
|
-
payload['required'] = required;
|
|
919
|
-
}
|
|
920
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
921
|
-
if (typeof xdefault !== 'undefined') {
|
|
922
|
-
payload['default'] = xdefault;
|
|
923
|
-
}
|
|
924
|
-
let response = undefined;
|
|
925
|
-
response = await client.call('post', apiPath, {
|
|
926
|
-
'content-type': 'application/json',
|
|
927
|
-
}, payload);
|
|
928
|
-
if (parseOutput) {
|
|
929
|
-
(0, parser_1.parse)(response);
|
|
930
|
-
}
|
|
931
|
-
return response;
|
|
932
|
-
};
|
|
933
|
-
exports.databasesCreatePolygonAttribute = databasesCreatePolygonAttribute;
|
|
934
|
-
const databasesUpdatePolygonAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
935
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
936
|
-
sdk;
|
|
937
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
938
|
-
let payload = {};
|
|
939
|
-
if (typeof required !== 'undefined') {
|
|
940
|
-
payload['required'] = required;
|
|
941
|
-
}
|
|
942
|
-
xdefault = xdefault === true ? [] : xdefault;
|
|
943
|
-
if (typeof xdefault !== 'undefined') {
|
|
944
|
-
payload['default'] = xdefault;
|
|
945
|
-
}
|
|
946
|
-
if (typeof newKey !== 'undefined') {
|
|
947
|
-
payload['newKey'] = newKey;
|
|
948
|
-
}
|
|
949
|
-
let response = undefined;
|
|
950
|
-
response = await client.call('patch', apiPath, {
|
|
951
|
-
'content-type': 'application/json',
|
|
952
|
-
}, payload);
|
|
953
|
-
if (parseOutput) {
|
|
954
|
-
(0, parser_1.parse)(response);
|
|
955
|
-
}
|
|
956
|
-
return response;
|
|
957
|
-
};
|
|
958
|
-
exports.databasesUpdatePolygonAttribute = databasesUpdatePolygonAttribute;
|
|
959
|
-
const databasesCreateRelationshipAttribute = async ({ databaseId, collectionId, relatedCollectionId, type, twoWay, key, twoWayKey, onDelete, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
960
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
961
|
-
sdk;
|
|
962
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
963
|
-
let payload = {};
|
|
964
|
-
if (typeof relatedCollectionId !== 'undefined') {
|
|
965
|
-
payload['relatedCollectionId'] = relatedCollectionId;
|
|
966
|
-
}
|
|
967
|
-
if (typeof type !== 'undefined') {
|
|
968
|
-
payload['type'] = type;
|
|
969
|
-
}
|
|
970
|
-
if (typeof twoWay !== 'undefined') {
|
|
971
|
-
payload['twoWay'] = twoWay;
|
|
972
|
-
}
|
|
973
|
-
if (typeof key !== 'undefined') {
|
|
974
|
-
payload['key'] = key;
|
|
975
|
-
}
|
|
976
|
-
if (typeof twoWayKey !== 'undefined') {
|
|
977
|
-
payload['twoWayKey'] = twoWayKey;
|
|
978
|
-
}
|
|
979
|
-
if (typeof onDelete !== 'undefined') {
|
|
980
|
-
payload['onDelete'] = onDelete;
|
|
981
|
-
}
|
|
982
|
-
let response = undefined;
|
|
983
|
-
response = await client.call('post', apiPath, {
|
|
984
|
-
'content-type': 'application/json',
|
|
985
|
-
}, payload);
|
|
986
|
-
if (parseOutput) {
|
|
987
|
-
(0, parser_1.parse)(response);
|
|
988
|
-
}
|
|
989
|
-
return response;
|
|
990
|
-
};
|
|
991
|
-
exports.databasesCreateRelationshipAttribute = databasesCreateRelationshipAttribute;
|
|
992
|
-
const databasesCreateStringAttribute = async ({ databaseId, collectionId, key, size, required, xdefault, array, encrypt, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
993
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
994
|
-
sdk;
|
|
995
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
996
|
-
let payload = {};
|
|
997
|
-
if (typeof key !== 'undefined') {
|
|
998
|
-
payload['key'] = key;
|
|
999
|
-
}
|
|
1000
|
-
if (typeof size !== 'undefined') {
|
|
1001
|
-
payload['size'] = size;
|
|
1002
|
-
}
|
|
1003
|
-
if (typeof required !== 'undefined') {
|
|
1004
|
-
payload['required'] = required;
|
|
1005
|
-
}
|
|
1006
|
-
if (typeof xdefault !== 'undefined') {
|
|
1007
|
-
payload['default'] = xdefault;
|
|
1008
|
-
}
|
|
1009
|
-
if (typeof array !== 'undefined') {
|
|
1010
|
-
payload['array'] = array;
|
|
1011
|
-
}
|
|
1012
|
-
if (typeof encrypt !== 'undefined') {
|
|
1013
|
-
payload['encrypt'] = encrypt;
|
|
1014
|
-
}
|
|
1015
|
-
let response = undefined;
|
|
1016
|
-
response = await client.call('post', apiPath, {
|
|
1017
|
-
'content-type': 'application/json',
|
|
1018
|
-
}, payload);
|
|
1019
|
-
if (parseOutput) {
|
|
1020
|
-
(0, parser_1.parse)(response);
|
|
1021
|
-
}
|
|
1022
|
-
return response;
|
|
1023
|
-
};
|
|
1024
|
-
exports.databasesCreateStringAttribute = databasesCreateStringAttribute;
|
|
1025
|
-
const databasesUpdateStringAttribute = async ({ databaseId, collectionId, key, required, xdefault, size, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1026
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1027
|
-
sdk;
|
|
1028
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1029
|
-
let payload = {};
|
|
1030
|
-
if (typeof required !== 'undefined') {
|
|
1031
|
-
payload['required'] = required;
|
|
1032
|
-
}
|
|
1033
|
-
if (typeof xdefault !== 'undefined') {
|
|
1034
|
-
payload['default'] = xdefault;
|
|
1035
|
-
}
|
|
1036
|
-
if (typeof size !== 'undefined') {
|
|
1037
|
-
payload['size'] = size;
|
|
1038
|
-
}
|
|
1039
|
-
if (typeof newKey !== 'undefined') {
|
|
1040
|
-
payload['newKey'] = newKey;
|
|
1041
|
-
}
|
|
1042
|
-
let response = undefined;
|
|
1043
|
-
response = await client.call('patch', apiPath, {
|
|
1044
|
-
'content-type': 'application/json',
|
|
1045
|
-
}, payload);
|
|
1046
|
-
if (parseOutput) {
|
|
1047
|
-
(0, parser_1.parse)(response);
|
|
1048
|
-
}
|
|
1049
|
-
return response;
|
|
1050
|
-
};
|
|
1051
|
-
exports.databasesUpdateStringAttribute = databasesUpdateStringAttribute;
|
|
1052
|
-
const databasesCreateUrlAttribute = async ({ databaseId, collectionId, key, required, xdefault, array, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1053
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1054
|
-
sdk;
|
|
1055
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1056
|
-
let payload = {};
|
|
1057
|
-
if (typeof key !== 'undefined') {
|
|
1058
|
-
payload['key'] = key;
|
|
1059
|
-
}
|
|
1060
|
-
if (typeof required !== 'undefined') {
|
|
1061
|
-
payload['required'] = required;
|
|
1062
|
-
}
|
|
1063
|
-
if (typeof xdefault !== 'undefined') {
|
|
1064
|
-
payload['default'] = xdefault;
|
|
1065
|
-
}
|
|
1066
|
-
if (typeof array !== 'undefined') {
|
|
1067
|
-
payload['array'] = array;
|
|
1068
|
-
}
|
|
1069
|
-
let response = undefined;
|
|
1070
|
-
response = await client.call('post', apiPath, {
|
|
1071
|
-
'content-type': 'application/json',
|
|
1072
|
-
}, payload);
|
|
1073
|
-
if (parseOutput) {
|
|
1074
|
-
(0, parser_1.parse)(response);
|
|
1075
|
-
}
|
|
1076
|
-
return response;
|
|
1077
|
-
};
|
|
1078
|
-
exports.databasesCreateUrlAttribute = databasesCreateUrlAttribute;
|
|
1079
|
-
const databasesUpdateUrlAttribute = async ({ databaseId, collectionId, key, required, xdefault, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1080
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1081
|
-
sdk;
|
|
1082
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1083
|
-
let payload = {};
|
|
1084
|
-
if (typeof required !== 'undefined') {
|
|
1085
|
-
payload['required'] = required;
|
|
1086
|
-
}
|
|
1087
|
-
if (typeof xdefault !== 'undefined') {
|
|
1088
|
-
payload['default'] = xdefault;
|
|
1089
|
-
}
|
|
1090
|
-
if (typeof newKey !== 'undefined') {
|
|
1091
|
-
payload['newKey'] = newKey;
|
|
1092
|
-
}
|
|
1093
|
-
let response = undefined;
|
|
1094
|
-
response = await client.call('patch', apiPath, {
|
|
1095
|
-
'content-type': 'application/json',
|
|
1096
|
-
}, payload);
|
|
1097
|
-
if (parseOutput) {
|
|
1098
|
-
(0, parser_1.parse)(response);
|
|
1099
|
-
}
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
exports.databasesUpdateUrlAttribute = databasesUpdateUrlAttribute;
|
|
1103
|
-
const databasesGetAttribute = async ({ databaseId, collectionId, key, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1104
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1105
|
-
sdk;
|
|
1106
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1107
|
-
let payload = {};
|
|
1108
|
-
let response = undefined;
|
|
1109
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1110
|
-
if (parseOutput) {
|
|
1111
|
-
(0, parser_1.parse)(response);
|
|
1112
|
-
}
|
|
1113
|
-
return response;
|
|
1114
|
-
};
|
|
1115
|
-
exports.databasesGetAttribute = databasesGetAttribute;
|
|
1116
|
-
const databasesDeleteAttribute = async ({ databaseId, collectionId, key, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1117
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1118
|
-
sdk;
|
|
1119
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1120
|
-
let payload = {};
|
|
1121
|
-
let response = undefined;
|
|
1122
|
-
response = await client.call('delete', apiPath, {
|
|
1123
|
-
'content-type': 'application/json',
|
|
1124
|
-
}, payload);
|
|
1125
|
-
if (parseOutput) {
|
|
1126
|
-
(0, parser_1.parse)(response);
|
|
1127
|
-
}
|
|
1128
|
-
return response;
|
|
1129
|
-
};
|
|
1130
|
-
exports.databasesDeleteAttribute = databasesDeleteAttribute;
|
|
1131
|
-
const databasesUpdateRelationshipAttribute = async ({ databaseId, collectionId, key, onDelete, newKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1132
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1133
|
-
sdk;
|
|
1134
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1135
|
-
let payload = {};
|
|
1136
|
-
if (typeof onDelete !== 'undefined') {
|
|
1137
|
-
payload['onDelete'] = onDelete;
|
|
1138
|
-
}
|
|
1139
|
-
if (typeof newKey !== 'undefined') {
|
|
1140
|
-
payload['newKey'] = newKey;
|
|
1141
|
-
}
|
|
1142
|
-
let response = undefined;
|
|
1143
|
-
response = await client.call('patch', apiPath, {
|
|
1144
|
-
'content-type': 'application/json',
|
|
1145
|
-
}, payload);
|
|
1146
|
-
if (parseOutput) {
|
|
1147
|
-
(0, parser_1.parse)(response);
|
|
1148
|
-
}
|
|
1149
|
-
return response;
|
|
1150
|
-
};
|
|
1151
|
-
exports.databasesUpdateRelationshipAttribute = databasesUpdateRelationshipAttribute;
|
|
1152
|
-
const databasesListDocuments = async ({ databaseId, collectionId, queries, transactionId, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
1153
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1154
|
-
sdk;
|
|
1155
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1156
|
-
let payload = {};
|
|
1157
|
-
if (typeof queries !== 'undefined') {
|
|
1158
|
-
payload['queries'] = queries;
|
|
1159
|
-
}
|
|
1160
|
-
if (typeof transactionId !== 'undefined') {
|
|
1161
|
-
payload['transactionId'] = transactionId;
|
|
1162
|
-
}
|
|
1163
|
-
if (typeof total !== 'undefined') {
|
|
1164
|
-
payload['total'] = total;
|
|
1165
|
-
}
|
|
1166
|
-
let response = undefined;
|
|
1167
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1168
|
-
if (parseOutput) {
|
|
1169
|
-
if (showConsole) {
|
|
1170
|
-
(0, utils_1.showConsoleLink)('databases', 'listDocuments', databaseId, collectionId);
|
|
1171
|
-
}
|
|
1172
|
-
else {
|
|
1173
|
-
(0, parser_1.parse)(response);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
return response;
|
|
1177
|
-
};
|
|
1178
|
-
exports.databasesListDocuments = databasesListDocuments;
|
|
1179
|
-
const databasesCreateDocument = async ({ databaseId, collectionId, documentId, data, permissions, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1180
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1181
|
-
sdk;
|
|
1182
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1183
|
-
let payload = {};
|
|
1184
|
-
if (typeof documentId !== 'undefined') {
|
|
1185
|
-
payload['documentId'] = documentId;
|
|
1186
|
-
}
|
|
1187
|
-
if (typeof data !== 'undefined') {
|
|
1188
|
-
payload['data'] = JSON.parse(data);
|
|
1189
|
-
}
|
|
1190
|
-
permissions = permissions === true ? [] : permissions;
|
|
1191
|
-
if (typeof permissions !== 'undefined') {
|
|
1192
|
-
payload['permissions'] = permissions;
|
|
1193
|
-
}
|
|
1194
|
-
if (typeof transactionId !== 'undefined') {
|
|
1195
|
-
payload['transactionId'] = transactionId;
|
|
1196
|
-
}
|
|
1197
|
-
let response = undefined;
|
|
1198
|
-
response = await client.call('post', apiPath, {
|
|
1199
|
-
'content-type': 'application/json',
|
|
1200
|
-
}, payload);
|
|
1201
|
-
if (parseOutput) {
|
|
1202
|
-
(0, parser_1.parse)(response);
|
|
1203
|
-
}
|
|
1204
|
-
return response;
|
|
1205
|
-
};
|
|
1206
|
-
exports.databasesCreateDocument = databasesCreateDocument;
|
|
1207
|
-
const databasesCreateDocuments = async ({ databaseId, collectionId, documents, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1208
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1209
|
-
sdk;
|
|
1210
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1211
|
-
let payload = {};
|
|
1212
|
-
documents = documents === true ? [] : documents;
|
|
1213
|
-
if (typeof documents !== 'undefined') {
|
|
1214
|
-
payload['documents'] = documents;
|
|
1215
|
-
}
|
|
1216
|
-
if (typeof transactionId !== 'undefined') {
|
|
1217
|
-
payload['transactionId'] = transactionId;
|
|
1218
|
-
}
|
|
1219
|
-
let response = undefined;
|
|
1220
|
-
response = await client.call('post', apiPath, {
|
|
1221
|
-
'content-type': 'application/json',
|
|
1222
|
-
}, payload);
|
|
1223
|
-
if (parseOutput) {
|
|
1224
|
-
(0, parser_1.parse)(response);
|
|
1225
|
-
}
|
|
1226
|
-
return response;
|
|
1227
|
-
};
|
|
1228
|
-
exports.databasesCreateDocuments = databasesCreateDocuments;
|
|
1229
|
-
const databasesUpsertDocuments = async ({ databaseId, collectionId, documents, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1230
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1231
|
-
sdk;
|
|
1232
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1233
|
-
let payload = {};
|
|
1234
|
-
documents = documents === true ? [] : documents;
|
|
1235
|
-
if (typeof documents !== 'undefined') {
|
|
1236
|
-
payload['documents'] = documents;
|
|
1237
|
-
}
|
|
1238
|
-
if (typeof transactionId !== 'undefined') {
|
|
1239
|
-
payload['transactionId'] = transactionId;
|
|
1240
|
-
}
|
|
1241
|
-
let response = undefined;
|
|
1242
|
-
response = await client.call('put', apiPath, {
|
|
1243
|
-
'content-type': 'application/json',
|
|
1244
|
-
}, payload);
|
|
1245
|
-
if (parseOutput) {
|
|
1246
|
-
(0, parser_1.parse)(response);
|
|
1247
|
-
}
|
|
1248
|
-
return response;
|
|
1249
|
-
};
|
|
1250
|
-
exports.databasesUpsertDocuments = databasesUpsertDocuments;
|
|
1251
|
-
const databasesUpdateDocuments = async ({ databaseId, collectionId, data, queries, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1252
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1253
|
-
sdk;
|
|
1254
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1255
|
-
let payload = {};
|
|
1256
|
-
if (typeof data !== 'undefined') {
|
|
1257
|
-
payload['data'] = JSON.parse(data);
|
|
1258
|
-
}
|
|
1259
|
-
queries = queries === true ? [] : queries;
|
|
1260
|
-
if (typeof queries !== 'undefined') {
|
|
1261
|
-
payload['queries'] = queries;
|
|
1262
|
-
}
|
|
1263
|
-
if (typeof transactionId !== 'undefined') {
|
|
1264
|
-
payload['transactionId'] = transactionId;
|
|
1265
|
-
}
|
|
1266
|
-
let response = undefined;
|
|
1267
|
-
response = await client.call('patch', apiPath, {
|
|
1268
|
-
'content-type': 'application/json',
|
|
1269
|
-
}, payload);
|
|
1270
|
-
if (parseOutput) {
|
|
1271
|
-
(0, parser_1.parse)(response);
|
|
1272
|
-
}
|
|
1273
|
-
return response;
|
|
1274
|
-
};
|
|
1275
|
-
exports.databasesUpdateDocuments = databasesUpdateDocuments;
|
|
1276
|
-
const databasesDeleteDocuments = async ({ databaseId, collectionId, queries, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1277
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1278
|
-
sdk;
|
|
1279
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1280
|
-
let payload = {};
|
|
1281
|
-
queries = queries === true ? [] : queries;
|
|
1282
|
-
if (typeof queries !== 'undefined') {
|
|
1283
|
-
payload['queries'] = queries;
|
|
1284
|
-
}
|
|
1285
|
-
if (typeof transactionId !== 'undefined') {
|
|
1286
|
-
payload['transactionId'] = transactionId;
|
|
1287
|
-
}
|
|
1288
|
-
let response = undefined;
|
|
1289
|
-
response = await client.call('delete', apiPath, {
|
|
1290
|
-
'content-type': 'application/json',
|
|
1291
|
-
}, payload);
|
|
1292
|
-
if (parseOutput) {
|
|
1293
|
-
(0, parser_1.parse)(response);
|
|
1294
|
-
}
|
|
1295
|
-
return response;
|
|
1296
|
-
};
|
|
1297
|
-
exports.databasesDeleteDocuments = databasesDeleteDocuments;
|
|
1298
|
-
const databasesGetDocument = async ({ databaseId, collectionId, documentId, queries, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
1299
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1300
|
-
sdk;
|
|
1301
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
1302
|
-
let payload = {};
|
|
1303
|
-
if (typeof queries !== 'undefined') {
|
|
1304
|
-
payload['queries'] = queries;
|
|
1305
|
-
}
|
|
1306
|
-
if (typeof transactionId !== 'undefined') {
|
|
1307
|
-
payload['transactionId'] = transactionId;
|
|
1308
|
-
}
|
|
1309
|
-
let response = undefined;
|
|
1310
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1311
|
-
if (parseOutput) {
|
|
1312
|
-
if (showConsole) {
|
|
1313
|
-
(0, utils_1.showConsoleLink)('databases', 'getDocument', databaseId, collectionId, documentId);
|
|
1314
|
-
}
|
|
1315
|
-
else {
|
|
1316
|
-
(0, parser_1.parse)(response);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
return response;
|
|
1320
|
-
};
|
|
1321
|
-
exports.databasesGetDocument = databasesGetDocument;
|
|
1322
|
-
const databasesUpsertDocument = async ({ databaseId, collectionId, documentId, data, permissions, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1323
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1324
|
-
sdk;
|
|
1325
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
1326
|
-
let payload = {};
|
|
1327
|
-
if (typeof data !== 'undefined') {
|
|
1328
|
-
payload['data'] = JSON.parse(data);
|
|
1329
|
-
}
|
|
1330
|
-
permissions = permissions === true ? [] : permissions;
|
|
1331
|
-
if (typeof permissions !== 'undefined') {
|
|
1332
|
-
payload['permissions'] = permissions;
|
|
1333
|
-
}
|
|
1334
|
-
if (typeof transactionId !== 'undefined') {
|
|
1335
|
-
payload['transactionId'] = transactionId;
|
|
1336
|
-
}
|
|
1337
|
-
let response = undefined;
|
|
1338
|
-
response = await client.call('put', apiPath, {
|
|
1339
|
-
'content-type': 'application/json',
|
|
1340
|
-
}, payload);
|
|
1341
|
-
if (parseOutput) {
|
|
1342
|
-
(0, parser_1.parse)(response);
|
|
1343
|
-
}
|
|
1344
|
-
return response;
|
|
1345
|
-
};
|
|
1346
|
-
exports.databasesUpsertDocument = databasesUpsertDocument;
|
|
1347
|
-
const databasesUpdateDocument = async ({ databaseId, collectionId, documentId, data, permissions, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1348
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1349
|
-
sdk;
|
|
1350
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
1351
|
-
let payload = {};
|
|
1352
|
-
if (typeof data !== 'undefined') {
|
|
1353
|
-
payload['data'] = JSON.parse(data);
|
|
1354
|
-
}
|
|
1355
|
-
permissions = permissions === true ? [] : permissions;
|
|
1356
|
-
if (typeof permissions !== 'undefined') {
|
|
1357
|
-
payload['permissions'] = permissions;
|
|
1358
|
-
}
|
|
1359
|
-
if (typeof transactionId !== 'undefined') {
|
|
1360
|
-
payload['transactionId'] = transactionId;
|
|
1361
|
-
}
|
|
1362
|
-
let response = undefined;
|
|
1363
|
-
response = await client.call('patch', apiPath, {
|
|
1364
|
-
'content-type': 'application/json',
|
|
1365
|
-
}, payload);
|
|
1366
|
-
if (parseOutput) {
|
|
1367
|
-
(0, parser_1.parse)(response);
|
|
1368
|
-
}
|
|
1369
|
-
return response;
|
|
1370
|
-
};
|
|
1371
|
-
exports.databasesUpdateDocument = databasesUpdateDocument;
|
|
1372
|
-
const databasesDeleteDocument = async ({ databaseId, collectionId, documentId, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1373
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1374
|
-
sdk;
|
|
1375
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
1376
|
-
let payload = {};
|
|
1377
|
-
if (typeof transactionId !== 'undefined') {
|
|
1378
|
-
payload['transactionId'] = transactionId;
|
|
1379
|
-
}
|
|
1380
|
-
let response = undefined;
|
|
1381
|
-
response = await client.call('delete', apiPath, {
|
|
1382
|
-
'content-type': 'application/json',
|
|
1383
|
-
}, payload);
|
|
1384
|
-
if (parseOutput) {
|
|
1385
|
-
(0, parser_1.parse)(response);
|
|
1386
|
-
}
|
|
1387
|
-
return response;
|
|
1388
|
-
};
|
|
1389
|
-
exports.databasesDeleteDocument = databasesDeleteDocument;
|
|
1390
|
-
const databasesListDocumentLogs = async ({ databaseId, collectionId, documentId, queries, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1391
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1392
|
-
sdk;
|
|
1393
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/logs'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
|
1394
|
-
let payload = {};
|
|
1395
|
-
if (typeof queries !== 'undefined') {
|
|
1396
|
-
payload['queries'] = queries;
|
|
1397
|
-
}
|
|
1398
|
-
let response = undefined;
|
|
1399
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1400
|
-
if (parseOutput) {
|
|
1401
|
-
(0, parser_1.parse)(response);
|
|
1402
|
-
}
|
|
1403
|
-
return response;
|
|
1404
|
-
};
|
|
1405
|
-
exports.databasesListDocumentLogs = databasesListDocumentLogs;
|
|
1406
|
-
const databasesDecrementDocumentAttribute = async ({ databaseId, collectionId, documentId, attribute, value, min, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1407
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1408
|
-
sdk;
|
|
1409
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/decrement'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId).replace('{attribute}', attribute);
|
|
1410
|
-
let payload = {};
|
|
1411
|
-
if (typeof value !== 'undefined') {
|
|
1412
|
-
payload['value'] = value;
|
|
1413
|
-
}
|
|
1414
|
-
if (typeof min !== 'undefined') {
|
|
1415
|
-
payload['min'] = min;
|
|
1416
|
-
}
|
|
1417
|
-
if (typeof transactionId !== 'undefined') {
|
|
1418
|
-
payload['transactionId'] = transactionId;
|
|
1419
|
-
}
|
|
1420
|
-
let response = undefined;
|
|
1421
|
-
response = await client.call('patch', apiPath, {
|
|
1422
|
-
'content-type': 'application/json',
|
|
1423
|
-
}, payload);
|
|
1424
|
-
if (parseOutput) {
|
|
1425
|
-
(0, parser_1.parse)(response);
|
|
1426
|
-
}
|
|
1427
|
-
return response;
|
|
1428
|
-
};
|
|
1429
|
-
exports.databasesDecrementDocumentAttribute = databasesDecrementDocumentAttribute;
|
|
1430
|
-
const databasesIncrementDocumentAttribute = async ({ databaseId, collectionId, documentId, attribute, value, max, transactionId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1431
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1432
|
-
sdk;
|
|
1433
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}/{attribute}/increment'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId).replace('{attribute}', attribute);
|
|
1434
|
-
let payload = {};
|
|
1435
|
-
if (typeof value !== 'undefined') {
|
|
1436
|
-
payload['value'] = value;
|
|
1437
|
-
}
|
|
1438
|
-
if (typeof max !== 'undefined') {
|
|
1439
|
-
payload['max'] = max;
|
|
1440
|
-
}
|
|
1441
|
-
if (typeof transactionId !== 'undefined') {
|
|
1442
|
-
payload['transactionId'] = transactionId;
|
|
1443
|
-
}
|
|
1444
|
-
let response = undefined;
|
|
1445
|
-
response = await client.call('patch', apiPath, {
|
|
1446
|
-
'content-type': 'application/json',
|
|
1447
|
-
}, payload);
|
|
1448
|
-
if (parseOutput) {
|
|
1449
|
-
(0, parser_1.parse)(response);
|
|
1450
|
-
}
|
|
1451
|
-
return response;
|
|
1452
|
-
};
|
|
1453
|
-
exports.databasesIncrementDocumentAttribute = databasesIncrementDocumentAttribute;
|
|
1454
|
-
const databasesListIndexes = async ({ databaseId, collectionId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
|
|
1455
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1456
|
-
sdk;
|
|
1457
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1458
|
-
let payload = {};
|
|
1459
|
-
if (typeof queries !== 'undefined') {
|
|
1460
|
-
payload['queries'] = queries;
|
|
1461
|
-
}
|
|
1462
|
-
if (typeof total !== 'undefined') {
|
|
1463
|
-
payload['total'] = total;
|
|
1464
|
-
}
|
|
1465
|
-
let response = undefined;
|
|
1466
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1467
|
-
if (parseOutput) {
|
|
1468
|
-
if (showConsole) {
|
|
1469
|
-
(0, utils_1.showConsoleLink)('databases', 'listIndexes', databaseId, collectionId);
|
|
1470
|
-
}
|
|
1471
|
-
else {
|
|
1472
|
-
(0, parser_1.parse)(response);
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
return response;
|
|
1476
|
-
};
|
|
1477
|
-
exports.databasesListIndexes = databasesListIndexes;
|
|
1478
|
-
const databasesCreateIndex = async ({ databaseId, collectionId, key, type, attributes, orders, lengths, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1479
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1480
|
-
sdk;
|
|
1481
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1482
|
-
let payload = {};
|
|
1483
|
-
if (typeof key !== 'undefined') {
|
|
1484
|
-
payload['key'] = key;
|
|
1485
|
-
}
|
|
1486
|
-
if (typeof type !== 'undefined') {
|
|
1487
|
-
payload['type'] = type;
|
|
1488
|
-
}
|
|
1489
|
-
attributes = attributes === true ? [] : attributes;
|
|
1490
|
-
if (typeof attributes !== 'undefined') {
|
|
1491
|
-
payload['attributes'] = attributes;
|
|
1492
|
-
}
|
|
1493
|
-
orders = orders === true ? [] : orders;
|
|
1494
|
-
if (typeof orders !== 'undefined') {
|
|
1495
|
-
payload['orders'] = orders;
|
|
1496
|
-
}
|
|
1497
|
-
lengths = lengths === true ? [] : lengths;
|
|
1498
|
-
if (typeof lengths !== 'undefined') {
|
|
1499
|
-
payload['lengths'] = lengths;
|
|
1500
|
-
}
|
|
1501
|
-
let response = undefined;
|
|
1502
|
-
response = await client.call('post', apiPath, {
|
|
1503
|
-
'content-type': 'application/json',
|
|
1504
|
-
}, payload);
|
|
1505
|
-
if (parseOutput) {
|
|
1506
|
-
(0, parser_1.parse)(response);
|
|
1507
|
-
}
|
|
1508
|
-
return response;
|
|
1509
|
-
};
|
|
1510
|
-
exports.databasesCreateIndex = databasesCreateIndex;
|
|
1511
|
-
const databasesGetIndex = async ({ databaseId, collectionId, key, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1512
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1513
|
-
sdk;
|
|
1514
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1515
|
-
let payload = {};
|
|
1516
|
-
let response = undefined;
|
|
1517
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1518
|
-
if (parseOutput) {
|
|
1519
|
-
(0, parser_1.parse)(response);
|
|
1520
|
-
}
|
|
1521
|
-
return response;
|
|
1522
|
-
};
|
|
1523
|
-
exports.databasesGetIndex = databasesGetIndex;
|
|
1524
|
-
const databasesDeleteIndex = async ({ databaseId, collectionId, key, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1525
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1526
|
-
sdk;
|
|
1527
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
1528
|
-
let payload = {};
|
|
1529
|
-
let response = undefined;
|
|
1530
|
-
response = await client.call('delete', apiPath, {
|
|
1531
|
-
'content-type': 'application/json',
|
|
1532
|
-
}, payload);
|
|
1533
|
-
if (parseOutput) {
|
|
1534
|
-
(0, parser_1.parse)(response);
|
|
1535
|
-
}
|
|
1536
|
-
return response;
|
|
1537
|
-
};
|
|
1538
|
-
exports.databasesDeleteIndex = databasesDeleteIndex;
|
|
1539
|
-
const databasesListCollectionLogs = async ({ databaseId, collectionId, queries, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1540
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1541
|
-
sdk;
|
|
1542
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/logs'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1543
|
-
let payload = {};
|
|
1544
|
-
if (typeof queries !== 'undefined') {
|
|
1545
|
-
payload['queries'] = queries;
|
|
1546
|
-
}
|
|
1547
|
-
let response = undefined;
|
|
1548
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1549
|
-
if (parseOutput) {
|
|
1550
|
-
(0, parser_1.parse)(response);
|
|
1551
|
-
}
|
|
1552
|
-
return response;
|
|
1553
|
-
};
|
|
1554
|
-
exports.databasesListCollectionLogs = databasesListCollectionLogs;
|
|
1555
|
-
const databasesGetCollectionUsage = async ({ databaseId, collectionId, range, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1556
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1557
|
-
sdk;
|
|
1558
|
-
let apiPath = '/databases/{databaseId}/collections/{collectionId}/usage'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1559
|
-
let payload = {};
|
|
1560
|
-
if (typeof range !== 'undefined') {
|
|
1561
|
-
payload['range'] = range;
|
|
1562
|
-
}
|
|
1563
|
-
let response = undefined;
|
|
1564
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1565
|
-
if (parseOutput) {
|
|
1566
|
-
(0, parser_1.parse)(response);
|
|
1567
|
-
}
|
|
1568
|
-
return response;
|
|
1569
|
-
};
|
|
1570
|
-
exports.databasesGetCollectionUsage = databasesGetCollectionUsage;
|
|
1571
|
-
const databasesListLogs = async ({ databaseId, queries, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1572
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1573
|
-
sdk;
|
|
1574
|
-
let apiPath = '/databases/{databaseId}/logs'.replace('{databaseId}', databaseId);
|
|
1575
|
-
let payload = {};
|
|
1576
|
-
if (typeof queries !== 'undefined') {
|
|
1577
|
-
payload['queries'] = queries;
|
|
1578
|
-
}
|
|
1579
|
-
let response = undefined;
|
|
1580
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1581
|
-
if (parseOutput) {
|
|
1582
|
-
(0, parser_1.parse)(response);
|
|
1583
|
-
}
|
|
1584
|
-
return response;
|
|
1585
|
-
};
|
|
1586
|
-
exports.databasesListLogs = databasesListLogs;
|
|
1587
|
-
const databasesGetUsage = async ({ databaseId, range, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
1588
|
-
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
1589
|
-
sdk;
|
|
1590
|
-
let apiPath = '/databases/{databaseId}/usage'.replace('{databaseId}', databaseId);
|
|
1591
|
-
let payload = {};
|
|
1592
|
-
if (typeof range !== 'undefined') {
|
|
1593
|
-
payload['range'] = range;
|
|
1594
|
-
}
|
|
1595
|
-
let response = undefined;
|
|
1596
|
-
response = await client.call('get', apiPath, {}, payload);
|
|
1597
|
-
if (parseOutput) {
|
|
1598
|
-
(0, parser_1.parse)(response);
|
|
1599
|
-
}
|
|
1600
|
-
return response;
|
|
1601
|
-
};
|
|
1602
|
-
exports.databasesGetUsage = databasesGetUsage;
|
|
1603
|
-
exports.databases
|
|
1604
|
-
.command(`list`)
|
|
1605
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list' instead] Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`)
|
|
1606
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name`)
|
|
1607
|
-
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
1608
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1609
|
-
.option(`--console`, `Get the resource console url`)
|
|
1610
|
-
.action((0, parser_1.actionRunner)(exports.databasesList));
|
|
1611
|
-
exports.databases
|
|
1612
|
-
.command(`create`)
|
|
1613
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create' instead] Create a new Database. `)
|
|
1614
|
-
.requiredOption(`--database-id <database-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
1615
|
-
.requiredOption(`--name <name>`, `Database name. Max length: 128 chars.`)
|
|
1616
|
-
.option(`--enabled [value]`, `Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1617
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreate));
|
|
1618
|
-
exports.databases
|
|
1619
|
-
.command(`list-transactions`)
|
|
1620
|
-
.description(`List transactions across all databases.`)
|
|
1621
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).`)
|
|
1622
|
-
.option(`--console`, `Get the resource console url`)
|
|
1623
|
-
.action((0, parser_1.actionRunner)(exports.databasesListTransactions));
|
|
1624
|
-
exports.databases
|
|
1625
|
-
.command(`create-transaction`)
|
|
1626
|
-
.description(`Create a new transaction.`)
|
|
1627
|
-
.option(`--ttl <ttl>`, `Seconds before the transaction expires.`, parser_1.parseInteger)
|
|
1628
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateTransaction));
|
|
1629
|
-
exports.databases
|
|
1630
|
-
.command(`get-transaction`)
|
|
1631
|
-
.description(`Get a transaction by its unique ID.`)
|
|
1632
|
-
.requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
|
|
1633
|
-
.option(`--console`, `Get the resource console url`)
|
|
1634
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetTransaction));
|
|
1635
|
-
exports.databases
|
|
1636
|
-
.command(`update-transaction`)
|
|
1637
|
-
.description(`Update a transaction, to either commit or roll back its operations.`)
|
|
1638
|
-
.requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
|
|
1639
|
-
.option(`--commit [value]`, `Commit transaction?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1640
|
-
.option(`--rollback [value]`, `Rollback transaction?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1641
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateTransaction));
|
|
1642
|
-
exports.databases
|
|
1643
|
-
.command(`delete-transaction`)
|
|
1644
|
-
.description(`Delete a transaction by its unique ID.`)
|
|
1645
|
-
.requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
|
|
1646
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteTransaction));
|
|
1647
|
-
exports.databases
|
|
1648
|
-
.command(`create-operations`)
|
|
1649
|
-
.description(`Create multiple operations in a single transaction.`)
|
|
1650
|
-
.requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
|
|
1651
|
-
.option(`--operations [operations...]`, `Array of staged operations.`)
|
|
1652
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateOperations));
|
|
1653
|
-
exports.databases
|
|
1654
|
-
.command(`list-usage`)
|
|
1655
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-usage' instead] List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
|
|
1656
|
-
.option(`--range <range>`, `Date range.`)
|
|
1657
|
-
.option(`--console`, `Get the resource console url`)
|
|
1658
|
-
.action((0, parser_1.actionRunner)(exports.databasesListUsage));
|
|
1659
|
-
exports.databases
|
|
1660
|
-
.command(`get`)
|
|
1661
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get' instead] Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.`)
|
|
1662
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1663
|
-
.option(`--console`, `Get the resource console url`)
|
|
1664
|
-
.action((0, parser_1.actionRunner)(exports.databasesGet));
|
|
1665
|
-
exports.databases
|
|
1666
|
-
.command(`update`)
|
|
1667
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update' instead] Update a database by its unique ID.`)
|
|
1668
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1669
|
-
.requiredOption(`--name <name>`, `Database name. Max length: 128 chars.`)
|
|
1670
|
-
.option(`--enabled [value]`, `Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1671
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdate));
|
|
1672
|
-
exports.databases
|
|
1673
|
-
.command(`delete`)
|
|
1674
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete' instead] Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.`)
|
|
1675
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1676
|
-
.action((0, parser_1.actionRunner)(exports.databasesDelete));
|
|
1677
|
-
exports.databases
|
|
1678
|
-
.command(`list-collections`)
|
|
1679
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-tables' instead] Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.`)
|
|
1680
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1681
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, documentSecurity`)
|
|
1682
|
-
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
1683
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1684
|
-
.option(`--console`, `Get the resource console url`)
|
|
1685
|
-
.action((0, parser_1.actionRunner)(exports.databasesListCollections));
|
|
1686
|
-
exports.databases
|
|
1687
|
-
.command(`create-collection`)
|
|
1688
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-table' instead] Create a new Collection. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`)
|
|
1689
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1690
|
-
.requiredOption(`--collection-id <collection-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
1691
|
-
.requiredOption(`--name <name>`, `Collection name. Max length: 128 chars.`)
|
|
1692
|
-
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
1693
|
-
.option(`--document-security [value]`, `Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1694
|
-
.option(`--enabled [value]`, `Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1695
|
-
.option(`--attributes [attributes...]`, `Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.`)
|
|
1696
|
-
.option(`--indexes [indexes...]`, `Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).`)
|
|
1697
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateCollection));
|
|
1698
|
-
exports.databases
|
|
1699
|
-
.command(`get-collection`)
|
|
1700
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-table' instead] Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.`)
|
|
1701
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1702
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1703
|
-
.option(`--console`, `Get the resource console url`)
|
|
1704
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetCollection));
|
|
1705
|
-
exports.databases
|
|
1706
|
-
.command(`update-collection`)
|
|
1707
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-table' instead] Update a collection by its unique ID.`)
|
|
1708
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1709
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1710
|
-
.requiredOption(`--name <name>`, `Collection name. Max length: 128 chars.`)
|
|
1711
|
-
.option(`--permissions [permissions...]`, `An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
1712
|
-
.option(`--document-security [value]`, `Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1713
|
-
.option(`--enabled [value]`, `Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1714
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateCollection));
|
|
1715
|
-
exports.databases
|
|
1716
|
-
.command(`delete-collection`)
|
|
1717
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete-table' instead] Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.`)
|
|
1718
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1719
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1720
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteCollection));
|
|
1721
|
-
exports.databases
|
|
1722
|
-
.command(`list-attributes`)
|
|
1723
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-columns' instead] List attributes in the collection.`)
|
|
1724
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1725
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1726
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, size, required, array, status, error`)
|
|
1727
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1728
|
-
.option(`--console`, `Get the resource console url`)
|
|
1729
|
-
.action((0, parser_1.actionRunner)(exports.databasesListAttributes));
|
|
1730
|
-
exports.databases
|
|
1731
|
-
.command(`create-boolean-attribute`)
|
|
1732
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-boolean-column' instead] Create a boolean attribute. `)
|
|
1733
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1734
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1735
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1736
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1737
|
-
.option(`--xdefault [value]`, `Default value for attribute when not provided. Cannot be set when attribute is required.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1738
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1739
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateBooleanAttribute));
|
|
1740
|
-
exports.databases
|
|
1741
|
-
.command(`update-boolean-attribute`)
|
|
1742
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-boolean-column' instead] Update a boolean attribute. Changing the 'default' value will not update already existing documents.`)
|
|
1743
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1744
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).`)
|
|
1745
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1746
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1747
|
-
.option(`--xdefault [value]`, `Default value for attribute when not provided. Cannot be set when attribute is required.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1748
|
-
.option(`--new-key <new-key>`, `New attribute key.`)
|
|
1749
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateBooleanAttribute));
|
|
1750
|
-
exports.databases
|
|
1751
|
-
.command(`create-datetime-attribute`)
|
|
1752
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-datetime-column' instead] Create a date time attribute according to the ISO 8601 standard.`)
|
|
1753
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1754
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).`)
|
|
1755
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1756
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1757
|
-
.option(`--xdefault <xdefault>`, `Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required.`)
|
|
1758
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1759
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateDatetimeAttribute));
|
|
1760
|
-
exports.databases
|
|
1761
|
-
.command(`update-datetime-attribute`)
|
|
1762
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-datetime-column' instead] Update a date time attribute. Changing the 'default' value will not update already existing documents.`)
|
|
1763
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1764
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1765
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1766
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1767
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1768
|
-
.option(`--new-key <new-key>`, `New attribute key.`)
|
|
1769
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateDatetimeAttribute));
|
|
1770
|
-
exports.databases
|
|
1771
|
-
.command(`create-email-attribute`)
|
|
1772
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-email-column' instead] Create an email attribute. `)
|
|
1773
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1774
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1775
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1776
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1777
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1778
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1779
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateEmailAttribute));
|
|
1780
|
-
exports.databases
|
|
1781
|
-
.command(`update-email-attribute`)
|
|
1782
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-email-column' instead] Update an email attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1783
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1784
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1785
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1786
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1787
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1788
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1789
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateEmailAttribute));
|
|
1790
|
-
exports.databases
|
|
1791
|
-
.command(`create-enum-attribute`)
|
|
1792
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-enum-column' instead] Create an enum attribute. The 'elements' param acts as a white-list of accepted values for this attribute. `)
|
|
1793
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1794
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1795
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1796
|
-
.requiredOption(`--elements [elements...]`, `Array of enum values.`)
|
|
1797
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1798
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1799
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1800
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateEnumAttribute));
|
|
1801
|
-
exports.databases
|
|
1802
|
-
.command(`update-enum-attribute`)
|
|
1803
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-enum-column' instead] Update an enum attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1804
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1805
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1806
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1807
|
-
.requiredOption(`--elements [elements...]`, `Updated list of enum values.`)
|
|
1808
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1809
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1810
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1811
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateEnumAttribute));
|
|
1812
|
-
exports.databases
|
|
1813
|
-
.command(`create-float-attribute`)
|
|
1814
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-float-column' instead] Create a float attribute. Optionally, minimum and maximum values can be provided. `)
|
|
1815
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1816
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1817
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1818
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1819
|
-
.option(`--min <min>`, `Minimum value.`, parser_1.parseInteger)
|
|
1820
|
-
.option(`--max <max>`, `Maximum value.`, parser_1.parseInteger)
|
|
1821
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when required.`, parser_1.parseInteger)
|
|
1822
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1823
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateFloatAttribute));
|
|
1824
|
-
exports.databases
|
|
1825
|
-
.command(`update-float-attribute`)
|
|
1826
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-float-column' instead] Update a float attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1827
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1828
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1829
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1830
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1831
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when required.`, parser_1.parseInteger)
|
|
1832
|
-
.option(`--min <min>`, `Minimum value.`, parser_1.parseInteger)
|
|
1833
|
-
.option(`--max <max>`, `Maximum value.`, parser_1.parseInteger)
|
|
1834
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1835
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateFloatAttribute));
|
|
1836
|
-
exports.databases
|
|
1837
|
-
.command(`create-integer-attribute`)
|
|
1838
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-integer-column' instead] Create an integer attribute. Optionally, minimum and maximum values can be provided. `)
|
|
1839
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1840
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1841
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1842
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1843
|
-
.option(`--min <min>`, `Minimum value`, parser_1.parseInteger)
|
|
1844
|
-
.option(`--max <max>`, `Maximum value`, parser_1.parseInteger)
|
|
1845
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`, parser_1.parseInteger)
|
|
1846
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1847
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateIntegerAttribute));
|
|
1848
|
-
exports.databases
|
|
1849
|
-
.command(`update-integer-attribute`)
|
|
1850
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-integer-column' instead] Update an integer attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1851
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1852
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1853
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1854
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1855
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`, parser_1.parseInteger)
|
|
1856
|
-
.option(`--min <min>`, `Minimum value`, parser_1.parseInteger)
|
|
1857
|
-
.option(`--max <max>`, `Maximum value`, parser_1.parseInteger)
|
|
1858
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1859
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateIntegerAttribute));
|
|
1860
|
-
exports.databases
|
|
1861
|
-
.command(`create-ip-attribute`)
|
|
1862
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-ip-column' instead] Create IP address attribute. `)
|
|
1863
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1864
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1865
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1866
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1867
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`)
|
|
1868
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1869
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateIpAttribute));
|
|
1870
|
-
exports.databases
|
|
1871
|
-
.command(`update-ip-attribute`)
|
|
1872
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-ip-column' instead] Update an ip attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1873
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1874
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1875
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1876
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1877
|
-
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`)
|
|
1878
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1879
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateIpAttribute));
|
|
1880
|
-
exports.databases
|
|
1881
|
-
.command(`create-line-attribute`)
|
|
1882
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-line-column' instead] Create a geometric line attribute.`)
|
|
1883
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1884
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1885
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1886
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1887
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when attribute is required.`)
|
|
1888
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateLineAttribute));
|
|
1889
|
-
exports.databases
|
|
1890
|
-
.command(`update-line-attribute`)
|
|
1891
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-line-column' instead] Update a line attribute. Changing the 'default' value will not update already existing documents.`)
|
|
1892
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1893
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).`)
|
|
1894
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1895
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1896
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when attribute is required.`)
|
|
1897
|
-
.option(`--new-key <new-key>`, `New attribute key.`)
|
|
1898
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateLineAttribute));
|
|
1899
|
-
exports.databases
|
|
1900
|
-
.command(`create-point-attribute`)
|
|
1901
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-point-column' instead] Create a geometric point attribute.`)
|
|
1902
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1903
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1904
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1905
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1906
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.`)
|
|
1907
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreatePointAttribute));
|
|
1908
|
-
exports.databases
|
|
1909
|
-
.command(`update-point-attribute`)
|
|
1910
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-point-column' instead] Update a point attribute. Changing the 'default' value will not update already existing documents.`)
|
|
1911
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1912
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).`)
|
|
1913
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1914
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1915
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.`)
|
|
1916
|
-
.option(`--new-key <new-key>`, `New attribute key.`)
|
|
1917
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdatePointAttribute));
|
|
1918
|
-
exports.databases
|
|
1919
|
-
.command(`create-polygon-attribute`)
|
|
1920
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-polygon-column' instead] Create a geometric polygon attribute.`)
|
|
1921
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1922
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1923
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1924
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1925
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.`)
|
|
1926
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreatePolygonAttribute));
|
|
1927
|
-
exports.databases
|
|
1928
|
-
.command(`update-polygon-attribute`)
|
|
1929
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-polygon-column' instead] Update a polygon attribute. Changing the 'default' value will not update already existing documents.`)
|
|
1930
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1931
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).`)
|
|
1932
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1933
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1934
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.`)
|
|
1935
|
-
.option(`--new-key <new-key>`, `New attribute key.`)
|
|
1936
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdatePolygonAttribute));
|
|
1937
|
-
exports.databases
|
|
1938
|
-
.command(`create-relationship-attribute`)
|
|
1939
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-relationship-column' instead] Create relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes). `)
|
|
1940
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1941
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1942
|
-
.requiredOption(`--related-collection-id <related-collection-id>`, `Related Collection ID.`)
|
|
1943
|
-
.requiredOption(`--type <type>`, `Relation type`)
|
|
1944
|
-
.option(`--two-way [value]`, `Is Two Way?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1945
|
-
.option(`--key <key>`, `Attribute Key.`)
|
|
1946
|
-
.option(`--two-way-key <two-way-key>`, `Two Way Attribute Key.`)
|
|
1947
|
-
.option(`--on-delete <on-delete>`, `Constraints option`)
|
|
1948
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateRelationshipAttribute));
|
|
1949
|
-
exports.databases
|
|
1950
|
-
.command(`create-string-attribute`)
|
|
1951
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-string-column' instead] Create a string attribute. `)
|
|
1952
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1953
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1954
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1955
|
-
.requiredOption(`--size <size>`, `Attribute size for text attributes, in number of characters.`, parser_1.parseInteger)
|
|
1956
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1957
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1958
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1959
|
-
.option(`--encrypt [value]`, `Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1960
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateStringAttribute));
|
|
1961
|
-
exports.databases
|
|
1962
|
-
.command(`update-string-attribute`)
|
|
1963
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-string-column' instead] Update a string attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1964
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1965
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
1966
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1967
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1968
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1969
|
-
.option(`--size <size>`, `Maximum size of the string attribute.`, parser_1.parseInteger)
|
|
1970
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1971
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateStringAttribute));
|
|
1972
|
-
exports.databases
|
|
1973
|
-
.command(`create-url-attribute`)
|
|
1974
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-url-column' instead] Create a URL attribute. `)
|
|
1975
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1976
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1977
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1978
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1979
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1980
|
-
.option(`--array [value]`, `Is attribute an array?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1981
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateUrlAttribute));
|
|
1982
|
-
exports.databases
|
|
1983
|
-
.command(`update-url-attribute`)
|
|
1984
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-url-column' instead] Update an url attribute. Changing the 'default' value will not update already existing documents. `)
|
|
1985
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1986
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1987
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1988
|
-
.requiredOption(`--required [value]`, `Is attribute required?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
1989
|
-
.option(`--xdefault <xdefault>`, `Default value for attribute when not provided. Cannot be set when attribute is required.`)
|
|
1990
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
1991
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateUrlAttribute));
|
|
1992
|
-
exports.databases
|
|
1993
|
-
.command(`get-attribute`)
|
|
1994
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-column' instead] Get attribute by ID.`)
|
|
1995
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
1996
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
1997
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
1998
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetAttribute));
|
|
1999
|
-
exports.databases
|
|
2000
|
-
.command(`delete-attribute`)
|
|
2001
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete-column' instead] Deletes an attribute.`)
|
|
2002
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2003
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2004
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
2005
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteAttribute));
|
|
2006
|
-
exports.databases
|
|
2007
|
-
.command(`update-relationship-attribute`)
|
|
2008
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-relationship-column' instead] Update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes). `)
|
|
2009
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2010
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2011
|
-
.requiredOption(`--key <key>`, `Attribute Key.`)
|
|
2012
|
-
.option(`--on-delete <on-delete>`, `Constraints option`)
|
|
2013
|
-
.option(`--new-key <new-key>`, `New Attribute Key.`)
|
|
2014
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateRelationshipAttribute));
|
|
2015
|
-
exports.databases
|
|
2016
|
-
.command(`list-documents`)
|
|
2017
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-rows' instead] Get a list of all the user's documents in a given collection. You can use the query params to filter your results.`)
|
|
2018
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2019
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2020
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
2021
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`)
|
|
2022
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
2023
|
-
.option(`--console`, `Get the resource console url`)
|
|
2024
|
-
.action((0, parser_1.actionRunner)(exports.databasesListDocuments));
|
|
2025
|
-
exports.databases
|
|
2026
|
-
.command(`create-document`)
|
|
2027
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-row' instead] Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`)
|
|
2028
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2029
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.`)
|
|
2030
|
-
.requiredOption(`--document-id <document-id>`, `Document ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
2031
|
-
.requiredOption(`--data <data>`, `Document data as JSON object.`)
|
|
2032
|
-
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
2033
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2034
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateDocument));
|
|
2035
|
-
exports.databases
|
|
2036
|
-
.command(`create-documents`)
|
|
2037
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-rows' instead] Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`)
|
|
2038
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2039
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.`)
|
|
2040
|
-
.requiredOption(`--documents [documents...]`, `Array of documents data as JSON objects.`)
|
|
2041
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2042
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateDocuments));
|
|
2043
|
-
exports.databases
|
|
2044
|
-
.command(`upsert-documents`)
|
|
2045
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db upsert-rows' instead] Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. `)
|
|
2046
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2047
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2048
|
-
.requiredOption(`--documents [documents...]`, `Array of document data as JSON objects. May contain partial documents.`)
|
|
2049
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2050
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpsertDocuments));
|
|
2051
|
-
exports.databases
|
|
2052
|
-
.command(`update-documents`)
|
|
2053
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-rows' instead] Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.`)
|
|
2054
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2055
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2056
|
-
.option(`--data <data>`, `Document data as JSON object. Include only attribute and value pairs to be updated.`)
|
|
2057
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
2058
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2059
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateDocuments));
|
|
2060
|
-
exports.databases
|
|
2061
|
-
.command(`delete-documents`)
|
|
2062
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete-rows' instead] Bulk delete documents using queries, if no queries are passed then all documents are deleted.`)
|
|
2063
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2064
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2065
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
2066
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2067
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteDocuments));
|
|
2068
|
-
exports.databases
|
|
2069
|
-
.command(`get-document`)
|
|
2070
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-row' instead] Get a document by its unique ID. This endpoint response returns a JSON object with the document data.`)
|
|
2071
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2072
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2073
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2074
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
2075
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`)
|
|
2076
|
-
.option(`--console`, `Get the resource console url`)
|
|
2077
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetDocument));
|
|
2078
|
-
exports.databases
|
|
2079
|
-
.command(`upsert-document`)
|
|
2080
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db upsert-row' instead] Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`)
|
|
2081
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2082
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2083
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2084
|
-
.option(`--data <data>`, `Document data as JSON object. Include all required attributes of the document to be created or updated.`)
|
|
2085
|
-
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
2086
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2087
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpsertDocument));
|
|
2088
|
-
exports.databases
|
|
2089
|
-
.command(`update-document`)
|
|
2090
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db update-row' instead] Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.`)
|
|
2091
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2092
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2093
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2094
|
-
.option(`--data <data>`, `Document data as JSON object. Include only attribute and value pairs to be updated.`)
|
|
2095
|
-
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
2096
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2097
|
-
.action((0, parser_1.actionRunner)(exports.databasesUpdateDocument));
|
|
2098
|
-
exports.databases
|
|
2099
|
-
.command(`delete-document`)
|
|
2100
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete-row' instead] Delete a document by its unique ID.`)
|
|
2101
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2102
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2103
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2104
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2105
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteDocument));
|
|
2106
|
-
exports.databases
|
|
2107
|
-
.command(`list-document-logs`)
|
|
2108
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-row-logs' instead] Get the document activity logs list by its unique ID.`)
|
|
2109
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2110
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2111
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2112
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
|
|
2113
|
-
.action((0, parser_1.actionRunner)(exports.databasesListDocumentLogs));
|
|
2114
|
-
exports.databases
|
|
2115
|
-
.command(`decrement-document-attribute`)
|
|
2116
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db decrement-row-column' instead] Decrement a specific attribute of a document by a given value.`)
|
|
2117
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2118
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2119
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2120
|
-
.requiredOption(`--attribute <attribute>`, `Attribute key.`)
|
|
2121
|
-
.option(`--value <value>`, `Value to increment the attribute by. The value must be a number.`, parser_1.parseInteger)
|
|
2122
|
-
.option(`--min <min>`, `Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.`, parser_1.parseInteger)
|
|
2123
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2124
|
-
.action((0, parser_1.actionRunner)(exports.databasesDecrementDocumentAttribute));
|
|
2125
|
-
exports.databases
|
|
2126
|
-
.command(`increment-document-attribute`)
|
|
2127
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db increment-row-column' instead] Increment a specific attribute of a document by a given value.`)
|
|
2128
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2129
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2130
|
-
.requiredOption(`--document-id <document-id>`, `Document ID.`)
|
|
2131
|
-
.requiredOption(`--attribute <attribute>`, `Attribute key.`)
|
|
2132
|
-
.option(`--value <value>`, `Value to increment the attribute by. The value must be a number.`, parser_1.parseInteger)
|
|
2133
|
-
.option(`--max <max>`, `Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.`, parser_1.parseInteger)
|
|
2134
|
-
.option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`)
|
|
2135
|
-
.action((0, parser_1.actionRunner)(exports.databasesIncrementDocumentAttribute));
|
|
2136
|
-
exports.databases
|
|
2137
|
-
.command(`list-indexes`)
|
|
2138
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-indexes' instead] List indexes in the collection.`)
|
|
2139
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2140
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2141
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, status, attributes, error`)
|
|
2142
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
2143
|
-
.option(`--console`, `Get the resource console url`)
|
|
2144
|
-
.action((0, parser_1.actionRunner)(exports.databasesListIndexes));
|
|
2145
|
-
exports.databases
|
|
2146
|
-
.command(`create-index`)
|
|
2147
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db create-index' instead] Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request. Attributes can be 'key', 'fulltext', and 'unique'.`)
|
|
2148
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2149
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2150
|
-
.requiredOption(`--key <key>`, `Index Key.`)
|
|
2151
|
-
.requiredOption(`--type <type>`, `Index type.`)
|
|
2152
|
-
.requiredOption(`--attributes [attributes...]`, `Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.`)
|
|
2153
|
-
.option(`--orders [orders...]`, `Array of index orders. Maximum of 100 orders are allowed.`)
|
|
2154
|
-
.option(`--lengths [lengths...]`, `Length of index. Maximum of 100`)
|
|
2155
|
-
.action((0, parser_1.actionRunner)(exports.databasesCreateIndex));
|
|
2156
|
-
exports.databases
|
|
2157
|
-
.command(`get-index`)
|
|
2158
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-index' instead] Get an index by its unique ID.`)
|
|
2159
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2160
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2161
|
-
.requiredOption(`--key <key>`, `Index Key.`)
|
|
2162
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetIndex));
|
|
2163
|
-
exports.databases
|
|
2164
|
-
.command(`delete-index`)
|
|
2165
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db delete-index' instead] Delete an index.`)
|
|
2166
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2167
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
|
|
2168
|
-
.requiredOption(`--key <key>`, `Index Key.`)
|
|
2169
|
-
.action((0, parser_1.actionRunner)(exports.databasesDeleteIndex));
|
|
2170
|
-
exports.databases
|
|
2171
|
-
.command(`list-collection-logs`)
|
|
2172
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-table-logs' instead] Get the collection activity logs list by its unique ID.`)
|
|
2173
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2174
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2175
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
|
|
2176
|
-
.action((0, parser_1.actionRunner)(exports.databasesListCollectionLogs));
|
|
2177
|
-
exports.databases
|
|
2178
|
-
.command(`get-collection-usage`)
|
|
2179
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-table-usage' instead] Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
|
|
2180
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2181
|
-
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2182
|
-
.option(`--range <range>`, `Date range.`)
|
|
2183
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetCollectionUsage));
|
|
2184
|
-
exports.databases
|
|
2185
|
-
.command(`list-logs`)
|
|
2186
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db list-database-logs' instead] Get the database activity logs list by its unique ID.`)
|
|
2187
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2188
|
-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
|
|
2189
|
-
.action((0, parser_1.actionRunner)(exports.databasesListLogs));
|
|
2190
|
-
exports.databases
|
|
2191
|
-
.command(`get-usage`)
|
|
2192
|
-
.description(`[**DEPRECATED** - This command is deprecated. Please use 'tables-db get-usage' instead] Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
|
|
2193
|
-
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2194
|
-
.option(`--range <range>`, `Date range.`)
|
|
2195
|
-
.action((0, parser_1.actionRunner)(exports.databasesGetUsage));
|
|
2196
|
-
//# sourceMappingURL=databases.js.map
|