@izara_project/izara-core-library-find-data 1.0.9 → 1.0.11

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-find-data",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Shared find data logic",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -60,7 +60,8 @@ async function checkFindDataMainStatus(
60
60
  objType,
61
61
  identifiers,
62
62
  callingFlow = "",
63
- removeAttributes = []
63
+ removeAttributes = [],
64
+ overWriteCache = false
64
65
  ) {
65
66
  try {
66
67
 
@@ -84,7 +85,13 @@ async function checkFindDataMainStatus(
84
85
  }
85
86
  },
86
87
  'findData', // prefix
87
- removeAttributes // removeAttributes
88
+ removeAttributes,// removeAttributes
89
+ [],
90
+ [],// removeAttributes
91
+ "", // used when multi invocation lambdas need to link to the original uniqueRequestId
92
+ false, // will return recordNotFound if record not exist, and not create the record, eg sub-tasks for a main record
93
+ null,
94
+ overWriteCache,
88
95
  );
89
96
  if (cacheStatus !== "process") {
90
97
  // is either complete, processing by another thread, error, or some other status
@@ -101,6 +108,7 @@ async function checkFindDataMainStatus(
101
108
  identifiers,
102
109
  findDataMain.dataValue,
103
110
  findDataMain[storedCacheSharedLib.createFieldNameCacheComplete('findData')],
111
+ overWriteCache,
104
112
  callingFlow,
105
113
  cacheStatus,
106
114
  findDataMain[storedCacheSharedLib.createFieldNameErrorsFound('findData')]
@@ -130,6 +138,7 @@ async function completeFindDataMain(
130
138
  objType,
131
139
  identifiers,
132
140
  dataValue,
141
+ overWriteCache,
133
142
  callingFlow = "",
134
143
  status,
135
144
  errorsFound = []
@@ -150,6 +159,7 @@ async function completeFindDataMain(
150
159
  identifiers,
151
160
  dataValue,
152
161
  timeCacheComplete,
162
+ overWriteCache,
153
163
  callingFlow,
154
164
  status,
155
165
  errorsFound,
@@ -240,6 +250,7 @@ async function sendFindDataCompleteMessage(
240
250
  identifiers,
241
251
  dataValue,
242
252
  timeCacheComplete = 0,
253
+ overWriteCache,
243
254
  callingFlow = "",
244
255
  status,
245
256
  errorsFound = [],
@@ -258,7 +269,8 @@ async function sendFindDataCompleteMessage(
258
269
  dataValue: dataValue,
259
270
  status: status,
260
271
  errorsFound: errorsFound,
261
- timeCacheComplete: timeCacheComplete
272
+ timeCacheComplete: timeCacheComplete,
273
+ overWriteCache: overWriteCache
262
274
  }),
263
275
  TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, 'FindDataComplete_Out')
264
276
  };