@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.
- package/burgan-tech-morph-idm-runtime-0.0.7.tgz +0 -0
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-sub.json +1 -1
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-two-sub.json +2 -2
- package/morph-idm/Workflows/token-process/token/src/mappings/StateMintTokenCallSessionStartMapping.csx +8 -33
- package/morph-idm/Workflows/token-process/token/token.json +1 -1
- package/package.json +1 -1
- package/vnext.config.json +1 -1
- package/burgan-tech-morph-idm-runtime-0.0.6.tgz +0 -0
- package/morph-idm/Extensions/.gitkeep +0 -0
- package/morph-idm/Functions/.gitkeep +0 -0
- package/morph-idm/Functions/cert/check/execute/check.http +0 -106
- package/morph-idm/Functions/consent/check-consent-role/execute/check-consent-role.http +0 -89
- package/morph-idm/Functions/consent/get-consent-role-position/execute/get-consent-role-position.http +0 -55
- package/morph-idm/Functions/consent/get-position/execute/get-position.http +0 -38
- package/morph-idm/Functions/consent/get-roles/execute/get-roles.http +0 -163
- package/morph-idm/Functions/customer/execute/get-customer-by-filter.http +0 -126
- package/morph-idm/Functions/customer-management/get-firms-by-filter/execute/get-firms-by-filter.http +0 -91
- package/morph-idm/Functions/device-process/forget/execute/forget.http +0 -141
- package/morph-idm/Functions/device-process/get-device-list/execute/get-device-list.http +0 -138
- package/morph-idm/Functions/device-process/get-device-token-by-reference/execute/get-device-token-by-reference.http +0 -349
- package/morph-idm/Functions/device-process/remove/execute/remove.http +0 -150
- package/morph-idm/Functions/device-process/save/execute/save.http +0 -124
- package/morph-idm/Functions/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/dynamic-config/execute/dynamic-config-reads.http +0 -43
- package/morph-idm/Functions/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/feature-management-ops/.gitkeep +0 -0
- package/morph-idm/Functions/organization/get-organizations/execute/get-organizations.http +0 -30
- package/morph-idm/Functions/organization/get-position-levels-by-scope/execute/get-position-levels-by-scope.http +0 -54
- package/morph-idm/Functions/session/logout/execute/logout.http +0 -91
- package/morph-idm/Functions/sso-flow/execute/session-transfer.http +0 -132
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct-boarding.http +0 -222
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct.http +0 -121
- package/morph-idm/Functions/transaction-limit/verify-limit-definition/execute/verify-limit-definition.http +0 -78
- package/morph-idm/Functions/user/execute/get-password-history-by-filter.http +0 -66
- package/morph-idm/Functions/user/execute/get-security-question-history-by-user.http +0 -85
- package/morph-idm/Functions/user/get-users-by-scope/execute/get-users-by-scope.http +0 -73
- package/morph-idm/Functions/user-login/get-last-successful-corporate-logon/execute/get-last-successful-corporate-logon.http +0 -49
- package/morph-idm/Functions/user-login/get-last-user-logins/execute/get-last-user-logins.http +0 -96
- package/morph-idm/Functions/user-login/get-user-logins/execute/get-user-logins.http +0 -78
- package/morph-idm/Functions/zeebe-approval/get-starter-instance-id/execute/get-starter-instance-id.http +0 -64
- package/morph-idm/Schemas/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-management-shared/.gitkeep +0 -0
- package/morph-idm/TestCases/corporate-user-login-e2e.http +0 -872
- package/morph-idm/TestCases/limit-approval/approval-matrix-limit-definition.http +0 -182
- package/morph-idm/TestCases/limit-approval/approval-non-amount-subflow.http +0 -132
- package/morph-idm/TestCases/limit-approval/transaction-limit-definition-approval.http +0 -95
- package/morph-idm/TestCases/limit-definition/README.md +0 -130
- package/morph-idm/TestCases/limit-definition/approve-transaction.http +0 -149
- package/morph-idm/TestCases/limit-definition/approve.http +0 -143
- package/morph-idm/TestCases/limit-definition/daily-limit-definition.http +0 -399
- package/morph-idm/TestCases/limit-definition/transaction-limit-definition.http +0 -240
- package/morph-idm/TestCases/session-transfer-e2e.http +0 -344
- package/morph-idm/TestCases/session-transfer-e2e.sh +0 -272
- package/morph-idm/TestCases/sort-migration-verification.http +0 -428
- package/morph-idm/TestCases/test-123/.httpyac.json +0 -15
- package/morph-idm/TestCases/test-123/01-person.http +0 -78
- package/morph-idm/TestCases/test-123/02-user.http +0 -73
- package/morph-idm/TestCases/test-123/03-scope.http +0 -65
- package/morph-idm/TestCases/test-123/04-consent.http +0 -66
- package/morph-idm/TestCases/test-123/05-device.http +0 -86
- package/morph-idm/TestCases/test-123/06-user-login.http +0 -206
- package/morph-idm/TestCases/test-123/README.md +0 -112
- package/morph-idm/TestCases/test-123/cleanup.js +0 -49
- package/morph-idm/TestCases/test-123/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-123/cleanup.sql +0 -45
- package/morph-idm/TestCases/test-123/http-client.env.json +0 -13
- package/morph-idm/TestCases/test-123/run-setup.sh +0 -42
- package/morph-idm/TestCases/test-12345/.httpyac.json +0 -16
- package/morph-idm/TestCases/test-12345/01-person.http +0 -79
- package/morph-idm/TestCases/test-12345/02-01-device-android.http +0 -258
- package/morph-idm/TestCases/test-12345/02-user.http +0 -97
- package/morph-idm/TestCases/test-12345/03-scope-2.http +0 -65
- package/morph-idm/TestCases/test-12345/03-scope.http +0 -65
- package/morph-idm/TestCases/test-12345/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-12345/04-consent-2.http +0 -66
- package/morph-idm/TestCases/test-12345/05-device.http +0 -261
- package/morph-idm/TestCases/test-12345/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-12345/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-12345/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-auto-consent/.httpyac.json +0 -14
- package/morph-idm/TestCases/test-auto-consent/01-person.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/02-user.http +0 -115
- package/morph-idm/TestCases/test-auto-consent/03-scope.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/04-device.http +0 -56
- package/morph-idm/TestCases/test-auto-consent/05-user-login.http +0 -133
- package/morph-idm/TestCases/test-auto-consent/README.md +0 -36
- package/morph-idm/TestCases/test-auto-consent/cleanup.js +0 -47
- package/morph-idm/TestCases/test-auto-consent/run-setup.sh +0 -50
- package/morph-idm/TestCases/test-flows/test-flow-with-two-sub.http +0 -107
- package/morph-idm/TestCases/test-get-user-info/.httpyac.json +0 -9
- package/morph-idm/TestCases/test-get-user-info/get-user-info-ibweb-manual.http +0 -127
- package/morph-idm/TestCases/test-get-user-info/get-user-info.http +0 -282
- package/morph-idm/TestCases/test-login/.httpyac.json +0 -17
- package/morph-idm/TestCases/test-login/01-person.http +0 -79
- package/morph-idm/TestCases/test-login/02-01-device-android.http +0 -261
- package/morph-idm/TestCases/test-login/02-user.http +0 -97
- package/morph-idm/TestCases/test-login/03-scope.http +0 -65
- package/morph-idm/TestCases/test-login/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-login/05-device.http +0 -261
- package/morph-idm/TestCases/test-login/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-login/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-login/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-login/README.md +0 -37
- package/morph-idm/TestCases/test-login/cleanup.js +0 -46
- package/morph-idm/TestCases/test-login/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-login/run-setup.sh +0 -53
- package/morph-idm/TestCases/test-onefa-corporate/device-key.pem +0 -27
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-cert-management.http +0 -156
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-login-cert-token.http +0 -371
- package/morph-idm/TestCases/test-onefa-retail/onefa-retail-login-cert-token.http +0 -499
- package/morph-idm/TestCases/test-third-factor/.httpyac.json +0 -36
- package/morph-idm/TestCases/test-third-factor/lib/httpyac.sh +0 -35
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.js +0 -42
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/scenarios/1-self-completed.sh +0 -25
- package/morph-idm/TestCases/test-third-factor/scenarios/2-native-without-device.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/3-native-wrong-otp.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/4-native-success-otp-after-wrong-otp.sh +0 -46
- package/morph-idm/TestCases/test-third-factor/scenarios/5-retry-count-exceed.sh +0 -37
- package/morph-idm/TestCases/test-third-factor/scenarios/http/06-third-factor-native-with-device.http +0 -56
- package/morph-idm/TestCases/test-third-factor/scenarios/http/07-third-factor-native-without-device.http +0 -91
- package/morph-idm/TestCases/test-third-factor/scenarios/http/08-third-factor-web-with-device.http +0 -117
- package/morph-idm/TestCases/test-third-factor/scenarios/http/09-third-factor-web-without-device.http +0 -164
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-after-resend.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-resend-after-timeout-otp.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-timeout-otp.sh +0 -48
- package/morph-idm/TestCases/test-third-factor/setup/01-person.http +0 -157
- package/morph-idm/TestCases/test-third-factor/setup/02-user.http +0 -105
- package/morph-idm/TestCases/test-third-factor/setup/03-device.http +0 -70
- package/morph-idm/TestCases/test-third-factor/setup/04-native-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/05-web-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.js +0 -51
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/setup/run-setup.sh +0 -34
- package/morph-idm/TestCases/token-mint-parity/RESULT.md +0 -48
- package/morph-idm/TestCases/token-sync-race.sh +0 -72
- package/morph-idm/TestCases/user-login-apisix.postman_collection.json +0 -1114
- package/morph-idm/TestCases/user-login-boweb-e2e.http +0 -123
- package/morph-idm/TestCases/user-login-e2e.http +0 -730
- package/morph-idm/TestCases/user-login-e2e.sh +0 -122
- package/morph-idm/Views/.gitkeep +0 -0
- package/morph-idm/Workflows/.gitkeep +0 -0
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-change/execute/anti-phishing-image.http +0 -370
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/anti-phishing-image-definition.http +0 -200
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/get-security-images.http +0 -51
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-non-amount.http +0 -159
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-time-deposit.http +0 -147
- package/morph-idm/Workflows/approval/execute/approval-human-task-mobile.http +0 -149
- package/morph-idm/Workflows/approval/execute/approval-limit-management.http +0 -277
- package/morph-idm/Workflows/approval/execute/approval-new-reject.http +0 -67
- package/morph-idm/Workflows/approval/execute/approval-new.http +0 -999
- package/morph-idm/Workflows/approval/execute/approval-super-authority.http +0 -158
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-non-amount.http +0 -70
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-time-deposit.http +0 -74
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-migrate-position-levels.http +0 -295
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-new-run.http +0 -296
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-upsert-super-authorization.http +0 -129
- package/morph-idm/Workflows/cert/execute/cert-cn-length.http +0 -90
- package/morph-idm/Workflows/cert/execute/cert.http +0 -162
- package/morph-idm/Workflows/cert-management/execute/cert-management.http +0 -90
- package/morph-idm/Workflows/channel-contract/execute/channel-contract-approval.http +0 -246
- package/morph-idm/Workflows/client/execute/client-AmorphieClient.http +0 -118
- package/morph-idm/Workflows/client/execute/client-IbWeb-session-transfer.http +0 -35
- package/morph-idm/Workflows/client/execute/client-OpenBanking.http +0 -411
- package/morph-idm/Workflows/client/execute/client-Trade.http +0 -112
- package/morph-idm/Workflows/client/execute/client-source-app.http +0 -88
- package/morph-idm/Workflows/client/execute/client-update.http +0 -795
- package/morph-idm/Workflows/client/execute/client.http +0 -766
- package/morph-idm/Workflows/client/execute/vnext-target.http +0 -416
- package/morph-idm/Workflows/client-credentials/execute/client-credentials.http +0 -117
- package/morph-idm/Workflows/consent/execute/README.md +0 -145
- package/morph-idm/Workflows/consent/execute/consent-manual-activation.http +0 -135
- package/morph-idm/Workflows/consent/execute/create-consent.http +0 -801
- package/morph-idm/Workflows/consent-management/consent-management.http +0 -267
- package/morph-idm/Workflows/consent-selection/execute/consent-selection.http +0 -200
- package/morph-idm/Workflows/deblock-sim-card/execute/MOBIL-ENTEGRASYON-GOREVLERI.md +0 -339
- package/morph-idm/Workflows/deblock-sim-card/execute/TEST-SENARYOLARI.md +0 -202
- package/morph-idm/Workflows/deblock-sim-card/execute/approve-contract-documents.sh +0 -63
- package/morph-idm/Workflows/deblock-sim-card/execute/contract-debug.sh +0 -101
- package/morph-idm/Workflows/deblock-sim-card/execute/deblock-sim-card-workflow.http +0 -290
- package/morph-idm/Workflows/device-process/device/execute/device-android.http +0 -262
- package/morph-idm/Workflows/device-process/device/execute/device-huawei.http +0 -219
- package/morph-idm/Workflows/device-process/device/execute/device-ios.http +0 -319
- package/morph-idm/Workflows/device-process/device/execute/device-migration.http +0 -105
- package/morph-idm/Workflows/device-process/device/execute/device-web.http +0 -284
- package/morph-idm/Workflows/device-process/device/execute/device.http +0 -269
- package/morph-idm/Workflows/device-process/device/execute/search.http +0 -39
- package/morph-idm/Workflows/device-process/device-assign/execute/device-assign.http +0 -478
- package/morph-idm/Workflows/device-process/device-manager/execute/device-manager.http +0 -214
- package/morph-idm/Workflows/device-process/device-register/execute/device-register.http +0 -566
- package/morph-idm/Workflows/device-process/device-unpair/execute/device-unpair.http +0 -207
- package/morph-idm/Workflows/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/database-variables/execute/database-variables-lifecycle.http +0 -225
- package/morph-idm/Workflows/feature-management/dcs-eval/execute/dcs-eval.http +0 -28
- package/morph-idm/Workflows/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-evaluate.http +0 -186
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-lifecycle.http +0 -263
- package/morph-idm/Workflows/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-evaluate.http +0 -245
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-lifecycle.http +0 -246
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-ops.http +0 -116
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-reads.http +0 -47
- package/morph-idm/Workflows/fraud/execute/fraud-push.http +0 -1016
- package/morph-idm/Workflows/get-roles/execute/get-roles.http +0 -367
- package/morph-idm/Workflows/introspection/execute/introspection.http +0 -69
- package/morph-idm/Workflows/ivr/execute/ivr-check-password.http +0 -55
- package/morph-idm/Workflows/ivr/execute/ivr-check-user.http +0 -56
- package/morph-idm/Workflows/ivr/execute/ivr-create-agent-consent.http +0 -59
- package/morph-idm/Workflows/ivr/execute/ivr-get-agent-company.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-revoke-agent-consent.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-set-password.http +0 -87
- package/morph-idm/Workflows/notification/push-notification/execute/push-notification.http +0 -261
- package/morph-idm/Workflows/organization/execute/create-organization-yedek.http +0 -415
- package/morph-idm/Workflows/organization/execute/create-organization.http +0 -346
- package/morph-idm/Workflows/organization/execute/retail-organization.http +0 -161
- package/morph-idm/Workflows/otp-auth-code/execute/otp-auth-code.http +0 -743
- package/morph-idm/Workflows/person/execute/person-123.http +0 -149
- package/morph-idm/Workflows/person/execute/person-migration.http +0 -143
- package/morph-idm/Workflows/person/execute/person.http +0 -149
- package/morph-idm/Workflows/person/firm-cdc-dispatch/execute/person-firm-cdc-dispatch.http +0 -266
- package/morph-idm/Workflows/remember-password/execute/remember-password.http +0 -203
- package/morph-idm/Workflows/role/execute/role.http +0 -142
- package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +0 -131
- package/morph-idm/Workflows/scope/execute/scope-business-hours.http +0 -138
- package/morph-idm/Workflows/scope/execute/scope-corporate.http +0 -165
- package/morph-idm/Workflows/scope/execute/scope-individual-1234567890-1234567890.http +0 -132
- package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +0 -133
- package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +0 -159
- package/morph-idm/Workflows/scope/execute/scope-openbanking-account.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-openbanking-login.http +0 -135
- package/morph-idm/Workflows/scope/execute/scope-openbanking-payment.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-restricted.http +0 -143
- package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +0 -224
- package/morph-idm/Workflows/security-check/execute/security-check-test.http +0 -88
- package/morph-idm/Workflows/security-check-test/execute/security-check-test.http +0 -51
- package/morph-idm/Workflows/security-question/security-question-change/execute/security-question-change.http +0 -324
- package/morph-idm/Workflows/security-question/security-question-definition/execute/security-question-definition.http +0 -372
- package/morph-idm/Workflows/security-question/security-question-reset/execute/security-question-reset.http +0 -97
- package/morph-idm/Workflows/shield-decrypt/execute/shield-decrypt.http +0 -77
- package/morph-idm/Workflows/shield-encrypt/execute/shield-encrypt.http +0 -80
- package/morph-idm/Workflows/shield-sign/execute/shield-sign.http +0 -79
- package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js +0 -54
- package/morph-idm/Workflows/shield-verify-request-signature/execute/shield-verify-request-signature.http +0 -135
- package/morph-idm/Workflows/shield-verify-signature/execute/shield-verify-signature.http +0 -108
- package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http +0 -183
- package/morph-idm/Workflows/simple-subflow/execute/simple-subflow.http +0 -50
- package/morph-idm/Workflows/sso/authorize/execute/authorize.http +0 -160
- package/morph-idm/Workflows/sso/authorize-route/execute/authorize-route.http +0 -169
- package/morph-idm/Workflows/sso/pre-login/execute/pre-login.http +0 -273
- package/morph-idm/Workflows/sso/token-direct/execute/token-direct.http +0 -272
- package/morph-idm/Workflows/sso/token-route/execute/token-route.http +0 -207
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-auth-code.http +0 -89
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-login.http +0 -163
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-test-base.http +0 -178
- package/morph-idm/Workflows/test-consent-selection/execute/test-consent-selection.http +0 -68
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow-with-sub.http +0 -50
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow.http +0 -140
- package/morph-idm/Workflows/test-consent-selection/execute/test-sync-subprocess.http +0 -63
- package/morph-idm/Workflows/test-consent-selection/execute/test-user-validation.http +0 -126
- package/morph-idm/Workflows/third-factor/execute/third-factor.http +0 -183
- package/morph-idm/Workflows/third-factor-main/execute/execute/third-factor-main.http +0 -229
- package/morph-idm/Workflows/token-process/session/execute/session.http +0 -361
- package/morph-idm/Workflows/token-process/session-revoke-others/execute/session-revoke-others.http +0 -94
- package/morph-idm/Workflows/token-process/token/execute/README.md +0 -454
- package/morph-idm/Workflows/token-process/token/execute/device-key.pem +0 -27
- package/morph-idm/Workflows/token-process/token/execute/generate-onefa-assertion.js +0 -47
- package/morph-idm/Workflows/token-process/token/execute/onefa-token.http +0 -285
- package/morph-idm/Workflows/token-process/token/execute/setup-roles-for-token-claims.http +0 -425
- package/morph-idm/Workflows/token-process/token/execute/token-sync-race.http +0 -49
- package/morph-idm/Workflows/token-process/token/execute/token.http +0 -676
- package/morph-idm/Workflows/token-process/token-password-grant/execute/token-password-grant.http +0 -163
- package/morph-idm/Workflows/transaction-limit/cascade-approve-daily/execute/transaction-limit-cascade-approve-daily.http +0 -125
- package/morph-idm/Workflows/transaction-limit/cascade-approve-transaction/execute/transaction-limit-cascade-approve-transaction.http +0 -120
- package/morph-idm/Workflows/transaction-limit/cascade-daily/execute/transaction-limit-cascade-daily.http +0 -198
- package/morph-idm/Workflows/transaction-limit/cascade-transaction/execute/transaction-limit-cascade.http +0 -173
- package/morph-idm/Workflows/transaction-limit/definition/execute/transaction-limit-definition.http +0 -867
- package/morph-idm/Workflows/transaction-limit/definition-passivate/execute/transaction-limit-definition-passivate.http +0 -224
- package/morph-idm/Workflows/transaction-limit/definition-verify/execute/transaction-limit-definition-verify.http +0 -102
- package/morph-idm/Workflows/transaction-limit/execute/seed-corporate-customers-limits.sh +0 -178
- package/morph-idm/Workflows/transaction-limit/execute/transaction-limit-management.http +0 -984
- package/morph-idm/Workflows/transaction-limit/remaining/execute/transaction-limit-remaining.http +0 -103
- package/morph-idm/Workflows/transaction-limit/resolve/execute/transaction-limit-resolve.http +0 -96
- package/morph-idm/Workflows/transaction-limit/scope-bank-limit/execute/transaction-limit-scope-bank-limit.http +0 -84
- package/morph-idm/Workflows/transaction-limit/user-bank-limits/execute/transaction-limit-user-bank-limits.http +0 -87
- package/morph-idm/Workflows/transaction-limit/verify/execute/transaction-limit-verify.http +0 -212
- package/morph-idm/Workflows/user/create/execute/user-create-corporate.http +0 -51
- package/morph-idm/Workflows/user/create/execute/user-create.http +0 -135
- package/morph-idm/Workflows/user/get-users-by-scope/execute/get-users-by-scope.http +0 -210
- package/morph-idm/Workflows/user-corporate/firm-query/execute/firm-query.http +0 -87
- package/morph-idm/Workflows/user-corporate/onboard-dispatch/execute/user-corporate-onboard-dispatch.http +0 -105
- package/morph-idm/Workflows/user-corporate/provision/execute/user-corporate-provision.http +0 -631
- package/morph-idm/Workflows/user-corporate/provision/user-corporate-provision.flowchart.drawio +0 -88
- package/morph-idm/Workflows/user-corporate/remove/execute/user-corporate-remove.http +0 -152
- package/morph-idm/Workflows/user-corporate/rollback/execute/user-corporate-rollback.http +0 -97
- package/morph-idm/Workflows/user-corporate/update-provision/execute/user-corporate-update-provision.http +0 -449
- package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http +0 -173
- package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http +0 -117
- package/morph-idm/Workflows/user-login/execute/README-LOGIN.md +0 -535
- package/morph-idm/Workflows/user-login/execute/user-login-comprehensive-coverage.http +0 -1761
- package/morph-idm/Workflows/user-login/execute/user-login-device-assign.http +0 -497
- package/morph-idm/Workflows/user-login/execute/user-login.http +0 -910
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-otp.http +0 -86
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-push.http +0 -82
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-registered-device.http +0 -111
- package/morph-idm/Workflows/user-login-approvement/execute/user-login-approvement-comprehensive.http +0 -1267
- package/morph-idm/Workflows/user-management/execute/user-management.http +0 -284
- package/morph-idm/Workflows/user-note/execute/user-note-backoffice.http +0 -290
- package/morph-idm/Workflows/user-otp-setting/execute/user-otp-setting-backoffice.http +0 -128
- package/morph-idm/Workflows/user-password-process/user-change-password/execute/user-change-password.http +0 -576
- package/morph-idm/Workflows/user-password-process/user-password/execute/user-password.http +0 -58
- package/morph-idm/Workflows/user-password-process/user-password-force-change/execute/user-password-force-change.http +0 -31
- package/morph-idm/Workflows/user-password-process/user-password-reset/execute/user-password-reset.http +0 -213
- package/morph-idm/Workflows/user-status/user-status-change/execute/user-status-change.http +0 -124
- package/morph-idm/Workflows/user-status/user-status-change-backoffice/execute/user-status-change-backoffice.http +0 -197
- package/morph-idm/Workflows/user-validation/execute/user-validation-standalone.http +0 -331
- package/morph-idm/Workflows/user-validation/execute/user-validation.http +0 -696
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-corporate-customers-non-amount.http +0 -195
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http +0 -275
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
@baseUrl = http://localhost:4251
|
|
2
|
-
@apiVersion = v1
|
|
3
|
-
@domain = morph-idm
|
|
4
|
-
@workflow = user-corporate-update-provision
|
|
5
|
-
### ÖN KOŞUL: provision .http ile en az bir kurumsal kullanıcı yaratılmış olmalı
|
|
6
|
-
### (consent {tckn}-{scopeKey} AKTİF + limit tanımları AKTİF). Aynı tckn/scopeKey'i kullan.
|
|
7
|
-
### AKIŞ (5 adımlı stepper — Figma Kullanıcı Yetki Değişikliği):
|
|
8
|
-
### draft → [backoffice: scope-selection | mobil (act_sub+sub HEADER, kurumsal bağlam): firm-lookup]
|
|
9
|
-
### → fetching-corporate-users → user-selection → fetching-current-state
|
|
10
|
-
### → document-router (BACKOFFICE: document-entry / MOBİL: atlanır)
|
|
11
|
-
### → authority-entry (rol+limit TEK ekran, pre-filled) → verifying-limits ⇄ verify-one-limit
|
|
12
|
-
### → account-permissions (deposit sihirbazı, adım 3 forward)
|
|
13
|
-
### → transfer-permissions (transfer-authorization draft sihirbazı, adım 4 forward) → summary(diff)
|
|
14
|
-
### → apply-all (user-corporate-update SubFlow) → completed-end
|
|
15
|
-
### authority-entry VERİ MODELİ: ekran bankLimits[]'e bağlı, limits[] submit'te üretilir (provision ile aynı; limitDraft YOK).
|
|
16
|
-
### fetching-current-state: search-limit-definition currentLimits[] (gerçek instance key'li) + KOMPAKT limits[] seed'i
|
|
17
|
-
### yazar; ardından scope-bank-limit onEntry (burada ve authority-entry'de) banka tanımlarını çeker ve LimitRowsHelper.
|
|
18
|
-
### PrepareBankRows ile bankLimits[]'i EKRAN SIRASINDA kurar: userAmount mevcut bankLimits'ten, yoksa limits[] seed'inden
|
|
19
|
-
### (= currentLimits) overlay edilir; approver olmayan rolde Approve* userAmount null; satırda amount/amountLabel (banka tavanı).
|
|
20
|
-
### View: ForEach source=$form.bankLimits + groupBy(category → limitKey) → NumberField bind bankLimits[$index].userAmount;
|
|
21
|
-
### rol Dropdown'u aynı ekranda olduğu için Approve* satırları dizide her zaman var, $item.approve + role koşuluyla gizlenir.
|
|
22
|
-
### submit-authorities: TÜM bankLimits dizisi gönderilir (runtime merge diziyi bütün değiştirir); collect-limits-call
|
|
23
|
-
### userAmount dolu satırları limits[] = [{limitKey,type,amount}] olarak yazar → verify döngüsü, summary diff'i ve
|
|
24
|
-
### apply-all forward'ı kompakt listeyi kullanır.
|
|
25
|
-
### matchBankLimits switch'i: hem açılırken hem kapanırken match-bank-limits → hydrate-scope-bank-limits:
|
|
26
|
-
### true → bankLimits satırlarında userAmount = satırın banka tavanı (amount / alttaki amountLabel), limits=[];
|
|
27
|
-
### userAmount alanları şemadaki disableIf: matchBankLimits == true ile kilitlenir; submit → limits []
|
|
28
|
-
### → child'da currentLimits'in TAMAMI pasiflenir.
|
|
29
|
-
### false → userAmount'lar currentLimits tutarlarıyla geri gelir (kullanıcının canlı limitleri).
|
|
30
|
-
### Banka limitleri önizleme ayrı state değil: authority-entry view SideSheet + $ui.showBankLimits ($instance.bankLimits).
|
|
31
|
-
### GERİ: user-selection/authority-entry/summary state'lerinde `back` transition'ı;
|
|
32
|
-
### adım 3 ve 4'ten (deposit/transfer çocuğu aktifken) çıkış SADECE `back-to-authority` SHARED
|
|
33
|
-
### transition'ı ile olur (normal transition çocuğa forward edilir). Summary'den back →
|
|
34
|
-
### transfer-permissions'a yeniden giriş = YENİ transfer çocuğu başlar.
|
|
35
|
-
### GERİ + VERİ SIFIRLAMA (provision ile aynı desen — her geri kenarında onExecution reset mapping'i;
|
|
36
|
-
### runtime merge null'ları ATLADIĞI için tüm alanlar EXPLICIT non-null boş değerle yazılır):
|
|
37
|
-
### user-selection --back--> scope-selection : TrxUserSelectionBackDefaultScriptMapping
|
|
38
|
-
### corporateUsers + selectedUser/userKey + baseline (currentRole/currentRoles/currentContact/
|
|
39
|
-
### currentLimits) + superUserPermissions + limits/verify* + iki *ServiceResponse + summary* SIFIR;
|
|
40
|
-
### scope/role KORUNUR; matchBankLimits + bankLimit* SIFIRLANIR (banka limiti dolgusu onu üreten
|
|
41
|
-
### firma/kullanıcı çiftine bağlıdır). limits[] fetching-current-state'te yeniden seed edilir.
|
|
42
|
-
### authority-entry --back--> user-selection : TrxAuthorityEntryBackDefaultScriptMapping
|
|
43
|
-
### aynı set (matchBankLimits + bankLimit* dahil) AMA corporateUsers KORUNUR
|
|
44
|
-
### (bu kenar fetching-corporate-users'ı yeniden koşmaz).
|
|
45
|
-
### account/transfer-permissions --back-to-authority--> authority-entry : TrxBackToAuthorityDefaultScriptMapping
|
|
46
|
-
### verify* + iki *ServiceResponse + summary* SIFIR; limits[] (girilen tutarlar)/role/superUserPermissions KORUNUR
|
|
47
|
-
### (authority-entry onEntry satırları limits[]'ten yeniden kurar).
|
|
48
|
-
### summary --back--> transfer-permissions : TrxSummaryBackDefaultScriptMapping
|
|
49
|
-
### transferServiceResponse SIFIR (AddIf null-skip nedeniyle bayat accounts[] sağ kalmasın).
|
|
50
|
-
### GERİ BUTONU GÖRÜNÜRLÜĞÜ: user-selection'daki "Geri (Firma Seçimi)" butonu view'da
|
|
51
|
-
### "visible": "$instance.scopeSelectable" ile koşullu. Manuel/BACKOFFICE yolunda
|
|
52
|
-
### start-scope-selection gateway'i SetScopeSelectableMapping ile true yazar → buton GÖRÜNÜR.
|
|
53
|
-
### Kurumsal header yolunda (act_sub≠sub) paylaşımlı scope-header-resolve false yazar → buton GİZLİ
|
|
54
|
-
### (operatör firma arama ekranını hiç görmedi; göstermek onu İLERİ göndermek olurdu).
|
|
55
|
-
@tckn = 21790665422
|
|
56
|
-
@scopeKey = 100078
|
|
57
|
-
@instanceKey = corp-update-{{$timestamp}}
|
|
58
|
-
|
|
59
|
-
### 1) Start (BACKOFFICE — boş body) → draft → (auto) scope-selection
|
|
60
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
61
|
-
Content-Type: application/json
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
"key": "{{instanceKey}}",
|
|
65
|
-
"tags": ["test", "corporate-update"],
|
|
66
|
-
"attributes": {}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
### 1b) Start (MOBİL — kurumsal bağlam HEADER'dan: act_sub=tckn, sub=firma müşteri no; act_sub≠sub)
|
|
70
|
-
### draft onEntry (ResolveScopeFromHeaderMapping) customerNo=sub yazar → firm-lookup (LOKAL firma
|
|
71
|
-
### person okuması — firm-person-resolve; CM'e GİDİLMEZ, HARD CUT; firma person'ı CDC ile persist
|
|
72
|
-
### edilmiş olmalı) → fetching-corporate-users; scope-selection ATLANIR. scope lokal person'dan
|
|
73
|
-
### kurulur (key/customerNo=externalClientNo, vkn=taxNo, name=name.full). Lokalde firma yok (404)
|
|
74
|
-
### veya pasif (423) → firm-not-found-end.
|
|
75
|
-
### Body'deki customerNo ARTIK OKUNMAZ (eski mobil kontrat); act_sub==sub veya claim eksik → scope-selection.
|
|
76
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
77
|
-
Content-Type: application/json
|
|
78
|
-
act_sub: {{tckn}}
|
|
79
|
-
sub: {{scopeKey}}
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
"key": "corp-update-mob-{{$timestamp}}",
|
|
83
|
-
"tags": ["test", "corporate-update", "mobile"],
|
|
84
|
-
"attributes": {}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
### 2) State — expect scope-selection
|
|
88
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
89
|
-
|
|
90
|
-
### 3) select-scope (firma) → fetching-corporate-users → (auto) user-selection | no-users-end
|
|
91
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/select-scope
|
|
92
|
-
Content-Type: application/json
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
"attributes": {
|
|
96
|
-
"scope": { "key": {{scopeKey}}, "customerNo": {{scopeKey}}, "vkn": "50031539176", "name": "POLAT A.Ş." }
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
### 4) Data — corporateUsers[] dolu ve fullName'li mi? (assert: her satırda consentKey/userKey/tckn/position)
|
|
101
|
-
### userListPage=1, userListHasMore dolu sayfa (10 kayıt) ise true.
|
|
102
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
103
|
-
|
|
104
|
-
### 4b) next-user-page — yalnızca userListPage + 1 yazar, fetching-corporate-users onEntry
|
|
105
|
-
### (consent + person) o DB sayfasını yeniden çeker → user-selection.
|
|
106
|
-
### Boş sonraki sayfa no-users-end DEĞİL (page>1 → users-found fallback).
|
|
107
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/next-user-page
|
|
108
|
-
Content-Type: application/json
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
"attributes": {}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
### 4c) prev-user-page — userListPage - 1 (taban 1), aynı onEntry zinciri → user-selection
|
|
115
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/prev-user-page
|
|
116
|
-
Content-Type: application/json
|
|
117
|
-
|
|
118
|
-
{
|
|
119
|
-
"attributes": {}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
### 5) select-user → fetching-current-state → document-router
|
|
123
|
-
### BACKOFFICE (scopeSelectable=true) → document-entry
|
|
124
|
-
### MOBİL (scopeSelectable=false) → authority-entry
|
|
125
|
-
### Sonrasında data'da assert: role=consent.position, superUserPermissions ters-eşlendi,
|
|
126
|
-
### currentLimits[].key GERÇEK instance key'leri, limits[] kompakt seed (= currentLimits), bankLimits[] satırlarında
|
|
127
|
-
### userAmount = currentLimits tutarı, amount/amountLabel = banka tavanı.
|
|
128
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/select-user
|
|
129
|
-
Content-Type: application/json
|
|
130
|
-
|
|
131
|
-
{
|
|
132
|
-
"attributes": {
|
|
133
|
-
"selectedUser": { "tckn": "{{tckn}}", "consentKey": "{{tckn}}-{{scopeKey}}" }
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
### 5b) submit-document — YALNIZCA BACKOFFICE kolunda (document-entry). Mobilde bu state'e düşülmez.
|
|
138
|
-
### ⚠️ BU ADIM CONTRACT'A İSTEK ATMAZ. documentContent + note yalnızca instance data'ya yazılır.
|
|
139
|
-
### Gerçek upload-v2 çağrısı commit'te (user-corporate-update > uploading-document) yapılır.
|
|
140
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/submit-document
|
|
141
|
-
Content-Type: application/json
|
|
142
|
-
act_sub: {{tckn}}
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
"attributes": {
|
|
146
|
-
"documentContent": {
|
|
147
|
-
"fileName": "kurumsal-kullanici-yetki-degisikligi-onay-formu.pdf",
|
|
148
|
-
"contentType": "application/pdf",
|
|
149
|
-
"size": 245,
|
|
150
|
-
"fileContext": "JVBERi0xLjQKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PgplbmRvYmoKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL01lZGlhQm94WzAgMCA5OSA5OV0+PgplbmRvYmoKdHJhaWxlcgo8PC9Sb290IDEgMCBSPj4K"
|
|
151
|
-
},
|
|
152
|
-
"note": "Kurumsal kullanıcı yetki değişikliği - backoffice"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
### 6) Pre-fill kontrolü
|
|
157
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
158
|
-
|
|
159
|
-
### 6b) switch AÇMA — match-bank-limits, matchBankLimits=true
|
|
160
|
-
### hydrate-scope-bank-limits → authority-entry (bankLimits satırları yeniden kurulur, userAmount = banka tavanı, limits=[])
|
|
161
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/match-bank-limits
|
|
162
|
-
Content-Type: application/json
|
|
163
|
-
|
|
164
|
-
{
|
|
165
|
-
"attributes": {
|
|
166
|
-
"matchBankLimits": true
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
### 6b-2) State — expect authority-entry (Busy dönerse tekrar çek)
|
|
171
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
172
|
-
|
|
173
|
-
### 6b-3) Data — bankLimits[] her userAmount = amount (banka tavanı), amount/amountLabel dolu; limits=[]
|
|
174
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
175
|
-
|
|
176
|
-
### 6c) switch KAPATMA — aynı transition, matchBankLimits=false
|
|
177
|
-
### hydrate-scope-bank-limits → authority-entry (userAmount'lar currentLimits tutarlarıyla geri gelir)
|
|
178
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/match-bank-limits
|
|
179
|
-
Content-Type: application/json
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
"attributes": {
|
|
183
|
-
"matchBankLimits": false
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
### 6c-2) Data — matchBankLimits=false, bankLimits[].userAmount'larda currentLimits tutarları geri gelmiş.
|
|
188
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
189
|
-
|
|
190
|
-
### 7) submit-authorities (rol + bankLimits[] TEK payload; collect-limits-call userAmount dolu satırları limits[]'e yazar)
|
|
191
|
-
### → verifying-limits ⇄ verify-one-limit → (hepsi uygunsa) account-permissions
|
|
192
|
-
### KURAL: gerçek istemci 6) adımındaki data.bankLimits'in TAMAMINI userAmount'ları doldurup geri gönderir (runtime merge
|
|
193
|
-
### diziyi bütün değiştirir; eksik satırın userAmount'u KAYBOLUR → o kutunun canlı limiti summary'de "silindi" görünür ve
|
|
194
|
-
### commit'te pasiflenir). Aşağıdaki örnek 2 satırlık ALT KÜMEDİR — mapping için yeterli ama ekranı 2 satıra indirir.
|
|
195
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/submit-authorities
|
|
196
|
-
Content-Type: application/json
|
|
197
|
-
|
|
198
|
-
{
|
|
199
|
-
"attributes": {
|
|
200
|
-
"role": "superUser",
|
|
201
|
-
"superUserPermissions": { "roleChange": true, "limitChange": true, "userAdd": false },
|
|
202
|
-
"matchBankLimits": false,
|
|
203
|
-
"bankLimits": [
|
|
204
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Transaction", "userAmount": 250000.75 },
|
|
205
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Daily", "userAmount": 500000.5 }
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
### 7b) VERIFY REDDİ SENARYOSU: tavanı aşan tutar gönder → verify-one-limit reddeder,
|
|
211
|
-
### akış authority-entry'e döner, data.limitVerifyError { limitKey, type, enteredAmount, ceilingAmount, message } dolu.
|
|
212
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/submit-authorities
|
|
213
|
-
Content-Type: application/json
|
|
214
|
-
|
|
215
|
-
{
|
|
216
|
-
"attributes": {
|
|
217
|
-
"role": "superUser",
|
|
218
|
-
"bankLimits": [
|
|
219
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Transaction", "userAmount": 999999999999 }
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
### 8) State — expect account-permissions (deposit hesap-yetki-degisikligi çocuğu aktif; adım 3 ekranları forward)
|
|
225
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
226
|
-
|
|
227
|
-
### 8a) Deposit sihirbazı adımları — parent instance üzerinden ÇOCUĞA forward edilir:
|
|
228
|
-
### accessLevel: "specific" | "view-all" | "full-all" | "none" (ESKİ "all" KALDIRILDI → şema hatası/fault)
|
|
229
|
-
### Data'daki currentAccessLevel(+Label) = kayıtlı mevcut mod (okunamazsa hiç gelmez);
|
|
230
|
-
### accessLevel = bu oturumdaki seçim. Transition payload'ı yalnız accessLevel taşır.
|
|
231
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/select-access-level
|
|
232
|
-
Content-Type: application/json
|
|
233
|
-
|
|
234
|
-
{
|
|
235
|
-
"attributes": { "accessLevel": "specific" }
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
### 8b) set-permission (yalnız specific modda) — HESAP BAŞINA BİR çağrı
|
|
239
|
-
### grantLevel: "none" | "view" | "full" (bakiye/hareket ayrımı kalktı; view = izleme, full = izleme + işlem)
|
|
240
|
-
### ⚠️ Listeye yazılmayan hesap YETKİSİZ kalır — görülmesi istenen her hesap için açıkça view/full gönder.
|
|
241
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/set-permission
|
|
242
|
-
Content-Type: application/json
|
|
243
|
-
|
|
244
|
-
{
|
|
245
|
-
"attributes": { "selectedIban": "TR330006100519786457841326", "grantLevel": "view" }
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
### 8b-2) ⚠️ TODO(deposit): specific modda sihirbazı TAMAMLAYAN geçişin adı deposit'ten bekleniyor
|
|
249
|
-
### (eski save-permissions kalktı). Cevap gelince gerçek transition ile değiştir →
|
|
250
|
-
### çocuk tamamlanır → parent transfer-permissions'a ilerler; accountServiceResponse dolar
|
|
251
|
-
### (accounts[] satırı: {accountBranchCode, accountSuffix, iban, permissionLevel}).
|
|
252
|
-
|
|
253
|
-
### 8b-3) ALTERNATİF GERİ: child'ın İLK ekranında back-to-caller → adım 2'ye (authority-entry) dön.
|
|
254
|
-
### Wizard'ın KENDİ `back` transition'ı İÇ geridir (child'ın sayfaları arasında gezer, bitirmez);
|
|
255
|
-
### ilk ekrandaki geri ise child'ı back-ended final state'inde (status C) sonlandırır.
|
|
256
|
-
### Transition parent instance'a PATCH'lenir ama parent'ta TANIMLI DEĞİLDİR — runtime aktif blocking
|
|
257
|
-
### subflow'a forward eder (ForwardToActiveSubflowStep), select-access-level ile aynı mekanizma.
|
|
258
|
-
### CallAccountPermsWizardMapping.OutputHandler terminal state'i korelasyondan okuyup
|
|
259
|
-
### accountBackRequested=true yazar; accountServiceResponse'a DOKUNMAZ. Parent'ta auto
|
|
260
|
-
### account-back-to-authority kuralı true görür → authority-entry (TrxBackToAuthorityDefaultScriptMapping
|
|
261
|
-
### ile aynı temizlik koşar, aşağıdaki 8c ile aynı hedef — tek fark tetikleyici: bu otomatik).
|
|
262
|
-
### ⚠️ APISIX route'u gerekiyor.
|
|
263
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back-to-caller
|
|
264
|
-
|
|
265
|
-
### 8b-4) State — BEKLENEN: authority-entry
|
|
266
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
267
|
-
|
|
268
|
-
### 8c) GERİ SENARYOSU (adım 3'teyken): back-to-authority SHARED transition — parent'ta çalışır, çocuğa forward EDİLMEZ.
|
|
269
|
-
### Aktif deposit çocuğu orphan kalır (güvenli: correlation yalnızca tamamlanmışları okur).
|
|
270
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back-to-authority
|
|
271
|
-
Content-Type: application/json
|
|
272
|
-
|
|
273
|
-
{
|
|
274
|
-
"attributes": {}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
### 8d) HATA YOLU (otomatik, çağrı yok): deposit child'ı completed / back-ended DIŞINDA bir final
|
|
278
|
-
### state ile biterse (örn. cancelled) ya da tamamlanmış korelasyon hiç yoksa, paylaşımlı
|
|
279
|
-
### CallAccountPermsWizardMapping.OutputHandler SubFlowCorrelationHelper.IsSubFlowFailed ile
|
|
280
|
-
### accountPermsFailed=true yazar (accountServiceResponse'a DOKUNMAZ). Parent'ta auto
|
|
281
|
-
### account-permissions-failed (AccountPermsFailedRule) → account-permissions-failed-end.
|
|
282
|
-
### Kural sırası: account-back-to-authority → account-permissions-failed → account-permissions-collected.
|
|
283
|
-
### BEKLENEN state: account-permissions-failed-end; data.accountPermsFailed=true
|
|
284
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{start.request.body.$.key}}/functions/state
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### 9) transfer-permissions = transfer-authorization `transfer-account-restriction` DRAFT SubFlow (adım 4)
|
|
288
|
-
### Kimlikler HEADER olarak CallTransferRestrictionWizardMapping.csx tarafından YALNIZ child START'ında geçilir:
|
|
289
|
-
### sub = firma müşteri no (scope.key — VKN DEĞİL), act_sub = tckn (userKey).
|
|
290
|
-
### Draft start'ta önceden onaylı kayıt varsa accounts[] PREFILL edilir.
|
|
291
|
-
### Child versiyonu: transfer-account-restriction@1.3.5 (commit tarafı: transfer-restriction-save@1.3.4).
|
|
292
|
-
|
|
293
|
-
### 9a) Draft: sınırlama tipi seç (child transition → parent üzerinden forward)
|
|
294
|
-
### restrictionType: "all-accounts" | "company-accounts-only" | "specific-accounts"
|
|
295
|
-
### all-accounts / company-accounts-only → child DOĞRUDAN completed (9b/9c atlanır) → summary
|
|
296
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/select-restriction-type
|
|
297
|
-
Content-Type: application/json
|
|
298
|
-
|
|
299
|
-
{
|
|
300
|
-
"attributes": { "restrictionType": "specific-accounts" }
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
### 9b) Draft: hesap ekle (yalnız specific-accounts; hesap başına bir çağrı, $self; mükerrer IBAN → TA:400002)
|
|
304
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/add-account
|
|
305
|
-
Content-Type: application/json
|
|
306
|
-
|
|
307
|
-
{
|
|
308
|
-
"attributes": { "fullName": "Fatih Yılmaz", "iban": "TR330006100519786457841326" }
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
### 9c) Draft: hesap listesini tamamla (body'siz — schema:null) → child completed
|
|
312
|
-
### → auto transfer-permissions-collected → summary; transferServiceResponse dolar.
|
|
313
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/finish-account-list
|
|
314
|
-
|
|
315
|
-
### 9c-2) ALTERNATİF GERİ: child'ın İLK ekranında (restriction-type-selection) back-to-parent →
|
|
316
|
-
### adım 3'e (account-permissions) dön. Child BackEnded final state'inde biter (status "C";
|
|
317
|
-
### DİKKAT: transfer PascalCase yazıyor, deposit kebab-case `back-ended` — iki ayrı literal).
|
|
318
|
-
### CallTransferRestrictionWizardMapping.OutputHandler transferBackRequested=true yazar ve
|
|
319
|
-
### transferServiceResponse'a dokunmaz. Parent'ta auto back-to-account-permissions kuralı devreye
|
|
320
|
-
### girer → deposit wizard'ı YENİ bir child ile baştan koşar (önceki accountServiceResponse.subflowInstanceId
|
|
321
|
-
### provisionInstanceId olarak gönderilir → prefill); geri hop'unda container'lara DOKUNULMAZ, yalnız
|
|
322
|
-
### accountPermsFailed/transferPermsFailed="" ve transferBackRequested=false'a çekilir.
|
|
323
|
-
### NOT: aşağıdaki 9d back-to-authority'den FARKLI — o adım 2'ye döner (kullanıcı tetikli), bu bir adım geri.
|
|
324
|
-
### ⚠️ APISIX route'u gerekiyor.
|
|
325
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back-to-parent
|
|
326
|
-
|
|
327
|
-
### 9c-3) State — BEKLENEN: account-permissions, deposit çocuğu ilk adımını bekliyor
|
|
328
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
329
|
-
|
|
330
|
-
### 9d) GERİ SENARYOSU (adım 4'teyken): back-to-authority SHARED transition — parent'ta çalışır,
|
|
331
|
-
### transfer çocuğuna forward EDİLMEZ; adım 2'ye (authority-entry) döner. Aktif transfer çocuğu
|
|
332
|
-
### orphan kalır (güvenli: correlation yalnızca tamamlanmışları okur).
|
|
333
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back-to-authority
|
|
334
|
-
Content-Type: application/json
|
|
335
|
-
|
|
336
|
-
{
|
|
337
|
-
"attributes": {}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
### 9e) HATA YOLU (otomatik, çağrı yok): transfer child'ı completed / BackEnded DIŞINDA bir final
|
|
341
|
-
### state ile biterse (örn. cancelled) ya da tamamlanmış korelasyon hiç yoksa, paylaşımlı
|
|
342
|
-
### CallTransferRestrictionWizardMapping.OutputHandler SubFlowCorrelationHelper.IsSubFlowFailed ile
|
|
343
|
-
### transferPermsFailed=true yazar (transferServiceResponse'a DOKUNMAZ). Parent'ta auto
|
|
344
|
-
### transfer-permissions-failed (TransferPermsFailedRule) → transfer-permissions-failed-end.
|
|
345
|
-
### Kural sırası: back-to-account-permissions → transfer-permissions-failed → transfer-permissions-collected.
|
|
346
|
-
### BEKLENEN state: transfer-permissions-failed-end; data.transferPermsFailed=true
|
|
347
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{start.request.body.$.key}}/functions/state
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
### 10) Summary data — diff alanlarını assert et: currentRole vs role, currentLimits vs limits,
|
|
351
|
-
### accountServiceResponse.currentAccessLevel(+Label) vs accessLevel (Eski/Yeni mod),
|
|
352
|
-
### accounts[]{accountBranchCode, accountSuffix, iban, permissionLevel},
|
|
353
|
-
### transferServiceResponse{subflowInstanceId, restrictionType, accounts[]{fullName, iban}}
|
|
354
|
-
### Transfer sınırlamasında Eski/Yeni diff VAR — child >= 1.1.8 completed data'sında
|
|
355
|
-
### currentRestrictionType + currentRestrictionTypeLabel gönderir (draft start'ında onaylı kayıttan
|
|
356
|
-
### snapshot; onaylı kayıt yoksa alanlar ABSENT → özet '—' basar).
|
|
357
|
-
### Summary'den `back` → transfer-permissions'a yeniden giriş = YENİ transfer çocuğu;
|
|
358
|
-
### tamamlayınca transferServiceResponse EN YENİ çocuktan güncellenir (helper CompletedAt desc).
|
|
359
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
360
|
-
|
|
361
|
-
### 11) confirm-summary → apply-all (user-corporate-update SubFlow) → completed-end | update-failed-end
|
|
362
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/confirm-summary
|
|
363
|
-
Content-Type: application/json
|
|
364
|
-
|
|
365
|
-
{
|
|
366
|
-
"attributes": {}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
### 12) Final state — expect completed-end (commit çocuğu da completed-end olmalı)
|
|
370
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
371
|
-
|
|
372
|
-
### 13) Kalıcı etkiyi doğrula: consent güncellendi mi?
|
|
373
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{tckn}}-{{scopeKey}}/functions/data
|
|
374
|
-
|
|
375
|
-
### 14) Kalıcı etkiyi doğrula: limit tanımı (SENARYO'ya göre amount değişti / passivate oldu mu)
|
|
376
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Transaction/functions/data
|
|
377
|
-
|
|
378
|
-
### -----------------------------------------------------------------------------
|
|
379
|
-
### B) GERİ SENARYOLARI — veri sıfırlamayı doğrula (provision'ın B1/B2/B3 bölümünün karşılığı).
|
|
380
|
-
### Adım 3/4'ten çıkış (back-to-authority) yukarıda 8c ve 9d'de; burada kalan iki kenar.
|
|
381
|
-
### -----------------------------------------------------------------------------
|
|
382
|
-
|
|
383
|
-
### B1) GERİ: authority-entry → user-selection (TrxAuthorityEntryBackDefaultScriptMapping)
|
|
384
|
-
### BEKLENEN: selectedUser alanları "", userKey="", currentRole="", currentRoles=[],
|
|
385
|
-
### currentContact={emails:[],mobilePhonesNumbers:[]}, currentLimits=[], limits=[],
|
|
386
|
-
### verifyCursor=0, verifyRejected=false, limitVerifyError.message="",
|
|
387
|
-
### accountServiceResponse/transferServiceResponse boş, summary* boş;
|
|
388
|
-
### corporateUsers KORUNMUŞ (liste ekranı boş kalmasın) + scope KORUNMUŞ.
|
|
389
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back
|
|
390
|
-
Content-Type: application/json
|
|
391
|
-
|
|
392
|
-
{
|
|
393
|
-
"attributes": {}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
### B1a) Data — yukarıdaki beklentileri doğrula
|
|
397
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
398
|
-
|
|
399
|
-
### B1b) State — BEKLENEN: user-selection (corporateUsers dolu listelenir)
|
|
400
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
401
|
-
|
|
402
|
-
### B2) GERİ: user-selection → scope-selection (TrxUserSelectionBackDefaultScriptMapping)
|
|
403
|
-
### ⚠️ Butonun GÖRÜNÜRLÜĞÜ scopeSelectable'a bağlı: BACKOFFICE/manuel yolda true (bu .http'nin
|
|
404
|
-
### 1) adımı boş body ile başlar → start-scope-selection çalışır). Kurumsal header yolunda
|
|
405
|
-
### (act_sub≠sub) scopeSelectable=false → view'da buton GİZLİ; transition yine de PATCH edilebilir,
|
|
406
|
-
### o yüzden UI davranışını buradan değil view'dan doğrula.
|
|
407
|
-
### BEKLENEN: B1'in tüm sıfırlamaları + corporateUsers=[] + bankLimits=[]/bankLimitsScope=""; scope/role KORUNMUŞ, matchBankLimits=false.
|
|
408
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/back
|
|
409
|
-
Content-Type: application/json
|
|
410
|
-
|
|
411
|
-
{
|
|
412
|
-
"attributes": {}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
### B2a) Data — corporateUsers=[] ve baseline tamamen boş olmalı
|
|
416
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
417
|
-
|
|
418
|
-
### B2b) State — BEKLENEN: scope-selection (seçili firma loadData:true ile prefill; scopeSelectable=true)
|
|
419
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
420
|
-
|
|
421
|
-
### B2c) İLERİ: aynı/başka firmayı yeniden seç → fetching-corporate-users liste YENİDEN yüklenir
|
|
422
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/transitions/select-scope
|
|
423
|
-
Content-Type: application/json
|
|
424
|
-
|
|
425
|
-
{
|
|
426
|
-
"attributes": {
|
|
427
|
-
"scope": { "key": {{scopeKey}}, "customerNo": {{scopeKey}}, "vkn": "1234567890", "name": "TEST A.Ş." }
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
### NEGATİF: kullanıcısız firma → no-users-end (farklı instance ile)
|
|
432
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
433
|
-
Content-Type: application/json
|
|
434
|
-
|
|
435
|
-
{
|
|
436
|
-
"key": "{{instanceKey}}-neg",
|
|
437
|
-
"tags": ["test", "corporate-update"],
|
|
438
|
-
"attributes": {}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
### NEGATİF devam: kullanıcı tanımlanmamış bir firma seç → fetching-corporate-users → no-users-end
|
|
442
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}-neg/transitions/select-scope
|
|
443
|
-
Content-Type: application/json
|
|
444
|
-
|
|
445
|
-
{
|
|
446
|
-
"attributes": {
|
|
447
|
-
"scope": { "key": 999999, "customerNo": 999999, "vkn": "99999999999", "name": "KULLANICISIZ A.Ş." }
|
|
448
|
-
}
|
|
449
|
-
}
|
package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
### Variables
|
|
2
|
-
@baseUrl = http://localhost:4251
|
|
3
|
-
@apiVersion = v1
|
|
4
|
-
@domain = morph-idm
|
|
5
|
-
@workflow = user-corporate-create
|
|
6
|
-
### Direct test için tckn+scope. Composite user/commit key = {tckn}-{scope}.
|
|
7
|
-
@tckn = 55544433322
|
|
8
|
-
@scope = corporate-firm-200
|
|
9
|
-
|
|
10
|
-
### -----------------------------------------------------------------------------
|
|
11
|
-
### COMMIT flow — normalde user-corporate-provision.create-all'dan SubFlow olarak çağrılır;
|
|
12
|
-
### burada biriken veriyle DOĞRUDAN başlatıp test ediyoruz.
|
|
13
|
-
###
|
|
14
|
-
### Sıra (auto):
|
|
15
|
-
### fetching-simple-profile (Asgard fetch — akış kendi çeker, taze veri) → sp-eval:
|
|
16
|
-
### • servis erişilemez (simpleProfileFetchStatus UNAVAILABLE/INVALID_RESPONSE) → simple-profile-fetch-failed-end (TEKNİK;
|
|
17
|
-
### eskiden "kayıt yok" sayılıp DAVET dalına giriyordu — artık kesilir)
|
|
18
|
-
### • customer + status=active + hasMobApproval=true → devam
|
|
19
|
-
### • customer uygun değil (status/mob onayı) → profile-not-eligible-end (hiçbir şey yaratılmadan)
|
|
20
|
-
### • contact → contact-verify (paylaşımlı contact-is-verified-call):
|
|
21
|
-
### servis hatası (contactVerifyFailed=true) → contact-verify-failed-end (TEKNİK, tekrar denenir)
|
|
22
|
-
### isVerified true/false → DEVAM; false ise person draft kalır, davet SMS → waiting-to-be-user (Kullanıcı Ol beklenir)
|
|
23
|
-
### • SP kaydı yok (NOT_FOUND) → devam (invite dalı check-person-ready'de ayrılır)
|
|
24
|
-
### Aynı kapı provision'da da (kps-check sonrası) erken çalışır; commit'teki bu kontrol taze veri için kalır.
|
|
25
|
-
### → check-person-exists → create-person → sp-check → activate-person
|
|
26
|
-
### → create-limits (LOOP) → account-permissions → transfer-permissions
|
|
27
|
-
### → check-person-ready
|
|
28
|
-
### • person hazır (bulundu / sp-found→aktif) → create-consent → create-corporate-user → completed-end
|
|
29
|
-
### • person draft (sp-not-found) → send-invite-sms → waiting-to-be-user (PARK)
|
|
30
|
-
### ├─ (dış onboarding) → user-onboarded → check-onboarded-person
|
|
31
|
-
### │ (person hâlâ draft ise akış KENDİSİ publish eder) → consent → user → completed
|
|
32
|
-
### └─ 7 GÜN TIMER → rolling-back (SubFlow user-corporate-rollback: limitler pasife,
|
|
33
|
-
### hesap/transfer/belge iptali STUB) → invite-expired-end (rolled-back | rollback-incomplete)
|
|
34
|
-
###
|
|
35
|
-
### SENARYO SEÇİMİ artık start payload'daki flag ile DEĞİL, Asgard'ın tckn için döndüğü yanıtla belirlenir
|
|
36
|
-
### (fetching-simple-profile her start'ta çalışır; elle verilen simpleProfileNotFound/personName üzerine yazılır):
|
|
37
|
-
### A) type=customer + status=active + hasMobApproval=true + person(tckn) VAR/YOK → (varsa bulunur, yoksa oluştur+aktifleştir) → consent+user
|
|
38
|
-
### B) type=customer + status!=active VEYA hasMobApproval=false/yok (fail-closed) → profile-not-eligible-end
|
|
39
|
-
### C) type=contact → contact-is-verified-task: POST {ConsentVerificationServiceBaseUrl}/functions/function-check-is-verified
|
|
40
|
-
### body { citizenshipNumber: tckn, contactId: SP externalClientNo }, X-APISIX-KEY header →
|
|
41
|
-
### yanıt functionCheckIsVerified.isVerified=true → person aktive + consent + user; false → person DRAFT + davet → PARK (D ile aynı)
|
|
42
|
-
### D) SP kaydı YOK (404) → person DRAFT → PARK (aşağıdaki 4-5 ile devam ettir; 7g timer için nota bak)
|
|
43
|
-
### E) person ZATEN VAR ama DRAFT (önceki davet parkta kaldı / rollback person'a dokunmadı; personState=draft) → person-found-draft → sp-check:
|
|
44
|
-
### SP customer/doğrulanmış contact ise AKTİVE edilir (A gibi devam); SP yok / doğrulanmamış ise PARK (ikinci davet SMS'i gider;
|
|
45
|
-
### onboarding event'i TCKN'ye göre bekleyen TÜM create'leri ilerletir)
|
|
46
|
-
### Fail-fast: person/limit/consent/user adımlarından biri patlarsa kendi *-failed-end'ine düşer.
|
|
47
|
-
### TIMER TESTİ: MorphIdm:CorporateInvite:ExpireSeconds config'ini (örn. 60) set edip D senaryosunda
|
|
48
|
-
### bekle → waiting-to-be-user TIMER ile invite-expired-end'e düşer (gerçek süre: ExpireDays, default 7).
|
|
49
|
-
### ÖN KOŞUL (id-bazlı subflow'lar): accountServiceResponse.subflowInstanceId = provision'daki
|
|
50
|
-
### hesap-yetki-degisikligi çocuğunun id'si; transferServiceResponse.subflowInstanceId = provision'daki
|
|
51
|
-
### transfer-account-restriction çocuğunun (COMPLETED draft) id'si. Sentetik/rastgele id ile:
|
|
52
|
-
### • hesap-yetki-kaydet → saved:false → accountPermsFailed → account-perms-failed-end
|
|
53
|
-
### • transfer-restriction-save SOFT-FAIL → HTTP 200/201 ama child currentState:"failed",
|
|
54
|
-
### saved:false, error.code:"TA:400005" → transferPermsFailed → transfer-perms-failed-end
|
|
55
|
-
### ⚠️ .csx değişikliklerinden sonra VS Code'da user-corporate-create JSON'u re-sync et.
|
|
56
|
-
### -----------------------------------------------------------------------------
|
|
57
|
-
|
|
58
|
-
### 1) Start commit (biriken veri). PARK'ı test için Asgard'da SP kaydı OLMAYAN taze bir tckn kullan.
|
|
59
|
-
### personName = provision'ın KPS fallback'ini temsil eder (SP bulunursa fetch üzerine yazar).
|
|
60
|
-
### Telefon/e-posta entered* adlarıyla verilir — akışın kendi SP fetch'i düz adları TCKN verisiyle ezer.
|
|
61
|
-
# @name start
|
|
62
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
63
|
-
Content-Type: application/json
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
"key": "{{tckn}}-{{scope}}",
|
|
67
|
-
"tags": ["test", "corporate", "commit"],
|
|
68
|
-
"attributes": {
|
|
69
|
-
"userKey": "{{tckn}}",
|
|
70
|
-
"scope": { "key": "{{scope}}", "name": "Örnek A.Ş." },
|
|
71
|
-
"personName": { "first": "Ad", "last": "Soyad" },
|
|
72
|
-
"role": "super-user",
|
|
73
|
-
"superUserPermissions": { "roleChange": true, "limitChange": true, "userAdd": false },
|
|
74
|
-
"enteredMobilePhonesNumbers": [
|
|
75
|
-
{ "countryCode": "90", "number": "5056085695", "useForOTP": true }
|
|
76
|
-
],
|
|
77
|
-
"enteredEmails": [
|
|
78
|
-
{ "type": "business", "address": "{{tckn}}@ornek.com" }
|
|
79
|
-
],
|
|
80
|
-
"limits": [
|
|
81
|
-
{ "limitKey": "eft", "type": "Transaction", "amount": 100000 }
|
|
82
|
-
],
|
|
83
|
-
"accountServiceResponse": { "subflowInstanceId": "REPLACE-WITH-DEPOSIT-WIZARD-CHILD-INSTANCE-ID" },
|
|
84
|
-
"transferServiceResponse": { "subflowInstanceId": "REPLACE-WITH-TRANSFER-WIZARD-CHILD-INSTANCE-ID" }
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
### 2) State — nerede? (müşteri uygun değil → profile-not-eligible-end / kontak doğrulanmamış →
|
|
89
|
-
### doğrulanmamış kontak → waiting-to-be-user / person-hazır → completed-end / person-draft → waiting-to-be-user /
|
|
90
|
-
### davet süresi doldu → invite-expired-end / *-failed-end)
|
|
91
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tckn}}-{{scope}}/functions/state
|
|
92
|
-
|
|
93
|
-
### 3) Data — sonuç bayrakları (personFound / personCreationStatus / limitFailed / consentFailed / corporateUserFailed)
|
|
94
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tckn}}-{{scope}}/functions/data
|
|
95
|
-
|
|
96
|
-
### -------- BACKOFFICE ONAY FORMU (contract / DYS) --------
|
|
97
|
-
### 10 (transfer-permissions) ile 11 (check-person-ready) arasına iki state eklendi:
|
|
98
|
-
### document-router (10a) → documentContent geldiyse uploading-document, gelmediyse check-person-ready
|
|
99
|
-
### uploading-document (10b) → contract upload-v2; TEK koşulsuz çıkışla check-person-ready'ye devam
|
|
100
|
-
###
|
|
101
|
-
### Belge provizyonun BACKOFFICE kolunda toplanır (document-entry) ve StateCreateAllSubFlowMapping ile buraya
|
|
102
|
-
### documentContent + note olarak forward edilir. Kurumsal/mobil kolda documentContent hiç gelmez,
|
|
103
|
-
### router adımı atlar.
|
|
104
|
-
###
|
|
105
|
-
### ⚠️ HATA AKIŞI BLOKLAMAZ (bilinçli): yükleme başarısız olsa da commit devam eder. Sonuç yalnızca
|
|
106
|
-
### data'da görünür — ileride ayrı bir terminal state eklenecek:
|
|
107
|
-
### documentUploaded / documentUploadFailed / documentUploadError / documentInstanceId
|
|
108
|
-
###
|
|
109
|
-
### ⚠️ AÇIK SORU — Authorization: bu akış bir SubFlow CHILD instance'ı. Contract 401 istiyor ve token
|
|
110
|
-
### operatörün isteğinden geliyor; child'a taşınıp taşınmadığı HENÜZ DOĞRULANMADI. Kontrol için
|
|
111
|
-
### logda şu satıra bak: "StateUploadingDocumentContractMapping: ... hasAuthHeader=... actor=..."
|
|
112
|
-
### hasAuthHeader=True → header child'a taşınıyor, iş bitti
|
|
113
|
-
### hasAuthHeader=False → token'ı başka yoldan taşımak gerekecek (config servis token'ı vb.)
|
|
114
|
-
### header-helper bu workflow'un attributes.scripts.helpers listesine bu iş için eklendi.
|
|
115
|
-
|
|
116
|
-
### 3b) Belge sonucu — yükleme denendiyse bu alanlar dolu olur
|
|
117
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tckn}}-{{scope}}/functions/data
|
|
118
|
-
|
|
119
|
-
### -------- PARK durumunda (waiting-to-be-user) DIŞ ONBOARDING SİMÜLASYONU --------
|
|
120
|
-
|
|
121
|
-
### 4) (OPSİYONEL) Draft person'ı elle publish et — dışarıdaki "Kullanıcı Ol" sürecinin person'ı
|
|
122
|
-
### aktifleştirdiği senaryoyu simüle eder. Artık ZORUNLU DEĞİL: user-onboarded sonrası akış
|
|
123
|
-
### check-onboarded-person'da person'ı sorgular, hâlâ draft ise kendisi publish eder.
|
|
124
|
-
### (Bu adımı çalıştırırsan akış "onboarded-person-ready" dalından, atlarsan
|
|
125
|
-
### "onboarded-person-draft → activate-onboarded-person" dalından geçer — ikisi de completed'a varır.)
|
|
126
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{tckn}}/transitions/publish
|
|
127
|
-
Content-Type: application/json
|
|
128
|
-
|
|
129
|
-
{ "attributes": {} }
|
|
130
|
-
|
|
131
|
-
### 5) consent-verification EVENT (Kafka mesajı simülasyonu) → user-corporate-onboard-dispatch başlar,
|
|
132
|
-
### dispatcher TCKN'nin waiting-to-be-user'daki TÜM commit instance'larında user-onboarded'ı tetikler
|
|
133
|
-
### (scope fark etmeksizin) → her biri create-consent → create-corporate-user → completed-end.
|
|
134
|
-
### Gerçekte Dapr Subscription, vnext-common.consent-verification-test topic'ini bu endpoint'e route eder.
|
|
135
|
-
### DİKKAT: yanıt Dapr protokol gövdesidir → "status": "SUCCESS" | "DROP" alanına bak, HTTP koduna değil.
|
|
136
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-corporate-onboard-dispatch/instances/events?action=start&sync=true
|
|
137
|
-
Content-Type: application/json
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
"citizenshipNumber": "{{tckn}}",
|
|
141
|
-
"contactId": "5003189730",
|
|
142
|
-
"instanceId": "ffc43176-e42a-4d80-b077-331e167fdca5",
|
|
143
|
-
"isVerified": true,
|
|
144
|
-
"message": "Consent verification successful",
|
|
145
|
-
"sessionUId": "test-session-{{$timestamp}}"
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
### 5b) Negatif senaryo — isVerified=false: dispatcher ignored-end'e düşer, commit'ler waiting-to-be-user'da kalır
|
|
149
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-corporate-onboard-dispatch/instances/events?action=start&sync=true
|
|
150
|
-
Content-Type: application/json
|
|
151
|
-
|
|
152
|
-
{
|
|
153
|
-
"citizenshipNumber": "{{tckn}}",
|
|
154
|
-
"isVerified": false,
|
|
155
|
-
"message": "Consent verification failed",
|
|
156
|
-
"sessionUId": "test-session-{{$timestamp}}"
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
### 5c) Alternatif — user-onboarded manuel olarak da tetiklenebilir (tekil müdahale/test için)
|
|
160
|
-
# PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tckn}}-{{scope}}/transitions/user-onboarded
|
|
161
|
-
# Content-Type: application/json
|
|
162
|
-
#
|
|
163
|
-
# { "attributes": {} }
|
|
164
|
-
|
|
165
|
-
### 6) Final state — expect completed-end
|
|
166
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tckn}}-{{scope}}/functions/state
|
|
167
|
-
|
|
168
|
-
### 7) Oluşan kayıtlar
|
|
169
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{tckn}}-{{scope}}/functions/state
|
|
170
|
-
###
|
|
171
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{tckn}}-{{scope}}/functions/state
|
|
172
|
-
###
|
|
173
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{tckn}}/functions/state
|