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

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