@izara_project/izara-core-generate-service-code 1.0.45 → 1.0.47
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/REFACTOR_PLAN.md +172 -0
- package/fix_array.js +11 -0
- package/fix_imports.js +41 -0
- package/fix_upper.js +38 -0
- package/index.js +1 -1
- package/jsconfig.json +3 -7
- package/package.json +8 -8
- package/src/generateCode.js +11 -199
- package/src/generateResources/IntTest/generateTests/generateTemplate.js +3 -3
- package/src/generateResources.js +1 -1
- package/src/generateTests.js +2 -2
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/template.ejs +14 -0
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateIntTesting.ejs +31 -0
- package/src/generators/fromExternalService/externalServiceComponent/functionNameConfig/templateYaml.ejs +10 -0
- package/src/generators/fromExternalService/externalServiceComponent/index.js +69 -0
- package/src/generators/fromFlowSchema/events/eventBridge/functionYaml/yaml.js +168 -0
- package/src/generators/fromFlowSchema/events/eventBridge/handler/inv/inv.js +74 -0
- package/src/generators/fromFlowSchema/events/eventBridge/index.js +16 -0
- package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/main.js +77 -0
- package/src/generators/fromFlowSchema/events/eventBridge/mainFunction/template.ejs +59 -0
- package/src/generators/fromFlowSchema/events/extTopic/index.js +18 -0
- package/src/generators/fromFlowSchema/events/extTopic/process/functionYaml/yaml.js +159 -0
- package/src/generators/fromFlowSchema/events/extTopic/process/handler/handler.js +68 -0
- package/src/generators/fromFlowSchema/events/extTopic/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromFlowSchema/events/extTopic/sns-out/snsOut.js +76 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/functionYaml/yaml.js +88 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/handler/handler.js +69 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncApi/index.js +14 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/functionYaml/yaml.js +75 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/handler/handler.js +65 -0
- package/src/generators/fromFlowSchema/events/lambdaSyncInv/index.js +14 -0
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/functionYaml/yaml.js +176 -0
- package/src/generators/fromFlowSchema/events/ownTopic/endpoint/handler/handler.js +95 -0
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/handler/handler.js +66 -0
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/handler/template.ejs +110 -0
- package/src/generators/fromFlowSchema/events/ownTopic/flowSchema/mainFunction/main.js +65 -0
- package/src/generators/fromFlowSchema/events/ownTopic/index.js +32 -0
- package/src/generators/fromFlowSchema/events/ownTopic/sns-out/snsOut.js +77 -0
- package/src/generators/fromFlowSchema/events/registry.js +6 -0
- package/src/generators/fromFlowSchema/events/s3/flowSchemaMainFunction/main.js +121 -0
- package/src/generators/fromFlowSchema/events/s3/index.js +81 -0
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/template.ejs +13 -0
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/functionYaml/yaml.js +140 -0
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/handler/handler.js +65 -0
- package/src/generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/template.ejs +42 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/template.ejs +16 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/functionYaml/yaml.js +133 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/handler/handler.js +66 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObject/mainFunction/main.js +65 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/template.ejs +13 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/functionYaml/yaml.js +139 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/handler/handler.js +68 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/mainFunction/main.js +65 -0
- package/src/generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/template.ejs +46 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +14 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/functionYaml/yaml.js +157 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/handler/handler.js +65 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/mainFunction/main.js +64 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/template.ejs +42 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +10 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/functionYaml/yaml.js +164 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/handler/handler.js +66 -0
- package/src/generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/template.ejs +50 -0
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/template.ejs +21 -0
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/functionYml/HdrS3/yaml.js +156 -0
- package/src/generators/fromFlowSchema/events/s3/upload/processFile/queue/s3Template.ejs +56 -0
- package/src/generators/fromFlowSchema/events/s3/upload/relate/sns-out/snsOut.js +70 -0
- package/src/generators/fromFlowSchema/flowSchemaMainFunction/main.js +124 -0
- package/src/generators/fromFlowSchema/flowStep/firstFlowStep/templateResource.ejs +56 -0
- package/src/generators/fromFlowSchema/flowStep/flowStep.js +516 -0
- package/src/generators/fromFlowSchema/index.js +203 -0
- package/src/generators/fromFlowSchema/register/complete/functionYaml/yaml.js +127 -0
- package/src/generators/fromFlowSchema/register/complete/handler/handler.js +61 -0
- package/src/generators/fromFlowSchema/register/complete/handler/template.ejs +85 -0
- package/src/generators/fromFlowSchema/register/dynamoDB/register.js +74 -0
- package/src/generators/fromFlowSchema/register/index.js +50 -0
- package/src/generators/fromFlowSchema/register/sns-in/snsIn.js +59 -0
- package/src/generators/fromFlowSchema/register/sns-in/template.ejs +42 -0
- package/src/generators/fromFlowSchema/register/subscriptionOutAll/subscriptionOutAll.js +84 -0
- package/src/generators/fromFlowSchema/register/subscriptionOutAll/template.ejs +10 -0
- package/src/generators/fromFlowSchema/register/wbs/functionYaml/yaml.js +114 -0
- package/src/generators/fromFlowSchema/register/wbs/handler/handler.js +63 -0
- package/src/generators/fromFlowSchema/statusTypes/registry.js +2 -0
- package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/template.ejs +18 -0
- package/src/generators/fromFlowSchema/statusTypes/statusField/functionYaml/yaml.js +169 -0
- package/src/generators/fromFlowSchema/statusTypes/statusField/handler/handler.js +68 -0
- package/src/generators/fromFlowSchema/statusTypes/statusField/index.js +22 -0
- package/src/generators/fromFlowSchema/statusTypes/statusField/mainFunction/main.js +67 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/template.ejs +18 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/functionYaml/yaml.js +154 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/handler/handler.js +73 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/checkTriggerCacheComplete/mainFunction/main.js +75 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/index.js +41 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/template.ejs +18 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/functionYaml/yaml.js +159 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/handler/handler.js +74 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/processTriggerCache/mainFunction/main.js +68 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/dsq.js +148 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/dsq/template.ejs +17 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/sqs.js +148 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/functionYaml/sqs/template.ejs +17 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/dsq/dsq.js +69 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/handler/sqs/sqs.js +69 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheComplete/mainFunction/main.js +72 -0
- package/src/generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/template.ejs +46 -0
- package/src/generators/fromFlowSchema/webSocket/index.js +39 -0
- package/src/generators/fromFlowSchema/webSocket/webSocket/connect/functionYaml/yaml.js +89 -0
- package/src/generators/fromFlowSchema/webSocket/webSocket/connect/handler/handler.js +55 -0
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/WebSocketTaskData.js +74 -0
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/template.ejs +28 -0
- package/src/generators/fromFlowSchema/webSocket/webSocket/dynamoDb/ttlDynamoTemplate.ejs +29 -0
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/functionYaml/yaml.js +146 -0
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/handler/handler.js +61 -0
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/mainFunction/main.js +53 -0
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/sqs.js +108 -0
- package/src/generators/fromFlowSchema/webSocket/webSocketComplete/sqs/template.ejs +40 -0
- package/src/generators/fromObjectSchema/endpoint/handler/api.js +55 -0
- package/src/generators/fromObjectSchema/endpoint/handler/beforeLogical.js +56 -0
- package/src/generators/fromObjectSchema/endpoint/handler/dsq.js +55 -0
- package/src/generators/fromObjectSchema/endpoint/handler/inv.js +55 -0
- package/src/generators/fromObjectSchema/endpoint/handler/sqs.js +55 -0
- package/src/generators/fromObjectSchema/endpoint/index.js +290 -0
- package/src/generators/fromObjectSchema/endpoint/main/beforeLogical/beforeLogical.js +54 -0
- package/src/generators/fromObjectSchema/endpoint/main/beforeLogical/template.ejs +163 -0
- package/src/generators/fromObjectSchema/endpoint/main/create/create.js +52 -0
- package/src/generators/fromObjectSchema/endpoint/main/create/template.ejs +673 -0
- package/src/generators/fromObjectSchema/endpoint/main/delete/delete.js +49 -0
- package/src/generators/fromObjectSchema/endpoint/main/delete/template.ejs +349 -0
- package/src/generators/fromObjectSchema/endpoint/main/get/get.js +49 -0
- package/src/generators/fromObjectSchema/endpoint/main/update/template.ejs +509 -0
- package/src/generators/fromObjectSchema/endpoint/main/update/update.js +50 -0
- package/src/generators/fromObjectSchema/endpoint/resource.js +72 -0
- package/src/generators/fromObjectSchema/endpoint/yaml.js +308 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/handler/handler.js +63 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/mainFunction/template.ejs +302 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/snsOut.js +72 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/yaml/template.ejs +17 -0
- package/src/generators/fromObjectSchema/endpointComplete/create/yaml/yaml.js +126 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/handler/handler.js +68 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/handler/template.ejs +122 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/sns-out/snsOut.js +69 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/endpointComplete/delete/yaml/yaml.js +124 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/handler/handler.js +68 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/handler/template.ejs +122 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/sns-out/snsOut.js +69 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/yaml/template.ejs +17 -0
- package/src/generators/fromObjectSchema/endpointComplete/get/yaml/yaml.js +127 -0
- package/src/generators/fromObjectSchema/endpointComplete/index.js +80 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/handler/handler.js +68 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/handler/template.ejs +122 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/mainFunction/template.ejs +218 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/sns-out/snsOut.js +66 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/yaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/endpointComplete/update/yaml/yaml.js +127 -0
- package/src/generators/fromObjectSchema/findData/findDataYaml/findDataYaml.js +204 -0
- package/src/generators/fromObjectSchema/findData/findDataYaml/template.ejs +10 -0
- package/src/generators/fromObjectSchema/findData/index.js +70 -0
- package/src/generators/fromObjectSchema/index.js +134 -0
- package/src/generators/fromObjectSchema/processLogical/index.js +50 -0
- package/src/generators/fromObjectSchema/processLogical/yaml/template.ejs +10 -0
- package/src/generators/fromObjectSchema/processLogical/yaml/yaml.js +200 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/dsqYaml/dsqYaml.js +51 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/index.js +62 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/dsq.js +189 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/dsq/template.ejs +10 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/sqs.js +198 -0
- package/src/generators/fromObjectSchema/processLogicalPagination/yaml/sqs/template.ejs +11 -0
- package/src/generators/fromObjectSchema/rbac/index.js +68 -0
- package/src/generators/fromObjectSchema/rbac/lambda/handler/handler.js +72 -0
- package/src/generators/fromObjectSchema/rbac/lambda/mainFunction/main.js +83 -0
- package/src/generators/fromObjectSchema/rbac/lambda/yaml/yaml.js +109 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/template.ejs +29 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/functionYaml/yaml.js +201 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/handler.js +76 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +150 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +194 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +138 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +178 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/main.js +61 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/mainFunction/template.ejs +394 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/functionYaml/yaml.js +139 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/template.ejs +143 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/template.ejs +43 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/snsOut.js +68 -0
- package/src/generators/fromObjectSchema/relationship/changeRelationship/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/template.ejs +29 -0
- package/src/generators/fromObjectSchema/relationship/create/action/functionYaml/yaml.js +238 -0
- package/src/generators/fromObjectSchema/relationship/create/action/handler/handler.js +76 -0
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/apiTemplate.ejs +134 -0
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/dsqTemplate.ejs +176 -0
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/invTemplate.ejs +120 -0
- package/src/generators/fromObjectSchema/relationship/create/action/handler/templateByHandler/sqsTemplate.ejs +160 -0
- package/src/generators/fromObjectSchema/relationship/create/action/mainFunction/main.js +60 -0
- package/src/generators/fromObjectSchema/relationship/create/action/mainFunction/template.ejs +440 -0
- package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/create/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/functionYaml/yaml.js +140 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/mainFunction/template.ejs +144 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/template.ejs +43 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/snsOut.js +67 -0
- package/src/generators/fromObjectSchema/relationship/create/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/template.ejs +29 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/functionYaml/yaml.js +241 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/handler.js +76 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/apiTemplate.ejs +133 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/dsqTemplate.ejs +176 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/invTemplate.ejs +118 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/handler/templateByHandler/sqsTemplate.ejs +167 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/mainFunction/main.js +60 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/mainFunction/template.ejs +356 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/functionYaml/yaml.js +138 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/mainFunction/template.ejs +126 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/snsOut.js +69 -0
- package/src/generators/fromObjectSchema/relationship/delete/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/template.ejs +23 -0
- package/src/generators/fromObjectSchema/relationship/get/action/functionYaml/yaml.js +235 -0
- package/src/generators/fromObjectSchema/relationship/get/action/handler/handler.js +76 -0
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/apiTemplate.ejs +134 -0
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/dsqTemplate.ejs +175 -0
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/invTemplate.ejs +119 -0
- package/src/generators/fromObjectSchema/relationship/get/action/handler/templateByHandler/sqsTemplate.ejs +160 -0
- package/src/generators/fromObjectSchema/relationship/get/action/mainFunction/main.js +59 -0
- package/src/generators/fromObjectSchema/relationship/get/action/mainFunction/template.ejs +332 -0
- package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/get/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/functionYaml/yaml.js +139 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/mainFunction/template.ejs +99 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/template.ejs +44 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/snsOut.js +70 -0
- package/src/generators/fromObjectSchema/relationship/get/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/relationship/index.js +164 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/template.ejs +29 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/functionYaml/yaml.js +204 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/handler.js +76 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +152 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +195 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +140 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +179 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/main.js +61 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/mainFunction/template.ejs +388 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/template.ejs +16 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/functionYaml/yaml.js +138 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/main.js +60 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/mainFunction/template.ejs +146 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/template.ejs +43 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/snsOut.js +69 -0
- package/src/generators/fromObjectSchema/relationship/moveRelationship/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/template.ejs +29 -0
- package/src/generators/fromObjectSchema/relationship/update/action/functionYaml/yaml.js +234 -0
- package/src/generators/fromObjectSchema/relationship/update/action/handler/handler.js +77 -0
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/apiTemplate.ejs +131 -0
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/dsqTemplate.ejs +173 -0
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/invTemplate.ejs +117 -0
- package/src/generators/fromObjectSchema/relationship/update/action/handler/templateByHandler/sqsTemplate.ejs +166 -0
- package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/main.js +62 -0
- package/src/generators/fromObjectSchema/relationship/update/action/mainFunction/template.ejs +406 -0
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/fromObjectSchema/relationship/update/action/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromObjectSchema/relationship/update/action/sns-out/snsOut.js +69 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/template.ejs +17 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/functionYaml/yaml.js +139 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/template.ejs +43 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/snsOut.js +59 -0
- package/src/generators/fromObjectSchema/relationship/update/complete/sns-out/template.ejs +8 -0
- package/src/generators/fromObjectSchema/textTag/index.js +58 -0
- package/src/generators/fromObjectSchema/textTag/systemText/systemText.js +148 -0
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/main.js +59 -0
- package/src/generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/yaml/yaml.js +88 -0
- package/src/generators/fromPlugIn/byConfig/mainFunction/main.js +55 -0
- package/src/generators/fromPlugIn/byConfig/mainFunction/templateAwaitingStep.ejs +123 -0
- package/src/generators/fromPlugIn/byConfig/sns-sqs/queueNoTopic.ejs +40 -0
- package/src/generators/fromPlugIn/byConfig/sns-sqs/snsSqs.js +56 -0
- package/src/generators/fromPlugIn/byConfig/sns-sqs/snsTemplate.ejs +55 -0
- package/src/generators/fromPlugIn/byConfig/sns-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/fromPlugIn/firstFlowStep/mainFunction/template.ejs +72 -0
- package/src/generators/fromPlugIn/firstFlowStep/mainFunction/templateByConfig/awaitingSteps.ejs +57 -0
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/dsqTemplate.ejs +40 -0
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/queueNtopic.js +54 -0
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/snsTemplate.ejs +55 -0
- package/src/generators/fromPlugIn/firstFlowStep/queueNtopic/sqsTemplate.ejs +40 -0
- package/src/generators/fromPlugIn/firstFlowStep/topicOut/topicOut.js +48 -0
- package/src/generators/fromPlugIn/index.js +528 -0
- package/src/generators/other/index.js +41 -0
- package/src/generators/resourceYamlComponent/dynamodb/template.ejs +23 -0
- package/src/generators/resourceYamlComponent/index.js +96 -0
- package/src/generators/resourceYamlComponent/sns-in-sqs/snsTemplate.ejs +56 -0
- package/src/generators/resourceYamlComponent/sns-in-sqs/sqsTemplate.ejs +40 -0
- package/src/generators/resourceYamlComponent/sns-out/snsOut.js +80 -0
- package/src/generators/roles/index.js +31 -0
- package/src/generators/roles/roleNameConfig/template.ejs +14 -0
- package/src/generators/roles/roleNameConfig/templateIntTesting.ejs +31 -0
- package/src/generators/roles/roleNameConfig/templateYaml.ejs +10 -0
- package/src/generators/roles/sharedResource/sharedResource.js +103 -0
- package/src/libs/Consts.js +40 -377
- package/src/libs/Utils.js +4 -2
- package/src/libs/consts/functions.js +96 -0
- package/src/libs/consts/handlers.js +30 -0
- package/src/libs/consts/index.js +6 -0
- package/src/libs/consts/paths.js +84 -0
- package/src/libs/consts/resources.js +48 -0
- package/src/libs/consts/tags.js +68 -0
- package/src/libs/consts/topics.js +67 -0
- package/src/pipeline/fetchSchemas.js +31 -0
- package/src/pipeline/transformSchemas.js +75 -0
- package/src/pipeline/validateSources.js +47 -0
- package/src/pipeline/writeSources.js +24 -0
- package/src/generateCode/generateFlowSchema/GenerateCodeFlowSchema.js +0 -224
- package/src/generateCode/generateFlowSchema/event/eventBridgeComponent/functionYaml/data.js +0 -164
- package/src/generateCode/generateFlowSchema/event/eventBridgeComponent/handler/inv/data.js +0 -70
- package/src/generateCode/generateFlowSchema/event/eventBridgeComponent/index.js +0 -15
- package/src/generateCode/generateFlowSchema/event/eventBridgeComponent/mainFunction/data.js +0 -67
- package/src/generateCode/generateFlowSchema/event/eventBridgeComponent/mainFunction/template.ejs +0 -59
- package/src/generateCode/generateFlowSchema/event/extTopicComponent/index.js +0 -17
- package/src/generateCode/generateFlowSchema/event/extTopicComponent/process/functionYaml/data.js +0 -154
- package/src/generateCode/generateFlowSchema/event/extTopicComponent/process/handler/data.js +0 -65
- package/src/generateCode/generateFlowSchema/event/extTopicComponent/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateFlowSchema/event/extTopicComponent/sns-out/data.js +0 -76
- package/src/generateCode/generateFlowSchema/event/lambdaSyncApiComponent/functionYaml/data.js +0 -83
- package/src/generateCode/generateFlowSchema/event/lambdaSyncApiComponent/handler/data.js +0 -65
- package/src/generateCode/generateFlowSchema/event/lambdaSyncApiComponent/index.js +0 -13
- package/src/generateCode/generateFlowSchema/event/lambdaSyncInvComponent/functionYaml/data.js +0 -71
- package/src/generateCode/generateFlowSchema/event/lambdaSyncInvComponent/handler/data.js +0 -63
- package/src/generateCode/generateFlowSchema/event/lambdaSyncInvComponent/index.js +0 -13
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/endpointComponent/functionYaml/data.js +0 -172
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/endpointComponent/handler/data.js +0 -92
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent/handler/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent/handler/template.ejs +0 -110
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent/mainFunction/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/index.js +0 -33
- package/src/generateCode/generateFlowSchema/event/ownTopicComponent/sns-out/data.js +0 -77
- package/src/generateCode/generateFlowSchema/event/s3Component/flowSchemaMainFunction/data.js +0 -119
- package/src/generateCode/generateFlowSchema/event/s3Component/index.js +0 -80
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/functionYaml/data.js +0 -129
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/functionYaml/template.ejs +0 -17
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/handler/data.js +0 -63
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/queue/template.ejs +0 -45
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObject/functionYaml/data.js +0 -117
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObject/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObject/handler/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObject/mainFunction/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/functionYaml/data.js +0 -122
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/functionYaml/template.ejs +0 -17
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/handler/data.js +0 -66
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/mainFunction/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/sns-sqs/template.ejs +0 -49
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/functionYaml/data.js +0 -139
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/functionYaml/template.ejs +0 -18
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/handler/data.js +0 -63
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/mainFunction/data.js +0 -63
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/queue/template.ejs +0 -45
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/functionYaml/data.js +0 -146
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -14
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/handler/data.js +0 -64
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/sqs/template.ejs +0 -53
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/processFile/functionYml/HdrS3/data.js +0 -140
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/processFile/functionYml/HdrS3/template.ejs +0 -25
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/processFile/queue/s3Template.ejs +0 -59
- package/src/generateCode/generateFlowSchema/event/s3Component/upload/relate/sns-out/data.js +0 -70
- package/src/generateCode/generateFlowSchema/flowSchemaMainFunction/data.js +0 -122
- package/src/generateCode/generateFlowSchema/flowStep/firstFlowStep/templateResource.ejs +0 -59
- package/src/generateCode/generateFlowSchema/flowStep/flowStep.js +0 -505
- package/src/generateCode/generateFlowSchema/registerComponent/complete/functionYaml/data.js +0 -122
- package/src/generateCode/generateFlowSchema/registerComponent/complete/handler/data.js +0 -57
- package/src/generateCode/generateFlowSchema/registerComponent/complete/handler/template.ejs +0 -85
- package/src/generateCode/generateFlowSchema/registerComponent/dynamoDB/register.js +0 -69
- package/src/generateCode/generateFlowSchema/registerComponent/index.js +0 -50
- package/src/generateCode/generateFlowSchema/registerComponent/sns-in/data.js +0 -56
- package/src/generateCode/generateFlowSchema/registerComponent/sns-in/template.ejs +0 -45
- package/src/generateCode/generateFlowSchema/registerComponent/subscriptionOutAll/data.js +0 -83
- package/src/generateCode/generateFlowSchema/registerComponent/subscriptionOutAll/template.ejs +0 -13
- package/src/generateCode/generateFlowSchema/registerComponent/wbs/functionYaml/data.js +0 -111
- package/src/generateCode/generateFlowSchema/registerComponent/wbs/handler/data.js +0 -62
- package/src/generateCode/generateFlowSchema/statusType/statusFieldComponent/functionYaml/data.js +0 -151
- package/src/generateCode/generateFlowSchema/statusType/statusFieldComponent/functionYaml/template.ejs +0 -22
- package/src/generateCode/generateFlowSchema/statusType/statusFieldComponent/handler/data.js +0 -65
- package/src/generateCode/generateFlowSchema/statusType/statusFieldComponent/index.js +0 -21
- package/src/generateCode/generateFlowSchema/statusType/statusFieldComponent/mainFunction/data.js +0 -66
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +0 -136
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/template.ejs +0 -22
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +0 -71
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +0 -73
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/index.js +0 -40
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/processTriggerCache/functionYaml/data.js +0 -141
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/processTriggerCache/functionYaml/template.ejs +0 -22
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/processTriggerCache/handler/data.js +0 -72
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/processTriggerCache/mainFunction/data.js +0 -67
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/functionYaml/dsq/data.js +0 -130
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/functionYaml/dsq/template.ejs +0 -21
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/functionYaml/sqs/data.js +0 -130
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/functionYaml/sqs/template.ejs +0 -21
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/handler/dsq/data.js +0 -67
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/handler/sqs/data.js +0 -67
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +0 -70
- package/src/generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheQueue/template.ejs +0 -49
- package/src/generateCode/generateFlowSchema/webSocketComponent/index.js +0 -39
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocket/connect/functionYaml/data.js +0 -86
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocket/connect/handler/data.js +0 -52
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocket/dynamoDb/WebSocketTaskData.js +0 -75
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocket/dynamoDb/ttlDynamoTemplate.ejs +0 -32
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocketComplete/functionYaml/data.js +0 -140
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocketComplete/handler/data.js +0 -58
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocketComplete/mainFunction/data.js +0 -50
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocketComplete/sqs/data.js +0 -102
- package/src/generateCode/generateFlowSchema/webSocketComponent/webSocketComplete/sqs/template.ejs +0 -43
- package/src/generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/recievePlugIn/mainFunction/data.js +0 -58
- package/src/generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/recievePlugIn/yaml/data.js +0 -86
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/mainFunction/data.js +0 -57
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/mainFunction/templateAwaitingStep.ejs +0 -129
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/sns-sqs/data.js +0 -50
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/sns-sqs/queueNoTopic.ejs +0 -43
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/sns-sqs/snsTemplate.ejs +0 -58
- package/src/generateCode/generateFlowStepWithPlugIn/byConfig/sns-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/mainFunction/template.ejs +0 -71
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/mainFunction/templateByConfig/awaitingSteps.ejs +0 -59
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/queueNtopic/data.js +0 -50
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/queueNtopic/dsqTemplate.ejs +0 -43
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/queueNtopic/snsTemplate.ejs +0 -58
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/queueNtopic/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/topicOut/data.js +0 -45
- package/src/generateCode/generateFlowStepWithPlugIn/index(old).js +0 -290
- package/src/generateCode/generateFlowStepWithPlugIn/index.js +0 -522
- package/src/generateCode/generateInitialSetup/externalServiceComponent/functionNameConfig/template.ejs +0 -14
- package/src/generateCode/generateInitialSetup/externalServiceComponent/functionNameConfig/templateIntTesting.ejs +0 -31
- package/src/generateCode/generateInitialSetup/externalServiceComponent/functionNameConfig/templateYaml.ejs +0 -10
- package/src/generateCode/generateInitialSetup/externalServiceComponent/index.js +0 -69
- package/src/generateCode/generateOther/generateCodeOther.js +0 -41
- package/src/generateCode/generateRole/generateCodeRole.js +0 -31
- package/src/generateCode/generateRole/generateRoleNameConfig/template.ejs +0 -14
- package/src/generateCode/generateRole/generateRoleNameConfig/templateIntTesting.ejs +0 -31
- package/src/generateCode/generateRole/generateRoleNameConfig/templateYaml.ejs +0 -10
- package/src/generateCode/generateRole/generateSharedResource/data.js +0 -97
- package/src/generateCode/generateSchema/GenerateCodeSchema.js +0 -134
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/handler/data.js +0 -62
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/mainFunction/template.ejs +0 -308
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/sns-out/data.js +0 -69
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/yaml/data.js +0 -111
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/create/yaml/template.ejs +0 -21
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/handler/data.js +0 -62
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/handler/template.ejs +0 -125
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/sns-out/data.js +0 -69
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/yaml/data.js +0 -109
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/delete/yaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/handler/data.js +0 -62
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/handler/template.ejs +0 -125
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/sns-out/data.js +0 -69
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/yaml/data.js +0 -112
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/get/yaml/template.ejs +0 -21
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/index.js +0 -80
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/handler/data.js +0 -62
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/handler/template.ejs +0 -125
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/mainFunction/template.ejs +0 -199
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/sns-out/data.js +0 -66
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/yaml/data.js +0 -112
- package/src/generateCode/generateSchema/actionEndpointCompleteComponent/update/yaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/api/data.js +0 -55
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/api/request.json +0 -7
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/beforeLogical/data.js +0 -56
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/dsq/data.js +0 -55
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/dsq/request.json +0 -7
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/inv/data.js +0 -55
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/inv/request.json +0 -7
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/sqs/data.js +0 -55
- package/src/generateCode/generateSchema/actionEndpointComponent/handler/sqs/request.json +0 -7
- package/src/generateCode/generateSchema/actionEndpointComponent/index.js +0 -289
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/beforeLogical/data.js +0 -51
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/beforeLogical/template.ejs +0 -161
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/create/main/data.js +0 -49
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/create/main/template.ejs +0 -679
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/delete/main/data.js +0 -48
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/delete/main/template.ejs +0 -349
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/get/data.js +0 -48
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/update/main/data.js +0 -49
- package/src/generateCode/generateSchema/actionEndpointComponent/mainFunction/update/main/template.ejs +0 -486
- package/src/generateCode/generateSchema/actionEndpointComponent/resource/data.js +0 -72
- package/src/generateCode/generateSchema/actionEndpointComponent/yaml/data.js +0 -308
- package/src/generateCode/generateSchema/findDataComponent/findDataYaml/data.js +0 -195
- package/src/generateCode/generateSchema/findDataComponent/findDataYaml/template.ejs +0 -14
- package/src/generateCode/generateSchema/findDataComponent/index.js +0 -70
- package/src/generateCode/generateSchema/generateTextTag/index.js +0 -58
- package/src/generateCode/generateSchema/generateTextTag/systemText/data.js +0 -147
- package/src/generateCode/generateSchema/processLogicalComponent/index.js +0 -50
- package/src/generateCode/generateSchema/processLogicalComponent/yaml/data.js +0 -182
- package/src/generateCode/generateSchema/processLogicalComponent/yaml/template.ejs +0 -12
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/dsqYaml/data.js +0 -50
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/index.js +0 -62
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/yaml/dsq/data.js +0 -171
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/yaml/dsq/template.ejs +0 -12
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/yaml/sqs/data.js +0 -180
- package/src/generateCode/generateSchema/processLogicalPaginationComponent/yaml/sqs/template.ejs +0 -13
- package/src/generateCode/generateSchema/rbac/index.js +0 -68
- package/src/generateCode/generateSchema/rbac/lambda/handler/data.js +0 -69
- package/src/generateCode/generateSchema/rbac/lambda/mainFunction/data.js +0 -82
- package/src/generateCode/generateSchema/rbac/lambda/yaml/data.js +0 -106
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/data.js +0 -182
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/template.ejs +0 -33
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/handler/data.js +0 -73
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -153
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -197
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -141
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -181
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/mainFunction/data.js +0 -60
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/mainFunction/template.ejs +0 -400
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/functionYaml/data.js +0 -121
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/mainFunction/template.ejs +0 -150
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/sns-in-sqs/template.ejs +0 -46
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/sns-out/data.js +0 -65
- package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/data.js +0 -219
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/template.ejs +0 -33
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/handler/data.js +0 -73
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/handler/templateByHandler/apiTemplate.ejs +0 -137
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -179
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/handler/templateByHandler/invTemplate.ejs +0 -123
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/mainFunction/data.js +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/mainFunction/template.ejs +0 -445
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/functionYaml/data.js +0 -122
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/mainFunction/template.ejs +0 -151
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/sns-in-sqs/template.ejs +0 -46
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/sns-out/data.js +0 -64
- package/src/generateCode/generateSchema/relationshipPerActionComponent/create/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/data.js +0 -221
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/template.ejs +0 -33
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/handler/data.js +0 -73
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -136
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -179
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/handler/templateByHandler/invTemplate.ejs +0 -121
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -170
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/mainFunction/data.js +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/mainFunction/template.ejs +0 -353
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/functionYaml/data.js +0 -120
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/mainFunction/template.ejs +0 -142
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/sns-out/data.js +0 -66
- package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/data.js +0 -216
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/template.ejs +0 -27
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/handler/data.js +0 -73
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/handler/templateByHandler/apiTemplate.ejs +0 -137
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -178
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/handler/templateByHandler/invTemplate.ejs +0 -122
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/mainFunction/data.js +0 -58
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/mainFunction/template.ejs +0 -332
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/functionYaml/data.js +0 -121
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/mainFunction/template.ejs +0 -143
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/sns-in-sqs/template.ejs +0 -47
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/sns-out/data.js +0 -67
- package/src/generateCode/generateSchema/relationshipPerActionComponent/get/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/relationshipPerActionComponent/index.js +0 -164
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/data.js +0 -185
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/template.ejs +0 -33
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/handler/data.js +0 -73
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -155
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -198
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -143
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -182
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/mainFunction/data.js +0 -60
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/mainFunction/template.ejs +0 -395
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/functionYaml/data.js +0 -120
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/functionYaml/template.ejs +0 -20
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/mainFunction/data.js +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/mainFunction/template.ejs +0 -155
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/sns-in-sqs/template.ejs +0 -46
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/sns-out/data.js +0 -66
- package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/data.js +0 -215
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/template.ejs +0 -33
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/handler/data.js +0 -74
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/handler/templateByHandler/apiTemplate.ejs +0 -134
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -176
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/handler/templateByHandler/invTemplate.ejs +0 -120
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -169
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/mainFunction/data.js +0 -61
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/mainFunction/template.ejs +0 -402
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/sns-out/data.js +0 -69
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/complete/functionYaml/data.js +0 -121
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/complete/functionYaml/template.ejs +0 -21
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/complete/sns-in-sqs/template.ejs +0 -46
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/complete/sns-out/data.js +0 -59
- package/src/generateCode/generateSchema/relationshipPerActionComponent/update/complete/sns-out/template.ejs +0 -10
- package/src/generateCode/resourceYamlComponent/dynamodb/template.ejs +0 -29
- package/src/generateCode/resourceYamlComponent/index.js +0 -96
- package/src/generateCode/resourceYamlComponent/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/generateCode/resourceYamlComponent/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/generateCode/resourceYamlComponent/sns-out/data.js +0 -80
- /package/src/generateResources/IntTest/generateTests/events/{data.js → events.js} +0 -0
- /package/src/generateResources/IntTest/generateTests/pathIntTest/{data.js → pathIntTest.js} +0 -0
- /package/src/generateResources/IntTest/generateTests/tests/{data.js → tests.js} +0 -0
- /package/src/{generateCode/generateInitialSetup/externalServiceComponent/functionNameConfig/data.js → generators/fromExternalService/externalServiceComponent/functionNameConfig/functionNameConfig.js} +0 -0
- /package/src/{generateCode/generateInitialSetup/externalServiceComponent/lambdaRole/data.js → generators/fromExternalService/externalServiceComponent/lambdaRole/lambdaRole.js} +0 -0
- /package/src/{generateCode/generateInitialSetup → generators/fromExternalService}/externalServiceComponent/lambdaRole/template.ejs +0 -0
- /package/src/{generateCode/generateInitialSetup/externalServiceComponent/snsTopicSubscriptions/data.js → generators/fromExternalService/externalServiceComponent/snsTopicSubscriptions/snsTopicSubscriptions.js} +0 -0
- /package/src/{generateCode/generateInitialSetup → generators/fromExternalService}/externalServiceComponent/snsTopicSubscriptions/template.ejs +0 -0
- /package/src/{generateCode/generateInitialSetup/externalServiceComponent/tableNameConfig/data.js → generators/fromExternalService/externalServiceComponent/tableNameConfig/tableNameConfig.js} +0 -0
- /package/src/{generateCode/generateInitialSetup → generators/fromExternalService}/externalServiceComponent/tableNameConfig/template.ejs +0 -0
- /package/src/{generateCode/generateInitialSetup/GenerateCodeExternalService.js → generators/fromExternalService/index.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/eventBridgeComponent → generators/fromFlowSchema/events/eventBridge}/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/eventBridgeComponent → generators/fromFlowSchema/events/eventBridge}/handler/inv/request.json +0 -0
- /package/src/{generateCode/generateFlowSchema/event/eventBridgeComponent → generators/fromFlowSchema/events/eventBridge}/handler/inv/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/eventBridgeComponent → generators/fromFlowSchema/events/eventBridge}/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateFlowSchema/event/extTopicComponent → generators/fromFlowSchema/events/extTopic}/process/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/extTopicComponent → generators/fromFlowSchema/events/extTopic}/process/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/extTopicComponent/sns-in-sqs/data.js → generators/fromFlowSchema/events/extTopic/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/generatedCodeComponent → generators/fromFlowSchema/events/generatedCode}/index.js +0 -0
- /package/src/{generateCode/generateFlowSchema/event/lambdaSyncApiComponent → generators/fromFlowSchema/events/lambdaSyncApi}/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/lambdaSyncApiComponent → generators/fromFlowSchema/events/lambdaSyncApi}/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/lambdaSyncInvComponent → generators/fromFlowSchema/events/lambdaSyncInv}/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/lambdaSyncInvComponent → generators/fromFlowSchema/events/lambdaSyncInv}/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/endpointComponent → generators/fromFlowSchema/events/ownTopic/endpoint}/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/endpointComponent → generators/fromFlowSchema/events/ownTopic/endpoint}/handler/DsqHandlerTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/endpointComponent → generators/fromFlowSchema/events/ownTopic/endpoint}/handler/SqsHandlerTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent → generators/fromFlowSchema/events/ownTopic/flowSchema}/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent/functionYaml/data.js → generators/fromFlowSchema/events/ownTopic/flowSchema/functionYaml/yaml.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/flowSchemaComponent → generators/fromFlowSchema/events/ownTopic/flowSchema}/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent/sns-in/data.js → generators/fromFlowSchema/events/ownTopic/sns-in/snsIn.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/ownTopicComponent → generators/fromFlowSchema/events/ownTopic}/sns-in/sqsTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/flowSchemaMainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/confirmReserved/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/mainFunction/data.js → generators/fromFlowSchema/events/s3/upload/confirmReserved/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/confirmReserved/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/confirmReserved/queue/data.js → generators/fromFlowSchema/events/s3/upload/confirmReserved/queue/queue.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/createObject/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/createObject/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/createObjectComplete/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/createObjectComplete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/createObjectComplete/sns-sqs/data.js → generators/fromFlowSchema/events/s3/upload/createObjectComplete/sns-sqs/snsSqs.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/preSignUrl/createPreSignUrl/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/preSignUrl/createPreSignUrl/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/createPreSignUrl/queue/data.js → generators/fromFlowSchema/events/s3/upload/preSignUrl/createPreSignUrl/queue/queue.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/preSignUrl/reservedLimit/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/mainFunction/data.js → generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/preSignUrl/reservedLimit/sqs/data.js → generators/fromFlowSchema/events/s3/upload/preSignUrl/reservedLimit/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/processFile/handler/handlerS3/data.js → generators/fromFlowSchema/events/s3/upload/processFile/handler/handlerS3/handlerS3.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/processFile/handler/handlerS3/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/processFile/mainFunction/data.js → generators/fromFlowSchema/events/s3/upload/processFile/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/processFile/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/processFile/queue/dsqTemplatePath.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/processFile/queue/data.js → generators/fromFlowSchema/events/s3/upload/processFile/queue/queue.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component/upload/relate/S3/data.js → generators/fromFlowSchema/events/s3/upload/relate/S3/s3.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/upload/relate/S3/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/event/s3Component → generators/fromFlowSchema/events/s3}/websocket/dynamoDb/ReservedTableData.js +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowSchemaMainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowSchemaMainFunction/templateByStatusType/statusFieldTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowSchemaMainFunction/templateByStatusType/storedCacheTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowSchemaMainFunction/templateByStatusType/triggerCacheTemplate.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/afterPluginHook/handler/templateDsq.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/afterPluginHook/handler/templateSqs.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/afterPluginHook/templateMain.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/afterPluginHook/templateResource.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/afterPluginHook/templateYaml.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/firstFlowStep/templateHandler.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/firstFlowStep/templateMain.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/firstFlowStep/templateYaml.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/noPlugInHook/templateHandler.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/noPlugInHook/templateMain.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/noPlugInHook/templateResource.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema → generators/fromFlowSchema}/flowStep/noPlugInHook/templateYaml.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent → generators/fromFlowSchema/register}/complete/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent/complete/mainFunction/data.js → generators/fromFlowSchema/register/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent → generators/fromFlowSchema/register}/complete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent → generators/fromFlowSchema/register}/wbs/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent → generators/fromFlowSchema/register}/wbs/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent/wbs/mainFunction/data.js → generators/fromFlowSchema/register/wbs/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/registerComponent → generators/fromFlowSchema/register}/wbs/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/libs → generators/fromFlowSchema/shared}/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/libs/data.js → generators/fromFlowSchema/shared/wsCodeLibs.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/statusFieldComponent → generators/fromFlowSchema/statusTypes/statusField}/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/statusFieldComponent → generators/fromFlowSchema/statusTypes/statusField}/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/statusFieldComponent/sns/data.js → generators/fromFlowSchema/statusTypes/statusField/sns/sns.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/statusFieldComponent → generators/fromFlowSchema/statusTypes/statusField}/sns/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/checkTriggerCacheComplete/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/checkTriggerCacheComplete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/processTriggerCache/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/processTriggerCache/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/triggerCacheComplete/handler/dsq/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/triggerCacheComplete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent → generators/fromFlowSchema/statusTypes/triggerCache}/triggerCacheComplete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/statusType/triggerCacheComponent/triggerCacheQueue/data.js → generators/fromFlowSchema/statusTypes/triggerCache/triggerCacheQueue/queue.js} +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocket/connect/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocket/connect/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocket/dynamoDb/userUploadRecords.js +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocketComplete/functionYaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocketComplete/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocketComplete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowSchema/webSocketComponent → generators/fromFlowSchema/webSocket}/webSocketComplete/sqs/templateSub.ejs +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/handler/api/template.ejs → generators/fromObjectSchema/endpoint/handler/apiTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/handler/beforeLogical/template.ejs → generators/fromObjectSchema/endpoint/handler/beforeLogicalTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/handler/dsq/template.ejs → generators/fromObjectSchema/endpoint/handler/dsqTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/handler/inv/template.ejs → generators/fromObjectSchema/endpoint/handler/invTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/handler/sqs/template.ejs → generators/fromObjectSchema/endpoint/handler/sqsTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/mainFunction → generators/fromObjectSchema/endpoint/main}/get/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/resource/templateBeforeLogical.ejs → generators/fromObjectSchema/endpoint/resourceBeforeLogicalTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/resource/template.ejs → generators/fromObjectSchema/endpoint/resourceTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointComponent/yaml/template.ejs → generators/fromObjectSchema/endpoint/yamlTemplate.ejs} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent → generators/fromObjectSchema/endpointComplete}/create/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/create/mainFunction/data.js → generators/fromObjectSchema/endpointComplete/create/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/create/sns-in-sqs/data.js → generators/fromObjectSchema/endpointComplete/create/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/delete/mainFunction/data.js → generators/fromObjectSchema/endpointComplete/delete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent → generators/fromObjectSchema/endpointComplete}/delete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/delete/sns-in-sqs/data.js → generators/fromObjectSchema/endpointComplete/delete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/get/mainFunction/data.js → generators/fromObjectSchema/endpointComplete/get/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent → generators/fromObjectSchema/endpointComplete}/get/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/get/sns-in-sqs/data.js → generators/fromObjectSchema/endpointComplete/get/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/update/mainFunction/data.js → generators/fromObjectSchema/endpointComplete/update/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/actionEndpointCompleteComponent/update/sns-in-sqs/data.js → generators/fromObjectSchema/endpointComplete/update/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent → generators/fromObjectSchema/findData}/GetByStorage/getByDynamo.ejs +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent → generators/fromObjectSchema/findData}/GetByStorage/getByGraph.ejs +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent/handler/data.js → generators/fromObjectSchema/findData/handler/handler.js} +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent → generators/fromObjectSchema/findData}/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent/mainFunction/data.js → generators/fromObjectSchema/findData/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/findDataComponent → generators/fromObjectSchema/findData}/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalComponent/handler/data.js → generators/fromObjectSchema/processLogical/handler/handler.js} +0 -0
- /package/src/{generateCode/generateSchema/processLogicalComponent → generators/fromObjectSchema/processLogical}/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalComponent/mainFunction/data.js → generators/fromObjectSchema/processLogical/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/processLogicalComponent → generators/fromObjectSchema/processLogical}/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent → generators/fromObjectSchema/processLogicalPagination}/dsqYaml/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent/handler/dsq/data.js → generators/fromObjectSchema/processLogicalPagination/handler/dsq/dsq.js} +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent → generators/fromObjectSchema/processLogicalPagination}/handler/dsq/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent/handler/sqs/data.js → generators/fromObjectSchema/processLogicalPagination/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent → generators/fromObjectSchema/processLogicalPagination}/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent/mainFunction/data.js → generators/fromObjectSchema/processLogicalPagination/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/processLogicalPaginationComponent → generators/fromObjectSchema/processLogicalPagination}/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/rbac/dynamoDb/data.js → generators/fromObjectSchema/rbac/dynamoDb/dynamoDb.js} +0 -0
- /package/src/{generateCode/generateSchema → generators/fromObjectSchema}/rbac/lambda/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema → generators/fromObjectSchema}/rbac/lambda/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema → generators/fromObjectSchema}/rbac/lambda/yaml/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/changeRelationship/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/changeRelationship/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/changeRelationship/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/changeRelationship/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/mainFunction/data.js → generators/fromObjectSchema/relationship/changeRelationship/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/changeRelationship/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/create/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/create/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/functionYaml/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/handler/sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/create/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/create/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/create/complete/mainFunction/data.js → generators/fromObjectSchema/relationship/create/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/create/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/create/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/create/complete/sns-out/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/delete/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/delete/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/functionYaml/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/handler/sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/delete/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/delete/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/delete/complete/mainFunction/data.js → generators/fromObjectSchema/relationship/delete/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/delete/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/delete/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/delete/complete/sns-out/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/get/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/get/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/functionYaml/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/handler/sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/get/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/get/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/get/complete/mainFunction/data.js → generators/fromObjectSchema/relationship/get/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/get/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/get/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/get/complete/sns-out/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/moveRelationship/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/moveRelationship/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/moveRelationship/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/moveRelationship/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/moveRelationship/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/action/handler/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/action/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/action/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/update/action/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/update/action/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/action/sns-out/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/functionYaml/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/handler/sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/update/complete/handler/sqs/data.js → generators/fromObjectSchema/relationship/update/complete/handler/sqs/sqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/handler/sqs/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/update/complete/mainFunction/data.js → generators/fromObjectSchema/relationship/update/complete/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/mainFunction/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent/update/complete/sns-in-sqs/data.js → generators/fromObjectSchema/relationship/update/complete/sns-in-sqs/snsInSqs.js} +0 -0
- /package/src/{generateCode/generateSchema/relationshipPerActionComponent → generators/fromObjectSchema/relationship}/update/complete/sns-out/request.json +0 -0
- /package/src/{generateCode/generateSchema/roleNameConfig/data.js → generators/fromObjectSchema/roleNameConfig/roleNameConfig.js} +0 -0
- /package/src/{generateCode/generateSchema → generators/fromObjectSchema}/roleNameConfig/templateYaml.ejs +0 -0
- /package/src/{generateCode/generateSchema/generateTextTag → generators/fromObjectSchema/textTag}/systemText/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/recievePlugIn/handler/data.js → generators/fromPlugIn/afterFirstFlowStep/recievePlugIn/handler/handler.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/recievePlugIn/handler/templateApi.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/recievePlugIn/handler/templateWebSocket.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/recievePlugIn/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/recievePlugIn/yaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/sendPlugIn/handler/data.js → generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/handler/handler.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/sendPlugIn/handler/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/data.js → generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/sendPlugIn/mainFunction/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/afterFirstFlowStep/sendPlugIn/yaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/afterFirstFlowStep/sendPlugIn/yaml/data.js → generators/fromPlugIn/afterFirstFlowStep/sendPlugIn/yaml/yaml.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/byConfig/handler/data.js → generators/fromPlugIn/byConfig/handler/handler.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/byConfig/handler/templateAwaitingStep.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/byConfig/handler/templatePaginated.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/byConfig/mainFunction/templatePaginated.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/byConfig/yaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/byConfig/yaml/data.js → generators/fromPlugIn/byConfig/yaml/yaml.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/firstFlowStep/handler/data.js → generators/fromPlugIn/firstFlowStep/handler/handler.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/handler/templateApi.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/handler/templateDsq.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/handler/templateInv.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/handler/templateSqs.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/firstFlowStep/mainFunction/data.js → generators/fromPlugIn/firstFlowStep/mainFunction/main.js} +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/mainFunction/templateByConfig/templateSendPlugin.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn → generators/fromPlugIn}/firstFlowStep/yaml/template.ejs +0 -0
- /package/src/{generateCode/generateFlowStepWithPlugIn/firstFlowStep/yaml/data.js → generators/fromPlugIn/firstFlowStep/yaml/yaml.js} +0 -0
- /package/src/{generateCode/generateOther → generators/other}/generateAuthYml/template.ejs +0 -0
- /package/src/{generateCode/generateOther/generateAuthYml/data.js → generators/other/generateAuthYml/yaml.js} +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/dynamodb/defaultDynamoDbTable.js +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/dynamodb/generateDynamoPerLink.js +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/dynamodb/mainResourcePerObjectSchemaData.js +0 -0
- /package/src/{generateCode/resourceYamlComponent/filterGenerateResource/data.js → generators/resourceYamlComponent/filterGenerateResource/filter.js} +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-in-sqs/request.json +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-in-sqs/snsAndSqsPerActionData.js +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-out/request.json +0 -0
- /package/src/{generateCode → generators}/resourceYamlComponent/sns-out/template.ejs +0 -0
- /package/src/{generateCode/generateRole/generateRoleNameConfig/data.js → generators/roles/roleNameConfig/roleNameConfig.js} +0 -0
- /package/src/{generateCode/generateRole/generateSharedResource → generators/roles/sharedResource}/template.ejs +0 -0
- /package/src/{SourceManager → sourceManager}/CreateSource.js +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2020 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import { middlewareHandler as middleware, validatorSchema} from "@izara_project/izara-middleware";
|
|
21
|
-
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
22
|
-
import Logger from '@izara_project/izara-core-library-logger';
|
|
23
|
-
import { recordHandlerSharedLib } from '@izara_project/izara-core-library-record-handler';
|
|
24
|
-
|
|
25
|
-
//(<optionalRequire>)
|
|
26
|
-
//(</optionalRequire>)
|
|
27
|
-
|
|
28
|
-
import <%- functionName %> from './<%- firstLetterUpperCase(functionName) %>_Main.js';
|
|
29
|
-
|
|
30
|
-
middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
|
|
31
|
-
|
|
32
|
-
// validate event params in middleware before into function
|
|
33
|
-
let validator = {
|
|
34
|
-
type: "object",
|
|
35
|
-
required: [
|
|
36
|
-
'firstObject',
|
|
37
|
-
'secondObject',
|
|
38
|
-
'oldRelTypeAndDirection',
|
|
39
|
-
'newRelType',
|
|
40
|
-
],
|
|
41
|
-
properties: {
|
|
42
|
-
firstObject: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
required: ['objType', 'identifiers'],
|
|
45
|
-
properties: {
|
|
46
|
-
objType: {
|
|
47
|
-
type: 'object',
|
|
48
|
-
required: ['objectType', 'serviceTag'],
|
|
49
|
-
properties: {
|
|
50
|
-
serviceTag: validatorSchema.stringNotEmpty(),
|
|
51
|
-
objectType: validatorSchema.stringNotEmpty(),
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
identifiers: {
|
|
55
|
-
type: "object",
|
|
56
|
-
minProperties: 1
|
|
57
|
-
},
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
secondObject: {
|
|
61
|
-
type: 'object',
|
|
62
|
-
required: ['objType', 'identifiers'],
|
|
63
|
-
properties: {
|
|
64
|
-
objType: {
|
|
65
|
-
type: 'object',
|
|
66
|
-
required: ['objectType', 'serviceTag'],
|
|
67
|
-
properties: {
|
|
68
|
-
serviceTag: validatorSchema.stringNotEmpty(),
|
|
69
|
-
objectType: validatorSchema.stringNotEmpty(),
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
identifiers: {
|
|
73
|
-
type: "object",
|
|
74
|
-
minProperties: 1
|
|
75
|
-
},
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
oldRelTypeAndDirection: {
|
|
79
|
-
type: 'object',
|
|
80
|
-
required: ['relType', 'relationshipDirection'],
|
|
81
|
-
properties: {
|
|
82
|
-
relType: {
|
|
83
|
-
type: 'object',
|
|
84
|
-
required: ['serviceTag', 'relationshipTag'],
|
|
85
|
-
properties: {
|
|
86
|
-
serviceTag: validatorSchema.stringNotEmpty(),
|
|
87
|
-
relationshipTag: validatorSchema.stringNotEmpty(),
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
relationshipProperties: {
|
|
91
|
-
type: 'object',
|
|
92
|
-
},
|
|
93
|
-
relationshipDirection: {
|
|
94
|
-
type: 'string',
|
|
95
|
-
enum: ['from', 'to']
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
newRelType: {
|
|
101
|
-
type: 'object',
|
|
102
|
-
required: ['serviceTag', 'relationshipTag'],
|
|
103
|
-
properties: {
|
|
104
|
-
serviceTag: validatorSchema.stringNotEmpty(),
|
|
105
|
-
relationshipTag: validatorSchema.stringNotEmpty(),
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
settings: {
|
|
109
|
-
type: 'object'
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
//(<globalVariable>
|
|
116
|
-
//</globalVariable>)
|
|
117
|
-
|
|
118
|
-
// validate event params in middleware before into main function
|
|
119
|
-
validator = callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validator);
|
|
120
|
-
// if need to validate authorizer or additional params , add code to hook tag below
|
|
121
|
-
|
|
122
|
-
//(<afterValidateWith>)
|
|
123
|
-
//(</afterValidateWith>)
|
|
124
|
-
|
|
125
|
-
export const main = middleware.wrap(async (event, context, callback) => {
|
|
126
|
-
|
|
127
|
-
try {
|
|
128
|
-
|
|
129
|
-
let recordPromises = []; // final return
|
|
130
|
-
|
|
131
|
-
// loop each record and send to mainFunction
|
|
132
|
-
await Promise.all(event.Records.map(async record => { // promise.all for map() function
|
|
133
|
-
|
|
134
|
-
let passOnProperties = []
|
|
135
|
-
|
|
136
|
-
// --- validate message (and MessageAttributes)
|
|
137
|
-
await recordHandlerSharedLib.validateRecord(
|
|
138
|
-
record, // one record will send to mainFunction
|
|
139
|
-
"<%-firstLetterUpperCase(queueName) %>", // queue name that need to retry or send to dlq
|
|
140
|
-
validator, // schema for record.Message
|
|
141
|
-
// messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
// add argument (to invoke lambda) to passOnProperties[]
|
|
145
|
-
passOnProperties.push(record.body.Message)
|
|
146
|
-
passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message));
|
|
147
|
-
//(<afterPutParamIntoMainFunction>)
|
|
148
|
-
//(</afterPutParamIntoMainFunction>)
|
|
149
|
-
|
|
150
|
-
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
|
151
|
-
|
|
152
|
-
// call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
|
|
153
|
-
let recordPromise = recordHandlerSharedLib.recordHandler(
|
|
154
|
-
record, // one record will send to mainFunction
|
|
155
|
-
<%- functionName %> , // mainFunction that need to invoke.
|
|
156
|
-
"<%-firstLetterUpperCase(queueName) %>", // queue name that need to retry or send to dlq
|
|
157
|
-
passOnProperties, // all parameters that mainFunction needed.
|
|
158
|
-
);
|
|
159
|
-
record._izContext.logger.debug('after recordPromise in handler');
|
|
160
|
-
recordPromises.push(recordPromise); // push promise to recordPromises
|
|
161
|
-
})) //end record
|
|
162
|
-
|
|
163
|
-
Logger.debug('before Promise.all(recordPromises) in handler');
|
|
164
|
-
try {
|
|
165
|
-
await Promise.all(recordPromises); // await all promises
|
|
166
|
-
return event.Records // return all for local test
|
|
167
|
-
} catch {
|
|
168
|
-
Logger.debug('Promise.all(recordPromises) in handler threw error (at least one record did no resolve)');
|
|
169
|
-
}
|
|
170
|
-
Logger.debug('after Promise.all(recordPromises) in handler');
|
|
171
|
-
} catch (err) {
|
|
172
|
-
Logger.error('Unhandled Error, updateRelationshipHdrDsq:', err);
|
|
173
|
-
throw (err);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
<%_ function firstLetterUpperCase(text) {
|
|
177
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
178
|
-
} _%>
|
|
179
|
-
<%_ function firstLetterLowerCase(str) {
|
|
180
|
-
return str.charAt(0).toLowerCase() + str.slice(1)
|
|
181
|
-
} _%>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2020 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import path from 'path';
|
|
19
|
-
import { fileURLToPath } from 'url';
|
|
20
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
21
|
-
const __dirname = path.dirname(__filename);
|
|
22
|
-
|
|
23
|
-
import consts from '#libs/Consts.js';
|
|
24
|
-
import utils from '#libs/Utils.js';
|
|
25
|
-
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
26
|
-
|
|
27
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
28
|
-
utils;
|
|
29
|
-
|
|
30
|
-
const templatePath = path.join(__dirname, 'template.ejs');
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* receive objectSchema
|
|
34
|
-
* create data for hdrInv template
|
|
35
|
-
*
|
|
36
|
-
* @param {Object} objectSchema
|
|
37
|
-
* @return {{ templatePath, templateData, setting } }
|
|
38
|
-
*/
|
|
39
|
-
function data(_izContext, srcPath) {
|
|
40
|
-
const createSourceParams = createParamForCreateSource(srcPath);
|
|
41
|
-
return [createSourceParams];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function createParamForCreateSource(srcPath) {
|
|
45
|
-
let functionName = FUNCTION_NAME.changeRel;
|
|
46
|
-
return {
|
|
47
|
-
templatePath: templatePath,
|
|
48
|
-
templateData: {
|
|
49
|
-
functionName
|
|
50
|
-
},
|
|
51
|
-
setting: {
|
|
52
|
-
savePath: path.join(srcPath, SOURCE_PATH.relationshipPerAction),
|
|
53
|
-
saveFileName: `${upperCase(FUNCTION_NAME.changeRel)}_Main`,
|
|
54
|
-
fileExtension: '.js',
|
|
55
|
-
isAppend: false
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default data;
|
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2020 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import { objectHash as hash } from '@izara_project/izara-shared-core';
|
|
19
|
-
|
|
20
|
-
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
21
|
-
import lambdaSharedLib from "@izara_project/izara-core-library-lambda";
|
|
22
|
-
import snsSharedLib from "@izara_project/izara-core-library-sns";
|
|
23
|
-
import asyncFlowSharedLib from "@izara_project/izara-core-library-asynchronous-flow";
|
|
24
|
-
|
|
25
|
-
import { sns } from "@izara_project/izara-core-library-external-request";
|
|
26
|
-
|
|
27
|
-
import {
|
|
28
|
-
getObjectSchema,
|
|
29
|
-
utils,
|
|
30
|
-
serviceConfig,
|
|
31
|
-
consts,
|
|
32
|
-
relSchemaLib
|
|
33
|
-
} from '@izara_project/izara-core-library-service-schemas';
|
|
34
|
-
|
|
35
|
-
const { getRelationshipSchemaWithCache, getObjSchemaS3WithHierarchy } = getObjectSchema;
|
|
36
|
-
|
|
37
|
-
const { createLinkTypeId } = utils;
|
|
38
|
-
|
|
39
|
-
const { getGraphServiceTagWithCache } = serviceConfig;
|
|
40
|
-
|
|
41
|
-
const { findLinksByObjTypes } = relSchemaLib;
|
|
42
|
-
|
|
43
|
-
const {
|
|
44
|
-
PREFIX,
|
|
45
|
-
TOPIC_NAME_GENERATE_CODE,
|
|
46
|
-
TOPIC_NAME_GRAPH_HANDLER
|
|
47
|
-
} = consts;
|
|
48
|
-
|
|
49
|
-
import { consts as coreConsts } from '@izara_project/izara-core-library-core';
|
|
50
|
-
|
|
51
|
-
//(<optionalRequire>)
|
|
52
|
-
//(</optionalRequire>)
|
|
53
|
-
/**
|
|
54
|
-
* update relationship endpoint
|
|
55
|
-
*
|
|
56
|
-
* @param {Object} _izContext
|
|
57
|
-
* @param {CorrelationIds} _izContext.correlationIds - property of _izContext
|
|
58
|
-
* @param {Logger} _izContext.logger - property of _izContext
|
|
59
|
-
* @param {Object} requestParams - request params
|
|
60
|
-
* @param {Object} callingFlowConfig
|
|
61
|
-
*
|
|
62
|
-
* @returns {object} description of return value
|
|
63
|
-
*/
|
|
64
|
-
export default async function <%- functionName %> (
|
|
65
|
-
_izContext,
|
|
66
|
-
requestParams,
|
|
67
|
-
callingFlowConfig = {},
|
|
68
|
-
//(<additionalParams>)
|
|
69
|
-
//(</additionalParams>)
|
|
70
|
-
) {
|
|
71
|
-
try {
|
|
72
|
-
_izContext.logger.debug('<%- functionName %> _izContext: ', _izContext);
|
|
73
|
-
_izContext.logger.debug('<%- functionName %> requestParams: ', requestParams);
|
|
74
|
-
_izContext.logger.debug('<%- functionName %> callingFlowConfig: ', callingFlowConfig);
|
|
75
|
-
|
|
76
|
-
let originTimestamp = Date.now();
|
|
77
|
-
let changedByUserId = _izContext.correlationIds.get(coreConsts.BASE_USER_ID)
|
|
78
|
-
const {
|
|
79
|
-
firstObject,
|
|
80
|
-
secondObject,
|
|
81
|
-
oldRelTypeAndDirection,
|
|
82
|
-
newRelType,
|
|
83
|
-
//(<requestParamCreateRel>)
|
|
84
|
-
//(</requestParamCreateRel>)
|
|
85
|
-
} = requestParams;
|
|
86
|
-
|
|
87
|
-
let errorsFound = [];
|
|
88
|
-
|
|
89
|
-
//(<beforeValidateChangeRel>)
|
|
90
|
-
//(</beforeValidateChangeRel>).
|
|
91
|
-
// validate object and identifiers
|
|
92
|
-
async function validateIdentifiersExists(_izContext, objType, identifiersObject) {
|
|
93
|
-
|
|
94
|
-
const objTypeString = `objType:{ serviceTag:${objType.serviceTag}, objectType:${objType.objectType} }`;
|
|
95
|
-
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
96
|
-
|
|
97
|
-
if (!objectSchema) {
|
|
98
|
-
errorsFound.push(`validateIdentifiers, not found schema of ${objTypeString}`);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
for (const schemaIdentifier of objectSchema.identifiers) {
|
|
102
|
-
let identifierNames = schemaIdentifier.fieldNames || [schemaIdentifier.fieldName];
|
|
103
|
-
for (const identifierName of identifierNames) {
|
|
104
|
-
if (!identifiersObject.hasOwnProperty(identifierName)) {
|
|
105
|
-
errorsFound.push(`validateIdentifiers, ${objTypeString} property:${identifierName} not exists`);
|
|
106
|
-
} else {
|
|
107
|
-
if (
|
|
108
|
-
typeof (identifiersObject[identifierName]) !== "string" &&
|
|
109
|
-
typeof (identifiersObject[identifierName]) !== "number"
|
|
110
|
-
) {
|
|
111
|
-
errorsFound.push(`validateIdentifiers, ${objTypeString} property:${identifierName} should be string or number`);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
await validateIdentifiersExists(_izContext, firstObject.objType, firstObject.identifiers);
|
|
119
|
-
await validateIdentifiersExists(_izContext, secondObject.objType, secondObject.identifiers);
|
|
120
|
-
// finished validate object and identifiers
|
|
121
|
-
|
|
122
|
-
//(<afterValidateChangeRel>)
|
|
123
|
-
//(</afterValidateChangeRel>)
|
|
124
|
-
|
|
125
|
-
// check old relType canChangeToRelType
|
|
126
|
-
const oldRelationshipSchema = await getRelationshipSchemaWithCache(_izContext, oldRelTypeAndDirection.relType);
|
|
127
|
-
_izContext.logger.debug("oldRelationshipSchema ", oldRelationshipSchema);
|
|
128
|
-
|
|
129
|
-
const newRelationshipSchema = await getRelationshipSchemaWithCache(_izContext, newRelType);
|
|
130
|
-
_izContext.logger.debug("newRelationshipSchema: ", newRelationshipSchema);
|
|
131
|
-
if (!oldRelationshipSchema.hasOwnProperty('canChangeToRelTypes')) {
|
|
132
|
-
errorsFound.push(`${oldRelTypeAndDirection.relType} not have property to change to another relType`);
|
|
133
|
-
} else {
|
|
134
|
-
if (!newRelationshipSchema) {
|
|
135
|
-
errorsFound.push(`${newRelationshipSchema} not exists can't changeToRelType`);
|
|
136
|
-
} else {
|
|
137
|
-
oldRelationshipSchema.canChangeToRelTypes.find(canChangeToRelType => {
|
|
138
|
-
if (canChangeToRelType.relType.serviceTag === newRelType.serviceTag &&
|
|
139
|
-
canChangeToRelType.relType.relationshipTag === newRelType.relationshipTag) {
|
|
140
|
-
// check changeBy
|
|
141
|
-
if (canChangeToRelType.changeBy === "user") {
|
|
142
|
-
// if changeBy is user will check for importBatch callingFlow
|
|
143
|
-
if (callingFlowConfig) {
|
|
144
|
-
if (callingFlowConfig.callingFlow !== "ImportDataTestExternalUpdateRelationshipHdrSqs") {
|
|
145
|
-
errorsFound.push(`CanChangeToRelType changeBy is user but it's not user process with importData`);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
const links = await findLinksByObjTypes(_izContext, [firstObject.objType, secondObject.objType], newRelationshipSchema.links)
|
|
155
|
-
_izContext.logger.debug("links", links)
|
|
156
|
-
if (!links.length) {
|
|
157
|
-
errorsFound.push(`not found link between ${JSON.stringify({ firstObject: firstObject.objType })} ${JSON.stringify({ secondObject: secondObject.objType })}`)
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
let checkCorrectLink = false;
|
|
161
|
-
for (let link of links) {
|
|
162
|
-
const { serviceTag: fromServiceTag, objectType: fromObjectType } = link.from.objType;
|
|
163
|
-
const { serviceTag: toServiceTag, objectType: toObjType } = link.to.objType;
|
|
164
|
-
|
|
165
|
-
const { serviceTag: firstServiceTag, objectType: firstObjectType } = firstObject.objType
|
|
166
|
-
const { serviceTag: secondServiceTag, objectType: secondObjectType } = secondObject.objType
|
|
167
|
-
|
|
168
|
-
const matchFromTo = fromServiceTag === firstServiceTag && fromObjectType === firstObjectType &&
|
|
169
|
-
toServiceTag === secondServiceTag && toObjType === secondObjectType;
|
|
170
|
-
|
|
171
|
-
const matchToFrom = fromServiceTag === secondServiceTag && fromObjectType === secondObjectType &&
|
|
172
|
-
toServiceTag === firstServiceTag && toObjType === firstObjectType;
|
|
173
|
-
|
|
174
|
-
if ((newRelationshipSchema.relationshipDirection === "from" && matchFromTo) ||
|
|
175
|
-
(newRelationshipSchema.relationshipDirection === "to" && matchToFrom)) {
|
|
176
|
-
checkCorrectLink = true
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
if (checkCorrectLink == false) {
|
|
182
|
-
errorsFound.push(`Wrong Relationship Direction`)
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
let targetStorageResources = [];
|
|
186
|
-
|
|
187
|
-
if (newRelationshipSchema) {
|
|
188
|
-
// find targetStorageResources and validate each storageResources
|
|
189
|
-
await Promise.all(
|
|
190
|
-
newRelationshipSchema.links.map(async ({ from, to, storageResourceTags }) => {
|
|
191
|
-
const { serviceTag: fromServiceTag, objectType: fromObjectType } = from.objType
|
|
192
|
-
const { serviceTag: toServiceTag, objectType: toObjectType } = to.objType
|
|
193
|
-
|
|
194
|
-
const { serviceTag: firstServiceTag, objectType: firstObjectType } = firstObject.objType;
|
|
195
|
-
const { serviceTag: secondServiceTag, objectType: secondObjectType } = secondObject.objType;
|
|
196
|
-
|
|
197
|
-
// find exists link
|
|
198
|
-
if (
|
|
199
|
-
(
|
|
200
|
-
(firstServiceTag === fromServiceTag && firstObjectType === fromObjectType) &&
|
|
201
|
-
(secondServiceTag === toServiceTag && secondObjectType === toObjectType)
|
|
202
|
-
) ||
|
|
203
|
-
(
|
|
204
|
-
(firstServiceTag === toServiceTag && firstObjectType === toObjectType) &&
|
|
205
|
-
(secondServiceTag === fromServiceTag && secondObjectType === fromObjectType)
|
|
206
|
-
)
|
|
207
|
-
) {
|
|
208
|
-
|
|
209
|
-
// check founded storageResource of link and collect used storageResources
|
|
210
|
-
await Promise.all(storageResourceTags.map(async storageResourceTag => {
|
|
211
|
-
const usedStorageResource = newRelationshipSchema.storageResources[storageResourceTag];
|
|
212
|
-
|
|
213
|
-
if (usedStorageResource.storageType === consts.STORAGE_TYPES.graph) {
|
|
214
|
-
const graphServiceTag = await getGraphServiceTagWithCache(_izContext, usedStorageResource.graphServerTag);
|
|
215
|
-
if (!graphServiceTag) {
|
|
216
|
-
errorsFound.push(`storageResourceTag: ${storageResourceTag} invalid, not found graph serviceTag from graphServerTag: ${usedStorageResource.graphServerTag}`)
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
targetStorageResources.push({
|
|
220
|
-
...usedStorageResource,
|
|
221
|
-
graphServiceTag: graphServiceTag
|
|
222
|
-
});
|
|
223
|
-
} else {
|
|
224
|
-
targetStorageResources.push(usedStorageResource);
|
|
225
|
-
}
|
|
226
|
-
}));
|
|
227
|
-
}
|
|
228
|
-
})
|
|
229
|
-
);
|
|
230
|
-
//(<afterGetRelChangeRel>)
|
|
231
|
-
//(</afterGetRelChangeRel>)
|
|
232
|
-
_izContext.logger.debug("targetStorageResources: ", targetStorageResources);
|
|
233
|
-
|
|
234
|
-
if (!targetStorageResources.length) {
|
|
235
|
-
errorsFound.push(`Not found link from relationship schema`);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
// validate properties exists with schema
|
|
240
|
-
for (const propKey in oldRelTypeAndDirection.fieldNames) {
|
|
241
|
-
if (!newRelationshipSchema.fieldNames.hasOwnProperty(propKey)) {
|
|
242
|
-
errorsFound.push(`property: ${propKey} not exists in relationshipSchema`);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
} else {
|
|
247
|
-
errorsFound.push(`relationshipSchema not exists`);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
// if found errors will stop processing
|
|
252
|
-
if (errorsFound.length) {
|
|
253
|
-
|
|
254
|
-
let changeRelCompleteMsg = {
|
|
255
|
-
firstObject,
|
|
256
|
-
secondObject,
|
|
257
|
-
oldRelTypeAndDirection,
|
|
258
|
-
newRelType,
|
|
259
|
-
originTimestamp,
|
|
260
|
-
changedByUserId,
|
|
261
|
-
//(<inChangeRelCompleteMsg>)
|
|
262
|
-
//(</inChangeRelCompleteMsg>)
|
|
263
|
-
status: 'error',
|
|
264
|
-
errorsFound: errorsFound
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
// if have callingFlow will send to message complete
|
|
268
|
-
if (callingFlowConfig[callingFlowSharedLib.consts.CALLINGFLOW_PROPERTYNAME]) {
|
|
269
|
-
_izContext.logger.debug("HAVE CallingFlow");
|
|
270
|
-
|
|
271
|
-
changeRelCompleteMsg = callingFlowSharedLib.addPassBackPropertiesToSnsResponseMessageObject(callingFlowConfig, changeRelCompleteMsg);
|
|
272
|
-
let messageAttributes = callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(callingFlowConfig, {});
|
|
273
|
-
|
|
274
|
-
let messageParams = {
|
|
275
|
-
Message: JSON.stringify(changeRelCompleteMsg),
|
|
276
|
-
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
277
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outChangeRelationshipComplete),
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
_izContext.logger.debug("messageParams OutCreateRelationshipComplete ::::::: ", messageParams);
|
|
281
|
-
await sns.publishAsync(_izContext, messageParams);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return changeRelCompleteMsg;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
// before create awaitingStepId per graph storageResource
|
|
289
|
-
const linkTypeId = createLinkTypeId(_izContext, firstObject.objType, secondObject.objType, newRelType, oldRelTypeAndDirection.relationshipDirection);
|
|
290
|
-
|
|
291
|
-
let usedGraphServiceTag = []; // collect used graph serviceTag, use to check duplicate graph serviceTag across graph serverTag
|
|
292
|
-
let targetGraphStorageResources = []; // collect used graph storageResources, filtered duplicate graphServiceTag from graphServerTag out
|
|
293
|
-
let awaitingStepIds = [];
|
|
294
|
-
|
|
295
|
-
for (const targetStorageResource of targetStorageResources) {
|
|
296
|
-
if (targetStorageResource.storageType === consts.STORAGE_TYPES.graph &&
|
|
297
|
-
!usedGraphServiceTag.includes(targetStorageResource.graphServiceTag)
|
|
298
|
-
) {
|
|
299
|
-
usedGraphServiceTag.push(targetStorageResource.graphServiceTag);
|
|
300
|
-
targetGraphStorageResources.push(targetStorageResource);
|
|
301
|
-
|
|
302
|
-
// awaitingStepId per graphServiceTag
|
|
303
|
-
awaitingStepIds.push(
|
|
304
|
-
asyncFlowSharedLib.createAwaitingStepId(
|
|
305
|
-
hash({
|
|
306
|
-
linkTypeId,
|
|
307
|
-
graphServiceTag: targetStorageResource.graphServiceTag,
|
|
308
|
-
callingFlowProperties: callingFlowConfig.callingFlowProperties || {},
|
|
309
|
-
firstObject,
|
|
310
|
-
secondObject,
|
|
311
|
-
oldRelTypeAndDirection,
|
|
312
|
-
newRelType,
|
|
313
|
-
}), // hash id
|
|
314
|
-
PREFIX.changeRel // prefix, use constant further
|
|
315
|
-
)
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
if (awaitingStepIds.length) {
|
|
321
|
-
// save awaiting
|
|
322
|
-
await asyncFlowSharedLib.createAwaitingMultipleSteps(
|
|
323
|
-
_izContext,
|
|
324
|
-
awaitingStepIds, // awaitingStepIds
|
|
325
|
-
asyncFlowSharedLib.createPendingStepId( // pendingStepId
|
|
326
|
-
hash({
|
|
327
|
-
linkTypeId,
|
|
328
|
-
correlationId: _izContext.correlationIds.get("id"),
|
|
329
|
-
callingFlowProperties: callingFlowConfig.callingFlowProperties || {},
|
|
330
|
-
firstObject,
|
|
331
|
-
secondObject,
|
|
332
|
-
oldRelTypeAndDirection,
|
|
333
|
-
newRelType,
|
|
334
|
-
}), // hash id
|
|
335
|
-
PREFIX.changeRel // prefix, use constant further
|
|
336
|
-
)
|
|
337
|
-
);
|
|
338
|
-
|
|
339
|
-
// prepare message body
|
|
340
|
-
let changeRelMessageBody = {
|
|
341
|
-
firstObject,
|
|
342
|
-
secondObject,
|
|
343
|
-
oldRelTypeAndDirection,
|
|
344
|
-
newRelType,
|
|
345
|
-
originTimestamp,
|
|
346
|
-
changedByUserId,
|
|
347
|
-
//(<messageBodyChangeRel>)
|
|
348
|
-
//(</messageBodyChangeRel>)
|
|
349
|
-
|
|
350
|
-
// assign originTimestamp if not exists in relationshipProperties
|
|
351
|
-
}
|
|
352
|
-
_izContext.logger.debug('changeRelMessageBody: ', changeRelMessageBody);
|
|
353
|
-
|
|
354
|
-
await Promise.all(
|
|
355
|
-
targetGraphStorageResources.map(async (storageResource) => {
|
|
356
|
-
if (storageResource.storageType === consts.STORAGE_TYPES.graph) {
|
|
357
|
-
|
|
358
|
-
changeRelMessageBody = callingFlowSharedLib.addCallingFlowToSnsRequestMessageObject(
|
|
359
|
-
changeRelMessageBody,
|
|
360
|
-
callingFlowSharedLib.addParentCallingFlowConfig(
|
|
361
|
-
callingFlowConfig, // receive parent callingFlowConfig.
|
|
362
|
-
callingFlowSharedLib.createCallingFlowConfig( // calling flow own service
|
|
363
|
-
//(<callingFlowProperties>)
|
|
364
|
-
await lambdaSharedLib.lambdaFunctionName(_izContext, TOPIC_NAME_GENERATE_CODE.changeRelationshipComplete),
|
|
365
|
-
//(</callingFlowProperties>)
|
|
366
|
-
{
|
|
367
|
-
graphServiceTag: storageResource.graphServiceTag
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
)
|
|
371
|
-
);
|
|
372
|
-
_izContext.logger.debug("messageObject before send message:", changeRelMessageBody)
|
|
373
|
-
|
|
374
|
-
let messageToInChangeRelationship = {
|
|
375
|
-
Message: JSON.stringify(changeRelMessageBody),
|
|
376
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GRAPH_HANDLER.inChangeRelationship, storageResource.graphServiceTag),
|
|
377
|
-
};
|
|
378
|
-
_izContext.logger.debug("RequestParams before send to sqs messageToInUpdateRelationship ::::::: ", messageToInChangeRelationship);
|
|
379
|
-
await sns.publishAsync(_izContext, messageToInChangeRelationship);
|
|
380
|
-
}
|
|
381
|
-
})
|
|
382
|
-
)
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
return {
|
|
386
|
-
fromObject: firstObject,
|
|
387
|
-
toObject: secondObject,
|
|
388
|
-
oldRelTypeAndDirection,
|
|
389
|
-
newRelType,
|
|
390
|
-
originTimestamp,
|
|
391
|
-
changedByUserId,
|
|
392
|
-
status: "complete"
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
} catch (err) {
|
|
397
|
-
_izContext.logger.error('error ChangeRelationship: ', err)
|
|
398
|
-
throw (err)
|
|
399
|
-
}
|
|
400
|
-
}
|