@appwrite.io/console 0.7.0-rc.2 → 1.0.1
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 +1 -1
- package/dist/cjs/sdk.js +122 -31
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +122 -31
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +122 -31
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +1 -1
- package/docs/examples/avatars/get-credit-card.md +1 -1
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +1 -1
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +1 -1
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +3 -2
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +1 -1
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +11 -0
- package/docs/examples/functions/list-templates.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-build.md +1 -1
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +3 -2
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-usage-dump.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete-firebase-auth.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report-o-auth.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list-firebase-projects.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +1 -1
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +1 -1
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +1 -1
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-rule.md +1 -1
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +1 -1
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +1 -1
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +4 -19
- package/src/enums/runtime.ts +1 -1
- package/src/models.ts +42 -0
- package/src/services/account.ts +67 -18
- package/src/services/assistant.ts +2 -0
- package/src/services/avatars.ts +36 -0
- package/src/services/console.ts +2 -0
- package/src/services/databases.ts +49 -0
- package/src/services/functions.ts +72 -7
- package/src/services/graphql.ts +3 -0
- package/src/services/health.ts +24 -0
- package/src/services/locale.ts +9 -0
- package/src/services/messaging.ts +47 -0
- package/src/services/migrations.ts +17 -0
- package/src/services/project.ts +7 -0
- package/src/services/projects.ts +46 -0
- package/src/services/proxy.ts +6 -0
- package/src/services/storage.ts +28 -0
- package/src/services/teams.ts +15 -0
- package/src/services/users.ts +44 -0
- package/src/services/vcs.ts +11 -0
- package/types/client.d.ts +0 -1
- package/types/enums/runtime.d.ts +1 -1
- package/types/models.d.ts +42 -0
- package/types/services/functions.d.ts +15 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
1
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
2
3
|
import type { Models } from '../models';
|
|
3
4
|
import { DatabaseUsageRange } from '../enums/database-usage-range';
|
|
@@ -37,6 +38,7 @@ export class Databases {
|
|
|
37
38
|
'content-type': 'application/json',
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
|
|
40
42
|
return await this.client.call(
|
|
41
43
|
'get',
|
|
42
44
|
uri,
|
|
@@ -80,6 +82,7 @@ export class Databases {
|
|
|
80
82
|
'content-type': 'application/json',
|
|
81
83
|
}
|
|
82
84
|
|
|
85
|
+
|
|
83
86
|
return await this.client.call(
|
|
84
87
|
'post',
|
|
85
88
|
uri,
|
|
@@ -107,6 +110,7 @@ export class Databases {
|
|
|
107
110
|
'content-type': 'application/json',
|
|
108
111
|
}
|
|
109
112
|
|
|
113
|
+
|
|
110
114
|
return await this.client.call(
|
|
111
115
|
'get',
|
|
112
116
|
uri,
|
|
@@ -135,6 +139,7 @@ export class Databases {
|
|
|
135
139
|
'content-type': 'application/json',
|
|
136
140
|
}
|
|
137
141
|
|
|
142
|
+
|
|
138
143
|
return await this.client.call(
|
|
139
144
|
'get',
|
|
140
145
|
uri,
|
|
@@ -174,6 +179,7 @@ export class Databases {
|
|
|
174
179
|
'content-type': 'application/json',
|
|
175
180
|
}
|
|
176
181
|
|
|
182
|
+
|
|
177
183
|
return await this.client.call(
|
|
178
184
|
'put',
|
|
179
185
|
uri,
|
|
@@ -202,6 +208,7 @@ export class Databases {
|
|
|
202
208
|
'content-type': 'application/json',
|
|
203
209
|
}
|
|
204
210
|
|
|
211
|
+
|
|
205
212
|
return await this.client.call(
|
|
206
213
|
'delete',
|
|
207
214
|
uri,
|
|
@@ -238,6 +245,7 @@ export class Databases {
|
|
|
238
245
|
'content-type': 'application/json',
|
|
239
246
|
}
|
|
240
247
|
|
|
248
|
+
|
|
241
249
|
return await this.client.call(
|
|
242
250
|
'get',
|
|
243
251
|
uri,
|
|
@@ -292,6 +300,7 @@ export class Databases {
|
|
|
292
300
|
'content-type': 'application/json',
|
|
293
301
|
}
|
|
294
302
|
|
|
303
|
+
|
|
295
304
|
return await this.client.call(
|
|
296
305
|
'post',
|
|
297
306
|
uri,
|
|
@@ -324,6 +333,7 @@ export class Databases {
|
|
|
324
333
|
'content-type': 'application/json',
|
|
325
334
|
}
|
|
326
335
|
|
|
336
|
+
|
|
327
337
|
return await this.client.call(
|
|
328
338
|
'get',
|
|
329
339
|
uri,
|
|
@@ -375,6 +385,7 @@ export class Databases {
|
|
|
375
385
|
'content-type': 'application/json',
|
|
376
386
|
}
|
|
377
387
|
|
|
388
|
+
|
|
378
389
|
return await this.client.call(
|
|
379
390
|
'put',
|
|
380
391
|
uri,
|
|
@@ -407,6 +418,7 @@ export class Databases {
|
|
|
407
418
|
'content-type': 'application/json',
|
|
408
419
|
}
|
|
409
420
|
|
|
421
|
+
|
|
410
422
|
return await this.client.call(
|
|
411
423
|
'delete',
|
|
412
424
|
uri,
|
|
@@ -443,6 +455,7 @@ export class Databases {
|
|
|
443
455
|
'content-type': 'application/json',
|
|
444
456
|
}
|
|
445
457
|
|
|
458
|
+
|
|
446
459
|
return await this.client.call(
|
|
447
460
|
'get',
|
|
448
461
|
uri,
|
|
@@ -498,6 +511,7 @@ export class Databases {
|
|
|
498
511
|
'content-type': 'application/json',
|
|
499
512
|
}
|
|
500
513
|
|
|
514
|
+
|
|
501
515
|
return await this.client.call(
|
|
502
516
|
'post',
|
|
503
517
|
uri,
|
|
@@ -548,6 +562,7 @@ export class Databases {
|
|
|
548
562
|
'content-type': 'application/json',
|
|
549
563
|
}
|
|
550
564
|
|
|
565
|
+
|
|
551
566
|
return await this.client.call(
|
|
552
567
|
'patch',
|
|
553
568
|
uri,
|
|
@@ -602,6 +617,7 @@ export class Databases {
|
|
|
602
617
|
'content-type': 'application/json',
|
|
603
618
|
}
|
|
604
619
|
|
|
620
|
+
|
|
605
621
|
return await this.client.call(
|
|
606
622
|
'post',
|
|
607
623
|
uri,
|
|
@@ -652,6 +668,7 @@ export class Databases {
|
|
|
652
668
|
'content-type': 'application/json',
|
|
653
669
|
}
|
|
654
670
|
|
|
671
|
+
|
|
655
672
|
return await this.client.call(
|
|
656
673
|
'patch',
|
|
657
674
|
uri,
|
|
@@ -707,6 +724,7 @@ export class Databases {
|
|
|
707
724
|
'content-type': 'application/json',
|
|
708
725
|
}
|
|
709
726
|
|
|
727
|
+
|
|
710
728
|
return await this.client.call(
|
|
711
729
|
'post',
|
|
712
730
|
uri,
|
|
@@ -758,6 +776,7 @@ export class Databases {
|
|
|
758
776
|
'content-type': 'application/json',
|
|
759
777
|
}
|
|
760
778
|
|
|
779
|
+
|
|
761
780
|
return await this.client.call(
|
|
762
781
|
'patch',
|
|
763
782
|
uri,
|
|
@@ -820,6 +839,7 @@ export class Databases {
|
|
|
820
839
|
'content-type': 'application/json',
|
|
821
840
|
}
|
|
822
841
|
|
|
842
|
+
|
|
823
843
|
return await this.client.call(
|
|
824
844
|
'post',
|
|
825
845
|
uri,
|
|
@@ -878,6 +898,7 @@ export class Databases {
|
|
|
878
898
|
'content-type': 'application/json',
|
|
879
899
|
}
|
|
880
900
|
|
|
901
|
+
|
|
881
902
|
return await this.client.call(
|
|
882
903
|
'patch',
|
|
883
904
|
uri,
|
|
@@ -941,6 +962,7 @@ export class Databases {
|
|
|
941
962
|
'content-type': 'application/json',
|
|
942
963
|
}
|
|
943
964
|
|
|
965
|
+
|
|
944
966
|
return await this.client.call(
|
|
945
967
|
'post',
|
|
946
968
|
uri,
|
|
@@ -1006,6 +1028,7 @@ export class Databases {
|
|
|
1006
1028
|
'content-type': 'application/json',
|
|
1007
1029
|
}
|
|
1008
1030
|
|
|
1031
|
+
|
|
1009
1032
|
return await this.client.call(
|
|
1010
1033
|
'patch',
|
|
1011
1034
|
uri,
|
|
@@ -1069,6 +1092,7 @@ export class Databases {
|
|
|
1069
1092
|
'content-type': 'application/json',
|
|
1070
1093
|
}
|
|
1071
1094
|
|
|
1095
|
+
|
|
1072
1096
|
return await this.client.call(
|
|
1073
1097
|
'post',
|
|
1074
1098
|
uri,
|
|
@@ -1134,6 +1158,7 @@ export class Databases {
|
|
|
1134
1158
|
'content-type': 'application/json',
|
|
1135
1159
|
}
|
|
1136
1160
|
|
|
1161
|
+
|
|
1137
1162
|
return await this.client.call(
|
|
1138
1163
|
'patch',
|
|
1139
1164
|
uri,
|
|
@@ -1189,6 +1214,7 @@ export class Databases {
|
|
|
1189
1214
|
'content-type': 'application/json',
|
|
1190
1215
|
}
|
|
1191
1216
|
|
|
1217
|
+
|
|
1192
1218
|
return await this.client.call(
|
|
1193
1219
|
'post',
|
|
1194
1220
|
uri,
|
|
@@ -1240,6 +1266,7 @@ export class Databases {
|
|
|
1240
1266
|
'content-type': 'application/json',
|
|
1241
1267
|
}
|
|
1242
1268
|
|
|
1269
|
+
|
|
1243
1270
|
return await this.client.call(
|
|
1244
1271
|
'patch',
|
|
1245
1272
|
uri,
|
|
@@ -1303,6 +1330,7 @@ export class Databases {
|
|
|
1303
1330
|
'content-type': 'application/json',
|
|
1304
1331
|
}
|
|
1305
1332
|
|
|
1333
|
+
|
|
1306
1334
|
return await this.client.call(
|
|
1307
1335
|
'post',
|
|
1308
1336
|
uri,
|
|
@@ -1369,6 +1397,7 @@ export class Databases {
|
|
|
1369
1397
|
'content-type': 'application/json',
|
|
1370
1398
|
}
|
|
1371
1399
|
|
|
1400
|
+
|
|
1372
1401
|
return await this.client.call(
|
|
1373
1402
|
'post',
|
|
1374
1403
|
uri,
|
|
@@ -1420,6 +1449,7 @@ export class Databases {
|
|
|
1420
1449
|
'content-type': 'application/json',
|
|
1421
1450
|
}
|
|
1422
1451
|
|
|
1452
|
+
|
|
1423
1453
|
return await this.client.call(
|
|
1424
1454
|
'patch',
|
|
1425
1455
|
uri,
|
|
@@ -1475,6 +1505,7 @@ export class Databases {
|
|
|
1475
1505
|
'content-type': 'application/json',
|
|
1476
1506
|
}
|
|
1477
1507
|
|
|
1508
|
+
|
|
1478
1509
|
return await this.client.call(
|
|
1479
1510
|
'post',
|
|
1480
1511
|
uri,
|
|
@@ -1526,6 +1557,7 @@ export class Databases {
|
|
|
1526
1557
|
'content-type': 'application/json',
|
|
1527
1558
|
}
|
|
1528
1559
|
|
|
1560
|
+
|
|
1529
1561
|
return await this.client.call(
|
|
1530
1562
|
'patch',
|
|
1531
1563
|
uri,
|
|
@@ -1562,6 +1594,7 @@ export class Databases {
|
|
|
1562
1594
|
'content-type': 'application/json',
|
|
1563
1595
|
}
|
|
1564
1596
|
|
|
1597
|
+
|
|
1565
1598
|
return await this.client.call(
|
|
1566
1599
|
'get',
|
|
1567
1600
|
uri,
|
|
@@ -1598,6 +1631,7 @@ export class Databases {
|
|
|
1598
1631
|
'content-type': 'application/json',
|
|
1599
1632
|
}
|
|
1600
1633
|
|
|
1634
|
+
|
|
1601
1635
|
return await this.client.call(
|
|
1602
1636
|
'delete',
|
|
1603
1637
|
uri,
|
|
@@ -1639,6 +1673,7 @@ export class Databases {
|
|
|
1639
1673
|
'content-type': 'application/json',
|
|
1640
1674
|
}
|
|
1641
1675
|
|
|
1676
|
+
|
|
1642
1677
|
return await this.client.call(
|
|
1643
1678
|
'patch',
|
|
1644
1679
|
uri,
|
|
@@ -1675,6 +1710,7 @@ export class Databases {
|
|
|
1675
1710
|
'content-type': 'application/json',
|
|
1676
1711
|
}
|
|
1677
1712
|
|
|
1713
|
+
|
|
1678
1714
|
return await this.client.call(
|
|
1679
1715
|
'get',
|
|
1680
1716
|
uri,
|
|
@@ -1725,6 +1761,7 @@ export class Databases {
|
|
|
1725
1761
|
'content-type': 'application/json',
|
|
1726
1762
|
}
|
|
1727
1763
|
|
|
1764
|
+
|
|
1728
1765
|
return await this.client.call(
|
|
1729
1766
|
'post',
|
|
1730
1767
|
uri,
|
|
@@ -1765,6 +1802,7 @@ export class Databases {
|
|
|
1765
1802
|
'content-type': 'application/json',
|
|
1766
1803
|
}
|
|
1767
1804
|
|
|
1805
|
+
|
|
1768
1806
|
return await this.client.call(
|
|
1769
1807
|
'get',
|
|
1770
1808
|
uri,
|
|
@@ -1809,6 +1847,7 @@ export class Databases {
|
|
|
1809
1847
|
'content-type': 'application/json',
|
|
1810
1848
|
}
|
|
1811
1849
|
|
|
1850
|
+
|
|
1812
1851
|
return await this.client.call(
|
|
1813
1852
|
'patch',
|
|
1814
1853
|
uri,
|
|
@@ -1845,6 +1884,7 @@ export class Databases {
|
|
|
1845
1884
|
'content-type': 'application/json',
|
|
1846
1885
|
}
|
|
1847
1886
|
|
|
1887
|
+
|
|
1848
1888
|
return await this.client.call(
|
|
1849
1889
|
'delete',
|
|
1850
1890
|
uri,
|
|
@@ -1885,6 +1925,7 @@ export class Databases {
|
|
|
1885
1925
|
'content-type': 'application/json',
|
|
1886
1926
|
}
|
|
1887
1927
|
|
|
1928
|
+
|
|
1888
1929
|
return await this.client.call(
|
|
1889
1930
|
'get',
|
|
1890
1931
|
uri,
|
|
@@ -1921,6 +1962,7 @@ export class Databases {
|
|
|
1921
1962
|
'content-type': 'application/json',
|
|
1922
1963
|
}
|
|
1923
1964
|
|
|
1965
|
+
|
|
1924
1966
|
return await this.client.call(
|
|
1925
1967
|
'get',
|
|
1926
1968
|
uri,
|
|
@@ -1979,6 +2021,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
1979
2021
|
'content-type': 'application/json',
|
|
1980
2022
|
}
|
|
1981
2023
|
|
|
2024
|
+
|
|
1982
2025
|
return await this.client.call(
|
|
1983
2026
|
'post',
|
|
1984
2027
|
uri,
|
|
@@ -2015,6 +2058,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2015
2058
|
'content-type': 'application/json',
|
|
2016
2059
|
}
|
|
2017
2060
|
|
|
2061
|
+
|
|
2018
2062
|
return await this.client.call(
|
|
2019
2063
|
'get',
|
|
2020
2064
|
uri,
|
|
@@ -2051,6 +2095,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2051
2095
|
'content-type': 'application/json',
|
|
2052
2096
|
}
|
|
2053
2097
|
|
|
2098
|
+
|
|
2054
2099
|
return await this.client.call(
|
|
2055
2100
|
'delete',
|
|
2056
2101
|
uri,
|
|
@@ -2087,6 +2132,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2087
2132
|
'content-type': 'application/json',
|
|
2088
2133
|
}
|
|
2089
2134
|
|
|
2135
|
+
|
|
2090
2136
|
return await this.client.call(
|
|
2091
2137
|
'get',
|
|
2092
2138
|
uri,
|
|
@@ -2122,6 +2168,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2122
2168
|
'content-type': 'application/json',
|
|
2123
2169
|
}
|
|
2124
2170
|
|
|
2171
|
+
|
|
2125
2172
|
return await this.client.call(
|
|
2126
2173
|
'get',
|
|
2127
2174
|
uri,
|
|
@@ -2154,6 +2201,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2154
2201
|
'content-type': 'application/json',
|
|
2155
2202
|
}
|
|
2156
2203
|
|
|
2204
|
+
|
|
2157
2205
|
return await this.client.call(
|
|
2158
2206
|
'get',
|
|
2159
2207
|
uri,
|
|
@@ -2185,6 +2233,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2185
2233
|
'content-type': 'application/json',
|
|
2186
2234
|
}
|
|
2187
2235
|
|
|
2236
|
+
|
|
2188
2237
|
return await this.client.call(
|
|
2189
2238
|
'get',
|
|
2190
2239
|
uri,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
1
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
2
3
|
import type { Models } from '../models';
|
|
3
4
|
import { Runtime } from '../enums/runtime';
|
|
@@ -36,6 +37,7 @@ export class Functions {
|
|
|
36
37
|
'content-type': 'application/json',
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
|
|
39
41
|
return await this.client.call(
|
|
40
42
|
'get',
|
|
41
43
|
uri,
|
|
@@ -69,10 +71,11 @@ export class Functions {
|
|
|
69
71
|
* @param {string} templateOwner
|
|
70
72
|
* @param {string} templateRootDirectory
|
|
71
73
|
* @param {string} templateVersion
|
|
74
|
+
* @param {string} specification
|
|
72
75
|
* @throws {AppwriteException}
|
|
73
76
|
* @returns {Promise<Models.Function>}
|
|
74
77
|
*/
|
|
75
|
-
async create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string): Promise<Models.Function> {
|
|
78
|
+
async create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function> {
|
|
76
79
|
if (typeof functionId === 'undefined') {
|
|
77
80
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
78
81
|
}
|
|
@@ -147,12 +150,16 @@ export class Functions {
|
|
|
147
150
|
if (typeof templateVersion !== 'undefined') {
|
|
148
151
|
payload['templateVersion'] = templateVersion;
|
|
149
152
|
}
|
|
153
|
+
if (typeof specification !== 'undefined') {
|
|
154
|
+
payload['specification'] = specification;
|
|
155
|
+
}
|
|
150
156
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
151
157
|
|
|
152
158
|
const apiHeaders: { [header: string]: string } = {
|
|
153
159
|
'content-type': 'application/json',
|
|
154
160
|
}
|
|
155
161
|
|
|
162
|
+
|
|
156
163
|
return await this.client.call(
|
|
157
164
|
'post',
|
|
158
165
|
uri,
|
|
@@ -177,6 +184,33 @@ export class Functions {
|
|
|
177
184
|
'content-type': 'application/json',
|
|
178
185
|
}
|
|
179
186
|
|
|
187
|
+
|
|
188
|
+
return await this.client.call(
|
|
189
|
+
'get',
|
|
190
|
+
uri,
|
|
191
|
+
apiHeaders,
|
|
192
|
+
payload
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* List available function runtime specifications
|
|
197
|
+
*
|
|
198
|
+
* List allowed function specifications for this instance.
|
|
199
|
+
|
|
200
|
+
*
|
|
201
|
+
* @throws {AppwriteException}
|
|
202
|
+
* @returns {Promise<Models.SpecificationList>}
|
|
203
|
+
*/
|
|
204
|
+
async listSpecifications(): Promise<Models.SpecificationList> {
|
|
205
|
+
const apiPath = '/functions/specifications';
|
|
206
|
+
const payload: Payload = {};
|
|
207
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
208
|
+
|
|
209
|
+
const apiHeaders: { [header: string]: string } = {
|
|
210
|
+
'content-type': 'application/json',
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
180
214
|
return await this.client.call(
|
|
181
215
|
'get',
|
|
182
216
|
uri,
|
|
@@ -217,6 +251,7 @@ export class Functions {
|
|
|
217
251
|
'content-type': 'application/json',
|
|
218
252
|
}
|
|
219
253
|
|
|
254
|
+
|
|
220
255
|
return await this.client.call(
|
|
221
256
|
'get',
|
|
222
257
|
uri,
|
|
@@ -245,6 +280,7 @@ export class Functions {
|
|
|
245
280
|
'content-type': 'application/json',
|
|
246
281
|
}
|
|
247
282
|
|
|
283
|
+
|
|
248
284
|
return await this.client.call(
|
|
249
285
|
'get',
|
|
250
286
|
uri,
|
|
@@ -272,6 +308,7 @@ export class Functions {
|
|
|
272
308
|
'content-type': 'application/json',
|
|
273
309
|
}
|
|
274
310
|
|
|
311
|
+
|
|
275
312
|
return await this.client.call(
|
|
276
313
|
'get',
|
|
277
314
|
uri,
|
|
@@ -300,6 +337,7 @@ export class Functions {
|
|
|
300
337
|
'content-type': 'application/json',
|
|
301
338
|
}
|
|
302
339
|
|
|
340
|
+
|
|
303
341
|
return await this.client.call(
|
|
304
342
|
'get',
|
|
305
343
|
uri,
|
|
@@ -329,10 +367,11 @@ export class Functions {
|
|
|
329
367
|
* @param {string} providerBranch
|
|
330
368
|
* @param {boolean} providerSilentMode
|
|
331
369
|
* @param {string} providerRootDirectory
|
|
370
|
+
* @param {string} specification
|
|
332
371
|
* @throws {AppwriteException}
|
|
333
372
|
* @returns {Promise<Models.Function>}
|
|
334
373
|
*/
|
|
335
|
-
async update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string): Promise<Models.Function> {
|
|
374
|
+
async update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function> {
|
|
336
375
|
if (typeof functionId === 'undefined') {
|
|
337
376
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
338
377
|
}
|
|
@@ -389,12 +428,16 @@ export class Functions {
|
|
|
389
428
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
390
429
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
391
430
|
}
|
|
431
|
+
if (typeof specification !== 'undefined') {
|
|
432
|
+
payload['specification'] = specification;
|
|
433
|
+
}
|
|
392
434
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
393
435
|
|
|
394
436
|
const apiHeaders: { [header: string]: string } = {
|
|
395
437
|
'content-type': 'application/json',
|
|
396
438
|
}
|
|
397
439
|
|
|
440
|
+
|
|
398
441
|
return await this.client.call(
|
|
399
442
|
'put',
|
|
400
443
|
uri,
|
|
@@ -423,6 +466,7 @@ export class Functions {
|
|
|
423
466
|
'content-type': 'application/json',
|
|
424
467
|
}
|
|
425
468
|
|
|
469
|
+
|
|
426
470
|
return await this.client.call(
|
|
427
471
|
'delete',
|
|
428
472
|
uri,
|
|
@@ -459,6 +503,7 @@ export class Functions {
|
|
|
459
503
|
'content-type': 'application/json',
|
|
460
504
|
}
|
|
461
505
|
|
|
506
|
+
|
|
462
507
|
return await this.client.call(
|
|
463
508
|
'get',
|
|
464
509
|
uri,
|
|
@@ -513,6 +558,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
513
558
|
'content-type': 'multipart/form-data',
|
|
514
559
|
}
|
|
515
560
|
|
|
561
|
+
|
|
516
562
|
return await this.client.chunkedUpload(
|
|
517
563
|
'post',
|
|
518
564
|
uri,
|
|
@@ -546,6 +592,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
546
592
|
'content-type': 'application/json',
|
|
547
593
|
}
|
|
548
594
|
|
|
595
|
+
|
|
549
596
|
return await this.client.call(
|
|
550
597
|
'get',
|
|
551
598
|
uri,
|
|
@@ -578,6 +625,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
578
625
|
'content-type': 'application/json',
|
|
579
626
|
}
|
|
580
627
|
|
|
628
|
+
|
|
581
629
|
return await this.client.call(
|
|
582
630
|
'patch',
|
|
583
631
|
uri,
|
|
@@ -610,6 +658,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
610
658
|
'content-type': 'application/json',
|
|
611
659
|
}
|
|
612
660
|
|
|
661
|
+
|
|
613
662
|
return await this.client.call(
|
|
614
663
|
'delete',
|
|
615
664
|
uri,
|
|
@@ -645,6 +694,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
645
694
|
'content-type': 'application/json',
|
|
646
695
|
}
|
|
647
696
|
|
|
697
|
+
|
|
648
698
|
return await this.client.call(
|
|
649
699
|
'post',
|
|
650
700
|
uri,
|
|
@@ -676,6 +726,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
676
726
|
'content-type': 'application/json',
|
|
677
727
|
}
|
|
678
728
|
|
|
729
|
+
|
|
679
730
|
return await this.client.call(
|
|
680
731
|
'patch',
|
|
681
732
|
uri,
|
|
@@ -708,6 +759,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
708
759
|
'content-type': 'application/json',
|
|
709
760
|
}
|
|
710
761
|
|
|
762
|
+
payload['project'] = this.client.config.project;
|
|
763
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
764
|
+
uri.searchParams.append(key, value);
|
|
765
|
+
}
|
|
766
|
+
|
|
711
767
|
payload['project'] = this.client.config.project;
|
|
712
768
|
|
|
713
769
|
for (const [key, value] of Object.entries(Client.flatten(payload))) {
|
|
@@ -745,6 +801,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
745
801
|
'content-type': 'application/json',
|
|
746
802
|
}
|
|
747
803
|
|
|
804
|
+
|
|
748
805
|
return await this.client.call(
|
|
749
806
|
'get',
|
|
750
807
|
uri,
|
|
@@ -767,7 +824,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
767
824
|
* @throws {AppwriteException}
|
|
768
825
|
* @returns {Promise<Models.Execution>}
|
|
769
826
|
*/
|
|
770
|
-
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string
|
|
827
|
+
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
|
|
771
828
|
if (typeof functionId === 'undefined') {
|
|
772
829
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
773
830
|
}
|
|
@@ -794,15 +851,15 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
794
851
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
795
852
|
|
|
796
853
|
const apiHeaders: { [header: string]: string } = {
|
|
797
|
-
'content-type': '
|
|
854
|
+
'content-type': 'application/json',
|
|
798
855
|
}
|
|
799
856
|
|
|
800
|
-
|
|
857
|
+
|
|
858
|
+
return await this.client.call(
|
|
801
859
|
'post',
|
|
802
860
|
uri,
|
|
803
861
|
apiHeaders,
|
|
804
|
-
payload
|
|
805
|
-
onProgress
|
|
862
|
+
payload
|
|
806
863
|
);
|
|
807
864
|
}
|
|
808
865
|
/**
|
|
@@ -830,6 +887,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
830
887
|
'content-type': 'application/json',
|
|
831
888
|
}
|
|
832
889
|
|
|
890
|
+
|
|
833
891
|
return await this.client.call(
|
|
834
892
|
'get',
|
|
835
893
|
uri,
|
|
@@ -863,6 +921,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
863
921
|
'content-type': 'application/json',
|
|
864
922
|
}
|
|
865
923
|
|
|
924
|
+
|
|
866
925
|
return await this.client.call(
|
|
867
926
|
'delete',
|
|
868
927
|
uri,
|
|
@@ -894,6 +953,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
894
953
|
'content-type': 'application/json',
|
|
895
954
|
}
|
|
896
955
|
|
|
956
|
+
|
|
897
957
|
return await this.client.call(
|
|
898
958
|
'get',
|
|
899
959
|
uri,
|
|
@@ -922,6 +982,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
922
982
|
'content-type': 'application/json',
|
|
923
983
|
}
|
|
924
984
|
|
|
985
|
+
|
|
925
986
|
return await this.client.call(
|
|
926
987
|
'get',
|
|
927
988
|
uri,
|
|
@@ -964,6 +1025,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
964
1025
|
'content-type': 'application/json',
|
|
965
1026
|
}
|
|
966
1027
|
|
|
1028
|
+
|
|
967
1029
|
return await this.client.call(
|
|
968
1030
|
'post',
|
|
969
1031
|
uri,
|
|
@@ -996,6 +1058,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
996
1058
|
'content-type': 'application/json',
|
|
997
1059
|
}
|
|
998
1060
|
|
|
1061
|
+
|
|
999
1062
|
return await this.client.call(
|
|
1000
1063
|
'get',
|
|
1001
1064
|
uri,
|
|
@@ -1039,6 +1102,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
1039
1102
|
'content-type': 'application/json',
|
|
1040
1103
|
}
|
|
1041
1104
|
|
|
1105
|
+
|
|
1042
1106
|
return await this.client.call(
|
|
1043
1107
|
'put',
|
|
1044
1108
|
uri,
|
|
@@ -1071,6 +1135,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
1071
1135
|
'content-type': 'application/json',
|
|
1072
1136
|
}
|
|
1073
1137
|
|
|
1138
|
+
|
|
1074
1139
|
return await this.client.call(
|
|
1075
1140
|
'delete',
|
|
1076
1141
|
uri,
|
package/src/services/graphql.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
1
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
2
3
|
import type { Models } from '../models';
|
|
3
4
|
|
|
@@ -33,6 +34,7 @@ export class Graphql {
|
|
|
33
34
|
'content-type': 'application/json',
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
|
|
36
38
|
return await this.client.call(
|
|
37
39
|
'post',
|
|
38
40
|
uri,
|
|
@@ -65,6 +67,7 @@ export class Graphql {
|
|
|
65
67
|
'content-type': 'application/json',
|
|
66
68
|
}
|
|
67
69
|
|
|
70
|
+
|
|
68
71
|
return await this.client.call(
|
|
69
72
|
'post',
|
|
70
73
|
uri,
|