19
19
* limitations under the License.
20
20
*/
21
21
22
- import Bluebird from "bluebird" ;
23
- import { Koncorde } from "../shared/KoncordeWrapper" ;
24
22
import { Client } from "@elastic/elasticsearch" ;
23
+ import Bluebird from "bluebird" ;
25
24
import { JSONObject } from "kuzzle-sdk" ;
25
+ import { Koncorde } from "../shared/KoncordeWrapper" ;
26
26
27
- import { EmbeddedSDK } from "../shared/sdk/embeddedSdk" ;
28
- import PluginRepository from "./pluginRepository" ;
29
- import Store from "../shared/store" ;
30
- import Elasticsearch from "../../service/storage/elasticsearch" ;
31
- import { isPlainObject } from "../../util/safeObject" ;
32
- import Promback from "../../util/promback" ;
33
- import { Mutex } from "../../util/mutex" ;
27
+ import {
28
+ KuzzleRequest ,
29
+ Request ,
30
+ RequestContext ,
31
+ RequestInput ,
32
+ } from "../../../index" ;
34
33
import * as kerror from "../../kerror" ;
35
- import storeScopeEnum from "../storage/storeScopeEnum" ;
36
34
import {
37
35
BadRequestError ,
38
36
ExternalServiceError ,
39
37
ForbiddenError ,
40
38
GatewayTimeoutError ,
41
- InternalError as KuzzleInternalError ,
42
39
KuzzleError ,
40
+ InternalError as KuzzleInternalError ,
43
41
NotFoundError ,
44
42
PartialError ,
45
43
PluginImplementationError ,
@@ -49,13 +47,15 @@ import {
49
47
TooManyRequestsError ,
50
48
UnauthorizedError ,
51
49
} from "../../kerror/errors" ;
52
- import {
53
- RequestContext ,
54
- RequestInput ,
55
- KuzzleRequest ,
56
- Request ,
57
- } from "../../../index" ;
50
+ import Elasticsearch from "../../service/storage/elasticsearch" ;
51
+ import { Mutex } from "../../util/mutex" ;
52
+ import Promback from "../../util/promback" ;
53
+ import { isPlainObject } from "../../util/safeObject" ;
58
54
import { BackendCluster } from "../backend" ;
55
+ import { EmbeddedSDK } from "../shared/sdk/embeddedSdk" ;
56
+ import { Store } from "../shared/store" ;
57
+ import { storeScopeEnum } from "../storage/storeScopeEnum" ;
58
+ import PluginRepository from "./pluginRepository" ;
59
59
60
60
const contextError = kerror . wrap ( "plugin" , "context" ) ;
61
61
0 commit comments