@appconda/nextjs 1.0.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/.github/workflows/autoclose.yml +11 -0
- package/.github/workflows/publish.yml +42 -0
- package/.travis.yml +32 -0
- package/CHANGELOG.md +1 -0
- package/LICENSE +12 -0
- package/README.md +0 -0
- package/dist/cjs/sdk.js +10608 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/esm/sdk.js +10589 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/iife/sdk.js +10609 -0
- package/docs/examples/account/create-anonymous-session.md +11 -0
- package/docs/examples/account/create-email-password-session.md +14 -0
- package/docs/examples/account/create-email-token.md +15 -0
- package/docs/examples/account/create-j-w-t.md +11 -0
- package/docs/examples/account/create-magic-u-r-l-token.md +16 -0
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +15 -0
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +14 -0
- package/docs/examples/account/create-phone-verification.md +11 -0
- package/docs/examples/account/create-push-target.md +15 -0
- package/docs/examples/account/create-recovery.md +14 -0
- package/docs/examples/account/create-session.md +14 -0
- package/docs/examples/account/create-verification.md +13 -0
- package/docs/examples/account/create.md +16 -0
- package/docs/examples/account/delete-identity.md +13 -0
- package/docs/examples/account/delete-mfa-authenticator.md +13 -0
- package/docs/examples/account/delete-push-target.md +13 -0
- package/docs/examples/account/delete-session.md +13 -0
- package/docs/examples/account/delete-sessions.md +11 -0
- package/docs/examples/account/delete.md +11 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +11 -0
- package/docs/examples/account/get-session.md +13 -0
- package/docs/examples/account/get.md +11 -0
- package/docs/examples/account/list-identities.md +13 -0
- package/docs/examples/account/list-logs.md +13 -0
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +11 -0
- package/docs/examples/account/update-email.md +14 -0
- package/docs/examples/account/update-m-f-a.md +13 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +14 -0
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +13 -0
- package/docs/examples/account/update-password.md +14 -0
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +14 -0
- package/docs/examples/account/update-phone.md +14 -0
- package/docs/examples/account/update-prefs.md +13 -0
- package/docs/examples/account/update-push-target.md +14 -0
- package/docs/examples/account/update-recovery.md +15 -0
- package/docs/examples/account/update-session.md +13 -0
- package/docs/examples/account/update-status.md +11 -0
- package/docs/examples/account/update-verification.md +14 -0
- package/docs/examples/assistant/chat.md +13 -0
- package/docs/examples/avatars/get-browser.md +16 -0
- package/docs/examples/avatars/get-credit-card.md +16 -0
- package/docs/examples/avatars/get-favicon.md +13 -0
- package/docs/examples/avatars/get-flag.md +16 -0
- package/docs/examples/avatars/get-image.md +15 -0
- package/docs/examples/avatars/get-initials.md +16 -0
- package/docs/examples/avatars/get-q-r.md +16 -0
- package/docs/examples/console/variables.md +11 -0
- package/docs/examples/databases/create-boolean-attribute.md +18 -0
- package/docs/examples/databases/create-collection.md +18 -0
- package/docs/examples/databases/create-datetime-attribute.md +18 -0
- package/docs/examples/databases/create-document.md +17 -0
- package/docs/examples/databases/create-email-attribute.md +18 -0
- package/docs/examples/databases/create-enum-attribute.md +19 -0
- package/docs/examples/databases/create-float-attribute.md +20 -0
- package/docs/examples/databases/create-index.md +18 -0
- package/docs/examples/databases/create-integer-attribute.md +20 -0
- package/docs/examples/databases/create-ip-attribute.md +18 -0
- package/docs/examples/databases/create-relationship-attribute.md +20 -0
- package/docs/examples/databases/create-string-attribute.md +20 -0
- package/docs/examples/databases/create-url-attribute.md +18 -0
- package/docs/examples/databases/create.md +15 -0
- package/docs/examples/databases/delete-attribute.md +15 -0
- package/docs/examples/databases/delete-collection.md +14 -0
- package/docs/examples/databases/delete-document.md +15 -0
- package/docs/examples/databases/delete-index.md +15 -0
- package/docs/examples/databases/delete.md +13 -0
- package/docs/examples/databases/get-attribute.md +15 -0
- package/docs/examples/databases/get-collection-usage.md +15 -0
- package/docs/examples/databases/get-collection.md +14 -0
- package/docs/examples/databases/get-database-usage.md +14 -0
- package/docs/examples/databases/get-document.md +16 -0
- package/docs/examples/databases/get-index.md +15 -0
- package/docs/examples/databases/get-usage.md +13 -0
- package/docs/examples/databases/get.md +13 -0
- package/docs/examples/databases/list-attributes.md +15 -0
- package/docs/examples/databases/list-collection-logs.md +15 -0
- package/docs/examples/databases/list-collections.md +15 -0
- package/docs/examples/databases/list-document-logs.md +16 -0
- package/docs/examples/databases/list-documents.md +15 -0
- package/docs/examples/databases/list-indexes.md +15 -0
- package/docs/examples/databases/list-logs.md +14 -0
- package/docs/examples/databases/list.md +14 -0
- package/docs/examples/databases/update-boolean-attribute.md +17 -0
- package/docs/examples/databases/update-collection.md +18 -0
- package/docs/examples/databases/update-datetime-attribute.md +17 -0
- package/docs/examples/databases/update-document.md +17 -0
- package/docs/examples/databases/update-email-attribute.md +17 -0
- package/docs/examples/databases/update-enum-attribute.md +18 -0
- package/docs/examples/databases/update-float-attribute.md +19 -0
- package/docs/examples/databases/update-integer-attribute.md +19 -0
- package/docs/examples/databases/update-ip-attribute.md +17 -0
- package/docs/examples/databases/update-relationship-attribute.md +16 -0
- package/docs/examples/databases/update-string-attribute.md +17 -0
- package/docs/examples/databases/update-url-attribute.md +17 -0
- package/docs/examples/databases/update.md +15 -0
- package/docs/examples/functions/create-build.md +15 -0
- package/docs/examples/functions/create-deployment.md +17 -0
- package/docs/examples/functions/create-execution.md +19 -0
- package/docs/examples/functions/create-variable.md +15 -0
- package/docs/examples/functions/create.md +34 -0
- package/docs/examples/functions/delete-deployment.md +14 -0
- package/docs/examples/functions/delete-execution.md +14 -0
- package/docs/examples/functions/delete-variable.md +14 -0
- package/docs/examples/functions/delete.md +13 -0
- package/docs/examples/functions/get-deployment-download.md +14 -0
- package/docs/examples/functions/get-deployment.md +14 -0
- package/docs/examples/functions/get-execution.md +14 -0
- package/docs/examples/functions/get-function-usage.md +14 -0
- package/docs/examples/functions/get-template.md +13 -0
- package/docs/examples/functions/get-usage.md +13 -0
- package/docs/examples/functions/get-variable.md +14 -0
- package/docs/examples/functions/get.md +13 -0
- package/docs/examples/functions/list-deployments.md +15 -0
- package/docs/examples/functions/list-executions.md +15 -0
- package/docs/examples/functions/list-runtimes.md +11 -0
- package/docs/examples/functions/list-specifications.md +11 -0
- package/docs/examples/functions/list-templates.md +16 -0
- package/docs/examples/functions/list-variables.md +13 -0
- package/docs/examples/functions/list.md +14 -0
- package/docs/examples/functions/update-deployment-build.md +14 -0
- package/docs/examples/functions/update-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +16 -0
- package/docs/examples/functions/update.md +30 -0
- package/docs/examples/graphql/mutation.md +13 -0
- package/docs/examples/graphql/query.md +13 -0
- package/docs/examples/health/get-antivirus.md +11 -0
- package/docs/examples/health/get-cache.md +11 -0
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +11 -0
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +11 -0
- package/docs/examples/health/get-queue-builds.md +13 -0
- package/docs/examples/health/get-queue-certificates.md +13 -0
- package/docs/examples/health/get-queue-databases.md +14 -0
- package/docs/examples/health/get-queue-deletes.md +13 -0
- package/docs/examples/health/get-queue-functions.md +13 -0
- package/docs/examples/health/get-queue-logs.md +13 -0
- package/docs/examples/health/get-queue-mails.md +13 -0
- package/docs/examples/health/get-queue-messaging.md +13 -0
- package/docs/examples/health/get-queue-migrations.md +13 -0
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +13 -0
- package/docs/examples/health/get-queue.md +11 -0
- package/docs/examples/health/get-storage-local.md +11 -0
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +11 -0
- package/docs/examples/health/get.md +11 -0
- package/docs/examples/locale/get.md +11 -0
- package/docs/examples/locale/list-codes.md +11 -0
- package/docs/examples/locale/list-continents.md +11 -0
- package/docs/examples/locale/list-countries-e-u.md +11 -0
- package/docs/examples/locale/list-countries-phones.md +11 -0
- package/docs/examples/locale/list-countries.md +11 -0
- package/docs/examples/locale/list-currencies.md +11 -0
- package/docs/examples/locale/list-languages.md +11 -0
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +24 -0
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +22 -0
- package/docs/examples/messaging/create-msg91provider.md +18 -0
- package/docs/examples/messaging/create-push.md +28 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +20 -0
- 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 +15 -0
- package/docs/examples/messaging/create-telesign-provider.md +18 -0
- package/docs/examples/messaging/create-textmagic-provider.md +18 -0
- package/docs/examples/messaging/create-topic.md +15 -0
- package/docs/examples/messaging/create-twilio-provider.md +18 -0
- package/docs/examples/messaging/create-vonage-provider.md +18 -0
- package/docs/examples/messaging/delete-provider.md +13 -0
- package/docs/examples/messaging/delete-subscriber.md +14 -0
- package/docs/examples/messaging/delete-topic.md +13 -0
- package/docs/examples/messaging/delete.md +13 -0
- package/docs/examples/messaging/get-message.md +13 -0
- package/docs/examples/messaging/get-provider.md +13 -0
- package/docs/examples/messaging/get-subscriber.md +14 -0
- package/docs/examples/messaging/get-topic.md +13 -0
- package/docs/examples/messaging/list-message-logs.md +14 -0
- package/docs/examples/messaging/list-messages.md +14 -0
- package/docs/examples/messaging/list-provider-logs.md +14 -0
- package/docs/examples/messaging/list-providers.md +14 -0
- package/docs/examples/messaging/list-subscriber-logs.md +14 -0
- package/docs/examples/messaging/list-subscribers.md +15 -0
- package/docs/examples/messaging/list-targets.md +14 -0
- package/docs/examples/messaging/list-topic-logs.md +14 -0
- package/docs/examples/messaging/list-topics.md +14 -0
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +24 -0
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +22 -0
- package/docs/examples/messaging/update-msg91provider.md +18 -0
- package/docs/examples/messaging/update-push.md +28 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +20 -0
- 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 +18 -0
- package/docs/examples/messaging/update-textmagic-provider.md +18 -0
- package/docs/examples/messaging/update-topic.md +15 -0
- package/docs/examples/messaging/update-twilio-provider.md +18 -0
- package/docs/examples/messaging/update-vonage-provider.md +18 -0
- package/docs/examples/migrations/create-appwrite-migration.md +16 -0
- package/docs/examples/migrations/create-firebase-migration.md +14 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +14 -0
- package/docs/examples/migrations/create-n-host-migration.md +20 -0
- package/docs/examples/migrations/create-supabase-migration.md +19 -0
- package/docs/examples/migrations/delete-firebase-auth.md +11 -0
- package/docs/examples/migrations/delete.md +13 -0
- package/docs/examples/migrations/get-appwrite-report.md +16 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +14 -0
- package/docs/examples/migrations/get-firebase-report.md +14 -0
- package/docs/examples/migrations/get-n-host-report.md +20 -0
- package/docs/examples/migrations/get-supabase-report.md +19 -0
- package/docs/examples/migrations/get.md +13 -0
- package/docs/examples/migrations/list-firebase-projects.md +11 -0
- package/docs/examples/migrations/list.md +14 -0
- package/docs/examples/migrations/retry.md +13 -0
- package/docs/examples/project/create-variable.md +14 -0
- package/docs/examples/project/delete-variable.md +13 -0
- package/docs/examples/project/get-usage.md +15 -0
- package/docs/examples/project/get-variable.md +13 -0
- package/docs/examples/project/list-variables.md +11 -0
- package/docs/examples/project/update-variable.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +15 -0
- package/docs/examples/projects/create-key.md +16 -0
- package/docs/examples/projects/create-platform.md +18 -0
- package/docs/examples/projects/create-smtp-test.md +22 -0
- package/docs/examples/projects/create-webhook.md +20 -0
- package/docs/examples/projects/create.md +25 -0
- package/docs/examples/projects/delete-email-template.md +15 -0
- package/docs/examples/projects/delete-key.md +14 -0
- package/docs/examples/projects/delete-platform.md +14 -0
- package/docs/examples/projects/delete-sms-template.md +15 -0
- package/docs/examples/projects/delete-webhook.md +14 -0
- package/docs/examples/projects/delete.md +13 -0
- package/docs/examples/projects/get-email-template.md +15 -0
- package/docs/examples/projects/get-key.md +14 -0
- package/docs/examples/projects/get-platform.md +14 -0
- package/docs/examples/projects/get-sms-template.md +15 -0
- package/docs/examples/projects/get-webhook.md +14 -0
- package/docs/examples/projects/get.md +13 -0
- package/docs/examples/projects/list-keys.md +13 -0
- package/docs/examples/projects/list-platforms.md +13 -0
- package/docs/examples/projects/list-webhooks.md +13 -0
- package/docs/examples/projects/list.md +14 -0
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +14 -0
- package/docs/examples/projects/update-auth-limit.md +14 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +14 -0
- package/docs/examples/projects/update-auth-password-history.md +14 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +14 -0
- package/docs/examples/projects/update-auth-status.md +15 -0
- package/docs/examples/projects/update-email-template.md +20 -0
- package/docs/examples/projects/update-key.md +17 -0
- package/docs/examples/projects/update-mock-numbers.md +14 -0
- package/docs/examples/projects/update-o-auth2.md +17 -0
- package/docs/examples/projects/update-personal-data-check.md +14 -0
- package/docs/examples/projects/update-platform.md +18 -0
- package/docs/examples/projects/update-service-status-all.md +14 -0
- package/docs/examples/projects/update-service-status.md +15 -0
- package/docs/examples/projects/update-session-alerts.md +14 -0
- package/docs/examples/projects/update-sms-template.md +16 -0
- package/docs/examples/projects/update-smtp.md +22 -0
- package/docs/examples/projects/update-team.md +14 -0
- package/docs/examples/projects/update-webhook-signature.md +14 -0
- package/docs/examples/projects/update-webhook.md +21 -0
- package/docs/examples/projects/update.md +23 -0
- package/docs/examples/proxy/create-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +13 -0
- package/docs/examples/proxy/get-rule.md +13 -0
- package/docs/examples/proxy/list-rules.md +14 -0
- package/docs/examples/proxy/update-rule-verification.md +13 -0
- package/docs/examples/storage/create-bucket.md +22 -0
- package/docs/examples/storage/create-file.md +16 -0
- package/docs/examples/storage/delete-bucket.md +13 -0
- package/docs/examples/storage/delete-file.md +14 -0
- package/docs/examples/storage/get-bucket-usage.md +14 -0
- package/docs/examples/storage/get-bucket.md +13 -0
- package/docs/examples/storage/get-file-download.md +14 -0
- package/docs/examples/storage/get-file-preview.md +25 -0
- package/docs/examples/storage/get-file-view.md +14 -0
- package/docs/examples/storage/get-file.md +14 -0
- package/docs/examples/storage/get-usage.md +13 -0
- package/docs/examples/storage/list-buckets.md +14 -0
- package/docs/examples/storage/list-files.md +15 -0
- package/docs/examples/storage/update-bucket.md +22 -0
- package/docs/examples/storage/update-file.md +16 -0
- package/docs/examples/teams/create-membership.md +19 -0
- package/docs/examples/teams/create.md +15 -0
- package/docs/examples/teams/delete-membership.md +14 -0
- package/docs/examples/teams/delete.md +13 -0
- package/docs/examples/teams/get-membership.md +14 -0
- package/docs/examples/teams/get-prefs.md +13 -0
- package/docs/examples/teams/get.md +13 -0
- package/docs/examples/teams/list-logs.md +14 -0
- package/docs/examples/teams/list-memberships.md +15 -0
- package/docs/examples/teams/list.md +14 -0
- package/docs/examples/teams/update-membership-status.md +16 -0
- package/docs/examples/teams/update-membership.md +15 -0
- package/docs/examples/teams/update-name.md +14 -0
- package/docs/examples/teams/update-prefs.md +14 -0
- package/docs/examples/users/create-argon2user.md +16 -0
- package/docs/examples/users/create-bcrypt-user.md +16 -0
- package/docs/examples/users/create-j-w-t.md +15 -0
- package/docs/examples/users/create-m-d5user.md +16 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +16 -0
- package/docs/examples/users/create-s-h-a-user.md +17 -0
- package/docs/examples/users/create-scrypt-modified-user.md +19 -0
- package/docs/examples/users/create-scrypt-user.md +21 -0
- package/docs/examples/users/create-session.md +13 -0
- package/docs/examples/users/create-target.md +18 -0
- package/docs/examples/users/create-token.md +15 -0
- package/docs/examples/users/create.md +17 -0
- package/docs/examples/users/delete-identity.md +13 -0
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +14 -0
- package/docs/examples/users/delete-sessions.md +13 -0
- package/docs/examples/users/delete-target.md +14 -0
- package/docs/examples/users/delete.md +13 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +13 -0
- package/docs/examples/users/get-target.md +14 -0
- package/docs/examples/users/get-usage.md +13 -0
- package/docs/examples/users/get.md +13 -0
- package/docs/examples/users/list-identities.md +14 -0
- package/docs/examples/users/list-logs.md +14 -0
- package/docs/examples/users/list-memberships.md +13 -0
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +13 -0
- package/docs/examples/users/list-targets.md +14 -0
- package/docs/examples/users/list.md +14 -0
- package/docs/examples/users/update-email-verification.md +14 -0
- package/docs/examples/users/update-email.md +14 -0
- package/docs/examples/users/update-labels.md +14 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +14 -0
- package/docs/examples/users/update-name.md +14 -0
- package/docs/examples/users/update-password.md +14 -0
- package/docs/examples/users/update-phone-verification.md +14 -0
- package/docs/examples/users/update-phone.md +14 -0
- package/docs/examples/users/update-prefs.md +14 -0
- package/docs/examples/users/update-status.md +14 -0
- package/docs/examples/users/update-target.md +17 -0
- package/docs/examples/vcs/create-repository-detection.md +15 -0
- package/docs/examples/vcs/create-repository.md +15 -0
- package/docs/examples/vcs/delete-installation.md +13 -0
- package/docs/examples/vcs/get-installation.md +13 -0
- package/docs/examples/vcs/get-repository-contents.md +15 -0
- package/docs/examples/vcs/get-repository.md +14 -0
- package/docs/examples/vcs/list-installations.md +14 -0
- package/docs/examples/vcs/list-repositories.md +14 -0
- package/docs/examples/vcs/list-repository-branches.md +14 -0
- package/docs/examples/vcs/update-external-deployments.md +15 -0
- package/package.json +42 -0
- package/publish.sh +4 -0
- package/rollup.config.js +27 -0
- package/src/Cache/Adapter.ts +11 -0
- package/src/Cache/Adapters/Filesystem.ts +126 -0
- package/src/Cache/Adapters/Memory.ts +57 -0
- package/src/Cache/Adapters/None.ts +36 -0
- package/src/Cache/Adapters/Redis.ts +106 -0
- package/src/Cache/Adapters/Sharding.ts +87 -0
- package/src/Cache/Cache.ts +75 -0
- package/src/Cache/index.ts +5 -0
- package/src/Cache/test.ts +0 -0
- package/src/Services.ts +41 -0
- package/src/client.ts +397 -0
- package/src/decorators/Cache.ts +102 -0
- package/src/decorators/CacheKey.ts +9 -0
- package/src/decorators/Invalidate.ts +68 -0
- package/src/enums/api-service.ts +13 -0
- package/src/enums/api.ts +5 -0
- package/src/enums/auth-method.ts +9 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/browser.ts +16 -0
- package/src/enums/compression.ts +5 -0
- package/src/enums/credit-card.ts +18 -0
- package/src/enums/database-usage-range.ts +5 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +9 -0
- package/src/enums/entities/EntityLimitType.ts +4 -0
- package/src/enums/entities/PropertyAttributeName.ts +27 -0
- package/src/enums/entities/PropertyCondition.ts +8 -0
- package/src/enums/entities/PropertyType.ts +16 -0
- package/src/enums/entities/PropertyValueType.ts +6 -0
- package/src/enums/entities/RowAccess.ts +2 -0
- package/src/enums/entities/ViewFilterCondition.ts +12 -0
- package/src/enums/execution-method.ts +8 -0
- package/src/enums/flag.ts +197 -0
- package/src/enums/function-usage-range.ts +5 -0
- package/src/enums/image-format.ts +7 -0
- package/src/enums/image-gravity.ts +11 -0
- package/src/enums/index-type.ts +5 -0
- package/src/enums/messaging-provider-type.ts +5 -0
- package/src/enums/name.ts +14 -0
- package/src/enums/o-auth-provider copy.ts +41 -0
- package/src/enums/o-auth-provider.ts +41 -0
- package/src/enums/password-hash.ts +13 -0
- package/src/enums/platform-type.ts +17 -0
- package/src/enums/project-usage-range.ts +4 -0
- package/src/enums/region.ts +4 -0
- package/src/enums/relation-mutate.ts +5 -0
- package/src/enums/relationship-type.ts +6 -0
- package/src/enums/resource-type.ts +4 -0
- package/src/enums/runtime.ts +48 -0
- package/src/enums/s-m-t-p-secure.ts +3 -0
- package/src/enums/shared/ApplicationLayout.ts +4 -0
- package/src/enums/shared/Colors.ts +24 -0
- package/src/enums/shared/InputType.ts +6 -0
- package/src/enums/shared/Periodicity.ts +7 -0
- package/src/enums/shared/SvgIcon.ts +37 -0
- package/src/enums/shared/Theme.ts +4 -0
- package/src/enums/sms-template-locale.ts +133 -0
- package/src/enums/sms-template-type.ts +6 -0
- package/src/enums/smtp-encryption.ts +5 -0
- package/src/enums/storage-usage-range.ts +5 -0
- package/src/enums/subscriptions/PricingModel.ts +14 -0
- package/src/enums/subscriptions/SubscriptionBillingPeriod.ts +15 -0
- package/src/enums/subscriptions/SubscriptionFeatureLimitType.ts +16 -0
- package/src/enums/subscriptions/SubscriptionPriceType.ts +10 -0
- package/src/enums/tenants/LinkedAccountStatus.ts +5 -0
- package/src/enums/tenants/TenantUserJoined.ts +6 -0
- package/src/enums/tenants/TenantUserStatus.ts +6 -0
- package/src/enums/tenants/TenantUserType.ts +5 -0
- package/src/enums/user-usage-range.ts +5 -0
- package/src/id.ts +47 -0
- package/src/index.ts +36 -0
- package/src/inputFile.ts +23 -0
- package/src/lib/Registry/Registry.ts +66 -0
- package/src/lib/Registry/index.ts +1 -0
- package/src/models.ts +3339 -0
- package/src/permission.ts +57 -0
- package/src/query.ts +261 -0
- package/src/role.ts +100 -0
- package/src/service-client.ts +29 -0
- package/src/service.ts +30 -0
- package/src/services/account.ts +1643 -0
- package/src/services/applets.ts +75 -0
- package/src/services/avatars.ts +314 -0
- package/src/services/community.ts +102 -0
- package/src/services/configuration.ts +15 -0
- package/src/services/databases.ts +2037 -0
- package/src/services/functions.ts +986 -0
- package/src/services/graphql.ts +75 -0
- package/src/services/health.ts +629 -0
- package/src/services/locale.ts +205 -0
- package/src/services/messaging.ts +2247 -0
- package/src/services/node.ts +15 -0
- package/src/services/permissions.ts +131 -0
- package/src/services/pricing.ts +30 -0
- package/src/services/projects.ts +1901 -0
- package/src/services/roles.ts +101 -0
- package/src/services/schema.ts +65 -0
- package/src/services/storage.ts +576 -0
- package/src/services/subscription.ts +40 -0
- package/src/services/teams.ts +490 -0
- package/src/services/tenant-subscription.ts +93 -0
- package/src/services/tenant.ts +194 -0
- package/src/services/users.ts +1584 -0
- package/tsconfig.json +29 -0
- package/types/Cache/Adapter.d.ts +10 -0
- package/types/Cache/Adapters/Filesystem.d.ts +16 -0
- package/types/Cache/Adapters/Memory.d.ts +18 -0
- package/types/Cache/Adapters/None.d.ts +12 -0
- package/types/Cache/Adapters/Redis.d.ts +14 -0
- package/types/Cache/Adapters/Sharding.d.ts +17 -0
- package/types/Cache/Cache.d.ts +16 -0
- package/types/Cache/index.d.ts +5 -0
- package/types/Cache/test.d.ts +0 -0
- package/types/Services.d.ts +6 -0
- package/types/client.d.ts +141 -0
- package/types/decorators/Cache.d.ts +1 -0
- package/types/decorators/CacheKey.d.ts +1 -0
- package/types/decorators/Invalidate.d.ts +1 -0
- package/types/enums/api-service.d.ts +13 -0
- package/types/enums/api.d.ts +5 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/database-usage-range.d.ts +5 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +9 -0
- package/types/enums/entities/EntityLimitType.d.ts +4 -0
- package/types/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/types/enums/entities/PropertyCondition.d.ts +7 -0
- package/types/enums/entities/PropertyType.d.ts +12 -0
- package/types/enums/entities/PropertyValueType.d.ts +6 -0
- package/types/enums/entities/RowAccess.d.ts +2 -0
- package/types/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/function-usage-range.d.ts +5 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-type.d.ts +5 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/name.d.ts +14 -0
- package/types/enums/o-auth-provider copy.d.ts +41 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/enums/password-hash.d.ts +13 -0
- package/types/enums/platform-type.d.ts +17 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/region.d.ts +4 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +4 -0
- package/types/enums/runtime.d.ts +48 -0
- package/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/types/enums/shared/ApplicationLayout.d.ts +4 -0
- package/types/enums/shared/Colors.d.ts +24 -0
- package/types/enums/shared/InputType.d.ts +6 -0
- package/types/enums/shared/Periodicity.d.ts +7 -0
- package/types/enums/shared/SvgIcon.d.ts +37 -0
- package/types/enums/shared/Theme.d.ts +4 -0
- package/types/enums/sms-template-locale.d.ts +133 -0
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/smtp-encryption.d.ts +5 -0
- package/types/enums/storage-usage-range.d.ts +5 -0
- package/types/enums/subscriptions/PricingModel.d.ts +11 -0
- package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/types/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/types/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/types/enums/tenants/TenantUserType.d.ts +5 -0
- package/types/enums/user-usage-range.d.ts +5 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +36 -0
- package/types/inputFile.d.ts +6 -0
- package/types/lib/Registry/Registry.d.ts +38 -0
- package/types/lib/Registry/index.d.ts +1 -0
- package/types/models.d.ts +3272 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +194 -0
- package/types/role.d.ts +70 -0
- package/types/service-client.d.ts +7 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +530 -0
- package/types/services/acl.d.ts +28 -0
- package/types/services/applets.d.ts +9 -0
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +115 -0
- package/types/services/community.d.ts +19 -0
- package/types/services/configuration.d.ts +5 -0
- package/types/services/console.d.ts +15 -0
- package/types/services/databases.d.ts +613 -0
- package/types/services/functions.d.ts +319 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/health.d.ts +231 -0
- package/types/services/locale.d.ts +80 -0
- package/types/services/messaging.d.ts +685 -0
- package/types/services/migrations.d.ts +185 -0
- package/types/services/node.d.ts +5 -0
- package/types/services/permissions.d.ts +20 -0
- package/types/services/pricing.d.ts +15 -0
- package/types/services/project.d.ts +70 -0
- package/types/services/projects.d.ts +542 -0
- package/types/services/proxy.d.ts +59 -0
- package/types/services/roles.d.ts +19 -0
- package/types/services/schema.d.ts +17 -0
- package/types/services/storage.d.ts +189 -0
- package/types/services/subscription-product.d.ts +77 -0
- package/types/services/subscription.d.ts +15 -0
- package/types/services/teams.d.ts +167 -0
- package/types/services/tenant-subscription.d.ts +12 -0
- package/types/services/tenant.d.ts +32 -0
- package/types/services/users.d.ts +499 -0
- package/types/services/vcs.d.ts +108 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
import { AppcondaException, Client, type Payload, UploadProgress } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
|
4
|
+
export class Graphql {
|
5
|
+
client: Client;
|
6
|
+
|
7
|
+
constructor(client: Client) {
|
8
|
+
this.client = client;
|
9
|
+
}
|
10
|
+
|
11
|
+
/**
|
12
|
+
* GraphQL endpoint
|
13
|
+
*
|
14
|
+
* Execute a GraphQL mutation.
|
15
|
+
*
|
16
|
+
* @param {object} query
|
17
|
+
* @throws {AppcondaException}
|
18
|
+
* @returns {Promise<{}>}
|
19
|
+
*/
|
20
|
+
async query(query: object): Promise<{}> {
|
21
|
+
if (typeof query === 'undefined') {
|
22
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
23
|
+
}
|
24
|
+
const apiPath = '/graphql';
|
25
|
+
const payload: Payload = {};
|
26
|
+
if (typeof query !== 'undefined') {
|
27
|
+
payload['query'] = query;
|
28
|
+
}
|
29
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
30
|
+
|
31
|
+
const apiHeaders: { [header: string]: string } = {
|
32
|
+
'x-sdk-graphql': 'true',
|
33
|
+
'content-type': 'application/json',
|
34
|
+
}
|
35
|
+
|
36
|
+
return await this.client.call(
|
37
|
+
'post',
|
38
|
+
uri,
|
39
|
+
apiHeaders,
|
40
|
+
payload,
|
41
|
+
);
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* GraphQL endpoint
|
45
|
+
*
|
46
|
+
* Execute a GraphQL mutation.
|
47
|
+
*
|
48
|
+
* @param {object} query
|
49
|
+
* @throws {AppcondaException}
|
50
|
+
* @returns {Promise<{}>}
|
51
|
+
*/
|
52
|
+
async mutation(query: object): Promise<{}> {
|
53
|
+
if (typeof query === 'undefined') {
|
54
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
55
|
+
}
|
56
|
+
const apiPath = '/graphql/mutation';
|
57
|
+
const payload: Payload = {};
|
58
|
+
if (typeof query !== 'undefined') {
|
59
|
+
payload['query'] = query;
|
60
|
+
}
|
61
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
62
|
+
|
63
|
+
const apiHeaders: { [header: string]: string } = {
|
64
|
+
'x-sdk-graphql': 'true',
|
65
|
+
'content-type': 'application/json',
|
66
|
+
}
|
67
|
+
|
68
|
+
return await this.client.call(
|
69
|
+
'post',
|
70
|
+
uri,
|
71
|
+
apiHeaders,
|
72
|
+
payload,
|
73
|
+
);
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,629 @@
|
|
1
|
+
import { AppcondaException, Client, type Payload, UploadProgress } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
import { Name } from '../enums/name';
|
4
|
+
|
5
|
+
export class Health {
|
6
|
+
client: Client;
|
7
|
+
|
8
|
+
constructor(client: Client) {
|
9
|
+
this.client = client;
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Get HTTP
|
14
|
+
*
|
15
|
+
* Check the Appconda HTTP server is up and responsive.
|
16
|
+
*
|
17
|
+
* @throws {AppcondaException}
|
18
|
+
* @returns {Promise<Models.HealthStatus>}
|
19
|
+
*/
|
20
|
+
async get(): Promise<Models.HealthStatus> {
|
21
|
+
const apiPath = '/health';
|
22
|
+
const payload: Payload = {};
|
23
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
24
|
+
|
25
|
+
const apiHeaders: { [header: string]: string } = {
|
26
|
+
'content-type': 'application/json',
|
27
|
+
}
|
28
|
+
|
29
|
+
return await this.client.call(
|
30
|
+
'get',
|
31
|
+
uri,
|
32
|
+
apiHeaders,
|
33
|
+
payload,
|
34
|
+
);
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* Get antivirus
|
38
|
+
*
|
39
|
+
* Check the Appconda Antivirus server is up and connection is successful.
|
40
|
+
*
|
41
|
+
* @throws {AppcondaException}
|
42
|
+
* @returns {Promise<Models.HealthAntivirus>}
|
43
|
+
*/
|
44
|
+
async getAntivirus(): Promise<Models.HealthAntivirus> {
|
45
|
+
const apiPath = '/health/anti-virus';
|
46
|
+
const payload: Payload = {};
|
47
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
48
|
+
|
49
|
+
const apiHeaders: { [header: string]: string } = {
|
50
|
+
'content-type': 'application/json',
|
51
|
+
}
|
52
|
+
|
53
|
+
return await this.client.call(
|
54
|
+
'get',
|
55
|
+
uri,
|
56
|
+
apiHeaders,
|
57
|
+
payload,
|
58
|
+
);
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* Get cache
|
62
|
+
*
|
63
|
+
* Check the Appconda in-memory cache servers are up and connection is successful.
|
64
|
+
*
|
65
|
+
* @throws {AppcondaException}
|
66
|
+
* @returns {Promise<Models.HealthStatus>}
|
67
|
+
*/
|
68
|
+
async getCache(): Promise<Models.HealthStatus> {
|
69
|
+
const apiPath = '/health/cache';
|
70
|
+
const payload: Payload = {};
|
71
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
72
|
+
|
73
|
+
const apiHeaders: { [header: string]: string } = {
|
74
|
+
'content-type': 'application/json',
|
75
|
+
}
|
76
|
+
|
77
|
+
return await this.client.call(
|
78
|
+
'get',
|
79
|
+
uri,
|
80
|
+
apiHeaders,
|
81
|
+
payload,
|
82
|
+
);
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Get the SSL certificate for a domain
|
86
|
+
*
|
87
|
+
* Get the SSL certificate for a domain
|
88
|
+
*
|
89
|
+
* @param {string} domain
|
90
|
+
* @throws {AppcondaException}
|
91
|
+
* @returns {Promise<Models.HealthCertificate>}
|
92
|
+
*/
|
93
|
+
async getCertificate(domain?: string): Promise<Models.HealthCertificate> {
|
94
|
+
const apiPath = '/health/certificate';
|
95
|
+
const payload: Payload = {};
|
96
|
+
if (typeof domain !== 'undefined') {
|
97
|
+
payload['domain'] = domain;
|
98
|
+
}
|
99
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
100
|
+
|
101
|
+
const apiHeaders: { [header: string]: string } = {
|
102
|
+
'content-type': 'application/json',
|
103
|
+
}
|
104
|
+
|
105
|
+
return await this.client.call(
|
106
|
+
'get',
|
107
|
+
uri,
|
108
|
+
apiHeaders,
|
109
|
+
payload,
|
110
|
+
);
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* Get DB
|
114
|
+
*
|
115
|
+
* Check the Appconda database servers are up and connection is successful.
|
116
|
+
*
|
117
|
+
* @throws {AppcondaException}
|
118
|
+
* @returns {Promise<Models.HealthStatus>}
|
119
|
+
*/
|
120
|
+
async getDB(): Promise<Models.HealthStatus> {
|
121
|
+
const apiPath = '/health/db';
|
122
|
+
const payload: Payload = {};
|
123
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
124
|
+
|
125
|
+
const apiHeaders: { [header: string]: string } = {
|
126
|
+
'content-type': 'application/json',
|
127
|
+
}
|
128
|
+
|
129
|
+
return await this.client.call(
|
130
|
+
'get',
|
131
|
+
uri,
|
132
|
+
apiHeaders,
|
133
|
+
payload,
|
134
|
+
);
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* Get pubsub
|
138
|
+
*
|
139
|
+
* Check the Appconda pub-sub servers are up and connection is successful.
|
140
|
+
*
|
141
|
+
* @throws {AppcondaException}
|
142
|
+
* @returns {Promise<Models.HealthStatus>}
|
143
|
+
*/
|
144
|
+
async getPubSub(): Promise<Models.HealthStatus> {
|
145
|
+
const apiPath = '/health/pubsub';
|
146
|
+
const payload: Payload = {};
|
147
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
148
|
+
|
149
|
+
const apiHeaders: { [header: string]: string } = {
|
150
|
+
'content-type': 'application/json',
|
151
|
+
}
|
152
|
+
|
153
|
+
return await this.client.call(
|
154
|
+
'get',
|
155
|
+
uri,
|
156
|
+
apiHeaders,
|
157
|
+
payload,
|
158
|
+
);
|
159
|
+
}
|
160
|
+
/**
|
161
|
+
* Get queue
|
162
|
+
*
|
163
|
+
* Check the Appconda queue messaging servers are up and connection is successful.
|
164
|
+
*
|
165
|
+
* @throws {AppcondaException}
|
166
|
+
* @returns {Promise<Models.HealthStatus>}
|
167
|
+
*/
|
168
|
+
async getQueue(): Promise<Models.HealthStatus> {
|
169
|
+
const apiPath = '/health/queue';
|
170
|
+
const payload: Payload = {};
|
171
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
172
|
+
|
173
|
+
const apiHeaders: { [header: string]: string } = {
|
174
|
+
'content-type': 'application/json',
|
175
|
+
}
|
176
|
+
|
177
|
+
return await this.client.call(
|
178
|
+
'get',
|
179
|
+
uri,
|
180
|
+
apiHeaders,
|
181
|
+
payload,
|
182
|
+
);
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* Get builds queue
|
186
|
+
*
|
187
|
+
* Get the number of builds that are waiting to be processed in the Appconda internal queue server.
|
188
|
+
*
|
189
|
+
* @param {number} threshold
|
190
|
+
* @throws {AppcondaException}
|
191
|
+
* @returns {Promise<Models.HealthQueue>}
|
192
|
+
*/
|
193
|
+
async getQueueBuilds(threshold?: number): Promise<Models.HealthQueue> {
|
194
|
+
const apiPath = '/health/queue/builds';
|
195
|
+
const payload: Payload = {};
|
196
|
+
if (typeof threshold !== 'undefined') {
|
197
|
+
payload['threshold'] = threshold;
|
198
|
+
}
|
199
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
200
|
+
|
201
|
+
const apiHeaders: { [header: string]: string } = {
|
202
|
+
'content-type': 'application/json',
|
203
|
+
}
|
204
|
+
|
205
|
+
return await this.client.call(
|
206
|
+
'get',
|
207
|
+
uri,
|
208
|
+
apiHeaders,
|
209
|
+
payload,
|
210
|
+
);
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* Get certificates queue
|
214
|
+
*
|
215
|
+
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appconda internal queue server.
|
216
|
+
*
|
217
|
+
* @param {number} threshold
|
218
|
+
* @throws {AppcondaException}
|
219
|
+
* @returns {Promise<Models.HealthQueue>}
|
220
|
+
*/
|
221
|
+
async getQueueCertificates(threshold?: number): Promise<Models.HealthQueue> {
|
222
|
+
const apiPath = '/health/queue/certificates';
|
223
|
+
const payload: Payload = {};
|
224
|
+
if (typeof threshold !== 'undefined') {
|
225
|
+
payload['threshold'] = threshold;
|
226
|
+
}
|
227
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
228
|
+
|
229
|
+
const apiHeaders: { [header: string]: string } = {
|
230
|
+
'content-type': 'application/json',
|
231
|
+
}
|
232
|
+
|
233
|
+
return await this.client.call(
|
234
|
+
'get',
|
235
|
+
uri,
|
236
|
+
apiHeaders,
|
237
|
+
payload,
|
238
|
+
);
|
239
|
+
}
|
240
|
+
/**
|
241
|
+
* Get databases queue
|
242
|
+
*
|
243
|
+
* Get the number of database changes that are waiting to be processed in the Appconda internal queue server.
|
244
|
+
*
|
245
|
+
* @param {string} name
|
246
|
+
* @param {number} threshold
|
247
|
+
* @throws {AppcondaException}
|
248
|
+
* @returns {Promise<Models.HealthQueue>}
|
249
|
+
*/
|
250
|
+
async getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue> {
|
251
|
+
const apiPath = '/health/queue/databases';
|
252
|
+
const payload: Payload = {};
|
253
|
+
if (typeof name !== 'undefined') {
|
254
|
+
payload['name'] = name;
|
255
|
+
}
|
256
|
+
if (typeof threshold !== 'undefined') {
|
257
|
+
payload['threshold'] = threshold;
|
258
|
+
}
|
259
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
260
|
+
|
261
|
+
const apiHeaders: { [header: string]: string } = {
|
262
|
+
'content-type': 'application/json',
|
263
|
+
}
|
264
|
+
|
265
|
+
return await this.client.call(
|
266
|
+
'get',
|
267
|
+
uri,
|
268
|
+
apiHeaders,
|
269
|
+
payload,
|
270
|
+
);
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* Get deletes queue
|
274
|
+
*
|
275
|
+
* Get the number of background destructive changes that are waiting to be processed in the Appconda internal queue server.
|
276
|
+
*
|
277
|
+
* @param {number} threshold
|
278
|
+
* @throws {AppcondaException}
|
279
|
+
* @returns {Promise<Models.HealthQueue>}
|
280
|
+
*/
|
281
|
+
async getQueueDeletes(threshold?: number): Promise<Models.HealthQueue> {
|
282
|
+
const apiPath = '/health/queue/deletes';
|
283
|
+
const payload: Payload = {};
|
284
|
+
if (typeof threshold !== 'undefined') {
|
285
|
+
payload['threshold'] = threshold;
|
286
|
+
}
|
287
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
288
|
+
|
289
|
+
const apiHeaders: { [header: string]: string } = {
|
290
|
+
'content-type': 'application/json',
|
291
|
+
}
|
292
|
+
|
293
|
+
return await this.client.call(
|
294
|
+
'get',
|
295
|
+
uri,
|
296
|
+
apiHeaders,
|
297
|
+
payload,
|
298
|
+
);
|
299
|
+
}
|
300
|
+
/**
|
301
|
+
* Get number of failed queue jobs
|
302
|
+
*
|
303
|
+
* Returns the amount of failed jobs in a given queue.
|
304
|
+
|
305
|
+
*
|
306
|
+
* @param {Name} name
|
307
|
+
* @param {number} threshold
|
308
|
+
* @throws {AppcondaException}
|
309
|
+
* @returns {Promise<Models.HealthQueue>}
|
310
|
+
*/
|
311
|
+
async getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue> {
|
312
|
+
if (typeof name === 'undefined') {
|
313
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
314
|
+
}
|
315
|
+
const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
|
316
|
+
const payload: Payload = {};
|
317
|
+
if (typeof threshold !== 'undefined') {
|
318
|
+
payload['threshold'] = threshold;
|
319
|
+
}
|
320
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
321
|
+
|
322
|
+
const apiHeaders: { [header: string]: string } = {
|
323
|
+
'content-type': 'application/json',
|
324
|
+
}
|
325
|
+
|
326
|
+
return await this.client.call(
|
327
|
+
'get',
|
328
|
+
uri,
|
329
|
+
apiHeaders,
|
330
|
+
payload,
|
331
|
+
);
|
332
|
+
}
|
333
|
+
/**
|
334
|
+
* Get functions queue
|
335
|
+
*
|
336
|
+
* Get the number of function executions that are waiting to be processed in the Appconda internal queue server.
|
337
|
+
*
|
338
|
+
* @param {number} threshold
|
339
|
+
* @throws {AppcondaException}
|
340
|
+
* @returns {Promise<Models.HealthQueue>}
|
341
|
+
*/
|
342
|
+
async getQueueFunctions(threshold?: number): Promise<Models.HealthQueue> {
|
343
|
+
const apiPath = '/health/queue/functions';
|
344
|
+
const payload: Payload = {};
|
345
|
+
if (typeof threshold !== 'undefined') {
|
346
|
+
payload['threshold'] = threshold;
|
347
|
+
}
|
348
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
349
|
+
|
350
|
+
const apiHeaders: { [header: string]: string } = {
|
351
|
+
'content-type': 'application/json',
|
352
|
+
}
|
353
|
+
|
354
|
+
return await this.client.call(
|
355
|
+
'get',
|
356
|
+
uri,
|
357
|
+
apiHeaders,
|
358
|
+
payload,
|
359
|
+
);
|
360
|
+
}
|
361
|
+
/**
|
362
|
+
* Get logs queue
|
363
|
+
*
|
364
|
+
* Get the number of logs that are waiting to be processed in the Appconda internal queue server.
|
365
|
+
*
|
366
|
+
* @param {number} threshold
|
367
|
+
* @throws {AppcondaException}
|
368
|
+
* @returns {Promise<Models.HealthQueue>}
|
369
|
+
*/
|
370
|
+
async getQueueLogs(threshold?: number): Promise<Models.HealthQueue> {
|
371
|
+
const apiPath = '/health/queue/logs';
|
372
|
+
const payload: Payload = {};
|
373
|
+
if (typeof threshold !== 'undefined') {
|
374
|
+
payload['threshold'] = threshold;
|
375
|
+
}
|
376
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
377
|
+
|
378
|
+
const apiHeaders: { [header: string]: string } = {
|
379
|
+
'content-type': 'application/json',
|
380
|
+
}
|
381
|
+
|
382
|
+
return await this.client.call(
|
383
|
+
'get',
|
384
|
+
uri,
|
385
|
+
apiHeaders,
|
386
|
+
payload,
|
387
|
+
);
|
388
|
+
}
|
389
|
+
/**
|
390
|
+
* Get mails queue
|
391
|
+
*
|
392
|
+
* Get the number of mails that are waiting to be processed in the Appconda internal queue server.
|
393
|
+
*
|
394
|
+
* @param {number} threshold
|
395
|
+
* @throws {AppcondaException}
|
396
|
+
* @returns {Promise<Models.HealthQueue>}
|
397
|
+
*/
|
398
|
+
async getQueueMails(threshold?: number): Promise<Models.HealthQueue> {
|
399
|
+
const apiPath = '/health/queue/mails';
|
400
|
+
const payload: Payload = {};
|
401
|
+
if (typeof threshold !== 'undefined') {
|
402
|
+
payload['threshold'] = threshold;
|
403
|
+
}
|
404
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
405
|
+
|
406
|
+
const apiHeaders: { [header: string]: string } = {
|
407
|
+
'content-type': 'application/json',
|
408
|
+
}
|
409
|
+
|
410
|
+
return await this.client.call(
|
411
|
+
'get',
|
412
|
+
uri,
|
413
|
+
apiHeaders,
|
414
|
+
payload,
|
415
|
+
);
|
416
|
+
}
|
417
|
+
/**
|
418
|
+
* Get messaging queue
|
419
|
+
*
|
420
|
+
* Get the number of messages that are waiting to be processed in the Appconda internal queue server.
|
421
|
+
*
|
422
|
+
* @param {number} threshold
|
423
|
+
* @throws {AppcondaException}
|
424
|
+
* @returns {Promise<Models.HealthQueue>}
|
425
|
+
*/
|
426
|
+
async getQueueMessaging(threshold?: number): Promise<Models.HealthQueue> {
|
427
|
+
const apiPath = '/health/queue/messaging';
|
428
|
+
const payload: Payload = {};
|
429
|
+
if (typeof threshold !== 'undefined') {
|
430
|
+
payload['threshold'] = threshold;
|
431
|
+
}
|
432
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
433
|
+
|
434
|
+
const apiHeaders: { [header: string]: string } = {
|
435
|
+
'content-type': 'application/json',
|
436
|
+
}
|
437
|
+
|
438
|
+
return await this.client.call(
|
439
|
+
'get',
|
440
|
+
uri,
|
441
|
+
apiHeaders,
|
442
|
+
payload,
|
443
|
+
);
|
444
|
+
}
|
445
|
+
/**
|
446
|
+
* Get migrations queue
|
447
|
+
*
|
448
|
+
* Get the number of migrations that are waiting to be processed in the Appconda internal queue server.
|
449
|
+
*
|
450
|
+
* @param {number} threshold
|
451
|
+
* @throws {AppcondaException}
|
452
|
+
* @returns {Promise<Models.HealthQueue>}
|
453
|
+
*/
|
454
|
+
async getQueueMigrations(threshold?: number): Promise<Models.HealthQueue> {
|
455
|
+
const apiPath = '/health/queue/migrations';
|
456
|
+
const payload: Payload = {};
|
457
|
+
if (typeof threshold !== 'undefined') {
|
458
|
+
payload['threshold'] = threshold;
|
459
|
+
}
|
460
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
461
|
+
|
462
|
+
const apiHeaders: { [header: string]: string } = {
|
463
|
+
'content-type': 'application/json',
|
464
|
+
}
|
465
|
+
|
466
|
+
return await this.client.call(
|
467
|
+
'get',
|
468
|
+
uri,
|
469
|
+
apiHeaders,
|
470
|
+
payload,
|
471
|
+
);
|
472
|
+
}
|
473
|
+
/**
|
474
|
+
* Get usage queue
|
475
|
+
*
|
476
|
+
* Get the number of metrics that are waiting to be processed in the Appconda internal queue server.
|
477
|
+
*
|
478
|
+
* @param {number} threshold
|
479
|
+
* @throws {AppcondaException}
|
480
|
+
* @returns {Promise<Models.HealthQueue>}
|
481
|
+
*/
|
482
|
+
async getQueueUsage(threshold?: number): Promise<Models.HealthQueue> {
|
483
|
+
const apiPath = '/health/queue/usage';
|
484
|
+
const payload: Payload = {};
|
485
|
+
if (typeof threshold !== 'undefined') {
|
486
|
+
payload['threshold'] = threshold;
|
487
|
+
}
|
488
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
489
|
+
|
490
|
+
const apiHeaders: { [header: string]: string } = {
|
491
|
+
'content-type': 'application/json',
|
492
|
+
}
|
493
|
+
|
494
|
+
return await this.client.call(
|
495
|
+
'get',
|
496
|
+
uri,
|
497
|
+
apiHeaders,
|
498
|
+
payload,
|
499
|
+
);
|
500
|
+
}
|
501
|
+
/**
|
502
|
+
* Get usage dump queue
|
503
|
+
*
|
504
|
+
* Get the number of projects containing metrics that are waiting to be processed in the Appconda internal queue server.
|
505
|
+
*
|
506
|
+
* @param {number} threshold
|
507
|
+
* @throws {AppcondaException}
|
508
|
+
* @returns {Promise<Models.HealthQueue>}
|
509
|
+
*/
|
510
|
+
async getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue> {
|
511
|
+
const apiPath = '/health/queue/usage-dump';
|
512
|
+
const payload: Payload = {};
|
513
|
+
if (typeof threshold !== 'undefined') {
|
514
|
+
payload['threshold'] = threshold;
|
515
|
+
}
|
516
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
517
|
+
|
518
|
+
const apiHeaders: { [header: string]: string } = {
|
519
|
+
'content-type': 'application/json',
|
520
|
+
}
|
521
|
+
|
522
|
+
return await this.client.call(
|
523
|
+
'get',
|
524
|
+
uri,
|
525
|
+
apiHeaders,
|
526
|
+
payload,
|
527
|
+
);
|
528
|
+
}
|
529
|
+
/**
|
530
|
+
* Get webhooks queue
|
531
|
+
*
|
532
|
+
* Get the number of webhooks that are waiting to be processed in the Appconda internal queue server.
|
533
|
+
*
|
534
|
+
* @param {number} threshold
|
535
|
+
* @throws {AppcondaException}
|
536
|
+
* @returns {Promise<Models.HealthQueue>}
|
537
|
+
*/
|
538
|
+
async getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue> {
|
539
|
+
const apiPath = '/health/queue/webhooks';
|
540
|
+
const payload: Payload = {};
|
541
|
+
if (typeof threshold !== 'undefined') {
|
542
|
+
payload['threshold'] = threshold;
|
543
|
+
}
|
544
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
545
|
+
|
546
|
+
const apiHeaders: { [header: string]: string } = {
|
547
|
+
'content-type': 'application/json',
|
548
|
+
}
|
549
|
+
|
550
|
+
return await this.client.call(
|
551
|
+
'get',
|
552
|
+
uri,
|
553
|
+
apiHeaders,
|
554
|
+
payload,
|
555
|
+
);
|
556
|
+
}
|
557
|
+
/**
|
558
|
+
* Get storage
|
559
|
+
*
|
560
|
+
* Check the Appconda storage device is up and connection is successful.
|
561
|
+
*
|
562
|
+
* @throws {AppcondaException}
|
563
|
+
* @returns {Promise<Models.HealthStatus>}
|
564
|
+
*/
|
565
|
+
async getStorage(): Promise<Models.HealthStatus> {
|
566
|
+
const apiPath = '/health/storage';
|
567
|
+
const payload: Payload = {};
|
568
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
569
|
+
|
570
|
+
const apiHeaders: { [header: string]: string } = {
|
571
|
+
'content-type': 'application/json',
|
572
|
+
}
|
573
|
+
|
574
|
+
return await this.client.call(
|
575
|
+
'get',
|
576
|
+
uri,
|
577
|
+
apiHeaders,
|
578
|
+
payload,
|
579
|
+
);
|
580
|
+
}
|
581
|
+
/**
|
582
|
+
* Get local storage
|
583
|
+
*
|
584
|
+
* Check the Appconda local storage device is up and connection is successful.
|
585
|
+
*
|
586
|
+
* @throws {AppcondaException}
|
587
|
+
* @returns {Promise<Models.HealthStatus>}
|
588
|
+
*/
|
589
|
+
async getStorageLocal(): Promise<Models.HealthStatus> {
|
590
|
+
const apiPath = '/health/storage/local';
|
591
|
+
const payload: Payload = {};
|
592
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
593
|
+
|
594
|
+
const apiHeaders: { [header: string]: string } = {
|
595
|
+
'content-type': 'application/json',
|
596
|
+
}
|
597
|
+
|
598
|
+
return await this.client.call(
|
599
|
+
'get',
|
600
|
+
uri,
|
601
|
+
apiHeaders,
|
602
|
+
payload,
|
603
|
+
);
|
604
|
+
}
|
605
|
+
/**
|
606
|
+
* Get time
|
607
|
+
*
|
608
|
+
* Check the Appconda server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
|
609
|
+
*
|
610
|
+
* @throws {AppcondaException}
|
611
|
+
* @returns {Promise<Models.HealthTime>}
|
612
|
+
*/
|
613
|
+
async getTime(): Promise<Models.HealthTime> {
|
614
|
+
const apiPath = '/health/time';
|
615
|
+
const payload: Payload = {};
|
616
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
617
|
+
|
618
|
+
const apiHeaders: { [header: string]: string } = {
|
619
|
+
'content-type': 'application/json',
|
620
|
+
}
|
621
|
+
|
622
|
+
return await this.client.call(
|
623
|
+
'get',
|
624
|
+
uri,
|
625
|
+
apiHeaders,
|
626
|
+
payload,
|
627
|
+
);
|
628
|
+
}
|
629
|
+
}
|