-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
49 lines (47 loc) · 1.59 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require('dotenv').config();
const EnvoyAPI = require('./lib/EnvoyAPI');
const EnvoyJWT = require('./lib/EnvoyJWT');
const EnvoyPluginJob = require('./lib/EnvoyPluginJob');
const EnvoyPluginSDK = require('./lib/EnvoyPluginSDK');
const EnvoyPluginStorage = require('./lib/EnvoyPluginStorage');
const EnvoyPluginStoragePipeline = require('./lib/EnvoyPluginStoragePipeline');
const EnvoyResponseError = require('./lib/EnvoyResponseError');
const EnvoySignatureVerifier = require('./lib/EnvoySignatureVerifier');
const HttpStatus = require('./lib/HttpStatus');
const middleware = require('./lib/middleware');
const errorMiddleware = require('./lib/errorMiddleware');
const asyncHandler = require('./lib/asyncHandler');
const createAxiosClient = require('./lib/axios');
/**
* @typedef {Object} Envoy
* @property {EnvoyAPI} EnvoyAPI
* @property {EnvoyJWT} EnvoyJWT
* @property {EnvoyPluginJob} EnvoyPluginJob
* @property {EnvoyPluginSDK} EnvoyPluginSDK
* @property {EnvoyPluginStorage} EnvoyPluginStorage
* @property {EnvoyPluginStoragePipeline} EnvoyPluginStoragePipeline
* @property {EnvoyResponseError} EnvoyResponseError
* @property {EnvoySignatureVerifier} EnvoySignatureVerifier
* @property {HttpStatus} HttpStatus
* @property {Function} middleware
* @property {Function} errorMiddleware
* @property {Function} asyncHandler
*/
/**
* @type {Envoy}
*/
module.exports = {
EnvoyAPI,
EnvoyJWT,
EnvoyPluginJob,
EnvoyPluginSDK,
EnvoyPluginStorage,
EnvoyPluginStoragePipeline,
EnvoyResponseError,
EnvoySignatureVerifier,
HttpStatus,
middleware,
errorMiddleware,
asyncHandler,
createAxiosClient,
};