@izara_project/izara-market-library-service-schemas 1.0.82 → 1.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/CheckPermission/CheckPermission.js +0 -20
- package/src/GenerateCodeLibs/index.js +3 -8
- package/src/GenerateCodeLibs/src/Consts.js +73 -75
- package/src/GenerateCodeLibs/src/GenerateCodeLibs.js +849 -505
- package/src/MainLibs/index.js +4 -10
- package/src/MainLibs/src/Consts.js +382 -308
- package/src/MainLibs/src/GenerateCodeUtils.js +25 -15
- package/src/MainLibs/src/Utils.js +16 -12
- package/src/SourceManager/index.js +3 -7
- package/src/SourceManager/src/CreateSource.js +113 -54
- package/src/SourceManager/src/Utils.js +26 -23
- package/src/reStructure/GenerateCode.js +47 -28
- package/src/reStructure/GenerateResources.js +11 -17
- package/src/reStructure/GenerateSchema.js +44 -30
- package/src/reStructure/GenerateTests.js +28 -27
- package/src/reStructure/IntTestConfig.js +3 -7
- package/src/reStructure/SchemaConfig.js +3 -7
- package/src/reStructure/TemplateConfig.js +11 -12
- package/src/reStructure/TemplateData/Auth/generateAuthYml/data.js +4 -10
- package/src/reStructure/TemplateData/Auth/generateTemplateData.js +6 -5
- package/src/reStructure/TemplateData/EndpointPerService/generateTemplateData.js +40 -30
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/data.js +14 -15
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/data.js +12 -12
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/data.js +21 -13
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/data.js +15 -16
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/data.js +8 -12
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/data.js +11 -15
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/data.js +9 -13
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/data.js +8 -12
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +1 -1
- package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +128 -79
- package/src/reStructure/TemplateData/IntTest/generateResources/generateResources.js +49 -36
- package/src/reStructure/TemplateData/IntTest/generateResources/templateResources.ejs +19 -17
- package/src/reStructure/TemplateData/IntTest/generateTests/events/data.js +48 -25
- package/src/reStructure/TemplateData/IntTest/generateTests/generateTemplate.js +24 -16
- package/src/{TemplateManager/src/FindData/Handler → reStructure/TemplateData/IntTest/generateTests/pathIntTest}/data.js +21 -21
- package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/template.ejs +5 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/data.js +67 -36
- package/src/reStructure/TemplateData/IntTest/upload/uploadIntTest.js +36 -21
- package/src/reStructure/TemplateData/externalService/functionNameConfig/data.js +41 -41
- package/src/reStructure/TemplateData/externalService/functionNameConfig/templateIntTesting.ejs +1 -1
- package/src/reStructure/TemplateData/externalService/generateTemplateData.js +27 -8
- package/src/reStructure/TemplateData/externalService/lambdaRole/data.js +190 -75
- package/src/reStructure/TemplateData/externalService/lambdaRole/template.ejs +1 -1
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/data.js +111 -63
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/template.ejs +7 -3
- package/src/reStructure/TemplateData/findData/findDataYaml/data.js +51 -37
- package/src/reStructure/TemplateData/findData/generateTemplateData.js +16 -9
- package/src/reStructure/TemplateData/findData/handler/data.js +9 -15
- package/src/reStructure/TemplateData/findData/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/findData/mainFunction/data.js +99 -76
- package/src/reStructure/TemplateData/findData/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/data.js +22 -20
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/data.js +19 -14
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/data.js +20 -18
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/data.js +14 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +24 -19
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +17 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +14 -13
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/data.js +13 -20
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +23 -28
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js +18 -18
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +17 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +21 -21
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +18 -18
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +17 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/data.js +16 -22
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +26 -21
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +16 -14
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +18 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/data.js +11 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +39 -25
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +16 -14
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +14 -13
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/data.js +17 -20
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +25 -23
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +15 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +12 -12
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/data.js +19 -26
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/data.js +12 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/data.js +11 -12
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/sns-out/data.js +12 -13
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +20 -24
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js +10 -13
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +25 -27
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +25 -27
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/userUploadRecords.js +19 -24
- package/src/reStructure/TemplateData/flowSchema/dynamoDb/data.js +43 -34
- package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/data.js +31 -24
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/data.js +27 -26
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/data.js +25 -24
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +22 -22
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/data.js +16 -12
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/data.js +15 -14
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +42 -35
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/data.js +14 -13
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/data.js +12 -20
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-out/data.js +14 -21
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/data.js +52 -22
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +25 -19
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/data.js +18 -17
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js +17 -16
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +36 -26
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/data.js +17 -16
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +22 -29
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js +15 -11
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js +14 -14
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/data.js +17 -20
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-out/data.js +16 -17
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/data.js +53 -25
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/data.js +38 -21
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/data.js +34 -21
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/data.js +24 -25
- package/src/reStructure/TemplateData/flowSchema/generateTemplateData.js +444 -143
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/data.js +14 -11
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/data.js +15 -15
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/data.js +15 -11
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/data.js +15 -15
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/data.js +34 -36
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/data.js +22 -26
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/template.ejs +3 -3
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/data.js +17 -17
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/register/dynamoDB/register.js +35 -32
- package/src/reStructure/TemplateData/flowSchema/register/sns-in/data.js +21 -20
- package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/data.js +21 -18
- package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/data.js +33 -39
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/data.js +10 -12
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/data.js +9 -12
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/data.js +44 -26
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/data.js +18 -15
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/data.js +16 -14
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/data.js +13 -17
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +40 -24
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +23 -18
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +22 -16
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/template.ejs +6 -8
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +42 -25
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +18 -14
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js +17 -12
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js +38 -25
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js +23 -15
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +19 -18
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/data.js +24 -18
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/data.js +35 -29
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/data.js +12 -16
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/template.ejs +2 -2
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +9 -13
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/template.ejs +3 -4
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/data.js +20 -30
- package/src/reStructure/TemplateData/generateRole/createSharedResource.js +193 -79
- package/src/reStructure/TemplateData/generateRole/data.js +26 -24
- package/src/reStructure/TemplateData/perActionComplete/create/handler/data.js +10 -18
- package/src/reStructure/TemplateData/perActionComplete/create/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/createObjectComplete_main.js +88 -64
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/data.js +10 -17
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/data.js +11 -20
- package/src/reStructure/TemplateData/perActionComplete/create/sns-out/data.js +14 -19
- package/src/reStructure/TemplateData/perActionComplete/create/yaml/data.js +18 -24
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/data.js +11 -20
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/data.js +10 -17
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/data.js +11 -19
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-out/data.js +14 -20
- package/src/reStructure/TemplateData/perActionComplete/delete/yaml/data.js +18 -24
- package/src/reStructure/TemplateData/perActionComplete/generateTemplateData.js +63 -56
- package/src/reStructure/TemplateData/perActionComplete/get/handler/data.js +11 -18
- package/src/reStructure/TemplateData/perActionComplete/get/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/data.js +11 -16
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/data.js +11 -19
- package/src/reStructure/TemplateData/perActionComplete/get/sns-out/data.js +14 -18
- package/src/reStructure/TemplateData/perActionComplete/get/yaml/data.js +19 -25
- package/src/reStructure/TemplateData/perActionComplete/update/handler/data.js +11 -19
- package/src/reStructure/TemplateData/perActionComplete/update/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/data.js +10 -18
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/data.js +11 -20
- package/src/reStructure/TemplateData/perActionComplete/update/sns-out/data.js +14 -18
- package/src/reStructure/TemplateData/perActionComplete/update/yaml/data.js +19 -26
- package/src/reStructure/TemplateData/perActionEndpoint/generateTemplateData.js +34 -18
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/data.js +32 -16
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/data.js +44 -21
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/data.js +42 -18
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/data.js +40 -18
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/data.js +32 -13
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/data.js +9 -10
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/libs/data.js +13 -13
- package/src/reStructure/TemplateData/perActionEndpoint/libs/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/data.js +31 -14
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/data.js +30 -13
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/data.js +30 -14
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/data.js +33 -18
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/data.js +61 -38
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/data.js +72 -46
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/data.js +56 -38
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/data.js +76 -48
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/data.js +53 -34
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/data.js +9 -10
- package/src/reStructure/TemplateData/processLogical/generateTemplateData.js +10 -5
- package/src/reStructure/TemplateData/processLogical/handler/data.js +9 -15
- package/src/reStructure/TemplateData/processLogical/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogical/mainFunction/data.js +5 -11
- package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogical/yaml/data.js +39 -31
- package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/data.js +6 -10
- package/src/reStructure/TemplateData/processLogicalPagination/generateTemplateData.js +15 -6
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/data.js +3 -7
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/data.js +3 -7
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/data.js +4 -8
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/data.js +40 -38
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/data.js +42 -35
- package/src/reStructure/TemplateData/propertyValueSchema/generateTemplateData.js +7 -7
- package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/data.js +89 -49
- package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/data.js +65 -47
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/data.js +46 -26
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/data.js +57 -33
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/data.js +46 -25
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/data.js +46 -26
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/data.js +47 -26
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/data.js +14 -12
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/data.js +17 -24
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/data.js +16 -14
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/data.js +8 -14
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/template.ejs +18 -14
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/data.js +18 -27
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/data.js +20 -28
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/data.js +11 -17
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/data.js +10 -15
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/data.js +11 -16
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/data.js +10 -15
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +61 -30
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/data.js +77 -38
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +61 -29
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +61 -31
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +62 -30
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/data.js +14 -12
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/data.js +17 -24
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/data.js +16 -14
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/data.js +10 -16
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/data.js +18 -27
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/data.js +21 -26
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/data.js +8 -10
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/data.js +7 -9
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/data.js +9 -12
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/data.js +8 -9
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +62 -31
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/data.js +75 -37
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +62 -30
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +62 -32
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +62 -32
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/data.js +14 -12
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/data.js +16 -19
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/data.js +16 -14
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/data.js +12 -12
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/data.js +18 -22
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/data.js +20 -21
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/data.js +10 -12
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/data.js +9 -12
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/data.js +9 -10
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/data.js +8 -9
- package/src/reStructure/TemplateData/relationshipPerAction/generateTemplateData.js +218 -63
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +53 -28
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/data.js +75 -37
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +62 -30
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +53 -29
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +53 -27
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/data.js +14 -12
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/data.js +16 -19
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +16 -14
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +8 -11
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +18 -22
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +18 -19
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +8 -10
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +10 -11
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +8 -9
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/data.js +60 -32
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/data.js +16 -19
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/data.js +9 -12
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/data.js +19 -23
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/data.js +22 -27
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/data.js +7 -9
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/data.js +6 -7
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/data.js +10 -11
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/data.js +7 -8
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +54 -34
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/data.js +69 -37
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +62 -34
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +53 -34
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +54 -33
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/data.js +13 -15
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/data.js +14 -17
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/data.js +13 -12
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/data.js +13 -13
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/data.js +13 -11
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/apiTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/dsqTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/invTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/sqsTemplate.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/data.js +10 -20
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/data.js +13 -14
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/data.js +15 -10
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/data.js +20 -22
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/data.js +10 -12
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/data.js +10 -18
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/data.js +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/data.js +8 -9
- package/src/reStructure/TemplateData/resourceYaml/CreateSourceData.js +24 -17
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +48 -51
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +31 -19
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +55 -66
- package/src/reStructure/TemplateData/resourceYaml/filterGenerateResource/data.js +72 -31
- package/src/reStructure/TemplateData/resourceYaml/generateTemplateData.js +58 -24
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +14 -14
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsAndSqsPerActionData.js +29 -23
- package/src/reStructure/TemplateData/resourceYaml/sns-out/data.js +24 -21
- package/src/reStructure/TemplateData/resourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +8 -11
- package/src/reStructure/libs/GenerateCodeLibs.js +8 -12
- package/src/reStructure/libs/ValidateAddOnDataStructure.js +33 -22
- package/src/TemplateManager/index.js +0 -23
- package/src/TemplateManager/src/FindData/FindDataYaml/data.js +0 -183
- package/src/TemplateManager/src/FindData/FindDataYaml/template.ejs +0 -14
- package/src/TemplateManager/src/FindData/GetByStorage/getByDynamo.ejs +0 -53
- package/src/TemplateManager/src/FindData/GetByStorage/getByGraph.ejs +0 -100
- package/src/TemplateManager/src/FindData/Handler/template.ejs +0 -140
- package/src/TemplateManager/src/FindData/mainFunction/data.js +0 -280
- package/src/TemplateManager/src/FindData/mainFunction/template.ejs +0 -151
- package/src/TemplateManager/src/GenerateCode(Old).js +0 -135
- package/src/TemplateManager/src/GenerateCode.js +0 -670
- package/src/TemplateManager/src/GenerateSchema.js +0 -103
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/functionYaml/data.js +0 -106
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/data.js +0 -59
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/template.ejs +0 -130
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/createObjectComplete_main.js +0 -172
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/data.js +0 -53
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/template.ejs +0 -170
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/data.js +0 -58
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/template.ejs +0 -47
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/data.js +0 -62
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-out/template.ejs +0 -10
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/functionYaml/data.js +0 -102
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/handler/data.js +0 -59
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/handler/template.ejs +0 -129
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/mainFunction/data.js +0 -53
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/mainFunction/template.ejs +0 -93
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/sns-out/data.js +0 -62
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/sqs-in-sns/data.js +0 -58
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/sqs-in-sns/template.ejs +0 -47
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/functionYaml/data.js +0 -106
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/handler/data.js +0 -59
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/handler/template.ejs +0 -129
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/mainFunction/data.js +0 -53
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/mainFunction/template.ejs +0 -130
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/sns-out/data.js +0 -62
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/sqs-in-sns/data.js +0 -58
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/sqs-in-sns/template.ejs +0 -47
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/functionYaml/data.js +0 -106
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/handler/data.js +0 -59
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/handler/template.ejs +0 -129
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/mainFunction/data.js +0 -53
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/mainFunction/template.ejs +0 -130
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/sns-out/data.js +0 -62
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/sqs-in-sns/data.js +0 -58
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/sqs-in-sns/template.ejs +0 -47
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/data.js +0 -179
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/request.json +0 -14
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/template.ejs +0 -20
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrDsq/data.js +0 -188
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrDsq/request.json +0 -19
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrDsq/template.ejs +0 -17
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/data.js +0 -172
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/example req.js +0 -15
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/request.json +0 -14
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/template.ejs +0 -13
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrSqs/data.js +0 -189
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrSqs/request.json +0 -19
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrSqs/template.ejs +0 -17
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrWbs/data.js +0 -171
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrWbs/request.json +0 -19
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrWbs/template.ejs +0 -29
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/webSocketConnect/data.js +0 -60
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/webSocketConnect/template.ejs +0 -10
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/data.js +0 -86
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/request.json +0 -7
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/template.ejs +0 -36
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/data.js +0 -88
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/request.json +0 -7
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/template.ejs +0 -55
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/data.js +0 -87
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/request.json +0 -7
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/template.ejs +0 -37
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/data.js +0 -87
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/request.json +0 -7
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/template.ejs +0 -57
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocket/data.js +0 -76
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocket/template.ejs +0 -60
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocketConnect/data.js +0 -56
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocketConnect/template.ejs +0 -55
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/data.js +0 -69
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/request.json +0 -0
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/template.ejs +0 -337
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Delete/data.js +0 -69
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Delete/template.ejs +0 -98
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/data.js +0 -69
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/request.json +0 -5
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/template.ejs +0 -114
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/testParam.json +0 -5
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/data.js +0 -63
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/request.json +0 -0
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/template.ejs +0 -164
- package/src/TemplateManager/src/PerActionEndpoint/libs/data.js +0 -48
- package/src/TemplateManager/src/PerActionEndpoint/libs/template.ejs +0 -46
- package/src/TemplateManager/src/ProcessLogical/Handler/data.js +0 -50
- package/src/TemplateManager/src/ProcessLogical/Handler/template.ejs +0 -129
- package/src/TemplateManager/src/ProcessLogical/ProcessLogicalYaml/data.js +0 -160
- package/src/TemplateManager/src/ProcessLogical/ProcessLogicalYaml/template.ejs +0 -12
- package/src/TemplateManager/src/ProcessLogical/mainFunction/data.js +0 -47
- package/src/TemplateManager/src/ProcessLogical/mainFunction/template.ejs +0 -429
- package/src/TemplateManager/src/ProcessLogicalPagination/DsqYaml/data.js +0 -50
- package/src/TemplateManager/src/ProcessLogicalPagination/DsqYaml/template.ejs +0 -32
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrDsq/data.js +0 -154
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrDsq/template.ejs +0 -12
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrSqs/data.js +0 -157
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrSqs/template.ejs +0 -12
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrDsq/data.js +0 -48
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrDsq/template.ejs +0 -163
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrSqs/data.js +0 -48
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrSqs/template.ejs +0 -146
- package/src/TemplateManager/src/ProcessLogicalPagination/mainFunction/data.js +0 -48
- package/src/TemplateManager/src/ProcessLogicalPagination/mainFunction/template.ejs +0 -212
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrApi/data.js +0 -99
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrApi/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrDsq/data.js +0 -112
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrDsq/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrInv/data.js +0 -98
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrInv/template.ejs +0 -13
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrSqs/data.js +0 -111
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrSqs/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/mainFunction/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/mainFunction/template.ejs +0 -380
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrApi/data.js +0 -58
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrApi/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrApi/template.ejs +0 -57
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrDsq/data.js +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrDsq/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrDsq/template.ejs +0 -184
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrInv/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrInv/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrInv/template.ejs +0 -126
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrSqs/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrSqs/template.ejs +0 -75
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/request.json +0 -30
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/sns-in-sqs/data.js +0 -78
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/functionYaml/data.js +0 -111
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/functionYaml/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/handler/HdrSqs/data.js +0 -61
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/handler/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/handler/HdrSqs/template.ejs +0 -125
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/mainFunction/data.js +0 -56
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/mainFunction/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/mainFunction/template.ejs +0 -141
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-in-sqs/data.js +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-in-sqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-in-sqs/template.ejs +0 -47
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-out/data.js +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-out/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-out/template.ejs +0 -10
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrApi/data.js +0 -99
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrApi/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrDsq/data.js +0 -112
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrDsq/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrInv/data.js +0 -98
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrInv/template.ejs +0 -13
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrSqs/data.js +0 -112
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrSqs/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/mainFunction/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/mainFunction/template.ejs +0 -337
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/data.js +0 -58
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/template.ejs +0 -56
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrDsq/data.js +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrDsq/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrDsq/template.ejs +0 -184
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrInv/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrInv/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrInv/template.ejs +0 -126
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/data.js +0 -60
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/template.ejs +0 -74
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/request.json +0 -30
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/sns-in-sqs/data.js +0 -78
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/functionYaml/data.js +0 -111
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/functionYaml/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/handler/HdrSqs/data.js +0 -61
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/handler/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/handler/HdrSqs/template.ejs +0 -125
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/mainFunction/data.js +0 -56
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/mainFunction/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/mainFunction/template.ejs +0 -140
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-in-sqs/data.js +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-in-sqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-in-sqs/template.ejs +0 -47
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-out/data.js +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-out/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-out/template.ejs +0 -10
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/functionYaml/data.js +0 -111
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/functionYaml/request.json +0 -3
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/functionYaml/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/handler/HdrSqs/data.js +0 -62
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/handler/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/handler/HdrSqs/template.ejs +0 -127
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/mainFunction/data.js +0 -56
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/mainFunction/request.json +0 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/mainFunction/template.ejs +0 -143
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-in-sqs/data.js +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-in-sqs/request.json +0 -3
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-in-sqs/template.ejs +0 -46
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-out/data.js +0 -71
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-out/request.json +0 -3
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-out/template.ejs +0 -10
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrApi/data.js +0 -100
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrApi/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrApi/template.ejs +0 -20
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrDsq/data.js +0 -111
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrDsq/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrDsq/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrInv/data.js +0 -103
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrInv/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrInv/template.ejs +0 -13
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrSqs/data.js +0 -115
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrSqs/request.json +0 -0
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrSqs/template.ejs +0 -17
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/mainFunction/data.js +0 -64
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/mainFunction/request.json +0 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/mainFunction/template.ejs +0 -340
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/data.js +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/request.json +0 -7
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/template.ejs +0 -57
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrDsq/data.js +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrDsq/request.json +0 -7
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrDsq/template.ejs +0 -184
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrInv/data.js +0 -62
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrInv/request.json +0 -5
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrInv/template.ejs +0 -145
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/data.js +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/request.json +0 -7
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/template.ejs +0 -72
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/request.json +0 -30
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-in-sqs/data.js +0 -90
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-in-sqs/request.json +0 -3
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-out/data.js +0 -70
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/sns-out/request.json +0 -3
- package/src/TemplateManager/src/ResourceYaml/CreateSourceData.js +0 -76
- package/src/TemplateManager/src/ResourceYaml/dynamodb/defaultDynamoDbTable.js +0 -146
- package/src/TemplateManager/src/ResourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +0 -178
- package/src/TemplateManager/src/ResourceYaml/dynamodb/request.json +0 -7
- package/src/TemplateManager/src/ResourceYaml/dynamodb/template.ejs +0 -31
- package/src/TemplateManager/src/ResourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -96
- package/src/TemplateManager/src/ResourceYaml/sns-in-sqs/request.json +0 -4
- package/src/TemplateManager/src/ResourceYaml/sns-in-sqs/snsAndSqsPerActiondata.js +0 -108
- package/src/TemplateManager/src/ResourceYaml/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/ResourceYaml/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/ResourceYaml/sns-out/data.js +0 -89
- package/src/TemplateManager/src/ResourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -75
- package/src/TemplateManager/src/ResourceYaml/sns-out/request.json +0 -3
- package/src/TemplateManager/src/ResourceYaml/sns-out/template.ejs +0 -10
- package/src/TemplateManager/src/Role/createSharedResource.js +0 -272
- package/src/TemplateManager/src/Role/sharedResourceTemplate.ejs +0 -58
- package/src/TemplateManager/src/attributeTree/objectSchema/data.js +0 -128
- package/src/TemplateManager/src/attributeTree/objectSchema/template.ejs +0 -21
- package/src/TemplateManager/src/attributeTree/refRelationshipSchema/data.js +0 -36
- package/src/TemplateManager/src/attributeTree/refRelationshipSchema/template.ejs +0 -0
- package/src/TemplateManager/src/attributeTree/relationshipSchema/data.js +0 -206
- package/src/TemplateManager/src/attributeTree/relationshipSchema/template.ejs +0 -7
- package/src/TemplateManager/src/attributeTreeSchema/generateTemplateData.js +0 -103
- package/src/TemplateManager/src/attributeTreeSchema/mainAttributeTree/attributeLinkTemplate.ejs +0 -17
- package/src/TemplateManager/src/attributeTreeSchema/mainAttributeTree/data.js +0 -134
- package/src/TemplateManager/src/attributeTreeSchema/mainAttributeTree/request.json +0 -11
- package/src/TemplateManager/src/attributeTreeSchema/referenceRelationshipSchema/data.js +0 -84
- package/src/TemplateManager/src/attributeTreeSchema/referenceRelationshipSchema/tempReferenceRelationshipSchema.ejs +0 -9
- package/src/TemplateManager/src/attributeTreeSchema/relationshipSchema/data.js +0 -172
- package/src/TemplateManager/src/attributeTreeSchema/relationshipSchema/template.ejs +0 -7
- package/src/TemplateManager/src/externalService/FunctionNameConfig/data.js +0 -163
- package/src/TemplateManager/src/externalService/FunctionNameConfig/template.ejs +0 -14
- package/src/TemplateManager/src/externalService/FunctionNameConfig/templateIntTesting.ejs +0 -31
- package/src/TemplateManager/src/externalService/FunctionNameConfig/templateYaml.ejs +0 -10
- package/src/TemplateManager/src/externalService/LambdaRole/data.js +0 -420
- package/src/TemplateManager/src/externalService/LambdaRole/request.json +0 -18
- package/src/TemplateManager/src/externalService/LambdaRole/template.ejs +0 -57
- package/src/TemplateManager/src/externalService/SnsTopicSubscriotions/data.js +0 -160
- package/src/TemplateManager/src/externalService/SnsTopicSubscriotions/request.json +0 -12
- package/src/TemplateManager/src/externalService/SnsTopicSubscriotions/template.ejs +0 -28
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/dynamoDb/ReservedTableData.js +0 -65
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/dynamoDb/WebSocketTaskData.js +0 -65
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/functionYaml/data.js +0 -74
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/functionYaml/template.ejs +0 -29
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/handler/data.js +0 -55
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/handler/template.ejs +0 -68
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/functionYaml/data.js +0 -77
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/functionYaml/template.ejs +0 -37
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/handler/data.js +0 -47
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/handler/template.ejs +0 -103
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/mainFunction/data.js +0 -46
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/mainFunction/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/sns-sqs/data.js +0 -36
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/sns-sqs/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/functionYaml/data.js +0 -35
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/functionYaml/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/handler/data.js +0 -35
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/handler/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/mainFunction/data.js +0 -35
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/mainFunction/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/sns-sqs/data.js +0 -35
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/OutComplete/sns-sqs/template.ejs +0 -0
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/functionYaml/data.js +0 -102
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/functionYaml/template.ejs +0 -30
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/handler/data.js +0 -58
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/handler/template.ejs +0 -126
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/mainFunction/data.js +0 -51
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/mainFunction/template.ejs +0 -121
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/queue/data.js +0 -64
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/queue/template.ejs +0 -45
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/functionYaml/data.js +0 -128
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/functionYaml/template.ejs +0 -37
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/handler/data.js +0 -75
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/handler/template.ejs +0 -120
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/mainFunction/data.js +0 -55
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObject/mainFunction/template.ejs +0 -133
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/functionYaml/data.js +0 -102
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/functionYaml/template.ejs +0 -30
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/handler/data.js +0 -58
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/handler/template.ejs +0 -103
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/mainFunction/data.js +0 -55
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/mainFunction/template.ejs +0 -86
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/sns-sqs/data.js +0 -72
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/sns-sqs/template.ejs +0 -49
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/functionYaml/data.js +0 -85
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/functionYaml/template.ejs +0 -27
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/handler/data.js +0 -57
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/handler/template.ejs +0 -120
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/mainFunction/data.js +0 -51
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/mainFunction/template.ejs +0 -164
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/sqs/data.js +0 -65
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/sqs/template.ejs +0 -53
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/functionYaml/data.js +0 -112
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/functionYaml/template.ejs +0 -30
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/handler/data.js +0 -57
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/handler/template.ejs +0 -126
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/mainFunction/data.js +0 -54
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/mainFunction/template.ejs +0 -254
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/queue/data.js +0 -64
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/queue/template.ejs +0 -45
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/handler/data.js +0 -94
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/handler/templateAsyncHandler.ejs +0 -110
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/handler/templateSyncHandler.ejs +0 -49
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/hookLogic/data.js +0 -44
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/mainFunction/data.js +0 -66
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/mainFunction/template.ejs +0 -7
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/queue/data.js +0 -73
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/queue/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/queue/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/functionYaml/data.js +0 -102
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/functionYaml/template.ejs +0 -43
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/handler/data.js +0 -94
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/handler/templateAsyncHandler.ejs +0 -110
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/handler/templateSyncHandler.ejs +0 -49
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/hookLogic/data.js +0 -65
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/mainFunction/data.js +0 -67
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/mainFunction/template.ejs +0 -30
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/queue/data.js +0 -125
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/queue/snsTemplate.ejs +0 -59
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/queue/sqsTemplate.ejs +0 -43
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrDsq/data.js +0 -87
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrDsq/template.ejs +0 -30
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrS3/data.js +0 -112
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrS3/template.ejs +0 -38
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerDsq/data.js +0 -45
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerDsq/template.ejs +0 -151
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerS3/data.js +0 -43
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerS3/template.ejs +0 -68
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/mainFunction/data.js +0 -43
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/mainFunction/template.ejs +0 -392
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/queue/data.js +0 -77
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/queue/dsqTemplatePath.ejs +0 -32
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/queue/s3Template.ejs +0 -59
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/S3/data.js +0 -51
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/S3/template.ejs +0 -13
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/libs/data.js +0 -42
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/libs/template.ejs +0 -137
- package/src/TemplateManager/src/libs/Consts.js +0 -485
- package/src/TemplateManager/src/libs/GenerateCodeUtils.js +0 -59
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/* Copyright (C) 2020 Sven Mason <http://izara.io> This program is free
|
|
2
|
-
software: you can redistribute it and/or modify it under the terms of the GNU
|
|
3
|
-
Affero General Public License as published by the Free Software Foundation,
|
|
4
|
-
either version 3 of the License, or (at your option) any later version. This
|
|
5
|
-
program is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
6
|
-
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
7
|
-
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
8
|
-
You should have received a copy of the GNU Affero General Public License along
|
|
9
|
-
with this program. If not, see <http://www.gnu.org/licenses/>. */ 'use strict';
|
|
10
|
-
const izara = require("@izara_project/izara-middleware"); const middleware =
|
|
11
|
-
izara.middlewareHandler; const callingFlowSharedLib =
|
|
12
|
-
require('@izara_project/izara-shared/src/CallingFlowSharedLib') const {
|
|
13
|
-
validateSchemaMiddleware } =
|
|
14
|
-
require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs/index.js');
|
|
15
|
-
const Logger = require('@izara_project/izara-core-library-logger'); const
|
|
16
|
-
recordHandlerSharedLib =
|
|
17
|
-
require('@izara_project/izara-shared').recordHandlerSharedLib const <%-
|
|
18
|
-
functionName %> = require('./<%- firstLetterUpperCase(functionName) %>_Main');
|
|
19
|
-
middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema()); //
|
|
20
|
-
validate event params in middleware before into function let validatorSchema = {
|
|
21
|
-
type: "object", required: ["firstObject","secondObject", "relType",
|
|
22
|
-
"relationshipProperties","relationshipDirection"], properties: { firstObject: {
|
|
23
|
-
type: "object", required: ["objType","identifiers"], properties: { objType: {
|
|
24
|
-
type: "object", required: ["serviceTag","objectType"], properties: { serviceTag:
|
|
25
|
-
izara.validatorSchema.stringNotEmpty(), objectType:
|
|
26
|
-
izara.validatorSchema.stringNotEmpty(), } }, identifiers: { type: "object",
|
|
27
|
-
minProperties: 1 } } }, secondObject: { type: "object", required:
|
|
28
|
-
["objType","identifiers"], properties: { objType: { type: "object", required:
|
|
29
|
-
["serviceTag","objectType"], properties: { serviceTag:
|
|
30
|
-
izara.validatorSchema.stringNotEmpty(), objectType:
|
|
31
|
-
izara.validatorSchema.stringNotEmpty(), } }, identifiers: { type: "object",
|
|
32
|
-
minProperties: 1 } } }, relType: { type: "object", required: ["relationshipTag",
|
|
33
|
-
"serviceTag"], properties: { relationshipTag:
|
|
34
|
-
izara.validatorSchema.stringNotEmpty(), serviceTag: { type: 'string', pattern:
|
|
35
|
-
"^[a-zA-Z0-9_-]+$", enum: [process.env.iz_serviceTag] } } },
|
|
36
|
-
relationshipProperties: { type: "object", minProperties: 1 },
|
|
37
|
-
relationshipDirection: { type: "string", enum: ['from','to'] } } };
|
|
38
|
-
//(<globalVarible> //</globalVarible>) // validate event params in middleware
|
|
39
|
-
before into main function validatorSchema =
|
|
40
|
-
callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validatorSchema);
|
|
41
|
-
// if need to validate authorizer or additional params , add code to hook tag
|
|
42
|
-
below //(<afterValidateWith>) //(</afterValidateWith>) module.exports.main =
|
|
43
|
-
middleware.wrap(async (event, context, callback) => { try { let recordPromises =
|
|
44
|
-
[]; // final return // loop each record and send to mainFunction await
|
|
45
|
-
Promise.all(event.Records.map(async record => { // promise.all for map()
|
|
46
|
-
function let passOnProperties = [] // --- validate message (and
|
|
47
|
-
MessageAttributes) await recordHandlerSharedLib.validateRecord( record, // one
|
|
48
|
-
record will send to mainFunction "<%-firstLetterUpperCase(queueName) %>", //
|
|
49
|
-
queue name that need to retry or send to dlq validatorSchema, // schema for
|
|
50
|
-
record.Message // messageAttributeValidatorSchema // ----- for msgAttr default
|
|
51
|
-
is null -> do not send this parameter if not want to validate msgAtt ); // add
|
|
52
|
-
argument (to invoke lambda) to passOnProperties[]
|
|
53
|
-
passOnProperties.push(record.body.Message)
|
|
54
|
-
passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message));
|
|
55
|
-
//(<afterPutParamIntoMainFunction>) //(</afterPutParamIntoMainFunction>)
|
|
56
|
-
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
|
57
|
-
// call recordHandlerSharedLib.recordHandler with 3 parameters and return
|
|
58
|
-
promise(resolve) let recordPromise = recordHandlerSharedLib.recordHandler(
|
|
59
|
-
record, // one record will send to mainFunction <%- functionName %>.<%-
|
|
60
|
-
functionName %>, // mainFunction that need to invoke.
|
|
61
|
-
"<%-firstLetterUpperCase(queueName) %>", // queue name that need to retry or
|
|
62
|
-
send to dlq passOnProperties, // all parameters that mainFunction needed. );
|
|
63
|
-
record._izContext.logger.debug('after recordPromise in handler');
|
|
64
|
-
recordPromises.push(recordPromise); // push promise to recordPromises })) //end
|
|
65
|
-
record Logger.debug('before Promise.all(recordPromises) in handler'); try {
|
|
66
|
-
await Promise.all(recordPromises); // await all promises return event.Records //
|
|
67
|
-
return all for local test } catch { Logger.debug('Promise.all(recordPromises) in
|
|
68
|
-
handler threw error (at least one record did no resolve)'); }
|
|
69
|
-
Logger.debug('after Promise.all(recordPromises) in handler'); } catch (err) {
|
|
70
|
-
Logger.error('Unhandled Error, updateRelationshipHdrDsq:', err); throw (err); }
|
|
71
|
-
}); <%_ function firstLetterUpperCase(text) { return
|
|
72
|
-
text.charAt(0).toUpperCase() + text.slice(1) } _%> <%_ function
|
|
73
|
-
firstLetterLowerCase(str) { return str.charAt(0).toLowerCase() + str.slice(1) }
|
|
74
|
-
_%>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"objects": [
|
|
3
|
-
{
|
|
4
|
-
"objType": {
|
|
5
|
-
"objectType": "Sunny",
|
|
6
|
-
"serviceTag": "GenerateCodeTemplateBas"
|
|
7
|
-
},
|
|
8
|
-
"identifiers": {
|
|
9
|
-
"personId": "Node1"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"objType": {
|
|
14
|
-
"objectType": "Weather",
|
|
15
|
-
"serviceTag": "GenerateCodeTemplateBas"
|
|
16
|
-
},
|
|
17
|
-
"identifiers": {
|
|
18
|
-
"personId": "Node2"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"relType": {
|
|
23
|
-
"relationshipTag": "RelTag",
|
|
24
|
-
"serviceTag": "GenerateCodeTemplateBas"
|
|
25
|
-
},
|
|
26
|
-
"relationshipProperties": {
|
|
27
|
-
"name": "bas007"
|
|
28
|
-
},
|
|
29
|
-
"callingFlow": "bas"
|
|
30
|
-
}
|
|
@@ -1,78 +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
|
-
'use strict';
|
|
19
|
-
|
|
20
|
-
const path = require("path")
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const {
|
|
24
|
-
HANDLER,
|
|
25
|
-
} = require('@izara_project/izara-core-library-service-schemas/src/Consts');
|
|
26
|
-
|
|
27
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = require("../../../../../../MainLibs/src/Utils")
|
|
28
|
-
const { SOURCE_PATH, SAVE_FILE_NAME, FUNCTION_NAME } = require("../../../../libs/Consts");
|
|
29
|
-
const snsTemplatePath = path.join(__dirname, "./snsTemplate.ejs")
|
|
30
|
-
const sqsTemplatePath = path.join(__dirname, "./sqsTemplate.ejs")
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* create data for dynamoDbYaml tempalte from objectSchema
|
|
34
|
-
*
|
|
35
|
-
* @param {Object} _izContext
|
|
36
|
-
* @param {String} saveFilePath
|
|
37
|
-
* @returns {Object[]} - data of multiple dynamoDb template
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
function createRelationshipSnsInSqs(_izContext, srcPath) {
|
|
41
|
-
let resultForCreateRelationshipSnsAndSqs = [];
|
|
42
|
-
const setting = {
|
|
43
|
-
initialData: "Resources:\n",
|
|
44
|
-
savePath: path.join(srcPath, SOURCE_PATH.resourceYaml),
|
|
45
|
-
saveFileName: SAVE_FILE_NAME.snsInSqsYaml,
|
|
46
|
-
fileExtension: ".yml",
|
|
47
|
-
isAppend: true
|
|
48
|
-
}
|
|
49
|
-
const createRelationshipQueueNames = [
|
|
50
|
-
{
|
|
51
|
-
queueName: upperCase(FUNCTION_NAME.deleteRel)
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
queueName: upperCase(FUNCTION_NAME.deleteRel) + upperCase(HANDLER.hdrDsq)
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
for (let createRelationshipQueueName of createRelationshipQueueNames) {
|
|
58
|
-
if (createRelationshipQueueName.queueName.includes("HdrDsq")) {
|
|
59
|
-
resultForCreateRelationshipSnsAndSqs.push({
|
|
60
|
-
templatePath: sqsTemplatePath,
|
|
61
|
-
templateData: createRelationshipQueueName,
|
|
62
|
-
setting: setting
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
} else {
|
|
66
|
-
resultForCreateRelationshipSnsAndSqs.push(
|
|
67
|
-
{
|
|
68
|
-
templatePath: snsTemplatePath,
|
|
69
|
-
templateData: createRelationshipQueueName,
|
|
70
|
-
setting: setting
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return resultForCreateRelationshipSnsAndSqs
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
module.exports = createRelationshipSnsInSqs
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
##===== [Create topic in]
|
|
2
|
-
In<%- queueName %>:
|
|
3
|
-
Type: AWS::SNS::Topic
|
|
4
|
-
Properties:
|
|
5
|
-
DisplayName: "SNS Message in"
|
|
6
|
-
TopicName: ${self:custom.iz_resourcePrefix}In<%- queueName %>
|
|
7
|
-
##===== SNS Subscription
|
|
8
|
-
##===== [Topic In]
|
|
9
|
-
SubscriptionIn<%- queueName %>:
|
|
10
|
-
Type: AWS::SNS::Subscription
|
|
11
|
-
Properties:
|
|
12
|
-
TopicArn: !Ref In<%- queueName %>
|
|
13
|
-
Endpoint: "arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs"
|
|
14
|
-
Protocol: "sqs"
|
|
15
|
-
##===== [Queue]
|
|
16
|
-
<%- queueName %>HdrSqs:
|
|
17
|
-
Type: "AWS::SQS::Queue"
|
|
18
|
-
Properties:
|
|
19
|
-
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs
|
|
20
|
-
RedrivePolicy:
|
|
21
|
-
deadLetterTargetArn:
|
|
22
|
-
# !GetAtt
|
|
23
|
-
Fn::GetAtt:
|
|
24
|
-
- <%- queueName %>HdrSqsDLQ
|
|
25
|
-
- Arn
|
|
26
|
-
maxReceiveCount: 3
|
|
27
|
-
VisibilityTimeout: 120
|
|
28
|
-
##==== [QueueDLQ]
|
|
29
|
-
<%- queueName %>HdrSqsDLQ:
|
|
30
|
-
Type: AWS::SQS::Queue
|
|
31
|
-
Properties:
|
|
32
|
-
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqsDLQ
|
|
33
|
-
##==== [QueuePolicy]
|
|
34
|
-
<%- queueName %>HdrSqsPolicy:
|
|
35
|
-
Type: AWS::SQS::QueuePolicy
|
|
36
|
-
Properties:
|
|
37
|
-
PolicyDocument:
|
|
38
|
-
Version: "2012-10-17"
|
|
39
|
-
Statement:
|
|
40
|
-
- Sid: "allow-sns-messages"
|
|
41
|
-
Effect: Allow
|
|
42
|
-
Principal: "*"
|
|
43
|
-
Resource:
|
|
44
|
-
# !GetAtt
|
|
45
|
-
Fn::GetAtt:
|
|
46
|
-
- <%- queueName %>HdrSqs
|
|
47
|
-
- Arn
|
|
48
|
-
Action: "SQS:SendMessage"
|
|
49
|
-
Queues:
|
|
50
|
-
- Ref: <%- queueName %>HdrSqs
|
|
51
|
-
#<#<%- firstLetterUpperCase(queueName) %>QueueSetting#>
|
|
52
|
-
#<#/<%- firstLetterUpperCase(queueName) %>QueueSetting#>
|
|
53
|
-
|
|
54
|
-
<%_ function firstLetterUpperCase(text){
|
|
55
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
56
|
-
} _%>
|
|
57
|
-
<%_ function firstLetterLowerCase(str) {
|
|
58
|
-
return str.charAt(0).toLowerCase() + str.slice(1)
|
|
59
|
-
} _%>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
#------- queue ---------
|
|
2
|
-
<%- queueName %>:
|
|
3
|
-
Type: "AWS::SQS::Queue"
|
|
4
|
-
Properties:
|
|
5
|
-
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>
|
|
6
|
-
RedrivePolicy:
|
|
7
|
-
deadLetterTargetArn: #!GetAtt
|
|
8
|
-
Fn::GetAtt:
|
|
9
|
-
- <%- queueName %>DLQ
|
|
10
|
-
- Arn
|
|
11
|
-
maxReceiveCount: 3
|
|
12
|
-
VisibilityTimeout: 120
|
|
13
|
-
|
|
14
|
-
<%- queueName %>DLQ:
|
|
15
|
-
Type: AWS::SQS::Queue
|
|
16
|
-
Properties:
|
|
17
|
-
QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>DLQ
|
|
18
|
-
|
|
19
|
-
<%- queueName %>Policy:
|
|
20
|
-
Type: AWS::SQS::QueuePolicy
|
|
21
|
-
Properties:
|
|
22
|
-
PolicyDocument:
|
|
23
|
-
Version: "2012-10-17"
|
|
24
|
-
Statement:
|
|
25
|
-
- Sid: "allow-sns-messages"
|
|
26
|
-
Effect: Allow
|
|
27
|
-
Principal: "*"
|
|
28
|
-
Resource: #!GetAtt
|
|
29
|
-
Fn::GetAtt:
|
|
30
|
-
- <%- queueName %>
|
|
31
|
-
- Arn
|
|
32
|
-
Action: "SQS:SendMessage"
|
|
33
|
-
Queues:
|
|
34
|
-
- Ref: <%- queueName %>
|
|
35
|
-
#<#<%- firstLetterUpperCase(queueName) %>QueueSetting#>
|
|
36
|
-
#<#/<%- firstLetterUpperCase(queueName) %>QueueSetting#>
|
|
37
|
-
|
|
38
|
-
<%_ function firstLetterUpperCase(text){
|
|
39
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
40
|
-
} _%>
|
|
41
|
-
<%_ function firstLetterLowerCase(str) {
|
|
42
|
-
return str.charAt(0).toLowerCase() + str.slice(1)
|
|
43
|
-
} _%>
|
|
@@ -1,111 +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
|
-
'use strict';
|
|
19
|
-
const path = require('path');
|
|
20
|
-
const fs = require('fs');
|
|
21
|
-
|
|
22
|
-
const { ACTIONS, HANDLER, STORAGE_TYPES } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
23
|
-
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = require("../../../../../../MainLibs/src/Utils")
|
|
25
|
-
const {
|
|
26
|
-
createIamRole,
|
|
27
|
-
resourceNames,
|
|
28
|
-
RESOURCE_CLASSES,
|
|
29
|
-
SQS_RESOURCE,
|
|
30
|
-
SOURCE_PATH,
|
|
31
|
-
SAVE_FILE_NAME,
|
|
32
|
-
FUNCTION_NAME,
|
|
33
|
-
defaultIamRolePerAction,
|
|
34
|
-
awaitingMultipleStepsRole,
|
|
35
|
-
SNS_RESOURCE,
|
|
36
|
-
shortNameHandler,
|
|
37
|
-
SHORT_FUNCTION_NAME,
|
|
38
|
-
SOURCE_GENERATE_IAM_ROLE
|
|
39
|
-
} = require("../../../../libs/Consts");
|
|
40
|
-
|
|
41
|
-
const templatePath = path.join(__dirname, 'template.ejs')
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* receive objectSchema
|
|
45
|
-
* create data for updateRelationshipSchema
|
|
46
|
-
*
|
|
47
|
-
* @param {Object} objectSchema
|
|
48
|
-
* @return {{ templatePath, templateData, setting } }
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
function data(_izContext, srcPath) {
|
|
52
|
-
let createSourceArray = [];
|
|
53
|
-
const createSourceParam = createParamForCreateSource(srcPath);
|
|
54
|
-
createSourceArray.push(createSourceParam);
|
|
55
|
-
// console.log("createSourceArrayInUpdaterelationShipSchemahdrSqs", createSourceArray)
|
|
56
|
-
return createSourceArray
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
function createParamForCreateSource(srcPath) {
|
|
61
|
-
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
62
|
-
let functionName = FUNCTION_NAME.deleteRelComplete
|
|
63
|
-
let additionalResourcePermission = defaultIamRolePerAction();
|
|
64
|
-
|
|
65
|
-
additionalResourcePermission.push(
|
|
66
|
-
createIamRole(
|
|
67
|
-
{
|
|
68
|
-
[RESOURCE_CLASSES.sqs]: [
|
|
69
|
-
SQS_RESOURCE.deleteMessage,
|
|
70
|
-
SQS_RESOURCE.getQueueAttributes,
|
|
71
|
-
SQS_RESOURCE.receiveMessage,
|
|
72
|
-
SQS_RESOURCE.sendMessage,
|
|
73
|
-
SQS_RESOURCE.deleteMessageBatch,
|
|
74
|
-
SQS_RESOURCE.getQueueUrl,
|
|
75
|
-
],
|
|
76
|
-
[RESOURCE_CLASSES.sns]:
|
|
77
|
-
[
|
|
78
|
-
SNS_RESOURCE.publish, SNS_RESOURCE.subscribe
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
[
|
|
82
|
-
resourceNames(RESOURCE_CLASSES.sqs, upperCase(functionName)),
|
|
83
|
-
resourceNames(RESOURCE_CLASSES.sqs, upperCase(functionName) + "DLQ"),
|
|
84
|
-
resourceNames(RESOURCE_CLASSES.sns, "In" + upperCase(functionName)),
|
|
85
|
-
resourceNames(RESOURCE_CLASSES.sns, "Out" + upperCase(functionName))
|
|
86
|
-
],
|
|
87
|
-
))
|
|
88
|
-
additionalResourcePermission.push(awaitingMultipleStepsRole())
|
|
89
|
-
|
|
90
|
-
return {
|
|
91
|
-
templatePath: templatePath,
|
|
92
|
-
templateData: {
|
|
93
|
-
functionName,
|
|
94
|
-
handlerType,
|
|
95
|
-
additionalResourcePermission,
|
|
96
|
-
resourceLocation: SOURCE_PATH.resourceLocationRelationshipPerAction,
|
|
97
|
-
functionNameConfig: upperCase(SHORT_FUNCTION_NAME.deleteRelComplete),
|
|
98
|
-
roleName: SOURCE_GENERATE_IAM_ROLE.RelationshipCompleteRole
|
|
99
|
-
},
|
|
100
|
-
setting: {
|
|
101
|
-
savePath: path.join(srcPath, SOURCE_PATH.appYaml),
|
|
102
|
-
saveFileName: SAVE_FILE_NAME.functionRelationshipYaml,
|
|
103
|
-
fileExtension: '.yml',
|
|
104
|
-
isAppend: true
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
module.exports = data;
|
|
File without changes
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<%_ const join = require('path').join; _%>
|
|
2
|
-
<%- firstLetterUpperCase(functionNameConfig) %>:
|
|
3
|
-
handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
|
|
4
|
-
name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %>
|
|
5
|
-
events:
|
|
6
|
-
- sqs:
|
|
7
|
-
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %>
|
|
8
|
-
batchSize: 10
|
|
9
|
-
filterPatterns: #**** need to update serverless framwork upper v.2.69.1
|
|
10
|
-
- body: {"MessageAttributes":{"callingFlow":{"Value":["${self:custom.iz_resourcePrefix}<%-firstLetterUpperCase(functionName) %>"]}}} # functionName of callingFlow
|
|
11
|
-
- body: {"MessageAttributes":{"callingFlow":{"Value":[{"exists":false}]}}}
|
|
12
|
-
role: <%- roleName %>Role
|
|
13
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
14
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
15
|
-
<%_ function firstLetterUpperCase(text){
|
|
16
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
17
|
-
} _%>
|
|
18
|
-
<%_ function firstLetterLowerCase(str) {
|
|
19
|
-
return str.charAt(0).toLowerCase() + str.slice(1)
|
|
20
|
-
} _%>
|
|
@@ -1,61 +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
|
-
'use strict';
|
|
19
|
-
const path = require('path');
|
|
20
|
-
const fs = require('fs');
|
|
21
|
-
|
|
22
|
-
const { ACTIONS, HANDLER } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
23
|
-
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = require("../../../../../../../MainLibs/src/Utils")
|
|
25
|
-
const { SOURCE_PATH, FUNCTION_NAME } = require("../../../../../libs/Consts");
|
|
26
|
-
|
|
27
|
-
const templatePath = path.join(__dirname, 'template.ejs')
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* receive objectSchema
|
|
31
|
-
* create data for hdrInv template
|
|
32
|
-
*
|
|
33
|
-
* @return {{ templatePath, templateData, setting } }
|
|
34
|
-
*/
|
|
35
|
-
function data(_izContext, srcPath) {
|
|
36
|
-
const createSourceParams = createParamForCreateSource(srcPath)
|
|
37
|
-
return [createSourceParams];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
function createParamForCreateSource(srcPath) {
|
|
42
|
-
const functionName = FUNCTION_NAME.deleteRelComplete;
|
|
43
|
-
const handler = HANDLER.hdrSqs
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
templatePath: templatePath,
|
|
47
|
-
templateData: {
|
|
48
|
-
functionName: upperCase(functionName),
|
|
49
|
-
queueName: upperCase(functionName) + upperCase(handler),
|
|
50
|
-
},
|
|
51
|
-
setting: {
|
|
52
|
-
savePath: path.join(srcPath, SOURCE_PATH.relationshipPerAction),
|
|
53
|
-
saveFileName: `${upperCase(functionName)}_${upperCase(handler)}`,
|
|
54
|
-
fileExtension: '.js',
|
|
55
|
-
isAppend: false
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
module.exports = data;
|
|
File without changes
|
|
@@ -1,125 +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
|
-
'use strict';
|
|
19
|
-
|
|
20
|
-
// const AWS = require('aws-sdk');
|
|
21
|
-
// const sqs = new AWS.SQS({ apiVersion: '2012-11-05' });
|
|
22
|
-
|
|
23
|
-
const izara = require("@izara_project/izara-middleware");
|
|
24
|
-
const middleware = izara.middlewareHandler;
|
|
25
|
-
const izaraShared = require('@izara_project/izara-shared');
|
|
26
|
-
const recordHandlerSharedLib = izaraShared.recordHandlerSharedLib
|
|
27
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
28
|
-
|
|
29
|
-
const createRelationshipComplete = require('./CreateRelationshipComplete_Main');
|
|
30
|
-
const Logger = require('@izara_project/izara-core-library-logger');
|
|
31
|
-
// validate event properties in body.Message of sqs event
|
|
32
|
-
middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
|
|
33
|
-
// set schema for record.body.Message
|
|
34
|
-
let perRecordsValidatorSchema = {
|
|
35
|
-
type: "object",
|
|
36
|
-
required: [
|
|
37
|
-
'returnValue',
|
|
38
|
-
'status',
|
|
39
|
-
'errorsFound'
|
|
40
|
-
],
|
|
41
|
-
properties: {
|
|
42
|
-
returnValue: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
},
|
|
45
|
-
status: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
},
|
|
48
|
-
errorsFound: {
|
|
49
|
-
type: 'array',
|
|
50
|
-
default: []
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// set schema for record.body.MessageAttributes
|
|
56
|
-
// const messageAttributeValidatorSchema = {
|
|
57
|
-
// type: "object",
|
|
58
|
-
// required: ['msgAtrrParam1', 'msgAtrrParam2'],
|
|
59
|
-
// properties: {
|
|
60
|
-
// msgAtrrParam1: {
|
|
61
|
-
// type: "string"
|
|
62
|
-
// },
|
|
63
|
-
// msgAtrrParam2: {
|
|
64
|
-
// type: "object"
|
|
65
|
-
// }
|
|
66
|
-
// }
|
|
67
|
-
// };
|
|
68
|
-
|
|
69
|
-
perRecordsValidatorSchema = callingFlowSharedLib.addOptionalPassBackPropertiesToValidatorSchema(perRecordsValidatorSchema); // is Ok passBackProperties
|
|
70
|
-
module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
71
|
-
|
|
72
|
-
try {
|
|
73
|
-
|
|
74
|
-
let recordPromises = [];
|
|
75
|
-
|
|
76
|
-
// loop each record and send to mainFunction
|
|
77
|
-
await Promise.all(event.Records.map(async record => { // promise.all for map() function
|
|
78
|
-
|
|
79
|
-
let passOnProperties = []
|
|
80
|
-
record._izContext.logger.debug('record ReceiveMsgOutHdrSqs', record);
|
|
81
|
-
|
|
82
|
-
//validate message (and MessageAttributes)
|
|
83
|
-
await recordHandlerSharedLib.validateRecord(
|
|
84
|
-
record, // one record will send to mainFunction
|
|
85
|
-
"CreateRelationshipComplete", // queue name that need to retry or send to dlq
|
|
86
|
-
perRecordsValidatorSchema, // schema for record.Message
|
|
87
|
-
// messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
// add argument (to invoke lambda) to passOnProperties[]
|
|
91
|
-
passOnProperties.push(record.body.Message.returnValue)
|
|
92
|
-
passOnProperties.push(record.body.Message.status)
|
|
93
|
-
passOnProperties.push(record.body.Message.errorsFound)
|
|
94
|
-
passOnProperties.push(callingFlowSharedLib.addPassBackPropertiesToPassOnProperties(record.body.Message)) // is Ok PassBackProperties
|
|
95
|
-
// passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message)) // is Ok callinfFlow
|
|
96
|
-
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
|
97
|
-
|
|
98
|
-
// call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
|
|
99
|
-
let recordPromise = recordHandlerSharedLib.recordHandler(
|
|
100
|
-
record, // one record will send to mainFunction
|
|
101
|
-
createRelationshipComplete.createRelationshipComplete, // mainFunction that need to invoke.
|
|
102
|
-
"CreateRelationshipComplete", // queue name that need to retry or send to dlq
|
|
103
|
-
passOnProperties, // all parameters that mainFunction needed.
|
|
104
|
-
);
|
|
105
|
-
record._izContext.logger.debug('after recordPromise in handler');
|
|
106
|
-
recordPromises.push(recordPromise); // push promise to recordPromises
|
|
107
|
-
}))
|
|
108
|
-
|
|
109
|
-
Logger.debug('before Promise.all(recordPromises) in handler');
|
|
110
|
-
try {
|
|
111
|
-
// --- main await all promises
|
|
112
|
-
await Promise.all(recordPromises); // await all promises
|
|
113
|
-
|
|
114
|
-
return event.Records // return all for local testing
|
|
115
|
-
|
|
116
|
-
} catch {
|
|
117
|
-
Logger.debug('Promise.all(recordPromises) in handler threw error (at least one record did no resolve)');
|
|
118
|
-
}
|
|
119
|
-
Logger.debug('after Promise.all(recordPromises) in handler');
|
|
120
|
-
|
|
121
|
-
} catch (err) {
|
|
122
|
-
Logger.error('Unhandled Error, CreateRelationshipCompleteHdrSqs: ', err);
|
|
123
|
-
throw (err);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
@@ -1,56 +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
|
-
'use strict';
|
|
19
|
-
const path = require('path');
|
|
20
|
-
const fs = require('fs');
|
|
21
|
-
|
|
22
|
-
const { ACTIONS, HANDLER } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
23
|
-
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase, firstLetterUpperCase } = require("../../../../../../MainLibs/src/Utils")
|
|
25
|
-
const { SOURCE_PATH, FUNCTION_NAME } = require("../../../../libs/Consts");
|
|
26
|
-
|
|
27
|
-
const templatePath = path.join(__dirname, 'template.ejs')
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* receive objectSchema
|
|
31
|
-
* create data for hdrInv template
|
|
32
|
-
*
|
|
33
|
-
* @return {{ templatePath, templateData, setting } }
|
|
34
|
-
*/
|
|
35
|
-
function data(_izContext, srcPath) {
|
|
36
|
-
const createSourceParams = createParamForCreateSource(srcPath)
|
|
37
|
-
return [createSourceParams];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
function createParamForCreateSource(srcPath) {
|
|
42
|
-
const functionName = FUNCTION_NAME.deleteRelComplete;
|
|
43
|
-
return {
|
|
44
|
-
templatePath: templatePath,
|
|
45
|
-
templateData: {
|
|
46
|
-
},
|
|
47
|
-
setting: {
|
|
48
|
-
savePath: path.join(srcPath, SOURCE_PATH.relationshipPerAction),
|
|
49
|
-
saveFileName: `${upperCase(functionName)}_Main`,
|
|
50
|
-
fileExtension: '.js',
|
|
51
|
-
isAppend: false
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
module.exports = data;
|