@appwrite.io/console 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/README.md +3 -3
- package/dist/cjs/sdk.js +6807 -3959
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +6805 -3960
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +6807 -3959
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-billing-address.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-payment-method.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-billing-address.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-payment-method.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-billing-address.md +1 -1
- package/docs/examples/account/get-coupon.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-billing-addresses.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-invoices.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-billing-address.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
- package/docs/examples/account/update-payment-method-provider.md +1 -1
- package/docs/examples/account/update-payment-method.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/backups/create-archive.md +1 -1
- package/docs/examples/backups/create-policy.md +1 -1
- package/docs/examples/backups/create-restoration.md +1 -1
- package/docs/examples/backups/delete-archive.md +1 -1
- package/docs/examples/backups/delete-policy.md +1 -1
- package/docs/examples/backups/get-archive.md +1 -1
- package/docs/examples/backups/get-policy.md +1 -1
- package/docs/examples/backups/get-restoration.md +1 -1
- package/docs/examples/backups/list-archives.md +1 -1
- package/docs/examples/backups/list-policies.md +1 -1
- package/docs/examples/backups/list-restorations.md +1 -1
- package/docs/examples/backups/update-policy.md +1 -1
- package/docs/examples/console/create-program-membership.md +1 -1
- package/docs/examples/console/create-source.md +1 -1
- package/docs/examples/console/get-campaign.md +1 -1
- package/docs/examples/console/get-coupon.md +1 -1
- package/docs/examples/console/get-resource.md +14 -0
- package/docs/examples/console/plans.md +1 -1
- package/docs/examples/console/regions.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +4 -2
- package/docs/examples/databases/create-documents.md +15 -0
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +3 -2
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-documents.md +15 -0
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-documents.md +16 -0
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/databases/upsert-document.md +17 -0
- package/docs/examples/databases/upsert-documents.md +15 -0
- package/docs/examples/domains/create-preset-google-workspace.md +13 -0
- package/docs/examples/domains/create-preset-i-cloud.md +13 -0
- package/docs/examples/domains/create-preset-mailgun.md +13 -0
- package/docs/examples/domains/create-preset-outlook.md +13 -0
- package/docs/examples/domains/create-preset-proton-mail.md +13 -0
- package/docs/examples/domains/create-preset-zoho.md +13 -0
- package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
- package/docs/examples/domains/create-record-a.md +17 -0
- package/docs/examples/domains/create-record-alias.md +17 -0
- package/docs/examples/domains/create-record-c-a-a.md +17 -0
- package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
- package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
- package/docs/examples/domains/create-record-m-x.md +18 -0
- package/docs/examples/domains/create-record-n-s.md +17 -0
- package/docs/examples/domains/create-record-s-r-v.md +20 -0
- package/docs/examples/domains/create-record-t-x-t.md +17 -0
- package/docs/examples/domains/create.md +14 -0
- package/docs/examples/domains/delete-record.md +14 -0
- package/docs/examples/domains/delete.md +13 -0
- package/docs/examples/domains/get-preset-google-workspace.md +13 -0
- package/docs/examples/domains/get-preset-i-cloud.md +13 -0
- package/docs/examples/domains/get-preset-mailgun.md +13 -0
- package/docs/examples/domains/get-preset-outlook.md +13 -0
- package/docs/examples/domains/get-preset-proton-mail.md +13 -0
- package/docs/examples/domains/get-preset-zoho.md +13 -0
- package/docs/examples/domains/get-record.md +14 -0
- package/docs/examples/domains/get-zone.md +13 -0
- package/docs/examples/domains/get.md +13 -0
- package/docs/examples/domains/list-records.md +14 -0
- package/docs/examples/domains/list.md +14 -0
- package/docs/examples/domains/update-nameservers.md +13 -0
- package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
- package/docs/examples/domains/update-record-a.md +18 -0
- package/docs/examples/domains/update-record-alias.md +18 -0
- package/docs/examples/domains/update-record-c-a-a.md +18 -0
- package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
- package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
- package/docs/examples/domains/update-record-m-x.md +19 -0
- package/docs/examples/domains/update-record-n-s.md +18 -0
- package/docs/examples/domains/update-record-s-r-v.md +21 -0
- package/docs/examples/domains/update-record-t-x-t.md +18 -0
- package/docs/examples/domains/update-team.md +14 -0
- package/docs/examples/domains/update-zone.md +14 -0
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-duplicate-deployment.md +15 -0
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-template-deployment.md +18 -0
- package/docs/examples/functions/create-variable.md +3 -2
- package/docs/examples/functions/create-vcs-deployment.md +16 -0
- package/docs/examples/functions/create.md +1 -5
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +4 -3
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +2 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -1
- package/docs/examples/functions/list-usage.md +13 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-status.md +14 -0
- package/docs/examples/functions/update-function-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +3 -2
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-priority-builds.md +1 -1
- package/docs/examples/health/get-queue-region-manager.md +13 -0
- package/docs/examples/health/get-queue-stats-resources.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-csv-migration.md +15 -0
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/organizations/add-credit.md +1 -1
- package/docs/examples/organizations/create-invoice-payment.md +1 -1
- package/docs/examples/organizations/create.md +1 -1
- package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
- package/docs/examples/organizations/delete-billing-address.md +1 -1
- package/docs/examples/organizations/delete-default-payment-method.md +1 -1
- package/docs/examples/organizations/delete.md +1 -1
- package/docs/examples/organizations/get-aggregation.md +1 -1
- package/docs/examples/organizations/get-billing-address.md +1 -1
- package/docs/examples/organizations/get-credit.md +1 -1
- package/docs/examples/organizations/get-invoice-download.md +1 -1
- package/docs/examples/organizations/get-invoice-view.md +1 -1
- package/docs/examples/organizations/get-invoice.md +1 -1
- package/docs/examples/organizations/get-payment-method.md +1 -1
- package/docs/examples/organizations/get-plan.md +1 -1
- package/docs/examples/organizations/get-scopes.md +1 -1
- package/docs/examples/organizations/list-aggregations.md +1 -1
- package/docs/examples/organizations/list-credits.md +1 -1
- package/docs/examples/organizations/list-invoices.md +1 -1
- package/docs/examples/organizations/list.md +1 -1
- package/docs/examples/organizations/set-backup-payment-method.md +1 -1
- package/docs/examples/organizations/set-billing-address.md +1 -1
- package/docs/examples/organizations/set-billing-email.md +1 -1
- package/docs/examples/organizations/set-billing-tax-id.md +1 -1
- package/docs/examples/organizations/set-default-payment-method.md +1 -1
- package/docs/examples/organizations/update-budget.md +1 -1
- package/docs/examples/organizations/update-plan.md +1 -1
- package/docs/examples/organizations/validate-invoice.md +1 -1
- package/docs/examples/project/create-variable.md +3 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -2
- package/docs/examples/projects/create-dev-key.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-dev-key.md +14 -0
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +14 -0
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +14 -0
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-dev-key.md +16 -0
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
- package/docs/examples/proxy/create-function-rule.md +15 -0
- package/docs/examples/proxy/create-redirect-rule.md +15 -0
- package/docs/examples/proxy/create-site-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/sites/create-deployment.md +18 -0
- package/docs/examples/sites/create-duplicate-deployment.md +14 -0
- package/docs/examples/sites/create-template-deployment.md +18 -0
- package/docs/examples/sites/create-variable.md +16 -0
- package/docs/examples/sites/create-vcs-deployment.md +16 -0
- package/docs/examples/sites/create.md +30 -0
- package/docs/examples/sites/delete-deployment.md +14 -0
- package/docs/examples/sites/delete-log.md +14 -0
- package/docs/examples/sites/delete-variable.md +14 -0
- package/docs/examples/sites/delete.md +13 -0
- package/docs/examples/sites/get-deployment-download.md +15 -0
- package/docs/examples/sites/get-deployment.md +14 -0
- package/docs/examples/sites/get-log.md +14 -0
- package/docs/examples/sites/get-template.md +13 -0
- package/docs/examples/sites/get-usage.md +14 -0
- package/docs/examples/sites/get-variable.md +14 -0
- package/docs/examples/sites/get.md +13 -0
- package/docs/examples/sites/list-deployments.md +15 -0
- package/docs/examples/sites/list-frameworks.md +11 -0
- package/docs/examples/sites/list-logs.md +14 -0
- package/docs/examples/sites/list-specifications.md +11 -0
- package/docs/examples/sites/list-templates.md +16 -0
- package/docs/examples/sites/list-usage.md +13 -0
- package/docs/examples/sites/list-variables.md +13 -0
- package/docs/examples/sites/list.md +14 -0
- package/docs/examples/sites/update-deployment-status.md +14 -0
- package/docs/examples/sites/update-site-deployment.md +14 -0
- package/docs/examples/sites/update-variable.md +17 -0
- package/docs/examples/sites/update.md +30 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/tokens/create-file-token.md +15 -0
- package/docs/examples/tokens/delete.md +13 -0
- package/docs/examples/tokens/get.md +13 -0
- package/docs/examples/tokens/list.md +15 -0
- package/docs/examples/tokens/update.md +14 -0
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +4 -2
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +3 -2
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +3 -2
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +16 -3
- package/src/enums/adapter.ts +4 -0
- package/src/enums/api-service.ts +1 -0
- package/src/enums/build-runtime.ts +62 -0
- package/src/enums/console-resource-type.ts +3 -0
- package/src/enums/deployment-download-type.ts +4 -0
- package/src/enums/framework.ts +16 -0
- package/src/enums/image-format.ts +0 -1
- package/src/enums/name.ts +0 -1
- package/src/enums/region.ts +2 -1
- package/src/enums/runtime.ts +4 -3
- package/src/enums/site-usage-range.ts +5 -0
- package/src/enums/status-code.ts +6 -0
- package/src/enums/v-c-s-deployment-type.ts +5 -0
- package/src/enums/v-c-s-detection-type.ts +4 -0
- package/src/index.ts +13 -2
- package/src/models.ts +1100 -217
- package/src/services/account.ts +0 -16
- package/src/services/avatars.ts +0 -7
- package/src/services/backups.ts +0 -6
- package/src/services/console.ts +36 -5
- package/src/services/databases.ts +194 -18
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +170 -81
- package/src/services/health.ts +9 -34
- package/src/services/locale.ts +0 -8
- package/src/services/messaging.ts +0 -13
- package/src/services/migrations.ts +43 -6
- package/src/services/organizations.ts +0 -47
- package/src/services/project.ts +10 -5
- package/src/services/projects.ts +172 -10
- package/src/services/proxy.ts +124 -14
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +15 -12
- package/src/services/teams.ts +0 -6
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +9 -13
- package/src/services/vcs.ts +54 -42
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +62 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/framework.d.ts +16 -0
- package/types/enums/image-format.d.ts +0 -1
- package/types/enums/name.d.ts +0 -1
- package/types/enums/region.d.ts +3 -2
- package/types/enums/runtime.d.ts +5 -4
- package/types/enums/site-usage-range.d.ts +5 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/v-c-s-deployment-type.d.ts +5 -0
- package/types/enums/v-c-s-detection-type.d.ts +4 -0
- package/types/index.d.ts +13 -2
- package/types/models.d.ts +1100 -217
- package/types/services/console.d.ts +10 -0
- package/types/services/databases.d.ts +56 -2
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +59 -33
- package/types/services/health.d.ts +6 -6
- package/types/services/migrations.d.ts +10 -0
- package/types/services/organizations.d.ts +0 -10
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +48 -0
- package/types/services/proxy.d.ts +33 -5
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -3
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -1
- package/types/services/vcs.d.ts +15 -12
package/src/services/health.ts
CHANGED
|
@@ -22,7 +22,6 @@ export class Health {
|
|
|
22
22
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23
23
|
|
|
24
24
|
const apiHeaders: { [header: string]: string } = {
|
|
25
|
-
'content-type': 'application/json',
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
return this.client.call(
|
|
@@ -44,7 +43,6 @@ export class Health {
|
|
|
44
43
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
45
44
|
|
|
46
45
|
const apiHeaders: { [header: string]: string } = {
|
|
47
|
-
'content-type': 'application/json',
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
return this.client.call(
|
|
@@ -66,7 +64,6 @@ export class Health {
|
|
|
66
64
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
67
65
|
|
|
68
66
|
const apiHeaders: { [header: string]: string } = {
|
|
69
|
-
'content-type': 'application/json',
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
return this.client.call(
|
|
@@ -92,7 +89,6 @@ export class Health {
|
|
|
92
89
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
93
90
|
|
|
94
91
|
const apiHeaders: { [header: string]: string } = {
|
|
95
|
-
'content-type': 'application/json',
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
return this.client.call(
|
|
@@ -114,7 +110,6 @@ export class Health {
|
|
|
114
110
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
115
111
|
|
|
116
112
|
const apiHeaders: { [header: string]: string } = {
|
|
117
|
-
'content-type': 'application/json',
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
return this.client.call(
|
|
@@ -136,7 +131,6 @@ export class Health {
|
|
|
136
131
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
137
132
|
|
|
138
133
|
const apiHeaders: { [header: string]: string } = {
|
|
139
|
-
'content-type': 'application/json',
|
|
140
134
|
}
|
|
141
135
|
|
|
142
136
|
return this.client.call(
|
|
@@ -162,7 +156,6 @@ export class Health {
|
|
|
162
156
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
163
157
|
|
|
164
158
|
const apiHeaders: { [header: string]: string } = {
|
|
165
|
-
'content-type': 'application/json',
|
|
166
159
|
}
|
|
167
160
|
|
|
168
161
|
return this.client.call(
|
|
@@ -188,7 +181,6 @@ export class Health {
|
|
|
188
181
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
189
182
|
|
|
190
183
|
const apiHeaders: { [header: string]: string } = {
|
|
191
|
-
'content-type': 'application/json',
|
|
192
184
|
}
|
|
193
185
|
|
|
194
186
|
return this.client.call(
|
|
@@ -214,7 +206,6 @@ export class Health {
|
|
|
214
206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
215
207
|
|
|
216
208
|
const apiHeaders: { [header: string]: string } = {
|
|
217
|
-
'content-type': 'application/json',
|
|
218
209
|
}
|
|
219
210
|
|
|
220
211
|
return this.client.call(
|
|
@@ -240,7 +231,6 @@ export class Health {
|
|
|
240
231
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
241
232
|
|
|
242
233
|
const apiHeaders: { [header: string]: string } = {
|
|
243
|
-
'content-type': 'application/json',
|
|
244
234
|
}
|
|
245
235
|
|
|
246
236
|
return this.client.call(
|
|
@@ -270,7 +260,6 @@ export class Health {
|
|
|
270
260
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
271
261
|
|
|
272
262
|
const apiHeaders: { [header: string]: string } = {
|
|
273
|
-
'content-type': 'application/json',
|
|
274
263
|
}
|
|
275
264
|
|
|
276
265
|
return this.client.call(
|
|
@@ -296,7 +285,6 @@ export class Health {
|
|
|
296
285
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
297
286
|
|
|
298
287
|
const apiHeaders: { [header: string]: string } = {
|
|
299
|
-
'content-type': 'application/json',
|
|
300
288
|
}
|
|
301
289
|
|
|
302
290
|
return this.client.call(
|
|
@@ -327,7 +315,6 @@ export class Health {
|
|
|
327
315
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
328
316
|
|
|
329
317
|
const apiHeaders: { [header: string]: string } = {
|
|
330
|
-
'content-type': 'application/json',
|
|
331
318
|
}
|
|
332
319
|
|
|
333
320
|
return this.client.call(
|
|
@@ -353,7 +340,6 @@ export class Health {
|
|
|
353
340
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
354
341
|
|
|
355
342
|
const apiHeaders: { [header: string]: string } = {
|
|
356
|
-
'content-type': 'application/json',
|
|
357
343
|
}
|
|
358
344
|
|
|
359
345
|
return this.client.call(
|
|
@@ -379,7 +365,6 @@ export class Health {
|
|
|
379
365
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
380
366
|
|
|
381
367
|
const apiHeaders: { [header: string]: string } = {
|
|
382
|
-
'content-type': 'application/json',
|
|
383
368
|
}
|
|
384
369
|
|
|
385
370
|
return this.client.call(
|
|
@@ -405,7 +390,6 @@ export class Health {
|
|
|
405
390
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
406
391
|
|
|
407
392
|
const apiHeaders: { [header: string]: string } = {
|
|
408
|
-
'content-type': 'application/json',
|
|
409
393
|
}
|
|
410
394
|
|
|
411
395
|
return this.client.call(
|
|
@@ -431,7 +415,6 @@ export class Health {
|
|
|
431
415
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
432
416
|
|
|
433
417
|
const apiHeaders: { [header: string]: string } = {
|
|
434
|
-
'content-type': 'application/json',
|
|
435
418
|
}
|
|
436
419
|
|
|
437
420
|
return this.client.call(
|
|
@@ -457,7 +440,6 @@ export class Health {
|
|
|
457
440
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
458
441
|
|
|
459
442
|
const apiHeaders: { [header: string]: string } = {
|
|
460
|
-
'content-type': 'application/json',
|
|
461
443
|
}
|
|
462
444
|
|
|
463
445
|
return this.client.call(
|
|
@@ -468,14 +450,14 @@ export class Health {
|
|
|
468
450
|
);
|
|
469
451
|
}
|
|
470
452
|
/**
|
|
471
|
-
* Get
|
|
453
|
+
* Get region manager queue
|
|
472
454
|
*
|
|
473
455
|
* @param {number} threshold
|
|
474
456
|
* @throws {AppwriteException}
|
|
475
457
|
* @returns {Promise<Models.HealthQueue>}
|
|
476
458
|
*/
|
|
477
|
-
|
|
478
|
-
const apiPath = '/health/queue/
|
|
459
|
+
getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue> {
|
|
460
|
+
const apiPath = '/health/queue/region-manager';
|
|
479
461
|
const payload: Payload = {};
|
|
480
462
|
if (typeof threshold !== 'undefined') {
|
|
481
463
|
payload['threshold'] = threshold;
|
|
@@ -483,7 +465,6 @@ export class Health {
|
|
|
483
465
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
484
466
|
|
|
485
467
|
const apiHeaders: { [header: string]: string } = {
|
|
486
|
-
'content-type': 'application/json',
|
|
487
468
|
}
|
|
488
469
|
|
|
489
470
|
return this.client.call(
|
|
@@ -494,14 +475,14 @@ export class Health {
|
|
|
494
475
|
);
|
|
495
476
|
}
|
|
496
477
|
/**
|
|
497
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
478
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
498
479
|
*
|
|
499
480
|
* @param {number} threshold
|
|
500
481
|
* @throws {AppwriteException}
|
|
501
482
|
* @returns {Promise<Models.HealthQueue>}
|
|
502
483
|
*/
|
|
503
|
-
|
|
504
|
-
const apiPath = '/health/queue/stats-
|
|
484
|
+
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue> {
|
|
485
|
+
const apiPath = '/health/queue/stats-resources';
|
|
505
486
|
const payload: Payload = {};
|
|
506
487
|
if (typeof threshold !== 'undefined') {
|
|
507
488
|
payload['threshold'] = threshold;
|
|
@@ -509,7 +490,6 @@ export class Health {
|
|
|
509
490
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
510
491
|
|
|
511
492
|
const apiHeaders: { [header: string]: string } = {
|
|
512
|
-
'content-type': 'application/json',
|
|
513
493
|
}
|
|
514
494
|
|
|
515
495
|
return this.client.call(
|
|
@@ -520,14 +500,14 @@ export class Health {
|
|
|
520
500
|
);
|
|
521
501
|
}
|
|
522
502
|
/**
|
|
523
|
-
* Get the number of
|
|
503
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
524
504
|
*
|
|
525
505
|
* @param {number} threshold
|
|
526
506
|
* @throws {AppwriteException}
|
|
527
507
|
* @returns {Promise<Models.HealthQueue>}
|
|
528
508
|
*/
|
|
529
|
-
|
|
530
|
-
const apiPath = '/health/queue/stats-usage
|
|
509
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue> {
|
|
510
|
+
const apiPath = '/health/queue/stats-usage';
|
|
531
511
|
const payload: Payload = {};
|
|
532
512
|
if (typeof threshold !== 'undefined') {
|
|
533
513
|
payload['threshold'] = threshold;
|
|
@@ -535,7 +515,6 @@ export class Health {
|
|
|
535
515
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
536
516
|
|
|
537
517
|
const apiHeaders: { [header: string]: string } = {
|
|
538
|
-
'content-type': 'application/json',
|
|
539
518
|
}
|
|
540
519
|
|
|
541
520
|
return this.client.call(
|
|
@@ -561,7 +540,6 @@ export class Health {
|
|
|
561
540
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
562
541
|
|
|
563
542
|
const apiHeaders: { [header: string]: string } = {
|
|
564
|
-
'content-type': 'application/json',
|
|
565
543
|
}
|
|
566
544
|
|
|
567
545
|
return this.client.call(
|
|
@@ -583,7 +561,6 @@ export class Health {
|
|
|
583
561
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
584
562
|
|
|
585
563
|
const apiHeaders: { [header: string]: string } = {
|
|
586
|
-
'content-type': 'application/json',
|
|
587
564
|
}
|
|
588
565
|
|
|
589
566
|
return this.client.call(
|
|
@@ -605,7 +582,6 @@ export class Health {
|
|
|
605
582
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
606
583
|
|
|
607
584
|
const apiHeaders: { [header: string]: string } = {
|
|
608
|
-
'content-type': 'application/json',
|
|
609
585
|
}
|
|
610
586
|
|
|
611
587
|
return this.client.call(
|
|
@@ -627,7 +603,6 @@ export class Health {
|
|
|
627
603
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
628
604
|
|
|
629
605
|
const apiHeaders: { [header: string]: string } = {
|
|
630
|
-
'content-type': 'application/json',
|
|
631
606
|
}
|
|
632
607
|
|
|
633
608
|
return this.client.call(
|
package/src/services/locale.ts
CHANGED
|
@@ -23,7 +23,6 @@ export class Locale {
|
|
|
23
23
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24
24
|
|
|
25
25
|
const apiHeaders: { [header: string]: string } = {
|
|
26
|
-
'content-type': 'application/json',
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
return this.client.call(
|
|
@@ -45,7 +44,6 @@ export class Locale {
|
|
|
45
44
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
46
45
|
|
|
47
46
|
const apiHeaders: { [header: string]: string } = {
|
|
48
|
-
'content-type': 'application/json',
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
return this.client.call(
|
|
@@ -67,7 +65,6 @@ export class Locale {
|
|
|
67
65
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
68
66
|
|
|
69
67
|
const apiHeaders: { [header: string]: string } = {
|
|
70
|
-
'content-type': 'application/json',
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
return this.client.call(
|
|
@@ -89,7 +86,6 @@ export class Locale {
|
|
|
89
86
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
90
87
|
|
|
91
88
|
const apiHeaders: { [header: string]: string } = {
|
|
92
|
-
'content-type': 'application/json',
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
return this.client.call(
|
|
@@ -111,7 +107,6 @@ export class Locale {
|
|
|
111
107
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
112
108
|
|
|
113
109
|
const apiHeaders: { [header: string]: string } = {
|
|
114
|
-
'content-type': 'application/json',
|
|
115
110
|
}
|
|
116
111
|
|
|
117
112
|
return this.client.call(
|
|
@@ -133,7 +128,6 @@ export class Locale {
|
|
|
133
128
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
134
129
|
|
|
135
130
|
const apiHeaders: { [header: string]: string } = {
|
|
136
|
-
'content-type': 'application/json',
|
|
137
131
|
}
|
|
138
132
|
|
|
139
133
|
return this.client.call(
|
|
@@ -155,7 +149,6 @@ export class Locale {
|
|
|
155
149
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
156
150
|
|
|
157
151
|
const apiHeaders: { [header: string]: string } = {
|
|
158
|
-
'content-type': 'application/json',
|
|
159
152
|
}
|
|
160
153
|
|
|
161
154
|
return this.client.call(
|
|
@@ -177,7 +170,6 @@ export class Locale {
|
|
|
177
170
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
178
171
|
|
|
179
172
|
const apiHeaders: { [header: string]: string } = {
|
|
180
|
-
'content-type': 'application/json',
|
|
181
173
|
}
|
|
182
174
|
|
|
183
175
|
return this.client.call(
|
|
@@ -31,7 +31,6 @@ export class Messaging {
|
|
|
31
31
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32
32
|
|
|
33
33
|
const apiHeaders: { [header: string]: string } = {
|
|
34
|
-
'content-type': 'application/json',
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
return this.client.call(
|
|
@@ -515,7 +514,6 @@ export class Messaging {
|
|
|
515
514
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
516
515
|
|
|
517
516
|
const apiHeaders: { [header: string]: string } = {
|
|
518
|
-
'content-type': 'application/json',
|
|
519
517
|
}
|
|
520
518
|
|
|
521
519
|
return this.client.call(
|
|
@@ -571,7 +569,6 @@ export class Messaging {
|
|
|
571
569
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
572
570
|
|
|
573
571
|
const apiHeaders: { [header: string]: string } = {
|
|
574
|
-
'content-type': 'application/json',
|
|
575
572
|
}
|
|
576
573
|
|
|
577
574
|
return this.client.call(
|
|
@@ -601,7 +598,6 @@ export class Messaging {
|
|
|
601
598
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
602
599
|
|
|
603
600
|
const apiHeaders: { [header: string]: string } = {
|
|
604
|
-
'content-type': 'application/json',
|
|
605
601
|
}
|
|
606
602
|
|
|
607
603
|
return this.client.call(
|
|
@@ -631,7 +627,6 @@ export class Messaging {
|
|
|
631
627
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
632
628
|
|
|
633
629
|
const apiHeaders: { [header: string]: string } = {
|
|
634
|
-
'content-type': 'application/json',
|
|
635
630
|
}
|
|
636
631
|
|
|
637
632
|
return this.client.call(
|
|
@@ -1753,7 +1748,6 @@ export class Messaging {
|
|
|
1753
1748
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1754
1749
|
|
|
1755
1750
|
const apiHeaders: { [header: string]: string } = {
|
|
1756
|
-
'content-type': 'application/json',
|
|
1757
1751
|
}
|
|
1758
1752
|
|
|
1759
1753
|
return this.client.call(
|
|
@@ -1809,7 +1803,6 @@ export class Messaging {
|
|
|
1809
1803
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1810
1804
|
|
|
1811
1805
|
const apiHeaders: { [header: string]: string } = {
|
|
1812
|
-
'content-type': 'application/json',
|
|
1813
1806
|
}
|
|
1814
1807
|
|
|
1815
1808
|
return this.client.call(
|
|
@@ -1839,7 +1832,6 @@ export class Messaging {
|
|
|
1839
1832
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1840
1833
|
|
|
1841
1834
|
const apiHeaders: { [header: string]: string } = {
|
|
1842
|
-
'content-type': 'application/json',
|
|
1843
1835
|
}
|
|
1844
1836
|
|
|
1845
1837
|
return this.client.call(
|
|
@@ -1869,7 +1861,6 @@ export class Messaging {
|
|
|
1869
1861
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1870
1862
|
|
|
1871
1863
|
const apiHeaders: { [header: string]: string } = {
|
|
1872
|
-
'content-type': 'application/json',
|
|
1873
1864
|
}
|
|
1874
1865
|
|
|
1875
1866
|
return this.client.call(
|
|
@@ -1936,7 +1927,6 @@ export class Messaging {
|
|
|
1936
1927
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1937
1928
|
|
|
1938
1929
|
const apiHeaders: { [header: string]: string } = {
|
|
1939
|
-
'content-type': 'application/json',
|
|
1940
1930
|
}
|
|
1941
1931
|
|
|
1942
1932
|
return this.client.call(
|
|
@@ -2027,7 +2017,6 @@ export class Messaging {
|
|
|
2027
2017
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2028
2018
|
|
|
2029
2019
|
const apiHeaders: { [header: string]: string } = {
|
|
2030
|
-
'content-type': 'application/json',
|
|
2031
2020
|
}
|
|
2032
2021
|
|
|
2033
2022
|
return this.client.call(
|
|
@@ -2061,7 +2050,6 @@ export class Messaging {
|
|
|
2061
2050
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2062
2051
|
|
|
2063
2052
|
const apiHeaders: { [header: string]: string } = {
|
|
2064
|
-
'content-type': 'application/json',
|
|
2065
2053
|
}
|
|
2066
2054
|
|
|
2067
2055
|
return this.client.call(
|
|
@@ -2132,7 +2120,6 @@ export class Messaging {
|
|
|
2132
2120
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2133
2121
|
|
|
2134
2122
|
const apiHeaders: { [header: string]: string } = {
|
|
2135
|
-
'content-type': 'application/json',
|
|
2136
2123
|
}
|
|
2137
2124
|
|
|
2138
2125
|
return this.client.call(
|
|
@@ -29,7 +29,6 @@ export class Migrations {
|
|
|
29
29
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30
30
|
|
|
31
31
|
const apiHeaders: { [header: string]: string } = {
|
|
32
|
-
'content-type': 'application/json',
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
return this.client.call(
|
|
@@ -129,7 +128,6 @@ export class Migrations {
|
|
|
129
128
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
130
129
|
|
|
131
130
|
const apiHeaders: { [header: string]: string } = {
|
|
132
|
-
'content-type': 'application/json',
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
return this.client.call(
|
|
@@ -139,6 +137,49 @@ export class Migrations {
|
|
|
139
137
|
payload
|
|
140
138
|
);
|
|
141
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.
|
|
142
|
+
*
|
|
143
|
+
* @param {string} bucketId
|
|
144
|
+
* @param {string} fileId
|
|
145
|
+
* @param {string} resourceId
|
|
146
|
+
* @throws {AppwriteException}
|
|
147
|
+
* @returns {Promise<Models.Migration>}
|
|
148
|
+
*/
|
|
149
|
+
createCsvMigration(bucketId: string, fileId: string, resourceId: string): Promise<Models.Migration> {
|
|
150
|
+
if (typeof bucketId === 'undefined') {
|
|
151
|
+
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
152
|
+
}
|
|
153
|
+
if (typeof fileId === 'undefined') {
|
|
154
|
+
throw new AppwriteException('Missing required parameter: "fileId"');
|
|
155
|
+
}
|
|
156
|
+
if (typeof resourceId === 'undefined') {
|
|
157
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
158
|
+
}
|
|
159
|
+
const apiPath = '/migrations/csv';
|
|
160
|
+
const payload: Payload = {};
|
|
161
|
+
if (typeof bucketId !== 'undefined') {
|
|
162
|
+
payload['bucketId'] = bucketId;
|
|
163
|
+
}
|
|
164
|
+
if (typeof fileId !== 'undefined') {
|
|
165
|
+
payload['fileId'] = fileId;
|
|
166
|
+
}
|
|
167
|
+
if (typeof resourceId !== 'undefined') {
|
|
168
|
+
payload['resourceId'] = resourceId;
|
|
169
|
+
}
|
|
170
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
171
|
+
|
|
172
|
+
const apiHeaders: { [header: string]: string } = {
|
|
173
|
+
'content-type': 'application/json',
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return this.client.call(
|
|
177
|
+
'post',
|
|
178
|
+
uri,
|
|
179
|
+
apiHeaders,
|
|
180
|
+
payload
|
|
181
|
+
);
|
|
182
|
+
}
|
|
142
183
|
/**
|
|
143
184
|
* Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
|
|
144
185
|
*
|
|
@@ -201,7 +242,6 @@ export class Migrations {
|
|
|
201
242
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
202
243
|
|
|
203
244
|
const apiHeaders: { [header: string]: string } = {
|
|
204
|
-
'content-type': 'application/json',
|
|
205
245
|
}
|
|
206
246
|
|
|
207
247
|
return this.client.call(
|
|
@@ -351,7 +391,6 @@ export class Migrations {
|
|
|
351
391
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
352
392
|
|
|
353
393
|
const apiHeaders: { [header: string]: string } = {
|
|
354
|
-
'content-type': 'application/json',
|
|
355
394
|
}
|
|
356
395
|
|
|
357
396
|
return this.client.call(
|
|
@@ -487,7 +526,6 @@ export class Migrations {
|
|
|
487
526
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
488
527
|
|
|
489
528
|
const apiHeaders: { [header: string]: string } = {
|
|
490
|
-
'content-type': 'application/json',
|
|
491
529
|
}
|
|
492
530
|
|
|
493
531
|
return this.client.call(
|
|
@@ -513,7 +551,6 @@ export class Migrations {
|
|
|
513
551
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
514
552
|
|
|
515
553
|
const apiHeaders: { [header: string]: string } = {
|
|
516
|
-
'content-type': 'application/json',
|
|
517
554
|
}
|
|
518
555
|
|
|
519
556
|
return this.client.call(
|
|
@@ -30,7 +30,6 @@ export class Organizations {
|
|
|
30
30
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31
31
|
|
|
32
32
|
const apiHeaders: { [header: string]: string } = {
|
|
33
|
-
'content-type': 'application/json',
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
return this.client.call(
|
|
@@ -154,7 +153,6 @@ export class Organizations {
|
|
|
154
153
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
155
154
|
|
|
156
155
|
const apiHeaders: { [header: string]: string } = {
|
|
157
|
-
'content-type': 'application/json',
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
return this.client.call(
|
|
@@ -184,7 +182,6 @@ export class Organizations {
|
|
|
184
182
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
185
183
|
|
|
186
184
|
const apiHeaders: { [header: string]: string } = {
|
|
187
|
-
'content-type': 'application/json',
|
|
188
185
|
}
|
|
189
186
|
|
|
190
187
|
return this.client.call(
|
|
@@ -273,7 +270,6 @@ export class Organizations {
|
|
|
273
270
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
274
271
|
|
|
275
272
|
const apiHeaders: { [header: string]: string } = {
|
|
276
|
-
'content-type': 'application/json',
|
|
277
273
|
}
|
|
278
274
|
|
|
279
275
|
return this.client.call(
|
|
@@ -374,7 +370,6 @@ export class Organizations {
|
|
|
374
370
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
375
371
|
|
|
376
372
|
const apiHeaders: { [header: string]: string } = {
|
|
377
|
-
'content-type': 'application/json',
|
|
378
373
|
}
|
|
379
374
|
|
|
380
375
|
return this.client.call(
|
|
@@ -437,7 +432,6 @@ export class Organizations {
|
|
|
437
432
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
438
433
|
|
|
439
434
|
const apiHeaders: { [header: string]: string } = {
|
|
440
|
-
'content-type': 'application/json',
|
|
441
435
|
}
|
|
442
436
|
|
|
443
437
|
return this.client.call(
|
|
@@ -467,7 +461,6 @@ export class Organizations {
|
|
|
467
461
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
468
462
|
|
|
469
463
|
const apiHeaders: { [header: string]: string } = {
|
|
470
|
-
'content-type': 'application/json',
|
|
471
464
|
}
|
|
472
465
|
|
|
473
466
|
return this.client.call(
|
|
@@ -497,7 +490,6 @@ export class Organizations {
|
|
|
497
490
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
498
491
|
|
|
499
492
|
const apiHeaders: { [header: string]: string } = {
|
|
500
|
-
'content-type': 'application/json',
|
|
501
493
|
}
|
|
502
494
|
|
|
503
495
|
return this.client.call(
|
|
@@ -527,7 +519,6 @@ export class Organizations {
|
|
|
527
519
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
528
520
|
|
|
529
521
|
const apiHeaders: { [header: string]: string } = {
|
|
530
|
-
'content-type': 'application/json',
|
|
531
522
|
}
|
|
532
523
|
|
|
533
524
|
return this.client.call(
|
|
@@ -624,7 +615,6 @@ export class Organizations {
|
|
|
624
615
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
625
616
|
|
|
626
617
|
const apiHeaders: { [header: string]: string } = {
|
|
627
|
-
'content-type': 'application/json',
|
|
628
618
|
}
|
|
629
619
|
|
|
630
620
|
return this.client.call(
|
|
@@ -773,7 +763,6 @@ export class Organizations {
|
|
|
773
763
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
774
764
|
|
|
775
765
|
const apiHeaders: { [header: string]: string } = {
|
|
776
|
-
'content-type': 'application/json',
|
|
777
766
|
}
|
|
778
767
|
|
|
779
768
|
return this.client.call(
|
|
@@ -799,7 +788,6 @@ export class Organizations {
|
|
|
799
788
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
800
789
|
|
|
801
790
|
const apiHeaders: { [header: string]: string } = {
|
|
802
|
-
'content-type': 'application/json',
|
|
803
791
|
}
|
|
804
792
|
|
|
805
793
|
return this.client.call(
|
|
@@ -882,7 +870,6 @@ export class Organizations {
|
|
|
882
870
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
883
871
|
|
|
884
872
|
const apiHeaders: { [header: string]: string } = {
|
|
885
|
-
'content-type': 'application/json',
|
|
886
873
|
}
|
|
887
874
|
|
|
888
875
|
return this.client.call(
|
|
@@ -925,38 +912,4 @@ export class Organizations {
|
|
|
925
912
|
payload
|
|
926
913
|
);
|
|
927
914
|
}
|
|
928
|
-
/**
|
|
929
|
-
* Get the usage data for an organization.
|
|
930
|
-
*
|
|
931
|
-
* @param {string} organizationId
|
|
932
|
-
* @param {string} startDate
|
|
933
|
-
* @param {string} endDate
|
|
934
|
-
* @throws {AppwriteException}
|
|
935
|
-
* @returns {Promise<Models.UsageOrganization>}
|
|
936
|
-
*/
|
|
937
|
-
getUsage(organizationId: string, startDate?: string, endDate?: string): Promise<Models.UsageOrganization> {
|
|
938
|
-
if (typeof organizationId === 'undefined') {
|
|
939
|
-
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
940
|
-
}
|
|
941
|
-
const apiPath = '/organizations/{organizationId}/usage'.replace('{organizationId}', organizationId);
|
|
942
|
-
const payload: Payload = {};
|
|
943
|
-
if (typeof startDate !== 'undefined') {
|
|
944
|
-
payload['startDate'] = startDate;
|
|
945
|
-
}
|
|
946
|
-
if (typeof endDate !== 'undefined') {
|
|
947
|
-
payload['endDate'] = endDate;
|
|
948
|
-
}
|
|
949
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
950
|
-
|
|
951
|
-
const apiHeaders: { [header: string]: string } = {
|
|
952
|
-
'content-type': 'application/json',
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
return this.client.call(
|
|
956
|
-
'get',
|
|
957
|
-
uri,
|
|
958
|
-
apiHeaders,
|
|
959
|
-
payload
|
|
960
|
-
);
|
|
961
|
-
}
|
|
962
915
|
}
|