Skip to content

Latest commit

 

History

History
1716 lines (1072 loc) · 38.9 KB

constants.md

File metadata and controls

1716 lines (1072 loc) · 38.9 KB

talawa-api / Exports / constants

Module: constants

Table of contents

Enumerations

Variables

Variables

ACCESS_TOKEN_SECRET

Const ACCESS_TOKEN_SECRET: undefined | string = ENV.ACCESS_TOKEN_SECRET

Defined in

src/constants.ts:490


ACTION_ITEM_CATEGORY_ALREADY_EXISTS

Const ACTION_ITEM_CATEGORY_ALREADY_EXISTS: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:24


ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR

Const ACTION_ITEM_CATEGORY_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:17


ACTION_ITEM_NOT_FOUND_ERROR

Const ACTION_ITEM_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:10


ADMIN_CANNOT_CHANGE_ITS_ROLE

Const ADMIN_CANNOT_CHANGE_ITS_ROLE: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:254


ADMIN_CHANGING_ROLE_OF_CREATOR

Const ADMIN_CHANGING_ROLE_OF_CREATOR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:247


ADMIN_REMOVING_ADMIN

Const ADMIN_REMOVING_ADMIN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:235


ADMIN_REMOVING_CREATOR

Const ADMIN_REMOVING_CREATOR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:241


ADVERTISEMENT_NOT_FOUND_ERROR

Const ADVERTISEMENT_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:340


BASE_URL

Const BASE_URL: string

Defined in

src/constants.ts:488


CHAT_NOT_FOUND_ERROR

Const CHAT_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:31


COMMENT_NOT_FOUND_ERROR

Const COMMENT_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:37


CUSTOM_DATA_NOT_FOUND

Const CUSTOM_DATA_NOT_FOUND: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:460


CUSTOM_FIELD_NAME_MISSING

Const CUSTOM_FIELD_NAME_MISSING: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:472


CUSTOM_FIELD_NOT_FOUND

Const CUSTOM_FIELD_NOT_FOUND: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:466


CUSTOM_FIELD_TYPE_MISSING

Const CUSTOM_FIELD_TYPE_MISSING: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:478


EMAIL_ALREADY_EXISTS_ERROR

Const EMAIL_ALREADY_EXISTS_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:426


END_DATE_VALIDATION_ERROR

Const END_DATE_VALIDATION_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:155


ERROR_IN_SENDING_MAIL

Const ERROR_IN_SENDING_MAIL: "Error in sending mail"

Defined in

src/constants.ts:43


EVENT_NOT_FOUND_ERROR

Const EVENT_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:44


FEEDBACK_ALREADY_SUBMITTED

Const FEEDBACK_ALREADY_SUBMITTED: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:51


FIELD_NON_EMPTY_ERROR

Const FIELD_NON_EMPTY_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:167


IMAGE_SIZE_LIMIT_KB

Const IMAGE_SIZE_LIMIT_KB: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:124


INCORRECT_TAG_INPUT

Const INCORRECT_TAG_INPUT: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:299


INPUT_NOT_FOUND_ERROR

Const INPUT_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:346


INTERNAL_SERVER_ERROR

Const INTERNAL_SERVER_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:143


INVALID_CREDENTIALS_ERROR

Const INVALID_CREDENTIALS_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:406


INVALID_FILE_TYPE

Const INVALID_FILE_TYPE: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:118


INVALID_OTP

Const INVALID_OTP: "Invalid OTP"

Defined in

src/constants.ts:57


INVALID_REFRESH_TOKEN_ERROR

Const INVALID_REFRESH_TOKEN_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:412


INVALID_ROLE_TYPE

Const INVALID_ROLE_TYPE: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:130


INVALID_TAG_INPUT

Const INVALID_TAG_INPUT: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:292


IN_PRODUCTION

Const IN_PRODUCTION: boolean

Defined in

src/constants.ts:59


LAST_RESORT_SUPERADMIN_EMAIL

Const LAST_RESORT_SUPERADMIN_EMAIL: undefined | string = process.env.LAST_RESORT_SUPERADMIN_EMAIL

Defined in

src/constants.ts:502


LENGTH_VALIDATION_ERROR

Const LENGTH_VALIDATION_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:174


LOG

Const LOG: boolean

Defined in

src/constants.ts:523


LOG_PATH

Const LOG_PATH: undefined | string = ENV.LOG_PATH

Defined in

src/constants.ts:525


MAIL_PASSWORD

Const MAIL_PASSWORD: undefined | string = ENV.MAIL_PASSWORD

Defined in

src/constants.ts:500


MAIL_USERNAME

Const MAIL_USERNAME: undefined | string = ENV.MAIL_USERNAME

Defined in

src/constants.ts:498


MAXIMUM_FETCH_LIMIT

Const MAXIMUM_FETCH_LIMIT: 100

Defined in

src/constants.ts:484


MAXIMUM_IMAGE_SIZE_LIMIT_KB

Const MAXIMUM_IMAGE_SIZE_LIMIT_KB: 20000

Defined in

src/constants.ts:486


MEMBERSHIP_REQUEST_ALREADY_EXISTS

Const MEMBERSHIP_REQUEST_ALREADY_EXISTS: "Membership Request already exists"

Defined in

src/constants.ts:72


MEMBERSHIP_REQUEST_NOT_FOUND_ERROR

Const MEMBERSHIP_REQUEST_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:66


MEMBER_NOT_FOUND_ERROR

Const MEMBER_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:60


MILLISECONDS_IN_A_WEEK

Const MILLISECONDS_IN_A_WEEK: number

Defined in

src/constants.ts:518


MONGO_DB_URL

Const MONGO_DB_URL: undefined | string = ENV.MONGO_DB_URL

Defined in

src/constants.ts:494


NO_CHANGE_IN_TAG_NAME

Const NO_CHANGE_IN_TAG_NAME: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:305


ORGANIZATION_IMAGE_NOT_FOUND_ERROR

Const ORGANIZATION_IMAGE_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:93


ORGANIZATION_MEMBER_NOT_FOUND_ERROR

Const ORGANIZATION_MEMBER_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:75


ORGANIZATION_NOT_AUTHORIZED_ERROR

Const ORGANIZATION_NOT_AUTHORIZED_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:81


ORGANIZATION_NOT_FOUND_ERROR

Const ORGANIZATION_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:87


PLEASE_PROVIDE_TITLE

Const PLEASE_PROVIDE_TITLE: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:266


PLUGIN_NOT_FOUND

Const PLUGIN_NOT_FOUND: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:99


POST_NEEDS_TO_BE_PINNED

Const POST_NEEDS_TO_BE_PINNED: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:260


POST_NOT_FOUND_ERROR

Const POST_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:105


RECAPTCHA_SECRET_KEY

Const RECAPTCHA_SECRET_KEY: undefined | string = ENV.RECAPTCHA_SECRET_KEY

Defined in

src/constants.ts:496


REDIS_HOST

Const REDIS_HOST: string

Defined in

src/constants.ts:514


REDIS_PASSWORD

Const REDIS_PASSWORD: undefined | string = process.env.REDIS_PASSWORD

Defined in

src/constants.ts:516


REDIS_PORT

Const REDIS_PORT: number

Defined in

src/constants.ts:515


REFRESH_TOKEN_SECRET

Const REFRESH_TOKEN_SECRET: undefined | string = ENV.REFRESH_TOKEN_SECRET

Defined in

src/constants.ts:492


REGEX_VALIDATION_ERROR

Const REGEX_VALIDATION_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:180


REGISTRANT_ALREADY_EXIST_ERROR

Const REGISTRANT_ALREADY_EXIST_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:111


SAME_FILE_ERROR

Const SAME_FILE_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:137


SAMPLE_ORGANIZATION_ALREADY_EXISTS

Const SAMPLE_ORGANIZATION_ALREADY_EXISTS: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:453


SMTP_OPTIONS

Const SMTP_OPTIONS: Object

Type declaration

Name Type
IS_SMTP boolean
SMTP_HOST undefined | string
SMTP_PASSWORD undefined | string
SMTP_PORT undefined | string
SMTP_SSL_TLS boolean
SMTP_USERNAME undefined | string

Defined in

src/constants.ts:505


START_DATE_VALIDATION_ERROR

Const START_DATE_VALIDATION_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:161


STATUS_ACTIVE

Const STATUS_ACTIVE: "ACTIVE"

Defined in

src/constants.ts:351


SUPERADMIN_CANT_CHANGE_OWN_ROLE

Const SUPERADMIN_CANT_CHANGE_OWN_ROLE: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:394


TAG_ALREADY_EXISTS

Const TAG_ALREADY_EXISTS: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:312


TAG_NOT_FOUND

Const TAG_NOT_FOUND: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:279


TRANSLATION_ALREADY_PRESENT_ERROR

Const TRANSLATION_ALREADY_PRESENT_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:400


UNAUTHENTICATED_ERROR

Const UNAUTHENTICATED_ERROR: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:149


URL

Const URL: "http://localhost:4000/graphql" | "http://calico.palisadoes.org/talawa/graphql"

Defined in

src/constants.ts:353


USER_ALREADY_CHECKED_IN

Const USER_ALREADY_CHECKED_IN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:447


USER_ALREADY_HAS_TAG

Const USER_ALREADY_HAS_TAG: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:326


USER_ALREADY_MEMBER_ERROR

Const USER_ALREADY_MEMBER_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:358


USER_ALREADY_REGISTERED_FOR_EVENT

Const USER_ALREADY_REGISTERED_FOR_EVENT: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:198


USER_ALREADY_UNREGISTERED_ERROR

Const USER_ALREADY_UNREGISTERED_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:364


USER_BLOCKING_SELF

Const USER_BLOCKING_SELF: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:222


USER_DOES_NOT_BELONG_TO_TAGS_ORGANIZATION

Const USER_DOES_NOT_BELONG_TO_TAGS_ORGANIZATION: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:285


USER_DOES_NOT_HAVE_THE_TAG

Const USER_DOES_NOT_HAVE_THE_TAG: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:333


USER_NOT_AUTHORIZED_ADMIN

Const USER_NOT_AUTHORIZED_ADMIN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:192


USER_NOT_AUTHORIZED_ERROR

Const USER_NOT_AUTHORIZED_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:370


USER_NOT_AUTHORIZED_SUPERADMIN

Const USER_NOT_AUTHORIZED_SUPERADMIN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:186


USER_NOT_AUTHORIZED_TO_CREATE_TAG

Const USER_NOT_AUTHORIZED_TO_CREATE_TAG: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:319


USER_NOT_AUTHORIZED_TO_PIN

Const USER_NOT_AUTHORIZED_TO_PIN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:272


USER_NOT_CHECKED_IN

Const USER_NOT_CHECKED_IN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:210


USER_NOT_FOUND_ERROR

Const USER_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:376


USER_NOT_MEMBER_FOR_ORGANIZATION

Const USER_NOT_MEMBER_FOR_ORGANIZATION: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:382


USER_NOT_ORGANIZATION_ADMIN

Const USER_NOT_ORGANIZATION_ADMIN: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:216


USER_NOT_REGISTERED_FOR_EVENT

Const USER_NOT_REGISTERED_FOR_EVENT: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:204


USER_PROFILE_IMAGE_NOT_FOUND_ERROR

Const USER_PROFILE_IMAGE_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:419


USER_REMOVING_SELF

Const USER_REMOVING_SELF: Object

Type declaration

Name Type
CODE string
MESSAGE string
PARAM string

Defined in

src/constants.ts:228


USER_TO_BE_REMOVED_NOT_FOUND_ERROR

Const USER_TO_BE_REMOVED_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:388


VOLUNTEER_NOT_FOUND_ERROR

Const VOLUNTEER_NOT_FOUND_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:433


VOLUNTEER_NOT_MEMBER_ERROR

Const VOLUNTEER_NOT_MEMBER_ERROR: Object

Type declaration

Name Type
CODE string
DESC string
MESSAGE string
PARAM string

Defined in

src/constants.ts:440


iv

Const iv: string

Defined in

src/constants.ts:521


key

Const key: string

Defined in

src/constants.ts:520