Search
Preparing search index...
The search index is not available
node-rest-api-scrapper
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
node-rest-api-scrapper
Index
Enumerations
Auth
Provider
Enum
HTTPStatus
Codes
Classes
Api
Error
Auth
Middleware
Auth
Service
Auth
Token
Mongoose
Service
Server
Server
Error
Middleware
Show
Controller
Show
Model
Tv
Maze
Service
Unexpected
Error
Interfaces
Error
Payload
IApi
Error
Response
Type aliases
User
Instance
User
Repository
Variables
DAY
TOKEN_
EXP
User
Repository
Token
root
Dir
Functions
pre
Save
Hook
Object literals
Error
Info
Type aliases
User
Instance
User
Instance
:
InstanceType
<
ShowModel
>
User
Repository
User
Repository
:
ModelType
<
ShowModel
>
Variables
Const
DAY
DAY
:
number
= 60000 * 60 * 24
Const
TOKEN_
EXP
TOKEN_
EXP
:
number
= DAY * 7
Const
User
Repository
Token
User
Repository
Token
:
"UserRepositoryToken"
= "UserRepositoryToken"
Const
root
Dir
root
Dir
:
string
= Path.resolve(__dirname)
Functions
pre
Save
Hook
pre
Save
Hook
(
next
:
any
)
:
Promise
<
any
>
Parameters
next:
any
Returns
Promise
<
any
>
Object literals
Const
Error
Info
Error
Info
:
object
EXPIRED_
TOKEN
EXPIRED_
TOKEN
:
object
code
code
:
number
= 1002
message
message
:
string
= "Expired token provided"
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.UNAUTHORIZED
GENERAL_
ERROR
GENERAL_
ERROR
:
object
code
code
:
number
= 1000
message
message
:
string
= "Unexpected error occurred"
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.INTERNAL_SERVER_ERROR
UNAUTHORIZED
UNAUTHORIZED
:
object
code
code
:
number
= 1001
message
message
:
string
= "Unauthorized"
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.UNAUTHORIZED
USER_
ALREADY_
EXISTS
USER_
ALREADY_
EXISTS
:
object
code
code
:
number
= 2000
message
message
:
string
= "User already exists."
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.CONFLICT
USER_
NOT_
FOUND
USER_
NOT_
FOUND
:
object
code
code
:
number
= 2001
message
message
:
string
= "User not found."
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.NOT_FOUND
USER_
WRONG_
CREDENTIALS
USER_
WRONG_
CREDENTIALS
:
object
code
code
:
number
= 2002
message
message
:
string
= "Wrong credentials provided"
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.UNAUTHORIZED
VALIDATION_
ERROR
VALIDATION_
ERROR
:
object
code
code
:
number
= 1003
message
message
:
string
= "Data validation error occurred"
status
status
:
HTTPStatusCodes
= HTTPStatusCodes.BAD_REQUEST
Globals
Auth
Provider
Enum
HTTPStatus
Codes
Api
Error
Auth
Middleware
Auth
Service
Auth
Token
Mongoose
Service
Server
Server
Error
Middleware
Show
Controller
Show
Model
Tv
Maze
Service
Unexpected
Error
Error
Payload
IApi
Error
Response
User
Instance
User
Repository
DAY
TOKEN_
EXP
User
Repository
Token
root
Dir
pre
Save
Hook
Error
Info
Generated using
TypeDoc