@ai-matrx/records 0.99.24 → 0.99.25

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{client-BgyGYbAY.d.ts → client-CFaUo85X.d.ts} +129 -1
  3. package/dist/{client-CL-dgaM6.d.cts → client-Dxs_M4if.d.cts} +129 -1
  4. package/dist/core/index.cjs +24 -0
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +4 -2
  7. package/dist/core/index.d.ts +4 -2
  8. package/dist/core/index.js +24 -0
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +17 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +1 -1
  13. package/dist/data/index.d.ts +1 -1
  14. package/dist/data/index.js +17 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-CWbYby6X.d.cts → declareTable-DGzmOJw0.d.cts} +1 -1
  17. package/dist/{declareTable-DO6Aeptz.d.ts → declareTable-j7whJWGf.d.ts} +1 -1
  18. package/dist/index.cjs +7 -0
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +7 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/questions/index.d.cts +1 -1
  25. package/dist/questions/index.d.ts +1 -1
  26. package/dist/react/index.cjs +24 -0
  27. package/dist/react/index.cjs.map +1 -1
  28. package/dist/react/index.d.cts +129 -1
  29. package/dist/react/index.d.ts +129 -1
  30. package/dist/react/index.js +24 -0
  31. package/dist/react/index.js.map +1 -1
  32. package/dist/setup/index.cjs +17 -0
  33. package/dist/setup/index.cjs.map +1 -1
  34. package/dist/setup/index.d.cts +1 -1
  35. package/dist/setup/index.d.ts +1 -1
  36. package/dist/setup/index.js +17 -0
  37. package/dist/setup/index.js.map +1 -1
  38. package/dist/typed-table/index.cjs +17 -0
  39. package/dist/typed-table/index.cjs.map +1 -1
  40. package/dist/typed-table/index.d.cts +2 -2
  41. package/dist/typed-table/index.d.ts +2 -2
  42. package/dist/typed-table/index.js +17 -0
  43. package/dist/typed-table/index.js.map +1 -1
  44. package/dist/views/index.d.cts +1 -1
  45. package/dist/views/index.d.ts +1 -1
  46. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { F as FieldDrift, R as RecordsClient } from './client-CL-dgaM6.cjs';
1
+ import { F as FieldDrift, R as RecordsClient } from './client-Dxs_M4if.cjs';
2
2
  import { a as FieldTypeWord, N as NewFieldDeclaration } from './field-Bm5OFzc7.cjs';
3
3
  import { U as Uuid, a as RecordsError } from './record-GKSmu35W.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FieldDrift, R as RecordsClient } from './client-BgyGYbAY.js';
1
+ import { F as FieldDrift, R as RecordsClient } from './client-CFaUo85X.js';
2
2
  import { a as FieldTypeWord, N as NewFieldDeclaration } from './field-BMZs98m8.js';
3
3
  import { U as Uuid, a as RecordsError } from './record-GKSmu35W.js';
4
4
 
package/dist/index.cjs CHANGED
@@ -112,6 +112,7 @@ __export(src_exports, {
112
112
  asChoiceNudge: () => asChoiceNudge,
113
113
  asPermissionLevel: () => asPermissionLevel,
114
114
  atLeast: () => atLeast,
115
+ automationWebhookUrl: () => automationWebhookUrl,
115
116
  autonumberJoin: () => autonumberJoin,
116
117
  autonumberPrefixOf: () => autonumberPrefixOf,
117
118
  autonumberSearchOf: () => autonumberSearchOf,
@@ -1745,6 +1746,12 @@ function moveInOrder(order, moved, toIndex) {
1745
1746
  return [...rest.slice(0, at), moved, ...rest.slice(at)];
1746
1747
  }
1747
1748
 
1749
+ // src/automation.ts
1750
+ function automationWebhookUrl(serverBase, item2) {
1751
+ if (!item2.webhook_secret) return null;
1752
+ return `${serverBase.replace(/\/+$/, "")}/api/automations/hooks/${item2.id}/${item2.webhook_secret}`;
1753
+ }
1754
+
1748
1755
  // src/placement.ts
1749
1756
  function keptOutOfSight(placement) {
1750
1757
  return placement?.platform_owned === true;