node-appwrite 12.1.0-rc.4 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +8 -7
- package/dist/client.mjs.map +1 -1
- package/dist/enums/authentication-factor.mjs +1 -0
- package/dist/enums/authentication-factor.mjs.map +1 -1
- package/dist/enums/authenticator-type.mjs +1 -0
- package/dist/enums/authenticator-type.mjs.map +1 -1
- package/dist/enums/browser.mjs +1 -0
- package/dist/enums/browser.mjs.map +1 -1
- package/dist/enums/compression.mjs +1 -0
- package/dist/enums/compression.mjs.map +1 -1
- package/dist/enums/credit-card.d.mts +1 -1
- package/dist/enums/credit-card.d.ts +1 -1
- package/dist/enums/credit-card.js +1 -1
- package/dist/enums/credit-card.js.map +1 -1
- package/dist/enums/credit-card.mjs +2 -1
- package/dist/enums/credit-card.mjs.map +1 -1
- package/dist/enums/execution-method.mjs +1 -0
- package/dist/enums/execution-method.mjs.map +1 -1
- package/dist/enums/flag.d.mts +1 -0
- package/dist/enums/flag.d.ts +1 -0
- package/dist/enums/flag.js +1 -0
- package/dist/enums/flag.js.map +1 -1
- package/dist/enums/flag.mjs +2 -0
- package/dist/enums/flag.mjs.map +1 -1
- package/dist/enums/image-format.mjs +1 -0
- package/dist/enums/image-format.mjs.map +1 -1
- package/dist/enums/image-gravity.mjs +1 -0
- package/dist/enums/image-gravity.mjs.map +1 -1
- package/dist/enums/index-type.mjs +1 -0
- package/dist/enums/index-type.mjs.map +1 -1
- package/dist/enums/messaging-provider-type.mjs +1 -0
- package/dist/enums/messaging-provider-type.mjs.map +1 -1
- package/dist/enums/name.d.mts +1 -2
- package/dist/enums/name.d.ts +1 -2
- package/dist/enums/name.js +0 -1
- package/dist/enums/name.js.map +1 -1
- package/dist/enums/name.mjs +1 -1
- package/dist/enums/name.mjs.map +1 -1
- package/dist/enums/o-auth-provider.mjs +1 -0
- package/dist/enums/o-auth-provider.mjs.map +1 -1
- package/dist/enums/password-hash.mjs +1 -0
- package/dist/enums/password-hash.mjs.map +1 -1
- package/dist/enums/relation-mutate.mjs +1 -0
- package/dist/enums/relation-mutate.mjs.map +1 -1
- package/dist/enums/relationship-type.mjs +1 -0
- package/dist/enums/relationship-type.mjs.map +1 -1
- package/dist/enums/runtime.d.mts +1 -0
- package/dist/enums/runtime.d.ts +1 -0
- package/dist/enums/runtime.js +1 -0
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +2 -0
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/smtp-encryption.mjs +1 -0
- package/dist/enums/smtp-encryption.mjs.map +1 -1
- package/dist/id.mjs +4 -3
- package/dist/id.mjs.map +1 -1
- package/dist/index.mjs +33 -33
- package/dist/index.mjs.map +1 -1
- package/dist/inputFile.mjs +3 -2
- package/dist/inputFile.mjs.map +1 -1
- package/dist/models.d.mts +11 -3
- package/dist/models.d.ts +11 -3
- package/dist/permission.mjs +3 -2
- package/dist/permission.mjs.map +1 -1
- package/dist/query.mjs +3 -2
- package/dist/query.mjs.map +1 -1
- package/dist/role.mjs +3 -2
- package/dist/role.mjs.map +1 -1
- package/dist/services/account.d.mts +4 -4
- package/dist/services/account.d.ts +4 -4
- package/dist/services/account.js +3 -3
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +7 -6
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.mjs +4 -3
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.mjs +4 -3
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.mjs +4 -3
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.mjs +4 -3
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.mjs +4 -3
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/locale.mjs +3 -2
- package/dist/services/locale.mjs.map +1 -1
- package/dist/services/messaging.d.mts +6 -5
- package/dist/services/messaging.d.ts +6 -5
- package/dist/services/messaging.js +14 -10
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +18 -13
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/storage.mjs +4 -3
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/teams.mjs +4 -3
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/users.d.mts +2 -1
- package/dist/services/users.d.ts +2 -1
- package/dist/services/users.js +11 -10
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +15 -13
- package/dist/services/users.mjs.map +1 -1
- package/package.json +5 -1
- package/.github/ISSUE_TEMPLATE/bug.yaml +0 -82
- package/.github/ISSUE_TEMPLATE/documentation.yaml +0 -32
- package/.github/ISSUE_TEMPLATE/feature.yaml +0 -40
- package/.travis.yml +0 -35
- package/CHANGELOG.md +0 -1
- package/docs/examples/account/create-anonymous-session.md +0 -9
- package/docs/examples/account/create-email-password-session.md +0 -12
- package/docs/examples/account/create-email-token.md +0 -13
- package/docs/examples/account/create-j-w-t.md +0 -9
- package/docs/examples/account/create-magic-u-r-l-token.md +0 -14
- package/docs/examples/account/create-mfa-authenticator.md +0 -12
- package/docs/examples/account/create-mfa-challenge.md +0 -11
- package/docs/examples/account/create-mfa-recovery-codes.md +0 -10
- package/docs/examples/account/create-o-auth2token.md +0 -14
- package/docs/examples/account/create-phone-token.md +0 -12
- package/docs/examples/account/create-phone-verification.md +0 -10
- package/docs/examples/account/create-recovery.md +0 -13
- package/docs/examples/account/create-session.md +0 -12
- package/docs/examples/account/create-verification.md +0 -12
- package/docs/examples/account/create.md +0 -14
- package/docs/examples/account/delete-identity.md +0 -12
- package/docs/examples/account/delete-mfa-authenticator.md +0 -13
- package/docs/examples/account/delete-session.md +0 -12
- package/docs/examples/account/delete-sessions.md +0 -10
- package/docs/examples/account/get-mfa-recovery-codes.md +0 -10
- package/docs/examples/account/get-prefs.md +0 -10
- package/docs/examples/account/get-session.md +0 -12
- package/docs/examples/account/get.md +0 -10
- package/docs/examples/account/list-identities.md +0 -12
- package/docs/examples/account/list-logs.md +0 -12
- package/docs/examples/account/list-mfa-factors.md +0 -10
- package/docs/examples/account/list-sessions.md +0 -10
- package/docs/examples/account/update-email.md +0 -13
- package/docs/examples/account/update-m-f-a.md +0 -12
- package/docs/examples/account/update-magic-u-r-l-session.md +0 -12
- package/docs/examples/account/update-mfa-authenticator.md +0 -13
- package/docs/examples/account/update-mfa-challenge.md +0 -13
- package/docs/examples/account/update-mfa-recovery-codes.md +0 -10
- package/docs/examples/account/update-name.md +0 -12
- package/docs/examples/account/update-password.md +0 -13
- package/docs/examples/account/update-phone-session.md +0 -12
- package/docs/examples/account/update-phone-verification.md +0 -13
- package/docs/examples/account/update-phone.md +0 -13
- package/docs/examples/account/update-prefs.md +0 -12
- package/docs/examples/account/update-recovery.md +0 -14
- package/docs/examples/account/update-session.md +0 -12
- package/docs/examples/account/update-status.md +0 -10
- package/docs/examples/account/update-verification.md +0 -13
- package/docs/examples/avatars/get-browser.md +0 -15
- package/docs/examples/avatars/get-credit-card.md +0 -15
- package/docs/examples/avatars/get-favicon.md +0 -12
- package/docs/examples/avatars/get-flag.md +0 -15
- package/docs/examples/avatars/get-image.md +0 -14
- package/docs/examples/avatars/get-initials.md +0 -15
- package/docs/examples/avatars/get-q-r.md +0 -15
- package/docs/examples/databases/create-boolean-attribute.md +0 -17
- package/docs/examples/databases/create-collection.md +0 -17
- package/docs/examples/databases/create-datetime-attribute.md +0 -17
- package/docs/examples/databases/create-document.md +0 -16
- package/docs/examples/databases/create-email-attribute.md +0 -17
- package/docs/examples/databases/create-enum-attribute.md +0 -18
- package/docs/examples/databases/create-float-attribute.md +0 -19
- package/docs/examples/databases/create-index.md +0 -17
- package/docs/examples/databases/create-integer-attribute.md +0 -19
- package/docs/examples/databases/create-ip-attribute.md +0 -17
- package/docs/examples/databases/create-relationship-attribute.md +0 -19
- package/docs/examples/databases/create-string-attribute.md +0 -19
- package/docs/examples/databases/create-url-attribute.md +0 -17
- package/docs/examples/databases/create.md +0 -14
- package/docs/examples/databases/delete-attribute.md +0 -14
- package/docs/examples/databases/delete-collection.md +0 -13
- package/docs/examples/databases/delete-document.md +0 -14
- package/docs/examples/databases/delete-index.md +0 -14
- package/docs/examples/databases/delete.md +0 -12
- package/docs/examples/databases/get-attribute.md +0 -14
- package/docs/examples/databases/get-collection.md +0 -13
- package/docs/examples/databases/get-document.md +0 -15
- package/docs/examples/databases/get-index.md +0 -14
- package/docs/examples/databases/get.md +0 -12
- package/docs/examples/databases/list-attributes.md +0 -14
- package/docs/examples/databases/list-collections.md +0 -14
- package/docs/examples/databases/list-documents.md +0 -14
- package/docs/examples/databases/list-indexes.md +0 -14
- package/docs/examples/databases/list.md +0 -13
- package/docs/examples/databases/update-boolean-attribute.md +0 -16
- package/docs/examples/databases/update-collection.md +0 -17
- package/docs/examples/databases/update-datetime-attribute.md +0 -16
- package/docs/examples/databases/update-document.md +0 -16
- package/docs/examples/databases/update-email-attribute.md +0 -16
- package/docs/examples/databases/update-enum-attribute.md +0 -17
- package/docs/examples/databases/update-float-attribute.md +0 -18
- package/docs/examples/databases/update-integer-attribute.md +0 -18
- package/docs/examples/databases/update-ip-attribute.md +0 -16
- package/docs/examples/databases/update-relationship-attribute.md +0 -15
- package/docs/examples/databases/update-string-attribute.md +0 -16
- package/docs/examples/databases/update-url-attribute.md +0 -16
- package/docs/examples/databases/update.md +0 -14
- package/docs/examples/functions/create-build.md +0 -14
- package/docs/examples/functions/create-deployment.md +0 -17
- package/docs/examples/functions/create-execution.md +0 -17
- package/docs/examples/functions/create-variable.md +0 -14
- package/docs/examples/functions/create.md +0 -31
- package/docs/examples/functions/delete-deployment.md +0 -13
- package/docs/examples/functions/delete-variable.md +0 -13
- package/docs/examples/functions/delete.md +0 -12
- package/docs/examples/functions/download-deployment.md +0 -13
- package/docs/examples/functions/get-deployment.md +0 -13
- package/docs/examples/functions/get-execution.md +0 -13
- package/docs/examples/functions/get-variable.md +0 -13
- package/docs/examples/functions/get.md +0 -12
- package/docs/examples/functions/list-deployments.md +0 -14
- package/docs/examples/functions/list-executions.md +0 -14
- package/docs/examples/functions/list-runtimes.md +0 -10
- package/docs/examples/functions/list-variables.md +0 -12
- package/docs/examples/functions/list.md +0 -13
- package/docs/examples/functions/update-deployment.md +0 -13
- package/docs/examples/functions/update-variable.md +0 -15
- package/docs/examples/functions/update.md +0 -27
- package/docs/examples/graphql/mutation.md +0 -12
- package/docs/examples/graphql/query.md +0 -12
- package/docs/examples/health/get-antivirus.md +0 -10
- package/docs/examples/health/get-cache.md +0 -10
- package/docs/examples/health/get-certificate.md +0 -12
- package/docs/examples/health/get-d-b.md +0 -10
- package/docs/examples/health/get-failed-jobs.md +0 -13
- package/docs/examples/health/get-pub-sub.md +0 -10
- package/docs/examples/health/get-queue-builds.md +0 -12
- package/docs/examples/health/get-queue-certificates.md +0 -12
- package/docs/examples/health/get-queue-databases.md +0 -13
- package/docs/examples/health/get-queue-deletes.md +0 -12
- package/docs/examples/health/get-queue-functions.md +0 -12
- package/docs/examples/health/get-queue-logs.md +0 -12
- package/docs/examples/health/get-queue-mails.md +0 -12
- package/docs/examples/health/get-queue-messaging.md +0 -12
- package/docs/examples/health/get-queue-migrations.md +0 -12
- package/docs/examples/health/get-queue-usage-dump.md +0 -12
- package/docs/examples/health/get-queue-usage.md +0 -12
- package/docs/examples/health/get-queue-webhooks.md +0 -12
- package/docs/examples/health/get-queue.md +0 -10
- package/docs/examples/health/get-storage-local.md +0 -10
- package/docs/examples/health/get-storage.md +0 -10
- package/docs/examples/health/get-time.md +0 -10
- package/docs/examples/health/get.md +0 -10
- package/docs/examples/locale/get.md +0 -10
- package/docs/examples/locale/list-codes.md +0 -10
- package/docs/examples/locale/list-continents.md +0 -10
- package/docs/examples/locale/list-countries-e-u.md +0 -10
- package/docs/examples/locale/list-countries-phones.md +0 -10
- package/docs/examples/locale/list-countries.md +0 -10
- package/docs/examples/locale/list-currencies.md +0 -10
- package/docs/examples/locale/list-languages.md +0 -10
- package/docs/examples/messaging/create-apns-provider.md +0 -19
- package/docs/examples/messaging/create-email.md +0 -23
- package/docs/examples/messaging/create-fcm-provider.md +0 -15
- package/docs/examples/messaging/create-mailgun-provider.md +0 -21
- package/docs/examples/messaging/create-msg91provider.md +0 -17
- package/docs/examples/messaging/create-push.md +0 -27
- package/docs/examples/messaging/create-sendgrid-provider.md +0 -19
- package/docs/examples/messaging/create-sms.md +0 -18
- package/docs/examples/messaging/create-smtp-provider.md +0 -25
- package/docs/examples/messaging/create-subscriber.md +0 -14
- package/docs/examples/messaging/create-telesign-provider.md +0 -17
- package/docs/examples/messaging/create-textmagic-provider.md +0 -17
- package/docs/examples/messaging/create-topic.md +0 -14
- package/docs/examples/messaging/create-twilio-provider.md +0 -17
- package/docs/examples/messaging/create-vonage-provider.md +0 -17
- package/docs/examples/messaging/delete-provider.md +0 -12
- package/docs/examples/messaging/delete-subscriber.md +0 -13
- package/docs/examples/messaging/delete-topic.md +0 -12
- package/docs/examples/messaging/delete.md +0 -12
- package/docs/examples/messaging/get-message.md +0 -12
- package/docs/examples/messaging/get-provider.md +0 -12
- package/docs/examples/messaging/get-subscriber.md +0 -13
- package/docs/examples/messaging/get-topic.md +0 -12
- package/docs/examples/messaging/list-message-logs.md +0 -13
- package/docs/examples/messaging/list-messages.md +0 -13
- package/docs/examples/messaging/list-provider-logs.md +0 -13
- package/docs/examples/messaging/list-providers.md +0 -13
- package/docs/examples/messaging/list-subscriber-logs.md +0 -13
- package/docs/examples/messaging/list-subscribers.md +0 -14
- package/docs/examples/messaging/list-targets.md +0 -13
- package/docs/examples/messaging/list-topic-logs.md +0 -13
- package/docs/examples/messaging/list-topics.md +0 -13
- package/docs/examples/messaging/update-apns-provider.md +0 -19
- package/docs/examples/messaging/update-email.md +0 -22
- package/docs/examples/messaging/update-fcm-provider.md +0 -15
- package/docs/examples/messaging/update-mailgun-provider.md +0 -21
- package/docs/examples/messaging/update-msg91provider.md +0 -17
- package/docs/examples/messaging/update-push.md +0 -27
- package/docs/examples/messaging/update-sendgrid-provider.md +0 -19
- package/docs/examples/messaging/update-sms.md +0 -18
- package/docs/examples/messaging/update-smtp-provider.md +0 -25
- package/docs/examples/messaging/update-telesign-provider.md +0 -17
- package/docs/examples/messaging/update-textmagic-provider.md +0 -17
- package/docs/examples/messaging/update-topic.md +0 -14
- package/docs/examples/messaging/update-twilio-provider.md +0 -17
- package/docs/examples/messaging/update-vonage-provider.md +0 -17
- package/docs/examples/storage/create-bucket.md +0 -21
- package/docs/examples/storage/create-file.md +0 -16
- package/docs/examples/storage/delete-bucket.md +0 -12
- package/docs/examples/storage/delete-file.md +0 -13
- package/docs/examples/storage/get-bucket.md +0 -12
- package/docs/examples/storage/get-file-download.md +0 -13
- package/docs/examples/storage/get-file-preview.md +0 -24
- package/docs/examples/storage/get-file-view.md +0 -13
- package/docs/examples/storage/get-file.md +0 -13
- package/docs/examples/storage/list-buckets.md +0 -13
- package/docs/examples/storage/list-files.md +0 -14
- package/docs/examples/storage/update-bucket.md +0 -21
- package/docs/examples/storage/update-file.md +0 -15
- package/docs/examples/teams/create-membership.md +0 -18
- package/docs/examples/teams/create.md +0 -14
- package/docs/examples/teams/delete-membership.md +0 -13
- package/docs/examples/teams/delete.md +0 -12
- package/docs/examples/teams/get-membership.md +0 -13
- package/docs/examples/teams/get-prefs.md +0 -12
- package/docs/examples/teams/get.md +0 -12
- package/docs/examples/teams/list-memberships.md +0 -14
- package/docs/examples/teams/list.md +0 -13
- package/docs/examples/teams/update-membership-status.md +0 -15
- package/docs/examples/teams/update-membership.md +0 -14
- package/docs/examples/teams/update-name.md +0 -13
- package/docs/examples/teams/update-prefs.md +0 -13
- package/docs/examples/users/create-argon2user.md +0 -15
- package/docs/examples/users/create-bcrypt-user.md +0 -15
- package/docs/examples/users/create-m-d5user.md +0 -15
- package/docs/examples/users/create-mfa-recovery-codes.md +0 -12
- package/docs/examples/users/create-p-h-pass-user.md +0 -15
- package/docs/examples/users/create-s-h-a-user.md +0 -16
- package/docs/examples/users/create-scrypt-modified-user.md +0 -18
- package/docs/examples/users/create-scrypt-user.md +0 -20
- package/docs/examples/users/create-session.md +0 -12
- package/docs/examples/users/create-target.md +0 -17
- package/docs/examples/users/create-token.md +0 -14
- package/docs/examples/users/create.md +0 -16
- package/docs/examples/users/delete-identity.md +0 -12
- package/docs/examples/users/delete-mfa-authenticator.md +0 -13
- package/docs/examples/users/delete-session.md +0 -13
- package/docs/examples/users/delete-sessions.md +0 -12
- package/docs/examples/users/delete-target.md +0 -13
- package/docs/examples/users/delete.md +0 -12
- package/docs/examples/users/get-mfa-recovery-codes.md +0 -12
- package/docs/examples/users/get-prefs.md +0 -12
- package/docs/examples/users/get-target.md +0 -13
- package/docs/examples/users/get.md +0 -12
- package/docs/examples/users/list-identities.md +0 -13
- package/docs/examples/users/list-logs.md +0 -13
- package/docs/examples/users/list-memberships.md +0 -12
- package/docs/examples/users/list-mfa-factors.md +0 -12
- package/docs/examples/users/list-sessions.md +0 -12
- package/docs/examples/users/list-targets.md +0 -13
- package/docs/examples/users/list.md +0 -13
- package/docs/examples/users/update-email-verification.md +0 -13
- package/docs/examples/users/update-email.md +0 -13
- package/docs/examples/users/update-labels.md +0 -13
- package/docs/examples/users/update-mfa-recovery-codes.md +0 -12
- package/docs/examples/users/update-mfa.md +0 -13
- package/docs/examples/users/update-name.md +0 -13
- package/docs/examples/users/update-password.md +0 -13
- package/docs/examples/users/update-phone-verification.md +0 -13
- package/docs/examples/users/update-phone.md +0 -13
- package/docs/examples/users/update-prefs.md +0 -13
- package/docs/examples/users/update-status.md +0 -13
- package/docs/examples/users/update-target.md +0 -16
- package/src/client.ts +0 -366
- package/src/enums/authentication-factor.ts +0 -6
- package/src/enums/authenticator-type.ts +0 -3
- package/src/enums/browser.ts +0 -16
- package/src/enums/compression.ts +0 -5
- package/src/enums/credit-card.ts +0 -18
- package/src/enums/execution-method.ts +0 -8
- package/src/enums/flag.ts +0 -196
- package/src/enums/image-format.ts +0 -7
- package/src/enums/image-gravity.ts +0 -11
- package/src/enums/index-type.ts +0 -5
- package/src/enums/messaging-provider-type.ts +0 -5
- package/src/enums/name.ts +0 -15
- package/src/enums/o-auth-provider.ts +0 -41
- package/src/enums/password-hash.ts +0 -13
- package/src/enums/relation-mutate.ts +0 -5
- package/src/enums/relationship-type.ts +0 -6
- package/src/enums/runtime.ts +0 -46
- package/src/enums/smtp-encryption.ts +0 -5
- package/src/id.ts +0 -28
- package/src/index.ts +0 -35
- package/src/inputFile.ts +0 -23
- package/src/models.ts +0 -2404
- package/src/permission.ts +0 -22
- package/src/query.ts +0 -101
- package/src/role.ts +0 -100
- package/src/services/account.ts +0 -1418
- package/src/services/avatars.ts +0 -312
- package/src/services/databases.ts +0 -1993
- package/src/services/functions.ts +0 -878
- package/src/services/graphql.ts +0 -75
- package/src/services/health.ts +0 -629
- package/src/services/locale.ts +0 -205
- package/src/services/messaging.ts +0 -2243
- package/src/services/storage.ts +0 -576
- package/src/services/teams.ts +0 -490
- package/src/services/users.ts +0 -1547
- package/tsconfig.json +0 -18
- package/tsup.config.js +0 -19
package/src/enums/flag.ts
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
export enum Flag {
|
|
2
|
-
Afghanistan = 'af',
|
|
3
|
-
Angola = 'ao',
|
|
4
|
-
Albania = 'al',
|
|
5
|
-
Andorra = 'ad',
|
|
6
|
-
UnitedArabEmirates = 'ae',
|
|
7
|
-
Argentina = 'ar',
|
|
8
|
-
Armenia = 'am',
|
|
9
|
-
AntiguaAndBarbuda = 'ag',
|
|
10
|
-
Australia = 'au',
|
|
11
|
-
Austria = 'at',
|
|
12
|
-
Azerbaijan = 'az',
|
|
13
|
-
Burundi = 'bi',
|
|
14
|
-
Belgium = 'be',
|
|
15
|
-
Benin = 'bj',
|
|
16
|
-
BurkinaFaso = 'bf',
|
|
17
|
-
Bangladesh = 'bd',
|
|
18
|
-
Bulgaria = 'bg',
|
|
19
|
-
Bahrain = 'bh',
|
|
20
|
-
Bahamas = 'bs',
|
|
21
|
-
BosniaAndHerzegovina = 'ba',
|
|
22
|
-
Belarus = 'by',
|
|
23
|
-
Belize = 'bz',
|
|
24
|
-
Bolivia = 'bo',
|
|
25
|
-
Brazil = 'br',
|
|
26
|
-
Barbados = 'bb',
|
|
27
|
-
BruneiDarussalam = 'bn',
|
|
28
|
-
Bhutan = 'bt',
|
|
29
|
-
Botswana = 'bw',
|
|
30
|
-
CentralAfricanRepublic = 'cf',
|
|
31
|
-
Canada = 'ca',
|
|
32
|
-
Switzerland = 'ch',
|
|
33
|
-
Chile = 'cl',
|
|
34
|
-
China = 'cn',
|
|
35
|
-
CoteDIvoire = 'ci',
|
|
36
|
-
Cameroon = 'cm',
|
|
37
|
-
DemocraticRepublicOfTheCongo = 'cd',
|
|
38
|
-
RepublicOfTheCongo = 'cg',
|
|
39
|
-
Colombia = 'co',
|
|
40
|
-
Comoros = 'km',
|
|
41
|
-
CapeVerde = 'cv',
|
|
42
|
-
CostaRica = 'cr',
|
|
43
|
-
Cuba = 'cu',
|
|
44
|
-
Cyprus = 'cy',
|
|
45
|
-
CzechRepublic = 'cz',
|
|
46
|
-
Germany = 'de',
|
|
47
|
-
Djibouti = 'dj',
|
|
48
|
-
Dominica = 'dm',
|
|
49
|
-
Denmark = 'dk',
|
|
50
|
-
DominicanRepublic = 'do',
|
|
51
|
-
Algeria = 'dz',
|
|
52
|
-
Ecuador = 'ec',
|
|
53
|
-
Egypt = 'eg',
|
|
54
|
-
Eritrea = 'er',
|
|
55
|
-
Spain = 'es',
|
|
56
|
-
Estonia = 'ee',
|
|
57
|
-
Ethiopia = 'et',
|
|
58
|
-
Finland = 'fi',
|
|
59
|
-
Fiji = 'fj',
|
|
60
|
-
France = 'fr',
|
|
61
|
-
MicronesiaFederatedStatesOf = 'fm',
|
|
62
|
-
Gabon = 'ga',
|
|
63
|
-
UnitedKingdom = 'gb',
|
|
64
|
-
Georgia = 'ge',
|
|
65
|
-
Ghana = 'gh',
|
|
66
|
-
Guinea = 'gn',
|
|
67
|
-
Gambia = 'gm',
|
|
68
|
-
GuineaBissau = 'gw',
|
|
69
|
-
EquatorialGuinea = 'gq',
|
|
70
|
-
Greece = 'gr',
|
|
71
|
-
Grenada = 'gd',
|
|
72
|
-
Guatemala = 'gt',
|
|
73
|
-
Guyana = 'gy',
|
|
74
|
-
Honduras = 'hn',
|
|
75
|
-
Croatia = 'hr',
|
|
76
|
-
Haiti = 'ht',
|
|
77
|
-
Hungary = 'hu',
|
|
78
|
-
Indonesia = 'id',
|
|
79
|
-
India = 'in',
|
|
80
|
-
Ireland = 'ie',
|
|
81
|
-
IranIslamicRepublicOf = 'ir',
|
|
82
|
-
Iraq = 'iq',
|
|
83
|
-
Iceland = 'is',
|
|
84
|
-
Israel = 'il',
|
|
85
|
-
Italy = 'it',
|
|
86
|
-
Jamaica = 'jm',
|
|
87
|
-
Jordan = 'jo',
|
|
88
|
-
Japan = 'jp',
|
|
89
|
-
Kazakhstan = 'kz',
|
|
90
|
-
Kenya = 'ke',
|
|
91
|
-
Kyrgyzstan = 'kg',
|
|
92
|
-
Cambodia = 'kh',
|
|
93
|
-
Kiribati = 'ki',
|
|
94
|
-
SaintKittsAndNevis = 'kn',
|
|
95
|
-
SouthKorea = 'kr',
|
|
96
|
-
Kuwait = 'kw',
|
|
97
|
-
LaoPeopleSDemocraticRepublic = 'la',
|
|
98
|
-
Lebanon = 'lb',
|
|
99
|
-
Liberia = 'lr',
|
|
100
|
-
Libya = 'ly',
|
|
101
|
-
SaintLucia = 'lc',
|
|
102
|
-
Liechtenstein = 'li',
|
|
103
|
-
SriLanka = 'lk',
|
|
104
|
-
Lesotho = 'ls',
|
|
105
|
-
Lithuania = 'lt',
|
|
106
|
-
Luxembourg = 'lu',
|
|
107
|
-
Latvia = 'lv',
|
|
108
|
-
Morocco = 'ma',
|
|
109
|
-
Monaco = 'mc',
|
|
110
|
-
Moldova = 'md',
|
|
111
|
-
Madagascar = 'mg',
|
|
112
|
-
Maldives = 'mv',
|
|
113
|
-
Mexico = 'mx',
|
|
114
|
-
MarshallIslands = 'mh',
|
|
115
|
-
NorthMacedonia = 'mk',
|
|
116
|
-
Mali = 'ml',
|
|
117
|
-
Malta = 'mt',
|
|
118
|
-
Myanmar = 'mm',
|
|
119
|
-
Montenegro = 'me',
|
|
120
|
-
Mongolia = 'mn',
|
|
121
|
-
Mozambique = 'mz',
|
|
122
|
-
Mauritania = 'mr',
|
|
123
|
-
Mauritius = 'mu',
|
|
124
|
-
Malawi = 'mw',
|
|
125
|
-
Malaysia = 'my',
|
|
126
|
-
Namibia = 'na',
|
|
127
|
-
Niger = 'ne',
|
|
128
|
-
Nigeria = 'ng',
|
|
129
|
-
Nicaragua = 'ni',
|
|
130
|
-
Netherlands = 'nl',
|
|
131
|
-
Norway = 'no',
|
|
132
|
-
Nepal = 'np',
|
|
133
|
-
Nauru = 'nr',
|
|
134
|
-
NewZealand = 'nz',
|
|
135
|
-
Oman = 'om',
|
|
136
|
-
Pakistan = 'pk',
|
|
137
|
-
Panama = 'pa',
|
|
138
|
-
Peru = 'pe',
|
|
139
|
-
Philippines = 'ph',
|
|
140
|
-
Palau = 'pw',
|
|
141
|
-
PapuaNewGuinea = 'pg',
|
|
142
|
-
Poland = 'pl',
|
|
143
|
-
NorthKorea = 'kp',
|
|
144
|
-
Portugal = 'pt',
|
|
145
|
-
Paraguay = 'py',
|
|
146
|
-
Qatar = 'qa',
|
|
147
|
-
Romania = 'ro',
|
|
148
|
-
Russia = 'ru',
|
|
149
|
-
Rwanda = 'rw',
|
|
150
|
-
SaudiArabia = 'sa',
|
|
151
|
-
Sudan = 'sd',
|
|
152
|
-
Senegal = 'sn',
|
|
153
|
-
Singapore = 'sg',
|
|
154
|
-
SolomonIslands = 'sb',
|
|
155
|
-
SierraLeone = 'sl',
|
|
156
|
-
ElSalvador = 'sv',
|
|
157
|
-
SanMarino = 'sm',
|
|
158
|
-
Somalia = 'so',
|
|
159
|
-
Serbia = 'rs',
|
|
160
|
-
SouthSudan = 'ss',
|
|
161
|
-
SaoTomeAndPrincipe = 'st',
|
|
162
|
-
Suriname = 'sr',
|
|
163
|
-
Slovakia = 'sk',
|
|
164
|
-
Slovenia = 'si',
|
|
165
|
-
Sweden = 'se',
|
|
166
|
-
Eswatini = 'sz',
|
|
167
|
-
Seychelles = 'sc',
|
|
168
|
-
Syria = 'sy',
|
|
169
|
-
Chad = 'td',
|
|
170
|
-
Togo = 'tg',
|
|
171
|
-
Thailand = 'th',
|
|
172
|
-
Tajikistan = 'tj',
|
|
173
|
-
Turkmenistan = 'tm',
|
|
174
|
-
TimorLeste = 'tl',
|
|
175
|
-
Tonga = 'to',
|
|
176
|
-
TrinidadAndTobago = 'tt',
|
|
177
|
-
Tunisia = 'tn',
|
|
178
|
-
Turkey = 'tr',
|
|
179
|
-
Tuvalu = 'tv',
|
|
180
|
-
Tanzania = 'tz',
|
|
181
|
-
Uganda = 'ug',
|
|
182
|
-
Ukraine = 'ua',
|
|
183
|
-
Uruguay = 'uy',
|
|
184
|
-
UnitedStates = 'us',
|
|
185
|
-
Uzbekistan = 'uz',
|
|
186
|
-
VaticanCity = 'va',
|
|
187
|
-
SaintVincentAndTheGrenadines = 'vc',
|
|
188
|
-
Venezuela = 've',
|
|
189
|
-
Vietnam = 'vn',
|
|
190
|
-
Vanuatu = 'vu',
|
|
191
|
-
Samoa = 'ws',
|
|
192
|
-
Yemen = 'ye',
|
|
193
|
-
SouthAfrica = 'za',
|
|
194
|
-
Zambia = 'zm',
|
|
195
|
-
Zimbabwe = 'zw',
|
|
196
|
-
}
|
package/src/enums/index-type.ts
DELETED
package/src/enums/name.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export enum Name {
|
|
2
|
-
V1database = 'v1-database',
|
|
3
|
-
V1deletes = 'v1-deletes',
|
|
4
|
-
V1audits = 'v1-audits',
|
|
5
|
-
V1mails = 'v1-mails',
|
|
6
|
-
V1functions = 'v1-functions',
|
|
7
|
-
V1usage = 'v1-usage',
|
|
8
|
-
V1usagedump = 'v1-usage-dump',
|
|
9
|
-
Webhooksv1 = 'webhooksv1',
|
|
10
|
-
V1certificates = 'v1-certificates',
|
|
11
|
-
V1builds = 'v1-builds',
|
|
12
|
-
V1messaging = 'v1-messaging',
|
|
13
|
-
V1migrations = 'v1-migrations',
|
|
14
|
-
Hamsterv1 = 'hamsterv1',
|
|
15
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
package/src/enums/runtime.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
Deno140 = 'deno-1.40',
|
|
22
|
-
Dart215 = 'dart-2.15',
|
|
23
|
-
Dart216 = 'dart-2.16',
|
|
24
|
-
Dart217 = 'dart-2.17',
|
|
25
|
-
Dart218 = 'dart-2.18',
|
|
26
|
-
Dart30 = 'dart-3.0',
|
|
27
|
-
Dart31 = 'dart-3.1',
|
|
28
|
-
Dart33 = 'dart-3.3',
|
|
29
|
-
Dotnet31 = 'dotnet-3.1',
|
|
30
|
-
Dotnet60 = 'dotnet-6.0',
|
|
31
|
-
Dotnet70 = 'dotnet-7.0',
|
|
32
|
-
Java80 = 'java-8.0',
|
|
33
|
-
Java110 = 'java-11.0',
|
|
34
|
-
Java170 = 'java-17.0',
|
|
35
|
-
Java180 = 'java-18.0',
|
|
36
|
-
Java210 = 'java-21.0',
|
|
37
|
-
Swift55 = 'swift-5.5',
|
|
38
|
-
Swift58 = 'swift-5.8',
|
|
39
|
-
Swift59 = 'swift-5.9',
|
|
40
|
-
Kotlin16 = 'kotlin-1.6',
|
|
41
|
-
Kotlin18 = 'kotlin-1.8',
|
|
42
|
-
Kotlin19 = 'kotlin-1.9',
|
|
43
|
-
Cpp17 = 'cpp-17',
|
|
44
|
-
Cpp20 = 'cpp-20',
|
|
45
|
-
Bun10 = 'bun-1.0',
|
|
46
|
-
}
|
package/src/id.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export class ID {
|
|
2
|
-
// Generate an hex ID based on timestamp
|
|
3
|
-
// Recreated from https://www.php.net/manual/en/function.uniqid.php
|
|
4
|
-
static #hexTimestamp(): string {
|
|
5
|
-
const now = new Date();
|
|
6
|
-
const sec = Math.floor(now.getTime() / 1000);
|
|
7
|
-
const msec = now.getMilliseconds();
|
|
8
|
-
|
|
9
|
-
// Convert to hexadecimal
|
|
10
|
-
const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');
|
|
11
|
-
return hexTimestamp;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public static custom(id: string): string {
|
|
15
|
-
return id
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public static unique(padding: number = 7): string {
|
|
19
|
-
// Generate a unique ID with padding to have a longer ID
|
|
20
|
-
const baseId = ID.#hexTimestamp();
|
|
21
|
-
let randomPadding = '';
|
|
22
|
-
for (let i = 0; i < padding; i++) {
|
|
23
|
-
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
|
24
|
-
randomPadding += randomHexDigit;
|
|
25
|
-
}
|
|
26
|
-
return baseId + randomPadding;
|
|
27
|
-
}
|
|
28
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export { Client, Query, AppwriteException } from './client';
|
|
2
|
-
export { Account } from './services/account';
|
|
3
|
-
export { Avatars } from './services/avatars';
|
|
4
|
-
export { Databases } from './services/databases';
|
|
5
|
-
export { Functions } from './services/functions';
|
|
6
|
-
export { Graphql } from './services/graphql';
|
|
7
|
-
export { Health } from './services/health';
|
|
8
|
-
export { Locale } from './services/locale';
|
|
9
|
-
export { Messaging } from './services/messaging';
|
|
10
|
-
export { Storage } from './services/storage';
|
|
11
|
-
export { Teams } from './services/teams';
|
|
12
|
-
export { Users } from './services/users';
|
|
13
|
-
export type { Models, Payload, UploadProgress } from './client';
|
|
14
|
-
export type { QueryTypes, QueryTypesList } from './query';
|
|
15
|
-
export { Permission } from './permission';
|
|
16
|
-
export { Role } from './role';
|
|
17
|
-
export { ID } from './id';
|
|
18
|
-
export { AuthenticatorType } from './enums/authenticator-type';
|
|
19
|
-
export { AuthenticationFactor } from './enums/authentication-factor';
|
|
20
|
-
export { OAuthProvider } from './enums/o-auth-provider';
|
|
21
|
-
export { Browser } from './enums/browser';
|
|
22
|
-
export { CreditCard } from './enums/credit-card';
|
|
23
|
-
export { Flag } from './enums/flag';
|
|
24
|
-
export { RelationshipType } from './enums/relationship-type';
|
|
25
|
-
export { RelationMutate } from './enums/relation-mutate';
|
|
26
|
-
export { IndexType } from './enums/index-type';
|
|
27
|
-
export { Runtime } from './enums/runtime';
|
|
28
|
-
export { ExecutionMethod } from './enums/execution-method';
|
|
29
|
-
export { Name } from './enums/name';
|
|
30
|
-
export { SmtpEncryption } from './enums/smtp-encryption';
|
|
31
|
-
export { Compression } from './enums/compression';
|
|
32
|
-
export { ImageGravity } from './enums/image-gravity';
|
|
33
|
-
export { ImageFormat } from './enums/image-format';
|
|
34
|
-
export { PasswordHash } from './enums/password-hash';
|
|
35
|
-
export { MessagingProviderType } from './enums/messaging-provider-type';
|
package/src/inputFile.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|