@burgan-tech/morph-touch-runtime 0.0.2
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/LICENSE +21 -0
- package/burgan-tech-morph-touch-runtime-0.0.2.tgz +0 -0
- package/package.json +21 -0
- package/touch/Extensions/.gitkeep +0 -0
- package/touch/Functions/.gitkeep +0 -0
- package/touch/Functions/check-livekit-room-access.1.0.0.json +28 -0
- package/touch/Functions/check-livekit-room-access.http +44 -0
- package/touch/Functions/get-absence-entry.1.0.0.json +28 -0
- package/touch/Functions/get-advisor-stats.1.0.0.json +27 -0
- package/touch/Functions/get-available-slots.1.0.0.json +30 -0
- package/touch/Functions/get-available-slots.http +29 -0
- package/touch/Functions/get-chat-rooms.1.0.0.json +28 -0
- package/touch/Functions/get-chat-rooms.http +62 -0
- package/touch/Functions/get-customer-info.1.0.0.json +27 -0
- package/touch/Functions/get-matrix-sync.1.0.0.json +28 -0
- package/touch/Functions/get-rezervations.1.0.0.json +26 -0
- package/touch/Functions/get-rezervations.http +59 -0
- package/touch/Functions/get-room-messages.1.0.0.json +29 -0
- package/touch/Functions/get-room-messages.http +45 -0
- package/touch/Functions/rezervation-transfer.http +118 -0
- package/touch/Functions/send-room-message.1.0.0.json +29 -0
- package/touch/Functions/src/CheckLivekitRoomAccessMapping.csx +238 -0
- package/touch/Functions/src/GetAbsenceEntryMapping.csx +225 -0
- package/touch/Functions/src/GetAdvisorStatsMapping.csx +190 -0
- package/touch/Functions/src/GetAvailableSlotsMapping.csx +468 -0
- package/touch/Functions/src/GetChatRoomsMapping.csx +202 -0
- package/touch/Functions/src/GetCustomerInfoMapping.csx +140 -0
- package/touch/Functions/src/GetMatrixSyncMapping.csx +197 -0
- package/touch/Functions/src/GetRezervationsMapping.csx +162 -0
- package/touch/Functions/src/GetRoomMessagesMapping.csx +165 -0
- package/touch/Functions/src/SendCancelNotificationMapping.csx +63 -0
- package/touch/Functions/src/SendRoomMessageMapping.csx +131 -0
- package/touch/Schemas/.gitkeep +0 -0
- package/touch/Schemas/absence-entry.1.0.0.json +232 -0
- package/touch/Schemas/advisor-chat-rooms.1.0.0.json +62 -0
- package/touch/Schemas/chat-room.1.0.0.json +110 -0
- package/touch/Schemas/notification-sender.1.0.0.json +159 -0
- package/touch/Schemas/portfolio-manager.1.0.0.json +63 -0
- package/touch/Schemas/rezervation.1.0.0.json +102 -0
- package/touch/Tasks/.gitkeep +0 -0
- package/touch/Tasks/cancel-absence-entry-for-rezervation.1.0.0.json +21 -0
- package/touch/Tasks/check-already-completed-chat-room.1.0.0.json +24 -0
- package/touch/Tasks/check-duplicate-portfolio-manager.1.0.0.json +23 -0
- package/touch/Tasks/check-duplicate-rezervation.1.0.0.json +23 -0
- package/touch/Tasks/check-existing-permanent-chat-room.1.0.0.json +21 -0
- package/touch/Tasks/check-randevu-time.1.0.0.json +17 -0
- package/touch/Tasks/create-permanent-chat-room.1.0.0.json +28 -0
- package/touch/Tasks/determine-transfer-type.1.0.0.json +16 -0
- package/touch/Tasks/enrich-rezervations-for-transfer.1.0.0.json +23 -0
- package/touch/Tasks/execute-permanent-chatroom-update.1.0.0.json +21 -0
- package/touch/Tasks/execute-rez-chatroom-transfer.1.0.0.json +21 -0
- package/touch/Tasks/execute-rezervation-transfer.1.0.0.json +19 -0
- package/touch/Tasks/fetch-absence-entries-for-transfer.1.0.0.json +23 -0
- package/touch/Tasks/fetch-advisors-for-transfer.1.0.0.json +23 -0
- package/touch/Tasks/fetch-permanent-chatrooms-for-transfer.1.0.0.json +23 -0
- package/touch/Tasks/fetch-rez-chatrooms-for-transfer.1.0.0.json +23 -0
- package/touch/Tasks/fetch-rezervations-for-transfer.1.0.0.json +22 -0
- package/touch/Tasks/get-absence-entry-task.1.0.0.json +23 -0
- package/touch/Tasks/get-available-slots-http.1.0.0.json +27 -0
- package/touch/Tasks/get-available-slots.1.0.0.json +24 -0
- package/touch/Tasks/get-chat-room-data-for-rezervation.1.0.0.json +23 -0
- package/touch/Tasks/get-chat-token.1.0.0.json +27 -0
- package/touch/Tasks/get-matrix-room-messages.1.0.0.json +25 -0
- package/touch/Tasks/get-matrix-sync.1.0.0.json +25 -0
- package/touch/Tasks/get-rezervation-data-task.1.0.0.json +22 -0
- package/touch/Tasks/get-rezervation-state-task.1.0.0.json +22 -0
- package/touch/Tasks/get-rezervations-task.1.0.0.json +21 -0
- package/touch/Tasks/get-user-info-for-rezervation.1.0.0.json +24 -0
- package/touch/Tasks/get-video-call-url.1.0.0.json +17 -0
- package/touch/Tasks/invite-user-to-rezervation-room.1.0.0.json +27 -0
- package/touch/Tasks/join-chat-room-for-rezervation.1.0.0.json +28 -0
- package/touch/Tasks/join-matrix-room.1.0.0.json +27 -0
- package/touch/Tasks/join-user-to-room.1.0.0.json +27 -0
- package/touch/Tasks/merge-invited-user.1.0.0.json +17 -0
- package/touch/Tasks/merge-rezervation-update.1.0.0.json +16 -0
- package/touch/Tasks/merge-target-advisor-for-transfer.1.0.0.json +17 -0
- package/touch/Tasks/merge-update-body-for-randevu-update.1.0.0.json +16 -0
- package/touch/Tasks/merge-video-call-urls.1.0.0.json +17 -0
- package/touch/Tasks/query-chat-room-instances.1.0.0.json +23 -0
- package/touch/Tasks/remove-member-from-room.1.0.0.json +28 -0
- package/touch/Tasks/send-matrix-room-message.1.0.0.json +26 -0
- package/touch/Tasks/send-push-notification.1.0.0.json +26 -0
- package/touch/Tasks/send-sms-notification.1.0.0.json +26 -0
- package/touch/Tasks/set-chat-room-status-active.1.0.0.json +16 -0
- package/touch/Tasks/set-chat-room-status-deactive.1.0.0.json +16 -0
- package/touch/Tasks/set-previous-advisor.1.0.0.json +16 -0
- package/touch/Tasks/set-user-from-headers-for-rezervation.1.0.0.json +17 -0
- package/touch/Tasks/start-absence-entry-for-rezervation.1.0.0.json +21 -0
- package/touch/Tasks/start-chat-room-for-rezervation.1.0.0.json +20 -0
- package/touch/Tasks/start-notification-sender.1.0.0.json +20 -0
- package/touch/Tasks/start-permanent-chat-room.1.0.0.json +21 -0
- package/touch/Tasks/start-transfer-from-absence-entry.1.0.0.json +19 -0
- package/touch/Tasks/start-video-call.1.0.0.json +22 -0
- package/touch/Tasks/trigger-chat-room-deactivate.1.0.0.json +21 -0
- package/touch/Tasks/trigger-chat-room-transfer.1.0.0.json +21 -0
- package/touch/Tasks/trigger-chat-room-update.1.0.0.json +20 -0
- package/touch/Tasks/trigger-rezervation-add-invited-participant.1.0.0.json +20 -0
- package/touch/Tasks/trigger-rezervation-apply-update.1.0.0.json +20 -0
- package/touch/Tasks/trigger-rezervation-to-in-meet.1.0.0.json +20 -0
- package/touch/Tasks/trigger-rezervation-video-call-update.1.0.0.json +21 -0
- package/touch/Tasks/validate-date-for-rezervation.1.0.0.json +18 -0
- package/touch/Tasks/validate-slot-for-rezervation.1.0.0.json +24 -0
- package/touch/Tasks/validate-transfer-availability.1.0.0.json +23 -0
- package/touch/Views/.gitkeep +0 -0
- package/touch/Workflows/.gitkeep +0 -0
- package/touch/Workflows/absence-entry.http +458 -0
- package/touch/Workflows/absence-entry.json +179 -0
- package/touch/Workflows/add-participant-to-rezervation.http +47 -0
- package/touch/Workflows/add-participant-to-rezervation.json +340 -0
- package/touch/Workflows/chat-room.http +207 -0
- package/touch/Workflows/chat-room.json +452 -0
- package/touch/Workflows/investment-advisor.json +367 -0
- package/touch/Workflows/notification-sender.http +299 -0
- package/touch/Workflows/notification-sender.json +262 -0
- package/touch/Workflows/portfolio-manager.json +367 -0
- package/touch/Workflows/randevu-update.http +87 -0
- package/touch/Workflows/rezervation-start.json +467 -0
- package/touch/Workflows/rezervation-transfer.json +512 -0
- package/touch/Workflows/rezervation-update.http +87 -0
- package/touch/Workflows/rezervation-update.json +485 -0
- package/touch/Workflows/rezervation.http +214 -0
- package/touch/Workflows/rezervation.json +726 -0
- package/touch/Workflows/src/AllChatRoomsSuccessRule.csx +65 -0
- package/touch/Workflows/src/AlwaysTrueRule.csx +13 -0
- package/touch/Workflows/src/AnyChatRoomFailedRule.csx +64 -0
- package/touch/Workflows/src/AutoProcessRule.csx +38 -0
- package/touch/Workflows/src/BuildRezChatRoomPlanMapping.csx +160 -0
- package/touch/Workflows/src/CanStartRezervationTimerMapping.csx +48 -0
- package/touch/Workflows/src/CanStartTransferMapping.csx +14 -0
- package/touch/Workflows/src/CancelAbsenceEntryForRezervationMapping.csx +48 -0
- package/touch/Workflows/src/CancelAbsenceForRandevuUpdateMapping.csx +62 -0
- package/touch/Workflows/src/ChatRoomCreatedFailedRule.csx +54 -0
- package/touch/Workflows/src/ChatRoomCreatedSuccessRule.csx +54 -0
- package/touch/Workflows/src/ChatRoomRemoveMapping.csx +104 -0
- package/touch/Workflows/src/ChatRoomTransferInviteMapping.csx +109 -0
- package/touch/Workflows/src/ChatRoomTransferRemoveMapping.csx +71 -0
- package/touch/Workflows/src/ChatRoomUpdateMapping.csx +107 -0
- package/touch/Workflows/src/CheckAlreadyCompletedChatRoomMapping.csx +100 -0
- package/touch/Workflows/src/CheckDuplicatePortfolioManagerMapping.csx +119 -0
- package/touch/Workflows/src/CheckDuplicateRezervationMapping.csx +150 -0
- package/touch/Workflows/src/CheckExistingPermanentChatRoomMapping.csx +169 -0
- package/touch/Workflows/src/CheckRandevuTimeMapping.csx +67 -0
- package/touch/Workflows/src/CheckRezervationStateActiveOrInMeetRule.csx +14 -0
- package/touch/Workflows/src/CreateAbsenceEntryForRezervationMapping.csx +111 -0
- package/touch/Workflows/src/CreateAbsenceForRandevuUpdateMapping.csx +108 -0
- package/touch/Workflows/src/CreateChatRoomForRezervationMapping.csx +122 -0
- package/touch/Workflows/src/CreatePermanentChatRoomMapping.csx +140 -0
- package/touch/Workflows/src/CustomerControlToEndRule.csx +14 -0
- package/touch/Workflows/src/DetermineTransferTypeMapping.csx +92 -0
- package/touch/Workflows/src/EnrichRezervationsForTransferMapping.csx +495 -0
- package/touch/Workflows/src/ExecutePermanentChatRoomUpdateMapping.csx +124 -0
- package/touch/Workflows/src/ExecuteRezChatRoomTransferMapping.csx +95 -0
- package/touch/Workflows/src/ExecuteTransferMapping.csx +152 -0
- package/touch/Workflows/src/FetchAbsenceEntriesForTransferMapping.csx +116 -0
- package/touch/Workflows/src/FetchAdvisorsForTransferMapping.csx +145 -0
- package/touch/Workflows/src/FetchPermanentChatRoomsMapping.csx +128 -0
- package/touch/Workflows/src/FetchRezervationsForTransferMapping.csx +124 -0
- package/touch/Workflows/src/GetChatRoomDataForRezervationMapping.csx +100 -0
- package/touch/Workflows/src/GetChatTokenMapping.csx +85 -0
- package/touch/Workflows/src/GetRezervationDataForAddParticipantMapping.csx +105 -0
- package/touch/Workflows/src/GetRezervationDataForRandevuUpdateMapping.csx +110 -0
- package/touch/Workflows/src/GetRezervationDataMapping.csx +111 -0
- package/touch/Workflows/src/GetRezervationStateForRandevuUpdateMapping.csx +80 -0
- package/touch/Workflows/src/GetRezervationStateMapping.csx +92 -0
- package/touch/Workflows/src/GetUserInfoForRezervationMapping.csx +63 -0
- package/touch/Workflows/src/GetVideoCallUrlMapping.csx +62 -0
- package/touch/Workflows/src/HasChangedAdvisorRule.csx +28 -0
- package/touch/Workflows/src/HasChatIntegrationRule.csx +41 -0
- package/touch/Workflows/src/HasExistingPermanentRoomRule.csx +28 -0
- package/touch/Workflows/src/InviteAdvisorForRandevuUpdateMapping.csx +86 -0
- package/touch/Workflows/src/InviteNewAdvisorToRezervationRoomMapping.csx +78 -0
- package/touch/Workflows/src/InviteNewParticipantToRandevuRoomMapping.csx +88 -0
- package/touch/Workflows/src/InvitedUserMergeMapping.csx +77 -0
- package/touch/Workflows/src/InvitedUserNotAllowedRule.csx +71 -0
- package/touch/Workflows/src/InvitedUserNotInMeetRule.csx +19 -0
- package/touch/Workflows/src/IsNotfSentRule.csx +36 -0
- package/touch/Workflows/src/JoinChatRoomForAddParticipantMapping.csx +118 -0
- package/touch/Workflows/src/JoinChatRoomForRandevuStartMapping.csx +119 -0
- package/touch/Workflows/src/JoinChatRoomForRezervationMapping.csx +118 -0
- package/touch/Workflows/src/JoinMatrixRoomMapping.csx +100 -0
- package/touch/Workflows/src/JoinUserToRoomMapping.csx +118 -0
- package/touch/Workflows/src/LoginForAddParticipantChatMapping.csx +102 -0
- package/touch/Workflows/src/LoginForRandevuStartChatMapping.csx +96 -0
- package/touch/Workflows/src/MergeRezervationUpdateMapping.csx +82 -0
- package/touch/Workflows/src/MergeTargetAdvisorForTransferMapping.csx +79 -0
- package/touch/Workflows/src/MergeUpdateBodyForRandevuUpdateMapping.csx +91 -0
- package/touch/Workflows/src/NoExistingPermanentRoomRule.csx +23 -0
- package/touch/Workflows/src/NotificationCompleteAlwaysRule.csx +14 -0
- package/touch/Workflows/src/NotificationCompleteFromPendingRule.csx +41 -0
- package/touch/Workflows/src/NotificationCompleteFromSmsRule.csx +36 -0
- package/touch/Workflows/src/NotificationPushFromPendingRule.csx +42 -0
- package/touch/Workflows/src/NotificationPushFromSmsRule.csx +36 -0
- package/touch/Workflows/src/NotificationSmsPendingRule.csx +32 -0
- package/touch/Workflows/src/PermanentDoneRule.csx +44 -0
- package/touch/Workflows/src/PermanentProcessNextRule.csx +44 -0
- package/touch/Workflows/src/RezChatRoomProcessNextRule.csx +44 -0
- package/touch/Workflows/src/RezChatRoomsDoneRule.csx +44 -0
- package/touch/Workflows/src/SendPushNotificationMapping.csx +146 -0
- package/touch/Workflows/src/SendSmsNotificationMapping.csx +138 -0
- package/touch/Workflows/src/SetChatRoomStatusActiveMapping.csx +22 -0
- package/touch/Workflows/src/SetChatRoomStatusDeactiveMapping.csx +22 -0
- package/touch/Workflows/src/SetPreviousAdvisorMapping.csx +28 -0
- package/touch/Workflows/src/SetUserFromHeadersForRezervationMapping.csx +24 -0
- package/touch/Workflows/src/SlotAvailableRule.csx +33 -0
- package/touch/Workflows/src/SlotUnavailableRule.csx +33 -0
- package/touch/Workflows/src/StartChatRoomForRezervationMapping.csx +100 -0
- package/touch/Workflows/src/StartGetChatTokenForRezervationMapping.csx +71 -0
- package/touch/Workflows/src/StartNotificationForAdvisorMapping.csx +117 -0
- package/touch/Workflows/src/StartNotificationForRezervationFromUserInfoMapping.csx +128 -0
- package/touch/Workflows/src/StartNotificationForUserMapping.csx +117 -0
- package/touch/Workflows/src/StartPermanentChatRoomMapping.csx +92 -0
- package/touch/Workflows/src/StartTransferFromAbsenceEntryMapping.csx +94 -0
- package/touch/Workflows/src/StartVideoCallCustomerSubFlowMapping.csx +37 -0
- package/touch/Workflows/src/StartVideoCallForInvitedParticipantMapping.csx +54 -0
- package/touch/Workflows/src/StartVideoCallForRandevuStartMapping.csx +70 -0
- package/touch/Workflows/src/StartVideoCallStaffSubFlowMapping.csx +37 -0
- package/touch/Workflows/src/StateActiveForUpdateRule.csx +14 -0
- package/touch/Workflows/src/StateActiveRule.csx +14 -0
- package/touch/Workflows/src/StateInMeetRule.csx +14 -0
- package/touch/Workflows/src/StateNotActiveForUpdateRule.csx +14 -0
- package/touch/Workflows/src/StateNotActiveOrInMeetRule.csx +14 -0
- package/touch/Workflows/src/StatusCustomerEnterRule.csx +25 -0
- package/touch/Workflows/src/StatusStaffEnterRule.csx +25 -0
- package/touch/Workflows/src/SyncWorkingHoursRule.csx +46 -0
- package/touch/Workflows/src/TokenSuccessRule.csx +24 -0
- package/touch/Workflows/src/TransferAllDoneRule.csx +50 -0
- package/touch/Workflows/src/TransferHasInvalidRule.csx +34 -0
- package/touch/Workflows/src/TransferProcessNextRule.csx +50 -0
- package/touch/Workflows/src/TriggerChatRoomDeactivateMapping.csx +77 -0
- package/touch/Workflows/src/TriggerChatRoomTransferMapping.csx +93 -0
- package/touch/Workflows/src/TriggerChatRoomUpdateMapping.csx +99 -0
- package/touch/Workflows/src/TriggerRezervationAddInvitedParticipantMapping.csx +77 -0
- package/touch/Workflows/src/TriggerRezervationApplyUpdateMapping.csx +66 -0
- package/touch/Workflows/src/TriggerRezervationToInMeetMapping.csx +69 -0
- package/touch/Workflows/src/TriggerRezervationVideoCallUpdateMapping.csx +67 -0
- package/touch/Workflows/src/ValidateDateForRezervationMapping.csx +60 -0
- package/touch/Workflows/src/ValidateSlotForRandevuUpdateMapping.csx +211 -0
- package/touch/Workflows/src/ValidateSlotForRezervationMapping.csx +246 -0
- package/touch/Workflows/src/ValidateTransferMapping.csx +243 -0
- package/touch/Workflows/src/VideoCallUrlUpdateMergeMapping.csx +141 -0
- package/touch/Workflows/start-chat.json +217 -0
- package/touch/Workflows/start-video-call.http +93 -0
- package/touch/Workflows/start-video-call.json +206 -0
- package/vnext.config.json +58 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# Rezervation (Reservation) Workflow - HTTP Test File
|
|
3
|
+
#
|
|
4
|
+
# This file tests the rezervation workflow which handles:
|
|
5
|
+
# - Appointment booking between user and advisor (Portfolio Manager / Investment Advisor)
|
|
6
|
+
# - Slot validation via get-available-slots (confirm-selection → validating → confirmation or slot-unavailable)
|
|
7
|
+
# - Absence-entry personal-leave creation on confirmation (key: user-advisorId-startDateTime-endDateTime)
|
|
8
|
+
# - Cancel absence-entry on back-to-form, user-cancel, advisor-cancel
|
|
9
|
+
#
|
|
10
|
+
# Flow: start → appointment-form → [confirm-selection → validating] → confirmation | slot-unavailable
|
|
11
|
+
# slot-unavailable → [appointment-form-retry → validating] → ...
|
|
12
|
+
# confirmation → create-appointment → active | back-to-form → appointment-form
|
|
13
|
+
# active → [to-in-meet via rezervation-start] → in-meet
|
|
14
|
+
# active → user-cancel | advisor-cancel → user-cancelled | advisor-cancelled
|
|
15
|
+
# (rezervation-start flow: create room + start-video-call or join room)
|
|
16
|
+
#
|
|
17
|
+
# Prerequisites:
|
|
18
|
+
# 1. vNext Runtime running on localhost:4201
|
|
19
|
+
# 2. Get Available Slots function and absence-entry workflow available
|
|
20
|
+
# 3. Use startDateTime/endDateTime that match an available slot (e.g. from get-available-slots) for success path
|
|
21
|
+
###############################################################################
|
|
22
|
+
|
|
23
|
+
@baseUrl = http://localhost:4201
|
|
24
|
+
@apiVersion = 1
|
|
25
|
+
@domain = touch
|
|
26
|
+
@workflow = rezervation
|
|
27
|
+
|
|
28
|
+
###############################################################################
|
|
29
|
+
# #
|
|
30
|
+
# SCENARIO 1: START REZERVATION (Appointment Form) #
|
|
31
|
+
# #
|
|
32
|
+
###############################################################################
|
|
33
|
+
|
|
34
|
+
@rezervationKey = rez-{{$timestamp}}
|
|
35
|
+
|
|
36
|
+
### Start Rezervation Instance (Appointment Form)
|
|
37
|
+
# Creates instance in appointment-form state. Send user, advisor, startDateTime, endDateTime.
|
|
38
|
+
# Slot is validated when you run confirm-selection transition.
|
|
39
|
+
# @name startRezervation
|
|
40
|
+
POST {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
41
|
+
Content-Type: application/json
|
|
42
|
+
Accept-Language: tr-TR
|
|
43
|
+
X-Request-Id: {{$guid}}
|
|
44
|
+
|
|
45
|
+
{
|
|
46
|
+
"key": "{{rezervationKey}}",
|
|
47
|
+
"tags": [
|
|
48
|
+
"appointment",
|
|
49
|
+
"randevu"
|
|
50
|
+
],
|
|
51
|
+
"attributes": {
|
|
52
|
+
"user": "core.user.user-001",
|
|
53
|
+
"advisor": "touch.portfolio-manager.pm-001",
|
|
54
|
+
"startDateTime": "2026-02-02T09:00:00",
|
|
55
|
+
"endDateTime": "2026-02-02T09:30:00"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
###############################################################################
|
|
60
|
+
# #
|
|
61
|
+
# GET INSTANCE (use id from start response) #
|
|
62
|
+
# #
|
|
63
|
+
###############################################################################
|
|
64
|
+
|
|
65
|
+
@instanceId = <paste-instance-id-from-start-response>
|
|
66
|
+
|
|
67
|
+
### Get Rezervation Instance
|
|
68
|
+
# @name getRezervationInstance
|
|
69
|
+
GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}
|
|
70
|
+
Accept: application/json
|
|
71
|
+
Accept-Language: tr-TR
|
|
72
|
+
X-Request-Id: {{$guid}}
|
|
73
|
+
|
|
74
|
+
###############################################################################
|
|
75
|
+
# #
|
|
76
|
+
# CONFIRM SELECTION (appointment-form → validating → ...) #
|
|
77
|
+
# #
|
|
78
|
+
###############################################################################
|
|
79
|
+
|
|
80
|
+
### Confirm Selection (Slot Check)
|
|
81
|
+
# Runs slot validation via get-available-slots. Instance goes to validating,
|
|
82
|
+
# then auto-transitions to confirmation (slot available) or slot-unavailable (slot not available).
|
|
83
|
+
# Body can override attributes (e.g. new startDateTime/endDateTime).
|
|
84
|
+
# @name confirmSelection
|
|
85
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/confirm-selection?sync=true
|
|
86
|
+
Content-Type: application/json
|
|
87
|
+
Accept-Language: tr-TR
|
|
88
|
+
X-Request-Id: {{$guid}}
|
|
89
|
+
|
|
90
|
+
{
|
|
91
|
+
"attributes": {}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
###############################################################################
|
|
95
|
+
# #
|
|
96
|
+
# SLOT UNAVAILABLE: RETRY (slot-unavailable → validating) #
|
|
97
|
+
# #
|
|
98
|
+
###############################################################################
|
|
99
|
+
|
|
100
|
+
### Appointment Form Retry (Try Again)
|
|
101
|
+
# When in slot-unavailable state, send new times (optional in body). Slot is checked again.
|
|
102
|
+
# @name appointmentFormRetry
|
|
103
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/appointment-form-retry?sync=true
|
|
104
|
+
Content-Type: application/json
|
|
105
|
+
Accept-Language: tr-TR
|
|
106
|
+
X-Request-Id: {{$guid}}
|
|
107
|
+
|
|
108
|
+
{
|
|
109
|
+
"attributes": {
|
|
110
|
+
"startDateTime": "2026-02-02T10:00:00",
|
|
111
|
+
"endDateTime": "2026-02-02T10:30:00"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
###############################################################################
|
|
116
|
+
# #
|
|
117
|
+
# CONFIRMATION STATE: CREATE APPOINTMENT / BACK TO FORM #
|
|
118
|
+
# #
|
|
119
|
+
###############################################################################
|
|
120
|
+
|
|
121
|
+
### Create Appointment (confirmation → active)
|
|
122
|
+
# Confirms the booking. Instance moves to active.
|
|
123
|
+
# @name createAppointment
|
|
124
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/create-appointment?sync=true
|
|
125
|
+
Content-Type: application/json
|
|
126
|
+
Accept-Language: tr-TR
|
|
127
|
+
X-Request-Id: {{$guid}}
|
|
128
|
+
|
|
129
|
+
{
|
|
130
|
+
"attributes": {}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
###############################################################################
|
|
134
|
+
# #
|
|
135
|
+
# SCENARIO 2: CHECK CHAT INTEGRATION AFTER ACTIVE STATE #
|
|
136
|
+
# #
|
|
137
|
+
###############################################################################
|
|
138
|
+
|
|
139
|
+
### Get Rezervation Instance After Active (Chat Integration)
|
|
140
|
+
# After running create-appointment, this request lets you inspect chatIntegration
|
|
141
|
+
# (sessionId, userId, username, roomId, error, errorCode) on the instance.
|
|
142
|
+
# @name getRezervationInstanceAfterActive
|
|
143
|
+
GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}
|
|
144
|
+
Accept: application/json
|
|
145
|
+
Accept-Language: tr-TR
|
|
146
|
+
X-Request-Id: {{$guid}}
|
|
147
|
+
|
|
148
|
+
### Back to Form (confirmation → appointment-form)
|
|
149
|
+
# Cancels the absence-entry personal-leave (key: user-advisorId-startDateTime-endDateTime) and returns to form.
|
|
150
|
+
# @name backToForm
|
|
151
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/back-to-form?sync=true
|
|
152
|
+
Content-Type: application/json
|
|
153
|
+
Accept-Language: tr-TR
|
|
154
|
+
X-Request-Id: {{$guid}}
|
|
155
|
+
|
|
156
|
+
{
|
|
157
|
+
"attributes": {}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
###############################################################################
|
|
161
|
+
# #
|
|
162
|
+
# ACTIVE STATE: CANCEL BY USER / ADVISOR #
|
|
163
|
+
# #
|
|
164
|
+
###############################################################################
|
|
165
|
+
|
|
166
|
+
### User Cancel (active → user-cancelled)
|
|
167
|
+
# Cancels absence-entry and marks rezervation as cancelled by user.
|
|
168
|
+
# @name userCancel
|
|
169
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/user-cancel?sync=true
|
|
170
|
+
Content-Type: application/json
|
|
171
|
+
Accept-Language: tr-TR
|
|
172
|
+
X-Request-Id: {{$guid}}
|
|
173
|
+
|
|
174
|
+
{
|
|
175
|
+
"attributes": {
|
|
176
|
+
"cancellationReason": "Müşteri iptal etti"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
### Advisor Cancel (active → advisor-cancelled)
|
|
181
|
+
# Cancels absence-entry and marks rezervation as cancelled by advisor.
|
|
182
|
+
# @name advisorCancel
|
|
183
|
+
PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/advisor-cancel?sync=true
|
|
184
|
+
Content-Type: application/json
|
|
185
|
+
Accept-Language: tr-TR
|
|
186
|
+
X-Request-Id: {{$guid}}
|
|
187
|
+
|
|
188
|
+
{
|
|
189
|
+
"attributes": {
|
|
190
|
+
"cancellationReason": "Danışman müsait değil"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
###############################################################################
|
|
195
|
+
# #
|
|
196
|
+
# REZERVATION-START: MEETING ENTRY (use rezervation-start flow) #
|
|
197
|
+
# #
|
|
198
|
+
###############################################################################
|
|
199
|
+
|
|
200
|
+
# To start a meeting, use the rezervation-start flow with randevuKey and participantType.
|
|
201
|
+
# POST {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/rezervation-start/instances/start?sync=true
|
|
202
|
+
# Body: { "key": "<randevuKey>", "tags": [...], "attributes": { "randevuKey": "<rezervationKey>", "participantType": "advisor"|"customer" } }
|
|
203
|
+
|
|
204
|
+
###############################################################################
|
|
205
|
+
# #
|
|
206
|
+
# ACTIVE: USER / ADVISOR CANCEL #
|
|
207
|
+
# #
|
|
208
|
+
###############################################################################
|
|
209
|
+
|
|
210
|
+
### User Cancel (from active)
|
|
211
|
+
# PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/user-cancel?sync=true
|
|
212
|
+
|
|
213
|
+
### Advisor Cancel (from active)
|
|
214
|
+
# PATCH {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/transitions/advisor-cancel?sync=true
|