(
input_: (typeof removeUserProcedureStep1)['_def']['_output_out'],
)
| 39 | } |
| 40 | |
| 41 | async function step2( |
| 42 | input_: (typeof removeUserProcedureStep1)['_def']['_output_out'], |
| 43 | ): Promise<(typeof removeUserProcedureStep2)['_def']['_input_in']> { |
| 44 | return { |
| 45 | notifications: await createNotifications({ |
| 46 | recipients: input_.notificationRecipients, |
| 47 | |
| 48 | patientId: input.patientId, |
| 49 | |
| 50 | notifications: { |
| 51 | agent: { |
| 52 | groupId: input.groupId, |
| 53 | |
| 54 | removed: agentId !== input.patientId, |
| 55 | |
| 56 | groupName: groupName.text, |
| 57 | targetName: targetName.text, |
| 58 | |
| 59 | // You left the group. |
| 60 | // You removed ${targetName} from the group. |
| 61 | }, |
| 62 | |
| 63 | ...(agentId !== input.patientId |
| 64 | ? { |
| 65 | target: { |
| 66 | groupId: input.groupId, |
| 67 | |
| 68 | removed: true, |
| 69 | |
| 70 | groupName: groupName.text, |
| 71 | |
| 72 | // You were removed from the group. |
| 73 | }, |
| 74 | } |
| 75 | : {}), |
| 76 | |
| 77 | observers: { |
| 78 | groupId: input.groupId, |
| 79 | |
| 80 | removed: agentId !== input.patientId, |
| 81 | |
| 82 | groupName: groupName.text, |
| 83 | agentName: agentName.text, |
| 84 | ...(agentId !== input.patientId |
| 85 | ? { targetName: targetName.text } |
| 86 | : {}), |
| 87 | |
| 88 | // ${agentName} left the group. |
| 89 | // ${agentName} removed ${targetName} from the group. |
| 90 | }, |
| 91 | }, |
| 92 | }), |
| 93 | }; |
| 94 | } |
| 95 | |
| 96 | async function step3( |
| 97 | _input: (typeof removeUserProcedureStep2)['_def']['_output_out'], |
nothing calls this directly
no test coverage detected