@primocaredentgroup/convex-campaigns-component 0.3.10 → 0.3.12
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.
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { v } from "convex/values";
|
|
2
2
|
import { action } from "../../../_generated/server";
|
|
3
|
-
import {
|
|
3
|
+
import { internal } from "../../../_generated/api";
|
|
4
4
|
import { assertAuthorized } from "../permissions";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Riferimento alla mutation che esegue il tick.
|
|
8
|
-
*
|
|
9
|
-
* si risolve quando il componente è montato in un host.
|
|
7
|
+
* Riferimento alla mutation che esegue il tick. L'API generata dall'host espone
|
|
8
|
+
* la mutation sotto functions.internal, non campaignsInternal.
|
|
10
9
|
*/
|
|
11
10
|
function getRunTickMutationRef(): any {
|
|
12
11
|
const i = internal as any;
|
|
13
|
-
const a = api as any;
|
|
14
12
|
return (
|
|
15
|
-
|
|
16
|
-
i?.
|
|
17
|
-
a?.campaigns?.campaignsInternal?.runTickMutation ??
|
|
18
|
-
i?.campaigns?.campaignsInternal?.runTickMutation ??
|
|
19
|
-
i?.components?.campaigns?.functions?.internal?._runTickInternal ??
|
|
20
|
-
i?.functions?.internal?._runTickInternal
|
|
13
|
+
i?.components?.campaigns?.functions?.internal?.runTickMutation ??
|
|
14
|
+
i?.functions?.internal?.runTickMutation
|
|
21
15
|
);
|
|
22
16
|
}
|
|
23
17
|
|