@ikonintegration/ikapi 3.2.8 → 4.0.0-alpha
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 +42 -45
- package/package.json +10 -10
- package/src/API/IKRequest.js +1 -1
- package/src/API/IKResponse.js +1 -1
- package/src/BaseEvent/IKProcess.js +9 -9
- package/src/BaseEvent/IKTransaction.js +11 -11
- package/src/Cache/Redis/IKRedis.js +1 -1
- package/src/Database/DDB/IKDB.js +4 -4
- package/src/Database/DDB/IKDBBaseExpression.js +1 -1
- package/src/Database/DDB/IKDBBaseQuery.js +3 -3
- package/src/Database/DDB/IKDBQueryBatchGet.js +2 -2
- package/src/Database/DDB/IKDBQueryBatchWrite.js +1 -1
- package/src/Database/DDB/IKDBQueryDelete.js +2 -2
- package/src/Database/DDB/IKDBQueryGet.js +2 -2
- package/src/Database/DDB/IKDBQueryPut.js +2 -2
- package/src/Database/DDB/IKDBQueryScan.js +2 -2
- package/src/Database/DDB/IKDBQueryTransactionalWrite.js +1 -1
- package/src/Database/DDB/IKDBQueryUpdate.js +2 -2
- package/src/Database/DDB/_IKDBQueryTransactionalRead.js +1 -1
- package/src/Database/PSQL/IKDB.js +3 -2
- package/src/Database/PSQL/IKDBBaseQuery.js +1 -1
- package/src/Database/Prototype/IKDBBaseQuery.js +1 -1
- package/src/IKDynamoStream.js +4 -4
- package/src/IKEventProcessor.js +3 -3
- package/src/IKRouter.js +3 -3
- package/src/IKStepTransaction.js +2 -2
- package/src/Logger/IKLogger.js +4 -4
- package/src/Mailer/IKMailer.js +4 -4
- package/src/Publisher/IKPublisher.js +1 -1
- package/src/Tracker/IKExecutionTracker.js +2 -2
- package/src/Validation/IKValidation.js +3 -3
package/index.js
CHANGED
|
@@ -1,64 +1,61 @@
|
|
|
1
|
-
// Set options as a parameter, environment variable, or rc file.
|
|
2
|
-
// eslint-disable-next-line no-global-assign
|
|
3
|
-
require = require("esm")(module/* , options */);
|
|
4
1
|
//Set defaults
|
|
5
|
-
global.Promise =
|
|
2
|
+
global.Promise = import("bluebird");
|
|
6
3
|
//
|
|
7
|
-
|
|
4
|
+
export default {
|
|
8
5
|
//Base Events
|
|
9
|
-
IKTransaction:
|
|
10
|
-
IKProcess:
|
|
6
|
+
IKTransaction: import("./src/BaseEvent/IKTransaction.js").default,
|
|
7
|
+
IKProcess: import("./src/BaseEvent/IKProcess.js").default,
|
|
11
8
|
//Extra Events
|
|
12
|
-
IKRouter:
|
|
13
|
-
IKEventProcessor:
|
|
14
|
-
IKDynamoStream:
|
|
15
|
-
IKStepTransaction:
|
|
9
|
+
IKRouter: import("./src/IKRouter.js").default,
|
|
10
|
+
IKEventProcessor: import('./src/IKEventProcessor.js').default,
|
|
11
|
+
IKDynamoStream: import('./src/IKDynamoStream.js').default,
|
|
12
|
+
IKStepTransaction: import('./src/IKStepTransaction.js').default,
|
|
16
13
|
|
|
17
14
|
//Extra components
|
|
18
|
-
IKMailer:
|
|
19
|
-
IKValidation:
|
|
15
|
+
IKMailer: import('./src/Mailer/IKMailer.js').default,
|
|
16
|
+
IKValidation: import('./src/Validation/IKValidation.js').default,
|
|
20
17
|
|
|
21
18
|
//Responses
|
|
22
|
-
IKResponse:
|
|
23
|
-
IKBadRequestResponse:
|
|
24
|
-
IKUnauthorizedResponse:
|
|
25
|
-
IKMissingParamResponse:
|
|
26
|
-
IKMissingQueryResponse:
|
|
27
|
-
IKSuccessResponse:
|
|
28
|
-
IKSuccessStreamResponse:
|
|
29
|
-
IKSuccessNoContentResponse:
|
|
30
|
-
IKBadRequestResponseWithRollback:
|
|
31
|
-
IKStepFunctionResponse:
|
|
32
|
-
IKSimpleResponse:
|
|
19
|
+
IKResponse: import("./src/API/IKResponse.js").default,
|
|
20
|
+
IKBadRequestResponse: import("./src/API/IKResponse.js").IKBadRequestResponse,
|
|
21
|
+
IKUnauthorizedResponse: import("./src/API/IKResponse.js").IKUnauthorizedResponse,
|
|
22
|
+
IKMissingParamResponse: import("./src/API/IKResponse.js").IKMissingParamResponse,
|
|
23
|
+
IKMissingQueryResponse: import("./src/API/IKResponse.js").IKMissingQueryResponse,
|
|
24
|
+
IKSuccessResponse: import("./src/API/IKResponse.js").IKSuccessResponse,
|
|
25
|
+
IKSuccessStreamResponse: import("./src/API/IKResponse.js").IKSuccessStreamResponse,
|
|
26
|
+
IKSuccessNoContentResponse: import("./src/API/IKResponse.js").IKSuccessNoContentResponse,
|
|
27
|
+
IKBadRequestResponseWithRollback: import("./src/API/IKResponse.js").IKBadRequestResponseWithRollback,
|
|
28
|
+
IKStepFunctionResponse: import("./src/API/IKResponse.js").IKStepFunctionResponse,
|
|
29
|
+
IKSimpleResponse: import("./src/API/IKResponse.js").IKSimpleResponse,
|
|
33
30
|
|
|
34
31
|
//Helpers
|
|
35
|
-
Utils:
|
|
32
|
+
Utils: import("./src/API/IKUtils.js").default,
|
|
36
33
|
|
|
37
34
|
//Cache
|
|
38
35
|
//Redis
|
|
39
|
-
IKRedis:
|
|
36
|
+
IKRedis: import('./src/Cache/Redis/IKRedis.js').default,
|
|
40
37
|
|
|
41
38
|
//Database
|
|
42
39
|
//PSQL
|
|
43
|
-
IKDBPSQLQuery:
|
|
40
|
+
IKDBPSQLQuery: import("./src/Database/PSQL/IKDBBaseQuery.js").default,
|
|
44
41
|
//DDB
|
|
45
|
-
IKDBDDBQueryScan:
|
|
46
|
-
IKDBDDBQueryGet:
|
|
47
|
-
IKDBDDBQueryPut:
|
|
48
|
-
IKDBDDBQueryUpdate:
|
|
49
|
-
IKDBDDBQueryDelete:
|
|
50
|
-
IKDBDDBQueryBatchWrite:
|
|
51
|
-
IKDBDDBQueryBatchGet:
|
|
52
|
-
IKDBDDBQueryTransactionalWrite:
|
|
53
|
-
IKDBDDBExpressionOperator:
|
|
42
|
+
IKDBDDBQueryScan: import("./src/Database/DDB/IKDBQueryScan.js").default,
|
|
43
|
+
IKDBDDBQueryGet: import("./src/Database/DDB/IKDBQueryGet.js").default,
|
|
44
|
+
IKDBDDBQueryPut: import("./src/Database/DDB/IKDBQueryPut.js").default,
|
|
45
|
+
IKDBDDBQueryUpdate: import("./src/Database/DDB/IKDBQueryUpdate.js").default,
|
|
46
|
+
IKDBDDBQueryDelete: import("./src/Database/DDB/IKDBQueryDelete.js").default,
|
|
47
|
+
IKDBDDBQueryBatchWrite: import("./src/Database/DDB/IKDBQueryBatchWrite.js").default,
|
|
48
|
+
IKDBDDBQueryBatchGet: import("./src/Database/DDB/IKDBQueryBatchGet.js").default,
|
|
49
|
+
IKDBDDBQueryTransactionalWrite: import("./src/Database/DDB/IKDBQueryTransactionalWrite.js").default,
|
|
50
|
+
IKDBDDBExpressionOperator: import("./src/Database/DDB/IKDBBaseExpression.js").IKDBExpressionOperator,
|
|
54
51
|
//Legacy
|
|
55
|
-
IKDBQueryScan:
|
|
56
|
-
IKDBQueryGet:
|
|
57
|
-
IKDBQueryPut:
|
|
58
|
-
IKDBQueryUpdate:
|
|
59
|
-
IKDBQueryDelete:
|
|
60
|
-
IKDBQueryBatchWrite:
|
|
61
|
-
IKDBQueryBatchGet:
|
|
62
|
-
IKDBQueryTransactionalWrite:
|
|
63
|
-
IKDBExpressionOperator:
|
|
52
|
+
IKDBQueryScan: import("./src/Database/DDB/IKDBQueryScan.js").default,
|
|
53
|
+
IKDBQueryGet: import("./src/Database/DDB/IKDBQueryGet.js").default,
|
|
54
|
+
IKDBQueryPut: import("./src/Database/DDB/IKDBQueryPut.js").default,
|
|
55
|
+
IKDBQueryUpdate: import("./src/Database/DDB/IKDBQueryUpdate.js").default,
|
|
56
|
+
IKDBQueryDelete: import("./src/Database/DDB/IKDBQueryDelete.js").default,
|
|
57
|
+
IKDBQueryBatchWrite: import("./src/Database/DDB/IKDBQueryBatchWrite.js").default,
|
|
58
|
+
IKDBQueryBatchGet: import("./src/Database/DDB/IKDBQueryBatchGet.js").default,
|
|
59
|
+
IKDBQueryTransactionalWrite: import("./src/Database/DDB/IKDBQueryTransactionalWrite.js").default,
|
|
60
|
+
IKDBExpressionOperator: import("./src/Database/DDB/IKDBBaseExpression.js").IKDBExpressionOperator,
|
|
64
61
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikonintegration/ikapi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "main.js",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
10
|
"pre-publish": "npm i -production && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune"
|
|
@@ -11,25 +12,24 @@
|
|
|
11
12
|
"author": "",
|
|
12
13
|
"license": "ISC",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
15
|
-
"@aws-sdk/client-ses": "3.
|
|
16
|
-
"@aws-sdk/client-sns": "3.
|
|
17
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
18
|
-
"@aws-sdk/node-http-handler": "3.
|
|
19
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
20
|
-
"@aws-sdk/util-endpoints": "3.
|
|
15
|
+
"@aws-sdk/client-dynamodb": "^3.363.0",
|
|
16
|
+
"@aws-sdk/client-ses": "^3.363.0",
|
|
17
|
+
"@aws-sdk/client-sns": "^3.363.0",
|
|
18
|
+
"@aws-sdk/credential-provider-node": "^3.363.0",
|
|
19
|
+
"@aws-sdk/node-http-handler": "^3.360.0",
|
|
20
|
+
"@aws-sdk/util-dynamodb": "^3.365.0",
|
|
21
|
+
"@aws-sdk/util-endpoints": "^3.357.0",
|
|
21
22
|
"@ikonintegration/mod-resources-tracker-client": "0.0.19",
|
|
22
23
|
"abind": "^1.0.5",
|
|
23
24
|
"bluebird": "^3.7.2",
|
|
24
25
|
"email-templates": "^11.0.5",
|
|
25
|
-
"esm": "^3.2.25",
|
|
26
26
|
"is-email": "^1.0.2",
|
|
27
27
|
"is-uuid": "^1.0.2",
|
|
28
28
|
"json-stringify-safe": "^5.0.1",
|
|
29
29
|
"ksuid": "^3.0.0",
|
|
30
30
|
"nodemailer": "^6.9.3",
|
|
31
31
|
"path-to-regexp": "^6.2.0",
|
|
32
|
-
"pg": "^8.
|
|
32
|
+
"pg": "^8.11.1",
|
|
33
33
|
"sha1": "^1.1.1",
|
|
34
34
|
"stack-trace": "0.0.10",
|
|
35
35
|
"superstruct": "0.8.4"
|
package/src/API/IKRequest.js
CHANGED
package/src/API/IKResponse.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
//
|
|
2
|
-
import IKGlobals from '../IKGlobals';
|
|
3
|
-
import Utils from "../API/IKUtils";
|
|
2
|
+
import IKGlobals from '../IKGlobals.js';
|
|
3
|
+
import Utils from "../API/IKUtils.js";
|
|
4
4
|
//Database
|
|
5
|
-
import IKDBDDB from "../Database/DDB/IKDB";
|
|
6
|
-
import IKDBPSQL from "../Database/PSQL/IKDB";
|
|
5
|
+
import IKDBDDB from "../Database/DDB/IKDB.js";
|
|
6
|
+
import IKDBPSQL from "../Database/PSQL/IKDB.js";
|
|
7
7
|
//Cache
|
|
8
|
-
import IKCacheRedis from '../Cache/Redis/IKRedis';
|
|
8
|
+
import IKCacheRedis from '../Cache/Redis/IKRedis.js';
|
|
9
9
|
//Comps
|
|
10
|
-
import IKLogger from "../Logger/IKLogger";
|
|
11
|
-
import IKValidation from '../Validation/IKValidation';
|
|
12
|
-
import IKPublisher from '../Publisher/IKPublisher';
|
|
13
|
-
import IKExecutionTracker from '../Tracker/IKExecutionTracker';
|
|
10
|
+
import IKLogger from "../Logger/IKLogger.js";
|
|
11
|
+
import IKValidation from '../Validation/IKValidation.js';
|
|
12
|
+
import IKPublisher from '../Publisher/IKPublisher.js';
|
|
13
|
+
import IKExecutionTracker from '../Tracker/IKExecutionTracker.js';
|
|
14
14
|
//
|
|
15
15
|
export default class IKProcess {
|
|
16
16
|
constructor(config, interval) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
//
|
|
2
|
-
import IKGlobals from '../IKGlobals';
|
|
3
|
-
import Utils from "../API/IKUtils";
|
|
2
|
+
import IKGlobals from '../IKGlobals.js';
|
|
3
|
+
import Utils from "../API/IKUtils.js";
|
|
4
4
|
//Database
|
|
5
|
-
import IKDBDDB from "../Database/DDB/IKDB";
|
|
6
|
-
import IKDBPSQL from "../Database/PSQL/IKDB";
|
|
5
|
+
import IKDBDDB from "../Database/DDB/IKDB.js";
|
|
6
|
+
import IKDBPSQL from "../Database/PSQL/IKDB.js";
|
|
7
7
|
//Cache
|
|
8
|
-
import IKCacheRedis from '../Cache/Redis/IKRedis';
|
|
8
|
+
import IKCacheRedis from '../Cache/Redis/IKRedis.js';
|
|
9
9
|
//Comps
|
|
10
|
-
import IKLogger from "../Logger/IKLogger";
|
|
11
|
-
import IKValidation from '../Validation/IKValidation';
|
|
12
|
-
import IKPublisher from '../Publisher/IKPublisher';
|
|
13
|
-
import IKExecutionTracker from '../Tracker/IKExecutionTracker';
|
|
10
|
+
import IKLogger from "../Logger/IKLogger.js";
|
|
11
|
+
import IKValidation from '../Validation/IKValidation.js';
|
|
12
|
+
import IKPublisher from '../Publisher/IKPublisher.js';
|
|
13
|
+
import IKExecutionTracker from '../Tracker/IKExecutionTracker.js';
|
|
14
14
|
//Request
|
|
15
|
-
import IKRequest from '../API/IKRequest';
|
|
16
|
-
import IKResponse, { IKBadRequestResponseWithRollback } from '../API/IKResponse';
|
|
15
|
+
import IKRequest from '../API/IKRequest.js';
|
|
16
|
+
import IKResponse, { IKBadRequestResponseWithRollback } from '../API/IKResponse.js';
|
|
17
17
|
|
|
18
18
|
//
|
|
19
19
|
export default class IKTransaction {
|
package/src/Database/DDB/IKDB.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DynamoDB } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
3
|
-
import Utils from "./../../API/IKUtils";
|
|
3
|
+
import Utils from "./../../API/IKUtils.js";
|
|
4
4
|
import sha1 from 'sha1';
|
|
5
5
|
//
|
|
6
|
-
import IKGlobals from './../../IKGlobals';
|
|
7
|
-
import IKDB from './../Prototype/IKDB';
|
|
6
|
+
import IKGlobals from './../../IKGlobals.js';
|
|
7
|
+
import IKDB from './../Prototype/IKDB.js';
|
|
8
8
|
//
|
|
9
|
-
|
|
9
|
+
import { Agent } from "https";
|
|
10
10
|
//reusable connection
|
|
11
11
|
var DDB_CONN = null;
|
|
12
12
|
var DDB_CONN_HASH = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import IKDBBaseExpression from './IKDBBaseExpression';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseExpression from './IKDBBaseExpression.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
|
-
import IKDBBaseQuery from './../Prototype/IKDBBaseQuery';
|
|
4
|
+
import IKDBBaseQuery from './../Prototype/IKDBBaseQuery.js';
|
|
5
5
|
//
|
|
6
6
|
export default class IKDBDDBBaseQuery extends IKDBBaseQuery {
|
|
7
7
|
constructor(optIndexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryBatchGet extends IKDBBaseQuery {
|
|
5
5
|
constructor(optIndexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryUpdate extends IKDBBaseQuery {
|
|
5
5
|
constructor(indexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryGet extends IKDBBaseQuery {
|
|
5
5
|
constructor(optIndexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryPut extends IKDBBaseQuery {
|
|
5
5
|
constructor(indexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryScan extends IKDBBaseQuery {
|
|
5
5
|
constructor(optIndexName) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import IKDBBaseQuery from './IKDBBaseQuery';
|
|
2
|
-
import Utils from './../../API/IKUtils';
|
|
1
|
+
import IKDBBaseQuery from './IKDBBaseQuery.js';
|
|
2
|
+
import Utils from './../../API/IKUtils.js';
|
|
3
3
|
//
|
|
4
4
|
export default class IKDBQueryUpdate extends IKDBBaseQuery {
|
|
5
5
|
constructor(indexName) {
|
package/src/IKDynamoStream.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import IKTransaction from './BaseEvent/IKTransaction';
|
|
2
|
-
import IKResponse, { IKBadRequestResponse, IKSuccessResponse } from './API/IKResponse';
|
|
3
|
-
import IKGlobals from './IKGlobals';
|
|
4
|
-
import Utils from "./API/IKUtils";
|
|
1
|
+
import IKTransaction from './BaseEvent/IKTransaction.js';
|
|
2
|
+
import IKResponse, { IKBadRequestResponse, IKSuccessResponse } from './API/IKResponse.js';
|
|
3
|
+
import IKGlobals from './IKGlobals.js';
|
|
4
|
+
import Utils from "./API/IKUtils.js";
|
|
5
5
|
//
|
|
6
6
|
export default class IKDynamoStream {
|
|
7
7
|
constructor(event, context, config) {
|
package/src/IKEventProcessor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import IKTransaction from './BaseEvent/IKTransaction';
|
|
2
|
-
import IKResponse, { IKBadRequestResponse, IKSuccessResponse } from './API/IKResponse';
|
|
3
|
-
import IKGlobals from './IKGlobals';
|
|
1
|
+
import IKTransaction from './BaseEvent/IKTransaction.js';
|
|
2
|
+
import IKResponse, { IKBadRequestResponse, IKSuccessResponse } from './API/IKResponse.js';
|
|
3
|
+
import IKGlobals from './IKGlobals.js';
|
|
4
4
|
//
|
|
5
5
|
export default class IKEventProcessor {
|
|
6
6
|
constructor(event, context, config, respondWithFailures) {
|
package/src/IKRouter.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//Components
|
|
2
|
-
import IKTransaction from './BaseEvent/IKTransaction';
|
|
3
|
-
import IKResponse, { IKBadRequestResponse } from './API/IKResponse';
|
|
2
|
+
import IKTransaction from './BaseEvent/IKTransaction.js';
|
|
3
|
+
import IKResponse, { IKBadRequestResponse } from './API/IKResponse.js';
|
|
4
4
|
//
|
|
5
|
-
|
|
5
|
+
import { pathToRegexp } from 'path-to-regexp';
|
|
6
6
|
//
|
|
7
7
|
export default class IKRouter {
|
|
8
8
|
constructor(routes, config) {
|
package/src/IKStepTransaction.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//
|
|
2
|
-
import IKTransaction from './BaseEvent/IKTransaction';
|
|
3
|
-
import { IKStepFunctionResponse } from './API/IKResponse';
|
|
2
|
+
import IKTransaction from './BaseEvent/IKTransaction.js';
|
|
3
|
+
import { IKStepFunctionResponse } from './API/IKResponse.js';
|
|
4
4
|
//
|
|
5
5
|
export default class IKStepTransaction extends IKTransaction {
|
|
6
6
|
constructor(event, context, config) {
|
package/src/Logger/IKLogger.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import abind from 'abind';
|
|
2
|
+
import stackTrace from 'stack-trace';
|
|
3
|
+
import stringify from 'json-stringify-safe';
|
|
4
4
|
//
|
|
5
|
-
import Utils from "./../API/IKUtils";
|
|
5
|
+
import Utils from "./../API/IKUtils.js";
|
|
6
6
|
//
|
|
7
7
|
export const LOG_LEVELS = { DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3 };
|
|
8
8
|
const LOG_STRINGS = ['DEBUG', 'INFO', 'WARN', 'ERROR'];
|
package/src/Mailer/IKMailer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import nodemailer from "nodemailer";
|
|
2
|
+
import Email from 'email-templates';
|
|
3
|
+
import AWSSES from "@aws-sdk/client-ses";
|
|
4
4
|
//
|
|
5
5
|
import { defaultProvider } from '@aws-sdk/credential-provider-node';
|
|
6
|
-
import Utils from "./../API/IKUtils";
|
|
6
|
+
import Utils from "./../API/IKUtils.js";
|
|
7
7
|
//
|
|
8
8
|
export default class IKMailer {
|
|
9
9
|
constructor(_defaultFrom, region) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import RTClient from '@ikonintegration/mod-resources-tracker-client';
|
|
2
2
|
//
|
|
3
|
-
import Utils from "../API/IKUtils";
|
|
3
|
+
import Utils from "../API/IKUtils.js";
|
|
4
4
|
//
|
|
5
|
-
|
|
5
|
+
import fs from 'fs';
|
|
6
6
|
//
|
|
7
7
|
export default class IKExecutionTracker {
|
|
8
8
|
constructor(config, context, db) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import IKGlobals from './../IKGlobals';
|
|
2
|
-
import Utils from './../API/IKUtils';
|
|
3
|
-
import IKResponse, { IKBadRequestResponse } from './../API/IKResponse';
|
|
1
|
+
import IKGlobals from './../IKGlobals.js';
|
|
2
|
+
import Utils from './../API/IKUtils.js';
|
|
3
|
+
import IKResponse, { IKBadRequestResponse } from './../API/IKResponse.js';
|
|
4
4
|
//https://www.npmjs.com/package/superstruct
|
|
5
5
|
import { struct, superstruct } from 'superstruct';
|
|
6
6
|
//validation libs
|