You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -120,10 +121,11 @@ public function findAllBySourceId($register, $schema) {
120
121
* @param bool $isTest Whether this is a test run (does not persist data if true).
121
122
* @param \OCA\OpenRegister\Db\ObjectEntity|array $object The object to be synchronized, also referenced so its updated in parent objects.
122
123
* @param SynchronizationLog $log
124
+
* @param string|null $mutationType If dealing with single object synchronization, the type of the mutation that will be handled, 'create', 'update' or 'delete'. Used for syncs to extern sources.
123
125
*
124
126
* @return SynchronizationContract|array|null Returns a synchronization contract, an array for test cases, or null if conditions are not met.
@@ -298,6 +300,7 @@ private function synchronizeExternToIntern(
298
300
* @param bool|null $isTest False by default, currently added for synchronziation-test endpoint
299
301
* @param bool|null $force False by default, if true, the object will be updated regardless of changes
300
302
* @param array|\OCA\OpenRegister\Db\ObjectEntity|null $object Object to synchronize, updated by reference
303
+
* @param string|null $mutationType If dealing with single object synchronization, the type of the mutation that will be handled, 'create', 'update' or 'delete'. Used for syncs to extern sources.
@@ -672,7 +681,8 @@ public function deleteInvalidObjects(Synchronization $synchronization, ?array $s
672
681
* @param bool|null $isTest False by default, currently added for synchronization-test endpoint
673
682
* @param bool|null $force False by default, if true, the object will be updated regardless of changes
674
683
* @param SynchronizationLog|null $log The log to update
675
-
*
684
+
* @param string|null $mutationType If dealing with single object synchronization, the type of the mutation that will be handled, 'create', 'update' or 'delete'. Used for syncs to extern sources.
685
+
*
676
686
* @return SynchronizationContract|Exception|array
677
687
* @throws ContainerExceptionInterface
678
688
* @throws NotFoundExceptionInterface
@@ -687,6 +697,7 @@ public function synchronizeContract(
687
697
?bool$isTest = false,
688
698
?bool$force = false,
689
699
?SynchronizationLog$log = null,
700
+
?string$mutationType = null
690
701
): SynchronizationContract|Exception|array
691
702
{
692
703
$contractLog = null;
@@ -798,7 +809,8 @@ public function synchronizeContract(
798
809
// Update target and create log when not in test mode
* @param string|null $action Determines what needs to be done with the target object, defaults to 'save'
1097
+
* @param string|null $mutationType If dealing with single object synchronization, the type of the mutation that will be handled, 'create', 'update' or 'delete'. Used for syncs to extern sources.
1085
1098
*
1086
1099
* @return SynchronizationContract
1087
1100
* @throws ContainerExceptionInterface
@@ -1092,7 +1105,7 @@ private function updateIdOnSubObject(string $synchronizationId, array $subObject
@@ -1507,6 +1520,7 @@ public function getAllObjectsFromArray(array $array, Synchronization $synchroniz
1507
1520
* @param SynchronizationContract $contract The contract to enforce.
1508
1521
* @param string $endpoint The endpoint to write the object to.
1509
1522
* @param array|null $targetObject Update referenced targetObject so we can return response here.
1523
+
* @param string|null $mutationType If dealing with single object synchronization, the type of the mutation that will be handled, 'create', 'update' or 'delete'. Used for syncs to extern sources.
1510
1524
*
1511
1525
* @return SynchronizationContract The updated contract.
1512
1526
*
@@ -1522,6 +1536,7 @@ private function writeObjectToTarget(
0 commit comments