@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.
- package/package.json +1 -1
- package/src/TemplateManager/src/FindData/mainFunction/template.ejs +3 -0
- package/src/TemplateManager/src/GenerateCode.js +20 -14
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/data.js +59 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/template.ejs +129 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/data.js +53 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/template.ejs +172 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/data.js +58 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/template.ejs +47 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/data.js +62 -0
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/template.ejs +10 -0
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/data.js +2 -3
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/data.js +4 -2
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/data.js +1 -2
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/data.js +3 -3
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/template.ejs +171 -177
- package/src/TemplateManager/src/ProcessLogical/mainFunction/template.ejs +9 -1
- package/src/TemplateManager/src/externalService/LambdaRole/data.js +3 -6
- 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
|
-
|
|
165
|
-
|
|
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
|
-
|
|
185
|
+
createObjectComplete: "createObjectComplete",
|
|
186
186
|
paginateProcessLogical: "paginateProcessLogical"
|
|
187
187
|
}
|
|
188
188
|
|