@appwrite.io/console 0.6.0-rc.11 → 0.6.0-rc.12
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/README.md +2 -2
- package/dist/cjs/sdk.js +291 -196
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +292 -197
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +291 -196
- package/docs/examples/account/add-authenticator.md +8 -13
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-o-auth2session.md +11 -9
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/create2f-a-challenge.md +8 -13
- package/docs/examples/account/delete-authenticator.md +9 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-factors.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-challenge.md +9 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/account/verify-authenticator.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +8 -13
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +9 -13
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +19 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-a-p-n-s-provider.md +14 -13
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-f-c-m-provider.md +11 -13
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +9 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-authenticator.md +10 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-factors.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/{s-m-t-p-encryption.ts → encryption.ts} +1 -1
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +32 -0
- package/src/enums/{s-m-s-template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{s-m-s-template-type.ts → sms-template-type.ts} +1 -1
- package/src/index.ts +4 -4
- package/src/services/messaging.ts +94 -29
- package/src/services/projects.ts +14 -14
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/{s-m-t-p-encryption.d.ts → encryption.d.ts} +1 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +33 -1
- package/types/enums/{s-m-s-template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/{s-m-s-template-type.d.ts → sms-template-type.d.ts} +1 -1
- package/types/index.d.ts +4 -4
- package/types/services/messaging.d.ts +82 -29
- package/types/services/projects.d.ts +14 -14
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getDB();
|
|
9
|
+
const result = await health.getDB();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { Client, ,
|
|
1
|
+
import { Client, Health, } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getFailedJobs(.V1Database);
|
|
9
|
+
const result = await health.getFailedJobs(
|
|
10
|
+
.V1Database, // name
|
|
11
|
+
null // threshold (optional)
|
|
12
|
+
);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
14
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getPubSub();
|
|
9
|
+
const result = await health.getPubSub();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueBuilds();
|
|
9
|
+
const result = await health.getQueueBuilds(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueCertificates();
|
|
9
|
+
const result = await health.getQueueCertificates(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueDatabases();
|
|
9
|
+
const result = await health.getQueueDatabases(
|
|
10
|
+
'[NAME]', // name (optional)
|
|
11
|
+
null // threshold (optional)
|
|
12
|
+
);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
14
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueDeletes();
|
|
9
|
+
const result = await health.getQueueDeletes(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueFunctions();
|
|
9
|
+
const result = await health.getQueueFunctions(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueLogs();
|
|
9
|
+
const result = await health.getQueueLogs(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueMails();
|
|
9
|
+
const result = await health.getQueueMails(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueMessaging();
|
|
9
|
+
const result = await health.getQueueMessaging(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueMigrations();
|
|
9
|
+
const result = await health.getQueueMigrations(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueueWebhooks();
|
|
9
|
+
const result = await health.getQueueWebhooks(
|
|
10
|
+
null // threshold (optional)
|
|
11
|
+
);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
13
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getQueue();
|
|
9
|
+
const result = await health.getQueue();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getStorageLocal();
|
|
9
|
+
const result = await health.getStorageLocal();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.getTime();
|
|
9
|
+
const result = await health.getTime();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Health } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const health = new Health(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = health.get();
|
|
9
|
+
const result = await health.get();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.get();
|
|
9
|
+
const result = await locale.get();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listCodes();
|
|
9
|
+
const result = await locale.listCodes();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listContinents();
|
|
9
|
+
const result = await locale.listContinents();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listCountriesEU();
|
|
9
|
+
const result = await locale.listCountriesEU();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listCountriesPhones();
|
|
9
|
+
const result = await locale.listCountriesPhones();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listCountries();
|
|
9
|
+
const result = await locale.listCountries();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { Client,
|
|
1
|
+
import { Client, Locale } from "@appwrite.io/console";
|
|
2
2
|
|
|
3
|
-
const client = new Client()
|
|
3
|
+
const client = new Client()
|
|
4
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
+
.setProject('5df5acd0d48c2'); // Your project ID
|
|
4
6
|
|
|
5
7
|
const locale = new Locale(client);
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = locale.listCurrencies();
|
|
9
|
+
const result = await locale.listCurrencies();
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|
|
11
|
+
console.log(response);
|