@burgan-tech/morph-idm-runtime 0.0.6 → 0.0.7

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 (324) hide show
  1. package/burgan-tech-morph-idm-runtime-0.0.7.tgz +0 -0
  2. package/morph-idm/Workflows/test-consent-selection/test-flow-with-sub.json +1 -1
  3. package/morph-idm/Workflows/test-consent-selection/test-flow-with-two-sub.json +2 -2
  4. package/morph-idm/Workflows/token-process/token/src/mappings/StateMintTokenCallSessionStartMapping.csx +8 -33
  5. package/morph-idm/Workflows/token-process/token/token.json +1 -1
  6. package/package.json +1 -1
  7. package/vnext.config.json +1 -1
  8. package/burgan-tech-morph-idm-runtime-0.0.6.tgz +0 -0
  9. package/morph-idm/Extensions/.gitkeep +0 -0
  10. package/morph-idm/Functions/.gitkeep +0 -0
  11. package/morph-idm/Functions/cert/check/execute/check.http +0 -106
  12. package/morph-idm/Functions/consent/check-consent-role/execute/check-consent-role.http +0 -89
  13. package/morph-idm/Functions/consent/get-consent-role-position/execute/get-consent-role-position.http +0 -55
  14. package/morph-idm/Functions/consent/get-position/execute/get-position.http +0 -38
  15. package/morph-idm/Functions/consent/get-roles/execute/get-roles.http +0 -163
  16. package/morph-idm/Functions/customer/execute/get-customer-by-filter.http +0 -126
  17. package/morph-idm/Functions/customer-management/get-firms-by-filter/execute/get-firms-by-filter.http +0 -91
  18. package/morph-idm/Functions/device-process/forget/execute/forget.http +0 -141
  19. package/morph-idm/Functions/device-process/get-device-list/execute/get-device-list.http +0 -138
  20. package/morph-idm/Functions/device-process/get-device-token-by-reference/execute/get-device-token-by-reference.http +0 -349
  21. package/morph-idm/Functions/device-process/remove/execute/remove.http +0 -150
  22. package/morph-idm/Functions/device-process/save/execute/save.http +0 -124
  23. package/morph-idm/Functions/feature-management/dynamic-config/.gitkeep +0 -0
  24. package/morph-idm/Functions/feature-management/dynamic-config/execute/dynamic-config-reads.http +0 -43
  25. package/morph-idm/Functions/feature-management/feature-flag/.gitkeep +0 -0
  26. package/morph-idm/Functions/feature-management/feature-management-ops/.gitkeep +0 -0
  27. package/morph-idm/Functions/organization/get-organizations/execute/get-organizations.http +0 -30
  28. package/morph-idm/Functions/organization/get-position-levels-by-scope/execute/get-position-levels-by-scope.http +0 -54
  29. package/morph-idm/Functions/session/logout/execute/logout.http +0 -91
  30. package/morph-idm/Functions/sso-flow/execute/session-transfer.http +0 -132
  31. package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct-boarding.http +0 -222
  32. package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct.http +0 -121
  33. package/morph-idm/Functions/transaction-limit/verify-limit-definition/execute/verify-limit-definition.http +0 -78
  34. package/morph-idm/Functions/user/execute/get-password-history-by-filter.http +0 -66
  35. package/morph-idm/Functions/user/execute/get-security-question-history-by-user.http +0 -85
  36. package/morph-idm/Functions/user/get-users-by-scope/execute/get-users-by-scope.http +0 -73
  37. package/morph-idm/Functions/user-login/get-last-successful-corporate-logon/execute/get-last-successful-corporate-logon.http +0 -49
  38. package/morph-idm/Functions/user-login/get-last-user-logins/execute/get-last-user-logins.http +0 -96
  39. package/morph-idm/Functions/user-login/get-user-logins/execute/get-user-logins.http +0 -78
  40. package/morph-idm/Functions/zeebe-approval/get-starter-instance-id/execute/get-starter-instance-id.http +0 -64
  41. package/morph-idm/Schemas/feature-management/database-variables/.gitkeep +0 -0
  42. package/morph-idm/Schemas/feature-management/dynamic-config/.gitkeep +0 -0
  43. package/morph-idm/Schemas/feature-management/feature-flag/.gitkeep +0 -0
  44. package/morph-idm/Tasks/.gitkeep +0 -0
  45. package/morph-idm/Tasks/feature-management/database-variables/.gitkeep +0 -0
  46. package/morph-idm/Tasks/feature-management/dynamic-config/.gitkeep +0 -0
  47. package/morph-idm/Tasks/feature-management/feature-flag/.gitkeep +0 -0
  48. package/morph-idm/Tasks/feature-management/feature-management-shared/.gitkeep +0 -0
  49. package/morph-idm/TestCases/corporate-user-login-e2e.http +0 -872
  50. package/morph-idm/TestCases/limit-approval/approval-matrix-limit-definition.http +0 -182
  51. package/morph-idm/TestCases/limit-approval/approval-non-amount-subflow.http +0 -132
  52. package/morph-idm/TestCases/limit-approval/transaction-limit-definition-approval.http +0 -95
  53. package/morph-idm/TestCases/limit-definition/README.md +0 -130
  54. package/morph-idm/TestCases/limit-definition/approve-transaction.http +0 -149
  55. package/morph-idm/TestCases/limit-definition/approve.http +0 -143
  56. package/morph-idm/TestCases/limit-definition/daily-limit-definition.http +0 -399
  57. package/morph-idm/TestCases/limit-definition/transaction-limit-definition.http +0 -240
  58. package/morph-idm/TestCases/session-transfer-e2e.http +0 -344
  59. package/morph-idm/TestCases/session-transfer-e2e.sh +0 -272
  60. package/morph-idm/TestCases/sort-migration-verification.http +0 -428
  61. package/morph-idm/TestCases/test-123/.httpyac.json +0 -15
  62. package/morph-idm/TestCases/test-123/01-person.http +0 -78
  63. package/morph-idm/TestCases/test-123/02-user.http +0 -73
  64. package/morph-idm/TestCases/test-123/03-scope.http +0 -65
  65. package/morph-idm/TestCases/test-123/04-consent.http +0 -66
  66. package/morph-idm/TestCases/test-123/05-device.http +0 -86
  67. package/morph-idm/TestCases/test-123/06-user-login.http +0 -206
  68. package/morph-idm/TestCases/test-123/README.md +0 -112
  69. package/morph-idm/TestCases/test-123/cleanup.js +0 -49
  70. package/morph-idm/TestCases/test-123/cleanup.sh +0 -20
  71. package/morph-idm/TestCases/test-123/cleanup.sql +0 -45
  72. package/morph-idm/TestCases/test-123/http-client.env.json +0 -13
  73. package/morph-idm/TestCases/test-123/run-setup.sh +0 -42
  74. package/morph-idm/TestCases/test-12345/.httpyac.json +0 -16
  75. package/morph-idm/TestCases/test-12345/01-person.http +0 -79
  76. package/morph-idm/TestCases/test-12345/02-01-device-android.http +0 -258
  77. package/morph-idm/TestCases/test-12345/02-user.http +0 -97
  78. package/morph-idm/TestCases/test-12345/03-scope-2.http +0 -65
  79. package/morph-idm/TestCases/test-12345/03-scope.http +0 -65
  80. package/morph-idm/TestCases/test-12345/04-consent-1.http +0 -86
  81. package/morph-idm/TestCases/test-12345/04-consent-2.http +0 -66
  82. package/morph-idm/TestCases/test-12345/05-device.http +0 -261
  83. package/morph-idm/TestCases/test-12345/06-user-login copy.http +0 -266
  84. package/morph-idm/TestCases/test-12345/06-user-login.http +0 -266
  85. package/morph-idm/TestCases/test-12345/07-corporate-login.http +0 -282
  86. package/morph-idm/TestCases/test-auto-consent/.httpyac.json +0 -14
  87. package/morph-idm/TestCases/test-auto-consent/01-person.http +0 -66
  88. package/morph-idm/TestCases/test-auto-consent/02-user.http +0 -115
  89. package/morph-idm/TestCases/test-auto-consent/03-scope.http +0 -66
  90. package/morph-idm/TestCases/test-auto-consent/04-device.http +0 -56
  91. package/morph-idm/TestCases/test-auto-consent/05-user-login.http +0 -133
  92. package/morph-idm/TestCases/test-auto-consent/README.md +0 -36
  93. package/morph-idm/TestCases/test-auto-consent/cleanup.js +0 -47
  94. package/morph-idm/TestCases/test-auto-consent/run-setup.sh +0 -50
  95. package/morph-idm/TestCases/test-flows/test-flow-with-two-sub.http +0 -107
  96. package/morph-idm/TestCases/test-get-user-info/.httpyac.json +0 -9
  97. package/morph-idm/TestCases/test-get-user-info/get-user-info-ibweb-manual.http +0 -127
  98. package/morph-idm/TestCases/test-get-user-info/get-user-info.http +0 -282
  99. package/morph-idm/TestCases/test-login/.httpyac.json +0 -17
  100. package/morph-idm/TestCases/test-login/01-person.http +0 -79
  101. package/morph-idm/TestCases/test-login/02-01-device-android.http +0 -261
  102. package/morph-idm/TestCases/test-login/02-user.http +0 -97
  103. package/morph-idm/TestCases/test-login/03-scope.http +0 -65
  104. package/morph-idm/TestCases/test-login/04-consent-1.http +0 -86
  105. package/morph-idm/TestCases/test-login/05-device.http +0 -261
  106. package/morph-idm/TestCases/test-login/06-user-login copy.http +0 -266
  107. package/morph-idm/TestCases/test-login/06-user-login.http +0 -266
  108. package/morph-idm/TestCases/test-login/07-corporate-login.http +0 -282
  109. package/morph-idm/TestCases/test-login/README.md +0 -37
  110. package/morph-idm/TestCases/test-login/cleanup.js +0 -46
  111. package/morph-idm/TestCases/test-login/cleanup.sh +0 -20
  112. package/morph-idm/TestCases/test-login/run-setup.sh +0 -53
  113. package/morph-idm/TestCases/test-onefa-corporate/device-key.pem +0 -27
  114. package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-cert-management.http +0 -156
  115. package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-login-cert-token.http +0 -371
  116. package/morph-idm/TestCases/test-onefa-retail/onefa-retail-login-cert-token.http +0 -499
  117. package/morph-idm/TestCases/test-third-factor/.httpyac.json +0 -36
  118. package/morph-idm/TestCases/test-third-factor/lib/httpyac.sh +0 -35
  119. package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.js +0 -42
  120. package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.sh +0 -20
  121. package/morph-idm/TestCases/test-third-factor/scenarios/1-self-completed.sh +0 -25
  122. package/morph-idm/TestCases/test-third-factor/scenarios/2-native-without-device.sh +0 -34
  123. package/morph-idm/TestCases/test-third-factor/scenarios/3-native-wrong-otp.sh +0 -34
  124. package/morph-idm/TestCases/test-third-factor/scenarios/4-native-success-otp-after-wrong-otp.sh +0 -46
  125. package/morph-idm/TestCases/test-third-factor/scenarios/5-retry-count-exceed.sh +0 -37
  126. package/morph-idm/TestCases/test-third-factor/scenarios/http/06-third-factor-native-with-device.http +0 -56
  127. package/morph-idm/TestCases/test-third-factor/scenarios/http/07-third-factor-native-without-device.http +0 -91
  128. package/morph-idm/TestCases/test-third-factor/scenarios/http/08-third-factor-web-with-device.http +0 -117
  129. package/morph-idm/TestCases/test-third-factor/scenarios/http/09-third-factor-web-without-device.http +0 -164
  130. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-after-resend.sh +0 -50
  131. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-resend-after-timeout-otp.sh +0 -50
  132. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-timeout-otp.sh +0 -48
  133. package/morph-idm/TestCases/test-third-factor/setup/01-person.http +0 -157
  134. package/morph-idm/TestCases/test-third-factor/setup/02-user.http +0 -105
  135. package/morph-idm/TestCases/test-third-factor/setup/03-device.http +0 -70
  136. package/morph-idm/TestCases/test-third-factor/setup/04-native-client.http +0 -126
  137. package/morph-idm/TestCases/test-third-factor/setup/05-web-client.http +0 -126
  138. package/morph-idm/TestCases/test-third-factor/setup/cleanup.js +0 -51
  139. package/morph-idm/TestCases/test-third-factor/setup/cleanup.sh +0 -20
  140. package/morph-idm/TestCases/test-third-factor/setup/run-setup.sh +0 -34
  141. package/morph-idm/TestCases/token-mint-parity/RESULT.md +0 -48
  142. package/morph-idm/TestCases/token-sync-race.sh +0 -72
  143. package/morph-idm/TestCases/user-login-apisix.postman_collection.json +0 -1114
  144. package/morph-idm/TestCases/user-login-boweb-e2e.http +0 -123
  145. package/morph-idm/TestCases/user-login-e2e.http +0 -730
  146. package/morph-idm/TestCases/user-login-e2e.sh +0 -122
  147. package/morph-idm/Views/.gitkeep +0 -0
  148. package/morph-idm/Workflows/.gitkeep +0 -0
  149. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-change/execute/anti-phishing-image.http +0 -370
  150. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/anti-phishing-image-definition.http +0 -200
  151. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/get-security-images.http +0 -51
  152. package/morph-idm/Workflows/approval/execute/approval-corporate-customers-non-amount.http +0 -159
  153. package/morph-idm/Workflows/approval/execute/approval-corporate-customers-time-deposit.http +0 -147
  154. package/morph-idm/Workflows/approval/execute/approval-human-task-mobile.http +0 -149
  155. package/morph-idm/Workflows/approval/execute/approval-limit-management.http +0 -277
  156. package/morph-idm/Workflows/approval/execute/approval-new-reject.http +0 -67
  157. package/morph-idm/Workflows/approval/execute/approval-new.http +0 -999
  158. package/morph-idm/Workflows/approval/execute/approval-super-authority.http +0 -158
  159. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-non-amount.http +0 -70
  160. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-time-deposit.http +0 -74
  161. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-migrate-position-levels.http +0 -295
  162. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-new-run.http +0 -296
  163. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-upsert-super-authorization.http +0 -129
  164. package/morph-idm/Workflows/cert/execute/cert-cn-length.http +0 -90
  165. package/morph-idm/Workflows/cert/execute/cert.http +0 -162
  166. package/morph-idm/Workflows/cert-management/execute/cert-management.http +0 -90
  167. package/morph-idm/Workflows/channel-contract/execute/channel-contract-approval.http +0 -246
  168. package/morph-idm/Workflows/client/execute/client-AmorphieClient.http +0 -118
  169. package/morph-idm/Workflows/client/execute/client-IbWeb-session-transfer.http +0 -35
  170. package/morph-idm/Workflows/client/execute/client-OpenBanking.http +0 -411
  171. package/morph-idm/Workflows/client/execute/client-Trade.http +0 -112
  172. package/morph-idm/Workflows/client/execute/client-source-app.http +0 -88
  173. package/morph-idm/Workflows/client/execute/client-update.http +0 -795
  174. package/morph-idm/Workflows/client/execute/client.http +0 -766
  175. package/morph-idm/Workflows/client/execute/vnext-target.http +0 -416
  176. package/morph-idm/Workflows/client-credentials/execute/client-credentials.http +0 -117
  177. package/morph-idm/Workflows/consent/execute/README.md +0 -145
  178. package/morph-idm/Workflows/consent/execute/consent-manual-activation.http +0 -135
  179. package/morph-idm/Workflows/consent/execute/create-consent.http +0 -801
  180. package/morph-idm/Workflows/consent-management/consent-management.http +0 -267
  181. package/morph-idm/Workflows/consent-selection/execute/consent-selection.http +0 -200
  182. package/morph-idm/Workflows/deblock-sim-card/execute/MOBIL-ENTEGRASYON-GOREVLERI.md +0 -339
  183. package/morph-idm/Workflows/deblock-sim-card/execute/TEST-SENARYOLARI.md +0 -202
  184. package/morph-idm/Workflows/deblock-sim-card/execute/approve-contract-documents.sh +0 -63
  185. package/morph-idm/Workflows/deblock-sim-card/execute/contract-debug.sh +0 -101
  186. package/morph-idm/Workflows/deblock-sim-card/execute/deblock-sim-card-workflow.http +0 -290
  187. package/morph-idm/Workflows/device-process/device/execute/device-android.http +0 -262
  188. package/morph-idm/Workflows/device-process/device/execute/device-huawei.http +0 -219
  189. package/morph-idm/Workflows/device-process/device/execute/device-ios.http +0 -319
  190. package/morph-idm/Workflows/device-process/device/execute/device-migration.http +0 -105
  191. package/morph-idm/Workflows/device-process/device/execute/device-web.http +0 -284
  192. package/morph-idm/Workflows/device-process/device/execute/device.http +0 -269
  193. package/morph-idm/Workflows/device-process/device/execute/search.http +0 -39
  194. package/morph-idm/Workflows/device-process/device-assign/execute/device-assign.http +0 -478
  195. package/morph-idm/Workflows/device-process/device-manager/execute/device-manager.http +0 -214
  196. package/morph-idm/Workflows/device-process/device-register/execute/device-register.http +0 -566
  197. package/morph-idm/Workflows/device-process/device-unpair/execute/device-unpair.http +0 -207
  198. package/morph-idm/Workflows/feature-management/database-variables/.gitkeep +0 -0
  199. package/morph-idm/Workflows/feature-management/database-variables/execute/database-variables-lifecycle.http +0 -225
  200. package/morph-idm/Workflows/feature-management/dcs-eval/execute/dcs-eval.http +0 -28
  201. package/morph-idm/Workflows/feature-management/dynamic-config/.gitkeep +0 -0
  202. package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-evaluate.http +0 -186
  203. package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-lifecycle.http +0 -263
  204. package/morph-idm/Workflows/feature-management/feature-flag/.gitkeep +0 -0
  205. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-evaluate.http +0 -245
  206. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-lifecycle.http +0 -246
  207. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-ops.http +0 -116
  208. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-reads.http +0 -47
  209. package/morph-idm/Workflows/fraud/execute/fraud-push.http +0 -1016
  210. package/morph-idm/Workflows/get-roles/execute/get-roles.http +0 -367
  211. package/morph-idm/Workflows/introspection/execute/introspection.http +0 -69
  212. package/morph-idm/Workflows/ivr/execute/ivr-check-password.http +0 -55
  213. package/morph-idm/Workflows/ivr/execute/ivr-check-user.http +0 -56
  214. package/morph-idm/Workflows/ivr/execute/ivr-create-agent-consent.http +0 -59
  215. package/morph-idm/Workflows/ivr/execute/ivr-get-agent-company.http +0 -30
  216. package/morph-idm/Workflows/ivr/execute/ivr-revoke-agent-consent.http +0 -30
  217. package/morph-idm/Workflows/ivr/execute/ivr-set-password.http +0 -87
  218. package/morph-idm/Workflows/notification/push-notification/execute/push-notification.http +0 -261
  219. package/morph-idm/Workflows/organization/execute/create-organization-yedek.http +0 -415
  220. package/morph-idm/Workflows/organization/execute/create-organization.http +0 -346
  221. package/morph-idm/Workflows/organization/execute/retail-organization.http +0 -161
  222. package/morph-idm/Workflows/otp-auth-code/execute/otp-auth-code.http +0 -743
  223. package/morph-idm/Workflows/person/execute/person-123.http +0 -149
  224. package/morph-idm/Workflows/person/execute/person-migration.http +0 -143
  225. package/morph-idm/Workflows/person/execute/person.http +0 -149
  226. package/morph-idm/Workflows/person/firm-cdc-dispatch/execute/person-firm-cdc-dispatch.http +0 -266
  227. package/morph-idm/Workflows/remember-password/execute/remember-password.http +0 -203
  228. package/morph-idm/Workflows/role/execute/role.http +0 -142
  229. package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +0 -131
  230. package/morph-idm/Workflows/scope/execute/scope-business-hours.http +0 -138
  231. package/morph-idm/Workflows/scope/execute/scope-corporate.http +0 -165
  232. package/morph-idm/Workflows/scope/execute/scope-individual-1234567890-1234567890.http +0 -132
  233. package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +0 -133
  234. package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +0 -159
  235. package/morph-idm/Workflows/scope/execute/scope-openbanking-account.http +0 -134
  236. package/morph-idm/Workflows/scope/execute/scope-openbanking-login.http +0 -135
  237. package/morph-idm/Workflows/scope/execute/scope-openbanking-payment.http +0 -134
  238. package/morph-idm/Workflows/scope/execute/scope-restricted.http +0 -143
  239. package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +0 -224
  240. package/morph-idm/Workflows/security-check/execute/security-check-test.http +0 -88
  241. package/morph-idm/Workflows/security-check-test/execute/security-check-test.http +0 -51
  242. package/morph-idm/Workflows/security-question/security-question-change/execute/security-question-change.http +0 -324
  243. package/morph-idm/Workflows/security-question/security-question-definition/execute/security-question-definition.http +0 -372
  244. package/morph-idm/Workflows/security-question/security-question-reset/execute/security-question-reset.http +0 -97
  245. package/morph-idm/Workflows/shield-decrypt/execute/shield-decrypt.http +0 -77
  246. package/morph-idm/Workflows/shield-encrypt/execute/shield-encrypt.http +0 -80
  247. package/morph-idm/Workflows/shield-sign/execute/shield-sign.http +0 -79
  248. package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js +0 -54
  249. package/morph-idm/Workflows/shield-verify-request-signature/execute/shield-verify-request-signature.http +0 -135
  250. package/morph-idm/Workflows/shield-verify-signature/execute/shield-verify-signature.http +0 -108
  251. package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http +0 -183
  252. package/morph-idm/Workflows/simple-subflow/execute/simple-subflow.http +0 -50
  253. package/morph-idm/Workflows/sso/authorize/execute/authorize.http +0 -160
  254. package/morph-idm/Workflows/sso/authorize-route/execute/authorize-route.http +0 -169
  255. package/morph-idm/Workflows/sso/pre-login/execute/pre-login.http +0 -273
  256. package/morph-idm/Workflows/sso/token-direct/execute/token-direct.http +0 -272
  257. package/morph-idm/Workflows/sso/token-route/execute/token-route.http +0 -207
  258. package/morph-idm/Workflows/sso-flow/execute/sso-flow-auth-code.http +0 -89
  259. package/morph-idm/Workflows/sso-flow/execute/sso-flow-login.http +0 -163
  260. package/morph-idm/Workflows/sso-flow/execute/sso-flow-test-base.http +0 -178
  261. package/morph-idm/Workflows/test-consent-selection/execute/test-consent-selection.http +0 -68
  262. package/morph-idm/Workflows/test-consent-selection/execute/test-flow-with-sub.http +0 -50
  263. package/morph-idm/Workflows/test-consent-selection/execute/test-flow.http +0 -140
  264. package/morph-idm/Workflows/test-consent-selection/execute/test-sync-subprocess.http +0 -63
  265. package/morph-idm/Workflows/test-consent-selection/execute/test-user-validation.http +0 -126
  266. package/morph-idm/Workflows/third-factor/execute/third-factor.http +0 -183
  267. package/morph-idm/Workflows/third-factor-main/execute/execute/third-factor-main.http +0 -229
  268. package/morph-idm/Workflows/token-process/session/execute/session.http +0 -361
  269. package/morph-idm/Workflows/token-process/session-revoke-others/execute/session-revoke-others.http +0 -94
  270. package/morph-idm/Workflows/token-process/token/execute/README.md +0 -454
  271. package/morph-idm/Workflows/token-process/token/execute/device-key.pem +0 -27
  272. package/morph-idm/Workflows/token-process/token/execute/generate-onefa-assertion.js +0 -47
  273. package/morph-idm/Workflows/token-process/token/execute/onefa-token.http +0 -285
  274. package/morph-idm/Workflows/token-process/token/execute/setup-roles-for-token-claims.http +0 -425
  275. package/morph-idm/Workflows/token-process/token/execute/token-sync-race.http +0 -49
  276. package/morph-idm/Workflows/token-process/token/execute/token.http +0 -676
  277. package/morph-idm/Workflows/token-process/token-password-grant/execute/token-password-grant.http +0 -163
  278. package/morph-idm/Workflows/transaction-limit/cascade-approve-daily/execute/transaction-limit-cascade-approve-daily.http +0 -125
  279. package/morph-idm/Workflows/transaction-limit/cascade-approve-transaction/execute/transaction-limit-cascade-approve-transaction.http +0 -120
  280. package/morph-idm/Workflows/transaction-limit/cascade-daily/execute/transaction-limit-cascade-daily.http +0 -198
  281. package/morph-idm/Workflows/transaction-limit/cascade-transaction/execute/transaction-limit-cascade.http +0 -173
  282. package/morph-idm/Workflows/transaction-limit/definition/execute/transaction-limit-definition.http +0 -867
  283. package/morph-idm/Workflows/transaction-limit/definition-passivate/execute/transaction-limit-definition-passivate.http +0 -224
  284. package/morph-idm/Workflows/transaction-limit/definition-verify/execute/transaction-limit-definition-verify.http +0 -102
  285. package/morph-idm/Workflows/transaction-limit/execute/seed-corporate-customers-limits.sh +0 -178
  286. package/morph-idm/Workflows/transaction-limit/execute/transaction-limit-management.http +0 -984
  287. package/morph-idm/Workflows/transaction-limit/remaining/execute/transaction-limit-remaining.http +0 -103
  288. package/morph-idm/Workflows/transaction-limit/resolve/execute/transaction-limit-resolve.http +0 -96
  289. package/morph-idm/Workflows/transaction-limit/scope-bank-limit/execute/transaction-limit-scope-bank-limit.http +0 -84
  290. package/morph-idm/Workflows/transaction-limit/user-bank-limits/execute/transaction-limit-user-bank-limits.http +0 -87
  291. package/morph-idm/Workflows/transaction-limit/verify/execute/transaction-limit-verify.http +0 -212
  292. package/morph-idm/Workflows/user/create/execute/user-create-corporate.http +0 -51
  293. package/morph-idm/Workflows/user/create/execute/user-create.http +0 -135
  294. package/morph-idm/Workflows/user/get-users-by-scope/execute/get-users-by-scope.http +0 -210
  295. package/morph-idm/Workflows/user-corporate/firm-query/execute/firm-query.http +0 -87
  296. package/morph-idm/Workflows/user-corporate/onboard-dispatch/execute/user-corporate-onboard-dispatch.http +0 -105
  297. package/morph-idm/Workflows/user-corporate/provision/execute/user-corporate-provision.http +0 -631
  298. package/morph-idm/Workflows/user-corporate/provision/user-corporate-provision.flowchart.drawio +0 -88
  299. package/morph-idm/Workflows/user-corporate/remove/execute/user-corporate-remove.http +0 -152
  300. package/morph-idm/Workflows/user-corporate/rollback/execute/user-corporate-rollback.http +0 -97
  301. package/morph-idm/Workflows/user-corporate/update-provision/execute/user-corporate-update-provision.http +0 -449
  302. package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http +0 -173
  303. package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http +0 -117
  304. package/morph-idm/Workflows/user-login/execute/README-LOGIN.md +0 -535
  305. package/morph-idm/Workflows/user-login/execute/user-login-comprehensive-coverage.http +0 -1761
  306. package/morph-idm/Workflows/user-login/execute/user-login-device-assign.http +0 -497
  307. package/morph-idm/Workflows/user-login/execute/user-login.http +0 -910
  308. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-otp.http +0 -86
  309. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-push.http +0 -82
  310. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-registered-device.http +0 -111
  311. package/morph-idm/Workflows/user-login-approvement/execute/user-login-approvement-comprehensive.http +0 -1267
  312. package/morph-idm/Workflows/user-management/execute/user-management.http +0 -284
  313. package/morph-idm/Workflows/user-note/execute/user-note-backoffice.http +0 -290
  314. package/morph-idm/Workflows/user-otp-setting/execute/user-otp-setting-backoffice.http +0 -128
  315. package/morph-idm/Workflows/user-password-process/user-change-password/execute/user-change-password.http +0 -576
  316. package/morph-idm/Workflows/user-password-process/user-password/execute/user-password.http +0 -58
  317. package/morph-idm/Workflows/user-password-process/user-password-force-change/execute/user-password-force-change.http +0 -31
  318. package/morph-idm/Workflows/user-password-process/user-password-reset/execute/user-password-reset.http +0 -213
  319. package/morph-idm/Workflows/user-status/user-status-change/execute/user-status-change.http +0 -124
  320. package/morph-idm/Workflows/user-status/user-status-change-backoffice/execute/user-status-change-backoffice.http +0 -197
  321. package/morph-idm/Workflows/user-validation/execute/user-validation-standalone.http +0 -331
  322. package/morph-idm/Workflows/user-validation/execute/user-validation.http +0 -696
  323. package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-corporate-customers-non-amount.http +0 -195
  324. package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http +0 -275
@@ -1,224 +0,0 @@
1
- ### Variables
2
- # transaction-limit-definition-passivate — STANDALONE test of the child flow. ONE loop, TWO entries:
3
- # (1) mode="downgrade" (called by transaction-limit-definition.downgrade-limits): every ACTIVE definition under
4
- # (scopeGroup[, scope]) with the same limitKey/type, date-overlapping, whose amount is GREATER than `amount` → passive.
5
- # (2) no mode (called by user-corporate-rollback, or any caller): every ACTIVE definition matching the given filter
6
- # fields (scopeGroup + scope/user/limitKey/type, eq) → passive. scopeGroup alone is REJECTED (failed).
7
- # Shape: draft → collecting (page 1 on the begin-* transition; fetch-next-page self-loop, 100 rows/page, max 100 pages)
8
- # → loop → passivating | skipping → completed (all passive) | partial-waiting (skipped/truncated rows left active, ACTIVE, manual `retry`)
9
- # | search-failed-waiting (query failed, ACTIVE, manual `retry`); draft.rejected → failed (final).
10
- # Output: passivatedCount (this run), passivatedTotal (earlier runs), retryCount, lastRunAt, failedCount, failedKeys, passivateFailed, truncated, pagesFetched, failReason.
11
- # Callers (definition.downgrade-limits, rollback.passivating-limits) start this flow ASYNC (call-limit-passivate-task, child key {parentId}-limits) and do NOT wait;
12
- # the outcome is read here. `retry` re-runs the same filter from page 1: rows passivated earlier are no longer active, so only leftovers come back.
13
- # ⚠ Use a UNIQUE limitKey (e.g. Test.Downgrade) on shared environments — this flow really passivates records.
14
- //@baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
15
-
16
- @workflow = transaction-limit-definition-passivate
17
- @defWorkflow = transaction-limit-definition
18
-
19
- ###############################################################################
20
- # 0. FIXTURE — iki kişi limiti (150k ve 80k), scope firma-dg-1, limitKey Test.Downgrade, Daily
21
- ###############################################################################
22
-
23
- ### 0.1 u1 = 150.000
24
- # @name u1
25
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{defWorkflow}}/instances/start?sync=true
26
- Accept-Language: tr-TR
27
- X-Request-Id: {{$guid}}
28
- Content-Type: application/json
29
-
30
- {
31
- "key": "dg-u1-{{$timestamp}}",
32
- "tags": ["transaction-limit-definition", "downgrade-test"],
33
- "attributes": {
34
- "autoActivate": true,
35
- "updateOnConflict": true,
36
- "type": "Daily",
37
- "limitKey": "Test.Downgrade",
38
- "currency": "TRY",
39
- "amount": 150000,
40
- "scopeGroup": "corporate-customers",
41
- "scope": "firma-dg-1",
42
- "user": "dg-user-1"
43
- }
44
- }
45
- ###
46
- @u1Key = {{u1.response.body.id}}
47
-
48
- ### 0.2 u2 = 80.000
49
- # @name u2
50
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{defWorkflow}}/instances/start?sync=true
51
- Accept-Language: tr-TR
52
- X-Request-Id: {{$guid}}
53
- Content-Type: application/json
54
-
55
- {
56
- "key": "dg-u2-{{$timestamp}}",
57
- "tags": ["transaction-limit-definition", "downgrade-test"],
58
- "attributes": {
59
- "autoActivate": true,
60
- "updateOnConflict": true,
61
- "type": "Daily",
62
- "limitKey": "Test.Downgrade",
63
- "currency": "TRY",
64
- "amount": 80000,
65
- "scopeGroup": "corporate-customers",
66
- "scope": "firma-dg-1",
67
- "user": "dg-user-2"
68
- }
69
- }
70
- ###
71
- @u2Key = {{u2.response.body.id}}
72
-
73
- ###############################################################################
74
- # 1. DOWNGRADE (standalone) — scope firma-dg-1 yeni tutar 100.000
75
- # Beklenen: u1 (150k) → passive (status C), u2 (80k) → active; passivatedCount = 1
76
- ###############################################################################
77
-
78
- ### 1.1 Start downgrade
79
- # @name dg
80
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
81
- Accept-Language: tr-TR
82
- X-Request-Id: {{$guid}}
83
- Content-Type: application/json
84
-
85
- {
86
- "key": "dg-{{$timestamp}}",
87
- "tags": ["transaction-limit-definition-passivate", "test"],
88
- "attributes": {
89
- "mode": "downgrade",
90
- "scopeGroup": "corporate-customers",
91
- "scope": "firma-dg-1",
92
- "limitKey": "Test.Downgrade",
93
- "type": "Daily",
94
- "amount": 100000,
95
- "validFrom": null,
96
- "validTo": null
97
- }
98
- }
99
- ###
100
- @dgKey = {{dg.response.body.id}}
101
-
102
- ### 1.2 Downgrade state — beklenen completed
103
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{dgKey}}/functions/state
104
- Accept-Language: tr-TR
105
- X-Request-Id: {{$guid}}
106
-
107
- ### 1.3 Downgrade data — matchedLimits[], pagesFetched=1, passivatedCount=1, passivateFailed=false, truncated=false
108
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{dgKey}}/functions/data
109
- Accept-Language: tr-TR
110
- X-Request-Id: {{$guid}}
111
-
112
- ### 1.4 u1 state — beklenen passive (final)
113
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{defWorkflow}}/instances/{{u1Key}}/functions/state
114
- Accept-Language: tr-TR
115
- X-Request-Id: {{$guid}}
116
-
117
- ### 1.5 u2 state — beklenen active
118
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{defWorkflow}}/instances/{{u2Key}}/functions/state
119
- Accept-Language: tr-TR
120
- X-Request-Id: {{$guid}}
121
-
122
- ###############################################################################
123
- # 2. scopeGroup seviyesi (scope YOK) — tutar 60.000: scope VE user satırları birlikte pasife
124
- ###############################################################################
125
-
126
- ### 2.1 Start downgrade at scopeGroup level
127
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
128
- Accept-Language: tr-TR
129
- X-Request-Id: {{$guid}}
130
- Content-Type: application/json
131
-
132
- {
133
- "key": "dg-sg-{{$timestamp}}",
134
- "tags": ["transaction-limit-definition-passivate", "test"],
135
- "attributes": {
136
- "mode": "downgrade",
137
- "scopeGroup": "corporate-customers",
138
- "scope": null,
139
- "limitKey": "Test.Downgrade",
140
- "type": "Daily",
141
- "amount": 60000
142
- }
143
- }
144
-
145
- ###############################################################################
146
- # 3. PASSIVATE girişi (mode YOK) — kişi + firma filtresi: dg-user-2'nin firma-dg-1'deki TÜM aktif tanımları
147
- # Beklenen: u2 → passive; passivatedCount = 1 (tutar/limitKey filtresi yok)
148
- ###############################################################################
149
-
150
- ### 3.1 Start passivate by user+scope (user-corporate-rollback bunu gönderir)
151
- # @name pv
152
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
153
- Accept-Language: tr-TR
154
- X-Request-Id: {{$guid}}
155
- Content-Type: application/json
156
-
157
- {
158
- "key": "pv-{{$timestamp}}",
159
- "tags": ["transaction-limit-definition-passivate", "test"],
160
- "attributes": {
161
- "scopeGroup": "corporate-customers",
162
- "scope": "firma-dg-1",
163
- "user": "dg-user-2"
164
- }
165
- }
166
- ###
167
- @pvKey = {{pv.response.body.id}}
168
-
169
- ### 3.2 Passivate data — matchedCount=1, passivatedCount=1, passivateFailed=false
170
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{pvKey}}/functions/data
171
- Accept-Language: tr-TR
172
- X-Request-Id: {{$guid}}
173
-
174
- ###############################################################################
175
- # 3b. RETRY — partial-waiting / search-failed-waiting'de bekleyen instance'ı yeniden koştur (body yok)
176
- ###############################################################################
177
-
178
- ### 3b.1 Retry (instance partial-waiting ya da search-failed-waiting'de olmalı; completed/failed'da 400 döner)
179
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{pvKey}}/transitions/retry?sync=true
180
- Accept-Language: tr-TR
181
- X-Request-Id: {{$guid}}
182
- Content-Type: application/json
183
-
184
- {}
185
-
186
- ###############################################################################
187
- # 4. RED senaryoları — hiçbir kayıt değişmez, state failed (final), passivateFailed=true + failReason "rejected: ..."
188
- ###############################################################################
189
-
190
- ### 4.1 Yalnız scopeGroup (bütün grubu kapatma koruması)
191
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
192
- Accept-Language: tr-TR
193
- X-Request-Id: {{$guid}}
194
- Content-Type: application/json
195
-
196
- {
197
- "key": "pv-rej-{{$timestamp}}",
198
- "tags": ["transaction-limit-definition-passivate", "test"],
199
- "attributes": { "scopeGroup": "corporate-customers" }
200
- }
201
-
202
- ### 4.2 mode=downgrade ama amount yok
203
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
204
- Accept-Language: tr-TR
205
- X-Request-Id: {{$guid}}
206
- Content-Type: application/json
207
-
208
- {
209
- "key": "dg-rej-{{$timestamp}}",
210
- "tags": ["transaction-limit-definition-passivate", "test"],
211
- "attributes": { "mode": "downgrade", "scopeGroup": "corporate-customers", "scope": "firma-dg-1", "limitKey": "Test.Downgrade", "type": "Daily" }
212
- }
213
-
214
- ###############################################################################
215
- # 5. TEMİZLİK — kalan Test.Downgrade kayıtlarını kapat
216
- ###############################################################################
217
-
218
- ### 5.1 u2 passivate (final) — 3.1 zaten pasife aldıysa 4xx normal
219
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{defWorkflow}}/instances/{{u2Key}}/transitions/passivate?sync=true
220
- Accept-Language: tr-TR
221
- X-Request-Id: {{$guid}}
222
- Content-Type: application/json
223
-
224
- {}
@@ -1,102 +0,0 @@
1
- ### Variables
2
- @baseUrl = http://localhost:4251
3
- @apiVersion = v1
4
- @domain = morph-idm
5
- @workflow = transaction-limit-definition-verify
6
-
7
- ### -----------------------------------------------------------------------------
8
- ### definition-verify = bir limit TANIMININ (amount) banka/scope tavanını aşıp aşmadığını
9
- ### kontrol eden dry-run (kayıt oluşturmaz). Akış: check-scope-limit → check-scopegroup-limit.
10
- ### Terminaller:
11
- ### definition-allowed-end → uygun
12
- ### exceeds-scope-limit-end → scope tavanını aştı
13
- ### exceeds-scope-group-limit-end → kurumsal/banka tavanını aştı
14
- ### no-bank-limit-end → banka tavanı tanımsız (fail-closed)
15
- ###
16
- ### YERELDE MEVCUT scopeGroup tavanı (test verisi): scopeGroup=sg-20, type=Daily
17
- ### EFT → 90.000 (limitKey'e özel)
18
- ### Transaction type → tavan YOK (no-bank-limit)
19
- ### scope-level tavan yok → scope kontrolü boş geçer, kurumsal kontrol karar verir.
20
- ###
21
- ### NOT: limitKey artık ZORUNLU. key'siz (genel) tanım kaldırıldığı için "bu ürünün tavanı
22
- ### yoksa genel tavana düş" davranışı yok. Tavanı olmayan bir ürün no-bank-limit-end'e gider.
23
- ### ⚠️ Önce VS Code'da transaction-limit-definition-verify'ı re-sync et.
24
- ### -----------------------------------------------------------------------------
25
- @scopeGroup = sg-20
26
- @scope = corporate-firm-test
27
-
28
- ### 1) ALLOWED — EFT/Daily/50.000 ≤ 90.000 → definition-allowed-end
29
- # @name t1
30
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
31
- Content-Type: application/json
32
-
33
- {
34
- "key": "defverify-t1-{{$timestamp}}",
35
- "tags": ["test", "definition-verify"],
36
- "attributes": { "scopeGroup": "{{scopeGroup}}", "scope": "{{scope}}", "limitKey": "EFT", "type": "Daily", "amount": 50000 }
37
- }
38
-
39
- ### 1b) state — expect definition-allowed-end
40
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t1.request.body.$.key}}/functions/state
41
-
42
- ### 2) EXCEEDS (exact) — EFT/Daily/95.000 > 90.000 → exceeds-scope-group-limit-end
43
- # @name t2
44
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
45
- Content-Type: application/json
46
-
47
- {
48
- "key": "defverify-t2-{{$timestamp}}",
49
- "tags": ["test", "definition-verify"],
50
- "attributes": { "scopeGroup": "{{scopeGroup}}", "scope": "{{scope}}", "limitKey": "EFT", "type": "Daily", "amount": 95000 }
51
- }
52
-
53
- ### 2b) state — expect exceeds-scope-group-limit-end
54
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t2.request.body.$.key}}/functions/state
55
-
56
- ### 3) NO-BANK-LIMIT — havale/Daily: bu ürüne ait tavan yok → no-bank-limit-end
57
- ### Eskiden key'siz genel tavana (100.000) düşerdi; key zorunlu olduğu için artık düşmez.
58
- # @name t3
59
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
60
- Content-Type: application/json
61
-
62
- {
63
- "key": "defverify-t3-{{$timestamp}}",
64
- "tags": ["test", "definition-verify"],
65
- "attributes": { "scopeGroup": "{{scopeGroup}}", "scope": "{{scope}}", "limitKey": "havale", "type": "Daily", "amount": 50000 }
66
- }
67
-
68
- ### 3b) state — expect no-bank-limit-end
69
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t3.request.body.$.key}}/functions/state
70
-
71
- ### 4) limitKey EKSIK — bu flow'un start transition'ında şema yok, o yüzden istek kabul edilir
72
- ### ama check-scope-limit mapping'i "limitKey is required for definition-verify" ile hata verir.
73
- ### Beklenen: instance draft'ta takılır / task hatası. (Çağıran akışlar limitKey'i her zaman gönderir.)
74
- # @name t4
75
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
76
- Content-Type: application/json
77
-
78
- {
79
- "key": "defverify-t4-{{$timestamp}}",
80
- "tags": ["test", "definition-verify"],
81
- "attributes": { "scopeGroup": "{{scopeGroup}}", "scope": "{{scope}}", "type": "Daily", "amount": 120000 }
82
- }
83
-
84
- ### 4b) state — limitKey eksikliğinin nasıl yansıdığını gör
85
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t4.request.body.$.key}}/functions/state
86
-
87
- ### 5) NO-BANK-LIMIT — EFT/Transaction → Transaction tavanı YOK → no-bank-limit-end (fail-closed)
88
- # @name t5
89
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
90
- Content-Type: application/json
91
-
92
- {
93
- "key": "defverify-t5-{{$timestamp}}",
94
- "tags": ["test", "definition-verify"],
95
- "attributes": { "scopeGroup": "{{scopeGroup}}", "scope": "{{scope}}", "limitKey": "EFT", "type": "Transaction", "amount": 10000 }
96
- }
97
-
98
- ### 5b) state — expect no-bank-limit-end
99
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t5.request.body.$.key}}/functions/state
100
-
101
- ### 6) data — çözülen tavan/istenen tutarı gör (limitAmount / requestedAmount / limitInfo)
102
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{t2.request.body.$.key}}/functions/data
@@ -1,178 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Seed scopeGroup-level transaction-limit-definition records for corporate-customers.
3
- #
4
- # Amounts:
5
- # Daily / ApproveDaily → 50000
6
- # Transaction / ApproveTransaction → 5000
7
- #
8
- # Usage:
9
- # ./seed-corporate-customers-limits.sh
10
- # BASE_URL=http://localhost:4251 ./seed-corporate-customers-limits.sh # local override
11
- # DRY_RUN=1 ./seed-corporate-customers-limits.sh # only print curl commands
12
-
13
- set -euo pipefail
14
-
15
- BASE_URL="${BASE_URL:-https://test-vnext-morph-idm.apps.nonprod.ebt.bank}"
16
- # Local Docker runtime expects /api/v1/... (not /api/1/...)
17
- API_VERSION="${API_VERSION:-v1}"
18
- DOMAIN="${DOMAIN:-morph-idm}"
19
- WORKFLOW="${WORKFLOW:-transaction-limit-definition}"
20
- SCOPE_GROUP="${SCOPE_GROUP:-corporate-customers}"
21
- CURRENCY="${CURRENCY:-TRY}"
22
- DRY_RUN="${DRY_RUN:-0}"
23
- # Test nonprod uses a self-signed chain; skip TLS verify by default.
24
- INSECURE="${INSECURE:-1}"
25
-
26
- DAILY_AMOUNT="${DAILY_AMOUNT:-500000}"
27
- APPROVE_DAILY_AMOUNT="${APPROVE_DAILY_AMOUNT:-500000}"
28
- TRANSACTION_AMOUNT="${TRANSACTION_AMOUNT:-5000}"
29
- APPROVE_TRANSACTION_AMOUNT="${APPROVE_TRANSACTION_AMOUNT:-5000}"
30
-
31
- CURL_OPTS=(-sS)
32
- if [[ "${INSECURE}" == "1" ]]; then
33
- CURL_OPTS+=(-k)
34
- fi
35
-
36
- START_URL="${BASE_URL}/api/${API_VERSION}/${DOMAIN}/workflows/${WORKFLOW}/instances/start?sync=true"
37
-
38
- LIMIT_KEYS=(
39
- "accounts.timeDeposit"
40
- "approvals.bulk"
41
- "approvals.credit"
42
- "approvals.investment"
43
- "approvals.payment"
44
- "approvals.transfer"
45
- "cashManagement.cashTransfer"
46
- "cashManagement.checkCollection"
47
- "cashManagement.corporateCollection"
48
- "cashManagement.pos"
49
- "cashManagement.promissoryNote"
50
- "credits.cashDisbursement"
51
- "credits.earlyClosure"
52
- "credits.nonCash"
53
- "credits.payment"
54
- "credits.revolvingDisbursement"
55
- "eInstruction.autoPayment"
56
- "eInstruction.billPayment"
57
- "eInstruction.cancelUpdate"
58
- "eInstruction.regularTransfer"
59
- "eInstruction.salaryPayment"
60
- "foreignTrade.exportCollection"
61
- "foreignTrade.exportLc"
62
- "foreignTrade.fxTransfer"
63
- "foreignTrade.importLc"
64
- "foreignTrade.importPayment"
65
- "investment.burganTransfer"
66
- "investment.fx"
67
- "investment.gold"
68
- "investment.moneyMarketFund"
69
- "investment.silver"
70
- "investment.tefasFund"
71
- "payments.autoBillPayment"
72
- "payments.billPayment"
73
- "payments.crypto"
74
- "payments.gamesOfChance"
75
- "payments.socialSecurity"
76
- "transfers.fast"
77
- "transfers.fx"
78
- "transfers.interbank"
79
- "transfers.intrabank"
80
- "transfers.ownAccount"
81
- )
82
-
83
- # type|amount pairs (scopeGroup-level only: no user, no scope)
84
- TYPES=(
85
- "Daily|${DAILY_AMOUNT}"
86
- "ApproveDaily|${APPROVE_DAILY_AMOUNT}"
87
- "Transaction|${TRANSACTION_AMOUNT}"
88
- "ApproveTransaction|${APPROVE_TRANSACTION_AMOUNT}"
89
- )
90
-
91
- ok=0
92
- fail=0
93
- total=$(( ${#LIMIT_KEYS[@]} * ${#TYPES[@]} ))
94
-
95
- echo "BASE_URL = ${BASE_URL}"
96
- echo "SCOPE_GROUP = ${SCOPE_GROUP}"
97
- echo "CURRENCY = ${CURRENCY}"
98
- echo "INSECURE = ${INSECURE}"
99
- echo "TOTAL CALLS = ${total}"
100
- echo "DRY_RUN = ${DRY_RUN}"
101
- echo "----------------------------------------"
102
-
103
- create_limit() {
104
- local limit_key="$1"
105
- local type="$2"
106
- local amount="$3"
107
-
108
- # Stable key so re-runs with updateOnConflict stay deterministic.
109
- # Dots in limitKey are kept (matches project key style).
110
- local instance_key="${SCOPE_GROUP}-${limit_key}-${type}"
111
-
112
- local payload
113
- payload=$(cat <<EOF
114
- {
115
- "key": "${instance_key}",
116
- "tags": ["transaction-limit-definition", "seed", "${SCOPE_GROUP}", "${CURRENCY}"],
117
- "attributes": {
118
- "autoActivate": true,
119
- "updateOnConflict": true,
120
- "type": "${type}",
121
- "limitKey": "${limit_key}",
122
- "currency": "${CURRENCY}",
123
- "amount": ${amount},
124
- "scopeGroup": "${SCOPE_GROUP}"
125
- }
126
- }
127
- EOF
128
- )
129
-
130
- if [[ "${DRY_RUN}" == "1" ]]; then
131
- echo
132
- echo "# ${limit_key} / ${type} = ${amount}"
133
- insecure_flag=""
134
- [[ "${INSECURE}" == "1" ]] && insecure_flag=" -k"
135
- cat <<EOF
136
- curl -sS${insecure_flag} -X POST '${START_URL}' \\
137
- -H 'Accept-Language: tr-TR' \\
138
- -H 'Content-Type: application/json' \\
139
- -H 'X-Request-Id: $(uuidgen 2>/dev/null || echo seed-$(date +%s)-$$)' \\
140
- -d '${payload}'
141
- EOF
142
- return 0
143
- fi
144
-
145
- local http_code body
146
- body=$(curl "${CURL_OPTS[@]}" -w "\n%{http_code}" -X POST "${START_URL}" \
147
- -H "Accept-Language: tr-TR" \
148
- -H "Content-Type: application/json" \
149
- -H "X-Request-Id: $(uuidgen 2>/dev/null || echo seed-$(date +%s)-$$)" \
150
- -d "${payload}") || true
151
-
152
- http_code=$(echo "${body}" | tail -n1)
153
- body=$(echo "${body}" | sed '$d')
154
-
155
- if [[ "${http_code}" =~ ^2 ]]; then
156
- echo "OK [${http_code}] ${limit_key} / ${type} = ${amount} key=${instance_key}"
157
- ok=$((ok + 1))
158
- else
159
- echo "FAIL[${http_code}] ${limit_key} / ${type} = ${amount} key=${instance_key}"
160
- echo " ${body}"
161
- fail=$((fail + 1))
162
- fi
163
- }
164
-
165
- for limit_key in "${LIMIT_KEYS[@]}"; do
166
- for entry in "${TYPES[@]}"; do
167
- IFS='|' read -r type amount <<< "${entry}"
168
- create_limit "${limit_key}" "${type}" "${amount}"
169
- done
170
- done
171
-
172
- echo "----------------------------------------"
173
- if [[ "${DRY_RUN}" == "1" ]]; then
174
- echo "Dry-run done. ${total} curl commands printed."
175
- else
176
- echo "Done. ok=${ok} fail=${fail} total=${total}"
177
- [[ "${fail}" -eq 0 ]] || exit 1
178
- fi