@izara_project/izara-core-generate-service-code 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -17
- package/package.json +8 -8
- package/src/codeGenerators/app/initial_setup/InitialSetupGenerator.js +149 -0
- package/src/codeGenerators/app/initial_setup/templates/InitialSetup_LambdaRole.ejs +43 -0
- package/src/codeGenerators/app/initial_setup/templates/InitialSetup_SnsService.ejs +15 -0
- package/src/codeGenerators/app/initial_setup/templates/InitialSetup_TableName.ejs +9 -0
- package/src/codeGenerators/app/sls_yaml/FindDataYamlGenerator.js +23 -0
- package/src/codeGenerators/app/sls_yaml/FunctionYamlGenerator.js +230 -0
- package/src/codeGenerators/app/sls_yaml/ProcessLogicalYamlGenerator.js +21 -0
- package/src/codeGenerators/app/sls_yaml/RoleNameConfigGenerator.js +83 -0
- package/src/codeGenerators/app/sls_yaml/SharedResourceYamlGenerator.js +471 -0
- package/src/codeGenerators/app/sls_yaml/__tests__/SharedResourceYamlGenerator.test.js +176 -0
- package/src/codeGenerators/app/sls_yaml/_policy/PolicyEmitter.js +45 -0
- package/src/codeGenerators/app/sls_yaml/_policy/PolicyRegistry.js +94 -0
- package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyEmitter.test.js +55 -0
- package/src/codeGenerators/app/sls_yaml/_policy/__tests__/PolicyRegistry.test.js +48 -0
- package/src/codeGenerators/app/sls_yaml/_policy/templates/ManagedPolicy_Yaml.ejs +22 -0
- package/src/codeGenerators/app/sls_yaml/renderYamlTemplate.js +13 -0
- package/src/codeGenerators/app/sls_yaml/templates/FindData_Yaml.ejs +10 -0
- package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Api.ejs +21 -0
- package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_EventBridge.ejs +14 -0
- package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Inv.ejs +6 -0
- package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Sqs.ejs +11 -0
- package/src/codeGenerators/app/sls_yaml/templates/FunctionYaml_Wbs.ejs +11 -0
- package/src/codeGenerators/app/sls_yaml/templates/ProcessLogical_Yaml.ejs +32 -0
- package/src/{generators/fromObjectSchema/roleNameConfig/templateYaml.ejs → codeGenerators/app/sls_yaml/templates/RoleNameConfig_Yaml.ejs} +1 -1
- package/src/codeGenerators/app/sls_yaml/templates/SharedResource_Yaml.ejs +39 -0
- package/src/codeGenerators/app/src/generatedCode/FindData/FindDataGenerator.js +238 -0
- package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_HdrSqs.ejs +87 -0
- package/src/codeGenerators/app/src/generatedCode/FindData/templates/FindData_Main.ejs +108 -0
- package/src/codeGenerators/app/src/generatedCode/FindData/templates/GetByStorage/getByDynamo.ejs +32 -0
- package/src/{generators/fromObjectSchema/findData → codeGenerators/app/src/generatedCode/FindData/templates}/GetByStorage/getByGraph.ejs +5 -5
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/EndpointsGenerator.js +119 -0
- package/src/{generators/fromObjectSchema/endpoint/main/beforeLogical/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/FlowEndpointBeforeLogical_Main.ejs} +11 -16
- package/src/{generators/fromObjectSchema/endpoint/main/create/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/CreateEndpoint_Main.ejs} +6 -6
- package/src/{generators/fromObjectSchema/endpoint/main/delete/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/DeleteEndpoint_Main.ejs} +5 -5
- package/src/{generators/fromObjectSchema/endpoint/main/get/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/GetEndpoint_Main.ejs} +1 -1
- package/src/{generators/fromObjectSchema/endpoint/main/update/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/templates/crud/UpdateEndpoint_Main.ejs} +5 -5
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/RbacFlowGenerator.js +112 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateRolePermissions.ejs +135 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateTargetRole.ejs +131 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/CreateUserRole.ejs +150 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteRolePermissions.ejs +132 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteTargetRole.ejs +132 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/DeleteUserFromRole.ejs +150 -0
- package/src/{generators/fromFlowSchema/events/s3/flowSchemaMainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListRolePermissions.ejs} +70 -39
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListTargetRole.ejs +122 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRbac/templates/rbac/ListUserInRoles.ejs +117 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/RelationshipFlowGenerator.js +131 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/StatusFieldGenerator.js +116 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/WebSocketGenerator.js +124 -0
- package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEndpoint_HdrWbs.ejs} +6 -6
- package/src/{generators/fromFlowSchema/flowSchemaMainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEndpoint_Main.ejs} +31 -25
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowEntryPoint_Main.ejs +38 -0
- package/src/{generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/endpoint/FlowMain_Wbs.ejs} +20 -20
- package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ConfirmReserved_HdrSqs.ejs} +5 -5
- package/src/{generators/fromFlowSchema/events/s3/upload/createObject/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreateObject_HdrWbs.ejs} +2 -2
- package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreatePreSignUrl_HdrSqs.ejs} +5 -5
- 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
- package/src/codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/FlowHandler_HdrS3.ejs +66 -0
- package/src/{generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ReservedLimit_HdrSqs.ejs} +5 -5
- package/src/{generators/fromFlowSchema/statusTypes/statusField/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_HdrSqs.ejs} +0 -2
- package/src/{generators/fromObjectSchema/endpointComplete/create/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/FlowEndpointComplete_Main.ejs} +26 -24
- package/src/{generators/fromFlowSchema/flowStep/noPlugInHook/templateMain.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/FlowStep_Main.ejs} +13 -12
- package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketFlow_Yaml.ejs} +5 -5
- package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/sqs/templateSub.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocketSub_Yaml.ejs} +1 -1
- package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_HdrSqs.ejs} +1 -20
- package/src/{generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_Main.ejs} +1 -21
- package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Main.ejs} +1 -21
- package/src/{generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketConnect_Yaml.ejs} +1 -1
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/BaseSqsHandler.js +67 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/eventBridge.js +25 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/extTopic.js +6 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/lambdaSyncApi.js +52 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/lambdaSyncInv.js +52 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/ownTopic.js +42 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/registry.js +15 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3.js +56 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ConfirmAfterUploadS3Generator.js +46 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/CreateObjectGenerator.js +50 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/CreatePreSignUrlGenerator.js +48 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ProcessAfterUploadS3Generator.js +49 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/events/s3Components/ReservedLimitGenerator.js +47 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrApi.ejs +51 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrInv.ejs +45 -0
- package/src/{generators/fromPlugIn/firstFlowStep/handler/templateSqs.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/handlers/FlowHandler_HdrSqs.ejs} +30 -9
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/eventTypes.js +23 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowClassifier.js +49 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowEntryPointBase.js +102 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowMainFunctionBase.js +160 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowNaming.js +21 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowSelection.js +20 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowStepBase.js +229 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowStepNormalizer.js +28 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/flowValidator.js +144 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/registry.js +7 -0
- package/src/codeGenerators/app/src/generatedCode/Flow/_shared/shared/triggerCacheBase.js +183 -0
- package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/CheckTriggerCache_Main.ejs} +0 -2
- package/src/{generators/fromObjectSchema/relationship/create/action/sns-in-sqs/sqsTemplate.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheQueue_Yaml.ejs} +6 -10
- package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/yaml/SharedFunctionSqs_Yaml.ejs} +1 -5
- package/src/codeGenerators/app/src/generatedCode/ProcessLogical/ProcessLogicalGenerator.js +29 -0
- package/src/{generators/fromObjectSchema/processLogicalPagination/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrSqs.ejs} +1 -1
- package/src/{generators/fromObjectSchema/processLogicalPagination/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_Main.ejs} +10 -10
- package/src/{generators/fromObjectSchema/processLogical/handler/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_HdrSqs.ejs} +1 -1
- package/src/{generators/fromObjectSchema/processLogical/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/ProcessLogical_Main.ejs} +16 -16
- package/src/codeGenerators/app/src/generatedCode/SystemFlowSchemas/RegisterGenerator.js +150 -0
- package/src/{generators/fromFlowSchema/register/wbs/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_HdrWbs.ejs} +1 -5
- package/src/codeGenerators/app/src/generatedCode/libs/ConstsGenerator.js +28 -0
- package/src/codeGenerators/app/src/generatedCode/libs/GenerateCodeLibsGenerator.js +28 -0
- package/src/codeGenerators/app/src/generatedCode/libs/templates/Consts.ejs +448 -0
- package/src/{generators/fromFlowSchema/shared/template.ejs → codeGenerators/app/src/generatedCode/libs/templates/GenerateCodeLibs.ejs} +38 -29
- package/src/codeGenerators/resource/sls_yaml/DynamoDBGenerator.js +96 -0
- package/src/codeGenerators/resource/sls_yaml/FlowOutGenerator.js +73 -0
- package/src/codeGenerators/resource/sls_yaml/FlowResourceYamlGenerator.js +199 -0
- package/src/codeGenerators/resource/sls_yaml/templates/DynamoDBTable_Yaml.ejs +20 -0
- package/src/{generators/fromObjectSchema/relationship/create/complete/sns-out/template.ejs → codeGenerators/resource/sls_yaml/templates/FlowOut_Yaml.ejs} +3 -5
- package/src/codeGenerators/resource/sls_yaml/templates/SystemDynamoDB_Yaml.ejs +138 -0
- package/src/{generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/template.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceSqsYaml.ejs} +6 -10
- package/src/{generators/fromObjectSchema/endpoint/resourceTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceYaml.ejs} +9 -9
- package/src/core/renderTemplateFile.js +22 -0
- package/src/core/validate.js +161 -0
- package/src/generate.js +130 -0
- package/src/generateCode.js +247 -51
- package/src/generateIntTest.js +142 -0
- package/src/generateResourceIntTest.js +77 -0
- package/src/generateResources/IntTest/consts.js +36 -0
- package/src/generateResources/IntTest/generateResources/generateResources.js +11 -14
- package/src/generateResources/IntTest/generateTests/events/events.js +1 -4
- package/src/generateResources/IntTest/generateTests/generateTemplate.js +15 -16
- package/src/generateResources/IntTest/generateTests/pathIntTest/pathIntTest.js +6 -2
- package/src/generateResources/IntTest/generateTests/tests/tests.js +2 -6
- package/src/generateResources/IntTest/libs/libs.js +5 -5
- package/src/generateSchema.js +63 -0
- package/src/intTestGeneratorShared.js +36 -0
- package/src/parsers/flowSchemaParser.js +106 -0
- package/src/parsers/objectSchemaParser.js +39 -0
- package/src/parsers/relationshipSchemaParser.js +51 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/FlowSchemaGenerator.js +151 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/RbacFlowSchemaGenerator.js +84 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/RelationshipFlowSchemaGenerator.js +89 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicFlowSchemaTemplate.ejs +39 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/DynamicRbacFlowSchemaTemplate.ejs +19 -0
- package/src/schemaGenerators/app/src/schemas/FlowSchemas/templates/RelationshipFlowSchemaTemplate.ejs +32 -0
- package/src/schemaGenerators/app/src/schemas/ObjectSchemas/AttributeTreeSchemaGenerator.js +124 -0
- package/src/schemaGenerators/app/src/schemas/ObjectSchemas/PropertyValueSchemaGenerator.js +119 -0
- package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeManagerSchemaTemplate.ejs +14 -0
- package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicAttributeTreeStandardSchemaTemplate.ejs +13 -0
- package/src/schemaGenerators/app/src/schemas/ObjectSchemas/templates/DynamicPropertyValueSchemaTemplate.ejs +15 -0
- package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/AttributeTreeRelationshipSchemaGenerator.js +149 -0
- package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/PropertyValueRelationshipSchemaGenerator.js +143 -0
- package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicAttributeTreeRelationshipSchemaTemplate.ejs +7 -0
- package/src/schemaGenerators/app/src/schemas/RelationshipSchemas/templates/DynamicPropertyValueRelationshipSchemaTemplate.ejs +7 -0
- package/src/schemaGenerators/app/src/schemas/SystemTextSchemas/SystemTextGenerator.js +102 -0
- package/src/{generators/fromObjectSchema/textTag/systemText/template.ejs → schemaGenerators/app/src/schemas/SystemTextSchemas/templates/SystemText_Template.ejs} +1 -1
- package/REFACTOR_PLAN.md +0 -172
- package/fix_array.js +0 -11
- package/fix_imports.js +0 -41
- package/fix_upper.js +0 -38
- package/src/IntTestConfig.js +0 -23
- package/src/generateResources/IntTest/upload/uploadIntTest.js +0 -96
- package/src/generateResources.js +0 -123
- package/src/generateTests.js +0 -139
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/functionNameConfig.js +0 -182
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/template.ejs +0 -14
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateIntTesting.ejs +0 -31
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateYaml.ejs +0 -10
- package/src/generators/fromExternalService/externalServiceComponent/index.js +0 -69
- package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/lambdaRole.js +0 -250
- package/src/generators/fromExternalService/externalServiceComponent/lambdaRole/template.ejs +0 -58
- package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/snsTopicSubscriptions.js +0 -155
- package/src/generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/template.ejs +0 -33
- package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/tableNameConfig.js +0 -90
- package/src/generators/fromExternalService/externalServiceComponent/tableNameConfig/template.ejs +0 -43
- package/src/generators/fromExternalService/index.js +0 -65
- package/src/generators/fromFlowSchema/env/template.ejs +0 -5
- package/src/generators/fromFlowSchema/env/yaml.js +0 -73
- package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/template.ejs +0 -14
- package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/yaml.js +0 -168
- package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/inv.js +0 -74
- package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/request.json +0 -7
- package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/template.ejs +0 -53
- package/src/generators/fromFlowSchema/events/eventBridge/index.js +0 -16
- package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/main.js +0 -77
- package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/request.json +0 -5
- package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/template.ejs +0 -59
- package/src/generators/fromFlowSchema/events/extTopic/index.js +0 -18
- package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/template.ejs +0 -13
- package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/yaml.js +0 -159
- package/src/generators/fromFlowSchema/events/extTopic/process/handler/handler.js +0 -67
- package/src/generators/fromFlowSchema/events/extTopic/process/handler/template.ejs +0 -101
- package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/snsInSqs.js +0 -79
- package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromFlowSchema/events/extTopic/sns-out/snsOut.js +0 -76
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/template.ejs +0 -19
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/yaml.js +0 -88
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/handler.js +0 -68
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/template.ejs +0 -84
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/index.js +0 -14
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/template.ejs +0 -6
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/yaml.js +0 -75
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/handler.js +0 -64
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/template.ejs +0 -52
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/index.js +0 -14
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/template.ejs +0 -10
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/yaml.js +0 -178
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/DsqHandlerTemplate.ejs +0 -105
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/SqsHandlerTemplate.ejs +0 -87
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/handler.js +0 -93
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/template.ejs +0 -11
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/yaml.js +0 -127
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/handler/handler.js +0 -65
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/main.js +0 -64
- package/src/generators/fromFlowSchema/events/ownTopic/index.js +0 -32
- package/src/generators/fromFlowSchema/events/ownTopic/sns-in/snsIn.js +0 -108
- package/src/generators/fromFlowSchema/events/ownTopic/sns-out/snsOut.js +0 -77
- package/src/generators/fromFlowSchema/events/registry.js +0 -6
- package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/main.js +0 -121
- package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -30
- package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -26
- package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -44
- package/src/generators/fromFlowSchema/events/s3/index.js +0 -81
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/template.ejs +0 -13
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/yaml.js +0 -140
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/handler.js +0 -65
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/main.js +0 -54
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/queue.js +0 -63
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/template.ejs +0 -42
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/template.ejs +0 -16
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/yaml.js +0 -133
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/handler/handler.js +0 -66
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/main.js +0 -65
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/template.ejs +0 -13
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/yaml.js +0 -139
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/handler.js +0 -68
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/template.ejs +0 -99
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/main.js +0 -65
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/template.ejs +0 -82
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/snsSqs.js +0 -70
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/template.ejs +0 -46
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +0 -14
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/yaml.js +0 -157
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/handler.js +0 -65
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/mainFunction/main.js +0 -64
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/queue.js +0 -63
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/template.ejs +0 -42
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -10
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/yaml.js +0 -164
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/handler.js +0 -66
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/mainFunction/main.js +0 -59
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/sqs.js +0 -67
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/template.ejs +0 -50
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/template.ejs +0 -21
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/yaml.js +0 -156
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/handlerS3.js +0 -49
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/template.ejs +0 -50
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -182
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/main.js +0 -49
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/dsqTemplatePath.ejs +0 -32
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/queue.js +0 -77
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/s3Template.ejs +0 -56
- package/src/generators/fromFlowSchema/events/s3/upload/relate/S3/s3.js +0 -61
- package/src/generators/fromFlowSchema/events/s3/upload/relate/S3/template.ejs +0 -13
- package/src/generators/fromFlowSchema/events/s3/upload/relate/sns-out/snsOut.js +0 -70
- package/src/generators/fromFlowSchema/events/s3/websocket/dynamoDb/ReservedTableData.js +0 -69
- package/src/generators/fromFlowSchema/flowSchemaMainFunction/main.js +0 -123
- package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -30
- package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -26
- package/src/generators/fromFlowSchema/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -44
- package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateDsq.ejs +0 -151
- package/src/generators/fromFlowSchema/flowStep/afterPluginHook/handler/templateSqs.ejs +0 -89
- package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateMain.ejs +0 -93
- package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateResource.ejs +0 -91
- package/src/generators/fromFlowSchema/flowStep/afterPluginHook/templateYaml.ejs +0 -47
- package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateHandler.ejs +0 -95
- package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateMain.ejs +0 -95
- package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateResource.ejs +0 -56
- package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateYaml.ejs +0 -23
- package/src/generators/fromFlowSchema/flowStep/flowStep.js +0 -515
- package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateHandler.ejs +0 -95
- package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateResource.ejs +0 -52
- package/src/generators/fromFlowSchema/flowStep/noPlugInHook/templateYaml.ejs +0 -23
- package/src/generators/fromFlowSchema/index.js +0 -213
- package/src/generators/fromFlowSchema/register/complete/functionYaml/template.ejs +0 -23
- package/src/generators/fromFlowSchema/register/complete/functionYaml/yaml.js +0 -127
- package/src/generators/fromFlowSchema/register/complete/handler/handler.js +0 -61
- package/src/generators/fromFlowSchema/register/complete/mainFunction/main.js +0 -53
- package/src/generators/fromFlowSchema/register/dynamoDB/register.js +0 -74
- package/src/generators/fromFlowSchema/register/index.js +0 -50
- package/src/generators/fromFlowSchema/register/sns-in/snsIn.js +0 -59
- package/src/generators/fromFlowSchema/register/sns-in/template.ejs +0 -42
- package/src/generators/fromFlowSchema/register/subscriptionOutAll/subscriptionOutAll.js +0 -84
- package/src/generators/fromFlowSchema/register/subscriptionOutAll/template.ejs +0 -10
- package/src/generators/fromFlowSchema/register/wbs/functionYaml/template.ejs +0 -11
- package/src/generators/fromFlowSchema/register/wbs/functionYaml/yaml.js +0 -114
- package/src/generators/fromFlowSchema/register/wbs/handler/handler.js +0 -63
- package/src/generators/fromFlowSchema/register/wbs/mainFunction/main.js +0 -54
- package/src/generators/fromFlowSchema/shared/wsCodeLibs.js +0 -49
- package/src/generators/fromFlowSchema/statusTypes/registry.js +0 -2
- package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/template.ejs +0 -18
- package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/yaml.js +0 -169
- package/src/generators/fromFlowSchema/statusTypes/statusField/handler/handler.js +0 -68
- package/src/generators/fromFlowSchema/statusTypes/statusField/index.js +0 -22
- package/src/generators/fromFlowSchema/statusTypes/statusField/mainFunction/main.js +0 -67
- package/src/generators/fromFlowSchema/statusTypes/statusField/sns/sns.js +0 -66
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/template.ejs +0 -18
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/yaml.js +0 -154
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/handler.js +0 -73
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/main.js +0 -75
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/index.js +0 -41
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/template.ejs +0 -18
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/yaml.js +0 -159
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/handler.js +0 -74
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/main.js +0 -68
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/dsq.js +0 -148
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/template.ejs +0 -17
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/sqs.js +0 -148
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/dsq.js +0 -69
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/sqs.js +0 -69
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/main.js +0 -72
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/queue.js +0 -97
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/template.ejs +0 -46
- package/src/generators/fromFlowSchema/webSocket/index.js +0 -39
- package/src/generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/yaml.js +0 -89
- package/src/generators/fromFlowSchema/webSocket/webSocket/connect/handler/handler.js +0 -55
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/WebSocketTaskData.js +0 -74
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/ttlDynamoTemplate.ejs +0 -29
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/userUploadRecords.js +0 -61
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/yaml.js +0 -144
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/handler/handler.js +0 -61
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/main.js +0 -53
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/sqs.js +0 -108
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/template.ejs +0 -40
- package/src/generators/fromObjectSchema/endpoint/handler/api.js +0 -55
- package/src/generators/fromObjectSchema/endpoint/handler/apiTemplate.ejs +0 -81
- package/src/generators/fromObjectSchema/endpoint/handler/beforeLogical.js +0 -56
- package/src/generators/fromObjectSchema/endpoint/handler/beforeLogicalTemplate.ejs +0 -123
- package/src/generators/fromObjectSchema/endpoint/handler/dsq.js +0 -55
- package/src/generators/fromObjectSchema/endpoint/handler/dsqTemplate.ejs +0 -126
- package/src/generators/fromObjectSchema/endpoint/handler/inv.js +0 -55
- package/src/generators/fromObjectSchema/endpoint/handler/invTemplate.ejs +0 -63
- package/src/generators/fromObjectSchema/endpoint/handler/sqs.js +0 -55
- package/src/generators/fromObjectSchema/endpoint/handler/sqsTemplate.ejs +0 -124
- package/src/generators/fromObjectSchema/endpoint/index.js +0 -290
- package/src/generators/fromObjectSchema/endpoint/main/beforeLogical/beforeLogical.js +0 -54
- package/src/generators/fromObjectSchema/endpoint/main/create/create.js +0 -52
- package/src/generators/fromObjectSchema/endpoint/main/delete/delete.js +0 -49
- package/src/generators/fromObjectSchema/endpoint/main/get/get.js +0 -49
- package/src/generators/fromObjectSchema/endpoint/main/update/update.js +0 -50
- package/src/generators/fromObjectSchema/endpoint/resource.js +0 -72
- package/src/generators/fromObjectSchema/endpoint/yaml.js +0 -308
- package/src/generators/fromObjectSchema/endpoint/yamlTemplate.ejs +0 -28
- package/src/generators/fromObjectSchema/endpointComplete/create/handler/handler.js +0 -63
- package/src/generators/fromObjectSchema/endpointComplete/create/handler/template.ejs +0 -126
- package/src/generators/fromObjectSchema/endpointComplete/create/mainFunction/main.js +0 -54
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/snsInSqs.js +0 -63
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/snsOut.js +0 -72
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/endpointComplete/create/yaml/template.ejs +0 -17
- package/src/generators/fromObjectSchema/endpointComplete/create/yaml/yaml.js +0 -152
- package/src/generators/fromObjectSchema/endpointComplete/delete/handler/handler.js +0 -68
- package/src/generators/fromObjectSchema/endpointComplete/delete/handler/template.ejs +0 -122
- package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/main.js +0 -55
- package/src/generators/fromObjectSchema/endpointComplete/delete/mainFunction/template.ejs +0 -87
- package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/snsInSqs.js +0 -64
- package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/endpointComplete/delete/sns-out/snsOut.js +0 -69
- package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/yaml.js +0 -124
- package/src/generators/fromObjectSchema/endpointComplete/get/handler/handler.js +0 -68
- package/src/generators/fromObjectSchema/endpointComplete/get/handler/template.ejs +0 -122
- package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/main.js +0 -54
- package/src/generators/fromObjectSchema/endpointComplete/get/mainFunction/template.ejs +0 -132
- package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/snsInSqs.js +0 -63
- package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/endpointComplete/get/sns-out/snsOut.js +0 -69
- package/src/generators/fromObjectSchema/endpointComplete/get/yaml/template.ejs +0 -17
- package/src/generators/fromObjectSchema/endpointComplete/get/yaml/yaml.js +0 -127
- package/src/generators/fromObjectSchema/endpointComplete/index.js +0 -101
- package/src/generators/fromObjectSchema/endpointComplete/update/handler/handler.js +0 -68
- package/src/generators/fromObjectSchema/endpointComplete/update/handler/template.ejs +0 -122
- package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/main.js +0 -54
- package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/template.ejs +0 -218
- package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/snsInSqs.js +0 -63
- package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/endpointComplete/update/sns-out/snsOut.js +0 -66
- package/src/generators/fromObjectSchema/endpointComplete/update/yaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/endpointComplete/update/yaml/yaml.js +0 -155
- package/src/generators/fromObjectSchema/findData/GetByStorage/getByDynamo.ejs +0 -58
- package/src/generators/fromObjectSchema/findData/findDataYaml/findDataYaml.js +0 -204
- package/src/generators/fromObjectSchema/findData/findDataYaml/template.ejs +0 -10
- package/src/generators/fromObjectSchema/findData/handler/handler.js +0 -52
- package/src/generators/fromObjectSchema/findData/handler/template.ejs +0 -135
- package/src/generators/fromObjectSchema/findData/index.js +0 -70
- package/src/generators/fromObjectSchema/findData/mainFunction/main.js +0 -320
- package/src/generators/fromObjectSchema/findData/mainFunction/template.ejs +0 -156
- package/src/generators/fromObjectSchema/index.js +0 -134
- package/src/generators/fromObjectSchema/processLogical/handler/handler.js +0 -51
- package/src/generators/fromObjectSchema/processLogical/index.js +0 -50
- package/src/generators/fromObjectSchema/processLogical/mainFunction/main.js +0 -49
- package/src/generators/fromObjectSchema/processLogical/yaml/template.ejs +0 -10
- package/src/generators/fromObjectSchema/processLogical/yaml/yaml.js +0 -200
- package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/dsqYaml.js +0 -51
- package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/template.ejs +0 -32
- package/src/generators/fromObjectSchema/processLogicalPagination/handler/dsq/dsq.js +0 -50
- package/src/generators/fromObjectSchema/processLogicalPagination/handler/sqs/sqs.js +0 -49
- package/src/generators/fromObjectSchema/processLogicalPagination/index.js +0 -62
- package/src/generators/fromObjectSchema/processLogicalPagination/mainFunction/main.js +0 -49
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/dsq.js +0 -189
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/template.ejs +0 -10
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/sqs.js +0 -198
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/template.ejs +0 -11
- package/src/generators/fromObjectSchema/rbac/dynamoDb/dynamoDb.js +0 -74
- package/src/generators/fromObjectSchema/rbac/index.js +0 -68
- package/src/generators/fromObjectSchema/rbac/lambda/handler/handler.js +0 -72
- package/src/generators/fromObjectSchema/rbac/lambda/handler/template.ejs +0 -52
- package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/main.js +0 -83
- package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/template.ejs +0 -111
- package/src/generators/fromObjectSchema/rbac/lambda/yaml/template.ejs +0 -6
- package/src/generators/fromObjectSchema/rbac/lambda/yaml/yaml.js +0 -109
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/template.ejs +0 -29
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/yaml.js +0 -201
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/handler.js +0 -76
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -150
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -194
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -138
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -178
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/main.js +0 -61
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/yaml.js +0 -139
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/sqs.js +0 -61
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/template.ejs +0 -126
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/main.js +0 -56
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/snsInSqs.js +0 -64
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/template.ejs +0 -43
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/snsOut.js +0 -68
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/template.ejs +0 -29
- package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/yaml.js +0 -238
- package/src/generators/fromObjectSchema/relationship/create/action/handler/handler.js +0 -76
- package/src/generators/fromObjectSchema/relationship/create/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/apiTemplate.ejs +0 -134
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/invTemplate.ejs +0 -120
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
- package/src/generators/fromObjectSchema/relationship/create/action/mainFunction/main.js +0 -60
- package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsInSqs.js +0 -77
- package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/yaml.js +0 -140
- package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/sqs.js +0 -61
- package/src/generators/fromObjectSchema/relationship/create/complete/handler/sqs/template.ejs +0 -126
- package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/main.js +0 -56
- package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/snsInSqs.js +0 -63
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/template.ejs +0 -43
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/snsOut.js +0 -67
- package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/template.ejs +0 -29
- package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/yaml.js +0 -241
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/handler.js +0 -76
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -133
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/invTemplate.ejs +0 -118
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -167
- package/src/generators/fromObjectSchema/relationship/delete/action/mainFunction/main.js +0 -60
- package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsInSqs.js +0 -77
- package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/yaml.js +0 -138
- package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/sqs.js +0 -61
- package/src/generators/fromObjectSchema/relationship/delete/complete/handler/sqs/template.ejs +0 -126
- package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/main.js +0 -56
- package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/snsInSqs.js +0 -65
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/snsOut.js +0 -69
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/template.ejs +0 -23
- package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/yaml.js +0 -235
- package/src/generators/fromObjectSchema/relationship/get/action/handler/handler.js +0 -76
- package/src/generators/fromObjectSchema/relationship/get/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/apiTemplate.ejs +0 -134
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -175
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/invTemplate.ejs +0 -119
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -160
- package/src/generators/fromObjectSchema/relationship/get/action/mainFunction/main.js +0 -59
- package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsInSqs.js +0 -77
- package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/yaml.js +0 -139
- package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/sqs.js +0 -62
- package/src/generators/fromObjectSchema/relationship/get/complete/handler/sqs/template.ejs +0 -127
- package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/main.js +0 -57
- package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/snsInSqs.js +0 -65
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/template.ejs +0 -44
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/snsOut.js +0 -70
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/relationship/index.js +0 -164
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/template.ejs +0 -29
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/yaml.js +0 -204
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/handler.js +0 -76
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -152
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -195
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -140
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -179
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/main.js +0 -61
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsInSqs.js +0 -76
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/template.ejs +0 -16
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/yaml.js +0 -138
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/sqs.js +0 -61
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/template.ejs +0 -126
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/main.js +0 -60
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/snsInSqs.js +0 -65
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/template.ejs +0 -43
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/snsOut.js +0 -69
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/template.ejs +0 -29
- package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/yaml.js +0 -234
- package/src/generators/fromObjectSchema/relationship/update/action/handler/handler.js +0 -77
- package/src/generators/fromObjectSchema/relationship/update/action/handler/template.ejs +0 -9
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/apiTemplate.ejs +0 -131
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -173
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/invTemplate.ejs +0 -117
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -166
- package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/main.js +0 -62
- package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/request.json +0 -1
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/request.json +0 -3
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsInSqs.js +0 -85
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromObjectSchema/relationship/update/action/sns-out/request.json +0 -3
- package/src/generators/fromObjectSchema/relationship/update/action/sns-out/snsOut.js +0 -69
- package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/request.json +0 -3
- package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/template.ejs +0 -17
- package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/yaml.js +0 -139
- package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/request.json +0 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/sqs.js +0 -61
- package/src/generators/fromObjectSchema/relationship/update/complete/handler/sqs/template.ejs +0 -128
- package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/main.js +0 -56
- package/src/generators/fromObjectSchema/relationship/update/complete/mainFunction/request.json +0 -1
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/request.json +0 -3
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/snsInSqs.js +0 -64
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/request.json +0 -3
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/snsOut.js +0 -59
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/template.ejs +0 -8
- package/src/generators/fromObjectSchema/roleNameConfig/roleNameConfig.js +0 -77
- package/src/generators/fromObjectSchema/textTag/index.js +0 -58
- package/src/generators/fromObjectSchema/textTag/systemText/systemText.js +0 -148
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/handler.js +0 -66
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateApi.ejs +0 -84
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/templateWebSocket.ejs +0 -66
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/main.js +0 -58
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/template.ejs +0 -18
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/yaml.js +0 -91
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/handler.js +0 -0
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/template.ejs +0 -0
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/main.js +0 -45
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/template.ejs +0 -82
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/template.ejs +0 -0
- package/src/generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/yaml.js +0 -0
- package/src/generators/fromPlugIn/byConfig/handler/handler.js +0 -55
- package/src/generators/fromPlugIn/byConfig/handler/templateAwaitingStep.ejs +0 -105
- package/src/generators/fromPlugIn/byConfig/handler/templatePaginated.ejs +0 -137
- package/src/generators/fromPlugIn/byConfig/mainFunction/main.js +0 -54
- package/src/generators/fromPlugIn/byConfig/sns-sqs/queueNoTopic.ejs +0 -40
- package/src/generators/fromPlugIn/byConfig/sns-sqs/snsSqs.js +0 -56
- package/src/generators/fromPlugIn/byConfig/sns-sqs/snsTemplate.ejs +0 -55
- package/src/generators/fromPlugIn/byConfig/sns-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/fromPlugIn/byConfig/yaml/template.ejs +0 -43
- package/src/generators/fromPlugIn/byConfig/yaml/yaml.js +0 -47
- package/src/generators/fromPlugIn/firstFlowStep/handler/handler.js +0 -58
- package/src/generators/fromPlugIn/firstFlowStep/handler/templateApi.ejs +0 -84
- package/src/generators/fromPlugIn/firstFlowStep/handler/templateDsq.ejs +0 -105
- package/src/generators/fromPlugIn/firstFlowStep/handler/templateInv.ejs +0 -53
- package/src/generators/fromPlugIn/firstFlowStep/mainFunction/main.js +0 -67
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/dsqTemplate.ejs +0 -40
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/queueNtopic.js +0 -54
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/snsTemplate.ejs +0 -55
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/sqsTemplate.ejs +0 -40
- package/src/generators/fromPlugIn/firstFlowStep/topicOut/topicOut.js +0 -48
- package/src/generators/fromPlugIn/firstFlowStep/yaml/template.ejs +0 -40
- package/src/generators/fromPlugIn/firstFlowStep/yaml/yaml.js +0 -47
- package/src/generators/fromPlugIn/index.js +0 -518
- package/src/generators/other/generateAuthYml/template.ejs +0 -18
- package/src/generators/other/generateAuthYml/yaml.js +0 -49
- package/src/generators/other/index.js +0 -41
- package/src/generators/resourceYamlComponent/dynamodb/defaultDynamoDbTable.js +0 -145
- package/src/generators/resourceYamlComponent/dynamodb/generateDynamoPerLink.js +0 -108
- package/src/generators/resourceYamlComponent/dynamodb/mainResourcePerObjectSchemaData.js +0 -166
- package/src/generators/resourceYamlComponent/dynamodb/template.ejs +0 -23
- package/src/generators/resourceYamlComponent/filterGenerateResource/filter.js +0 -125
- package/src/generators/resourceYamlComponent/index.js +0 -96
- package/src/generators/resourceYamlComponent/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -92
- package/src/generators/resourceYamlComponent/sns-in-sqs/request.json +0 -4
- package/src/generators/resourceYamlComponent/sns-in-sqs/snsAndSqsPerActionData.js +0 -86
- package/src/generators/resourceYamlComponent/sns-in-sqs/snsTemplate.ejs +0 -56
- package/src/generators/resourceYamlComponent/sns-in-sqs/sqsTemplate.ejs +0 -40
- package/src/generators/resourceYamlComponent/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -66
- package/src/generators/resourceYamlComponent/sns-out/request.json +0 -3
- package/src/generators/resourceYamlComponent/sns-out/snsOut.js +0 -80
- package/src/generators/resourceYamlComponent/sns-out/template.ejs +0 -10
- package/src/generators/roles/index.js +0 -31
- package/src/generators/roles/roleNameConfig/roleNameConfig.js +0 -181
- package/src/generators/roles/roleNameConfig/template.ejs +0 -14
- package/src/generators/roles/roleNameConfig/templateIntTesting.ejs +0 -31
- package/src/generators/roles/roleNameConfig/templateYaml.ejs +0 -10
- package/src/generators/roles/sharedResource/sharedResource.js +0 -103
- package/src/generators/roles/sharedResource/template.ejs +0 -33
- package/src/libs/Consts.js +0 -96
- package/src/libs/GenerateCodeLibs.js +0 -32
- package/src/libs/Libs.js +0 -585
- package/src/libs/Utils.js +0 -164
- package/src/libs/consts/functions.js +0 -96
- package/src/libs/consts/handlers.js +0 -30
- package/src/libs/consts/index.js +0 -6
- package/src/libs/consts/paths.js +0 -84
- package/src/libs/consts/resources.js +0 -48
- package/src/libs/consts/tags.js +0 -68
- package/src/libs/consts/topics.js +0 -67
- package/src/pipeline/fetchSchemas.js +0 -31
- package/src/pipeline/transformSchemas.js +0 -75
- package/src/pipeline/validateSources.js +0 -47
- package/src/pipeline/writeSources.js +0 -24
- package/src/sourceManager/CreateSource.js +0 -174
- /package/src/{generators/fromFlowSchema/events/generatedCode/index.js → codeGenerators/app/src/generatedCode/Flow/FlowEndpoints/.gitkeep} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessChangeRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/create/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/create/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessCreateRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/delete/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/delete/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessDeleteRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/get/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/get/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessGetRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessMoveRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/update/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationshipComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/update/action/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowRelationshipEndpoints/templates/relationship/ProcessUpdateRelationship_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/relationship/create/complete/functionYaml/request.json → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/.gitkeep} +0 -0
- /package/src/{generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ConfirmReserved_Main.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/CreateObject_Main.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/s3/ProcessS3File_Main.ejs} +0 -0
- /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
- /package/src/{generators/fromFlowSchema/statusTypes/statusField/sns/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusFieldSns_Yaml.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/statusField/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/statusField/CompleteStatusField_Main.ejs} +0 -0
- /package/src/{generators/fromPlugIn/byConfig/mainFunction/templateAwaitingStep.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_ByConfig_Awaiting_Main.ejs} +0 -0
- /package/src/{generators/fromPlugIn/byConfig/mainFunction/templatePaginated.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_ByConfig_Paginated_Main.ejs} +0 -0
- /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_PlugIn_Main.ejs} +0 -0
- /package/src/{generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/FlowStep_RecievePlugIn_Main.ejs} +0 -0
- /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig/awaitingSteps.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns/templateAwaitingStep.ejs} +0 -0
- /package/src/{generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/step/plugIns}/templateSendPlugin.ejs +0 -0
- /package/src/{generators/fromFlowSchema/events/ownTopic/sns-in/sqsTemplate.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/ProcessWebSocket_Yaml.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/webSocket/webSocket/dynamoDb/template.ejs → codeGenerators/app/src/generatedCode/Flow/FlowSchemas/templates/webSocket/WebSocketDynamoDb_Yaml.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/CheckTriggerCache_HdrSqs.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/ProcessTriggerCache_HdrSqs.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/ProcessTriggerCache_Main.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_HdrDsq.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_HdrSqs.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/Flow/_shared/triggerCache/TriggerCacheComplete_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/processLogicalPagination/handler/dsq/template.ejs → codeGenerators/app/src/generatedCode/ProcessLogical/templates/PaginateProcessLogical_HdrDsq.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/register/complete/handler/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_HdrSqs.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/register/complete/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/RegisterComplete_Main.ejs} +0 -0
- /package/src/{generators/fromFlowSchema/register/wbs/mainFunction/template.ejs → codeGenerators/app/src/generatedCode/SystemFlowSchemas/templates/register/Register_Main.ejs} +0 -0
- /package/src/{generators/fromObjectSchema/endpoint/resourceBeforeLogicalTemplate.ejs → codeGenerators/resource/sls_yaml/templates/crud/ResourceBeforeLogicalYaml.ejs} +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { middlewareHandler as middleware, validatorSchema } from '@izara_project/izara-middleware';
|
|
2
|
+
import { recordHandlerSharedLib } from '@izara_project/izara-core-library-record-handler';
|
|
3
|
+
import Logger from '@izara_project/izara-core-library-logger';
|
|
4
|
+
|
|
5
|
+
import findData from './FindData_Main.js';
|
|
6
|
+
|
|
7
|
+
// validate event properties in body.Message of sqs event
|
|
8
|
+
middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
|
|
9
|
+
|
|
10
|
+
// set schema for record.body.Message
|
|
11
|
+
const perRecordsValidatorSchema = {
|
|
12
|
+
type: 'object',
|
|
13
|
+
required: ['fieldName', 'objType', 'identifiers', 'overWriteCache'],
|
|
14
|
+
properties: {
|
|
15
|
+
fieldName: {
|
|
16
|
+
type: 'object'
|
|
17
|
+
},
|
|
18
|
+
objType: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
required: ['serviceTag', 'objectType'],
|
|
21
|
+
properties: {
|
|
22
|
+
serviceTag: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
enum: [process.env.iz_serviceTag]
|
|
25
|
+
},
|
|
26
|
+
objectType: validatorSchema.stringNotEmpty()
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
identifiers: {
|
|
30
|
+
type: 'object'
|
|
31
|
+
},
|
|
32
|
+
overWriteCache: {
|
|
33
|
+
type: 'boolean'
|
|
34
|
+
},
|
|
35
|
+
callingFlow: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: ''
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const main = middleware.wrap(async (event, context) => {
|
|
43
|
+
try {
|
|
44
|
+
let recordPromises = [];
|
|
45
|
+
|
|
46
|
+
await Promise.all(
|
|
47
|
+
event.Records.map(async record => {
|
|
48
|
+
let passOnProperties = [];
|
|
49
|
+
record._izContext.logger.debug('record ReceiveMsgOutHdrSqs', record);
|
|
50
|
+
|
|
51
|
+
await recordHandlerSharedLib.validateRecord(
|
|
52
|
+
record,
|
|
53
|
+
'FindDataHdrSqs',
|
|
54
|
+
perRecordsValidatorSchema
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
passOnProperties.push(record.body.Message.fieldName);
|
|
58
|
+
passOnProperties.push(record.body.Message.objType);
|
|
59
|
+
passOnProperties.push(record.body.Message.identifiers);
|
|
60
|
+
passOnProperties.push(record.body.Message.overWriteCache);
|
|
61
|
+
passOnProperties.push(record.body.Message.callingFlow);
|
|
62
|
+
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
|
63
|
+
|
|
64
|
+
let recordPromise = recordHandlerSharedLib.recordHandler(
|
|
65
|
+
record,
|
|
66
|
+
findData,
|
|
67
|
+
'FindDataHdrSqs',
|
|
68
|
+
passOnProperties
|
|
69
|
+
);
|
|
70
|
+
record._izContext.logger.debug('after recordPromise in handler');
|
|
71
|
+
recordPromises.push(recordPromise);
|
|
72
|
+
})
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
Logger.debug('before Promise.all(recordPromises) in handler');
|
|
76
|
+
try {
|
|
77
|
+
await Promise.all(recordPromises);
|
|
78
|
+
return event.Records;
|
|
79
|
+
} catch {
|
|
80
|
+
Logger.debug('Promise.all(recordPromises) in handler threw error');
|
|
81
|
+
}
|
|
82
|
+
Logger.debug('after Promise.all(recordPromises) in handler');
|
|
83
|
+
} catch (err) {
|
|
84
|
+
Logger.error('Unhandled Error, FindDataHdrSqs: ', err);
|
|
85
|
+
throw err;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import findDataSharedLib from '@izara_project/izara-core-library-find-data';
|
|
2
|
+
import graphSharedLib from '@izara_project/izara-core-library-graph-service';
|
|
3
|
+
import dynamodbSharedLib from '@izara_project/izara-core-library-dynamodb';
|
|
4
|
+
|
|
5
|
+
import { serviceConfig, identifiersObject as identifierObj } from '@izara_project/izara-core-library-service-schemas';
|
|
6
|
+
|
|
7
|
+
//(<additionalModule>)
|
|
8
|
+
//(</additionalModule>)
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* triggered from searchResult for each requiredData field per one identifiers
|
|
12
|
+
*/
|
|
13
|
+
async function _getValueFromDynamo(_izContext, fieldName, objType, identifiers, tableName, errorsFound, standardErrorParams, findDataSharedLib, dynamodbSharedLib, identifierObj) {
|
|
14
|
+
const identifiersBase = await identifierObj.identifiersBaseFromIdentifiers(_izContext, objType, identifiers);
|
|
15
|
+
_izContext.logger.debug('create identifiersBase from identifiers: ', identifiersBase);
|
|
16
|
+
|
|
17
|
+
const objInstanceBase = await dynamodbSharedLib.getItem(
|
|
18
|
+
_izContext,
|
|
19
|
+
await dynamodbSharedLib.tableName(_izContext, tableName),
|
|
20
|
+
identifiersBase
|
|
21
|
+
);
|
|
22
|
+
_izContext.logger.debug('objInstanceBase: ', objInstanceBase);
|
|
23
|
+
|
|
24
|
+
if (!objInstanceBase) {
|
|
25
|
+
errorsFound.push(`can't get data in dynamo by ${identifiersBase}`);
|
|
26
|
+
standardErrorParams.push(errorsFound);
|
|
27
|
+
await findDataSharedLib.completeFindDataMain(...standardErrorParams);
|
|
28
|
+
return { _error: 'FindData cannot get data in dynamo' };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!objInstanceBase.hasOwnProperty(fieldName)) {
|
|
32
|
+
errorsFound.push(`data in dynamoDB have no ${fieldName}`);
|
|
33
|
+
standardErrorParams.push(errorsFound);
|
|
34
|
+
await findDataSharedLib.completeFindDataMain(...standardErrorParams);
|
|
35
|
+
return { _error: 'Data have no fieldName' };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return { _value: objInstanceBase[fieldName] };
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default async function findData(
|
|
42
|
+
_izContext,
|
|
43
|
+
fieldName,
|
|
44
|
+
objType,
|
|
45
|
+
identifiers,
|
|
46
|
+
overWriteCache,
|
|
47
|
+
callingFlow,
|
|
48
|
+
|
|
49
|
+
//(<additionalParams>)
|
|
50
|
+
//(</additionalParams>)
|
|
51
|
+
) {
|
|
52
|
+
try {
|
|
53
|
+
_izContext.logger.debug('----- findData event params -----', {
|
|
54
|
+
fieldName: fieldName,
|
|
55
|
+
objType: objType,
|
|
56
|
+
identifiers: identifiers,
|
|
57
|
+
overWriteCache: overWriteCache,
|
|
58
|
+
callingFlow: callingFlow
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
let removeAttributes = [];
|
|
62
|
+
//(<removeAttributes>)
|
|
63
|
+
//(</removeAttributes>)
|
|
64
|
+
|
|
65
|
+
let deleteDataTableOnExpired = [];
|
|
66
|
+
|
|
67
|
+
let [findDataMainStatus, findDataId, findDataMain] = await findDataSharedLib.checkFindDataMainStatus(
|
|
68
|
+
_izContext,
|
|
69
|
+
fieldName,
|
|
70
|
+
objType,
|
|
71
|
+
identifiers,
|
|
72
|
+
callingFlow,
|
|
73
|
+
removeAttributes,
|
|
74
|
+
overWriteCache
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
_izContext.logger.debug('result after checkFindDataMainStatus is', {
|
|
78
|
+
findDataMainStatus: findDataMainStatus,
|
|
79
|
+
findDataId: findDataId,
|
|
80
|
+
findDataMain: findDataMain
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
if (findDataMainStatus != 'process') {
|
|
84
|
+
_izContext.logger.debug(`findDataMainStatus status isn't process :${findDataMainStatus}`);
|
|
85
|
+
return { returnResponse: 'Function FindData not process' };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
let errorsFound = [];
|
|
89
|
+
let standardErrorParams = [
|
|
90
|
+
_izContext,
|
|
91
|
+
fieldName,
|
|
92
|
+
objType,
|
|
93
|
+
identifiers,
|
|
94
|
+
null,
|
|
95
|
+
overWriteCache,
|
|
96
|
+
callingFlow,
|
|
97
|
+
'error'
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
<%- objectTypeBlocks %>
|
|
101
|
+
|
|
102
|
+
return { returnResponse: 'Function FindData Finish' };
|
|
103
|
+
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_izContext.logger.error('error FindDataMain: ', err);
|
|
106
|
+
throw err;
|
|
107
|
+
}
|
|
108
|
+
}
|
package/src/codeGenerators/app/src/generatedCode/FindData/templates/GetByStorage/getByDynamo.ejs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//(<beforeGetItem<%- objectType %><%- fieldName.fieldName %>>)
|
|
2
|
+
//(</beforeGetItem<%- objectType %><%- fieldName.fieldName %>>)
|
|
3
|
+
|
|
4
|
+
const _dynamo_<%- fieldName.fieldName %> = await _getValueFromDynamo(
|
|
5
|
+
_izContext,
|
|
6
|
+
'<%- fieldName.fieldName %>',
|
|
7
|
+
objType,
|
|
8
|
+
identifiers,
|
|
9
|
+
'<%- tableName %>',
|
|
10
|
+
errorsFound,
|
|
11
|
+
standardErrorParams,
|
|
12
|
+
findDataSharedLib,
|
|
13
|
+
dynamodbSharedLib,
|
|
14
|
+
identifierObj
|
|
15
|
+
);
|
|
16
|
+
if (_dynamo_<%- fieldName.fieldName %>._error) return { returnResponse: _dynamo_<%- fieldName.fieldName %>._error };
|
|
17
|
+
const dataValue = _dynamo_<%- fieldName.fieldName %>._value;
|
|
18
|
+
_izContext.logger.debug('dataValue: ', dataValue);
|
|
19
|
+
|
|
20
|
+
//(<afterGetItem<%- objectType %><%- fieldName.fieldName %>>)
|
|
21
|
+
//(</afterGetItem<%- objectType %><%- fieldName.fieldName %>>)
|
|
22
|
+
|
|
23
|
+
await findDataSharedLib.completeFindDataMain(
|
|
24
|
+
_izContext,
|
|
25
|
+
findDataMain.fieldName,
|
|
26
|
+
findDataMain.objType,
|
|
27
|
+
findDataMain.identifiers,
|
|
28
|
+
dataValue,
|
|
29
|
+
overWriteCache,
|
|
30
|
+
callingFlow,
|
|
31
|
+
'complete'
|
|
32
|
+
);
|
|
@@ -78,10 +78,10 @@ await findDataSharedLib.completeFindDataMain(
|
|
|
78
78
|
);
|
|
79
79
|
|
|
80
80
|
<%_ function createNameTagBefore(objectType, fieldName){
|
|
81
|
-
return `//(<beforeGetNode${objectType}${fieldName}>)
|
|
82
|
-
|
|
81
|
+
return `//(<beforeGetNode${objectType}${fieldName.fieldName}>)
|
|
82
|
+
//(</beforeGetNode${objectType}${fieldName.fieldName}>)`
|
|
83
83
|
} _%>
|
|
84
84
|
<%_ function createNameTagAfter(objectType, fieldName){
|
|
85
|
-
return `//(<afterGetNode${objectType}${fieldName}>)
|
|
86
|
-
|
|
87
|
-
} _%>
|
|
85
|
+
return `//(<afterGetNode${objectType}${fieldName.fieldName}>)
|
|
86
|
+
//(</afterGetNode${objectType}${fieldName.fieldName}>)`
|
|
87
|
+
} _%>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import fs from 'fs/promises';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
import ejs from 'ejs';
|
|
5
|
+
import { processFunctionName, processMainFileName, upperFirst } from '../_shared/shared/flowNaming.js';
|
|
6
|
+
import { EVENT_HANDLERS } from '../_shared/events/registry.js';
|
|
7
|
+
import { getGeneratedCodeConfigs } from '../_shared/shared/flowSelection.js';
|
|
8
|
+
|
|
9
|
+
const CRUD_ACTIONS = ['Create', 'Update', 'Delete', 'Get'];
|
|
10
|
+
const CRUD_ASYNC_ACTIONS = ['Create', 'Update', 'Delete'];
|
|
11
|
+
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = path.dirname(__filename);
|
|
14
|
+
|
|
15
|
+
export async function generateEndpointsFlow(allSchemas, options) {
|
|
16
|
+
console.log(' [EndpointsGenerator] Generating CRUD Endpoint Flows...');
|
|
17
|
+
const baseOutputDir = path.join(options.outputPath, 'app', 'src', 'generatedCode');
|
|
18
|
+
const templateDir = path.join(__dirname, 'templates');
|
|
19
|
+
|
|
20
|
+
let generatedCount = 0;
|
|
21
|
+
|
|
22
|
+
// We only generate CRUD if there's at least one applicable object
|
|
23
|
+
const hasApplicableObject = (allSchemas.objects || []).some(
|
|
24
|
+
obj => obj.generatedBy === 'userGenerated' || obj.generatedBy === 'systemGenerated'
|
|
25
|
+
);
|
|
26
|
+
if (!hasApplicableObject) return;
|
|
27
|
+
|
|
28
|
+
const sharedTemplates = {
|
|
29
|
+
sqs: await fs.readFile(path.join(__dirname, '..', '_shared', 'handlers', 'FlowHandler_HdrSqs.ejs'), 'utf-8'),
|
|
30
|
+
api: await fs.readFile(path.join(__dirname, '..', '_shared', 'handlers', 'FlowHandler_HdrApi.ejs'), 'utf-8'),
|
|
31
|
+
inv: await fs.readFile(path.join(__dirname, '..', '_shared', 'handlers', 'FlowHandler_HdrInv.ejs'), 'utf-8'),
|
|
32
|
+
wbsMain: await fs.readFile(path.join(__dirname, '..', 'FlowSchemas', 'templates', 'endpoint', 'FlowMain_Wbs.ejs'), 'utf-8').catch(() => ''),
|
|
33
|
+
endpointHdrWbs: await fs.readFile(path.join(__dirname, '..', 'FlowSchemas', 'templates', 'endpoint', 'FlowEndpoint_HdrWbs.ejs'), 'utf-8').catch(() => '')
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// We need to pass a mock flows array to getGeneratedCodeConfigs if it expects it
|
|
37
|
+
// Since we are decoupling, we will just use allSchemas.flows for custom logic filtering
|
|
38
|
+
const customFlows = allSchemas.flows || [];
|
|
39
|
+
|
|
40
|
+
for (const action of CRUD_ACTIONS) {
|
|
41
|
+
const isAsync = CRUD_ASYNC_ACTIONS.includes(action);
|
|
42
|
+
const upperAction = upperFirst(action);
|
|
43
|
+
const flowOutputDir = path.join(baseOutputDir, 'FlowEndpoints', upperAction, 'source');
|
|
44
|
+
await fs.mkdir(flowOutputDir, { recursive: true });
|
|
45
|
+
|
|
46
|
+
const mainFileName = processMainFileName(action);
|
|
47
|
+
const processFunction = processFunctionName(action);
|
|
48
|
+
|
|
49
|
+
// Mock flow object for registry handlers if needed
|
|
50
|
+
const mockFlow = {
|
|
51
|
+
flowTag: action,
|
|
52
|
+
event: isAsync ? ['ownTopic'] : ['lambdaSyncInv', 'lambdaSyncApi']
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const generateCode = getGeneratedCodeConfigs(customFlows, action, { includeFlowTag: true });
|
|
56
|
+
|
|
57
|
+
// 1. Generate Main Logic File
|
|
58
|
+
const mainTemplatePath = path.join(templateDir, 'crud', `${action}Endpoint_Main.ejs`);
|
|
59
|
+
let mainTemplateStr;
|
|
60
|
+
try {
|
|
61
|
+
mainTemplateStr = await fs.readFile(mainTemplatePath, 'utf-8');
|
|
62
|
+
} catch (err) {
|
|
63
|
+
console.warn(` [EndpointsGenerator] Warning: Main template not found for ${action}.`);
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const mainContent = ejs.render(mainTemplateStr, {
|
|
68
|
+
flowTag: action,
|
|
69
|
+
upperCaseFlowTag: upperAction,
|
|
70
|
+
topicArn: `${upperAction}_In`,
|
|
71
|
+
generateCode: generateCode,
|
|
72
|
+
flow: mockFlow,
|
|
73
|
+
inTagConfig: null
|
|
74
|
+
});
|
|
75
|
+
await fs.writeFile(path.join(flowOutputDir, `${mainFileName}.js`), mainContent, 'utf-8');
|
|
76
|
+
generatedCount++;
|
|
77
|
+
|
|
78
|
+
// 2. Generate BeforeLogical Main Logic File if needed
|
|
79
|
+
const beforeLogicalConfigs = generateCode.filter(c => c.codeHookTag === 'beforeLogical');
|
|
80
|
+
if (beforeLogicalConfigs.length > 0) {
|
|
81
|
+
const beforeLogicalTemplateStr = await fs.readFile(
|
|
82
|
+
path.join(templateDir, 'FlowEndpointBeforeLogical_Main.ejs'),
|
|
83
|
+
'utf-8'
|
|
84
|
+
);
|
|
85
|
+
const beforeLogicalFileName = `${upperAction}BeforeLogical_Main`;
|
|
86
|
+
const beforeLogicalContent = ejs.render(beforeLogicalTemplateStr, {
|
|
87
|
+
flowTag: action,
|
|
88
|
+
upperCaseFlowTag: upperAction,
|
|
89
|
+
generateCode: generateCode,
|
|
90
|
+
flow: mockFlow,
|
|
91
|
+
inTagConfig: null
|
|
92
|
+
});
|
|
93
|
+
await fs.writeFile(path.join(flowOutputDir, `${beforeLogicalFileName}.js`), beforeLogicalContent, 'utf-8');
|
|
94
|
+
generatedCount++;
|
|
95
|
+
|
|
96
|
+
// BeforeLogical SQS Handler
|
|
97
|
+
const sqsContent = ejs.render(sharedTemplates.sqs, {
|
|
98
|
+
flowTag: action,
|
|
99
|
+
flowStepName: '',
|
|
100
|
+
mainFileName: beforeLogicalFileName,
|
|
101
|
+
functionName: `${action}BeforeLogicalMain`,
|
|
102
|
+
queueName: `${action}BeforeLogicalHdrSqs`
|
|
103
|
+
});
|
|
104
|
+
await fs.writeFile(path.join(flowOutputDir, `${upperAction}BeforeLogical_HdrSqs.js`), sqsContent, 'utf-8');
|
|
105
|
+
generatedCount++;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// 3. Generate Handlers based on event array using Registry
|
|
109
|
+
for (const ev of mockFlow.event) {
|
|
110
|
+
const handlerGenerator = EVENT_HANDLERS[ev];
|
|
111
|
+
if (handlerGenerator) {
|
|
112
|
+
await handlerGenerator(mockFlow, '', flowOutputDir, mainFileName, sharedTemplates, generateCode);
|
|
113
|
+
generatedCount++;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
console.log(` [EndpointsGenerator] Generated ${generatedCount} files for CRUD Endpoints.`);
|
|
119
|
+
}
|
|
@@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
|
|
|
15
15
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { objectHash as hash } from '@izara_project/izara-shared-core';
|
|
18
|
+
import { objectHash as hash, identifierUuid } from '@izara_project/izara-shared-core';
|
|
19
19
|
import dynamodbSharedLib from '@izara_project/izara-core-library-dynamodb';
|
|
20
20
|
import asyncFlowSharedLib from '@izara_project/izara-core-library-asynchronous-flow';
|
|
21
21
|
import {
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
|
|
31
31
|
const { createObjType, firstLetterUpperCase } = utils;
|
|
32
32
|
|
|
33
|
-
import {
|
|
33
|
+
import { <%- flowTag %>MainLogical } from './Process<%- upperCaseFlowTag %>_Main.js';
|
|
34
34
|
|
|
35
35
|
//(<optionalRequire>)
|
|
36
36
|
//(</optionalRequire>)
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Handles callback after beforeLogical phase — verifies awaitingStep then proceeds to
|
|
39
|
+
* Handles callback after beforeLogical phase — verifies awaitingStep then proceeds to <%- flowTag %>MainLogical
|
|
40
40
|
* @param {Object} _izContext - Context object with logger
|
|
41
41
|
* @param {Object} requestParams - { fieldNames, relationships[] }
|
|
42
42
|
* @param {Object} callingFlowConfig - Calling flow configuration
|
|
43
43
|
* @returns {Promise<Object>}
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
export default async function <%- flowTag %>BeforeLogicalMain(
|
|
46
46
|
_izContext,
|
|
47
47
|
requestParams,
|
|
48
48
|
flowTag,
|
|
49
49
|
callingFlowConfig = {}
|
|
50
50
|
) {
|
|
51
51
|
try {
|
|
52
|
-
_izContext.logger.debug('<%-
|
|
52
|
+
_izContext.logger.debug('<%- flowTag %>BeforeLogicalMain:', {
|
|
53
53
|
requestParams,
|
|
54
54
|
flowTag,
|
|
55
55
|
callingFlowConfig
|
|
@@ -62,24 +62,19 @@ import { <%= action %>MainLogical } from './<%= functionName %>_Main.js';
|
|
|
62
62
|
|
|
63
63
|
const identifiers = {};
|
|
64
64
|
for (const fieldName of objectSchemas.identifierFieldNames) {
|
|
65
|
-
<%_ if (action === 'create') { _%>
|
|
66
65
|
if (requestParams.returnRequestParams.fieldNames?.hasOwnProperty(fieldName)) {
|
|
67
66
|
identifiers[fieldName] = requestParams.returnRequestParams.fieldNames[fieldName];
|
|
68
67
|
}
|
|
69
|
-
<%_ } else if (action === 'update') { _%>
|
|
70
|
-
if (requestParams.returnRequestParams.objInstanceFull?.identifiers?.hasOwnProperty(fieldName)) {
|
|
71
|
-
identifiers[fieldName] = requestParams.returnRequestParams.objInstanceFull.identifiers[fieldName];
|
|
72
|
-
}
|
|
73
|
-
<%_ } else if (action === 'delete') { _%>
|
|
74
|
-
if (requestParams.returnRequestParams.identifiers?.hasOwnProperty(fieldName)) {
|
|
75
|
-
identifiers[fieldName] = requestParams.returnRequestParams.identifiers[fieldName];
|
|
76
|
-
}
|
|
77
|
-
<%_ } _%>
|
|
78
68
|
}
|
|
79
69
|
_izContext.logger.debug('identifiers:::: ', identifiers);
|
|
70
|
+
|
|
80
71
|
// build parentFlowId
|
|
72
|
+
<%_ if (flowTag === 'Create') { _%>
|
|
81
73
|
const parentFlowId = identifierUuid();
|
|
82
|
-
|
|
74
|
+
<%_ } else { _%>
|
|
75
|
+
const parentFlowId = hash(identifiers);
|
|
76
|
+
<%_ } _%>
|
|
77
|
+
|
|
83
78
|
// ── Verify + remove awaitingStep ──────────────────────────────────────────
|
|
84
79
|
const awaitingStepId = asyncFlowSharedLib.createAwaitingStepId(
|
|
85
80
|
parentFlowId,
|
|
@@ -55,7 +55,7 @@ const PREFIX = {
|
|
|
55
55
|
* @param {Object} beforeLogicalResults - Results from beforeLogical
|
|
56
56
|
* @returns {Promise<Object>} Result with objType, objInstanceFull, relationships, status, errorsFound
|
|
57
57
|
*/
|
|
58
|
-
export async function
|
|
58
|
+
export async function <%- flowTag %>MainLogical(
|
|
59
59
|
_izContext,
|
|
60
60
|
requestParams,
|
|
61
61
|
callingFlowConfig = {},
|
|
@@ -398,7 +398,7 @@ export async function createMainLogical(
|
|
|
398
398
|
* @param {Object} callingFlowConfig - Calling flow configuration
|
|
399
399
|
* @returns {Promise<Object>}
|
|
400
400
|
*/
|
|
401
|
-
export default async function
|
|
401
|
+
export default async function <%- flowTag %>(
|
|
402
402
|
_izContext,
|
|
403
403
|
requestParams,
|
|
404
404
|
callingFlowConfig = {}
|
|
@@ -484,7 +484,7 @@ export default async function createMain(
|
|
|
484
484
|
_izContext.logger.debug('errorsFound::', errorsFound);
|
|
485
485
|
|
|
486
486
|
if (errorsFound.length > 0)
|
|
487
|
-
return await
|
|
487
|
+
return await <%- flowTag %>MainLogical(
|
|
488
488
|
_izContext,
|
|
489
489
|
requestParams,
|
|
490
490
|
callingFlowConfig,
|
|
@@ -517,7 +517,7 @@ export default async function createMain(
|
|
|
517
517
|
|
|
518
518
|
// ── beforeLogical phase check ─────────────────────────────────────────────
|
|
519
519
|
<%_
|
|
520
|
-
const groupedByObjType =
|
|
520
|
+
const groupedByObjType = generateCode
|
|
521
521
|
.filter(c => c.codeHookTag === 'beforeLogical')
|
|
522
522
|
.reduce((acc, config) => {
|
|
523
523
|
const key = config.objType.objectType;
|
|
@@ -648,7 +648,7 @@ export default async function createMain(
|
|
|
648
648
|
return acc;
|
|
649
649
|
}, {});
|
|
650
650
|
|
|
651
|
-
return await
|
|
651
|
+
return await <%- flowTag %>MainLogical(
|
|
652
652
|
_izContext,
|
|
653
653
|
requestParams,
|
|
654
654
|
callingFlowConfig,
|
|
@@ -662,7 +662,7 @@ export default async function createMain(
|
|
|
662
662
|
//(</beforeCreateMainLogical>)
|
|
663
663
|
|
|
664
664
|
// ── No beforeLogical → proceed directly to logical ────────────────────────
|
|
665
|
-
return await
|
|
665
|
+
return await <%- flowTag %>MainLogical(
|
|
666
666
|
_izContext,
|
|
667
667
|
requestParams,
|
|
668
668
|
callingFlowConfig
|
|
@@ -45,7 +45,7 @@ const { TOPIC_NAME_GENERATE_CODE } = consts;
|
|
|
45
45
|
* @param {Object} beforeLogicalResults - Results from beforeLogical phase
|
|
46
46
|
* @returns {Promise<Object>}
|
|
47
47
|
*/
|
|
48
|
-
export async function
|
|
48
|
+
export async function <%- flowTag %>MainLogical(
|
|
49
49
|
_izContext,
|
|
50
50
|
requestParams,
|
|
51
51
|
callingFlowConfig = {},
|
|
@@ -149,7 +149,7 @@ export async function deleteMainLogical(
|
|
|
149
149
|
* @param {Object} callingFlowConfig - Calling flow configuration
|
|
150
150
|
* @returns {Promise<Object>}
|
|
151
151
|
*/
|
|
152
|
-
export default async function
|
|
152
|
+
export default async function <%- flowTag %>(
|
|
153
153
|
_izContext,
|
|
154
154
|
requestParams,
|
|
155
155
|
callingFlowConfig = {}
|
|
@@ -193,7 +193,7 @@ export default async function deleteMain(
|
|
|
193
193
|
|
|
194
194
|
// ── beforeLogical phase check ─────────────────────────────────────────────
|
|
195
195
|
<%_
|
|
196
|
-
const groupedByObjType =
|
|
196
|
+
const groupedByObjType = generateCode
|
|
197
197
|
.filter(c => c.codeHookTag === 'beforeLogical')
|
|
198
198
|
.reduce((acc, config) => {
|
|
199
199
|
const key = config.objType.objectType;
|
|
@@ -323,7 +323,7 @@ export default async function deleteMain(
|
|
|
323
323
|
return acc;
|
|
324
324
|
}, {});
|
|
325
325
|
|
|
326
|
-
return await
|
|
326
|
+
return await <%- flowTag %>MainLogical(
|
|
327
327
|
_izContext,
|
|
328
328
|
requestParams,
|
|
329
329
|
callingFlowConfig,
|
|
@@ -337,7 +337,7 @@ export default async function deleteMain(
|
|
|
337
337
|
//(</beforeDeleteMainLogical>)
|
|
338
338
|
|
|
339
339
|
// ── No beforeLogical → proceed directly to logical ────────────────────────
|
|
340
|
-
return await
|
|
340
|
+
return await <%- flowTag %>MainLogical(
|
|
341
341
|
_izContext,
|
|
342
342
|
requestParams,
|
|
343
343
|
callingFlowConfig
|
|
@@ -55,7 +55,7 @@ import { sns } from '@izara_project/izara-core-library-external-request';
|
|
|
55
55
|
* @param {Object} callingFlowConfig - Calling flow configuration
|
|
56
56
|
* @returns {Promise<Object>} Collected get result
|
|
57
57
|
*/
|
|
58
|
-
export default async function
|
|
58
|
+
export default async function <%- flowTag %>(
|
|
59
59
|
_izContext,
|
|
60
60
|
requestParams,
|
|
61
61
|
callingFlowConfig = {}
|
|
@@ -49,7 +49,7 @@ import { sns, lambda } from '@izara_project/izara-core-library-external-request'
|
|
|
49
49
|
* @param {Object} beforeLogicalResults - Results from beforeLogical phase
|
|
50
50
|
* @returns {Promise<Object>}
|
|
51
51
|
*/
|
|
52
|
-
export async function
|
|
52
|
+
export async function <%- flowTag %>MainLogical(
|
|
53
53
|
_izContext,
|
|
54
54
|
requestParams,
|
|
55
55
|
callingFlowConfig = {},
|
|
@@ -327,7 +327,7 @@ export async function updateMainLogical(
|
|
|
327
327
|
* @param {Object} callingFlowConfig - Calling flow configuration
|
|
328
328
|
* @returns {Promise<Object>}
|
|
329
329
|
*/
|
|
330
|
-
export default async function
|
|
330
|
+
export default async function <%- flowTag %>(
|
|
331
331
|
_izContext,
|
|
332
332
|
requestParams,
|
|
333
333
|
callingFlowConfig = {}
|
|
@@ -354,7 +354,7 @@ export default async function updateMain(
|
|
|
354
354
|
|
|
355
355
|
// ── beforeLogical phase check ─────────────────────────────────────────────
|
|
356
356
|
<%_
|
|
357
|
-
const groupedByObjType =
|
|
357
|
+
const groupedByObjType = generateCode
|
|
358
358
|
.filter(c => c.codeHookTag === 'beforeLogical')
|
|
359
359
|
.reduce((acc, config) => {
|
|
360
360
|
const key = config.objType.objectType;
|
|
@@ -484,7 +484,7 @@ export default async function updateMain(
|
|
|
484
484
|
return acc;
|
|
485
485
|
}, {});
|
|
486
486
|
|
|
487
|
-
return await
|
|
487
|
+
return await <%- flowTag %>MainLogical(
|
|
488
488
|
_izContext,
|
|
489
489
|
requestParams,
|
|
490
490
|
callingFlowConfig,
|
|
@@ -498,7 +498,7 @@ export default async function updateMain(
|
|
|
498
498
|
//(</beforeUpdateMainLogical>)
|
|
499
499
|
|
|
500
500
|
// ── No beforeLogical → proceed directly to logical ────────────────────────
|
|
501
|
-
return await
|
|
501
|
+
return await <%- flowTag %>MainLogical(
|
|
502
502
|
_izContext,
|
|
503
503
|
requestParams,
|
|
504
504
|
callingFlowConfig
|