@izara_project/izara-core-generate-service-code 1.0.37 → 1.0.38

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-generate-service-code",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Code for locally generating per service files",
5
5
  "author": "Sven Mason <thebarbariansven@gmail.com>",
6
6
  "license": "AGPL-3.0-or-later",
@@ -135,6 +135,16 @@ import { <%= action %>MainLogical } from './<%= functionName %>_Main.js';
135
135
  })
136
136
  );
137
137
 
138
+ if (callingFlowConfig.callingFlow === `${process.env.iz_resourcePrefix}CreateBeforeLogical`) {
139
+ callingFlowConfig =
140
+ callingFlowConfig.callingFlowProperties.parentPassBackProperties;
141
+ }
142
+
143
+ _izContext.logger.debug(
144
+ '[createBeforeLogicalMain] callingFlowConfig',
145
+ callingFlowConfig
146
+ );
147
+
138
148
  //(<beforeLogicalMain>)
139
149
  //(</beforeLogicalMain>)
140
150
 
@@ -143,8 +143,8 @@ export default async function createRelationship(
143
143
  const { serviceTag: fromServiceTag, objectType: fromObjectType } = link.from.objType;
144
144
  const { serviceTag: toServiceTag, objectType: toObjType } = link.to.objType;
145
145
 
146
- const { serviceTag: firstServiceTag, objectType: firstObjectType } = firstObjectHie.extendObjType || firstObject.objType;
147
- const { serviceTag: secondServiceTag, objectType: secondObjectType } = secondObjectHie.extendObjType || secondObject.objType;
146
+ const { serviceTag: firstServiceTag, objectType: firstObjectType } = firstObject.objType;
147
+ const { serviceTag: secondServiceTag, objectType: secondObjectType } = secondObject.objType;
148
148
 
149
149
  const matchFromTo = fromServiceTag === firstServiceTag && fromObjectType === firstObjectType &&
150
150
  toServiceTag === secondServiceTag && toObjType === secondObjectType;
@@ -161,7 +161,7 @@ const SAVE_FILE_NAME = {
161
161
  refObjectRelationship: 'RefObjectRelationships',
162
162
  objectSchema: 'ObjectFieldSchema',
163
163
  roleNameConfig: 'RoleNameConfig',
164
- systemTextSchema: 'SystemTextSchema'
164
+ systemTextSchema: 'SystemTextSchemas'
165
165
  };
166
166
 
167
167
  const FUNCTION_NAME = {