@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,41 @@
|
|
1
|
+
export enum OAuthProvider {
|
2
|
+
Amazon = 'amazon',
|
3
|
+
Apple = 'apple',
|
4
|
+
Auth0 = 'auth0',
|
5
|
+
Authentik = 'authentik',
|
6
|
+
Autodesk = 'autodesk',
|
7
|
+
Bitbucket = 'bitbucket',
|
8
|
+
Bitly = 'bitly',
|
9
|
+
Box = 'box',
|
10
|
+
Dailymotion = 'dailymotion',
|
11
|
+
Discord = 'discord',
|
12
|
+
Disqus = 'disqus',
|
13
|
+
Dropbox = 'dropbox',
|
14
|
+
Etsy = 'etsy',
|
15
|
+
Facebook = 'facebook',
|
16
|
+
Github = 'github',
|
17
|
+
Gitlab = 'gitlab',
|
18
|
+
Google = 'google',
|
19
|
+
Linkedin = 'linkedin',
|
20
|
+
Microsoft = 'microsoft',
|
21
|
+
Notion = 'notion',
|
22
|
+
Oidc = 'oidc',
|
23
|
+
Okta = 'okta',
|
24
|
+
Paypal = 'paypal',
|
25
|
+
PaypalSandbox = 'paypalSandbox',
|
26
|
+
Podio = 'podio',
|
27
|
+
Salesforce = 'salesforce',
|
28
|
+
Slack = 'slack',
|
29
|
+
Spotify = 'spotify',
|
30
|
+
Stripe = 'stripe',
|
31
|
+
Tradeshift = 'tradeshift',
|
32
|
+
TradeshiftBox = 'tradeshiftBox',
|
33
|
+
Twitch = 'twitch',
|
34
|
+
Wordpress = 'wordpress',
|
35
|
+
Yahoo = 'yahoo',
|
36
|
+
Yammer = 'yammer',
|
37
|
+
Yandex = 'yandex',
|
38
|
+
Zoho = 'zoho',
|
39
|
+
Zoom = 'zoom',
|
40
|
+
Mock = 'mock',
|
41
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
export enum OAuthProvider {
|
2
|
+
Amazon = 'amazon',
|
3
|
+
Apple = 'apple',
|
4
|
+
Auth0 = 'auth0',
|
5
|
+
Authentik = 'authentik',
|
6
|
+
Autodesk = 'autodesk',
|
7
|
+
Bitbucket = 'bitbucket',
|
8
|
+
Bitly = 'bitly',
|
9
|
+
Box = 'box',
|
10
|
+
Dailymotion = 'dailymotion',
|
11
|
+
Discord = 'discord',
|
12
|
+
Disqus = 'disqus',
|
13
|
+
Dropbox = 'dropbox',
|
14
|
+
Etsy = 'etsy',
|
15
|
+
Facebook = 'facebook',
|
16
|
+
Github = 'github',
|
17
|
+
Gitlab = 'gitlab',
|
18
|
+
Google = 'google',
|
19
|
+
Linkedin = 'linkedin',
|
20
|
+
Microsoft = 'microsoft',
|
21
|
+
Notion = 'notion',
|
22
|
+
Oidc = 'oidc',
|
23
|
+
Okta = 'okta',
|
24
|
+
Paypal = 'paypal',
|
25
|
+
PaypalSandbox = 'paypalSandbox',
|
26
|
+
Podio = 'podio',
|
27
|
+
Salesforce = 'salesforce',
|
28
|
+
Slack = 'slack',
|
29
|
+
Spotify = 'spotify',
|
30
|
+
Stripe = 'stripe',
|
31
|
+
Tradeshift = 'tradeshift',
|
32
|
+
TradeshiftBox = 'tradeshiftBox',
|
33
|
+
Twitch = 'twitch',
|
34
|
+
Wordpress = 'wordpress',
|
35
|
+
Yahoo = 'yahoo',
|
36
|
+
Yammer = 'yammer',
|
37
|
+
Yandex = 'yandex',
|
38
|
+
Zoho = 'zoho',
|
39
|
+
Zoom = 'zoom',
|
40
|
+
Mock = 'mock',
|
41
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export enum PasswordHash {
|
2
|
+
Sha1 = 'sha1',
|
3
|
+
Sha224 = 'sha224',
|
4
|
+
Sha256 = 'sha256',
|
5
|
+
Sha384 = 'sha384',
|
6
|
+
Sha512224 = 'sha512/224',
|
7
|
+
Sha512256 = 'sha512/256',
|
8
|
+
Sha512 = 'sha512',
|
9
|
+
Sha3224 = 'sha3-224',
|
10
|
+
Sha3256 = 'sha3-256',
|
11
|
+
Sha3384 = 'sha3-384',
|
12
|
+
Sha3512 = 'sha3-512',
|
13
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export enum PlatformType {
|
2
|
+
Web = 'web',
|
3
|
+
Flutterweb = 'flutter-web',
|
4
|
+
Flutterios = 'flutter-ios',
|
5
|
+
Flutterandroid = 'flutter-android',
|
6
|
+
Flutterlinux = 'flutter-linux',
|
7
|
+
Fluttermacos = 'flutter-macos',
|
8
|
+
Flutterwindows = 'flutter-windows',
|
9
|
+
Appleios = 'apple-ios',
|
10
|
+
Applemacos = 'apple-macos',
|
11
|
+
Applewatchos = 'apple-watchos',
|
12
|
+
Appletvos = 'apple-tvos',
|
13
|
+
Android = 'android',
|
14
|
+
Unity = 'unity',
|
15
|
+
Reactnativeios = 'react-native-ios',
|
16
|
+
Reactnativeandroid = 'react-native-android',
|
17
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
export enum Runtime {
|
2
|
+
Node145 = 'node-14.5',
|
3
|
+
Node160 = 'node-16.0',
|
4
|
+
Node180 = 'node-18.0',
|
5
|
+
Node190 = 'node-19.0',
|
6
|
+
Node200 = 'node-20.0',
|
7
|
+
Node210 = 'node-21.0',
|
8
|
+
Php80 = 'php-8.0',
|
9
|
+
Php81 = 'php-8.1',
|
10
|
+
Php82 = 'php-8.2',
|
11
|
+
Php83 = 'php-8.3',
|
12
|
+
Ruby30 = 'ruby-3.0',
|
13
|
+
Ruby31 = 'ruby-3.1',
|
14
|
+
Ruby32 = 'ruby-3.2',
|
15
|
+
Ruby33 = 'ruby-3.3',
|
16
|
+
Python38 = 'python-3.8',
|
17
|
+
Python39 = 'python-3.9',
|
18
|
+
Python310 = 'python-3.10',
|
19
|
+
Python311 = 'python-3.11',
|
20
|
+
Python312 = 'python-3.12',
|
21
|
+
Pythonml311 = 'python-ml-3.11',
|
22
|
+
Deno140 = 'deno-1.40',
|
23
|
+
Dart215 = 'dart-2.15',
|
24
|
+
Dart216 = 'dart-2.16',
|
25
|
+
Dart217 = 'dart-2.17',
|
26
|
+
Dart218 = 'dart-2.18',
|
27
|
+
Dart30 = 'dart-3.0',
|
28
|
+
Dart31 = 'dart-3.1',
|
29
|
+
Dart33 = 'dart-3.3',
|
30
|
+
Dotnet31 = 'dotnet-3.1',
|
31
|
+
Dotnet60 = 'dotnet-6.0',
|
32
|
+
Dotnet70 = 'dotnet-7.0',
|
33
|
+
Java80 = 'java-8.0',
|
34
|
+
Java110 = 'java-11.0',
|
35
|
+
Java170 = 'java-17.0',
|
36
|
+
Java180 = 'java-18.0',
|
37
|
+
Java210 = 'java-21.0',
|
38
|
+
Swift55 = 'swift-5.5',
|
39
|
+
Swift58 = 'swift-5.8',
|
40
|
+
Swift59 = 'swift-5.9',
|
41
|
+
Kotlin16 = 'kotlin-1.6',
|
42
|
+
Kotlin18 = 'kotlin-1.8',
|
43
|
+
Kotlin19 = 'kotlin-1.9',
|
44
|
+
Cpp17 = 'cpp-17',
|
45
|
+
Cpp20 = 'cpp-20',
|
46
|
+
Bun10 = 'bun-1.0',
|
47
|
+
Go123 = 'go-1.23',
|
48
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export enum Colors {
|
2
|
+
UNDEFINED,
|
3
|
+
SLATE,
|
4
|
+
GRAY,
|
5
|
+
NEUTRAL,
|
6
|
+
STONE,
|
7
|
+
RED,
|
8
|
+
ORANGE,
|
9
|
+
AMBER,
|
10
|
+
YELLOW,
|
11
|
+
LIME,
|
12
|
+
GREEN,
|
13
|
+
EMERALD,
|
14
|
+
TEAL,
|
15
|
+
CYAN,
|
16
|
+
SKY,
|
17
|
+
BLUE,
|
18
|
+
INDIGO,
|
19
|
+
VIOLET,
|
20
|
+
PURPLE,
|
21
|
+
FUCHSIA,
|
22
|
+
PINK,
|
23
|
+
ROSE,
|
24
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export enum SvgIcon {
|
2
|
+
ADMIN,
|
3
|
+
TENANTS,
|
4
|
+
USERS,
|
5
|
+
ROLES,
|
6
|
+
PRICING,
|
7
|
+
EMAILS,
|
8
|
+
NAVIGATION,
|
9
|
+
COMPONENTS,
|
10
|
+
MEMBERS,
|
11
|
+
PROFILE,
|
12
|
+
APP,
|
13
|
+
DASHBOARD,
|
14
|
+
SETTINGS,
|
15
|
+
SETUP,
|
16
|
+
LOGS,
|
17
|
+
EVENTS,
|
18
|
+
BLOG,
|
19
|
+
ENTITIES,
|
20
|
+
KEYS,
|
21
|
+
DOCS,
|
22
|
+
LINKS,
|
23
|
+
PROVIDERS,
|
24
|
+
CLIENTS,
|
25
|
+
CONTRACTS,
|
26
|
+
EMPLOYEES,
|
27
|
+
JOKES,
|
28
|
+
ANALYTICS,
|
29
|
+
AFFILIATES_AND_REFERRALS,
|
30
|
+
HELP_DESK,
|
31
|
+
ONBOARDING,
|
32
|
+
PAGES,
|
33
|
+
FEATURE_FLAGS,
|
34
|
+
PROMPT_BUILDER,
|
35
|
+
KNOWLEDGE_BASE,
|
36
|
+
WORKFLOWS,
|
37
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
export enum SmsTemplateLocale {
|
2
|
+
Af = 'af',
|
3
|
+
Arae = 'ar-ae',
|
4
|
+
Arbh = 'ar-bh',
|
5
|
+
Ardz = 'ar-dz',
|
6
|
+
Areg = 'ar-eg',
|
7
|
+
Ariq = 'ar-iq',
|
8
|
+
Arjo = 'ar-jo',
|
9
|
+
Arkw = 'ar-kw',
|
10
|
+
Arlb = 'ar-lb',
|
11
|
+
Arly = 'ar-ly',
|
12
|
+
Arma = 'ar-ma',
|
13
|
+
Arom = 'ar-om',
|
14
|
+
Arqa = 'ar-qa',
|
15
|
+
Arsa = 'ar-sa',
|
16
|
+
Arsy = 'ar-sy',
|
17
|
+
Artn = 'ar-tn',
|
18
|
+
Arye = 'ar-ye',
|
19
|
+
As = 'as',
|
20
|
+
Az = 'az',
|
21
|
+
Be = 'be',
|
22
|
+
Bg = 'bg',
|
23
|
+
Bh = 'bh',
|
24
|
+
Bn = 'bn',
|
25
|
+
Bs = 'bs',
|
26
|
+
Ca = 'ca',
|
27
|
+
Cs = 'cs',
|
28
|
+
Cy = 'cy',
|
29
|
+
Da = 'da',
|
30
|
+
De = 'de',
|
31
|
+
Deat = 'de-at',
|
32
|
+
Dech = 'de-ch',
|
33
|
+
Deli = 'de-li',
|
34
|
+
Delu = 'de-lu',
|
35
|
+
El = 'el',
|
36
|
+
En = 'en',
|
37
|
+
Enau = 'en-au',
|
38
|
+
Enbz = 'en-bz',
|
39
|
+
Enca = 'en-ca',
|
40
|
+
Engb = 'en-gb',
|
41
|
+
Enie = 'en-ie',
|
42
|
+
Enjm = 'en-jm',
|
43
|
+
Ennz = 'en-nz',
|
44
|
+
Entt = 'en-tt',
|
45
|
+
Enus = 'en-us',
|
46
|
+
Enza = 'en-za',
|
47
|
+
Eo = 'eo',
|
48
|
+
Es = 'es',
|
49
|
+
Esar = 'es-ar',
|
50
|
+
Esbo = 'es-bo',
|
51
|
+
Escl = 'es-cl',
|
52
|
+
Esco = 'es-co',
|
53
|
+
Escr = 'es-cr',
|
54
|
+
Esdo = 'es-do',
|
55
|
+
Esec = 'es-ec',
|
56
|
+
Esgt = 'es-gt',
|
57
|
+
Eshn = 'es-hn',
|
58
|
+
Esmx = 'es-mx',
|
59
|
+
Esni = 'es-ni',
|
60
|
+
Espa = 'es-pa',
|
61
|
+
Espe = 'es-pe',
|
62
|
+
Espr = 'es-pr',
|
63
|
+
Espy = 'es-py',
|
64
|
+
Essv = 'es-sv',
|
65
|
+
Esuy = 'es-uy',
|
66
|
+
Esve = 'es-ve',
|
67
|
+
Et = 'et',
|
68
|
+
Eu = 'eu',
|
69
|
+
Fa = 'fa',
|
70
|
+
Fi = 'fi',
|
71
|
+
Fo = 'fo',
|
72
|
+
Fr = 'fr',
|
73
|
+
Frbe = 'fr-be',
|
74
|
+
Frca = 'fr-ca',
|
75
|
+
Frch = 'fr-ch',
|
76
|
+
Frlu = 'fr-lu',
|
77
|
+
Ga = 'ga',
|
78
|
+
Gd = 'gd',
|
79
|
+
He = 'he',
|
80
|
+
Hi = 'hi',
|
81
|
+
Hr = 'hr',
|
82
|
+
Hu = 'hu',
|
83
|
+
Id = 'id',
|
84
|
+
Is = 'is',
|
85
|
+
It = 'it',
|
86
|
+
Itch = 'it-ch',
|
87
|
+
Ja = 'ja',
|
88
|
+
Ji = 'ji',
|
89
|
+
Ko = 'ko',
|
90
|
+
Ku = 'ku',
|
91
|
+
Lt = 'lt',
|
92
|
+
Lv = 'lv',
|
93
|
+
Mk = 'mk',
|
94
|
+
Ml = 'ml',
|
95
|
+
Ms = 'ms',
|
96
|
+
Mt = 'mt',
|
97
|
+
Nb = 'nb',
|
98
|
+
Ne = 'ne',
|
99
|
+
Nl = 'nl',
|
100
|
+
Nlbe = 'nl-be',
|
101
|
+
Nn = 'nn',
|
102
|
+
No = 'no',
|
103
|
+
Pa = 'pa',
|
104
|
+
Pl = 'pl',
|
105
|
+
Pt = 'pt',
|
106
|
+
Ptbr = 'pt-br',
|
107
|
+
Rm = 'rm',
|
108
|
+
Ro = 'ro',
|
109
|
+
Romd = 'ro-md',
|
110
|
+
Ru = 'ru',
|
111
|
+
Rumd = 'ru-md',
|
112
|
+
Sb = 'sb',
|
113
|
+
Sk = 'sk',
|
114
|
+
Sl = 'sl',
|
115
|
+
Sq = 'sq',
|
116
|
+
Sr = 'sr',
|
117
|
+
Sv = 'sv',
|
118
|
+
Svfi = 'sv-fi',
|
119
|
+
Th = 'th',
|
120
|
+
Tn = 'tn',
|
121
|
+
Tr = 'tr',
|
122
|
+
Ts = 'ts',
|
123
|
+
Ua = 'ua',
|
124
|
+
Ur = 'ur',
|
125
|
+
Ve = 've',
|
126
|
+
Vi = 'vi',
|
127
|
+
Xh = 'xh',
|
128
|
+
Zhcn = 'zh-cn',
|
129
|
+
Zhhk = 'zh-hk',
|
130
|
+
Zhsg = 'zh-sg',
|
131
|
+
Zhtw = 'zh-tw',
|
132
|
+
Zu = 'zu',
|
133
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
|
3
|
+
export enum PricingModel {
|
4
|
+
FLAT_RATE,
|
5
|
+
PER_SEAT,
|
6
|
+
USAGE_BASED,
|
7
|
+
FLAT_RATE_USAGE_BASED,
|
8
|
+
ONCE,
|
9
|
+
ALL,
|
10
|
+
}
|
11
|
+
|
12
|
+
export const ZPricingModel = z.nativeEnum(PricingModel);
|
13
|
+
|
14
|
+
export type TPricingModel = z.infer<typeof ZPricingModel>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
|
3
|
+
export enum SubscriptionBillingPeriod {
|
4
|
+
ONCE,
|
5
|
+
DAILY,
|
6
|
+
WEEKLY,
|
7
|
+
MONTHLY,
|
8
|
+
YEARLY,
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
export const ZSubscriptionBillingPeriod = z.nativeEnum(SubscriptionBillingPeriod);
|
13
|
+
|
14
|
+
|
15
|
+
export type TSubscriptionBillingPeriod = z.infer<typeof ZSubscriptionBillingPeriod>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
|
3
|
+
// TypeScript Enum
|
4
|
+
export enum SubscriptionFeatureLimitType {
|
5
|
+
NOT_INCLUDED,
|
6
|
+
INCLUDED,
|
7
|
+
MONTHLY,
|
8
|
+
MAX,
|
9
|
+
UNLIMITED,
|
10
|
+
}
|
11
|
+
|
12
|
+
// Zod şeması ile Enum doğrulama
|
13
|
+
export const ZSubscriptionFeatureLimitType = z.nativeEnum(SubscriptionFeatureLimitType);
|
14
|
+
|
15
|
+
// Tür çıkarımı
|
16
|
+
export type TSubscriptionFeatureLimitType = z.infer<typeof ZSubscriptionFeatureLimitType>;
|
package/src/id.ts
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* Helper class to generate ID strings for resources.
|
3
|
+
*/
|
4
|
+
export class ID {
|
5
|
+
/**
|
6
|
+
* Generate an hex ID based on timestamp.
|
7
|
+
* Recreated from https://www.php.net/manual/en/function.uniqid.php
|
8
|
+
*
|
9
|
+
* @returns {string}
|
10
|
+
*/
|
11
|
+
static #hexTimestamp(): string {
|
12
|
+
const now = new Date();
|
13
|
+
const sec = Math.floor(now.getTime() / 1000);
|
14
|
+
const msec = now.getMilliseconds();
|
15
|
+
|
16
|
+
// Convert to hexadecimal
|
17
|
+
const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');
|
18
|
+
return hexTimestamp;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Uses the provided ID as the ID for the resource.
|
23
|
+
*
|
24
|
+
* @param {string} id
|
25
|
+
* @returns {string}
|
26
|
+
*/
|
27
|
+
public static custom(id: string): string {
|
28
|
+
return id
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Have Appconda generate a unique ID for you.
|
33
|
+
*
|
34
|
+
* @param {number} padding. Default is 7.
|
35
|
+
* @returns {string}
|
36
|
+
*/
|
37
|
+
public static unique(padding: number = 7): string {
|
38
|
+
// Generate a unique ID with padding to have a longer ID
|
39
|
+
const baseId = ID.#hexTimestamp();
|
40
|
+
let randomPadding = '';
|
41
|
+
for (let i = 0; i < padding; i++) {
|
42
|
+
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
43
|
+
randomPadding += randomHexDigit;
|
44
|
+
}
|
45
|
+
return baseId + randomPadding;
|
46
|
+
}
|
47
|
+
}
|
package/src/index.ts
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
export { Client, Query, AppcondaException } from './client';
|
2
|
+
export { Account } from './services/account';
|
3
|
+
export { Avatars } from './services/avatars';
|
4
|
+
export { Databases } from './services/databases';
|
5
|
+
export { Applets } from './services/applets';
|
6
|
+
export { Functions } from './services/functions';
|
7
|
+
export { Graphql } from './services/graphql';
|
8
|
+
export { Health } from './services/health';
|
9
|
+
export { Locale } from './services/locale';
|
10
|
+
export { Messaging } from './services/messaging';
|
11
|
+
export { Storage } from './services/storage';
|
12
|
+
export { Teams } from './services/teams';
|
13
|
+
export { Users } from './services/users';
|
14
|
+
export type { Models, Payload, UploadProgress } from './client';
|
15
|
+
export type { QueryTypes, QueryTypesList } from './query';
|
16
|
+
export { Permission } from './permission';
|
17
|
+
export { Role } from './role';
|
18
|
+
export { ID } from './id';
|
19
|
+
export { AuthenticatorType } from './enums/authenticator-type';
|
20
|
+
export { AuthenticationFactor } from './enums/authentication-factor';
|
21
|
+
export { OAuthProvider } from './enums/o-auth-provider';
|
22
|
+
export { Browser } from './enums/browser';
|
23
|
+
export { CreditCard } from './enums/credit-card';
|
24
|
+
export { Flag } from './enums/flag';
|
25
|
+
export { RelationshipType } from './enums/relationship-type';
|
26
|
+
export { RelationMutate } from './enums/relation-mutate';
|
27
|
+
export { IndexType } from './enums/index-type';
|
28
|
+
export { Runtime } from './enums/runtime';
|
29
|
+
export { ExecutionMethod } from './enums/execution-method';
|
30
|
+
export { Name } from './enums/name';
|
31
|
+
export { SmtpEncryption } from './enums/smtp-encryption';
|
32
|
+
export { Compression } from './enums/compression';
|
33
|
+
export { ImageGravity } from './enums/image-gravity';
|
34
|
+
export { ImageFormat } from './enums/image-format';
|
35
|
+
export { PasswordHash } from './enums/password-hash';
|
36
|
+
export { MessagingProviderType } from './enums/messaging-provider-type';
|
package/src/inputFile.ts
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
import { File } from "node-fetch-native-with-agent";
|
2
|
+
import { realpathSync, readFileSync } from "fs";
|
3
|
+
import type { BinaryLike } from "crypto";
|
4
|
+
|
5
|
+
export class InputFile {
|
6
|
+
static fromBuffer(
|
7
|
+
parts: Blob | BinaryLike,
|
8
|
+
name: string
|
9
|
+
): File {
|
10
|
+
return new File([parts], name);
|
11
|
+
}
|
12
|
+
|
13
|
+
static fromPath(path: string, name: string): File {
|
14
|
+
const realPath = realpathSync(path);
|
15
|
+
const contents = readFileSync(realPath);
|
16
|
+
return this.fromBuffer(contents, name);
|
17
|
+
}
|
18
|
+
|
19
|
+
static fromPlainText(content: string, name: string): File {
|
20
|
+
const arrayBytes = new TextEncoder().encode(content);
|
21
|
+
return this.fromBuffer(arrayBytes, name);
|
22
|
+
}
|
23
|
+
}
|