@aloma.io/integration-sdk 3.8.61 → 3.8.62

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.
@@ -20,6 +20,7 @@ export function buildResolvers(methods, controller) {
20
20
  return controller[method](args);
21
21
  };
22
22
  if (method.includes('.')) {
23
+ // Register nested tree for array-based resolution: ["crm", "contacts", "getPage"]
23
24
  const parts = method.split('.');
24
25
  let node = resolvers;
25
26
  for (let i = 0; i < parts.length - 1; i++) {
@@ -29,6 +30,8 @@ export function buildResolvers(methods, controller) {
29
30
  node = node[parts[i]];
30
31
  }
31
32
  node[parts[parts.length - 1]] = handler;
33
+ // Also register flat dotted key for string-based resolution: ["crm.contacts.getPage"]
34
+ resolvers[method] = handler;
32
35
  }
33
36
  else {
34
37
  resolvers[method] = handler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.8.61",
3
+ "version": "3.8.62",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -22,6 +22,7 @@ export function buildResolvers(methods: string[], controller: any): any {
22
22
  };
23
23
 
24
24
  if (method.includes('.')) {
25
+ // Register nested tree for array-based resolution: ["crm", "contacts", "getPage"]
25
26
  const parts = method.split('.');
26
27
  let node = resolvers;
27
28
  for (let i = 0; i < parts.length - 1; i++) {
@@ -31,6 +32,8 @@ export function buildResolvers(methods: string[], controller: any): any {
31
32
  node = node[parts[i]];
32
33
  }
33
34
  node[parts[parts.length - 1]] = handler;
35
+ // Also register flat dotted key for string-based resolution: ["crm.contacts.getPage"]
36
+ resolvers[method] = handler;
34
37
  } else {
35
38
  resolvers[method] = handler;
36
39
  }