@izara_project/izara-core-generate-service-code 1.0.2 → 1.0.3
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/GenerateCode.js +5 -4
- package/src/GenerateResources.js +4 -3
- package/src/GenerateSchema.js +5 -4
- package/src/GenerateTests.js +6 -7
- package/src/TemplateConfig.js +18 -18
- package/src/TemplateData/EndpointPerService/generateTemplateData.js +1 -1
- package/src/TemplateData/EndpointPerService/mainFunction/create/template.ejs +6 -17
- package/src/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +7 -12
- package/src/TemplateData/EndpointPerService/mainFunction/get/template.ejs +7 -10
- package/src/TemplateData/EndpointPerService/mainFunction/update/template.ejs +5 -17
- package/src/TemplateData/IntTest/generateResources/generateResources.js +4 -3
- package/src/TemplateData/IntTest/generateTests/events/data.js +3 -1
- package/src/TemplateData/IntTest/generateTests/generateTemplate.js +4 -2
- package/src/TemplateData/IntTest/generateTests/pathIntTest/data.js +2 -2
- package/src/TemplateData/IntTest/generateTests/tests/data.js +9 -8
- package/src/TemplateData/IntTest/libs/libs.js +4 -35
- package/src/TemplateData/IntTest/upload/uploadIntTest.js +4 -3
- package/src/TemplateData/externalService/lambdaRole/template.ejs +1 -3
- package/src/TemplateData/externalService/snsTopicSubscriptions/template.ejs +0 -2
- package/src/TemplateData/findData/findDataYaml/data.js +2 -1
- package/src/TemplateData/findData/mainFunction/data.js +1 -1
- package/src/TemplateData/flowSchema/CreateRecordComplete/functionYaml/data.js +9 -5
- package/src/TemplateData/flowSchema/CreateRecordComplete/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/CreateRecordComplete/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/CreateRecordComplete/queue/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +11 -8
- package/src/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +1 -1
- package/src/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +1 -1
- package/src/TemplateData/flowSchema/components/upload/confirmReserved/queue/data.js +3 -2
- package/src/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +11 -7
- package/src/TemplateData/flowSchema/components/upload/createObject/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +4 -3
- package/src/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +2 -2
- package/src/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +9 -7
- package/src/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +11 -7
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/template.ejs +2 -2
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/data.js +2 -4
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +15 -9
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +1 -1
- package/src/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/data.js +3 -5
- package/src/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +10 -5
- package/src/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +2 -1
- package/src/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +0 -2
- package/src/TemplateData/flowSchema/components/upload/processFile/queue/data.js +1 -1
- package/src/TemplateData/flowSchema/components/upload/relate/S3/data.js +1 -1
- package/src/TemplateData/flowSchema/components/upload/relate/libs/data.js +1 -1
- package/src/TemplateData/flowSchema/components/upload/relate/sns-out/data.js +2 -1
- package/src/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +9 -4
- package/src/TemplateData/flowSchema/components/websocket/connect/handler/data.js +1 -1
- package/src/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +1 -2
- package/src/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +1 -1
- package/src/TemplateData/flowSchema/components/websocket/dynamoDb/userUploadRecords.js +1 -1
- package/src/TemplateData/flowSchema/dynamoDb/data.js +2 -1
- package/src/TemplateData/flowSchema/eventBridge/functionYaml/data.js +9 -4
- package/src/TemplateData/flowSchema/eventBridge/handler/inv/data.js +2 -1
- package/src/TemplateData/flowSchema/eventBridge/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +9 -6
- package/src/TemplateData/flowSchema/externalTopic/Complete/handler/data.js +2 -19
- package/src/TemplateData/flowSchema/externalTopic/Complete/mainFunction/data.js +3 -1
- package/src/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +12 -5
- package/src/TemplateData/flowSchema/externalTopic/Process/handler/data.js +4 -1
- package/src/TemplateData/flowSchema/externalTopic/sns-in-sqs/data.js +3 -1
- package/src/TemplateData/flowSchema/externalTopic/sns-out/data.js +5 -6
- package/src/TemplateData/flowSchema/flowSchemaMainFunction/data.js +5 -9
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +10 -5
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +65 -58
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/template.ejs +0 -4
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/DsqHandlerTemplate.ejs +91 -0
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/data.js +31 -16
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +10 -5
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js +4 -3
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/template.ejs +5 -6
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js +3 -1
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +3 -3
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/data.js +3 -3
- package/src/TemplateData/flowSchema/flowSchemaOwnTopic/sns-out/data.js +3 -3
- package/src/TemplateData/flowSchema/flowStep/functionYaml/data.js +13 -8
- package/src/TemplateData/flowSchema/flowStep/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/flowStep/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/flowStep/sns-in/data.js +3 -3
- package/src/TemplateData/flowSchema/generateTemplateData.js +1 -6
- package/src/TemplateData/flowSchema/lambdaSync/Api/functionYaml/data.js +10 -3
- package/src/TemplateData/flowSchema/lambdaSync/Api/handler/data.js +3 -1
- package/src/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/data.js +9 -3
- package/src/TemplateData/flowSchema/lambdaSync/Inv/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/register/complete/functionYaml/data.js +11 -5
- package/src/TemplateData/flowSchema/register/complete/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/register/complete/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/register/dynamoDB/register.js +2 -4
- package/src/TemplateData/flowSchema/register/sns-in/data.js +3 -4
- package/src/TemplateData/flowSchema/register/subscriptionOutAll/data.js +3 -3
- package/src/TemplateData/flowSchema/register/wbs/functionYaml/data.js +10 -5
- package/src/TemplateData/flowSchema/register/wbs/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/register/wbs/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/data.js +14 -6
- package/src/TemplateData/flowSchema/statusFieldComponent/Handler/data.js +4 -7
- package/src/TemplateData/flowSchema/statusFieldComponent/MainFunction/data.js +4 -3
- package/src/TemplateData/flowSchema/statusFieldComponent/sns/data.js +3 -3
- package/src/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +12 -8
- package/src/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +3 -3
- package/src/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +12 -6
- package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js +2 -1
- package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js +11 -8
- package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +3 -3
- package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/data.js +4 -11
- package/src/TemplateData/flowSchema/webSocketComplete/functionYaml/data.js +11 -8
- package/src/TemplateData/flowSchema/webSocketComplete/handler/data.js +2 -1
- package/src/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +1 -1
- package/src/TemplateData/flowSchema/webSocketComplete/sqs/data.js +3 -3
- package/src/TemplateData/generateRole/data.js +7 -2
- package/src/TemplateData/perActionComplete/create/handler/data.js +3 -3
- package/src/TemplateData/perActionComplete/create/mainFunction/data.js +3 -3
- package/src/TemplateData/perActionComplete/create/mainFunction/template.ejs +2 -2
- package/src/TemplateData/perActionComplete/create/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/perActionComplete/create/sns-out/data.js +3 -3
- package/src/TemplateData/perActionComplete/create/yaml/data.js +11 -7
- package/src/TemplateData/perActionComplete/delete/handler/data.js +3 -3
- package/src/TemplateData/perActionComplete/delete/mainFunction/data.js +4 -3
- package/src/TemplateData/perActionComplete/delete/mainFunction/template.ejs +3 -4
- package/src/TemplateData/perActionComplete/delete/sns-in-sqs/data.js +4 -3
- package/src/TemplateData/perActionComplete/delete/sns-out/data.js +3 -3
- package/src/TemplateData/perActionComplete/delete/yaml/data.js +11 -7
- package/src/TemplateData/perActionComplete/get/handler/data.js +3 -3
- package/src/TemplateData/perActionComplete/get/mainFunction/data.js +3 -4
- package/src/TemplateData/perActionComplete/get/mainFunction/template.ejs +2 -2
- package/src/TemplateData/perActionComplete/get/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/perActionComplete/get/sns-out/data.js +3 -3
- package/src/TemplateData/perActionComplete/get/yaml/data.js +12 -7
- package/src/TemplateData/perActionComplete/update/handler/data.js +3 -3
- package/src/TemplateData/perActionComplete/update/mainFunction/data.js +3 -3
- package/src/TemplateData/perActionComplete/update/mainFunction/template.ejs +2 -2
- package/src/TemplateData/perActionComplete/update/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/perActionComplete/update/sns-out/data.js +4 -6
- package/src/TemplateData/perActionComplete/update/yaml/data.js +11 -7
- package/src/TemplateData/processLogical/handler/data.js +3 -3
- package/src/TemplateData/processLogical/mainFunction/data.js +2 -1
- package/src/TemplateData/processLogical/yaml/data.js +10 -7
- package/src/TemplateData/processLogicalPagination/DsqYaml/data.js +1 -1
- package/src/TemplateData/processLogicalPagination/handler/dsq/data.js +2 -1
- package/src/TemplateData/processLogicalPagination/handler/sqs/data.js +2 -1
- package/src/TemplateData/processLogicalPagination/mainFunction/data.js +2 -1
- package/src/TemplateData/processLogicalPagination/yaml/dsq/data.js +11 -7
- package/src/TemplateData/processLogicalPagination/yaml/sqs/data.js +9 -6
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/data.js +12 -7
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/template.ejs +2 -2
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/data.js +5 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/data.js +11 -7
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/template.ejs +12 -11
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/data.js +2 -1
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/data.js +20 -15
- package/src/TemplateData/relationshipPerAction/create/action/handler/data.js +4 -3
- package/src/TemplateData/relationshipPerAction/create/action/mainFunction/data.js +4 -3
- package/src/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +2 -2
- package/src/TemplateData/relationshipPerAction/create/action/sns-in-sqs/data.js +6 -4
- package/src/TemplateData/relationshipPerAction/create/complete/functionYaml/data.js +14 -10
- package/src/TemplateData/relationshipPerAction/create/complete/handler/sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/create/complete/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +3 -2
- package/src/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/create/complete/sns-out/data.js +3 -4
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/data.js +20 -15
- package/src/TemplateData/relationshipPerAction/delete/action/handler/data.js +4 -4
- package/src/TemplateData/relationshipPerAction/delete/action/mainFunction/data.js +4 -7
- package/src/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +2 -2
- package/src/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/data.js +5 -3
- package/src/TemplateData/relationshipPerAction/delete/complete/functionYaml/data.js +11 -7
- package/src/TemplateData/relationshipPerAction/delete/complete/handler/sqs/data.js +2 -1
- package/src/TemplateData/relationshipPerAction/delete/complete/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +4 -5
- package/src/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/delete/complete/sns-out/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/generateTemplateData.js +1 -1
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/data.js +19 -16
- package/src/TemplateData/relationshipPerAction/get/action/handler/data.js +4 -4
- package/src/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +3 -4
- package/src/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +6 -3
- package/src/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +5 -3
- package/src/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +13 -9
- package/src/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +2 -1
- package/src/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +3 -2
- package/src/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +2 -1
- package/src/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/data.js +17 -13
- package/src/TemplateData/relationshipPerAction/moveRelationship/action/handler/data.js +4 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/data.js +6 -4
- package/src/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/template.ejs +6 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/data.js +6 -4
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/data.js +13 -9
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/template.ejs +3 -2
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/data.js +20 -15
- package/src/TemplateData/relationshipPerAction/update/action/handler/data.js +4 -4
- package/src/TemplateData/relationshipPerAction/update/action/mainFunction/data.js +4 -4
- package/src/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +6 -3
- package/src/TemplateData/relationshipPerAction/update/action/sns-in-sqs/data.js +4 -3
- package/src/TemplateData/relationshipPerAction/update/action/sns-out/data.js +5 -6
- package/src/TemplateData/relationshipPerAction/update/complete/functionYaml/data.js +13 -10
- package/src/TemplateData/relationshipPerAction/update/complete/handler/sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/update/complete/mainFunction/data.js +2 -1
- package/src/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +3 -2
- package/src/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/data.js +3 -3
- package/src/TemplateData/relationshipPerAction/update/complete/sns-out/data.js +3 -3
- package/src/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +1 -1
- package/src/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +7 -3
- package/src/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +2 -1
- package/src/TemplateData/resourceYaml/filterGenerateResource/data.js +5 -3
- package/src/TemplateData/resourceYaml/generateTemplateData.js +5 -2
- package/src/TemplateData/resourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +3 -3
- package/src/TemplateData/resourceYaml/sns-in-sqs/snsAndSqsPerActionData.js +4 -3
- package/src/TemplateData/resourceYaml/sns-out/data.js +3 -3
- package/src/TemplateData/resourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +2 -1
- package/src/libs/GenerateCodeLibs.js +1 -1
- package/src/libs/Libs.js +22 -0
- package/src/libs/Utils.js +4 -4
- package/src/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +0 -358
- package/src/TemplateData/perActionEndpoint/generateTemplateData.js +0 -112
- package/src/TemplateData/perActionEndpoint/handler/api/data.js +0 -109
- package/src/TemplateData/perActionEndpoint/handler/api/request.json +0 -7
- package/src/TemplateData/perActionEndpoint/handler/api/template.ejs +0 -36
- package/src/TemplateData/perActionEndpoint/handler/dsq/data.js +0 -118
- package/src/TemplateData/perActionEndpoint/handler/dsq/request.json +0 -7
- package/src/TemplateData/perActionEndpoint/handler/dsq/template.ejs +0 -55
- package/src/TemplateData/perActionEndpoint/handler/inv/data.js +0 -112
- package/src/TemplateData/perActionEndpoint/handler/inv/request.json +0 -7
- package/src/TemplateData/perActionEndpoint/handler/inv/template.ejs +0 -37
- package/src/TemplateData/perActionEndpoint/handler/sqs/data.js +0 -116
- package/src/TemplateData/perActionEndpoint/handler/sqs/request.json +0 -7
- package/src/TemplateData/perActionEndpoint/handler/sqs/template.ejs +0 -57
- package/src/TemplateData/perActionEndpoint/handler/webSocket/data.js +0 -94
- package/src/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +0 -61
- package/src/TemplateData/perActionEndpoint/handler/webSocketConnect/data.js +0 -54
- package/src/TemplateData/perActionEndpoint/handler/webSocketConnect/template.ejs +0 -55
- package/src/TemplateData/perActionEndpoint/libs/data.js +0 -60
- package/src/TemplateData/perActionEndpoint/libs/template.ejs +0 -46
- package/src/TemplateData/perActionEndpoint/mainFunction/create/data.js +0 -91
- package/src/TemplateData/perActionEndpoint/mainFunction/create/request.json +0 -0
- package/src/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +0 -339
- package/src/TemplateData/perActionEndpoint/mainFunction/delete/data.js +0 -91
- package/src/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +0 -99
- package/src/TemplateData/perActionEndpoint/mainFunction/get/data.js +0 -92
- package/src/TemplateData/perActionEndpoint/mainFunction/get/request.json +0 -5
- package/src/TemplateData/perActionEndpoint/mainFunction/get/template.ejs +0 -116
- package/src/TemplateData/perActionEndpoint/mainFunction/get/testParam.json +0 -5
- package/src/TemplateData/perActionEndpoint/mainFunction/update/data.js +0 -85
- package/src/TemplateData/perActionEndpoint/mainFunction/update/request.json +0 -0
- package/src/TemplateData/perActionEndpoint/mainFunction/update/template.ejs +0 -166
- package/src/TemplateData/perActionEndpoint/yaml/api/data.js +0 -229
- package/src/TemplateData/perActionEndpoint/yaml/api/request.json +0 -14
- package/src/TemplateData/perActionEndpoint/yaml/api/template.ejs +0 -20
- package/src/TemplateData/perActionEndpoint/yaml/dsq/data.js +0 -234
- package/src/TemplateData/perActionEndpoint/yaml/dsq/request.json +0 -19
- package/src/TemplateData/perActionEndpoint/yaml/dsq/template.ejs +0 -17
- package/src/TemplateData/perActionEndpoint/yaml/inv/data.js +0 -207
- package/src/TemplateData/perActionEndpoint/yaml/inv/example req.js +0 -15
- package/src/TemplateData/perActionEndpoint/yaml/inv/request.json +0 -14
- package/src/TemplateData/perActionEndpoint/yaml/inv/template.ejs +0 -13
- package/src/TemplateData/perActionEndpoint/yaml/sqs/data.js +0 -237
- package/src/TemplateData/perActionEndpoint/yaml/sqs/request.json +0 -19
- package/src/TemplateData/perActionEndpoint/yaml/sqs/template.ejs +0 -17
- package/src/TemplateData/perActionEndpoint/yaml/wbs/data.js +0 -204
- package/src/TemplateData/perActionEndpoint/yaml/wbs/request.json +0 -19
- package/src/TemplateData/perActionEndpoint/yaml/wbs/template.ejs +0 -29
- package/src/TemplateData/perActionEndpoint/yaml/webSocketConnect/data.js +0 -58
- package/src/TemplateData/perActionEndpoint/yaml/webSocketConnect/template.ejs +0 -10
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/data.js +0 -146
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/template.ejs +0 -20
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/data.js +0 -146
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/data.js +0 -146
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/template.ejs +0 -13
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/data.js +0 -147
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/data.js +0 -62
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/template.ejs +0 -59
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/data.js +0 -63
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/template.ejs +0 -202
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/template.ejs +0 -144
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/template.ejs +0 -77
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +0 -175
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/api/template.ejs +0 -20
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +0 -176
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +0 -175
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/inv/template.ejs +0 -13
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +0 -177
- package/src/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/create/action/handler/api/data.js +0 -62
- package/src/TemplateData/relationshipPerAction/create/action/handler/api/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +0 -57
- package/src/TemplateData/relationshipPerAction/create/action/handler/dsq/data.js +0 -63
- package/src/TemplateData/relationshipPerAction/create/action/handler/dsq/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/create/action/handler/dsq/template.ejs +0 -184
- package/src/TemplateData/relationshipPerAction/create/action/handler/inv/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/create/action/handler/inv/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/create/action/handler/inv/template.ejs +0 -126
- package/src/TemplateData/relationshipPerAction/create/action/handler/sqs/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/create/action/handler/sqs/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +0 -75
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +0 -178
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/api/template.ejs +0 -20
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +0 -176
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +0 -178
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/template.ejs +0 -13
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +0 -176
- package/src/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/delete/action/handler/api/data.js +0 -62
- package/src/TemplateData/relationshipPerAction/delete/action/handler/api/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +0 -139
- package/src/TemplateData/relationshipPerAction/delete/action/handler/dsq/data.js +0 -63
- package/src/TemplateData/relationshipPerAction/delete/action/handler/dsq/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +0 -182
- package/src/TemplateData/relationshipPerAction/delete/action/handler/inv/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/delete/action/handler/inv/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +0 -124
- package/src/TemplateData/relationshipPerAction/delete/action/handler/sqs/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/delete/action/handler/sqs/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +0 -162
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +0 -168
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs +0 -20
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +0 -177
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +0 -167
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs +0 -13
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +0 -166
- package/src/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/get/action/handler/api/data.js +0 -62
- package/src/TemplateData/relationshipPerAction/get/action/handler/api/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/get/action/handler/api/template.ejs +0 -138
- package/src/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +0 -63
- package/src/TemplateData/relationshipPerAction/get/action/handler/dsq/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/get/action/handler/dsq/template.ejs +0 -185
- package/src/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/get/action/handler/inv/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/get/action/handler/inv/template.ejs +0 -127
- package/src/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +0 -64
- package/src/TemplateData/relationshipPerAction/get/action/handler/sqs/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/get/action/handler/sqs/template.ejs +0 -165
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +0 -167
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/api/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/api/template.ejs +0 -20
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +0 -196
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +0 -186
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/inv/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/inv/template.ejs +0 -13
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +0 -187
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/request.json +0 -0
- package/src/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/template.ejs +0 -17
- package/src/TemplateData/relationshipPerAction/update/action/handler/api/data.js +0 -78
- package/src/TemplateData/relationshipPerAction/update/action/handler/api/request.json +0 -7
- package/src/TemplateData/relationshipPerAction/update/action/handler/api/template.ejs +0 -142
- package/src/TemplateData/relationshipPerAction/update/action/handler/dsq/data.js +0 -79
- package/src/TemplateData/relationshipPerAction/update/action/handler/dsq/request.json +0 -7
- package/src/TemplateData/relationshipPerAction/update/action/handler/dsq/template.ejs +0 -188
- package/src/TemplateData/relationshipPerAction/update/action/handler/inv/data.js +0 -80
- package/src/TemplateData/relationshipPerAction/update/action/handler/inv/request.json +0 -5
- package/src/TemplateData/relationshipPerAction/update/action/handler/inv/template.ejs +0 -147
- package/src/TemplateData/relationshipPerAction/update/action/handler/sqs/data.js +0 -79
- package/src/TemplateData/relationshipPerAction/update/action/handler/sqs/request.json +0 -7
- package/src/TemplateData/relationshipPerAction/update/action/handler/sqs/template.ejs +0 -163
- package/src/TemplateData/resourceYaml/CreateSourceData.js +0 -79
- /package/src/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/{template.ejs → SqsHandlerTemplate.ejs} +0 -0
|
@@ -19,7 +19,8 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
24
25
|
|
|
25
26
|
const { firstLetterUpperCase: upperCase } = utils;
|
|
@@ -19,7 +19,8 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
24
25
|
|
|
25
26
|
const { firstLetterUpperCase: upperCase } = utils;
|
|
@@ -20,28 +20,36 @@ import { fileURLToPath } from 'url';
|
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
22
|
import { NoRetryError } from '@izara_project/izara-core-library-core';
|
|
23
|
-
import { consts, utils } from '../../../../../MainLibs/index.js';
|
|
24
23
|
import { getObjectSchema } from '@izara_project/izara-core-library-service-schemas';
|
|
25
24
|
|
|
25
|
+
import consts from '../../../../libs/Consts.js';
|
|
26
|
+
import utils from '../../../../libs/Utils.js';
|
|
27
|
+
import libs from '../../../../libs/Libs.js';
|
|
28
|
+
|
|
26
29
|
const {
|
|
27
30
|
SOURCE_PATH,
|
|
28
31
|
SAVE_FILE_NAME,
|
|
29
32
|
HANDLER,
|
|
30
|
-
awaitingMultipleStepsRole,
|
|
31
|
-
resourceNames,
|
|
32
|
-
defaultIamRolePerAction,
|
|
33
|
-
createIamRole,
|
|
34
33
|
RESOURCE_CLASSES,
|
|
35
34
|
SQS_RESOURCE,
|
|
36
35
|
DYNAMO_RESOURCE,
|
|
37
|
-
shortNameHandler,
|
|
38
36
|
STORAGE_TYPES
|
|
39
37
|
} = consts;
|
|
38
|
+
|
|
40
39
|
const {
|
|
41
40
|
firstLetterLowerCase: lowerCase,
|
|
42
41
|
firstLetterUpperCase: upperCase,
|
|
43
42
|
getLocalConfig
|
|
44
43
|
} = utils;
|
|
44
|
+
|
|
45
|
+
const {
|
|
46
|
+
shortNameHandler,
|
|
47
|
+
awaitingMultipleStepsRole,
|
|
48
|
+
resourceNames,
|
|
49
|
+
defaultIamRolePerAction,
|
|
50
|
+
createIamRole,
|
|
51
|
+
} = libs;
|
|
52
|
+
|
|
45
53
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
46
54
|
|
|
47
55
|
/**
|
|
@@ -19,15 +19,14 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
|
|
23
25
|
const {
|
|
24
26
|
SOURCE_PATH,
|
|
25
27
|
HANDLER,
|
|
26
|
-
awaitingMultipleStepsRole,
|
|
27
|
-
defaultIamRolePerAction
|
|
28
28
|
} = consts;
|
|
29
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
30
|
-
utils;
|
|
29
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
31
30
|
|
|
32
31
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
33
32
|
|
|
@@ -45,10 +44,8 @@ async function data(_izContext, flowSchema, srcPath) {
|
|
|
45
44
|
async function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
46
45
|
let functionName = 'CompleteStatusField' + upperCase(flowSchema.flowTag);
|
|
47
46
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
48
|
-
let additionalResourcePermission = defaultIamRolePerAction();
|
|
49
47
|
let queueName = functionName + handlerType;
|
|
50
48
|
|
|
51
|
-
additionalResourcePermission.push(awaitingMultipleStepsRole());
|
|
52
49
|
return {
|
|
53
50
|
templatePath: templatePath,
|
|
54
51
|
templateData: {
|
|
@@ -19,10 +19,11 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
|
|
23
25
|
const { SOURCE_PATH } = consts;
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
25
|
-
utils;
|
|
26
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
26
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -19,10 +19,10 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
const { SOURCE_PATH, SAVE_FILE_NAME } = consts;
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
25
|
-
utils;
|
|
25
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
26
26
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
27
27
|
/**
|
|
28
28
|
* receive objectSchema
|
|
@@ -21,25 +21,29 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
22
|
import { NoRetryError } from '@izara_project/izara-core-library-core';
|
|
23
23
|
import { getObjectSchema } from '@izara_project/izara-core-library-service-schemas';
|
|
24
|
-
import
|
|
24
|
+
import consts from '../../../../../libs/Consts.js';
|
|
25
|
+
import utils from '../../../../../libs/Utils.js';
|
|
26
|
+
import libs from '../../../../../libs/Libs.js';
|
|
25
27
|
|
|
26
28
|
const {
|
|
27
29
|
SOURCE_PATH,
|
|
28
30
|
SAVE_FILE_NAME,
|
|
29
31
|
HANDLER,
|
|
30
|
-
awaitingMultipleStepsRole,
|
|
31
|
-
resourceNames,
|
|
32
|
-
defaultIamRolePerAction,
|
|
33
|
-
createIamRole,
|
|
34
32
|
RESOURCE_CLASSES,
|
|
35
33
|
SQS_RESOURCE,
|
|
36
34
|
DYNAMO_RESOURCE,
|
|
37
|
-
shortNameHandler,
|
|
38
35
|
STORAGE_TYPES
|
|
39
36
|
} = consts;
|
|
40
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
41
|
-
utils;
|
|
42
37
|
|
|
38
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
39
|
+
|
|
40
|
+
const {
|
|
41
|
+
awaitingMultipleStepsRole,
|
|
42
|
+
resourceNames,
|
|
43
|
+
defaultIamRolePerAction,
|
|
44
|
+
createIamRole,
|
|
45
|
+
shortNameHandler,
|
|
46
|
+
} = libs;
|
|
43
47
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
44
48
|
|
|
45
49
|
/**
|
package/src/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js
CHANGED
|
@@ -19,11 +19,11 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
25
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
26
|
-
utils;
|
|
26
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
27
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -19,10 +19,10 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
25
|
-
utils;
|
|
25
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
26
26
|
|
|
27
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
28
28
|
|
package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js
CHANGED
|
@@ -25,27 +25,33 @@ import {
|
|
|
25
25
|
utils as coreUtils
|
|
26
26
|
} from '@izara_project/izara-core-library-service-schemas';
|
|
27
27
|
const { createFlowTypeConcat } = coreUtils;
|
|
28
|
-
import
|
|
28
|
+
import consts from '../../../../../libs/Consts.js';
|
|
29
|
+
import utils from '../../../../../libs/Utils.js';
|
|
30
|
+
import libs from '../../../../../libs/Libs.js';
|
|
29
31
|
|
|
30
32
|
const {
|
|
31
33
|
SOURCE_PATH,
|
|
32
34
|
SAVE_FILE_NAME,
|
|
33
35
|
HANDLER,
|
|
34
|
-
awaitingMultipleStepsRole,
|
|
35
|
-
resourceNames,
|
|
36
|
-
defaultIamRolePerAction,
|
|
37
|
-
createIamRole,
|
|
38
36
|
RESOURCE_CLASSES,
|
|
39
37
|
SQS_RESOURCE,
|
|
40
38
|
DYNAMO_RESOURCE,
|
|
41
|
-
shortNameHandler,
|
|
42
39
|
STORAGE_TYPES
|
|
43
40
|
} = consts;
|
|
41
|
+
|
|
44
42
|
const {
|
|
45
43
|
firstLetterLowerCase: lowerCase,
|
|
46
44
|
firstLetterUpperCase: upperCase,
|
|
47
45
|
getLocalConfig
|
|
48
46
|
} = utils;
|
|
47
|
+
|
|
48
|
+
const {
|
|
49
|
+
awaitingMultipleStepsRole,
|
|
50
|
+
resourceNames,
|
|
51
|
+
defaultIamRolePerAction,
|
|
52
|
+
createIamRole,
|
|
53
|
+
shortNameHandler,
|
|
54
|
+
} = libs;
|
|
49
55
|
const templatePath = path.join(__dirname, './template.ejs');
|
|
50
56
|
|
|
51
57
|
/**
|
package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js
CHANGED
|
@@ -23,7 +23,8 @@ const __dirname = path.dirname(__filename);
|
|
|
23
23
|
import { utils as coreUtils } from '@izara_project/izara-core-library-service-schemas';
|
|
24
24
|
const { createFlowTypeConcat } = coreUtils;
|
|
25
25
|
|
|
26
|
-
import
|
|
26
|
+
import consts from '../../../../../libs/Consts.js';
|
|
27
|
+
import utils from '../../../../../libs/Utils.js';
|
|
27
28
|
|
|
28
29
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
29
30
|
const {
|
package/src/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js
CHANGED
|
@@ -22,7 +22,8 @@ const __dirname = path.dirname(__filename);
|
|
|
22
22
|
import { utils as coreUtils } from '@izara_project/izara-core-library-service-schemas';
|
|
23
23
|
const { createFlowTypeConcat } = coreUtils;
|
|
24
24
|
|
|
25
|
-
import
|
|
25
|
+
import consts from '../../../../../libs/Consts.js';
|
|
26
|
+
import utils from '../../../../../libs/Utils.js';
|
|
26
27
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
27
28
|
const {
|
|
28
29
|
firstLetterLowerCase: lowerCase,
|
package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js
CHANGED
|
@@ -21,24 +21,27 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
22
|
import { NoRetryError } from '@izara_project/izara-core-library-core';
|
|
23
23
|
import { getObjectSchema } from '@izara_project/izara-core-library-service-schemas';
|
|
24
|
-
import
|
|
24
|
+
import consts from '../../../../../libs/Consts.js';
|
|
25
|
+
import utils from '../../../../../libs/Utils.js';
|
|
26
|
+
import libs from '../../../../../libs/Libs.js';
|
|
25
27
|
|
|
26
28
|
const {
|
|
27
29
|
SOURCE_PATH,
|
|
28
30
|
SAVE_FILE_NAME,
|
|
29
31
|
HANDLER,
|
|
30
|
-
awaitingMultipleStepsRole,
|
|
31
|
-
resourceNames,
|
|
32
|
-
defaultIamRolePerAction,
|
|
33
|
-
createIamRole,
|
|
34
32
|
RESOURCE_CLASSES,
|
|
35
33
|
SQS_RESOURCE,
|
|
36
34
|
DYNAMO_RESOURCE,
|
|
37
|
-
shortNameHandler,
|
|
38
35
|
STORAGE_TYPES
|
|
39
36
|
} = consts;
|
|
40
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
41
|
-
|
|
37
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
38
|
+
const {
|
|
39
|
+
awaitingMultipleStepsRole,
|
|
40
|
+
resourceNames,
|
|
41
|
+
defaultIamRolePerAction,
|
|
42
|
+
createIamRole,
|
|
43
|
+
shortNameHandler
|
|
44
|
+
} = libs;
|
|
42
45
|
const templatePath = path.join(__dirname, './template.ejs');
|
|
43
46
|
|
|
44
47
|
/**
|
package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js
CHANGED
|
@@ -19,7 +19,8 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
24
25
|
const {
|
|
25
26
|
firstLetterLowerCase: lowerCase,
|
package/src/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js
CHANGED
|
@@ -19,11 +19,11 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
25
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
26
|
-
utils;
|
|
26
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
27
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -21,7 +21,8 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
22
|
import { utils as coreUtils } from '@izara_project/izara-core-library-service-schemas';
|
|
23
23
|
const { createFlowTypeConcat } = coreUtils;
|
|
24
|
-
import
|
|
24
|
+
import consts from '../../../../libs/Consts.js';
|
|
25
|
+
import utils from '../../../../libs/Utils.js';
|
|
25
26
|
|
|
26
27
|
const { SOURCE_PATH, HANDLER, SAVE_FILE_NAME } = consts;
|
|
27
28
|
|
|
@@ -61,18 +62,10 @@ function createDataForDefaultSnsInSqs(_izContext, flowSchema, srcPath) {
|
|
|
61
62
|
queueName: `${createFlowTypeConcat(_izContext, { serviceTag: serviceTag, flowTag: upperCase(flowTag) })}_Main`
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
|
-
queueName:
|
|
65
|
-
'CheckTriggerCache' +
|
|
66
|
-
upperCase(flowTag) +
|
|
67
|
-
'Complete' +
|
|
68
|
-
upperCase(HANDLER.hdrSqs)
|
|
65
|
+
queueName: 'CheckTriggerCache' + upperCase(flowTag) + 'Complete' + upperCase(HANDLER.hdrSqs)
|
|
69
66
|
},
|
|
70
67
|
{
|
|
71
|
-
queueName:
|
|
72
|
-
'TriggerCache' +
|
|
73
|
-
upperCase(flowTag) +
|
|
74
|
-
'Complete' +
|
|
75
|
-
upperCase(HANDLER.hdrSqs)
|
|
68
|
+
queueName: 'TriggerCache' + upperCase(flowTag) + 'Complete' + upperCase(HANDLER.hdrSqs)
|
|
76
69
|
}
|
|
77
70
|
];
|
|
78
71
|
|
|
@@ -19,23 +19,26 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
import libs from '../../../../libs/Libs.js';
|
|
23
25
|
|
|
24
26
|
const {
|
|
25
27
|
HANDLER,
|
|
26
28
|
SOURCE_PATH,
|
|
27
|
-
defaultIamRolePerAction,
|
|
28
|
-
createIamRole,
|
|
29
29
|
RESOURCE_CLASSES,
|
|
30
30
|
SNS_RESOURCE,
|
|
31
|
-
resourceNames,
|
|
32
31
|
DYNAMO_RESOURCE,
|
|
33
32
|
SAVE_FILE_NAME,
|
|
34
|
-
shortNameHandler,
|
|
35
33
|
SQS_RESOURCE
|
|
36
34
|
} = consts;
|
|
37
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
38
|
-
|
|
35
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
36
|
+
const {
|
|
37
|
+
defaultIamRolePerAction,
|
|
38
|
+
createIamRole,
|
|
39
|
+
resourceNames,
|
|
40
|
+
shortNameHandler
|
|
41
|
+
} = libs;
|
|
39
42
|
|
|
40
43
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
41
44
|
|
|
@@ -93,7 +96,7 @@ function createSourceParams(_izContext, allLocalFlowSchemas, srcPath) {
|
|
|
93
96
|
);
|
|
94
97
|
|
|
95
98
|
for (const flowSchema of allLocalFlowSchemas.records) {
|
|
96
|
-
console.log('flowSchema', flowSchema);
|
|
99
|
+
// console.log('flowSchema', flowSchema);
|
|
97
100
|
if (
|
|
98
101
|
flowSchema.event.includes('ownTopic') ||
|
|
99
102
|
flowSchema.event.includes('extTopic')
|
|
@@ -19,7 +19,8 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { SOURCE_PATH, HANDLER } = consts;
|
|
25
26
|
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
@@ -19,7 +19,7 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
23
|
|
|
24
24
|
const { SOURCE_PATH } = consts;
|
|
25
25
|
|
|
@@ -19,12 +19,12 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { SOURCE_PATH, HANDLER, SAVE_FILE_NAME } = consts;
|
|
25
26
|
|
|
26
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
27
|
-
utils;
|
|
27
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
28
28
|
|
|
29
29
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
30
30
|
const templateSub = path.join(__dirname, './templateSub.ejs');
|
|
@@ -16,7 +16,7 @@ import path from 'path';
|
|
|
16
16
|
import { fileURLToPath } from 'url';
|
|
17
17
|
const __filename = fileURLToPath(import.meta.url);
|
|
18
18
|
const __dirname = path.dirname(__filename);
|
|
19
|
-
import consts from '
|
|
19
|
+
import consts from '../../libs/Consts.js';
|
|
20
20
|
const { SOURCE_PATH, SAVE_FILE_NAME } = consts;
|
|
21
21
|
|
|
22
22
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
@@ -40,6 +40,11 @@ function generateRole(_izContext, createSourceParams, srcPath) {
|
|
|
40
40
|
reformCreateSourceParams[roleName].resourcePermissions;
|
|
41
41
|
|
|
42
42
|
for (const newPerm of additionalResourcePermission) {
|
|
43
|
+
if (Array.isArray(newPerm)) {
|
|
44
|
+
console.log({
|
|
45
|
+
error: JSON.stringify(newPerm, null, 2)
|
|
46
|
+
})
|
|
47
|
+
}
|
|
43
48
|
const normalizedActions = Object.entries(newPerm.action)
|
|
44
49
|
.flatMap(([service, actions]) =>
|
|
45
50
|
actions.map(action => `${service}:${action}`)
|
|
@@ -53,7 +58,7 @@ function generateRole(_izContext, createSourceParams, srcPath) {
|
|
|
53
58
|
permission =>
|
|
54
59
|
permission.effect === effect &&
|
|
55
60
|
JSON.stringify([...permission.action].sort()) ===
|
|
56
|
-
|
|
61
|
+
JSON.stringify(normalizedActions)
|
|
57
62
|
);
|
|
58
63
|
|
|
59
64
|
if (existing) {
|
|
@@ -19,12 +19,12 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { HANDLER, SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
25
26
|
|
|
26
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
27
|
-
utils;
|
|
27
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
28
28
|
|
|
29
29
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
30
30
|
|
|
@@ -19,9 +19,9 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
25
25
|
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
26
26
|
|
|
27
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
@@ -22,8 +22,8 @@ import snsSharedLib from '@izara_project/izara-core-library-sns';
|
|
|
22
22
|
import { sns } from '@izara_project/izara-core-library-external-request';
|
|
23
23
|
import _ from 'lodash';
|
|
24
24
|
import { objectHash as hash } from '@izara_project/izara-shared-core';
|
|
25
|
-
import {
|
|
26
|
-
const { TOPIC_NAME_GENERATE_CODE, } =
|
|
25
|
+
import { consts as generateCodeConsts } from '@izara_project/izara-code-generate-code-service';
|
|
26
|
+
const { TOPIC_NAME_GENERATE_CODE, } = generateCodeConsts;
|
|
27
27
|
const PREFIX = {
|
|
28
28
|
CREATE_OBJECT_ASYNC: "createObjectAsync",
|
|
29
29
|
CREATE_OBJECT_ASYNC_COMPLETE: "createObjectAsyncComplete"
|
|
@@ -19,9 +19,9 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
25
25
|
const { SOURCE_PATH, FUNCTION_NAME, SAVE_FILE_NAME } = consts;
|
|
26
26
|
|
|
27
27
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
@@ -19,10 +19,10 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
25
|
-
utils;
|
|
25
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
26
26
|
|
|
27
27
|
const { SOURCE_PATH, SAVE_FILE_NAME, FUNCTION_NAME } = consts;
|
|
28
28
|
|
|
@@ -19,26 +19,30 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
import libs from '../../../../libs/Libs.js'
|
|
23
25
|
|
|
24
26
|
const {
|
|
25
27
|
HANDLER,
|
|
26
|
-
createIamRole,
|
|
27
|
-
resourceNames,
|
|
28
28
|
RESOURCE_CLASSES,
|
|
29
29
|
SOURCE_PATH,
|
|
30
30
|
FUNCTION_NAME,
|
|
31
31
|
SAVE_FILE_NAME,
|
|
32
|
-
defaultIamRolePerAction,
|
|
33
32
|
SQS_RESOURCE,
|
|
34
33
|
SNS_RESOURCE,
|
|
35
|
-
awaitingMultipleStepsRole,
|
|
36
34
|
SHORT_FUNCTION_NAME,
|
|
37
35
|
SOURCE_GENERATE_IAM_ROLE
|
|
38
36
|
} = consts;
|
|
39
37
|
|
|
40
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
41
|
-
|
|
38
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
39
|
+
|
|
40
|
+
const {
|
|
41
|
+
awaitingMultipleStepsRole,
|
|
42
|
+
defaultIamRolePerAction,
|
|
43
|
+
createIamRole,
|
|
44
|
+
resourceNames,
|
|
45
|
+
} = libs;
|
|
42
46
|
|
|
43
47
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
44
48
|
|
|
@@ -19,12 +19,12 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
23
24
|
|
|
24
25
|
const { HANDLER, SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
25
26
|
|
|
26
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
27
|
-
utils;
|
|
27
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
28
28
|
|
|
29
29
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
30
30
|
|
|
@@ -19,9 +19,10 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
|
|
25
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
25
26
|
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
26
27
|
|
|
27
28
|
const templatePath = path.join(__dirname, 'template.ejs');
|
|
@@ -20,11 +20,10 @@ import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow
|
|
|
20
20
|
import snsSharedLib from '@izara_project/izara-core-library-sns';
|
|
21
21
|
|
|
22
22
|
import { sns } from "@izara_project/izara-core-library-external-request";
|
|
23
|
-
import {
|
|
24
|
-
constsGenerateCodeLibs,
|
|
25
|
-
} from '@izara_project/izara-market-library-service-schemas'
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
import { consts as generateCodeConsts } from '@izara_project/izara-code-generate-code-service';
|
|
25
|
+
const { TOPIC_NAME_GENERATE_CODE, } = generateCodeConsts;
|
|
26
|
+
|
|
28
27
|
//(<optionalRequire>)
|
|
29
28
|
//(</optionalRequire>)
|
|
30
29
|
|
|
@@ -19,9 +19,10 @@ import path from 'path';
|
|
|
19
19
|
import { fileURLToPath } from 'url';
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import consts from '../../../../libs/Consts.js';
|
|
23
|
+
import utils from '../../../../libs/Utils.js';
|
|
24
|
+
|
|
25
|
+
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = utils;
|
|
25
26
|
const { SOURCE_PATH, FUNCTION_NAME, SAVE_FILE_NAME } = consts;
|
|
26
27
|
|
|
27
28
|
const templatePath = path.join(__dirname, 'template.ejs');
|