@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 { api, internal } from "../../../_generated/api";
3
+ import { internal } from "../../../_generated/api";
4
4
  import { assertAuthorized } from "../permissions";
5
5
 
6
6
  /**
7
- * Riferimento alla mutation che esegue il tick. Usa runTickMutation (pubblico)
8
- * perché internal.components.campaigns.functions.internal._runTickInternal non
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
- a?.components?.campaigns?.campaignsInternal?.runTickMutation ??
16
- i?.components?.campaigns?.campaignsInternal?.runTickMutation ??
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primocaredentgroup/convex-campaigns-component",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "Convex Campaigns backend component for PrimoCore",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",