@izara_project/izara-market-library-service-schemas 1.0.85 → 1.0.87
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 +8 -36
- package/package.json +10 -15
- package/src/{GenerateCodeLibs/src/GenerateCodeLibs.js → Libs/Libs.js} +76 -25
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeManager/data.js +139 -0
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeManager/template.ejs +18 -0
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeRelationship/data.js +160 -0
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeRelationship/template.ejs +7 -0
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeStandard/data.js +103 -0
- package/src/TemplateData/AttributeTreeSchema/AttributeTreeStandard/template.ejs +20 -0
- package/src/TemplateData/AttributeTreeSchema/generateTemplateData.js +105 -0
- package/src/{reStructure → TemplateData}/GenerateSchema.js +38 -52
- package/src/TemplateData/PropertyValueSchema/PropertyValueObjectSchema/data.js +160 -0
- package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/data.js +43 -49
- package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/tempRelationship.ejs +1 -1
- package/src/{reStructure/TemplateData/propertyValueSchema → TemplateData/PropertyValueSchema}/generateTemplateData.js +3 -4
- package/src/GenerateCodeLibs/index.js +0 -22
- package/src/GenerateCodeLibs/src/Consts.js +0 -135
- package/src/MainLibs/index.js +0 -22
- package/src/MainLibs/src/Consts.js +0 -1114
- package/src/MainLibs/src/GenerateCodeUtils.js +0 -72
- package/src/MainLibs/src/Utils.js +0 -72
- package/src/SourceManager/index.js +0 -21
- package/src/SourceManager/src/CreateSource.js +0 -229
- package/src/SourceManager/src/Utils.js +0 -110
- package/src/reStructure/GenerateCode.js +0 -184
- package/src/reStructure/GenerateResources.js +0 -121
- package/src/reStructure/GenerateTests.js +0 -138
- package/src/reStructure/IntTestConfig.js +0 -23
- package/src/reStructure/SchemaConfig.js +0 -23
- package/src/reStructure/TemplateConfig.js +0 -58
- package/src/reStructure/TemplateData/Auth/generateAuthYml/data.js +0 -47
- package/src/reStructure/TemplateData/Auth/generateAuthYml/template.ejs +0 -16
- package/src/reStructure/TemplateData/Auth/generateTemplateData.js +0 -48
- package/src/reStructure/TemplateData/EndpointPerService/generateTemplateData.js +0 -127
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/data.js +0 -72
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/request.json +0 -7
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/template.ejs +0 -73
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/data.js +0 -76
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/request.json +0 -7
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/template.ejs +0 -129
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/data.js +0 -79
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/request.json +0 -7
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/template.ejs +0 -73
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/data.js +0 -85
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/request.json +0 -7
- package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/template.ejs +0 -131
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +0 -358
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/data.js +0 -51
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +0 -627
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/data.js +0 -50
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +0 -163
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/data.js +0 -50
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +0 -273
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/data.js +0 -50
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +0 -446
- package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +0 -307
- package/src/reStructure/TemplateData/EndpointPerService/yaml/template.ejs +0 -35
- package/src/reStructure/TemplateData/IntTest/generateResources/generateResources.js +0 -112
- package/src/reStructure/TemplateData/IntTest/generateResources/templateResources.ejs +0 -33
- package/src/reStructure/TemplateData/IntTest/generateTests/events/data.js +0 -135
- package/src/reStructure/TemplateData/IntTest/generateTests/events/templateEvents.ejs +0 -11
- package/src/reStructure/TemplateData/IntTest/generateTests/generateTemplate.js +0 -67
- package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/data.js +0 -56
- package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/template.ejs +0 -5
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/data.js +0 -211
- package/src/reStructure/TemplateData/IntTest/generateTests/tests/templateTests.ejs +0 -3
- package/src/reStructure/TemplateData/IntTest/libs/libs.js +0 -416
- package/src/reStructure/TemplateData/IntTest/upload/uploadIntTest.js +0 -95
- package/src/reStructure/TemplateData/externalService/functionNameConfig/data.js +0 -176
- package/src/reStructure/TemplateData/externalService/functionNameConfig/template.ejs +0 -14
- package/src/reStructure/TemplateData/externalService/functionNameConfig/templateIntTesting.ejs +0 -31
- package/src/reStructure/TemplateData/externalService/functionNameConfig/templateYaml.ejs +0 -10
- package/src/reStructure/TemplateData/externalService/generateTemplateData.js +0 -79
- package/src/reStructure/TemplateData/externalService/lambdaRole/data.js +0 -445
- package/src/reStructure/TemplateData/externalService/lambdaRole/request.json +0 -18
- package/src/reStructure/TemplateData/externalService/lambdaRole/template.ejs +0 -59
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/data.js +0 -274
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/request.json +0 -12
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/template.ejs +0 -35
- package/src/reStructure/TemplateData/findData/GetByStorage/getByDynamo.ejs +0 -54
- package/src/reStructure/TemplateData/findData/GetByStorage/getByGraph.ejs +0 -81
- package/src/reStructure/TemplateData/findData/findDataYaml/data.js +0 -184
- package/src/reStructure/TemplateData/findData/findDataYaml/template.ejs +0 -14
- package/src/reStructure/TemplateData/findData/generateTemplateData.js +0 -69
- package/src/reStructure/TemplateData/findData/handler/data.js +0 -51
- package/src/reStructure/TemplateData/findData/handler/template.ejs +0 -136
- package/src/reStructure/TemplateData/findData/mainFunction/data.js +0 -319
- package/src/reStructure/TemplateData/findData/mainFunction/template.ejs +0 -149
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/data.js +0 -129
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/data.js +0 -68
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/template.ejs +0 -84
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/data.js +0 -71
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/template.ejs +0 -118
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/data.js +0 -73
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/template.ejs +0 -49
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +0 -128
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/template.ejs +0 -17
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/template.ejs +0 -123
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +0 -58
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +0 -129
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/data.js +0 -62
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/template.ejs +0 -45
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +0 -116
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js +0 -67
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs +0 -83
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +0 -67
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +0 -131
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +0 -118
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/template.ejs +0 -17
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +0 -65
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/template.ejs +0 -99
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +0 -63
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/template.ejs +0 -81
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/data.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/template.ejs +0 -49
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +0 -138
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/template.ejs +0 -18
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/template.ejs +0 -123
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/template.ejs +0 -262
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/template.ejs +0 -45
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +0 -144
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -14
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/template.ejs +0 -121
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +0 -61
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +0 -172
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/data.js +0 -68
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/template.ejs +0 -53
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +0 -139
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/template.ejs +0 -25
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +0 -52
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/template.ejs +0 -50
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -182
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +0 -51
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +0 -68
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/data.js +0 -77
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/dsqTemplatePath.ejs +0 -32
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/s3Template.ejs +0 -59
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/data.js +0 -60
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/template.ejs +0 -13
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/data.js +0 -53
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/template.ejs +0 -97
- package/src/reStructure/TemplateData/flowSchema/components/upload/relate/sns-out/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +0 -91
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/template.ejs +0 -17
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js +0 -58
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs +0 -72
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ttlDynamoTemplate.ejs +0 -32
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/userUploadRecords.js +0 -61
- package/src/reStructure/TemplateData/flowSchema/dynamoDb/data.js +0 -116
- package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/data.js +0 -167
- package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/data.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/request.json +0 -7
- package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/template.ejs +0 -60
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/data.js +0 -67
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/request.json +0 -5
- package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/template.ejs +0 -59
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +0 -111
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/data.js +0 -93
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/template.ejs +0 -81
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/data.js +0 -68
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/template.ejs +0 -58
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +0 -156
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/data.js +0 -65
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/template.ejs +0 -101
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/data.js +0 -77
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-out/data.js +0 -72
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/data.js +0 -120
- package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/template.ejs +0 -92
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +0 -111
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/data.js +0 -70
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/template.ejs +0 -81
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js +0 -70
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/template.ejs +0 -61
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +0 -145
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/data.js +0 -68
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/template.ejs +0 -87
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +0 -111
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/template.ejs +0 -18
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js +0 -65
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/template.ejs +0 -108
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js +0 -65
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +0 -106
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/data.js +0 -100
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-out/data.js +0 -74
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/data.js +0 -152
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/data.js +0 -102
- package/src/reStructure/TemplateData/flowSchema/flowStep/handler/template.ejs +0 -89
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/data.js +0 -100
- package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/template.ejs +0 -58
- package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/data.js +0 -98
- package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/template.ejs +0 -59
- package/src/reStructure/TemplateData/flowSchema/generateTemplateData.js +0 -808
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/data.js +0 -85
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/template.ejs +0 -28
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/data.js +0 -67
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/template.ejs +0 -86
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/data.js +0 -74
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/template.ejs +0 -13
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/data.js +0 -64
- package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/template.ejs +0 -52
- package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/data.js +0 -113
- package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/template.ejs +0 -22
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/data.js +0 -58
- package/src/reStructure/TemplateData/flowSchema/register/complete/handler/template.ejs +0 -85
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/data.js +0 -62
- package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/template.ejs +0 -176
- package/src/reStructure/TemplateData/flowSchema/register/dynamoDB/register.js +0 -73
- package/src/reStructure/TemplateData/flowSchema/register/sns-in/data.js +0 -58
- package/src/reStructure/TemplateData/flowSchema/register/sns-in/template.ejs +0 -45
- package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/data.js +0 -82
- package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/template.ejs +0 -13
- package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/data.js +0 -107
- package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/template.ejs +0 -19
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/data.js +0 -65
- package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/template.ejs +0 -83
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/data.js +0 -56
- package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/template.ejs +0 -165
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/data.js +0 -143
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/template.ejs +0 -22
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/data.js +0 -73
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/template.ejs +0 -86
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/data.js +0 -62
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/template.ejs +0 -80
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/data.js +0 -63
- package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/template.ejs +0 -59
- package/src/reStructure/TemplateData/flowSchema/templateByStatusType/statusFieldTemplate.ejs +0 -30
- package/src/reStructure/TemplateData/flowSchema/templateByStatusType/storedCacheTemplate.ejs +0 -26
- package/src/reStructure/TemplateData/flowSchema/templateByStatusType/triggerCacheTemplate.ejs +0 -44
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +0 -135
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/template.ejs +0 -22
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +0 -70
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/template.ejs +0 -89
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +0 -72
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/template.ejs +0 -85
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +0 -139
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/template.ejs +0 -22
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +0 -73
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/template.ejs +0 -89
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/template.ejs +0 -58
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js +0 -131
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/template.ejs +0 -88
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +0 -69
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/template.ejs +0 -74
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/data.js +0 -90
- package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/template.ejs +0 -49
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/data.js +0 -137
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/data.js +0 -61
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/template.ejs +0 -85
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +0 -55
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/template.ejs +0 -134
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/data.js +0 -100
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/template.ejs +0 -43
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/templateSub.ejs +0 -7
- package/src/reStructure/TemplateData/generateRole/createSharedResource.js +0 -469
- package/src/reStructure/TemplateData/generateRole/data.js +0 -92
- package/src/reStructure/TemplateData/generateRole/sharedResourceTemplate.ejs +0 -32
- package/src/reStructure/TemplateData/generateRole/template.ejs +0 -33
- package/src/reStructure/TemplateData/perActionComplete/create/handler/data.js +0 -61
- package/src/reStructure/TemplateData/perActionComplete/create/handler/template.ejs +0 -126
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/createObjectComplete_main.js +0 -196
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/data.js +0 -53
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +0 -187
- package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/data.js +0 -62
- package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/perActionComplete/create/sns-out/data.js +0 -67
- package/src/reStructure/TemplateData/perActionComplete/create/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/perActionComplete/create/yaml/data.js +0 -106
- package/src/reStructure/TemplateData/perActionComplete/create/yaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/data.js +0 -61
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/template.ejs +0 -125
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/data.js +0 -53
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +0 -88
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/data.js +0 -62
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/perActionComplete/delete/sns-out/data.js +0 -67
- package/src/reStructure/TemplateData/perActionComplete/delete/yaml/data.js +0 -104
- package/src/reStructure/TemplateData/perActionComplete/delete/yaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/perActionComplete/generateTemplateData.js +0 -162
- package/src/reStructure/TemplateData/perActionComplete/get/handler/data.js +0 -61
- package/src/reStructure/TemplateData/perActionComplete/get/handler/template.ejs +0 -125
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/data.js +0 -54
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +0 -131
- package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/data.js +0 -62
- package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/perActionComplete/get/sns-out/data.js +0 -67
- package/src/reStructure/TemplateData/perActionComplete/get/yaml/data.js +0 -106
- package/src/reStructure/TemplateData/perActionComplete/get/yaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/perActionComplete/update/handler/data.js +0 -61
- package/src/reStructure/TemplateData/perActionComplete/update/handler/template.ejs +0 -125
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/data.js +0 -53
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +0 -133
- package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/data.js +0 -62
- package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/perActionComplete/update/sns-out/data.js +0 -66
- package/src/reStructure/TemplateData/perActionComplete/update/yaml/data.js +0 -107
- package/src/reStructure/TemplateData/perActionComplete/update/yaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/perActionEndpoint/generateTemplateData.js +0 -112
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/data.js +0 -109
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/request.json +0 -7
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/template.ejs +0 -36
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/data.js +0 -118
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/request.json +0 -7
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/template.ejs +0 -55
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/data.js +0 -112
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/request.json +0 -7
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/template.ejs +0 -37
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/data.js +0 -116
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/request.json +0 -7
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/template.ejs +0 -57
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/data.js +0 -94
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +0 -61
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/data.js +0 -54
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/template.ejs +0 -55
- package/src/reStructure/TemplateData/perActionEndpoint/libs/data.js +0 -60
- package/src/reStructure/TemplateData/perActionEndpoint/libs/template.ejs +0 -46
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/data.js +0 -91
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/request.json +0 -0
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +0 -339
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/data.js +0 -91
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +0 -99
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/data.js +0 -92
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/request.json +0 -5
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/template.ejs +0 -116
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/testParam.json +0 -5
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/data.js +0 -85
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/request.json +0 -0
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/template.ejs +0 -166
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/data.js +0 -229
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/request.json +0 -14
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/data.js +0 -234
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/request.json +0 -19
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/data.js +0 -207
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/example req.js +0 -15
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/request.json +0 -14
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/data.js +0 -237
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/request.json +0 -19
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/data.js +0 -204
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/request.json +0 -19
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/template.ejs +0 -29
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/data.js +0 -58
- package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/template.ejs +0 -10
- package/src/reStructure/TemplateData/processLogical/generateTemplateData.js +0 -60
- package/src/reStructure/TemplateData/processLogical/handler/data.js +0 -50
- package/src/reStructure/TemplateData/processLogical/handler/template.ejs +0 -127
- package/src/reStructure/TemplateData/processLogical/mainFunction/data.js +0 -49
- package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +0 -424
- package/src/reStructure/TemplateData/processLogical/yaml/data.js +0 -172
- package/src/reStructure/TemplateData/processLogical/yaml/template.ejs +0 -12
- package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/data.js +0 -50
- package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/template.ejs +0 -32
- package/src/reStructure/TemplateData/processLogicalPagination/generateTemplateData.js +0 -68
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/data.js +0 -49
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/template.ejs +0 -160
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/data.js +0 -48
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/template.ejs +0 -143
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/data.js +0 -48
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/template.ejs +0 -210
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/data.js +0 -162
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/template.ejs +0 -12
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/data.js +0 -171
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/template.ejs +0 -13
- package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/data.js +0 -181
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/data.js +0 -146
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/data.js +0 -161
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/data.js +0 -146
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/data.js +0 -146
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/data.js +0 -147
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/template.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/data.js +0 -72
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/template.ejs +0 -202
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/template.ejs +0 -144
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/template.ejs +0 -77
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -153
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -197
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -141
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -181
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/data.js +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/template.ejs +0 -377
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/data.js +0 -73
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/data.js +0 -116
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/template.ejs +0 -126
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/data.js +0 -55
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/template.ejs +0 -150
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/template.ejs +0 -46
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +0 -175
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/data.js +0 -201
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +0 -176
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +0 -175
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +0 -177
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +0 -57
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/data.js +0 -71
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/template.ejs +0 -184
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/template.ejs +0 -126
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +0 -75
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/apiTemplate.ejs +0 -137
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -179
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/invTemplate.ejs +0 -123
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/data.js +0 -57
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +0 -443
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/data.js +0 -74
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/data.js +0 -117
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +0 -126
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/data.js +0 -55
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +0 -151
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/template.ejs +0 -46
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +0 -178
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/data.js +0 -201
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +0 -176
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +0 -178
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +0 -176
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +0 -139
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/data.js +0 -72
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +0 -182
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +0 -124
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +0 -162
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -139
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -182
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/invTemplate.ejs +0 -124
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -162
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/data.js +0 -61
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +0 -365
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/data.js +0 -74
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/data.js +0 -115
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +0 -126
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/data.js +0 -55
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +0 -143
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/relationshipPerAction/generateTemplateData.js +0 -547
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +0 -168
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/data.js +0 -202
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +0 -177
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +0 -167
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +0 -166
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/template.ejs +0 -138
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/data.js +0 -72
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/template.ejs +0 -185
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/template.ejs +0 -127
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/template.ejs +0 -165
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/apiTemplate.ejs +0 -137
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -178
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/invTemplate.ejs +0 -122
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +0 -58
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +0 -317
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +0 -74
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +0 -116
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +0 -61
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +0 -127
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +0 -56
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +0 -143
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/template.ejs +0 -47
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +0 -65
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/data.js +0 -168
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/data.js +0 -71
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -155
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -198
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -143
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -182
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/data.js +0 -57
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/template.ejs +0 -379
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/data.js +0 -73
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/data.js +0 -115
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/template.ejs +0 -126
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/data.js +0 -58
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/template.ejs +0 -155
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/template.ejs +0 -46
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/data.js +0 -64
- package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +0 -167
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/template.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/data.js +0 -191
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +0 -196
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +0 -186
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/template.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +0 -187
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/template.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -18
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/data.js +0 -78
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/request.json +0 -7
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/template.ejs +0 -142
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/data.js +0 -73
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/data.js +0 -79
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/request.json +0 -7
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/template.ejs +0 -188
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/data.js +0 -80
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/request.json +0 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/template.ejs +0 -147
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/data.js +0 -79
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/request.json +0 -7
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/template.ejs +0 -163
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/template.ejs +0 -9
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/apiTemplate.ejs +0 -138
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -180
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/invTemplate.ejs +0 -124
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/request.json +0 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +0 -384
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/data.js +0 -83
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/request.json +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/data.js +0 -68
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/request.json +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/data.js +0 -117
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/request.json +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/template.ejs +0 -21
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/data.js +0 -60
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs +0 -128
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/data.js +0 -55
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/request.json +0 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +0 -145
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/data.js +0 -63
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/request.json +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/template.ejs +0 -46
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/data.js +0 -62
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/request.json +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/template.ejs +0 -10
- package/src/reStructure/TemplateData/resourceYaml/CreateSourceData.js +0 -79
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +0 -145
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +0 -111
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +0 -165
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/template.ejs +0 -29
- package/src/reStructure/TemplateData/resourceYaml/filterGenerateResource/data.js +0 -124
- package/src/reStructure/TemplateData/resourceYaml/generateTemplateData.js +0 -146
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -91
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/request.json +0 -4
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsAndSqsPerActionData.js +0 -84
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/sqsTemplate.ejs +0 -43
- package/src/reStructure/TemplateData/resourceYaml/sns-out/data.js +0 -78
- package/src/reStructure/TemplateData/resourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -64
- package/src/reStructure/TemplateData/resourceYaml/sns-out/request.json +0 -3
- package/src/reStructure/TemplateData/resourceYaml/sns-out/template.ejs +0 -10
- package/src/reStructure/libs/GenerateCodeLibs.js +0 -32
- package/src/reStructure/libs/ValidateAddOnDataStructure.js +0 -72
- package/src/reStructure/test.bash +0 -192
- /package/src/{reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueObjectSchema}/templateObjectPropertyValueSchema.ejs +0 -0
- /package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/templateRelationshipPropertyValueSchema.ejs +0 -0
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2021 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import path from 'path';
|
|
19
|
-
import { fileURLToPath } from 'url';
|
|
20
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
21
|
-
const __dirname = path.dirname(__filename);
|
|
22
|
-
|
|
23
|
-
import { consts, utils } from '../../../../../../../../MainLibs/index.js';
|
|
24
|
-
|
|
25
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
26
|
-
utils;
|
|
27
|
-
const {
|
|
28
|
-
HANDLER,
|
|
29
|
-
defaultIamRolePerAction,
|
|
30
|
-
createIamRole,
|
|
31
|
-
RESOURCE_CLASSES,
|
|
32
|
-
SQS_RESOURCE,
|
|
33
|
-
SNS_RESOURCE,
|
|
34
|
-
resourceNames,
|
|
35
|
-
shortNameHandler,
|
|
36
|
-
SOURCE_PATH,
|
|
37
|
-
SAVE_FILE_NAME,
|
|
38
|
-
DYNAMO_RESOURCE,
|
|
39
|
-
LAMBDA_RESOURCE,
|
|
40
|
-
SOURCE_GENERATE_IAM_ROLE,
|
|
41
|
-
FUNCTION_NAME,
|
|
42
|
-
ACTIONS
|
|
43
|
-
} = consts;
|
|
44
|
-
|
|
45
|
-
const templatePath = path.join(__dirname, 'template.ejs');
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* receive objectSchema
|
|
49
|
-
*
|
|
50
|
-
* @param {Object} flowSchema
|
|
51
|
-
* @return {{ templatePath, templateData, setting } }
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
function data(_izContext, flowSchema, srcPath) {
|
|
55
|
-
return [createSourceParams(_izContext, flowSchema, srcPath)];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
59
|
-
let functionName = upperCase(FUNCTION_NAME.createPresignUrl);
|
|
60
|
-
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
61
|
-
let additionalResourcePermission = defaultIamRolePerAction();
|
|
62
|
-
|
|
63
|
-
additionalResourcePermission.push(
|
|
64
|
-
createIamRole(
|
|
65
|
-
{
|
|
66
|
-
[RESOURCE_CLASSES.sqs]: [
|
|
67
|
-
SQS_RESOURCE.receiveMessage,
|
|
68
|
-
SQS_RESOURCE.sendMessage,
|
|
69
|
-
SQS_RESOURCE.deleteMessage,
|
|
70
|
-
SQS_RESOURCE.getQueueAttributes
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
[
|
|
74
|
-
resourceNames(RESOURCE_CLASSES.sqs, functionName + handlerType),
|
|
75
|
-
resourceNames(RESOURCE_CLASSES.sqs, functionName + 'DLQ')
|
|
76
|
-
]
|
|
77
|
-
),
|
|
78
|
-
createIamRole(
|
|
79
|
-
{
|
|
80
|
-
[RESOURCE_CLASSES.dynamoDbTable]: [
|
|
81
|
-
DYNAMO_RESOURCE.query,
|
|
82
|
-
DYNAMO_RESOURCE.deleteItem,
|
|
83
|
-
DYNAMO_RESOURCE.updateItem,
|
|
84
|
-
DYNAMO_RESOURCE.putItem
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
[
|
|
88
|
-
resourceNames(RESOURCE_CLASSES.dynamoDbTable, 'WebSocketTask'),
|
|
89
|
-
resourceNames(RESOURCE_CLASSES.dynamoDbTable, 'ReservedDataMain')
|
|
90
|
-
]
|
|
91
|
-
),
|
|
92
|
-
createIamRole(
|
|
93
|
-
{
|
|
94
|
-
'execute-api': 'ManageConnections'
|
|
95
|
-
},
|
|
96
|
-
[resourceNames(RESOURCE_CLASSES.webSocket)]
|
|
97
|
-
),
|
|
98
|
-
createIamRole(
|
|
99
|
-
{
|
|
100
|
-
[RESOURCE_CLASSES.lambda]: [LAMBDA_RESOURCE.invokeFunction],
|
|
101
|
-
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish]
|
|
102
|
-
},
|
|
103
|
-
[
|
|
104
|
-
resourceNames(
|
|
105
|
-
RESOURCE_CLASSES.lambda,
|
|
106
|
-
upperCase(ACTIONS.get) + upperCase(HANDLER.hdrInv)
|
|
107
|
-
),
|
|
108
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(ACTIONS.update) + '_In')
|
|
109
|
-
]
|
|
110
|
-
)
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
return {
|
|
114
|
-
templatePath: templatePath,
|
|
115
|
-
templateData: {
|
|
116
|
-
functionName,
|
|
117
|
-
handlerType,
|
|
118
|
-
functionNameConfig: functionName + upperCase(handlerType),
|
|
119
|
-
resourceLocation: path.join(
|
|
120
|
-
SOURCE_PATH.resourceLocationWebSocket,
|
|
121
|
-
flowSchema.flowTag,
|
|
122
|
-
'source/'
|
|
123
|
-
),
|
|
124
|
-
additionalResourcePermission,
|
|
125
|
-
functionNameConfig:
|
|
126
|
-
functionName + upperCase(shortNameHandler(handlerType)),
|
|
127
|
-
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
|
128
|
-
},
|
|
129
|
-
setting: {
|
|
130
|
-
saveFileName: upperCase(SAVE_FILE_NAME.flowSchema),
|
|
131
|
-
savePath: path.join(srcPath, SOURCE_PATH.appYaml),
|
|
132
|
-
fileExtension: '.yml',
|
|
133
|
-
isAppend: true
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export default data;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<%_ const join = require('path').join; _%>
|
|
2
|
-
<%- firstLetterUpperCase(functionNameConfig) %>:
|
|
3
|
-
handler: <%- join(resourceLocation, `${functionName}_${firstLetterUpperCase(handlerType)}.main`)%>
|
|
4
|
-
name: ${self:custom.iz_resourcePrefix}<%- functionName %><%- firstLetterUpperCase(handlerType) %>
|
|
5
|
-
role: <%- roleName %>Role
|
|
6
|
-
#<#<%- functionName %><%- handlerType %>FunctionSetting#>
|
|
7
|
-
#<#/<%- functionName %><%- handlerType %>FunctionSetting#>
|
|
8
|
-
events:
|
|
9
|
-
- sqs:
|
|
10
|
-
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- functionName %><%- firstLetterUpperCase(handlerType) %>
|
|
11
|
-
batchSize: 10
|
|
12
|
-
filterPatterns: #**** need to update serverless framework upper v.2.69.1
|
|
13
|
-
- body: {"MessageAttributes":{"callingFlow":{"Value":["${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>"]}}} # functionName of callingFlow
|
|
14
|
-
- body: {"MessageAttributes":{"callingFlow":{"Value":[{"exists":false}]}}}
|
|
15
|
-
|
|
16
|
-
<%_ function firstLetterUpperCase(text){
|
|
17
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
18
|
-
} _%>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2021 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import path from 'path';
|
|
19
|
-
import { fileURLToPath } from 'url';
|
|
20
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
21
|
-
const __dirname = path.dirname(__filename);
|
|
22
|
-
|
|
23
|
-
import { consts, utils } from '../../../../../../../../MainLibs/index.js';
|
|
24
|
-
|
|
25
|
-
const { HANDLER, SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
26
|
-
|
|
27
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
28
|
-
utils;
|
|
29
|
-
const templatePath = path.join(__dirname, 'template.ejs');
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* receive objectSchema
|
|
33
|
-
*
|
|
34
|
-
* @param {Object} flowSchema
|
|
35
|
-
* @return {{ templatePath, templateData, setting } }
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
function data(_izContext, flowSchema, srcPath) {
|
|
39
|
-
return [createSourceParams(_izContext, flowSchema, srcPath)];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
43
|
-
let functionName = upperCase(FUNCTION_NAME.createPresignUrl);
|
|
44
|
-
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
templatePath: templatePath,
|
|
48
|
-
templateData: {
|
|
49
|
-
functionName,
|
|
50
|
-
handlerType
|
|
51
|
-
},
|
|
52
|
-
setting: {
|
|
53
|
-
saveFileName: `${functionName}_${handlerType}`,
|
|
54
|
-
savePath: path.join(
|
|
55
|
-
srcPath,
|
|
56
|
-
SOURCE_PATH.webSocket,
|
|
57
|
-
flowSchema.flowTag,
|
|
58
|
-
'source/'
|
|
59
|
-
),
|
|
60
|
-
fileExtension: '.js',
|
|
61
|
-
isAppend: true
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export default data;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2021 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import { middlewareHandler as middleware } from "@izara_project/izara-middleware";
|
|
21
|
-
import recordHandlerSharedLib from '@izara_project/izara-core-library-record-handler';
|
|
22
|
-
import Logger from '@izara_project/izara-core-library-logger';
|
|
23
|
-
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
24
|
-
|
|
25
|
-
import createPresignUrl from './CreatePresignUrl_Main.js';
|
|
26
|
-
|
|
27
|
-
// validate event properties in body.Message of sqs event
|
|
28
|
-
middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
|
|
29
|
-
|
|
30
|
-
// set schema for record.body.Message
|
|
31
|
-
let perRecordsValidatorSchema = {
|
|
32
|
-
type: "object",
|
|
33
|
-
required: [
|
|
34
|
-
'returnMessage',
|
|
35
|
-
'errorsFound',
|
|
36
|
-
'passStatus'
|
|
37
|
-
],
|
|
38
|
-
properties: {
|
|
39
|
-
returnMessage: {
|
|
40
|
-
type: "object"
|
|
41
|
-
},
|
|
42
|
-
errorsFound: {
|
|
43
|
-
type: "array"
|
|
44
|
-
},
|
|
45
|
-
passStatus: {
|
|
46
|
-
type: 'boolean'
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// set schema for record.body.MessageAttributes
|
|
52
|
-
// const messageAttributeValidatorSchema = {
|
|
53
|
-
// type: "object",
|
|
54
|
-
// required: ['msgAtrrParam1', 'msgAtrrParam2'],
|
|
55
|
-
// properties: {
|
|
56
|
-
// msgAtrrParam1: {
|
|
57
|
-
// type: "string"
|
|
58
|
-
// },
|
|
59
|
-
// msgAtrrParam2: {
|
|
60
|
-
// type: "object"
|
|
61
|
-
// }
|
|
62
|
-
// }
|
|
63
|
-
// };
|
|
64
|
-
|
|
65
|
-
perRecordsValidatorSchema = callingFlowSharedLib.addOptionalPassBackPropertiesToValidatorSchema(perRecordsValidatorSchema)
|
|
66
|
-
|
|
67
|
-
export const main = middleware.wrap(async (event, context) => {
|
|
68
|
-
|
|
69
|
-
try {
|
|
70
|
-
|
|
71
|
-
let recordPromises = [];
|
|
72
|
-
|
|
73
|
-
// loop each record and send to mainFunction
|
|
74
|
-
await Promise.all(event.Records.map(async record => { // promise.all for map() function
|
|
75
|
-
|
|
76
|
-
let passOnProperties = []
|
|
77
|
-
record._izContext.logger.debug('record ReceiveMsgOutHdrSqs', record);
|
|
78
|
-
|
|
79
|
-
// validate message (and MessageAttributes)
|
|
80
|
-
await recordHandlerSharedLib.validateRecord(
|
|
81
|
-
record, // one record will send to mainFunction
|
|
82
|
-
"CreatePresignUrlHdrSqs", // queue name that need to retry or send to dlq
|
|
83
|
-
perRecordsValidatorSchema, // schema for record.Message
|
|
84
|
-
// messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
// add argument (to invoke lambda) to passOnProperties[]
|
|
88
|
-
passOnProperties.push(record.body.Message.returnMessage)
|
|
89
|
-
passOnProperties.push(record.body.Message.errorsFound)
|
|
90
|
-
passOnProperties.push(record.body.Message.passStatus)
|
|
91
|
-
//(<additionalProperties>)
|
|
92
|
-
//(</additionalProperties>)
|
|
93
|
-
passOnProperties.push(callingFlowSharedLib.addPassBackPropertiesToPassOnProperties(record.body.Message))
|
|
94
|
-
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
|
95
|
-
|
|
96
|
-
// call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
|
|
97
|
-
let recordPromise = recordHandlerSharedLib.recordHandler(
|
|
98
|
-
record, // one record will send to mainFunction
|
|
99
|
-
createPresignUrl, // mainFunction that need to invoke.
|
|
100
|
-
"CreatePresignUrlHdrSqs", // queue name that need to retry or send to dlq
|
|
101
|
-
passOnProperties, // all parameters that mainFunction needed.
|
|
102
|
-
);
|
|
103
|
-
record._izContext.logger.debug('after recordPromise in handler');
|
|
104
|
-
recordPromises.push(recordPromise); // push promise to recordPromises
|
|
105
|
-
}))
|
|
106
|
-
|
|
107
|
-
Logger.debug('before Promise.all(recordPromises) in handler');
|
|
108
|
-
try {
|
|
109
|
-
// --- main await all promises
|
|
110
|
-
await Promise.all(recordPromises); // await all promises
|
|
111
|
-
|
|
112
|
-
return event.Records // return all for local test
|
|
113
|
-
|
|
114
|
-
} catch {
|
|
115
|
-
Logger.debug('Promise.all(recordPromises) in handler threw error (at least one record did no resolve)');
|
|
116
|
-
}
|
|
117
|
-
Logger.debug('after Promise.all(recordPromises) in handler');
|
|
118
|
-
|
|
119
|
-
} catch (err) {
|
|
120
|
-
Logger.error('Unhandled Error, ReservedImageLimitCompleteHdrSqs: ', err);
|
|
121
|
-
throw (err);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2021 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import path from 'path';
|
|
19
|
-
import { fileURLToPath } from 'url';
|
|
20
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
21
|
-
const __dirname = path.dirname(__filename);
|
|
22
|
-
|
|
23
|
-
import { consts, utils } from '../../../../../../../../MainLibs/index.js';
|
|
24
|
-
|
|
25
|
-
const { SOURCE_PATH, FUNCTION_NAME } = consts;
|
|
26
|
-
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } =
|
|
27
|
-
utils;
|
|
28
|
-
|
|
29
|
-
const templatePath = path.join(__dirname, 'template.ejs');
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* receive objectSchema
|
|
33
|
-
*
|
|
34
|
-
* @param {Object} flowSchema
|
|
35
|
-
* @return {{ templatePath, templateData, setting } }
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
function data(_izContext, flowSchema, srcPath) {
|
|
39
|
-
return [createSourceParams(_izContext, flowSchema, srcPath)];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
43
|
-
let functionName = upperCase(FUNCTION_NAME.createPresignUrl);
|
|
44
|
-
let bucketName = flowSchema.bucketName;
|
|
45
|
-
let flowTag = flowSchema.flowTag;
|
|
46
|
-
return {
|
|
47
|
-
templatePath: templatePath,
|
|
48
|
-
templateData: {
|
|
49
|
-
bucketName,
|
|
50
|
-
flowTag
|
|
51
|
-
},
|
|
52
|
-
setting: {
|
|
53
|
-
saveFileName: `${functionName}_Main`,
|
|
54
|
-
savePath: path.join(
|
|
55
|
-
srcPath,
|
|
56
|
-
SOURCE_PATH.webSocket,
|
|
57
|
-
flowSchema.flowTag,
|
|
58
|
-
'source/'
|
|
59
|
-
),
|
|
60
|
-
fileExtension: '.js',
|
|
61
|
-
isAppend: false
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export default data;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (C) 2021 Sven Mason <http://izara.io>
|
|
3
|
-
|
|
4
|
-
This program is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU Affero General Public License as
|
|
6
|
-
published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
License, or (at your option) any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import snsSharedLib from '@izara_project/izara-core-library-sns';
|
|
21
|
-
import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
|
|
22
|
-
import lambdaSharedLib from '@izara_project/izara-core-library-lambda';
|
|
23
|
-
import dynamodbSharedLib from '@izara_project/izara-core-library-dynamodb';
|
|
24
|
-
|
|
25
|
-
import { lambda, sns } from '@izara_project/izara-core-library-external-request'
|
|
26
|
-
|
|
27
|
-
import { S3Client } from ('@aws-sdk/client-s3');
|
|
28
|
-
import { createPresignedPost } from ('@aws-sdk/s3-presigned-post');
|
|
29
|
-
const client = new S3Client({ region: 'us-east-2' });
|
|
30
|
-
import consts from '@izara_project/izara-middleware';
|
|
31
|
-
|
|
32
|
-
import { postToConnection, getNestObject } from '../../../../libs/source/GenerateCodeLibs.js'
|
|
33
|
-
import { consts as coreConsts } from '@izara_project/izara-core-library-core';
|
|
34
|
-
import { constsGenerateCodeLibs } from '@izara_project/izara-market-library-service-schemas';
|
|
35
|
-
const { EXTERNAL_SERVICE_NAME } = constsGenerateCodeLibs
|
|
36
|
-
import { utils } from "@izara_project/izara-core-library-service-schemas"
|
|
37
|
-
const { createFlowTypeConcat } = utils
|
|
38
|
-
//(<optionalRequired>)
|
|
39
|
-
//(</optionalRequired>)
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* description of function.
|
|
43
|
-
* @param {Object} _izContext
|
|
44
|
-
* @param {CorrelationIds} _izContext.correlationIds - property of _izContext
|
|
45
|
-
* @param {Logger} _izContext.logger - property of _izContext
|
|
46
|
-
* @param {Logger} _izContext.logger - property of _izContext
|
|
47
|
-
* @param {Object} returnMessage - limitValue or limitFound
|
|
48
|
-
* @param {Array} errorsFound - array
|
|
49
|
-
* @param {boolean} passStatus - true || false
|
|
50
|
-
* @param {Object} passBackProperties - identifier
|
|
51
|
-
*
|
|
52
|
-
* @returns {object} returnResponse
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
export default async function createPresignUrl (
|
|
56
|
-
_izContext,
|
|
57
|
-
returnMessage,
|
|
58
|
-
errorsFound,
|
|
59
|
-
passStatus,
|
|
60
|
-
//(<additionalProperties>)
|
|
61
|
-
//(</additionalProperties>)
|
|
62
|
-
passBackProperties = {}
|
|
63
|
-
) {
|
|
64
|
-
|
|
65
|
-
try {
|
|
66
|
-
|
|
67
|
-
_izContext.logger.debug('----- createPresignUrl event params -----', {
|
|
68
|
-
returnMessage: returnMessage,
|
|
69
|
-
errorsFound: errorsFound,
|
|
70
|
-
passStatus: passStatus,
|
|
71
|
-
passBackProperties: passBackProperties
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
const servicePendingId = passBackProperties.passBackProperties.identifier.servicePendingId; // importBatchId
|
|
75
|
-
const reservedDataId = passBackProperties.passBackProperties.identifier.reservedDataId;
|
|
76
|
-
const objType = passBackProperties.passBackProperties.objType
|
|
77
|
-
|
|
78
|
-
const correlationId = _izContext.correlationIds.get(consts.X_CORRELATION_ID)
|
|
79
|
-
const connectionId = _izContext.correlationIds.get(consts.CONNECTION_ID)
|
|
80
|
-
|
|
81
|
-
let getResult = await lambda.invokeSync(_izContext,
|
|
82
|
-
await lambdaSharedLib.lambdaFunctionName(_izContext, "GetHdrInv"),
|
|
83
|
-
{
|
|
84
|
-
objectType: objType.objectType,
|
|
85
|
-
//(<identifiersForGetData>)
|
|
86
|
-
//(</identifiersForGetData>)
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
_izContext.logger.debug("getResult", getResult);
|
|
90
|
-
|
|
91
|
-
//(<afterGetResult>)
|
|
92
|
-
//(</afterGetResult>)
|
|
93
|
-
|
|
94
|
-
let uniqueIdentify = getNestObject(
|
|
95
|
-
_izContext,
|
|
96
|
-
returnMessage,
|
|
97
|
-
['limitFound', 'runningTotal', 'uniqueIdentify', 'usedTimestampId']
|
|
98
|
-
);
|
|
99
|
-
_izContext.logger.debug("uniqueIdentify", uniqueIdentify);
|
|
100
|
-
|
|
101
|
-
await dynamodbSharedLib.putItem(_izContext,
|
|
102
|
-
await dynamodbSharedLib.tableName(_izContext, "ReservedDataMain"),
|
|
103
|
-
//(<createReservedDataMain>)
|
|
104
|
-
{}
|
|
105
|
-
//(</createReservedDataMain>)
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
if (passStatus === false) { // if passStatus false post message to client
|
|
109
|
-
// use correlationId to get connectionId and use connectionId to post message to client
|
|
110
|
-
|
|
111
|
-
_izContext.logger.debug("reserved has reach limit");
|
|
112
|
-
|
|
113
|
-
errorsFound.push("reserved has reach limit")
|
|
114
|
-
// update status
|
|
115
|
-
let updateStatusField = {
|
|
116
|
-
objInstanceFull: {
|
|
117
|
-
identifiers: {
|
|
118
|
-
//(<identifiersForUpdateStatus>)
|
|
119
|
-
//(</identifiersForUpdateStatus>)
|
|
120
|
-
},
|
|
121
|
-
fields: {
|
|
122
|
-
//(<fields>)
|
|
123
|
-
//(</fields>)
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
objectType: objType.objectType
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
let sendMessageToUpdateEndpoint = {
|
|
130
|
-
Message: JSON.stringify(updateStatusField),
|
|
131
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, `Update_In`)
|
|
132
|
-
}
|
|
133
|
-
_izContext.logger.debug("sendMessageToUpdateEndpoint", sendMessageToUpdateEndpoint);
|
|
134
|
-
|
|
135
|
-
// cancel reserved
|
|
136
|
-
|
|
137
|
-
let cancelReservedMsg = {
|
|
138
|
-
userId: _izContext.correlationIds.get(coreConsts.BASE_USER_ID),
|
|
139
|
-
limitTag: returnMessage.limitTag,
|
|
140
|
-
uniqueIdentify: uniqueIdentify
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
let sendMessageToCancelReserved = {
|
|
144
|
-
Message: JSON.stringify(cancelReservedMsg),
|
|
145
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, 'CancelUsage_In', EXTERNAL_SERVICE_NAME.accountLimits)
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
_izContext.logger.debug("sendMessageToCancelReserved", sendMessageToCancelReserved);
|
|
149
|
-
await sns.publishAsync(_izContext, sendMessageToCancelReserved);
|
|
150
|
-
|
|
151
|
-
await postToConnection({ message: "reserved has reach limit" }, connectionId)
|
|
152
|
-
|
|
153
|
-
//(<createIdentifiersForDeleteTask>)
|
|
154
|
-
let identifiers
|
|
155
|
-
//(</createIdentifiersForDeleteTask>)
|
|
156
|
-
// after post message delete websocket task
|
|
157
|
-
await dynamodbSharedLib.deleteItem(_izContext,
|
|
158
|
-
await dynamodbSharedLib.tableName(_izContext, "WebSocketTask"),
|
|
159
|
-
{
|
|
160
|
-
taskKey: `${createFlowTypeConcat(_izContext, { flowTag: "<%- flowTag %>", serviceTag: process.env.iz_serviceTag })}${identifiers}`,
|
|
161
|
-
connectionId: connectionId
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
//(<afterCancelReservedLimit>)
|
|
166
|
-
//(</afterCancelReservedLimit>)
|
|
167
|
-
|
|
168
|
-
return "reserved not pass"
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
//(<createKeyForUploadFile>)
|
|
172
|
-
const Key = `${fileName}.${importType}`
|
|
173
|
-
//(</createKeyForUploadFile>)
|
|
174
|
-
|
|
175
|
-
const maximumSize = getResult.fields.fileSize * 1048576 // convert to byte unit for restrict
|
|
176
|
-
_izContext.logger.debug("maximumSize", maximumSize);
|
|
177
|
-
|
|
178
|
-
// create PresignUrl
|
|
179
|
-
let createPresignUrlParam = {
|
|
180
|
-
Bucket: "<%- bucketName %>",
|
|
181
|
-
Key: Key,
|
|
182
|
-
Conditions: [
|
|
183
|
-
//(<conditionCreateUrlLink>)
|
|
184
|
-
["content-length-range", 0, maximumSize],
|
|
185
|
-
["starts-with", "$Content-Type", "file/csv"],
|
|
186
|
-
["eq", "$x-amz-meta-importBatchId", importBatchId]
|
|
187
|
-
//(</conditionCreateUrlLink>)
|
|
188
|
-
],
|
|
189
|
-
Fields: {},
|
|
190
|
-
Expires: 86400
|
|
191
|
-
};
|
|
192
|
-
_izContext.logger.debug('createPresignUrlParam', createPresignUrlParam);
|
|
193
|
-
|
|
194
|
-
const uploadUrl = await createPresignedPost(client, createPresignUrlParam);
|
|
195
|
-
|
|
196
|
-
//(<modifyUploadLinkField>)
|
|
197
|
-
uploadUrl.fields['x-amz-meta-importBatchId'] = importBatchId;
|
|
198
|
-
uploadUrl.fields['Content-Type'] = `file/${importType}`;
|
|
199
|
-
//(</modifyUploadLinkField>)
|
|
200
|
-
|
|
201
|
-
_izContext.logger.debug('uploadUrlLimitSize: ', uploadUrl) // return as object type = {url, fields}
|
|
202
|
-
|
|
203
|
-
// update to waiting to upload
|
|
204
|
-
//(<checkStatusField>)
|
|
205
|
-
if (status === "processing") {
|
|
206
|
-
//(</checkStatusField>)
|
|
207
|
-
let messageObject = {
|
|
208
|
-
objInstanceFull: {
|
|
209
|
-
identifiers: {
|
|
210
|
-
//(<identifiersForUpdateTable>)
|
|
211
|
-
//(</identifiersForUpdateTable>)
|
|
212
|
-
},
|
|
213
|
-
fields: {
|
|
214
|
-
importBatchStatus: "waitingToUpload",
|
|
215
|
-
expiryTimestamp: (getResult.fields.startTime + (createPresignUrlParam.Expires * 1000))
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
objectType: objType.objectType
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
messageObject = callingFlowSharedLib.addCallingFlowToSnsRequestMessageObject(
|
|
222
|
-
messageObject,
|
|
223
|
-
callingFlowSharedLib.addParentCallingFlowConfig(
|
|
224
|
-
returnMessage, // resive parent callingFlowConfig.
|
|
225
|
-
callingFlowSharedLib.createCallingFlowConfig( // calling flow own service
|
|
226
|
-
await lambdaSharedLib.lambdaFunctionName(_izContext, `WebSocketComplete`), {}
|
|
227
|
-
)
|
|
228
|
-
)
|
|
229
|
-
);
|
|
230
|
-
|
|
231
|
-
_izContext.logger.debug("after add callingFlow", messageObject)
|
|
232
|
-
|
|
233
|
-
let sendMessageToUpdateEndpoint = {
|
|
234
|
-
Message: JSON.stringify(messageObject),
|
|
235
|
-
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, "Update_In")
|
|
236
|
-
}
|
|
237
|
-
_izContext.logger.debug("sendMessageToUpdateEndpoint", sendMessageToUpdateEndpoint);
|
|
238
|
-
await sns.publishAsync(_izContext, sendMessageToUpdateEndpoint);
|
|
239
|
-
|
|
240
|
-
//(<createIdentifierFlow>)
|
|
241
|
-
let identifiers
|
|
242
|
-
//(</createIdentifierFlow>)
|
|
243
|
-
await dynamodbSharedLib.updateItem(_izContext,
|
|
244
|
-
await dynamodbSharedLib.tableName(_izContext, "WebSocketTask"),
|
|
245
|
-
{
|
|
246
|
-
taskKey: `${createFlowTypeConcat(_izContext, { flowTag: "<%- flowTag %>", serviceTag: process.env.iz_serviceTag })}${identifiers}`,
|
|
247
|
-
connectionId: connectionId
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
uploadUrl: uploadUrl
|
|
251
|
-
}
|
|
252
|
-
)
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
//(<mainFunctionHookCode>)
|
|
256
|
-
//(</mainFunctionHookCode>)
|
|
257
|
-
|
|
258
|
-
} catch (err) {
|
|
259
|
-
_izContext.logger.error('error createPresignUrl: ', err)
|
|
260
|
-
throw (err)
|
|
261
|
-
}
|
|
262
|
-
}
|