@ikonintegration/ikapi 3.2.9-beta → 4.0.0-alpha2
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/index.js +77 -50
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,61 +1,88 @@
|
|
|
1
1
|
//Set defaults
|
|
2
|
-
|
|
2
|
+
import Bluebird from "bluebird";
|
|
3
|
+
global.Promise = Bluebird;
|
|
4
|
+
//Base Events
|
|
5
|
+
import IKTransaction from "./src/BaseEvent/IKTransaction.js";
|
|
6
|
+
import IKProcess from "./src/BaseEvent/IKProcess.js";
|
|
7
|
+
//Extra Events
|
|
8
|
+
import IKRouter from "./src/IKRouter.js";
|
|
9
|
+
import IKEventProcessor from "./src/IKEventProcessor.js";
|
|
10
|
+
import IKDynamoStream from "./src/IKDynamoStream.js";
|
|
11
|
+
import IKStepTransaction from "./src/IKStepTransaction.js";
|
|
12
|
+
//Extra components
|
|
13
|
+
import IKMailer from "./src/Mailer/IKMailer.js";
|
|
14
|
+
import IKValidation from "./src/Validation/IKValidation.js";
|
|
15
|
+
//Responses
|
|
16
|
+
import IKResponse from "./src/API/IKResponse.js";
|
|
17
|
+
//Helpers
|
|
18
|
+
import Utils from "./src/API/IKUtils.js";
|
|
19
|
+
//Cache
|
|
20
|
+
//Redis
|
|
21
|
+
import IKRedis from "./src/Cache/Redis/IKRedis.js";
|
|
22
|
+
//Database
|
|
23
|
+
//PSQL
|
|
24
|
+
import IKDBPSQLQuery from "./src/Database/PSQL/IKDBBaseQuery.js";
|
|
25
|
+
//DDB
|
|
26
|
+
import IKDBQueryScan from "./src/Database/DDB/IKDBQueryScan.js";
|
|
27
|
+
import IKDBQueryGet from "./src/Database/DDB/IKDBQueryGet.js";
|
|
28
|
+
import IKDBQueryPut from "./src/Database/DDB/IKDBQueryPut.js";
|
|
29
|
+
import IKDBQueryUpdate from "./src/Database/DDB/IKDBQueryUpdate.js";
|
|
30
|
+
import IKDBQueryDelete from "./src/Database/DDB/IKDBQueryDelete.js";
|
|
31
|
+
import IKDBQueryBatchWrite from "./src/Database/DDB/IKDBQueryBatchWrite.js";
|
|
32
|
+
import IKDBQueryBatchGet from "./src/Database/DDB/IKDBQueryBatchGet.js";
|
|
33
|
+
import IKDBQueryTransactionalWrite from "./src/Database/DDB/IKDBQueryTransactionalWrite.js";
|
|
34
|
+
import { IKDBExpressionOperator } from "./src/Database/DDB/IKDBBaseExpression.js";
|
|
3
35
|
//
|
|
4
36
|
export default {
|
|
5
37
|
//Base Events
|
|
6
|
-
IKTransaction
|
|
7
|
-
IKProcess
|
|
38
|
+
IKTransaction,
|
|
39
|
+
IKProcess,
|
|
8
40
|
//Extra Events
|
|
9
|
-
IKRouter
|
|
10
|
-
IKEventProcessor
|
|
11
|
-
IKDynamoStream
|
|
12
|
-
IKStepTransaction
|
|
13
|
-
|
|
41
|
+
IKRouter,
|
|
42
|
+
IKEventProcessor,
|
|
43
|
+
IKDynamoStream,
|
|
44
|
+
IKStepTransaction,
|
|
14
45
|
//Extra components
|
|
15
|
-
IKMailer
|
|
16
|
-
IKValidation
|
|
17
|
-
|
|
46
|
+
IKMailer,
|
|
47
|
+
IKValidation,
|
|
18
48
|
//Responses
|
|
19
|
-
IKResponse
|
|
20
|
-
IKBadRequestResponse:
|
|
21
|
-
IKUnauthorizedResponse:
|
|
22
|
-
IKMissingParamResponse:
|
|
23
|
-
IKMissingQueryResponse:
|
|
24
|
-
IKSuccessResponse:
|
|
25
|
-
IKSuccessStreamResponse:
|
|
26
|
-
IKSuccessNoContentResponse:
|
|
27
|
-
IKBadRequestResponseWithRollback:
|
|
28
|
-
IKStepFunctionResponse:
|
|
29
|
-
IKSimpleResponse:
|
|
30
|
-
|
|
49
|
+
IKResponse,
|
|
50
|
+
IKBadRequestResponse: IKResponse.IKBadRequestResponse,
|
|
51
|
+
IKUnauthorizedResponse: IKResponse.IKUnauthorizedResponse,
|
|
52
|
+
IKMissingParamResponse: IKResponse.IKMissingParamResponse,
|
|
53
|
+
IKMissingQueryResponse: IKResponse.IKMissingQueryResponse,
|
|
54
|
+
IKSuccessResponse: IKResponse.IKSuccessResponse,
|
|
55
|
+
IKSuccessStreamResponse: IKResponse.IKSuccessStreamResponse,
|
|
56
|
+
IKSuccessNoContentResponse: IKResponse.IKSuccessNoContentResponse,
|
|
57
|
+
IKBadRequestResponseWithRollback: IKResponse.IKBadRequestResponseWithRollback,
|
|
58
|
+
IKStepFunctionResponse: IKResponse.IKStepFunctionResponse,
|
|
59
|
+
IKSimpleResponse: IKResponse.IKSimpleResponse,
|
|
31
60
|
//Helpers
|
|
32
|
-
Utils
|
|
33
|
-
|
|
61
|
+
Utils,
|
|
34
62
|
//Cache
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
63
|
+
//Redis
|
|
64
|
+
IKRedis,
|
|
38
65
|
//Database
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
//PSQL
|
|
67
|
+
IKDBPSQLQuery,
|
|
68
|
+
//DDB
|
|
69
|
+
IKDBDDBQueryScan: IKDBQueryScan,
|
|
70
|
+
IKDBDDBQueryGet: IKDBQueryGet,
|
|
71
|
+
IKDBDDBQueryPut: IKDBQueryPut,
|
|
72
|
+
IKDBDDBQueryUpdate: IKDBQueryUpdate,
|
|
73
|
+
IKDBDDBQueryDelete: IKDBQueryDelete,
|
|
74
|
+
IKDBDDBQueryBatchWrite: IKDBQueryBatchWrite,
|
|
75
|
+
IKDBDDBQueryBatchGet: IKDBQueryBatchGet,
|
|
76
|
+
IKDBDDBQueryTransactionalWrite: IKDBQueryTransactionalWrite,
|
|
77
|
+
IKDBDDBExpressionOperator: IKDBExpressionOperator,
|
|
78
|
+
//Legacy
|
|
79
|
+
IKDBQueryScan,
|
|
80
|
+
IKDBQueryGet,
|
|
81
|
+
IKDBQueryPut,
|
|
82
|
+
IKDBQueryUpdate,
|
|
83
|
+
IKDBQueryDelete,
|
|
84
|
+
IKDBQueryBatchWrite,
|
|
85
|
+
IKDBQueryBatchGet,
|
|
86
|
+
IKDBQueryTransactionalWrite,
|
|
87
|
+
IKDBExpressionOperator,
|
|
61
88
|
};
|