@izara_project/izara-market-library-service-schemas 1.0.45 → 1.0.46

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-market-library-service-schemas",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Schemas for Izara Market project",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -47,7 +47,7 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
47
47
  // invoke LambdaFunction
48
48
  let lambdaFunctionResponse = await <%- action %>Main(
49
49
  event._izContext, // correlationId/logger/integrationTestDetail/uniqueRequestId/userId
50
- event,
50
+ event.body,
51
51
  callingFlowSharedLib.addCallingFlowToPassOnProperties(event)
52
52
 
53
53
  );
@@ -253,7 +253,7 @@ module.exports.getMain = async (
253
253
 
254
254
  return getResult;
255
255
  } catch (err) {
256
- _izContext.logger.error('error PersonGetMain: ', err)
256
+ _izContext.logger.error('error GetMain: ', err)
257
257
  throw (err)
258
258
  }
259
259
  }
@@ -357,7 +357,7 @@ module.exports.updateMain = async (
357
357
  errorsFound
358
358
  }
359
359
  } catch (err) {
360
- _izContext.logger.error('error AddressUpdate: ', err)
360
+ _izContext.logger.error('error Update: ', err)
361
361
  throw (err)
362
362
  }
363
363
  }
@@ -143,15 +143,17 @@ module.exports.createObjectComplete = async (
143
143
  _izContext.logger.debug("Send message to OutCreateObjectComplete :::>", sendMessageOutCreateObjectComplete)
144
144
  await sns.publishAsync(_izContext, sendMessageOutCreateObjectComplete);
145
145
 
146
- await asyncFlowSharedLib.removeAwaitingMultipleStep(
147
- _izContext,
148
- awaitingStepId,
149
- pendingStepId
150
- );
151
-
146
+
152
147
  //(<afterSendMessage>)
153
148
  //(</afterSendMessage>)
154
149
  }
150
+
151
+ await asyncFlowSharedLib.removeAwaitingMultipleStep(
152
+ _izContext,
153
+ awaitingStepId,
154
+ pendingStepId
155
+ );
156
+
155
157
  })
156
158
  )
157
159
  //(<beforeReturn>)
@@ -107,12 +107,13 @@ module.exports.updateNodeComplete = async (
107
107
  _izContext.logger.debug("Send Message to OutUpdateNodeComplete::", sendMessageToOutUpdateNodeComplete);
108
108
  await sns.publishAsync(_izContext, sendMessageToOutUpdateNodeComplete)
109
109
 
110
- await asyncFlowSharedLib.removeAwaitingMultipleStep(
111
- _izContext,
112
- awaitingStepId,
113
- pendingStepId
114
- );
115
110
  }
111
+
112
+ await asyncFlowSharedLib.removeAwaitingMultipleStep(
113
+ _izContext,
114
+ awaitingStepId,
115
+ pendingStepId
116
+ );
116
117
  })
117
118
  )
118
119
 
@@ -107,18 +107,19 @@ module.exports.updateNodeComplete = async (
107
107
  _izContext.logger.debug("Send Message to OutUpdateNodeComplete::", sendMessageToOutUpdateNodeComplete);
108
108
  await sns.publishAsync(_izContext, sendMessageToOutUpdateNodeComplete)
109
109
 
110
- await asyncFlowSharedLib.removeAwaitingMultipleStep(
111
- _izContext,
112
- awaitingStepId,
113
- pendingStepId
114
- );
115
110
  }
111
+
112
+ await asyncFlowSharedLib.removeAwaitingMultipleStep(
113
+ _izContext,
114
+ awaitingStepId,
115
+ pendingStepId
116
+ );
116
117
  })
117
118
  )
118
119
 
119
120
  //(<beforeReturn>)
120
121
  //(</beforeReturn>)
121
-
122
+
122
123
  return {
123
124
  objType: returnValue.objType,
124
125
  objInstanceFull: returnValue.objInstanceFull,
@@ -69,7 +69,7 @@ module.exports.deleteRelationshipComplete = async (
69
69
  relationshipProperties: returnValue.relationshipProperties,
70
70
  graphServiceTag: passBackProperties.passBackProperties.graphServiceTag
71
71
  }), // hash id
72
- PREFIX.createRel // prefix, use constant further
72
+ PREFIX.deleteRel // prefix, use constant further
73
73
  )
74
74
 
75
75
 
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
  const getObjectSchema = require('@izara_project/izara-core-library-service-schemas/src/GetObjectSchema');
20
- const { ADD_ON_DATA_STRUCTURE_TYPE } = require('@izara_project/izara-market-library-service-schemas/src/MainLibs/src/Consts');
20
+ const { ADD_ON_DATA_STRUCTURE_TYPE } = require('../../MainLibs/src/Consts');
21
21
 
22
22
  async function validateAddOnDataStructure(
23
23
  _izContext,