@izara_project/izara-market-library-service-schemas 1.0.84 → 1.0.86

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.
Files changed (701) hide show
  1. package/index.js +8 -37
  2. package/package.json +10 -16
  3. package/src/Libs/Libs.js +711 -0
  4. package/src/TemplateData/AttributeTreeSchema/AttributeTreeManager/data.js +139 -0
  5. package/src/TemplateData/AttributeTreeSchema/AttributeTreeManager/template.ejs +18 -0
  6. package/src/TemplateData/AttributeTreeSchema/AttributeTreeRelationship/data.js +160 -0
  7. package/src/TemplateData/AttributeTreeSchema/AttributeTreeRelationship/template.ejs +7 -0
  8. package/src/TemplateData/AttributeTreeSchema/AttributeTreeStandard/data.js +103 -0
  9. package/src/TemplateData/AttributeTreeSchema/AttributeTreeStandard/template.ejs +20 -0
  10. package/src/TemplateData/AttributeTreeSchema/generateTemplateData.js +105 -0
  11. package/src/{reStructure → TemplateData}/GenerateSchema.js +38 -52
  12. package/src/TemplateData/PropertyValueSchema/PropertyValueObjectSchema/data.js +160 -0
  13. package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/data.js +43 -49
  14. package/src/{reStructure/TemplateData/propertyValueSchema → TemplateData/PropertyValueSchema}/generateTemplateData.js +3 -4
  15. package/src/CheckPermission/CheckPermission.js +0 -122
  16. package/src/GenerateCodeLibs/index.js +0 -22
  17. package/src/GenerateCodeLibs/src/Consts.js +0 -135
  18. package/src/GenerateCodeLibs/src/GenerateCodeLibs.js +0 -2583
  19. package/src/MainLibs/index.js +0 -22
  20. package/src/MainLibs/src/Consts.js +0 -735
  21. package/src/MainLibs/src/GenerateCodeUtils.js +0 -72
  22. package/src/MainLibs/src/Utils.js +0 -72
  23. package/src/SourceManager/index.js +0 -21
  24. package/src/SourceManager/src/CreateSource.js +0 -229
  25. package/src/SourceManager/src/Utils.js +0 -110
  26. package/src/reStructure/GenerateCode.js +0 -184
  27. package/src/reStructure/GenerateResources.js +0 -121
  28. package/src/reStructure/GenerateTests.js +0 -138
  29. package/src/reStructure/IntTestConfig.js +0 -23
  30. package/src/reStructure/SchemaConfig.js +0 -23
  31. package/src/reStructure/TemplateConfig.js +0 -58
  32. package/src/reStructure/TemplateData/Auth/generateAuthYml/data.js +0 -47
  33. package/src/reStructure/TemplateData/Auth/generateAuthYml/template.ejs +0 -16
  34. package/src/reStructure/TemplateData/Auth/generateTemplateData.js +0 -48
  35. package/src/reStructure/TemplateData/EndpointPerService/generateTemplateData.js +0 -127
  36. package/src/reStructure/TemplateData/EndpointPerService/handler/api/data.js +0 -72
  37. package/src/reStructure/TemplateData/EndpointPerService/handler/api/request.json +0 -7
  38. package/src/reStructure/TemplateData/EndpointPerService/handler/api/template.ejs +0 -73
  39. package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/data.js +0 -76
  40. package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/request.json +0 -7
  41. package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/template.ejs +0 -129
  42. package/src/reStructure/TemplateData/EndpointPerService/handler/inv/data.js +0 -79
  43. package/src/reStructure/TemplateData/EndpointPerService/handler/inv/request.json +0 -7
  44. package/src/reStructure/TemplateData/EndpointPerService/handler/inv/template.ejs +0 -73
  45. package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/data.js +0 -76
  46. package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/request.json +0 -7
  47. package/src/reStructure/TemplateData/EndpointPerService/handler/sqs/template.ejs +0 -131
  48. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +0 -358
  49. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/data.js +0 -51
  50. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +0 -614
  51. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/data.js +0 -50
  52. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +0 -163
  53. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/data.js +0 -50
  54. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +0 -273
  55. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/data.js +0 -50
  56. package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +0 -433
  57. package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +0 -307
  58. package/src/reStructure/TemplateData/EndpointPerService/yaml/template.ejs +0 -35
  59. package/src/reStructure/TemplateData/IntTest/generateResources/generateResources.js +0 -112
  60. package/src/reStructure/TemplateData/IntTest/generateResources/templateResources.ejs +0 -33
  61. package/src/reStructure/TemplateData/IntTest/generateTests/events/data.js +0 -133
  62. package/src/reStructure/TemplateData/IntTest/generateTests/events/templateEvents.ejs +0 -11
  63. package/src/reStructure/TemplateData/IntTest/generateTests/generateTemplate.js +0 -67
  64. package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/data.js +0 -47
  65. package/src/reStructure/TemplateData/IntTest/generateTests/pathIntTest/template.ejs +0 -5
  66. package/src/reStructure/TemplateData/IntTest/generateTests/tests/data.js +0 -211
  67. package/src/reStructure/TemplateData/IntTest/generateTests/tests/templateTests.ejs +0 -3
  68. package/src/reStructure/TemplateData/IntTest/libs/libs.js +0 -416
  69. package/src/reStructure/TemplateData/IntTest/upload/uploadIntTest.js +0 -95
  70. package/src/reStructure/TemplateData/externalService/functionNameConfig/data.js +0 -176
  71. package/src/reStructure/TemplateData/externalService/functionNameConfig/template.ejs +0 -14
  72. package/src/reStructure/TemplateData/externalService/functionNameConfig/templateIntTesting.ejs +0 -31
  73. package/src/reStructure/TemplateData/externalService/functionNameConfig/templateYaml.ejs +0 -10
  74. package/src/reStructure/TemplateData/externalService/generateTemplateData.js +0 -79
  75. package/src/reStructure/TemplateData/externalService/lambdaRole/data.js +0 -445
  76. package/src/reStructure/TemplateData/externalService/lambdaRole/request.json +0 -18
  77. package/src/reStructure/TemplateData/externalService/lambdaRole/template.ejs +0 -59
  78. package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/data.js +0 -274
  79. package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/request.json +0 -12
  80. package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/template.ejs +0 -35
  81. package/src/reStructure/TemplateData/findData/GetByStorage/getByDynamo.ejs +0 -54
  82. package/src/reStructure/TemplateData/findData/GetByStorage/getByGraph.ejs +0 -81
  83. package/src/reStructure/TemplateData/findData/findDataYaml/data.js +0 -184
  84. package/src/reStructure/TemplateData/findData/findDataYaml/template.ejs +0 -14
  85. package/src/reStructure/TemplateData/findData/generateTemplateData.js +0 -69
  86. package/src/reStructure/TemplateData/findData/handler/data.js +0 -51
  87. package/src/reStructure/TemplateData/findData/handler/template.ejs +0 -136
  88. package/src/reStructure/TemplateData/findData/mainFunction/data.js +0 -319
  89. package/src/reStructure/TemplateData/findData/mainFunction/template.ejs +0 -149
  90. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/data.js +0 -129
  91. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/template.ejs +0 -20
  92. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/data.js +0 -68
  93. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/handler/template.ejs +0 -84
  94. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/data.js +0 -71
  95. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/mainFunction/template.ejs +0 -118
  96. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/data.js +0 -73
  97. package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/queue/template.ejs +0 -49
  98. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +0 -128
  99. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/template.ejs +0 -17
  100. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +0 -66
  101. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/template.ejs +0 -123
  102. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +0 -58
  103. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +0 -129
  104. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/data.js +0 -62
  105. package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/queue/template.ejs +0 -45
  106. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +0 -116
  107. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/template.ejs +0 -20
  108. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js +0 -67
  109. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs +0 -83
  110. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +0 -67
  111. package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +0 -131
  112. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +0 -118
  113. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/template.ejs +0 -17
  114. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +0 -65
  115. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/template.ejs +0 -99
  116. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +0 -63
  117. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/template.ejs +0 -81
  118. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/data.js +0 -69
  119. package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/sns-sqs/template.ejs +0 -49
  120. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +0 -138
  121. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/template.ejs +0 -18
  122. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +0 -66
  123. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/template.ejs +0 -123
  124. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +0 -66
  125. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/template.ejs +0 -262
  126. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/data.js +0 -66
  127. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/queue/template.ejs +0 -45
  128. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +0 -144
  129. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/template.ejs +0 -14
  130. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +0 -66
  131. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/template.ejs +0 -121
  132. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +0 -61
  133. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +0 -172
  134. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/data.js +0 -68
  135. package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/sqs/template.ejs +0 -53
  136. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +0 -139
  137. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/template.ejs +0 -25
  138. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +0 -52
  139. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/template.ejs +0 -50
  140. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/ProcessCsvtemplate.ejs +0 -182
  141. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +0 -51
  142. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +0 -68
  143. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/data.js +0 -77
  144. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/dsqTemplatePath.ejs +0 -32
  145. package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/queue/s3Template.ejs +0 -59
  146. package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/data.js +0 -60
  147. package/src/reStructure/TemplateData/flowSchema/components/upload/relate/S3/template.ejs +0 -13
  148. package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/data.js +0 -53
  149. package/src/reStructure/TemplateData/flowSchema/components/upload/relate/libs/template.ejs +0 -97
  150. package/src/reStructure/TemplateData/flowSchema/components/upload/relate/sns-out/data.js +0 -66
  151. package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +0 -91
  152. package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/template.ejs +0 -17
  153. package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js +0 -58
  154. package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs +0 -72
  155. package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +0 -69
  156. package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +0 -69
  157. package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ttlDynamoTemplate.ejs +0 -32
  158. package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/userUploadRecords.js +0 -61
  159. package/src/reStructure/TemplateData/flowSchema/dynamoDb/data.js +0 -116
  160. package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/data.js +0 -167
  161. package/src/reStructure/TemplateData/flowSchema/eventBridge/functionYaml/template.ejs +0 -21
  162. package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/data.js +0 -69
  163. package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/request.json +0 -7
  164. package/src/reStructure/TemplateData/flowSchema/eventBridge/handler/inv/template.ejs +0 -60
  165. package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/data.js +0 -67
  166. package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/request.json +0 -5
  167. package/src/reStructure/TemplateData/flowSchema/eventBridge/mainFunction/template.ejs +0 -59
  168. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +0 -111
  169. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/template.ejs +0 -20
  170. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/data.js +0 -93
  171. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/handler/template.ejs +0 -81
  172. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/data.js +0 -68
  173. package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/mainFunction/template.ejs +0 -58
  174. package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +0 -156
  175. package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/template.ejs +0 -20
  176. package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/data.js +0 -65
  177. package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/handler/template.ejs +0 -101
  178. package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/data.js +0 -77
  179. package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-in-sqs/template.ejs +0 -47
  180. package/src/reStructure/TemplateData/flowSchema/externalTopic/sns-out/data.js +0 -72
  181. package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/data.js +0 -120
  182. package/src/reStructure/TemplateData/flowSchema/flowSchemaMainFunction/template.ejs +0 -92
  183. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +0 -111
  184. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/template.ejs +0 -21
  185. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/data.js +0 -70
  186. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/handler/template.ejs +0 -81
  187. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/data.js +0 -70
  188. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/mainFunction/template.ejs +0 -61
  189. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +0 -145
  190. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/template.ejs +0 -21
  191. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/data.js +0 -68
  192. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/handler/template.ejs +0 -87
  193. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +0 -111
  194. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/template.ejs +0 -18
  195. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/data.js +0 -65
  196. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/handler/template.ejs +0 -108
  197. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/data.js +0 -65
  198. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +0 -106
  199. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/data.js +0 -100
  200. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-in/sqsTemplate.ejs +0 -43
  201. package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/sns-out/data.js +0 -74
  202. package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/data.js +0 -152
  203. package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/template.ejs +0 -20
  204. package/src/reStructure/TemplateData/flowSchema/flowStep/handler/data.js +0 -102
  205. package/src/reStructure/TemplateData/flowSchema/flowStep/handler/template.ejs +0 -89
  206. package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/data.js +0 -100
  207. package/src/reStructure/TemplateData/flowSchema/flowStep/mainFunction/template.ejs +0 -58
  208. package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/data.js +0 -98
  209. package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/template.ejs +0 -59
  210. package/src/reStructure/TemplateData/flowSchema/generateTemplateData.js +0 -808
  211. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/data.js +0 -85
  212. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/functionYaml/template.ejs +0 -28
  213. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/data.js +0 -67
  214. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Api/handler/template.ejs +0 -86
  215. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/data.js +0 -74
  216. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/functionYaml/template.ejs +0 -13
  217. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/data.js +0 -64
  218. package/src/reStructure/TemplateData/flowSchema/lambdaSync/Inv/handler/template.ejs +0 -52
  219. package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/data.js +0 -113
  220. package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/template.ejs +0 -22
  221. package/src/reStructure/TemplateData/flowSchema/register/complete/handler/data.js +0 -58
  222. package/src/reStructure/TemplateData/flowSchema/register/complete/handler/template.ejs +0 -85
  223. package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/data.js +0 -62
  224. package/src/reStructure/TemplateData/flowSchema/register/complete/mainFunction/template.ejs +0 -176
  225. package/src/reStructure/TemplateData/flowSchema/register/dynamoDB/register.js +0 -73
  226. package/src/reStructure/TemplateData/flowSchema/register/sns-in/data.js +0 -58
  227. package/src/reStructure/TemplateData/flowSchema/register/sns-in/template.ejs +0 -45
  228. package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/data.js +0 -82
  229. package/src/reStructure/TemplateData/flowSchema/register/subscriptionOutAll/template.ejs +0 -13
  230. package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/data.js +0 -107
  231. package/src/reStructure/TemplateData/flowSchema/register/wbs/functionYaml/template.ejs +0 -19
  232. package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/data.js +0 -65
  233. package/src/reStructure/TemplateData/flowSchema/register/wbs/handler/template.ejs +0 -83
  234. package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/data.js +0 -56
  235. package/src/reStructure/TemplateData/flowSchema/register/wbs/mainFunction/template.ejs +0 -165
  236. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/data.js +0 -143
  237. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/FunctionYaml/template.ejs +0 -22
  238. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/data.js +0 -73
  239. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/Handler/template.ejs +0 -86
  240. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/data.js +0 -62
  241. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/MainFunction/template.ejs +0 -80
  242. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/data.js +0 -63
  243. package/src/reStructure/TemplateData/flowSchema/statusFieldComponent/sns/template.ejs +0 -59
  244. package/src/reStructure/TemplateData/flowSchema/templateByStatusType/statusFieldTemplate.ejs +0 -30
  245. package/src/reStructure/TemplateData/flowSchema/templateByStatusType/storedCacheTemplate.ejs +0 -26
  246. package/src/reStructure/TemplateData/flowSchema/templateByStatusType/triggerCacheTemplate.ejs +0 -44
  247. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/data.js +0 -135
  248. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/functionYaml/template.ejs +0 -22
  249. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/data.js +0 -70
  250. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/handler/template.ejs +0 -89
  251. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/data.js +0 -72
  252. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/checkTriggerCacheComplete/mainFunction/template.ejs +0 -85
  253. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/data.js +0 -139
  254. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/functionYaml/template.ejs +0 -22
  255. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/data.js +0 -73
  256. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/handler/template.ejs +0 -88
  257. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/data.js +0 -69
  258. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/processTriggerCache/mainFunction/template.ejs +0 -58
  259. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/data.js +0 -131
  260. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/functionYaml/template.ejs +0 -21
  261. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/data.js +0 -69
  262. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/handler/template.ejs +0 -88
  263. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/data.js +0 -69
  264. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheComplete/mainFunction/template.ejs +0 -74
  265. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/data.js +0 -90
  266. package/src/reStructure/TemplateData/flowSchema/triggerCacheComponent/triggerCacheQueue/template.ejs +0 -49
  267. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/data.js +0 -137
  268. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/template.ejs +0 -21
  269. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/data.js +0 -61
  270. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/handler/template.ejs +0 -85
  271. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/data.js +0 -55
  272. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/mainFunction/template.ejs +0 -134
  273. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/data.js +0 -100
  274. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/template.ejs +0 -43
  275. package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/templateSub.ejs +0 -7
  276. package/src/reStructure/TemplateData/generateRole/createSharedResource.js +0 -469
  277. package/src/reStructure/TemplateData/generateRole/data.js +0 -92
  278. package/src/reStructure/TemplateData/generateRole/sharedResourceTemplate.ejs +0 -32
  279. package/src/reStructure/TemplateData/generateRole/template.ejs +0 -33
  280. package/src/reStructure/TemplateData/perActionComplete/create/handler/data.js +0 -61
  281. package/src/reStructure/TemplateData/perActionComplete/create/handler/template.ejs +0 -126
  282. package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/createObjectComplete_main.js +0 -196
  283. package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/data.js +0 -53
  284. package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +0 -187
  285. package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/data.js +0 -62
  286. package/src/reStructure/TemplateData/perActionComplete/create/sns-in-sqs/template.ejs +0 -47
  287. package/src/reStructure/TemplateData/perActionComplete/create/sns-out/data.js +0 -67
  288. package/src/reStructure/TemplateData/perActionComplete/create/sns-out/template.ejs +0 -10
  289. package/src/reStructure/TemplateData/perActionComplete/create/yaml/data.js +0 -106
  290. package/src/reStructure/TemplateData/perActionComplete/create/yaml/template.ejs +0 -21
  291. package/src/reStructure/TemplateData/perActionComplete/delete/handler/data.js +0 -61
  292. package/src/reStructure/TemplateData/perActionComplete/delete/handler/template.ejs +0 -125
  293. package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/data.js +0 -53
  294. package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +0 -88
  295. package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/data.js +0 -62
  296. package/src/reStructure/TemplateData/perActionComplete/delete/sns-in-sqs/template.ejs +0 -47
  297. package/src/reStructure/TemplateData/perActionComplete/delete/sns-out/data.js +0 -67
  298. package/src/reStructure/TemplateData/perActionComplete/delete/yaml/data.js +0 -104
  299. package/src/reStructure/TemplateData/perActionComplete/delete/yaml/template.ejs +0 -20
  300. package/src/reStructure/TemplateData/perActionComplete/generateTemplateData.js +0 -162
  301. package/src/reStructure/TemplateData/perActionComplete/get/handler/data.js +0 -61
  302. package/src/reStructure/TemplateData/perActionComplete/get/handler/template.ejs +0 -125
  303. package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/data.js +0 -54
  304. package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +0 -131
  305. package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/data.js +0 -62
  306. package/src/reStructure/TemplateData/perActionComplete/get/sns-in-sqs/template.ejs +0 -47
  307. package/src/reStructure/TemplateData/perActionComplete/get/sns-out/data.js +0 -67
  308. package/src/reStructure/TemplateData/perActionComplete/get/yaml/data.js +0 -106
  309. package/src/reStructure/TemplateData/perActionComplete/get/yaml/template.ejs +0 -21
  310. package/src/reStructure/TemplateData/perActionComplete/update/handler/data.js +0 -61
  311. package/src/reStructure/TemplateData/perActionComplete/update/handler/template.ejs +0 -125
  312. package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/data.js +0 -53
  313. package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +0 -133
  314. package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/data.js +0 -62
  315. package/src/reStructure/TemplateData/perActionComplete/update/sns-in-sqs/template.ejs +0 -47
  316. package/src/reStructure/TemplateData/perActionComplete/update/sns-out/data.js +0 -66
  317. package/src/reStructure/TemplateData/perActionComplete/update/yaml/data.js +0 -107
  318. package/src/reStructure/TemplateData/perActionComplete/update/yaml/template.ejs +0 -20
  319. package/src/reStructure/TemplateData/perActionEndpoint/generateTemplateData.js +0 -112
  320. package/src/reStructure/TemplateData/perActionEndpoint/handler/api/data.js +0 -109
  321. package/src/reStructure/TemplateData/perActionEndpoint/handler/api/request.json +0 -7
  322. package/src/reStructure/TemplateData/perActionEndpoint/handler/api/template.ejs +0 -36
  323. package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/data.js +0 -118
  324. package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/request.json +0 -7
  325. package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/template.ejs +0 -55
  326. package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/data.js +0 -112
  327. package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/request.json +0 -7
  328. package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/template.ejs +0 -37
  329. package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/data.js +0 -116
  330. package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/request.json +0 -7
  331. package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/template.ejs +0 -57
  332. package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/data.js +0 -94
  333. package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +0 -61
  334. package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/data.js +0 -54
  335. package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocketConnect/template.ejs +0 -55
  336. package/src/reStructure/TemplateData/perActionEndpoint/libs/data.js +0 -60
  337. package/src/reStructure/TemplateData/perActionEndpoint/libs/template.ejs +0 -46
  338. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/data.js +0 -91
  339. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/request.json +0 -0
  340. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +0 -339
  341. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/data.js +0 -91
  342. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +0 -99
  343. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/data.js +0 -92
  344. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/request.json +0 -5
  345. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/template.ejs +0 -116
  346. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/testParam.json +0 -5
  347. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/data.js +0 -85
  348. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/request.json +0 -0
  349. package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/template.ejs +0 -166
  350. package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/data.js +0 -229
  351. package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/request.json +0 -14
  352. package/src/reStructure/TemplateData/perActionEndpoint/yaml/api/template.ejs +0 -20
  353. package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/data.js +0 -234
  354. package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/request.json +0 -19
  355. package/src/reStructure/TemplateData/perActionEndpoint/yaml/dsq/template.ejs +0 -17
  356. package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/data.js +0 -207
  357. package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/example req.js +0 -15
  358. package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/request.json +0 -14
  359. package/src/reStructure/TemplateData/perActionEndpoint/yaml/inv/template.ejs +0 -13
  360. package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/data.js +0 -237
  361. package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/request.json +0 -19
  362. package/src/reStructure/TemplateData/perActionEndpoint/yaml/sqs/template.ejs +0 -17
  363. package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/data.js +0 -204
  364. package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/request.json +0 -19
  365. package/src/reStructure/TemplateData/perActionEndpoint/yaml/wbs/template.ejs +0 -29
  366. package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/data.js +0 -58
  367. package/src/reStructure/TemplateData/perActionEndpoint/yaml/webSocketConnect/template.ejs +0 -10
  368. package/src/reStructure/TemplateData/processLogical/generateTemplateData.js +0 -60
  369. package/src/reStructure/TemplateData/processLogical/handler/data.js +0 -50
  370. package/src/reStructure/TemplateData/processLogical/handler/template.ejs +0 -127
  371. package/src/reStructure/TemplateData/processLogical/mainFunction/data.js +0 -49
  372. package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +0 -424
  373. package/src/reStructure/TemplateData/processLogical/yaml/data.js +0 -172
  374. package/src/reStructure/TemplateData/processLogical/yaml/template.ejs +0 -12
  375. package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/data.js +0 -50
  376. package/src/reStructure/TemplateData/processLogicalPagination/DsqYaml/template.ejs +0 -32
  377. package/src/reStructure/TemplateData/processLogicalPagination/generateTemplateData.js +0 -68
  378. package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/data.js +0 -49
  379. package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/template.ejs +0 -160
  380. package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/data.js +0 -48
  381. package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/template.ejs +0 -143
  382. package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/data.js +0 -48
  383. package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/template.ejs +0 -210
  384. package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/data.js +0 -162
  385. package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/template.ejs +0 -12
  386. package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/data.js +0 -171
  387. package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/template.ejs +0 -13
  388. package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/data.js +0 -181
  389. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/data.js +0 -146
  390. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/api/template.ejs +0 -20
  391. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/data.js +0 -161
  392. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/data.js +0 -146
  393. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/dsq/template.ejs +0 -17
  394. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/data.js +0 -146
  395. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/inv/template.ejs +0 -13
  396. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/data.js +0 -147
  397. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/sqs/template.ejs +0 -17
  398. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/template.ejs +0 -9
  399. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  400. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  401. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  402. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  403. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/data.js +0 -62
  404. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/request.json +0 -0
  405. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/api/template.ejs +0 -59
  406. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/data.js +0 -72
  407. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/data.js +0 -63
  408. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/request.json +0 -0
  409. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/dsq/template.ejs +0 -202
  410. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/data.js +0 -64
  411. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/request.json +0 -0
  412. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/inv/template.ejs +0 -144
  413. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/data.js +0 -64
  414. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/request.json +0 -0
  415. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/sqs/template.ejs +0 -77
  416. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/template.ejs +0 -9
  417. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -153
  418. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -197
  419. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -141
  420. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -182
  421. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/data.js +0 -59
  422. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/mainFunction/template.ejs +0 -377
  423. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/data.js +0 -73
  424. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
  425. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  426. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/data.js +0 -116
  427. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/functionYaml/template.ejs +0 -20
  428. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/data.js +0 -60
  429. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/handler/sqs/template.ejs +0 -126
  430. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/data.js +0 -55
  431. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/mainFunction/template.ejs +0 -150
  432. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/data.js +0 -63
  433. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-in-sqs/template.ejs +0 -46
  434. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/data.js +0 -63
  435. package/src/reStructure/TemplateData/relationshipPerAction/changeRelationship/complete/sns-out/template.ejs +0 -10
  436. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +0 -175
  437. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/template.ejs +0 -20
  438. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/data.js +0 -201
  439. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +0 -176
  440. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/template.ejs +0 -17
  441. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +0 -175
  442. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/template.ejs +0 -13
  443. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +0 -177
  444. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/template.ejs +0 -17
  445. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/template.ejs +0 -9
  446. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  447. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  448. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  449. package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
  450. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/data.js +0 -62
  451. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/request.json +0 -0
  452. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +0 -57
  453. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/data.js +0 -71
  454. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/data.js +0 -63
  455. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/request.json +0 -0
  456. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/template.ejs +0 -184
  457. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/data.js +0 -64
  458. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/request.json +0 -0
  459. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/template.ejs +0 -126
  460. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/data.js +0 -64
  461. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/request.json +0 -0
  462. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +0 -75
  463. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/template.ejs +0 -9
  464. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/apiTemplate.ejs +0 -137
  465. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/dsqTemplate.ejs +0 -179
  466. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/invTemplate.ejs +0 -123
  467. package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
  468. package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/data.js +0 -57
  469. package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +0 -443
  470. package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/data.js +0 -74
  471. package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/snsTemplate.ejs +0 -59
  472. package/src/reStructure/TemplateData/relationshipPerAction/create/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  473. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/data.js +0 -117
  474. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/request.json +0 -0
  475. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/template.ejs +0 -20
  476. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/data.js +0 -60
  477. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/request.json +0 -0
  478. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +0 -126
  479. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/data.js +0 -55
  480. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/request.json +0 -0
  481. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +0 -151
  482. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/data.js +0 -62
  483. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/request.json +0 -0
  484. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-in-sqs/template.ejs +0 -46
  485. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/data.js +0 -63
  486. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/request.json +0 -0
  487. package/src/reStructure/TemplateData/relationshipPerAction/create/complete/sns-out/template.ejs +0 -10
  488. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +0 -178
  489. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/template.ejs +0 -20
  490. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/data.js +0 -201
  491. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +0 -176
  492. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/template.ejs +0 -17
  493. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +0 -178
  494. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/template.ejs +0 -13
  495. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +0 -176
  496. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/template.ejs +0 -17
  497. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/template.ejs +0 -9
  498. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  499. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  500. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  501. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  502. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/data.js +0 -62
  503. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/request.json +0 -0
  504. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +0 -139
  505. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/data.js +0 -72
  506. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/data.js +0 -63
  507. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/request.json +0 -0
  508. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +0 -182
  509. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/data.js +0 -64
  510. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/request.json +0 -0
  511. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +0 -124
  512. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/data.js +0 -64
  513. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/request.json +0 -0
  514. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +0 -162
  515. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/template.ejs +0 -9
  516. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/apiTemplate.ejs +0 -139
  517. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/dsqTemplate.ejs +0 -182
  518. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/invTemplate.ejs +0 -124
  519. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/templateByHandler/sqsTemplate.ejs +0 -162
  520. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/data.js +0 -61
  521. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +0 -365
  522. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/data.js +0 -74
  523. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/snsTemplate.ejs +0 -59
  524. package/src/reStructure/TemplateData/relationshipPerAction/delete/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  525. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/data.js +0 -115
  526. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/request.json +0 -0
  527. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/template.ejs +0 -20
  528. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/data.js +0 -60
  529. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/request.json +0 -0
  530. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +0 -126
  531. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/data.js +0 -55
  532. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/request.json +0 -0
  533. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +0 -143
  534. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/data.js +0 -64
  535. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/request.json +0 -0
  536. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-in-sqs/template.ejs +0 -47
  537. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/data.js +0 -64
  538. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/request.json +0 -0
  539. package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/sns-out/template.ejs +0 -10
  540. package/src/reStructure/TemplateData/relationshipPerAction/generateTemplateData.js +0 -547
  541. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +0 -168
  542. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs +0 -20
  543. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/data.js +0 -202
  544. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +0 -177
  545. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs +0 -17
  546. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +0 -167
  547. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs +0 -13
  548. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +0 -166
  549. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs +0 -17
  550. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/template.ejs +0 -9
  551. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  552. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  553. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  554. package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  555. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/data.js +0 -62
  556. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/request.json +0 -0
  557. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/template.ejs +0 -138
  558. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/data.js +0 -72
  559. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +0 -63
  560. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/request.json +0 -0
  561. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/template.ejs +0 -185
  562. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +0 -64
  563. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/request.json +0 -0
  564. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/template.ejs +0 -127
  565. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +0 -64
  566. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/request.json +0 -0
  567. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/template.ejs +0 -165
  568. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/template.ejs +0 -9
  569. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/apiTemplate.ejs +0 -137
  570. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/dsqTemplate.ejs +0 -178
  571. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/invTemplate.ejs +0 -122
  572. package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
  573. package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +0 -58
  574. package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +0 -317
  575. package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +0 -74
  576. package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/snsTemplate.ejs +0 -59
  577. package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  578. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +0 -116
  579. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/request.json +0 -0
  580. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/template.ejs +0 -20
  581. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +0 -61
  582. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/request.json +0 -0
  583. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +0 -127
  584. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +0 -56
  585. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/request.json +0 -0
  586. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +0 -143
  587. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +0 -64
  588. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/request.json +0 -0
  589. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/template.ejs +0 -47
  590. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +0 -65
  591. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/request.json +0 -0
  592. package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/template.ejs +0 -10
  593. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/data.js +0 -168
  594. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/template.ejs +0 -9
  595. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  596. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  597. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  598. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
  599. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/data.js +0 -71
  600. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/template.ejs +0 -9
  601. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/apiTemplate.ejs +0 -155
  602. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/dsqTemplate.ejs +0 -198
  603. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/invTemplate.ejs +0 -143
  604. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/handler/templateByHandler/sqsTemplate.ejs +0 -182
  605. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/data.js +0 -57
  606. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/mainFunction/template.ejs +0 -379
  607. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/data.js +0 -73
  608. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/snsTemplate.ejs +0 -59
  609. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  610. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/data.js +0 -115
  611. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/functionYaml/template.ejs +0 -20
  612. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/data.js +0 -60
  613. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/handler/sqs/template.ejs +0 -126
  614. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/data.js +0 -58
  615. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/mainFunction/template.ejs +0 -155
  616. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/data.js +0 -64
  617. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-in-sqs/template.ejs +0 -46
  618. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/data.js +0 -64
  619. package/src/reStructure/TemplateData/relationshipPerAction/moveRelationship/complete/sns-out/template.ejs +0 -10
  620. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +0 -167
  621. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/request.json +0 -0
  622. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/template.ejs +0 -20
  623. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/data.js +0 -191
  624. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +0 -196
  625. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/request.json +0 -0
  626. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/template.ejs +0 -17
  627. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +0 -186
  628. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/request.json +0 -0
  629. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/template.ejs +0 -13
  630. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +0 -187
  631. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/request.json +0 -0
  632. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/template.ejs +0 -17
  633. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/template.ejs +0 -9
  634. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  635. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -18
  636. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  637. package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
  638. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/data.js +0 -78
  639. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/request.json +0 -7
  640. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/template.ejs +0 -142
  641. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/data.js +0 -73
  642. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/data.js +0 -79
  643. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/request.json +0 -7
  644. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/template.ejs +0 -188
  645. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/data.js +0 -80
  646. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/request.json +0 -5
  647. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/template.ejs +0 -147
  648. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/data.js +0 -79
  649. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/request.json +0 -7
  650. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/template.ejs +0 -163
  651. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/template.ejs +0 -9
  652. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/apiTemplate.ejs +0 -138
  653. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/dsqTemplate.ejs +0 -180
  654. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/invTemplate.ejs +0 -124
  655. package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/templateByHandler/sqsTemplate.ejs +0 -163
  656. package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/data.js +0 -60
  657. package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/request.json +0 -1
  658. package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +0 -384
  659. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/data.js +0 -83
  660. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/request.json +0 -3
  661. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/snsTemplate.ejs +0 -59
  662. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-in-sqs/sqsTemplate.ejs +0 -43
  663. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/data.js +0 -68
  664. package/src/reStructure/TemplateData/relationshipPerAction/update/action/sns-out/request.json +0 -3
  665. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/data.js +0 -117
  666. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/request.json +0 -3
  667. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/template.ejs +0 -21
  668. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/data.js +0 -60
  669. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/request.json +0 -0
  670. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs +0 -128
  671. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/data.js +0 -55
  672. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/request.json +0 -1
  673. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +0 -145
  674. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/data.js +0 -63
  675. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/request.json +0 -3
  676. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-in-sqs/template.ejs +0 -46
  677. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/data.js +0 -62
  678. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/request.json +0 -3
  679. package/src/reStructure/TemplateData/relationshipPerAction/update/complete/sns-out/template.ejs +0 -10
  680. package/src/reStructure/TemplateData/resourceYaml/CreateSourceData.js +0 -79
  681. package/src/reStructure/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +0 -145
  682. package/src/reStructure/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +0 -111
  683. package/src/reStructure/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +0 -165
  684. package/src/reStructure/TemplateData/resourceYaml/dynamodb/template.ejs +0 -29
  685. package/src/reStructure/TemplateData/resourceYaml/filterGenerateResource/data.js +0 -124
  686. package/src/reStructure/TemplateData/resourceYaml/generateTemplateData.js +0 -146
  687. package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/defaultSnsInSqsForFindDataAndProcessLogical.js +0 -91
  688. package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/request.json +0 -4
  689. package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsAndSqsPerActionData.js +0 -84
  690. package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/snsTemplate.ejs +0 -59
  691. package/src/reStructure/TemplateData/resourceYaml/sns-in-sqs/sqsTemplate.ejs +0 -43
  692. package/src/reStructure/TemplateData/resourceYaml/sns-out/data.js +0 -78
  693. package/src/reStructure/TemplateData/resourceYaml/sns-out/defaultSnsOutForFindDataAndProcessLogical.js +0 -64
  694. package/src/reStructure/TemplateData/resourceYaml/sns-out/request.json +0 -3
  695. package/src/reStructure/TemplateData/resourceYaml/sns-out/template.ejs +0 -10
  696. package/src/reStructure/libs/GenerateCodeLibs.js +0 -32
  697. package/src/reStructure/libs/ValidateAddOnDataStructure.js +0 -72
  698. package/src/reStructure/test.bash +0 -192
  699. /package/src/{reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueObjectSchema}/templateObjectPropertyValueSchema.ejs +0 -0
  700. /package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/tempRelationship.ejs +0 -0
  701. /package/src/{reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema → TemplateData/PropertyValueSchema/PropertyValueRelationshipSchema}/templateRelationshipPropertyValueSchema.ejs +0 -0
@@ -1,139 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
-
19
-
20
- import { middlewareHandler as middleware, validatorSchema, response } from "@izara_project/izara-middleware";
21
- import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
22
-
23
- //(<optionalRequire>)
24
- //(</optionalRequire>)
25
-
26
- import <%- functionName %> from './<%- firstLetterUpperCase(functionName) %>_Main.js'
27
-
28
- // validate event params in middleware before into function
29
- let validator = {
30
- type: "object",
31
- required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
32
- properties: {
33
- firstObject: {
34
- type: "object",
35
- required: ["objType","identifiers"],
36
- properties: {
37
- objType: {
38
- type: "object",
39
- required: ["serviceTag","objectType"],
40
- properties: {
41
- serviceTag: validatorSchema.stringNotEmpty(),
42
- objectType: validatorSchema.stringNotEmpty(),
43
- }
44
- },
45
- identifiers: {
46
- type: "object",
47
- minProperties: 1
48
- }
49
- }
50
- },
51
- secondObject: {
52
- type: "object",
53
- required: ["objType","identifiers"],
54
- properties: {
55
- objType: {
56
- type: "object",
57
- required: ["serviceTag","objectType"],
58
- properties: {
59
- serviceTag: validatorSchema.stringNotEmpty(),
60
- objectType: validatorSchema.stringNotEmpty(),
61
- }
62
- },
63
- identifiers: {
64
- type: "object",
65
- minProperties: 1
66
- }
67
- }
68
- },
69
- relType: {
70
- type: "object",
71
- required: ["relationshipTag", "serviceTag"],
72
- properties: {
73
- relationshipTag: validatorSchema.stringNotEmpty(),
74
- serviceTag: {
75
- type: 'string',
76
- pattern: "^[a-zA-Z0-9_-]+$",
77
- enum: [process.env.iz_serviceTag]
78
- }
79
- }
80
- },
81
- relationshipProperties: {
82
- type: "object",
83
- minProperties: 1
84
- },
85
- relationshipDirection: {
86
- type: "string",
87
- enum: ['from','to']
88
- }
89
- }
90
- };
91
-
92
-
93
- //(<globalVariable>
94
- //</globalVariable>)
95
-
96
- // validate event params in middleware before into main function
97
- validator = callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validator);
98
- middleware.setValidatorSchema(validator)
99
- // if need to validate authorizer or additional params , add code to hook tag below
100
-
101
- //(<afterValidateWith>)
102
- //(</afterValidateWith>)
103
-
104
-
105
- export const main = middleware.wrap(async (event, context) => {
106
- event._izContext.logger.debug('Event:', event);
107
- try {
108
- // invoke LambdaFunction
109
- let lambdaFunctionResponse = await <%- functionName %>(
110
- event._izContext, // correlationId/logger/integrationTestDetail/uniqueRequestId/userId
111
- {
112
- firstObject: event.firstObject,
113
- secondObject: event.secondObject,
114
- relType: event.relType,
115
- relationshipDirection: event.relationshipDirection,
116
- relationshipProperties: event.relationshipProperties,
117
- },
118
- callingFlowSharedLib.addCallingFlowToPassOnProperties(event)
119
- );
120
-
121
- // return error to client
122
- if (lambdaFunctionResponse instanceof Error) {
123
- return (izara.response.failure(lambdaFunctionResponse));
124
- }
125
-
126
- // return success to client
127
- return (izara.response.success(lambdaFunctionResponse));
128
-
129
- } catch (err) {
130
- event._izContext.logger.error('Error, <%- functionName %>HdrApi: ', err);
131
- return (izara.response.failure(err));
132
- }
133
- });
134
- <%_ function firstLetterUpperCase(text) {
135
- return text.charAt(0).toUpperCase() + text.slice(1)
136
- } _%>
137
- <%_ function firstLetterLowerCase(str) {
138
- return str.charAt(0).toLowerCase() + str.slice(1)
139
- } _%>
@@ -1,182 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
-
19
-
20
- import { middlewareHandler as middleware } from "@izara_project/izara-middleware";
21
- import Logger from '@izara_project/izara-core-library-logger';
22
- import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
23
- import { recordHandlerSharedLib } from '@izara_project/izara-core-library-record-handler';
24
-
25
- //(<optionalRequire>)
26
- //(</optionalRequire>)
27
-
28
- import <%- functionName %> from './<%- firstLetterUpperCase(functionName) %>_Main.js'
29
-
30
- // validate event properties in body.Message of sqs event
31
- middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema(
32
- {
33
- type: "object",
34
- required: ['body', 'messageAttributes'],
35
- properties: {
36
- body: {
37
- type: 'object',
38
- },
39
- messageAttributes: {
40
- type: 'object'
41
- }
42
- }
43
- }
44
- ));
45
-
46
- // validate event params in middlewware before into function.
47
- let validatorSchema = {
48
- type: "object",
49
- required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
50
- properties: {
51
- firstObject: {
52
- type: "object",
53
- required: ["objType","identifiers"],
54
- properties: {
55
- objType: {
56
- type: "object",
57
- required: ["serviceTag","objectType"],
58
- properties: {
59
- serviceTag: izara.validatorSchema.stringNotEmpty(),
60
- objectType: izara.validatorSchema.stringNotEmpty(),
61
- }
62
- },
63
- identifiers: {
64
- type: "object",
65
- minProperties: 1
66
- }
67
- }
68
- },
69
- secondObject: {
70
- type: "object",
71
- required: ["objType","identifiers"],
72
- properties: {
73
- objType: {
74
- type: "object",
75
- required: ["serviceTag","objectType"],
76
- properties: {
77
- serviceTag: izara.validatorSchema.stringNotEmpty(),
78
- objectType: izara.validatorSchema.stringNotEmpty(),
79
- }
80
- },
81
- identifiers: {
82
- type: "object",
83
- minProperties: 1
84
- }
85
- }
86
- },
87
- relType: {
88
- type: "object",
89
- required: ["relationshipTag", "serviceTag"],
90
- properties: {
91
- relationshipTag: izara.validatorSchema.stringNotEmpty(),
92
- serviceTag: {
93
- type: 'string',
94
- pattern: "^[a-zA-Z0-9_-]+$",
95
- enum: [process.env.iz_serviceTag]
96
- }
97
- }
98
- },
99
- relationshipProperties: {
100
- type: "object",
101
- minProperties: 1
102
- },
103
- relationshipDirection: {
104
- type: "string",
105
- enum: ['from','to']
106
- }
107
- }
108
- };
109
-
110
-
111
- //(<globalVariable>
112
- //</globalVariable>)
113
-
114
- // validate event params in middleware before into main function
115
- validatorSchema = callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validatorSchema);
116
- // if need to validate authorizer or additional params , add code to hook tag below
117
-
118
- //(<afterValidateWith>)
119
- //(</afterValidateWith>)
120
-
121
-
122
- export const main = middleware.wrap(async (event, context) => {
123
- Logger.debug('event:', event);
124
- Logger.debug('context:', context);
125
- try {
126
-
127
- let recordPromises = []; // final return
128
-
129
- // loop each record and send to mainFunction
130
- await Promise.all(event.Records.map(async record => { // promise.all for map() function
131
-
132
- // --- reforming record.body for Dsq request
133
- record = recordHandlerSharedLib.reformatDsqMessage(record._izContext, record);
134
- record._izContext.logger.debug('record LambdaFunctionHdrDsq after reform', record);
135
-
136
- let passOnProperties = []
137
-
138
- // --- validate message (and MessageAttributes)
139
- await recordHandlerSharedLib.validateRecord(
140
- record, // one record will send to mainFunction
141
- "<%- queueName %>", // queue name that need to retry or send to dlq
142
- validatorSchema, // schema for record.Message
143
- // messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
144
- );
145
-
146
- // add argument (to invoke lambda) to passOnProperties[]
147
- passOnProperties.push(record.body.Message)
148
- passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message));
149
- //(<afterPutParamIntoMainFunction>)
150
- //(</afterPutParamIntoMainFunction>)
151
- record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
152
-
153
- // call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
154
- let recordPromise = recordHandlerSharedLib.recordHandler(
155
- record, // one record will send to mainFunction
156
- <%- functionName %>, // mainFunction that need to invoke.
157
- "<%- queueName %>", // queue name that need to retry or send to dlq
158
- passOnProperties, // all parameters that mainFunction needed.
159
- );
160
- record._izContext.logger.debug('after recordPromise in handler');
161
- recordPromises.push(recordPromise); // push promise to recordPromises
162
- })) //end record
163
-
164
- Logger.debug('before Promise.all(recordPromises) in handler');
165
- try {
166
- await Promise.all(recordPromises); // await all promises
167
- return event.Records // return all for local test
168
- } catch {
169
- Logger.debug('Promise.all(recordPromises) in handler threw error (at least one record did no resolve)');
170
- }
171
- Logger.debug('after Promise.all(recordPromises) in handler');
172
- } catch (err) {
173
- Logger.error('Unhandled Error, updateRelationshipHdrDsq:', err);
174
- throw (err);
175
- }
176
- });
177
- <%_ function firstLetterUpperCase(text) {
178
- return text.charAt(0).toUpperCase() + text.slice(1)
179
- } _%>
180
- <%_ function firstLetterLowerCase(str) {
181
- return str.charAt(0).toLowerCase() + str.slice(1)
182
- } _%>
@@ -1,124 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
-
19
-
20
- import { middlewareHandler as middleware, validatorSchema } from "@izara_project/izara-middleware";
21
- import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
22
-
23
- //(<optionalRequire>)
24
- //(</optionalRequire>)
25
-
26
- import <%- functionName %> from './<%- firstLetterUpperCase(functionName) %>_Main.js'
27
-
28
-
29
- // validate event params in middlewware before into function.
30
- let validator = {
31
- type: "object",
32
- required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
33
- properties: {
34
- firstObject: {
35
- type: "object",
36
- required: ["objType","identifiers"],
37
- properties: {
38
- objType: {
39
- type: "object",
40
- required: ["serviceTag","objectType"],
41
- properties: {
42
- serviceTag: validatorSchema.stringNotEmpty(),
43
- objectType: validatorSchema.stringNotEmpty(),
44
- }
45
- },
46
- identifiers: {
47
- type: "object",
48
- minProperties: 1
49
- }
50
- }
51
- },
52
- secondObject: {
53
- type: "object",
54
- required: ["objType","identifiers"],
55
- properties: {
56
- objType: {
57
- type: "object",
58
- required: ["serviceTag","objectType"],
59
- properties: {
60
- serviceTag: validatorSchema.stringNotEmpty(),
61
- objectType: validatorSchema.stringNotEmpty(),
62
- }
63
- },
64
- identifiers: {
65
- type: "object",
66
- minProperties: 1
67
- }
68
- }
69
- },
70
- relType: {
71
- type: "object",
72
- required: ["relationshipTag", "serviceTag"],
73
- properties: {
74
- relationshipTag: validatorSchema.stringNotEmpty(),
75
- serviceTag: {
76
- type: 'string',
77
- pattern: "^[a-zA-Z0-9_-]+$",
78
- enum: [process.env.iz_serviceTag]
79
- }
80
- }
81
- },
82
- relationshipProperties: {
83
- type: "object",
84
- minProperties: 1
85
- },
86
- relationshipDirection: {
87
- type: "string",
88
- enum: ['from','to']
89
- }
90
- }
91
- };
92
-
93
- validator = callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validator); // is Ok callinfFlow
94
- middleware.setValidatorSchema(validator)
95
-
96
- export const main = middleware.wrap(async (event, context) => {
97
- event._izContext.logger.debug('Event:', event);
98
- event._izContext.logger.debug('context:', context);
99
-
100
- try {
101
- // invoke LambdaFunction
102
- return await <%- functionName %>(
103
- event._izContext, // correlationId/logger/integrationTestDetail/uniqueRequestId
104
- {
105
- firstObject: event.firstObject,
106
- secondObject: event.secondObject,
107
- relType: event.relType,
108
- relationshipDirection: event.relationshipDirection,
109
- relationshipProperties: event.relationshipProperties,
110
- },
111
- callingFlowSharedLib.addCallingFlowToPassOnProperties(event)
112
- );
113
-
114
- } catch (err) {
115
- event._izContext.logger.error('Error, <%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handler) %> : ', err);
116
- throw (err);
117
- }
118
- });
119
- <%_ function firstLetterUpperCase(text) {
120
- return text.charAt(0).toUpperCase() + text.slice(1)
121
- } _%>
122
- <%_ function firstLetterLowerCase(str) {
123
- return str.charAt(0).toLowerCase() + str.slice(1)
124
- } _%>
@@ -1,162 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
-
19
-
20
- import { middlewareHandler as middleware, validatorSchema} from "@izara_project/izara-middleware";
21
- import callingFlowSharedLib from '@izara_project/izara-core-library-calling-flow';
22
- import Logger from '@izara_project/izara-core-library-logger';
23
- import { recordHandlerSharedLib } from '@izara_project/izara-core-library-record-handler';
24
-
25
- //(<optionalRequire>)
26
- //(</optionalRequire>)
27
-
28
- import <%- functionName %> from './<%- firstLetterUpperCase(functionName) %>_Main.js';
29
-
30
- middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
31
-
32
- // validate event params in middleware before into function
33
- let validator = {
34
- type: "object",
35
- required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
36
- properties: {
37
- firstObject: {
38
- type: "object",
39
- required: ["objType","identifiers"],
40
- properties: {
41
- objType: {
42
- type: "object",
43
- required: ["serviceTag","objectType"],
44
- properties: {
45
- serviceTag: validatorSchema.stringNotEmpty(),
46
- objectType: validatorSchema.stringNotEmpty(),
47
- }
48
- },
49
- identifiers: {
50
- type: "object",
51
- minProperties: 1
52
- }
53
- }
54
- },
55
- secondObject: {
56
- type: "object",
57
- required: ["objType","identifiers"],
58
- properties: {
59
- objType: {
60
- type: "object",
61
- required: ["serviceTag","objectType"],
62
- properties: {
63
- serviceTag: validatorSchema.stringNotEmpty(),
64
- objectType: validatorSchema.stringNotEmpty(),
65
- }
66
- },
67
- identifiers: {
68
- type: "object",
69
- minProperties: 1
70
- }
71
- }
72
- },
73
- relType: {
74
- type: "object",
75
- required: ["relationshipTag", "serviceTag"],
76
- properties: {
77
- relationshipTag: validatorSchema.stringNotEmpty(),
78
- serviceTag: {
79
- type: 'string',
80
- pattern: "^[a-zA-Z0-9_-]+$",
81
- enum: [process.env.iz_serviceTag]
82
- }
83
- }
84
- },
85
- relationshipProperties: {
86
- type: "object",
87
- minProperties: 1
88
- },
89
- relationshipDirection: {
90
- type: "string",
91
- enum: ['from','to']
92
- }
93
- }
94
- };
95
-
96
- //(<globalVariable>
97
- //</globalVariable>)
98
-
99
- // validate event params in middleware before into main function
100
- validator = callingFlowSharedLib.addOptionalCallingFlowToValidatorSchema(validator);
101
- // if need to validate authorizer or additional params , add code to hook tag below
102
-
103
- //(<afterValidateWith>)
104
- //(</afterValidateWith>)
105
-
106
- module.exports.main = middleware.wrap(async (event, context, callback) => {
107
-
108
- try {
109
-
110
- let recordPromises = []; // final return
111
-
112
- // loop each record and send to mainFunction
113
- await Promise.all(event.Records.map(async record => { // promise.all for map() function
114
-
115
- let passOnProperties = []
116
-
117
- // --- validate message (and MessageAttributes)
118
- await recordHandlerSharedLib.validateRecord(
119
- record, // one record will send to mainFunction
120
- "<%-firstLetterUpperCase(queueName) %>", // queue name that need to retry or send to dlq
121
- validator, // schema for record.Message
122
- // messageAttributeValidatorSchema // ----- for msgAttr default is null -> do not send this parameter if not want to validate msgAtt
123
- );
124
-
125
- // add argument (to invoke lambda) to passOnProperties[]
126
- passOnProperties.push(record.body.Message)
127
- passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message));
128
- //(<afterPutParamIntoMainFunction>)
129
- //(</afterPutParamIntoMainFunction>)
130
-
131
- record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
132
-
133
- // call recordHandlerSharedLib.recordHandler with 3 parameters and return promise(resolve)
134
- let recordPromise = recordHandlerSharedLib.recordHandler(
135
- record, // one record will send to mainFunction
136
- <%- functionName %>.<%- functionName %>, // mainFunction that need to invoke.
137
- "<%-firstLetterUpperCase(queueName) %>", // queue name that need to retry or send to dlq
138
- passOnProperties, // all parameters that mainFunction needed.
139
- );
140
- record._izContext.logger.debug('after recordPromise in handler');
141
- recordPromises.push(recordPromise); // push promise to recordPromises
142
- })) //end record
143
-
144
- Logger.debug('before Promise.all(recordPromises) in handler');
145
- try {
146
- await Promise.all(recordPromises); // await all promises
147
- return event.Records // return all for local test
148
- } catch {
149
- Logger.debug('Promise.all(recordPromises) in handler threw error (at least one record did no resolve)');
150
- }
151
- Logger.debug('after Promise.all(recordPromises) in handler');
152
- } catch (err) {
153
- Logger.error('Unhandled Error, updateRelationshipHdrDsq:', err);
154
- throw (err);
155
- }
156
- });
157
- <%_ function firstLetterUpperCase(text) {
158
- return text.charAt(0).toUpperCase() + text.slice(1)
159
- } _%>
160
- <%_ function firstLetterLowerCase(str) {
161
- return str.charAt(0).toLowerCase() + str.slice(1)
162
- } _%>
@@ -1,61 +0,0 @@
1
- /*
2
- Copyright (C) 2020 Sven Mason <http://izara.io>
3
-
4
- This program is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU Affero General Public License as
6
- published by the Free Software Foundation, either version 3 of the
7
- License, or (at your option) any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU Affero General Public License for more details.
13
-
14
- You should have received a copy of the GNU Affero General Public License
15
- along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
- import path from 'path';
19
- import { fileURLToPath } from 'url';
20
- const __filename = fileURLToPath(import.meta.url);
21
- const __dirname = path.dirname(__filename);
22
- import { consts, utils } from '../../../../../../MainLibs/index.js';
23
-
24
- const {
25
- firstLetterLowerCase: lowerCase,
26
- firstLetterUpperCase: upperCase,
27
- firstLetterUpperCase
28
- } = utils;
29
- const { SOURCE_PATH, FUNCTION_NAME } = consts;
30
-
31
- const templatePath = path.join(__dirname, 'template.ejs');
32
-
33
- /**
34
- * receive objectSchema
35
- * create data for hdrInv template
36
- *
37
- * @param {Object} objectSchema
38
- * @return {{ templatePath, templateData, setting } }
39
- */
40
- function data(_izContext, srcPath) {
41
- const createSourceParams = createParamForCreateSource(srcPath);
42
- return [createSourceParams];
43
- }
44
-
45
- function createParamForCreateSource(srcPath) {
46
- let functionName = FUNCTION_NAME.deleteRel;
47
- return {
48
- templatePath: templatePath,
49
- templateData: {
50
- functionName
51
- },
52
- setting: {
53
- savePath: path.join(srcPath, SOURCE_PATH.relationshipPerAction),
54
- saveFileName: `${upperCase(FUNCTION_NAME.deleteRel)}_Main`,
55
- fileExtension: '.js',
56
- isAppend: false
57
- }
58
- };
59
- }
60
-
61
- export default data;