@izara_project/izara-core-library-asynchronous-flow 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-asynchronous-flow",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Shared asynchronous flow logic",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,9 +20,10 @@
20
20
  "testEnvironment": "node"
21
21
  },
22
22
  "dependencies": {
23
+ "@izara_project/izara-core-library-core": "^1.0.16",
24
+ "@izara_project/izara-core-library-dynamodb": "^1.0.2",
23
25
  "@izara_project/izara-core-library-external-request": "^1.0.17",
24
- "@izara_project/izara-core-library-service-schemas": "^1.0.38",
25
- "@izara_project/izara-shared": "^1.0.121",
26
- "aws-jwt-verify": "^4.0.1"
26
+ "@izara_project/izara-core-library-logger": "^1.0.6",
27
+ "@izara_project/izara-core-library-sqs": "^1.0.2"
27
28
  }
28
29
  }
@@ -20,11 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  // Core libraries
21
21
  const { NoRetryError } = require('@izara_project/izara-core-library-core');
22
22
  const Logger = require('@izara_project/izara-core-library-logger');
23
+
24
+ // Data and service interaction libraries
23
25
  const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
24
26
  const sqsSharedLib = require('@izara_project/izara-core-library-sqs');
25
- const triggeredCacheSharedLib = require('@izara_project/izara-core-library-triggeredCache');
26
27
 
27
- // External services
28
+ // External service interactions
28
29
  const { sqs } = require('@izara_project/izara-core-library-external-request');
29
30
 
30
31
  module.exports.createFieldNameUniqueRequestId = (
@@ -82,6 +83,14 @@ module.exports.explodePendingStepId = (
82
83
 
83
84
  }
84
85
 
86
+ // copy from izara-core-library-trigger-cache
87
+ module.exports.createFieldNameCacheComplete = (prefix = 'cache') => { // timeStamp
88
+ return prefix + 'CacheComplete';
89
+ }
90
+ module.exports.createFieldNameStatus = (prefix = 'cache') => {
91
+ return prefix + 'Status';
92
+ }
93
+
85
94
  //====================================== AwaitingMultipleSteps
86
95
  // AwaitingMultipleSteps is when a flow is awaiting multiple external flows before it can continue
87
96
  // One awaitingStepId can have multiple pendingStepIds that are awaiting it
@@ -687,9 +696,9 @@ module.exports.checkAndGetTimeCacheComplete = async (
687
696
  prefix: prefix
688
697
  });
689
698
 
690
- let uniqueRequestIdFieldName = triggeredCacheSharedLib.createFieldNameUniqueRequestId(prefix);
691
- let cacheCompleteFieldName = triggeredCacheSharedLib.createFieldNameCacheComplete(prefix);
692
- let statusFieldName = triggeredCacheSharedLib.createFieldNameStatus(prefix);
699
+ let uniqueRequestIdFieldName = this.createFieldNameUniqueRequestId('cache');
700
+ let cacheCompleteFieldName = this.createFieldNameCacheComplete(prefix);
701
+ let statusFieldName = this.createFieldNameStatus(prefix);
693
702
 
694
703
  let getTimeCacheComplete = await dynamodbSharedLib.getItem(
695
704
  _izContext,