@izara_project/izara-market-library-service-schemas 1.0.83 → 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 +23 -24
- 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/generateTests/events/data.js +48 -25
- package/src/reStructure/TemplateData/IntTest/generateTests/generateTemplate.js +21 -18
- package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/data.js +10 -9
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/data.js +66 -38
- package/src/reStructure/TemplateData/IntTest/upload/uploadIntTest.js +26 -23
- 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 +1 -1
- 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 +1 -1
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +42 -26
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +18 -15
- 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 +1 -1
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +9 -13
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/template.ejs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/data.js +0 -47
- 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
|
@@ -15,44 +15,55 @@ You should have received a copy of the GNU Affero General Public License
|
|
|
15
15
|
along with this program.If not, see < http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
'use strict';
|
|
19
|
-
|
|
20
18
|
import lodash from 'lodash';
|
|
21
19
|
import { objectHash as hash } from '@izara_project/izara-shared-core';
|
|
22
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
NoRetryError,
|
|
22
|
+
inMemoryCacheLib,
|
|
23
|
+
validator as validateObject
|
|
24
|
+
} from '@izara_project/izara-core-library-core';
|
|
23
25
|
import { sns, sqs } from '@izara_project/izara-core-library-external-request';
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
+
import {
|
|
27
|
+
getObjectSchema,
|
|
28
|
+
validator as validatorSchema,
|
|
29
|
+
serviceConfig,
|
|
30
|
+
utils,
|
|
31
|
+
consts as coreConsts,
|
|
32
|
+
explodedReqParams,
|
|
33
|
+
deliminatorTree
|
|
34
|
+
} from '@izara_project/izara-core-library-service-schemas';
|
|
35
|
+
import Logger from '@izara_project/izara-core-library-logger';
|
|
26
36
|
|
|
27
37
|
import { validateObjType } from '@izara_project/izara-shared-service-schemas';
|
|
28
38
|
|
|
29
39
|
// core libs
|
|
30
40
|
import dynamodbSharedLib from '@izara_project/izara-core-library-dynamodb';
|
|
31
|
-
import asyncFlowSharedLib from '@izara_project/izara-core-library-asynchronous-flow'
|
|
41
|
+
import asyncFlowSharedLib from '@izara_project/izara-core-library-asynchronous-flow';
|
|
32
42
|
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
33
43
|
import sqsSharedLib from '@izara_project/izara-core-library-sqs';
|
|
34
44
|
import snsSharedLib from '@izara_project/izara-core-library-sns';
|
|
35
45
|
import graphSharedLibs from '@izara_project/izara-core-library-graph-service';
|
|
36
46
|
import lambdaSharedLib from '@izara_project/izara-core-library-lambda';
|
|
37
|
-
import consts from './Consts.js'
|
|
38
|
-
const { TOPIC_NAME_GENERATE_CODE, TOPIC_NAME_GRAPH_HANDLER, PREFIX } = consts
|
|
47
|
+
import consts from './Consts.js';
|
|
48
|
+
const { TOPIC_NAME_GENERATE_CODE, TOPIC_NAME_GRAPH_HANDLER, PREFIX } = consts;
|
|
39
49
|
|
|
40
|
-
const nodeLabelRegexPattern =
|
|
50
|
+
const nodeLabelRegexPattern = '^[a-zA-Z0-9_-]+(?:\:[a-zA-Z0-9_-]+)?$';
|
|
41
51
|
|
|
42
52
|
const schemaFunctionPerAction = {
|
|
43
53
|
[coreConsts.ACTIONS.create]: validatorSchema.generateValidatorSchemaForCreate,
|
|
44
54
|
[coreConsts.ACTIONS.update]: validatorSchema.generateValidatorSchemaForUpdate,
|
|
45
|
-
[coreConsts.ACTIONS.get]:
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
[coreConsts.ACTIONS.get]:
|
|
56
|
+
validatorSchema.generateValidatorSchemaForIdentifier,
|
|
57
|
+
[coreConsts.ACTIONS.delete]:
|
|
58
|
+
validatorSchema.generateValidatorSchemaForIdentifier
|
|
59
|
+
};
|
|
48
60
|
|
|
49
61
|
const explodeDataPerAction = {
|
|
50
62
|
[coreConsts.ACTIONS.create]: explodedReqParams.explodedDataForCreate,
|
|
51
63
|
[coreConsts.ACTIONS.get]: explodedReqParams.explodedDataForIdentifiers,
|
|
52
64
|
[coreConsts.ACTIONS.update]: explodedReqParams.explodedDataForUpdate,
|
|
53
65
|
[coreConsts.ACTIONS.delete]: explodedReqParams.explodedDataForIdentifiers
|
|
54
|
-
}
|
|
55
|
-
|
|
66
|
+
};
|
|
56
67
|
|
|
57
68
|
/*
|
|
58
69
|
---------- Contain function use for generated code ----------
|
|
@@ -71,9 +82,10 @@ function validateSchemaMiddleware(
|
|
|
71
82
|
bucketName = process.env.iz_serviceSchemaBucketName
|
|
72
83
|
// setting = {}
|
|
73
84
|
) {
|
|
74
|
-
|
|
75
85
|
if (!schemaFunctionPerAction[action] || !explodeDataPerAction[action]) {
|
|
76
|
-
throw new NoRetryError(
|
|
86
|
+
throw new NoRetryError(
|
|
87
|
+
`Not found function for generateValidatorSchema or explodeDataPerAction of action:${action}`
|
|
88
|
+
);
|
|
77
89
|
}
|
|
78
90
|
// Logger.debug("setting in generateCodeLibs", setting)
|
|
79
91
|
middleware.setServiceSchema(
|
|
@@ -84,7 +96,7 @@ function validateSchemaMiddleware(
|
|
|
84
96
|
// specificFieldNames: setting?.specificFieldNames ? setting.specificFieldNames : [],
|
|
85
97
|
action: action,
|
|
86
98
|
bucketName: bucketName
|
|
87
|
-
}
|
|
99
|
+
}
|
|
88
100
|
);
|
|
89
101
|
}
|
|
90
102
|
|
|
@@ -104,33 +116,48 @@ async function validateSchemaPerRecord(
|
|
|
104
116
|
lambdaFunctionName,
|
|
105
117
|
objType,
|
|
106
118
|
action,
|
|
107
|
-
setting = {
|
|
119
|
+
setting = {
|
|
120
|
+
bucketName: process.env.iz_serviceSchemaBucketName,
|
|
121
|
+
specificFieldNames: []
|
|
122
|
+
}
|
|
108
123
|
) {
|
|
109
124
|
try {
|
|
110
|
-
record._izContext.logger.debug(
|
|
125
|
+
record._izContext.logger.debug(
|
|
126
|
+
'validateSchemaPerRecord: ',
|
|
111
127
|
record,
|
|
112
128
|
lambdaFunctionName,
|
|
113
129
|
objType,
|
|
114
130
|
action,
|
|
115
131
|
setting
|
|
116
|
-
)
|
|
132
|
+
);
|
|
117
133
|
|
|
118
134
|
if (!schemaFunctionPerAction[action] || !explodeDataPerAction[action]) {
|
|
119
|
-
throw new Error(
|
|
135
|
+
throw new Error(
|
|
136
|
+
`Not found function for generateValidatorSchema or function for explodeData of action:${action}`
|
|
137
|
+
);
|
|
120
138
|
}
|
|
121
139
|
|
|
122
|
-
const objectSchema = await getObjectSchema.getObjSchemaS3WithHierarchy(
|
|
140
|
+
const objectSchema = await getObjectSchema.getObjSchemaS3WithHierarchy(
|
|
141
|
+
record._izContext,
|
|
142
|
+
objType
|
|
143
|
+
);
|
|
123
144
|
|
|
124
145
|
if (!objectSchema) {
|
|
125
|
-
throw new Error(
|
|
146
|
+
throw new Error('not have objectSchema in service');
|
|
126
147
|
}
|
|
127
148
|
|
|
128
149
|
const generateValidatorFunction = schemaFunctionPerAction[action];
|
|
129
|
-
const explodeDataFunction = explodeDataPerAction[action]
|
|
130
|
-
|
|
131
|
-
const generatedSchema = await generateValidatorFunction(record._izContext, objType, setting);
|
|
132
|
-
record._izContext.logger.debug(`generatedSchema in validateSchemaPerRecord : `, generatedSchema);
|
|
150
|
+
const explodeDataFunction = explodeDataPerAction[action];
|
|
133
151
|
|
|
152
|
+
const generatedSchema = await generateValidatorFunction(
|
|
153
|
+
record._izContext,
|
|
154
|
+
objType,
|
|
155
|
+
setting
|
|
156
|
+
);
|
|
157
|
+
record._izContext.logger.debug(
|
|
158
|
+
`generatedSchema in validateSchemaPerRecord : `,
|
|
159
|
+
generatedSchema
|
|
160
|
+
);
|
|
134
161
|
|
|
135
162
|
const explodedDataRequestParams = await explodeDataFunction(
|
|
136
163
|
record._izContext,
|
|
@@ -139,24 +166,35 @@ async function validateSchemaPerRecord(
|
|
|
139
166
|
setting
|
|
140
167
|
);
|
|
141
168
|
|
|
169
|
+
record._izContext.logger.debug(
|
|
170
|
+
'explodedDataRequestParams in validateSchemaPerRecord : ',
|
|
171
|
+
JSON.stringify(explodedDataRequestParams)
|
|
172
|
+
);
|
|
142
173
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
174
|
+
let validateStatus = validateObject(
|
|
175
|
+
generatedSchema,
|
|
176
|
+
explodedDataRequestParams
|
|
177
|
+
);
|
|
147
178
|
record._izContext.logger.debug('validateStatus : ', validateStatus);
|
|
148
179
|
|
|
149
180
|
// if not pass validate will sent message to dlq and throw NoRetryError
|
|
150
181
|
if (!validateStatus.pass) {
|
|
151
|
-
await messageToDlq(
|
|
152
|
-
|
|
182
|
+
await messageToDlq(
|
|
183
|
+
record,
|
|
184
|
+
`Invalid: ${validateStatus.error}`,
|
|
185
|
+
await sqsSharedLib.sqsQueueUrlDLQ(record._izContext, lambdaFunctionName)
|
|
186
|
+
);
|
|
187
|
+
record._izError = new Error(validateStatus.error);
|
|
153
188
|
}
|
|
154
189
|
} catch (error) {
|
|
155
|
-
record._izContext.logger.debug(
|
|
156
|
-
await messageToDlq(
|
|
157
|
-
|
|
190
|
+
record._izContext.logger.debug('validate PerSchema Record error', error);
|
|
191
|
+
await messageToDlq(
|
|
192
|
+
record,
|
|
193
|
+
error.message,
|
|
194
|
+
await sqsSharedLib.sqsQueueUrlDLQ(record._izContext, lambdaFunctionName)
|
|
195
|
+
);
|
|
196
|
+
record._izError = new Error(error);
|
|
158
197
|
}
|
|
159
|
-
|
|
160
198
|
}
|
|
161
199
|
|
|
162
200
|
/**
|
|
@@ -169,19 +207,18 @@ async function validateSchemaPerRecord(
|
|
|
169
207
|
* @returns {object}
|
|
170
208
|
*/
|
|
171
209
|
|
|
172
|
-
async function validationForWebSocket(
|
|
173
|
-
_izContext,
|
|
174
|
-
flowType
|
|
175
|
-
) {
|
|
176
|
-
_izContext.logger.debug("validator schema for flowTag", {
|
|
210
|
+
async function validationForWebSocket(_izContext, flowType) {
|
|
211
|
+
_izContext.logger.debug('validator schema for flowTag', {
|
|
177
212
|
flowType
|
|
178
|
-
})
|
|
179
|
-
let flowSchema = await getObjectSchema.getFlowSchemaS3(_izContext, flowType)
|
|
180
|
-
|
|
181
|
-
let validatorSchemaForFlowSchema = flowSchema.initializeRequest.initializeRequestProperties
|
|
182
|
-
_izContext.logger.debug("validatorSchemaForFlowSchema:", validatorSchemaForFlowSchema)
|
|
183
|
-
|
|
213
|
+
});
|
|
214
|
+
let flowSchema = await getObjectSchema.getFlowSchemaS3(_izContext, flowType);
|
|
184
215
|
|
|
216
|
+
let validatorSchemaForFlowSchema =
|
|
217
|
+
flowSchema.initializeRequest.initializeRequestProperties;
|
|
218
|
+
_izContext.logger.debug(
|
|
219
|
+
'validatorSchemaForFlowSchema:',
|
|
220
|
+
validatorSchemaForFlowSchema
|
|
221
|
+
);
|
|
185
222
|
}
|
|
186
223
|
|
|
187
224
|
/**
|
|
@@ -196,25 +233,26 @@ function validatorSchemaMiddlewareByAction(
|
|
|
196
233
|
action,
|
|
197
234
|
setting = {}
|
|
198
235
|
) {
|
|
199
|
-
|
|
200
236
|
// if (!schemaFunctionPerAction[action] || !explodeDataPerAction[action]) {
|
|
201
237
|
// throw new NoRetryError(`Not found function for generateValidatorSchema or explodeDataPerAction of action:${action}`);
|
|
202
238
|
// }
|
|
203
|
-
console.log(
|
|
239
|
+
console.log('before send to middleware', {
|
|
204
240
|
middleware,
|
|
205
241
|
// objectType,
|
|
206
242
|
action,
|
|
207
243
|
setting
|
|
208
|
-
})
|
|
209
|
-
Logger.debug(
|
|
244
|
+
});
|
|
245
|
+
Logger.debug('setting in generateCodeLibs', setting);
|
|
210
246
|
middleware.setServiceSchema(
|
|
211
247
|
// schemaFunctionPerAction[action],
|
|
212
248
|
// explodeDataPerAction[action],
|
|
213
249
|
{
|
|
214
250
|
// objectType: objectType,
|
|
215
|
-
specificFieldNames: setting?.specificFieldNames
|
|
251
|
+
specificFieldNames: setting?.specificFieldNames
|
|
252
|
+
? setting.specificFieldNames
|
|
253
|
+
: [],
|
|
216
254
|
action: action
|
|
217
|
-
}
|
|
255
|
+
}
|
|
218
256
|
);
|
|
219
257
|
}
|
|
220
258
|
// /**
|
|
@@ -258,7 +296,6 @@ function validatorSchemaMiddlewareByAction(
|
|
|
258
296
|
|
|
259
297
|
// _izContext.logger.debug("exploded RequestParams Data in GeneratorValidatorSchema :", explodedDataPerWebSocket);
|
|
260
298
|
|
|
261
|
-
|
|
262
299
|
// let validateStatus = validateObject(_izContext, generateValidatorSchemaPerWebSocket, explodedDataPerWebSocket);
|
|
263
300
|
// _izContext.logger.debug('validateStatus : ', validateStatus);
|
|
264
301
|
|
|
@@ -272,31 +309,45 @@ function validatorSchemaMiddlewareByAction(
|
|
|
272
309
|
// }
|
|
273
310
|
// }
|
|
274
311
|
|
|
275
|
-
async function sendMsgOutComplete(
|
|
276
|
-
|
|
312
|
+
async function sendMsgOutComplete(
|
|
313
|
+
_izContext,
|
|
314
|
+
topicName,
|
|
315
|
+
messageObj,
|
|
316
|
+
callingFlowConfig
|
|
317
|
+
) {
|
|
277
318
|
try {
|
|
278
319
|
// add callingFlow to message
|
|
279
|
-
messageObj =
|
|
280
|
-
|
|
320
|
+
messageObj =
|
|
321
|
+
callingFlowSharedLib.addPassBackPropertiesToSnsResponseMessageObject(
|
|
322
|
+
callingFlowConfig,
|
|
323
|
+
messageObj
|
|
324
|
+
);
|
|
325
|
+
let messageAttributes =
|
|
326
|
+
callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(
|
|
327
|
+
callingFlowConfig,
|
|
328
|
+
{}
|
|
329
|
+
);
|
|
281
330
|
|
|
282
331
|
let sendMessageOutComplete = {
|
|
283
332
|
Message: JSON.stringify(messageObj),
|
|
284
|
-
MessageAttributes: sns.createStringMessageAttributes(
|
|
285
|
-
|
|
333
|
+
MessageAttributes: sns.createStringMessageAttributes(
|
|
334
|
+
_izContext,
|
|
335
|
+
messageAttributes
|
|
336
|
+
),
|
|
337
|
+
TopicArn: await snsSharedLib.snsTopicArn(_izContext, topicName)
|
|
286
338
|
};
|
|
287
339
|
|
|
288
|
-
_izContext.logger.debug(
|
|
340
|
+
_izContext.logger.debug(
|
|
341
|
+
`Send message to ${topicName} :`,
|
|
342
|
+
sendMessageOutComplete
|
|
343
|
+
);
|
|
289
344
|
await sns.publishAsync(_izContext, sendMessageOutComplete);
|
|
290
345
|
return;
|
|
291
346
|
} catch (error) {
|
|
292
347
|
throw error;
|
|
293
348
|
}
|
|
294
|
-
|
|
295
349
|
}
|
|
296
350
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
351
|
/**
|
|
301
352
|
* @param {object} record - One record from sqs.
|
|
302
353
|
* @param {string} messageFailError - The message error.
|
|
@@ -304,26 +355,29 @@ async function sendMsgOutComplete(_izContext, topicName, messageObj, callingFlow
|
|
|
304
355
|
*
|
|
305
356
|
*/
|
|
306
357
|
async function messageToDlq(record, messageFailError, queueUrl) {
|
|
307
|
-
|
|
308
|
-
let messageBody = record.body
|
|
358
|
+
let messageBody = record.body;
|
|
309
359
|
|
|
310
360
|
let params = {
|
|
311
361
|
QueueUrl: queueUrl,
|
|
312
362
|
MessageAttributes: {
|
|
313
363
|
messageFailError: {
|
|
314
|
-
DataType:
|
|
364
|
+
DataType: 'String',
|
|
315
365
|
StringValue: messageFailError
|
|
316
366
|
}
|
|
317
367
|
},
|
|
318
|
-
MessageBody: JSON.stringify(messageBody)
|
|
368
|
+
MessageBody: JSON.stringify(messageBody)
|
|
319
369
|
};
|
|
320
370
|
|
|
321
|
-
record._izContext.logger.debug(
|
|
371
|
+
record._izContext.logger.debug(
|
|
372
|
+
'messageToDlq, params before sending DLQ',
|
|
373
|
+
params
|
|
374
|
+
);
|
|
322
375
|
|
|
323
376
|
await sqs.sendMessage(record._izContext, params);
|
|
324
|
-
record._izContext.logger.debug(
|
|
325
|
-
|
|
326
|
-
|
|
377
|
+
record._izContext.logger.debug(
|
|
378
|
+
'----- messageToDlq sendMessage success -----'
|
|
379
|
+
);
|
|
380
|
+
}
|
|
327
381
|
|
|
328
382
|
// {
|
|
329
383
|
// [storageTag]: {
|
|
@@ -338,7 +392,6 @@ async function messageToDlq(record, messageFailError, queueUrl) {
|
|
|
338
392
|
// }
|
|
339
393
|
// }
|
|
340
394
|
|
|
341
|
-
|
|
342
395
|
/**
|
|
343
396
|
* helper function for get endpoint
|
|
344
397
|
* create get data detail for each storageTag
|
|
@@ -346,18 +399,23 @@ async function messageToDlq(record, messageFailError, queueUrl) {
|
|
|
346
399
|
* @param {Object} _izContext
|
|
347
400
|
* @param {Object} objectSchema
|
|
348
401
|
*/
|
|
349
|
-
async function createGetDataDetails(
|
|
350
|
-
|
|
402
|
+
async function createGetDataDetails(
|
|
403
|
+
_izContext,
|
|
404
|
+
objectSchema,
|
|
405
|
+
settings = { bucketName: process.env.iz_serviceSchemaBucketName }
|
|
406
|
+
) {
|
|
351
407
|
// group versionedData per storageTag
|
|
352
408
|
// or should group versionedData per graph serviceTag
|
|
353
|
-
let versionedDataPerStorageTag = {}
|
|
409
|
+
let versionedDataPerStorageTag = {};
|
|
354
410
|
if (objectSchema?.addOnDataStructure?.length) {
|
|
355
411
|
for (let addOn of objectSchema.addOnDataStructure) {
|
|
356
|
-
if (addOn.type !==
|
|
412
|
+
if (addOn.type !== 'versionedData') {
|
|
357
413
|
continue;
|
|
358
414
|
}
|
|
359
415
|
|
|
360
|
-
if (
|
|
416
|
+
if (
|
|
417
|
+
!versionedDataPerStorageTag.hasOwnProperty(addOn.storageResourceTag)
|
|
418
|
+
) {
|
|
361
419
|
versionedDataPerStorageTag[addOn.storageResourceTag] = [];
|
|
362
420
|
}
|
|
363
421
|
|
|
@@ -365,22 +423,25 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
365
423
|
}
|
|
366
424
|
}
|
|
367
425
|
|
|
368
|
-
_izContext.logger.debug(
|
|
369
|
-
|
|
426
|
+
_izContext.logger.debug(
|
|
427
|
+
'versionedDataPerStorageTag: ',
|
|
428
|
+
versionedDataPerStorageTag
|
|
429
|
+
);
|
|
370
430
|
|
|
371
431
|
let getGraphDataDetails = {};
|
|
372
432
|
let getDynamoDbDataDetails = {};
|
|
373
433
|
|
|
374
|
-
|
|
375
434
|
// reference to graph serviceTag that already used
|
|
376
|
-
let graphStorageTagPerGraphServiceTag = {} // {serviceTag:storageTag,... }
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
for (let [storageTag, storageData] of Object.entries(objectSchema.storageResources)) {
|
|
435
|
+
let graphStorageTagPerGraphServiceTag = {}; // {serviceTag:storageTag,... }
|
|
380
436
|
|
|
437
|
+
for (let [storageTag, storageData] of Object.entries(
|
|
438
|
+
objectSchema.storageResources
|
|
439
|
+
)) {
|
|
381
440
|
// collect fieldNames per storageTag
|
|
382
441
|
let storageTagFieldNames = [];
|
|
383
|
-
for (let [fieldName, fieldNameData] of Object.entries(
|
|
442
|
+
for (let [fieldName, fieldNameData] of Object.entries(
|
|
443
|
+
objectSchema.fieldNames
|
|
444
|
+
)) {
|
|
384
445
|
// if (fieldName.startsWith("versionedDataField")) {
|
|
385
446
|
// continue;
|
|
386
447
|
// }
|
|
@@ -391,52 +452,61 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
391
452
|
}
|
|
392
453
|
|
|
393
454
|
if (storageData.storageType === coreConsts.STORAGE_TYPES.graph) {
|
|
394
|
-
|
|
395
455
|
let useStorageTag = storageTag;
|
|
396
|
-
let graphServiceTag = await serviceConfig.getGraphServiceTagWithCache(
|
|
456
|
+
let graphServiceTag = await serviceConfig.getGraphServiceTagWithCache(
|
|
457
|
+
_izContext,
|
|
458
|
+
storageData.graphServerTag,
|
|
459
|
+
settings.bucketName
|
|
460
|
+
);
|
|
397
461
|
|
|
398
462
|
// check duplicate graph serviceTag
|
|
399
463
|
if (!graphStorageTagPerGraphServiceTag.hasOwnProperty(graphServiceTag)) {
|
|
400
464
|
graphStorageTagPerGraphServiceTag[graphServiceTag] = storageTag;
|
|
401
465
|
} else {
|
|
402
466
|
// overwrite useStorageTag if graphServiceTag already used
|
|
403
|
-
_izContext.logger.debug(
|
|
404
|
-
_izContext.logger.debug(
|
|
467
|
+
_izContext.logger.debug('current storageTag: ', storageTag);
|
|
468
|
+
_izContext.logger.debug('use storageTag: ', useStorageTag);
|
|
405
469
|
|
|
406
470
|
useStorageTag = graphStorageTagPerGraphServiceTag[graphServiceTag];
|
|
407
471
|
}
|
|
408
472
|
|
|
409
|
-
|
|
410
473
|
if (!getGraphDataDetails.hasOwnProperty(useStorageTag)) {
|
|
411
474
|
getGraphDataDetails[useStorageTag] = {
|
|
412
475
|
storageType: storageData.storageType,
|
|
413
476
|
graphServiceTag: graphServiceTag,
|
|
414
477
|
fieldNames: storageTagFieldNames
|
|
415
|
-
}
|
|
478
|
+
};
|
|
416
479
|
} else {
|
|
417
|
-
getGraphDataDetails[useStorageTag].fieldNames =
|
|
418
|
-
|
|
480
|
+
getGraphDataDetails[useStorageTag].fieldNames = [
|
|
481
|
+
...new Set(
|
|
482
|
+
getGraphDataDetails[useStorageTag].fieldNames.concat(
|
|
483
|
+
storageTagFieldNames
|
|
484
|
+
)
|
|
485
|
+
)
|
|
486
|
+
];
|
|
419
487
|
}
|
|
420
488
|
|
|
421
|
-
|
|
422
489
|
// add versionedData fieldNames
|
|
423
490
|
if (versionedDataPerStorageTag.hasOwnProperty(storageTag)) {
|
|
424
|
-
if (
|
|
491
|
+
if (
|
|
492
|
+
!getGraphDataDetails[useStorageTag].hasOwnProperty('versionedDatas')
|
|
493
|
+
) {
|
|
425
494
|
getGraphDataDetails[useStorageTag].versionedDatas = {};
|
|
426
495
|
}
|
|
427
496
|
|
|
428
497
|
for (let versionedData of versionedDataPerStorageTag[storageTag]) {
|
|
429
|
-
_izContext.logger.debug(
|
|
498
|
+
_izContext.logger.debug(
|
|
499
|
+
'versionedData.fieldNames',
|
|
500
|
+
versionedData.fieldNames
|
|
501
|
+
);
|
|
430
502
|
let versionedDataFieldNames = Object.keys(versionedData.fieldNames);
|
|
431
|
-
Object.assign(
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
)
|
|
503
|
+
Object.assign(getGraphDataDetails[useStorageTag].versionedDatas, {
|
|
504
|
+
[versionedData.versionedDataLabel]: versionedDataFieldNames
|
|
505
|
+
});
|
|
435
506
|
}
|
|
436
507
|
}
|
|
437
|
-
|
|
438
508
|
} else if (storageData.storageType === coreConsts.STORAGE_TYPES.dynamoDB) {
|
|
439
|
-
let serviceTag = storageData.serviceTag || process.env.iz_serviceTag
|
|
509
|
+
let serviceTag = storageData.serviceTag || process.env.iz_serviceTag;
|
|
440
510
|
Object.assign(getDynamoDbDataDetails, {
|
|
441
511
|
[storageTag]: {
|
|
442
512
|
storageType: storageData.storageType,
|
|
@@ -444,57 +514,64 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
444
514
|
serviceTag: serviceTag,
|
|
445
515
|
fieldNames: storageTagFieldNames
|
|
446
516
|
}
|
|
447
|
-
})
|
|
517
|
+
});
|
|
448
518
|
|
|
449
519
|
if (storageData.groupByPartitionKeyField) {
|
|
450
|
-
Object.assign(
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
groupByPartitionKeyField: storageData.groupByPartitionKeyField
|
|
454
|
-
}
|
|
455
|
-
)
|
|
520
|
+
Object.assign(getDynamoDbDataDetails[storageTag], {
|
|
521
|
+
groupByPartitionKeyField: storageData.groupByPartitionKeyField
|
|
522
|
+
});
|
|
456
523
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
524
|
} else {
|
|
460
|
-
throw new NoRetryError(
|
|
525
|
+
throw new NoRetryError('Unhanled storageType');
|
|
461
526
|
}
|
|
462
527
|
}
|
|
463
528
|
|
|
464
|
-
_izContext.logger.debug(
|
|
465
|
-
_izContext.logger.debug(
|
|
466
|
-
|
|
529
|
+
_izContext.logger.debug('getGraphDataDetail: ', getGraphDataDetails);
|
|
530
|
+
_izContext.logger.debug('getDynamoDbData: ', getDynamoDbDataDetails);
|
|
467
531
|
|
|
468
532
|
//-------- sort descending order of fieldNames.length --------
|
|
469
533
|
let sortedGetGraphWithVersionedData = Object.entries(getGraphDataDetails)
|
|
470
|
-
.filter(
|
|
471
|
-
|
|
472
|
-
|
|
534
|
+
.filter(getGraphDetail =>
|
|
535
|
+
getGraphDetail[1].hasOwnProperty('versionedDatas')
|
|
536
|
+
)
|
|
537
|
+
.sort(
|
|
538
|
+
(storageDataA, storageDataB) =>
|
|
539
|
+
storageDataB[1].fieldNames.length - storageDataA[1].fieldNames.length
|
|
473
540
|
);
|
|
474
541
|
|
|
475
|
-
_izContext.logger.debug(
|
|
476
|
-
|
|
542
|
+
_izContext.logger.debug(
|
|
543
|
+
'sortedGetGraphWithVersionedData: ',
|
|
544
|
+
sortedGetGraphWithVersionedData
|
|
545
|
+
);
|
|
477
546
|
|
|
478
547
|
let sortedGetGraphWithoutVersionedData = Object.entries(getGraphDataDetails)
|
|
479
|
-
.filter(
|
|
480
|
-
|
|
481
|
-
|
|
548
|
+
.filter(
|
|
549
|
+
getGraphDetail => !getGraphDetail[1].hasOwnProperty('versionedDatas')
|
|
550
|
+
)
|
|
551
|
+
.sort(
|
|
552
|
+
(storageDataA, storageDataB) =>
|
|
553
|
+
storageDataB[1].fieldNames.length - storageDataA[1].fieldNames.length
|
|
482
554
|
);
|
|
483
555
|
|
|
484
|
-
_izContext.logger.debug(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
let sortedGetDynamoDbData = Object.entries(getDynamoDbDataDetails).sort((storageDataA, storageDataB) =>
|
|
488
|
-
storageDataB[1].fieldNames.length - storageDataA[1].fieldNames.length
|
|
556
|
+
_izContext.logger.debug(
|
|
557
|
+
'sortedGetGraphWithoutVersionedData: ',
|
|
558
|
+
sortedGetGraphWithoutVersionedData
|
|
489
559
|
);
|
|
490
560
|
|
|
491
|
-
|
|
561
|
+
let sortedGetDynamoDbData = Object.entries(getDynamoDbDataDetails).sort(
|
|
562
|
+
(storageDataA, storageDataB) =>
|
|
563
|
+
storageDataB[1].fieldNames.length - storageDataA[1].fieldNames.length
|
|
564
|
+
);
|
|
492
565
|
|
|
566
|
+
_izContext.logger.debug('sortedGetDynamoDbData: ', sortedGetDynamoDbData);
|
|
493
567
|
|
|
494
568
|
// after sort data then filter duplicate fieldName
|
|
495
|
-
let allSortedGetDataDetails = [
|
|
496
|
-
|
|
497
|
-
|
|
569
|
+
let allSortedGetDataDetails = [
|
|
570
|
+
...sortedGetGraphWithVersionedData,
|
|
571
|
+
...sortedGetDynamoDbData,
|
|
572
|
+
...sortedGetGraphWithoutVersionedData
|
|
573
|
+
];
|
|
574
|
+
_izContext.logger.debug('allSortedGetDataDetails: ', allSortedGetDataDetails);
|
|
498
575
|
|
|
499
576
|
let usedFieldName = [];
|
|
500
577
|
for (let [storageTag, getDataDetail] of allSortedGetDataDetails) {
|
|
@@ -510,22 +587,26 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
510
587
|
getDataDetail.fieldNames = remainsFieldNames;
|
|
511
588
|
}
|
|
512
589
|
|
|
513
|
-
_izContext.logger.debug(
|
|
514
|
-
|
|
590
|
+
_izContext.logger.debug('newSortedArray after: ', allSortedGetDataDetails);
|
|
515
591
|
|
|
516
592
|
let getDataDetailResults = Object.fromEntries(
|
|
517
593
|
allSortedGetDataDetails.filter(([storageTag, getDataDetail]) => {
|
|
518
|
-
return (
|
|
594
|
+
return (
|
|
595
|
+
getDataDetail.fieldNames.length ||
|
|
596
|
+
getDataDetail.hasOwnProperty('versionedDatas')
|
|
597
|
+
);
|
|
519
598
|
})
|
|
520
599
|
);
|
|
521
600
|
|
|
522
|
-
_izContext.logger.debug(
|
|
601
|
+
_izContext.logger.debug('getDataDetailResults: ', getDataDetailResults);
|
|
523
602
|
|
|
524
603
|
for (const getDataDetail of Object.values(getDataDetailResults)) {
|
|
525
|
-
if (getDataDetail.hasOwnProperty(
|
|
604
|
+
if (getDataDetail.hasOwnProperty('versionedDatas')) {
|
|
526
605
|
getDataDetail.versionedDataLabels = [];
|
|
527
|
-
for (let [versionedDataLabel, fieldNames] of Object.entries(
|
|
528
|
-
getDataDetail.
|
|
606
|
+
for (let [versionedDataLabel, fieldNames] of Object.entries(
|
|
607
|
+
getDataDetail.versionedDatas
|
|
608
|
+
)) {
|
|
609
|
+
getDataDetail.versionedDataLabels.push(versionedDataLabel);
|
|
529
610
|
getDataDetail.fieldNames.push(...fieldNames);
|
|
530
611
|
}
|
|
531
612
|
}
|
|
@@ -534,7 +615,6 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
534
615
|
return getDataDetailResults;
|
|
535
616
|
}
|
|
536
617
|
|
|
537
|
-
|
|
538
618
|
/**
|
|
539
619
|
* create dynamoDb identifiers using request param and objectSchema
|
|
540
620
|
*
|
|
@@ -542,24 +622,41 @@ async function createGetDataDetails(_izContext, objectSchema, settings = { bucke
|
|
|
542
622
|
* @param {Object} objectSchema
|
|
543
623
|
* @param {Object} reqIdentifiers - input identifier from calling function
|
|
544
624
|
*/
|
|
545
|
-
async function generateDynamoDbIdentifiers(
|
|
546
|
-
|
|
625
|
+
async function generateDynamoDbIdentifiers(
|
|
626
|
+
_izContext,
|
|
627
|
+
objectSchema,
|
|
628
|
+
reqIdentifiers,
|
|
629
|
+
bucketName = process.env.iz_serviceSchemaBucketName
|
|
630
|
+
) {
|
|
547
631
|
// start create identifiers for dynamo
|
|
548
632
|
let dynamoIdentifiers = {};
|
|
549
633
|
|
|
550
634
|
for (let identifier of objectSchema.identifiers) {
|
|
551
635
|
if (identifier.name) {
|
|
552
|
-
let deliminator =
|
|
636
|
+
let deliminator =
|
|
637
|
+
identifier.deliminator || coreConsts.DEFAULT_IDENTIFIER_DELIMINATOR;
|
|
553
638
|
let currentDeliminatorAmount = 0;
|
|
554
639
|
|
|
555
640
|
let concatenateValue = [];
|
|
556
641
|
for (let fieldName of identifier.fieldNames) {
|
|
557
642
|
concatenateValue.push(reqIdentifiers[fieldName]);
|
|
558
643
|
|
|
559
|
-
let deliminatorTreeFieldName =
|
|
560
|
-
|
|
644
|
+
let deliminatorTreeFieldName =
|
|
645
|
+
await deliminatorTree.generateDeliminatorTreePerFieldName(
|
|
646
|
+
_izContext,
|
|
647
|
+
fieldName,
|
|
648
|
+
objectSchema.fieldNames[fieldName],
|
|
649
|
+
{},
|
|
650
|
+
bucketName
|
|
651
|
+
);
|
|
652
|
+
_izContext.logger.debug(
|
|
653
|
+
'deliminatorTreeFieldName: ',
|
|
654
|
+
deliminatorTreeFieldName
|
|
655
|
+
);
|
|
561
656
|
|
|
562
|
-
if (
|
|
657
|
+
if (
|
|
658
|
+
deliminatorTreeFieldName[fieldName]?.deliminatorList?.[deliminator]
|
|
659
|
+
) {
|
|
563
660
|
currentDeliminatorAmount = Math.max(
|
|
564
661
|
currentDeliminatorAmount,
|
|
565
662
|
deliminatorTreeFieldName[fieldName].deliminatorList[deliminator]
|
|
@@ -567,28 +664,23 @@ async function generateDynamoDbIdentifiers(_izContext, objectSchema, reqIdentifi
|
|
|
567
664
|
}
|
|
568
665
|
}
|
|
569
666
|
|
|
570
|
-
Object.assign(
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
);
|
|
667
|
+
Object.assign(dynamoIdentifiers, {
|
|
668
|
+
[identifier.name]: concatenateValue.join(
|
|
669
|
+
deliminator.repeat(currentDeliminatorAmount + 1)
|
|
670
|
+
)
|
|
671
|
+
});
|
|
576
672
|
} else {
|
|
577
|
-
Object.assign(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
[identifier.fieldName]: reqIdentifiers[identifier.fieldName]
|
|
581
|
-
}
|
|
582
|
-
)
|
|
673
|
+
Object.assign(dynamoIdentifiers, {
|
|
674
|
+
[identifier.fieldName]: reqIdentifiers[identifier.fieldName]
|
|
675
|
+
});
|
|
583
676
|
}
|
|
584
677
|
}
|
|
585
678
|
|
|
586
|
-
_izContext.logger.debug(
|
|
679
|
+
_izContext.logger.debug('dynamoIdentifiers: ', dynamoIdentifiers);
|
|
587
680
|
|
|
588
681
|
return dynamoIdentifiers;
|
|
589
682
|
}
|
|
590
683
|
|
|
591
|
-
|
|
592
684
|
/**
|
|
593
685
|
* create dynamoDb identifiers using request param and objectSchema
|
|
594
686
|
*
|
|
@@ -598,13 +690,17 @@ async function generateDynamoDbIdentifiers(_izContext, objectSchema, reqIdentifi
|
|
|
598
690
|
*/
|
|
599
691
|
const generateDynamoDbIdentifiersWithCache = inMemoryCacheLib(
|
|
600
692
|
generateDynamoDbIdentifiers, // fn
|
|
601
|
-
{
|
|
602
|
-
|
|
693
|
+
{
|
|
694
|
+
// setting
|
|
695
|
+
max: 20,
|
|
696
|
+
maxAge: 86400000,
|
|
697
|
+
promise: true,
|
|
698
|
+
profileName: 'generateDynamoDbIdentifiers',
|
|
603
699
|
normalizer: function (args) {
|
|
604
|
-
return hash([args[1], args[2]])
|
|
700
|
+
return hash([args[1], args[2]]);
|
|
605
701
|
}
|
|
606
702
|
}
|
|
607
|
-
)
|
|
703
|
+
);
|
|
608
704
|
|
|
609
705
|
/**
|
|
610
706
|
*
|
|
@@ -613,25 +709,45 @@ const generateDynamoDbIdentifiersWithCache = inMemoryCacheLib(
|
|
|
613
709
|
* @param {Object} dynamoStorageResource
|
|
614
710
|
* @param {Object} reqIdentifiers
|
|
615
711
|
*/
|
|
616
|
-
async function dynamoDbIdentifiersByStorageResource(
|
|
617
|
-
|
|
618
|
-
|
|
712
|
+
async function dynamoDbIdentifiersByStorageResource(
|
|
713
|
+
_izContext,
|
|
714
|
+
objectSchema,
|
|
715
|
+
dynamoStorageResource,
|
|
716
|
+
reqIdentifiers,
|
|
717
|
+
bucketName = process.env.iz_serviceSchemaBucketName
|
|
718
|
+
) {
|
|
719
|
+
let dynamoIdentifiers = await generateDynamoDbIdentifiersWithCache(
|
|
720
|
+
_izContext,
|
|
721
|
+
objectSchema,
|
|
722
|
+
reqIdentifiers,
|
|
723
|
+
bucketName
|
|
724
|
+
);
|
|
619
725
|
|
|
620
726
|
let identifiersByStorageResource = {};
|
|
621
727
|
|
|
622
728
|
if (dynamoStorageResource.groupByPartitionKeyField) {
|
|
729
|
+
let deliminatorTreeIdentifiers =
|
|
730
|
+
await deliminatorTree.generateDeliminatorTreeIdentifier(
|
|
731
|
+
_izContext,
|
|
732
|
+
objectSchema,
|
|
733
|
+
bucketName
|
|
734
|
+
);
|
|
735
|
+
_izContext.logger.debug('deliminatorTree: ', deliminatorTreeIdentifiers);
|
|
623
736
|
|
|
624
|
-
let
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
let compositeKeyDeliminator = objectSchema.compositeKeyDeliminator || coreConsts.DEFAULT_IDENTIFIER_DELIMINATOR;
|
|
737
|
+
let compositeKeyDeliminator =
|
|
738
|
+
objectSchema.compositeKeyDeliminator ||
|
|
739
|
+
coreConsts.DEFAULT_IDENTIFIER_DELIMINATOR;
|
|
628
740
|
|
|
629
741
|
let currentDeliminatorAmount = 0;
|
|
630
742
|
|
|
631
743
|
for (let currentDeliminator of Object.values(deliminatorTreeIdentifiers)) {
|
|
632
744
|
if (currentDeliminator.deliminator === compositeKeyDeliminator) {
|
|
633
|
-
if (
|
|
634
|
-
currentDeliminatorAmount
|
|
745
|
+
if (
|
|
746
|
+
currentDeliminatorAmount <
|
|
747
|
+
currentDeliminator.deliminatorList[compositeKeyDeliminator]
|
|
748
|
+
) {
|
|
749
|
+
currentDeliminatorAmount =
|
|
750
|
+
currentDeliminator.deliminatorList[compositeKeyDeliminator];
|
|
635
751
|
}
|
|
636
752
|
}
|
|
637
753
|
}
|
|
@@ -643,12 +759,13 @@ async function dynamoDbIdentifiersByStorageResource(_izContext, objectSchema, dy
|
|
|
643
759
|
sortedIdentifiersValue.push(dynamoIdentifiers[identifierName]);
|
|
644
760
|
}
|
|
645
761
|
|
|
646
|
-
let newIdentifierValue = sortedIdentifiersValue.join(
|
|
762
|
+
let newIdentifierValue = sortedIdentifiersValue.join(
|
|
763
|
+
compositeKeyDeliminator.repeat(currentDeliminatorAmount + 1)
|
|
764
|
+
);
|
|
647
765
|
|
|
648
766
|
identifiersByStorageResource = {
|
|
649
767
|
[dynamoStorageResource.groupByPartitionKeyField]: newIdentifierValue
|
|
650
768
|
};
|
|
651
|
-
|
|
652
769
|
} else {
|
|
653
770
|
identifiersByStorageResource = dynamoIdentifiers;
|
|
654
771
|
}
|
|
@@ -656,7 +773,6 @@ async function dynamoDbIdentifiersByStorageResource(_izContext, objectSchema, dy
|
|
|
656
773
|
return identifiersByStorageResource;
|
|
657
774
|
}
|
|
658
775
|
|
|
659
|
-
|
|
660
776
|
/**
|
|
661
777
|
* receive result from multiple database and create data format depend on returnFormat setting
|
|
662
778
|
*
|
|
@@ -665,23 +781,29 @@ async function dynamoDbIdentifiersByStorageResource(_izContext, objectSchema, dy
|
|
|
665
781
|
* @param {object} objectSchema
|
|
666
782
|
* @returns
|
|
667
783
|
*/
|
|
668
|
-
function collectGetData(
|
|
669
|
-
_izContext
|
|
784
|
+
function collectGetData(
|
|
785
|
+
_izContext,
|
|
786
|
+
getResults,
|
|
787
|
+
objectSchema,
|
|
788
|
+
returnSystemFieldsName
|
|
789
|
+
) {
|
|
790
|
+
_izContext.logger.debug('collectGetData: ', {
|
|
670
791
|
getResults,
|
|
671
792
|
objectSchema,
|
|
672
793
|
returnSystemFieldsName
|
|
673
794
|
});
|
|
674
795
|
|
|
675
|
-
|
|
676
796
|
let collectedData = {
|
|
677
797
|
identifiers: {},
|
|
678
798
|
fields: {}
|
|
679
|
-
}
|
|
799
|
+
};
|
|
680
800
|
|
|
681
801
|
if (returnSystemFieldsName) {
|
|
682
|
-
Object.assign(collectedData, { versionDataSystemFields: {} })
|
|
802
|
+
Object.assign(collectedData, { versionDataSystemFields: {} });
|
|
683
803
|
}
|
|
684
|
-
const identifierFieldNames = new Set(
|
|
804
|
+
const identifierFieldNames = new Set(
|
|
805
|
+
utils.getUsedFieldNamesOfIdentifiers(_izContext, objectSchema.identifiers)
|
|
806
|
+
);
|
|
685
807
|
|
|
686
808
|
let addedFieldNames = new Set();
|
|
687
809
|
|
|
@@ -695,33 +817,58 @@ function collectGetData(_izContext, getResults, objectSchema, returnSystemFields
|
|
|
695
817
|
|
|
696
818
|
// this process will add result from graph and dynamo to collectedData object by add identifiers and fieldName from getData
|
|
697
819
|
if (getDataDetail.storageType === coreConsts.STORAGE_TYPES.graph) {
|
|
698
|
-
if (
|
|
820
|
+
if (
|
|
821
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull &&
|
|
822
|
+
Object.keys(
|
|
823
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull
|
|
824
|
+
).length
|
|
825
|
+
) {
|
|
699
826
|
for (const getDetailFieldName of getDataDetail.fieldNames) {
|
|
700
827
|
if (addedFieldNames.has(getDetailFieldName)) {
|
|
701
828
|
continue;
|
|
702
829
|
}
|
|
703
830
|
|
|
704
|
-
if (
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
831
|
+
if (
|
|
832
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull.identifiers.hasOwnProperty(
|
|
833
|
+
getDetailFieldName
|
|
834
|
+
)
|
|
835
|
+
) {
|
|
836
|
+
Object.assign(collectedData.identifiers, {
|
|
837
|
+
[getDetailFieldName]:
|
|
838
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull
|
|
839
|
+
.identifiers[getDetailFieldName]
|
|
840
|
+
});
|
|
709
841
|
addedFieldNames.add(getDetailFieldName);
|
|
710
842
|
isFound = true;
|
|
711
|
-
} else if (
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
843
|
+
} else if (
|
|
844
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull.fields.hasOwnProperty(
|
|
845
|
+
getDetailFieldName
|
|
846
|
+
)
|
|
847
|
+
) {
|
|
848
|
+
Object.assign(collectedData.fields, {
|
|
849
|
+
[getDetailFieldName]:
|
|
850
|
+
getData.returnValue.queryResults.refactoredNodes.objInstanceFull
|
|
851
|
+
.fields[getDetailFieldName]
|
|
852
|
+
});
|
|
716
853
|
addedFieldNames.add(getDetailFieldName);
|
|
717
854
|
isFound = true;
|
|
718
855
|
}
|
|
719
856
|
}
|
|
720
857
|
}
|
|
721
|
-
if (
|
|
722
|
-
|
|
858
|
+
if (
|
|
859
|
+
getData.returnValue.queryResults.refactoredNodes
|
|
860
|
+
.versionDataSystemFields ||
|
|
861
|
+
returnSystemFieldsName == true
|
|
862
|
+
) {
|
|
863
|
+
Object.assign(
|
|
864
|
+
collectedData.versionDataSystemFields,
|
|
865
|
+
getData.returnValue.queryResults.refactoredNodes
|
|
866
|
+
.versionDataSystemFields
|
|
867
|
+
);
|
|
723
868
|
}
|
|
724
|
-
} else if (
|
|
869
|
+
} else if (
|
|
870
|
+
getDataDetail.storageType === coreConsts.STORAGE_TYPES.dynamoDB
|
|
871
|
+
) {
|
|
725
872
|
for (const getDetailFieldName of getDataDetail.fieldNames) {
|
|
726
873
|
if (addedFieldNames.has(getDetailFieldName)) {
|
|
727
874
|
continue;
|
|
@@ -729,24 +876,22 @@ function collectGetData(_izContext, getResults, objectSchema, returnSystemFields
|
|
|
729
876
|
|
|
730
877
|
if (getData.hasOwnProperty(getDetailFieldName)) {
|
|
731
878
|
if (identifierFieldNames.has(getDetailFieldName)) {
|
|
732
|
-
Object.assign(
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
);
|
|
879
|
+
Object.assign(collectedData.identifiers, {
|
|
880
|
+
[getDetailFieldName]: getData[getDetailFieldName]
|
|
881
|
+
});
|
|
736
882
|
addedFieldNames.add(getDetailFieldName);
|
|
737
883
|
isFound = true;
|
|
738
884
|
} else {
|
|
739
|
-
Object.assign(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
);
|
|
885
|
+
Object.assign(collectedData.fields, {
|
|
886
|
+
[getDetailFieldName]: getData[getDetailFieldName]
|
|
887
|
+
});
|
|
743
888
|
addedFieldNames.add(getDetailFieldName);
|
|
744
889
|
isFound = true;
|
|
745
890
|
}
|
|
746
891
|
}
|
|
747
892
|
}
|
|
748
893
|
} else {
|
|
749
|
-
throw new NoRetryError(
|
|
894
|
+
throw new NoRetryError('collectGetData unhandled storageType');
|
|
750
895
|
}
|
|
751
896
|
}
|
|
752
897
|
|
|
@@ -757,44 +902,67 @@ function collectGetData(_izContext, getResults, objectSchema, returnSystemFields
|
|
|
757
902
|
}
|
|
758
903
|
}
|
|
759
904
|
|
|
760
|
-
|
|
761
|
-
|
|
905
|
+
async function createUpdateDataDetail(
|
|
906
|
+
_izContext,
|
|
907
|
+
objectSchema,
|
|
908
|
+
settings = { bucketName: process.env.iz_serviceSchemaBucketName }
|
|
909
|
+
) {
|
|
762
910
|
let getGraphDataDetails = {};
|
|
763
911
|
let getDynamoDbDataDetails = {};
|
|
764
912
|
let allUpdateDataDetail = {};
|
|
765
|
-
for (let [storageTag, storageProperties] of Object.entries(
|
|
913
|
+
for (let [storageTag, storageProperties] of Object.entries(
|
|
914
|
+
objectSchema.storageResources
|
|
915
|
+
)) {
|
|
766
916
|
let storageFieldNames = [];
|
|
767
|
-
for (let [fieldName, fieldNameProperties] of Object.entries(
|
|
917
|
+
for (let [fieldName, fieldNameProperties] of Object.entries(
|
|
918
|
+
objectSchema.fieldNames
|
|
919
|
+
)) {
|
|
768
920
|
if (fieldNameProperties.storageResourceTags.includes(storageTag)) {
|
|
769
|
-
let versionedDataLabel = fieldNameProperties.versionedDataLabel
|
|
770
|
-
if (!fieldName.includes(versionedDataLabel)) {
|
|
771
|
-
|
|
921
|
+
let versionedDataLabel = fieldNameProperties.versionedDataLabel;
|
|
922
|
+
if (!fieldName.includes(versionedDataLabel)) {
|
|
923
|
+
// not get fieldNames VersionedData_VersionedDataLabel_VersionedDataFieldNames
|
|
924
|
+
storageFieldNames.push(fieldName);
|
|
772
925
|
}
|
|
773
926
|
}
|
|
774
927
|
}
|
|
775
928
|
if (storageProperties.storageType === coreConsts.STORAGE_TYPES.graph) {
|
|
776
|
-
let graphStorageTagPerGraphServiceTag = {}
|
|
929
|
+
let graphStorageTagPerGraphServiceTag = {};
|
|
777
930
|
let useStorageTag = storageTag;
|
|
778
|
-
let graphServiceName = await serviceConfig.getGraphServiceTagWithCache(
|
|
931
|
+
let graphServiceName = await serviceConfig.getGraphServiceTagWithCache(
|
|
932
|
+
_izContext,
|
|
933
|
+
storageProperties.graphServerTag,
|
|
934
|
+
settings.bucketName
|
|
935
|
+
);
|
|
779
936
|
if (!graphStorageTagPerGraphServiceTag.hasOwnProperty(graphServiceName)) {
|
|
780
937
|
graphStorageTagPerGraphServiceTag[graphServiceName] = storageTag;
|
|
781
|
-
_izContext.logger.debug(
|
|
938
|
+
_izContext.logger.debug(
|
|
939
|
+
'graphStorageTagPerGraphServiceTag',
|
|
940
|
+
graphStorageTagPerGraphServiceTag
|
|
941
|
+
);
|
|
782
942
|
} else {
|
|
783
|
-
_izContext.logger.debug(
|
|
784
|
-
_izContext.logger.debug(
|
|
785
|
-
useStorageTag = graphStorageTagPerGraphServiceTag[graphServiceName]
|
|
943
|
+
_izContext.logger.debug('current storageTag', storageTag);
|
|
944
|
+
_izContext.logger.debug('used storageTag', useStorageTag);
|
|
945
|
+
useStorageTag = graphStorageTagPerGraphServiceTag[graphServiceName];
|
|
786
946
|
}
|
|
787
947
|
if (!getGraphDataDetails.hasOwnProperty(useStorageTag)) {
|
|
788
|
-
getGraphDataDetails[graphServiceName] =
|
|
789
|
-
{
|
|
948
|
+
getGraphDataDetails[graphServiceName] = {
|
|
790
949
|
storageType: storageProperties.storageType,
|
|
791
950
|
fieldNames: storageFieldNames
|
|
792
|
-
}
|
|
951
|
+
};
|
|
793
952
|
} else {
|
|
794
|
-
getGraphDataDetails[graphServiceName].fieldNames = [
|
|
953
|
+
getGraphDataDetails[graphServiceName].fieldNames = [
|
|
954
|
+
...new Set(
|
|
955
|
+
getGraphDataDetails[useStorageTag].fieldNames.concat(
|
|
956
|
+
storageFieldNames
|
|
957
|
+
)
|
|
958
|
+
)
|
|
959
|
+
];
|
|
795
960
|
}
|
|
796
|
-
} else if (
|
|
797
|
-
|
|
961
|
+
} else if (
|
|
962
|
+
storageProperties.storageType === coreConsts.STORAGE_TYPES.dynamoDB
|
|
963
|
+
) {
|
|
964
|
+
let serviceTag =
|
|
965
|
+
storageProperties.serviceTag || process.env.iz_serviceTag;
|
|
798
966
|
Object.assign(getDynamoDbDataDetails, {
|
|
799
967
|
[storageTag]: {
|
|
800
968
|
storageType: storageProperties.storageType,
|
|
@@ -802,28 +970,35 @@ async function createUpdateDataDetail(_izContext, objectSchema, settings = { buc
|
|
|
802
970
|
serviceTag: serviceTag,
|
|
803
971
|
fieldNames: storageFieldNames
|
|
804
972
|
}
|
|
805
|
-
})
|
|
973
|
+
});
|
|
806
974
|
|
|
807
975
|
if (storageTag.groupByPartitionKeyField) {
|
|
808
|
-
Object.assign(
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
groupByPartitionKeyField: storageProperties.groupByPartitionKeyField
|
|
812
|
-
}
|
|
813
|
-
)
|
|
976
|
+
Object.assign(getDynamoDbDataDetails[storageTag], {
|
|
977
|
+
groupByPartitionKeyField: storageProperties.groupByPartitionKeyField
|
|
978
|
+
});
|
|
814
979
|
}
|
|
815
980
|
}
|
|
816
981
|
}
|
|
817
982
|
|
|
818
|
-
_izContext.logger.debug(
|
|
819
|
-
_izContext.logger.debug(
|
|
983
|
+
_izContext.logger.debug('getGraphDataDetails', getGraphDataDetails);
|
|
984
|
+
_izContext.logger.debug('getDynamoDataDetail', getDynamoDbDataDetails);
|
|
820
985
|
|
|
821
|
-
Object.assign(
|
|
822
|
-
|
|
986
|
+
Object.assign(
|
|
987
|
+
allUpdateDataDetail,
|
|
988
|
+
getDynamoDbDataDetails,
|
|
989
|
+
getGraphDataDetails
|
|
990
|
+
);
|
|
991
|
+
return allUpdateDataDetail;
|
|
823
992
|
}
|
|
824
993
|
|
|
825
|
-
async function createDataDetailsLib(
|
|
826
|
-
_izContext
|
|
994
|
+
async function createDataDetailsLib(
|
|
995
|
+
_izContext,
|
|
996
|
+
objectSchemas,
|
|
997
|
+
settings = { bucketName: process.env.iz_serviceSchemaBucketName }
|
|
998
|
+
) {
|
|
999
|
+
_izContext.logger.debug('Lib: createDataDetailsLib:', {
|
|
1000
|
+
objectSchemas: objectSchemas
|
|
1001
|
+
});
|
|
827
1002
|
/**
|
|
828
1003
|
* TODO: crate DataDetail now will get parent objectSchema if have extendObjType
|
|
829
1004
|
* will split fieldNames for each serviceTag and storageREsourceTags
|
|
@@ -832,9 +1007,11 @@ async function createDataDetailsLib(_izContext, objectSchemas, settings = { buck
|
|
|
832
1007
|
let createDataDetails = {};
|
|
833
1008
|
|
|
834
1009
|
let storageResources = objectSchemas.storageResources;
|
|
835
|
-
_izContext.logger.debug(
|
|
1010
|
+
_izContext.logger.debug('storageResources:', storageResources);
|
|
836
1011
|
|
|
837
|
-
for (let [keyFieldName, settingFieldName] of Object.entries(
|
|
1012
|
+
for (let [keyFieldName, settingFieldName] of Object.entries(
|
|
1013
|
+
objectSchemas.fieldNames
|
|
1014
|
+
)) {
|
|
838
1015
|
// _izContext.logger.debug("Loop fieldNamesObjectSchemas", { keyFieldName });
|
|
839
1016
|
|
|
840
1017
|
for (let eachStorageResourceTag of settingFieldName.storageResourceTags) {
|
|
@@ -843,38 +1020,55 @@ async function createDataDetailsLib(_izContext, objectSchemas, settings = { buck
|
|
|
843
1020
|
if (!storageResources.hasOwnProperty(eachStorageResourceTag)) {
|
|
844
1021
|
throw new Error("storageResources is'n exist"); // should be validate in step upload in s3
|
|
845
1022
|
} else {
|
|
846
|
-
if (
|
|
1023
|
+
if (
|
|
1024
|
+
storageResources[eachStorageResourceTag].storageType ==
|
|
1025
|
+
coreConsts.STORAGE_TYPES.dynamoDB
|
|
1026
|
+
) {
|
|
847
1027
|
if (createDataDetails.hasOwnProperty(eachStorageResourceTag)) {
|
|
848
1028
|
// _izContext.logger.debug("SAME STG DB", eachStorageResourceTag);
|
|
849
|
-
createDataDetails[eachStorageResourceTag].fieldNames.push(
|
|
850
|
-
|
|
1029
|
+
createDataDetails[eachStorageResourceTag].fieldNames.push(
|
|
1030
|
+
keyFieldName
|
|
1031
|
+
);
|
|
851
1032
|
} else {
|
|
852
1033
|
Object.assign(createDataDetails, {
|
|
853
1034
|
[eachStorageResourceTag]: {
|
|
854
1035
|
storageType: coreConsts.STORAGE_TYPES.dynamoDB,
|
|
855
1036
|
tableName: storageResources[eachStorageResourceTag].tableName,
|
|
856
|
-
serviceTag:
|
|
1037
|
+
serviceTag:
|
|
1038
|
+
storageResources[eachStorageResourceTag].serviceTag ||
|
|
1039
|
+
process.env.iz_serviceTag,
|
|
857
1040
|
fieldNames: [keyFieldName]
|
|
858
1041
|
}
|
|
859
1042
|
});
|
|
860
1043
|
|
|
861
|
-
if (
|
|
1044
|
+
if (
|
|
1045
|
+
storageResources[eachStorageResourceTag].hasOwnProperty(
|
|
1046
|
+
'groupByPartitionKeyField'
|
|
1047
|
+
)
|
|
1048
|
+
) {
|
|
862
1049
|
Object.assign(createDataDetails[eachStorageResourceTag], {
|
|
863
|
-
groupByPartitionKeyField:
|
|
1050
|
+
groupByPartitionKeyField:
|
|
1051
|
+
storageResources[eachStorageResourceTag]
|
|
1052
|
+
.groupByPartitionKeyField
|
|
864
1053
|
});
|
|
865
1054
|
}
|
|
866
1055
|
}
|
|
867
|
-
} else if (
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1056
|
+
} else if (
|
|
1057
|
+
storageResources[eachStorageResourceTag].storageType ==
|
|
1058
|
+
coreConsts.STORAGE_TYPES.graph
|
|
1059
|
+
) {
|
|
1060
|
+
let checkGraphServerTags =
|
|
1061
|
+
await serviceConfig.getGraphServiceTagWithCache(
|
|
1062
|
+
_izContext,
|
|
1063
|
+
storageResources[eachStorageResourceTag].graphServerTag,
|
|
1064
|
+
settings.bucketName
|
|
1065
|
+
);
|
|
873
1066
|
if (checkGraphServerTags) {
|
|
874
1067
|
if (createDataDetails.hasOwnProperty(checkGraphServerTags)) {
|
|
875
1068
|
// _izContext.logger.debug("SAME STG", checkGraphServerTags);
|
|
876
|
-
createDataDetails[checkGraphServerTags].fieldNames.push(
|
|
877
|
-
|
|
1069
|
+
createDataDetails[checkGraphServerTags].fieldNames.push(
|
|
1070
|
+
keyFieldName
|
|
1071
|
+
);
|
|
878
1072
|
} else {
|
|
879
1073
|
// _izContext.logger.debug("NEW STG", checkGraphServerTags);
|
|
880
1074
|
Object.assign(createDataDetails, {
|
|
@@ -883,10 +1077,16 @@ async function createDataDetailsLib(_izContext, objectSchemas, settings = { buck
|
|
|
883
1077
|
fieldNames: [keyFieldName]
|
|
884
1078
|
}
|
|
885
1079
|
});
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
} else if (
|
|
889
|
-
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
} else if (
|
|
1083
|
+
storageResources[eachStorageResourceTag].storageType ===
|
|
1084
|
+
coreConsts.STORAGE_TYPES.externalTopic
|
|
1085
|
+
) {
|
|
1086
|
+
let topicName =
|
|
1087
|
+
storageResources[eachStorageResourceTag].serviceTag +
|
|
1088
|
+
storageResources[eachStorageResourceTag].stage +
|
|
1089
|
+
storageResources[eachStorageResourceTag].topicName;
|
|
890
1090
|
Object.assign(createDataDetails, {
|
|
891
1091
|
[topicName]: {
|
|
892
1092
|
storageType: coreConsts.STORAGE_TYPES.externalTopic,
|
|
@@ -898,89 +1098,110 @@ async function createDataDetailsLib(_izContext, objectSchemas, settings = { buck
|
|
|
898
1098
|
}
|
|
899
1099
|
});
|
|
900
1100
|
}
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
1101
|
+
}
|
|
1102
|
+
} // end loop storageResourceTags
|
|
1103
|
+
} // end loop
|
|
904
1104
|
|
|
905
1105
|
return createDataDetails;
|
|
906
|
-
}
|
|
1106
|
+
}
|
|
907
1107
|
|
|
908
|
-
async function createDeleteDataDetail(
|
|
1108
|
+
async function createDeleteDataDetail(
|
|
1109
|
+
_izContext,
|
|
1110
|
+
objectSchema,
|
|
1111
|
+
settings = { bucketName: process.env.iz_serviceSchemaBucketName }
|
|
1112
|
+
) {
|
|
909
1113
|
let deleteDynamoDataDetail = {};
|
|
910
1114
|
let deleteGraphDataDetail = {};
|
|
911
1115
|
let allDeleteDataDetail = {};
|
|
912
1116
|
|
|
913
|
-
for (let [storageTag, storageProperties] of Object.entries(
|
|
1117
|
+
for (let [storageTag, storageProperties] of Object.entries(
|
|
1118
|
+
objectSchema.storageResources
|
|
1119
|
+
)) {
|
|
914
1120
|
if (storageProperties.storageType === coreConsts.STORAGE_TYPES.dynamoDB) {
|
|
915
|
-
let serviceTag =
|
|
1121
|
+
let serviceTag =
|
|
1122
|
+
storageProperties.serviceTag || process.env.iz_serviceTag;
|
|
916
1123
|
Object.assign(deleteDynamoDataDetail, {
|
|
917
1124
|
[storageTag]: {
|
|
918
1125
|
storageType: storageProperties.storageType,
|
|
919
1126
|
serviceTag: serviceTag,
|
|
920
1127
|
tableName: storageProperties.tableName
|
|
921
1128
|
}
|
|
922
|
-
})
|
|
1129
|
+
});
|
|
923
1130
|
if (storageProperties.groupByPartitionKeyField) {
|
|
924
|
-
Object.assign(
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
groupByPartitionKeyField: storageProperties.groupByPartitionKeyField
|
|
928
|
-
}
|
|
929
|
-
)
|
|
1131
|
+
Object.assign(deleteDynamoDataDetail[storageTag], {
|
|
1132
|
+
groupByPartitionKeyField: storageProperties.groupByPartitionKeyField
|
|
1133
|
+
});
|
|
930
1134
|
}
|
|
931
|
-
} else if (
|
|
1135
|
+
} else if (
|
|
1136
|
+
storageProperties.storageType === coreConsts.STORAGE_TYPES.graph
|
|
1137
|
+
) {
|
|
932
1138
|
let dataDetailPerGraphStorage = {};
|
|
933
|
-
let useStorageTag = storageTag
|
|
934
|
-
let graphServiceName = await serviceConfig.getGraphServiceTagWithCache(
|
|
1139
|
+
let useStorageTag = storageTag;
|
|
1140
|
+
let graphServiceName = await serviceConfig.getGraphServiceTagWithCache(
|
|
1141
|
+
_izContext,
|
|
1142
|
+
storageProperties.graphServerTag,
|
|
1143
|
+
settings.bucketName
|
|
1144
|
+
);
|
|
935
1145
|
if (!dataDetailPerGraphStorage.hasOwnProperty(graphServiceName)) {
|
|
936
1146
|
dataDetailPerGraphStorage[graphServiceName] = storageTag;
|
|
937
1147
|
} else {
|
|
938
|
-
useStorageTag = dataDetailPerGraphStorage[graphServiceName]
|
|
1148
|
+
useStorageTag = dataDetailPerGraphStorage[graphServiceName];
|
|
939
1149
|
}
|
|
940
1150
|
if (!deleteGraphDataDetail.hasOwnProperty(useStorageTag)) {
|
|
941
|
-
deleteGraphDataDetail[graphServiceName] =
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}
|
|
1151
|
+
deleteGraphDataDetail[graphServiceName] = {
|
|
1152
|
+
storageType: storageProperties.storageType
|
|
1153
|
+
};
|
|
945
1154
|
}
|
|
946
1155
|
}
|
|
947
1156
|
}
|
|
948
|
-
_izContext.logger.debug(
|
|
949
|
-
_izContext.logger.debug(
|
|
950
|
-
Object.assign(
|
|
1157
|
+
_izContext.logger.debug('deleteGraphDataDetail', deleteGraphDataDetail);
|
|
1158
|
+
_izContext.logger.debug('deleteDynamoDataDetail', deleteDynamoDataDetail);
|
|
1159
|
+
Object.assign(
|
|
1160
|
+
allDeleteDataDetail,
|
|
1161
|
+
deleteGraphDataDetail,
|
|
1162
|
+
deleteDynamoDataDetail
|
|
1163
|
+
);
|
|
951
1164
|
|
|
952
|
-
_izContext.logger.debug(
|
|
953
|
-
return allDeleteDataDetail
|
|
1165
|
+
_izContext.logger.debug('allDeleteDataDetail', allDeleteDataDetail);
|
|
1166
|
+
return allDeleteDataDetail;
|
|
954
1167
|
}
|
|
955
1168
|
|
|
956
|
-
function createFieldForUpdateDynamoDb(
|
|
957
|
-
_izContext
|
|
1169
|
+
function createFieldForUpdateDynamoDb(
|
|
1170
|
+
_izContext,
|
|
1171
|
+
objectSchema,
|
|
1172
|
+
dynamoDataDetail,
|
|
1173
|
+
fields
|
|
1174
|
+
) {
|
|
1175
|
+
_izContext.logger.debug('createFieldForUpdateDynamoDb', {
|
|
958
1176
|
objectSchema,
|
|
959
1177
|
dynamoDataDetail,
|
|
960
1178
|
fields
|
|
961
|
-
})
|
|
1179
|
+
});
|
|
962
1180
|
|
|
963
1181
|
let fieldsForUpdateDynamo = {};
|
|
964
1182
|
|
|
965
|
-
for (let [fieldName, fieldSetting] of Object.entries(
|
|
966
|
-
|
|
1183
|
+
for (let [fieldName, fieldSetting] of Object.entries(
|
|
1184
|
+
objectSchema.fieldNames
|
|
1185
|
+
)) {
|
|
1186
|
+
if (
|
|
1187
|
+
fieldSetting.canUpdate == true ||
|
|
1188
|
+
!fieldSetting.hasOwnProperty('canUpdate')
|
|
1189
|
+
) {
|
|
967
1190
|
if (dynamoDataDetail.fieldNames.includes(fieldName)) {
|
|
968
1191
|
if (fields[fieldName]) {
|
|
969
1192
|
if (!fieldsForUpdateDynamo.hasOwnProperty(fields[fieldName])) {
|
|
970
|
-
_izContext.logger.debug(
|
|
1193
|
+
_izContext.logger.debug('assign new fieldName', fields[fieldName]);
|
|
971
1194
|
Object.assign(fieldsForUpdateDynamo, {
|
|
972
1195
|
[fieldName]: fields[fieldName]
|
|
973
|
-
}
|
|
974
|
-
)
|
|
1196
|
+
});
|
|
975
1197
|
}
|
|
976
1198
|
}
|
|
977
1199
|
}
|
|
978
1200
|
}
|
|
979
1201
|
}
|
|
980
|
-
return fieldsForUpdateDynamo
|
|
1202
|
+
return fieldsForUpdateDynamo;
|
|
981
1203
|
}
|
|
982
1204
|
|
|
983
|
-
|
|
984
1205
|
/**
|
|
985
1206
|
*
|
|
986
1207
|
* @param {Object} from
|
|
@@ -996,15 +1217,27 @@ function createFieldForUpdateDynamoDb(_izContext, objectSchema, dynamoDataDetail
|
|
|
996
1217
|
* @param {Object} storageResources
|
|
997
1218
|
* @param {Boolean} topLevelParent
|
|
998
1219
|
*/
|
|
999
|
-
function createBasicRelationshipsProperties(
|
|
1000
|
-
|
|
1001
|
-
|
|
1220
|
+
function createBasicRelationshipsProperties(
|
|
1221
|
+
from,
|
|
1222
|
+
to,
|
|
1223
|
+
storageResources,
|
|
1224
|
+
baseDirection,
|
|
1225
|
+
topLevelParent = false
|
|
1226
|
+
) {
|
|
1227
|
+
validateObjType.validateObjType({
|
|
1228
|
+
objectType: from.objectType,
|
|
1229
|
+
serviceTag: from.serviceTag
|
|
1230
|
+
});
|
|
1231
|
+
validateObjType.validateObjType({
|
|
1232
|
+
objectType: to.objectType,
|
|
1233
|
+
serviceTag: to.serviceTag
|
|
1234
|
+
});
|
|
1002
1235
|
|
|
1003
1236
|
let otherDirection;
|
|
1004
|
-
if (baseDirection ===
|
|
1005
|
-
otherDirection =
|
|
1006
|
-
} else if (baseDirection ===
|
|
1007
|
-
otherDirection =
|
|
1237
|
+
if (baseDirection === 'to') {
|
|
1238
|
+
otherDirection = 'from';
|
|
1239
|
+
} else if (baseDirection === 'from') {
|
|
1240
|
+
otherDirection = 'to';
|
|
1008
1241
|
}
|
|
1009
1242
|
|
|
1010
1243
|
let relationshipProperties = {
|
|
@@ -1042,51 +1275,66 @@ function createBasicRelationshipsProperties(from, to, storageResources, baseDire
|
|
|
1042
1275
|
requiredOnCreate: to.requiredOnCreate
|
|
1043
1276
|
}
|
|
1044
1277
|
}
|
|
1045
|
-
]
|
|
1046
|
-
}
|
|
1278
|
+
]
|
|
1279
|
+
};
|
|
1047
1280
|
|
|
1048
1281
|
if (topLevelParent === true) {
|
|
1049
|
-
relationshipProperties.links.push(
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
objectType: to.objectType
|
|
1056
|
-
},
|
|
1057
|
-
linkType: "one",
|
|
1058
|
-
direction: "from",
|
|
1059
|
-
requiredOnCreate: false
|
|
1282
|
+
relationshipProperties.links.push({
|
|
1283
|
+
storageResourceTags: Object.keys(storageResources),
|
|
1284
|
+
from: {
|
|
1285
|
+
objType: {
|
|
1286
|
+
serviceTag: to.serviceTag,
|
|
1287
|
+
objectType: to.objectType
|
|
1060
1288
|
},
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1289
|
+
linkType: 'one',
|
|
1290
|
+
direction: 'from',
|
|
1291
|
+
requiredOnCreate: false
|
|
1292
|
+
},
|
|
1293
|
+
to: {
|
|
1294
|
+
objType: {
|
|
1295
|
+
serviceTag: to.serviceTag,
|
|
1296
|
+
objectType: to.objectType
|
|
1297
|
+
},
|
|
1298
|
+
linkType: 'many',
|
|
1299
|
+
direction: 'to',
|
|
1300
|
+
requiredOnCreate: false
|
|
1070
1301
|
}
|
|
1071
|
-
)
|
|
1302
|
+
});
|
|
1072
1303
|
}
|
|
1073
|
-
return relationshipProperties
|
|
1304
|
+
return relationshipProperties;
|
|
1074
1305
|
}
|
|
1075
1306
|
|
|
1076
|
-
function createFieldNamesFromRequestParamsByObjectSchema(
|
|
1307
|
+
function createFieldNamesFromRequestParamsByObjectSchema(
|
|
1308
|
+
_izContext,
|
|
1309
|
+
requestParams,
|
|
1310
|
+
objectSchema
|
|
1311
|
+
) {
|
|
1077
1312
|
let createFieldNameParams = {};
|
|
1078
|
-
_izContext.logger.debug(
|
|
1313
|
+
_izContext.logger.debug(
|
|
1314
|
+
'createFieldNamesFromRequestParamsByObjectSchema ::',
|
|
1315
|
+
{ requestParams, objectSchema }
|
|
1316
|
+
);
|
|
1079
1317
|
for (const fieldName of Object.keys(objectSchema.fieldNames)) {
|
|
1080
1318
|
if (Object.keys(requestParams).includes(fieldName)) {
|
|
1081
1319
|
if (!createFieldNameParams.hasOwnProperty(fieldName)) {
|
|
1082
|
-
Object.assign(createFieldNameParams, {
|
|
1320
|
+
Object.assign(createFieldNameParams, {
|
|
1321
|
+
[fieldName]: requestParams[fieldName]
|
|
1322
|
+
});
|
|
1083
1323
|
}
|
|
1084
1324
|
}
|
|
1085
1325
|
}
|
|
1086
|
-
return createFieldNameParams
|
|
1326
|
+
return createFieldNameParams;
|
|
1087
1327
|
}
|
|
1088
1328
|
|
|
1089
|
-
async function sharedCreateEndpoint(_izContext,
|
|
1329
|
+
async function sharedCreateEndpoint(_izContext,
|
|
1330
|
+
objType,
|
|
1331
|
+
requestParams,
|
|
1332
|
+
callingFlowConfig,
|
|
1333
|
+
settings = {
|
|
1334
|
+
userAgent: false,
|
|
1335
|
+
directInvoke: false,
|
|
1336
|
+
parentObject: {}
|
|
1337
|
+
}) {
|
|
1090
1338
|
let objectSchemas = await getObjectSchema.getObjectSchemaCombineFieldNamesWithCache(_izContext, objType)
|
|
1091
1339
|
let createDataDetails = await createDataDetailsLib(_izContext, objectSchemas)
|
|
1092
1340
|
_izContext.logger.debug("createDataDetails is =", createDataDetails);
|
|
@@ -1096,44 +1344,66 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1096
1344
|
let objInstanceFull = {
|
|
1097
1345
|
identifiers: {},
|
|
1098
1346
|
fields: {}
|
|
1099
|
-
}
|
|
1347
|
+
};
|
|
1100
1348
|
|
|
1101
1349
|
for (let fieldName of Object.keys(requestParams.fieldNames)) {
|
|
1102
1350
|
if (objectSchemas.identifierFieldNames.includes(fieldName)) {
|
|
1103
|
-
_izContext.logger.debug(
|
|
1351
|
+
_izContext.logger.debug('identifiers is', fieldName);
|
|
1104
1352
|
Object.assign(objInstanceFull.identifiers, {
|
|
1105
1353
|
[fieldName]: requestParams.fieldNames[fieldName]
|
|
1106
1354
|
});
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1109
1357
|
|
|
1110
1358
|
let objInstanceFullForDynamoDb = lodash.cloneDeep(objInstanceFull);
|
|
1111
1359
|
let objInstanceFullForGraph = lodash.cloneDeep(objInstanceFull);
|
|
1112
1360
|
let objInstanceFullForExternalTopic = lodash.cloneDeep(objInstanceFull);
|
|
1113
1361
|
|
|
1114
|
-
for (const [storageTag, createDataDetail] of Object.entries(
|
|
1362
|
+
for (const [storageTag, createDataDetail] of Object.entries(
|
|
1363
|
+
createDataDetails
|
|
1364
|
+
)) {
|
|
1115
1365
|
if (createDataDetail.storageType == coreConsts.STORAGE_TYPES.dynamoDB) {
|
|
1116
|
-
_izContext.logger.debug(
|
|
1366
|
+
_izContext.logger.debug('::::::DynamoDB::::::', {
|
|
1367
|
+
storageTag,
|
|
1368
|
+
objInstanceFull
|
|
1369
|
+
});
|
|
1117
1370
|
|
|
1118
1371
|
if (settings.parentObject) {
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1372
|
+
if (
|
|
1373
|
+
createDataDetail.tableName.includes(
|
|
1374
|
+
firstLetterUpperCase(`${parentObject.objectType}Records`)
|
|
1375
|
+
)
|
|
1376
|
+
) {
|
|
1377
|
+
Object.assign(objInstanceFullForDynamoDb.fields, {
|
|
1378
|
+
[`${settings.parentObject.objectType}HandlerServiceTag`]:
|
|
1379
|
+
process.env.iz_serviceTag
|
|
1380
|
+
});
|
|
1124
1381
|
}
|
|
1125
1382
|
}
|
|
1126
1383
|
|
|
1127
|
-
Object.assign(
|
|
1128
|
-
|
|
1384
|
+
Object.assign(
|
|
1385
|
+
objInstanceFullForDynamoDb.fields,
|
|
1386
|
+
createObjInstanceFullFieldsByStorageTag(
|
|
1387
|
+
_izContext,
|
|
1388
|
+
storageTag,
|
|
1389
|
+
createDataDetail
|
|
1390
|
+
)
|
|
1391
|
+
);
|
|
1392
|
+
_izContext.logger.debug(
|
|
1393
|
+
'objInstanceFull before create item in dynamoDB',
|
|
1394
|
+
objInstanceFullForDynamoDb
|
|
1395
|
+
);
|
|
1129
1396
|
|
|
1130
1397
|
let identifiersForCreateData = await dynamoDbIdentifiersByStorageResource(
|
|
1131
1398
|
_izContext,
|
|
1132
1399
|
objectSchemas,
|
|
1133
1400
|
createDataDetail,
|
|
1134
1401
|
objInstanceFullForDynamoDb.identifiers
|
|
1135
|
-
)
|
|
1136
|
-
_izContext.logger.debug(
|
|
1402
|
+
);
|
|
1403
|
+
_izContext.logger.debug(
|
|
1404
|
+
'identifiersForCreateData',
|
|
1405
|
+
identifiersForCreateData
|
|
1406
|
+
);
|
|
1137
1407
|
|
|
1138
1408
|
await dynamodbSharedLib.putItem(
|
|
1139
1409
|
_izContext,
|
|
@@ -1148,7 +1418,7 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1148
1418
|
}
|
|
1149
1419
|
);
|
|
1150
1420
|
|
|
1151
|
-
objInstanceFullForDynamoDb.fields = {} // prevent using fieldNames from other tableName
|
|
1421
|
+
objInstanceFullForDynamoDb.fields = {}; // prevent using fieldNames from other tableName
|
|
1152
1422
|
if (allAwaitingStepsId.length == 0) {
|
|
1153
1423
|
let messageObject = {
|
|
1154
1424
|
objType: objType,
|
|
@@ -1156,49 +1426,85 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1156
1426
|
identifiers: objInstanceFullForDynamoDb.identifiers,
|
|
1157
1427
|
fields: objInstanceFullForDynamoDb.fields
|
|
1158
1428
|
}
|
|
1159
|
-
}
|
|
1429
|
+
};
|
|
1160
1430
|
|
|
1161
|
-
if (
|
|
1431
|
+
if (
|
|
1432
|
+
callingFlowConfig[
|
|
1433
|
+
callingFlowSharedLib.consts.CALLINGFLOW_PROPERTYNAME
|
|
1434
|
+
]
|
|
1435
|
+
) {
|
|
1162
1436
|
// send message to SNS OutCreateNodeComplete
|
|
1163
|
-
_izContext.logger.debug(
|
|
1164
|
-
messageObject =
|
|
1437
|
+
_izContext.logger.debug('HAVE CallingFlow');
|
|
1438
|
+
messageObject =
|
|
1439
|
+
callingFlowSharedLib.addPassBackPropertiesToSnsResponseMessageObject(
|
|
1440
|
+
callingFlowConfig,
|
|
1441
|
+
messageObject
|
|
1442
|
+
);
|
|
1165
1443
|
|
|
1166
|
-
let messageAttributes =
|
|
1167
|
-
|
|
1444
|
+
let messageAttributes =
|
|
1445
|
+
callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(
|
|
1446
|
+
callingFlowConfig,
|
|
1447
|
+
{}
|
|
1448
|
+
);
|
|
1449
|
+
let outCreateNodeCompleteTopic =
|
|
1450
|
+
await snsSharedLib.snsTopicArnByFlowSchema(
|
|
1451
|
+
_izContext,
|
|
1452
|
+
TOPIC_NAME_GENERATE_CODE.outCreateNodeComplete
|
|
1453
|
+
);
|
|
1168
1454
|
let messageParams = {
|
|
1169
1455
|
Message: JSON.stringify(messageObject),
|
|
1170
|
-
MessageAttributes: sns.createStringMessageAttributes(
|
|
1171
|
-
|
|
1456
|
+
MessageAttributes: sns.createStringMessageAttributes(
|
|
1457
|
+
_izContext,
|
|
1458
|
+
messageAttributes
|
|
1459
|
+
),
|
|
1460
|
+
TopicArn: outCreateNodeCompleteTopic
|
|
1172
1461
|
};
|
|
1173
1462
|
|
|
1174
|
-
_izContext.logger.debug(
|
|
1463
|
+
_izContext.logger.debug(
|
|
1464
|
+
'messageParams OutCreateNode ::::::: ',
|
|
1465
|
+
messageParams
|
|
1466
|
+
);
|
|
1175
1467
|
await sns.publishAsync(_izContext, messageParams);
|
|
1176
1468
|
}
|
|
1177
1469
|
return {
|
|
1178
1470
|
objType: objType,
|
|
1179
1471
|
objInstanceFull: objInstanceFullForDynamoDb,
|
|
1180
1472
|
relationships: requestParams.relationships || [],
|
|
1181
|
-
status:
|
|
1473
|
+
status: 'complete',
|
|
1182
1474
|
errorsFound: []
|
|
1183
|
-
}
|
|
1475
|
+
};
|
|
1184
1476
|
}
|
|
1185
|
-
|
|
1186
1477
|
} else if (createDataDetail.storageType == coreConsts.STORAGE_TYPES.graph) {
|
|
1187
|
-
_izContext.logger.debug(
|
|
1478
|
+
_izContext.logger.debug('::::::Graph::::::', {
|
|
1479
|
+
storageTag,
|
|
1480
|
+
objInstanceFull
|
|
1481
|
+
});
|
|
1188
1482
|
|
|
1189
|
-
Object.assign(
|
|
1190
|
-
|
|
1483
|
+
Object.assign(
|
|
1484
|
+
objInstanceFullForGraph.fields,
|
|
1485
|
+
createObjInstanceFullFieldsByStorageTag(
|
|
1486
|
+
_izContext,
|
|
1487
|
+
storageTag,
|
|
1488
|
+
createDataDetail
|
|
1489
|
+
)
|
|
1490
|
+
);
|
|
1491
|
+
_izContext.logger.debug(
|
|
1492
|
+
'objInstanceFull before send to Graph',
|
|
1493
|
+
objInstanceFullForGraph
|
|
1494
|
+
);
|
|
1191
1495
|
|
|
1192
1496
|
// allStorageTagComplete = false;
|
|
1193
|
-
allAwaitingStepsId.push(
|
|
1194
|
-
(
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1497
|
+
allAwaitingStepsId.push(
|
|
1498
|
+
await asyncFlowSharedLib.createAwaitingStepId(
|
|
1499
|
+
hash({
|
|
1500
|
+
objType: objType,
|
|
1501
|
+
graphServerTag: storageTag,
|
|
1502
|
+
identifiers: objInstanceFullForGraph.identifiers,
|
|
1503
|
+
callingFlowProperties: callingFlowConfig.callingFlowProperties || {}
|
|
1504
|
+
}),
|
|
1505
|
+
PREFIX.CREATE_OBJECT_ASYNC
|
|
1506
|
+
)
|
|
1507
|
+
);
|
|
1202
1508
|
listOfObjectForCreates.push({
|
|
1203
1509
|
[storageTag]: {
|
|
1204
1510
|
objInstanceFull: {
|
|
@@ -1209,42 +1515,71 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1209
1515
|
}
|
|
1210
1516
|
});
|
|
1211
1517
|
|
|
1212
|
-
_izContext.logger.debug(
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1518
|
+
_izContext.logger.debug('FIRST', listOfObjectForCreates);
|
|
1519
|
+
} else if (
|
|
1520
|
+
createDataDetail.storageType === coreConsts.STORAGE_TYPES.externalTopic
|
|
1521
|
+
) {
|
|
1522
|
+
_izContext.logger.debug('::::::externalTopic::::::', {
|
|
1523
|
+
storageTag,
|
|
1524
|
+
createDataDetail
|
|
1525
|
+
});
|
|
1526
|
+
Object.assign(
|
|
1527
|
+
objInstanceFullForExternalTopic.fields,
|
|
1528
|
+
createObjInstanceFullFieldsByStorageTag(
|
|
1529
|
+
_izContext,
|
|
1530
|
+
storageTag,
|
|
1531
|
+
createDataDetail
|
|
1532
|
+
)
|
|
1533
|
+
);
|
|
1534
|
+
_izContext.logger.debug(
|
|
1535
|
+
'objInstanceFull before send to external topic',
|
|
1536
|
+
objInstanceFullForExternalTopic
|
|
1537
|
+
);
|
|
1218
1538
|
|
|
1219
|
-
allAwaitingStepsId.push(
|
|
1220
|
-
(
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1539
|
+
allAwaitingStepsId.push(
|
|
1540
|
+
await asyncFlowSharedLib.createAwaitingStepId(
|
|
1541
|
+
hash({
|
|
1542
|
+
objType: objType,
|
|
1543
|
+
graphServerTag: storageTag,
|
|
1544
|
+
identifiers: objInstanceFullForGraph.identifiers,
|
|
1545
|
+
callingFlowProperties: callingFlowConfig.callingFlowProperties || {}
|
|
1546
|
+
}),
|
|
1547
|
+
PREFIX.CREATE_OBJECT_EXTERNAL_TOPIC
|
|
1548
|
+
)
|
|
1549
|
+
);
|
|
1228
1550
|
|
|
1229
1551
|
let sendToCreateExternalTopic = {
|
|
1230
|
-
Message: JSON.stringify({
|
|
1552
|
+
Message: JSON.stringify({
|
|
1553
|
+
objType,
|
|
1554
|
+
objInstanceFull: objInstanceFullForExternalTopic,
|
|
1555
|
+
relationships: requestParams.relationships
|
|
1556
|
+
}),
|
|
1231
1557
|
TopicArn: `arn:aws:sns:${createDataDetail.region}:${createDataDetail.accountId}:${createDataDetail.serviceTag}_${createDataDetail.stage}_Create_In`
|
|
1232
1558
|
};
|
|
1233
|
-
_izContext.logger.debug(
|
|
1559
|
+
_izContext.logger.debug(
|
|
1560
|
+
'Request params before send to create endpoint:',
|
|
1561
|
+
sendToCreateExternalTopic
|
|
1562
|
+
);
|
|
1234
1563
|
|
|
1235
|
-
await sns.publishAsync(_izContext, sendToCreateExternalTopic)
|
|
1236
|
-
return sendToCreateExternalTopic
|
|
1564
|
+
await sns.publishAsync(_izContext, sendToCreateExternalTopic);
|
|
1565
|
+
return sendToCreateExternalTopic;
|
|
1237
1566
|
}
|
|
1238
|
-
}
|
|
1239
|
-
_izContext.logger.debug(
|
|
1567
|
+
}
|
|
1568
|
+
_izContext.logger.debug(
|
|
1569
|
+
'[1]listOfObjectForCreates:::',
|
|
1570
|
+
listOfObjectForCreates
|
|
1571
|
+
);
|
|
1240
1572
|
|
|
1241
1573
|
/// step save awaitingMultipleStep of storageType graph ...........................................................
|
|
1242
1574
|
if (!settings.userAgent) {
|
|
1243
|
-
_izContext.logger.debug(
|
|
1575
|
+
_izContext.logger.debug('not api will create awaitingStep');
|
|
1244
1576
|
await asyncFlowSharedLib.createAwaitingMultipleSteps(
|
|
1245
1577
|
_izContext,
|
|
1246
1578
|
allAwaitingStepsId,
|
|
1247
|
-
asyncFlowSharedLib.createPendingStepId(
|
|
1579
|
+
asyncFlowSharedLib.createPendingStepId(
|
|
1580
|
+
hash({ objType: objType, identifiers: objInstanceFull.identifiers }),
|
|
1581
|
+
PREFIX.CREATE_OBJECT_ASYNC_COMPLETE
|
|
1582
|
+
)
|
|
1248
1583
|
);
|
|
1249
1584
|
}
|
|
1250
1585
|
//............................................................................................................
|
|
@@ -1252,28 +1587,34 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1252
1587
|
// process storageType : graph
|
|
1253
1588
|
let messageObject = {};
|
|
1254
1589
|
for (let objectCreate of listOfObjectForCreates) {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1590
|
+
for (let [graphServiceName, objectForCreate] of Object.entries(
|
|
1591
|
+
objectCreate
|
|
1592
|
+
)) {
|
|
1593
|
+
_izContext.logger.debug('Loop each graph:', {
|
|
1258
1594
|
[graphServiceName]: objectForCreate
|
|
1259
1595
|
});
|
|
1260
1596
|
|
|
1261
|
-
if (objectForCreate.allStorageTagComplete == false) {
|
|
1597
|
+
if (objectForCreate.allStorageTagComplete == false) {
|
|
1598
|
+
// needless check because in listOfObjectForCreates push case graph only!
|
|
1262
1599
|
messageObject = {
|
|
1263
1600
|
objType: objType,
|
|
1264
1601
|
objInstanceFull: objectForCreate.objInstanceFull,
|
|
1265
1602
|
relationships: requestParams.relationships || []
|
|
1266
1603
|
};
|
|
1267
|
-
}
|
|
1604
|
+
}
|
|
1268
1605
|
|
|
1269
|
-
_izContext.logger.debug(
|
|
1606
|
+
_izContext.logger.debug('SENT MESSAGE EACH GRAPH::::', {
|
|
1607
|
+
graphServiceName,
|
|
1608
|
+
messageObject,
|
|
1609
|
+
callingFlowConfig
|
|
1610
|
+
});
|
|
1270
1611
|
|
|
1271
1612
|
Object.assign(messageObject, {
|
|
1272
1613
|
settings: { updatePropertiesOnMatch: false },
|
|
1273
|
-
originTimestamp: Date.now()
|
|
1614
|
+
originTimestamp: Date.now()
|
|
1274
1615
|
});
|
|
1275
1616
|
if (settings.userAgent) {
|
|
1276
|
-
_izContext.logger.debug(
|
|
1617
|
+
_izContext.logger.debug('have userAgent will invoke GraphHandler');
|
|
1277
1618
|
let createNodeResult = await graphSharedLibs.createNodeV2(
|
|
1278
1619
|
_izContext,
|
|
1279
1620
|
graphServiceName,
|
|
@@ -1284,11 +1625,12 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1284
1625
|
{
|
|
1285
1626
|
updatePropertiesOnMatch: false
|
|
1286
1627
|
}
|
|
1287
|
-
)
|
|
1288
|
-
return createNodeResult
|
|
1289
|
-
|
|
1628
|
+
);
|
|
1629
|
+
return createNodeResult;
|
|
1290
1630
|
} else if (settings.directInvoke) {
|
|
1291
|
-
_izContext.logger.debug(
|
|
1631
|
+
_izContext.logger.debug(
|
|
1632
|
+
'Direction Invoke case will invoke GraphHandlerInv'
|
|
1633
|
+
);
|
|
1292
1634
|
let createNodeResult = await graphSharedLibs.createNodeV2(
|
|
1293
1635
|
_izContext,
|
|
1294
1636
|
graphServiceName,
|
|
@@ -1303,48 +1645,76 @@ async function sharedCreateEndpoint(_izContext, objType, requestParams, callingF
|
|
|
1303
1645
|
|
|
1304
1646
|
return createNodeResult;
|
|
1305
1647
|
} else {
|
|
1306
|
-
_izContext.logger.debug(
|
|
1307
|
-
|
|
1308
|
-
messageObject,
|
|
1309
|
-
callingFlowSharedLib.addParentCallingFlowConfig(
|
|
1310
|
-
callingFlowConfig, // receive parent callingFlowConfig.
|
|
1311
|
-
callingFlowSharedLib.createCallingFlowConfig( // calling flow own service
|
|
1312
|
-
await lambdaSharedLib.lambdaFunctionName(_izContext, TOPIC_NAME_GENERATE_CODE.createNodeComplete), {}
|
|
1313
|
-
)
|
|
1314
|
-
)
|
|
1648
|
+
_izContext.logger.debug(
|
|
1649
|
+
'not have userAgent will send Message to GraphHandler'
|
|
1315
1650
|
);
|
|
1651
|
+
messageObject =
|
|
1652
|
+
callingFlowSharedLib.addCallingFlowToSnsRequestMessageObject(
|
|
1653
|
+
messageObject,
|
|
1654
|
+
callingFlowSharedLib.addParentCallingFlowConfig(
|
|
1655
|
+
callingFlowConfig, // receive parent callingFlowConfig.
|
|
1656
|
+
callingFlowSharedLib.createCallingFlowConfig(
|
|
1657
|
+
// calling flow own service
|
|
1658
|
+
await lambdaSharedLib.lambdaFunctionName(
|
|
1659
|
+
_izContext,
|
|
1660
|
+
TOPIC_NAME_GENERATE_CODE.createNodeComplete
|
|
1661
|
+
),
|
|
1662
|
+
{}
|
|
1663
|
+
)
|
|
1664
|
+
)
|
|
1665
|
+
);
|
|
1316
1666
|
|
|
1317
1667
|
let messageToCreateObject = {
|
|
1318
1668
|
Message: JSON.stringify(messageObject),
|
|
1319
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(
|
|
1669
|
+
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(
|
|
1670
|
+
_izContext,
|
|
1671
|
+
TOPIC_NAME_GRAPH_HANDLER.inCreateNode,
|
|
1672
|
+
graphServiceName
|
|
1673
|
+
)
|
|
1320
1674
|
};
|
|
1321
|
-
_izContext.logger.debug(
|
|
1675
|
+
_izContext.logger.debug(
|
|
1676
|
+
'RequestParams before send to sqs messageToCreateObject ::::::: ',
|
|
1677
|
+
messageToCreateObject
|
|
1678
|
+
);
|
|
1322
1679
|
await sns.publishAsync(_izContext, messageToCreateObject);
|
|
1323
1680
|
|
|
1324
|
-
return messageObject
|
|
1681
|
+
return messageObject;
|
|
1325
1682
|
}
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1328
1685
|
|
|
1329
|
-
function createObjInstanceFullFieldsByStorageTag(
|
|
1686
|
+
function createObjInstanceFullFieldsByStorageTag(
|
|
1687
|
+
_izContext,
|
|
1688
|
+
storageTag,
|
|
1689
|
+
createDataDetail
|
|
1690
|
+
) {
|
|
1330
1691
|
let fields = {};
|
|
1331
1692
|
for (let fieldName of Object.keys(requestParams.fieldNames)) {
|
|
1332
|
-
if (
|
|
1333
|
-
|
|
1693
|
+
if (
|
|
1694
|
+
createDataDetails[storageTag].fieldNames.includes(fieldName) &&
|
|
1695
|
+
createDataDetail.fieldNames.includes(fieldName)
|
|
1696
|
+
) {
|
|
1334
1697
|
if (!objInstanceFull.identifiers.hasOwnProperty(fieldName)) {
|
|
1335
1698
|
if (!fields.hasOwnProperty(fieldName)) {
|
|
1336
1699
|
Object.assign(fields, {
|
|
1337
1700
|
[fieldName]: requestParams.fieldNames[fieldName]
|
|
1338
|
-
})
|
|
1701
|
+
});
|
|
1339
1702
|
}
|
|
1340
1703
|
}
|
|
1341
1704
|
}
|
|
1342
1705
|
}
|
|
1343
|
-
return fields
|
|
1706
|
+
return fields;
|
|
1344
1707
|
}
|
|
1345
1708
|
}
|
|
1346
1709
|
|
|
1347
|
-
async function sharedCreateCompleteEndpoint(
|
|
1710
|
+
async function sharedCreateCompleteEndpoint(
|
|
1711
|
+
_izContext,
|
|
1712
|
+
returnValue,
|
|
1713
|
+
status,
|
|
1714
|
+
errorsFound,
|
|
1715
|
+
graphServiceTag,
|
|
1716
|
+
passBackProperties
|
|
1717
|
+
) {
|
|
1348
1718
|
let existsNode = null;
|
|
1349
1719
|
let createNodeFinished = false;
|
|
1350
1720
|
if (Object.keys(returnValue.queryResult.returnCreateNode.existsNode).length) {
|
|
@@ -1353,65 +1723,88 @@ async function sharedCreateCompleteEndpoint(_izContext, returnValue, status, err
|
|
|
1353
1723
|
objectType: returnValue.requestParams.objType.objectType,
|
|
1354
1724
|
serviceTag: returnValue.requestParams.objType.serviceTag
|
|
1355
1725
|
},
|
|
1356
|
-
objInstanceFull:
|
|
1357
|
-
|
|
1726
|
+
objInstanceFull:
|
|
1727
|
+
returnValue.queryResult.returnCreateNode.existsNode.objInstanceFull
|
|
1728
|
+
};
|
|
1358
1729
|
}
|
|
1359
1730
|
|
|
1360
1731
|
let awaitingStepId = await asyncFlowSharedLib.createAwaitingStepId(
|
|
1361
|
-
|
|
1732
|
+
hash({
|
|
1362
1733
|
objType: returnValue.requestParams.objType,
|
|
1363
1734
|
graphServerTag: graphServiceTag,
|
|
1364
1735
|
identifiers: returnValue.requestParams.objInstanceFull.identifiers,
|
|
1365
|
-
callingFlowProperties:
|
|
1366
|
-
|
|
1736
|
+
callingFlowProperties:
|
|
1737
|
+
passBackProperties.passBackProperties.parentPassBackProperties
|
|
1738
|
+
.callingFlowProperties || {}
|
|
1739
|
+
}),
|
|
1367
1740
|
PREFIX.CREATE_OBJECT_ASYNC
|
|
1368
|
-
)
|
|
1369
|
-
_izContext.logger.debug(
|
|
1741
|
+
);
|
|
1742
|
+
_izContext.logger.debug('awaitingStepId:', awaitingStepId);
|
|
1370
1743
|
|
|
1371
1744
|
let recordAwaitingSteps = await dynamodbSharedLib.query(
|
|
1372
1745
|
_izContext,
|
|
1373
|
-
await dynamodbSharedLib.tableName(_izContext,
|
|
1746
|
+
await dynamodbSharedLib.tableName(_izContext, 'AwaitingMultipleSteps'),
|
|
1374
1747
|
{
|
|
1375
1748
|
awaitingStepId: awaitingStepId
|
|
1376
1749
|
}
|
|
1377
1750
|
);
|
|
1378
|
-
_izContext.logger.debug(
|
|
1751
|
+
_izContext.logger.debug('record awaitingSteps::', recordAwaitingSteps);
|
|
1379
1752
|
|
|
1380
1753
|
await Promise.all(
|
|
1381
1754
|
recordAwaitingSteps.Items.map(async ({ pendingStepId }) => {
|
|
1382
|
-
if (
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1755
|
+
if (
|
|
1756
|
+
await asyncFlowSharedLib.checkAllAwaitingStepsFinished(
|
|
1757
|
+
_izContext,
|
|
1758
|
+
pendingStepId,
|
|
1759
|
+
awaitingStepId,
|
|
1760
|
+
errorsFound
|
|
1761
|
+
)
|
|
1762
|
+
) {
|
|
1763
|
+
_izContext.logger.debug('finish all awaitingStep');
|
|
1389
1764
|
|
|
1390
1765
|
let messageObject = {
|
|
1391
1766
|
objType: {
|
|
1392
1767
|
objectType: returnValue.requestParams.objType.objectType,
|
|
1393
1768
|
serviceTag: returnValue.requestParams.objType.serviceTag
|
|
1394
1769
|
},
|
|
1395
|
-
objInstanceFull:
|
|
1770
|
+
objInstanceFull:
|
|
1771
|
+
returnValue.queryResult.returnCreateNode.objInstanceFull,
|
|
1396
1772
|
relationships: returnValue.queryResult.returnCreateNode.relationships,
|
|
1397
1773
|
existsNode: existsNode,
|
|
1398
1774
|
status: status,
|
|
1399
1775
|
errorsFound: errorsFound
|
|
1400
|
-
}
|
|
1776
|
+
};
|
|
1401
1777
|
|
|
1402
|
-
messageObject =
|
|
1403
|
-
|
|
1778
|
+
messageObject =
|
|
1779
|
+
callingFlowSharedLib.addParentPassBackPropertiesToSnsResponseMessageObject(
|
|
1780
|
+
passBackProperties,
|
|
1781
|
+
messageObject
|
|
1782
|
+
);
|
|
1783
|
+
let messageAttributes =
|
|
1784
|
+
callingFlowSharedLib.addParentPassBackCallingFlowToSnsResponseMessageAttributes(
|
|
1785
|
+
passBackProperties,
|
|
1786
|
+
{}
|
|
1787
|
+
);
|
|
1404
1788
|
|
|
1405
1789
|
let sendMessageOutCreateObjectComplete = {
|
|
1406
1790
|
Message: JSON.stringify(messageObject),
|
|
1407
|
-
MessageAttributes: sns.createStringMessageAttributes(
|
|
1408
|
-
|
|
1791
|
+
MessageAttributes: sns.createStringMessageAttributes(
|
|
1792
|
+
_izContext,
|
|
1793
|
+
messageAttributes
|
|
1794
|
+
),
|
|
1795
|
+
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(
|
|
1796
|
+
_izContext,
|
|
1797
|
+
TOPIC_NAME_GENERATE_CODE.outCreateNodeComplete
|
|
1798
|
+
)
|
|
1409
1799
|
};
|
|
1410
|
-
_izContext.logger.debug(
|
|
1800
|
+
_izContext.logger.debug(
|
|
1801
|
+
'Send message to OutCreateObjectComplete :::>',
|
|
1802
|
+
sendMessageOutCreateObjectComplete
|
|
1803
|
+
);
|
|
1411
1804
|
await sns.publishAsync(_izContext, sendMessageOutCreateObjectComplete);
|
|
1412
|
-
createNodeFinished = true
|
|
1805
|
+
createNodeFinished = true;
|
|
1413
1806
|
} else {
|
|
1414
|
-
createNodeFinished = false
|
|
1807
|
+
createNodeFinished = false;
|
|
1415
1808
|
}
|
|
1416
1809
|
|
|
1417
1810
|
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
@@ -1420,10 +1813,9 @@ async function sharedCreateCompleteEndpoint(_izContext, returnValue, status, err
|
|
|
1420
1813
|
pendingStepId,
|
|
1421
1814
|
errorsFound
|
|
1422
1815
|
);
|
|
1423
|
-
|
|
1424
1816
|
})
|
|
1425
|
-
)
|
|
1426
|
-
return createNodeFinished
|
|
1817
|
+
);
|
|
1818
|
+
return createNodeFinished;
|
|
1427
1819
|
}
|
|
1428
1820
|
|
|
1429
1821
|
export default {
|
|
@@ -1449,11 +1841,7 @@ export default {
|
|
|
1449
1841
|
createFieldNamesFromRequestParamsByObjectSchema,
|
|
1450
1842
|
sharedCreateEndpoint,
|
|
1451
1843
|
sharedCreateCompleteEndpoint
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1844
|
+
};
|
|
1457
1845
|
|
|
1458
1846
|
// /**
|
|
1459
1847
|
// * filter request param depend on generatedValidatorSchema function
|
|
@@ -1490,7 +1878,6 @@ export default {
|
|
|
1490
1878
|
// return newRequestParams
|
|
1491
1879
|
// }
|
|
1492
1880
|
|
|
1493
|
-
|
|
1494
1881
|
// /**
|
|
1495
1882
|
// * reformat request for main function of each action
|
|
1496
1883
|
// * @param {Object} _izContext
|
|
@@ -1520,8 +1907,6 @@ export default {
|
|
|
1520
1907
|
// }
|
|
1521
1908
|
// }
|
|
1522
1909
|
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
1910
|
// let reformattedReq
|
|
1526
1911
|
|
|
1527
1912
|
// // reformat request depend on action
|
|
@@ -1547,11 +1932,8 @@ export default {
|
|
|
1547
1932
|
// return returnFieldNames;
|
|
1548
1933
|
// }, [])
|
|
1549
1934
|
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
1935
|
// _izContext.logger.debug("createFieldNames: ", createFieldNames);
|
|
1553
1936
|
|
|
1554
|
-
|
|
1555
1937
|
// for (const [reqFieldName, reqFieldData] of Object.entries(requestParams.fieldNames)) {
|
|
1556
1938
|
// if (identifierFieldNames.includes(reqFieldName)) {
|
|
1557
1939
|
// Object.assign(
|
|
@@ -1599,8 +1981,6 @@ export default {
|
|
|
1599
1981
|
// }
|
|
1600
1982
|
// )
|
|
1601
1983
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
1984
|
// /**
|
|
1605
1985
|
// * filter identifiers from requestParams depend on objectSchema.identifiers
|
|
1606
1986
|
// * @param {object} _izContext
|
|
@@ -1614,7 +1994,6 @@ export default {
|
|
|
1614
1994
|
|
|
1615
1995
|
// let identifierFieldNameList = utils.getUsedFieldNamesOfIdentifiers(_izContext, objectSchema.identifiers, usedIdentifierTypes);
|
|
1616
1996
|
|
|
1617
|
-
|
|
1618
1997
|
// let identifiersObj = {};
|
|
1619
1998
|
|
|
1620
1999
|
// for (let identifierFieldName of identifierFieldNameList) {
|
|
@@ -1625,13 +2004,9 @@ export default {
|
|
|
1625
2004
|
// }
|
|
1626
2005
|
// }
|
|
1627
2006
|
|
|
1628
|
-
|
|
1629
2007
|
// return identifiersObj;
|
|
1630
2008
|
// }
|
|
1631
2009
|
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
2010
|
// /*
|
|
1636
2011
|
// Q?
|
|
1637
2012
|
// - when perform action in dynamodb some table need to concatenate
|
|
@@ -1711,8 +2086,6 @@ export default {
|
|
|
1711
2086
|
|
|
1712
2087
|
// // -------------- initial return value --------------
|
|
1713
2088
|
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
2089
|
// // create identifier object from requestParams
|
|
1717
2090
|
// let identifierObj = saperateIdentifierRequestParams(_izContext, objectSchema, requestParams);
|
|
1718
2091
|
|
|
@@ -1755,7 +2128,6 @@ export default {
|
|
|
1755
2128
|
|
|
1756
2129
|
// let graphServiceName = await serviceConfig.getGraphServiceNameFromGraphServerTagWithCache(_izContext, storageData.graphServerTag);
|
|
1757
2130
|
|
|
1758
|
-
|
|
1759
2131
|
// if (returnValue[coreConsts.STORAGE_TYPES.graph][graphServiceName]) {
|
|
1760
2132
|
// // have exists graphServiceName,
|
|
1761
2133
|
// // need to merge properties for multiple graphServerTag to one serviceName
|
|
@@ -1775,7 +2147,6 @@ export default {
|
|
|
1775
2147
|
// }
|
|
1776
2148
|
// }
|
|
1777
2149
|
|
|
1778
|
-
|
|
1779
2150
|
// /*
|
|
1780
2151
|
// if versionedDatas exists in graphRequestParams
|
|
1781
2152
|
// - check versionedDatas exists in returnValue[coreConsts.STORAGE_TYPES.graph][graphServiceName]
|
|
@@ -1793,7 +2164,6 @@ export default {
|
|
|
1793
2164
|
// }
|
|
1794
2165
|
// }
|
|
1795
2166
|
|
|
1796
|
-
|
|
1797
2167
|
// } else {
|
|
1798
2168
|
// // not exists graphServiceName
|
|
1799
2169
|
// Object.assign(returnValue[coreConsts.STORAGE_TYPES.graph], { [graphServiceName]: graphRequestParams });
|
|
@@ -1808,10 +2178,6 @@ export default {
|
|
|
1808
2178
|
|
|
1809
2179
|
// }
|
|
1810
2180
|
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
2181
|
// /**
|
|
1816
2182
|
// * helper function for separate requestParams depend on storageTag
|
|
1817
2183
|
// *
|
|
@@ -1831,7 +2197,6 @@ export default {
|
|
|
1831
2197
|
// storageData
|
|
1832
2198
|
// });
|
|
1833
2199
|
|
|
1834
|
-
|
|
1835
2200
|
// //----------------------- Filter requestParams ------------------------
|
|
1836
2201
|
|
|
1837
2202
|
// // filter requestParams that includes in storageTag
|
|
@@ -1844,7 +2209,6 @@ export default {
|
|
|
1844
2209
|
|
|
1845
2210
|
// //----------------------- End Filter requestParams ------------------------
|
|
1846
2211
|
|
|
1847
|
-
|
|
1848
2212
|
// //----------------------- Create dynamoDb identifier object ------------------------
|
|
1849
2213
|
|
|
1850
2214
|
// // use identifierObj to prepare dynamodb identifiers
|
|
@@ -1888,7 +2252,6 @@ export default {
|
|
|
1888
2252
|
|
|
1889
2253
|
// //----------------------- End Create dynamoDb identifier object ------------------------
|
|
1890
2254
|
|
|
1891
|
-
|
|
1892
2255
|
// //----------------------- calculate composite deliminator amount ------------------------
|
|
1893
2256
|
|
|
1894
2257
|
// let compositeDeliminator = objectSchema.compositeKeyDeliminator ? objectSchema.compositeKeyDeliminator : "_";
|
|
@@ -1904,7 +2267,6 @@ export default {
|
|
|
1904
2267
|
|
|
1905
2268
|
// //----------------------- End calculate composite deliminator amount ------------------------
|
|
1906
2269
|
|
|
1907
|
-
|
|
1908
2270
|
// //----------------------- create return value ------------------------
|
|
1909
2271
|
|
|
1910
2272
|
// // initial returnValue
|
|
@@ -1933,11 +2295,9 @@ export default {
|
|
|
1933
2295
|
|
|
1934
2296
|
// //----------------------- End create return value ------------------------
|
|
1935
2297
|
|
|
1936
|
-
|
|
1937
2298
|
// return returnValue;
|
|
1938
2299
|
// }
|
|
1939
2300
|
|
|
1940
|
-
|
|
1941
2301
|
// // helper function for separate requestParams fieldName per storageTag
|
|
1942
2302
|
// async function separateRequestByGraph(_izContext, objectSchema, requestParams, identifierObj, storageTag, storageData, action) {
|
|
1943
2303
|
// _izContext.logger.debug("separateRequestByGraph: ", {
|
|
@@ -1948,7 +2308,6 @@ export default {
|
|
|
1948
2308
|
// action
|
|
1949
2309
|
// });
|
|
1950
2310
|
|
|
1951
|
-
|
|
1952
2311
|
// //----------------------- Filter requestParams ------------------------
|
|
1953
2312
|
|
|
1954
2313
|
// // filter requestParams that includes in storageTag
|
|
@@ -1961,7 +2320,6 @@ export default {
|
|
|
1961
2320
|
|
|
1962
2321
|
// //----------------------- End Filter requestParams ------------------------
|
|
1963
2322
|
|
|
1964
|
-
|
|
1965
2323
|
// //----------------------- standard return value ------------------------
|
|
1966
2324
|
|
|
1967
2325
|
// // initial returnValue
|
|
@@ -1990,7 +2348,6 @@ export default {
|
|
|
1990
2348
|
|
|
1991
2349
|
// //----------------------- End standard return value ------------------------
|
|
1992
2350
|
|
|
1993
|
-
|
|
1994
2351
|
// //----------------------- prepare additional return data per action ------------------------
|
|
1995
2352
|
|
|
1996
2353
|
// if (action === coreConsts.ACTIONS.get) {
|
|
@@ -2024,7 +2381,6 @@ export default {
|
|
|
2024
2381
|
|
|
2025
2382
|
// } else if (action === coreConsts.ACTIONS.create) {
|
|
2026
2383
|
|
|
2027
|
-
|
|
2028
2384
|
// } else if (action === coreConsts.ACTIONS.update) {
|
|
2029
2385
|
// _izContext.logger.debug("filter versionedData update")
|
|
2030
2386
|
// _izContext.logger.debug("additionalReq: ", requestParams.additionalRequest.versionedDatas)
|
|
@@ -2071,8 +2427,6 @@ export default {
|
|
|
2071
2427
|
// addOnVersionedData => addOnVersionedData.versionedDataLabel === versionedDataReq.nodeLabel
|
|
2072
2428
|
// );
|
|
2073
2429
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
2430
|
// if (versionedDataSchema) {
|
|
2077
2431
|
// _izContext.logger.debug('exists versionedDataSchema: ', versionedDataSchema);
|
|
2078
2432
|
|
|
@@ -2081,12 +2435,10 @@ export default {
|
|
|
2081
2435
|
// let versionedDataValidatorSchema = generateValidatorSchemaForVersionedData(_izContext, versionedDataSchema, action);
|
|
2082
2436
|
// _izContext.logger.debug("versionedData validator schema: ", versionedDataValidatorSchema);
|
|
2083
2437
|
|
|
2084
|
-
|
|
2085
2438
|
// _izContext.logger.debug("versionedDataReq before validate: ", versionedDataReq)
|
|
2086
2439
|
// let validateVersionedDataStatus = validateObject(_izContext, versionedDataValidatorSchema, versionedDataReq);
|
|
2087
2440
|
// _izContext.logger.debug("versionedData validate status: ", validateVersionedDataStatus);
|
|
2088
2441
|
|
|
2089
|
-
|
|
2090
2442
|
// if (validateVersionedDataStatus.pass === false) {
|
|
2091
2443
|
// throw new NoRetryError("Function:separateRequestByGraph: ", validateVersionedDataStatus.error);
|
|
2092
2444
|
// }
|
|
@@ -2096,7 +2448,6 @@ export default {
|
|
|
2096
2448
|
// }
|
|
2097
2449
|
// // end validate versionedData
|
|
2098
2450
|
|
|
2099
|
-
|
|
2100
2451
|
// let hookProperties = [];
|
|
2101
2452
|
// for (let fieldNameSetting of versionedDataSchema.fieldNames) {
|
|
2102
2453
|
// hookProperties.push(fieldNameSetting.fieldName);
|
|
@@ -2111,7 +2462,6 @@ export default {
|
|
|
2111
2462
|
|
|
2112
2463
|
// }
|
|
2113
2464
|
|
|
2114
|
-
|
|
2115
2465
|
// } else if (action === coreConsts.ACTIONS.delete) {
|
|
2116
2466
|
|
|
2117
2467
|
// } else {
|
|
@@ -2120,13 +2470,10 @@ export default {
|
|
|
2120
2470
|
|
|
2121
2471
|
// //----------------------- End prepare additional return data per action ------------------------
|
|
2122
2472
|
|
|
2123
|
-
|
|
2124
2473
|
// _izContext.logger.debug("Function:separateRequestByGraph: return value: ", returnValue);
|
|
2125
2474
|
// return returnValue;
|
|
2126
2475
|
// }
|
|
2127
2476
|
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
2477
|
// function mergeReturnGetData(_izContext, dynamoDbData, graphData) {
|
|
2131
2478
|
// let mergedData = {
|
|
2132
2479
|
// properties: {}
|
|
@@ -2156,7 +2503,6 @@ export default {
|
|
|
2156
2503
|
// continue;
|
|
2157
2504
|
// }
|
|
2158
2505
|
|
|
2159
|
-
|
|
2160
2506
|
// if (Object.keys(graphDataValue.nodeProperties).length) {
|
|
2161
2507
|
|
|
2162
2508
|
// if (!mergedData.versionedDataLabel) {
|
|
@@ -2171,8 +2517,6 @@ export default {
|
|
|
2171
2517
|
// return mergedData
|
|
2172
2518
|
// }
|
|
2173
2519
|
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
2520
|
// // this function not use for new version because versionedData will not saperate from request params
|
|
2177
2521
|
// function generateValidatorSchemaForVersionedData(_izContext, versionedObjDataSchema, action) {
|
|
2178
2522
|
// // input form of versionedData will be the same for create and update action
|