@izara_project/izara-market-library-service-schemas 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +25 -12
- package/package.json +15 -12
- package/src/CheckPermission/CheckPermission.js +6 -12
- package/src/GenerateCodeLibs/index.js +6 -4
- package/src/GenerateCodeLibs/src/Consts.js +1 -1
- package/src/GenerateCodeLibs/src/GenerateCodeLibs.js +84 -101
- package/src/MainLibs/index.js +7 -4
- package/src/MainLibs/src/Consts.js +26 -12
- package/src/MainLibs/src/GenerateCodeUtils.js +2 -5
- package/src/MainLibs/src/Utils.js +14 -9
- package/src/SourceManager/index.js +5 -3
- package/src/SourceManager/src/CreateSource.js +5 -6
- package/src/SourceManager/src/Utils.js +8 -4
- package/src/TemplateManager/src/FindData/FindDataYaml/data.js +1 -1
- package/src/TemplateManager/src/FindData/Handler/data.js +1 -1
- package/src/TemplateManager/src/FindData/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutCreateComplete/sns-in-sqs/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutDeleteComplete/sqs-in-sns/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutGetComplete/sqs-in-sns/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/OutPerActionComplete/OutUpdateComplete/sqs-in-sns/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/HdrWbs/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/FunctionYaml/webSocketConnect/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrApi/template.ejs +36 -76
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/template.ejs +55 -127
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrInv/template.ejs +36 -80
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/template.ejs +57 -130
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocket/template.ejs +60 -141
- package/src/TemplateManager/src/PerActionEndpoint/Handler/WebSocketConnect/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Create/template.ejs +334 -626
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Delete/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Delete/template.ejs +97 -191
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Get/template.ejs +113 -264
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/template.ejs +163 -350
- package/src/TemplateManager/src/PerActionEndpoint/libs/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogical/Handler/data.js +3 -3
- package/src/TemplateManager/src/ProcessLogical/ProcessLogicalYaml/data.js +3 -3
- package/src/TemplateManager/src/ProcessLogical/mainFunction/data.js +2 -2
- package/src/TemplateManager/src/ProcessLogicalPagination/DsqYaml/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogicalPagination/FunctionYaml/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogicalPagination/Handler/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/ProcessLogicalPagination/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/functionYaml/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrApi/template.ejs +57 -138
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationship/perAction/HdrSqs/template.ejs +75 -163
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/handler/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-in-sqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/CreateRelationship/createRelationshipComplete/sns-out/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/template.ejs +56 -138
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/template.ejs +74 -162
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/handler/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-in-sqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationshipComplete/sns-out/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/handler/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-in-sqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRalationshipComplete/sns-out/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/template.ejs +57 -140
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrInv/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/template.ejs +72 -163
- package/src/TemplateManager/src/ResourceYaml/dynamodb/defaultDynamoDbTable.js +1 -1
- package/src/TemplateManager/src/ResourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +1 -1
- package/src/TemplateManager/src/ResourceYaml/sns-out/data.js +1 -1
- package/src/TemplateManager/src/ResourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +1 -1
- package/src/TemplateManager/src/attributeTree/objectSchema/data.js +1 -1
- package/src/TemplateManager/src/attributeTree/relationshipSchema/data.js +1 -1
- package/src/TemplateManager/src/attributeTreeSchema/relationshipSchema/data.js +1 -1
- package/src/TemplateManager/src/externalService/LambdaRole/data.js +2 -2
- package/src/TemplateManager/src/externalService/SnsTopicSubscriotions/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/DefaultWebSocketResource/webSocketConnect/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/FlowSchemaEndpoint/InProcessFlowSchema/sns-sqs/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/confirmReservedAfterUpload/queue/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createObjectComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/getsignUrlsAcc/sqs/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/functionYaml/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/handler/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/createPresignUrl/reservedLimitComplete/queue/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/hookCode(old)/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrDsq/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/functionYml/HdrS3/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerDsq/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/handler/handlerS3/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/processFileS3AfterUpload/mainFunction/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/S3/data.js +1 -1
- package/src/TemplateManager/src/flowSchema/UploadS3Case/relate/libs/data.js +1 -1
- package/src/reStructure/GenerateCode.js +19 -20
- package/src/reStructure/GenerateResources.js +127 -0
- package/src/reStructure/GenerateSchema.js +11 -14
- package/src/reStructure/GenerateTests.js +134 -0
- package/src/reStructure/IntTestConfig.js +27 -0
- package/src/reStructure/SchemaConfig.js +1 -1
- package/src/reStructure/TemplateConfig.js +2 -1
- package/src/reStructure/TemplateData/Auth/generateAuthYml/data.js +9 -14
- package/src/reStructure/TemplateData/Auth/generateTemplateData.js +3 -7
- package/src/reStructure/TemplateData/EndpointPerService/generateTemplateData.js +25 -16
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/data.js +9 -11
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/template.ejs +4 -4
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/data.js +9 -13
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/template.ejs +8 -8
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/data.js +9 -7
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/template.ejs +4 -4
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/data.js +9 -11
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/template.ejs +8 -8
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +353 -696
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/data.js +15 -13
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +23 -29
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/data.js +9 -7
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +25 -48
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/data.js +10 -12
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +18 -33
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/data.js +10 -12
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +15 -17
- package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +17 -10
- package/src/reStructure/TemplateData/IntTest/generateResources/generateResources.js +91 -0
- package/src/reStructure/TemplateData/IntTest/generateResources/templateResources.ejs +18 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/bashScript/data.js +45 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/bashScript/template.ejs +0 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/events/data.js +103 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/events/templateEvents.ejs +11 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/generateTemplate.js +59 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/data.js +168 -0
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/templateTests.ejs +3 -0
- package/src/reStructure/TemplateData/IntTest/libs/libs.js +415 -0
- package/src/reStructure/TemplateData/IntTest/upload/uploadIntTest.js +60 -0
- package/src/reStructure/TemplateData/externalService/functionNameConfig/data.js +9 -5
- package/src/reStructure/TemplateData/externalService/functionNameConfig/templateIntTesting.ejs +1 -1
- package/src/reStructure/TemplateData/externalService/generateTemplateData.js +8 -7
- package/src/reStructure/TemplateData/externalService/lambdaRole/data.js +14 -19
- package/src/reStructure/TemplateData/externalService/lambdaRole/template.ejs +5 -7
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/data.js +26 -17
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/template.ejs +1 -1
- package/src/reStructure/TemplateData/findData/findDataYaml/data.js +15 -9
- package/src/reStructure/TemplateData/findData/generateTemplateData.js +7 -10
- package/src/reStructure/TemplateData/findData/handler/data.js +9 -15
- package/src/reStructure/TemplateData/findData/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/findData/mainFunction/data.js +21 -29
- package/src/reStructure/TemplateData/findData/mainFunction/template.ejs +6 -9
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/data.js +10 -6
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/template.ejs +5 -6
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/template.ejs +7 -20
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/data.js +14 -17
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +10 -8
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +14 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +10 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +7 -8
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/data.js +11 -6
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +16 -13
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js +15 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs +18 -21
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +14 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +24 -28
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +9 -8
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +10 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/template.ejs +6 -9
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/template.ejs +5 -25
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/data.js +12 -9
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +9 -11
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +13 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/template.ejs +26 -29
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +15 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/template.ejs +8 -9
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +14 -15
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +11 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +10 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/template.ejs +6 -10
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +181 -390
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +9 -16
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +2 -17
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/data.js +11 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/data.js +10 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/data.js +9 -5
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/template.ejs +5 -7
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/sns-out/data.js +10 -18
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js +11 -5
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs +4 -6
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +11 -3
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +11 -3
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/userUploadRecords.js +11 -3
- package/src/reStructure/TemplateData/flowSchema/dynamoDb/data.js +11 -4
- package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/data.js +10 -10
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/data.js +11 -20
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/template.ejs +11 -14
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/data.js +11 -20
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/template.ejs +4 -33
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +11 -12
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/data.js +11 -15
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/template.ejs +6 -10
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/data.js +11 -5
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/template.ejs +2 -25
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +13 -10
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/data.js +9 -21
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/data.js +15 -19
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-out/data.js +13 -16
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/data.js +13 -7
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/template.ejs +17 -19
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +11 -10
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/data.js +13 -5
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/template.ejs +6 -10
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/template.ejs +2 -25
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +15 -12
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +10 -10
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js +9 -5
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/template.ejs +13 -16
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js +10 -15
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +15 -19
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/data.js +8 -14
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-out/data.js +8 -13
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/data.js +11 -11
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/data.js +10 -6
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/data.js +10 -17
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/template.ejs +2 -14
- package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/data.js +10 -5
- package/src/reStructure/TemplateData/flowSchema/generateTemplateData.js +115 -107
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/data.js +14 -20
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/data.js +14 -6
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/template.ejs +7 -5
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/data.js +10 -18
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/template.ejs +5 -6
- package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/data.js +8 -9
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/data.js +13 -5
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/data.js +12 -5
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/template.ejs +18 -26
- package/src/reStructure/TemplateData/flowSchema/register/dynamoDB/register.js +8 -3
- package/src/reStructure/TemplateData/flowSchema/register/sns-in/data.js +8 -14
- package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/data.js +8 -14
- package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/data.js +10 -10
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/data.js +9 -5
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/template.ejs +9 -12
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/data.js +9 -5
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/template.ejs +16 -24
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/data.js +25 -8
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/data.js +15 -8
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/template.ejs +11 -10
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/data.js +11 -6
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/template.ejs +53 -60
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/templateByStatusType/statusFieldTemplate.ejs +15 -14
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +26 -8
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +13 -9
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +12 -6
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/template.ejs +3 -15
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +25 -8
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +13 -9
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js +12 -7
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/template.ejs +2 -14
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js +25 -8
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js +9 -9
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +14 -6
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/template.ejs +2 -15
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/data.js +15 -5
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/data.js +10 -10
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/data.js +13 -5
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/template.ejs +6 -9
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +10 -5
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/template.ejs +13 -25
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/data.js +13 -14
- package/src/reStructure/TemplateData/generateRole/createSharedResource.js +1 -3
- package/src/reStructure/TemplateData/generateRole/data.js +9 -7
- package/src/reStructure/TemplateData/perActionComplete/create/handler/data.js +13 -13
- package/src/reStructure/TemplateData/perActionComplete/create/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/data.js +9 -14
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +11 -10
- package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/data.js +11 -9
- package/src/reStructure/TemplateData/perActionComplete/create/sns-out/data.js +9 -10
- package/src/reStructure/TemplateData/perActionComplete/create/yaml/data.js +14 -37
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/data.js +13 -9
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/template.ejs +7 -11
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/data.js +12 -11
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +9 -16
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/data.js +14 -6
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-out/data.js +13 -9
- package/src/reStructure/TemplateData/perActionComplete/delete/yaml/data.js +15 -36
- package/src/reStructure/TemplateData/perActionComplete/generateTemplateData.js +34 -18
- package/src/reStructure/TemplateData/perActionComplete/get/handler/data.js +16 -6
- package/src/reStructure/TemplateData/perActionComplete/get/handler/template.ejs +6 -9
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/data.js +16 -9
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +11 -15
- package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/data.js +17 -5
- package/src/reStructure/TemplateData/perActionComplete/get/sns-out/data.js +10 -10
- package/src/reStructure/TemplateData/perActionComplete/get/yaml/data.js +14 -16
- package/src/reStructure/TemplateData/perActionComplete/update/handler/data.js +13 -9
- package/src/reStructure/TemplateData/perActionComplete/update/handler/template.ejs +7 -10
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/data.js +12 -9
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +13 -18
- package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/data.js +12 -7
- package/src/reStructure/TemplateData/perActionComplete/update/sns-out/data.js +10 -13
- package/src/reStructure/TemplateData/perActionComplete/update/yaml/data.js +14 -39
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/template.ejs +36 -76
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/template.ejs +55 -127
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/template.ejs +36 -78
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/template.ejs +57 -130
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +60 -140
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/data.js +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/libs/data.js +2 -2
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +335 -624
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +97 -191
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/template.ejs +115 -263
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/template.ejs +164 -348
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/data.js +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/data.js +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/data.js +1 -1
- package/src/reStructure/TemplateData/processLogical/generateTemplateData.js +7 -9
- package/src/reStructure/TemplateData/processLogical/handler/data.js +11 -5
- package/src/reStructure/TemplateData/processLogical/handler/template.ejs +7 -9
- package/src/reStructure/TemplateData/processLogical/mainFunction/data.js +12 -4
- package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +11 -16
- package/src/reStructure/TemplateData/processLogical/yaml/data.js +16 -12
- package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/data.js +8 -4
- package/src/reStructure/TemplateData/processLogicalPagination/generateTemplateData.js +9 -14
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/data.js +10 -5
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/template.ejs +6 -9
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/data.js +9 -5
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/template.ejs +6 -9
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/data.js +9 -5
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/template.ejs +7 -10
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/data.js +14 -8
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/data.js +17 -10
- package/src/reStructure/TemplateData/propertyValueSchema/generateTemplateData.js +7 -8
- package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/data.js +9 -10
- package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/templateObjectPropertyValueSchema.ejs +1 -4
- package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/data.js +16 -11
- package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/tempRelationship.ejs +1 -1
- package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/templateRelationshipPropertyValueSchema.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/data.js +6 -3
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/data.js +19 -18
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/data.js +6 -3
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/template.ejs +59 -155
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/data.js +17 -11
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/template.ejs +77 -181
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +19 -21
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +18 -23
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +18 -21
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +22 -21
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/data.js +12 -6
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/template.ejs +16 -25
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/data.js +12 -7
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/data.js +11 -8
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/data.js +13 -7
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/template.ejs +6 -9
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/data.js +12 -7
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/template.ejs +12 -16
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/data.js +13 -16
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/data.js +13 -16
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/data.js +16 -13
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +57 -138
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/data.js +17 -12
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +75 -163
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/apiTemplate.ejs +17 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/dsqTemplate.ejs +15 -20
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/invTemplate.ejs +15 -18
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/sqsTemplate.ejs +19 -19
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/data.js +12 -8
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +22 -28
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/data.js +11 -5
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/data.js +11 -8
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +7 -10
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +14 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/data.js +9 -15
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/data.js +9 -16
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +6 -3
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/data.js +16 -12
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +8 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +11 -10
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/data.js +13 -11
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +12 -14
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +9 -6
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/apiTemplate.ejs +21 -18
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/dsqTemplate.ejs +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/invTemplate.ejs +15 -17
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/sqsTemplate.ejs +17 -18
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +17 -20
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/data.js +8 -7
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/data.js +10 -8
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/data.js +9 -6
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +15 -14
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/data.js +9 -14
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/data.js +9 -16
- package/src/reStructure/TemplateData/relationshipPerAction/generateTemplateData.js +131 -129
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/data.js +17 -12
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +6 -3
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/data.js +13 -11
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/apiTemplate.ejs +20 -19
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/dsqTemplate.ejs +10 -15
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/invTemplate.ejs +10 -13
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/sqsTemplate.ejs +17 -16
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +18 -23
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +8 -7
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +11 -9
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +9 -6
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +7 -11
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +9 -6
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +14 -15
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +9 -15
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +9 -14
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/data.js +19 -18
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/data.js +13 -12
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +16 -18
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +16 -21
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +16 -19
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +20 -20
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/data.js +9 -8
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/template.ejs +19 -26
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/data.js +8 -8
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/data.js +11 -9
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/data.js +9 -7
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/template.ejs +7 -10
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/data.js +9 -6
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/template.ejs +12 -16
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/data.js +9 -15
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/data.js +9 -15
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/data.js +15 -13
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +8 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +6 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/data.js +13 -10
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/data.js +7 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/apiTemplate.ejs +18 -18
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/dsqTemplate.ejs +10 -15
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/invTemplate.ejs +11 -14
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/sqsTemplate.ejs +68 -69
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/data.js +9 -11
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +20 -27
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/data.js +8 -16
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/data.js +7 -14
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/data.js +11 -8
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/data.js +9 -8
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs +7 -10
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/data.js +9 -9
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +16 -17
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/data.js +9 -15
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/data.js +9 -16
- package/src/reStructure/TemplateData/resourceYaml/CreateSourceData.js +4 -5
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +8 -14
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +8 -8
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +9 -15
- package/src/reStructure/TemplateData/resourceYaml/filterGenerateResource/data.js +6 -15
- package/src/reStructure/TemplateData/resourceYaml/generateTemplateData.js +15 -14
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +8 -13
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsAndSqsPerActionData.js +10 -13
- package/src/reStructure/TemplateData/resourceYaml/sns-out/data.js +10 -7
- package/src/reStructure/TemplateData/resourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +8 -16
- package/src/reStructure/libs/GenerateCodeLibs.js +3 -5
- package/src/reStructure/libs/ValidateAddOnDataStructure.js +5 -5
- package/src.zip +0 -0
- package/src/GenerateCodeLibs/src/TranslateIdsLibs.js +0 -92
|
@@ -18,18 +18,6 @@ along with this program. If not, see
|
|
|
18
18
|
|
|
19
19
|
'use strict';
|
|
20
20
|
|
|
21
|
-
const hash = require('@izara_project/izara-shared-core').objectHash;
|
|
22
|
-
const getObjectSchema = require('@izara_project/izara-core-library-service-schemas/src/GetObjectSchema');
|
|
23
|
-
|
|
24
|
-
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
25
|
-
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
26
|
-
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
27
|
-
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
|
-
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
29
|
-
const externalRequest = require('@izara_project/izara-core-library-external-request');
|
|
30
|
-
const sns = externalRequest.sns
|
|
31
|
-
const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryError
|
|
32
|
-
|
|
33
21
|
//(<optionalRequire>)
|
|
34
22
|
//(</optionalRequire>)
|
|
35
23
|
/**
|
|
@@ -47,13 +35,13 @@ const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryEr
|
|
|
47
35
|
* @returns {object} description of return value
|
|
48
36
|
*/
|
|
49
37
|
|
|
50
|
-
|
|
38
|
+
export default async function <%- functionName %> (
|
|
51
39
|
_izContext,
|
|
52
40
|
requestParams,
|
|
53
41
|
//(<additionalParams>)
|
|
54
42
|
//(</additionalParams>)
|
|
55
43
|
callingFlowConfig = {},
|
|
56
|
-
)
|
|
44
|
+
) {
|
|
57
45
|
|
|
58
46
|
try {
|
|
59
47
|
_izContext.logger.debug("<%- functionName %> _izContext", _izContext)
|
|
@@ -17,12 +17,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import path from 'path';
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
+
const __dirname = path.dirname(__filename);
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
import { consts, utils } from '../../../../../MainLibs/index.js';
|
|
26
|
+
const { SOURCE_PATH, SAVE_FILE_NAME } = consts;
|
|
27
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
28
|
+
|
|
29
|
+
const templatePath = path.join(__dirname, 'template.ejs');
|
|
24
30
|
|
|
25
|
-
const { SOURCE_PATH, SAVE_FILE_NAME, FUNCTION_NAME, HANDLER } = require('../../../../../MainLibs/src/Consts.js');
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
33
|
* create data for dynamoDbYaml tempalte from objectSchema
|
|
@@ -91,4 +96,4 @@ function createDataForDefaultSnsInSqs(_izContext, flowSchema, srcPath) {
|
|
|
91
96
|
return resultsForCreateDefaultSnsInSqs;
|
|
92
97
|
}
|
|
93
98
|
|
|
94
|
-
|
|
99
|
+
export default createDataForDefaultSnsInSqs;
|
|
@@ -18,149 +18,157 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
20
|
// Import required modules
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const {
|
|
24
|
-
getAllLocalObjectSchemasWithHierarchy,
|
|
25
|
-
// getAllLocalRelationshipSchemas,
|
|
26
|
-
getAllLocalRelationshipSchema,
|
|
27
|
-
getAllLocalFlowSchemas
|
|
28
|
-
} = require('@izara_project/izara-core-library-service-schemas/src/GetObjectSchema');
|
|
21
|
+
import { join } from 'path';
|
|
29
22
|
|
|
23
|
+
import { getObjectSchema } from '@izara_project/izara-core-library-service-schemas';
|
|
24
|
+
const { getAllLocalFlowSchemas } = getObjectSchema
|
|
30
25
|
// Core components
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
import createWebSocketDynamoDb from './components/websocket/dynamoDb/WebSocketTaskData.js';
|
|
27
|
+
import createUserUploadRecordTable from './components/websocket/dynamoDb/userUploadRecords.js'
|
|
28
|
+
import createReservedDataMainTable from './components/websocket/dynamoDb/ReservedTableData.js';
|
|
29
|
+
import createBucketS3 from './components/upload/relate/S3/data.js';
|
|
30
|
+
import createWebSocketGenerateCodeLibs from './components/upload/relate/libs/data.js';
|
|
31
|
+
import createWebSocketConnectYaml from './components/websocket/connect/functionYaml/data.js';
|
|
32
|
+
import createWebSocketConnectHandler from './components/websocket/connect/handler/data.js';
|
|
33
|
+
import createSnsTopicForUploadS3 from './components/upload/relate/sns-out/data.js';
|
|
39
34
|
// CreateObject components
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
import createFunctionYamlCreateObjectWebSocket from './components/upload/createObject/functionYaml/data.js';
|
|
36
|
+
import createHandlerCreateObjectWebSocket from './components/upload/createObject/handler/data.js';
|
|
37
|
+
import createMainFunctionCreateObjectWebSocket from './components/upload/createObject/mainFunction/data.js';
|
|
43
38
|
|
|
44
39
|
// CreateObjectComplete components
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
40
|
+
// import createWebSocketCreateObjectCompleteFunctionYaml from './components/upload/createObjectComplete/functionYaml/data');
|
|
41
|
+
// import createWebSocketCreateObjectCompleteQueue from './components/upload/createObjectComplete/sns-sqs/data');
|
|
42
|
+
// import createWebSocketCreateObjectCompleteHandler from './components/upload/createObjectComplete/handler/data');
|
|
43
|
+
// import createWebSocketCreateObjectCompleteMainFunction from './components/upload/createObjectComplete/mainFunction/data');
|
|
49
44
|
|
|
50
45
|
// PreSign URL components
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
import createReservedLimitFunctionYaml from './components/upload/preSignUrl/reservedLimit/functionYaml/data.js';
|
|
47
|
+
import createReservedLimitHandler from './components/upload/preSignUrl/reservedLimit/handler/data.js';
|
|
48
|
+
import createReservedLimitMainFunction from './components/upload/preSignUrl/reservedLimit/mainFunction/data.js';
|
|
49
|
+
import createReservedLimitQueueName from './components/upload/preSignUrl/reservedLimit/sqs/data.js';
|
|
55
50
|
|
|
56
51
|
// Reserved limit components
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//
|
|
52
|
+
import createPresignUrlFunctionYaml from './components/upload/preSignUrl/createPresignUrl/functionYaml/data.js';
|
|
53
|
+
import createPresignUrlHandler from './components/upload/preSignUrl/createPresignUrl/handler/data.js';
|
|
54
|
+
import createPresignUrlMainFunction from './components/upload/preSignUrl/createPresignUrl/mainFunction/data.js';
|
|
55
|
+
import createPresignUrlQueueName from './components/upload/preSignUrl/createPresignUrl/queue/data.js';
|
|
56
|
+
// import createReservedLimitQueueName from './components/upload/preSignUrl/reservedLimit/sqs/data');
|
|
62
57
|
|
|
63
58
|
// Process uploaded file components
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
import createProcessAfterUploadS3FunctionYmlS3 from './components/upload/processFile/functionYml/HdrS3/data.js';
|
|
60
|
+
import createProcessAfterUploadS3Queue from './components/upload/processFile/queue/data.js';
|
|
61
|
+
import createProcessAfterUploadS3HandlerS3 from './components/upload/processFile/handler/handlerS3/data.js';
|
|
62
|
+
import createProcessAfterUploadS3MainFunction from './components/upload/processFile/mainFunction/data.js';
|
|
68
63
|
|
|
69
64
|
// Confirm reservation components
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
import createConfirmAfterUploadS3FunctionYaml from './components/upload/confirmReserved/functionYaml/data.js';
|
|
66
|
+
import createConfirmAfterUploadS3Handler from './components/upload/confirmReserved/handler/data.js';
|
|
67
|
+
import createConfirmAfterUploadS3MainFunction from './components/upload/confirmReserved/mainFunction/data.js';
|
|
68
|
+
import createConfirmAfterUploadS3Queue from './components/upload/confirmReserved/queue/data.js';
|
|
74
69
|
// flowSchema ExternalTopic components //
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
import createExternalSqsFunctionYaml from './externalTopic/Process/functionYaml/data.js';
|
|
71
|
+
import createExternalSqsHandler from './externalTopic/Process/handler/data.js';
|
|
72
|
+
// import createExternalSqsCompleteFunctionYaml from "./externalTopic/Complete/functionYaml/data.js";
|
|
73
|
+
// import createExternalSqsCompleteHandler from "./externalTopic/Complete/handler/data.js";
|
|
74
|
+
// import createExternalSqsCompleteMainFunction from "./externalTopic/Complete/mainFunction/data.js";
|
|
75
|
+
import createExternalTopicSnsInSqs from './externalTopic/sns-in-sqs/data.js';
|
|
76
|
+
import createExternalTopicSnsOut from './externalTopic/sns-out/data.js'
|
|
82
77
|
|
|
83
|
-
|
|
78
|
+
import createFlowSchemaEndpointMainFunction from './flowSchemaMainFunction/data.js';
|
|
84
79
|
|
|
85
80
|
// flowSchema OwnTopic component
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
import createFlowSchemaOwnTopicMainFunction from './flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js';
|
|
82
|
+
import createFlowSchemaOwnTopicFunctionYaml from './flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js';
|
|
83
|
+
import createFlowSchemaOwnTopicHandler from './flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js';
|
|
89
84
|
|
|
90
85
|
// flowSchema OwnTopicComplete component
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
import createWebSocketCompleteMainFunctionYaml from "./webSocketComplete/functionYaml/data.js";
|
|
87
|
+
import createWebSocketCompleteMainHandler from "./webSocketComplete/handler/data.js";
|
|
88
|
+
import createWebSocketCompleteMainMainFunction from "./webSocketComplete/mainFunction/data.js";
|
|
89
|
+
import createWebSocketCompleteMainSqs from './webSocketComplete/sqs/data.js';
|
|
95
90
|
// flowSchema OwnTopicEndpoint component
|
|
96
91
|
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
import createFlowSchemaOwnTopicEndpointFunctionYaml from './flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js';
|
|
93
|
+
import createFlowSchemaOwnTopicEndpointHandler from './flowSchemaOwnTopic/EndpointComponent/handler/data.js';
|
|
99
94
|
|
|
100
95
|
// flowSchema OnwTopic flowStep component
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
import createFlowSchemaFlowStepFunctionYaml from './flowStep/functionYaml/data.js';
|
|
97
|
+
import createFlowSchemaFlowStepHandler from './flowStep/handler/data.js';
|
|
98
|
+
import createFlowSchemaFlowStepMainFunction from './flowStep/mainFunction/data.js'
|
|
99
|
+
import createFlowSchemaFlowStepSnsIn from './flowStep/sns-in/data.js';
|
|
105
100
|
// flowSchema OwnTopicEndpointComplete component
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
//
|
|
101
|
+
// import createFlowSchemaOwnTopicEndpointCompleteFuntionYaml from './flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js';
|
|
102
|
+
// import createFlowSchemaOwnTopicEndpointCompleteHandler from './flowSchemaOwnTopic/EndpointComplete/handler/data.js';
|
|
103
|
+
// import createFlowSchemaOwnTopicEndpointCompleteMainFunction from './flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js';
|
|
109
104
|
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
import createFlowSchemaOwnTopicQueue from './flowSchemaOwnTopic/sns-in/data.js';
|
|
106
|
+
import createFlowSchemaOwnTopicSnsOut from './flowSchemaOwnTopic/sns-out/data.js';
|
|
112
107
|
// flowSchema EventBridge components //
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
import createFlowSchemaEventBridgeFunctionYaml from './eventBridge/functionYaml/data.js';
|
|
109
|
+
import createFlowSchemaEventBridgeHandler from './eventBridge/handler/inv/data.js';
|
|
110
|
+
import createFlowSchemaEventBridgeMainFunction from './eventBridge/mainFunction/data.js';
|
|
116
111
|
|
|
117
112
|
// flowSchema lambdaSync components
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
import createFlowSchemaLambdaSyncFunctionYamlInv from './lambdaSync/Inv/functionYaml/data.js';
|
|
114
|
+
import createFlowSchemaLambdaSyncHandlerInv from './lambdaSync/Inv/handler/data.js';
|
|
120
115
|
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
import createFlowSchemaLambdaSyncFunctionYamlApi from "./lambdaSync/Api/functionYaml/data.js";
|
|
117
|
+
import createFlowSchemaLambdaSyncHandlerApi from "./lambdaSync/Api/handler/data.js";
|
|
123
118
|
|
|
124
|
-
|
|
119
|
+
import createAwaitingMultipleStepDynamoDbData from './dynamoDb/data.js';
|
|
125
120
|
// create record status Field Complete
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
121
|
+
// import createCreateObjectCompleteFunctionYaml from './CreateRecordComplete/functionYaml/data.js';
|
|
122
|
+
// import createCreateObjectCompleteHandler from './CreateRecordComplete/handler/data.js';
|
|
123
|
+
// import createCreateObjectCompleteMainFunction from './CreateRecordComplete/mainFunction/data.js';
|
|
124
|
+
// import createCreateObjectCompleteQueue from './CreateRecordComplete/queue/data.js';// flowSchema Register component //
|
|
125
|
+
|
|
126
|
+
import createFlowSchemaRegisterHandlerComplete from './register/complete/handler/data.js';
|
|
127
|
+
import createFlowSchemaRegisterMainCompleteFunc from './register/complete/mainFunction/data.js';
|
|
128
|
+
import createFlowSchemaRegisterHandlerWbsFunc from './register/wbs/handler/data.js';
|
|
129
|
+
import createFlowSchemaRegisterMainWbsFunc from './register/wbs/mainFunction/data.js';
|
|
130
|
+
import createFlowSchemaRegisterMainCompleteFuncYaml from './register/complete/functionYaml/data.js';
|
|
131
|
+
import createFlowSchemaRegisterMainWbsFuncYaml from './register/wbs/functionYaml/data.js';
|
|
132
|
+
import createFlowSchemaRegisterSubscribeOutAll from './register/subscriptionOutAll/data.js';
|
|
133
|
+
import createFlowSchemaRegisterSnsInSqs from './register/sns-in/data.js';
|
|
134
|
+
import createFlowSchemaRegisterDynamoDb from './register/dynamoDB/register.js';
|
|
135
|
+
|
|
136
|
+
import createProcessTriggerCacheYaml from './triggerCacheComponent/processTriggerCache/functionYaml/data.js';
|
|
137
|
+
import createCheckTriggerCacheYaml from './triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js';
|
|
138
|
+
import createTriggerCacheCompleteYaml from './triggerCacheComponent/triggerCacheComplete/functionYaml/data.js';
|
|
141
139
|
const createFlowSchemaTriggerCacheFunctionYaml = {
|
|
142
|
-
createProcessTriggerCacheYaml
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
createProcessTriggerCacheYaml, createCheckTriggerCacheYaml, createTriggerCacheCompleteYaml
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
import createProcessTriggerCacheHandler from './triggerCacheComponent/processTriggerCache/handler/data.js';
|
|
144
|
+
import createCheckTriggerCacheHandler from './triggerCacheComponent/checkTriggerCacheComplete/handler/data.js';
|
|
145
|
+
import createTriggerCacheCompleteHandler from './triggerCacheComponent/triggerCacheComplete/handler/data.js';
|
|
146
|
+
|
|
146
147
|
const createFlowSchemaTriggerCacheHandler = {
|
|
147
|
-
createProcessTriggerCacheHandler
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
createProcessTriggerCacheHandler, createCheckTriggerCacheHandler, createTriggerCacheCompleteHandler
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
import createProcessTriggerCacheMainFunction from './triggerCacheComponent/processTriggerCache/mainFunction/data.js';
|
|
152
|
+
import createCheckTriggerCacheMainFunction from './triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js';
|
|
153
|
+
import createTriggerCacheCompleteMainFunction from './triggerCacheComponent/triggerCacheComplete/mainFunction/data.js';
|
|
154
|
+
|
|
151
155
|
const createFlowSchemaTriggerCacheMainFunction = {
|
|
152
|
-
createProcessTriggerCacheMainFunction
|
|
153
|
-
createCheckTriggerCacheMainFunction: require('./triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data'),
|
|
154
|
-
createTriggerCacheCompleteMainFunction: require('./triggerCacheComponent/triggerCacheComplete/mainFunction/data')
|
|
156
|
+
createProcessTriggerCacheMainFunction, createCheckTriggerCacheMainFunction, createTriggerCacheCompleteMainFunction
|
|
155
157
|
}
|
|
156
|
-
|
|
158
|
+
import createFlowSchemaTriggerCacheQueue from './triggerCacheComponent/triggerCacheQueue/data.js'
|
|
159
|
+
|
|
160
|
+
import createCompleteStatusFieldMainFunction from './statusFieldComponent/MainFunction/data.js';
|
|
161
|
+
import createCompleteStatusFieldFunctionYaml from './statusFieldComponent/FunctionYaml/data.js';
|
|
162
|
+
import createCompleteStatusFieldHandler from './statusFieldComponent/Handler/data.js';
|
|
163
|
+
import createCompleteStatusFieldTopicAndQueue from './statusFieldComponent/sns/data.js';
|
|
157
164
|
|
|
158
165
|
const createFlowSchemaStatusFieldComponent = {
|
|
159
|
-
createCompleteStatusFieldMainFunction
|
|
160
|
-
createCompleteStatusFieldFunctionYaml
|
|
161
|
-
createCompleteStatusFieldHandler
|
|
162
|
-
createCompleteStatusFieldTopicAndQueue
|
|
163
|
-
}
|
|
166
|
+
createCompleteStatusFieldMainFunction,
|
|
167
|
+
createCompleteStatusFieldFunctionYaml,
|
|
168
|
+
createCompleteStatusFieldHandler,
|
|
169
|
+
createCompleteStatusFieldTopicAndQueue
|
|
170
|
+
};
|
|
171
|
+
|
|
164
172
|
/**
|
|
165
173
|
* Generates code with templates for different actions
|
|
166
174
|
* @param {Object} _izContext - Context object
|
|
@@ -495,4 +503,4 @@ async function generateCodeWithTemplate(_izContext, objSchemaPath) {
|
|
|
495
503
|
}
|
|
496
504
|
}
|
|
497
505
|
|
|
498
|
-
|
|
506
|
+
export default generateCodeWithTemplate;
|
|
@@ -17,32 +17,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
20
|
+
import path from 'path';
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
+
const __dirname = path.dirname(__filename);
|
|
24
|
+
|
|
25
|
+
import fs from 'fs';
|
|
26
|
+
import yaml from 'yaml';
|
|
27
|
+
import { consts, utils } from '../../../../../../MainLibs/index.js';
|
|
23
28
|
|
|
24
|
-
const { FLOW_SCHEMA_HOOK_STATE, ACTIONS, HANDLER, STORAGE_TYPES } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
25
|
-
const { firstLetterUpperCase: upperCase } = require('../../../../../../MainLibs/src/Utils')
|
|
26
29
|
const {
|
|
30
|
+
HANDLER,
|
|
27
31
|
SOURCE_PATH,
|
|
28
32
|
defaultIamRolePerAction,
|
|
29
|
-
createIamRole,
|
|
30
|
-
RESOURCE_CLASSES,
|
|
31
|
-
SNS_RESOURCE,
|
|
32
|
-
resourceNames,
|
|
33
|
-
DYNAMO_RESOURCE,
|
|
34
33
|
SAVE_FILE_NAME,
|
|
35
|
-
FUNCTION_NAME,
|
|
36
34
|
shortNameHandler,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} = require('../../../../../../MainLibs/src/Consts');
|
|
42
|
-
const { NoRetryError } = require('@izara_project/izara-core-library-core');
|
|
43
|
-
const getObjectSchema = require('@izara_project/izara-core-library-service-schemas').getObjectSchema;
|
|
35
|
+
} = consts;
|
|
36
|
+
const { firstLetterUpperCase: upperCase } = utils;
|
|
37
|
+
|
|
38
|
+
const templatePath = path.join(__dirname, 'template.ejs');
|
|
44
39
|
|
|
45
|
-
const templatePath = path.join(__dirname, "./template.ejs");
|
|
46
40
|
/**
|
|
47
41
|
* receive objectSchema
|
|
48
42
|
*
|
|
@@ -85,4 +79,4 @@ function createSourceParamsApi(_izContext, flowSchema, srcPath) {
|
|
|
85
79
|
}
|
|
86
80
|
}
|
|
87
81
|
|
|
88
|
-
|
|
82
|
+
export default data;
|
|
@@ -16,13 +16,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
|
-
const path = require('path');
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
20
|
+
import path from 'path';;
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
+
const __dirname = path.dirname(__filename);;
|
|
24
|
+
import { consts, utils } from '../../../../../../MainLibs/index.js';
|
|
25
|
+
|
|
26
|
+
const {
|
|
27
|
+
HANDLER,
|
|
28
|
+
SOURCE_PATH,
|
|
29
|
+
} = consts;
|
|
30
|
+
const { firstLetterUpperCase: upperCase } = utils;
|
|
31
|
+
|
|
32
|
+
const templatePath = path.join(__dirname, 'template.ejs');
|
|
24
33
|
|
|
25
|
-
const templatePath = path.join(__dirname, "./template.ejs");
|
|
26
34
|
/**
|
|
27
35
|
* receive objectSchema
|
|
28
36
|
* create data for WebScoket handler template
|
|
@@ -56,4 +64,4 @@ function createSourceParamsApi(_izContext, flowSchema, srcPath) {
|
|
|
56
64
|
}
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
|
|
67
|
+
export default data;
|
|
@@ -19,10 +19,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
19
19
|
|
|
20
20
|
const RBAC_TARGET_ID = process.env.iz_rbacTargetIdUser // iz_rbacTargetIdUser | iz_rbacDeliveryMethodId
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
import { middlewareHandler as middleware } from "@izara_project/izara-middleware";
|
|
23
|
+
import Logger from '@izara_project/izara-core-library-logger';
|
|
24
|
+
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
25
|
+
|
|
26
|
+
import <%- functionName %> from './<%- functionName %>_Main.js';
|
|
27
|
+
|
|
26
28
|
// validate event params in middleware before into function.
|
|
27
29
|
let validatorSchema = {
|
|
28
30
|
//(<validatorSchema>)
|
|
@@ -51,7 +53,7 @@ middleware.setValidatorSchema(validatorSchema, { noAuthorizer: true })
|
|
|
51
53
|
// middleware.setValidatorSchema(validatorSchema)
|
|
52
54
|
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
export const main = middleware.wrap(async (event, context, callback) => {
|
|
55
57
|
event._izContext.logger.debug('Event:', event);
|
|
56
58
|
try {
|
|
57
59
|
|
|
@@ -16,30 +16,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
|
-
|
|
19
|
+
import path from 'path';;
|
|
20
|
+
import { fileURLToPath } from 'url';
|
|
21
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
22
|
+
const __dirname = path.dirname(__filename);;
|
|
23
|
+
import { consts, utils } from '../../../../../../MainLibs/index.js';
|
|
20
24
|
|
|
21
|
-
const { FLOW_SCHEMA_HOOK_STATE, ACTIONS, HANDLER, STORAGE_TYPES } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
22
|
-
const { firstLetterUpperCase: upperCase } = require('../../../../../../MainLibs/src/Utils')
|
|
23
25
|
const {
|
|
26
|
+
HANDLER,
|
|
24
27
|
SOURCE_PATH,
|
|
25
28
|
defaultIamRolePerAction,
|
|
26
|
-
createIamRole,
|
|
27
|
-
RESOURCE_CLASSES,
|
|
28
|
-
SNS_RESOURCE,
|
|
29
|
-
resourceNames,
|
|
30
|
-
DYNAMO_RESOURCE,
|
|
31
29
|
SAVE_FILE_NAME,
|
|
32
|
-
FUNCTION_NAME,
|
|
33
30
|
shortNameHandler,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
SQS_RESOURCE,
|
|
37
|
-
LAMBDA_RESOURCE
|
|
38
|
-
} = require('../../../../../../MainLibs/src/Consts');
|
|
39
|
-
const { NoRetryError } = require('@izara_project/izara-core-library-core');
|
|
40
|
-
const getObjectSchema = require('@izara_project/izara-core-library-service-schemas').getObjectSchema;
|
|
31
|
+
} = consts;
|
|
32
|
+
const { firstLetterUpperCase: upperCase } = utils;
|
|
41
33
|
|
|
42
|
-
const templatePath = path.join(__dirname,
|
|
34
|
+
const templatePath = path.join(__dirname, 'template.ejs');
|
|
43
35
|
/**
|
|
44
36
|
* receive objectSchema
|
|
45
37
|
* create data for WebScoket handler template
|
|
@@ -75,4 +67,4 @@ function createSourceParamsInvoke(_izContext, flowSchema, srcPath) {
|
|
|
75
67
|
}
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
|
-
|
|
70
|
+
export default data;
|
|
@@ -16,13 +16,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
|
-
|
|
19
|
+
import path from 'path';;
|
|
20
|
+
import { fileURLToPath } from 'url';
|
|
21
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
22
|
+
const __dirname = path.dirname(__filename);;
|
|
23
|
+
import { consts, utils } from '../../../../../../MainLibs/index.js';
|
|
20
24
|
|
|
21
|
-
const {
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
const {
|
|
26
|
+
HANDLER,
|
|
27
|
+
SOURCE_PATH,
|
|
28
|
+
} = consts;
|
|
29
|
+
const { firstLetterUpperCase: upperCase } = utils;
|
|
24
30
|
|
|
25
|
-
const templatePath = path.join(__dirname,
|
|
31
|
+
const templatePath = path.join(__dirname, 'template.ejs');
|
|
26
32
|
/**
|
|
27
33
|
* receive objectSchema
|
|
28
34
|
* create data for WebScoket handler template
|
|
@@ -55,4 +61,4 @@ function createSourceParamsInvoke(_izContext, flowSchema, srcPath) {
|
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
export default data;
|
|
@@ -17,12 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import { middlewareHandler as middleware } from "@izara_project/izara-middleware";
|
|
21
|
+
import Logger from '@izara_project/izara-core-library-logger';
|
|
22
|
+
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
const callingFlowSharedLib = require("@izara_project/izara-core-library-calling-flow")
|
|
25
|
-
const <%- functionName %> = require('./<%- functionName %>_Main')
|
|
24
|
+
import <%- functionName %> from './<%- functionName %>_Main.js';
|
|
26
25
|
|
|
27
26
|
// validate event params in middleware before into function.
|
|
28
27
|
const validatorSchema = {
|
|
@@ -31,7 +30,7 @@ const validatorSchema = {
|
|
|
31
30
|
};
|
|
32
31
|
middleware.setValidatorSchema(validatorSchema)
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
export const main = middleware.wrap(async (event, context, callback) => {
|
|
35
34
|
event._izContext.logger.debug('Event:', event);
|
|
36
35
|
event._izContext.logger.debug('context:', context);
|
|
37
36
|
|
|
@@ -17,29 +17,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
import path from 'path';;
|
|
21
|
+
import { fileURLToPath } from 'url';
|
|
22
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
+
const __dirname = path.dirname(__filename);;
|
|
24
|
+
import { consts, utils } from '../../../../../../MainLibs/index.js';
|
|
21
25
|
|
|
22
|
-
const { FLOW_SCHEMA_HOOK_STATE } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
23
|
-
|
|
24
|
-
const { firstLetterUpperCase: upperCase } = require("../../../../../../MainLibs/src/Utils");
|
|
25
26
|
const {
|
|
26
27
|
SOURCE_PATH,
|
|
27
28
|
defaultIamRolePerAction,
|
|
28
29
|
createIamRole,
|
|
29
30
|
RESOURCE_CLASSES,
|
|
30
|
-
SNS_RESOURCE,
|
|
31
31
|
resourceNames,
|
|
32
32
|
DYNAMO_RESOURCE,
|
|
33
33
|
SAVE_FILE_NAME,
|
|
34
34
|
FUNCTION_NAME,
|
|
35
35
|
shortNameHandler,
|
|
36
|
-
externalResourceYaml,
|
|
37
36
|
SOURCE_GENERATE_IAM_ROLE,
|
|
38
37
|
SQS_RESOURCE
|
|
39
|
-
} =
|
|
38
|
+
} = consts;
|
|
39
|
+
const { firstLetterUpperCase: upperCase } = utils;
|
|
40
40
|
|
|
41
41
|
const templatePath = path.join(__dirname, "template.ejs");
|
|
42
|
-
const hookTemplate = path.join(__dirname, "./hookTemplate.ejs");
|
|
43
42
|
/**
|
|
44
43
|
* receive objectSchema
|
|
45
44
|
* create data for WebSocket handler template
|
|
@@ -113,4 +112,4 @@ function data(_izContext, srcPath) {
|
|
|
113
112
|
}]
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
|
|
115
|
+
export default data;
|