@izara_project/izara-core-generate-service-code 1.0.52 → 1.0.54

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 (685) hide show
  1. package/index.js +11 -17
  2. package/package.json +8 -8
  3. package/src/codeGenerators/app/initial_setup/InitialSetupGenerator.js +149 -0
  4. package/src/codeGenerators/app/initial_setup/templates/InitialSetup_LambdaRole.ejs +43 -0
  5. package/src/codeGenerators/app/initial_setup/templates/InitialSetup_SnsService.ejs +15 -0
  6. package/src/codeGenerators/app/initial_setup/templates/InitialSetup_TableName.ejs +9 -0
  7. package/src/codeGenerators/app/sls_yaml/FindDataYamlGenerator.js +23 -0
  8. package/src/codeGenerators/app/sls_yaml/FunctionYamlGenerator.js +230 -0
  9. package/src/codeGenerators/app/sls_yaml/ProcessLogicalYamlGenerator.js +21 -0
  10. package/src/codeGenerators/app/sls_yaml/RoleNameConfigGenerator.js +83 -0
  11. package/src/codeGenerators/app/sls_yaml/SharedResourceYamlGenerator.js +471 -0
  12. package/src/codeGenerators/app/sls_yaml/__tests__/SharedResourceYamlGenerator.test.js +176 -0
  13. package/src/codeGenerators/app/sls_yaml/_policy/PolicyEmitter.js +45 -0
  14. package/src/codeGenerators/app/sls_yaml/_policy/PolicyRegistry.js +94 -0
  15. package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyEmitter.test.js +55 -0
  16. package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyRegistry.test.js +48 -0
  17. package/src/codeGenerators/app/sls_yaml/_policy/templates/ManagedPolicy_Yaml.ejs +22 -0
  18. package/src/codeGenerators/app/sls_yaml/renderYamlTemplate.js +13 -0
  19. package/src/codeGenerators/app/sls_yaml/templates/FindData_Yaml.ejs +10 -0
  20. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Api.ejs +21 -0
  21. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_EventBridge.ejs +14 -0
  22. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Inv.ejs +6 -0
  23. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Sqs.ejs +11 -0
  24. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Wbs.ejs +11 -0
  25. package/src/codeGenerators/app/sls_yaml/templates/ProcessLogical_Yaml.ejs +32 -0
  26. package/src/{generators/fromObjectSchema/roleNameConfig/templateYaml.ejs → codeGenerators/app/sls_yaml/templates/RoleNameConfig_Yaml.ejs} +1 -1
  27. package/src/codeGenerators/app/sls_yaml/templates/SharedResource_Yaml.ejs +39 -0
  28. package/src/codeGenerators/app/src/generatedCode/FindData/FindDataGenerator.js +238 -0
  29. package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_HdrSqs.ejs +87 -0
  30. package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_Main.ejs +108 -0
  31. package/src/codeGenerators/app/src/generatedCode/FindData/templates/GetByStorage/getByDynamo.ejs +32 -0
  32. package/src/{generators/fromObjectSchema/findData → codeGenerators/app/src/generatedCode/FindData/templates}/GetByStorage/getByGraph.ejs +5 -5
  33. package/src/codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/EndpointsGenerator.js +119 -0
  34. package/src/{generators/fromObjectSchema/endpoint/main/beforeLogical/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/FlowEndpointBeforeLogical_Main.ejs} +11 -16
  35. package/src/{generators/fromObjectSchema/endpoint/main/create/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/CreateEndpoint_Main.ejs} +6 -6
  36. package/src/{generators/fromObjectSchema/endpoint/main/delete/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/DeleteEndpoint_Main.ejs} +5 -5
  37. package/src/{generators/fromObjectSchema/endpoint/main/get/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/GetEndpoint_Main.ejs} +1 -1
  38. package/src/{generators/fromObjectSchema/endpoint/main/update/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/UpdateEndpoint_Main.ejs} +5 -5
  39. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/RbacFlowGenerator.js +112 -0
  40. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateRolePermissions.ejs +135 -0
  41. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateTargetRole.ejs +131 -0
  42. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateUserRole.ejs +150 -0
  43. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteRolePermissions.ejs +132 -0
  44. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteTargetRole.ejs +132 -0
  45. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteUserFromRole.ejs +150 -0
  46. package/src/{generators/fromFlowSchema/events/s3/flowSchemaMainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListRolePermissions.ejs} +70 -39
  47. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListTargetRole.ejs +122 -0
  48. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListUserInRoles.ejs +117 -0
  49. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/RelationshipFlowGenerator.js +131 -0
  50. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/StatusFieldGenerator.js +116 -0
  51. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/WebSocketGenerator.js +124 -0
  52. package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEndpoint_HdrWbs.ejs} +6 -6
  53. package/src/{generators/fromFlowSchema/flowSchemaMainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEndpoint_Main.ejs} +31 -25
  54. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEntryPoint_Main.ejs +38 -0
  55. package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowMain_Wbs.ejs} +20 -20
  56. package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ConfirmReserved_HdrSqs.ejs} +5 -5
  57. package/src/{generators/fromFlowSchema/events/s3/upload/createObject/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreateObject_HdrWbs.ejs} +2 -2
  58. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreatePreSignUrl_HdrSqs.ejs} +5 -5
  59. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreatePreSignUrl_Main.ejs} +7 -7
  60. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/FlowHandler_HdrS3.ejs +66 -0
  61. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ReservedLimit_HdrSqs.ejs} +5 -5
  62. package/src/{generators/fromFlowSchema/statusTypes/statusField/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_HdrSqs.ejs} +0 -2
  63. package/src/{generators/fromObjectSchema/endpointComplete/create/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/FlowEndpointComplete_Main.ejs} +26 -24
  64. package/src/{generators/fromFlowSchema/flowStep/noPlugInHook/templateMain.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/FlowStep_Main.ejs} +13 -12
  65. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketFlow_Yaml.ejs} +5 -5
  66. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/sqs/templateSub.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketSub_Yaml.ejs} +1 -1
  67. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_HdrSqs.ejs} +1 -20
  68. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_Main.ejs} +1 -21
  69. package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Main.ejs} +1 -21
  70. package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Yaml.ejs} +1 -1
  71. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/BaseSqsHandler.js +67 -0
  72. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/eventBridge.js +25 -0
  73. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/extTopic.js +6 -0
  74. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/lambdaSyncApi.js +52 -0
  75. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/lambdaSyncInv.js +52 -0
  76. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/ownTopic.js +42 -0
  77. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/registry.js +15 -0
  78. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3.js +56 -0
  79. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ConfirmAfterUploadS3Generator.js +46 -0
  80. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/CreateObjectGenerator.js +50 -0
  81. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/CreatePreSignUrlGenerator.js +48 -0
  82. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ProcessAfterUploadS3Generator.js +49 -0
  83. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ReservedLimitGenerator.js +47 -0
  84. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrApi.ejs +51 -0
  85. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrInv.ejs +45 -0
  86. package/src/{generators/fromPlugIn/firstFlowStep/handler/templateSqs.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrSqs.ejs} +30 -9
  87. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/eventTypes.js +23 -0
  88. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowClassifier.js +49 -0
  89. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowEntryPointBase.js +102 -0
  90. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowMainFunctionBase.js +160 -0
  91. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowNaming.js +21 -0
  92. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowSelection.js +20 -0
  93. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowStepBase.js +229 -0
  94. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowStepNormalizer.js +28 -0
  95. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowValidator.js +144 -0
  96. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/registry.js +7 -0
  97. package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/triggerCacheBase.js +183 -0
  98. package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/CheckTriggerCache_Main.ejs} +0 -2
  99. package/src/{generators/fromObjectSchema/relationship/create/action/sns-in-sqs/sqsTemplate.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheQueue_Yaml.ejs} +6 -10
  100. package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/yaml/SharedFunctionSqs_Yaml.ejs} +1 -5
  101. package/src/codeGenerators/app/src/generatedCode/ProcessLogical/ProcessLogicalGenerator.js +29 -0
  102. package/src/{generators/fromObjectSchema/processLogicalPagination/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrSqs.ejs} +1 -1
  103. package/src/{generators/fromObjectSchema/processLogicalPagination/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_Main.ejs} +10 -10
  104. package/src/{generators/fromObjectSchema/processLogical/handler/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_HdrSqs.ejs} +1 -1
  105. package/src/{generators/fromObjectSchema/processLogical/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_Main.ejs} +16 -16
  106. package/src/codeGenerators/app/src/generatedCode/SystemFlowSchemas/RegisterGenerator.js +150 -0
  107. package/src/{generators/fromFlowSchema/register/wbs/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_HdrWbs.ejs} +1 -5
  108. package/src/codeGenerators/app/src/generatedCode/libs/ConstsGenerator.js +28 -0
  109. package/src/codeGenerators/app/src/generatedCode/libs/GenerateCodeLibsGenerator.js +28 -0
  110. package/src/codeGenerators/app/src/generatedCode/libs/templates/Consts.ejs +448 -0
  111. package/src/{generators/fromFlowSchema/shared/template.ejs → codeGenerators/app/src/generatedCode/libs/templates/GenerateCodeLibs.ejs} +38 -29
  112. package/src/codeGenerators/resource/sls_yaml/DynamoDBGenerator.js +96 -0
  113. package/src/codeGenerators/resource/sls_yaml/FlowOutGenerator.js +73 -0
  114. package/src/codeGenerators/resource/sls_yaml/FlowResourceYamlGenerator.js +199 -0
  115. package/src/codeGenerators/resource/sls_yaml/templates/DynamoDBTable_Yaml.ejs +20 -0
  116. package/src/{generators/fromObjectSchema/relationship/create/complete/sns-out/template.ejs → codeGenerators/resource/sls_yaml/templates/FlowOut_Yaml.ejs} +3 -5
  117. package/src/codeGenerators/resource/sls_yaml/templates/SystemDynamoDB_Yaml.ejs +138 -0
  118. package/src/{generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/template.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceSqsYaml.ejs} +6 -10
  119. package/src/{generators/fromObjectSchema/endpoint/resourceTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceYaml.ejs} +9 -9
  120. package/src/core/renderTemplateFile.js +22 -0
  121. package/src/core/validate.js +161 -0
  122. package/src/generate.js +130 -0
  123. package/src/generateCode.js +247 -51
  124. package/src/generateIntTest.js +142 -0
  125. package/src/generateResourceIntTest.js +77 -0
  126. package/src/generateResources/IntTest/consts.js +36 -0
  127. package/src/generateResources/IntTest/generateResources/generateResources.js +11 -14
  128. package/src/generateResources/IntTest/generateTests/events/events.js +1 -4
  129. package/src/generateResources/IntTest/generateTests/generateTemplate.js +15 -16
  130. package/src/generateResources/IntTest/generateTests/pathIntTest/pathIntTest.js +6 -2
  131. package/src/generateResources/IntTest/generateTests/tests/tests.js +2 -6
  132. package/src/generateResources/IntTest/libs/libs.js +5 -5
  133. package/src/generateSchema.js +63 -0
  134. package/src/intTestGeneratorShared.js +36 -0
  135. package/src/parsers/flowSchemaParser.js +106 -0
  136. package/src/parsers/objectSchemaParser.js +39 -0
  137. package/src/parsers/relationshipSchemaParser.js +51 -0
  138. package/src/schemaGenerators/app/src/schemas/FlowSchemas/FlowSchemaGenerator.js +151 -0
  139. package/src/schemaGenerators/app/src/schemas/FlowSchemas/RbacFlowSchemaGenerator.js +84 -0
  140. package/src/schemaGenerators/app/src/schemas/FlowSchemas/RelationshipFlowSchemaGenerator.js +89 -0
  141. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicFlowSchemaTemplate.ejs +39 -0
  142. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicRbacFlowSchemaTemplate.ejs +19 -0
  143. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/RelationshipFlowSchemaTemplate.ejs +32 -0
  144. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/AttributeTreeSchemaGenerator.js +124 -0
  145. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/PropertyValueSchemaGenerator.js +119 -0
  146. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeManagerSchemaTemplate.ejs +14 -0
  147. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeStandardSchemaTemplate.ejs +13 -0
  148. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicPropertyValueSchemaTemplate.ejs +15 -0
  149. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/AttributeTreeRelationshipSchemaGenerator.js +149 -0
  150. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/PropertyValueRelationshipSchemaGenerator.js +143 -0
  151. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicAttributeTreeRelationshipSchemaTemplate.ejs +7 -0
  152. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicPropertyValueRelationshipSchemaTemplate.ejs +7 -0
  153. package/src/schemaGenerators/app/src/schemas/SystemTextSchemas/SystemTextGenerator.js +102 -0
  154. package/src/{generators/fromObjectSchema/textTag/systemText/template.ejs → schemaGenerators/app/src/schemas/SystemTextSchemas/templates/SystemText_Template.ejs} +1 -1
  155. package/REFACTOR_PLAN.md +0 -172
  156. package/fix_array.js +0 -11
  157. package/fix_imports.js +0 -41
  158. package/fix_upper.js +0 -38
  159. package/src/IntTestConfig.js +0 -23
  160. package/src/generateResources/IntTest/upload/uploadIntTest.js +0 -96
  161. package/src/generateResources.js +0 -123
  162. package/src/generateTests.js +0 -139
  163. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/functionNameConfig.js +0 -182
  164. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/template.ejs +0 -14
  165. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateIntTesting.ejs +0 -31
  166. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateYaml.ejs +0 -10
  167. package/src/generators/fromExternalService/externalServiceComponent/index.js +0 -69
  168. package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/lambdaRole.js +0 -250
  169. package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/template.ejs +0 -58
  170. package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/snsTopicSubscriptions.js +0 -155
  171. package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/template.ejs +0 -33
  172. package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/tableNameConfig.js +0 -90
  173. package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/template.ejs +0 -43
  174. package/src/generators/fromExternalService/index.js +0 -65
  175. package/src/generators/fromFlowSchema/env/template.ejs +0 -5
  176. package/src/generators/fromFlowSchema/env/yaml.js +0 -73
  177. package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/template.ejs +0 -14
  178. package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/yaml.js +0 -168
  179. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/inv.js +0 -74
  180. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/request.json +0 -7
  181. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/template.ejs +0 -53
  182. package/src/generators/fromFlowSchema/events/eventBridge/index.js +0 -16
  183. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/main.js +0 -77
  184. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/request.json +0 -5
  185. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/template.ejs +0 -59
  186. package/src/generators/fromFlowSchema/events/extTopic/index.js +0 -18
  187. package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/template.ejs +0 -13
  188. package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/yaml.js +0 -159
  189. package/src/generators/fromFlowSchema/events/extTopic/process/handler/handler.js +0 -67
  190. package/src/generators/fromFlowSchema/events/extTopic/process/handler/template.ejs +0 -101
  191. package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/snsInSqs.js +0 -79
  192. package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/template.ejs +0 -44
  193. package/src/generators/fromFlowSchema/events/extTopic/sns-out/snsOut.js +0 -76
  194. package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/template.ejs +0 -19
  195. package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/yaml.js +0 -88
  196. package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/handler.js +0 -68
  197. package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/template.ejs +0 -84
  198. package/src/generators/fromFlowSchema/events/lambdaSyncApi/index.js +0 -14
  199. package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/template.ejs +0 -6
  200. package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/yaml.js +0 -75
  201. package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/handler.js +0 -64
  202. package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/template.ejs +0 -52
  203. package/src/generators/fromFlowSchema/events/lambdaSyncInv/index.js +0 -14
  204. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/template.ejs +0 -10
  205. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/yaml.js +0 -178
  206. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/DsqHandlerTemplate.ejs +0 -105
  207. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/SqsHandlerTemplate.ejs +0 -87
  208. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/handler.js +0 -93
  209. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/template.ejs +0 -11
  210. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/yaml.js +0 -127
  211. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/handler/handler.js +0 -65
  212. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/main.js +0 -64
  213. package/src/generators/fromFlowSchema/events/ownTopic/index.js +0 -32
  214. package/src/generators/fromFlowSchema/events/ownTopic/sns-in/snsIn.js +0 -108
  215. package/src/generators/fromFlowSchema/events/ownTopic/sns-out/snsOut.js +0 -77
  216. package/src/generators/fromFlowSchema/events/registry.js +0 -6
  217. package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/main.js +0 -121
  218. package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -30
  219. package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -26
  220. package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -44
  221. package/src/generators/fromFlowSchema/events/s3/index.js +0 -81
  222. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/template.ejs +0 -13
  223. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/yaml.js +0 -140
  224. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/handler.js +0 -65
  225. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/main.js +0 -54
  226. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/queue.js +0 -63
  227. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/template.ejs +0 -42
  228. package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/template.ejs +0 -16
  229. package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/yaml.js +0 -133
  230. package/src/generators/fromFlowSchema/events/s3/upload/createObject/handler/handler.js +0 -66
  231. package/src/generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/main.js +0 -65
  232. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/template.ejs +0 -13
  233. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/yaml.js +0 -139
  234. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/handler.js +0 -68
  235. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/template.ejs +0 -99
  236. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/main.js +0 -65
  237. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/template.ejs +0 -82
  238. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/snsSqs.js +0 -70
  239. package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/template.ejs +0 -46
  240. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +0 -14
  241. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/yaml.js +0 -157
  242. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/handler.js +0 -65
  243. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/mainFunction/main.js +0 -64
  244. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/queue.js +0 -63
  245. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/template.ejs +0 -42
  246. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -10
  247. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/yaml.js +0 -164
  248. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/handler.js +0 -66
  249. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/mainFunction/main.js +0 -59
  250. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/sqs.js +0 -67
  251. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/template.ejs +0 -50
  252. package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/template.ejs +0 -21
  253. package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/yaml.js +0 -156
  254. package/src/generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/handlerS3.js +0 -49
  255. package/src/generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/template.ejs +0 -50
  256. package/src/generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -182
  257. package/src/generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/main.js +0 -49
  258. package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/dsqTemplatePath.ejs +0 -32
  259. package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/queue.js +0 -77
  260. package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/s3Template.ejs +0 -56
  261. package/src/generators/fromFlowSchema/events/s3/upload/relate/S3/s3.js +0 -61
  262. package/src/generators/fromFlowSchema/events/s3/upload/relate/S3/template.ejs +0 -13
  263. package/src/generators/fromFlowSchema/events/s3/upload/relate/sns-out/snsOut.js +0 -70
  264. package/src/generators/fromFlowSchema/events/s3/websocket/dynamoDb/ReservedTableData.js +0 -69
  265. package/src/generators/fromFlowSchema/flowSchemaMainFunction/main.js +0 -123
  266. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -30
  267. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -26
  268. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -44
  269. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateDsq.ejs +0 -151
  270. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateSqs.ejs +0 -89
  271. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateMain.ejs +0 -93
  272. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateResource.ejs +0 -91
  273. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateYaml.ejs +0 -47
  274. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateHandler.ejs +0 -95
  275. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateMain.ejs +0 -95
  276. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateResource.ejs +0 -56
  277. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateYaml.ejs +0 -23
  278. package/src/generators/fromFlowSchema/flowStep/flowStep.js +0 -515
  279. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateHandler.ejs +0 -95
  280. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateResource.ejs +0 -52
  281. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateYaml.ejs +0 -23
  282. package/src/generators/fromFlowSchema/index.js +0 -213
  283. package/src/generators/fromFlowSchema/register/complete/functionYaml/template.ejs +0 -23
  284. package/src/generators/fromFlowSchema/register/complete/functionYaml/yaml.js +0 -127
  285. package/src/generators/fromFlowSchema/register/complete/handler/handler.js +0 -61
  286. package/src/generators/fromFlowSchema/register/complete/mainFunction/main.js +0 -53
  287. package/src/generators/fromFlowSchema/register/dynamoDB/register.js +0 -74
  288. package/src/generators/fromFlowSchema/register/index.js +0 -50
  289. package/src/generators/fromFlowSchema/register/sns-in/snsIn.js +0 -59
  290. package/src/generators/fromFlowSchema/register/sns-in/template.ejs +0 -42
  291. package/src/generators/fromFlowSchema/register/subscriptionOutAll/subscriptionOutAll.js +0 -84
  292. package/src/generators/fromFlowSchema/register/subscriptionOutAll/template.ejs +0 -10
  293. package/src/generators/fromFlowSchema/register/wbs/functionYaml/template.ejs +0 -11
  294. package/src/generators/fromFlowSchema/register/wbs/functionYaml/yaml.js +0 -114
  295. package/src/generators/fromFlowSchema/register/wbs/handler/handler.js +0 -63
  296. package/src/generators/fromFlowSchema/register/wbs/mainFunction/main.js +0 -54
  297. package/src/generators/fromFlowSchema/shared/wsCodeLibs.js +0 -49
  298. package/src/generators/fromFlowSchema/statusTypes/registry.js +0 -2
  299. package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/template.ejs +0 -18
  300. package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/yaml.js +0 -169
  301. package/src/generators/fromFlowSchema/statusTypes/statusField/handler/handler.js +0 -68
  302. package/src/generators/fromFlowSchema/statusTypes/statusField/index.js +0 -22
  303. package/src/generators/fromFlowSchema/statusTypes/statusField/mainFunction/main.js +0 -67
  304. package/src/generators/fromFlowSchema/statusTypes/statusField/sns/sns.js +0 -66
  305. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/template.ejs +0 -18
  306. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/yaml.js +0 -154
  307. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/handler.js +0 -73
  308. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/main.js +0 -75
  309. package/src/generators/fromFlowSchema/statusTypes/triggerCache/index.js +0 -41
  310. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/template.ejs +0 -18
  311. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/yaml.js +0 -159
  312. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/handler.js +0 -74
  313. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/main.js +0 -68
  314. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/dsq.js +0 -148
  315. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/template.ejs +0 -17
  316. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/sqs.js +0 -148
  317. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/dsq.js +0 -69
  318. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/sqs.js +0 -69
  319. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/main.js +0 -72
  320. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/queue.js +0 -97
  321. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/template.ejs +0 -46
  322. package/src/generators/fromFlowSchema/webSocket/index.js +0 -39
  323. package/src/generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/yaml.js +0 -89
  324. package/src/generators/fromFlowSchema/webSocket/webSocket/connect/handler/handler.js +0 -55
  325. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/WebSocketTaskData.js +0 -74
  326. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/ttlDynamoTemplate.ejs +0 -29
  327. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/userUploadRecords.js +0 -61
  328. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/yaml.js +0 -144
  329. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/handler/handler.js +0 -61
  330. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/main.js +0 -53
  331. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/sqs.js +0 -108
  332. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/template.ejs +0 -40
  333. package/src/generators/fromObjectSchema/endpoint/handler/api.js +0 -55
  334. package/src/generators/fromObjectSchema/endpoint/handler/apiTemplate.ejs +0 -81
  335. package/src/generators/fromObjectSchema/endpoint/handler/beforeLogical.js +0 -56
  336. package/src/generators/fromObjectSchema/endpoint/handler/beforeLogicalTemplate.ejs +0 -123
  337. package/src/generators/fromObjectSchema/endpoint/handler/dsq.js +0 -55
  338. package/src/generators/fromObjectSchema/endpoint/handler/dsqTemplate.ejs +0 -126
  339. package/src/generators/fromObjectSchema/endpoint/handler/inv.js +0 -55
  340. package/src/generators/fromObjectSchema/endpoint/handler/invTemplate.ejs +0 -63
  341. package/src/generators/fromObjectSchema/endpoint/handler/sqs.js +0 -55
  342. package/src/generators/fromObjectSchema/endpoint/handler/sqsTemplate.ejs +0 -124
  343. package/src/generators/fromObjectSchema/endpoint/index.js +0 -290
  344. package/src/generators/fromObjectSchema/endpoint/main/beforeLogical/beforeLogical.js +0 -54
  345. package/src/generators/fromObjectSchema/endpoint/main/create/create.js +0 -52
  346. package/src/generators/fromObjectSchema/endpoint/main/delete/delete.js +0 -49
  347. package/src/generators/fromObjectSchema/endpoint/main/get/get.js +0 -49
  348. package/src/generators/fromObjectSchema/endpoint/main/update/update.js +0 -50
  349. package/src/generators/fromObjectSchema/endpoint/resource.js +0 -72
  350. package/src/generators/fromObjectSchema/endpoint/yaml.js +0 -308
  351. package/src/generators/fromObjectSchema/endpoint/yamlTemplate.ejs +0 -28
  352. package/src/generators/fromObjectSchema/endpointComplete/create/handler/handler.js +0 -63
  353. package/src/generators/fromObjectSchema/endpointComplete/create/handler/template.ejs +0 -126
  354. package/src/generators/fromObjectSchema/endpointComplete/create/mainFunction/main.js +0 -54
  355. package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/snsInSqs.js +0 -63
  356. package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/template.ejs +0 -44
  357. package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/snsOut.js +0 -72
  358. package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/template.ejs +0 -8
  359. package/src/generators/fromObjectSchema/endpointComplete/create/yaml/template.ejs +0 -17
  360. package/src/generators/fromObjectSchema/endpointComplete/create/yaml/yaml.js +0 -152
  361. package/src/generators/fromObjectSchema/endpointComplete/delete/handler/handler.js +0 -68
  362. package/src/generators/fromObjectSchema/endpointComplete/delete/handler/template.ejs +0 -122
  363. package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/main.js +0 -55
  364. package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/template.ejs +0 -87
  365. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/snsInSqs.js +0 -64
  366. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/template.ejs +0 -44
  367. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-out/snsOut.js +0 -69
  368. package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/template.ejs +0 -16
  369. package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/yaml.js +0 -124
  370. package/src/generators/fromObjectSchema/endpointComplete/get/handler/handler.js +0 -68
  371. package/src/generators/fromObjectSchema/endpointComplete/get/handler/template.ejs +0 -122
  372. package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/main.js +0 -54
  373. package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/template.ejs +0 -132
  374. package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/snsInSqs.js +0 -63
  375. package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/template.ejs +0 -44
  376. package/src/generators/fromObjectSchema/endpointComplete/get/sns-out/snsOut.js +0 -69
  377. package/src/generators/fromObjectSchema/endpointComplete/get/yaml/template.ejs +0 -17
  378. package/src/generators/fromObjectSchema/endpointComplete/get/yaml/yaml.js +0 -127
  379. package/src/generators/fromObjectSchema/endpointComplete/index.js +0 -101
  380. package/src/generators/fromObjectSchema/endpointComplete/update/handler/handler.js +0 -68
  381. package/src/generators/fromObjectSchema/endpointComplete/update/handler/template.ejs +0 -122
  382. package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/main.js +0 -54
  383. package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/template.ejs +0 -218
  384. package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/snsInSqs.js +0 -63
  385. package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/template.ejs +0 -44
  386. package/src/generators/fromObjectSchema/endpointComplete/update/sns-out/snsOut.js +0 -66
  387. package/src/generators/fromObjectSchema/endpointComplete/update/yaml/template.ejs +0 -16
  388. package/src/generators/fromObjectSchema/endpointComplete/update/yaml/yaml.js +0 -155
  389. package/src/generators/fromObjectSchema/findData/GetByStorage/getByDynamo.ejs +0 -58
  390. package/src/generators/fromObjectSchema/findData/findDataYaml/findDataYaml.js +0 -204
  391. package/src/generators/fromObjectSchema/findData/findDataYaml/template.ejs +0 -10
  392. package/src/generators/fromObjectSchema/findData/handler/handler.js +0 -52
  393. package/src/generators/fromObjectSchema/findData/handler/template.ejs +0 -135
  394. package/src/generators/fromObjectSchema/findData/index.js +0 -70
  395. package/src/generators/fromObjectSchema/findData/mainFunction/main.js +0 -320
  396. package/src/generators/fromObjectSchema/findData/mainFunction/template.ejs +0 -156
  397. package/src/generators/fromObjectSchema/index.js +0 -134
  398. package/src/generators/fromObjectSchema/processLogical/handler/handler.js +0 -51
  399. package/src/generators/fromObjectSchema/processLogical/index.js +0 -50
  400. package/src/generators/fromObjectSchema/processLogical/mainFunction/main.js +0 -49
  401. package/src/generators/fromObjectSchema/processLogical/yaml/template.ejs +0 -10
  402. package/src/generators/fromObjectSchema/processLogical/yaml/yaml.js +0 -200
  403. package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/dsqYaml.js +0 -51
  404. package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/template.ejs +0 -32
  405. package/src/generators/fromObjectSchema/processLogicalPagination/handler/dsq/dsq.js +0 -50
  406. package/src/generators/fromObjectSchema/processLogicalPagination/handler/sqs/sqs.js +0 -49
  407. package/src/generators/fromObjectSchema/processLogicalPagination/index.js +0 -62
  408. package/src/generators/fromObjectSchema/processLogicalPagination/mainFunction/main.js +0 -49
  409. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/dsq.js +0 -189
  410. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/template.ejs +0 -10
  411. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/sqs.js +0 -198
  412. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/template.ejs +0 -11
  413. package/src/generators/fromObjectSchema/rbac/dynamoDb/dynamoDb.js +0 -74
  414. package/src/generators/fromObjectSchema/rbac/index.js +0 -68
  415. package/src/generators/fromObjectSchema/rbac/lambda/handler/handler.js +0 -72
  416. package/src/generators/fromObjectSchema/rbac/lambda/handler/template.ejs +0 -52
  417. package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/main.js +0 -83
  418. package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/template.ejs +0 -111
  419. package/src/generators/fromObjectSchema/rbac/lambda/yaml/template.ejs +0 -6
  420. package/src/generators/fromObjectSchema/rbac/lambda/yaml/yaml.js +0 -109
  421. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/template.ejs +0 -29
  422. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/yaml.js +0 -201
  423. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/handler.js +0 -76
  424. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/template.ejs +0 -9
  425. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -150
  426. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -194
  427. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -138
  428. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -178
  429. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/main.js +0 -61
  430. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
  431. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
  432. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  433. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/template.ejs +0 -16
  434. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/yaml.js +0 -139
  435. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/sqs.js +0 -61
  436. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/template.ejs +0 -126
  437. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/main.js +0 -56
  438. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/snsInSqs.js +0 -64
  439. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/template.ejs +0 -43
  440. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/snsOut.js +0 -68
  441. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/template.ejs +0 -8
  442. package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/template.ejs +0 -29
  443. package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/yaml.js +0 -238
  444. package/src/generators/fromObjectSchema/relationship/create/action/handler/handler.js +0 -76
  445. package/src/generators/fromObjectSchema/relationship/create/action/handler/template.ejs +0 -9
  446. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/apiTemplate.ejs +0 -134
  447. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
  448. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/invTemplate.ejs +0 -120
  449. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
  450. package/src/generators/fromObjectSchema/relationship/create/action/mainFunction/main.js +0 -60
  451. package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsInSqs.js +0 -77
  452. package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsTemplate.ejs +0 -56
  453. package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/template.ejs +0 -16
  454. package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/yaml.js +0 -140
  455. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/request.json +0 -0
  456. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/sqs.js +0 -61
  457. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/template.ejs +0 -126
  458. package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/main.js +0 -56
  459. package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/request.json +0 -0
  460. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/request.json +0 -0
  461. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/snsInSqs.js +0 -63
  462. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/template.ejs +0 -43
  463. package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/request.json +0 -0
  464. package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/snsOut.js +0 -67
  465. package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/template.ejs +0 -29
  466. package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/yaml.js +0 -241
  467. package/src/generators/fromObjectSchema/relationship/delete/action/handler/handler.js +0 -76
  468. package/src/generators/fromObjectSchema/relationship/delete/action/handler/template.ejs +0 -9
  469. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -133
  470. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
  471. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/invTemplate.ejs +0 -118
  472. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -167
  473. package/src/generators/fromObjectSchema/relationship/delete/action/mainFunction/main.js +0 -60
  474. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsInSqs.js +0 -77
  475. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsTemplate.ejs +0 -56
  476. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  477. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/request.json +0 -0
  478. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/template.ejs +0 -16
  479. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/yaml.js +0 -138
  480. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/request.json +0 -0
  481. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/sqs.js +0 -61
  482. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/template.ejs +0 -126
  483. package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/main.js +0 -56
  484. package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/request.json +0 -0
  485. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/request.json +0 -0
  486. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/snsInSqs.js +0 -65
  487. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/template.ejs +0 -44
  488. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/request.json +0 -0
  489. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/snsOut.js +0 -69
  490. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/template.ejs +0 -8
  491. package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/template.ejs +0 -23
  492. package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/yaml.js +0 -235
  493. package/src/generators/fromObjectSchema/relationship/get/action/handler/handler.js +0 -76
  494. package/src/generators/fromObjectSchema/relationship/get/action/handler/template.ejs +0 -9
  495. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/apiTemplate.ejs +0 -134
  496. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -175
  497. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/invTemplate.ejs +0 -119
  498. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
  499. package/src/generators/fromObjectSchema/relationship/get/action/mainFunction/main.js +0 -59
  500. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsInSqs.js +0 -77
  501. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsTemplate.ejs +0 -56
  502. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  503. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/request.json +0 -0
  504. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/template.ejs +0 -16
  505. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/yaml.js +0 -139
  506. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/request.json +0 -0
  507. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/sqs.js +0 -62
  508. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/template.ejs +0 -127
  509. package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/main.js +0 -57
  510. package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/request.json +0 -0
  511. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/request.json +0 -0
  512. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/snsInSqs.js +0 -65
  513. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/template.ejs +0 -44
  514. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/request.json +0 -0
  515. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/snsOut.js +0 -70
  516. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/template.ejs +0 -8
  517. package/src/generators/fromObjectSchema/relationship/index.js +0 -164
  518. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/template.ejs +0 -29
  519. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/yaml.js +0 -204
  520. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/handler.js +0 -76
  521. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/template.ejs +0 -9
  522. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -152
  523. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -195
  524. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -140
  525. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -179
  526. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/main.js +0 -61
  527. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
  528. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
  529. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  530. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/template.ejs +0 -16
  531. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/yaml.js +0 -138
  532. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/sqs.js +0 -61
  533. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/template.ejs +0 -126
  534. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/main.js +0 -60
  535. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/snsInSqs.js +0 -65
  536. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/template.ejs +0 -43
  537. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/snsOut.js +0 -69
  538. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/template.ejs +0 -8
  539. package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/template.ejs +0 -29
  540. package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/yaml.js +0 -234
  541. package/src/generators/fromObjectSchema/relationship/update/action/handler/handler.js +0 -77
  542. package/src/generators/fromObjectSchema/relationship/update/action/handler/template.ejs +0 -9
  543. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/apiTemplate.ejs +0 -131
  544. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -173
  545. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/invTemplate.ejs +0 -117
  546. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -166
  547. package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/main.js +0 -62
  548. package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/request.json +0 -1
  549. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/request.json +0 -3
  550. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsInSqs.js +0 -85
  551. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsTemplate.ejs +0 -56
  552. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  553. package/src/generators/fromObjectSchema/relationship/update/action/sns-out/request.json +0 -3
  554. package/src/generators/fromObjectSchema/relationship/update/action/sns-out/snsOut.js +0 -69
  555. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/request.json +0 -3
  556. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/template.ejs +0 -17
  557. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/yaml.js +0 -139
  558. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/request.json +0 -0
  559. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/sqs.js +0 -61
  560. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/template.ejs +0 -128
  561. package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/main.js +0 -56
  562. package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/request.json +0 -1
  563. package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/request.json +0 -3
  564. package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/snsInSqs.js +0 -64
  565. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/request.json +0 -3
  566. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/snsOut.js +0 -59
  567. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/template.ejs +0 -8
  568. package/src/generators/fromObjectSchema/roleNameConfig/roleNameConfig.js +0 -77
  569. package/src/generators/fromObjectSchema/textTag/index.js +0 -58
  570. package/src/generators/fromObjectSchema/textTag/systemText/systemText.js +0 -148
  571. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/handler.js +0 -66
  572. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateApi.ejs +0 -84
  573. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateWebSocket.ejs +0 -66
  574. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/main.js +0 -58
  575. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/template.ejs +0 -18
  576. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/yaml.js +0 -91
  577. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/handler.js +0 -0
  578. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/template.ejs +0 -0
  579. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/main.js +0 -45
  580. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/template.ejs +0 -82
  581. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/template.ejs +0 -0
  582. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/yaml.js +0 -0
  583. package/src/generators/fromPlugIn/byConfig/handler/handler.js +0 -55
  584. package/src/generators/fromPlugIn/byConfig/handler/templateAwaitingStep.ejs +0 -105
  585. package/src/generators/fromPlugIn/byConfig/handler/templatePaginated.ejs +0 -137
  586. package/src/generators/fromPlugIn/byConfig/mainFunction/main.js +0 -54
  587. package/src/generators/fromPlugIn/byConfig/sns-sqs/queueNoTopic.ejs +0 -40
  588. package/src/generators/fromPlugIn/byConfig/sns-sqs/snsSqs.js +0 -56
  589. package/src/generators/fromPlugIn/byConfig/sns-sqs/snsTemplate.ejs +0 -55
  590. package/src/generators/fromPlugIn/byConfig/sns-sqs/sqsTemplate.ejs +0 -40
  591. package/src/generators/fromPlugIn/byConfig/yaml/template.ejs +0 -43
  592. package/src/generators/fromPlugIn/byConfig/yaml/yaml.js +0 -47
  593. package/src/generators/fromPlugIn/firstFlowStep/handler/handler.js +0 -58
  594. package/src/generators/fromPlugIn/firstFlowStep/handler/templateApi.ejs +0 -84
  595. package/src/generators/fromPlugIn/firstFlowStep/handler/templateDsq.ejs +0 -105
  596. package/src/generators/fromPlugIn/firstFlowStep/handler/templateInv.ejs +0 -53
  597. package/src/generators/fromPlugIn/firstFlowStep/mainFunction/main.js +0 -67
  598. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/dsqTemplate.ejs +0 -40
  599. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/queueNtopic.js +0 -54
  600. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/snsTemplate.ejs +0 -55
  601. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/sqsTemplate.ejs +0 -40
  602. package/src/generators/fromPlugIn/firstFlowStep/topicOut/topicOut.js +0 -48
  603. package/src/generators/fromPlugIn/firstFlowStep/yaml/template.ejs +0 -40
  604. package/src/generators/fromPlugIn/firstFlowStep/yaml/yaml.js +0 -47
  605. package/src/generators/fromPlugIn/index.js +0 -518
  606. package/src/generators/other/generateAuthYml/template.ejs +0 -18
  607. package/src/generators/other/generateAuthYml/yaml.js +0 -49
  608. package/src/generators/other/index.js +0 -41
  609. package/src/generators/resourceYamlComponent/dynamodb/defaultDynamoDbTable.js +0 -145
  610. package/src/generators/resourceYamlComponent/dynamodb/generateDynamoPerLink.js +0 -108
  611. package/src/generators/resourceYamlComponent/dynamodb/mainResourcePerObjectSchemaData.js +0 -166
  612. package/src/generators/resourceYamlComponent/dynamodb/template.ejs +0 -23
  613. package/src/generators/resourceYamlComponent/filterGenerateResource/filter.js +0 -125
  614. package/src/generators/resourceYamlComponent/index.js +0 -96
  615. package/src/generators/resourceYamlComponent/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -92
  616. package/src/generators/resourceYamlComponent/sns-in-sqs/request.json +0 -4
  617. package/src/generators/resourceYamlComponent/sns-in-sqs/snsAndSqsPerActionData.js +0 -86
  618. package/src/generators/resourceYamlComponent/sns-in-sqs/snsTemplate.ejs +0 -56
  619. package/src/generators/resourceYamlComponent/sns-in-sqs/sqsTemplate.ejs +0 -40
  620. package/src/generators/resourceYamlComponent/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -66
  621. package/src/generators/resourceYamlComponent/sns-out/request.json +0 -3
  622. package/src/generators/resourceYamlComponent/sns-out/snsOut.js +0 -80
  623. package/src/generators/resourceYamlComponent/sns-out/template.ejs +0 -10
  624. package/src/generators/roles/index.js +0 -31
  625. package/src/generators/roles/roleNameConfig/roleNameConfig.js +0 -181
  626. package/src/generators/roles/roleNameConfig/template.ejs +0 -14
  627. package/src/generators/roles/roleNameConfig/templateIntTesting.ejs +0 -31
  628. package/src/generators/roles/roleNameConfig/templateYaml.ejs +0 -10
  629. package/src/generators/roles/sharedResource/sharedResource.js +0 -103
  630. package/src/generators/roles/sharedResource/template.ejs +0 -33
  631. package/src/libs/Consts.js +0 -96
  632. package/src/libs/GenerateCodeLibs.js +0 -32
  633. package/src/libs/Libs.js +0 -585
  634. package/src/libs/Utils.js +0 -164
  635. package/src/libs/consts/functions.js +0 -96
  636. package/src/libs/consts/handlers.js +0 -30
  637. package/src/libs/consts/index.js +0 -6
  638. package/src/libs/consts/paths.js +0 -84
  639. package/src/libs/consts/resources.js +0 -48
  640. package/src/libs/consts/tags.js +0 -68
  641. package/src/libs/consts/topics.js +0 -67
  642. package/src/pipeline/fetchSchemas.js +0 -31
  643. package/src/pipeline/transformSchemas.js +0 -75
  644. package/src/pipeline/validateSources.js +0 -47
  645. package/src/pipeline/writeSources.js +0 -24
  646. package/src/sourceManager/CreateSource.js +0 -174
  647. /package/src/{generators/fromFlowSchema/events/generatedCode/index.js → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/.gitkeep} +0 -0
  648. /package/src/{generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationshipComplete_Main.ejs} +0 -0
  649. /package/src/{generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationship_Main.ejs} +0 -0
  650. /package/src/{generators/fromObjectSchema/relationship/create/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationshipComplete_Main.ejs} +0 -0
  651. /package/src/{generators/fromObjectSchema/relationship/create/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationship_Main.ejs} +0 -0
  652. /package/src/{generators/fromObjectSchema/relationship/delete/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationshipComplete_Main.ejs} +0 -0
  653. /package/src/{generators/fromObjectSchema/relationship/delete/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationship_Main.ejs} +0 -0
  654. /package/src/{generators/fromObjectSchema/relationship/get/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationshipComplete_Main.ejs} +0 -0
  655. /package/src/{generators/fromObjectSchema/relationship/get/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationship_Main.ejs} +0 -0
  656. /package/src/{generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationshipComplete_Main.ejs} +0 -0
  657. /package/src/{generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationship_Main.ejs} +0 -0
  658. /package/src/{generators/fromObjectSchema/relationship/update/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationshipComplete_Main.ejs} +0 -0
  659. /package/src/{generators/fromObjectSchema/relationship/update/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationship_Main.ejs} +0 -0
  660. /package/src/{generators/fromObjectSchema/relationship/create/complete/functionYaml/request.json → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/.gitkeep} +0 -0
  661. /package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ConfirmReserved_Main.ejs} +0 -0
  662. /package/src/{generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreateObject_Main.ejs} +0 -0
  663. /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ProcessS3File_Main.ejs} +0 -0
  664. /package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ReservedLimit_Main.ejs} +0 -0
  665. /package/src/{generators/fromFlowSchema/statusTypes/statusField/sns/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusFieldSns_Yaml.ejs} +0 -0
  666. /package/src/{generators/fromFlowSchema/statusTypes/statusField/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_Main.ejs} +0 -0
  667. /package/src/{generators/fromPlugIn/byConfig/mainFunction/templateAwaitingStep.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_ByConfig_Awaiting_Main.ejs} +0 -0
  668. /package/src/{generators/fromPlugIn/byConfig/mainFunction/templatePaginated.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_ByConfig_Paginated_Main.ejs} +0 -0
  669. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_PlugIn_Main.ejs} +0 -0
  670. /package/src/{generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_RecievePlugIn_Main.ejs} +0 -0
  671. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig/awaitingSteps.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/templateAwaitingStep.ejs} +0 -0
  672. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns}/templateSendPlugin.ejs +0 -0
  673. /package/src/{generators/fromFlowSchema/events/ownTopic/sns-in/sqsTemplate.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_Yaml.ejs} +0 -0
  674. /package/src/{generators/fromFlowSchema/webSocket/webSocket/dynamoDb/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketDynamoDb_Yaml.ejs} +0 -0
  675. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/CheckTriggerCache_HdrSqs.ejs} +0 -0
  676. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/ProcessTriggerCache_HdrSqs.ejs} +0 -0
  677. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/ProcessTriggerCache_Main.ejs} +0 -0
  678. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_HdrDsq.ejs} +0 -0
  679. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_HdrSqs.ejs} +0 -0
  680. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_Main.ejs} +0 -0
  681. /package/src/{generators/fromObjectSchema/processLogicalPagination/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrDsq.ejs} +0 -0
  682. /package/src/{generators/fromFlowSchema/register/complete/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_HdrSqs.ejs} +0 -0
  683. /package/src/{generators/fromFlowSchema/register/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_Main.ejs} +0 -0
  684. /package/src/{generators/fromFlowSchema/register/wbs/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_Main.ejs} +0 -0
  685. /package/src/{generators/fromObjectSchema/endpoint/resourceBeforeLogicalTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceBeforeLogicalYaml.ejs} +0 -0
@@ -0,0 +1,131 @@
1
+ import path from 'path';
2
+ import fs from 'fs/promises';
3
+ import { fileURLToPath } from 'url';
4
+ import ejs from 'ejs';
5
+ import { processFunctionName, processMainFileName, upperFirst } from '../_shared/shared/flowNaming.js';
6
+
7
+ const RELATIONSHIP_ACTIONS = [
8
+ 'CreateRelationship',
9
+ 'UpdateRelationship',
10
+ 'DeleteRelationship',
11
+ 'GetRelationship',
12
+ 'ChangeRelationship',
13
+ 'MoveRelationship'
14
+ ];
15
+
16
+ const __filename = fileURLToPath(import.meta.url);
17
+ const __dirname = path.dirname(__filename);
18
+
19
+ export async function generateRelationshipFlows(allSchemas, options) {
20
+ console.log(' [RelationshipFlowGenerator] Generating Custom Relationship Flows...');
21
+ const baseOutputDir = path.join(options.outputPath, 'app', 'src', 'generatedCode');
22
+ // Local templates/ folder (4-way shared handlers via symlink + relationship/ specific templates)
23
+ const templateDir = path.join(__dirname, 'templates');
24
+
25
+ // Read standard handler templates for reuse
26
+ const templates = {
27
+ sqs: await fs.readFile(path.join(templateDir, '..', '..', '_shared', 'handlers', 'FlowHandler_HdrSqs.ejs'), 'utf-8'),
28
+ api: await fs.readFile(path.join(templateDir, '..', '..', '_shared', 'handlers', 'FlowHandler_HdrApi.ejs'), 'utf-8'),
29
+ inv: await fs.readFile(path.join(templateDir, '..', '..', '_shared', 'handlers', 'FlowHandler_HdrInv.ejs'), 'utf-8')
30
+ };
31
+
32
+ let generatedCount = 0;
33
+
34
+ if (!allSchemas.relationships || allSchemas.relationships.length === 0) return;
35
+
36
+ for (const flowTag of RELATIONSHIP_ACTIONS) {
37
+ const upperFlowTag = upperFirst(flowTag);
38
+ const processFunction = processFunctionName(flowTag);
39
+
40
+ const flowOutputDir = path.join(baseOutputDir, 'FlowRelationshipEndpoints', upperFlowTag, 'source');
41
+ await fs.mkdir(flowOutputDir, { recursive: true });
42
+
43
+ // 1. Generate Action Step (In) Main Function
44
+ const actionFileName = processMainFileName(flowTag);
45
+ const actionTemplatePath = path.join(templateDir, 'relationship', `${actionFileName}.ejs`);
46
+
47
+ try {
48
+ const actionTemplateStr = await fs.readFile(actionTemplatePath, 'utf-8');
49
+ const actionContent = ejs.render(actionTemplateStr, {
50
+ functionName: processFunction,
51
+ upperFunctionName: processFunction
52
+ });
53
+ await fs.writeFile(path.join(flowOutputDir, `${actionFileName}.js`), actionContent, 'utf-8');
54
+ generatedCount++;
55
+ } catch (err) {
56
+ console.warn(` [RelationshipFlowGenerator] Warning: Action template not found for ${flowTag}. Skipping.`);
57
+ }
58
+
59
+ // 2. Generate Action Step Handlers (based on fixed event ['ownTopic'])
60
+ const events = ['ownTopic'];
61
+ for (const event of events) {
62
+ let handlerFileName, handlerContent, handlerFunctionName;
63
+ if (event === 'ownTopic' || event === 'extTopic') {
64
+ handlerFunctionName = `${processFunction}_HdrSqs`;
65
+ handlerContent = ejs.render(templates.sqs, {
66
+ flowTag: flowTag,
67
+ flowStepName: '',
68
+ mainFileName: actionFileName,
69
+ functionName: processFunction,
70
+ queueName: `${processFunction}HdrSqs`
71
+ });
72
+ await fs.writeFile(path.join(flowOutputDir, `${handlerFunctionName}.js`), handlerContent, 'utf-8');
73
+ generatedCount++;
74
+ } else if (event === 'lambdaSyncApi') {
75
+ handlerFunctionName = `${processFunction}_HdrApi`;
76
+ handlerContent = ejs.render(templates.api, {
77
+ flowTag: flowTag,
78
+ flowStepName: '',
79
+ mainFileName: actionFileName,
80
+ functionName: processFunction
81
+ });
82
+ await fs.writeFile(path.join(flowOutputDir, `${handlerFunctionName}.js`), handlerContent, 'utf-8');
83
+ generatedCount++;
84
+ } else if (event === 'lambdaSyncInv') {
85
+ handlerFunctionName = `${processFunction}_HdrInv`;
86
+ handlerContent = ejs.render(templates.inv, {
87
+ flowTag: flowTag,
88
+ flowStepName: '',
89
+ mainFileName: actionFileName,
90
+ functionName: processFunction
91
+ });
92
+ await fs.writeFile(path.join(flowOutputDir, `${handlerFunctionName}.js`), handlerContent, 'utf-8');
93
+ generatedCount++;
94
+ }
95
+ }
96
+
97
+ // 3. Generate Complete Step (Always generated for Relationship flows)
98
+ if (true) {
99
+ const completeFunction = `${processFunction}Complete`;
100
+ const completeFileName = `${completeFunction}_Main`;
101
+ const completeTemplatePath = path.join(templateDir, 'relationship', `${completeFileName}.ejs`);
102
+
103
+ try {
104
+ const completeTemplateStr = await fs.readFile(completeTemplatePath, 'utf-8');
105
+ const completeContent = ejs.render(completeTemplateStr, {
106
+ functionName: completeFunction,
107
+ upperFunctionName: completeFunction
108
+ });
109
+ await fs.writeFile(path.join(flowOutputDir, `${completeFileName}.js`), completeContent, 'utf-8');
110
+ generatedCount++;
111
+
112
+ // Complete Handler is always SQS typically in Izara
113
+ const completeHandlerName = `${completeFunction}_HdrSqs`;
114
+ const completeHandlerContent = ejs.render(templates.sqs, {
115
+ flowTag: flowTag,
116
+ flowStepName: 'Complete',
117
+ mainFileName: completeFileName,
118
+ functionName: completeFunction,
119
+ queueName: `${completeFunction}HdrSqs`
120
+ });
121
+ await fs.writeFile(path.join(flowOutputDir, `${completeHandlerName}.js`), completeHandlerContent, 'utf-8');
122
+ generatedCount++;
123
+
124
+ } catch (err) {
125
+ console.warn(` [RelationshipFlowGenerator] Warning: Complete template not found for ${flowTag}. Skipping.`);
126
+ }
127
+ }
128
+ }
129
+
130
+ console.log(` [RelationshipFlowGenerator] Generated ${generatedCount} files for Relationship Flows.`);
131
+ }
@@ -0,0 +1,116 @@
1
+ import path from 'path';
2
+ import fs from 'fs/promises';
3
+ import { fileURLToPath } from 'url';
4
+ import ejs from 'ejs';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = path.dirname(__filename);
8
+
9
+ function upperCase(str) {
10
+ if (!str) return str;
11
+ return str.charAt(0).toUpperCase() + str.slice(1);
12
+ }
13
+
14
+ function lowerCase(str) {
15
+ if (!str) return str;
16
+ return str.charAt(0).toLowerCase() + str.slice(1);
17
+ }
18
+
19
+ function shortNameHandler(handlerType) {
20
+ // Basic mapping for short names
21
+ const map = {
22
+ 'HdrSqs': 'Sqs',
23
+ 'HdrApi': 'Api',
24
+ 'HdrWbs': 'Wbs',
25
+ 'HdrDsq': 'Dsq'
26
+ };
27
+ return map[handlerType] || handlerType;
28
+ }
29
+
30
+ export async function generateStatusField(flowSchema, appPath, outputBaseDir) {
31
+ const flowTag = flowSchema.flowTag;
32
+ const upperFlowTag = upperCase(flowTag);
33
+ const functionName = 'CompleteStatusField' + upperFlowTag;
34
+ const handlerType = upperCase('hdrSqs'); // default in old system
35
+ const queueName = functionName + handlerType;
36
+
37
+ // Load templates
38
+ const templatesDir = path.join(__dirname, 'templates', 'statusField');
39
+ const mainTpl = await fs.readFile(path.join(templatesDir, 'CompleteStatusField_Main.ejs'), 'utf-8');
40
+ const handlerTpl = await fs.readFile(path.join(templatesDir, 'CompleteStatusField_HdrSqs.ejs'), 'utf-8');
41
+ const yamlTpl = await fs.readFile(path.join(__dirname, '..', '_shared', 'yaml', 'SharedFunctionSqs_Yaml.ejs'), 'utf-8');
42
+ const snsTpl = await fs.readFile(path.join(templatesDir, 'CompleteStatusFieldSns_Yaml.ejs'), 'utf-8');
43
+
44
+ // Shared variables
45
+ const upperFunctionName = upperCase(functionName);
46
+ const upperHandlerType = upperCase(handlerType);
47
+ const upperQueueName = upperCase(queueName);
48
+ const roleName = upperFlowTag;
49
+ const upperRoleName = upperCase(roleName);
50
+ const functionNameConfig = upperFunctionName + upperCase(shortNameHandler(handlerType));
51
+ const upperFunctionNameConfig = upperCase(functionNameConfig);
52
+ const resourceLocation = `src/generatedCode/FlowSchemas/${upperFlowTag}/source/`;
53
+ const handlerPath = path.join(resourceLocation, `${functionName}_${upperHandlerType}.main`);
54
+ const handlerPathUpperFunctionName = path.join(resourceLocation, `${upperFunctionName}_${upperHandlerType}.main`);
55
+
56
+ // Placeholder for IAM permissions (simulating old defaultIamRolePerAction)
57
+ const additionalResourcePermission = [];
58
+
59
+ // 1. Output Main
60
+ const flowOutputDir = path.join(outputBaseDir, 'app', 'src', 'generatedCode', 'FlowSchemas', upperFlowTag, 'source');
61
+ await fs.mkdir(flowOutputDir, { recursive: true });
62
+
63
+ const mainContent = ejs.render(mainTpl, {
64
+ functionName,
65
+ flowType: flowTag,
66
+ upperFunctionName
67
+ });
68
+ await fs.writeFile(path.join(flowOutputDir, `${functionName}_Main.js`), mainContent, 'utf-8');
69
+
70
+ // 2. Output Handler
71
+ const handlerContent = ejs.render(handlerTpl, {
72
+ functionName,
73
+ handlerType,
74
+ queueName,
75
+ upperFunctionName,
76
+ upperHandlerType,
77
+ upperQueueName
78
+ });
79
+ await fs.writeFile(path.join(flowOutputDir, `${functionName}_${handlerType}.js`), handlerContent, 'utf-8');
80
+
81
+ // 3. Output Yaml
82
+ const slsYamlDir = path.join(outputBaseDir, 'app', 'sls_yaml', 'generatedCode', 'source');
83
+ await fs.mkdir(slsYamlDir, { recursive: true });
84
+
85
+ const yamlContent = ejs.render(yamlTpl, {
86
+ resourceLocation,
87
+ functionName,
88
+ handlerType,
89
+ additionalResourcePermission,
90
+ functionNameConfig,
91
+ roleName,
92
+ queueName,
93
+ upperFunctionName,
94
+ upperHandlerType,
95
+ upperFunctionNameConfig,
96
+ upperRoleName,
97
+ upperQueueName,
98
+ handlerPath,
99
+ handlerPathUpperFunctionName
100
+ });
101
+ // Append to flow-schema.yml (creating if not exist)
102
+ const flowSchemaYamlPath = path.join(slsYamlDir, 'flow-schema.yml');
103
+ await fs.appendFile(flowSchemaYamlPath, '\n' + yamlContent, 'utf-8');
104
+
105
+ // 4. Output SNS
106
+ const snsResourceDir = path.join(outputBaseDir, 'resource', 'sls_yaml', 'generatedCode', 'source');
107
+ await fs.mkdir(snsResourceDir, { recursive: true });
108
+
109
+ const snsContent = ejs.render(snsTpl, {
110
+ queueName: 'CompleteStatusField' + upperFlowTag
111
+ });
112
+ const snsYamlPath = path.join(snsResourceDir, 'generated-sns-in-sqs.yml');
113
+ await fs.appendFile(snsYamlPath, '\n' + snsContent, 'utf-8');
114
+
115
+ console.log(` [StatusFieldGenerator] Generated statusField files for flow: ${flowTag}`);
116
+ }
@@ -0,0 +1,124 @@
1
+ import path from 'path';
2
+ import fs from 'fs/promises';
3
+ import { fileURLToPath } from 'url';
4
+ import ejs from 'ejs';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = path.dirname(__filename);
8
+
9
+ function upperCase(str) {
10
+ if (!str) return str;
11
+ return str.charAt(0).toUpperCase() + str.slice(1);
12
+ }
13
+
14
+ function shortNameHandler(handlerType) {
15
+ const map = {
16
+ 'HdrSqs': 'Sqs',
17
+ 'HdrApi': 'Api',
18
+ 'HdrWbs': 'Wbs',
19
+ 'HdrDsq': 'Dsq'
20
+ };
21
+ return map[handlerType] || handlerType;
22
+ }
23
+
24
+ export async function generateWebSocket(allLocalFlowSchemas, appPath, outputBaseDir) {
25
+ const hasOwnTopic = allLocalFlowSchemas.some(flow => flow.event && flow.event.includes('ownTopic'));
26
+ if (!hasOwnTopic) {
27
+ console.log(' [WebSocketGenerator] No flows use ownTopic. Skipping WebSocket generation.');
28
+ return;
29
+ }
30
+
31
+ console.log(' [WebSocketGenerator] Generated WebSocket files with ProcessWebSocketMain_Main convention.');
32
+ const templatesDir = path.join(__dirname, 'templates', 'webSocket');
33
+ const wsDir = path.join(outputBaseDir, 'app', 'src', 'generatedCode', 'SystemFlowSchemas', 'WebSocketMain', 'source');
34
+ await fs.mkdir(wsDir, { recursive: true });
35
+
36
+ const slsYamlDir = path.join(outputBaseDir, 'app', 'sls_yaml', 'generatedCode', 'source');
37
+ await fs.mkdir(slsYamlDir, { recursive: true });
38
+
39
+ const resourceYamlDir = path.join(outputBaseDir, 'resource', 'sls_yaml', 'generatedCode', 'source');
40
+ await fs.mkdir(resourceYamlDir, { recursive: true });
41
+
42
+ // Helper to render and write
43
+ async function renderAndWrite(tplName, outPath, data) {
44
+ const tpl = await fs.readFile(path.join(templatesDir, tplName), 'utf-8');
45
+ const content = ejs.render(tpl, data);
46
+ await fs.writeFile(outPath, content, 'utf-8');
47
+ }
48
+
49
+ async function renderAndAppend(tplName, outPath, data) {
50
+ const tpl = await fs.readFile(path.join(templatesDir, tplName), 'utf-8');
51
+ const content = ejs.render(tpl, data);
52
+ await fs.appendFile(outPath, '\n' + content, 'utf-8');
53
+ }
54
+
55
+ // 1. DynamoDB Tables
56
+ const webSocketTaskTable = {
57
+ tableName: 'WebSocketTask',
58
+ resourceName: 'WebSocketTask',
59
+ ttl: true,
60
+ ttlAttributeName: 'expirationTime',
61
+ attributes: [
62
+ { keyType: 'partitionKey', AttributeName: 'taskKey', AttributeType: 'S' },
63
+ { keyType: 'sortKey', AttributeName: 'connectionId', AttributeType: 'S' }
64
+ ]
65
+ };
66
+ const userUploadRecordsTable = {
67
+ tableName: 'UserUploadRecords',
68
+ resourceName: 'UserUploadRecords',
69
+ attributes: [
70
+ { keyType: 'partitionKey', AttributeName: 'connectionId', AttributeType: 'S' }
71
+ ]
72
+ };
73
+
74
+ await renderAndAppend('WebSocketDynamoDb_Yaml.ejs', path.join(resourceYamlDir, 'generated-dynamoDB-table.yml'), webSocketTaskTable);
75
+ await renderAndAppend('WebSocketDynamoDb_Yaml.ejs', path.join(resourceYamlDir, 'generated-dynamoDB-table.yml'), userUploadRecordsTable);
76
+
77
+ // 2. WebSocketConnect
78
+ const wsConnectName = 'WebSocketConnect';
79
+ await renderAndWrite('WebSocketConnect_Main.ejs', path.join(wsDir, `${wsConnectName}.js`), {});
80
+
81
+ await renderAndAppend('WebSocketConnect_Yaml.ejs', path.join(slsYamlDir, 'flow-schema.yml'), {
82
+ functionName: wsConnectName,
83
+ handlerFilePath: `src/generatedCode/SystemFlowSchemas/WebSocketMain/source/${wsConnectName}`,
84
+ roleName: 'WebSocketMain',
85
+ upperFunctionName: upperCase(wsConnectName)
86
+ });
87
+
88
+ // 3. ProcessWebSocketMain
89
+ const processFunctionName = 'ProcessWebSocketMain';
90
+ const processHandlerType = 'HdrSqs';
91
+ const queueName = processFunctionName + shortNameHandler(processHandlerType);
92
+
93
+ const processData = {
94
+ functionName: processFunctionName,
95
+ handlerType: processHandlerType,
96
+ queueName: queueName,
97
+ handlerFilePath: `src/generatedCode/SystemFlowSchemas/WebSocketMain/source/${upperCase(processFunctionName)}_${upperCase(processHandlerType)}`,
98
+ roleName: 'WebSocketMain',
99
+ upperFunctionName: upperCase(processFunctionName),
100
+ upperHandlerType: upperCase(processHandlerType),
101
+ upperQueueName: upperCase(queueName),
102
+ functionNameConfig: upperCase(processFunctionName) + upperCase(shortNameHandler(processHandlerType))
103
+ };
104
+
105
+ await renderAndWrite('ProcessWebSocket_Main.ejs', path.join(wsDir, `${processFunctionName}_Main.js`), processData);
106
+ await renderAndWrite('ProcessWebSocket_HdrSqs.ejs', path.join(wsDir, `${processFunctionName}_${processHandlerType}.js`), processData);
107
+ await renderAndAppend('ProcessWebSocketFlow_Yaml.ejs', path.join(slsYamlDir, 'flow-schema.yml'), processData);
108
+
109
+ // 4. SQS and SNS Subscriptions
110
+ await renderAndAppend('ProcessWebSocket_Yaml.ejs', path.join(resourceYamlDir, 'generated-sns-in-sqs.yml'), processData);
111
+
112
+ for (const flowSchema of allLocalFlowSchemas) {
113
+ if (flowSchema.outputTopic) {
114
+ const topicOut = upperCase(flowSchema.flowTag);
115
+ await renderAndAppend('ProcessWebSocketSub_Yaml.ejs', path.join(resourceYamlDir, 'generated-sns-in-sqs.yml'), {
116
+ subscribeTo: topicOut,
117
+ queueName: queueName,
118
+ upperQueueName: upperCase(queueName)
119
+ });
120
+ }
121
+ }
122
+
123
+ console.log(` [WebSocketGenerator] Generated WebSocket files with ProcessWebSocketMain_Main convention.`);
124
+ }
@@ -27,7 +27,7 @@ const { createFlowTypeConcat } = utils;
27
27
  import { webSocket } from '@izara_project/izara-core-library-external-request';
28
28
  const { postToConnection } = webSocket;
29
29
 
30
- import <%- functionName %> from './<%- functionName %>_Main.js';
30
+ import <%- upperCaseFlowTag %> from './<%- upperCaseFlowTag %>_Main.js';
31
31
 
32
32
  export const main = middleware.wrap(async (event, context) => {
33
33
 
@@ -44,7 +44,7 @@ export const main = middleware.wrap(async (event, context) => {
44
44
  case '$default':
45
45
  console.log('Received unknown route:', route);
46
46
  break
47
- case '<%- route %>':
47
+ case '<%- flowTag %>':
48
48
  console.log("event in route webSocket", event);
49
49
  let eventParams = JSON.parse(event.body)
50
50
 
@@ -55,7 +55,7 @@ export const main = middleware.wrap(async (event, context) => {
55
55
  let flowSchema = await getObjectSchema.getFlowSchemaS3WithCache(
56
56
  event._izContext,
57
57
  {
58
- flowTag: "<%- route %>",
58
+ flowTag: "<%- flowTag %>",
59
59
  serviceTag: process.env.iz_serviceTag
60
60
  }
61
61
  )
@@ -64,7 +64,7 @@ export const main = middleware.wrap(async (event, context) => {
64
64
  await dynamodbSharedLib.putItem(event._izContext,
65
65
  await dynamodbSharedLib.tableName(event._izContext, "WebSocketTask"),
66
66
  {
67
- taskKey: `${createFlowTypeConcat(event._izContext, { flowTag: "<%- route %>", serviceTag: process.env.iz_serviceTag })}${identifiers}`,
67
+ taskKey: `${createFlowTypeConcat(event._izContext, { flowTag: "<%- flowTag %>", serviceTag: process.env.iz_serviceTag })}${identifiers}`,
68
68
  connectionId: connectionId,
69
69
  ttl: 600
70
70
  }
@@ -75,14 +75,14 @@ export const main = middleware.wrap(async (event, context) => {
75
75
  event._izContext,
76
76
  await dynamodbSharedLib.tableName(event._izContext, "WebSocketTask"),
77
77
  {
78
- taskKey: `${createFlowTypeConcat(event._izContext, { flowTag: "<%- route %>", serviceTag: process.env.iz_serviceTag })}${correlationId}`,
78
+ taskKey: `${createFlowTypeConcat(event._izContext, { flowTag: "<%- flowTag %>", serviceTag: process.env.iz_serviceTag })}${correlationId}`,
79
79
  connectionId: connectionId,
80
80
  }
81
81
  )
82
82
  }
83
83
 
84
84
  let callingFlow = eventParams?.callingFlow ? eventParams.callingFlow : {};
85
- await <%- functionName %>(
85
+ await <%- upperCaseFlowTag %>(
86
86
  event._izContext,
87
87
  eventParams,
88
88
  //(<additionalParams>)
@@ -36,13 +36,6 @@ import { utils } from '@izara_project/izara-core-library-service-schemas';
36
36
  const { createFlowTypeConcat } = utils;
37
37
  //(</optionalImport>)
38
38
 
39
- <% if (statusType === "triggerCache") { -%>
40
- import { triggeredCacheSharedLibV2 } from '@izara_project/izara-core-library-trigger-cache';
41
- <% } else if (statusType === "statusField") { -%>
42
- import statusFieldSharedLib from '@izara_project/izara-core-library-status-field';
43
- <% } else if (statusType === "storedCache") { -%>
44
- import storedCacheSharedLib from '@izara_project/izara-core-library-stored-cache';
45
- <% } -%>
46
39
 
47
40
  /**
48
41
  *
@@ -59,7 +52,7 @@ import storedCacheSharedLib from '@izara_project/izara-core-library-stored-cache
59
52
  * @returns {object} description of return value
60
53
  */
61
54
 
62
- export default async function <%- functionName %> (
55
+ export default async function Process<%- upperCaseFlowTag %>(
63
56
  _izContext,
64
57
  requestParams,
65
58
  callingFlowConfig = {},
@@ -68,23 +61,36 @@ export default async function <%- functionName %> (
68
61
  ) {
69
62
 
70
63
  try {
71
- _izContext.logger.debug("<%- functionName %> _izContext", _izContext)
72
- _izContext.logger.debug("<%- functionName %> requestParams", requestParams)
73
- _izContext.logger.debug("<%- functionName %> callingFlowConfig", callingFlowConfig)
74
-
75
- <% if (statusType === "statusField") { %>
76
- <%- include(statusFieldTemplate, { tableName:tableName, flowTag: flowTag }) %>
77
- <% } else if (statusType === "storedCache") { %>
78
- <%- include(storedCacheTemplate, { tableName:tableName, flowSchemaComplete:flowSchemaComplete, flowTag }) %>
79
- <% } else if (statusType === "triggerCache") { %>
80
- <%- include(triggerCacheTemplate, {
81
- tableName: tableName,
82
- flowSchemaComplete: flowSchemaComplete,
83
- triggerType: triggerType,
84
- flowTag,
85
- queueName
86
- }) %>
87
- <% } %>
64
+ _izContext.logger.debug("Process<%- upperCaseFlowTag %> _izContext", _izContext)
65
+ _izContext.logger.debug("Process<%- upperCaseFlowTag %> requestParams", requestParams)
66
+ _izContext.logger.debug("Process<%- upperCaseFlowTag %> callingFlowConfig", callingFlowConfig)
67
+
68
+ <% if (typeof flow !== 'undefined' && flow.isRbac) { %>
69
+ const { checkRbacPermission } = await import('@izara_project/izara-authorization');
70
+
71
+ //(<additionalParams_parameterGroups>)
72
+ const parameterGroups = {};
73
+ //(</additionalParams_parameterGroups>)
74
+
75
+ const resultPermissionCheck = await checkRbacPermission(_izContext, { flowTag: '<%- flow.flowTag %>', serviceTag: '<%- flow.serviceTag || (flow.objType ? flow.objType.serviceTag : "") %>' }, parameterGroups);
76
+
77
+ _izContext.logger.debug('[lib:auth:checkRbacPermission] resultPermissionCheck:', resultPermissionCheck);
78
+
79
+ if (resultPermissionCheck.permission === false) {
80
+
81
+ //(<messageOutPutPermissionCheckFailed>)
82
+ const message = {
83
+
84
+ }
85
+ //(</messageOutPutPermissionCheckFailed>)
86
+
87
+ return await sns.publishAsync(_izContext, {
88
+ Message: JSON.stringify(message),
89
+ TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, '<%- flow.flowTag %>_Out')
90
+ });
91
+ }
92
+
93
+ <% } %>
88
94
 
89
95
  //(<endpointHook>)
90
96
  //(</endpointHook>)
@@ -0,0 +1,38 @@
1
+ //(<optionalRequire>)
2
+ //(</optionalRequire>)
3
+
4
+ //(<helperFunctions>)
5
+ //(</helperFunctions>)
6
+
7
+ /**
8
+ * GENERATED MAIN LOGIC: <%= flowTag %> (Entry Point / In Step)
9
+ */
10
+ export default async function <%= flowTag %>(
11
+ _izContext,
12
+ requestParams,
13
+ //(<additionalParams>)
14
+ //(</additionalParams>)
15
+ callingFlowConfig = {}
16
+ ) {
17
+ _izContext?.logger?.debug("[<%= flowTag %>] _izContext", _izContext);
18
+ _izContext?.logger?.debug("[<%= flowTag %>] requestParams", requestParams);
19
+ _izContext?.logger?.debug("[<%= flowTag %>] callingFlowConfig", callingFlowConfig);
20
+
21
+ try {
22
+ //(<hookCode>)
23
+ // TODO: Implement the initial validation, parsing, or preparation for this Flow
24
+ //(</hookCode>)
25
+
26
+ return {
27
+ success: true,
28
+ processedData: requestParams
29
+ };
30
+ } catch (err) {
31
+ _izContext?.logger?.error('error <%= flowTag %> ActionEndpoint:', err);
32
+
33
+ //(<errorHandling>)
34
+ //(</errorHandling>)
35
+
36
+ throw err;
37
+ }
38
+ }
@@ -48,7 +48,7 @@ const { postToConnection } = webSocket;
48
48
  * @returns {object} description of return value
49
49
  */
50
50
 
51
- export default async function <%- functionName %> (
51
+ export default async function <%- upperCaseFlowTag %>(
52
52
  _izContext,
53
53
  requestParams,
54
54
  //(<additionalParams>)
@@ -57,9 +57,9 @@ export default async function <%- functionName %> (
57
57
  ) {
58
58
 
59
59
  try {
60
- _izContext.logger.debug("<%- functionName %> _izContext", _izContext)
61
- _izContext.logger.debug("<%- functionName %> requestParams", requestParams)
62
- _izContext.logger.debug("<%- functionName %> callingFlowConfig", callingFlowConfig)
60
+ _izContext.logger.debug("<%- upperCaseFlowTag %> _izContext", _izContext)
61
+ _izContext.logger.debug("<%- upperCaseFlowTag %> requestParams", requestParams)
62
+ _izContext.logger.debug("<%- upperCaseFlowTag %> callingFlowConfig", callingFlowConfig)
63
63
 
64
64
  let flowSchema = await getObjectSchema.getFlowSchemaS3WithCache(_izContext, {
65
65
  flowTag: "<%- flowTag %>",
@@ -79,29 +79,29 @@ export default async function <%- functionName %> (
79
79
  message: {
80
80
  error: `flowTag not found ${requestParams.action}`
81
81
  }
82
- },connectionId)
82
+ }, connectionId)
83
83
  throw new NoRetryError(`flowTag not found ${requestParams.action}`);
84
84
  }
85
85
 
86
- let messageObject = requestParams
86
+ let messageObject = requestParams
87
87
 
88
- // create callingFlow
89
- messageObject = callingFlowSharedLib.addCallingFlowToSnsRequestMessageObject(
90
- messageObject,
91
- callingFlowSharedLib.addParentCallingFlowConfig(
92
- callingFlowConfig,
93
- callingFlowSharedLib.createCallingFlowConfig(
94
- await lambdaSharedLib.lambdaFunctionName(_izContext, "WebSocketComplete"), {}
95
- )
88
+ // create callingFlow
89
+ messageObject = callingFlowSharedLib.addCallingFlowToSnsRequestMessageObject(
90
+ messageObject,
91
+ callingFlowSharedLib.addParentCallingFlowConfig(
92
+ callingFlowConfig,
93
+ callingFlowSharedLib.createCallingFlowConfig(
94
+ await lambdaSharedLib.lambdaFunctionName(_izContext, "WebSocketComplete"), {}
96
95
  )
97
96
  )
97
+ )
98
98
 
99
- let sendMessageToEndpoint = {
100
- Message: JSON.stringify(messageObject),
101
- TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, "<%- topicArn %>")
102
- }
103
- _izContext.logger.debug("sendMessageToEndpoint", sendMessageToEndpoint);
104
- await sns.publishAsync(_izContext, sendMessageToEndpoint);
99
+ let sendMessageToEndpoint = {
100
+ Message: JSON.stringify(messageObject),
101
+ TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, "<%- upperCaseFlowTag %>_In")
102
+ }
103
+ _izContext.logger.debug("sendMessageToEndpoint", sendMessageToEndpoint);
104
+ await sns.publishAsync(_izContext, sendMessageToEndpoint);
105
105
 
106
106
  } catch (err) {
107
107
  _izContext.logger.error('error WebSocketInvoke: ', err)
@@ -22,7 +22,7 @@ import { recordHandlerSharedLib } from "@izara_project/izara-core-library-record
22
22
  import Logger from '@izara_project/izara-core-library-logger';
23
23
  import callingFlowSharedLib from "@izara_project/izara-core-library-calling-flow";
24
24
 
25
- import confirmNewReserved from './ConfirmNewReserved_Main.js'
25
+ import <%= functionName %> from './<%= functionName %>_Main.js'
26
26
 
27
27
  // validate event properties in body.Message of sqs event
28
28
  middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
@@ -79,7 +79,7 @@ export const main = middleware.wrap(async (event, context) => {
79
79
  // validate message (and MessageAttributes)
80
80
  await recordHandlerSharedLib.validateRecord(
81
81
  record, // one record will send to mainFunction
82
- "ConfirmNewReservedHdrSqs", // queue name that need to retry or send to dlq
82
+ "<%= functionName %><%= handlerType %>", // queue name that need to retry or send to dlq
83
83
  perRecordsValidatorSchema, // schema for record.Message
84
84
  // messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
85
85
  );
@@ -96,8 +96,8 @@ export const main = middleware.wrap(async (event, context) => {
96
96
  // call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
97
97
  let recordPromise = recordHandlerSharedLib.recordHandler(
98
98
  record, // one record will send to mainFunction
99
- confirmNewReserved, // mainFunction that need to invoke.
100
- "ConfirmNewReservedHdrSqs", // queue name that need to retry or send to dlq
99
+ <%= functionName %>, // mainFunction that need to invoke.
100
+ "<%= functionName %><%= handlerType %>", // queue name that need to retry or send to dlq
101
101
  passOnProperties, // all parameters that mainFunction needed.
102
102
  );
103
103
  record._izContext.logger.debug('after recordPromise in handler');
@@ -117,7 +117,7 @@ export const main = middleware.wrap(async (event, context) => {
117
117
  Logger.debug('after Promise.all(recordPromises) in handler');
118
118
 
119
119
  } catch (err) {
120
- Logger.error('Unhandled Error, ConfirmNewReservedHdrSqs: ', err);
120
+ Logger.error('Unhandled Error, <%= functionName %><%= handlerType %>: ', err);
121
121
  throw (err);
122
122
  }
123
123
  });
@@ -25,7 +25,7 @@ const { postToConnection } = webSocket;
25
25
  import { utils } from "@izara_project/izara-core-library-service-schemas";
26
26
  const { createFlowTypeConcat } = utils
27
27
 
28
- import createObject from './CreateObjectS3_Main.js';
28
+ import <%= functionName %> from './<%= functionName %>_Main.js';
29
29
 
30
30
  export const main = middleware.wrap(async (event, context) => {
31
31
 
@@ -56,7 +56,7 @@ export const main = middleware.wrap(async (event, context) => {
56
56
  )
57
57
 
58
58
  let callingFlow = eventParams?.callingFlow ? eventParams.callingFlow : {};
59
- await createObject(
59
+ await <%= functionName %>(
60
60
  event._izContext,
61
61
  eventParams,
62
62
  callingFlowSharedLib.addCallingFlowToPassOnProperties(callingFlow)