@izara_project/izara-core-generate-service-code 1.0.51 → 1.0.53

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 (690) hide show
  1. package/index.js +11 -17
  2. package/package.json +9 -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/FunctionYamlGenerator.js +230 -0
  8. package/src/codeGenerators/app/sls_yaml/ProcessLogicalYamlGenerator.js +35 -0
  9. package/src/codeGenerators/app/sls_yaml/RoleNameConfigGenerator.js +83 -0
  10. package/src/codeGenerators/app/sls_yaml/SharedResourceYamlGenerator.js +471 -0
  11. package/src/codeGenerators/app/sls_yaml/__tests__/SharedResourceYamlGenerator.test.js +176 -0
  12. package/src/codeGenerators/app/sls_yaml/_policy/PolicyEmitter.js +45 -0
  13. package/src/codeGenerators/app/sls_yaml/_policy/PolicyRegistry.js +94 -0
  14. package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyEmitter.test.js +55 -0
  15. package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyRegistry.test.js +48 -0
  16. package/src/codeGenerators/app/sls_yaml/_policy/templates/ManagedPolicy_Yaml.ejs +22 -0
  17. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Api.ejs +21 -0
  18. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_EventBridge.ejs +14 -0
  19. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Inv.ejs +6 -0
  20. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Sqs.ejs +11 -0
  21. package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Wbs.ejs +11 -0
  22. package/src/codeGenerators/app/sls_yaml/templates/ProcessLogical_Yaml.ejs +32 -0
  23. package/src/{generators/fromObjectSchema/roleNameConfig/templateYaml.ejs → codeGenerators/app/sls_yaml/templates/RoleNameConfig_Yaml.ejs} +1 -1
  24. package/src/codeGenerators/app/sls_yaml/templates/SharedResource_Yaml.ejs +35 -0
  25. package/src/codeGenerators/app/src/generatedCode/FindData/FindDataGenerator.js +272 -0
  26. package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_HdrSqs.ejs +87 -0
  27. package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_Main.ejs +108 -0
  28. package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_Yaml.ejs +10 -0
  29. package/src/codeGenerators/app/src/generatedCode/FindData/templates/GetByStorage/getByDynamo.ejs +32 -0
  30. package/src/{generators/fromObjectSchema/findData → codeGenerators/app/src/generatedCode/FindData/templates}/GetByStorage/getByGraph.ejs +5 -5
  31. package/src/{generators/fromObjectSchema/endpoint/main/create/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/CreateEndpoint_Main.ejs} +6 -6
  32. package/src/{generators/fromObjectSchema/endpoint/main/delete/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/DeleteEndpoint_Main.ejs} +5 -5
  33. package/src/{generators/fromObjectSchema/endpoint/main/get/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/GetEndpoint_Main.ejs} +1 -1
  34. package/src/{generators/fromObjectSchema/endpoint/main/update/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/UpdateEndpoint_Main.ejs} +5 -5
  35. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/RbacFlowGenerator.js +73 -0
  36. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateRolePermissions.ejs +135 -0
  37. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateTargetRole.ejs +131 -0
  38. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateUserRole.ejs +150 -0
  39. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteRolePermissions.ejs +132 -0
  40. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteTargetRole.ejs +132 -0
  41. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteUserFromRole.ejs +150 -0
  42. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListRolePermissions.ejs +120 -0
  43. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListTargetRole.ejs +122 -0
  44. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListUserInRoles.ejs +117 -0
  45. package/src/codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/RelationshipFlowGenerator.js +127 -0
  46. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/StatusFieldGenerator.js +116 -0
  47. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/WebSocketGenerator.js +124 -0
  48. 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
  49. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/FlowHandler_HdrS3.ejs +66 -0
  50. package/src/{generators/fromFlowSchema/events/s3/flowSchemaMainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/flowSchemaMainFunction/data.js} +1 -3
  51. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/index.js +21 -22
  52. package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/functionYaml/data.js} +9 -20
  53. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/functionYaml/template.ejs +17 -0
  54. package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/handler.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/handler/data.js} +1 -3
  55. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/confirmReserved/handler/template.ejs +5 -5
  56. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/mainFunction/template.ejs +129 -0
  57. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/confirmReserved/queue/template.ejs +5 -2
  58. package/src/{generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObject/functionYaml/data.js} +8 -24
  59. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObject/functionYaml/template.ejs +7 -3
  60. package/src/{generators/fromFlowSchema/events/s3/upload/createObject/handler/handler.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObject/handler/data.js} +1 -3
  61. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObject/handler/template.ejs +2 -2
  62. package/src/{generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObject/mainFunction/data.js} +1 -2
  63. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObject/mainFunction/template.ejs +131 -0
  64. package/src/{generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObjectComplete/functionYaml/data.js} +9 -26
  65. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObjectComplete/functionYaml/template.ejs +8 -4
  66. package/src/{generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/handler.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObjectComplete/handler/data.js} +1 -3
  67. package/src/{generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObjectComplete/mainFunction/data.js} +1 -2
  68. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObjectComplete/sns-sqs/template.ejs +5 -2
  69. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/functionYaml/data.js} +10 -28
  70. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +18 -0
  71. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/handler.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/handler/data.js} +2 -4
  72. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/preSignUrl/createPreSignUrl/handler/template.ejs +5 -5
  73. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/mainFunction/data.js} +2 -3
  74. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/mainFunction/template.ejs +262 -0
  75. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/queue.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/createPreSignUrl/queue/data.js} +1 -1
  76. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/preSignUrl/createPreSignUrl/queue/template.ejs +5 -2
  77. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/functionYaml/data.js} +10 -28
  78. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +14 -0
  79. package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/handler.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/handler/data.js} +1 -3
  80. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/preSignUrl/reservedLimit/handler/template.ejs +5 -5
  81. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +173 -0
  82. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/preSignUrl/reservedLimit/sqs/template.ejs +6 -3
  83. package/src/{generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/yaml.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/processFile/functionYml/HdrS3/data.js} +8 -24
  84. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/processFile/functionYml/HdrS3/template.ejs +7 -3
  85. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/processFile/handler/handlerS3/template.ejs +3 -3
  86. package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/processFile/mainFunction/template.ejs +66 -0
  87. package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/processFile/queue/s3Template.ejs +5 -2
  88. package/src/{generators/fromFlowSchema/events/s3/upload/relate/sns-out/snsOut.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/relate/sns-out/data.js} +1 -1
  89. package/src/{generators/fromFlowSchema/statusTypes/statusField/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_HdrSqs.ejs} +0 -2
  90. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketFlow_Yaml.ejs} +5 -5
  91. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/sqs/templateSub.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketSub_Yaml.ejs} +1 -1
  92. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_HdrSqs.ejs} +1 -20
  93. package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_Main.ejs} +1 -21
  94. package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Main.ejs} +1 -21
  95. package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Yaml.ejs} +1 -1
  96. package/src/codeGenerators/app/src/generatedCode/Flow/SystemFlowDescriptorBuilder.js +151 -0
  97. package/src/{generators/fromObjectSchema/endpoint/main/beforeLogical/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/endpoint/FlowEndpointBeforeLogical_Main.ejs} +11 -16
  98. package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/endpoint/FlowEndpoint_HdrWbs.ejs} +6 -6
  99. package/src/{generators/fromFlowSchema/flowSchemaMainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/endpoint/FlowEndpoint_Main.ejs} +31 -25
  100. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/_shared/endpoint/FlowEntryPoint_Main.ejs +38 -0
  101. package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/endpoint/FlowMain_Wbs.ejs} +20 -20
  102. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/_shared/handlers/FlowHandler_HdrApi.ejs +51 -0
  103. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/_shared/handlers/FlowHandler_HdrInv.ejs +45 -0
  104. package/src/{generators/fromPlugIn/firstFlowStep/handler/templateSqs.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/handlers/FlowHandler_HdrSqs.ejs} +30 -9
  105. package/src/{generators/fromObjectSchema/endpointComplete/create/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/FlowEndpointComplete_Main.ejs} +26 -24
  106. package/src/{generators/fromFlowSchema/flowStep/noPlugInHook/templateMain.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/FlowStep_Main.ejs} +13 -12
  107. package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/CheckTriggerCache_Main.ejs} +0 -2
  108. package/src/{generators/fromObjectSchema/relationship/create/action/sns-in-sqs/sqsTemplate.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/TriggerCacheQueue_Yaml.ejs} +6 -10
  109. package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/yaml/SharedFunctionSqs_Yaml.ejs} +1 -5
  110. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/BaseSqsHandler.js +67 -0
  111. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/eventBridge.js +25 -0
  112. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/extTopic.js +6 -0
  113. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/lambdaSyncApi.js +52 -0
  114. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/lambdaSyncInv.js +52 -0
  115. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/ownTopic.js +42 -0
  116. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/registry.js +15 -0
  117. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3.js +56 -0
  118. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3Components/ConfirmAfterUploadS3Generator.js +48 -0
  119. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3Components/CreateObjectGenerator.js +52 -0
  120. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3Components/CreatePreSignUrlGenerator.js +50 -0
  121. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3Components/ProcessAfterUploadS3Generator.js +49 -0
  122. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/events/s3Components/ReservedLimitGenerator.js +49 -0
  123. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/eventTypes.js +23 -0
  124. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowClassifier.js +49 -0
  125. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowEntryPointBase.js +102 -0
  126. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowMainFunctionBase.js +160 -0
  127. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowNaming.js +21 -0
  128. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowSelection.js +20 -0
  129. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowStepBase.js +229 -0
  130. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowStepNormalizer.js +28 -0
  131. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/flowValidator.js +144 -0
  132. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/registry.js +7 -0
  133. package/src/codeGenerators/app/src/generatedCode/Flow/_internal/shared/triggerCacheBase.js +183 -0
  134. package/src/codeGenerators/app/src/generatedCode/ProcessLogical/ProcessLogicalGenerator.js +26 -0
  135. package/src/{generators/fromObjectSchema/processLogicalPagination/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrDsq.js} +1 -1
  136. package/src/{generators/fromObjectSchema/processLogicalPagination/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrSqs.js} +1 -1
  137. package/src/{generators/fromObjectSchema/processLogicalPagination/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_Main.js} +10 -10
  138. package/src/{generators/fromObjectSchema/processLogical/handler/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_HdrSqs.js} +1 -1
  139. package/src/{generators/fromObjectSchema/processLogical/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_Main.js} +16 -16
  140. package/src/codeGenerators/app/src/generatedCode/SystemFlowSchemas/RegisterGenerator.js +166 -0
  141. package/src/{generators/fromFlowSchema/register/wbs/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_HdrWbs.ejs} +1 -5
  142. package/src/codeGenerators/app/src/generatedCode/libs/ConstsGenerator.js +20 -0
  143. package/src/codeGenerators/app/src/generatedCode/libs/GenerateCodeLibsGenerator.js +20 -0
  144. package/src/codeGenerators/app/src/generatedCode/libs/templates/Consts.js +448 -0
  145. package/src/{generators/fromFlowSchema/shared/template.ejs → codeGenerators/app/src/generatedCode/libs/templates/GenerateCodeLibs.js} +38 -29
  146. package/src/codeGenerators/resource/sls_yaml/DynamoDBGenerator.js +96 -0
  147. package/src/codeGenerators/resource/sls_yaml/FlowOutGenerator.js +64 -0
  148. package/src/codeGenerators/resource/sls_yaml/FlowResourceYamlGenerator.js +172 -0
  149. package/src/codeGenerators/resource/sls_yaml/templates/DynamoDBTable_Yaml.ejs +20 -0
  150. package/src/{generators/fromObjectSchema/relationship/create/complete/sns-out/template.ejs → codeGenerators/resource/sls_yaml/templates/FlowOut_Yaml.ejs} +3 -5
  151. package/src/codeGenerators/resource/sls_yaml/templates/SystemDynamoDB_Yaml.ejs +138 -0
  152. package/src/{generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/template.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceSqsYaml.ejs} +6 -10
  153. package/src/{generators/fromObjectSchema/endpoint/resourceTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceYaml.ejs} +9 -9
  154. package/src/core/validate.js +161 -0
  155. package/src/generate.js +130 -0
  156. package/src/generateCode.js +212 -49
  157. package/src/generateIntTest.js +166 -0
  158. package/src/generateResourceIntTest.js +102 -0
  159. package/src/generateResources/IntTest/consts.js +36 -0
  160. package/src/generateResources/IntTest/generateResources/generateResources.js +11 -14
  161. package/src/generateResources/IntTest/generateTests/events/events.js +1 -4
  162. package/src/generateResources/IntTest/generateTests/generateTemplate.js +15 -16
  163. package/src/generateResources/IntTest/generateTests/pathIntTest/pathIntTest.js +6 -2
  164. package/src/generateResources/IntTest/generateTests/tests/tests.js +2 -6
  165. package/src/generateResources/IntTest/libs/libs.js +5 -5
  166. package/src/generateSchema.js +63 -0
  167. package/src/parsers/flowSchemaParser.js +106 -0
  168. package/src/parsers/objectSchemaParser.js +39 -0
  169. package/src/parsers/relationshipSchemaParser.js +51 -0
  170. package/src/schemaGenerators/app/src/schemas/FlowSchemas/FlowSchemaGenerator.js +151 -0
  171. package/src/schemaGenerators/app/src/schemas/FlowSchemas/RbacFlowSchemaGenerator.js +84 -0
  172. package/src/schemaGenerators/app/src/schemas/FlowSchemas/RelationshipFlowSchemaGenerator.js +89 -0
  173. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicFlowSchemaTemplate.ejs +39 -0
  174. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicRbacFlowSchemaTemplate.ejs +19 -0
  175. package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/RelationshipFlowSchemaTemplate.ejs +32 -0
  176. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/AttributeTreeSchemaGenerator.js +124 -0
  177. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/PropertyValueSchemaGenerator.js +119 -0
  178. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeManagerSchemaTemplate.ejs +14 -0
  179. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeStandardSchemaTemplate.ejs +13 -0
  180. package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicPropertyValueSchemaTemplate.ejs +15 -0
  181. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/AttributeTreeRelationshipSchemaGenerator.js +149 -0
  182. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/PropertyValueRelationshipSchemaGenerator.js +143 -0
  183. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicAttributeTreeRelationshipSchemaTemplate.ejs +7 -0
  184. package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicPropertyValueRelationshipSchemaTemplate.ejs +7 -0
  185. package/src/schemaGenerators/app/src/schemas/SystemTextSchemas/SystemTextGenerator.js +102 -0
  186. package/src/{generators/fromObjectSchema/textTag/systemText/template.ejs → schemaGenerators/app/src/schemas/SystemTextSchemas/templates/SystemText_Template.ejs} +1 -1
  187. package/REFACTOR_PLAN.md +0 -172
  188. package/fix_array.js +0 -11
  189. package/fix_imports.js +0 -41
  190. package/fix_upper.js +0 -38
  191. package/src/IntTestConfig.js +0 -23
  192. package/src/generateResources/IntTest/upload/uploadIntTest.js +0 -96
  193. package/src/generateResources.js +0 -123
  194. package/src/generateTests.js +0 -139
  195. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/functionNameConfig.js +0 -182
  196. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/template.ejs +0 -14
  197. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateIntTesting.ejs +0 -31
  198. package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateYaml.ejs +0 -10
  199. package/src/generators/fromExternalService/externalServiceComponent/index.js +0 -69
  200. package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/lambdaRole.js +0 -252
  201. package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/template.ejs +0 -58
  202. package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/snsTopicSubscriptions.js +0 -155
  203. package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/template.ejs +0 -33
  204. package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/tableNameConfig.js +0 -90
  205. package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/template.ejs +0 -43
  206. package/src/generators/fromExternalService/index.js +0 -65
  207. package/src/generators/fromFlowSchema/env/template.ejs +0 -5
  208. package/src/generators/fromFlowSchema/env/yaml.js +0 -73
  209. package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/template.ejs +0 -14
  210. package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/yaml.js +0 -168
  211. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/inv.js +0 -74
  212. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/request.json +0 -7
  213. package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/template.ejs +0 -53
  214. package/src/generators/fromFlowSchema/events/eventBridge/index.js +0 -16
  215. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/main.js +0 -77
  216. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/request.json +0 -5
  217. package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/template.ejs +0 -59
  218. package/src/generators/fromFlowSchema/events/extTopic/index.js +0 -18
  219. package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/template.ejs +0 -13
  220. package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/yaml.js +0 -159
  221. package/src/generators/fromFlowSchema/events/extTopic/process/handler/handler.js +0 -67
  222. package/src/generators/fromFlowSchema/events/extTopic/process/handler/template.ejs +0 -101
  223. package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/snsInSqs.js +0 -79
  224. package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/template.ejs +0 -44
  225. package/src/generators/fromFlowSchema/events/extTopic/sns-out/snsOut.js +0 -76
  226. package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/template.ejs +0 -19
  227. package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/yaml.js +0 -88
  228. package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/handler.js +0 -68
  229. package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/template.ejs +0 -84
  230. package/src/generators/fromFlowSchema/events/lambdaSyncApi/index.js +0 -14
  231. package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/template.ejs +0 -6
  232. package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/yaml.js +0 -75
  233. package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/handler.js +0 -64
  234. package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/template.ejs +0 -52
  235. package/src/generators/fromFlowSchema/events/lambdaSyncInv/index.js +0 -14
  236. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/template.ejs +0 -10
  237. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/yaml.js +0 -178
  238. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/DsqHandlerTemplate.ejs +0 -105
  239. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/SqsHandlerTemplate.ejs +0 -87
  240. package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/handler.js +0 -93
  241. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/template.ejs +0 -11
  242. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/yaml.js +0 -127
  243. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/handler/handler.js +0 -65
  244. package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/main.js +0 -64
  245. package/src/generators/fromFlowSchema/events/ownTopic/index.js +0 -32
  246. package/src/generators/fromFlowSchema/events/ownTopic/sns-in/snsIn.js +0 -108
  247. package/src/generators/fromFlowSchema/events/ownTopic/sns-out/snsOut.js +0 -77
  248. package/src/generators/fromFlowSchema/events/registry.js +0 -6
  249. package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/template.ejs +0 -13
  250. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +0 -14
  251. package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -10
  252. package/src/generators/fromFlowSchema/flowSchemaMainFunction/main.js +0 -123
  253. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -30
  254. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -26
  255. package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -44
  256. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateDsq.ejs +0 -151
  257. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateSqs.ejs +0 -89
  258. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateMain.ejs +0 -93
  259. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateResource.ejs +0 -91
  260. package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateYaml.ejs +0 -47
  261. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateHandler.ejs +0 -95
  262. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateMain.ejs +0 -95
  263. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateResource.ejs +0 -56
  264. package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateYaml.ejs +0 -23
  265. package/src/generators/fromFlowSchema/flowStep/flowStep.js +0 -515
  266. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateHandler.ejs +0 -95
  267. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateResource.ejs +0 -52
  268. package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateYaml.ejs +0 -23
  269. package/src/generators/fromFlowSchema/index.js +0 -213
  270. package/src/generators/fromFlowSchema/register/complete/functionYaml/template.ejs +0 -23
  271. package/src/generators/fromFlowSchema/register/complete/functionYaml/yaml.js +0 -127
  272. package/src/generators/fromFlowSchema/register/complete/handler/handler.js +0 -61
  273. package/src/generators/fromFlowSchema/register/complete/mainFunction/main.js +0 -53
  274. package/src/generators/fromFlowSchema/register/dynamoDB/register.js +0 -74
  275. package/src/generators/fromFlowSchema/register/index.js +0 -50
  276. package/src/generators/fromFlowSchema/register/sns-in/snsIn.js +0 -59
  277. package/src/generators/fromFlowSchema/register/sns-in/template.ejs +0 -42
  278. package/src/generators/fromFlowSchema/register/subscriptionOutAll/subscriptionOutAll.js +0 -84
  279. package/src/generators/fromFlowSchema/register/subscriptionOutAll/template.ejs +0 -10
  280. package/src/generators/fromFlowSchema/register/wbs/functionYaml/template.ejs +0 -11
  281. package/src/generators/fromFlowSchema/register/wbs/functionYaml/yaml.js +0 -114
  282. package/src/generators/fromFlowSchema/register/wbs/handler/handler.js +0 -63
  283. package/src/generators/fromFlowSchema/register/wbs/mainFunction/main.js +0 -54
  284. package/src/generators/fromFlowSchema/shared/wsCodeLibs.js +0 -49
  285. package/src/generators/fromFlowSchema/statusTypes/registry.js +0 -2
  286. package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/template.ejs +0 -18
  287. package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/yaml.js +0 -169
  288. package/src/generators/fromFlowSchema/statusTypes/statusField/handler/handler.js +0 -68
  289. package/src/generators/fromFlowSchema/statusTypes/statusField/index.js +0 -22
  290. package/src/generators/fromFlowSchema/statusTypes/statusField/mainFunction/main.js +0 -67
  291. package/src/generators/fromFlowSchema/statusTypes/statusField/sns/sns.js +0 -66
  292. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/template.ejs +0 -18
  293. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/yaml.js +0 -154
  294. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/handler.js +0 -73
  295. package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/main.js +0 -75
  296. package/src/generators/fromFlowSchema/statusTypes/triggerCache/index.js +0 -41
  297. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/template.ejs +0 -18
  298. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/yaml.js +0 -159
  299. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/handler.js +0 -74
  300. package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/main.js +0 -68
  301. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/dsq.js +0 -148
  302. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/template.ejs +0 -17
  303. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/sqs.js +0 -148
  304. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/dsq.js +0 -69
  305. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/sqs.js +0 -69
  306. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/main.js +0 -72
  307. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/queue.js +0 -97
  308. package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/template.ejs +0 -46
  309. package/src/generators/fromFlowSchema/webSocket/index.js +0 -39
  310. package/src/generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/yaml.js +0 -89
  311. package/src/generators/fromFlowSchema/webSocket/webSocket/connect/handler/handler.js +0 -55
  312. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/WebSocketTaskData.js +0 -74
  313. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/ttlDynamoTemplate.ejs +0 -29
  314. package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/userUploadRecords.js +0 -61
  315. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/yaml.js +0 -144
  316. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/handler/handler.js +0 -61
  317. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/main.js +0 -53
  318. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/sqs.js +0 -108
  319. package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/template.ejs +0 -40
  320. package/src/generators/fromObjectSchema/endpoint/handler/api.js +0 -55
  321. package/src/generators/fromObjectSchema/endpoint/handler/apiTemplate.ejs +0 -81
  322. package/src/generators/fromObjectSchema/endpoint/handler/beforeLogical.js +0 -56
  323. package/src/generators/fromObjectSchema/endpoint/handler/beforeLogicalTemplate.ejs +0 -123
  324. package/src/generators/fromObjectSchema/endpoint/handler/dsq.js +0 -55
  325. package/src/generators/fromObjectSchema/endpoint/handler/dsqTemplate.ejs +0 -126
  326. package/src/generators/fromObjectSchema/endpoint/handler/inv.js +0 -55
  327. package/src/generators/fromObjectSchema/endpoint/handler/invTemplate.ejs +0 -63
  328. package/src/generators/fromObjectSchema/endpoint/handler/sqs.js +0 -55
  329. package/src/generators/fromObjectSchema/endpoint/handler/sqsTemplate.ejs +0 -124
  330. package/src/generators/fromObjectSchema/endpoint/index.js +0 -290
  331. package/src/generators/fromObjectSchema/endpoint/main/beforeLogical/beforeLogical.js +0 -54
  332. package/src/generators/fromObjectSchema/endpoint/main/create/create.js +0 -52
  333. package/src/generators/fromObjectSchema/endpoint/main/delete/delete.js +0 -49
  334. package/src/generators/fromObjectSchema/endpoint/main/get/get.js +0 -49
  335. package/src/generators/fromObjectSchema/endpoint/main/update/update.js +0 -50
  336. package/src/generators/fromObjectSchema/endpoint/resource.js +0 -72
  337. package/src/generators/fromObjectSchema/endpoint/yaml.js +0 -308
  338. package/src/generators/fromObjectSchema/endpoint/yamlTemplate.ejs +0 -28
  339. package/src/generators/fromObjectSchema/endpointComplete/create/handler/handler.js +0 -63
  340. package/src/generators/fromObjectSchema/endpointComplete/create/handler/template.ejs +0 -126
  341. package/src/generators/fromObjectSchema/endpointComplete/create/mainFunction/main.js +0 -54
  342. package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/snsInSqs.js +0 -63
  343. package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/template.ejs +0 -44
  344. package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/snsOut.js +0 -72
  345. package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/template.ejs +0 -8
  346. package/src/generators/fromObjectSchema/endpointComplete/create/yaml/template.ejs +0 -17
  347. package/src/generators/fromObjectSchema/endpointComplete/create/yaml/yaml.js +0 -152
  348. package/src/generators/fromObjectSchema/endpointComplete/delete/handler/handler.js +0 -68
  349. package/src/generators/fromObjectSchema/endpointComplete/delete/handler/template.ejs +0 -122
  350. package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/main.js +0 -55
  351. package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/template.ejs +0 -87
  352. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/snsInSqs.js +0 -64
  353. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/template.ejs +0 -44
  354. package/src/generators/fromObjectSchema/endpointComplete/delete/sns-out/snsOut.js +0 -69
  355. package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/template.ejs +0 -16
  356. package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/yaml.js +0 -124
  357. package/src/generators/fromObjectSchema/endpointComplete/get/handler/handler.js +0 -68
  358. package/src/generators/fromObjectSchema/endpointComplete/get/handler/template.ejs +0 -122
  359. package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/main.js +0 -54
  360. package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/template.ejs +0 -132
  361. package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/snsInSqs.js +0 -63
  362. package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/template.ejs +0 -44
  363. package/src/generators/fromObjectSchema/endpointComplete/get/sns-out/snsOut.js +0 -69
  364. package/src/generators/fromObjectSchema/endpointComplete/get/yaml/template.ejs +0 -17
  365. package/src/generators/fromObjectSchema/endpointComplete/get/yaml/yaml.js +0 -127
  366. package/src/generators/fromObjectSchema/endpointComplete/index.js +0 -101
  367. package/src/generators/fromObjectSchema/endpointComplete/update/handler/handler.js +0 -68
  368. package/src/generators/fromObjectSchema/endpointComplete/update/handler/template.ejs +0 -122
  369. package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/main.js +0 -54
  370. package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/template.ejs +0 -218
  371. package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/snsInSqs.js +0 -63
  372. package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/template.ejs +0 -44
  373. package/src/generators/fromObjectSchema/endpointComplete/update/sns-out/snsOut.js +0 -66
  374. package/src/generators/fromObjectSchema/endpointComplete/update/yaml/template.ejs +0 -16
  375. package/src/generators/fromObjectSchema/endpointComplete/update/yaml/yaml.js +0 -155
  376. package/src/generators/fromObjectSchema/findData/GetByStorage/getByDynamo.ejs +0 -58
  377. package/src/generators/fromObjectSchema/findData/findDataYaml/findDataYaml.js +0 -204
  378. package/src/generators/fromObjectSchema/findData/findDataYaml/template.ejs +0 -10
  379. package/src/generators/fromObjectSchema/findData/handler/handler.js +0 -52
  380. package/src/generators/fromObjectSchema/findData/handler/template.ejs +0 -135
  381. package/src/generators/fromObjectSchema/findData/index.js +0 -70
  382. package/src/generators/fromObjectSchema/findData/mainFunction/main.js +0 -320
  383. package/src/generators/fromObjectSchema/findData/mainFunction/template.ejs +0 -156
  384. package/src/generators/fromObjectSchema/index.js +0 -134
  385. package/src/generators/fromObjectSchema/processLogical/handler/handler.js +0 -51
  386. package/src/generators/fromObjectSchema/processLogical/index.js +0 -50
  387. package/src/generators/fromObjectSchema/processLogical/mainFunction/main.js +0 -49
  388. package/src/generators/fromObjectSchema/processLogical/yaml/template.ejs +0 -10
  389. package/src/generators/fromObjectSchema/processLogical/yaml/yaml.js +0 -200
  390. package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/dsqYaml.js +0 -51
  391. package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/template.ejs +0 -32
  392. package/src/generators/fromObjectSchema/processLogicalPagination/handler/dsq/dsq.js +0 -50
  393. package/src/generators/fromObjectSchema/processLogicalPagination/handler/sqs/sqs.js +0 -49
  394. package/src/generators/fromObjectSchema/processLogicalPagination/index.js +0 -62
  395. package/src/generators/fromObjectSchema/processLogicalPagination/mainFunction/main.js +0 -49
  396. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/dsq.js +0 -189
  397. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/template.ejs +0 -10
  398. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/sqs.js +0 -198
  399. package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/template.ejs +0 -11
  400. package/src/generators/fromObjectSchema/rbac/dynamoDb/dynamoDb.js +0 -74
  401. package/src/generators/fromObjectSchema/rbac/index.js +0 -68
  402. package/src/generators/fromObjectSchema/rbac/lambda/handler/handler.js +0 -72
  403. package/src/generators/fromObjectSchema/rbac/lambda/handler/template.ejs +0 -52
  404. package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/main.js +0 -83
  405. package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/template.ejs +0 -111
  406. package/src/generators/fromObjectSchema/rbac/lambda/yaml/template.ejs +0 -6
  407. package/src/generators/fromObjectSchema/rbac/lambda/yaml/yaml.js +0 -109
  408. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/template.ejs +0 -29
  409. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/yaml.js +0 -201
  410. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/handler.js +0 -76
  411. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/template.ejs +0 -9
  412. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -150
  413. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -194
  414. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -138
  415. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -178
  416. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/main.js +0 -61
  417. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
  418. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
  419. package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  420. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/template.ejs +0 -16
  421. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/yaml.js +0 -139
  422. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/sqs.js +0 -61
  423. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/template.ejs +0 -126
  424. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/main.js +0 -56
  425. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/snsInSqs.js +0 -64
  426. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/template.ejs +0 -43
  427. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/snsOut.js +0 -68
  428. package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/template.ejs +0 -8
  429. package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/template.ejs +0 -29
  430. package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/yaml.js +0 -238
  431. package/src/generators/fromObjectSchema/relationship/create/action/handler/handler.js +0 -76
  432. package/src/generators/fromObjectSchema/relationship/create/action/handler/template.ejs +0 -9
  433. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/apiTemplate.ejs +0 -134
  434. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
  435. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/invTemplate.ejs +0 -120
  436. package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
  437. package/src/generators/fromObjectSchema/relationship/create/action/mainFunction/main.js +0 -60
  438. package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsInSqs.js +0 -77
  439. package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsTemplate.ejs +0 -56
  440. package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/template.ejs +0 -16
  441. package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/yaml.js +0 -140
  442. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/request.json +0 -0
  443. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/sqs.js +0 -61
  444. package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/template.ejs +0 -126
  445. package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/main.js +0 -56
  446. package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/request.json +0 -0
  447. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/request.json +0 -0
  448. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/snsInSqs.js +0 -63
  449. package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/template.ejs +0 -43
  450. package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/request.json +0 -0
  451. package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/snsOut.js +0 -67
  452. package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/template.ejs +0 -29
  453. package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/yaml.js +0 -241
  454. package/src/generators/fromObjectSchema/relationship/delete/action/handler/handler.js +0 -76
  455. package/src/generators/fromObjectSchema/relationship/delete/action/handler/template.ejs +0 -9
  456. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -133
  457. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
  458. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/invTemplate.ejs +0 -118
  459. package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -167
  460. package/src/generators/fromObjectSchema/relationship/delete/action/mainFunction/main.js +0 -60
  461. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsInSqs.js +0 -77
  462. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsTemplate.ejs +0 -56
  463. package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  464. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/request.json +0 -0
  465. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/template.ejs +0 -16
  466. package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/yaml.js +0 -138
  467. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/request.json +0 -0
  468. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/sqs.js +0 -61
  469. package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/template.ejs +0 -126
  470. package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/main.js +0 -56
  471. package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/request.json +0 -0
  472. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/request.json +0 -0
  473. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/snsInSqs.js +0 -65
  474. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/template.ejs +0 -44
  475. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/request.json +0 -0
  476. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/snsOut.js +0 -69
  477. package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/template.ejs +0 -8
  478. package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/template.ejs +0 -23
  479. package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/yaml.js +0 -235
  480. package/src/generators/fromObjectSchema/relationship/get/action/handler/handler.js +0 -76
  481. package/src/generators/fromObjectSchema/relationship/get/action/handler/template.ejs +0 -9
  482. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/apiTemplate.ejs +0 -134
  483. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -175
  484. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/invTemplate.ejs +0 -119
  485. package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
  486. package/src/generators/fromObjectSchema/relationship/get/action/mainFunction/main.js +0 -59
  487. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsInSqs.js +0 -77
  488. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsTemplate.ejs +0 -56
  489. package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  490. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/request.json +0 -0
  491. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/template.ejs +0 -16
  492. package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/yaml.js +0 -139
  493. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/request.json +0 -0
  494. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/sqs.js +0 -62
  495. package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/template.ejs +0 -127
  496. package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/main.js +0 -57
  497. package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/request.json +0 -0
  498. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/request.json +0 -0
  499. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/snsInSqs.js +0 -65
  500. package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/template.ejs +0 -44
  501. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/request.json +0 -0
  502. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/snsOut.js +0 -70
  503. package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/template.ejs +0 -8
  504. package/src/generators/fromObjectSchema/relationship/index.js +0 -164
  505. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/template.ejs +0 -29
  506. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/yaml.js +0 -204
  507. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/handler.js +0 -76
  508. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/template.ejs +0 -9
  509. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -152
  510. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -195
  511. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -140
  512. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -179
  513. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/main.js +0 -61
  514. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
  515. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
  516. package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  517. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/template.ejs +0 -16
  518. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/yaml.js +0 -138
  519. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/sqs.js +0 -61
  520. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/template.ejs +0 -126
  521. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/main.js +0 -60
  522. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/snsInSqs.js +0 -65
  523. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/template.ejs +0 -43
  524. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/snsOut.js +0 -69
  525. package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/template.ejs +0 -8
  526. package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/template.ejs +0 -29
  527. package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/yaml.js +0 -234
  528. package/src/generators/fromObjectSchema/relationship/update/action/handler/handler.js +0 -77
  529. package/src/generators/fromObjectSchema/relationship/update/action/handler/template.ejs +0 -9
  530. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/apiTemplate.ejs +0 -131
  531. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -173
  532. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/invTemplate.ejs +0 -117
  533. package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -166
  534. package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/main.js +0 -62
  535. package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/request.json +0 -1
  536. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/request.json +0 -3
  537. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsInSqs.js +0 -85
  538. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsTemplate.ejs +0 -56
  539. package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/sqsTemplate.ejs +0 -40
  540. package/src/generators/fromObjectSchema/relationship/update/action/sns-out/request.json +0 -3
  541. package/src/generators/fromObjectSchema/relationship/update/action/sns-out/snsOut.js +0 -69
  542. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/request.json +0 -3
  543. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/template.ejs +0 -17
  544. package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/yaml.js +0 -139
  545. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/request.json +0 -0
  546. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/sqs.js +0 -61
  547. package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/template.ejs +0 -128
  548. package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/main.js +0 -56
  549. package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/request.json +0 -1
  550. package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/request.json +0 -3
  551. package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/snsInSqs.js +0 -64
  552. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/request.json +0 -3
  553. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/snsOut.js +0 -59
  554. package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/template.ejs +0 -8
  555. package/src/generators/fromObjectSchema/roleNameConfig/roleNameConfig.js +0 -77
  556. package/src/generators/fromObjectSchema/textTag/index.js +0 -58
  557. package/src/generators/fromObjectSchema/textTag/systemText/systemText.js +0 -148
  558. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/handler.js +0 -66
  559. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateApi.ejs +0 -84
  560. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateWebSocket.ejs +0 -66
  561. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/main.js +0 -58
  562. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/template.ejs +0 -18
  563. package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/yaml.js +0 -91
  564. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/handler.js +0 -0
  565. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/template.ejs +0 -0
  566. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/main.js +0 -45
  567. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/template.ejs +0 -82
  568. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/template.ejs +0 -0
  569. package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/yaml.js +0 -0
  570. package/src/generators/fromPlugIn/byConfig/handler/handler.js +0 -55
  571. package/src/generators/fromPlugIn/byConfig/handler/templateAwaitingStep.ejs +0 -105
  572. package/src/generators/fromPlugIn/byConfig/handler/templatePaginated.ejs +0 -137
  573. package/src/generators/fromPlugIn/byConfig/mainFunction/main.js +0 -54
  574. package/src/generators/fromPlugIn/byConfig/sns-sqs/queueNoTopic.ejs +0 -40
  575. package/src/generators/fromPlugIn/byConfig/sns-sqs/snsSqs.js +0 -56
  576. package/src/generators/fromPlugIn/byConfig/sns-sqs/snsTemplate.ejs +0 -55
  577. package/src/generators/fromPlugIn/byConfig/sns-sqs/sqsTemplate.ejs +0 -40
  578. package/src/generators/fromPlugIn/byConfig/yaml/template.ejs +0 -43
  579. package/src/generators/fromPlugIn/byConfig/yaml/yaml.js +0 -47
  580. package/src/generators/fromPlugIn/firstFlowStep/handler/handler.js +0 -58
  581. package/src/generators/fromPlugIn/firstFlowStep/handler/templateApi.ejs +0 -84
  582. package/src/generators/fromPlugIn/firstFlowStep/handler/templateDsq.ejs +0 -105
  583. package/src/generators/fromPlugIn/firstFlowStep/handler/templateInv.ejs +0 -53
  584. package/src/generators/fromPlugIn/firstFlowStep/mainFunction/main.js +0 -67
  585. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/dsqTemplate.ejs +0 -40
  586. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/queueNtopic.js +0 -54
  587. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/snsTemplate.ejs +0 -55
  588. package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/sqsTemplate.ejs +0 -40
  589. package/src/generators/fromPlugIn/firstFlowStep/topicOut/topicOut.js +0 -48
  590. package/src/generators/fromPlugIn/firstFlowStep/yaml/template.ejs +0 -40
  591. package/src/generators/fromPlugIn/firstFlowStep/yaml/yaml.js +0 -47
  592. package/src/generators/fromPlugIn/index.js +0 -518
  593. package/src/generators/other/generateAuthYml/template.ejs +0 -18
  594. package/src/generators/other/generateAuthYml/yaml.js +0 -49
  595. package/src/generators/other/index.js +0 -41
  596. package/src/generators/resourceYamlComponent/dynamodb/defaultDynamoDbTable.js +0 -145
  597. package/src/generators/resourceYamlComponent/dynamodb/generateDynamoPerLink.js +0 -108
  598. package/src/generators/resourceYamlComponent/dynamodb/mainResourcePerObjectSchemaData.js +0 -166
  599. package/src/generators/resourceYamlComponent/dynamodb/template.ejs +0 -23
  600. package/src/generators/resourceYamlComponent/filterGenerateResource/filter.js +0 -125
  601. package/src/generators/resourceYamlComponent/index.js +0 -96
  602. package/src/generators/resourceYamlComponent/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -92
  603. package/src/generators/resourceYamlComponent/sns-in-sqs/request.json +0 -4
  604. package/src/generators/resourceYamlComponent/sns-in-sqs/snsAndSqsPerActionData.js +0 -86
  605. package/src/generators/resourceYamlComponent/sns-in-sqs/snsTemplate.ejs +0 -56
  606. package/src/generators/resourceYamlComponent/sns-in-sqs/sqsTemplate.ejs +0 -40
  607. package/src/generators/resourceYamlComponent/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -66
  608. package/src/generators/resourceYamlComponent/sns-out/request.json +0 -3
  609. package/src/generators/resourceYamlComponent/sns-out/snsOut.js +0 -80
  610. package/src/generators/resourceYamlComponent/sns-out/template.ejs +0 -10
  611. package/src/generators/roles/index.js +0 -31
  612. package/src/generators/roles/roleNameConfig/roleNameConfig.js +0 -181
  613. package/src/generators/roles/roleNameConfig/template.ejs +0 -14
  614. package/src/generators/roles/roleNameConfig/templateIntTesting.ejs +0 -31
  615. package/src/generators/roles/roleNameConfig/templateYaml.ejs +0 -10
  616. package/src/generators/roles/sharedResource/sharedResource.js +0 -103
  617. package/src/generators/roles/sharedResource/template.ejs +0 -33
  618. package/src/libs/Consts.js +0 -96
  619. package/src/libs/GenerateCodeLibs.js +0 -32
  620. package/src/libs/Libs.js +0 -585
  621. package/src/libs/Utils.js +0 -164
  622. package/src/libs/consts/functions.js +0 -96
  623. package/src/libs/consts/handlers.js +0 -30
  624. package/src/libs/consts/index.js +0 -6
  625. package/src/libs/consts/paths.js +0 -84
  626. package/src/libs/consts/resources.js +0 -48
  627. package/src/libs/consts/tags.js +0 -68
  628. package/src/libs/consts/topics.js +0 -67
  629. package/src/pipeline/fetchSchemas.js +0 -31
  630. package/src/pipeline/transformSchemas.js +0 -75
  631. package/src/pipeline/validateSources.js +0 -47
  632. package/src/pipeline/writeSources.js +0 -24
  633. package/src/sourceManager/CreateSource.js +0 -174
  634. /package/src/{generators/fromFlowSchema/events/generatedCode/index.js → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/.gitkeep} +0 -0
  635. /package/src/{generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationshipComplete_Main.ejs} +0 -0
  636. /package/src/{generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationship_Main.ejs} +0 -0
  637. /package/src/{generators/fromObjectSchema/relationship/create/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationshipComplete_Main.ejs} +0 -0
  638. /package/src/{generators/fromObjectSchema/relationship/create/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationship_Main.ejs} +0 -0
  639. /package/src/{generators/fromObjectSchema/relationship/delete/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationshipComplete_Main.ejs} +0 -0
  640. /package/src/{generators/fromObjectSchema/relationship/delete/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationship_Main.ejs} +0 -0
  641. /package/src/{generators/fromObjectSchema/relationship/get/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationshipComplete_Main.ejs} +0 -0
  642. /package/src/{generators/fromObjectSchema/relationship/get/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationship_Main.ejs} +0 -0
  643. /package/src/{generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationshipComplete_Main.ejs} +0 -0
  644. /package/src/{generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationship_Main.ejs} +0 -0
  645. /package/src/{generators/fromObjectSchema/relationship/update/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationshipComplete_Main.ejs} +0 -0
  646. /package/src/{generators/fromObjectSchema/relationship/update/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationship_Main.ejs} +0 -0
  647. /package/src/{generators/fromObjectSchema/relationship/create/complete/functionYaml/request.json → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/.gitkeep} +0 -0
  648. /package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ConfirmReserved_Main.ejs} +0 -0
  649. /package/src/{generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreateObject_Main.ejs} +0 -0
  650. /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ProcessS3File_Main.ejs} +0 -0
  651. /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
  652. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/flowSchemaMainFunction/template.ejs +0 -0
  653. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -0
  654. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -0
  655. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -0
  656. /package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/mainFunction/data.js} +0 -0
  657. /package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/queue.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/confirmReserved/queue/data.js} +0 -0
  658. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObjectComplete/handler/template.ejs +0 -0
  659. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/createObjectComplete/mainFunction/template.ejs +0 -0
  660. /package/src/{generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/snsSqs.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/createObjectComplete/sns-sqs/data.js} +0 -0
  661. /package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/mainFunction/data.js} +0 -0
  662. /package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/sqs.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/preSignUrl/reservedLimit/sqs/data.js} +0 -0
  663. /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/handlerS3.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/processFile/handler/handlerS3/data.js} +0 -0
  664. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -0
  665. /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/main.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/processFile/mainFunction/data.js} +0 -0
  666. /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/queue/queue.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/processFile/queue/data.js} +0 -0
  667. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/processFile/queue/dsqTemplatePath.ejs +0 -0
  668. /package/src/{generators/fromFlowSchema/events/s3/upload/relate/S3/s3.js → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy/upload/relate/S3/data.js} +0 -0
  669. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/upload/relate/S3/template.ejs +0 -0
  670. /package/src/{generators/fromFlowSchema/events/s3 → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3Legacy}/websocket/dynamoDb/ReservedTableData.js +0 -0
  671. /package/src/{generators/fromFlowSchema/statusTypes/statusField/sns/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusFieldSns_Yaml.ejs} +0 -0
  672. /package/src/{generators/fromFlowSchema/statusTypes/statusField/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_Main.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/fromPlugIn/byConfig/mainFunction/templateAwaitingStep.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns/FlowStep_ByConfig_Awaiting_Main.ejs} +0 -0
  676. /package/src/{generators/fromPlugIn/byConfig/mainFunction/templatePaginated.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns/FlowStep_ByConfig_Paginated_Main.ejs} +0 -0
  677. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns/FlowStep_PlugIn_Main.ejs} +0 -0
  678. /package/src/{generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns/FlowStep_RecievePlugIn_Main.ejs} +0 -0
  679. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig/awaitingSteps.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns/templateAwaitingStep.ejs} +0 -0
  680. /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/step/plugIns}/templateSendPlugin.ejs +0 -0
  681. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/CheckTriggerCache_HdrSqs.ejs} +0 -0
  682. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/ProcessTriggerCache_HdrSqs.ejs} +0 -0
  683. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/ProcessTriggerCache_Main.ejs} +0 -0
  684. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/TriggerCacheComplete_HdrDsq.ejs} +0 -0
  685. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/TriggerCacheComplete_HdrSqs.ejs} +0 -0
  686. /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_internal/_shared/triggerCache/TriggerCacheComplete_Main.ejs} +0 -0
  687. /package/src/{generators/fromFlowSchema/register/complete/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_HdrSqs.ejs} +0 -0
  688. /package/src/{generators/fromFlowSchema/register/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_Main.ejs} +0 -0
  689. /package/src/{generators/fromFlowSchema/register/wbs/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_Main.ejs} +0 -0
  690. /package/src/{generators/fromObjectSchema/endpoint/resourceBeforeLogicalTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceBeforeLogicalYaml.ejs} +0 -0
@@ -1,92 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
-
23
- import consts from '#libs/Consts.js';
24
- import utils from '#libs/Utils.js';
25
-
26
- const { SOURCE_PATH, SAVE_FILE_NAME, FUNCTION_NAME, HANDLER } = consts;
27
- const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
28
- utils;
29
-
30
- const snsTemplatePath = path.join(__dirname, './snsTemplate.ejs');
31
- const sqsTemplatePath = path.join(__dirname, './sqsTemplate.ejs');
32
-
33
- /**
34
- * create data for dynamoDbYaml tempalte from objectSchema
35
- * return array of dynamoDb data
36
- * because one objectSchema can create multiple dynamoDb table
37
- *
38
- * @param {Object} _izContext
39
- * @param {String} saveFilePath
40
- * @returns {Object[]} - data of multiple dynamoDb template
41
- */
42
-
43
- function createDataForDefaultSnsInSqs(_izContext, srcPath) {
44
- let resultsForCreateDefaultSnsInSqs = [];
45
- const defaultSnsInSqsDataList = [];
46
- const setting = {
47
- initialData: 'Resources:\n',
48
- savePath: path.join(srcPath, SOURCE_PATH.resourceYaml),
49
- saveFileName: SAVE_FILE_NAME.snsInSqsYaml,
50
- fileExtension: '.yml',
51
- isAppend: true
52
- };
53
-
54
- // GCTpBasTestInPersonCreate => GCTpBas_Test_PersonCreate_In
55
- defaultSnsInSqsDataList.push(
56
- {
57
- queueName: upperCase(FUNCTION_NAME.findData)
58
- },
59
- {
60
- queueName: upperCase(FUNCTION_NAME.processLogical)
61
- },
62
- {
63
- queueName: upperCase(FUNCTION_NAME.paginateProcessLogical)
64
- }
65
- );
66
-
67
- for (let defaultSnsInSqsData of defaultSnsInSqsDataList) {
68
- resultsForCreateDefaultSnsInSqs.push({
69
- templatePath: snsTemplatePath,
70
- templateData: defaultSnsInSqsData,
71
- setting: setting
72
- });
73
- }
74
-
75
- let defaultDsqQueueDataList = [
76
- {
77
- queueName:
78
- upperCase(FUNCTION_NAME.paginateProcessLogical) +
79
- upperCase(HANDLER.hdrDsq)
80
- }
81
- ];
82
- for (let defaultDsqQueueData of defaultDsqQueueDataList) {
83
- resultsForCreateDefaultSnsInSqs.push({
84
- templatePath: sqsTemplatePath,
85
- templateData: defaultDsqQueueData,
86
- setting: setting
87
- });
88
- }
89
- return resultsForCreateDefaultSnsInSqs;
90
- }
91
-
92
- export default createDataForDefaultSnsInSqs;
@@ -1,4 +0,0 @@
1
- {
2
- "queueName": "xxx",
3
- "topicName": "xxx"
4
- }
@@ -1,86 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
-
23
- import consts from '#libs/Consts.js';
24
- import utils from '#libs/Utils.js';
25
- const {
26
- ACTIONS,
27
- HANDLER,
28
- SOURCE_PATH,
29
- DEFAULT_HANDLER_PER_ACTION,
30
- SAVE_FILE_NAME
31
- } = consts;
32
- const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
33
- utils;
34
-
35
- const snsTemplatePath = path.join(__dirname, './snsTemplate.ejs');
36
- const sqsTemplatePath = path.join(__dirname, './sqsTemplate.ejs');
37
-
38
- /**
39
- * create data for dynamoDbYaml tempalte from objectSchema
40
- * return array of dynamoDb data
41
- * because one objectSchema can create multiple dynamoDb table
42
- *
43
- * @param {Object} _izContext
44
- * @param {Object} objectSchema
45
- * @returns {Object[]} - data of multiple dynamoDb template
46
- */
47
-
48
- function dataForCreateSnsAndSqsQueueFromObjectSchema(_izContext) {
49
- const snsAndSqsDataArray = [];
50
- for (const action of Object.values(ACTIONS)) {
51
- for (const handler of DEFAULT_HANDLER_PER_ACTION[action]) {
52
- if (handler === HANDLER.hdrSqs) {
53
- const snsAndSqsData = {
54
- queueName: upperCase(action)
55
- };
56
- snsAndSqsData.queueName && snsAndSqsDataArray.push(snsAndSqsData);
57
- }
58
- }
59
- }
60
- return snsAndSqsDataArray;
61
- }
62
-
63
- const createSourceSnsAndSqs = (_izContext, srcPath) => {
64
- let resultsForCreateSnsAndSqsSource = new Set();
65
- const snsAndSqsDataList = dataForCreateSnsAndSqsQueueFromObjectSchema(
66
- _izContext,
67
- srcPath
68
- );
69
- for (let snsAndSqsData of snsAndSqsDataList) {
70
- resultsForCreateSnsAndSqsSource.add({
71
- templatePath: snsTemplatePath,
72
- templateData: snsAndSqsData,
73
- setting: {
74
- initialData: 'Resources:\n',
75
- savePath: path.join(srcPath, SOURCE_PATH.resourceYaml),
76
- saveFileName: SAVE_FILE_NAME.snsInSqsYaml,
77
- fileExtension: '.yml',
78
- isAppend: true
79
- }
80
- });
81
- }
82
- // console.log("resultsForCreateSnsAndSqsSource", resultsForCreateSnsAndSqsSource)
83
- return [...resultsForCreateSnsAndSqsSource];
84
- };
85
-
86
- export default createSourceSnsAndSqs;
@@ -1,56 +0,0 @@
1
- ##===== [Create topic in]
2
- In<%- queueName %>:
3
- Type: AWS::SNS::Topic
4
- Properties:
5
- DisplayName: "SNS Message in"
6
- TopicName: ${self:custom.iz_serviceTag}_${self:custom.iz_stage}_<%- queueName %>_In
7
- ##===== SNS Subscription
8
- ##===== [Topic In]
9
- SubscriptionIn<%- queueName %>:
10
- Type: AWS::SNS::Subscription
11
- Properties:
12
- TopicArn: !Ref In<%- queueName %>
13
- Endpoint: "arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs"
14
- Protocol: "sqs"
15
- ##===== [Queue]
16
- <%- queueName %>HdrSqs:
17
- Type: "AWS::SQS::Queue"
18
- Properties:
19
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs
20
- RedrivePolicy:
21
- deadLetterTargetArn:
22
- # !GetAtt
23
- Fn::GetAtt:
24
- - <%- queueName %>HdrSqsDLQ
25
- - Arn
26
- maxReceiveCount: 3
27
- VisibilityTimeout: 120
28
- ##==== [QueueDLQ]
29
- <%- queueName %>HdrSqsDLQ:
30
- Type: AWS::SQS::Queue
31
- Properties:
32
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqsDLQ
33
- ##==== [QueuePolicy]
34
- <%- queueName %>HdrSqsPolicy:
35
- Type: AWS::SQS::QueuePolicy
36
- Properties:
37
- PolicyDocument:
38
- Version: "2012-10-17"
39
- Statement:
40
- - Sid: "allow-sns-messages"
41
- Effect: Allow
42
- Principal: "*"
43
- Resource:
44
- # !GetAtt
45
- Fn::GetAtt:
46
- - <%- queueName %>HdrSqs
47
- - Arn
48
- Action: "SQS:SendMessage"
49
- Queues:
50
- - Ref: <%- queueName %>HdrSqs
51
- #<#<%- queueName %>QueueSetting#>
52
- #<#/<%- queueName %>QueueSetting#>
53
-
54
- <%_ function firstLetterLowerCase(str) {
55
- return str.charAt(0).toLowerCase() + str.slice(1)
56
- } _%>
@@ -1,40 +0,0 @@
1
- #------- queue ---------
2
- <%- queueName %>:
3
- Type: "AWS::SQS::Queue"
4
- Properties:
5
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>
6
- RedrivePolicy:
7
- deadLetterTargetArn: #!GetAtt
8
- Fn::GetAtt:
9
- - <%- queueName %>DLQ
10
- - Arn
11
- maxReceiveCount: 3
12
- VisibilityTimeout: 120
13
-
14
- <%- queueName %>DLQ:
15
- Type: AWS::SQS::Queue
16
- Properties:
17
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>DLQ
18
-
19
- <%- queueName %>Policy:
20
- Type: AWS::SQS::QueuePolicy
21
- Properties:
22
- PolicyDocument:
23
- Version: "2012-10-17"
24
- Statement:
25
- - Sid: "allow-sns-messages"
26
- Effect: Allow
27
- Principal: "*"
28
- Resource: #!GetAtt
29
- Fn::GetAtt:
30
- - <%- queueName %>
31
- - Arn
32
- Action: "SQS:SendMessage"
33
- Queues:
34
- - Ref: <%- queueName %>
35
- #<#<%- queueName %>QueueSetting#>
36
- #<#/<%- queueName %>QueueSetting#>
37
-
38
- <%_ function firstLetterLowerCase(str) {
39
- return str.charAt(0).toLowerCase() + str.slice(1)
40
- } _%>
@@ -1,66 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
-
23
- import consts from '#libs/Consts.js';
24
-
25
- const { SOURCE_PATH, SAVE_FILE_NAME } = consts;
26
- const templatePath = path.join(__dirname, 'template.ejs');
27
-
28
- /**
29
- * create data for template.ejs
30
- * return array of defaultSnsOutData
31
- * because must create for FindData and ProcessLogical
32
- *
33
- * @param {Object} _izContext
34
- * @param {String} saveFilePath
35
- * @returns {Object[]} - data of multiple defaultSnsOutData
36
- */
37
-
38
- function createDataForDefaultSnsOut(_izContext, srcPath) {
39
- let resultsForCreateDefaultSnsOut = [];
40
- const defaultSnsOutDataList = [
41
- {
42
- queueName: 'FindDataComplete'
43
- },
44
- {
45
- queueName: 'ProcessLogicalComplete'
46
- }
47
- ];
48
-
49
- for (let defaultSnsOutData of defaultSnsOutDataList) {
50
- resultsForCreateDefaultSnsOut.push({
51
- templatePath: templatePath,
52
- templateData: defaultSnsOutData,
53
- setting: {
54
- initialData: 'Resources:\n',
55
- savePath: path.join(srcPath, SOURCE_PATH.resourceYaml),
56
- saveFileName: SAVE_FILE_NAME.snsOutYaml,
57
- fileExtension: '.yml',
58
- isAppend: true,
59
- fromFile: 'resourceYaml/sns-out/defaultSnsOut.js'
60
- }
61
- });
62
- }
63
- return resultsForCreateDefaultSnsOut;
64
- }
65
-
66
- export default createDataForDefaultSnsOut;
@@ -1,3 +0,0 @@
1
- {
2
- "queueName": "string"
3
- }
@@ -1,80 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
-
23
- import consts from '#libs/Consts.js';
24
- import utils from '#libs/Utils.js';
25
-
26
- const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
27
- utils;
28
- const {
29
- DEFAULT_HANDLER_PER_ACTION,
30
- SOURCE_PATH,
31
- SAVE_FILE_NAME,
32
- ACTIONS,
33
- HANDLER
34
- } = consts;
35
-
36
- const templatePath = path.join(__dirname, 'template.ejs');
37
-
38
- /**
39
- * receive objectSchema
40
- * create data for hdrInv template
41
- *
42
- * @return {{ templatePath, templateData, setting } }
43
- */
44
- function createDataForCreateSourceSnsOut(_izContext) {
45
- const createSourceArray = [];
46
- for (const action of Object.values(ACTIONS)) {
47
- for (const handler of DEFAULT_HANDLER_PER_ACTION[action]) {
48
- if (handler === HANDLER.hdrSqs) {
49
- const snsOut = {
50
- queueName: upperCase(action)
51
- };
52
- snsOut.queueName && createSourceArray.push(snsOut);
53
- }
54
- }
55
- }
56
- // console.log("createSourceArray", createSourceArray)
57
- return createSourceArray;
58
- }
59
-
60
- function createSourceSnsOut(_izContext, srcPath) {
61
- let resultsForCreateSnsOut = [];
62
- const snsOutDataList = createDataForCreateSourceSnsOut(_izContext);
63
- for (let snsOutData of snsOutDataList) {
64
- resultsForCreateSnsOut.push({
65
- templatePath: templatePath,
66
- templateData: snsOutData,
67
- setting: {
68
- initialData: 'Resources:\n',
69
- savePath: path.join(srcPath, SOURCE_PATH.resourceYaml),
70
- saveFileName: SAVE_FILE_NAME.snsOutYaml,
71
- fileExtension: '.yml',
72
- isAppend: true,
73
- fromFile: 'resourceYaml/sns-out/snsOut.js'
74
- }
75
- });
76
- }
77
- return resultsForCreateSnsOut;
78
- }
79
-
80
- export default createSourceSnsOut;
@@ -1,10 +0,0 @@
1
- ##--------- [Create Topic Out]
2
- <% if (queueName.includes("_")) { %>
3
- Out<%- (queueName.split("_")).join("") %>:
4
- <% } else { -%>
5
- Out<%- queueName %>:
6
- <% } -%>
7
- Type: AWS::SNS::Topic
8
- Properties:
9
- DisplayName: "SNS Message out"
10
- TopicName: ${self:custom.iz_serviceTag}_${self:custom.iz_stage}_<%- queueName %>_Out
@@ -1,31 +0,0 @@
1
- import generateRoleNameConfig from './roleNameConfig/roleNameConfig.js';
2
- import generateRole from './sharedResource/sharedResource.js';
3
-
4
- export default function generateRoleAndSharedResource(
5
- _izContext,
6
- appPath,
7
- allCreateSource
8
- ) {
9
- try {
10
- // clone เพื่อไม่ให้กระทบ allCreateSource ต้นฉบับ
11
- const allCreateSourceClone = [...allCreateSource];
12
-
13
- const createSourceRoleNameConfig =
14
- generateRoleNameConfig(_izContext, appPath, allCreateSourceClone) ?? [];
15
- allCreateSourceClone.push(...createSourceRoleNameConfig);
16
-
17
- const roleSourceItems = allCreateSourceClone.filter(
18
- item =>
19
- item?.templateData?.hasOwnProperty('additionalResourcePermission') &&
20
- item?.templateData?.hasOwnProperty('roleName')
21
- );
22
-
23
- const generateRoleData =
24
- generateRole(_izContext, roleSourceItems, appPath) ?? [];
25
-
26
- return [...createSourceRoleNameConfig, ...generateRoleData];
27
- } catch (error) {
28
- console.error('Error in generateOther:', error);
29
- throw error;
30
- }
31
- }
@@ -1,181 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
-
23
- import consts from '#libs/Consts.js';
24
- import utils from '#libs/Utils.js';
25
-
26
- const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
27
- utils;
28
- const { SOURCE_PATH, SOURCE_GENERATE_IAM_ROLE, SAVE_FILE_NAME } = consts;
29
-
30
- const templateYamlPath = path.join(__dirname, './templateYaml.ejs');
31
- const templatePathIntTestPath = path.join(
32
- __dirname,
33
- './templateIntTesting.ejs'
34
- );
35
-
36
- function data(_izContext, appPath, createSourceParams) {
37
- // const srcPath = path.join(rootServicePath, '/src');
38
-
39
- // ! old code
40
- // function createFunctionNameConfigFileYaml(functionNameConfigs, srcPath) {
41
- // let createFunctionNameConfigYaml = []
42
- // createFunctionNameConfigYaml.push(
43
- // {
44
- // templatePath: templateYamlPath,
45
- // templateData: {
46
- // functionNameConfigs: functionNameConfigs
47
- // },
48
- // setting: {
49
- // savePath: path.join(srcPath, SOURCE_PATH.appYaml),
50
- // saveFileName: "FunctionNameConfig",
51
- // fileExtension: ".yml",
52
- // isAppend: true
53
- // }
54
- // }
55
- // )
56
- // return createFunctionNameConfigYaml
57
- // }
58
-
59
- // Extract role names from object types in createSourceParams
60
- const roleNameConfigs = new Set();
61
- const roleNameConcatConfigs = new Set();
62
-
63
- // Add default IAM roles from configuration
64
- // Object.entries(SOURCE_GENERATE_IAM_ROLE)
65
- // .filter(([_, enabled]) => enabled)
66
- // .forEach(([_, value]) => {
67
- // if (value === SOURCE_GENERATE_IAM_ROLE.NodeCompleteRole) return;
68
- // roleNameConfigs.add(`${upperCase(value)}Role`);
69
- // roleNameConcatConfigs.add(`${upperCase(value)}`);
70
- // });
71
- for (const data of createSourceParams) {
72
- let roleName = data.templateData?.roleName;
73
- if (roleName) {
74
- if (roleName === SOURCE_GENERATE_IAM_ROLE.NodeCompleteRole) {
75
- return;
76
- }
77
- roleNameConfigs.add(`${upperCase(roleName)}Role`);
78
- roleNameConcatConfigs.add(`${upperCase(roleName)}`);
79
- }
80
- }
81
-
82
- // Extract role names from templateData in createSourceParams
83
- createSourceParams.forEach(({ templateData }) => {
84
- if (templateData) {
85
- const sourceName = templateData.roleName || templateData.objectType;
86
- if (sourceName) {
87
- const upperCasedName = upperCase(sourceName);
88
- roleNameConfigs.add(`${upperCasedName}Role`);
89
- roleNameConcatConfigs.add(upperCasedName);
90
- }
91
- }
92
- });
93
-
94
- // Generate YAML and JS configurations
95
- const roleConfigYaml = createRoleNameConfigFileYaml(roleNameConfigs, appPath);
96
- const roleConfigJs = createRoleNameConfigFileJs(
97
- roleNameConcatConfigs,
98
- appPath
99
- );
100
-
101
- // Combine and return all configurations
102
- return [...roleConfigYaml, ...roleConfigJs];
103
- }
104
-
105
- // ! old code
106
- // function createFunctionNameConfigFileYaml(functionNameConfigs, srcPath) {
107
- // let createFunctionNameConfigYaml = []
108
- // createFunctionNameConfigYaml.push(
109
- // {
110
- // templatePath: templateYamlPath,
111
- // templateData: {
112
- // functionNameConfigs: functionNameConfigs
113
- // },
114
- // setting: {
115
- // savePath: path.join(srcPath, SOURCE_PATH.appYaml),
116
- // saveFileName: "FunctionNameConfig",
117
- // fileExtension: ".yml",
118
- // isAppend: true
119
- // }
120
- // }
121
- // )
122
- // return createFunctionNameConfigYaml
123
- // }
124
-
125
- // ! old code
126
- // function createFunctionNameConfigFileJs(functionNameConfigs, srcPath) {
127
- // let createFunctionNameConfigJs = []
128
- // createFunctionNameConfigJs.push(
129
- // {
130
- // templatePath: templatePathIntTestPath,
131
- // templateData: {
132
- // functionNameConfigs: functionNameConfigs
133
- // },
134
- // setting: {
135
- // savePath: path.join(srcPath, SOURCE_PATH.externalService),
136
- // saveFileName: "FunctionNameConfig",
137
- // fileExtension: ".js",
138
- // isAppend: true
139
- // }
140
- // }
141
- // )
142
-
143
- // return createFunctionNameConfigJs
144
- // }
145
-
146
- function createRoleNameConfigFileYaml(roleNameConfigs, appPath) {
147
- const createRoleNameConfigYaml = [];
148
- createRoleNameConfigYaml.push({
149
- templatePath: templateYamlPath,
150
- templateData: {
151
- roleNameConfigs: roleNameConfigs
152
- },
153
- setting: {
154
- savePath: path.join(appPath, SOURCE_PATH.appYaml),
155
- saveFileName: SAVE_FILE_NAME.roleNameConfigYaml,
156
- fileExtension: '.yml',
157
- isAppend: true
158
- }
159
- });
160
- return createRoleNameConfigYaml;
161
- }
162
-
163
- function createRoleNameConfigFileJs(roleNameConfigs, appPath) {
164
- const createRoleNameConfigJs = [];
165
- createRoleNameConfigJs.push({
166
- templatePath: templatePathIntTestPath,
167
- templateData: {
168
- roleNameConfigs: roleNameConfigs
169
- },
170
- setting: {
171
- savePath: path.join(appPath, SOURCE_PATH.externalService),
172
- saveFileName: 'RoleNameConfig',
173
- fileExtension: '.js',
174
- isAppend: true
175
- }
176
- });
177
-
178
- return createRoleNameConfigJs;
179
- }
180
-
181
- export default data;
@@ -1,14 +0,0 @@
1
- # for createIamRole
2
-
3
- <% functionNameConfigs.forEach(functionNameConfig => { _%>
4
- - ${self:custom.iz_prefixIamRole}<%- functionNameConfig %>${self:custom.iz_suffixIamRole}
5
- <% }) _%>
6
-
7
- # for createIntTest
8
- <% functionNameConfigs.forEach(functionNameConfig => { _%>
9
- "<%- functionNameConfig %>",
10
- <% }) _%>
11
-
12
- <%_function firstLetterUpperCase(text) {
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } %>