@izara_project/izara-market-library-service-schemas 1.0.6 → 1.0.7

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.
Files changed (20) hide show
  1. package/package.json +1 -1
  2. package/src/TemplateManager/src/FindData/mainFunction/template.ejs +3 -0
  3. package/src/TemplateManager/src/GenerateCode.js +20 -14
  4. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/functionYaml/data.js +1 -1
  5. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/data.js +59 -0
  6. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/template.ejs +129 -0
  7. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/data.js +53 -0
  8. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/template.ejs +172 -0
  9. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/data.js +58 -0
  10. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/template.ejs +47 -0
  11. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/data.js +62 -0
  12. package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/template.ejs +10 -0
  13. package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/data.js +2 -3
  14. package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/data.js +4 -2
  15. package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/data.js +1 -2
  16. package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/data.js +3 -3
  17. package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/template.ejs +171 -177
  18. package/src/TemplateManager/src/ProcessLogical/mainFunction/template.ejs +9 -1
  19. package/src/TemplateManager/src/externalService/LambdaRole/data.js +3 -6
  20. package/src/TemplateManager/src/libs/Consts.js +1 -1
@@ -124,9 +124,6 @@ async function externalLambdaIamRoleDataPerAction(_izContext, objectSchema, acti
124
124
  let functionName = upperCase(objectType) + upperCase(action) + upperCase(handler);
125
125
 
126
126
  if (action === ACTIONS.get) {
127
- // create functionName
128
- // functionNameArray.push(functionName)
129
- // create additionalResourcePermission
130
127
  additionalResourcePermission.push(
131
128
  createIamRole(
132
129
  { [RESOURCE_CLASSES.lambda]: [LAMBDA_RESOURCE.invokeFunction] },
@@ -147,7 +144,6 @@ async function externalLambdaIamRoleDataPerAction(_izContext, objectSchema, acti
147
144
  )
148
145
  )
149
146
  )
150
- // } else if (action === ACTIONS.delete) {
151
147
 
152
148
  } else if (action === ACTIONS.create) {
153
149
  additionalResourcePermission.push(
@@ -160,9 +156,10 @@ async function externalLambdaIamRoleDataPerAction(_izContext, objectSchema, acti
160
156
  )
161
157
  )
162
158
  )
159
+ } else if (action === ACTIONS.delete) {
163
160
 
164
- return
165
- // throw Error("invalid action")
161
+ } else {
162
+ throw new error("Invalid action")
166
163
  }
167
164
 
168
165
 
@@ -182,7 +182,7 @@ const FUNCTION_NAME = {
182
182
  findData: "findData",
183
183
  processLogical: "processLogical",
184
184
  updateNodeComplete: "updateNodeComplete",
185
- createNodeComplete: "createNodeComplete",
185
+ createObjectComplete: "createObjectComplete",
186
186
  paginateProcessLogical: "paginateProcessLogical"
187
187
  }
188
188