@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,999 +0,0 @@
1
- ###############################################################################
2
- # NOT (claim header'ları): approve/reject transition'larında onaylayanın positionLevel'ı ve act_sub'ı
3
- # gateway'in ilettiği token claim header'larından (position / act_sub) alınır
4
- # (TrxApproveClaimHeadersMapping / TrxRejectClaimHeadersMapping). Bu dosya runtime'a doğrudan
5
- # gittiği için header'lar elle verilir; header yoksa gövdedeki positionLevel/act_sub fallback'tir.
6
- # approval — position-level tabanlı çok seviyeli onay subflow'u
7
- #
8
- # sub = hedef Scope instance'ının key'i (organizationKey ARTIK YOK — organizasyon
9
- # eşleşen matrisin ait olduğu scope/scopeGroup'un kendi organization
10
- # referansından otomatik türetilir).
11
- # process = opsiyonel süreç ayırıcı; approval-matrix lookup key'ine eklenir.
12
- #
13
- # Onaycı rol gate'i: evaluating-rules / next-order, güncel order'ın ilk onaycı satırının
14
- # role'ünü (matris approvers[].role, yoksa matrix.super[].role) currentApproversRole'e
15
- # yazar; pending-approval queryRoles bunu çağıranın rolüyle eşler (super için statik
16
- # idmSuperUser). Hiç role yoksa süreç approver-role-missing (final) ile biter.
17
- #
18
- # Akış: loading-scope (sub ile Scope bulunur) → loading-matrix-scope-level
19
- # (key = approval-matrix-{sub}[-{process}]) → bulunamazsa
20
- # loading-scope-group (scope.group) → loading-matrix-scopegroup-level
21
- # (key = approval-matrix-{scopeGroupKey}[-{process}]) → hangisi eşleştiyse
22
- # onun organization referansı loading-organization'a taşınır → sonrası aynı
23
- # (checking-authorization → evaluating-rules (giriş limiti dry-run kapısı YOK —
24
- # başlatıcının tavanı da sonda verifying-limit-management'ta kontrol edilir)
25
- # → checking-initiator-super-authority → [super ise completing-orders-for-super |
26
- # değilse checking-amount-before-entry-verify: amount YOKSA ya da 0 ise giriş limiti
27
- # kontrolü atlanır; amount VARSA verifying-entry-transaction-limit
28
- # (transaction-limit-verify READ-ONLY dry-run, sync; scope/scopeGroup/limitKey=process/
29
- # user=data.starter, approver GÖNDERİLMEZ — sadece başlatıcının kendi Transaction/Daily
30
- # tavanı): verify-approved → devam; aşımda (verify-transaction-exceeded /
31
- # verify-daily-exceeded / verify-no-limit) süreç HEMEN entry-limit-exceeded ile biter,
32
- # push gönderilmez] → notifying-approvers [push-notification akışı ASYNC SubProcess
33
- # olarak başlatılır: scope=sub + order'ın positionLevel'ları → aktif consent sahiplerine
34
- # Messaging push; approval beklemez, child id data.pushNotificationInstanceId'de]
35
- # → pending-approval → her "approve" çağrısı approve-received
36
- # ara state'i üzerinden DOĞRUDAN validating-approval'a geçer (approve() başına ayrı bir
37
- # limit doğrulaması ARTIK YOK; onaycının kendi onay limiti sonda, verifying-limit-
38
- # management'ta tüm onaycılarla birlikte kontrol edilir) → ... → tüm order'lar tamamlanınca
39
- # checking-amount-before-limit-management gate'i yine amount'u (ve 0'dan farklı olup
40
- # olmadığını) kontrol eder: amount YOKSA ya da 0 ise transaction-limit-management hiç
41
- # çağrılmadan doğrudan approved'a geçilir; amount VARSA ve 0'dan farklıysa
42
- # verifying-limit-management [transaction-limit-management subflow'u, limitKey=process]
43
- # çalışır → approved-end ise approved, değilse limit-management-fail (hangi kontrolün
44
- # düştüğü data.limitManagementState'ten okunur: transaction-limit-exceeded-end /
45
- # daily-limit-exceeded-end / approver-transaction-limit-exceeded-end /
46
- # approver-daily-exceeded-end / approver-no-approve-limit-end / no-limit-end).
47
- #
48
- # NOT: checking-amount-before-entry-verify (yalnızca super olmayan başlatıcı) /
49
- # checking-amount-before-limit-management iki simetrik gate'tir — amount YOKSA ya da 0
50
- # ise HER İKİSİNDE de ilgili limit subflow'u atlanır. SENARYO F tam olarak budur: amount
51
- # hiçbir noktada gönderilmeyen bir instance, tek bir transaction-limit-verify/
52
- # transaction-limit-management çağrısı yapmadan evaluating-rules → pending-approval →
53
- # approved akışını tamamlar.
54
- #
55
- # Organization yapısaldır (location/division/position) ve USER BİLGİSİ İÇERMEZ.
56
- # Onaycı, positionLevel'ını approve isteğinde beyan eder; doğrulama:
57
- # 1) organization.positionLevels içinde geçerli bir seviye mi?
58
- # 2) mevcut order'ın kuralındaki gereksinimi karşılıyor mu?
59
- #
60
- # ÖN KOŞUL (0.a - 0.t adımlarıyla bu dosyada seed edilir):
61
- # - organization: approval-org-scope-1 (active) — positionLevels: entry,
62
- # birinciOnayci, superUser, mudur
63
- # - scope-group: retail-customers (active, organization=approval-org-scope-1)
64
- # - scope-group: no-matrix-customers (active, organization=approval-org-scope-1,
65
- # hiçbir approval-matrix instance'ı yok — total failure senaryosu için)
66
- # - scope: scope-1 (active, group=retail-customers, organization=approval-org-scope-1)
67
- # - scope: scope-2 (active, group=retail-customers, organization YOK — fallback
68
- # senaryosunda organization scopeGroup'tan gelir)
69
- # - scope: scope-3 (active, group=no-matrix-customers, organization YOK)
70
- # - scope: scope-4 (active, group=retail-customers, organization=approval-org-scope-1
71
- # — SENARYO F için: amount hiç gönderilmez)
72
- # - transaction-limit-definition: retail-customers/eft için Transaction + Daily
73
- # tavanları (active, scope-1 ve scope-2'yi kapsar — scopeGroup seviyesinde
74
- # tanımlı). Bu tanımlar olmadan verifying-limit-management "no-limit-end" ile
75
- # reddeder ve süreç approved yerine limit-management-fail ile biter. scope-4
76
- # için transaction-limit-definition YOK — amount olmadığı için hiç sorgulanmaz.
77
- #
78
- # Ardından approval-matrix/execute/approval-matrix-new-run.http çalıştırılıp:
79
- # - approval-matrix-scope-1-eft (scope-1 seviyesinde, active)
80
- # - approval-matrix-retail-customers-eft (retail-customers scopeGroup
81
- # seviyesinde, active — scope-2 için scope seviyesinde matris YOK, bu
82
- # yüzden fallback ile bulunur)
83
- # - approval-matrix-scope-4 (scope-4 seviyesinde, active — approvalRules'ta
84
- # amountRange YOK, pozisyon seviyesi bazlı tek kural)
85
- # oluşturulmalı. scope-3 / no-matrix-customers için hiçbir matris oluşturulmaz.
86
- #
87
- # Senaryolar:
88
- # A) sub=scope-1 → scope seviyesinde matris bulunur → approved (tam akış; ayrıca
89
- # verifying-entry-transaction-limit'ten de geçer: entryTransactionLimitVerifyState=
90
- # verify-approved)
91
- # B) sub=scope-2 → scope seviyesinde bulunamaz, scopeGroup fallback ile bulunur
92
- # C) sub=scope-3 → hiçbir seviyede matris yok → load-matrix-failed
93
- # D) sub=geçersiz → Scope hiç bulunamaz → scope-not-found
94
- # E) sub=scope-1, user3 → initiator-not-super sonrası giriş limiti gate'i
95
- # (verifying-entry-transaction-limit) reddeder → süreç HEMEN entry-limit-exceeded ile
96
- # biter (push gönderilmez, pending-approval'a hiç girilmez)
97
- # F) sub=scope-4, amount YOK → checking-amount-before-entry-verify gate'i amount-absent
98
- # dalını izler → giriş limiti kontrolü atlanır → notifying-approvers →
99
- # pending-approval (order 1 = firstApprover) → approve() → approved (amount hiçbir
100
- # noktada gönderilmediği için checking-amount-before-limit-management gate'i de
101
- # limit subflow'unu atlar)
102
- # G) sub=scope-4, process="does-not-exist" (eşleşen hiçbir matris yok, ne scope+process
103
- # ne scopeGroup+process seviyesinde) → loading-matrix-scope-level VE
104
- # loading-matrix-scopegroup-level ikisi de process'li key ile bulamaz → process
105
- # gönderildiği için YENİ 2. tur process'siz fallback devreye girer:
106
- # loading-matrix-scope-level-no-process, approval-matrix-scope-4'ü (catch-all,
107
- # process'siz) BULUR → loading-organization → ... → approved (SENARYO F ile aynı
108
- # matris/organization, farkı sadece yanlış bir process gönderilip fallback zincirinin
109
- # çalıştığının kanıtlanması)
110
- ###############################################################################
111
- @domain = morph-idm
112
- @workflow = approval
113
- @instanceKey = approval-{{$timestamp}}
114
- @process = Transfer
115
- @organizationKey = approval-org-scope-1
116
- @scopeGroupKey = corporate-customers
117
- @emptyScopeGroupKey = no-matrix-customers
118
- @scopeKeyA = firma-1
119
- @scopeKeyB = scope-2
120
- @scopeKeyC = scope-3
121
- @scopeKeyD = scope-4
122
-
123
- ### 0.a Organization fixture — sadece location/division/position (user yok)
124
- # @name createOrganization
125
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/organization/instances/start?sync=true
126
- Accept-Language: tr-TR
127
- X-Request-Id: {{$guid}}
128
- user_reference: admin-001
129
- Content-Type: application/json
130
-
131
- {
132
- "key": "{{organizationKey}}",
133
- "tags": ["approval", "scope-1", "fixture"],
134
- "attributes": {
135
- "reference": {
136
- "domain": "morph-idm",
137
- "workflow": "scope",
138
- "key": "{{scopeKeyA}}",
139
- "version": "1.0.0"
140
- },
141
- "positionLevels": [
142
- "entry",
143
- "birinciOnayci",
144
- "superUser",
145
- "mudur"
146
- ],
147
- "children": [
148
- {
149
- "nodeType": "location",
150
- "key": "head-office",
151
- "name": "Head Office",
152
- "description": "Genel müdürlük",
153
- "locationType": "headquarters",
154
- "address": "Istanbul, Turkey",
155
- "timezone": "Europe/Istanbul",
156
- "workingHours": {
157
- "monday": "09:00-18:00",
158
- "tuesday": "09:00-18:00",
159
- "wednesday": "09:00-18:00",
160
- "thursday": "09:00-18:00",
161
- "friday": "09:00-18:00",
162
- "saturday": "closed",
163
- "sunday": "closed"
164
- },
165
- "roles": [
166
- {
167
- "role": "idm.office-access",
168
- "grant": "allow"
169
- }
170
- ],
171
- "children": [
172
- {
173
- "nodeType": "division",
174
- "key": "operations-dept",
175
- "name": "Operations Department",
176
- "description": "Operasyon birimi",
177
- "divisionType": "operational",
178
- "roles": [
179
- {
180
- "role": "idm.operations-access",
181
- "grant": "allow"
182
- }
183
- ],
184
- "children": [
185
- {
186
- "nodeType": "position",
187
- "key": "entry-clerk",
188
- "title": "Girişçi",
189
- "positionLevel": "entry",
190
- "description": "İşlem girişi yapar",
191
- "roles": [
192
- {
193
- "role": "idm.transaction-maker",
194
- "grant": "allow"
195
- }
196
- ]
197
- },
198
- {
199
- "nodeType": "position",
200
- "key": "first-approver",
201
- "title": "Birinci Onaycı",
202
- "positionLevel": "firstApprover",
203
- "description": "Birinci seviye onay verir",
204
- "roles": [
205
- {
206
- "role": "idm.transaction-approver",
207
- "grant": "allow"
208
- }
209
- ]
210
- },
211
- {
212
- "nodeType": "position",
213
- "key": "super-user",
214
- "title": "Süper Kullanıcı",
215
- "positionLevel": "superUser",
216
- "description": "Genişletilmiş yetkili kullanıcı",
217
- "roles": [
218
- {
219
- "role": "idm.transaction-approver",
220
- "grant": "allow"
221
- }
222
- ]
223
- },
224
- {
225
- "nodeType": "position",
226
- "key": "department-manager",
227
- "title": "Müdür",
228
- "positionLevel": "mudur",
229
- "description": "Nihai onay verir",
230
- "maxAssignments": 1,
231
- "roles": [
232
- {
233
- "role": "idm.transaction-approver",
234
- "grant": "allow"
235
- }
236
- ]
237
- }
238
- ]
239
- }
240
- ]
241
- }
242
- ],
243
- "metadata": {
244
- "createdAt": "2025-01-01T00:00:00Z",
245
- "version": "1.0"
246
- }
247
- }
248
- }
249
-
250
- ### 0.b Organization publish — draft → active (load filtresi active arar)
251
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/organization/instances/{{organizationKey}}/transitions/publish?sync=true
252
- Accept-Language: tr-TR
253
- X-Request-Id: {{$guid}}
254
- user_reference: admin-001
255
- Content-Type: application/json
256
-
257
- {
258
- "attributes": {}
259
- }
260
-
261
- ### 0.c Scope Group fixture — retail-customers (scope-1 ve scope-2 buna bağlı)
262
- # @name createScopeGroup
263
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/start?sync=true
264
- Accept-Language: tr-TR
265
- X-Request-Id: {{$guid}}
266
- user_reference: admin-001
267
- Content-Type: application/json
268
-
269
- {
270
- "key": "{{scopeGroupKey}}",
271
- "tags": ["approval", "fixture"],
272
- "attributes": {
273
- "organization": {
274
- "domain": "morph-idm",
275
- "workflow": "organization",
276
- "key": "{{organizationKey}}",
277
- "version": "1.0.0"
278
- },
279
- "resourceType": "individual",
280
- "consentLifetime": "P90D",
281
- "maxMembersPerScope": 50
282
- }
283
- }
284
-
285
- ### 0.d Scope Group publish — draft → active
286
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/{{scopeGroupKey}}/transitions/publish?sync=true
287
- Accept-Language: tr-TR
288
- X-Request-Id: {{$guid}}
289
- user_reference: admin-001
290
- Content-Type: application/json
291
-
292
- {
293
- "attributes": {}
294
- }
295
-
296
- ### 0.e Scope Group fixture — no-matrix-customers (scope-3 buna bağlı, hiç matrisi yok)
297
- # @name createEmptyScopeGroup
298
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/start?sync=true
299
- Accept-Language: tr-TR
300
- X-Request-Id: {{$guid}}
301
- user_reference: admin-001
302
- Content-Type: application/json
303
-
304
- {
305
- "key": "{{emptyScopeGroupKey}}",
306
- "tags": ["approval", "fixture"],
307
- "attributes": {
308
- "organization": {
309
- "domain": "morph-idm",
310
- "workflow": "organization",
311
- "key": "{{organizationKey}}",
312
- "version": "1.0.0"
313
- },
314
- "resourceType": "individual",
315
- "consentLifetime": "P90D",
316
- "maxMembersPerScope": 50
317
- }
318
- }
319
-
320
- ### 0.f Empty Scope Group publish — draft → active
321
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/{{emptyScopeGroupKey}}/transitions/publish?sync=true
322
- Accept-Language: tr-TR
323
- X-Request-Id: {{$guid}}
324
- user_reference: admin-001
325
- Content-Type: application/json
326
-
327
- {
328
- "attributes": {}
329
- }
330
-
331
- ### 0.g Scope fixture — scope-1 (kendi organization referansı VAR → scope seviyesinde eşleşecek)
332
- # @name createScopeA
333
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
334
- Accept-Language: tr-TR
335
- X-Request-Id: {{$guid}}
336
- user_reference: admin-001
337
- Content-Type: application/json
338
-
339
- {
340
- "key": "{{scopeKeyA}}",
341
- "tags": ["approval", "fixture"],
342
- "attributes": {
343
- "group": {
344
- "domain": "morph-idm",
345
- "workflow": "scope-group",
346
- "key": "{{scopeGroupKey}}",
347
- "version": "1.0.0"
348
- },
349
- "organization": {
350
- "domain": "morph-idm",
351
- "workflow": "organization",
352
- "key": "{{organizationKey}}",
353
- "version": "1.0.0"
354
- }
355
- }
356
- }
357
-
358
- ### 0.h Scope A publish — draft → active
359
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKeyA}}/transitions/publish?sync=true
360
- Accept-Language: tr-TR
361
- X-Request-Id: {{$guid}}
362
- user_reference: admin-001
363
- Content-Type: application/json
364
-
365
- {
366
- "attributes": {}
367
- }
368
-
369
- ### 0.i Scope fixture — scope-2 (kendi organization'ı YOK → fallback'te scopeGroup.organization kullanılacak)
370
- # @name createScopeB
371
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
372
- Accept-Language: tr-TR
373
- X-Request-Id: {{$guid}}
374
- user_reference: admin-001
375
- Content-Type: application/json
376
-
377
- {
378
- "key": "{{scopeKeyB}}",
379
- "tags": ["approval", "fixture"],
380
- "attributes": {
381
- "group": {
382
- "domain": "morph-idm",
383
- "workflow": "scope-group",
384
- "key": "{{scopeGroupKey}}",
385
- "version": "1.0.0"
386
- }
387
- }
388
- }
389
-
390
- ### 0.j Scope B publish — draft → active
391
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKeyB}}/transitions/publish?sync=true
392
- Accept-Language: tr-TR
393
- X-Request-Id: {{$guid}}
394
- user_reference: admin-001
395
- Content-Type: application/json
396
-
397
- {
398
- "attributes": {}
399
- }
400
-
401
- ### 0.k Scope fixture — scope-3 (no-matrix-customers grubunda, ne scope ne scopeGroup seviyesinde matris var)
402
- # @name createScopeC
403
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
404
- Accept-Language: tr-TR
405
- X-Request-Id: {{$guid}}
406
- user_reference: admin-001
407
- Content-Type: application/json
408
-
409
- {
410
- "key": "{{scopeKeyC}}",
411
- "tags": ["approval", "fixture"],
412
- "attributes": {
413
- "group": {
414
- "domain": "morph-idm",
415
- "workflow": "scope-group",
416
- "key": "{{emptyScopeGroupKey}}",
417
- "version": "1.0.0"
418
- }
419
- }
420
- }
421
-
422
- ### 0.l Scope C publish — draft → active
423
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKeyC}}/transitions/publish?sync=true
424
- Accept-Language: tr-TR
425
- X-Request-Id: {{$guid}}
426
- user_reference: admin-001
427
- Content-Type: application/json
428
-
429
- {
430
- "attributes": {}
431
- }
432
-
433
- ### 0.s Scope fixture — scope-4 (kendi organization referansı VAR, SENARYO F için: matrisi
434
- # amountRange içermeyen tek bir positionLevel-only kural, transaction-limit fixture'ı YOK
435
- # çünkü amount hiç gönderilmeyecek — verifying-entry-transaction-limit/verifying-limit-management
436
- # hiç çağrılmamalı)
437
- # @name createScopeD
438
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
439
- Accept-Language: tr-TR
440
- X-Request-Id: {{$guid}}
441
- user_reference: admin-001
442
- Content-Type: application/json
443
-
444
- {
445
- "key": "{{scopeKeyD}}",
446
- "tags": ["approval", "fixture", "no-amount"],
447
- "attributes": {
448
- "group": {
449
- "domain": "morph-idm",
450
- "workflow": "scope-group",
451
- "key": "{{scopeGroupKey}}",
452
- "version": "1.0.0"
453
- },
454
- "organization": {
455
- "domain": "morph-idm",
456
- "workflow": "organization",
457
- "key": "{{organizationKey}}",
458
- "version": "1.0.0"
459
- }
460
- }
461
- }
462
-
463
- ### 0.t Scope D publish — draft → active
464
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKeyD}}/transitions/publish?sync=true
465
- Accept-Language: tr-TR
466
- X-Request-Id: {{$guid}}
467
- user_reference: admin-001
468
- Content-Type: application/json
469
-
470
- {
471
- "attributes": {}
472
- }
473
-
474
- ### 0.m Transaction-limit fixture — retail-customers/eft tek işlem tavanı (scopeGroup only →
475
- # scope-1 VE scope-2'yi kapsar). all-orders-complete sonrası eklenen verifying-limit-management
476
- # state'i transaction-limit-management'ı çağırır; bu tanım olmadan çağrı "no-limit-end" ile
477
- # reddedilir ve süreç approved yerine limit-management-fail ile biter.
478
- # @name createTxLimit
479
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/start?sync=true
480
- Accept-Language: tr-TR
481
- X-Request-Id: {{$guid}}
482
- user_reference: admin-001
483
- Content-Type: application/json
484
-
485
- {
486
- "key": "limit-tx-retail-eft-{{$timestamp}}",
487
- "tags": ["approval", "fixture", "transaction-limit"],
488
- "attributes": {
489
- "type": "Transaction",
490
- "limitKey": "{{process}}",
491
- "currency": "TRY",
492
- "amount": 1000000,
493
- "scopeGroup": "{{scopeGroupKey}}"
494
- }
495
- }
496
-
497
- ###
498
- @txLimitId = {{createTxLimit.response.body.id}}
499
-
500
- ### 0.n Transaction-limit tek işlem tavanını aktifleştir — draft → active
501
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/{{txLimitId}}/transitions/activate?sync=true
502
- Accept-Language: tr-TR
503
- X-Request-Id: {{$guid}}
504
- user_reference: admin-001
505
- Content-Type: application/json
506
-
507
- {}
508
-
509
- ### 0.o Transaction-limit fixture — retail-customers/eft günlük tavan (aynı kapsam)
510
- # @name createDailyLimit
511
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/start?sync=true
512
- Accept-Language: tr-TR
513
- X-Request-Id: {{$guid}}
514
- user_reference: admin-001
515
- Content-Type: application/json
516
-
517
- {
518
- "key": "limit-daily-retail-eft-{{$timestamp}}",
519
- "tags": ["approval", "fixture", "transaction-limit"],
520
- "attributes": {
521
- "type": "Daily",
522
- "limitKey": "{{process}}",
523
- "currency": "TRY",
524
- "amount": 10000000,
525
- "scopeGroup": "{{scopeGroupKey}}"
526
- }
527
- }
528
-
529
- ###
530
- @dailyLimitId = {{createDailyLimit.response.body.id}}
531
-
532
- ### 0.p Transaction-limit günlük tavanını aktifleştir — draft → active
533
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/{{dailyLimitId}}/transitions/activate?sync=true
534
- Accept-Language: tr-TR
535
- X-Request-Id: {{$guid}}
536
- user_reference: admin-001
537
- Content-Type: application/json
538
-
539
- {}
540
-
541
- ### 0.q Transaction-limit fixture — user3/scope-1/eft için düşük tek işlem tavanı (user+scope
542
- # seviyesi, scopeGroup-level 0.m tanımından daha spesifik olduğu için önceliklidir; sadece
543
- # user3'ü etkiler). SENARYO E'de verifying-entry-transaction-limit gate'inin (super olmayan başlatıcı) reddini göstermek için.
544
- # @name createTxLimitUser3
545
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/start?sync=true
546
- Accept-Language: tr-TR
547
- X-Request-Id: {{$guid}}
548
- user_reference: admin-001
549
- Content-Type: application/json
550
-
551
- {
552
- "key": "limit-tx-user3-scope1-eft-{{$timestamp}}",
553
- "tags": ["approval", "fixture", "transaction-limit", "verify-gate-check"],
554
- "attributes": {
555
- "type": "Transaction",
556
- "limitKey": "{{process}}",
557
- "currency": "TRY",
558
- "amount": 1000,
559
- "scope": "{{scopeKeyA}}",
560
- "scopeGroup": "{{scopeGroupKey}}",
561
- "user": "user3"
562
- }
563
- }
564
-
565
- ###
566
- @txLimitUser3Id = {{createTxLimitUser3.response.body.id}}
567
-
568
- ### 0.r Transaction-limit (user3) tavanını aktifleştir — draft → active
569
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/{{txLimitUser3Id}}/transitions/activate?sync=true
570
- Accept-Language: tr-TR
571
- X-Request-Id: {{$guid}}
572
- user_reference: admin-001
573
- Content-Type: application/json
574
-
575
- {}
576
-
577
- ###############################################################################
578
- # Bu noktadan sonra approval-matrix/execute/approval-matrix-run.http
579
- # çalıştırılıp approval-matrix-scope-1-eft ve
580
- # approval-matrix-retail-customers-eft instance'ları publish edilmelidir.
581
- ###############################################################################
582
-
583
- ###############################################################################
584
- # SENARYO A: scope seviyesinde eşleşme (sub=scope-1) → tam akış → approved
585
- ###############################################################################
586
-
587
- ### 1. Start — approval instance'ı başlat (initiator: user1 / entry)
588
- # @name startApproval
589
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
590
- Accept-Language: tr-TR
591
- X-Request-Id: {{$guid}}
592
- Content-Type: application/json
593
-
594
- {
595
- "key": "{{instanceKey}}",
596
- "tags": ["approval", "scope-1", "eft"],
597
- "attributes": {
598
- "sub": "{{scopeKeyA}}",
599
- "process": "{{process}}",
600
- "act_sub": "user-1",
601
- "positionLevel": "entry",
602
- "amount": "5000,00",
603
- "currency": "TRY"
604
- }
605
- }
606
-
607
- ###
608
- @instanceId = {{startApproval.response.body.id}}
609
-
610
- ### 2. State — Beklenen: "pending-approval" (order 1 = firstApprover)
611
- # Otomatik geçişler: loading-scope → loading-starter-person → loading-matrix-scope-level → loading-organization
612
- # → checking-authorization → evaluating-rules → checking-initiator-super-authority
613
- # → checking-amount-before-entry-verify → verifying-entry-transaction-limit
614
- # (verify-approved; amount=5000, scopeGroup-level Transaction/Daily tavanının
615
- # [0.m/0.o, 1.000.000] çok altında) → notifying-approvers (push child async)
616
- # → pending-approval
617
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/state
618
- Accept-Language: tr-TR
619
- X-Request-Id: {{$guid}}
620
-
621
- ### 3. Data — matrix + organization.positionLevels + orderRequirements yüklendi mi?
622
- # entryTransactionLimitVerifyState = "verify-approved" (giriş limiti gate'i) olmalı;
623
- # pushNotificationInstanceId (notifying-approvers'ın başlattığı push-notification child id'si) ve
624
- # pushNotifiedOrder=1 beklenir; child'ın kendisi completed/no-recipients-end ile biter (consent yoksa ikincisi).
625
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/data
626
- Accept-Language: tr-TR
627
- X-Request-Id: {{$guid}}
628
-
629
- ### 4. Approve (order 1) — approver1 / positionLevel=firstApprover
630
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/approve?sync=true
631
- Accept-Language: tr-TR
632
- X-Request-Id: {{$guid}}
633
- act_sub: user-2
634
- position: firstApprover
635
- Content-Type: application/json
636
-
637
- {
638
- "attributes": {
639
- "act_sub": "user-2",
640
- "positionLevel": "firstApprover"
641
- }
642
- }
643
-
644
- ### 5. State — Beklenen: "pending-approval" (order 2 = mudur)
645
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/state
646
- Accept-Language: tr-TR
647
- X-Request-Id: {{$guid}}
648
-
649
- ### 6. Approve (order 2) — manager1 / positionLevel=mudur
650
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/approve?sync=true
651
- Accept-Language: tr-TR
652
- X-Request-Id: {{$guid}}
653
- act_sub: user-3
654
- position: mudur
655
- Content-Type: application/json
656
-
657
- {
658
- "attributes": {
659
- "act_sub": "user-3",
660
- "positionLevel": "mudur"
661
- }
662
- }
663
-
664
- ### 7. State — Beklenen: "approved"
665
- # Otomatik geçiş: checking-order → next-order → verifying-limit-management (transaction-limit-management
666
- # subflow'u, limitKey=eft, amount=5000) → 0.m-0.p'deki tanımlar sayesinde approved-end → approved.
667
- # Bu tanımlar yoksa (veya limit aşılırsa) sonuç "limit-management-fail" olur.
668
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/state
669
- Accept-Language: tr-TR
670
- X-Request-Id: {{$guid}}
671
-
672
- ###############################################################################
673
- # SENARYO B: scope seviyesinde bulunamaz, scopeGroup fallback ile bulunur
674
- # (sub=scope-2, matris sadece approval-matrix-retail-customers-eft'te var)
675
- ###############################################################################
676
-
677
- ### 8. Start — sub=scope-2 (scope seviyesinde matris yok, scopeGroup'a düşer)
678
- # @name startApprovalFallback
679
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
680
- Accept-Language: tr-TR
681
- X-Request-Id: {{$guid}}
682
- Content-Type: application/json
683
-
684
- {
685
- "key": "approval-fallback-{{$timestamp}}",
686
- "tags": ["approval", "scope-2", "eft", "fallback"],
687
- "attributes": {
688
- "sub": "{{scopeKeyB}}",
689
- "process": "{{process}}",
690
- "act_sub": "user1",
691
- "positionLevel": "entry",
692
- "amount": "5000,00",
693
- "currency": "TRY"
694
- }
695
- }
696
-
697
- ###
698
- @fallbackInstanceId = {{startApprovalFallback.response.body.id}}
699
-
700
- ### 9. State — Beklenen: "pending-approval"
701
- # Otomatik geçişler: loading-scope → loading-starter-person → loading-matrix-scope-level (bulunamadı)
702
- # → loading-scope-group → loading-matrix-scopegroup-level (bulundu)
703
- # → loading-organization (scopeGroup.organization) → checking-authorization
704
- # → evaluating-rules → checking-initiator-super-authority → checking-amount-before-entry-verify
705
- # → verifying-entry-transaction-limit (verify-approved) → notifying-approvers → pending-approval
706
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{fallbackInstanceId}}/functions/state
707
- Accept-Language: tr-TR
708
- X-Request-Id: {{$guid}}
709
-
710
- ###############################################################################
711
- # SENARYO C: hiçbir seviyede matris yok (sub=scope-3) → load-matrix-failed
712
- ###############################################################################
713
-
714
- ### 10. Start — sub=scope-3 (no-matrix-customers grubunda, matris hiç yok)
715
- # @name startApprovalNoMatrix
716
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
717
- Accept-Language: tr-TR
718
- X-Request-Id: {{$guid}}
719
- Content-Type: application/json
720
-
721
- {
722
- "key": "approval-no-matrix-{{$timestamp}}",
723
- "tags": ["approval", "scope-3", "negative"],
724
- "attributes": {
725
- "sub": "{{scopeKeyC}}",
726
- "process": "{{process}}",
727
- "act_sub": "user1",
728
- "positionLevel": "entry",
729
- "amount": "5000,00",
730
- "currency": "TRY"
731
- }
732
- }
733
-
734
- ###
735
- @noMatrixInstanceId = {{startApprovalNoMatrix.response.body.id}}
736
-
737
- ### 11. State — Beklenen: "load-matrix-failed"
738
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noMatrixInstanceId}}/functions/state
739
- Accept-Language: tr-TR
740
- X-Request-Id: {{$guid}}
741
-
742
- ###############################################################################
743
- # SENARYO D: sub geçersiz (eşleşen aktif Scope yok) → scope-not-found
744
- ###############################################################################
745
-
746
- ### 12. Start — sub geçersiz bir scope key'i
747
- # @name startApprovalNoScope
748
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
749
- Accept-Language: tr-TR
750
- X-Request-Id: {{$guid}}
751
- Content-Type: application/json
752
-
753
- {
754
- "key": "approval-no-scope-{{$timestamp}}",
755
- "tags": ["approval", "negative"],
756
- "attributes": {
757
- "sub": "scope-does-not-exist",
758
- "process": "{{process}}",
759
- "act_sub": "user1",
760
- "positionLevel": "entry",
761
- "amount": "5000,00",
762
- "currency": "TRY"
763
- }
764
- }
765
-
766
- ###
767
- @noScopeInstanceId = {{startApprovalNoScope.response.body.id}}
768
-
769
- ### 13. State — Beklenen: "scope-not-found"
770
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noScopeInstanceId}}/functions/state
771
- Accept-Language: tr-TR
772
- X-Request-Id: {{$guid}}
773
-
774
- ###############################################################################
775
- # NEGATİF SENARYOLAR (ayrı instance'larda deneyin)
776
- ###############################################################################
777
-
778
- ### N1. Yetkisiz başlatıcı — positionLevel=mudur (matriste sadece entry var)
779
- # @name startUnauthorized
780
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
781
- Accept-Language: tr-TR
782
- X-Request-Id: {{$guid}}
783
- Content-Type: application/json
784
-
785
- {
786
- "key": "approval-unauth-{{$timestamp}}",
787
- "tags": ["approval", "negative"],
788
- "attributes": {
789
- "sub": "{{scopeKeyA}}",
790
- "process": "{{process}}",
791
- "act_sub": "manager1",
792
- "positionLevel": "mudur",
793
- "amount": "5000,00",
794
- "currency": "TRY"
795
- }
796
- }
797
-
798
- ###
799
- @unauthId = {{startUnauthorized.response.body.id}}
800
-
801
- ### N1.b State — Beklenen: "user-not-authorized-for-transaction"
802
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{unauthId}}/functions/state
803
- Accept-Language: tr-TR
804
- X-Request-Id: {{$guid}}
805
-
806
- ### N2. Geçersiz onaycı — order1 firstApprover beklerken mudur onaylar
807
- # Beklenen: approval-invalid → pending-approval (state değişmez)
808
- # (Önce senaryo A'nın 1-3. adımlarıyla yeni bir instance'ı pending-approval'a getirin, sonra:)
809
- # PATCH .../transitions/approve
810
- # { "attributes": { "act_sub": "manager1", "positionLevel": "mudur" } }
811
-
812
- ### N3. Geçersiz seviye — organization.positionLevels'ta olmayan seviye beyan edilir
813
- # Beklenen: approval-invalid → pending-approval (state değişmez)
814
- # PATCH .../transitions/approve
815
- # { "attributes": { "act_sub": "approver1", "positionLevel": "olmayanSeviye" } }
816
-
817
- ###############################################################################
818
- # SENARYO E: giriş limiti kapısı (verifying-entry-transaction-limit) REDDEDER → süreç
819
- # entry-limit-exceeded ile biter (0.q'da seed edilen user3/scope-1/eft tavanı 1.000,
820
- # amount=5000 bunu aşıyor). Kapı checking-initiator-super-authority.initiator-not-super
821
- # yolunda, notifying-approvers'tan ÖNCE çalışır: onaycılara push gönderilmez
822
- # (pushNotificationInstanceId yazılmaz), pending-approval'a hiç girilmez.
823
- #
824
- # NOT: super başlatıcı (positionLevel matrix.super'da) bu kapıya uğramaz (bkz.
825
- # approval-super-authority.http); onun ve onaycıların tavanı sonda
826
- # verifying-limit-management'ta (bkz. approval-limit-management.http EXCEEDS) kontrol edilir.
827
- ###############################################################################
828
-
829
- ### E.1 Start — sub=scope-1, initiator: user3 / amount=5000 (user3'ün tavanı 1.000, aşılıyor)
830
- # @name startGateReject
831
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
832
- Accept-Language: tr-TR
833
- X-Request-Id: {{$guid}}
834
- Content-Type: application/json
835
-
836
- {
837
- "key": "approval-gate-reject-{{$timestamp}}",
838
- "tags": ["approval", "scope-1", "eft", "verify-gate-check"],
839
- "attributes": {
840
- "sub": "{{scopeKeyA}}",
841
- "process": "{{process}}",
842
- "act_sub": "user3",
843
- "positionLevel": "entry",
844
- "amount": "5000,00",
845
- "currency": "TRY"
846
- }
847
- }
848
-
849
- ###
850
- @gateRejectInstanceId = {{startGateReject.response.body.id}}
851
-
852
- ### E.2 State — Beklenen: "entry-limit-exceeded" (start sonrası — notifying-approvers ve
853
- # pending-approval'a hiç girilmedi). verifying-entry-transaction-limit transaction-limit-verify'i çağırdı
854
- # (user=user3, amount=5000, scope=scope-1, limitKey=eft, approver GÖNDERİLMEDİ) → 0.q'daki
855
- # 1.000 tavanı aşıldığı için verify-transaction-exceeded döndü →
856
- # EntryTransactionLimitVerifyApprovedRule false → entry-limit-exceeded.
857
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{gateRejectInstanceId}}/functions/state
858
- Accept-Language: tr-TR
859
- X-Request-Id: {{$guid}}
860
-
861
- ### E.3 Data — Beklenen: entryTransactionLimitVerifyState = "verify-transaction-exceeded"
862
- # matrix/organization/userAuthorized/matchedRules yazıldı; pushNotificationInstanceId ve
863
- # lastApproval gibi notifying-approvers/pending-approval'a özgü alanlar HİÇ yazılmadı.
864
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{gateRejectInstanceId}}/functions/data
865
- Accept-Language: tr-TR
866
- X-Request-Id: {{$guid}}
867
-
868
- ###############################################################################
869
- # SENARYO F: amount YOK → initiator-not-super sonrası checking-amount-before-
870
- # entry-verify gate'i amount-absent dalını izler → giriş limiti kontrolü
871
- # (verifying-entry-transaction-limit) atlanır → notifying-approvers →
872
- # pending-approval (order 1 = firstApprover) → approve() → checking-amount-before-
873
- # limit-management gate'i de amount-absent dalını izler (amount hâlâ yok) →
874
- # verifying-limit-management atlanır, doğrudan approved'a geçilir. transaction-
875
- # limit-verify/transaction-limit-management subflow çağrılarının hiçbiri HİÇ ÇALIŞMAZ.
876
- # transaction-limit-definition fixture'ı da YOK (gerek yok, hiç sorgulanmayacak).
877
- ###############################################################################
878
-
879
- ### F.1 Start — sub=scope-4, amount/currency body'de YOK (process de yok — catch-all matris)
880
- # @name startApprovalNoAmount
881
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
882
- Accept-Language: tr-TR
883
- X-Request-Id: {{$guid}}
884
- Content-Type: application/json
885
-
886
- {
887
- "key": "approval-no-amount-{{$timestamp}}",
888
- "tags": ["approval", "scope-4", "no-amount"],
889
- "attributes": {
890
- "sub": "{{scopeKeyD}}",
891
- "act_sub": "user1",
892
- "positionLevel": "entry"
893
- }
894
- }
895
-
896
- ###
897
- @noAmountInstanceId = {{startApprovalNoAmount.response.body.id}}
898
-
899
- ### F.2 State — Beklenen: "pending-approval" (order 1 = firstApprover) — giriş limiti
900
- # kontrolü atlanarak doğrudan evaluating-rules'a geçildi, missing-transaction-amount
901
- # ile hiç bitmedi.
902
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noAmountInstanceId}}/functions/state
903
- Accept-Language: tr-TR
904
- X-Request-Id: {{$guid}}
905
-
906
- ### F.3 Data — Beklenen: entryTransactionLimitVerifyState ve limitManagementState alanları
907
- # instance data'sında HİÇ YOK (iki limit subflow'u da hiç çağrılmadı);
908
- # userAuthorized=true VE evaluating-rules/pending-approval'a özgü alanlar
909
- # (hasMatchedRules, lastApproval vb.) YAZILDI.
910
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noAmountInstanceId}}/functions/data
911
- Accept-Language: tr-TR
912
- X-Request-Id: {{$guid}}
913
-
914
- ### F.4 Approve (order 1, TEK order) — approver1 / positionLevel=firstApprover
915
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noAmountInstanceId}}/transitions/approve?sync=true
916
- Accept-Language: tr-TR
917
- X-Request-Id: {{$guid}}
918
- act_sub: approver1
919
- position: firstApprover
920
- Content-Type: application/json
921
-
922
- {
923
- "attributes": {
924
- "act_sub": "approver1",
925
- "positionLevel": "firstApprover"
926
- }
927
- }
928
-
929
- ### F.5 State — Beklenen: "approved" — checking-amount-before-limit-management gate'i
930
- # de amount-absent dalını izleyip verifying-limit-management'ı atladı.
931
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noAmountInstanceId}}/functions/state
932
- Accept-Language: tr-TR
933
- X-Request-Id: {{$guid}}
934
-
935
- ### F.6 Data — Beklenen: limitManagementState alanı instance data'sında HİÇ YOK
936
- # (verifying-limit-management hiç çağrılmadığı için hiç yazılmadı).
937
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{noAmountInstanceId}}/functions/data
938
- Accept-Language: tr-TR
939
- X-Request-Id: {{$guid}}
940
-
941
- ###############################################################################
942
- # SENARYO G: process'siz (catch-all) matris 2. tur fallback — sub=scope-4, process=
943
- # "does-not-exist" (approval-matrix-scope-4-does-not-exist ne scope ne de
944
- # approval-matrix-corporate-customers-does-not-exist scopeGroup seviyesinde var).
945
- # Process gönderildiği için (boş değil) matrix-not-found-retry-without-process rule'u
946
- # devreye girer ve loading-matrix-scope-level-no-process'e geçilir: bu state process'i
947
- # yok sayıp approval-matrix-scope-4'ü (0.s / MATRIX 3'te seed edilen catch-all matris)
948
- # BULUR. Bu senaryo daha önce (bu fix'ten önce) doğrudan load-matrix-failed ile
949
- # biterdi — artık scope seviyesindeki process'siz fallback ile approved'a ulaşır.
950
- ###############################################################################
951
-
952
- ### G.1 Start — sub=scope-4, process="does-not-exist" (amount YOK — SENARYO F ile aynı,
953
- # tek fark process'in eşleşmeyen bir değerle gönderilmesi)
954
- # @name startApprovalProcessFallback
955
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
956
- Accept-Language: tr-TR
957
- X-Request-Id: {{$guid}}
958
- Content-Type: application/json
959
-
960
- {
961
- "key": "approval-process-fallback-{{$timestamp}}",
962
- "tags": ["approval", "scope-4", "process-fallback"],
963
- "attributes": {
964
- "sub": "{{scopeKeyD}}",
965
- "process": "does-not-exist",
966
- "act_sub": "user1",
967
- "positionLevel": "entry"
968
- }
969
- }
970
-
971
- ###
972
- @processFallbackInstanceId = {{startApprovalProcessFallback.response.body.id}}
973
-
974
- ### G.2 State — Beklenen: "pending-approval" (order 1 = firstApprover) — process'li
975
- # aramalar scope VE scopeGroup seviyesinde tükendi, process'siz 2. tur scope seviyesinde
976
- # approval-matrix-scope-4'ü buldu, load-matrix-failed'e HİÇ düşmedi.
977
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{processFallbackInstanceId}}/functions/state
978
- Accept-Language: tr-TR
979
- X-Request-Id: {{$guid}}
980
-
981
- ### G.3 Approve (order 1, TEK order) — approver1 / positionLevel=firstApprover
982
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{processFallbackInstanceId}}/transitions/approve?sync=true
983
- Accept-Language: tr-TR
984
- X-Request-Id: {{$guid}}
985
- act_sub: approver1
986
- position: firstApprover
987
- Content-Type: application/json
988
-
989
- {
990
- "attributes": {
991
- "act_sub": "approver1",
992
- "positionLevel": "firstApprover"
993
- }
994
- }
995
-
996
- ### G.4 State — Beklenen: "approved"
997
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{processFallbackInstanceId}}/functions/state
998
- Accept-Language: tr-TR
999
- X-Request-Id: {{$guid}}